Moved llvm/test/Programs/SingleSource/Regression around a bit to support
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.0]'
426 PACKAGE_STRING='[LLVM] [1.0]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_unique_file=""Makefile.config.in""
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CC_set=${CC+set}
925 ac_env_CC_value=$CC
926 ac_cv_env_CC_set=${CC+set}
927 ac_cv_env_CC_value=$CC
928 ac_env_CFLAGS_set=${CFLAGS+set}
929 ac_env_CFLAGS_value=$CFLAGS
930 ac_cv_env_CFLAGS_set=${CFLAGS+set}
931 ac_cv_env_CFLAGS_value=$CFLAGS
932 ac_env_CPP_set=${CPP+set}
933 ac_env_CPP_value=$CPP
934 ac_cv_env_CPP_set=${CPP+set}
935 ac_cv_env_CPP_value=$CPP
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 System types:
1010   --build=BUILD     configure for building on BUILD [guessed]
1011   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012   --target=TARGET   configure for building compilers for TARGET [HOST]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017   case $ac_init_help in
1018      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019    esac
1020   cat <<\_ACEOF
1021
1022 Optional Features:
1023   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=yes]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-fast-install[=PKGS]
1030                           optimize for fast installation [default=yes]
1031   --disable-libtool-lock  avoid locking (might break parallel builds)
1032   --enable-purify         Compile with purify (default is NO)
1033   --enable-optimized      Compile with optimizations enabled (default is NO)
1034   --enable-spec           Compile SPEC benchmarks (default is NO)
1035   --enable-precompiled_bytecode
1036                           Use pre-compiled bytecode (default is NO)
1037   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1038   --enable-jit            Enable Just In Time Compiling (default is YES)
1039
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044   --with-pic              try to use only PIC/non-PIC objects [default=use
1045                           both]
1046   --with-tags[=TAGS]
1047                           include additional configurations [automatic]
1048   --with-spec             Location of SPEC benchmarks
1049   --with-llvmgccdir       Location of LLVM GCC front-end
1050   --with-bcrepos          Location of Bytecode Repository
1051   --with-papi             Location of PAPI
1052   --with-purify           Location of purify program
1053
1054 Some influential environment variables:
1055   CXX         C++ compiler command
1056   CXXFLAGS    C++ compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   CPP         C preprocessor
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076   # If there are subdirs, report their specific --help.
1077   ac_popdir=`pwd`
1078   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079     test -d $ac_dir || continue
1080     ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084   # A "../" for each directory in $ac_dir_suffix.
1085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087   ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091   .)  # No --srcdir option.  We are building in place.
1092     ac_srcdir=.
1093     if test -z "$ac_top_builddir"; then
1094        ac_top_srcdir=.
1095     else
1096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097     fi ;;
1098   [\\/]* | ?:[\\/]* )  # Absolute path.
1099     ac_srcdir=$srcdir$ac_dir_suffix;
1100     ac_top_srcdir=$srcdir ;;
1101   *) # Relative path.
1102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106 # absolute.
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112     cd $ac_dir
1113     # Check for guested configure; otherwise get Cygnus style configure.
1114     if test -f $ac_srcdir/configure.gnu; then
1115       echo
1116       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117     elif test -f $ac_srcdir/configure; then
1118       echo
1119       $SHELL $ac_srcdir/configure  --help=recursive
1120     elif test -f $ac_srcdir/configure.ac ||
1121            test -f $ac_srcdir/configure.in; then
1122       echo
1123       $ac_configure --help
1124     else
1125       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126     fi
1127     cd $ac_popdir
1128   done
1129 fi
1130
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1133   cat <<\_ACEOF
1134 [LLVM] configure [1.0]
1135 generated by GNU Autoconf 2.57
1136
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by [LLVM] $as_me [1.0], which was
1150 generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core core.* *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486 ac_aux_dir=
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488   if test -f $ac_dir/install-sh; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/install-sh -c"
1491     break
1492   elif test -f $ac_dir/install.sh; then
1493     ac_aux_dir=$ac_dir
1494     ac_install_sh="$ac_aux_dir/install.sh -c"
1495     break
1496   elif test -f $ac_dir/shtool; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/shtool install -c"
1499     break
1500   fi
1501 done
1502 if test -z "$ac_aux_dir"; then
1503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512 if test ${srcdir} != "."
1513 then
1514         if test -f ${srcdir}/include/Config/config.h
1515         then
1516                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518    { (exit 1); exit 1; }; }
1519         fi
1520 fi
1521
1522           ac_config_headers="$ac_config_headers include/Config/config.h"
1523
1524           ac_config_commands="$ac_config_commands Makefile"
1525
1526
1527           ac_config_commands="$ac_config_commands Makefile.common"
1528
1529
1530           ac_config_commands="$ac_config_commands Makefile.rules"
1531
1532
1533           ac_config_commands="$ac_config_commands lib/Makefile"
1534
1535
1536           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1537
1538
1539           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1540
1541
1542           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1543
1544
1545           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1546
1547
1548           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1549
1550
1551           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1552
1553
1554           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1555
1556
1557           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1558
1559
1560           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1561
1562
1563           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1564
1565
1566           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1567
1568
1569           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1570
1571
1572           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1573
1574
1575           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1576
1577
1578           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1579
1580
1581           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1582
1583
1584           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1585
1586
1587           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1591
1592
1593           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1594
1595
1596           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1597
1598
1599           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1600
1601
1602           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1603
1604
1605           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1606
1607
1608           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1609
1610
1611           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1612
1613
1614           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1615
1616
1617           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1618
1619
1620           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands runtime/Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1633
1634
1635           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1636
1637
1638           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1639
1640
1641           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1645
1646
1647           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1654
1655
1656           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1657
1658
1659           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1660
1661
1662           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1663
1664
1665           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1666
1667
1668           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1669
1670
1671           ac_config_commands="$ac_config_commands test/Makefile"
1672
1673
1674           ac_config_commands="$ac_config_commands test/Makefile.tests"
1675
1676
1677           ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1678
1679
1680           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1681
1682
1683           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1684
1685
1686           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1687
1688
1689           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1690
1691
1692           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1693
1694
1695           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1696
1697
1698           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1699
1700
1701           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1702
1703
1704           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1705
1706
1707           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1708
1709
1710           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1711
1712
1713           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1714
1715
1716           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1717
1718
1719           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1720
1721
1722           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1723
1724
1725           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1726
1727
1728           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1729
1730
1731           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1732
1733
1734           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1735
1736
1737           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1738
1739
1740           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1741
1742
1743           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1744
1745
1746           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1747
1748
1749           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1750
1751
1752           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1753
1754
1755           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1756
1757
1758           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1759
1760
1761           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1762
1763
1764           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1765
1766
1767           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1768
1769
1770           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1771
1772
1773           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1774
1775
1776           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1777
1778
1779           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1780
1781
1782           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1783
1784
1785           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1786
1787
1788           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1789
1790
1791           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1792
1793
1794           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1795
1796
1797           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1798
1799
1800           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1801
1802
1803           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1804
1805
1806           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1807
1808
1809           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1810
1811
1812           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1813
1814
1815           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1816
1817
1818           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1819
1820
1821           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1822
1823
1824           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1825
1826
1827           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1828
1829
1830           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1831
1832
1833           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1834
1835
1836           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1837
1838
1839           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1840
1841
1842           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1843
1844
1845           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1846
1847
1848           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1849
1850
1851           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1852
1853
1854           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1855
1856
1857           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1858
1859
1860           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1861
1862
1863           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1864
1865
1866           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1867
1868
1869           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1870
1871
1872           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1873
1874
1875           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1876
1877
1878           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1879
1880
1881           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1882
1883
1884           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1885
1886
1887           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1888
1889
1890           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1891
1892
1893           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1894
1895
1896           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1897
1898
1899           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1900
1901
1902           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1903
1904
1905           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1906
1907
1908           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1909
1910
1911           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1912
1913
1914           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1915
1916
1917           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1918
1919
1920           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1921
1922
1923           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1924
1925
1926           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1927
1928
1929           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1930
1931
1932           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1933
1934
1935           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1936
1937
1938           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1939
1940
1941           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1942
1943
1944           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1945
1946
1947           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1948
1949
1950           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1951
1952
1953           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1954
1955
1956           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1957
1958
1959           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1960
1961
1962           ac_config_commands="$ac_config_commands tools/Makefile"
1963
1964
1965           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1966
1967
1968           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1969
1970
1971           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1972
1973
1974           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1975
1976
1977           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1978
1979
1980           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1981
1982
1983           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1984
1985
1986           ac_config_commands="$ac_config_commands tools/lli/Makefile"
1987
1988
1989           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1990
1991
1992           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1993
1994
1995           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1996
1997
1998           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
1999
2000
2001           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2002
2003
2004           ac_config_commands="$ac_config_commands utils/Makefile"
2005
2006
2007           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2008
2009
2010           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2011
2012
2013           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2014
2015
2016           ac_config_commands="$ac_config_commands www/docs/Makefile"
2017
2018
2019           ac_config_commands="$ac_config_commands projects/Makefile"
2020
2021
2022           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2023
2024
2025           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2026
2027
2028           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2029
2030
2031           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2032
2033
2034           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2035
2036
2037           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2038
2039
2040           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2041
2042
2043           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2044
2045
2046           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2047
2048
2049           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2050
2051
2052           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2053
2054
2055
2056
2057 # Find a good install program.  We prefer a C program (faster),
2058 # so one script is as good as another.  But avoid the broken or
2059 # incompatible versions:
2060 # SysV /etc/install, /usr/sbin/install
2061 # SunOS /usr/etc/install
2062 # IRIX /sbin/install
2063 # AIX /bin/install
2064 # AmigaOS /C/install, which installs bootblocks on floppy discs
2065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2068 # ./install, which can be erroneously created by make from ./install.sh.
2069 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2071 if test -z "$INSTALL"; then
2072 if test "${ac_cv_path_install+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2077 do
2078   IFS=$as_save_IFS
2079   test -z "$as_dir" && as_dir=.
2080   # Account for people who put trailing slashes in PATH elements.
2081 case $as_dir/ in
2082   ./ | .// | /cC/* | \
2083   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2084   /usr/ucb/* ) ;;
2085   *)
2086     # OSF1 and SCO ODT 3.0 have their own names for install.
2087     # Don't use installbsd from OSF since it installs stuff as root
2088     # by default.
2089     for ac_prog in ginstall scoinst install; do
2090       for ac_exec_ext in '' $ac_executable_extensions; do
2091         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2092           if test $ac_prog = install &&
2093             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2094             # AIX install.  It has an incompatible calling convention.
2095             :
2096           elif test $ac_prog = install &&
2097             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2098             # program-specific install script used by HP pwplus--don't use.
2099             :
2100           else
2101             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2102             break 3
2103           fi
2104         fi
2105       done
2106     done
2107     ;;
2108 esac
2109 done
2110
2111
2112 fi
2113   if test "${ac_cv_path_install+set}" = set; then
2114     INSTALL=$ac_cv_path_install
2115   else
2116     # As a last resort, use the slow shell script.  We don't cache a
2117     # path for INSTALL within a source directory, because that will
2118     # break other packages using the cache if that directory is
2119     # removed, or if the path is relative.
2120     INSTALL=$ac_install_sh
2121   fi
2122 fi
2123 echo "$as_me:$LINENO: result: $INSTALL" >&5
2124 echo "${ECHO_T}$INSTALL" >&6
2125
2126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2127 # It thinks the first close brace ends the variable substitution.
2128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2129
2130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2131
2132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2133
2134
2135 # Make sure we can run config.sub.
2136 $ac_config_sub sun4 >/dev/null 2>&1 ||
2137   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2138 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2139    { (exit 1); exit 1; }; }
2140
2141 echo "$as_me:$LINENO: checking build system type" >&5
2142 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2143 if test "${ac_cv_build+set}" = set; then
2144   echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146   ac_cv_build_alias=$build_alias
2147 test -z "$ac_cv_build_alias" &&
2148   ac_cv_build_alias=`$ac_config_guess`
2149 test -z "$ac_cv_build_alias" &&
2150   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2151 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2152    { (exit 1); exit 1; }; }
2153 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2154   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2155 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2156    { (exit 1); exit 1; }; }
2157
2158 fi
2159 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2160 echo "${ECHO_T}$ac_cv_build" >&6
2161 build=$ac_cv_build
2162 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2163 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2164 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2165
2166
2167 echo "$as_me:$LINENO: checking host system type" >&5
2168 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2169 if test "${ac_cv_host+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   ac_cv_host_alias=$host_alias
2173 test -z "$ac_cv_host_alias" &&
2174   ac_cv_host_alias=$ac_cv_build_alias
2175 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2176   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2177 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2178    { (exit 1); exit 1; }; }
2179
2180 fi
2181 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2182 echo "${ECHO_T}$ac_cv_host" >&6
2183 host=$ac_cv_host
2184 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2185 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2186 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2187
2188
2189 echo "$as_me:$LINENO: checking target system type" >&5
2190 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2191 if test "${ac_cv_target+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   ac_cv_target_alias=$target_alias
2195 test "x$ac_cv_target_alias" = "x" &&
2196   ac_cv_target_alias=$ac_cv_host_alias
2197 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2198   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2199 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2200    { (exit 1); exit 1; }; }
2201
2202 fi
2203 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2204 echo "${ECHO_T}$ac_cv_target" >&6
2205 target=$ac_cv_target
2206 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2207 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2208 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2209
2210
2211 # The aliases save the names the user supplied, while $host etc.
2212 # will get canonicalized.
2213 test -n "$target_alias" &&
2214   test "$program_prefix$program_suffix$program_transform_name" = \
2215     NONENONEs,x,x, &&
2216   program_prefix=${target_alias}-
2217
2218 case $build in
2219         *i*86*)  OS=Linux
2220
2221                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2222
2223                  ;;
2224
2225         *sparc*) OS=SunOS
2226
2227                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2228
2229                  ;;
2230
2231         *)       OS=Unknown
2232
2233                  ;;
2234 esac
2235
2236 case $target in
2237         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2238
2239                           ;;
2240 esac
2241
2242 case $target in
2243         *i*86*)           ARCH=x86
2244
2245                           ;;
2246         *sparc*solaris*)  ARCH=Sparc
2247
2248                           ;;
2249 esac
2250
2251
2252 ac_ext=cc
2253 ac_cpp='$CXXCPP $CPPFLAGS'
2254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2257 if test -n "$ac_tool_prefix"; then
2258   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2259   do
2260     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2262 echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_CXX+set}" = set; then
2265   echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267   if test -n "$CXX"; then
2268   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2269 else
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273   IFS=$as_save_IFS
2274   test -z "$as_dir" && as_dir=.
2275   for ac_exec_ext in '' $ac_executable_extensions; do
2276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279     break 2
2280   fi
2281 done
2282 done
2283
2284 fi
2285 fi
2286 CXX=$ac_cv_prog_CXX
2287 if test -n "$CXX"; then
2288   echo "$as_me:$LINENO: result: $CXX" >&5
2289 echo "${ECHO_T}$CXX" >&6
2290 else
2291   echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6
2293 fi
2294
2295     test -n "$CXX" && break
2296   done
2297 fi
2298 if test -z "$CXX"; then
2299   ac_ct_CXX=$CXX
2300   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2301 do
2302   # Extract the first word of "$ac_prog", so it can be a program name with args.
2303 set dummy $ac_prog; ac_word=$2
2304 echo "$as_me:$LINENO: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2307   echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309   if test -n "$ac_ct_CXX"; then
2310   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315   IFS=$as_save_IFS
2316   test -z "$as_dir" && as_dir=.
2317   for ac_exec_ext in '' $ac_executable_extensions; do
2318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319     ac_cv_prog_ac_ct_CXX="$ac_prog"
2320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321     break 2
2322   fi
2323 done
2324 done
2325
2326 fi
2327 fi
2328 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2329 if test -n "$ac_ct_CXX"; then
2330   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2331 echo "${ECHO_T}$ac_ct_CXX" >&6
2332 else
2333   echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6
2335 fi
2336
2337   test -n "$ac_ct_CXX" && break
2338 done
2339 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2340
2341   CXX=$ac_ct_CXX
2342 fi
2343
2344
2345 # Provide some information about the compiler.
2346 echo "$as_me:$LINENO:" \
2347      "checking for C++ compiler version" >&5
2348 ac_compiler=`set X $ac_compile; echo $2`
2349 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2350   (eval $ac_compiler --version </dev/null >&5) 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); }
2354 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2355   (eval $ac_compiler -v </dev/null >&5) 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }
2359 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2360   (eval $ac_compiler -V </dev/null >&5) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }
2364
2365 cat >conftest.$ac_ext <<_ACEOF
2366 #line $LINENO "configure"
2367 /* confdefs.h.  */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h.  */
2372
2373 int
2374 main ()
2375 {
2376
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 ac_clean_files_save=$ac_clean_files
2382 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2383 # Try to create an executable without -o first, disregard a.out.
2384 # It will help us diagnose broken compilers, and finding out an intuition
2385 # of exeext.
2386 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2387 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2388 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2389 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2390   (eval $ac_link_default) 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }; then
2394   # Find the output, starting from the most likely.  This scheme is
2395 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2396 # resort.
2397
2398 # Be careful to initialize this variable, since it used to be cached.
2399 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2400 ac_cv_exeext=
2401 # b.out is created by i960 compilers.
2402 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2403 do
2404   test -f "$ac_file" || continue
2405   case $ac_file in
2406     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2407         ;;
2408     conftest.$ac_ext )
2409         # This is the source file.
2410         ;;
2411     [ab].out )
2412         # We found the default executable, but exeext='' is most
2413         # certainly right.
2414         break;;
2415     *.* )
2416         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2417         # FIXME: I believe we export ac_cv_exeext for Libtool,
2418         # but it would be cool to find out if it's true.  Does anybody
2419         # maintain Libtool? --akim.
2420         export ac_cv_exeext
2421         break;;
2422     * )
2423         break;;
2424   esac
2425 done
2426 else
2427   echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2429
2430 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2431 See \`config.log' for more details." >&5
2432 echo "$as_me: error: C++ compiler cannot create executables
2433 See \`config.log' for more details." >&2;}
2434    { (exit 77); exit 77; }; }
2435 fi
2436
2437 ac_exeext=$ac_cv_exeext
2438 echo "$as_me:$LINENO: result: $ac_file" >&5
2439 echo "${ECHO_T}$ac_file" >&6
2440
2441 # Check the compiler produces executables we can run.  If not, either
2442 # the compiler is broken, or we cross compile.
2443 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2444 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2445 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2446 # If not cross compiling, check that we can run a simple program.
2447 if test "$cross_compiling" != yes; then
2448   if { ac_try='./$ac_file'
2449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450   (eval $ac_try) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; }; then
2454     cross_compiling=no
2455   else
2456     if test "$cross_compiling" = maybe; then
2457         cross_compiling=yes
2458     else
2459         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2460 If you meant to cross compile, use \`--host'.
2461 See \`config.log' for more details." >&5
2462 echo "$as_me: error: cannot run C++ compiled programs.
2463 If you meant to cross compile, use \`--host'.
2464 See \`config.log' for more details." >&2;}
2465    { (exit 1); exit 1; }; }
2466     fi
2467   fi
2468 fi
2469 echo "$as_me:$LINENO: result: yes" >&5
2470 echo "${ECHO_T}yes" >&6
2471
2472 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2473 ac_clean_files=$ac_clean_files_save
2474 # Check the compiler produces executables we can run.  If not, either
2475 # the compiler is broken, or we cross compile.
2476 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2477 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2478 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2479 echo "${ECHO_T}$cross_compiling" >&6
2480
2481 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2482 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2484   (eval $ac_link) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; then
2488   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2489 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2490 # work properly (i.e., refer to `conftest.exe'), while it won't with
2491 # `rm'.
2492 for ac_file in conftest.exe conftest conftest.*; do
2493   test -f "$ac_file" || continue
2494   case $ac_file in
2495     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2496     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2497           export ac_cv_exeext
2498           break;;
2499     * ) break;;
2500   esac
2501 done
2502 else
2503   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2504 See \`config.log' for more details." >&5
2505 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2506 See \`config.log' for more details." >&2;}
2507    { (exit 1); exit 1; }; }
2508 fi
2509
2510 rm -f conftest$ac_cv_exeext
2511 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2512 echo "${ECHO_T}$ac_cv_exeext" >&6
2513
2514 rm -f conftest.$ac_ext
2515 EXEEXT=$ac_cv_exeext
2516 ac_exeext=$EXEEXT
2517 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2518 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2519 if test "${ac_cv_objext+set}" = set; then
2520   echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522   cat >conftest.$ac_ext <<_ACEOF
2523 #line $LINENO "configure"
2524 /* confdefs.h.  */
2525 _ACEOF
2526 cat confdefs.h >>conftest.$ac_ext
2527 cat >>conftest.$ac_ext <<_ACEOF
2528 /* end confdefs.h.  */
2529
2530 int
2531 main ()
2532 {
2533
2534   ;
2535   return 0;
2536 }
2537 _ACEOF
2538 rm -f conftest.o conftest.obj
2539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540   (eval $ac_compile) 2>&5
2541   ac_status=$?
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); }; then
2544   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2545   case $ac_file in
2546     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2547     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2548        break;;
2549   esac
2550 done
2551 else
2552   echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2554
2555 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2556 See \`config.log' for more details." >&5
2557 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2558 See \`config.log' for more details." >&2;}
2559    { (exit 1); exit 1; }; }
2560 fi
2561
2562 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2563 fi
2564 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2565 echo "${ECHO_T}$ac_cv_objext" >&6
2566 OBJEXT=$ac_cv_objext
2567 ac_objext=$OBJEXT
2568 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2569 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2570 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2571   echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573   cat >conftest.$ac_ext <<_ACEOF
2574 #line $LINENO "configure"
2575 /* confdefs.h.  */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h.  */
2580
2581 int
2582 main ()
2583 {
2584 #ifndef __GNUC__
2585        choke me
2586 #endif
2587
2588   ;
2589   return 0;
2590 }
2591 _ACEOF
2592 rm -f conftest.$ac_objext
2593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594   (eval $ac_compile) 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); } &&
2598          { ac_try='test -s conftest.$ac_objext'
2599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600   (eval $ac_try) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); }; }; then
2604   ac_compiler_gnu=yes
2605 else
2606   echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609 ac_compiler_gnu=no
2610 fi
2611 rm -f conftest.$ac_objext conftest.$ac_ext
2612 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2613
2614 fi
2615 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2616 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2617 GXX=`test $ac_compiler_gnu = yes && echo yes`
2618 ac_test_CXXFLAGS=${CXXFLAGS+set}
2619 ac_save_CXXFLAGS=$CXXFLAGS
2620 CXXFLAGS="-g"
2621 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2622 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2623 if test "${ac_cv_prog_cxx_g+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   cat >conftest.$ac_ext <<_ACEOF
2627 #line $LINENO "configure"
2628 /* confdefs.h.  */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h.  */
2633
2634 int
2635 main ()
2636 {
2637
2638   ;
2639   return 0;
2640 }
2641 _ACEOF
2642 rm -f conftest.$ac_objext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644   (eval $ac_compile) 2>&5
2645   ac_status=$?
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); } &&
2648          { ac_try='test -s conftest.$ac_objext'
2649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650   (eval $ac_try) 2>&5
2651   ac_status=$?
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); }; }; then
2654   ac_cv_prog_cxx_g=yes
2655 else
2656   echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2658
2659 ac_cv_prog_cxx_g=no
2660 fi
2661 rm -f conftest.$ac_objext conftest.$ac_ext
2662 fi
2663 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2664 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2665 if test "$ac_test_CXXFLAGS" = set; then
2666   CXXFLAGS=$ac_save_CXXFLAGS
2667 elif test $ac_cv_prog_cxx_g = yes; then
2668   if test "$GXX" = yes; then
2669     CXXFLAGS="-g -O2"
2670   else
2671     CXXFLAGS="-g"
2672   fi
2673 else
2674   if test "$GXX" = yes; then
2675     CXXFLAGS="-O2"
2676   else
2677     CXXFLAGS=
2678   fi
2679 fi
2680 for ac_declaration in \
2681    ''\
2682    '#include <stdlib.h>' \
2683    'extern "C" void std::exit (int) throw (); using std::exit;' \
2684    'extern "C" void std::exit (int); using std::exit;' \
2685    'extern "C" void exit (int) throw ();' \
2686    'extern "C" void exit (int);' \
2687    'void exit (int);'
2688 do
2689   cat >conftest.$ac_ext <<_ACEOF
2690 #line $LINENO "configure"
2691 /* confdefs.h.  */
2692 _ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h.  */
2696 #include <stdlib.h>
2697 $ac_declaration
2698 int
2699 main ()
2700 {
2701 exit (42);
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708   (eval $ac_compile) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); } &&
2712          { ac_try='test -s conftest.$ac_objext'
2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; }; then
2718   :
2719 else
2720   echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723 continue
2724 fi
2725 rm -f conftest.$ac_objext conftest.$ac_ext
2726   cat >conftest.$ac_ext <<_ACEOF
2727 #line $LINENO "configure"
2728 /* confdefs.h.  */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h.  */
2733 $ac_declaration
2734 int
2735 main ()
2736 {
2737 exit (42);
2738   ;
2739   return 0;
2740 }
2741 _ACEOF
2742 rm -f conftest.$ac_objext
2743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744   (eval $ac_compile) 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); } &&
2748          { ac_try='test -s conftest.$ac_objext'
2749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750   (eval $ac_try) 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; }; then
2754   break
2755 else
2756   echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2758
2759 fi
2760 rm -f conftest.$ac_objext conftest.$ac_ext
2761 done
2762 rm -f conftest*
2763 if test -n "$ac_declaration"; then
2764   echo '#ifdef __cplusplus' >>confdefs.h
2765   echo $ac_declaration      >>confdefs.h
2766   echo '#endif'             >>confdefs.h
2767 fi
2768
2769 ac_ext=c
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774
2775 ac_ext=c
2776 ac_cpp='$CPP $CPPFLAGS'
2777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780 if test -n "$ac_tool_prefix"; then
2781   for ac_prog in gcc
2782   do
2783     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2785 echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2787 if test "${ac_cv_prog_CC+set}" = set; then
2788   echo $ECHO_N "(cached) $ECHO_C" >&6
2789 else
2790   if test -n "$CC"; then
2791   ac_cv_prog_CC="$CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796   IFS=$as_save_IFS
2797   test -z "$as_dir" && as_dir=.
2798   for ac_exec_ext in '' $ac_executable_extensions; do
2799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802     break 2
2803   fi
2804 done
2805 done
2806
2807 fi
2808 fi
2809 CC=$ac_cv_prog_CC
2810 if test -n "$CC"; then
2811   echo "$as_me:$LINENO: result: $CC" >&5
2812 echo "${ECHO_T}$CC" >&6
2813 else
2814   echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6
2816 fi
2817
2818     test -n "$CC" && break
2819   done
2820 fi
2821 if test -z "$CC"; then
2822   ac_ct_CC=$CC
2823   for ac_prog in gcc
2824 do
2825   # Extract the first word of "$ac_prog", so it can be a program name with args.
2826 set dummy $ac_prog; ac_word=$2
2827 echo "$as_me:$LINENO: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2829 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   if test -n "$ac_ct_CC"; then
2833   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838   IFS=$as_save_IFS
2839   test -z "$as_dir" && as_dir=.
2840   for ac_exec_ext in '' $ac_executable_extensions; do
2841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842     ac_cv_prog_ac_ct_CC="$ac_prog"
2843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844     break 2
2845   fi
2846 done
2847 done
2848
2849 fi
2850 fi
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2854 echo "${ECHO_T}$ac_ct_CC" >&6
2855 else
2856   echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2858 fi
2859
2860   test -n "$ac_ct_CC" && break
2861 done
2862
2863   CC=$ac_ct_CC
2864 fi
2865
2866
2867 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2868 See \`config.log' for more details." >&5
2869 echo "$as_me: error: no acceptable C compiler found in \$PATH
2870 See \`config.log' for more details." >&2;}
2871    { (exit 1); exit 1; }; }
2872
2873 # Provide some information about the compiler.
2874 echo "$as_me:$LINENO:" \
2875      "checking for C compiler version" >&5
2876 ac_compiler=`set X $ac_compile; echo $2`
2877 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2878   (eval $ac_compiler --version </dev/null >&5) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }
2882 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2883   (eval $ac_compiler -v </dev/null >&5) 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }
2887 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2888   (eval $ac_compiler -V </dev/null >&5) 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }
2892
2893 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2894 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2895 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2896   echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898   cat >conftest.$ac_ext <<_ACEOF
2899 #line $LINENO "configure"
2900 /* confdefs.h.  */
2901 _ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h.  */
2905
2906 int
2907 main ()
2908 {
2909 #ifndef __GNUC__
2910        choke me
2911 #endif
2912
2913   ;
2914   return 0;
2915 }
2916 _ACEOF
2917 rm -f conftest.$ac_objext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919   (eval $ac_compile) 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); } &&
2923          { ac_try='test -s conftest.$ac_objext'
2924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925   (eval $ac_try) 2>&5
2926   ac_status=$?
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); }; }; then
2929   ac_compiler_gnu=yes
2930 else
2931   echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2933
2934 ac_compiler_gnu=no
2935 fi
2936 rm -f conftest.$ac_objext conftest.$ac_ext
2937 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2938
2939 fi
2940 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2941 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2942 GCC=`test $ac_compiler_gnu = yes && echo yes`
2943 ac_test_CFLAGS=${CFLAGS+set}
2944 ac_save_CFLAGS=$CFLAGS
2945 CFLAGS="-g"
2946 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2947 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2948 if test "${ac_cv_prog_cc_g+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   cat >conftest.$ac_ext <<_ACEOF
2952 #line $LINENO "configure"
2953 /* confdefs.h.  */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h.  */
2958
2959 int
2960 main ()
2961 {
2962
2963   ;
2964   return 0;
2965 }
2966 _ACEOF
2967 rm -f conftest.$ac_objext
2968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2969   (eval $ac_compile) 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); } &&
2973          { ac_try='test -s conftest.$ac_objext'
2974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975   (eval $ac_try) 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; }; then
2979   ac_cv_prog_cc_g=yes
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984 ac_cv_prog_cc_g=no
2985 fi
2986 rm -f conftest.$ac_objext conftest.$ac_ext
2987 fi
2988 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2989 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2990 if test "$ac_test_CFLAGS" = set; then
2991   CFLAGS=$ac_save_CFLAGS
2992 elif test $ac_cv_prog_cc_g = yes; then
2993   if test "$GCC" = yes; then
2994     CFLAGS="-g -O2"
2995   else
2996     CFLAGS="-g"
2997   fi
2998 else
2999   if test "$GCC" = yes; then
3000     CFLAGS="-O2"
3001   else
3002     CFLAGS=
3003   fi
3004 fi
3005 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3006 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3007 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3008   echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010   ac_cv_prog_cc_stdc=no
3011 ac_save_CC=$CC
3012 cat >conftest.$ac_ext <<_ACEOF
3013 #line $LINENO "configure"
3014 /* confdefs.h.  */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h.  */
3019 #include <stdarg.h>
3020 #include <stdio.h>
3021 #include <sys/types.h>
3022 #include <sys/stat.h>
3023 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3024 struct buf { int x; };
3025 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3026 static char *e (p, i)
3027      char **p;
3028      int i;
3029 {
3030   return p[i];
3031 }
3032 static char *f (char * (*g) (char **, int), char **p, ...)
3033 {
3034   char *s;
3035   va_list v;
3036   va_start (v,p);
3037   s = g (p, va_arg (v,int));
3038   va_end (v);
3039   return s;
3040 }
3041 int test (int i, double x);
3042 struct s1 {int (*f) (int a);};
3043 struct s2 {int (*f) (double a);};
3044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3045 int argc;
3046 char **argv;
3047 int
3048 main ()
3049 {
3050 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3051   ;
3052   return 0;
3053 }
3054 _ACEOF
3055 # Don't try gcc -ansi; that turns off useful extensions and
3056 # breaks some systems' header files.
3057 # AIX                   -qlanglvl=ansi
3058 # Ultrix and OSF/1      -std1
3059 # HP-UX 10.20 and later -Ae
3060 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3061 # SVR4                  -Xc -D__EXTENSIONS__
3062 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3063 do
3064   CC="$ac_save_CC $ac_arg"
3065   rm -f conftest.$ac_objext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067   (eval $ac_compile) 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } &&
3071          { ac_try='test -s conftest.$ac_objext'
3072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073   (eval $ac_try) 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); }; }; then
3077   ac_cv_prog_cc_stdc=$ac_arg
3078 break
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083 fi
3084 rm -f conftest.$ac_objext
3085 done
3086 rm -f conftest.$ac_ext conftest.$ac_objext
3087 CC=$ac_save_CC
3088
3089 fi
3090
3091 case "x$ac_cv_prog_cc_stdc" in
3092   x|xno)
3093     echo "$as_me:$LINENO: result: none needed" >&5
3094 echo "${ECHO_T}none needed" >&6 ;;
3095   *)
3096     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3097 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3098     CC="$CC $ac_cv_prog_cc_stdc" ;;
3099 esac
3100
3101 # Some people use a C++ compiler to compile C.  Since we use `exit',
3102 # in C++ we need to declare it.  In case someone uses the same compiler
3103 # for both compiling C and C++ we need to have the C++ compiler decide
3104 # the declaration of exit, since it's the most demanding environment.
3105 cat >conftest.$ac_ext <<_ACEOF
3106 #ifndef __cplusplus
3107   choke me
3108 #endif
3109 _ACEOF
3110 rm -f conftest.$ac_objext
3111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3112   (eval $ac_compile) 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); } &&
3116          { ac_try='test -s conftest.$ac_objext'
3117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118   (eval $ac_try) 2>&5
3119   ac_status=$?
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); }; }; then
3122   for ac_declaration in \
3123    ''\
3124    '#include <stdlib.h>' \
3125    'extern "C" void std::exit (int) throw (); using std::exit;' \
3126    'extern "C" void std::exit (int); using std::exit;' \
3127    'extern "C" void exit (int) throw ();' \
3128    'extern "C" void exit (int);' \
3129    'void exit (int);'
3130 do
3131   cat >conftest.$ac_ext <<_ACEOF
3132 #line $LINENO "configure"
3133 /* confdefs.h.  */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h.  */
3138 #include <stdlib.h>
3139 $ac_declaration
3140 int
3141 main ()
3142 {
3143 exit (42);
3144   ;
3145   return 0;
3146 }
3147 _ACEOF
3148 rm -f conftest.$ac_objext
3149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3150   (eval $ac_compile) 2>&5
3151   ac_status=$?
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); } &&
3154          { ac_try='test -s conftest.$ac_objext'
3155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156   (eval $ac_try) 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }; }; then
3160   :
3161 else
3162   echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165 continue
3166 fi
3167 rm -f conftest.$ac_objext conftest.$ac_ext
3168   cat >conftest.$ac_ext <<_ACEOF
3169 #line $LINENO "configure"
3170 /* confdefs.h.  */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h.  */
3175 $ac_declaration
3176 int
3177 main ()
3178 {
3179 exit (42);
3180   ;
3181   return 0;
3182 }
3183 _ACEOF
3184 rm -f conftest.$ac_objext
3185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3186   (eval $ac_compile) 2>&5
3187   ac_status=$?
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } &&
3190          { ac_try='test -s conftest.$ac_objext'
3191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192   (eval $ac_try) 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); }; }; then
3196   break
3197 else
3198   echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 fi
3202 rm -f conftest.$ac_objext conftest.$ac_ext
3203 done
3204 rm -f conftest*
3205 if test -n "$ac_declaration"; then
3206   echo '#ifdef __cplusplus' >>confdefs.h
3207   echo $ac_declaration      >>confdefs.h
3208   echo '#endif'             >>confdefs.h
3209 fi
3210
3211 else
3212   echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215 fi
3216 rm -f conftest.$ac_objext conftest.$ac_ext
3217 ac_ext=c
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3229 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3230 # On Suns, sometimes $CPP names a directory.
3231 if test -n "$CPP" && test -d "$CPP"; then
3232   CPP=
3233 fi
3234 if test -z "$CPP"; then
3235   if test "${ac_cv_prog_CPP+set}" = set; then
3236   echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238       # Double quotes because CPP needs to be expanded
3239     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3240     do
3241       ac_preproc_ok=false
3242 for ac_c_preproc_warn_flag in '' yes
3243 do
3244   # Use a header file that comes with gcc, so configuring glibc
3245   # with a fresh cross-compiler works.
3246   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3247   # <limits.h> exists even on freestanding compilers.
3248   # On the NeXT, cc -E runs the code through the compiler's parser,
3249   # not just through cpp. "Syntax error" is here to catch this case.
3250   cat >conftest.$ac_ext <<_ACEOF
3251 #line $LINENO "configure"
3252 /* confdefs.h.  */
3253 _ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h.  */
3257 #ifdef __STDC__
3258 # include <limits.h>
3259 #else
3260 # include <assert.h>
3261 #endif
3262                      Syntax error
3263 _ACEOF
3264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3266   ac_status=$?
3267   grep -v '^ *+' conftest.er1 >conftest.err
3268   rm -f conftest.er1
3269   cat conftest.err >&5
3270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); } >/dev/null; then
3272   if test -s conftest.err; then
3273     ac_cpp_err=$ac_c_preproc_warn_flag
3274   else
3275     ac_cpp_err=
3276   fi
3277 else
3278   ac_cpp_err=yes
3279 fi
3280 if test -z "$ac_cpp_err"; then
3281   :
3282 else
3283   echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3285
3286   # Broken: fails on valid input.
3287 continue
3288 fi
3289 rm -f conftest.err conftest.$ac_ext
3290
3291   # OK, works on sane cases.  Now check whether non-existent headers
3292   # can be detected and how.
3293   cat >conftest.$ac_ext <<_ACEOF
3294 #line $LINENO "configure"
3295 /* confdefs.h.  */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h.  */
3300 #include <ac_nonexistent.h>
3301 _ACEOF
3302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3304   ac_status=$?
3305   grep -v '^ *+' conftest.er1 >conftest.err
3306   rm -f conftest.er1
3307   cat conftest.err >&5
3308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309   (exit $ac_status); } >/dev/null; then
3310   if test -s conftest.err; then
3311     ac_cpp_err=$ac_c_preproc_warn_flag
3312   else
3313     ac_cpp_err=
3314   fi
3315 else
3316   ac_cpp_err=yes
3317 fi
3318 if test -z "$ac_cpp_err"; then
3319   # Broken: success on invalid input.
3320 continue
3321 else
3322   echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325   # Passes both tests.
3326 ac_preproc_ok=:
3327 break
3328 fi
3329 rm -f conftest.err conftest.$ac_ext
3330
3331 done
3332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3333 rm -f conftest.err conftest.$ac_ext
3334 if $ac_preproc_ok; then
3335   break
3336 fi
3337
3338     done
3339     ac_cv_prog_CPP=$CPP
3340
3341 fi
3342   CPP=$ac_cv_prog_CPP
3343 else
3344   ac_cv_prog_CPP=$CPP
3345 fi
3346 echo "$as_me:$LINENO: result: $CPP" >&5
3347 echo "${ECHO_T}$CPP" >&6
3348 ac_preproc_ok=false
3349 for ac_c_preproc_warn_flag in '' yes
3350 do
3351   # Use a header file that comes with gcc, so configuring glibc
3352   # with a fresh cross-compiler works.
3353   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3354   # <limits.h> exists even on freestanding compilers.
3355   # On the NeXT, cc -E runs the code through the compiler's parser,
3356   # not just through cpp. "Syntax error" is here to catch this case.
3357   cat >conftest.$ac_ext <<_ACEOF
3358 #line $LINENO "configure"
3359 /* confdefs.h.  */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h.  */
3364 #ifdef __STDC__
3365 # include <limits.h>
3366 #else
3367 # include <assert.h>
3368 #endif
3369                      Syntax error
3370 _ACEOF
3371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3372   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373   ac_status=$?
3374   grep -v '^ *+' conftest.er1 >conftest.err
3375   rm -f conftest.er1
3376   cat conftest.err >&5
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); } >/dev/null; then
3379   if test -s conftest.err; then
3380     ac_cpp_err=$ac_c_preproc_warn_flag
3381   else
3382     ac_cpp_err=
3383   fi
3384 else
3385   ac_cpp_err=yes
3386 fi
3387 if test -z "$ac_cpp_err"; then
3388   :
3389 else
3390   echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393   # Broken: fails on valid input.
3394 continue
3395 fi
3396 rm -f conftest.err conftest.$ac_ext
3397
3398   # OK, works on sane cases.  Now check whether non-existent headers
3399   # can be detected and how.
3400   cat >conftest.$ac_ext <<_ACEOF
3401 #line $LINENO "configure"
3402 /* confdefs.h.  */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h.  */
3407 #include <ac_nonexistent.h>
3408 _ACEOF
3409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3410   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3411   ac_status=$?
3412   grep -v '^ *+' conftest.er1 >conftest.err
3413   rm -f conftest.er1
3414   cat conftest.err >&5
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); } >/dev/null; then
3417   if test -s conftest.err; then
3418     ac_cpp_err=$ac_c_preproc_warn_flag
3419   else
3420     ac_cpp_err=
3421   fi
3422 else
3423   ac_cpp_err=yes
3424 fi
3425 if test -z "$ac_cpp_err"; then
3426   # Broken: success on invalid input.
3427 continue
3428 else
3429   echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432   # Passes both tests.
3433 ac_preproc_ok=:
3434 break
3435 fi
3436 rm -f conftest.err conftest.$ac_ext
3437
3438 done
3439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440 rm -f conftest.err conftest.$ac_ext
3441 if $ac_preproc_ok; then
3442   :
3443 else
3444   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details." >&5
3446 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3447 See \`config.log' for more details." >&2;}
3448    { (exit 1); exit 1; }; }
3449 fi
3450
3451 ac_ext=c
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456
3457
3458 if test "$GCC" != "yes"
3459 then
3460         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3461 echo "$as_me: error: gcc required but not found" >&2;}
3462    { (exit 1); exit 1; }; }
3463 fi
3464
3465 if test "$GXX" != "yes"
3466 then
3467         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3468 echo "$as_me: error: g++ required but not found" >&2;}
3469    { (exit 1); exit 1; }; }
3470 fi
3471
3472 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3473 if test "$gccmajor" -lt "3"
3474 then
3475         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3476 echo "$as_me: error: gcc 3.x required" >&2;}
3477    { (exit 1); exit 1; }; }
3478 fi
3479
3480  echo "$as_me:$LINENO: checking for GNU make" >&5
3481 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3482 if test "${_cv_gnu_make_command+set}" = set; then
3483   echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3485   _cv_gnu_make_command='' ;
3486                 for a in "$MAKE" make gmake gnumake ; do
3487                         if test -z "$a" ; then continue ; fi ;
3488                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3489                                 _cv_gnu_make_command=$a ;
3490                                 break;
3491                         fi
3492                 done ;
3493
3494 fi
3495 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3496 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3497         if test  "x$_cv_gnu_make_command" != "x"  ; then
3498                 ifGNUmake='' ;
3499         else
3500                 ifGNUmake='#' ;
3501                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3502 echo "${ECHO_T}\"Not found\"" >&6;
3503         fi
3504
3505
3506 if test -z "$_cv_gnu_make_command"
3507 then
3508         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3509 echo "$as_me: error: GNU Make required but not found" >&2;}
3510    { (exit 1); exit 1; }; }
3511 fi
3512
3513
3514 echo "$as_me:$LINENO: checking " >&5
3515 echo $ECHO_N "checking ... $ECHO_C" >&6
3516 if test "${ac_cv_has_flex+set}" = set; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519   for ac_prog in flex lex
3520 do
3521   # Extract the first word of "$ac_prog", so it can be a program name with args.
3522 set dummy $ac_prog; ac_word=$2
3523 echo "$as_me:$LINENO: checking for $ac_word" >&5
3524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3525 if test "${ac_cv_prog_LEX+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   if test -n "$LEX"; then
3529   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534   IFS=$as_save_IFS
3535   test -z "$as_dir" && as_dir=.
3536   for ac_exec_ext in '' $ac_executable_extensions; do
3537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538     ac_cv_prog_LEX="$ac_prog"
3539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3540     break 2
3541   fi
3542 done
3543 done
3544
3545 fi
3546 fi
3547 LEX=$ac_cv_prog_LEX
3548 if test -n "$LEX"; then
3549   echo "$as_me:$LINENO: result: $LEX" >&5
3550 echo "${ECHO_T}$LEX" >&6
3551 else
3552   echo "$as_me:$LINENO: result: no" >&5
3553 echo "${ECHO_T}no" >&6
3554 fi
3555
3556   test -n "$LEX" && break
3557 done
3558 test -n "$LEX" || LEX=":"
3559
3560 if test -z "$LEXLIB"
3561 then
3562   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3563 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3564 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3565   echo $ECHO_N "(cached) $ECHO_C" >&6
3566 else
3567   ac_check_lib_save_LIBS=$LIBS
3568 LIBS="-lfl  $LIBS"
3569 cat >conftest.$ac_ext <<_ACEOF
3570 #line $LINENO "configure"
3571 /* confdefs.h.  */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h.  */
3576
3577 /* Override any gcc2 internal prototype to avoid an error.  */
3578 #ifdef __cplusplus
3579 extern "C"
3580 #endif
3581 /* We use char because int might match the return type of a gcc2
3582    builtin and then its argument prototype would still apply.  */
3583 char yywrap ();
3584 int
3585 main ()
3586 {
3587 yywrap ();
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 rm -f conftest.$ac_objext conftest$ac_exeext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3594   (eval $ac_link) 2>&5
3595   ac_status=$?
3596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597   (exit $ac_status); } &&
3598          { ac_try='test -s conftest$ac_exeext'
3599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600   (eval $ac_try) 2>&5
3601   ac_status=$?
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); }; }; then
3604   ac_cv_lib_fl_yywrap=yes
3605 else
3606   echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609 ac_cv_lib_fl_yywrap=no
3610 fi
3611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3612 LIBS=$ac_check_lib_save_LIBS
3613 fi
3614 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3615 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3616 if test $ac_cv_lib_fl_yywrap = yes; then
3617   LEXLIB="-lfl"
3618 else
3619   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3620 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3621 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3622   echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624   ac_check_lib_save_LIBS=$LIBS
3625 LIBS="-ll  $LIBS"
3626 cat >conftest.$ac_ext <<_ACEOF
3627 #line $LINENO "configure"
3628 /* confdefs.h.  */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h.  */
3633
3634 /* Override any gcc2 internal prototype to avoid an error.  */
3635 #ifdef __cplusplus
3636 extern "C"
3637 #endif
3638 /* We use char because int might match the return type of a gcc2
3639    builtin and then its argument prototype would still apply.  */
3640 char yywrap ();
3641 int
3642 main ()
3643 {
3644 yywrap ();
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 rm -f conftest.$ac_objext conftest$ac_exeext
3650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3651   (eval $ac_link) 2>&5
3652   ac_status=$?
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); } &&
3655          { ac_try='test -s conftest$ac_exeext'
3656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657   (eval $ac_try) 2>&5
3658   ac_status=$?
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); }; }; then
3661   ac_cv_lib_l_yywrap=yes
3662 else
3663   echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3665
3666 ac_cv_lib_l_yywrap=no
3667 fi
3668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3669 LIBS=$ac_check_lib_save_LIBS
3670 fi
3671 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3672 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3673 if test $ac_cv_lib_l_yywrap = yes; then
3674   LEXLIB="-ll"
3675 fi
3676
3677 fi
3678
3679 fi
3680
3681 if test "x$LEX" != "x:"; then
3682   echo "$as_me:$LINENO: checking lex output file root" >&5
3683 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3684 if test "${ac_cv_prog_lex_root+set}" = set; then
3685   echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687   # The minimal lex program is just a single line: %%.  But some broken lexes
3688 # (Solaris, I think it was) want two %% lines, so accommodate them.
3689 cat >conftest.l <<_ACEOF
3690 %%
3691 %%
3692 _ACEOF
3693 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3694   (eval $LEX conftest.l) 2>&5
3695   ac_status=$?
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); }
3698 if test -f lex.yy.c; then
3699   ac_cv_prog_lex_root=lex.yy
3700 elif test -f lexyy.c; then
3701   ac_cv_prog_lex_root=lexyy
3702 else
3703   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3704 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3705    { (exit 1); exit 1; }; }
3706 fi
3707 fi
3708 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3709 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3710 rm -f conftest.l
3711 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3712
3713 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3714 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3715 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3716   echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718   # POSIX says lex can declare yytext either as a pointer or an array; the
3719 # default is implementation-dependent. Figure out which it is, since
3720 # not all implementations provide the %pointer and %array declarations.
3721 ac_cv_prog_lex_yytext_pointer=no
3722 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3723 ac_save_LIBS=$LIBS
3724 LIBS="$LIBS $LEXLIB"
3725 cat >conftest.$ac_ext <<_ACEOF
3726 `cat $LEX_OUTPUT_ROOT.c`
3727 _ACEOF
3728 rm -f conftest.$ac_objext conftest$ac_exeext
3729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3730   (eval $ac_link) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); } &&
3734          { ac_try='test -s conftest$ac_exeext'
3735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736   (eval $ac_try) 2>&5
3737   ac_status=$?
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); }; }; then
3740   ac_cv_prog_lex_yytext_pointer=yes
3741 else
3742   echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 fi
3746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3747 LIBS=$ac_save_LIBS
3748 rm -f "${LEX_OUTPUT_ROOT}.c"
3749
3750 fi
3751 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3752 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3753 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3754
3755 cat >>confdefs.h <<\_ACEOF
3756 #define YYTEXT_POINTER 1
3757 _ACEOF
3758
3759 fi
3760
3761 fi
3762
3763 fi
3764 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3765 echo "${ECHO_T}$ac_cv_has_flex" >&6
3766 if test "$LEX" != "flex"; then
3767   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3768 echo "$as_me: error: flex not found but required" >&2;}
3769    { (exit 1); exit 1; }; }
3770 fi
3771
3772 echo "$as_me:$LINENO: checking " >&5
3773 echo $ECHO_N "checking ... $ECHO_C" >&6
3774 if test "${ac_cv_has_bison+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   for ac_prog in 'bison -y' byacc
3778 do
3779   # Extract the first word of "$ac_prog", so it can be a program name with args.
3780 set dummy $ac_prog; ac_word=$2
3781 echo "$as_me:$LINENO: checking for $ac_word" >&5
3782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3783 if test "${ac_cv_prog_YACC+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   if test -n "$YACC"; then
3787   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792   IFS=$as_save_IFS
3793   test -z "$as_dir" && as_dir=.
3794   for ac_exec_ext in '' $ac_executable_extensions; do
3795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796     ac_cv_prog_YACC="$ac_prog"
3797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3798     break 2
3799   fi
3800 done
3801 done
3802
3803 fi
3804 fi
3805 YACC=$ac_cv_prog_YACC
3806 if test -n "$YACC"; then
3807   echo "$as_me:$LINENO: result: $YACC" >&5
3808 echo "${ECHO_T}$YACC" >&6
3809 else
3810   echo "$as_me:$LINENO: result: no" >&5
3811 echo "${ECHO_T}no" >&6
3812 fi
3813
3814   test -n "$YACC" && break
3815 done
3816 test -n "$YACC" || YACC="yacc"
3817
3818
3819 fi
3820 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3821 echo "${ECHO_T}$ac_cv_has_bison" >&6
3822 if test "$YACC" != "bison -y"; then
3823   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3824 echo "$as_me: error: bison not found but required" >&2;}
3825    { (exit 1); exit 1; }; }
3826 else
3827   YACC=bison
3828
3829 fi
3830
3831
3832 # Check whether --enable-shared or --disable-shared was given.
3833 if test "${enable_shared+set}" = set; then
3834   enableval="$enable_shared"
3835   p=${PACKAGE-default}
3836     case $enableval in
3837     yes) enable_shared=yes ;;
3838     no) enable_shared=no ;;
3839     *)
3840       enable_shared=no
3841       # Look at the argument we got.  We use all the common list separators.
3842       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3843       for pkg in $enableval; do
3844         IFS="$lt_save_ifs"
3845         if test "X$pkg" = "X$p"; then
3846           enable_shared=yes
3847         fi
3848       done
3849       IFS="$lt_save_ifs"
3850       ;;
3851     esac
3852 else
3853   enable_shared=yes
3854 fi;
3855
3856 # Check whether --enable-static or --disable-static was given.
3857 if test "${enable_static+set}" = set; then
3858   enableval="$enable_static"
3859   p=${PACKAGE-default}
3860     case $enableval in
3861     yes) enable_static=yes ;;
3862     no) enable_static=no ;;
3863     *)
3864      enable_static=no
3865       # Look at the argument we got.  We use all the common list separators.
3866       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3867       for pkg in $enableval; do
3868         IFS="$lt_save_ifs"
3869         if test "X$pkg" = "X$p"; then
3870           enable_static=yes
3871         fi
3872       done
3873       IFS="$lt_save_ifs"
3874       ;;
3875     esac
3876 else
3877   enable_static=yes
3878 fi;
3879
3880 # Check whether --enable-fast-install or --disable-fast-install was given.
3881 if test "${enable_fast_install+set}" = set; then
3882   enableval="$enable_fast_install"
3883   p=${PACKAGE-default}
3884     case $enableval in
3885     yes) enable_fast_install=yes ;;
3886     no) enable_fast_install=no ;;
3887     *)
3888       enable_fast_install=no
3889       # Look at the argument we got.  We use all the common list separators.
3890       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3891       for pkg in $enableval; do
3892         IFS="$lt_save_ifs"
3893         if test "X$pkg" = "X$p"; then
3894           enable_fast_install=yes
3895         fi
3896       done
3897       IFS="$lt_save_ifs"
3898       ;;
3899     esac
3900 else
3901   enable_fast_install=yes
3902 fi;
3903
3904 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3905 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3906 if test "${lt_cv_path_SED+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   # Loop through the user's path and test for sed and gsed.
3910 # Then use that list of sed's as ones to test for truncation.
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916   for lt_ac_prog in sed gsed; do
3917     for ac_exec_ext in '' $ac_executable_extensions; do
3918       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3919         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3920       fi
3921     done
3922   done
3923 done
3924 lt_ac_max=0
3925 lt_ac_count=0
3926 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3927 # along with /bin/sed that truncates output.
3928 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3929   test ! -f $lt_ac_sed && break
3930   cat /dev/null > conftest.in
3931   lt_ac_count=0
3932   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3933   # Check for GNU sed and select it if it is found.
3934   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3935     lt_cv_path_SED=$lt_ac_sed
3936     break
3937   fi
3938   while true; do
3939     cat conftest.in conftest.in >conftest.tmp
3940     mv conftest.tmp conftest.in
3941     cp conftest.in conftest.nl
3942     echo >>conftest.nl
3943     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3944     cmp -s conftest.out conftest.nl || break
3945     # 10000 chars as input seems more than enough
3946     test $lt_ac_count -gt 10 && break
3947     lt_ac_count=`expr $lt_ac_count + 1`
3948     if test $lt_ac_count -gt $lt_ac_max; then
3949       lt_ac_max=$lt_ac_count
3950       lt_cv_path_SED=$lt_ac_sed
3951     fi
3952   done
3953 done
3954 SED=$lt_cv_path_SED
3955
3956 fi
3957
3958 echo "$as_me:$LINENO: result: $SED" >&5
3959 echo "${ECHO_T}$SED" >&6
3960
3961 echo "$as_me:$LINENO: checking for egrep" >&5
3962 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3963 if test "${ac_cv_prog_egrep+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3967     then ac_cv_prog_egrep='grep -E'
3968     else ac_cv_prog_egrep='egrep'
3969     fi
3970 fi
3971 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3972 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3973  EGREP=$ac_cv_prog_egrep
3974
3975
3976
3977 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3978 if test "${with_gnu_ld+set}" = set; then
3979   withval="$with_gnu_ld"
3980   test "$withval" = no || with_gnu_ld=yes
3981 else
3982   with_gnu_ld=no
3983 fi;
3984 ac_prog=ld
3985 if test "$GCC" = yes; then
3986   # Check if gcc -print-prog-name=ld gives a path.
3987   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3988 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3989   case $host in
3990   *-*-mingw*)
3991     # gcc leaves a trailing carriage return which upsets mingw
3992     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3993   *)
3994     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3995   esac
3996   case $ac_prog in
3997     # Accept absolute paths.
3998     [\\/]* | ?:[\\/]*)
3999       re_direlt='/[^/][^/]*/\.\./'
4000       # Canonicalize the path of ld
4001       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4002       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4003         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4004       done
4005       test -z "$LD" && LD="$ac_prog"
4006       ;;
4007   "")
4008     # If it fails, then pretend we aren't using GCC.
4009     ac_prog=ld
4010     ;;
4011   *)
4012     # If it is relative, then search for the first ld in PATH.
4013     with_gnu_ld=unknown
4014     ;;
4015   esac
4016 elif test "$with_gnu_ld" = yes; then
4017   echo "$as_me:$LINENO: checking for GNU ld" >&5
4018 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4019 else
4020   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4021 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4022 fi
4023 if test "${lt_cv_path_LD+set}" = set; then
4024   echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026   if test -z "$LD"; then
4027   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4028   for ac_dir in $PATH; do
4029     IFS="$lt_save_ifs"
4030     test -z "$ac_dir" && ac_dir=.
4031     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4032       lt_cv_path_LD="$ac_dir/$ac_prog"
4033       # Check to see if the program is GNU ld.  I'd rather use --version,
4034       # but apparently some GNU ld's only accept -v.
4035       # Break only if it was the GNU/non-GNU ld that we prefer.
4036       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4037       *GNU* | *'with BFD'*)
4038         test "$with_gnu_ld" != no && break
4039         ;;
4040       *)
4041         test "$with_gnu_ld" != yes && break
4042         ;;
4043       esac
4044     fi
4045   done
4046   IFS="$lt_save_ifs"
4047 else
4048   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4049 fi
4050 fi
4051
4052 LD="$lt_cv_path_LD"
4053 if test -n "$LD"; then
4054   echo "$as_me:$LINENO: result: $LD" >&5
4055 echo "${ECHO_T}$LD" >&6
4056 else
4057   echo "$as_me:$LINENO: result: no" >&5
4058 echo "${ECHO_T}no" >&6
4059 fi
4060 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4061 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4062    { (exit 1); exit 1; }; }
4063 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4064 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4065 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4066   echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4069 case `"$LD" -v 2>&1 </dev/null` in
4070 *GNU* | *'with BFD'*)
4071   lt_cv_prog_gnu_ld=yes
4072   ;;
4073 *)
4074   lt_cv_prog_gnu_ld=no
4075   ;;
4076 esac
4077 fi
4078 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4079 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4080 with_gnu_ld=$lt_cv_prog_gnu_ld
4081
4082
4083 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4084 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4085 if test "${lt_cv_ld_reload_flag+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   lt_cv_ld_reload_flag='-r'
4089 fi
4090 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4091 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4092 reload_flag=$lt_cv_ld_reload_flag
4093 case $reload_flag in
4094 "" | " "*) ;;
4095 *) reload_flag=" $reload_flag" ;;
4096 esac
4097 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4098
4099 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4100 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4101 if test "${lt_cv_path_NM+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   if test -n "$NM"; then
4105   # Let the user override the test.
4106   lt_cv_path_NM="$NM"
4107 else
4108   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4109   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4110     IFS="$lt_save_ifs"
4111     test -z "$ac_dir" && ac_dir=.
4112     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4113     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4114       # Check to see if the nm accepts a BSD-compat flag.
4115       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4116       #   nm: unknown option "B" ignored
4117       # Tru64's nm complains that /dev/null is an invalid object file
4118       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4119       */dev/null* | *'Invalid file or object type'*)
4120         lt_cv_path_NM="$tmp_nm -B"
4121         break
4122         ;;
4123       *)
4124         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4125         */dev/null*)
4126           lt_cv_path_NM="$tmp_nm -p"
4127           break
4128           ;;
4129         *)
4130           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4131           continue # so that we can try to find one that supports BSD flags
4132           ;;
4133         esac
4134       esac
4135     fi
4136   done
4137   IFS="$lt_save_ifs"
4138   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4139 fi
4140 fi
4141 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4142 echo "${ECHO_T}$lt_cv_path_NM" >&6
4143 NM="$lt_cv_path_NM"
4144
4145 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4146 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4147 LN_S=$as_ln_s
4148 if test "$LN_S" = "ln -s"; then
4149   echo "$as_me:$LINENO: result: yes" >&5
4150 echo "${ECHO_T}yes" >&6
4151 else
4152   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4153 echo "${ECHO_T}no, using $LN_S" >&6
4154 fi
4155
4156 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4157 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4158 if test "${lt_cv_deplibs_check_method+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   lt_cv_file_magic_cmd='$MAGIC_CMD'
4162 lt_cv_file_magic_test_file=
4163 lt_cv_deplibs_check_method='unknown'
4164 # Need to set the preceding variable on all platforms that support
4165 # interlibrary dependencies.
4166 # 'none' -- dependencies not supported.
4167 # `unknown' -- same as none, but documents that we really don't know.
4168 # 'pass_all' -- all dependencies passed with no checks.
4169 # 'test_compile' -- check by making test program.
4170 # 'file_magic [[regex]]' -- check by looking for files in library path
4171 # which responds to the $file_magic_cmd with a given extended regex.
4172 # If you have `file' or equivalent on your system and you're not sure
4173 # whether `pass_all' will *always* work, you probably want this one.
4174
4175 case $host_os in
4176 aix4* | aix5*)
4177   lt_cv_deplibs_check_method=pass_all
4178   ;;
4179
4180 beos*)
4181   lt_cv_deplibs_check_method=pass_all
4182   ;;
4183
4184 bsdi4*)
4185   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4186   lt_cv_file_magic_cmd='/usr/bin/file -L'
4187   lt_cv_file_magic_test_file=/shlib/libc.so
4188   ;;
4189
4190 cygwin* | mingw* | pw32*)
4191   # win32_libid is a shell function defined in ltmain.sh
4192   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4193   lt_cv_file_magic_cmd='win32_libid'
4194   ;;
4195
4196 darwin* | rhapsody*)
4197   # this will be overwritten by pass_all, but leave it in just in case
4198   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4199   lt_cv_file_magic_cmd='/usr/bin/file -L'
4200   case "$host_os" in
4201   rhapsody* | darwin1.[012])
4202     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4203     ;;
4204   *) # Darwin 1.3 on
4205     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4206     ;;
4207   esac
4208   lt_cv_deplibs_check_method=pass_all
4209   ;;
4210
4211 freebsd*)
4212   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4213     case $host_cpu in
4214     i*86 )
4215       # Not sure whether the presence of OpenBSD here was a mistake.
4216       # Let's accept both of them until this is cleared up.
4217       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4218       lt_cv_file_magic_cmd=/usr/bin/file
4219       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4220       ;;
4221     esac
4222   else
4223     lt_cv_deplibs_check_method=pass_all
4224   fi
4225   ;;
4226
4227 gnu*)
4228   lt_cv_deplibs_check_method=pass_all
4229   ;;
4230
4231 hpux10.20* | hpux11*)
4232   lt_cv_file_magic_cmd=/usr/bin/file
4233   case "$host_cpu" in
4234   ia64*)
4235     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4236     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4237     ;;
4238   hppa*64*)
4239     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]'
4240     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4241     ;;
4242   *)
4243     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4244     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4245     ;;
4246   esac
4247   ;;
4248
4249 irix5* | irix6* | nonstopux*)
4250   case $host_os in
4251   irix5* | nonstopux*)
4252     # this will be overridden with pass_all, but let us keep it just in case
4253     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4254     ;;
4255   *)
4256     case $LD in
4257     *-32|*"-32 ") libmagic=32-bit;;
4258     *-n32|*"-n32 ") libmagic=N32;;
4259     *-64|*"-64 ") libmagic=64-bit;;
4260     *) libmagic=never-match;;
4261     esac
4262     # this will be overridden with pass_all, but let us keep it just in case
4263     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4264     ;;
4265   esac
4266   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4267   lt_cv_deplibs_check_method=pass_all
4268   ;;
4269
4270 # This must be Linux ELF.
4271 linux*)
4272   case $host_cpu in
4273   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4274     lt_cv_deplibs_check_method=pass_all ;;
4275   *)
4276     # glibc up to 2.1.1 does not perform some relocations on ARM
4277     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4278   esac
4279   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4280   ;;
4281
4282 netbsd*)
4283   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4284     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4285   else
4286     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4287   fi
4288   ;;
4289
4290 newos6*)
4291   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4292   lt_cv_file_magic_cmd=/usr/bin/file
4293   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4294   ;;
4295
4296 nto-qnx)
4297   lt_cv_deplibs_check_method=unknown
4298   ;;
4299
4300 openbsd*)
4301   lt_cv_file_magic_cmd=/usr/bin/file
4302   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4303   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4304     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4305   else
4306     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4307   fi
4308   ;;
4309
4310 osf3* | osf4* | osf5*)
4311   # this will be overridden with pass_all, but let us keep it just in case
4312   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4313   lt_cv_file_magic_test_file=/shlib/libc.so
4314   lt_cv_deplibs_check_method=pass_all
4315   ;;
4316
4317 sco3.2v5*)
4318   lt_cv_deplibs_check_method=pass_all
4319   ;;
4320
4321 solaris*)
4322   lt_cv_deplibs_check_method=pass_all
4323   lt_cv_file_magic_test_file=/lib/libc.so
4324   ;;
4325
4326 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4327   case $host_vendor in
4328   motorola)
4329     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]'
4330     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4331     ;;
4332   ncr)
4333     lt_cv_deplibs_check_method=pass_all
4334     ;;
4335   sequent)
4336     lt_cv_file_magic_cmd='/bin/file'
4337     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4338     ;;
4339   sni)
4340     lt_cv_file_magic_cmd='/bin/file'
4341     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4342     lt_cv_file_magic_test_file=/lib/libc.so
4343     ;;
4344   siemens)
4345     lt_cv_deplibs_check_method=pass_all
4346     ;;
4347   esac
4348   ;;
4349
4350 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4351   lt_cv_deplibs_check_method=pass_all
4352   ;;
4353 esac
4354
4355 fi
4356 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4357 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4358 file_magic_cmd=$lt_cv_file_magic_cmd
4359 deplibs_check_method=$lt_cv_deplibs_check_method
4360 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4361
4362
4363
4364
4365 # If no C compiler was specified, use CC.
4366 LTCC=${LTCC-"$CC"}
4367
4368 # Allow CC to be a program name with arguments.
4369 compiler=$CC
4370
4371 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4372 if test "${enable_libtool_lock+set}" = set; then
4373   enableval="$enable_libtool_lock"
4374
4375 fi;
4376 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4377
4378 # Some flags need to be propagated to the compiler or linker for good
4379 # libtool support.
4380 case $host in
4381 ia64-*-hpux*)
4382   # Find out which ABI we are using.
4383   echo 'int i;' > conftest.$ac_ext
4384   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385   (eval $ac_compile) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; then
4389     case `/usr/bin/file conftest.$ac_objext` in
4390     *ELF-32*)
4391       HPUX_IA64_MODE="32"
4392       ;;
4393     *ELF-64*)
4394       HPUX_IA64_MODE="64"
4395       ;;
4396     esac
4397   fi
4398   rm -rf conftest*
4399   ;;
4400 *-*-irix6*)
4401   # Find out which ABI we are using.
4402   echo '#line 4402 "configure"' > conftest.$ac_ext
4403   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404   (eval $ac_compile) 2>&5
4405   ac_status=$?
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); }; then
4408    if test "$lt_cv_prog_gnu_ld" = yes; then
4409     case `/usr/bin/file conftest.$ac_objext` in
4410     *32-bit*)
4411       LD="${LD-ld} -melf32bsmip"
4412       ;;
4413     *N32*)
4414       LD="${LD-ld} -melf32bmipn32"
4415       ;;
4416     *64-bit*)
4417       LD="${LD-ld} -melf64bmip"
4418       ;;
4419     esac
4420    else
4421     case `/usr/bin/file conftest.$ac_objext` in
4422     *32-bit*)
4423       LD="${LD-ld} -32"
4424       ;;
4425     *N32*)
4426       LD="${LD-ld} -n32"
4427       ;;
4428     *64-bit*)
4429       LD="${LD-ld} -64"
4430       ;;
4431     esac
4432    fi
4433   fi
4434   rm -rf conftest*
4435   ;;
4436
4437 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4438   # Find out which ABI we are using.
4439   echo 'int i;' > conftest.$ac_ext
4440   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4441   (eval $ac_compile) 2>&5
4442   ac_status=$?
4443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444   (exit $ac_status); }; then
4445     case "`/usr/bin/file conftest.o`" in
4446     *32-bit*)
4447       case $host in
4448         x86_64-*linux*)
4449           LD="${LD-ld} -m elf_i386"
4450           ;;
4451         ppc64-*linux*)
4452           LD="${LD-ld} -m elf32ppclinux"
4453           ;;
4454         s390x-*linux*)
4455           LD="${LD-ld} -m elf_s390"
4456           ;;
4457         sparc64-*linux*)
4458           LD="${LD-ld} -m elf32_sparc"
4459           ;;
4460       esac
4461       ;;
4462     *64-bit*)
4463       case $host in
4464         x86_64-*linux*)
4465           LD="${LD-ld} -m elf_x86_64"
4466           ;;
4467         ppc*-*linux*|powerpc*-*linux*)
4468           LD="${LD-ld} -m elf64ppc"
4469           ;;
4470         s390*-*linux*)
4471           LD="${LD-ld} -m elf64_s390"
4472           ;;
4473         sparc*-*linux*)
4474           LD="${LD-ld} -m elf64_sparc"
4475           ;;
4476       esac
4477       ;;
4478     esac
4479   fi
4480   rm -rf conftest*
4481   ;;
4482
4483 *-*-sco3.2v5*)
4484   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4485   SAVE_CFLAGS="$CFLAGS"
4486   CFLAGS="$CFLAGS -belf"
4487   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4488 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4489 if test "${lt_cv_cc_needs_belf+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   ac_ext=c
4493 ac_cpp='$CPP $CPPFLAGS'
4494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497
4498      cat >conftest.$ac_ext <<_ACEOF
4499 #line $LINENO "configure"
4500 /* confdefs.h.  */
4501 _ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h.  */
4505
4506 int
4507 main ()
4508 {
4509
4510   ;
4511   return 0;
4512 }
4513 _ACEOF
4514 rm -f conftest.$ac_objext conftest$ac_exeext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4516   (eval $ac_link) 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); } &&
4520          { ac_try='test -s conftest$ac_exeext'
4521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522   (eval $ac_try) 2>&5
4523   ac_status=$?
4524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); }; }; then
4526   lt_cv_cc_needs_belf=yes
4527 else
4528   echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4530
4531 lt_cv_cc_needs_belf=no
4532 fi
4533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4534      ac_ext=c
4535 ac_cpp='$CPP $CPPFLAGS'
4536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539
4540 fi
4541 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4542 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4543   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4544     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4545     CFLAGS="$SAVE_CFLAGS"
4546   fi
4547   ;;
4548
4549 esac
4550
4551 need_locks="$enable_libtool_lock"
4552
4553
4554
4555 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4556 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4557 if test "${ac_cv_header_stdc+set}" = set; then
4558   echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560   cat >conftest.$ac_ext <<_ACEOF
4561 #line $LINENO "configure"
4562 /* confdefs.h.  */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h.  */
4567 #include <stdlib.h>
4568 #include <stdarg.h>
4569 #include <string.h>
4570 #include <float.h>
4571
4572 int
4573 main ()
4574 {
4575
4576   ;
4577   return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582   (eval $ac_compile) 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); } &&
4586          { ac_try='test -s conftest.$ac_objext'
4587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588   (eval $ac_try) 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); }; }; then
4592   ac_cv_header_stdc=yes
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597 ac_cv_header_stdc=no
4598 fi
4599 rm -f conftest.$ac_objext conftest.$ac_ext
4600
4601 if test $ac_cv_header_stdc = yes; then
4602   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4603   cat >conftest.$ac_ext <<_ACEOF
4604 #line $LINENO "configure"
4605 /* confdefs.h.  */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h.  */
4610 #include <string.h>
4611
4612 _ACEOF
4613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4614   $EGREP "memchr" >/dev/null 2>&1; then
4615   :
4616 else
4617   ac_cv_header_stdc=no
4618 fi
4619 rm -f conftest*
4620
4621 fi
4622
4623 if test $ac_cv_header_stdc = yes; then
4624   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4625   cat >conftest.$ac_ext <<_ACEOF
4626 #line $LINENO "configure"
4627 /* confdefs.h.  */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h.  */
4632 #include <stdlib.h>
4633
4634 _ACEOF
4635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4636   $EGREP "free" >/dev/null 2>&1; then
4637   :
4638 else
4639   ac_cv_header_stdc=no
4640 fi
4641 rm -f conftest*
4642
4643 fi
4644
4645 if test $ac_cv_header_stdc = yes; then
4646   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4647   if test "$cross_compiling" = yes; then
4648   :
4649 else
4650   cat >conftest.$ac_ext <<_ACEOF
4651 #line $LINENO "configure"
4652 /* confdefs.h.  */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h.  */
4657 #include <ctype.h>
4658 #if ((' ' & 0x0FF) == 0x020)
4659 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4660 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4661 #else
4662 # define ISLOWER(c) \
4663                    (('a' <= (c) && (c) <= 'i') \
4664                      || ('j' <= (c) && (c) <= 'r') \
4665                      || ('s' <= (c) && (c) <= 'z'))
4666 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4667 #endif
4668
4669 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4670 int
4671 main ()
4672 {
4673   int i;
4674   for (i = 0; i < 256; i++)
4675     if (XOR (islower (i), ISLOWER (i))
4676         || toupper (i) != TOUPPER (i))
4677       exit(2);
4678   exit (0);
4679 }
4680 _ACEOF
4681 rm -f conftest$ac_exeext
4682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4683   (eval $ac_link) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688   (eval $ac_try) 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); }; }; then
4692   :
4693 else
4694   echo "$as_me: program exited with status $ac_status" >&5
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 ( exit $ac_status )
4699 ac_cv_header_stdc=no
4700 fi
4701 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4702 fi
4703 fi
4704 fi
4705 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4706 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4707 if test $ac_cv_header_stdc = yes; then
4708
4709 cat >>confdefs.h <<\_ACEOF
4710 #define STDC_HEADERS 1
4711 _ACEOF
4712
4713 fi
4714
4715 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4726                   inttypes.h stdint.h unistd.h
4727 do
4728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4729 echo "$as_me:$LINENO: checking for $ac_header" >&5
4730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4732   echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734   cat >conftest.$ac_ext <<_ACEOF
4735 #line $LINENO "configure"
4736 /* confdefs.h.  */
4737 _ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h.  */
4741 $ac_includes_default
4742
4743 #include <$ac_header>
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747   (eval $ac_compile) 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); } &&
4751          { ac_try='test -s conftest.$ac_objext'
4752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753   (eval $ac_try) 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }; }; then
4757   eval "$as_ac_Header=yes"
4758 else
4759   echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4761
4762 eval "$as_ac_Header=no"
4763 fi
4764 rm -f conftest.$ac_objext conftest.$ac_ext
4765 fi
4766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4769   cat >>confdefs.h <<_ACEOF
4770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4771 _ACEOF
4772
4773 fi
4774
4775 done
4776
4777
4778
4779 for ac_header in dlfcn.h
4780 do
4781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783   echo "$as_me:$LINENO: checking for $ac_header" >&5
4784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 fi
4788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4790 else
4791   # Is the header compilable?
4792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4794 cat >conftest.$ac_ext <<_ACEOF
4795 #line $LINENO "configure"
4796 /* confdefs.h.  */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h.  */
4801 $ac_includes_default
4802 #include <$ac_header>
4803 _ACEOF
4804 rm -f conftest.$ac_objext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806   (eval $ac_compile) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); } &&
4810          { ac_try='test -s conftest.$ac_objext'
4811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812   (eval $ac_try) 2>&5
4813   ac_status=$?
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); }; }; then
4816   ac_header_compiler=yes
4817 else
4818   echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4820
4821 ac_header_compiler=no
4822 fi
4823 rm -f conftest.$ac_objext conftest.$ac_ext
4824 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4825 echo "${ECHO_T}$ac_header_compiler" >&6
4826
4827 # Is the header present?
4828 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4830 cat >conftest.$ac_ext <<_ACEOF
4831 #line $LINENO "configure"
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837 #include <$ac_header>
4838 _ACEOF
4839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4841   ac_status=$?
4842   grep -v '^ *+' conftest.er1 >conftest.err
4843   rm -f conftest.er1
4844   cat conftest.err >&5
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); } >/dev/null; then
4847   if test -s conftest.err; then
4848     ac_cpp_err=$ac_c_preproc_warn_flag
4849   else
4850     ac_cpp_err=
4851   fi
4852 else
4853   ac_cpp_err=yes
4854 fi
4855 if test -z "$ac_cpp_err"; then
4856   ac_header_preproc=yes
4857 else
4858   echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4860
4861   ac_header_preproc=no
4862 fi
4863 rm -f conftest.err conftest.$ac_ext
4864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4865 echo "${ECHO_T}$ac_header_preproc" >&6
4866
4867 # So?  What about this header?
4868 case $ac_header_compiler:$ac_header_preproc in
4869   yes:no )
4870     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4874     (
4875       cat <<\_ASBOX
4876 ## ------------------------------------ ##
4877 ## Report this to bug-autoconf@gnu.org. ##
4878 ## ------------------------------------ ##
4879 _ASBOX
4880     ) |
4881       sed "s/^/$as_me: WARNING:     /" >&2
4882     ;;
4883   no:yes )
4884     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4886     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4890     (
4891       cat <<\_ASBOX
4892 ## ------------------------------------ ##
4893 ## Report this to bug-autoconf@gnu.org. ##
4894 ## ------------------------------------ ##
4895 _ASBOX
4896     ) |
4897       sed "s/^/$as_me: WARNING:     /" >&2
4898     ;;
4899 esac
4900 echo "$as_me:$LINENO: checking for $ac_header" >&5
4901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   eval "$as_ac_Header=$ac_header_preproc"
4906 fi
4907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4909
4910 fi
4911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4912   cat >>confdefs.h <<_ACEOF
4913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4914 _ACEOF
4915
4916 fi
4917
4918 done
4919
4920 ac_ext=cc
4921 ac_cpp='$CXXCPP $CPPFLAGS'
4922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4925 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4926 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4927 if test -z "$CXXCPP"; then
4928   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931       # Double quotes because CXXCPP needs to be expanded
4932     for CXXCPP in "$CXX -E" "/lib/cpp"
4933     do
4934       ac_preproc_ok=false
4935 for ac_cxx_preproc_warn_flag in '' yes
4936 do
4937   # Use a header file that comes with gcc, so configuring glibc
4938   # with a fresh cross-compiler works.
4939   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4940   # <limits.h> exists even on freestanding compilers.
4941   # On the NeXT, cc -E runs the code through the compiler's parser,
4942   # not just through cpp. "Syntax error" is here to catch this case.
4943   cat >conftest.$ac_ext <<_ACEOF
4944 #line $LINENO "configure"
4945 /* confdefs.h.  */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h.  */
4950 #ifdef __STDC__
4951 # include <limits.h>
4952 #else
4953 # include <assert.h>
4954 #endif
4955                      Syntax error
4956 _ACEOF
4957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4958   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4959   ac_status=$?
4960   grep -v '^ *+' conftest.er1 >conftest.err
4961   rm -f conftest.er1
4962   cat conftest.err >&5
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } >/dev/null; then
4965   if test -s conftest.err; then
4966     ac_cpp_err=$ac_cxx_preproc_warn_flag
4967   else
4968     ac_cpp_err=
4969   fi
4970 else
4971   ac_cpp_err=yes
4972 fi
4973 if test -z "$ac_cpp_err"; then
4974   :
4975 else
4976   echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979   # Broken: fails on valid input.
4980 continue
4981 fi
4982 rm -f conftest.err conftest.$ac_ext
4983
4984   # OK, works on sane cases.  Now check whether non-existent headers
4985   # can be detected and how.
4986   cat >conftest.$ac_ext <<_ACEOF
4987 #line $LINENO "configure"
4988 /* confdefs.h.  */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h.  */
4993 #include <ac_nonexistent.h>
4994 _ACEOF
4995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4997   ac_status=$?
4998   grep -v '^ *+' conftest.er1 >conftest.err
4999   rm -f conftest.er1
5000   cat conftest.err >&5
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); } >/dev/null; then
5003   if test -s conftest.err; then
5004     ac_cpp_err=$ac_cxx_preproc_warn_flag
5005   else
5006     ac_cpp_err=
5007   fi
5008 else
5009   ac_cpp_err=yes
5010 fi
5011 if test -z "$ac_cpp_err"; then
5012   # Broken: success on invalid input.
5013 continue
5014 else
5015   echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5017
5018   # Passes both tests.
5019 ac_preproc_ok=:
5020 break
5021 fi
5022 rm -f conftest.err conftest.$ac_ext
5023
5024 done
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.err conftest.$ac_ext
5027 if $ac_preproc_ok; then
5028   break
5029 fi
5030
5031     done
5032     ac_cv_prog_CXXCPP=$CXXCPP
5033
5034 fi
5035   CXXCPP=$ac_cv_prog_CXXCPP
5036 else
5037   ac_cv_prog_CXXCPP=$CXXCPP
5038 fi
5039 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5040 echo "${ECHO_T}$CXXCPP" >&6
5041 ac_preproc_ok=false
5042 for ac_cxx_preproc_warn_flag in '' yes
5043 do
5044   # Use a header file that comes with gcc, so configuring glibc
5045   # with a fresh cross-compiler works.
5046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047   # <limits.h> exists even on freestanding compilers.
5048   # On the NeXT, cc -E runs the code through the compiler's parser,
5049   # not just through cpp. "Syntax error" is here to catch this case.
5050   cat >conftest.$ac_ext <<_ACEOF
5051 #line $LINENO "configure"
5052 /* confdefs.h.  */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h.  */
5057 #ifdef __STDC__
5058 # include <limits.h>
5059 #else
5060 # include <assert.h>
5061 #endif
5062                      Syntax error
5063 _ACEOF
5064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5066   ac_status=$?
5067   grep -v '^ *+' conftest.er1 >conftest.err
5068   rm -f conftest.er1
5069   cat conftest.err >&5
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); } >/dev/null; then
5072   if test -s conftest.err; then
5073     ac_cpp_err=$ac_cxx_preproc_warn_flag
5074   else
5075     ac_cpp_err=
5076   fi
5077 else
5078   ac_cpp_err=yes
5079 fi
5080 if test -z "$ac_cpp_err"; then
5081   :
5082 else
5083   echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5085
5086   # Broken: fails on valid input.
5087 continue
5088 fi
5089 rm -f conftest.err conftest.$ac_ext
5090
5091   # OK, works on sane cases.  Now check whether non-existent headers
5092   # can be detected and how.
5093   cat >conftest.$ac_ext <<_ACEOF
5094 #line $LINENO "configure"
5095 /* confdefs.h.  */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h.  */
5100 #include <ac_nonexistent.h>
5101 _ACEOF
5102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5103   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5104   ac_status=$?
5105   grep -v '^ *+' conftest.er1 >conftest.err
5106   rm -f conftest.er1
5107   cat conftest.err >&5
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); } >/dev/null; then
5110   if test -s conftest.err; then
5111     ac_cpp_err=$ac_cxx_preproc_warn_flag
5112   else
5113     ac_cpp_err=
5114   fi
5115 else
5116   ac_cpp_err=yes
5117 fi
5118 if test -z "$ac_cpp_err"; then
5119   # Broken: success on invalid input.
5120 continue
5121 else
5122   echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5124
5125   # Passes both tests.
5126 ac_preproc_ok=:
5127 break
5128 fi
5129 rm -f conftest.err conftest.$ac_ext
5130
5131 done
5132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5133 rm -f conftest.err conftest.$ac_ext
5134 if $ac_preproc_ok; then
5135   :
5136 else
5137   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5138 See \`config.log' for more details." >&5
5139 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5140 See \`config.log' for more details." >&2;}
5141    { (exit 1); exit 1; }; }
5142 fi
5143
5144 ac_ext=cc
5145 ac_cpp='$CXXCPP $CPPFLAGS'
5146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5149
5150
5151 ac_ext=f
5152 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5153 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5155 if test -n "$ac_tool_prefix"; then
5156   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5157   do
5158     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_F77+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   if test -n "$F77"; then
5166   ac_cv_prog_F77="$F77" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173   for ac_exec_ext in '' $ac_executable_extensions; do
5174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177     break 2
5178   fi
5179 done
5180 done
5181
5182 fi
5183 fi
5184 F77=$ac_cv_prog_F77
5185 if test -n "$F77"; then
5186   echo "$as_me:$LINENO: result: $F77" >&5
5187 echo "${ECHO_T}$F77" >&6
5188 else
5189   echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5191 fi
5192
5193     test -n "$F77" && break
5194   done
5195 fi
5196 if test -z "$F77"; then
5197   ac_ct_F77=$F77
5198   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5199 do
5200   # Extract the first word of "$ac_prog", so it can be a program name with args.
5201 set dummy $ac_prog; ac_word=$2
5202 echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5205   echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207   if test -n "$ac_ct_F77"; then
5208   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213   IFS=$as_save_IFS
5214   test -z "$as_dir" && as_dir=.
5215   for ac_exec_ext in '' $ac_executable_extensions; do
5216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217     ac_cv_prog_ac_ct_F77="$ac_prog"
5218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219     break 2
5220   fi
5221 done
5222 done
5223
5224 fi
5225 fi
5226 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5227 if test -n "$ac_ct_F77"; then
5228   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5229 echo "${ECHO_T}$ac_ct_F77" >&6
5230 else
5231   echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6
5233 fi
5234
5235   test -n "$ac_ct_F77" && break
5236 done
5237
5238   F77=$ac_ct_F77
5239 fi
5240
5241
5242 # Provide some information about the compiler.
5243 echo "$as_me:5243:" \
5244      "checking for Fortran 77 compiler version" >&5
5245 ac_compiler=`set X $ac_compile; echo $2`
5246 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5247   (eval $ac_compiler --version </dev/null >&5) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); }
5251 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5252   (eval $ac_compiler -v </dev/null >&5) 2>&5
5253   ac_status=$?
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); }
5256 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5257   (eval $ac_compiler -V </dev/null >&5) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }
5261
5262 # If we don't use `.F' as extension, the preprocessor is not run on the
5263 # input file.
5264 ac_save_ext=$ac_ext
5265 ac_ext=F
5266 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5267 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5268 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   cat >conftest.$ac_ext <<_ACEOF
5272       program main
5273 #ifndef __GNUC__
5274        choke me
5275 #endif
5276
5277       end
5278 _ACEOF
5279 rm -f conftest.$ac_objext
5280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281   (eval $ac_compile) 2>&5
5282   ac_status=$?
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); } &&
5285          { ac_try='test -s conftest.$ac_objext'
5286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287   (eval $ac_try) 2>&5
5288   ac_status=$?
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); }; }; then
5291   ac_compiler_gnu=yes
5292 else
5293   echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5295
5296 ac_compiler_gnu=no
5297 fi
5298 rm -f conftest.$ac_objext conftest.$ac_ext
5299 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5300
5301 fi
5302 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5303 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5304 ac_ext=$ac_save_ext
5305 G77=`test $ac_compiler_gnu = yes && echo yes`
5306 ac_test_FFLAGS=${FFLAGS+set}
5307 ac_save_FFLAGS=$FFLAGS
5308 FFLAGS=
5309 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5310 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5311 if test "${ac_cv_prog_f77_g+set}" = set; then
5312   echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314   FFLAGS=-g
5315 cat >conftest.$ac_ext <<_ACEOF
5316       program main
5317
5318       end
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322   (eval $ac_compile) 2>&5
5323   ac_status=$?
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); } &&
5326          { ac_try='test -s conftest.$ac_objext'
5327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328   (eval $ac_try) 2>&5
5329   ac_status=$?
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); }; }; then
5332   ac_cv_prog_f77_g=yes
5333 else
5334   echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5336
5337 ac_cv_prog_f77_g=no
5338 fi
5339 rm -f conftest.$ac_objext conftest.$ac_ext
5340
5341 fi
5342 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5343 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5344 if test "$ac_test_FFLAGS" = set; then
5345   FFLAGS=$ac_save_FFLAGS
5346 elif test $ac_cv_prog_f77_g = yes; then
5347   if test "$G77" = yes; then
5348     FFLAGS="-g -O2"
5349   else
5350     FFLAGS="-g"
5351   fi
5352 else
5353   if test "$G77" = yes; then
5354     FFLAGS="-O2"
5355   else
5356     FFLAGS=
5357   fi
5358 fi
5359 ac_ext=c
5360 ac_cpp='$CPP $CPPFLAGS'
5361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5364
5365
5366
5367 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5368
5369 # find the maximum length of command line arguments
5370 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5371 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5372 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5373   echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375     i=0
5376   testring="ABCD"
5377
5378   case $build_os in
5379   msdosdjgpp*)
5380     # On DJGPP, this test can blow up pretty badly due to problems in libc
5381     # (any single argument exceeding 2000 bytes causes a buffer overrun
5382     # during glob expansion).  Even if it were fixed, the result of this
5383     # check would be larger than it should be.
5384     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5385     ;;
5386
5387   gnu*)
5388     # Under GNU Hurd, this test is not required because there is
5389     # no limit to the length of command line arguments.
5390     # Libtool will interpret -1 as no limit whatsoever
5391     lt_cv_sys_max_cmd_len=-1;
5392     ;;
5393
5394   cygwin* | mingw*)
5395     # On Win9x/ME, this test blows up -- it succeeds, but takes
5396     # about 5 minutes as the teststring grows exponentially.
5397     # Worse, since 9x/ME are not pre-emptively multitasking,
5398     # you end up with a "frozen" computer, even though with patience
5399     # the test eventually succeeds (with a max line length of 256k).
5400     # Instead, let's just punt: use the minimum linelength reported by
5401     # all of the supported platforms: 8192 (on NT/2K/XP).
5402     lt_cv_sys_max_cmd_len=8192;
5403     ;;
5404
5405  *)
5406     # If test is not a shell built-in, we'll probably end up computing a
5407     # maximum length that is only half of the actual maximum length, but
5408     # we can't tell.
5409     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5410                = "XX$testring") >/dev/null 2>&1 &&
5411             new_result=`expr "X$testring" : ".*" 2>&1` &&
5412             lt_cv_sys_max_cmd_len=$new_result &&
5413             test $i != 17 # 1/2 MB should be enough
5414     do
5415       i=`expr $i + 1`
5416       testring=$testring$testring
5417     done
5418     testring=
5419     # Add a significant safety factor because C++ compilers can tack on massive
5420     # amounts of additional arguments before passing them to the linker.
5421     # It appears as though 1/2 is a usable value.
5422     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5423     ;;
5424   esac
5425
5426 fi
5427
5428 if test -n $lt_cv_sys_max_cmd_len ; then
5429   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5430 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5431 else
5432   echo "$as_me:$LINENO: result: none" >&5
5433 echo "${ECHO_T}none" >&6
5434 fi
5435
5436
5437
5438
5439 # Check for command to grab the raw symbol name followed by C symbol from nm.
5440 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5441 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5442 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5443   echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445
5446 # These are sane defaults that work on at least a few old systems.
5447 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5448
5449 # Character class describing NM global symbol codes.
5450 symcode='[BCDEGRST]'
5451
5452 # Regexp to match symbols that can be accessed directly from C.
5453 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5454
5455 # Transform the above into a raw symbol and a C symbol.
5456 symxfrm='\1 \2\3 \3'
5457
5458 # Transform an extracted symbol line into a proper C declaration
5459 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5460
5461 # Transform an extracted symbol line into symbol name and symbol address
5462 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'"
5463
5464 # Define system-specific variables.
5465 case $host_os in
5466 aix*)
5467   symcode='[BCDT]'
5468   ;;
5469 cygwin* | mingw* | pw32*)
5470   symcode='[ABCDGISTW]'
5471   ;;
5472 hpux*) # Its linker distinguishes data from code symbols
5473   if test "$host_cpu" = ia64; then
5474     symcode='[ABCDEGRST]'
5475   fi
5476   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5477   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'"
5478   ;;
5479 irix* | nonstopux*)
5480   symcode='[BCDEGRST]'
5481   ;;
5482 osf*)
5483   symcode='[BCDEGQRST]'
5484   ;;
5485 solaris* | sysv5*)
5486   symcode='[BDT]'
5487   ;;
5488 sysv4)
5489   symcode='[DFNSTU]'
5490   ;;
5491 esac
5492
5493 # Handle CRLF in mingw tool chain
5494 opt_cr=
5495 case $build_os in
5496 mingw*)
5497   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5498   ;;
5499 esac
5500
5501 # If we're using GNU nm, then use its standard symbol codes.
5502 case `$NM -V 2>&1` in
5503 *GNU* | *'with BFD'*)
5504   symcode='[ABCDGISTW]' ;;
5505 esac
5506
5507 # Try without a prefix undercore, then with it.
5508 for ac_symprfx in "" "_"; do
5509
5510   # Write the raw and C identifiers.
5511   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5512
5513   # Check to see that the pipe works correctly.
5514   pipe_works=no
5515
5516   rm -f conftest*
5517   cat > conftest.$ac_ext <<EOF
5518 #ifdef __cplusplus
5519 extern "C" {
5520 #endif
5521 char nm_test_var;
5522 void nm_test_func(){}
5523 #ifdef __cplusplus
5524 }
5525 #endif
5526 int main(){nm_test_var='a';nm_test_func();return(0);}
5527 EOF
5528
5529   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5530   (eval $ac_compile) 2>&5
5531   ac_status=$?
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); }; then
5534     # Now try to grab the symbols.
5535     nlist=conftest.nm
5536     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5537   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5538   ac_status=$?
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } && test -s "$nlist"; then
5541       # Try sorting and uniquifying the output.
5542       if sort "$nlist" | uniq > "$nlist"T; then
5543         mv -f "$nlist"T "$nlist"
5544       else
5545         rm -f "$nlist"T
5546       fi
5547
5548       # Make sure that we snagged all the symbols we need.
5549       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5550         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5551           cat <<EOF > conftest.$ac_ext
5552 #ifdef __cplusplus
5553 extern "C" {
5554 #endif
5555
5556 EOF
5557           # Now generate the symbol file.
5558           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5559
5560           cat <<EOF >> conftest.$ac_ext
5561 #if defined (__STDC__) && __STDC__
5562 # define lt_ptr_t void *
5563 #else
5564 # define lt_ptr_t char *
5565 # define const
5566 #endif
5567
5568 /* The mapping between symbol names and symbols. */
5569 const struct {
5570   const char *name;
5571   lt_ptr_t address;
5572 }
5573 lt_preloaded_symbols[] =
5574 {
5575 EOF
5576           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5577           cat <<\EOF >> conftest.$ac_ext
5578   {0, (lt_ptr_t) 0}
5579 };
5580
5581 #ifdef __cplusplus
5582 }
5583 #endif
5584 EOF
5585           # Now try linking the two files.
5586           mv conftest.$ac_objext conftstm.$ac_objext
5587           lt_save_LIBS="$LIBS"
5588           lt_save_CFLAGS="$CFLAGS"
5589           LIBS="conftstm.$ac_objext"
5590           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5591           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592   (eval $ac_link) 2>&5
5593   ac_status=$?
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5596             pipe_works=yes
5597           fi
5598           LIBS="$lt_save_LIBS"
5599           CFLAGS="$lt_save_CFLAGS"
5600         else
5601           echo "cannot find nm_test_func in $nlist" >&5
5602         fi
5603       else
5604         echo "cannot find nm_test_var in $nlist" >&5
5605       fi
5606     else
5607       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5608     fi
5609   else
5610     echo "$progname: failed program was:" >&5
5611     cat conftest.$ac_ext >&5
5612   fi
5613   rm -f conftest* conftst*
5614
5615   # Do not use the global_symbol_pipe unless it works.
5616   if test "$pipe_works" = yes; then
5617     break
5618   else
5619     lt_cv_sys_global_symbol_pipe=
5620   fi
5621 done
5622
5623 fi
5624
5625 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5626   lt_cv_sys_global_symbol_to_cdecl=
5627 fi
5628 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5629   echo "$as_me:$LINENO: result: failed" >&5
5630 echo "${ECHO_T}failed" >&6
5631 else
5632   echo "$as_me:$LINENO: result: ok" >&5
5633 echo "${ECHO_T}ok" >&6
5634 fi
5635
5636 echo "$as_me:$LINENO: checking for objdir" >&5
5637 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5638 if test "${lt_cv_objdir+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   rm -f .libs 2>/dev/null
5642 mkdir .libs 2>/dev/null
5643 if test -d .libs; then
5644   lt_cv_objdir=.libs
5645 else
5646   # MS-DOS does not allow filenames that begin with a dot.
5647   lt_cv_objdir=_libs
5648 fi
5649 rmdir .libs 2>/dev/null
5650 fi
5651 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5652 echo "${ECHO_T}$lt_cv_objdir" >&6
5653 objdir=$lt_cv_objdir
5654
5655
5656
5657
5658
5659 case $host_os in
5660 aix3*)
5661   # AIX sometimes has problems with the GCC collect2 program.  For some
5662   # reason, if we set the COLLECT_NAMES environment variable, the problems
5663   # vanish in a puff of smoke.
5664   if test "X${COLLECT_NAMES+set}" != Xset; then
5665     COLLECT_NAMES=
5666     export COLLECT_NAMES
5667   fi
5668   ;;
5669 esac
5670
5671 # Sed substitution that helps us do robust quoting.  It backslashifies
5672 # metacharacters that are still active within double-quoted strings.
5673 Xsed='sed -e s/^X//'
5674 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5675
5676 # Same as above, but do not quote variable references.
5677 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5678
5679 # Sed substitution to delay expansion of an escaped shell variable in a
5680 # double_quote_subst'ed string.
5681 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5682
5683 # Sed substitution to avoid accidental globbing in evaled expressions
5684 no_glob_subst='s/\*/\\\*/g'
5685
5686 # Constants:
5687 rm="rm -f"
5688
5689 # Global variables:
5690 default_ofile=mklib
5691 can_build_shared=yes
5692
5693 # All known linkers require a `.a' archive for static linking (except M$VC,
5694 # which needs '.lib').
5695 libext=a
5696 ltmain="$ac_aux_dir/ltmain.sh"
5697 ofile="$default_ofile"
5698 with_gnu_ld="$lt_cv_prog_gnu_ld"
5699
5700 if test -n "$ac_tool_prefix"; then
5701   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5702 set dummy ${ac_tool_prefix}ar; ac_word=$2
5703 echo "$as_me:$LINENO: checking for $ac_word" >&5
5704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5705 if test "${ac_cv_prog_AR+set}" = set; then
5706   echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708   if test -n "$AR"; then
5709   ac_cv_prog_AR="$AR" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714   IFS=$as_save_IFS
5715   test -z "$as_dir" && as_dir=.
5716   for ac_exec_ext in '' $ac_executable_extensions; do
5717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718     ac_cv_prog_AR="${ac_tool_prefix}ar"
5719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5720     break 2
5721   fi
5722 done
5723 done
5724
5725 fi
5726 fi
5727 AR=$ac_cv_prog_AR
5728 if test -n "$AR"; then
5729   echo "$as_me:$LINENO: result: $AR" >&5
5730 echo "${ECHO_T}$AR" >&6
5731 else
5732   echo "$as_me:$LINENO: result: no" >&5
5733 echo "${ECHO_T}no" >&6
5734 fi
5735
5736 fi
5737 if test -z "$ac_cv_prog_AR"; then
5738   ac_ct_AR=$AR
5739   # Extract the first word of "ar", so it can be a program name with args.
5740 set dummy ar; ac_word=$2
5741 echo "$as_me:$LINENO: checking for $ac_word" >&5
5742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5744   echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746   if test -n "$ac_ct_AR"; then
5747   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752   IFS=$as_save_IFS
5753   test -z "$as_dir" && as_dir=.
5754   for ac_exec_ext in '' $ac_executable_extensions; do
5755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756     ac_cv_prog_ac_ct_AR="ar"
5757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758     break 2
5759   fi
5760 done
5761 done
5762
5763   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5764 fi
5765 fi
5766 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5767 if test -n "$ac_ct_AR"; then
5768   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5769 echo "${ECHO_T}$ac_ct_AR" >&6
5770 else
5771   echo "$as_me:$LINENO: result: no" >&5
5772 echo "${ECHO_T}no" >&6
5773 fi
5774
5775   AR=$ac_ct_AR
5776 else
5777   AR="$ac_cv_prog_AR"
5778 fi
5779
5780 if test -n "$ac_tool_prefix"; then
5781   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5782 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5783 echo "$as_me:$LINENO: checking for $ac_word" >&5
5784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5785 if test "${ac_cv_prog_RANLIB+set}" = set; then
5786   echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788   if test -n "$RANLIB"; then
5789   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5790 else
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5793 do
5794   IFS=$as_save_IFS
5795   test -z "$as_dir" && as_dir=.
5796   for ac_exec_ext in '' $ac_executable_extensions; do
5797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800     break 2
5801   fi
5802 done
5803 done
5804
5805 fi
5806 fi
5807 RANLIB=$ac_cv_prog_RANLIB
5808 if test -n "$RANLIB"; then
5809   echo "$as_me:$LINENO: result: $RANLIB" >&5
5810 echo "${ECHO_T}$RANLIB" >&6
5811 else
5812   echo "$as_me:$LINENO: result: no" >&5
5813 echo "${ECHO_T}no" >&6
5814 fi
5815
5816 fi
5817 if test -z "$ac_cv_prog_RANLIB"; then
5818   ac_ct_RANLIB=$RANLIB
5819   # Extract the first word of "ranlib", so it can be a program name with args.
5820 set dummy ranlib; ac_word=$2
5821 echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5823 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826   if test -n "$ac_ct_RANLIB"; then
5827   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832   IFS=$as_save_IFS
5833   test -z "$as_dir" && as_dir=.
5834   for ac_exec_ext in '' $ac_executable_extensions; do
5835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836     ac_cv_prog_ac_ct_RANLIB="ranlib"
5837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838     break 2
5839   fi
5840 done
5841 done
5842
5843   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5844 fi
5845 fi
5846 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5847 if test -n "$ac_ct_RANLIB"; then
5848   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5849 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5850 else
5851   echo "$as_me:$LINENO: result: no" >&5
5852 echo "${ECHO_T}no" >&6
5853 fi
5854
5855   RANLIB=$ac_ct_RANLIB
5856 else
5857   RANLIB="$ac_cv_prog_RANLIB"
5858 fi
5859
5860 if test -n "$ac_tool_prefix"; then
5861   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5862 set dummy ${ac_tool_prefix}strip; ac_word=$2
5863 echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865 if test "${ac_cv_prog_STRIP+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   if test -n "$STRIP"; then
5869   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876   for ac_exec_ext in '' $ac_executable_extensions; do
5877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880     break 2
5881   fi
5882 done
5883 done
5884
5885 fi
5886 fi
5887 STRIP=$ac_cv_prog_STRIP
5888 if test -n "$STRIP"; then
5889   echo "$as_me:$LINENO: result: $STRIP" >&5
5890 echo "${ECHO_T}$STRIP" >&6
5891 else
5892   echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6
5894 fi
5895
5896 fi
5897 if test -z "$ac_cv_prog_STRIP"; then
5898   ac_ct_STRIP=$STRIP
5899   # Extract the first word of "strip", so it can be a program name with args.
5900 set dummy strip; ac_word=$2
5901 echo "$as_me:$LINENO: checking for $ac_word" >&5
5902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5903 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   if test -n "$ac_ct_STRIP"; then
5907   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5911 do
5912   IFS=$as_save_IFS
5913   test -z "$as_dir" && as_dir=.
5914   for ac_exec_ext in '' $ac_executable_extensions; do
5915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916     ac_cv_prog_ac_ct_STRIP="strip"
5917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918     break 2
5919   fi
5920 done
5921 done
5922
5923   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5924 fi
5925 fi
5926 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5927 if test -n "$ac_ct_STRIP"; then
5928   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5929 echo "${ECHO_T}$ac_ct_STRIP" >&6
5930 else
5931   echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6
5933 fi
5934
5935   STRIP=$ac_ct_STRIP
5936 else
5937   STRIP="$ac_cv_prog_STRIP"
5938 fi
5939
5940
5941 old_CC="$CC"
5942 old_CFLAGS="$CFLAGS"
5943
5944 # Set sane defaults for various variables
5945 test -z "$AR" && AR=ar
5946 test -z "$AR_FLAGS" && AR_FLAGS=cru
5947 test -z "$AS" && AS=as
5948 test -z "$CC" && CC=cc
5949 test -z "$LTCC" && LTCC=$CC
5950 test -z "$DLLTOOL" && DLLTOOL=dlltool
5951 test -z "$LD" && LD=ld
5952 test -z "$LN_S" && LN_S="ln -s"
5953 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5954 test -z "$NM" && NM=nm
5955 test -z "$SED" && SED=sed
5956 test -z "$OBJDUMP" && OBJDUMP=objdump
5957 test -z "$RANLIB" && RANLIB=:
5958 test -z "$STRIP" && STRIP=:
5959 test -z "$ac_objext" && ac_objext=o
5960
5961 # Determine commands to create old-style static archives.
5962 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5963 old_postinstall_cmds='chmod 644 $oldlib'
5964 old_postuninstall_cmds=
5965
5966 if test -n "$RANLIB"; then
5967   case $host_os in
5968   openbsd*)
5969     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5970     ;;
5971   *)
5972     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5973     ;;
5974   esac
5975   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5976 fi
5977
5978 # Only perform the check for file, if the check method requires it
5979 case $deplibs_check_method in
5980 file_magic*)
5981   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5982     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5983 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5984 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5985   echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987   case $MAGIC_CMD in
5988 [\\/*] |  ?:[\\/]*)
5989   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5990   ;;
5991 *)
5992   lt_save_MAGIC_CMD="$MAGIC_CMD"
5993   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5994   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5995   for ac_dir in $ac_dummy; do
5996     IFS="$lt_save_ifs"
5997     test -z "$ac_dir" && ac_dir=.
5998     if test -f $ac_dir/${ac_tool_prefix}file; then
5999       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6000       if test -n "$file_magic_test_file"; then
6001         case $deplibs_check_method in
6002         "file_magic "*)
6003           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6004           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6005           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6006             $EGREP "$file_magic_regex" > /dev/null; then
6007             :
6008           else
6009             cat <<EOF 1>&2
6010
6011 *** Warning: the command libtool uses to detect shared libraries,
6012 *** $file_magic_cmd, produces output that libtool cannot recognize.
6013 *** The result is that libtool may fail to recognize shared libraries
6014 *** as such.  This will affect the creation of libtool libraries that
6015 *** depend on shared libraries, but programs linked with such libtool
6016 *** libraries will work regardless of this problem.  Nevertheless, you
6017 *** may want to report the problem to your system manager and/or to
6018 *** bug-libtool@gnu.org
6019
6020 EOF
6021           fi ;;
6022         esac
6023       fi
6024       break
6025     fi
6026   done
6027   IFS="$lt_save_ifs"
6028   MAGIC_CMD="$lt_save_MAGIC_CMD"
6029   ;;
6030 esac
6031 fi
6032
6033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6034 if test -n "$MAGIC_CMD"; then
6035   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6036 echo "${ECHO_T}$MAGIC_CMD" >&6
6037 else
6038   echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6
6040 fi
6041
6042 if test -z "$lt_cv_path_MAGIC_CMD"; then
6043   if test -n "$ac_tool_prefix"; then
6044     echo "$as_me:$LINENO: checking for file" >&5
6045 echo $ECHO_N "checking for file... $ECHO_C" >&6
6046 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6047   echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049   case $MAGIC_CMD in
6050 [\\/*] |  ?:[\\/]*)
6051   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6052   ;;
6053 *)
6054   lt_save_MAGIC_CMD="$MAGIC_CMD"
6055   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6056   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6057   for ac_dir in $ac_dummy; do
6058     IFS="$lt_save_ifs"
6059     test -z "$ac_dir" && ac_dir=.
6060     if test -f $ac_dir/file; then
6061       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6062       if test -n "$file_magic_test_file"; then
6063         case $deplibs_check_method in
6064         "file_magic "*)
6065           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6066           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6067           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6068             $EGREP "$file_magic_regex" > /dev/null; then
6069             :
6070           else
6071             cat <<EOF 1>&2
6072
6073 *** Warning: the command libtool uses to detect shared libraries,
6074 *** $file_magic_cmd, produces output that libtool cannot recognize.
6075 *** The result is that libtool may fail to recognize shared libraries
6076 *** as such.  This will affect the creation of libtool libraries that
6077 *** depend on shared libraries, but programs linked with such libtool
6078 *** libraries will work regardless of this problem.  Nevertheless, you
6079 *** may want to report the problem to your system manager and/or to
6080 *** bug-libtool@gnu.org
6081
6082 EOF
6083           fi ;;
6084         esac
6085       fi
6086       break
6087     fi
6088   done
6089   IFS="$lt_save_ifs"
6090   MAGIC_CMD="$lt_save_MAGIC_CMD"
6091   ;;
6092 esac
6093 fi
6094
6095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6096 if test -n "$MAGIC_CMD"; then
6097   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6098 echo "${ECHO_T}$MAGIC_CMD" >&6
6099 else
6100   echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6
6102 fi
6103
6104   else
6105     MAGIC_CMD=:
6106   fi
6107 fi
6108
6109   fi
6110   ;;
6111 esac
6112
6113 enable_dlopen=no
6114 enable_win32_dll=no
6115
6116 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6117 if test "${enable_libtool_lock+set}" = set; then
6118   enableval="$enable_libtool_lock"
6119
6120 fi;
6121 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6122
6123
6124 # Check whether --with-pic or --without-pic was given.
6125 if test "${with_pic+set}" = set; then
6126   withval="$with_pic"
6127   pic_mode="$withval"
6128 else
6129   pic_mode=default
6130 fi;
6131 test -z "$pic_mode" && pic_mode=default
6132
6133 # Use C for the default configuration in the libtool script
6134 tagname=
6135 lt_save_CC="$CC"
6136 ac_ext=c
6137 ac_cpp='$CPP $CPPFLAGS'
6138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141
6142
6143 # Source file extension for C test sources.
6144 ac_ext=c
6145
6146 # Object file extension for compiled C test sources.
6147 objext=o
6148 objext=$objext
6149
6150 # Code to be used in simple compile tests
6151 lt_simple_compile_test_code="int some_variable = 0;\n"
6152
6153 # Code to be used in simple link tests
6154 lt_simple_link_test_code='int main(){return(0);}\n'
6155
6156
6157 # If no C compiler was specified, use CC.
6158 LTCC=${LTCC-"$CC"}
6159
6160 # Allow CC to be a program name with arguments.
6161 compiler=$CC
6162
6163
6164 #
6165 # Check for any special shared library compilation flags.
6166 #
6167 lt_prog_cc_shlib=
6168 if test "$GCC" = no; then
6169   case $host_os in
6170   sco3.2v5*)
6171     lt_prog_cc_shlib='-belf'
6172     ;;
6173   esac
6174 fi
6175 if test -n "$lt_prog_cc_shlib"; then
6176   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6177 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6178   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6179   else
6180     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6181 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6182     lt_cv_prog_cc_can_build_shared=no
6183   fi
6184 fi
6185
6186
6187 #
6188 # Check to make sure the static flag actually works.
6189 #
6190 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6191 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6192 if test "${lt_prog_compiler_static_works+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195   lt_prog_compiler_static_works=no
6196    save_LDFLAGS="$LDFLAGS"
6197    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6198    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6199    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6200      # The compiler can only warn and ignore the option if not recognized
6201      # So say no if there are warnings
6202      if test -s conftest.err; then
6203        # Append any errors to the config.log.
6204        cat conftest.err 1>&5
6205      else
6206        lt_prog_compiler_static_works=yes
6207      fi
6208    fi
6209    $rm conftest*
6210    LDFLAGS="$save_LDFLAGS"
6211
6212 fi
6213 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6214 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6215
6216 if test x"$lt_prog_compiler_static_works" = xyes; then
6217     :
6218 else
6219     lt_prog_compiler_static=
6220 fi
6221
6222
6223
6224 ## CAVEAT EMPTOR:
6225 ## There is no encapsulation within the following macros, do not change
6226 ## the running order or otherwise move them around unless you know exactly
6227 ## what you are doing...
6228
6229 lt_prog_compiler_no_builtin_flag=
6230
6231 if test "$GCC" = yes; then
6232   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6233
6234   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6235 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6236 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   lt_cv_prog_compiler_rtti_exceptions=no
6240   ac_outfile=conftest.$ac_objext
6241    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6242    lt_compiler_flag="-fno-rtti -fno-exceptions"
6243    # Insert the option either (1) after the last *FLAGS variable, or
6244    # (2) before a word containing "conftest.", or (3) at the end.
6245    # Note that $ac_compile itself does not contain backslashes and begins
6246    # with a dollar sign (not a hyphen), so the echo should work correctly.
6247    # The option is referenced via a variable to avoid confusing sed.
6248    lt_compile=`echo "$ac_compile" | $SED \
6249    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6250    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6251    -e 's:$: $lt_compiler_flag:'`
6252    (eval echo "\"\$as_me:6252: $lt_compile\"" >&5)
6253    (eval "$lt_compile" 2>conftest.err)
6254    ac_status=$?
6255    cat conftest.err >&5
6256    echo "$as_me:6256: \$? = $ac_status" >&5
6257    if (exit $ac_status) && test -s "$ac_outfile"; then
6258      # The compiler can only warn and ignore the option if not recognized
6259      # So say no if there are warnings
6260      if test ! -s conftest.err; then
6261        lt_cv_prog_compiler_rtti_exceptions=yes
6262      fi
6263    fi
6264    $rm conftest*
6265
6266 fi
6267 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6268 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6269
6270 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6271     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6272 else
6273     :
6274 fi
6275
6276 fi
6277
6278 lt_prog_compiler_wl=
6279 lt_prog_compiler_pic=
6280 lt_prog_compiler_static=
6281
6282 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6283 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6284
6285   if test "$GCC" = yes; then
6286     lt_prog_compiler_wl='-Wl,'
6287     lt_prog_compiler_static='-static'
6288
6289     case $host_os in
6290       aix*)
6291       # All AIX code is PIC.
6292       if test "$host_cpu" = ia64; then
6293         # AIX 5 now supports IA64 processor
6294         lt_prog_compiler_static='-Bstatic'
6295       fi
6296       ;;
6297
6298     amigaos*)
6299       # FIXME: we need at least 68020 code to build shared libraries, but
6300       # adding the `-m68020' flag to GCC prevents building anything better,
6301       # like `-m68040'.
6302       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6303       ;;
6304
6305     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6306       # PIC is the default for these OSes.
6307       ;;
6308
6309     mingw* | pw32* | os2*)
6310       # This hack is so that the source file can tell whether it is being
6311       # built for inclusion in a dll (and should export symbols for example).
6312       lt_prog_compiler_pic='-DDLL_EXPORT'
6313       ;;
6314
6315     darwin* | rhapsody*)
6316       # PIC is the default on this platform
6317       # Common symbols not allowed in MH_DYLIB files
6318       lt_prog_compiler_pic='-fno-common'
6319       ;;
6320
6321     msdosdjgpp*)
6322       # Just because we use GCC doesn't mean we suddenly get shared libraries
6323       # on systems that don't support them.
6324       lt_prog_compiler_can_build_shared=no
6325       enable_shared=no
6326       ;;
6327
6328     sysv4*MP*)
6329       if test -d /usr/nec; then
6330         lt_prog_compiler_pic=-Kconform_pic
6331       fi
6332       ;;
6333
6334     hpux*)
6335       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6336       # not for PA HP-UX.
6337       case "$host_cpu" in
6338       hppa*64*|ia64*)
6339         # +Z the default
6340         ;;
6341       *)
6342         lt_prog_compiler_pic='-fPIC'
6343         ;;
6344       esac
6345       ;;
6346
6347     *)
6348       lt_prog_compiler_pic='-fPIC'
6349       ;;
6350     esac
6351   else
6352     # PORTME Check for flag to pass linker flags through the system compiler.
6353     case $host_os in
6354     aix*)
6355       lt_prog_compiler_wl='-Wl,'
6356       if test "$host_cpu" = ia64; then
6357         # AIX 5 now supports IA64 processor
6358         lt_prog_compiler_static='-Bstatic'
6359       else
6360         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6361       fi
6362       ;;
6363
6364     mingw* | pw32* | os2*)
6365       # This hack is so that the source file can tell whether it is being
6366       # built for inclusion in a dll (and should export symbols for example).
6367       lt_prog_compiler_pic='-DDLL_EXPORT'
6368       ;;
6369
6370     hpux9* | hpux10* | hpux11*)
6371       lt_prog_compiler_wl='-Wl,'
6372       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6373       # not for PA HP-UX.
6374       case "$host_cpu" in
6375       hppa*64*|ia64*)
6376         # +Z the default
6377         ;;
6378       *)
6379         lt_prog_compiler_pic='+Z'
6380         ;;
6381       esac
6382       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6383       lt_prog_compiler_static='${wl}-a ${wl}archive'
6384       ;;
6385
6386     irix5* | irix6* | nonstopux*)
6387       lt_prog_compiler_wl='-Wl,'
6388       # PIC (with -KPIC) is the default.
6389       lt_prog_compiler_static='-non_shared'
6390       ;;
6391
6392     newsos6)
6393       lt_prog_compiler_pic='-KPIC'
6394       lt_prog_compiler_static='-Bstatic'
6395       ;;
6396
6397     linux*)
6398       case $CC in
6399       icc|ecc)
6400         lt_prog_compiler_wl='-Wl,'
6401         lt_prog_compiler_pic='-KPIC'
6402         lt_prog_compiler_static='-static'
6403         ;;
6404       ccc)
6405         lt_prog_compiler_wl='-Wl,'
6406         # All Alpha code is PIC.
6407         lt_prog_compiler_static='-non_shared'
6408         ;;
6409       esac
6410       ;;
6411
6412     osf3* | osf4* | osf5*)
6413       lt_prog_compiler_wl='-Wl,'
6414       # All OSF/1 code is PIC.
6415       lt_prog_compiler_static='-non_shared'
6416       ;;
6417
6418     sco3.2v5*)
6419       lt_prog_compiler_pic='-Kpic'
6420       lt_prog_compiler_static='-dn'
6421       ;;
6422
6423     solaris*)
6424       lt_prog_compiler_wl='-Wl,'
6425       lt_prog_compiler_pic='-KPIC'
6426       lt_prog_compiler_static='-Bstatic'
6427       ;;
6428
6429     sunos4*)
6430       lt_prog_compiler_wl='-Qoption ld '
6431       lt_prog_compiler_pic='-PIC'
6432       lt_prog_compiler_static='-Bstatic'
6433       ;;
6434
6435     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6436       lt_prog_compiler_wl='-Wl,'
6437       lt_prog_compiler_pic='-KPIC'
6438       lt_prog_compiler_static='-Bstatic'
6439       ;;
6440
6441     sysv4*MP*)
6442       if test -d /usr/nec ;then
6443         lt_prog_compiler_pic='-Kconform_pic'
6444         lt_prog_compiler_static='-Bstatic'
6445       fi
6446       ;;
6447
6448     uts4*)
6449       lt_prog_compiler_pic='-pic'
6450       lt_prog_compiler_static='-Bstatic'
6451       ;;
6452
6453     *)
6454       lt_prog_compiler_can_build_shared=no
6455       ;;
6456     esac
6457   fi
6458
6459 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6460 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6461
6462 #
6463 # Check to make sure the PIC flag actually works.
6464 #
6465 if test -n "$lt_prog_compiler_pic"; then
6466   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6467 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6468 if test "${lt_prog_compiler_pic_works+set}" = set; then
6469   echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471   lt_prog_compiler_pic_works=no
6472   ac_outfile=conftest.$ac_objext
6473    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6474    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6475    # Insert the option either (1) after the last *FLAGS variable, or
6476    # (2) before a word containing "conftest.", or (3) at the end.
6477    # Note that $ac_compile itself does not contain backslashes and begins
6478    # with a dollar sign (not a hyphen), so the echo should work correctly.
6479    # The option is referenced via a variable to avoid confusing sed.
6480    lt_compile=`echo "$ac_compile" | $SED \
6481    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6482    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6483    -e 's:$: $lt_compiler_flag:'`
6484    (eval echo "\"\$as_me:6484: $lt_compile\"" >&5)
6485    (eval "$lt_compile" 2>conftest.err)
6486    ac_status=$?
6487    cat conftest.err >&5
6488    echo "$as_me:6488: \$? = $ac_status" >&5
6489    if (exit $ac_status) && test -s "$ac_outfile"; then
6490      # The compiler can only warn and ignore the option if not recognized
6491      # So say no if there are warnings
6492      if test ! -s conftest.err; then
6493        lt_prog_compiler_pic_works=yes
6494      fi
6495    fi
6496    $rm conftest*
6497
6498 fi
6499 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6500 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6501
6502 if test x"$lt_prog_compiler_pic_works" = xyes; then
6503     case $lt_prog_compiler_pic in
6504      "" | " "*) ;;
6505      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6506      esac
6507 else
6508     lt_prog_compiler_pic=
6509      lt_prog_compiler_can_build_shared=no
6510 fi
6511
6512 fi
6513 case "$host_os" in
6514   # For platforms which do not support PIC, -DPIC is meaningless:
6515   *djgpp*)
6516     lt_prog_compiler_pic=
6517     ;;
6518   *)
6519     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6520     ;;
6521 esac
6522
6523 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6524 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6525 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   lt_cv_prog_compiler_c_o=no
6529    $rm -r conftest 2>/dev/null
6530    mkdir conftest
6531    cd conftest
6532    mkdir out
6533    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6534
6535    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6536    # that will create temporary files in the current directory regardless of
6537    # the output directory.  Thus, making CWD read-only will cause this test
6538    # to fail, enabling locking or at least warning the user not to do parallel
6539    # builds.
6540    chmod -w .
6541
6542    lt_compiler_flag="-o out/conftest2.$ac_objext"
6543    # Insert the option either (1) after the last *FLAGS variable, or
6544    # (2) before a word containing "conftest.", or (3) at the end.
6545    # Note that $ac_compile itself does not contain backslashes and begins
6546    # with a dollar sign (not a hyphen), so the echo should work correctly.
6547    lt_compile=`echo "$ac_compile" | $SED \
6548    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6549    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6550    -e 's:$: $lt_compiler_flag:'`
6551    (eval echo "\"\$as_me:6551: $lt_compile\"" >&5)
6552    (eval "$lt_compile" 2>out/conftest.err)
6553    ac_status=$?
6554    cat out/conftest.err >&5
6555    echo "$as_me:6555: \$? = $ac_status" >&5
6556    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6557    then
6558      # The compiler can only warn and ignore the option if not recognized
6559      # So say no if there are warnings
6560      if test ! -s out/conftest.err; then
6561        lt_cv_prog_compiler_c_o=yes
6562      fi
6563    fi
6564    chmod u+w .
6565    $rm conftest* out/*
6566    rmdir out
6567    cd ..
6568    rmdir conftest
6569    $rm conftest*
6570
6571 fi
6572 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6573 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6574
6575
6576 hard_links="nottested"
6577 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6578   # do not overwrite the value of need_locks provided by the user
6579   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6580 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6581   hard_links=yes
6582   $rm conftest*
6583   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6584   touch conftest.a
6585   ln conftest.a conftest.b 2>&5 || hard_links=no
6586   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6587   echo "$as_me:$LINENO: result: $hard_links" >&5
6588 echo "${ECHO_T}$hard_links" >&6
6589   if test "$hard_links" = no; then
6590     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6591 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6592     need_locks=warn
6593   fi
6594 else
6595   need_locks=no
6596 fi
6597
6598 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6599 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6600
6601   runpath_var=
6602   allow_undefined_flag=
6603   enable_shared_with_static_runtimes=no
6604   archive_cmds=
6605   archive_expsym_cmds=
6606   old_archive_From_new_cmds=
6607   old_archive_from_expsyms_cmds=
6608   export_dynamic_flag_spec=
6609   whole_archive_flag_spec=
6610   thread_safe_flag_spec=
6611   hardcode_libdir_flag_spec=
6612   hardcode_libdir_flag_spec_ld=
6613   hardcode_libdir_separator=
6614   hardcode_direct=no
6615   hardcode_minus_L=no
6616   hardcode_shlibpath_var=unsupported
6617   link_all_deplibs=unknown
6618   hardcode_automatic=no
6619   module_cmds=
6620   module_expsym_cmds=
6621   always_export_symbols=no
6622   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6623   # include_expsyms should be a list of space-separated symbols to be *always*
6624   # included in the symbol list
6625   include_expsyms=
6626   # exclude_expsyms can be an extended regexp of symbols to exclude
6627   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6628   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6629   # as well as any symbol that contains `d'.
6630   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6631   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6632   # platforms (ab)use it in PIC code, but their linkers get confused if
6633   # the symbol is explicitly referenced.  Since portable code cannot
6634   # rely on this symbol name, it's probably fine to never include it in
6635   # preloaded symbol tables.
6636   extract_expsyms_cmds=
6637
6638   case $host_os in
6639   cygwin* | mingw* | pw32*)
6640     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6641     # When not using gcc, we currently assume that we are using
6642     # Microsoft Visual C++.
6643     if test "$GCC" != yes; then
6644       with_gnu_ld=no
6645     fi
6646     ;;
6647   openbsd*)
6648     with_gnu_ld=no
6649     ;;
6650   esac
6651
6652   ld_shlibs=yes
6653   if test "$with_gnu_ld" = yes; then
6654     # If archive_cmds runs LD, not CC, wlarc should be empty
6655     wlarc='${wl}'
6656
6657     # See if GNU ld supports shared libraries.
6658     case $host_os in
6659     aix3* | aix4* | aix5*)
6660       # On AIX/PPC, the GNU linker is very broken
6661       if test "$host_cpu" != ia64; then
6662         ld_shlibs=no
6663         cat <<EOF 1>&2
6664
6665 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6666 *** to be unable to reliably create shared libraries on AIX.
6667 *** Therefore, libtool is disabling shared libraries support.  If you
6668 *** really care for shared libraries, you may want to modify your PATH
6669 *** so that a non-GNU linker is found, and then restart.
6670
6671 EOF
6672       fi
6673       ;;
6674
6675     amigaos*)
6676       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)'
6677       hardcode_libdir_flag_spec='-L$libdir'
6678       hardcode_minus_L=yes
6679
6680       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6681       # that the semantics of dynamic libraries on AmigaOS, at least up
6682       # to version 4, is to share data among multiple programs linked
6683       # with the same dynamic library.  Since this doesn't match the
6684       # behavior of shared libraries on other platforms, we can't use
6685       # them.
6686       ld_shlibs=no
6687       ;;
6688
6689     beos*)
6690       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6691         allow_undefined_flag=unsupported
6692         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6693         # support --undefined.  This deserves some investigation.  FIXME
6694         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6695       else
6696         ld_shlibs=no
6697       fi
6698       ;;
6699
6700     cygwin* | mingw* | pw32*)
6701       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6702       # as there is no search path for DLLs.
6703       hardcode_libdir_flag_spec='-L$libdir'
6704       allow_undefined_flag=unsupported
6705       always_export_symbols=no
6706       enable_shared_with_static_runtimes=yes
6707       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6708
6709       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6710         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6711         # If the export-symbols file already is a .def file (1st line
6712         # is EXPORTS), use it as is; otherwise, prepend...
6713         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6714           cp $export_symbols $output_objdir/$soname.def;
6715         else
6716           echo EXPORTS > $output_objdir/$soname.def;
6717           cat $export_symbols >> $output_objdir/$soname.def;
6718         fi~
6719         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6720       else
6721         ld_shlibs=no
6722       fi
6723       ;;
6724
6725     netbsd*)
6726       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6727         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6728         wlarc=
6729       else
6730         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6731         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6732       fi
6733       ;;
6734
6735     solaris* | sysv5*)
6736       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6737         ld_shlibs=no
6738         cat <<EOF 1>&2
6739
6740 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6741 *** create shared libraries on Solaris systems.  Therefore, libtool
6742 *** is disabling shared libraries support.  We urge you to upgrade GNU
6743 *** binutils to release 2.9.1 or newer.  Another option is to modify
6744 *** your PATH or compiler configuration so that the native linker is
6745 *** used, and then restart.
6746
6747 EOF
6748       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6749         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6750         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6751       else
6752         ld_shlibs=no
6753       fi
6754       ;;
6755
6756     sunos4*)
6757       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6758       wlarc=
6759       hardcode_direct=yes
6760       hardcode_shlibpath_var=no
6761       ;;
6762
6763     *)
6764       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6765         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6766         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6767       else
6768         ld_shlibs=no
6769       fi
6770       ;;
6771     esac
6772
6773     if test "$ld_shlibs" = yes; then
6774       runpath_var=LD_RUN_PATH
6775       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6776       export_dynamic_flag_spec='${wl}--export-dynamic'
6777       # ancient GNU ld didn't support --whole-archive et. al.
6778       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6779         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6780       else
6781         whole_archive_flag_spec=
6782       fi
6783     fi
6784   else
6785     # PORTME fill in a description of your system's linker (not GNU ld)
6786     case $host_os in
6787     aix3*)
6788       allow_undefined_flag=unsupported
6789       always_export_symbols=yes
6790       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'
6791       # Note: this linker hardcodes the directories in LIBPATH if there
6792       # are no directories specified by -L.
6793       hardcode_minus_L=yes
6794       if test "$GCC" = yes && test -z "$link_static_flag"; then
6795         # Neither direct hardcoding nor static linking is supported with a
6796         # broken collect2.
6797         hardcode_direct=unsupported
6798       fi
6799       ;;
6800
6801     aix4* | aix5*)
6802       if test "$host_cpu" = ia64; then
6803         # On IA64, the linker does run time linking by default, so we don't
6804         # have to do anything special.
6805         aix_use_runtimelinking=no
6806         exp_sym_flag='-Bexport'
6807         no_entry_flag=""
6808       else
6809         # If we're using GNU nm, then we don't want the "-C" option.
6810         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6811         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6812           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'
6813         else
6814           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'
6815         fi
6816         aix_use_runtimelinking=no
6817
6818         # Test if we are trying to use run time linking or normal
6819         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6820         # need to do runtime linking.
6821         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6822           for ld_flag in $LDFLAGS; do
6823           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6824             aix_use_runtimelinking=yes
6825             break
6826           fi
6827           done
6828         esac
6829
6830         exp_sym_flag='-bexport'
6831         no_entry_flag='-bnoentry'
6832       fi
6833
6834       # When large executables or shared objects are built, AIX ld can
6835       # have problems creating the table of contents.  If linking a library
6836       # or program results in "error TOC overflow" add -mminimal-toc to
6837       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6838       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6839
6840       archive_cmds=''
6841       hardcode_direct=yes
6842       hardcode_libdir_separator=':'
6843       link_all_deplibs=yes
6844
6845       if test "$GCC" = yes; then
6846         case $host_os in aix4.012|aix4.012.*)
6847         # We only want to do this on AIX 4.2 and lower, the check
6848         # below for broken collect2 doesn't work under 4.3+
6849           collect2name=`${CC} -print-prog-name=collect2`
6850           if test -f "$collect2name" && \
6851            strings "$collect2name" | grep resolve_lib_name >/dev/null
6852           then
6853           # We have reworked collect2
6854           hardcode_direct=yes
6855           else
6856           # We have old collect2
6857           hardcode_direct=unsupported
6858           # It fails to find uninstalled libraries when the uninstalled
6859           # path is not listed in the libpath.  Setting hardcode_minus_L
6860           # to unsupported forces relinking
6861           hardcode_minus_L=yes
6862           hardcode_libdir_flag_spec='-L$libdir'
6863           hardcode_libdir_separator=
6864           fi
6865         esac
6866         shared_flag='-shared'
6867       else
6868         # not using gcc
6869         if test "$host_cpu" = ia64; then
6870         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6871         # chokes on -Wl,-G. The following line is correct:
6872           shared_flag='-G'
6873         else
6874         if test "$aix_use_runtimelinking" = yes; then
6875             shared_flag='${wl}-G'
6876           else
6877             shared_flag='${wl}-bM:SRE'
6878         fi
6879         fi
6880       fi
6881
6882       # It seems that -bexpall does not export symbols beginning with
6883       # underscore (_), so it is better to generate a list of symbols to export.
6884       always_export_symbols=yes
6885       if test "$aix_use_runtimelinking" = yes; then
6886         # Warning - without using the other runtime loading flags (-brtl),
6887         # -berok will link without error, but may produce a broken library.
6888         allow_undefined_flag='-berok'
6889        # Determine the default libpath from the value encoded in an empty executable.
6890        cat >conftest.$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897
6898 int
6899 main ()
6900 {
6901
6902   ;
6903   return 0;
6904 }
6905 _ACEOF
6906 rm -f conftest.$ac_objext conftest$ac_exeext
6907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6908   (eval $ac_link) 2>&5
6909   ac_status=$?
6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911   (exit $ac_status); } &&
6912          { ac_try='test -s conftest$ac_exeext'
6913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914   (eval $ac_try) 2>&5
6915   ac_status=$?
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); }; }; then
6918
6919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6920 }'`
6921 # Check for a 64-bit object if we didn't find anything.
6922 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; }
6923 }'`; fi
6924 else
6925   echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928 fi
6929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6930 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6931
6932        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6933         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"
6934        else
6935         if test "$host_cpu" = ia64; then
6936           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6937           allow_undefined_flag="-z nodefs"
6938           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"
6939         else
6940          # Determine the default libpath from the value encoded in an empty executable.
6941          cat >conftest.$ac_ext <<_ACEOF
6942 #line $LINENO "configure"
6943 /* confdefs.h.  */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h.  */
6948
6949 int
6950 main ()
6951 {
6952
6953   ;
6954   return 0;
6955 }
6956 _ACEOF
6957 rm -f conftest.$ac_objext conftest$ac_exeext
6958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6959   (eval $ac_link) 2>&5
6960   ac_status=$?
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); } &&
6963          { ac_try='test -s conftest$ac_exeext'
6964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965   (eval $ac_try) 2>&5
6966   ac_status=$?
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); }; }; then
6969
6970 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6971 }'`
6972 # Check for a 64-bit object if we didn't find anything.
6973 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; }
6974 }'`; fi
6975 else
6976   echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6978
6979 fi
6980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6982
6983          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6984           # Warning - without using the other run time loading flags,
6985           # -berok will link without error, but may produce a broken library.
6986           no_undefined_flag=' ${wl}-bernotok'
6987           allow_undefined_flag=' ${wl}-berok'
6988           # -bexpall does not export symbols beginning with underscore (_)
6989           always_export_symbols=yes
6990           # Exported symbols can be pulled into shared objects from archives
6991           whole_archive_flag_spec=' '
6992           archive_cmds_need_lc=yes
6993           # This is similar to how AIX traditionally builds it's shared libraries.
6994           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'
6995         fi
6996       fi
6997       ;;
6998
6999     amigaos*)
7000       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)'
7001       hardcode_libdir_flag_spec='-L$libdir'
7002       hardcode_minus_L=yes
7003       # see comment about different semantics on the GNU ld section
7004       ld_shlibs=no
7005       ;;
7006
7007     bsdi4*)
7008       export_dynamic_flag_spec=-rdynamic
7009       ;;
7010
7011     cygwin* | mingw* | pw32*)
7012       # When not using gcc, we currently assume that we are using
7013       # Microsoft Visual C++.
7014       # hardcode_libdir_flag_spec is actually meaningless, as there is
7015       # no search path for DLLs.
7016       hardcode_libdir_flag_spec=' '
7017       allow_undefined_flag=unsupported
7018       # Tell ltmain to make .lib files, not .a files.
7019       libext=lib
7020       # Tell ltmain to make .dll files, not .so files.
7021       shrext=".dll"
7022       # FIXME: Setting linknames here is a bad hack.
7023       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7024       # The linker will automatically build a .lib file if we build a DLL.
7025       old_archive_From_new_cmds='true'
7026       # FIXME: Should let the user specify the lib program.
7027       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7028       fix_srcfile_path='`cygpath -w "$srcfile"`'
7029       enable_shared_with_static_runtimes=yes
7030       ;;
7031
7032     darwin* | rhapsody*)
7033     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7034       archive_cmds_need_lc=no
7035       case "$host_os" in
7036       rhapsody* | darwin1.[012])
7037         allow_undefined_flag='-undefined suppress'
7038         ;;
7039       *) # Darwin 1.3 on
7040         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7041         ;;
7042       esac
7043       # FIXME: Relying on posixy $() will cause problems for
7044       #        cross-compilation, but unfortunately the echo tests do not
7045       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7046       #        `"' quotes if we put them in here... so don't!
7047         lt_int_apple_cc_single_mod=no
7048         output_verbose_link_cmd='echo'
7049         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7050           lt_int_apple_cc_single_mod=yes
7051         fi
7052         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7053           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7054         else
7055         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'
7056       fi
7057       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7058       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7059         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7060           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}'
7061         else
7062           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}'
7063         fi
7064           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}'
7065       hardcode_direct=no
7066       hardcode_automatic=yes
7067       hardcode_shlibpath_var=unsupported
7068       whole_archive_flag_spec='-all_load $convenience'
7069       link_all_deplibs=yes
7070     fi
7071       ;;
7072
7073     dgux*)
7074       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7075       hardcode_libdir_flag_spec='-L$libdir'
7076       hardcode_shlibpath_var=no
7077       ;;
7078
7079     freebsd1*)
7080       ld_shlibs=no
7081       ;;
7082
7083     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7084     # support.  Future versions do this automatically, but an explicit c++rt0.o
7085     # does not break anything, and helps significantly (at the cost of a little
7086     # extra space).
7087     freebsd2.2*)
7088       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7089       hardcode_libdir_flag_spec='-R$libdir'
7090       hardcode_direct=yes
7091       hardcode_shlibpath_var=no
7092       ;;
7093
7094     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7095     freebsd2*)
7096       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7097       hardcode_direct=yes
7098       hardcode_minus_L=yes
7099       hardcode_shlibpath_var=no
7100       ;;
7101
7102     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7103     freebsd*)
7104       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7105       hardcode_libdir_flag_spec='-R$libdir'
7106       hardcode_direct=yes
7107       hardcode_shlibpath_var=no
7108       ;;
7109
7110     hpux9*)
7111       if test "$GCC" = yes; then
7112         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'
7113       else
7114         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'
7115       fi
7116       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7117       hardcode_libdir_separator=:
7118       hardcode_direct=yes
7119
7120       # hardcode_minus_L: Not really in the search PATH,
7121       # but as the default location of the library.
7122       hardcode_minus_L=yes
7123       export_dynamic_flag_spec='${wl}-E'
7124       ;;
7125
7126     hpux10* | hpux11*)
7127       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7128         case "$host_cpu" in
7129         hppa*64*|ia64*)
7130           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7131           ;;
7132         *)
7133           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7134           ;;
7135         esac
7136       else
7137         case "$host_cpu" in
7138         hppa*64*|ia64*)
7139           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7140           ;;
7141         *)
7142           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7143           ;;
7144         esac
7145       fi
7146       if test "$with_gnu_ld" = no; then
7147         case "$host_cpu" in
7148         hppa*64*)
7149           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7150           hardcode_libdir_flag_spec_ld='+b $libdir'
7151           hardcode_libdir_separator=:
7152           hardcode_direct=no
7153           hardcode_shlibpath_var=no
7154           ;;
7155         ia64*)
7156           hardcode_libdir_flag_spec='-L$libdir'
7157           hardcode_direct=no
7158           hardcode_shlibpath_var=no
7159
7160           # hardcode_minus_L: Not really in the search PATH,
7161           # but as the default location of the library.
7162           hardcode_minus_L=yes
7163           ;;
7164         *)
7165           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7166           hardcode_libdir_separator=:
7167           hardcode_direct=yes
7168           export_dynamic_flag_spec='${wl}-E'
7169
7170           # hardcode_minus_L: Not really in the search PATH,
7171           # but as the default location of the library.
7172           hardcode_minus_L=yes
7173           ;;
7174         esac
7175       fi
7176       ;;
7177
7178     irix5* | irix6* | nonstopux*)
7179       if test "$GCC" = yes; then
7180         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'
7181       else
7182         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'
7183         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7184       fi
7185       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7186       hardcode_libdir_separator=:
7187       link_all_deplibs=yes
7188       ;;
7189
7190     netbsd*)
7191       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7192         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7193       else
7194         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7195       fi
7196       hardcode_libdir_flag_spec='-R$libdir'
7197       hardcode_direct=yes
7198       hardcode_shlibpath_var=no
7199       ;;
7200
7201     newsos6)
7202       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7203       hardcode_direct=yes
7204       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7205       hardcode_libdir_separator=:
7206       hardcode_shlibpath_var=no
7207       ;;
7208
7209     openbsd*)
7210       hardcode_direct=yes
7211       hardcode_shlibpath_var=no
7212       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7213         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7214         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7215         export_dynamic_flag_spec='${wl}-E'
7216       else
7217        case $host_os in
7218          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7219            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7220            hardcode_libdir_flag_spec='-R$libdir'
7221            ;;
7222          *)
7223            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7224            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7225            ;;
7226        esac
7227       fi
7228       ;;
7229
7230     os2*)
7231       hardcode_libdir_flag_spec='-L$libdir'
7232       hardcode_minus_L=yes
7233       allow_undefined_flag=unsupported
7234       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'
7235       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7236       ;;
7237
7238     osf3*)
7239       if test "$GCC" = yes; then
7240         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7241         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'
7242       else
7243         allow_undefined_flag=' -expect_unresolved \*'
7244         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'
7245       fi
7246       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7247       hardcode_libdir_separator=:
7248       ;;
7249
7250     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7251       if test "$GCC" = yes; then
7252         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7253         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'
7254         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7255       else
7256         allow_undefined_flag=' -expect_unresolved \*'
7257         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'
7258         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7259         $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'
7260
7261         # Both c and cxx compiler support -rpath directly
7262         hardcode_libdir_flag_spec='-rpath $libdir'
7263       fi
7264       hardcode_libdir_separator=:
7265       ;;
7266
7267     sco3.2v5*)
7268       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7269       hardcode_shlibpath_var=no
7270       export_dynamic_flag_spec='${wl}-Bexport'
7271       runpath_var=LD_RUN_PATH
7272       hardcode_runpath_var=yes
7273       ;;
7274
7275     solaris*)
7276       no_undefined_flag=' -z text'
7277       if test "$GCC" = yes; then
7278         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7279         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7280           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7281       else
7282         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7283         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7284         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7285       fi
7286       hardcode_libdir_flag_spec='-R$libdir'
7287       hardcode_shlibpath_var=no
7288       case $host_os in
7289       solaris2.[0-5] | solaris2.[0-5].*) ;;
7290       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7291         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7292       esac
7293       link_all_deplibs=yes
7294       ;;
7295
7296     sunos4*)
7297       if test "x$host_vendor" = xsequent; then
7298         # Use $CC to link under sequent, because it throws in some extra .o
7299         # files that make .init and .fini sections work.
7300         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7301       else
7302         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7303       fi
7304       hardcode_libdir_flag_spec='-L$libdir'
7305       hardcode_direct=yes
7306       hardcode_minus_L=yes
7307       hardcode_shlibpath_var=no
7308       ;;
7309
7310     sysv4)
7311       case $host_vendor in
7312         sni)
7313           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7314           hardcode_direct=yes # is this really true???
7315         ;;
7316         siemens)
7317           ## LD is ld it makes a PLAMLIB
7318           ## CC just makes a GrossModule.
7319           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7320           reload_cmds='$CC -r -o $output$reload_objs'
7321           hardcode_direct=no
7322         ;;
7323         motorola)
7324           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7326         ;;
7327       esac
7328       runpath_var='LD_RUN_PATH'
7329       hardcode_shlibpath_var=no
7330       ;;
7331
7332     sysv4.3*)
7333       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7334       hardcode_shlibpath_var=no
7335       export_dynamic_flag_spec='-Bexport'
7336       ;;
7337
7338     sysv4*MP*)
7339       if test -d /usr/nec; then
7340         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7341         hardcode_shlibpath_var=no
7342         runpath_var=LD_RUN_PATH
7343         hardcode_runpath_var=yes
7344         ld_shlibs=yes
7345       fi
7346       ;;
7347
7348     sysv4.2uw2*)
7349       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7350       hardcode_direct=yes
7351       hardcode_minus_L=no
7352       hardcode_shlibpath_var=no
7353       hardcode_runpath_var=yes
7354       runpath_var=LD_RUN_PATH
7355       ;;
7356
7357    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7358       no_undefined_flag='${wl}-z ${wl}text'
7359       if test "$GCC" = yes; then
7360         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7361       else
7362         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7363       fi
7364       runpath_var='LD_RUN_PATH'
7365       hardcode_shlibpath_var=no
7366       ;;
7367
7368     sysv5*)
7369       no_undefined_flag=' -z text'
7370       # $CC -shared without GNU ld will not create a library from C++
7371       # object files and a static libstdc++, better avoid it by now
7372       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7373       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7374                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7375       hardcode_libdir_flag_spec=
7376       hardcode_shlibpath_var=no
7377       runpath_var='LD_RUN_PATH'
7378       ;;
7379
7380     uts4*)
7381       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7382       hardcode_libdir_flag_spec='-L$libdir'
7383       hardcode_shlibpath_var=no
7384       ;;
7385
7386     *)
7387       ld_shlibs=no
7388       ;;
7389     esac
7390   fi
7391
7392 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7393 echo "${ECHO_T}$ld_shlibs" >&6
7394 test "$ld_shlibs" = no && can_build_shared=no
7395
7396 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7397 if test "$GCC" = yes; then
7398   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7399 fi
7400
7401 #
7402 # Do we need to explicitly link libc?
7403 #
7404 case "x$archive_cmds_need_lc" in
7405 x|xyes)
7406   # Assume -lc should be added
7407   archive_cmds_need_lc=yes
7408
7409   if test "$enable_shared" = yes && test "$GCC" = yes; then
7410     case $archive_cmds in
7411     *'~'*)
7412       # FIXME: we may have to deal with multi-command sequences.
7413       ;;
7414     '$CC '*)
7415       # Test whether the compiler implicitly links with -lc since on some
7416       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7417       # to ld, don't add -lc before -lgcc.
7418       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7419 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7420       $rm conftest*
7421       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7422
7423       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7424   (eval $ac_compile) 2>&5
7425   ac_status=$?
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); } 2>conftest.err; then
7428         soname=conftest
7429         lib=conftest
7430         libobjs=conftest.$ac_objext
7431         deplibs=
7432         wl=$lt_prog_compiler_wl
7433         compiler_flags=-v
7434         linker_flags=-v
7435         verstring=
7436         output_objdir=.
7437         libname=conftest
7438         lt_save_allow_undefined_flag=$allow_undefined_flag
7439         allow_undefined_flag=
7440         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7441   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7442   ac_status=$?
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); }
7445         then
7446           archive_cmds_need_lc=no
7447         else
7448           archive_cmds_need_lc=yes
7449         fi
7450         allow_undefined_flag=$lt_save_allow_undefined_flag
7451       else
7452         cat conftest.err 1>&5
7453       fi
7454       $rm conftest*
7455       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7456 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7457       ;;
7458     esac
7459   fi
7460   ;;
7461 esac
7462
7463 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7464 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7465 hardcode_action=
7466 if test -n "$hardcode_libdir_flag_spec" || \
7467    test -n "$runpath_var " || \
7468    test "X$hardcode_automatic"="Xyes" ; then
7469
7470   # We can hardcode non-existant directories.
7471   if test "$hardcode_direct" != no &&
7472      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7473      # have to relink, otherwise we might link with an installed library
7474      # when we should be linking with a yet-to-be-installed one
7475      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7476      test "$hardcode_minus_L" != no; then
7477     # Linking always hardcodes the temporary library directory.
7478     hardcode_action=relink
7479   else
7480     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7481     hardcode_action=immediate
7482   fi
7483 else
7484   # We cannot hardcode anything, or else we can only hardcode existing
7485   # directories.
7486   hardcode_action=unsupported
7487 fi
7488 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7489 echo "${ECHO_T}$hardcode_action" >&6
7490
7491 if test "$hardcode_action" = relink; then
7492   # Fast installation is not supported
7493   enable_fast_install=no
7494 elif test "$shlibpath_overrides_runpath" = yes ||
7495      test "$enable_shared" = no; then
7496   # Fast installation is not necessary
7497   enable_fast_install=needless
7498 fi
7499
7500 striplib=
7501 old_striplib=
7502 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7503 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7504 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7505   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7506   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7507   echo "$as_me:$LINENO: result: yes" >&5
7508 echo "${ECHO_T}yes" >&6
7509 else
7510 # FIXME - insert some real tests, host_os isn't really good enough
7511   case $host_os in
7512    darwin*)
7513        if test -n "$STRIP" ; then
7514          striplib="$STRIP -x"
7515          echo "$as_me:$LINENO: result: yes" >&5
7516 echo "${ECHO_T}yes" >&6
7517        else
7518   echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6
7520 fi
7521        ;;
7522    *)
7523   echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6
7525     ;;
7526   esac
7527 fi
7528
7529 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7530 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7531 library_names_spec=
7532 libname_spec='lib$name'
7533 soname_spec=
7534 shrext=".so"
7535 postinstall_cmds=
7536 postuninstall_cmds=
7537 finish_cmds=
7538 finish_eval=
7539 shlibpath_var=
7540 shlibpath_overrides_runpath=unknown
7541 version_type=none
7542 dynamic_linker="$host_os ld.so"
7543 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7544 if test "$GCC" = yes; then
7545   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7546   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7547     # if the path contains ";" then we assume it to be the separator
7548     # otherwise default to the standard path separator (i.e. ":") - it is
7549     # assumed that no part of a normal pathname contains ";" but that should
7550     # okay in the real world where ";" in dirpaths is itself problematic.
7551     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7552   else
7553     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7554   fi
7555 else
7556   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7557 fi
7558 need_lib_prefix=unknown
7559 hardcode_into_libs=no
7560
7561 # when you set need_version to no, make sure it does not cause -set_version
7562 # flags to be left without arguments
7563 need_version=unknown
7564
7565 case $host_os in
7566 aix3*)
7567   version_type=linux
7568   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7569   shlibpath_var=LIBPATH
7570
7571   # AIX 3 has no versioning support, so we append a major version to the name.
7572   soname_spec='${libname}${release}${shared_ext}$major'
7573   ;;
7574
7575 aix4* | aix5*)
7576   version_type=linux
7577   need_lib_prefix=no
7578   need_version=no
7579   hardcode_into_libs=yes
7580   if test "$host_cpu" = ia64; then
7581     # AIX 5 supports IA64
7582     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7583     shlibpath_var=LD_LIBRARY_PATH
7584   else
7585     # With GCC up to 2.95.x, collect2 would create an import file
7586     # for dependence libraries.  The import file would start with
7587     # the line `#! .'.  This would cause the generated library to
7588     # depend on `.', always an invalid library.  This was fixed in
7589     # development snapshots of GCC prior to 3.0.
7590     case $host_os in
7591       aix4 | aix4.[01] | aix4.[01].*)
7592       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7593            echo ' yes '
7594            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7595         :
7596       else
7597         can_build_shared=no
7598       fi
7599       ;;
7600     esac
7601     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7602     # soname into executable. Probably we can add versioning support to
7603     # collect2, so additional links can be useful in future.
7604     if test "$aix_use_runtimelinking" = yes; then
7605       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7606       # instead of lib<name>.a to let people know that these are not
7607       # typical AIX shared libraries.
7608       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7609     else
7610       # We preserve .a as extension for shared libraries through AIX4.2
7611       # and later when we are not doing run time linking.
7612       library_names_spec='${libname}${release}.a $libname.a'
7613       soname_spec='${libname}${release}${shared_ext}$major'
7614     fi
7615     shlibpath_var=LIBPATH
7616   fi
7617   ;;
7618
7619 amigaos*)
7620   library_names_spec='$libname.ixlibrary $libname.a'
7621   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7622   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'
7623   ;;
7624
7625 beos*)
7626   library_names_spec='${libname}${shared_ext}'
7627   dynamic_linker="$host_os ld.so"
7628   shlibpath_var=LIBRARY_PATH
7629   ;;
7630
7631 bsdi4*)
7632   version_type=linux
7633   need_version=no
7634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7635   soname_spec='${libname}${release}${shared_ext}$major'
7636   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7637   shlibpath_var=LD_LIBRARY_PATH
7638   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7639   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7640   # the default ld.so.conf also contains /usr/contrib/lib and
7641   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7642   # libtool to hard-code these into programs
7643   ;;
7644
7645 cygwin* | mingw* | pw32*)
7646   version_type=windows
7647   shrext=".dll"
7648   need_version=no
7649   need_lib_prefix=no
7650
7651   case $GCC,$host_os in
7652   yes,cygwin* | yes,mingw* | yes,pw32*)
7653     library_names_spec='$libname.dll.a'
7654     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7655     postinstall_cmds='base_file=`basename \${file}`~
7656       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7657       dldir=$destdir/`dirname \$dlpath`~
7658       test -d \$dldir || mkdir -p \$dldir~
7659       $install_prog $dir/$dlname \$dldir/$dlname'
7660     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7661       dlpath=$dir/\$dldll~
7662        $rm \$dlpath'
7663     shlibpath_overrides_runpath=yes
7664
7665     case $host_os in
7666     cygwin*)
7667       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7668       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7669       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7670       ;;
7671     mingw*)
7672       # MinGW DLLs use traditional 'lib' prefix
7673       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7674       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7675       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7676         # It is most probably a Windows format PATH printed by
7677         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7678         # path with ; separators, and with drive letters. We can handle the
7679         # drive letters (cygwin fileutils understands them), so leave them,
7680         # especially as we might pass files found there to a mingw objdump,
7681         # which wouldn't understand a cygwinified path. Ahh.
7682         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7683       else
7684         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7685       fi
7686       ;;
7687     pw32*)
7688       # pw32 DLLs use 'pw' prefix rather than 'lib'
7689       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7690       ;;
7691     esac
7692     ;;
7693
7694   *)
7695     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7696     ;;
7697   esac
7698   dynamic_linker='Win32 ld.exe'
7699   # FIXME: first we should search . and the directory the executable is in
7700   shlibpath_var=PATH
7701   ;;
7702
7703 darwin* | rhapsody*)
7704   dynamic_linker="$host_os dyld"
7705   version_type=darwin
7706   need_lib_prefix=no
7707   need_version=no
7708   # FIXME: Relying on posixy $() will cause problems for
7709   #        cross-compilation, but unfortunately the echo tests do not
7710   #        yet detect zsh echo's removal of \ escapes.
7711   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7712   soname_spec='${libname}${release}${major}$shared_ext'
7713   shlibpath_overrides_runpath=yes
7714   shlibpath_var=DYLD_LIBRARY_PATH
7715   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7716   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7717   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7718   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"`
7719   fi
7720   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7721   ;;
7722
7723 dgux*)
7724   version_type=linux
7725   need_lib_prefix=no
7726   need_version=no
7727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7728   soname_spec='${libname}${release}${shared_ext}$major'
7729   shlibpath_var=LD_LIBRARY_PATH
7730   ;;
7731
7732 freebsd1*)
7733   dynamic_linker=no
7734   ;;
7735
7736 freebsd*)
7737   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7738   version_type=freebsd-$objformat
7739   case $version_type in
7740     freebsd-elf*)
7741       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7742       need_version=no
7743       need_lib_prefix=no
7744       ;;
7745     freebsd-*)
7746       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7747       need_version=yes
7748       ;;
7749   esac
7750   shlibpath_var=LD_LIBRARY_PATH
7751   case $host_os in
7752   freebsd2*)
7753     shlibpath_overrides_runpath=yes
7754     ;;
7755   freebsd3.01* | freebsdelf3.01*)
7756     shlibpath_overrides_runpath=yes
7757     hardcode_into_libs=yes
7758     ;;
7759   *) # from 3.2 on
7760     shlibpath_overrides_runpath=no
7761     hardcode_into_libs=yes
7762     ;;
7763   esac
7764   ;;
7765
7766 gnu*)
7767   version_type=linux
7768   need_lib_prefix=no
7769   need_version=no
7770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7771   soname_spec='${libname}${release}${shared_ext}$major'
7772   shlibpath_var=LD_LIBRARY_PATH
7773   hardcode_into_libs=yes
7774   ;;
7775
7776 hpux9* | hpux10* | hpux11*)
7777   # Give a soname corresponding to the major version so that dld.sl refuses to
7778   # link against other versions.
7779   version_type=sunos
7780   need_lib_prefix=no
7781   need_version=no
7782   case "$host_cpu" in
7783   ia64*)
7784     shrext='.so'
7785     hardcode_into_libs=yes
7786     dynamic_linker="$host_os dld.so"
7787     shlibpath_var=LD_LIBRARY_PATH
7788     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7790     soname_spec='${libname}${release}${shared_ext}$major'
7791     if test "X$HPUX_IA64_MODE" = X32; then
7792       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7793     else
7794       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7795     fi
7796     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7797     ;;
7798    hppa*64*)
7799      shrext='.sl'
7800      hardcode_into_libs=yes
7801      dynamic_linker="$host_os dld.sl"
7802      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7803      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7804      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7805      soname_spec='${libname}${release}${shared_ext}$major'
7806      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7807      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7808      ;;
7809    *)
7810     shrext='.sl'
7811     dynamic_linker="$host_os dld.sl"
7812     shlibpath_var=SHLIB_PATH
7813     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7814     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7815     soname_spec='${libname}${release}${shared_ext}$major'
7816     ;;
7817   esac
7818   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7819   postinstall_cmds='chmod 555 $lib'
7820   ;;
7821
7822 irix5* | irix6* | nonstopux*)
7823   case $host_os in
7824     nonstopux*) version_type=nonstopux ;;
7825     *)
7826         if test "$lt_cv_prog_gnu_ld" = yes; then
7827                 version_type=linux
7828         else
7829                 version_type=irix
7830         fi ;;
7831   esac
7832   need_lib_prefix=no
7833   need_version=no
7834   soname_spec='${libname}${release}${shared_ext}$major'
7835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7836   case $host_os in
7837   irix5* | nonstopux*)
7838     libsuff= shlibsuff=
7839     ;;
7840   *)
7841     case $LD in # libtool.m4 will add one of these switches to LD
7842     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7843       libsuff= shlibsuff= libmagic=32-bit;;
7844     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7845       libsuff=32 shlibsuff=N32 libmagic=N32;;
7846     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7847       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7848     *) libsuff= shlibsuff= libmagic=never-match;;
7849     esac
7850     ;;
7851   esac
7852   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7853   shlibpath_overrides_runpath=no
7854   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7855   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7856   hardcode_into_libs=yes
7857   ;;
7858
7859 # No shared lib support for Linux oldld, aout, or coff.
7860 linux*oldld* | linux*aout* | linux*coff*)
7861   dynamic_linker=no
7862   ;;
7863
7864 # This must be Linux ELF.
7865 linux*)
7866   version_type=linux
7867   need_lib_prefix=no
7868   need_version=no
7869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7870   soname_spec='${libname}${release}${shared_ext}$major'
7871   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7872   shlibpath_var=LD_LIBRARY_PATH
7873   shlibpath_overrides_runpath=no
7874   # This implies no fast_install, which is unacceptable.
7875   # Some rework will be needed to allow for fast_install
7876   # before this can be enabled.
7877   hardcode_into_libs=yes
7878
7879   # We used to test for /lib/ld.so.1 and disable shared libraries on
7880   # powerpc, because MkLinux only supported shared libraries with the
7881   # GNU dynamic linker.  Since this was broken with cross compilers,
7882   # most powerpc-linux boxes support dynamic linking these days and
7883   # people can always --disable-shared, the test was removed, and we
7884   # assume the GNU/Linux dynamic linker is in use.
7885   dynamic_linker='GNU/Linux ld.so'
7886   ;;
7887
7888 netbsd*)
7889   version_type=sunos
7890   need_lib_prefix=no
7891   need_version=no
7892   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7894     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7895     dynamic_linker='NetBSD (a.out) ld.so'
7896   else
7897     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7898     soname_spec='${libname}${release}${shared_ext}$major'
7899     dynamic_linker='NetBSD ld.elf_so'
7900   fi
7901   shlibpath_var=LD_LIBRARY_PATH
7902   shlibpath_overrides_runpath=yes
7903   hardcode_into_libs=yes
7904   ;;
7905
7906 newsos6)
7907   version_type=linux
7908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7909   shlibpath_var=LD_LIBRARY_PATH
7910   shlibpath_overrides_runpath=yes
7911   ;;
7912
7913 nto-qnx)
7914   version_type=linux
7915   need_lib_prefix=no
7916   need_version=no
7917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7918   soname_spec='${libname}${release}${shared_ext}$major'
7919   shlibpath_var=LD_LIBRARY_PATH
7920   shlibpath_overrides_runpath=yes
7921   ;;
7922
7923 openbsd*)
7924   version_type=sunos
7925   need_lib_prefix=no
7926   need_version=no
7927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7928   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7929   shlibpath_var=LD_LIBRARY_PATH
7930   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7931     case $host_os in
7932       openbsd2.[89] | openbsd2.[89].*)
7933         shlibpath_overrides_runpath=no
7934         ;;
7935       *)
7936         shlibpath_overrides_runpath=yes
7937         ;;
7938       esac
7939   else
7940     shlibpath_overrides_runpath=yes
7941   fi
7942   ;;
7943
7944 os2*)
7945   libname_spec='$name'
7946   shrext=".dll"
7947   need_lib_prefix=no
7948   library_names_spec='$libname${shared_ext} $libname.a'
7949   dynamic_linker='OS/2 ld.exe'
7950   shlibpath_var=LIBPATH
7951   ;;
7952
7953 osf3* | osf4* | osf5*)
7954   version_type=osf
7955   need_lib_prefix=no
7956   need_version=no
7957   soname_spec='${libname}${release}${shared_ext}$major'
7958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7959   shlibpath_var=LD_LIBRARY_PATH
7960   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7961   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7962   ;;
7963
7964 sco3.2v5*)
7965   version_type=osf
7966   soname_spec='${libname}${release}${shared_ext}$major'
7967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7968   shlibpath_var=LD_LIBRARY_PATH
7969   ;;
7970
7971 solaris*)
7972   version_type=linux
7973   need_lib_prefix=no
7974   need_version=no
7975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7976   soname_spec='${libname}${release}${shared_ext}$major'
7977   shlibpath_var=LD_LIBRARY_PATH
7978   shlibpath_overrides_runpath=yes
7979   hardcode_into_libs=yes
7980   # ldd complains unless libraries are executable
7981   postinstall_cmds='chmod +x $lib'
7982   ;;
7983
7984 sunos4*)
7985   version_type=sunos
7986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7987   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7988   shlibpath_var=LD_LIBRARY_PATH
7989   shlibpath_overrides_runpath=yes
7990   if test "$with_gnu_ld" = yes; then
7991     need_lib_prefix=no
7992   fi
7993   need_version=yes
7994   ;;
7995
7996 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7997   version_type=linux
7998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7999   soname_spec='${libname}${release}${shared_ext}$major'
8000   shlibpath_var=LD_LIBRARY_PATH
8001   case $host_vendor in
8002     sni)
8003       shlibpath_overrides_runpath=no
8004       need_lib_prefix=no
8005       export_dynamic_flag_spec='${wl}-Blargedynsym'
8006       runpath_var=LD_RUN_PATH
8007       ;;
8008     siemens)
8009       need_lib_prefix=no
8010       ;;
8011     motorola)
8012       need_lib_prefix=no
8013       need_version=no
8014       shlibpath_overrides_runpath=no
8015       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8016       ;;
8017   esac
8018   ;;
8019
8020 sysv4*MP*)
8021   if test -d /usr/nec ;then
8022     version_type=linux
8023     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8024     soname_spec='$libname${shared_ext}.$major'
8025     shlibpath_var=LD_LIBRARY_PATH
8026   fi
8027   ;;
8028
8029 uts4*)
8030   version_type=linux
8031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032   soname_spec='${libname}${release}${shared_ext}$major'
8033   shlibpath_var=LD_LIBRARY_PATH
8034   ;;
8035
8036 *)
8037   dynamic_linker=no
8038   ;;
8039 esac
8040 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8041 echo "${ECHO_T}$dynamic_linker" >&6
8042 test "$dynamic_linker" = no && can_build_shared=no
8043
8044 if test "x$enable_dlopen" != xyes; then
8045   enable_dlopen=unknown
8046   enable_dlopen_self=unknown
8047   enable_dlopen_self_static=unknown
8048 else
8049   lt_cv_dlopen=no
8050   lt_cv_dlopen_libs=
8051
8052   case $host_os in
8053   beos*)
8054     lt_cv_dlopen="load_add_on"
8055     lt_cv_dlopen_libs=
8056     lt_cv_dlopen_self=yes
8057     ;;
8058
8059   mingw* | pw32*)
8060     lt_cv_dlopen="LoadLibrary"
8061     lt_cv_dlopen_libs=
8062    ;;
8063
8064   cygwin*)
8065     lt_cv_dlopen="dlopen"
8066     lt_cv_dlopen_libs=
8067    ;;
8068
8069   darwin*)
8070   # if libdl is installed we need to link against it
8071     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8072 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8074   echo $ECHO_N "(cached) $ECHO_C" >&6
8075 else
8076   ac_check_lib_save_LIBS=$LIBS
8077 LIBS="-ldl  $LIBS"
8078 cat >conftest.$ac_ext <<_ACEOF
8079 #line $LINENO "configure"
8080 /* confdefs.h.  */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h.  */
8085
8086 /* Override any gcc2 internal prototype to avoid an error.  */
8087 #ifdef __cplusplus
8088 extern "C"
8089 #endif
8090 /* We use char because int might match the return type of a gcc2
8091    builtin and then its argument prototype would still apply.  */
8092 char dlopen ();
8093 int
8094 main ()
8095 {
8096 dlopen ();
8097   ;
8098   return 0;
8099 }
8100 _ACEOF
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103   (eval $ac_link) 2>&5
8104   ac_status=$?
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } &&
8107          { ac_try='test -s conftest$ac_exeext'
8108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109   (eval $ac_try) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; }; then
8113   ac_cv_lib_dl_dlopen=yes
8114 else
8115   echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118 ac_cv_lib_dl_dlopen=no
8119 fi
8120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8121 LIBS=$ac_check_lib_save_LIBS
8122 fi
8123 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8124 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8125 if test $ac_cv_lib_dl_dlopen = yes; then
8126   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8127 else
8128
8129     lt_cv_dlopen="dyld"
8130     lt_cv_dlopen_libs=
8131     lt_cv_dlopen_self=yes
8132
8133 fi
8134
8135    ;;
8136
8137   *)
8138     echo "$as_me:$LINENO: checking for shl_load" >&5
8139 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8140 if test "${ac_cv_func_shl_load+set}" = set; then
8141   echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143   cat >conftest.$ac_ext <<_ACEOF
8144 #line $LINENO "configure"
8145 /* confdefs.h.  */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h.  */
8150 /* System header to define __stub macros and hopefully few prototypes,
8151     which can conflict with char shl_load (); below.
8152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8153     <limits.h> exists even on freestanding compilers.  */
8154 #ifdef __STDC__
8155 # include <limits.h>
8156 #else
8157 # include <assert.h>
8158 #endif
8159 /* Override any gcc2 internal prototype to avoid an error.  */
8160 #ifdef __cplusplus
8161 extern "C"
8162 {
8163 #endif
8164 /* We use char because int might match the return type of a gcc2
8165    builtin and then its argument prototype would still apply.  */
8166 char shl_load ();
8167 /* The GNU C library defines this for functions which it implements
8168     to always fail with ENOSYS.  Some functions are actually named
8169     something starting with __ and the normal name is an alias.  */
8170 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8171 choke me
8172 #else
8173 char (*f) () = shl_load;
8174 #endif
8175 #ifdef __cplusplus
8176 }
8177 #endif
8178
8179 int
8180 main ()
8181 {
8182 return f != shl_load;
8183   ;
8184   return 0;
8185 }
8186 _ACEOF
8187 rm -f conftest.$ac_objext conftest$ac_exeext
8188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8189   (eval $ac_link) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } &&
8193          { ac_try='test -s conftest$ac_exeext'
8194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195   (eval $ac_try) 2>&5
8196   ac_status=$?
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); }; }; then
8199   ac_cv_func_shl_load=yes
8200 else
8201   echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8203
8204 ac_cv_func_shl_load=no
8205 fi
8206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8207 fi
8208 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8209 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8210 if test $ac_cv_func_shl_load = yes; then
8211   lt_cv_dlopen="shl_load"
8212 else
8213   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8214 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8215 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8216   echo $ECHO_N "(cached) $ECHO_C" >&6
8217 else
8218   ac_check_lib_save_LIBS=$LIBS
8219 LIBS="-ldld  $LIBS"
8220 cat >conftest.$ac_ext <<_ACEOF
8221 #line $LINENO "configure"
8222 /* confdefs.h.  */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h.  */
8227
8228 /* Override any gcc2 internal prototype to avoid an error.  */
8229 #ifdef __cplusplus
8230 extern "C"
8231 #endif
8232 /* We use char because int might match the return type of a gcc2
8233    builtin and then its argument prototype would still apply.  */
8234 char shl_load ();
8235 int
8236 main ()
8237 {
8238 shl_load ();
8239   ;
8240   return 0;
8241 }
8242 _ACEOF
8243 rm -f conftest.$ac_objext conftest$ac_exeext
8244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245   (eval $ac_link) 2>&5
8246   ac_status=$?
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); } &&
8249          { ac_try='test -s conftest$ac_exeext'
8250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251   (eval $ac_try) 2>&5
8252   ac_status=$?
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); }; }; then
8255   ac_cv_lib_dld_shl_load=yes
8256 else
8257   echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8259
8260 ac_cv_lib_dld_shl_load=no
8261 fi
8262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8263 LIBS=$ac_check_lib_save_LIBS
8264 fi
8265 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8266 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8267 if test $ac_cv_lib_dld_shl_load = yes; then
8268   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8269 else
8270   echo "$as_me:$LINENO: checking for dlopen" >&5
8271 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8272 if test "${ac_cv_func_dlopen+set}" = set; then
8273   echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275   cat >conftest.$ac_ext <<_ACEOF
8276 #line $LINENO "configure"
8277 /* confdefs.h.  */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h.  */
8282 /* System header to define __stub macros and hopefully few prototypes,
8283     which can conflict with char dlopen (); below.
8284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8285     <limits.h> exists even on freestanding compilers.  */
8286 #ifdef __STDC__
8287 # include <limits.h>
8288 #else
8289 # include <assert.h>
8290 #endif
8291 /* Override any gcc2 internal prototype to avoid an error.  */
8292 #ifdef __cplusplus
8293 extern "C"
8294 {
8295 #endif
8296 /* We use char because int might match the return type of a gcc2
8297    builtin and then its argument prototype would still apply.  */
8298 char dlopen ();
8299 /* The GNU C library defines this for functions which it implements
8300     to always fail with ENOSYS.  Some functions are actually named
8301     something starting with __ and the normal name is an alias.  */
8302 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8303 choke me
8304 #else
8305 char (*f) () = dlopen;
8306 #endif
8307 #ifdef __cplusplus
8308 }
8309 #endif
8310
8311 int
8312 main ()
8313 {
8314 return f != dlopen;
8315   ;
8316   return 0;
8317 }
8318 _ACEOF
8319 rm -f conftest.$ac_objext conftest$ac_exeext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321   (eval $ac_link) 2>&5
8322   ac_status=$?
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } &&
8325          { ac_try='test -s conftest$ac_exeext'
8326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327   (eval $ac_try) 2>&5
8328   ac_status=$?
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); }; }; then
8331   ac_cv_func_dlopen=yes
8332 else
8333   echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8335
8336 ac_cv_func_dlopen=no
8337 fi
8338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8339 fi
8340 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8341 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8342 if test $ac_cv_func_dlopen = yes; then
8343   lt_cv_dlopen="dlopen"
8344 else
8345   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8346 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8347 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8348   echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350   ac_check_lib_save_LIBS=$LIBS
8351 LIBS="-ldl  $LIBS"
8352 cat >conftest.$ac_ext <<_ACEOF
8353 #line $LINENO "configure"
8354 /* confdefs.h.  */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h.  */
8359
8360 /* Override any gcc2 internal prototype to avoid an error.  */
8361 #ifdef __cplusplus
8362 extern "C"
8363 #endif
8364 /* We use char because int might match the return type of a gcc2
8365    builtin and then its argument prototype would still apply.  */
8366 char dlopen ();
8367 int
8368 main ()
8369 {
8370 dlopen ();
8371   ;
8372   return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest.$ac_objext conftest$ac_exeext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8377   (eval $ac_link) 2>&5
8378   ac_status=$?
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -s conftest$ac_exeext'
8382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383   (eval $ac_try) 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; }; then
8387   ac_cv_lib_dl_dlopen=yes
8388 else
8389   echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392 ac_cv_lib_dl_dlopen=no
8393 fi
8394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8395 LIBS=$ac_check_lib_save_LIBS
8396 fi
8397 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8398 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8399 if test $ac_cv_lib_dl_dlopen = yes; then
8400   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8401 else
8402   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8403 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8404 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8405   echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407   ac_check_lib_save_LIBS=$LIBS
8408 LIBS="-lsvld  $LIBS"
8409 cat >conftest.$ac_ext <<_ACEOF
8410 #line $LINENO "configure"
8411 /* confdefs.h.  */
8412 _ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h.  */
8416
8417 /* Override any gcc2 internal prototype to avoid an error.  */
8418 #ifdef __cplusplus
8419 extern "C"
8420 #endif
8421 /* We use char because int might match the return type of a gcc2
8422    builtin and then its argument prototype would still apply.  */
8423 char dlopen ();
8424 int
8425 main ()
8426 {
8427 dlopen ();
8428   ;
8429   return 0;
8430 }
8431 _ACEOF
8432 rm -f conftest.$ac_objext conftest$ac_exeext
8433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8434   (eval $ac_link) 2>&5
8435   ac_status=$?
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); } &&
8438          { ac_try='test -s conftest$ac_exeext'
8439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440   (eval $ac_try) 2>&5
8441   ac_status=$?
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   (exit $ac_status); }; }; then
8444   ac_cv_lib_svld_dlopen=yes
8445 else
8446   echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 ac_cv_lib_svld_dlopen=no
8450 fi
8451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8452 LIBS=$ac_check_lib_save_LIBS
8453 fi
8454 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8455 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8456 if test $ac_cv_lib_svld_dlopen = yes; then
8457   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8458 else
8459   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8460 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8461 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8462   echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464   ac_check_lib_save_LIBS=$LIBS
8465 LIBS="-ldld  $LIBS"
8466 cat >conftest.$ac_ext <<_ACEOF
8467 #line $LINENO "configure"
8468 /* confdefs.h.  */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h.  */
8473
8474 /* Override any gcc2 internal prototype to avoid an error.  */
8475 #ifdef __cplusplus
8476 extern "C"
8477 #endif
8478 /* We use char because int might match the return type of a gcc2
8479    builtin and then its argument prototype would still apply.  */
8480 char dld_link ();
8481 int
8482 main ()
8483 {
8484 dld_link ();
8485   ;
8486   return 0;
8487 }
8488 _ACEOF
8489 rm -f conftest.$ac_objext conftest$ac_exeext
8490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491   (eval $ac_link) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); } &&
8495          { ac_try='test -s conftest$ac_exeext'
8496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497   (eval $ac_try) 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; }; then
8501   ac_cv_lib_dld_dld_link=yes
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 ac_cv_lib_dld_dld_link=no
8507 fi
8508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8509 LIBS=$ac_check_lib_save_LIBS
8510 fi
8511 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8512 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8513 if test $ac_cv_lib_dld_dld_link = yes; then
8514   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8515 fi
8516
8517
8518 fi
8519
8520
8521 fi
8522
8523
8524 fi
8525
8526
8527 fi
8528
8529
8530 fi
8531
8532     ;;
8533   esac
8534
8535   if test "x$lt_cv_dlopen" != xno; then
8536     enable_dlopen=yes
8537   else
8538     enable_dlopen=no
8539   fi
8540
8541   case $lt_cv_dlopen in
8542   dlopen)
8543     save_CPPFLAGS="$CPPFLAGS"
8544     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8545
8546     save_LDFLAGS="$LDFLAGS"
8547     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8548
8549     save_LIBS="$LIBS"
8550     LIBS="$lt_cv_dlopen_libs $LIBS"
8551
8552     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8553 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8554 if test "${lt_cv_dlopen_self+set}" = set; then
8555   echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557           if test "$cross_compiling" = yes; then :
8558   lt_cv_dlopen_self=cross
8559 else
8560   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8561   lt_status=$lt_dlunknown
8562   cat > conftest.$ac_ext <<EOF
8563 #line 8563 "configure"
8564 #include "confdefs.h"
8565
8566 #if HAVE_DLFCN_H
8567 #include <dlfcn.h>
8568 #endif
8569
8570 #include <stdio.h>
8571
8572 #ifdef RTLD_GLOBAL
8573 #  define LT_DLGLOBAL           RTLD_GLOBAL
8574 #else
8575 #  ifdef DL_GLOBAL
8576 #    define LT_DLGLOBAL         DL_GLOBAL
8577 #  else
8578 #    define LT_DLGLOBAL         0
8579 #  endif
8580 #endif
8581
8582 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8583    find out it does not work in some platform. */
8584 #ifndef LT_DLLAZY_OR_NOW
8585 #  ifdef RTLD_LAZY
8586 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8587 #  else
8588 #    ifdef DL_LAZY
8589 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8590 #    else
8591 #      ifdef RTLD_NOW
8592 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8593 #      else
8594 #        ifdef DL_NOW
8595 #          define LT_DLLAZY_OR_NOW      DL_NOW
8596 #        else
8597 #          define LT_DLLAZY_OR_NOW      0
8598 #        endif
8599 #      endif
8600 #    endif
8601 #  endif
8602 #endif
8603
8604 #ifdef __cplusplus
8605 extern "C" void exit (int);
8606 #endif
8607
8608 void fnord() { int i=42;}
8609 int main ()
8610 {
8611   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8612   int status = $lt_dlunknown;
8613
8614   if (self)
8615     {
8616       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8617       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8618       /* dlclose (self); */
8619     }
8620
8621     exit (status);
8622 }
8623 EOF
8624   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625   (eval $ac_link) 2>&5
8626   ac_status=$?
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8629     (./conftest; exit; ) 2>/dev/null
8630     lt_status=$?
8631     case x$lt_status in
8632       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8633       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8634       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8635     esac
8636   else :
8637     # compilation failed
8638     lt_cv_dlopen_self=no
8639   fi
8640 fi
8641 rm -fr conftest*
8642
8643
8644 fi
8645 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8646 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8647
8648     if test "x$lt_cv_dlopen_self" = xyes; then
8649       LDFLAGS="$LDFLAGS $link_static_flag"
8650       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8651 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8652 if test "${lt_cv_dlopen_self_static+set}" = set; then
8653   echo $ECHO_N "(cached) $ECHO_C" >&6
8654 else
8655           if test "$cross_compiling" = yes; then :
8656   lt_cv_dlopen_self_static=cross
8657 else
8658   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8659   lt_status=$lt_dlunknown
8660   cat > conftest.$ac_ext <<EOF
8661 #line 8661 "configure"
8662 #include "confdefs.h"
8663
8664 #if HAVE_DLFCN_H
8665 #include <dlfcn.h>
8666 #endif
8667
8668 #include <stdio.h>
8669
8670 #ifdef RTLD_GLOBAL
8671 #  define LT_DLGLOBAL           RTLD_GLOBAL
8672 #else
8673 #  ifdef DL_GLOBAL
8674 #    define LT_DLGLOBAL         DL_GLOBAL
8675 #  else
8676 #    define LT_DLGLOBAL         0
8677 #  endif
8678 #endif
8679
8680 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8681    find out it does not work in some platform. */
8682 #ifndef LT_DLLAZY_OR_NOW
8683 #  ifdef RTLD_LAZY
8684 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8685 #  else
8686 #    ifdef DL_LAZY
8687 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8688 #    else
8689 #      ifdef RTLD_NOW
8690 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8691 #      else
8692 #        ifdef DL_NOW
8693 #          define LT_DLLAZY_OR_NOW      DL_NOW
8694 #        else
8695 #          define LT_DLLAZY_OR_NOW      0
8696 #        endif
8697 #      endif
8698 #    endif
8699 #  endif
8700 #endif
8701
8702 #ifdef __cplusplus
8703 extern "C" void exit (int);
8704 #endif
8705
8706 void fnord() { int i=42;}
8707 int main ()
8708 {
8709   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8710   int status = $lt_dlunknown;
8711
8712   if (self)
8713     {
8714       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8715       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8716       /* dlclose (self); */
8717     }
8718
8719     exit (status);
8720 }
8721 EOF
8722   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8723   (eval $ac_link) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8727     (./conftest; exit; ) 2>/dev/null
8728     lt_status=$?
8729     case x$lt_status in
8730       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8731       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8732       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8733     esac
8734   else :
8735     # compilation failed
8736     lt_cv_dlopen_self_static=no
8737   fi
8738 fi
8739 rm -fr conftest*
8740
8741
8742 fi
8743 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8744 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8745     fi
8746
8747     CPPFLAGS="$save_CPPFLAGS"
8748     LDFLAGS="$save_LDFLAGS"
8749     LIBS="$save_LIBS"
8750     ;;
8751   esac
8752
8753   case $lt_cv_dlopen_self in
8754   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8755   *) enable_dlopen_self=unknown ;;
8756   esac
8757
8758   case $lt_cv_dlopen_self_static in
8759   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8760   *) enable_dlopen_self_static=unknown ;;
8761   esac
8762 fi
8763
8764
8765 # Report which librarie types wil actually be built
8766 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8767 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8768 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8769 echo "${ECHO_T}$can_build_shared" >&6
8770
8771 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8772 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8773 test "$can_build_shared" = "no" && enable_shared=no
8774
8775 # On AIX, shared libraries and static libraries use the same namespace, and
8776 # are all built from PIC.
8777 case "$host_os" in
8778 aix3*)
8779   test "$enable_shared" = yes && enable_static=no
8780   if test -n "$RANLIB"; then
8781     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8782     postinstall_cmds='$RANLIB $lib'
8783   fi
8784   ;;
8785
8786 aix4*)
8787   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8788     test "$enable_shared" = yes && enable_static=no
8789   fi
8790   ;;
8791   darwin* | rhapsody*)
8792   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8793     archive_cmds_need_lc=no
8794     case "$host_os" in
8795     rhapsody* | darwin1.[012])
8796       allow_undefined_flag='-undefined suppress'
8797       ;;
8798     *) # Darwin 1.3 on
8799       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8800       ;;
8801     esac
8802     # FIXME: Relying on posixy $() will cause problems for
8803     #        cross-compilation, but unfortunately the echo tests do not
8804     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8805     #          `"' quotes if we put them in here... so don't!
8806                 output_verbose_link_cmd='echo'
8807     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8808     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8809     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8810                   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}'
8811                   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}'
8812     hardcode_direct=no
8813     hardcode_automatic=yes
8814     hardcode_shlibpath_var=unsupported
8815     whole_archive_flag_spec='-all_load $convenience'
8816     link_all_deplibs=yes
8817     fi
8818     ;;
8819 esac
8820 echo "$as_me:$LINENO: result: $enable_shared" >&5
8821 echo "${ECHO_T}$enable_shared" >&6
8822
8823 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8824 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8825 # Make sure either enable_shared or enable_static is yes.
8826 test "$enable_shared" = yes || enable_static=yes
8827 echo "$as_me:$LINENO: result: $enable_static" >&5
8828 echo "${ECHO_T}$enable_static" >&6
8829
8830 # The else clause should only fire when bootstrapping the
8831 # libtool distribution, otherwise you forgot to ship ltmain.sh
8832 # with your package, and you will get complaints that there are
8833 # no rules to generate ltmain.sh.
8834 if test -f "$ltmain"; then
8835   # See if we are running on zsh, and set the options which allow our commands through
8836   # without removal of \ escapes.
8837   if test -n "${ZSH_VERSION+set}" ; then
8838     setopt NO_GLOB_SUBST
8839   fi
8840   # Now quote all the things that may contain metacharacters while being
8841   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8842   # variables and quote the copies for generation of the libtool script.
8843   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8844     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8845     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8846     deplibs_check_method reload_flag reload_cmds need_locks \
8847     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8848     lt_cv_sys_global_symbol_to_c_name_address \
8849     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8850     old_postinstall_cmds old_postuninstall_cmds \
8851     compiler \
8852     CC \
8853     LD \
8854     lt_prog_compiler_wl \
8855     lt_prog_compiler_pic \
8856     lt_prog_compiler_static \
8857     lt_prog_compiler_no_builtin_flag \
8858     export_dynamic_flag_spec \
8859     thread_safe_flag_spec \
8860     whole_archive_flag_spec \
8861     enable_shared_with_static_runtimes \
8862     old_archive_cmds \
8863     old_archive_from_new_cmds \
8864     predep_objects \
8865     postdep_objects \
8866     predeps \
8867     postdeps \
8868     compiler_lib_search_path \
8869     archive_cmds \
8870     archive_expsym_cmds \
8871     postinstall_cmds \
8872     postuninstall_cmds \
8873     old_archive_from_expsyms_cmds \
8874     allow_undefined_flag \
8875     no_undefined_flag \
8876     export_symbols_cmds \
8877     hardcode_libdir_flag_spec \
8878     hardcode_libdir_flag_spec_ld \
8879     hardcode_libdir_separator \
8880     hardcode_automatic \
8881     module_cmds \
8882     module_expsym_cmds \
8883     lt_cv_prog_compiler_c_o \
8884     exclude_expsyms \
8885     include_expsyms; do
8886
8887     case $var in
8888     old_archive_cmds | \
8889     old_archive_from_new_cmds | \
8890     archive_cmds | \
8891     archive_expsym_cmds | \
8892     module_cmds | \
8893     module_expsym_cmds | \
8894     old_archive_from_expsyms_cmds | \
8895     export_symbols_cmds | \
8896     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8897     postinstall_cmds | postuninstall_cmds | \
8898     old_postinstall_cmds | old_postuninstall_cmds | \
8899     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8900       # Double-quote double-evaled strings.
8901       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8902       ;;
8903     *)
8904       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8905       ;;
8906     esac
8907   done
8908
8909   case $lt_echo in
8910   *'\$0 --fallback-echo"')
8911     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8912     ;;
8913   esac
8914
8915 cfgfile="${ofile}T"
8916   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8917   $rm -f "$cfgfile"
8918   { echo "$as_me:$LINENO: creating $ofile" >&5
8919 echo "$as_me: creating $ofile" >&6;}
8920
8921   cat <<__EOF__ >> "$cfgfile"
8922 #! $SHELL
8923
8924 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8925 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8926 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8927 #
8928 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8929 # Free Software Foundation, Inc.
8930 #
8931 # This file is part of GNU Libtool:
8932 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8933 #
8934 # This program is free software; you can redistribute it and/or modify
8935 # it under the terms of the GNU General Public License as published by
8936 # the Free Software Foundation; either version 2 of the License, or
8937 # (at your option) any later version.
8938 #
8939 # This program is distributed in the hope that it will be useful, but
8940 # WITHOUT ANY WARRANTY; without even the implied warranty of
8941 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8942 # General Public License for more details.
8943 #
8944 # You should have received a copy of the GNU General Public License
8945 # along with this program; if not, write to the Free Software
8946 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8947 #
8948 # As a special exception to the GNU General Public License, if you
8949 # distribute this file as part of a program that contains a
8950 # configuration script generated by Autoconf, you may include it under
8951 # the same distribution terms that you use for the rest of that program.
8952
8953 # A sed program that does not truncate output.
8954 SED=$lt_SED
8955
8956 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8957 Xsed="$SED -e s/^X//"
8958
8959 # The HP-UX ksh and POSIX shell print the target directory to stdout
8960 # if CDPATH is set.
8961 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8962
8963 # The names of the tagged configurations supported by this script.
8964 available_tags=
8965
8966 # ### BEGIN LIBTOOL CONFIG
8967
8968 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8969
8970 # Shell to use when invoking shell scripts.
8971 SHELL=$lt_SHELL
8972
8973 # Whether or not to build shared libraries.
8974 build_libtool_libs=$enable_shared
8975
8976 # Whether or not to build static libraries.
8977 build_old_libs=$enable_static
8978
8979 # Whether or not to add -lc for building shared libraries.
8980 build_libtool_need_lc=$archive_cmds_need_lc
8981
8982 # Whether or not to disallow shared libs when runtime libs are static
8983 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8984
8985 # Whether or not to optimize for fast installation.
8986 fast_install=$enable_fast_install
8987
8988 # The host system.
8989 host_alias=$host_alias
8990 host=$host
8991
8992 # An echo program that does not interpret backslashes.
8993 echo=$lt_echo
8994
8995 # The archiver.
8996 AR=$lt_AR
8997 AR_FLAGS=$lt_AR_FLAGS
8998
8999 # A C compiler.
9000 LTCC=$lt_LTCC
9001
9002 # A language-specific compiler.
9003 CC=$lt_compiler
9004
9005 # Is the compiler the GNU C compiler?
9006 with_gcc=$GCC
9007
9008 # An ERE matcher.
9009 EGREP=$lt_EGREP
9010
9011 # The linker used to build libraries.
9012 LD=$lt_LD
9013
9014 # Whether we need hard or soft links.
9015 LN_S=$lt_LN_S
9016
9017 # A BSD-compatible nm program.
9018 NM=$lt_NM
9019
9020 # A symbol stripping program
9021 STRIP=$STRIP
9022
9023 # Used to examine libraries when file_magic_cmd begins "file"
9024 MAGIC_CMD=$MAGIC_CMD
9025
9026 # Used on cygwin: DLL creation program.
9027 DLLTOOL="$DLLTOOL"
9028
9029 # Used on cygwin: object dumper.
9030 OBJDUMP="$OBJDUMP"
9031
9032 # Used on cygwin: assembler.
9033 AS="$AS"
9034
9035 # The name of the directory that contains temporary libtool files.
9036 objdir=$objdir
9037
9038 # How to create reloadable object files.
9039 reload_flag=$lt_reload_flag
9040 reload_cmds=$lt_reload_cmds
9041
9042 # How to pass a linker flag through the compiler.
9043 wl=$lt_lt_prog_compiler_wl
9044
9045 # Object file suffix (normally "o").
9046 objext="$ac_objext"
9047
9048 # Old archive suffix (normally "a").
9049 libext="$libext"
9050
9051 # Shared library suffix (normally ".so").
9052 shrext='$shrext'
9053
9054 # Executable file suffix (normally "").
9055 exeext="$exeext"
9056
9057 # Additional compiler flags for building library objects.
9058 pic_flag=$lt_lt_prog_compiler_pic
9059 pic_mode=$pic_mode
9060
9061 # What is the maximum length of a command?
9062 max_cmd_len=$lt_cv_sys_max_cmd_len
9063
9064 # Does compiler simultaneously support -c and -o options?
9065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9066
9067 # Must we lock files when doing compilation ?
9068 need_locks=$lt_need_locks
9069
9070 # Do we need the lib prefix for modules?
9071 need_lib_prefix=$need_lib_prefix
9072
9073 # Do we need a version for libraries?
9074 need_version=$need_version
9075
9076 # Whether dlopen is supported.
9077 dlopen_support=$enable_dlopen
9078
9079 # Whether dlopen of programs is supported.
9080 dlopen_self=$enable_dlopen_self
9081
9082 # Whether dlopen of statically linked programs is supported.
9083 dlopen_self_static=$enable_dlopen_self_static
9084
9085 # Compiler flag to prevent dynamic linking.
9086 link_static_flag=$lt_lt_prog_compiler_static
9087
9088 # Compiler flag to turn off builtin functions.
9089 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9090
9091 # Compiler flag to allow reflexive dlopens.
9092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9093
9094 # Compiler flag to generate shared objects directly from archives.
9095 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9096
9097 # Compiler flag to generate thread-safe objects.
9098 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9099
9100 # Library versioning type.
9101 version_type=$version_type
9102
9103 # Format of library name prefix.
9104 libname_spec=$lt_libname_spec
9105
9106 # List of archive names.  First name is the real one, the rest are links.
9107 # The last name is the one that the linker finds with -lNAME.
9108 library_names_spec=$lt_library_names_spec
9109
9110 # The coded name of the library, if different from the real name.
9111 soname_spec=$lt_soname_spec
9112
9113 # Commands used to build and install an old-style archive.
9114 RANLIB=$lt_RANLIB
9115 old_archive_cmds=$lt_old_archive_cmds
9116 old_postinstall_cmds=$lt_old_postinstall_cmds
9117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9118
9119 # Create an old-style archive from a shared archive.
9120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9121
9122 # Create a temporary old-style archive to link instead of a shared archive.
9123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9124
9125 # Commands used to build and install a shared archive.
9126 archive_cmds=$lt_archive_cmds
9127 archive_expsym_cmds=$lt_archive_expsym_cmds
9128 postinstall_cmds=$lt_postinstall_cmds
9129 postuninstall_cmds=$lt_postuninstall_cmds
9130
9131 # Commands used to build a loadable module (assumed same as above if empty)
9132 module_cmds=$lt_module_cmds
9133 module_expsym_cmds=$lt_module_expsym_cmds
9134
9135 # Commands to strip libraries.
9136 old_striplib=$lt_old_striplib
9137 striplib=$lt_striplib
9138
9139 # Dependencies to place before the objects being linked to create a
9140 # shared library.
9141 predep_objects=$lt_predep_objects
9142
9143 # Dependencies to place after the objects being linked to create a
9144 # shared library.
9145 postdep_objects=$lt_postdep_objects
9146
9147 # Dependencies to place before the objects being linked to create a
9148 # shared library.
9149 predeps=$lt_predeps
9150
9151 # Dependencies to place after the objects being linked to create a
9152 # shared library.
9153 postdeps=$lt_postdeps
9154
9155 # The library search path used internally by the compiler when linking
9156 # a shared library.
9157 compiler_lib_search_path=$lt_compiler_lib_search_path
9158
9159 # Method to check whether dependent libraries are shared objects.
9160 deplibs_check_method=$lt_deplibs_check_method
9161
9162 # Command to use when deplibs_check_method == file_magic.
9163 file_magic_cmd=$lt_file_magic_cmd
9164
9165 # Flag that allows shared libraries with undefined symbols to be built.
9166 allow_undefined_flag=$lt_allow_undefined_flag
9167
9168 # Flag that forces no undefined symbols.
9169 no_undefined_flag=$lt_no_undefined_flag
9170
9171 # Commands used to finish a libtool library installation in a directory.
9172 finish_cmds=$lt_finish_cmds
9173
9174 # Same as above, but a single script fragment to be evaled but not shown.
9175 finish_eval=$lt_finish_eval
9176
9177 # Take the output of nm and produce a listing of raw symbols and C names.
9178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9179
9180 # Transform the output of nm in a proper C declaration
9181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9182
9183 # Transform the output of nm in a C name address pair
9184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9185
9186 # This is the shared library runtime path variable.
9187 runpath_var=$runpath_var
9188
9189 # This is the shared library path variable.
9190 shlibpath_var=$shlibpath_var
9191
9192 # Is shlibpath searched before the hard-coded library search path?
9193 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9194
9195 # How to hardcode a shared library path into an executable.
9196 hardcode_action=$hardcode_action
9197
9198 # Whether we should hardcode library paths into libraries.
9199 hardcode_into_libs=$hardcode_into_libs
9200
9201 # Flag to hardcode \$libdir into a binary during linking.
9202 # This must work even if \$libdir does not exist.
9203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9204
9205 # If ld is used when linking, flag to hardcode \$libdir into
9206 # a binary during linking. This must work even if \$libdir does
9207 # not exist.
9208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9209
9210 # Whether we need a single -rpath flag with a separated argument.
9211 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9212
9213 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9214 # resulting binary.
9215 hardcode_direct=$hardcode_direct
9216
9217 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9218 # resulting binary.
9219 hardcode_minus_L=$hardcode_minus_L
9220
9221 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9222 # the resulting binary.
9223 hardcode_shlibpath_var=$hardcode_shlibpath_var
9224
9225 # Set to yes if building a shared library automatically hardcodes DIR into the library
9226 # and all subsequent libraries and executables linked against it.
9227 hardcode_automatic=$hardcode_automatic
9228
9229 # Variables whose values should be saved in libtool wrapper scripts and
9230 # restored at relink time.
9231 variables_saved_for_relink="$variables_saved_for_relink"
9232
9233 # Whether libtool must link a program against all its dependency libraries.
9234 link_all_deplibs=$link_all_deplibs
9235
9236 # Compile-time system search path for libraries
9237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9238
9239 # Run-time system search path for libraries
9240 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9241
9242 # Fix the shell variable \$srcfile for the compiler.
9243 fix_srcfile_path="$fix_srcfile_path"
9244
9245 # Set to yes if exported symbols are required.
9246 always_export_symbols=$always_export_symbols
9247
9248 # The commands to list exported symbols.
9249 export_symbols_cmds=$lt_export_symbols_cmds
9250
9251 # The commands to extract the exported symbol list from a shared archive.
9252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9253
9254 # Symbols that should not be listed in the preloaded symbols.
9255 exclude_expsyms=$lt_exclude_expsyms
9256
9257 # Symbols that must always be exported.
9258 include_expsyms=$lt_include_expsyms
9259
9260 # ### END LIBTOOL CONFIG
9261
9262 __EOF__
9263
9264
9265   case $host_os in
9266   aix3*)
9267     cat <<\EOF >> "$cfgfile"
9268
9269 # AIX sometimes has problems with the GCC collect2 program.  For some
9270 # reason, if we set the COLLECT_NAMES environment variable, the problems
9271 # vanish in a puff of smoke.
9272 if test "X${COLLECT_NAMES+set}" != Xset; then
9273   COLLECT_NAMES=
9274   export COLLECT_NAMES
9275 fi
9276 EOF
9277     ;;
9278   esac
9279
9280   # We use sed instead of cat because bash on DJGPP gets confused if
9281   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9282   # text mode, it properly converts lines to CR/LF.  This bash problem
9283   # is reportedly fixed, but why not run on old versions too?
9284   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9285
9286   mv -f "$cfgfile" "$ofile" || \
9287     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9288   chmod +x "$ofile"
9289
9290 else
9291   # If there is no Makefile yet, we rely on a make rule to execute
9292   # `config.status --recheck' to rerun these tests and create the
9293   # libtool script then.
9294   test -f Makefile && make "$ltmain"
9295 fi
9296
9297
9298 ac_ext=c
9299 ac_cpp='$CPP $CPPFLAGS'
9300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9303
9304 CC="$lt_save_CC"
9305
9306
9307 # Check whether --with-tags or --without-tags was given.
9308 if test "${with_tags+set}" = set; then
9309   withval="$with_tags"
9310   tagnames="$withval"
9311 fi;
9312
9313 if test -f "$ltmain" && test -n "$tagnames"; then
9314   if test ! -f "${ofile}"; then
9315     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9316 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9317   fi
9318
9319   if test -z "$LTCC"; then
9320     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9321     if test -z "$LTCC"; then
9322       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9323 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9324     else
9325       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9326 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9327     fi
9328   fi
9329
9330   # Extract list of available tagged configurations in $ofile.
9331   # Note that this assumes the entire list is on one line.
9332   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9333
9334   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9335   for tagname in $tagnames; do
9336     IFS="$lt_save_ifs"
9337     # Check whether tagname contains only valid characters
9338     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9339     "") ;;
9340     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9341 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9342    { (exit 1); exit 1; }; }
9343         ;;
9344     esac
9345
9346     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9347     then
9348       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9349 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9350    { (exit 1); exit 1; }; }
9351     fi
9352
9353     # Update the list of available tags.
9354     if test -n "$tagname"; then
9355       echo appending configuration tag \"$tagname\" to $ofile
9356
9357       case $tagname in
9358       CXX)
9359         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9360           ac_ext=cc
9361 ac_cpp='$CXXCPP $CPPFLAGS'
9362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9365
9366
9367
9368
9369 archive_cmds_need_lc_CXX=no
9370 allow_undefined_flag_CXX=
9371 always_export_symbols_CXX=no
9372 archive_expsym_cmds_CXX=
9373 export_dynamic_flag_spec_CXX=
9374 hardcode_direct_CXX=no
9375 hardcode_libdir_flag_spec_CXX=
9376 hardcode_libdir_flag_spec_ld_CXX=
9377 hardcode_libdir_separator_CXX=
9378 hardcode_minus_L_CXX=no
9379 hardcode_automatic_CXX=no
9380 module_cmds_CXX=
9381 module_expsym_cmds_CXX=
9382 link_all_deplibs_CXX=unknown
9383 old_archive_cmds_CXX=$old_archive_cmds
9384 no_undefined_flag_CXX=
9385 whole_archive_flag_spec_CXX=
9386 enable_shared_with_static_runtimes_CXX=no
9387
9388 # Dependencies to place before and after the object being linked:
9389 predep_objects_CXX=
9390 postdep_objects_CXX=
9391 predeps_CXX=
9392 postdeps_CXX=
9393 compiler_lib_search_path_CXX=
9394
9395 # Source file extension for C++ test sources.
9396 ac_ext=cc
9397
9398 # Object file extension for compiled C++ test sources.
9399 objext=o
9400 objext_CXX=$objext
9401
9402 # Code to be used in simple compile tests
9403 lt_simple_compile_test_code="int some_variable = 0;\n"
9404
9405 # Code to be used in simple link tests
9406 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9407
9408 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9409
9410 # If no C compiler was specified, use CC.
9411 LTCC=${LTCC-"$CC"}
9412
9413 # Allow CC to be a program name with arguments.
9414 compiler=$CC
9415
9416
9417 # Allow CC to be a program name with arguments.
9418 lt_save_CC=$CC
9419 lt_save_LD=$LD
9420 lt_save_GCC=$GCC
9421 GCC=$GXX
9422 lt_save_with_gnu_ld=$with_gnu_ld
9423 lt_save_path_LD=$lt_cv_path_LD
9424 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9425   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9426 else
9427   unset lt_cv_prog_gnu_ld
9428 fi
9429 if test -n "${lt_cv_path_LDCXX+set}"; then
9430   lt_cv_path_LD=$lt_cv_path_LDCXX
9431 else
9432   unset lt_cv_path_LD
9433 fi
9434 test -z "${LDCXX+set}" || LD=$LDCXX
9435 CC=${CXX-"c++"}
9436 compiler=$CC
9437 compiler_CXX=$CC
9438 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9439
9440 # We don't want -fno-exception wen compiling C++ code, so set the
9441 # no_builtin_flag separately
9442 if test "$GXX" = yes; then
9443   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9444 else
9445   lt_prog_compiler_no_builtin_flag_CXX=
9446 fi
9447
9448 if test "$GXX" = yes; then
9449   # Set up default GNU C++ configuration
9450
9451
9452 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9453 if test "${with_gnu_ld+set}" = set; then
9454   withval="$with_gnu_ld"
9455   test "$withval" = no || with_gnu_ld=yes
9456 else
9457   with_gnu_ld=no
9458 fi;
9459 ac_prog=ld
9460 if test "$GCC" = yes; then
9461   # Check if gcc -print-prog-name=ld gives a path.
9462   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9463 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9464   case $host in
9465   *-*-mingw*)
9466     # gcc leaves a trailing carriage return which upsets mingw
9467     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9468   *)
9469     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9470   esac
9471   case $ac_prog in
9472     # Accept absolute paths.
9473     [\\/]* | ?:[\\/]*)
9474       re_direlt='/[^/][^/]*/\.\./'
9475       # Canonicalize the path of ld
9476       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9477       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9478         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9479       done
9480       test -z "$LD" && LD="$ac_prog"
9481       ;;
9482   "")
9483     # If it fails, then pretend we aren't using GCC.
9484     ac_prog=ld
9485     ;;
9486   *)
9487     # If it is relative, then search for the first ld in PATH.
9488     with_gnu_ld=unknown
9489     ;;
9490   esac
9491 elif test "$with_gnu_ld" = yes; then
9492   echo "$as_me:$LINENO: checking for GNU ld" >&5
9493 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9494 else
9495   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9496 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9497 fi
9498 if test "${lt_cv_path_LD+set}" = set; then
9499   echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501   if test -z "$LD"; then
9502   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9503   for ac_dir in $PATH; do
9504     IFS="$lt_save_ifs"
9505     test -z "$ac_dir" && ac_dir=.
9506     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9507       lt_cv_path_LD="$ac_dir/$ac_prog"
9508       # Check to see if the program is GNU ld.  I'd rather use --version,
9509       # but apparently some GNU ld's only accept -v.
9510       # Break only if it was the GNU/non-GNU ld that we prefer.
9511       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9512       *GNU* | *'with BFD'*)
9513         test "$with_gnu_ld" != no && break
9514         ;;
9515       *)
9516         test "$with_gnu_ld" != yes && break
9517         ;;
9518       esac
9519     fi
9520   done
9521   IFS="$lt_save_ifs"
9522 else
9523   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9524 fi
9525 fi
9526
9527 LD="$lt_cv_path_LD"
9528 if test -n "$LD"; then
9529   echo "$as_me:$LINENO: result: $LD" >&5
9530 echo "${ECHO_T}$LD" >&6
9531 else
9532   echo "$as_me:$LINENO: result: no" >&5
9533 echo "${ECHO_T}no" >&6
9534 fi
9535 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9536 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9537    { (exit 1); exit 1; }; }
9538 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9539 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9540 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9544 case `"$LD" -v 2>&1 </dev/null` in
9545 *GNU* | *'with BFD'*)
9546   lt_cv_prog_gnu_ld=yes
9547   ;;
9548 *)
9549   lt_cv_prog_gnu_ld=no
9550   ;;
9551 esac
9552 fi
9553 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9554 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9555 with_gnu_ld=$lt_cv_prog_gnu_ld
9556
9557
9558
9559   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9560   # archiving commands below assume that GNU ld is being used.
9561   if test "$with_gnu_ld" = yes; then
9562     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9563     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'
9564
9565     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9566     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9567
9568     # If archive_cmds runs LD, not CC, wlarc should be empty
9569     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9570     #     investigate it a little bit more. (MM)
9571     wlarc='${wl}'
9572
9573     # ancient GNU ld didn't support --whole-archive et. al.
9574     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9575         grep 'no-whole-archive' > /dev/null; then
9576       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9577     else
9578       whole_archive_flag_spec_CXX=
9579     fi
9580   else
9581     with_gnu_ld=no
9582     wlarc=
9583
9584     # A generic and very simple default shared library creation
9585     # command for GNU C++ for the case where it uses the native
9586     # linker, instead of GNU ld.  If possible, this setting should
9587     # overridden to take advantage of the native linker features on
9588     # the platform it is being used on.
9589     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9590   fi
9591
9592   # Commands to make compiler produce verbose output that lists
9593   # what "hidden" libraries, object files and flags are used when
9594   # linking a shared library.
9595   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9596
9597 else
9598   GXX=no
9599   with_gnu_ld=no
9600   wlarc=
9601 fi
9602
9603 # PORTME: fill in a description of your system's C++ link characteristics
9604 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9605 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9606 ld_shlibs_CXX=yes
9607 case $host_os in
9608   aix3*)
9609     # FIXME: insert proper C++ library support
9610     ld_shlibs_CXX=no
9611     ;;
9612   aix4* | aix5*)
9613     if test "$host_cpu" = ia64; then
9614       # On IA64, the linker does run time linking by default, so we don't
9615       # have to do anything special.
9616       aix_use_runtimelinking=no
9617       exp_sym_flag='-Bexport'
9618       no_entry_flag=""
9619     else
9620       aix_use_runtimelinking=no
9621
9622       # Test if we are trying to use run time linking or normal
9623       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9624       # need to do runtime linking.
9625       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9626         for ld_flag in $LDFLAGS; do
9627           case $ld_flag in
9628           *-brtl*)
9629             aix_use_runtimelinking=yes
9630             break
9631             ;;
9632           esac
9633         done
9634       esac
9635
9636       exp_sym_flag='-bexport'
9637       no_entry_flag='-bnoentry'
9638     fi
9639
9640     # When large executables or shared objects are built, AIX ld can
9641     # have problems creating the table of contents.  If linking a library
9642     # or program results in "error TOC overflow" add -mminimal-toc to
9643     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9644     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9645
9646     archive_cmds_CXX=''
9647     hardcode_direct_CXX=yes
9648     hardcode_libdir_separator_CXX=':'
9649     link_all_deplibs_CXX=yes
9650
9651     if test "$GXX" = yes; then
9652       case $host_os in aix4.012|aix4.012.*)
9653       # We only want to do this on AIX 4.2 and lower, the check
9654       # below for broken collect2 doesn't work under 4.3+
9655         collect2name=`${CC} -print-prog-name=collect2`
9656         if test -f "$collect2name" && \
9657            strings "$collect2name" | grep resolve_lib_name >/dev/null
9658         then
9659           # We have reworked collect2
9660           hardcode_direct_CXX=yes
9661         else
9662           # We have old collect2
9663           hardcode_direct_CXX=unsupported
9664           # It fails to find uninstalled libraries when the uninstalled
9665           # path is not listed in the libpath.  Setting hardcode_minus_L
9666           # to unsupported forces relinking
9667           hardcode_minus_L_CXX=yes
9668           hardcode_libdir_flag_spec_CXX='-L$libdir'
9669           hardcode_libdir_separator_CXX=
9670         fi
9671       esac
9672       shared_flag='-shared'
9673     else
9674       # not using gcc
9675       if test "$host_cpu" = ia64; then
9676         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9677         # chokes on -Wl,-G. The following line is correct:
9678         shared_flag='-G'
9679       else
9680         if test "$aix_use_runtimelinking" = yes; then
9681           shared_flag='${wl}-G'
9682         else
9683           shared_flag='${wl}-bM:SRE'
9684         fi
9685       fi
9686     fi
9687
9688     # It seems that -bexpall does not export symbols beginning with
9689     # underscore (_), so it is better to generate a list of symbols to export.
9690     always_export_symbols_CXX=yes
9691     if test "$aix_use_runtimelinking" = yes; then
9692       # Warning - without using the other runtime loading flags (-brtl),
9693       # -berok will link without error, but may produce a broken library.
9694       allow_undefined_flag_CXX='-berok'
9695       # Determine the default libpath from the value encoded in an empty executable.
9696       cat >conftest.$ac_ext <<_ACEOF
9697 #line $LINENO "configure"
9698 /* confdefs.h.  */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h.  */
9703
9704 int
9705 main ()
9706 {
9707
9708   ;
9709   return 0;
9710 }
9711 _ACEOF
9712 rm -f conftest.$ac_objext conftest$ac_exeext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9714   (eval $ac_link) 2>&5
9715   ac_status=$?
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); } &&
9718          { ac_try='test -s conftest$ac_exeext'
9719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720   (eval $ac_try) 2>&5
9721   ac_status=$?
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); }; }; then
9724
9725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9726 }'`
9727 # Check for a 64-bit object if we didn't find anything.
9728 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; }
9729 }'`; fi
9730 else
9731   echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9733
9734 fi
9735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9737
9738       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9739
9740       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"
9741      else
9742       if test "$host_cpu" = ia64; then
9743         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9744         allow_undefined_flag_CXX="-z nodefs"
9745         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"
9746       else
9747         # Determine the default libpath from the value encoded in an empty executable.
9748         cat >conftest.$ac_ext <<_ACEOF
9749 #line $LINENO "configure"
9750 /* confdefs.h.  */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h.  */
9755
9756 int
9757 main ()
9758 {
9759
9760   ;
9761   return 0;
9762 }
9763 _ACEOF
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766   (eval $ac_link) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); } &&
9770          { ac_try='test -s conftest$ac_exeext'
9771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772   (eval $ac_try) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; }; then
9776
9777 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9778 }'`
9779 # Check for a 64-bit object if we didn't find anything.
9780 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; }
9781 }'`; fi
9782 else
9783   echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9785
9786 fi
9787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9788 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9789
9790         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9791         # Warning - without using the other run time loading flags,
9792         # -berok will link without error, but may produce a broken library.
9793         no_undefined_flag_CXX=' ${wl}-bernotok'
9794         allow_undefined_flag_CXX=' ${wl}-berok'
9795         # -bexpall does not export symbols beginning with underscore (_)
9796         always_export_symbols_CXX=yes
9797         # Exported symbols can be pulled into shared objects from archives
9798         whole_archive_flag_spec_CXX=' '
9799         archive_cmds_need_lc_CXX=yes
9800         # This is similar to how AIX traditionally builds it's shared libraries.
9801         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'
9802       fi
9803     fi
9804     ;;
9805   chorus*)
9806     case $cc_basename in
9807       *)
9808         # FIXME: insert proper C++ library support
9809         ld_shlibs_CXX=no
9810         ;;
9811     esac
9812     ;;
9813
9814   cygwin* | mingw* | pw32*)
9815     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9816     # as there is no search path for DLLs.
9817     hardcode_libdir_flag_spec_CXX='-L$libdir'
9818     allow_undefined_flag_CXX=unsupported
9819     always_export_symbols_CXX=no
9820     enable_shared_with_static_runtimes_CXX=yes
9821
9822     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9823       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'
9824       # If the export-symbols file already is a .def file (1st line
9825       # is EXPORTS), use it as is; otherwise, prepend...
9826       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9827         cp $export_symbols $output_objdir/$soname.def;
9828       else
9829         echo EXPORTS > $output_objdir/$soname.def;
9830         cat $export_symbols >> $output_objdir/$soname.def;
9831       fi~
9832       $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'
9833     else
9834       ld_shlibs_CXX=no
9835     fi
9836   ;;
9837
9838   darwin* | rhapsody*)
9839    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9840     archive_cmds_need_lc_CXX=no
9841     case "$host_os" in
9842     rhapsody* | darwin1.[012])
9843       allow_undefined_flag_CXX='-undefined suppress'
9844       ;;
9845     *) # Darwin 1.3 on
9846       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9847       ;;
9848     esac
9849         lt_int_apple_cc_single_mod=no
9850         output_verbose_link_cmd='echo'
9851         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9852           lt_int_apple_cc_single_mod=yes
9853         fi
9854         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9855           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9856         else
9857         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'
9858       fi
9859       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9860
9861     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9862       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9863         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}'
9864       else
9865         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}'
9866       fi
9867         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}'
9868     hardcode_direct_CXX=no
9869     hardcode_automatic_CXX=yes
9870     hardcode_shlibpath_var_CXX=unsupported
9871     whole_archive_flag_spec_CXX='-all_load $convenience'
9872     link_all_deplibs_CXX=yes
9873    fi
9874     ;;
9875
9876   dgux*)
9877     case $cc_basename in
9878       ec++)
9879         # FIXME: insert proper C++ library support
9880         ld_shlibs_CXX=no
9881         ;;
9882       ghcx)
9883         # Green Hills C++ Compiler
9884         # FIXME: insert proper C++ library support
9885         ld_shlibs_CXX=no
9886         ;;
9887       *)
9888         # FIXME: insert proper C++ library support
9889         ld_shlibs_CXX=no
9890         ;;
9891     esac
9892     ;;
9893   freebsd12*)
9894     # C++ shared libraries reported to be fairly broken before switch to ELF
9895     ld_shlibs_CXX=no
9896     ;;
9897   freebsd-elf*)
9898     archive_cmds_need_lc_CXX=no
9899     ;;
9900   freebsd*)
9901     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9902     # conventions
9903     ld_shlibs_CXX=yes
9904     ;;
9905   gnu*)
9906     ;;
9907   hpux9*)
9908     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9909     hardcode_libdir_separator_CXX=:
9910     export_dynamic_flag_spec_CXX='${wl}-E'
9911     hardcode_direct_CXX=yes
9912     hardcode_minus_L_CXX=yes # Not in the search PATH,
9913                                 # but as the default
9914                                 # location of the library.
9915
9916     case $cc_basename in
9917     CC)
9918       # FIXME: insert proper C++ library support
9919       ld_shlibs_CXX=no
9920       ;;
9921     aCC)
9922       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'
9923       # Commands to make compiler produce verbose output that lists
9924       # what "hidden" libraries, object files and flags are used when
9925       # linking a shared library.
9926       #
9927       # There doesn't appear to be a way to prevent this compiler from
9928       # explicitly linking system object files so we need to strip them
9929       # from the output so that they don't get included in the library
9930       # dependencies.
9931       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'
9932       ;;
9933     *)
9934       if test "$GXX" = yes; then
9935         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'
9936       else
9937         # FIXME: insert proper C++ library support
9938         ld_shlibs_CXX=no
9939       fi
9940       ;;
9941     esac
9942     ;;
9943   hpux10*|hpux11*)
9944     if test $with_gnu_ld = no; then
9945       case "$host_cpu" in
9946       hppa*64*)
9947         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9948         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9949         hardcode_libdir_separator_CXX=:
9950         ;;
9951       ia64*)
9952         hardcode_libdir_flag_spec_CXX='-L$libdir'
9953         ;;
9954       *)
9955         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9956         hardcode_libdir_separator_CXX=:
9957         export_dynamic_flag_spec_CXX='${wl}-E'
9958         ;;
9959       esac
9960     fi
9961     case "$host_cpu" in
9962     hppa*64*)
9963       hardcode_direct_CXX=no
9964       hardcode_shlibpath_var_CXX=no
9965       ;;
9966     ia64*)
9967       hardcode_direct_CXX=no
9968       hardcode_shlibpath_var_CXX=no
9969       hardcode_minus_L_CXX=yes # Not in the search PATH,
9970                                               # but as the default
9971                                               # location of the library.
9972       ;;
9973     *)
9974       hardcode_direct_CXX=yes
9975       hardcode_minus_L_CXX=yes # Not in the search PATH,
9976                                               # but as the default
9977                                               # location of the library.
9978       ;;
9979     esac
9980
9981     case $cc_basename in
9982       CC)
9983         # FIXME: insert proper C++ library support
9984         ld_shlibs_CXX=no
9985         ;;
9986       aCC)
9987         case "$host_cpu" in
9988         hppa*64*|ia64*)
9989           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9990           ;;
9991         *)
9992           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9993           ;;
9994         esac
9995         # Commands to make compiler produce verbose output that lists
9996         # what "hidden" libraries, object files and flags are used when
9997         # linking a shared library.
9998         #
9999         # There doesn't appear to be a way to prevent this compiler from
10000         # explicitly linking system object files so we need to strip them
10001         # from the output so that they don't get included in the library
10002         # dependencies.
10003         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'
10004         ;;
10005       *)
10006         if test "$GXX" = yes; then
10007           if test $with_gnu_ld = no; then
10008             case "$host_cpu" in
10009             ia64*|hppa*64*)
10010               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10011               ;;
10012             *)
10013               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'
10014               ;;
10015             esac
10016           fi
10017         else
10018           # FIXME: insert proper C++ library support
10019           ld_shlibs_CXX=no
10020         fi
10021         ;;
10022     esac
10023     ;;
10024   irix5* | irix6*)
10025     case $cc_basename in
10026       CC)
10027         # SGI C++
10028         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'
10029
10030         # Archives containing C++ object files must be created using
10031         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10032         # necessary to make sure instantiated templates are included
10033         # in the archive.
10034         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10035         ;;
10036       *)
10037         if test "$GXX" = yes; then
10038           if test "$with_gnu_ld" = no; then
10039             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'
10040           else
10041             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'
10042           fi
10043         fi
10044         link_all_deplibs_CXX=yes
10045         ;;
10046     esac
10047     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10048     hardcode_libdir_separator_CXX=:
10049     ;;
10050   linux*)
10051     case $cc_basename in
10052       KCC)
10053         # Kuck and Associates, Inc. (KAI) C++ Compiler
10054
10055         # KCC will only create a shared library if the output file
10056         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10057         # to its proper name (with version) after linking.
10058         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'
10059         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'
10060         # Commands to make compiler produce verbose output that lists
10061         # what "hidden" libraries, object files and flags are used when
10062         # linking a shared library.
10063         #
10064         # There doesn't appear to be a way to prevent this compiler from
10065         # explicitly linking system object files so we need to strip them
10066         # from the output so that they don't get included in the library
10067         # dependencies.
10068         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'
10069
10070         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10071         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10072
10073         # Archives containing C++ object files must be created using
10074         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10075         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10076         ;;
10077       icpc)
10078         # Intel C++
10079         with_gnu_ld=yes
10080         archive_cmds_need_lc_CXX=no
10081         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10082         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'
10083         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10084         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10085         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10086         ;;
10087       cxx)
10088         # Compaq C++
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  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10091
10092         runpath_var=LD_RUN_PATH
10093         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10094         hardcode_libdir_separator_CXX=:
10095
10096         # Commands to make compiler produce verbose output that lists
10097         # what "hidden" libraries, object files and flags are used when
10098         # linking a shared library.
10099         #
10100         # There doesn't appear to be a way to prevent this compiler from
10101         # explicitly linking system object files so we need to strip them
10102         # from the output so that they don't get included in the library
10103         # dependencies.
10104         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'
10105         ;;
10106     esac
10107     ;;
10108   lynxos*)
10109     # FIXME: insert proper C++ library support
10110     ld_shlibs_CXX=no
10111     ;;
10112   m88k*)
10113     # FIXME: insert proper C++ library support
10114     ld_shlibs_CXX=no
10115     ;;
10116   mvs*)
10117     case $cc_basename in
10118       cxx)
10119         # FIXME: insert proper C++ library support
10120         ld_shlibs_CXX=no
10121         ;;
10122       *)
10123         # FIXME: insert proper C++ library support
10124         ld_shlibs_CXX=no
10125         ;;
10126     esac
10127     ;;
10128   netbsd*)
10129     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10130       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10131       wlarc=
10132       hardcode_libdir_flag_spec_CXX='-R$libdir'
10133       hardcode_direct_CXX=yes
10134       hardcode_shlibpath_var_CXX=no
10135     fi
10136     # Workaround some broken pre-1.5 toolchains
10137     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10138     ;;
10139   osf3*)
10140     case $cc_basename in
10141       KCC)
10142         # Kuck and Associates, Inc. (KAI) C++ Compiler
10143
10144         # KCC will only create a shared library if the output file
10145         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10146         # to its proper name (with version) after linking.
10147         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'
10148
10149         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10150         hardcode_libdir_separator_CXX=:
10151
10152         # Archives containing C++ object files must be created using
10153         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10154         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10155
10156         ;;
10157       RCC)
10158         # Rational C++ 2.4.1
10159         # FIXME: insert proper C++ library support
10160         ld_shlibs_CXX=no
10161         ;;
10162       cxx)
10163         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10164         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'
10165
10166         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10167         hardcode_libdir_separator_CXX=:
10168
10169         # Commands to make compiler produce verbose output that lists
10170         # what "hidden" libraries, object files and flags are used when
10171         # linking a shared library.
10172         #
10173         # There doesn't appear to be a way to prevent this compiler from
10174         # explicitly linking system object files so we need to strip them
10175         # from the output so that they don't get included in the library
10176         # dependencies.
10177         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'
10178         ;;
10179       *)
10180         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10181           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10182           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'
10183
10184           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10185           hardcode_libdir_separator_CXX=:
10186
10187           # Commands to make compiler produce verbose output that lists
10188           # what "hidden" libraries, object files and flags are used when
10189           # linking a shared library.
10190           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10191
10192         else
10193           # FIXME: insert proper C++ library support
10194           ld_shlibs_CXX=no
10195         fi
10196         ;;
10197     esac
10198     ;;
10199   osf4* | osf5*)
10200     case $cc_basename in
10201       KCC)
10202         # Kuck and Associates, Inc. (KAI) C++ Compiler
10203
10204         # KCC will only create a shared library if the output file
10205         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10206         # to its proper name (with version) after linking.
10207         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'
10208
10209         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10210         hardcode_libdir_separator_CXX=:
10211
10212         # Archives containing C++ object files must be created using
10213         # the KAI C++ compiler.
10214         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10215         ;;
10216       RCC)
10217         # Rational C++ 2.4.1
10218         # FIXME: insert proper C++ library support
10219         ld_shlibs_CXX=no
10220         ;;
10221       cxx)
10222         allow_undefined_flag_CXX=' -expect_unresolved \*'
10223         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'
10224         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10225           echo "-hidden">> $lib.exp~
10226           $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~
10227           $rm $lib.exp'
10228
10229         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10230         hardcode_libdir_separator_CXX=:
10231
10232         # Commands to make compiler produce verbose output that lists
10233         # what "hidden" libraries, object files and flags are used when
10234         # linking a shared library.
10235         #
10236         # There doesn't appear to be a way to prevent this compiler from
10237         # explicitly linking system object files so we need to strip them
10238         # from the output so that they don't get included in the library
10239         # dependencies.
10240         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'
10241         ;;
10242       *)
10243         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10244           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10245          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'
10246
10247           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10248           hardcode_libdir_separator_CXX=:
10249
10250           # Commands to make compiler produce verbose output that lists
10251           # what "hidden" libraries, object files and flags are used when
10252           # linking a shared library.
10253           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10254
10255         else
10256           # FIXME: insert proper C++ library support
10257           ld_shlibs_CXX=no
10258         fi
10259         ;;
10260     esac
10261     ;;
10262   psos*)
10263     # FIXME: insert proper C++ library support
10264     ld_shlibs_CXX=no
10265     ;;
10266   sco*)
10267     archive_cmds_need_lc_CXX=no
10268     case $cc_basename in
10269       CC)
10270         # FIXME: insert proper C++ library support
10271         ld_shlibs_CXX=no
10272         ;;
10273       *)
10274         # FIXME: insert proper C++ library support
10275         ld_shlibs_CXX=no
10276         ;;
10277     esac
10278     ;;
10279   sunos4*)
10280     case $cc_basename in
10281       CC)
10282         # Sun C++ 4.x
10283         # FIXME: insert proper C++ library support
10284         ld_shlibs_CXX=no
10285         ;;
10286       lcc)
10287         # Lucid
10288         # FIXME: insert proper C++ library support
10289         ld_shlibs_CXX=no
10290         ;;
10291       *)
10292         # FIXME: insert proper C++ library support
10293         ld_shlibs_CXX=no
10294         ;;
10295     esac
10296     ;;
10297   solaris*)
10298     case $cc_basename in
10299       CC)
10300         # Sun C++ 4.2, 5.x and Centerline C++
10301         no_undefined_flag_CXX=' -zdefs'
10302         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10303         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10304         $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'
10305
10306         hardcode_libdir_flag_spec_CXX='-R$libdir'
10307         hardcode_shlibpath_var_CXX=no
10308         case $host_os in
10309           solaris2.0-5 | solaris2.0-5.*) ;;
10310           *)
10311             # The C++ compiler is used as linker so we must use $wl
10312             # flag to pass the commands to the underlying system
10313             # linker.
10314             # Supported since Solaris 2.6 (maybe 2.5.1?)
10315             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10316             ;;
10317         esac
10318         link_all_deplibs_CXX=yes
10319
10320         # Commands to make compiler produce verbose output that lists
10321         # what "hidden" libraries, object files and flags are used when
10322         # linking a shared library.
10323         #
10324         # There doesn't appear to be a way to prevent this compiler from
10325         # explicitly linking system object files so we need to strip them
10326         # from the output so that they don't get included in the library
10327         # dependencies.
10328         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'
10329
10330         # Archives containing C++ object files must be created using
10331         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10332         # necessary to make sure instantiated templates are included
10333         # in the archive.
10334         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10335         ;;
10336       gcx)
10337         # Green Hills C++ Compiler
10338         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10339
10340         # The C++ compiler must be used to create the archive.
10341         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10342         ;;
10343       *)
10344         # GNU C++ compiler with Solaris linker
10345         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10346           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10347           if $CC --version | grep -v '^2\.7' > /dev/null; then
10348             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10349             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10350                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10351
10352             # Commands to make compiler produce verbose output that lists
10353             # what "hidden" libraries, object files and flags are used when
10354             # linking a shared library.
10355             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10356           else
10357             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10358             # platform.
10359             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10360             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10361                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10362
10363             # Commands to make compiler produce verbose output that lists
10364             # what "hidden" libraries, object files and flags are used when
10365             # linking a shared library.
10366             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10367           fi
10368
10369           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10370         fi
10371         ;;
10372     esac
10373     ;;
10374   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10375     archive_cmds_need_lc_CXX=no
10376     ;;
10377   tandem*)
10378     case $cc_basename in
10379       NCC)
10380         # NonStop-UX NCC 3.20
10381         # FIXME: insert proper C++ library support
10382         ld_shlibs_CXX=no
10383         ;;
10384       *)
10385         # FIXME: insert proper C++ library support
10386         ld_shlibs_CXX=no
10387         ;;
10388     esac
10389     ;;
10390   vxworks*)
10391     # FIXME: insert proper C++ library support
10392     ld_shlibs_CXX=no
10393     ;;
10394   *)
10395     # FIXME: insert proper C++ library support
10396     ld_shlibs_CXX=no
10397     ;;
10398 esac
10399 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10400 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10401 test "$ld_shlibs_CXX" = no && can_build_shared=no
10402
10403 GCC_CXX="$GXX"
10404 LD_CXX="$LD"
10405
10406 ## CAVEAT EMPTOR:
10407 ## There is no encapsulation within the following macros, do not change
10408 ## the running order or otherwise move them around unless you know exactly
10409 ## what you are doing...
10410
10411 cat > conftest.$ac_ext <<EOF
10412 class Foo
10413 {
10414 public:
10415   Foo (void) { a = 0; }
10416 private:
10417   int a;
10418 };
10419 EOF
10420
10421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422   (eval $ac_compile) 2>&5
10423   ac_status=$?
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); }; then
10426   # Parse the compiler output and extract the necessary
10427   # objects, libraries and library flags.
10428
10429   # Sentinel used to keep track of whether or not we are before
10430   # the conftest object file.
10431   pre_test_object_deps_done=no
10432
10433   # The `*' in the case matches for architectures that use `case' in
10434   # $output_verbose_cmd can trigger glob expansion during the loop
10435   # eval without this substitution.
10436   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10437
10438   for p in `eval $output_verbose_link_cmd`; do
10439     case $p in
10440
10441     -L* | -R* | -l*)
10442        # Some compilers place space between "-{L,R}" and the path.
10443        # Remove the space.
10444        if test $p = "-L" \
10445           || test $p = "-R"; then
10446          prev=$p
10447          continue
10448        else
10449          prev=
10450        fi
10451
10452        if test "$pre_test_object_deps_done" = no; then
10453          case $p in
10454          -L* | -R*)
10455            # Internal compiler library paths should come after those
10456            # provided the user.  The postdeps already come after the
10457            # user supplied libs so there is no need to process them.
10458            if test -z "$compiler_lib_search_path_CXX"; then
10459              compiler_lib_search_path_CXX="${prev}${p}"
10460            else
10461              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10462            fi
10463            ;;
10464          # The "-l" case would never come before the object being
10465          # linked, so don't bother handling this case.
10466          esac
10467        else
10468          if test -z "$postdeps_CXX"; then
10469            postdeps_CXX="${prev}${p}"
10470          else
10471            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10472          fi
10473        fi
10474        ;;
10475
10476     *.$objext)
10477        # This assumes that the test object file only shows up
10478        # once in the compiler output.
10479        if test "$p" = "conftest.$objext"; then
10480          pre_test_object_deps_done=yes
10481          continue
10482        fi
10483
10484        if test "$pre_test_object_deps_done" = no; then
10485          if test -z "$predep_objects_CXX"; then
10486            predep_objects_CXX="$p"
10487          else
10488            predep_objects_CXX="$predep_objects_CXX $p"
10489          fi
10490        else
10491          if test -z "$postdep_objects_CXX"; then
10492            postdep_objects_CXX="$p"
10493          else
10494            postdep_objects_CXX="$postdep_objects_CXX $p"
10495          fi
10496        fi
10497        ;;
10498
10499     *) ;; # Ignore the rest.
10500
10501     esac
10502   done
10503
10504   # Clean up.
10505   rm -f a.out a.exe
10506 else
10507   echo "libtool.m4: error: problem compiling CXX test program"
10508 fi
10509
10510 $rm -f confest.$objext
10511
10512 case " $postdeps_CXX " in
10513 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10514 esac
10515
10516 lt_prog_compiler_wl_CXX=
10517 lt_prog_compiler_pic_CXX=
10518 lt_prog_compiler_static_CXX=
10519
10520 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10521 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10522
10523   # C++ specific cases for pic, static, wl, etc.
10524   if test "$GXX" = yes; then
10525     lt_prog_compiler_wl_CXX='-Wl,'
10526     lt_prog_compiler_static_CXX='-static'
10527
10528     case $host_os in
10529     aix*)
10530       # All AIX code is PIC.
10531       if test "$host_cpu" = ia64; then
10532         # AIX 5 now supports IA64 processor
10533         lt_prog_compiler_static_CXX='-Bstatic'
10534       fi
10535       ;;
10536     amigaos*)
10537       # FIXME: we need at least 68020 code to build shared libraries, but
10538       # adding the `-m68020' flag to GCC prevents building anything better,
10539       # like `-m68040'.
10540       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10541       ;;
10542     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10543       # PIC is the default for these OSes.
10544       ;;
10545     mingw* | os2* | pw32*)
10546       # This hack is so that the source file can tell whether it is being
10547       # built for inclusion in a dll (and should export symbols for example).
10548       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10549       ;;
10550     darwin* | rhapsody*)
10551       # PIC is the default on this platform
10552       # Common symbols not allowed in MH_DYLIB files
10553       lt_prog_compiler_pic_CXX='-fno-common'
10554       ;;
10555     *djgpp*)
10556       # DJGPP does not support shared libraries at all
10557       lt_prog_compiler_pic_CXX=
10558       ;;
10559     sysv4*MP*)
10560       if test -d /usr/nec; then
10561         lt_prog_compiler_pic_CXX=-Kconform_pic
10562       fi
10563       ;;
10564     hpux*)
10565       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10566       # not for PA HP-UX.
10567       case "$host_cpu" in
10568       hppa*64*|ia64*)
10569         ;;
10570       *)
10571         lt_prog_compiler_pic_CXX='-fPIC'
10572         ;;
10573       esac
10574       ;;
10575     *)
10576       lt_prog_compiler_pic_CXX='-fPIC'
10577       ;;
10578     esac
10579   else
10580     case $host_os in
10581       aix4* | aix5*)
10582         # All AIX code is PIC.
10583         if test "$host_cpu" = ia64; then
10584           # AIX 5 now supports IA64 processor
10585           lt_prog_compiler_static_CXX='-Bstatic'
10586         else
10587           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10588         fi
10589         ;;
10590       chorus*)
10591         case $cc_basename in
10592         cxch68)
10593           # Green Hills C++ Compiler
10594           # _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"
10595           ;;
10596         esac
10597         ;;
10598       dgux*)
10599         case $cc_basename in
10600           ec++)
10601             lt_prog_compiler_pic_CXX='-KPIC'
10602             ;;
10603           ghcx)
10604             # Green Hills C++ Compiler
10605             lt_prog_compiler_pic_CXX='-pic'
10606             ;;
10607           *)
10608             ;;
10609         esac
10610         ;;
10611       freebsd*)
10612         # FreeBSD uses GNU C++
10613         ;;
10614       hpux9* | hpux10* | hpux11*)
10615         case $cc_basename in
10616           CC)
10617             lt_prog_compiler_wl_CXX='-Wl,'
10618             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10619             if test "$host_cpu" != ia64; then
10620               lt_prog_compiler_pic_CXX='+Z'
10621             fi
10622             ;;
10623           aCC)
10624             lt_prog_compiler_wl_CXX='-Wl,'
10625             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10626             case "$host_cpu" in
10627             hppa*64*|ia64*)
10628               # +Z the default
10629               ;;
10630             *)
10631               lt_prog_compiler_pic_CXX='+Z'
10632               ;;
10633             esac
10634             ;;
10635           *)
10636             ;;
10637         esac
10638         ;;
10639       irix5* | irix6* | nonstopux*)
10640         case $cc_basename in
10641           CC)
10642             lt_prog_compiler_wl_CXX='-Wl,'
10643             lt_prog_compiler_static_CXX='-non_shared'
10644             # CC pic flag -KPIC is the default.
10645             ;;
10646           *)
10647             ;;
10648         esac
10649         ;;
10650       linux*)
10651         case $cc_basename in
10652           KCC)
10653             # KAI C++ Compiler
10654             lt_prog_compiler_wl_CXX='--backend -Wl,'
10655             lt_prog_compiler_pic_CXX='-fPIC'
10656             ;;
10657           icpc)
10658             # Intel C++
10659             lt_prog_compiler_wl_CXX='-Wl,'
10660             lt_prog_compiler_pic_CXX='-KPIC'
10661             lt_prog_compiler_static_CXX='-static'
10662             ;;
10663           cxx)
10664             # Compaq C++
10665             # Make sure the PIC flag is empty.  It appears that all Alpha
10666             # Linux and Compaq Tru64 Unix objects are PIC.
10667             lt_prog_compiler_pic_CXX=
10668             lt_prog_compiler_static_CXX='-non_shared'
10669             ;;
10670           *)
10671             ;;
10672         esac
10673         ;;
10674       lynxos*)
10675         ;;
10676       m88k*)
10677         ;;
10678       mvs*)
10679         case $cc_basename in
10680           cxx)
10681             lt_prog_compiler_pic_CXX='-W c,exportall'
10682             ;;
10683           *)
10684             ;;
10685         esac
10686         ;;
10687       netbsd*)
10688         ;;
10689       osf3* | osf4* | osf5*)
10690         case $cc_basename in
10691           KCC)
10692             lt_prog_compiler_wl_CXX='--backend -Wl,'
10693             ;;
10694           RCC)
10695             # Rational C++ 2.4.1
10696             lt_prog_compiler_pic_CXX='-pic'
10697             ;;
10698           cxx)
10699             # Digital/Compaq C++
10700             lt_prog_compiler_wl_CXX='-Wl,'
10701             # Make sure the PIC flag is empty.  It appears that all Alpha
10702             # Linux and Compaq Tru64 Unix objects are PIC.
10703             lt_prog_compiler_pic_CXX=
10704             lt_prog_compiler_static_CXX='-non_shared'
10705             ;;
10706           *)
10707             ;;
10708         esac
10709         ;;
10710       psos*)
10711         ;;
10712       sco*)
10713         case $cc_basename in
10714           CC)
10715             lt_prog_compiler_pic_CXX='-fPIC'
10716             ;;
10717           *)
10718             ;;
10719         esac
10720         ;;
10721       solaris*)
10722         case $cc_basename in
10723           CC)
10724             # Sun C++ 4.2, 5.x and Centerline C++
10725             lt_prog_compiler_pic_CXX='-KPIC'
10726             lt_prog_compiler_static_CXX='-Bstatic'
10727             lt_prog_compiler_wl_CXX='-Qoption ld '
10728             ;;
10729           gcx)
10730             # Green Hills C++ Compiler
10731             lt_prog_compiler_pic_CXX='-PIC'
10732             ;;
10733           *)
10734             ;;
10735         esac
10736         ;;
10737       sunos4*)
10738         case $cc_basename in
10739           CC)
10740             # Sun C++ 4.x
10741             lt_prog_compiler_pic_CXX='-pic'
10742             lt_prog_compiler_static_CXX='-Bstatic'
10743             ;;
10744           lcc)
10745             # Lucid
10746             lt_prog_compiler_pic_CXX='-pic'
10747             ;;
10748           *)
10749             ;;
10750         esac
10751         ;;
10752       tandem*)
10753         case $cc_basename in
10754           NCC)
10755             # NonStop-UX NCC 3.20
10756             lt_prog_compiler_pic_CXX='-KPIC'
10757             ;;
10758           *)
10759             ;;
10760         esac
10761         ;;
10762       unixware*)
10763         ;;
10764       vxworks*)
10765         ;;
10766       *)
10767         lt_prog_compiler_can_build_shared_CXX=no
10768         ;;
10769     esac
10770   fi
10771
10772 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10773 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10774
10775 #
10776 # Check to make sure the PIC flag actually works.
10777 #
10778 if test -n "$lt_prog_compiler_pic_CXX"; then
10779   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10780 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10781 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10782   echo $ECHO_N "(cached) $ECHO_C" >&6
10783 else
10784   lt_prog_compiler_pic_works_CXX=no
10785   ac_outfile=conftest.$ac_objext
10786    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10787    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10788    # Insert the option either (1) after the last *FLAGS variable, or
10789    # (2) before a word containing "conftest.", or (3) at the end.
10790    # Note that $ac_compile itself does not contain backslashes and begins
10791    # with a dollar sign (not a hyphen), so the echo should work correctly.
10792    # The option is referenced via a variable to avoid confusing sed.
10793    lt_compile=`echo "$ac_compile" | $SED \
10794    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10795    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10796    -e 's:$: $lt_compiler_flag:'`
10797    (eval echo "\"\$as_me:10797: $lt_compile\"" >&5)
10798    (eval "$lt_compile" 2>conftest.err)
10799    ac_status=$?
10800    cat conftest.err >&5
10801    echo "$as_me:10801: \$? = $ac_status" >&5
10802    if (exit $ac_status) && test -s "$ac_outfile"; then
10803      # The compiler can only warn and ignore the option if not recognized
10804      # So say no if there are warnings
10805      if test ! -s conftest.err; then
10806        lt_prog_compiler_pic_works_CXX=yes
10807      fi
10808    fi
10809    $rm conftest*
10810
10811 fi
10812 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10813 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10814
10815 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10816     case $lt_prog_compiler_pic_CXX in
10817      "" | " "*) ;;
10818      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10819      esac
10820 else
10821     lt_prog_compiler_pic_CXX=
10822      lt_prog_compiler_can_build_shared_CXX=no
10823 fi
10824
10825 fi
10826 case "$host_os" in
10827   # For platforms which do not support PIC, -DPIC is meaningless:
10828   *djgpp*)
10829     lt_prog_compiler_pic_CXX=
10830     ;;
10831   *)
10832     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10833     ;;
10834 esac
10835
10836 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10837 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10838 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10839   echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841   lt_cv_prog_compiler_c_o_CXX=no
10842    $rm -r conftest 2>/dev/null
10843    mkdir conftest
10844    cd conftest
10845    mkdir out
10846    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10847
10848    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10849    # that will create temporary files in the current directory regardless of
10850    # the output directory.  Thus, making CWD read-only will cause this test
10851    # to fail, enabling locking or at least warning the user not to do parallel
10852    # builds.
10853    chmod -w .
10854
10855    lt_compiler_flag="-o out/conftest2.$ac_objext"
10856    # Insert the option either (1) after the last *FLAGS variable, or
10857    # (2) before a word containing "conftest.", or (3) at the end.
10858    # Note that $ac_compile itself does not contain backslashes and begins
10859    # with a dollar sign (not a hyphen), so the echo should work correctly.
10860    lt_compile=`echo "$ac_compile" | $SED \
10861    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10862    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10863    -e 's:$: $lt_compiler_flag:'`
10864    (eval echo "\"\$as_me:10864: $lt_compile\"" >&5)
10865    (eval "$lt_compile" 2>out/conftest.err)
10866    ac_status=$?
10867    cat out/conftest.err >&5
10868    echo "$as_me:10868: \$? = $ac_status" >&5
10869    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10870    then
10871      # The compiler can only warn and ignore the option if not recognized
10872      # So say no if there are warnings
10873      if test ! -s out/conftest.err; then
10874        lt_cv_prog_compiler_c_o_CXX=yes
10875      fi
10876    fi
10877    chmod u+w .
10878    $rm conftest* out/*
10879    rmdir out
10880    cd ..
10881    rmdir conftest
10882    $rm conftest*
10883
10884 fi
10885 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10886 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10887
10888
10889 hard_links="nottested"
10890 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10891   # do not overwrite the value of need_locks provided by the user
10892   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10893 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10894   hard_links=yes
10895   $rm conftest*
10896   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10897   touch conftest.a
10898   ln conftest.a conftest.b 2>&5 || hard_links=no
10899   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10900   echo "$as_me:$LINENO: result: $hard_links" >&5
10901 echo "${ECHO_T}$hard_links" >&6
10902   if test "$hard_links" = no; then
10903     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10904 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10905     need_locks=warn
10906   fi
10907 else
10908   need_locks=no
10909 fi
10910
10911 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10912 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10913
10914   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10915   case $host_os in
10916   aix4* | aix5*)
10917     # If we're using GNU nm, then we don't want the "-C" option.
10918     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10919     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10920       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'
10921     else
10922       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'
10923     fi
10924     ;;
10925   pw32*)
10926     export_symbols_cmds_CXX="$ltdll_cmds"
10927   ;;
10928   cygwin* | mingw*)
10929     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10930   ;;
10931   *)
10932     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10933   ;;
10934   esac
10935
10936 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10937 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10938 test "$ld_shlibs_CXX" = no && can_build_shared=no
10939
10940 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10941 if test "$GCC" = yes; then
10942   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10943 fi
10944
10945 #
10946 # Do we need to explicitly link libc?
10947 #
10948 case "x$archive_cmds_need_lc_CXX" in
10949 x|xyes)
10950   # Assume -lc should be added
10951   archive_cmds_need_lc_CXX=yes
10952
10953   if test "$enable_shared" = yes && test "$GCC" = yes; then
10954     case $archive_cmds_CXX in
10955     *'~'*)
10956       # FIXME: we may have to deal with multi-command sequences.
10957       ;;
10958     '$CC '*)
10959       # Test whether the compiler implicitly links with -lc since on some
10960       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10961       # to ld, don't add -lc before -lgcc.
10962       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10963 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10964       $rm conftest*
10965       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10966
10967       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10968   (eval $ac_compile) 2>&5
10969   ac_status=$?
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); } 2>conftest.err; then
10972         soname=conftest
10973         lib=conftest
10974         libobjs=conftest.$ac_objext
10975         deplibs=
10976         wl=$lt_prog_compiler_wl_CXX
10977         compiler_flags=-v
10978         linker_flags=-v
10979         verstring=
10980         output_objdir=.
10981         libname=conftest
10982         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10983         allow_undefined_flag_CXX=
10984         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10985   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10986   ac_status=$?
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); }
10989         then
10990           archive_cmds_need_lc_CXX=no
10991         else
10992           archive_cmds_need_lc_CXX=yes
10993         fi
10994         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10995       else
10996         cat conftest.err 1>&5
10997       fi
10998       $rm conftest*
10999       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11000 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11001       ;;
11002     esac
11003   fi
11004   ;;
11005 esac
11006
11007 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11008 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11009 hardcode_action_CXX=
11010 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11011    test -n "$runpath_var CXX" || \
11012    test "X$hardcode_automatic_CXX"="Xyes" ; then
11013
11014   # We can hardcode non-existant directories.
11015   if test "$hardcode_direct_CXX" != no &&
11016      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11017      # have to relink, otherwise we might link with an installed library
11018      # when we should be linking with a yet-to-be-installed one
11019      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11020      test "$hardcode_minus_L_CXX" != no; then
11021     # Linking always hardcodes the temporary library directory.
11022     hardcode_action_CXX=relink
11023   else
11024     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11025     hardcode_action_CXX=immediate
11026   fi
11027 else
11028   # We cannot hardcode anything, or else we can only hardcode existing
11029   # directories.
11030   hardcode_action_CXX=unsupported
11031 fi
11032 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11033 echo "${ECHO_T}$hardcode_action_CXX" >&6
11034
11035 if test "$hardcode_action_CXX" = relink; then
11036   # Fast installation is not supported
11037   enable_fast_install=no
11038 elif test "$shlibpath_overrides_runpath" = yes ||
11039      test "$enable_shared" = no; then
11040   # Fast installation is not necessary
11041   enable_fast_install=needless
11042 fi
11043
11044 striplib=
11045 old_striplib=
11046 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11047 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11048 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11049   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11050   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11051   echo "$as_me:$LINENO: result: yes" >&5
11052 echo "${ECHO_T}yes" >&6
11053 else
11054 # FIXME - insert some real tests, host_os isn't really good enough
11055   case $host_os in
11056    darwin*)
11057        if test -n "$STRIP" ; then
11058          striplib="$STRIP -x"
11059          echo "$as_me:$LINENO: result: yes" >&5
11060 echo "${ECHO_T}yes" >&6
11061        else
11062   echo "$as_me:$LINENO: result: no" >&5
11063 echo "${ECHO_T}no" >&6
11064 fi
11065        ;;
11066    *)
11067   echo "$as_me:$LINENO: result: no" >&5
11068 echo "${ECHO_T}no" >&6
11069     ;;
11070   esac
11071 fi
11072
11073 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11074 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11075 library_names_spec=
11076 libname_spec='lib$name'
11077 soname_spec=
11078 shrext=".so"
11079 postinstall_cmds=
11080 postuninstall_cmds=
11081 finish_cmds=
11082 finish_eval=
11083 shlibpath_var=
11084 shlibpath_overrides_runpath=unknown
11085 version_type=none
11086 dynamic_linker="$host_os ld.so"
11087 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11088 if test "$GCC" = yes; then
11089   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11090   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11091     # if the path contains ";" then we assume it to be the separator
11092     # otherwise default to the standard path separator (i.e. ":") - it is
11093     # assumed that no part of a normal pathname contains ";" but that should
11094     # okay in the real world where ";" in dirpaths is itself problematic.
11095     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11096   else
11097     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11098   fi
11099 else
11100   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11101 fi
11102 need_lib_prefix=unknown
11103 hardcode_into_libs=no
11104
11105 # when you set need_version to no, make sure it does not cause -set_version
11106 # flags to be left without arguments
11107 need_version=unknown
11108
11109 case $host_os in
11110 aix3*)
11111   version_type=linux
11112   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11113   shlibpath_var=LIBPATH
11114
11115   # AIX 3 has no versioning support, so we append a major version to the name.
11116   soname_spec='${libname}${release}${shared_ext}$major'
11117   ;;
11118
11119 aix4* | aix5*)
11120   version_type=linux
11121   need_lib_prefix=no
11122   need_version=no
11123   hardcode_into_libs=yes
11124   if test "$host_cpu" = ia64; then
11125     # AIX 5 supports IA64
11126     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11127     shlibpath_var=LD_LIBRARY_PATH
11128   else
11129     # With GCC up to 2.95.x, collect2 would create an import file
11130     # for dependence libraries.  The import file would start with
11131     # the line `#! .'.  This would cause the generated library to
11132     # depend on `.', always an invalid library.  This was fixed in
11133     # development snapshots of GCC prior to 3.0.
11134     case $host_os in
11135       aix4 | aix4.[01] | aix4.[01].*)
11136       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11137            echo ' yes '
11138            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11139         :
11140       else
11141         can_build_shared=no
11142       fi
11143       ;;
11144     esac
11145     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11146     # soname into executable. Probably we can add versioning support to
11147     # collect2, so additional links can be useful in future.
11148     if test "$aix_use_runtimelinking" = yes; then
11149       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11150       # instead of lib<name>.a to let people know that these are not
11151       # typical AIX shared libraries.
11152       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153     else
11154       # We preserve .a as extension for shared libraries through AIX4.2
11155       # and later when we are not doing run time linking.
11156       library_names_spec='${libname}${release}.a $libname.a'
11157       soname_spec='${libname}${release}${shared_ext}$major'
11158     fi
11159     shlibpath_var=LIBPATH
11160   fi
11161   ;;
11162
11163 amigaos*)
11164   library_names_spec='$libname.ixlibrary $libname.a'
11165   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11166   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'
11167   ;;
11168
11169 beos*)
11170   library_names_spec='${libname}${shared_ext}'
11171   dynamic_linker="$host_os ld.so"
11172   shlibpath_var=LIBRARY_PATH
11173   ;;
11174
11175 bsdi4*)
11176   version_type=linux
11177   need_version=no
11178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179   soname_spec='${libname}${release}${shared_ext}$major'
11180   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11181   shlibpath_var=LD_LIBRARY_PATH
11182   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11183   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11184   # the default ld.so.conf also contains /usr/contrib/lib and
11185   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11186   # libtool to hard-code these into programs
11187   ;;
11188
11189 cygwin* | mingw* | pw32*)
11190   version_type=windows
11191   shrext=".dll"
11192   need_version=no
11193   need_lib_prefix=no
11194
11195   case $GCC,$host_os in
11196   yes,cygwin* | yes,mingw* | yes,pw32*)
11197     library_names_spec='$libname.dll.a'
11198     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11199     postinstall_cmds='base_file=`basename \${file}`~
11200       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11201       dldir=$destdir/`dirname \$dlpath`~
11202       test -d \$dldir || mkdir -p \$dldir~
11203       $install_prog $dir/$dlname \$dldir/$dlname'
11204     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11205       dlpath=$dir/\$dldll~
11206        $rm \$dlpath'
11207     shlibpath_overrides_runpath=yes
11208
11209     case $host_os in
11210     cygwin*)
11211       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11212       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11213       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11214       ;;
11215     mingw*)
11216       # MinGW DLLs use traditional 'lib' prefix
11217       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11218       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11219       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11220         # It is most probably a Windows format PATH printed by
11221         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11222         # path with ; separators, and with drive letters. We can handle the
11223         # drive letters (cygwin fileutils understands them), so leave them,
11224         # especially as we might pass files found there to a mingw objdump,
11225         # which wouldn't understand a cygwinified path. Ahh.
11226         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11227       else
11228         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11229       fi
11230       ;;
11231     pw32*)
11232       # pw32 DLLs use 'pw' prefix rather than 'lib'
11233       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11234       ;;
11235     esac
11236     ;;
11237
11238   *)
11239     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11240     ;;
11241   esac
11242   dynamic_linker='Win32 ld.exe'
11243   # FIXME: first we should search . and the directory the executable is in
11244   shlibpath_var=PATH
11245   ;;
11246
11247 darwin* | rhapsody*)
11248   dynamic_linker="$host_os dyld"
11249   version_type=darwin
11250   need_lib_prefix=no
11251   need_version=no
11252   # FIXME: Relying on posixy $() will cause problems for
11253   #        cross-compilation, but unfortunately the echo tests do not
11254   #        yet detect zsh echo's removal of \ escapes.
11255   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11256   soname_spec='${libname}${release}${major}$shared_ext'
11257   shlibpath_overrides_runpath=yes
11258   shlibpath_var=DYLD_LIBRARY_PATH
11259   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11260   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11261   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11262   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"`
11263   fi
11264   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11265   ;;
11266
11267 dgux*)
11268   version_type=linux
11269   need_lib_prefix=no
11270   need_version=no
11271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11272   soname_spec='${libname}${release}${shared_ext}$major'
11273   shlibpath_var=LD_LIBRARY_PATH
11274   ;;
11275
11276 freebsd1*)
11277   dynamic_linker=no
11278   ;;
11279
11280 freebsd*)
11281   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11282   version_type=freebsd-$objformat
11283   case $version_type in
11284     freebsd-elf*)
11285       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11286       need_version=no
11287       need_lib_prefix=no
11288       ;;
11289     freebsd-*)
11290       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11291       need_version=yes
11292       ;;
11293   esac
11294   shlibpath_var=LD_LIBRARY_PATH
11295   case $host_os in
11296   freebsd2*)
11297     shlibpath_overrides_runpath=yes
11298     ;;
11299   freebsd3.01* | freebsdelf3.01*)
11300     shlibpath_overrides_runpath=yes
11301     hardcode_into_libs=yes
11302     ;;
11303   *) # from 3.2 on
11304     shlibpath_overrides_runpath=no
11305     hardcode_into_libs=yes
11306     ;;
11307   esac
11308   ;;
11309
11310 gnu*)
11311   version_type=linux
11312   need_lib_prefix=no
11313   need_version=no
11314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11315   soname_spec='${libname}${release}${shared_ext}$major'
11316   shlibpath_var=LD_LIBRARY_PATH
11317   hardcode_into_libs=yes
11318   ;;
11319
11320 hpux9* | hpux10* | hpux11*)
11321   # Give a soname corresponding to the major version so that dld.sl refuses to
11322   # link against other versions.
11323   version_type=sunos
11324   need_lib_prefix=no
11325   need_version=no
11326   case "$host_cpu" in
11327   ia64*)
11328     shrext='.so'
11329     hardcode_into_libs=yes
11330     dynamic_linker="$host_os dld.so"
11331     shlibpath_var=LD_LIBRARY_PATH
11332     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334     soname_spec='${libname}${release}${shared_ext}$major'
11335     if test "X$HPUX_IA64_MODE" = X32; then
11336       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11337     else
11338       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11339     fi
11340     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11341     ;;
11342    hppa*64*)
11343      shrext='.sl'
11344      hardcode_into_libs=yes
11345      dynamic_linker="$host_os dld.sl"
11346      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11347      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11348      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349      soname_spec='${libname}${release}${shared_ext}$major'
11350      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11351      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11352      ;;
11353    *)
11354     shrext='.sl'
11355     dynamic_linker="$host_os dld.sl"
11356     shlibpath_var=SHLIB_PATH
11357     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11358     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359     soname_spec='${libname}${release}${shared_ext}$major'
11360     ;;
11361   esac
11362   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11363   postinstall_cmds='chmod 555 $lib'
11364   ;;
11365
11366 irix5* | irix6* | nonstopux*)
11367   case $host_os in
11368     nonstopux*) version_type=nonstopux ;;
11369     *)
11370         if test "$lt_cv_prog_gnu_ld" = yes; then
11371                 version_type=linux
11372         else
11373                 version_type=irix
11374         fi ;;
11375   esac
11376   need_lib_prefix=no
11377   need_version=no
11378   soname_spec='${libname}${release}${shared_ext}$major'
11379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11380   case $host_os in
11381   irix5* | nonstopux*)
11382     libsuff= shlibsuff=
11383     ;;
11384   *)
11385     case $LD in # libtool.m4 will add one of these switches to LD
11386     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11387       libsuff= shlibsuff= libmagic=32-bit;;
11388     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11389       libsuff=32 shlibsuff=N32 libmagic=N32;;
11390     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11391       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11392     *) libsuff= shlibsuff= libmagic=never-match;;
11393     esac
11394     ;;
11395   esac
11396   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11397   shlibpath_overrides_runpath=no
11398   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11399   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11400   hardcode_into_libs=yes
11401   ;;
11402
11403 # No shared lib support for Linux oldld, aout, or coff.
11404 linux*oldld* | linux*aout* | linux*coff*)
11405   dynamic_linker=no
11406   ;;
11407
11408 # This must be Linux ELF.
11409 linux*)
11410   version_type=linux
11411   need_lib_prefix=no
11412   need_version=no
11413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414   soname_spec='${libname}${release}${shared_ext}$major'
11415   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11416   shlibpath_var=LD_LIBRARY_PATH
11417   shlibpath_overrides_runpath=no
11418   # This implies no fast_install, which is unacceptable.
11419   # Some rework will be needed to allow for fast_install
11420   # before this can be enabled.
11421   hardcode_into_libs=yes
11422
11423   # We used to test for /lib/ld.so.1 and disable shared libraries on
11424   # powerpc, because MkLinux only supported shared libraries with the
11425   # GNU dynamic linker.  Since this was broken with cross compilers,
11426   # most powerpc-linux boxes support dynamic linking these days and
11427   # people can always --disable-shared, the test was removed, and we
11428   # assume the GNU/Linux dynamic linker is in use.
11429   dynamic_linker='GNU/Linux ld.so'
11430   ;;
11431
11432 netbsd*)
11433   version_type=sunos
11434   need_lib_prefix=no
11435   need_version=no
11436   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11438     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11439     dynamic_linker='NetBSD (a.out) ld.so'
11440   else
11441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11442     soname_spec='${libname}${release}${shared_ext}$major'
11443     dynamic_linker='NetBSD ld.elf_so'
11444   fi
11445   shlibpath_var=LD_LIBRARY_PATH
11446   shlibpath_overrides_runpath=yes
11447   hardcode_into_libs=yes
11448   ;;
11449
11450 newsos6)
11451   version_type=linux
11452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453   shlibpath_var=LD_LIBRARY_PATH
11454   shlibpath_overrides_runpath=yes
11455   ;;
11456
11457 nto-qnx)
11458   version_type=linux
11459   need_lib_prefix=no
11460   need_version=no
11461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462   soname_spec='${libname}${release}${shared_ext}$major'
11463   shlibpath_var=LD_LIBRARY_PATH
11464   shlibpath_overrides_runpath=yes
11465   ;;
11466
11467 openbsd*)
11468   version_type=sunos
11469   need_lib_prefix=no
11470   need_version=no
11471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11472   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11473   shlibpath_var=LD_LIBRARY_PATH
11474   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11475     case $host_os in
11476       openbsd2.[89] | openbsd2.[89].*)
11477         shlibpath_overrides_runpath=no
11478         ;;
11479       *)
11480         shlibpath_overrides_runpath=yes
11481         ;;
11482       esac
11483   else
11484     shlibpath_overrides_runpath=yes
11485   fi
11486   ;;
11487
11488 os2*)
11489   libname_spec='$name'
11490   shrext=".dll"
11491   need_lib_prefix=no
11492   library_names_spec='$libname${shared_ext} $libname.a'
11493   dynamic_linker='OS/2 ld.exe'
11494   shlibpath_var=LIBPATH
11495   ;;
11496
11497 osf3* | osf4* | osf5*)
11498   version_type=osf
11499   need_lib_prefix=no
11500   need_version=no
11501   soname_spec='${libname}${release}${shared_ext}$major'
11502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11503   shlibpath_var=LD_LIBRARY_PATH
11504   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11505   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11506   ;;
11507
11508 sco3.2v5*)
11509   version_type=osf
11510   soname_spec='${libname}${release}${shared_ext}$major'
11511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512   shlibpath_var=LD_LIBRARY_PATH
11513   ;;
11514
11515 solaris*)
11516   version_type=linux
11517   need_lib_prefix=no
11518   need_version=no
11519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520   soname_spec='${libname}${release}${shared_ext}$major'
11521   shlibpath_var=LD_LIBRARY_PATH
11522   shlibpath_overrides_runpath=yes
11523   hardcode_into_libs=yes
11524   # ldd complains unless libraries are executable
11525   postinstall_cmds='chmod +x $lib'
11526   ;;
11527
11528 sunos4*)
11529   version_type=sunos
11530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11531   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11532   shlibpath_var=LD_LIBRARY_PATH
11533   shlibpath_overrides_runpath=yes
11534   if test "$with_gnu_ld" = yes; then
11535     need_lib_prefix=no
11536   fi
11537   need_version=yes
11538   ;;
11539
11540 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11541   version_type=linux
11542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11543   soname_spec='${libname}${release}${shared_ext}$major'
11544   shlibpath_var=LD_LIBRARY_PATH
11545   case $host_vendor in
11546     sni)
11547       shlibpath_overrides_runpath=no
11548       need_lib_prefix=no
11549       export_dynamic_flag_spec='${wl}-Blargedynsym'
11550       runpath_var=LD_RUN_PATH
11551       ;;
11552     siemens)
11553       need_lib_prefix=no
11554       ;;
11555     motorola)
11556       need_lib_prefix=no
11557       need_version=no
11558       shlibpath_overrides_runpath=no
11559       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11560       ;;
11561   esac
11562   ;;
11563
11564 sysv4*MP*)
11565   if test -d /usr/nec ;then
11566     version_type=linux
11567     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11568     soname_spec='$libname${shared_ext}.$major'
11569     shlibpath_var=LD_LIBRARY_PATH
11570   fi
11571   ;;
11572
11573 uts4*)
11574   version_type=linux
11575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576   soname_spec='${libname}${release}${shared_ext}$major'
11577   shlibpath_var=LD_LIBRARY_PATH
11578   ;;
11579
11580 *)
11581   dynamic_linker=no
11582   ;;
11583 esac
11584 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11585 echo "${ECHO_T}$dynamic_linker" >&6
11586 test "$dynamic_linker" = no && can_build_shared=no
11587
11588 if test "x$enable_dlopen" != xyes; then
11589   enable_dlopen=unknown
11590   enable_dlopen_self=unknown
11591   enable_dlopen_self_static=unknown
11592 else
11593   lt_cv_dlopen=no
11594   lt_cv_dlopen_libs=
11595
11596   case $host_os in
11597   beos*)
11598     lt_cv_dlopen="load_add_on"
11599     lt_cv_dlopen_libs=
11600     lt_cv_dlopen_self=yes
11601     ;;
11602
11603   mingw* | pw32*)
11604     lt_cv_dlopen="LoadLibrary"
11605     lt_cv_dlopen_libs=
11606    ;;
11607
11608   cygwin*)
11609     lt_cv_dlopen="dlopen"
11610     lt_cv_dlopen_libs=
11611    ;;
11612
11613   darwin*)
11614   # if libdl is installed we need to link against it
11615     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11616 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11617 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11618   echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620   ac_check_lib_save_LIBS=$LIBS
11621 LIBS="-ldl  $LIBS"
11622 cat >conftest.$ac_ext <<_ACEOF
11623 #line $LINENO "configure"
11624 /* confdefs.h.  */
11625 _ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h.  */
11629
11630 /* Override any gcc2 internal prototype to avoid an error.  */
11631 #ifdef __cplusplus
11632 extern "C"
11633 #endif
11634 /* We use char because int might match the return type of a gcc2
11635    builtin and then its argument prototype would still apply.  */
11636 char dlopen ();
11637 int
11638 main ()
11639 {
11640 dlopen ();
11641   ;
11642   return 0;
11643 }
11644 _ACEOF
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11647   (eval $ac_link) 2>&5
11648   ac_status=$?
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); } &&
11651          { ac_try='test -s conftest$ac_exeext'
11652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653   (eval $ac_try) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); }; }; then
11657   ac_cv_lib_dl_dlopen=yes
11658 else
11659   echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11661
11662 ac_cv_lib_dl_dlopen=no
11663 fi
11664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11665 LIBS=$ac_check_lib_save_LIBS
11666 fi
11667 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11668 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11669 if test $ac_cv_lib_dl_dlopen = yes; then
11670   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11671 else
11672
11673     lt_cv_dlopen="dyld"
11674     lt_cv_dlopen_libs=
11675     lt_cv_dlopen_self=yes
11676
11677 fi
11678
11679    ;;
11680
11681   *)
11682     echo "$as_me:$LINENO: checking for shl_load" >&5
11683 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11684 if test "${ac_cv_func_shl_load+set}" = set; then
11685   echo $ECHO_N "(cached) $ECHO_C" >&6
11686 else
11687   cat >conftest.$ac_ext <<_ACEOF
11688 #line $LINENO "configure"
11689 /* confdefs.h.  */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h.  */
11694 /* System header to define __stub macros and hopefully few prototypes,
11695     which can conflict with char shl_load (); below.
11696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11697     <limits.h> exists even on freestanding compilers.  */
11698 #ifdef __STDC__
11699 # include <limits.h>
11700 #else
11701 # include <assert.h>
11702 #endif
11703 /* Override any gcc2 internal prototype to avoid an error.  */
11704 #ifdef __cplusplus
11705 extern "C"
11706 {
11707 #endif
11708 /* We use char because int might match the return type of a gcc2
11709    builtin and then its argument prototype would still apply.  */
11710 char shl_load ();
11711 /* The GNU C library defines this for functions which it implements
11712     to always fail with ENOSYS.  Some functions are actually named
11713     something starting with __ and the normal name is an alias.  */
11714 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11715 choke me
11716 #else
11717 char (*f) () = shl_load;
11718 #endif
11719 #ifdef __cplusplus
11720 }
11721 #endif
11722
11723 int
11724 main ()
11725 {
11726 return f != shl_load;
11727   ;
11728   return 0;
11729 }
11730 _ACEOF
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733   (eval $ac_link) 2>&5
11734   ac_status=$?
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); } &&
11737          { ac_try='test -s conftest$ac_exeext'
11738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739   (eval $ac_try) 2>&5
11740   ac_status=$?
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); }; }; then
11743   ac_cv_func_shl_load=yes
11744 else
11745   echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11747
11748 ac_cv_func_shl_load=no
11749 fi
11750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11751 fi
11752 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11753 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11754 if test $ac_cv_func_shl_load = yes; then
11755   lt_cv_dlopen="shl_load"
11756 else
11757   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11758 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11759 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11760   echo $ECHO_N "(cached) $ECHO_C" >&6
11761 else
11762   ac_check_lib_save_LIBS=$LIBS
11763 LIBS="-ldld  $LIBS"
11764 cat >conftest.$ac_ext <<_ACEOF
11765 #line $LINENO "configure"
11766 /* confdefs.h.  */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h.  */
11771
11772 /* Override any gcc2 internal prototype to avoid an error.  */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 /* We use char because int might match the return type of a gcc2
11777    builtin and then its argument prototype would still apply.  */
11778 char shl_load ();
11779 int
11780 main ()
11781 {
11782 shl_load ();
11783   ;
11784   return 0;
11785 }
11786 _ACEOF
11787 rm -f conftest.$ac_objext conftest$ac_exeext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789   (eval $ac_link) 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); } &&
11793          { ac_try='test -s conftest$ac_exeext'
11794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795   (eval $ac_try) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); }; }; then
11799   ac_cv_lib_dld_shl_load=yes
11800 else
11801   echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11803
11804 ac_cv_lib_dld_shl_load=no
11805 fi
11806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11807 LIBS=$ac_check_lib_save_LIBS
11808 fi
11809 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11810 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11811 if test $ac_cv_lib_dld_shl_load = yes; then
11812   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11813 else
11814   echo "$as_me:$LINENO: checking for dlopen" >&5
11815 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11816 if test "${ac_cv_func_dlopen+set}" = set; then
11817   echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819   cat >conftest.$ac_ext <<_ACEOF
11820 #line $LINENO "configure"
11821 /* confdefs.h.  */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h.  */
11826 /* System header to define __stub macros and hopefully few prototypes,
11827     which can conflict with char dlopen (); below.
11828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11829     <limits.h> exists even on freestanding compilers.  */
11830 #ifdef __STDC__
11831 # include <limits.h>
11832 #else
11833 # include <assert.h>
11834 #endif
11835 /* Override any gcc2 internal prototype to avoid an error.  */
11836 #ifdef __cplusplus
11837 extern "C"
11838 {
11839 #endif
11840 /* We use char because int might match the return type of a gcc2
11841    builtin and then its argument prototype would still apply.  */
11842 char dlopen ();
11843 /* The GNU C library defines this for functions which it implements
11844     to always fail with ENOSYS.  Some functions are actually named
11845     something starting with __ and the normal name is an alias.  */
11846 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11847 choke me
11848 #else
11849 char (*f) () = dlopen;
11850 #endif
11851 #ifdef __cplusplus
11852 }
11853 #endif
11854
11855 int
11856 main ()
11857 {
11858 return f != dlopen;
11859   ;
11860   return 0;
11861 }
11862 _ACEOF
11863 rm -f conftest.$ac_objext conftest$ac_exeext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865   (eval $ac_link) 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); } &&
11869          { ac_try='test -s conftest$ac_exeext'
11870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871   (eval $ac_try) 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); }; }; then
11875   ac_cv_func_dlopen=yes
11876 else
11877   echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11879
11880 ac_cv_func_dlopen=no
11881 fi
11882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11883 fi
11884 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11885 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11886 if test $ac_cv_func_dlopen = yes; then
11887   lt_cv_dlopen="dlopen"
11888 else
11889   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11890 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894   ac_check_lib_save_LIBS=$LIBS
11895 LIBS="-ldl  $LIBS"
11896 cat >conftest.$ac_ext <<_ACEOF
11897 #line $LINENO "configure"
11898 /* confdefs.h.  */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h.  */
11903
11904 /* Override any gcc2 internal prototype to avoid an error.  */
11905 #ifdef __cplusplus
11906 extern "C"
11907 #endif
11908 /* We use char because int might match the return type of a gcc2
11909    builtin and then its argument prototype would still apply.  */
11910 char dlopen ();
11911 int
11912 main ()
11913 {
11914 dlopen ();
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921   (eval $ac_link) 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); } &&
11925          { ac_try='test -s conftest$ac_exeext'
11926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927   (eval $ac_try) 2>&5
11928   ac_status=$?
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); }; }; then
11931   ac_cv_lib_dl_dlopen=yes
11932 else
11933   echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936 ac_cv_lib_dl_dlopen=no
11937 fi
11938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11939 LIBS=$ac_check_lib_save_LIBS
11940 fi
11941 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11942 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11943 if test $ac_cv_lib_dl_dlopen = yes; then
11944   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11945 else
11946   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11947 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11948 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11949   echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951   ac_check_lib_save_LIBS=$LIBS
11952 LIBS="-lsvld  $LIBS"
11953 cat >conftest.$ac_ext <<_ACEOF
11954 #line $LINENO "configure"
11955 /* confdefs.h.  */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h.  */
11960
11961 /* Override any gcc2 internal prototype to avoid an error.  */
11962 #ifdef __cplusplus
11963 extern "C"
11964 #endif
11965 /* We use char because int might match the return type of a gcc2
11966    builtin and then its argument prototype would still apply.  */
11967 char dlopen ();
11968 int
11969 main ()
11970 {
11971 dlopen ();
11972   ;
11973   return 0;
11974 }
11975 _ACEOF
11976 rm -f conftest.$ac_objext conftest$ac_exeext
11977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11978   (eval $ac_link) 2>&5
11979   ac_status=$?
11980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981   (exit $ac_status); } &&
11982          { ac_try='test -s conftest$ac_exeext'
11983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984   (eval $ac_try) 2>&5
11985   ac_status=$?
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); }; }; then
11988   ac_cv_lib_svld_dlopen=yes
11989 else
11990   echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11992
11993 ac_cv_lib_svld_dlopen=no
11994 fi
11995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11996 LIBS=$ac_check_lib_save_LIBS
11997 fi
11998 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11999 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12000 if test $ac_cv_lib_svld_dlopen = yes; then
12001   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12002 else
12003   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12004 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12005 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12006   echo $ECHO_N "(cached) $ECHO_C" >&6
12007 else
12008   ac_check_lib_save_LIBS=$LIBS
12009 LIBS="-ldld  $LIBS"
12010 cat >conftest.$ac_ext <<_ACEOF
12011 #line $LINENO "configure"
12012 /* confdefs.h.  */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h.  */
12017
12018 /* Override any gcc2 internal prototype to avoid an error.  */
12019 #ifdef __cplusplus
12020 extern "C"
12021 #endif
12022 /* We use char because int might match the return type of a gcc2
12023    builtin and then its argument prototype would still apply.  */
12024 char dld_link ();
12025 int
12026 main ()
12027 {
12028 dld_link ();
12029   ;
12030   return 0;
12031 }
12032 _ACEOF
12033 rm -f conftest.$ac_objext conftest$ac_exeext
12034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12035   (eval $ac_link) 2>&5
12036   ac_status=$?
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); } &&
12039          { ac_try='test -s conftest$ac_exeext'
12040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041   (eval $ac_try) 2>&5
12042   ac_status=$?
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); }; }; then
12045   ac_cv_lib_dld_dld_link=yes
12046 else
12047   echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050 ac_cv_lib_dld_dld_link=no
12051 fi
12052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12053 LIBS=$ac_check_lib_save_LIBS
12054 fi
12055 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12056 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12057 if test $ac_cv_lib_dld_dld_link = yes; then
12058   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12059 fi
12060
12061
12062 fi
12063
12064
12065 fi
12066
12067
12068 fi
12069
12070
12071 fi
12072
12073
12074 fi
12075
12076     ;;
12077   esac
12078
12079   if test "x$lt_cv_dlopen" != xno; then
12080     enable_dlopen=yes
12081   else
12082     enable_dlopen=no
12083   fi
12084
12085   case $lt_cv_dlopen in
12086   dlopen)
12087     save_CPPFLAGS="$CPPFLAGS"
12088     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12089
12090     save_LDFLAGS="$LDFLAGS"
12091     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12092
12093     save_LIBS="$LIBS"
12094     LIBS="$lt_cv_dlopen_libs $LIBS"
12095
12096     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12097 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12098 if test "${lt_cv_dlopen_self+set}" = set; then
12099   echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101           if test "$cross_compiling" = yes; then :
12102   lt_cv_dlopen_self=cross
12103 else
12104   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12105   lt_status=$lt_dlunknown
12106   cat > conftest.$ac_ext <<EOF
12107 #line 12107 "configure"
12108 #include "confdefs.h"
12109
12110 #if HAVE_DLFCN_H
12111 #include <dlfcn.h>
12112 #endif
12113
12114 #include <stdio.h>
12115
12116 #ifdef RTLD_GLOBAL
12117 #  define LT_DLGLOBAL           RTLD_GLOBAL
12118 #else
12119 #  ifdef DL_GLOBAL
12120 #    define LT_DLGLOBAL         DL_GLOBAL
12121 #  else
12122 #    define LT_DLGLOBAL         0
12123 #  endif
12124 #endif
12125
12126 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12127    find out it does not work in some platform. */
12128 #ifndef LT_DLLAZY_OR_NOW
12129 #  ifdef RTLD_LAZY
12130 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12131 #  else
12132 #    ifdef DL_LAZY
12133 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12134 #    else
12135 #      ifdef RTLD_NOW
12136 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12137 #      else
12138 #        ifdef DL_NOW
12139 #          define LT_DLLAZY_OR_NOW      DL_NOW
12140 #        else
12141 #          define LT_DLLAZY_OR_NOW      0
12142 #        endif
12143 #      endif
12144 #    endif
12145 #  endif
12146 #endif
12147
12148 #ifdef __cplusplus
12149 extern "C" void exit (int);
12150 #endif
12151
12152 void fnord() { int i=42;}
12153 int main ()
12154 {
12155   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12156   int status = $lt_dlunknown;
12157
12158   if (self)
12159     {
12160       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12161       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12162       /* dlclose (self); */
12163     }
12164
12165     exit (status);
12166 }
12167 EOF
12168   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12169   (eval $ac_link) 2>&5
12170   ac_status=$?
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12173     (./conftest; exit; ) 2>/dev/null
12174     lt_status=$?
12175     case x$lt_status in
12176       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12177       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12178       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12179     esac
12180   else :
12181     # compilation failed
12182     lt_cv_dlopen_self=no
12183   fi
12184 fi
12185 rm -fr conftest*
12186
12187
12188 fi
12189 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12190 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12191
12192     if test "x$lt_cv_dlopen_self" = xyes; then
12193       LDFLAGS="$LDFLAGS $link_static_flag"
12194       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12195 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12196 if test "${lt_cv_dlopen_self_static+set}" = set; then
12197   echo $ECHO_N "(cached) $ECHO_C" >&6
12198 else
12199           if test "$cross_compiling" = yes; then :
12200   lt_cv_dlopen_self_static=cross
12201 else
12202   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12203   lt_status=$lt_dlunknown
12204   cat > conftest.$ac_ext <<EOF
12205 #line 12205 "configure"
12206 #include "confdefs.h"
12207
12208 #if HAVE_DLFCN_H
12209 #include <dlfcn.h>
12210 #endif
12211
12212 #include <stdio.h>
12213
12214 #ifdef RTLD_GLOBAL
12215 #  define LT_DLGLOBAL           RTLD_GLOBAL
12216 #else
12217 #  ifdef DL_GLOBAL
12218 #    define LT_DLGLOBAL         DL_GLOBAL
12219 #  else
12220 #    define LT_DLGLOBAL         0
12221 #  endif
12222 #endif
12223
12224 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12225    find out it does not work in some platform. */
12226 #ifndef LT_DLLAZY_OR_NOW
12227 #  ifdef RTLD_LAZY
12228 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12229 #  else
12230 #    ifdef DL_LAZY
12231 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12232 #    else
12233 #      ifdef RTLD_NOW
12234 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12235 #      else
12236 #        ifdef DL_NOW
12237 #          define LT_DLLAZY_OR_NOW      DL_NOW
12238 #        else
12239 #          define LT_DLLAZY_OR_NOW      0
12240 #        endif
12241 #      endif
12242 #    endif
12243 #  endif
12244 #endif
12245
12246 #ifdef __cplusplus
12247 extern "C" void exit (int);
12248 #endif
12249
12250 void fnord() { int i=42;}
12251 int main ()
12252 {
12253   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12254   int status = $lt_dlunknown;
12255
12256   if (self)
12257     {
12258       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12259       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12260       /* dlclose (self); */
12261     }
12262
12263     exit (status);
12264 }
12265 EOF
12266   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12267   (eval $ac_link) 2>&5
12268   ac_status=$?
12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12271     (./conftest; exit; ) 2>/dev/null
12272     lt_status=$?
12273     case x$lt_status in
12274       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12275       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12276       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12277     esac
12278   else :
12279     # compilation failed
12280     lt_cv_dlopen_self_static=no
12281   fi
12282 fi
12283 rm -fr conftest*
12284
12285
12286 fi
12287 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12288 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12289     fi
12290
12291     CPPFLAGS="$save_CPPFLAGS"
12292     LDFLAGS="$save_LDFLAGS"
12293     LIBS="$save_LIBS"
12294     ;;
12295   esac
12296
12297   case $lt_cv_dlopen_self in
12298   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12299   *) enable_dlopen_self=unknown ;;
12300   esac
12301
12302   case $lt_cv_dlopen_self_static in
12303   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12304   *) enable_dlopen_self_static=unknown ;;
12305   esac
12306 fi
12307
12308
12309 # The else clause should only fire when bootstrapping the
12310 # libtool distribution, otherwise you forgot to ship ltmain.sh
12311 # with your package, and you will get complaints that there are
12312 # no rules to generate ltmain.sh.
12313 if test -f "$ltmain"; then
12314   # See if we are running on zsh, and set the options which allow our commands through
12315   # without removal of \ escapes.
12316   if test -n "${ZSH_VERSION+set}" ; then
12317     setopt NO_GLOB_SUBST
12318   fi
12319   # Now quote all the things that may contain metacharacters while being
12320   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12321   # variables and quote the copies for generation of the libtool script.
12322   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12323     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12324     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12325     deplibs_check_method reload_flag reload_cmds need_locks \
12326     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12327     lt_cv_sys_global_symbol_to_c_name_address \
12328     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12329     old_postinstall_cmds old_postuninstall_cmds \
12330     compiler_CXX \
12331     CC_CXX \
12332     LD_CXX \
12333     lt_prog_compiler_wl_CXX \
12334     lt_prog_compiler_pic_CXX \
12335     lt_prog_compiler_static_CXX \
12336     lt_prog_compiler_no_builtin_flag_CXX \
12337     export_dynamic_flag_spec_CXX \
12338     thread_safe_flag_spec_CXX \
12339     whole_archive_flag_spec_CXX \
12340     enable_shared_with_static_runtimes_CXX \
12341     old_archive_cmds_CXX \
12342     old_archive_from_new_cmds_CXX \
12343     predep_objects_CXX \
12344     postdep_objects_CXX \
12345     predeps_CXX \
12346     postdeps_CXX \
12347     compiler_lib_search_path_CXX \
12348     archive_cmds_CXX \
12349     archive_expsym_cmds_CXX \
12350     postinstall_cmds_CXX \
12351     postuninstall_cmds_CXX \
12352     old_archive_from_expsyms_cmds_CXX \
12353     allow_undefined_flag_CXX \
12354     no_undefined_flag_CXX \
12355     export_symbols_cmds_CXX \
12356     hardcode_libdir_flag_spec_CXX \
12357     hardcode_libdir_flag_spec_ld_CXX \
12358     hardcode_libdir_separator_CXX \
12359     hardcode_automatic_CXX \
12360     module_cmds_CXX \
12361     module_expsym_cmds_CXX \
12362     lt_cv_prog_compiler_c_o_CXX \
12363     exclude_expsyms_CXX \
12364     include_expsyms_CXX; do
12365
12366     case $var in
12367     old_archive_cmds_CXX | \
12368     old_archive_from_new_cmds_CXX | \
12369     archive_cmds_CXX | \
12370     archive_expsym_cmds_CXX | \
12371     module_cmds_CXX | \
12372     module_expsym_cmds_CXX | \
12373     old_archive_from_expsyms_cmds_CXX | \
12374     export_symbols_cmds_CXX | \
12375     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12376     postinstall_cmds | postuninstall_cmds | \
12377     old_postinstall_cmds | old_postuninstall_cmds | \
12378     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12379       # Double-quote double-evaled strings.
12380       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12381       ;;
12382     *)
12383       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12384       ;;
12385     esac
12386   done
12387
12388   case $lt_echo in
12389   *'\$0 --fallback-echo"')
12390     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12391     ;;
12392   esac
12393
12394 cfgfile="$ofile"
12395
12396   cat <<__EOF__ >> "$cfgfile"
12397 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12398
12399 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12400
12401 # Shell to use when invoking shell scripts.
12402 SHELL=$lt_SHELL
12403
12404 # Whether or not to build shared libraries.
12405 build_libtool_libs=$enable_shared
12406
12407 # Whether or not to build static libraries.
12408 build_old_libs=$enable_static
12409
12410 # Whether or not to add -lc for building shared libraries.
12411 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12412
12413 # Whether or not to disallow shared libs when runtime libs are static
12414 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12415
12416 # Whether or not to optimize for fast installation.
12417 fast_install=$enable_fast_install
12418
12419 # The host system.
12420 host_alias=$host_alias
12421 host=$host
12422
12423 # An echo program that does not interpret backslashes.
12424 echo=$lt_echo
12425
12426 # The archiver.
12427 AR=$lt_AR
12428 AR_FLAGS=$lt_AR_FLAGS
12429
12430 # A C compiler.
12431 LTCC=$lt_LTCC
12432
12433 # A language-specific compiler.
12434 CC=$lt_compiler_CXX
12435
12436 # Is the compiler the GNU C compiler?
12437 with_gcc=$GCC_CXX
12438
12439 # An ERE matcher.
12440 EGREP=$lt_EGREP
12441
12442 # The linker used to build libraries.
12443 LD=$lt_LD_CXX
12444
12445 # Whether we need hard or soft links.
12446 LN_S=$lt_LN_S
12447
12448 # A BSD-compatible nm program.
12449 NM=$lt_NM
12450
12451 # A symbol stripping program
12452 STRIP=$STRIP
12453
12454 # Used to examine libraries when file_magic_cmd begins "file"
12455 MAGIC_CMD=$MAGIC_CMD
12456
12457 # Used on cygwin: DLL creation program.
12458 DLLTOOL="$DLLTOOL"
12459
12460 # Used on cygwin: object dumper.
12461 OBJDUMP="$OBJDUMP"
12462
12463 # Used on cygwin: assembler.
12464 AS="$AS"
12465
12466 # The name of the directory that contains temporary libtool files.
12467 objdir=$objdir
12468
12469 # How to create reloadable object files.
12470 reload_flag=$lt_reload_flag
12471 reload_cmds=$lt_reload_cmds
12472
12473 # How to pass a linker flag through the compiler.
12474 wl=$lt_lt_prog_compiler_wl_CXX
12475
12476 # Object file suffix (normally "o").
12477 objext="$ac_objext"
12478
12479 # Old archive suffix (normally "a").
12480 libext="$libext"
12481
12482 # Shared library suffix (normally ".so").
12483 shrext='$shrext'
12484
12485 # Executable file suffix (normally "").
12486 exeext="$exeext"
12487
12488 # Additional compiler flags for building library objects.
12489 pic_flag=$lt_lt_prog_compiler_pic_CXX
12490 pic_mode=$pic_mode
12491
12492 # What is the maximum length of a command?
12493 max_cmd_len=$lt_cv_sys_max_cmd_len
12494
12495 # Does compiler simultaneously support -c and -o options?
12496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12497
12498 # Must we lock files when doing compilation ?
12499 need_locks=$lt_need_locks
12500
12501 # Do we need the lib prefix for modules?
12502 need_lib_prefix=$need_lib_prefix
12503
12504 # Do we need a version for libraries?
12505 need_version=$need_version
12506
12507 # Whether dlopen is supported.
12508 dlopen_support=$enable_dlopen
12509
12510 # Whether dlopen of programs is supported.
12511 dlopen_self=$enable_dlopen_self
12512
12513 # Whether dlopen of statically linked programs is supported.
12514 dlopen_self_static=$enable_dlopen_self_static
12515
12516 # Compiler flag to prevent dynamic linking.
12517 link_static_flag=$lt_lt_prog_compiler_static_CXX
12518
12519 # Compiler flag to turn off builtin functions.
12520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12521
12522 # Compiler flag to allow reflexive dlopens.
12523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12524
12525 # Compiler flag to generate shared objects directly from archives.
12526 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12527
12528 # Compiler flag to generate thread-safe objects.
12529 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12530
12531 # Library versioning type.
12532 version_type=$version_type
12533
12534 # Format of library name prefix.
12535 libname_spec=$lt_libname_spec
12536
12537 # List of archive names.  First name is the real one, the rest are links.
12538 # The last name is the one that the linker finds with -lNAME.
12539 library_names_spec=$lt_library_names_spec
12540
12541 # The coded name of the library, if different from the real name.
12542 soname_spec=$lt_soname_spec
12543
12544 # Commands used to build and install an old-style archive.
12545 RANLIB=$lt_RANLIB
12546 old_archive_cmds=$lt_old_archive_cmds_CXX
12547 old_postinstall_cmds=$lt_old_postinstall_cmds
12548 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12549
12550 # Create an old-style archive from a shared archive.
12551 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12552
12553 # Create a temporary old-style archive to link instead of a shared archive.
12554 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12555
12556 # Commands used to build and install a shared archive.
12557 archive_cmds=$lt_archive_cmds_CXX
12558 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12559 postinstall_cmds=$lt_postinstall_cmds
12560 postuninstall_cmds=$lt_postuninstall_cmds
12561
12562 # Commands used to build a loadable module (assumed same as above if empty)
12563 module_cmds=$lt_module_cmds_CXX
12564 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12565
12566 # Commands to strip libraries.
12567 old_striplib=$lt_old_striplib
12568 striplib=$lt_striplib
12569
12570 # Dependencies to place before the objects being linked to create a
12571 # shared library.
12572 predep_objects=$lt_predep_objects_CXX
12573
12574 # Dependencies to place after the objects being linked to create a
12575 # shared library.
12576 postdep_objects=$lt_postdep_objects_CXX
12577
12578 # Dependencies to place before the objects being linked to create a
12579 # shared library.
12580 predeps=$lt_predeps_CXX
12581
12582 # Dependencies to place after the objects being linked to create a
12583 # shared library.
12584 postdeps=$lt_postdeps_CXX
12585
12586 # The library search path used internally by the compiler when linking
12587 # a shared library.
12588 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12589
12590 # Method to check whether dependent libraries are shared objects.
12591 deplibs_check_method=$lt_deplibs_check_method
12592
12593 # Command to use when deplibs_check_method == file_magic.
12594 file_magic_cmd=$lt_file_magic_cmd
12595
12596 # Flag that allows shared libraries with undefined symbols to be built.
12597 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12598
12599 # Flag that forces no undefined symbols.
12600 no_undefined_flag=$lt_no_undefined_flag_CXX
12601
12602 # Commands used to finish a libtool library installation in a directory.
12603 finish_cmds=$lt_finish_cmds
12604
12605 # Same as above, but a single script fragment to be evaled but not shown.
12606 finish_eval=$lt_finish_eval
12607
12608 # Take the output of nm and produce a listing of raw symbols and C names.
12609 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12610
12611 # Transform the output of nm in a proper C declaration
12612 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12613
12614 # Transform the output of nm in a C name address pair
12615 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12616
12617 # This is the shared library runtime path variable.
12618 runpath_var=$runpath_var
12619
12620 # This is the shared library path variable.
12621 shlibpath_var=$shlibpath_var
12622
12623 # Is shlibpath searched before the hard-coded library search path?
12624 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12625
12626 # How to hardcode a shared library path into an executable.
12627 hardcode_action=$hardcode_action_CXX
12628
12629 # Whether we should hardcode library paths into libraries.
12630 hardcode_into_libs=$hardcode_into_libs
12631
12632 # Flag to hardcode \$libdir into a binary during linking.
12633 # This must work even if \$libdir does not exist.
12634 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12635
12636 # If ld is used when linking, flag to hardcode \$libdir into
12637 # a binary during linking. This must work even if \$libdir does
12638 # not exist.
12639 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12640
12641 # Whether we need a single -rpath flag with a separated argument.
12642 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12643
12644 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12645 # resulting binary.
12646 hardcode_direct=$hardcode_direct_CXX
12647
12648 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12649 # resulting binary.
12650 hardcode_minus_L=$hardcode_minus_L_CXX
12651
12652 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12653 # the resulting binary.
12654 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12655
12656 # Set to yes if building a shared library automatically hardcodes DIR into the library
12657 # and all subsequent libraries and executables linked against it.
12658 hardcode_automatic=$hardcode_automatic_CXX
12659
12660 # Variables whose values should be saved in libtool wrapper scripts and
12661 # restored at relink time.
12662 variables_saved_for_relink="$variables_saved_for_relink"
12663
12664 # Whether libtool must link a program against all its dependency libraries.
12665 link_all_deplibs=$link_all_deplibs_CXX
12666
12667 # Compile-time system search path for libraries
12668 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12669
12670 # Run-time system search path for libraries
12671 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12672
12673 # Fix the shell variable \$srcfile for the compiler.
12674 fix_srcfile_path="$fix_srcfile_path_CXX"
12675
12676 # Set to yes if exported symbols are required.
12677 always_export_symbols=$always_export_symbols_CXX
12678
12679 # The commands to list exported symbols.
12680 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12681
12682 # The commands to extract the exported symbol list from a shared archive.
12683 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12684
12685 # Symbols that should not be listed in the preloaded symbols.
12686 exclude_expsyms=$lt_exclude_expsyms_CXX
12687
12688 # Symbols that must always be exported.
12689 include_expsyms=$lt_include_expsyms_CXX
12690
12691 # ### END LIBTOOL TAG CONFIG: $tagname
12692
12693 __EOF__
12694
12695
12696 else
12697   # If there is no Makefile yet, we rely on a make rule to execute
12698   # `config.status --recheck' to rerun these tests and create the
12699   # libtool script then.
12700   test -f Makefile && make "$ltmain"
12701 fi
12702
12703
12704 ac_ext=c
12705 ac_cpp='$CPP $CPPFLAGS'
12706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12709
12710 CC=$lt_save_CC
12711 LDCXX=$LD
12712 LD=$lt_save_LD
12713 GCC=$lt_save_GCC
12714 with_gnu_ldcxx=$with_gnu_ld
12715 with_gnu_ld=$lt_save_with_gnu_ld
12716 lt_cv_path_LDCXX=$lt_cv_path_LD
12717 lt_cv_path_LD=$lt_save_path_LD
12718 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12719 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12720
12721         else
12722           tagname=""
12723         fi
12724         ;;
12725
12726       F77)
12727         if test -n "$F77" && test "X$F77" != "Xno"; then
12728
12729 ac_ext=f
12730 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12731 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12732 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12733
12734
12735 archive_cmds_need_lc_F77=no
12736 allow_undefined_flag_F77=
12737 always_export_symbols_F77=no
12738 archive_expsym_cmds_F77=
12739 export_dynamic_flag_spec_F77=
12740 hardcode_direct_F77=no
12741 hardcode_libdir_flag_spec_F77=
12742 hardcode_libdir_flag_spec_ld_F77=
12743 hardcode_libdir_separator_F77=
12744 hardcode_minus_L_F77=no
12745 hardcode_automatic_F77=no
12746 module_cmds_F77=
12747 module_expsym_cmds_F77=
12748 link_all_deplibs_F77=unknown
12749 old_archive_cmds_F77=$old_archive_cmds
12750 no_undefined_flag_F77=
12751 whole_archive_flag_spec_F77=
12752 enable_shared_with_static_runtimes_F77=no
12753
12754 # Source file extension for f77 test sources.
12755 ac_ext=f
12756
12757 # Object file extension for compiled f77 test sources.
12758 objext=o
12759 objext_F77=$objext
12760
12761 # Code to be used in simple compile tests
12762 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12763
12764 # Code to be used in simple link tests
12765 lt_simple_link_test_code="      program t\n      end\n"
12766
12767 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12768
12769 # If no C compiler was specified, use CC.
12770 LTCC=${LTCC-"$CC"}
12771
12772 # Allow CC to be a program name with arguments.
12773 compiler=$CC
12774
12775
12776 # Allow CC to be a program name with arguments.
12777 lt_save_CC="$CC"
12778 CC=${F77-"f77"}
12779 compiler=$CC
12780 compiler_F77=$CC
12781 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12782
12783 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12784 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12785 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12786 echo "${ECHO_T}$can_build_shared" >&6
12787
12788 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12789 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12790 test "$can_build_shared" = "no" && enable_shared=no
12791
12792 # On AIX, shared libraries and static libraries use the same namespace, and
12793 # are all built from PIC.
12794 case "$host_os" in
12795 aix3*)
12796   test "$enable_shared" = yes && enable_static=no
12797   if test -n "$RANLIB"; then
12798     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12799     postinstall_cmds='$RANLIB $lib'
12800   fi
12801   ;;
12802 aix4*)
12803   test "$enable_shared" = yes && enable_static=no
12804   ;;
12805 esac
12806 echo "$as_me:$LINENO: result: $enable_shared" >&5
12807 echo "${ECHO_T}$enable_shared" >&6
12808
12809 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12810 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12811 # Make sure either enable_shared or enable_static is yes.
12812 test "$enable_shared" = yes || enable_static=yes
12813 echo "$as_me:$LINENO: result: $enable_static" >&5
12814 echo "${ECHO_T}$enable_static" >&6
12815
12816 test "$ld_shlibs_F77" = no && can_build_shared=no
12817
12818 GCC_F77="$G77"
12819 LD_F77="$LD"
12820
12821 lt_prog_compiler_wl_F77=
12822 lt_prog_compiler_pic_F77=
12823 lt_prog_compiler_static_F77=
12824
12825 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12826 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12827
12828   if test "$GCC" = yes; then
12829     lt_prog_compiler_wl_F77='-Wl,'
12830     lt_prog_compiler_static_F77='-static'
12831
12832     case $host_os in
12833       aix*)
12834       # All AIX code is PIC.
12835       if test "$host_cpu" = ia64; then
12836         # AIX 5 now supports IA64 processor
12837         lt_prog_compiler_static_F77='-Bstatic'
12838       fi
12839       ;;
12840
12841     amigaos*)
12842       # FIXME: we need at least 68020 code to build shared libraries, but
12843       # adding the `-m68020' flag to GCC prevents building anything better,
12844       # like `-m68040'.
12845       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12846       ;;
12847
12848     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12849       # PIC is the default for these OSes.
12850       ;;
12851
12852     mingw* | pw32* | os2*)
12853       # This hack is so that the source file can tell whether it is being
12854       # built for inclusion in a dll (and should export symbols for example).
12855       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12856       ;;
12857
12858     darwin* | rhapsody*)
12859       # PIC is the default on this platform
12860       # Common symbols not allowed in MH_DYLIB files
12861       lt_prog_compiler_pic_F77='-fno-common'
12862       ;;
12863
12864     msdosdjgpp*)
12865       # Just because we use GCC doesn't mean we suddenly get shared libraries
12866       # on systems that don't support them.
12867       lt_prog_compiler_can_build_shared_F77=no
12868       enable_shared=no
12869       ;;
12870
12871     sysv4*MP*)
12872       if test -d /usr/nec; then
12873         lt_prog_compiler_pic_F77=-Kconform_pic
12874       fi
12875       ;;
12876
12877     hpux*)
12878       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12879       # not for PA HP-UX.
12880       case "$host_cpu" in
12881       hppa*64*|ia64*)
12882         # +Z the default
12883         ;;
12884       *)
12885         lt_prog_compiler_pic_F77='-fPIC'
12886         ;;
12887       esac
12888       ;;
12889
12890     *)
12891       lt_prog_compiler_pic_F77='-fPIC'
12892       ;;
12893     esac
12894   else
12895     # PORTME Check for flag to pass linker flags through the system compiler.
12896     case $host_os in
12897     aix*)
12898       lt_prog_compiler_wl_F77='-Wl,'
12899       if test "$host_cpu" = ia64; then
12900         # AIX 5 now supports IA64 processor
12901         lt_prog_compiler_static_F77='-Bstatic'
12902       else
12903         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12904       fi
12905       ;;
12906
12907     mingw* | pw32* | os2*)
12908       # This hack is so that the source file can tell whether it is being
12909       # built for inclusion in a dll (and should export symbols for example).
12910       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12911       ;;
12912
12913     hpux9* | hpux10* | hpux11*)
12914       lt_prog_compiler_wl_F77='-Wl,'
12915       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12916       # not for PA HP-UX.
12917       case "$host_cpu" in
12918       hppa*64*|ia64*)
12919         # +Z the default
12920         ;;
12921       *)
12922         lt_prog_compiler_pic_F77='+Z'
12923         ;;
12924       esac
12925       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12926       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12927       ;;
12928
12929     irix5* | irix6* | nonstopux*)
12930       lt_prog_compiler_wl_F77='-Wl,'
12931       # PIC (with -KPIC) is the default.
12932       lt_prog_compiler_static_F77='-non_shared'
12933       ;;
12934
12935     newsos6)
12936       lt_prog_compiler_pic_F77='-KPIC'
12937       lt_prog_compiler_static_F77='-Bstatic'
12938       ;;
12939
12940     linux*)
12941       case $CC in
12942       icc|ecc)
12943         lt_prog_compiler_wl_F77='-Wl,'
12944         lt_prog_compiler_pic_F77='-KPIC'
12945         lt_prog_compiler_static_F77='-static'
12946         ;;
12947       ccc)
12948         lt_prog_compiler_wl_F77='-Wl,'
12949         # All Alpha code is PIC.
12950         lt_prog_compiler_static_F77='-non_shared'
12951         ;;
12952       esac
12953       ;;
12954
12955     osf3* | osf4* | osf5*)
12956       lt_prog_compiler_wl_F77='-Wl,'
12957       # All OSF/1 code is PIC.
12958       lt_prog_compiler_static_F77='-non_shared'
12959       ;;
12960
12961     sco3.2v5*)
12962       lt_prog_compiler_pic_F77='-Kpic'
12963       lt_prog_compiler_static_F77='-dn'
12964       ;;
12965
12966     solaris*)
12967       lt_prog_compiler_wl_F77='-Wl,'
12968       lt_prog_compiler_pic_F77='-KPIC'
12969       lt_prog_compiler_static_F77='-Bstatic'
12970       ;;
12971
12972     sunos4*)
12973       lt_prog_compiler_wl_F77='-Qoption ld '
12974       lt_prog_compiler_pic_F77='-PIC'
12975       lt_prog_compiler_static_F77='-Bstatic'
12976       ;;
12977
12978     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12979       lt_prog_compiler_wl_F77='-Wl,'
12980       lt_prog_compiler_pic_F77='-KPIC'
12981       lt_prog_compiler_static_F77='-Bstatic'
12982       ;;
12983
12984     sysv4*MP*)
12985       if test -d /usr/nec ;then
12986         lt_prog_compiler_pic_F77='-Kconform_pic'
12987         lt_prog_compiler_static_F77='-Bstatic'
12988       fi
12989       ;;
12990
12991     uts4*)
12992       lt_prog_compiler_pic_F77='-pic'
12993       lt_prog_compiler_static_F77='-Bstatic'
12994       ;;
12995
12996     *)
12997       lt_prog_compiler_can_build_shared_F77=no
12998       ;;
12999     esac
13000   fi
13001
13002 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13003 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13004
13005 #
13006 # Check to make sure the PIC flag actually works.
13007 #
13008 if test -n "$lt_prog_compiler_pic_F77"; then
13009   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13010 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13011 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13012   echo $ECHO_N "(cached) $ECHO_C" >&6
13013 else
13014   lt_prog_compiler_pic_works_F77=no
13015   ac_outfile=conftest.$ac_objext
13016    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13017    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13018    # Insert the option either (1) after the last *FLAGS variable, or
13019    # (2) before a word containing "conftest.", or (3) at the end.
13020    # Note that $ac_compile itself does not contain backslashes and begins
13021    # with a dollar sign (not a hyphen), so the echo should work correctly.
13022    # The option is referenced via a variable to avoid confusing sed.
13023    lt_compile=`echo "$ac_compile" | $SED \
13024    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13025    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13026    -e 's:$: $lt_compiler_flag:'`
13027    (eval echo "\"\$as_me:13027: $lt_compile\"" >&5)
13028    (eval "$lt_compile" 2>conftest.err)
13029    ac_status=$?
13030    cat conftest.err >&5
13031    echo "$as_me:13031: \$? = $ac_status" >&5
13032    if (exit $ac_status) && test -s "$ac_outfile"; then
13033      # The compiler can only warn and ignore the option if not recognized
13034      # So say no if there are warnings
13035      if test ! -s conftest.err; then
13036        lt_prog_compiler_pic_works_F77=yes
13037      fi
13038    fi
13039    $rm conftest*
13040
13041 fi
13042 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13043 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13044
13045 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13046     case $lt_prog_compiler_pic_F77 in
13047      "" | " "*) ;;
13048      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13049      esac
13050 else
13051     lt_prog_compiler_pic_F77=
13052      lt_prog_compiler_can_build_shared_F77=no
13053 fi
13054
13055 fi
13056 case "$host_os" in
13057   # For platforms which do not support PIC, -DPIC is meaningless:
13058   *djgpp*)
13059     lt_prog_compiler_pic_F77=
13060     ;;
13061   *)
13062     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13063     ;;
13064 esac
13065
13066 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13067 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13068 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13069   echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071   lt_cv_prog_compiler_c_o_F77=no
13072    $rm -r conftest 2>/dev/null
13073    mkdir conftest
13074    cd conftest
13075    mkdir out
13076    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13077
13078    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13079    # that will create temporary files in the current directory regardless of
13080    # the output directory.  Thus, making CWD read-only will cause this test
13081    # to fail, enabling locking or at least warning the user not to do parallel
13082    # builds.
13083    chmod -w .
13084
13085    lt_compiler_flag="-o out/conftest2.$ac_objext"
13086    # Insert the option either (1) after the last *FLAGS variable, or
13087    # (2) before a word containing "conftest.", or (3) at the end.
13088    # Note that $ac_compile itself does not contain backslashes and begins
13089    # with a dollar sign (not a hyphen), so the echo should work correctly.
13090    lt_compile=`echo "$ac_compile" | $SED \
13091    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13092    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13093    -e 's:$: $lt_compiler_flag:'`
13094    (eval echo "\"\$as_me:13094: $lt_compile\"" >&5)
13095    (eval "$lt_compile" 2>out/conftest.err)
13096    ac_status=$?
13097    cat out/conftest.err >&5
13098    echo "$as_me:13098: \$? = $ac_status" >&5
13099    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13100    then
13101      # The compiler can only warn and ignore the option if not recognized
13102      # So say no if there are warnings
13103      if test ! -s out/conftest.err; then
13104        lt_cv_prog_compiler_c_o_F77=yes
13105      fi
13106    fi
13107    chmod u+w .
13108    $rm conftest* out/*
13109    rmdir out
13110    cd ..
13111    rmdir conftest
13112    $rm conftest*
13113
13114 fi
13115 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13116 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13117
13118
13119 hard_links="nottested"
13120 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13121   # do not overwrite the value of need_locks provided by the user
13122   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13123 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13124   hard_links=yes
13125   $rm conftest*
13126   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13127   touch conftest.a
13128   ln conftest.a conftest.b 2>&5 || hard_links=no
13129   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13130   echo "$as_me:$LINENO: result: $hard_links" >&5
13131 echo "${ECHO_T}$hard_links" >&6
13132   if test "$hard_links" = no; then
13133     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13134 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13135     need_locks=warn
13136   fi
13137 else
13138   need_locks=no
13139 fi
13140
13141 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13142 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13143
13144   runpath_var=
13145   allow_undefined_flag_F77=
13146   enable_shared_with_static_runtimes_F77=no
13147   archive_cmds_F77=
13148   archive_expsym_cmds_F77=
13149   old_archive_From_new_cmds_F77=
13150   old_archive_from_expsyms_cmds_F77=
13151   export_dynamic_flag_spec_F77=
13152   whole_archive_flag_spec_F77=
13153   thread_safe_flag_spec_F77=
13154   hardcode_libdir_flag_spec_F77=
13155   hardcode_libdir_flag_spec_ld_F77=
13156   hardcode_libdir_separator_F77=
13157   hardcode_direct_F77=no
13158   hardcode_minus_L_F77=no
13159   hardcode_shlibpath_var_F77=unsupported
13160   link_all_deplibs_F77=unknown
13161   hardcode_automatic_F77=no
13162   module_cmds_F77=
13163   module_expsym_cmds_F77=
13164   always_export_symbols_F77=no
13165   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13166   # include_expsyms should be a list of space-separated symbols to be *always*
13167   # included in the symbol list
13168   include_expsyms_F77=
13169   # exclude_expsyms can be an extended regexp of symbols to exclude
13170   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13171   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13172   # as well as any symbol that contains `d'.
13173   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13174   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13175   # platforms (ab)use it in PIC code, but their linkers get confused if
13176   # the symbol is explicitly referenced.  Since portable code cannot
13177   # rely on this symbol name, it's probably fine to never include it in
13178   # preloaded symbol tables.
13179   extract_expsyms_cmds=
13180
13181   case $host_os in
13182   cygwin* | mingw* | pw32*)
13183     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13184     # When not using gcc, we currently assume that we are using
13185     # Microsoft Visual C++.
13186     if test "$GCC" != yes; then
13187       with_gnu_ld=no
13188     fi
13189     ;;
13190   openbsd*)
13191     with_gnu_ld=no
13192     ;;
13193   esac
13194
13195   ld_shlibs_F77=yes
13196   if test "$with_gnu_ld" = yes; then
13197     # If archive_cmds runs LD, not CC, wlarc should be empty
13198     wlarc='${wl}'
13199
13200     # See if GNU ld supports shared libraries.
13201     case $host_os in
13202     aix3* | aix4* | aix5*)
13203       # On AIX/PPC, the GNU linker is very broken
13204       if test "$host_cpu" != ia64; then
13205         ld_shlibs_F77=no
13206         cat <<EOF 1>&2
13207
13208 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13209 *** to be unable to reliably create shared libraries on AIX.
13210 *** Therefore, libtool is disabling shared libraries support.  If you
13211 *** really care for shared libraries, you may want to modify your PATH
13212 *** so that a non-GNU linker is found, and then restart.
13213
13214 EOF
13215       fi
13216       ;;
13217
13218     amigaos*)
13219       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)'
13220       hardcode_libdir_flag_spec_F77='-L$libdir'
13221       hardcode_minus_L_F77=yes
13222
13223       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13224       # that the semantics of dynamic libraries on AmigaOS, at least up
13225       # to version 4, is to share data among multiple programs linked
13226       # with the same dynamic library.  Since this doesn't match the
13227       # behavior of shared libraries on other platforms, we can't use
13228       # them.
13229       ld_shlibs_F77=no
13230       ;;
13231
13232     beos*)
13233       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13234         allow_undefined_flag_F77=unsupported
13235         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13236         # support --undefined.  This deserves some investigation.  FIXME
13237         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13238       else
13239         ld_shlibs_F77=no
13240       fi
13241       ;;
13242
13243     cygwin* | mingw* | pw32*)
13244       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13245       # as there is no search path for DLLs.
13246       hardcode_libdir_flag_spec_F77='-L$libdir'
13247       allow_undefined_flag_F77=unsupported
13248       always_export_symbols_F77=no
13249       enable_shared_with_static_runtimes_F77=yes
13250       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13251
13252       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13253         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13254         # If the export-symbols file already is a .def file (1st line
13255         # is EXPORTS), use it as is; otherwise, prepend...
13256         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13257           cp $export_symbols $output_objdir/$soname.def;
13258         else
13259           echo EXPORTS > $output_objdir/$soname.def;
13260           cat $export_symbols >> $output_objdir/$soname.def;
13261         fi~
13262         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13263       else
13264         ld_shlibs=no
13265       fi
13266       ;;
13267
13268     netbsd*)
13269       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13270         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13271         wlarc=
13272       else
13273         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13274         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13275       fi
13276       ;;
13277
13278     solaris* | sysv5*)
13279       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13280         ld_shlibs_F77=no
13281         cat <<EOF 1>&2
13282
13283 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13284 *** create shared libraries on Solaris systems.  Therefore, libtool
13285 *** is disabling shared libraries support.  We urge you to upgrade GNU
13286 *** binutils to release 2.9.1 or newer.  Another option is to modify
13287 *** your PATH or compiler configuration so that the native linker is
13288 *** used, and then restart.
13289
13290 EOF
13291       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13292         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13293         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13294       else
13295         ld_shlibs_F77=no
13296       fi
13297       ;;
13298
13299     sunos4*)
13300       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13301       wlarc=
13302       hardcode_direct_F77=yes
13303       hardcode_shlibpath_var_F77=no
13304       ;;
13305
13306     *)
13307       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13308         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13309         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13310       else
13311         ld_shlibs_F77=no
13312       fi
13313       ;;
13314     esac
13315
13316     if test "$ld_shlibs_F77" = yes; then
13317       runpath_var=LD_RUN_PATH
13318       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13319       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13320       # ancient GNU ld didn't support --whole-archive et. al.
13321       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13322         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13323       else
13324         whole_archive_flag_spec_F77=
13325       fi
13326     fi
13327   else
13328     # PORTME fill in a description of your system's linker (not GNU ld)
13329     case $host_os in
13330     aix3*)
13331       allow_undefined_flag_F77=unsupported
13332       always_export_symbols_F77=yes
13333       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'
13334       # Note: this linker hardcodes the directories in LIBPATH if there
13335       # are no directories specified by -L.
13336       hardcode_minus_L_F77=yes
13337       if test "$GCC" = yes && test -z "$link_static_flag"; then
13338         # Neither direct hardcoding nor static linking is supported with a
13339         # broken collect2.
13340         hardcode_direct_F77=unsupported
13341       fi
13342       ;;
13343
13344     aix4* | aix5*)
13345       if test "$host_cpu" = ia64; then
13346         # On IA64, the linker does run time linking by default, so we don't
13347         # have to do anything special.
13348         aix_use_runtimelinking=no
13349         exp_sym_flag='-Bexport'
13350         no_entry_flag=""
13351       else
13352         # If we're using GNU nm, then we don't want the "-C" option.
13353         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13354         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13355           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'
13356         else
13357           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'
13358         fi
13359         aix_use_runtimelinking=no
13360
13361         # Test if we are trying to use run time linking or normal
13362         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13363         # need to do runtime linking.
13364         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13365           for ld_flag in $LDFLAGS; do
13366           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13367             aix_use_runtimelinking=yes
13368             break
13369           fi
13370           done
13371         esac
13372
13373         exp_sym_flag='-bexport'
13374         no_entry_flag='-bnoentry'
13375       fi
13376
13377       # When large executables or shared objects are built, AIX ld can
13378       # have problems creating the table of contents.  If linking a library
13379       # or program results in "error TOC overflow" add -mminimal-toc to
13380       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13381       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13382
13383       archive_cmds_F77=''
13384       hardcode_direct_F77=yes
13385       hardcode_libdir_separator_F77=':'
13386       link_all_deplibs_F77=yes
13387
13388       if test "$GCC" = yes; then
13389         case $host_os in aix4.012|aix4.012.*)
13390         # We only want to do this on AIX 4.2 and lower, the check
13391         # below for broken collect2 doesn't work under 4.3+
13392           collect2name=`${CC} -print-prog-name=collect2`
13393           if test -f "$collect2name" && \
13394            strings "$collect2name" | grep resolve_lib_name >/dev/null
13395           then
13396           # We have reworked collect2
13397           hardcode_direct_F77=yes
13398           else
13399           # We have old collect2
13400           hardcode_direct_F77=unsupported
13401           # It fails to find uninstalled libraries when the uninstalled
13402           # path is not listed in the libpath.  Setting hardcode_minus_L
13403           # to unsupported forces relinking
13404           hardcode_minus_L_F77=yes
13405           hardcode_libdir_flag_spec_F77='-L$libdir'
13406           hardcode_libdir_separator_F77=
13407           fi
13408         esac
13409         shared_flag='-shared'
13410       else
13411         # not using gcc
13412         if test "$host_cpu" = ia64; then
13413         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13414         # chokes on -Wl,-G. The following line is correct:
13415           shared_flag='-G'
13416         else
13417         if test "$aix_use_runtimelinking" = yes; then
13418             shared_flag='${wl}-G'
13419           else
13420             shared_flag='${wl}-bM:SRE'
13421         fi
13422         fi
13423       fi
13424
13425       # It seems that -bexpall does not export symbols beginning with
13426       # underscore (_), so it is better to generate a list of symbols to export.
13427       always_export_symbols_F77=yes
13428       if test "$aix_use_runtimelinking" = yes; then
13429         # Warning - without using the other runtime loading flags (-brtl),
13430         # -berok will link without error, but may produce a broken library.
13431         allow_undefined_flag_F77='-berok'
13432        # Determine the default libpath from the value encoded in an empty executable.
13433        cat >conftest.$ac_ext <<_ACEOF
13434       program main
13435
13436       end
13437 _ACEOF
13438 rm -f conftest.$ac_objext conftest$ac_exeext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13440   (eval $ac_link) 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); } &&
13444          { ac_try='test -s conftest$ac_exeext'
13445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446   (eval $ac_try) 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); }; }; then
13450
13451 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13452 }'`
13453 # Check for a 64-bit object if we didn't find anything.
13454 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; }
13455 }'`; fi
13456 else
13457   echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460 fi
13461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13463
13464        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13465         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"
13466        else
13467         if test "$host_cpu" = ia64; then
13468           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13469           allow_undefined_flag_F77="-z nodefs"
13470           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"
13471         else
13472          # Determine the default libpath from the value encoded in an empty executable.
13473          cat >conftest.$ac_ext <<_ACEOF
13474       program main
13475
13476       end
13477 _ACEOF
13478 rm -f conftest.$ac_objext conftest$ac_exeext
13479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13480   (eval $ac_link) 2>&5
13481   ac_status=$?
13482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); } &&
13484          { ac_try='test -s conftest$ac_exeext'
13485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486   (eval $ac_try) 2>&5
13487   ac_status=$?
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); }; }; then
13490
13491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13492 }'`
13493 # Check for a 64-bit object if we didn't find anything.
13494 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; }
13495 }'`; fi
13496 else
13497   echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13499
13500 fi
13501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13503
13504          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13505           # Warning - without using the other run time loading flags,
13506           # -berok will link without error, but may produce a broken library.
13507           no_undefined_flag_F77=' ${wl}-bernotok'
13508           allow_undefined_flag_F77=' ${wl}-berok'
13509           # -bexpall does not export symbols beginning with underscore (_)
13510           always_export_symbols_F77=yes
13511           # Exported symbols can be pulled into shared objects from archives
13512           whole_archive_flag_spec_F77=' '
13513           archive_cmds_need_lc_F77=yes
13514           # This is similar to how AIX traditionally builds it's shared libraries.
13515           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'
13516         fi
13517       fi
13518       ;;
13519
13520     amigaos*)
13521       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)'
13522       hardcode_libdir_flag_spec_F77='-L$libdir'
13523       hardcode_minus_L_F77=yes
13524       # see comment about different semantics on the GNU ld section
13525       ld_shlibs_F77=no
13526       ;;
13527
13528     bsdi4*)
13529       export_dynamic_flag_spec_F77=-rdynamic
13530       ;;
13531
13532     cygwin* | mingw* | pw32*)
13533       # When not using gcc, we currently assume that we are using
13534       # Microsoft Visual C++.
13535       # hardcode_libdir_flag_spec is actually meaningless, as there is
13536       # no search path for DLLs.
13537       hardcode_libdir_flag_spec_F77=' '
13538       allow_undefined_flag_F77=unsupported
13539       # Tell ltmain to make .lib files, not .a files.
13540       libext=lib
13541       # Tell ltmain to make .dll files, not .so files.
13542       shrext=".dll"
13543       # FIXME: Setting linknames here is a bad hack.
13544       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13545       # The linker will automatically build a .lib file if we build a DLL.
13546       old_archive_From_new_cmds_F77='true'
13547       # FIXME: Should let the user specify the lib program.
13548       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13549       fix_srcfile_path='`cygpath -w "$srcfile"`'
13550       enable_shared_with_static_runtimes_F77=yes
13551       ;;
13552
13553     darwin* | rhapsody*)
13554     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13555       archive_cmds_need_lc_F77=no
13556       case "$host_os" in
13557       rhapsody* | darwin1.[012])
13558         allow_undefined_flag_F77='-undefined suppress'
13559         ;;
13560       *) # Darwin 1.3 on
13561         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13562         ;;
13563       esac
13564       # FIXME: Relying on posixy $() will cause problems for
13565       #        cross-compilation, but unfortunately the echo tests do not
13566       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13567       #        `"' quotes if we put them in here... so don't!
13568         lt_int_apple_cc_single_mod=no
13569         output_verbose_link_cmd='echo'
13570         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13571           lt_int_apple_cc_single_mod=yes
13572         fi
13573         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13574           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13575         else
13576         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'
13577       fi
13578       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13579       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13580         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13581           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}'
13582         else
13583           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}'
13584         fi
13585           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}'
13586       hardcode_direct_F77=no
13587       hardcode_automatic_F77=yes
13588       hardcode_shlibpath_var_F77=unsupported
13589       whole_archive_flag_spec_F77='-all_load $convenience'
13590       link_all_deplibs_F77=yes
13591     fi
13592       ;;
13593
13594     dgux*)
13595       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13596       hardcode_libdir_flag_spec_F77='-L$libdir'
13597       hardcode_shlibpath_var_F77=no
13598       ;;
13599
13600     freebsd1*)
13601       ld_shlibs_F77=no
13602       ;;
13603
13604     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13605     # support.  Future versions do this automatically, but an explicit c++rt0.o
13606     # does not break anything, and helps significantly (at the cost of a little
13607     # extra space).
13608     freebsd2.2*)
13609       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13610       hardcode_libdir_flag_spec_F77='-R$libdir'
13611       hardcode_direct_F77=yes
13612       hardcode_shlibpath_var_F77=no
13613       ;;
13614
13615     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13616     freebsd2*)
13617       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13618       hardcode_direct_F77=yes
13619       hardcode_minus_L_F77=yes
13620       hardcode_shlibpath_var_F77=no
13621       ;;
13622
13623     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13624     freebsd*)
13625       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13626       hardcode_libdir_flag_spec_F77='-R$libdir'
13627       hardcode_direct_F77=yes
13628       hardcode_shlibpath_var_F77=no
13629       ;;
13630
13631     hpux9*)
13632       if test "$GCC" = yes; then
13633         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'
13634       else
13635         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'
13636       fi
13637       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13638       hardcode_libdir_separator_F77=:
13639       hardcode_direct_F77=yes
13640
13641       # hardcode_minus_L: Not really in the search PATH,
13642       # but as the default location of the library.
13643       hardcode_minus_L_F77=yes
13644       export_dynamic_flag_spec_F77='${wl}-E'
13645       ;;
13646
13647     hpux10* | hpux11*)
13648       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13649         case "$host_cpu" in
13650         hppa*64*|ia64*)
13651           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13652           ;;
13653         *)
13654           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13655           ;;
13656         esac
13657       else
13658         case "$host_cpu" in
13659         hppa*64*|ia64*)
13660           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13661           ;;
13662         *)
13663           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13664           ;;
13665         esac
13666       fi
13667       if test "$with_gnu_ld" = no; then
13668         case "$host_cpu" in
13669         hppa*64*)
13670           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13671           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13672           hardcode_libdir_separator_F77=:
13673           hardcode_direct_F77=no
13674           hardcode_shlibpath_var_F77=no
13675           ;;
13676         ia64*)
13677           hardcode_libdir_flag_spec_F77='-L$libdir'
13678           hardcode_direct_F77=no
13679           hardcode_shlibpath_var_F77=no
13680
13681           # hardcode_minus_L: Not really in the search PATH,
13682           # but as the default location of the library.
13683           hardcode_minus_L_F77=yes
13684           ;;
13685         *)
13686           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13687           hardcode_libdir_separator_F77=:
13688           hardcode_direct_F77=yes
13689           export_dynamic_flag_spec_F77='${wl}-E'
13690
13691           # hardcode_minus_L: Not really in the search PATH,
13692           # but as the default location of the library.
13693           hardcode_minus_L_F77=yes
13694           ;;
13695         esac
13696       fi
13697       ;;
13698
13699     irix5* | irix6* | nonstopux*)
13700       if test "$GCC" = yes; then
13701         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'
13702       else
13703         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'
13704         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13705       fi
13706       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13707       hardcode_libdir_separator_F77=:
13708       link_all_deplibs_F77=yes
13709       ;;
13710
13711     netbsd*)
13712       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13713         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13714       else
13715         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13716       fi
13717       hardcode_libdir_flag_spec_F77='-R$libdir'
13718       hardcode_direct_F77=yes
13719       hardcode_shlibpath_var_F77=no
13720       ;;
13721
13722     newsos6)
13723       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13724       hardcode_direct_F77=yes
13725       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13726       hardcode_libdir_separator_F77=:
13727       hardcode_shlibpath_var_F77=no
13728       ;;
13729
13730     openbsd*)
13731       hardcode_direct_F77=yes
13732       hardcode_shlibpath_var_F77=no
13733       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13734         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13735         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13736         export_dynamic_flag_spec_F77='${wl}-E'
13737       else
13738        case $host_os in
13739          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13740            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13741            hardcode_libdir_flag_spec_F77='-R$libdir'
13742            ;;
13743          *)
13744            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13745            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13746            ;;
13747        esac
13748       fi
13749       ;;
13750
13751     os2*)
13752       hardcode_libdir_flag_spec_F77='-L$libdir'
13753       hardcode_minus_L_F77=yes
13754       allow_undefined_flag_F77=unsupported
13755       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'
13756       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13757       ;;
13758
13759     osf3*)
13760       if test "$GCC" = yes; then
13761         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13762         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'
13763       else
13764         allow_undefined_flag_F77=' -expect_unresolved \*'
13765         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'
13766       fi
13767       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13768       hardcode_libdir_separator_F77=:
13769       ;;
13770
13771     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13772       if test "$GCC" = yes; then
13773         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13774         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'
13775         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13776       else
13777         allow_undefined_flag_F77=' -expect_unresolved \*'
13778         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'
13779         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~
13780         $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'
13781
13782         # Both c and cxx compiler support -rpath directly
13783         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13784       fi
13785       hardcode_libdir_separator_F77=:
13786       ;;
13787
13788     sco3.2v5*)
13789       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13790       hardcode_shlibpath_var_F77=no
13791       export_dynamic_flag_spec_F77='${wl}-Bexport'
13792       runpath_var=LD_RUN_PATH
13793       hardcode_runpath_var=yes
13794       ;;
13795
13796     solaris*)
13797       no_undefined_flag_F77=' -z text'
13798       if test "$GCC" = yes; then
13799         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13800         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13801           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13802       else
13803         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13804         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13805         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13806       fi
13807       hardcode_libdir_flag_spec_F77='-R$libdir'
13808       hardcode_shlibpath_var_F77=no
13809       case $host_os in
13810       solaris2.[0-5] | solaris2.[0-5].*) ;;
13811       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13812         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13813       esac
13814       link_all_deplibs_F77=yes
13815       ;;
13816
13817     sunos4*)
13818       if test "x$host_vendor" = xsequent; then
13819         # Use $CC to link under sequent, because it throws in some extra .o
13820         # files that make .init and .fini sections work.
13821         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13822       else
13823         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13824       fi
13825       hardcode_libdir_flag_spec_F77='-L$libdir'
13826       hardcode_direct_F77=yes
13827       hardcode_minus_L_F77=yes
13828       hardcode_shlibpath_var_F77=no
13829       ;;
13830
13831     sysv4)
13832       case $host_vendor in
13833         sni)
13834           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13835           hardcode_direct_F77=yes # is this really true???
13836         ;;
13837         siemens)
13838           ## LD is ld it makes a PLAMLIB
13839           ## CC just makes a GrossModule.
13840           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13841           reload_cmds_F77='$CC -r -o $output$reload_objs'
13842           hardcode_direct_F77=no
13843         ;;
13844         motorola)
13845           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13847         ;;
13848       esac
13849       runpath_var='LD_RUN_PATH'
13850       hardcode_shlibpath_var_F77=no
13851       ;;
13852
13853     sysv4.3*)
13854       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13855       hardcode_shlibpath_var_F77=no
13856       export_dynamic_flag_spec_F77='-Bexport'
13857       ;;
13858
13859     sysv4*MP*)
13860       if test -d /usr/nec; then
13861         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13862         hardcode_shlibpath_var_F77=no
13863         runpath_var=LD_RUN_PATH
13864         hardcode_runpath_var=yes
13865         ld_shlibs_F77=yes
13866       fi
13867       ;;
13868
13869     sysv4.2uw2*)
13870       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13871       hardcode_direct_F77=yes
13872       hardcode_minus_L_F77=no
13873       hardcode_shlibpath_var_F77=no
13874       hardcode_runpath_var=yes
13875       runpath_var=LD_RUN_PATH
13876       ;;
13877
13878    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13879       no_undefined_flag_F77='${wl}-z ${wl}text'
13880       if test "$GCC" = yes; then
13881         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13882       else
13883         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13884       fi
13885       runpath_var='LD_RUN_PATH'
13886       hardcode_shlibpath_var_F77=no
13887       ;;
13888
13889     sysv5*)
13890       no_undefined_flag_F77=' -z text'
13891       # $CC -shared without GNU ld will not create a library from C++
13892       # object files and a static libstdc++, better avoid it by now
13893       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13894       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13895                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13896       hardcode_libdir_flag_spec_F77=
13897       hardcode_shlibpath_var_F77=no
13898       runpath_var='LD_RUN_PATH'
13899       ;;
13900
13901     uts4*)
13902       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13903       hardcode_libdir_flag_spec_F77='-L$libdir'
13904       hardcode_shlibpath_var_F77=no
13905       ;;
13906
13907     *)
13908       ld_shlibs_F77=no
13909       ;;
13910     esac
13911   fi
13912
13913 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13914 echo "${ECHO_T}$ld_shlibs_F77" >&6
13915 test "$ld_shlibs_F77" = no && can_build_shared=no
13916
13917 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13918 if test "$GCC" = yes; then
13919   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13920 fi
13921
13922 #
13923 # Do we need to explicitly link libc?
13924 #
13925 case "x$archive_cmds_need_lc_F77" in
13926 x|xyes)
13927   # Assume -lc should be added
13928   archive_cmds_need_lc_F77=yes
13929
13930   if test "$enable_shared" = yes && test "$GCC" = yes; then
13931     case $archive_cmds_F77 in
13932     *'~'*)
13933       # FIXME: we may have to deal with multi-command sequences.
13934       ;;
13935     '$CC '*)
13936       # Test whether the compiler implicitly links with -lc since on some
13937       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13938       # to ld, don't add -lc before -lgcc.
13939       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13940 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13941       $rm conftest*
13942       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13943
13944       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945   (eval $ac_compile) 2>&5
13946   ac_status=$?
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); } 2>conftest.err; then
13949         soname=conftest
13950         lib=conftest
13951         libobjs=conftest.$ac_objext
13952         deplibs=
13953         wl=$lt_prog_compiler_wl_F77
13954         compiler_flags=-v
13955         linker_flags=-v
13956         verstring=
13957         output_objdir=.
13958         libname=conftest
13959         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13960         allow_undefined_flag_F77=
13961         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13962   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); }
13966         then
13967           archive_cmds_need_lc_F77=no
13968         else
13969           archive_cmds_need_lc_F77=yes
13970         fi
13971         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13972       else
13973         cat conftest.err 1>&5
13974       fi
13975       $rm conftest*
13976       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13977 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13978       ;;
13979     esac
13980   fi
13981   ;;
13982 esac
13983
13984 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13985 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13986 hardcode_action_F77=
13987 if test -n "$hardcode_libdir_flag_spec_F77" || \
13988    test -n "$runpath_var F77" || \
13989    test "X$hardcode_automatic_F77"="Xyes" ; then
13990
13991   # We can hardcode non-existant directories.
13992   if test "$hardcode_direct_F77" != no &&
13993      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13994      # have to relink, otherwise we might link with an installed library
13995      # when we should be linking with a yet-to-be-installed one
13996      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13997      test "$hardcode_minus_L_F77" != no; then
13998     # Linking always hardcodes the temporary library directory.
13999     hardcode_action_F77=relink
14000   else
14001     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14002     hardcode_action_F77=immediate
14003   fi
14004 else
14005   # We cannot hardcode anything, or else we can only hardcode existing
14006   # directories.
14007   hardcode_action_F77=unsupported
14008 fi
14009 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14010 echo "${ECHO_T}$hardcode_action_F77" >&6
14011
14012 if test "$hardcode_action_F77" = relink; then
14013   # Fast installation is not supported
14014   enable_fast_install=no
14015 elif test "$shlibpath_overrides_runpath" = yes ||
14016      test "$enable_shared" = no; then
14017   # Fast installation is not necessary
14018   enable_fast_install=needless
14019 fi
14020
14021 striplib=
14022 old_striplib=
14023 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14024 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14025 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14026   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14027   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14028   echo "$as_me:$LINENO: result: yes" >&5
14029 echo "${ECHO_T}yes" >&6
14030 else
14031 # FIXME - insert some real tests, host_os isn't really good enough
14032   case $host_os in
14033    darwin*)
14034        if test -n "$STRIP" ; then
14035          striplib="$STRIP -x"
14036          echo "$as_me:$LINENO: result: yes" >&5
14037 echo "${ECHO_T}yes" >&6
14038        else
14039   echo "$as_me:$LINENO: result: no" >&5
14040 echo "${ECHO_T}no" >&6
14041 fi
14042        ;;
14043    *)
14044   echo "$as_me:$LINENO: result: no" >&5
14045 echo "${ECHO_T}no" >&6
14046     ;;
14047   esac
14048 fi
14049
14050 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14051 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14052 library_names_spec=
14053 libname_spec='lib$name'
14054 soname_spec=
14055 shrext=".so"
14056 postinstall_cmds=
14057 postuninstall_cmds=
14058 finish_cmds=
14059 finish_eval=
14060 shlibpath_var=
14061 shlibpath_overrides_runpath=unknown
14062 version_type=none
14063 dynamic_linker="$host_os ld.so"
14064 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14065 if test "$GCC" = yes; then
14066   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14067   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14068     # if the path contains ";" then we assume it to be the separator
14069     # otherwise default to the standard path separator (i.e. ":") - it is
14070     # assumed that no part of a normal pathname contains ";" but that should
14071     # okay in the real world where ";" in dirpaths is itself problematic.
14072     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14073   else
14074     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14075   fi
14076 else
14077   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14078 fi
14079 need_lib_prefix=unknown
14080 hardcode_into_libs=no
14081
14082 # when you set need_version to no, make sure it does not cause -set_version
14083 # flags to be left without arguments
14084 need_version=unknown
14085
14086 case $host_os in
14087 aix3*)
14088   version_type=linux
14089   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14090   shlibpath_var=LIBPATH
14091
14092   # AIX 3 has no versioning support, so we append a major version to the name.
14093   soname_spec='${libname}${release}${shared_ext}$major'
14094   ;;
14095
14096 aix4* | aix5*)
14097   version_type=linux
14098   need_lib_prefix=no
14099   need_version=no
14100   hardcode_into_libs=yes
14101   if test "$host_cpu" = ia64; then
14102     # AIX 5 supports IA64
14103     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14104     shlibpath_var=LD_LIBRARY_PATH
14105   else
14106     # With GCC up to 2.95.x, collect2 would create an import file
14107     # for dependence libraries.  The import file would start with
14108     # the line `#! .'.  This would cause the generated library to
14109     # depend on `.', always an invalid library.  This was fixed in
14110     # development snapshots of GCC prior to 3.0.
14111     case $host_os in
14112       aix4 | aix4.[01] | aix4.[01].*)
14113       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14114            echo ' yes '
14115            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14116         :
14117       else
14118         can_build_shared=no
14119       fi
14120       ;;
14121     esac
14122     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14123     # soname into executable. Probably we can add versioning support to
14124     # collect2, so additional links can be useful in future.
14125     if test "$aix_use_runtimelinking" = yes; then
14126       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14127       # instead of lib<name>.a to let people know that these are not
14128       # typical AIX shared libraries.
14129       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14130     else
14131       # We preserve .a as extension for shared libraries through AIX4.2
14132       # and later when we are not doing run time linking.
14133       library_names_spec='${libname}${release}.a $libname.a'
14134       soname_spec='${libname}${release}${shared_ext}$major'
14135     fi
14136     shlibpath_var=LIBPATH
14137   fi
14138   ;;
14139
14140 amigaos*)
14141   library_names_spec='$libname.ixlibrary $libname.a'
14142   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14143   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'
14144   ;;
14145
14146 beos*)
14147   library_names_spec='${libname}${shared_ext}'
14148   dynamic_linker="$host_os ld.so"
14149   shlibpath_var=LIBRARY_PATH
14150   ;;
14151
14152 bsdi4*)
14153   version_type=linux
14154   need_version=no
14155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14156   soname_spec='${libname}${release}${shared_ext}$major'
14157   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14158   shlibpath_var=LD_LIBRARY_PATH
14159   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14160   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14161   # the default ld.so.conf also contains /usr/contrib/lib and
14162   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14163   # libtool to hard-code these into programs
14164   ;;
14165
14166 cygwin* | mingw* | pw32*)
14167   version_type=windows
14168   shrext=".dll"
14169   need_version=no
14170   need_lib_prefix=no
14171
14172   case $GCC,$host_os in
14173   yes,cygwin* | yes,mingw* | yes,pw32*)
14174     library_names_spec='$libname.dll.a'
14175     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14176     postinstall_cmds='base_file=`basename \${file}`~
14177       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14178       dldir=$destdir/`dirname \$dlpath`~
14179       test -d \$dldir || mkdir -p \$dldir~
14180       $install_prog $dir/$dlname \$dldir/$dlname'
14181     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14182       dlpath=$dir/\$dldll~
14183        $rm \$dlpath'
14184     shlibpath_overrides_runpath=yes
14185
14186     case $host_os in
14187     cygwin*)
14188       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14189       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14190       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14191       ;;
14192     mingw*)
14193       # MinGW DLLs use traditional 'lib' prefix
14194       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14195       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14196       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14197         # It is most probably a Windows format PATH printed by
14198         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14199         # path with ; separators, and with drive letters. We can handle the
14200         # drive letters (cygwin fileutils understands them), so leave them,
14201         # especially as we might pass files found there to a mingw objdump,
14202         # which wouldn't understand a cygwinified path. Ahh.
14203         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14204       else
14205         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14206       fi
14207       ;;
14208     pw32*)
14209       # pw32 DLLs use 'pw' prefix rather than 'lib'
14210       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14211       ;;
14212     esac
14213     ;;
14214
14215   *)
14216     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14217     ;;
14218   esac
14219   dynamic_linker='Win32 ld.exe'
14220   # FIXME: first we should search . and the directory the executable is in
14221   shlibpath_var=PATH
14222   ;;
14223
14224 darwin* | rhapsody*)
14225   dynamic_linker="$host_os dyld"
14226   version_type=darwin
14227   need_lib_prefix=no
14228   need_version=no
14229   # FIXME: Relying on posixy $() will cause problems for
14230   #        cross-compilation, but unfortunately the echo tests do not
14231   #        yet detect zsh echo's removal of \ escapes.
14232   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14233   soname_spec='${libname}${release}${major}$shared_ext'
14234   shlibpath_overrides_runpath=yes
14235   shlibpath_var=DYLD_LIBRARY_PATH
14236   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14237   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14238   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14239   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"`
14240   fi
14241   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14242   ;;
14243
14244 dgux*)
14245   version_type=linux
14246   need_lib_prefix=no
14247   need_version=no
14248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14249   soname_spec='${libname}${release}${shared_ext}$major'
14250   shlibpath_var=LD_LIBRARY_PATH
14251   ;;
14252
14253 freebsd1*)
14254   dynamic_linker=no
14255   ;;
14256
14257 freebsd*)
14258   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14259   version_type=freebsd-$objformat
14260   case $version_type in
14261     freebsd-elf*)
14262       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14263       need_version=no
14264       need_lib_prefix=no
14265       ;;
14266     freebsd-*)
14267       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14268       need_version=yes
14269       ;;
14270   esac
14271   shlibpath_var=LD_LIBRARY_PATH
14272   case $host_os in
14273   freebsd2*)
14274     shlibpath_overrides_runpath=yes
14275     ;;
14276   freebsd3.01* | freebsdelf3.01*)
14277     shlibpath_overrides_runpath=yes
14278     hardcode_into_libs=yes
14279     ;;
14280   *) # from 3.2 on
14281     shlibpath_overrides_runpath=no
14282     hardcode_into_libs=yes
14283     ;;
14284   esac
14285   ;;
14286
14287 gnu*)
14288   version_type=linux
14289   need_lib_prefix=no
14290   need_version=no
14291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14292   soname_spec='${libname}${release}${shared_ext}$major'
14293   shlibpath_var=LD_LIBRARY_PATH
14294   hardcode_into_libs=yes
14295   ;;
14296
14297 hpux9* | hpux10* | hpux11*)
14298   # Give a soname corresponding to the major version so that dld.sl refuses to
14299   # link against other versions.
14300   version_type=sunos
14301   need_lib_prefix=no
14302   need_version=no
14303   case "$host_cpu" in
14304   ia64*)
14305     shrext='.so'
14306     hardcode_into_libs=yes
14307     dynamic_linker="$host_os dld.so"
14308     shlibpath_var=LD_LIBRARY_PATH
14309     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14311     soname_spec='${libname}${release}${shared_ext}$major'
14312     if test "X$HPUX_IA64_MODE" = X32; then
14313       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14314     else
14315       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14316     fi
14317     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14318     ;;
14319    hppa*64*)
14320      shrext='.sl'
14321      hardcode_into_libs=yes
14322      dynamic_linker="$host_os dld.sl"
14323      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14324      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14325      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14326      soname_spec='${libname}${release}${shared_ext}$major'
14327      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14328      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14329      ;;
14330    *)
14331     shrext='.sl'
14332     dynamic_linker="$host_os dld.sl"
14333     shlibpath_var=SHLIB_PATH
14334     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14336     soname_spec='${libname}${release}${shared_ext}$major'
14337     ;;
14338   esac
14339   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14340   postinstall_cmds='chmod 555 $lib'
14341   ;;
14342
14343 irix5* | irix6* | nonstopux*)
14344   case $host_os in
14345     nonstopux*) version_type=nonstopux ;;
14346     *)
14347         if test "$lt_cv_prog_gnu_ld" = yes; then
14348                 version_type=linux
14349         else
14350                 version_type=irix
14351         fi ;;
14352   esac
14353   need_lib_prefix=no
14354   need_version=no
14355   soname_spec='${libname}${release}${shared_ext}$major'
14356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14357   case $host_os in
14358   irix5* | nonstopux*)
14359     libsuff= shlibsuff=
14360     ;;
14361   *)
14362     case $LD in # libtool.m4 will add one of these switches to LD
14363     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14364       libsuff= shlibsuff= libmagic=32-bit;;
14365     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14366       libsuff=32 shlibsuff=N32 libmagic=N32;;
14367     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14368       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14369     *) libsuff= shlibsuff= libmagic=never-match;;
14370     esac
14371     ;;
14372   esac
14373   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14374   shlibpath_overrides_runpath=no
14375   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14376   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14377   hardcode_into_libs=yes
14378   ;;
14379
14380 # No shared lib support for Linux oldld, aout, or coff.
14381 linux*oldld* | linux*aout* | linux*coff*)
14382   dynamic_linker=no
14383   ;;
14384
14385 # This must be Linux ELF.
14386 linux*)
14387   version_type=linux
14388   need_lib_prefix=no
14389   need_version=no
14390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391   soname_spec='${libname}${release}${shared_ext}$major'
14392   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14393   shlibpath_var=LD_LIBRARY_PATH
14394   shlibpath_overrides_runpath=no
14395   # This implies no fast_install, which is unacceptable.
14396   # Some rework will be needed to allow for fast_install
14397   # before this can be enabled.
14398   hardcode_into_libs=yes
14399
14400   # We used to test for /lib/ld.so.1 and disable shared libraries on
14401   # powerpc, because MkLinux only supported shared libraries with the
14402   # GNU dynamic linker.  Since this was broken with cross compilers,
14403   # most powerpc-linux boxes support dynamic linking these days and
14404   # people can always --disable-shared, the test was removed, and we
14405   # assume the GNU/Linux dynamic linker is in use.
14406   dynamic_linker='GNU/Linux ld.so'
14407   ;;
14408
14409 netbsd*)
14410   version_type=sunos
14411   need_lib_prefix=no
14412   need_version=no
14413   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14414     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14415     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14416     dynamic_linker='NetBSD (a.out) ld.so'
14417   else
14418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14419     soname_spec='${libname}${release}${shared_ext}$major'
14420     dynamic_linker='NetBSD ld.elf_so'
14421   fi
14422   shlibpath_var=LD_LIBRARY_PATH
14423   shlibpath_overrides_runpath=yes
14424   hardcode_into_libs=yes
14425   ;;
14426
14427 newsos6)
14428   version_type=linux
14429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14430   shlibpath_var=LD_LIBRARY_PATH
14431   shlibpath_overrides_runpath=yes
14432   ;;
14433
14434 nto-qnx)
14435   version_type=linux
14436   need_lib_prefix=no
14437   need_version=no
14438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439   soname_spec='${libname}${release}${shared_ext}$major'
14440   shlibpath_var=LD_LIBRARY_PATH
14441   shlibpath_overrides_runpath=yes
14442   ;;
14443
14444 openbsd*)
14445   version_type=sunos
14446   need_lib_prefix=no
14447   need_version=no
14448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14449   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14450   shlibpath_var=LD_LIBRARY_PATH
14451   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14452     case $host_os in
14453       openbsd2.[89] | openbsd2.[89].*)
14454         shlibpath_overrides_runpath=no
14455         ;;
14456       *)
14457         shlibpath_overrides_runpath=yes
14458         ;;
14459       esac
14460   else
14461     shlibpath_overrides_runpath=yes
14462   fi
14463   ;;
14464
14465 os2*)
14466   libname_spec='$name'
14467   shrext=".dll"
14468   need_lib_prefix=no
14469   library_names_spec='$libname${shared_ext} $libname.a'
14470   dynamic_linker='OS/2 ld.exe'
14471   shlibpath_var=LIBPATH
14472   ;;
14473
14474 osf3* | osf4* | osf5*)
14475   version_type=osf
14476   need_lib_prefix=no
14477   need_version=no
14478   soname_spec='${libname}${release}${shared_ext}$major'
14479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14480   shlibpath_var=LD_LIBRARY_PATH
14481   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14482   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14483   ;;
14484
14485 sco3.2v5*)
14486   version_type=osf
14487   soname_spec='${libname}${release}${shared_ext}$major'
14488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489   shlibpath_var=LD_LIBRARY_PATH
14490   ;;
14491
14492 solaris*)
14493   version_type=linux
14494   need_lib_prefix=no
14495   need_version=no
14496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497   soname_spec='${libname}${release}${shared_ext}$major'
14498   shlibpath_var=LD_LIBRARY_PATH
14499   shlibpath_overrides_runpath=yes
14500   hardcode_into_libs=yes
14501   # ldd complains unless libraries are executable
14502   postinstall_cmds='chmod +x $lib'
14503   ;;
14504
14505 sunos4*)
14506   version_type=sunos
14507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14508   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14509   shlibpath_var=LD_LIBRARY_PATH
14510   shlibpath_overrides_runpath=yes
14511   if test "$with_gnu_ld" = yes; then
14512     need_lib_prefix=no
14513   fi
14514   need_version=yes
14515   ;;
14516
14517 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14518   version_type=linux
14519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520   soname_spec='${libname}${release}${shared_ext}$major'
14521   shlibpath_var=LD_LIBRARY_PATH
14522   case $host_vendor in
14523     sni)
14524       shlibpath_overrides_runpath=no
14525       need_lib_prefix=no
14526       export_dynamic_flag_spec='${wl}-Blargedynsym'
14527       runpath_var=LD_RUN_PATH
14528       ;;
14529     siemens)
14530       need_lib_prefix=no
14531       ;;
14532     motorola)
14533       need_lib_prefix=no
14534       need_version=no
14535       shlibpath_overrides_runpath=no
14536       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14537       ;;
14538   esac
14539   ;;
14540
14541 sysv4*MP*)
14542   if test -d /usr/nec ;then
14543     version_type=linux
14544     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14545     soname_spec='$libname${shared_ext}.$major'
14546     shlibpath_var=LD_LIBRARY_PATH
14547   fi
14548   ;;
14549
14550 uts4*)
14551   version_type=linux
14552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553   soname_spec='${libname}${release}${shared_ext}$major'
14554   shlibpath_var=LD_LIBRARY_PATH
14555   ;;
14556
14557 *)
14558   dynamic_linker=no
14559   ;;
14560 esac
14561 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14562 echo "${ECHO_T}$dynamic_linker" >&6
14563 test "$dynamic_linker" = no && can_build_shared=no
14564
14565
14566 # The else clause should only fire when bootstrapping the
14567 # libtool distribution, otherwise you forgot to ship ltmain.sh
14568 # with your package, and you will get complaints that there are
14569 # no rules to generate ltmain.sh.
14570 if test -f "$ltmain"; then
14571   # See if we are running on zsh, and set the options which allow our commands through
14572   # without removal of \ escapes.
14573   if test -n "${ZSH_VERSION+set}" ; then
14574     setopt NO_GLOB_SUBST
14575   fi
14576   # Now quote all the things that may contain metacharacters while being
14577   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14578   # variables and quote the copies for generation of the libtool script.
14579   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14580     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14581     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14582     deplibs_check_method reload_flag reload_cmds need_locks \
14583     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14584     lt_cv_sys_global_symbol_to_c_name_address \
14585     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14586     old_postinstall_cmds old_postuninstall_cmds \
14587     compiler_F77 \
14588     CC_F77 \
14589     LD_F77 \
14590     lt_prog_compiler_wl_F77 \
14591     lt_prog_compiler_pic_F77 \
14592     lt_prog_compiler_static_F77 \
14593     lt_prog_compiler_no_builtin_flag_F77 \
14594     export_dynamic_flag_spec_F77 \
14595     thread_safe_flag_spec_F77 \
14596     whole_archive_flag_spec_F77 \
14597     enable_shared_with_static_runtimes_F77 \
14598     old_archive_cmds_F77 \
14599     old_archive_from_new_cmds_F77 \
14600     predep_objects_F77 \
14601     postdep_objects_F77 \
14602     predeps_F77 \
14603     postdeps_F77 \
14604     compiler_lib_search_path_F77 \
14605     archive_cmds_F77 \
14606     archive_expsym_cmds_F77 \
14607     postinstall_cmds_F77 \
14608     postuninstall_cmds_F77 \
14609     old_archive_from_expsyms_cmds_F77 \
14610     allow_undefined_flag_F77 \
14611     no_undefined_flag_F77 \
14612     export_symbols_cmds_F77 \
14613     hardcode_libdir_flag_spec_F77 \
14614     hardcode_libdir_flag_spec_ld_F77 \
14615     hardcode_libdir_separator_F77 \
14616     hardcode_automatic_F77 \
14617     module_cmds_F77 \
14618     module_expsym_cmds_F77 \
14619     lt_cv_prog_compiler_c_o_F77 \
14620     exclude_expsyms_F77 \
14621     include_expsyms_F77; do
14622
14623     case $var in
14624     old_archive_cmds_F77 | \
14625     old_archive_from_new_cmds_F77 | \
14626     archive_cmds_F77 | \
14627     archive_expsym_cmds_F77 | \
14628     module_cmds_F77 | \
14629     module_expsym_cmds_F77 | \
14630     old_archive_from_expsyms_cmds_F77 | \
14631     export_symbols_cmds_F77 | \
14632     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14633     postinstall_cmds | postuninstall_cmds | \
14634     old_postinstall_cmds | old_postuninstall_cmds | \
14635     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14636       # Double-quote double-evaled strings.
14637       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14638       ;;
14639     *)
14640       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14641       ;;
14642     esac
14643   done
14644
14645   case $lt_echo in
14646   *'\$0 --fallback-echo"')
14647     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14648     ;;
14649   esac
14650
14651 cfgfile="$ofile"
14652
14653   cat <<__EOF__ >> "$cfgfile"
14654 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14655
14656 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14657
14658 # Shell to use when invoking shell scripts.
14659 SHELL=$lt_SHELL
14660
14661 # Whether or not to build shared libraries.
14662 build_libtool_libs=$enable_shared
14663
14664 # Whether or not to build static libraries.
14665 build_old_libs=$enable_static
14666
14667 # Whether or not to add -lc for building shared libraries.
14668 build_libtool_need_lc=$archive_cmds_need_lc_F77
14669
14670 # Whether or not to disallow shared libs when runtime libs are static
14671 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14672
14673 # Whether or not to optimize for fast installation.
14674 fast_install=$enable_fast_install
14675
14676 # The host system.
14677 host_alias=$host_alias
14678 host=$host
14679
14680 # An echo program that does not interpret backslashes.
14681 echo=$lt_echo
14682
14683 # The archiver.
14684 AR=$lt_AR
14685 AR_FLAGS=$lt_AR_FLAGS
14686
14687 # A C compiler.
14688 LTCC=$lt_LTCC
14689
14690 # A language-specific compiler.
14691 CC=$lt_compiler_F77
14692
14693 # Is the compiler the GNU C compiler?
14694 with_gcc=$GCC_F77
14695
14696 # An ERE matcher.
14697 EGREP=$lt_EGREP
14698
14699 # The linker used to build libraries.
14700 LD=$lt_LD_F77
14701
14702 # Whether we need hard or soft links.
14703 LN_S=$lt_LN_S
14704
14705 # A BSD-compatible nm program.
14706 NM=$lt_NM
14707
14708 # A symbol stripping program
14709 STRIP=$STRIP
14710
14711 # Used to examine libraries when file_magic_cmd begins "file"
14712 MAGIC_CMD=$MAGIC_CMD
14713
14714 # Used on cygwin: DLL creation program.
14715 DLLTOOL="$DLLTOOL"
14716
14717 # Used on cygwin: object dumper.
14718 OBJDUMP="$OBJDUMP"
14719
14720 # Used on cygwin: assembler.
14721 AS="$AS"
14722
14723 # The name of the directory that contains temporary libtool files.
14724 objdir=$objdir
14725
14726 # How to create reloadable object files.
14727 reload_flag=$lt_reload_flag
14728 reload_cmds=$lt_reload_cmds
14729
14730 # How to pass a linker flag through the compiler.
14731 wl=$lt_lt_prog_compiler_wl_F77
14732
14733 # Object file suffix (normally "o").
14734 objext="$ac_objext"
14735
14736 # Old archive suffix (normally "a").
14737 libext="$libext"
14738
14739 # Shared library suffix (normally ".so").
14740 shrext='$shrext'
14741
14742 # Executable file suffix (normally "").
14743 exeext="$exeext"
14744
14745 # Additional compiler flags for building library objects.
14746 pic_flag=$lt_lt_prog_compiler_pic_F77
14747 pic_mode=$pic_mode
14748
14749 # What is the maximum length of a command?
14750 max_cmd_len=$lt_cv_sys_max_cmd_len
14751
14752 # Does compiler simultaneously support -c and -o options?
14753 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14754
14755 # Must we lock files when doing compilation ?
14756 need_locks=$lt_need_locks
14757
14758 # Do we need the lib prefix for modules?
14759 need_lib_prefix=$need_lib_prefix
14760
14761 # Do we need a version for libraries?
14762 need_version=$need_version
14763
14764 # Whether dlopen is supported.
14765 dlopen_support=$enable_dlopen
14766
14767 # Whether dlopen of programs is supported.
14768 dlopen_self=$enable_dlopen_self
14769
14770 # Whether dlopen of statically linked programs is supported.
14771 dlopen_self_static=$enable_dlopen_self_static
14772
14773 # Compiler flag to prevent dynamic linking.
14774 link_static_flag=$lt_lt_prog_compiler_static_F77
14775
14776 # Compiler flag to turn off builtin functions.
14777 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14778
14779 # Compiler flag to allow reflexive dlopens.
14780 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14781
14782 # Compiler flag to generate shared objects directly from archives.
14783 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14784
14785 # Compiler flag to generate thread-safe objects.
14786 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14787
14788 # Library versioning type.
14789 version_type=$version_type
14790
14791 # Format of library name prefix.
14792 libname_spec=$lt_libname_spec
14793
14794 # List of archive names.  First name is the real one, the rest are links.
14795 # The last name is the one that the linker finds with -lNAME.
14796 library_names_spec=$lt_library_names_spec
14797
14798 # The coded name of the library, if different from the real name.
14799 soname_spec=$lt_soname_spec
14800
14801 # Commands used to build and install an old-style archive.
14802 RANLIB=$lt_RANLIB
14803 old_archive_cmds=$lt_old_archive_cmds_F77
14804 old_postinstall_cmds=$lt_old_postinstall_cmds
14805 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14806
14807 # Create an old-style archive from a shared archive.
14808 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14809
14810 # Create a temporary old-style archive to link instead of a shared archive.
14811 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14812
14813 # Commands used to build and install a shared archive.
14814 archive_cmds=$lt_archive_cmds_F77
14815 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14816 postinstall_cmds=$lt_postinstall_cmds
14817 postuninstall_cmds=$lt_postuninstall_cmds
14818
14819 # Commands used to build a loadable module (assumed same as above if empty)
14820 module_cmds=$lt_module_cmds_F77
14821 module_expsym_cmds=$lt_module_expsym_cmds_F77
14822
14823 # Commands to strip libraries.
14824 old_striplib=$lt_old_striplib
14825 striplib=$lt_striplib
14826
14827 # Dependencies to place before the objects being linked to create a
14828 # shared library.
14829 predep_objects=$lt_predep_objects_F77
14830
14831 # Dependencies to place after the objects being linked to create a
14832 # shared library.
14833 postdep_objects=$lt_postdep_objects_F77
14834
14835 # Dependencies to place before the objects being linked to create a
14836 # shared library.
14837 predeps=$lt_predeps_F77
14838
14839 # Dependencies to place after the objects being linked to create a
14840 # shared library.
14841 postdeps=$lt_postdeps_F77
14842
14843 # The library search path used internally by the compiler when linking
14844 # a shared library.
14845 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14846
14847 # Method to check whether dependent libraries are shared objects.
14848 deplibs_check_method=$lt_deplibs_check_method
14849
14850 # Command to use when deplibs_check_method == file_magic.
14851 file_magic_cmd=$lt_file_magic_cmd
14852
14853 # Flag that allows shared libraries with undefined symbols to be built.
14854 allow_undefined_flag=$lt_allow_undefined_flag_F77
14855
14856 # Flag that forces no undefined symbols.
14857 no_undefined_flag=$lt_no_undefined_flag_F77
14858
14859 # Commands used to finish a libtool library installation in a directory.
14860 finish_cmds=$lt_finish_cmds
14861
14862 # Same as above, but a single script fragment to be evaled but not shown.
14863 finish_eval=$lt_finish_eval
14864
14865 # Take the output of nm and produce a listing of raw symbols and C names.
14866 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14867
14868 # Transform the output of nm in a proper C declaration
14869 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14870
14871 # Transform the output of nm in a C name address pair
14872 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14873
14874 # This is the shared library runtime path variable.
14875 runpath_var=$runpath_var
14876
14877 # This is the shared library path variable.
14878 shlibpath_var=$shlibpath_var
14879
14880 # Is shlibpath searched before the hard-coded library search path?
14881 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14882
14883 # How to hardcode a shared library path into an executable.
14884 hardcode_action=$hardcode_action_F77
14885
14886 # Whether we should hardcode library paths into libraries.
14887 hardcode_into_libs=$hardcode_into_libs
14888
14889 # Flag to hardcode \$libdir into a binary during linking.
14890 # This must work even if \$libdir does not exist.
14891 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14892
14893 # If ld is used when linking, flag to hardcode \$libdir into
14894 # a binary during linking. This must work even if \$libdir does
14895 # not exist.
14896 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14897
14898 # Whether we need a single -rpath flag with a separated argument.
14899 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14900
14901 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14902 # resulting binary.
14903 hardcode_direct=$hardcode_direct_F77
14904
14905 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14906 # resulting binary.
14907 hardcode_minus_L=$hardcode_minus_L_F77
14908
14909 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14910 # the resulting binary.
14911 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14912
14913 # Set to yes if building a shared library automatically hardcodes DIR into the library
14914 # and all subsequent libraries and executables linked against it.
14915 hardcode_automatic=$hardcode_automatic_F77
14916
14917 # Variables whose values should be saved in libtool wrapper scripts and
14918 # restored at relink time.
14919 variables_saved_for_relink="$variables_saved_for_relink"
14920
14921 # Whether libtool must link a program against all its dependency libraries.
14922 link_all_deplibs=$link_all_deplibs_F77
14923
14924 # Compile-time system search path for libraries
14925 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14926
14927 # Run-time system search path for libraries
14928 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14929
14930 # Fix the shell variable \$srcfile for the compiler.
14931 fix_srcfile_path="$fix_srcfile_path_F77"
14932
14933 # Set to yes if exported symbols are required.
14934 always_export_symbols=$always_export_symbols_F77
14935
14936 # The commands to list exported symbols.
14937 export_symbols_cmds=$lt_export_symbols_cmds_F77
14938
14939 # The commands to extract the exported symbol list from a shared archive.
14940 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14941
14942 # Symbols that should not be listed in the preloaded symbols.
14943 exclude_expsyms=$lt_exclude_expsyms_F77
14944
14945 # Symbols that must always be exported.
14946 include_expsyms=$lt_include_expsyms_F77
14947
14948 # ### END LIBTOOL TAG CONFIG: $tagname
14949
14950 __EOF__
14951
14952
14953 else
14954   # If there is no Makefile yet, we rely on a make rule to execute
14955   # `config.status --recheck' to rerun these tests and create the
14956   # libtool script then.
14957   test -f Makefile && make "$ltmain"
14958 fi
14959
14960
14961 ac_ext=c
14962 ac_cpp='$CPP $CPPFLAGS'
14963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14966
14967 CC="$lt_save_CC"
14968
14969         else
14970           tagname=""
14971         fi
14972         ;;
14973
14974       GCJ)
14975         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14976
14977
14978
14979 # Source file extension for Java test sources.
14980 ac_ext=java
14981
14982 # Object file extension for compiled Java test sources.
14983 objext=o
14984 objext_GCJ=$objext
14985
14986 # Code to be used in simple compile tests
14987 lt_simple_compile_test_code="class foo {}\n"
14988
14989 # Code to be used in simple link tests
14990 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14991
14992 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14993
14994 # If no C compiler was specified, use CC.
14995 LTCC=${LTCC-"$CC"}
14996
14997 # Allow CC to be a program name with arguments.
14998 compiler=$CC
14999
15000
15001 # Allow CC to be a program name with arguments.
15002 lt_save_CC="$CC"
15003 CC=${GCJ-"gcj"}
15004 compiler=$CC
15005 compiler_GCJ=$CC
15006
15007 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15008 archive_cmds_need_lc_GCJ=no
15009
15010 ## CAVEAT EMPTOR:
15011 ## There is no encapsulation within the following macros, do not change
15012 ## the running order or otherwise move them around unless you know exactly
15013 ## what you are doing...
15014
15015 lt_prog_compiler_no_builtin_flag_GCJ=
15016
15017 if test "$GCC" = yes; then
15018   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15019
15020   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15021 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15022 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15023   echo $ECHO_N "(cached) $ECHO_C" >&6
15024 else
15025   lt_cv_prog_compiler_rtti_exceptions=no
15026   ac_outfile=conftest.$ac_objext
15027    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15028    lt_compiler_flag="-fno-rtti -fno-exceptions"
15029    # Insert the option either (1) after the last *FLAGS variable, or
15030    # (2) before a word containing "conftest.", or (3) at the end.
15031    # Note that $ac_compile itself does not contain backslashes and begins
15032    # with a dollar sign (not a hyphen), so the echo should work correctly.
15033    # The option is referenced via a variable to avoid confusing sed.
15034    lt_compile=`echo "$ac_compile" | $SED \
15035    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15036    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15037    -e 's:$: $lt_compiler_flag:'`
15038    (eval echo "\"\$as_me:15038: $lt_compile\"" >&5)
15039    (eval "$lt_compile" 2>conftest.err)
15040    ac_status=$?
15041    cat conftest.err >&5
15042    echo "$as_me:15042: \$? = $ac_status" >&5
15043    if (exit $ac_status) && test -s "$ac_outfile"; then
15044      # The compiler can only warn and ignore the option if not recognized
15045      # So say no if there are warnings
15046      if test ! -s conftest.err; then
15047        lt_cv_prog_compiler_rtti_exceptions=yes
15048      fi
15049    fi
15050    $rm conftest*
15051
15052 fi
15053 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15054 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15055
15056 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15057     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15058 else
15059     :
15060 fi
15061
15062 fi
15063
15064 lt_prog_compiler_wl_GCJ=
15065 lt_prog_compiler_pic_GCJ=
15066 lt_prog_compiler_static_GCJ=
15067
15068 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15069 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15070
15071   if test "$GCC" = yes; then
15072     lt_prog_compiler_wl_GCJ='-Wl,'
15073     lt_prog_compiler_static_GCJ='-static'
15074
15075     case $host_os in
15076       aix*)
15077       # All AIX code is PIC.
15078       if test "$host_cpu" = ia64; then
15079         # AIX 5 now supports IA64 processor
15080         lt_prog_compiler_static_GCJ='-Bstatic'
15081       fi
15082       ;;
15083
15084     amigaos*)
15085       # FIXME: we need at least 68020 code to build shared libraries, but
15086       # adding the `-m68020' flag to GCC prevents building anything better,
15087       # like `-m68040'.
15088       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15089       ;;
15090
15091     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15092       # PIC is the default for these OSes.
15093       ;;
15094
15095     mingw* | pw32* | os2*)
15096       # This hack is so that the source file can tell whether it is being
15097       # built for inclusion in a dll (and should export symbols for example).
15098       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15099       ;;
15100
15101     darwin* | rhapsody*)
15102       # PIC is the default on this platform
15103       # Common symbols not allowed in MH_DYLIB files
15104       lt_prog_compiler_pic_GCJ='-fno-common'
15105       ;;
15106
15107     msdosdjgpp*)
15108       # Just because we use GCC doesn't mean we suddenly get shared libraries
15109       # on systems that don't support them.
15110       lt_prog_compiler_can_build_shared_GCJ=no
15111       enable_shared=no
15112       ;;
15113
15114     sysv4*MP*)
15115       if test -d /usr/nec; then
15116         lt_prog_compiler_pic_GCJ=-Kconform_pic
15117       fi
15118       ;;
15119
15120     hpux*)
15121       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15122       # not for PA HP-UX.
15123       case "$host_cpu" in
15124       hppa*64*|ia64*)
15125         # +Z the default
15126         ;;
15127       *)
15128         lt_prog_compiler_pic_GCJ='-fPIC'
15129         ;;
15130       esac
15131       ;;
15132
15133     *)
15134       lt_prog_compiler_pic_GCJ='-fPIC'
15135       ;;
15136     esac
15137   else
15138     # PORTME Check for flag to pass linker flags through the system compiler.
15139     case $host_os in
15140     aix*)
15141       lt_prog_compiler_wl_GCJ='-Wl,'
15142       if test "$host_cpu" = ia64; then
15143         # AIX 5 now supports IA64 processor
15144         lt_prog_compiler_static_GCJ='-Bstatic'
15145       else
15146         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15147       fi
15148       ;;
15149
15150     mingw* | pw32* | os2*)
15151       # This hack is so that the source file can tell whether it is being
15152       # built for inclusion in a dll (and should export symbols for example).
15153       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15154       ;;
15155
15156     hpux9* | hpux10* | hpux11*)
15157       lt_prog_compiler_wl_GCJ='-Wl,'
15158       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15159       # not for PA HP-UX.
15160       case "$host_cpu" in
15161       hppa*64*|ia64*)
15162         # +Z the default
15163         ;;
15164       *)
15165         lt_prog_compiler_pic_GCJ='+Z'
15166         ;;
15167       esac
15168       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15169       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15170       ;;
15171
15172     irix5* | irix6* | nonstopux*)
15173       lt_prog_compiler_wl_GCJ='-Wl,'
15174       # PIC (with -KPIC) is the default.
15175       lt_prog_compiler_static_GCJ='-non_shared'
15176       ;;
15177
15178     newsos6)
15179       lt_prog_compiler_pic_GCJ='-KPIC'
15180       lt_prog_compiler_static_GCJ='-Bstatic'
15181       ;;
15182
15183     linux*)
15184       case $CC in
15185       icc|ecc)
15186         lt_prog_compiler_wl_GCJ='-Wl,'
15187         lt_prog_compiler_pic_GCJ='-KPIC'
15188         lt_prog_compiler_static_GCJ='-static'
15189         ;;
15190       ccc)
15191         lt_prog_compiler_wl_GCJ='-Wl,'
15192         # All Alpha code is PIC.
15193         lt_prog_compiler_static_GCJ='-non_shared'
15194         ;;
15195       esac
15196       ;;
15197
15198     osf3* | osf4* | osf5*)
15199       lt_prog_compiler_wl_GCJ='-Wl,'
15200       # All OSF/1 code is PIC.
15201       lt_prog_compiler_static_GCJ='-non_shared'
15202       ;;
15203
15204     sco3.2v5*)
15205       lt_prog_compiler_pic_GCJ='-Kpic'
15206       lt_prog_compiler_static_GCJ='-dn'
15207       ;;
15208
15209     solaris*)
15210       lt_prog_compiler_wl_GCJ='-Wl,'
15211       lt_prog_compiler_pic_GCJ='-KPIC'
15212       lt_prog_compiler_static_GCJ='-Bstatic'
15213       ;;
15214
15215     sunos4*)
15216       lt_prog_compiler_wl_GCJ='-Qoption ld '
15217       lt_prog_compiler_pic_GCJ='-PIC'
15218       lt_prog_compiler_static_GCJ='-Bstatic'
15219       ;;
15220
15221     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15222       lt_prog_compiler_wl_GCJ='-Wl,'
15223       lt_prog_compiler_pic_GCJ='-KPIC'
15224       lt_prog_compiler_static_GCJ='-Bstatic'
15225       ;;
15226
15227     sysv4*MP*)
15228       if test -d /usr/nec ;then
15229         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15230         lt_prog_compiler_static_GCJ='-Bstatic'
15231       fi
15232       ;;
15233
15234     uts4*)
15235       lt_prog_compiler_pic_GCJ='-pic'
15236       lt_prog_compiler_static_GCJ='-Bstatic'
15237       ;;
15238
15239     *)
15240       lt_prog_compiler_can_build_shared_GCJ=no
15241       ;;
15242     esac
15243   fi
15244
15245 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15246 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15247
15248 #
15249 # Check to make sure the PIC flag actually works.
15250 #
15251 if test -n "$lt_prog_compiler_pic_GCJ"; then
15252   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15253 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15254 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15255   echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257   lt_prog_compiler_pic_works_GCJ=no
15258   ac_outfile=conftest.$ac_objext
15259    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15260    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15261    # Insert the option either (1) after the last *FLAGS variable, or
15262    # (2) before a word containing "conftest.", or (3) at the end.
15263    # Note that $ac_compile itself does not contain backslashes and begins
15264    # with a dollar sign (not a hyphen), so the echo should work correctly.
15265    # The option is referenced via a variable to avoid confusing sed.
15266    lt_compile=`echo "$ac_compile" | $SED \
15267    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15268    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15269    -e 's:$: $lt_compiler_flag:'`
15270    (eval echo "\"\$as_me:15270: $lt_compile\"" >&5)
15271    (eval "$lt_compile" 2>conftest.err)
15272    ac_status=$?
15273    cat conftest.err >&5
15274    echo "$as_me:15274: \$? = $ac_status" >&5
15275    if (exit $ac_status) && test -s "$ac_outfile"; then
15276      # The compiler can only warn and ignore the option if not recognized
15277      # So say no if there are warnings
15278      if test ! -s conftest.err; then
15279        lt_prog_compiler_pic_works_GCJ=yes
15280      fi
15281    fi
15282    $rm conftest*
15283
15284 fi
15285 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15286 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15287
15288 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15289     case $lt_prog_compiler_pic_GCJ in
15290      "" | " "*) ;;
15291      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15292      esac
15293 else
15294     lt_prog_compiler_pic_GCJ=
15295      lt_prog_compiler_can_build_shared_GCJ=no
15296 fi
15297
15298 fi
15299 case "$host_os" in
15300   # For platforms which do not support PIC, -DPIC is meaningless:
15301   *djgpp*)
15302     lt_prog_compiler_pic_GCJ=
15303     ;;
15304   *)
15305     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15306     ;;
15307 esac
15308
15309 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15310 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15311 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15312   echo $ECHO_N "(cached) $ECHO_C" >&6
15313 else
15314   lt_cv_prog_compiler_c_o_GCJ=no
15315    $rm -r conftest 2>/dev/null
15316    mkdir conftest
15317    cd conftest
15318    mkdir out
15319    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15320
15321    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15322    # that will create temporary files in the current directory regardless of
15323    # the output directory.  Thus, making CWD read-only will cause this test
15324    # to fail, enabling locking or at least warning the user not to do parallel
15325    # builds.
15326    chmod -w .
15327
15328    lt_compiler_flag="-o out/conftest2.$ac_objext"
15329    # Insert the option either (1) after the last *FLAGS variable, or
15330    # (2) before a word containing "conftest.", or (3) at the end.
15331    # Note that $ac_compile itself does not contain backslashes and begins
15332    # with a dollar sign (not a hyphen), so the echo should work correctly.
15333    lt_compile=`echo "$ac_compile" | $SED \
15334    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15335    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15336    -e 's:$: $lt_compiler_flag:'`
15337    (eval echo "\"\$as_me:15337: $lt_compile\"" >&5)
15338    (eval "$lt_compile" 2>out/conftest.err)
15339    ac_status=$?
15340    cat out/conftest.err >&5
15341    echo "$as_me:15341: \$? = $ac_status" >&5
15342    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15343    then
15344      # The compiler can only warn and ignore the option if not recognized
15345      # So say no if there are warnings
15346      if test ! -s out/conftest.err; then
15347        lt_cv_prog_compiler_c_o_GCJ=yes
15348      fi
15349    fi
15350    chmod u+w .
15351    $rm conftest* out/*
15352    rmdir out
15353    cd ..
15354    rmdir conftest
15355    $rm conftest*
15356
15357 fi
15358 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15359 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15360
15361
15362 hard_links="nottested"
15363 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15364   # do not overwrite the value of need_locks provided by the user
15365   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15366 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15367   hard_links=yes
15368   $rm conftest*
15369   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15370   touch conftest.a
15371   ln conftest.a conftest.b 2>&5 || hard_links=no
15372   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15373   echo "$as_me:$LINENO: result: $hard_links" >&5
15374 echo "${ECHO_T}$hard_links" >&6
15375   if test "$hard_links" = no; then
15376     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15377 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15378     need_locks=warn
15379   fi
15380 else
15381   need_locks=no
15382 fi
15383
15384 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15385 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15386
15387   runpath_var=
15388   allow_undefined_flag_GCJ=
15389   enable_shared_with_static_runtimes_GCJ=no
15390   archive_cmds_GCJ=
15391   archive_expsym_cmds_GCJ=
15392   old_archive_From_new_cmds_GCJ=
15393   old_archive_from_expsyms_cmds_GCJ=
15394   export_dynamic_flag_spec_GCJ=
15395   whole_archive_flag_spec_GCJ=
15396   thread_safe_flag_spec_GCJ=
15397   hardcode_libdir_flag_spec_GCJ=
15398   hardcode_libdir_flag_spec_ld_GCJ=
15399   hardcode_libdir_separator_GCJ=
15400   hardcode_direct_GCJ=no
15401   hardcode_minus_L_GCJ=no
15402   hardcode_shlibpath_var_GCJ=unsupported
15403   link_all_deplibs_GCJ=unknown
15404   hardcode_automatic_GCJ=no
15405   module_cmds_GCJ=
15406   module_expsym_cmds_GCJ=
15407   always_export_symbols_GCJ=no
15408   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15409   # include_expsyms should be a list of space-separated symbols to be *always*
15410   # included in the symbol list
15411   include_expsyms_GCJ=
15412   # exclude_expsyms can be an extended regexp of symbols to exclude
15413   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15414   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15415   # as well as any symbol that contains `d'.
15416   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15417   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15418   # platforms (ab)use it in PIC code, but their linkers get confused if
15419   # the symbol is explicitly referenced.  Since portable code cannot
15420   # rely on this symbol name, it's probably fine to never include it in
15421   # preloaded symbol tables.
15422   extract_expsyms_cmds=
15423
15424   case $host_os in
15425   cygwin* | mingw* | pw32*)
15426     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15427     # When not using gcc, we currently assume that we are using
15428     # Microsoft Visual C++.
15429     if test "$GCC" != yes; then
15430       with_gnu_ld=no
15431     fi
15432     ;;
15433   openbsd*)
15434     with_gnu_ld=no
15435     ;;
15436   esac
15437
15438   ld_shlibs_GCJ=yes
15439   if test "$with_gnu_ld" = yes; then
15440     # If archive_cmds runs LD, not CC, wlarc should be empty
15441     wlarc='${wl}'
15442
15443     # See if GNU ld supports shared libraries.
15444     case $host_os in
15445     aix3* | aix4* | aix5*)
15446       # On AIX/PPC, the GNU linker is very broken
15447       if test "$host_cpu" != ia64; then
15448         ld_shlibs_GCJ=no
15449         cat <<EOF 1>&2
15450
15451 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15452 *** to be unable to reliably create shared libraries on AIX.
15453 *** Therefore, libtool is disabling shared libraries support.  If you
15454 *** really care for shared libraries, you may want to modify your PATH
15455 *** so that a non-GNU linker is found, and then restart.
15456
15457 EOF
15458       fi
15459       ;;
15460
15461     amigaos*)
15462       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)'
15463       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15464       hardcode_minus_L_GCJ=yes
15465
15466       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15467       # that the semantics of dynamic libraries on AmigaOS, at least up
15468       # to version 4, is to share data among multiple programs linked
15469       # with the same dynamic library.  Since this doesn't match the
15470       # behavior of shared libraries on other platforms, we can't use
15471       # them.
15472       ld_shlibs_GCJ=no
15473       ;;
15474
15475     beos*)
15476       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15477         allow_undefined_flag_GCJ=unsupported
15478         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15479         # support --undefined.  This deserves some investigation.  FIXME
15480         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15481       else
15482         ld_shlibs_GCJ=no
15483       fi
15484       ;;
15485
15486     cygwin* | mingw* | pw32*)
15487       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15488       # as there is no search path for DLLs.
15489       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15490       allow_undefined_flag_GCJ=unsupported
15491       always_export_symbols_GCJ=no
15492       enable_shared_with_static_runtimes_GCJ=yes
15493       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15494
15495       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15496         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15497         # If the export-symbols file already is a .def file (1st line
15498         # is EXPORTS), use it as is; otherwise, prepend...
15499         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15500           cp $export_symbols $output_objdir/$soname.def;
15501         else
15502           echo EXPORTS > $output_objdir/$soname.def;
15503           cat $export_symbols >> $output_objdir/$soname.def;
15504         fi~
15505         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15506       else
15507         ld_shlibs=no
15508       fi
15509       ;;
15510
15511     netbsd*)
15512       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15513         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15514         wlarc=
15515       else
15516         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15517         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15518       fi
15519       ;;
15520
15521     solaris* | sysv5*)
15522       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15523         ld_shlibs_GCJ=no
15524         cat <<EOF 1>&2
15525
15526 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15527 *** create shared libraries on Solaris systems.  Therefore, libtool
15528 *** is disabling shared libraries support.  We urge you to upgrade GNU
15529 *** binutils to release 2.9.1 or newer.  Another option is to modify
15530 *** your PATH or compiler configuration so that the native linker is
15531 *** used, and then restart.
15532
15533 EOF
15534       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15535         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15536         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15537       else
15538         ld_shlibs_GCJ=no
15539       fi
15540       ;;
15541
15542     sunos4*)
15543       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15544       wlarc=
15545       hardcode_direct_GCJ=yes
15546       hardcode_shlibpath_var_GCJ=no
15547       ;;
15548
15549     *)
15550       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15551         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15552         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15553       else
15554         ld_shlibs_GCJ=no
15555       fi
15556       ;;
15557     esac
15558
15559     if test "$ld_shlibs_GCJ" = yes; then
15560       runpath_var=LD_RUN_PATH
15561       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15562       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15563       # ancient GNU ld didn't support --whole-archive et. al.
15564       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15565         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15566       else
15567         whole_archive_flag_spec_GCJ=
15568       fi
15569     fi
15570   else
15571     # PORTME fill in a description of your system's linker (not GNU ld)
15572     case $host_os in
15573     aix3*)
15574       allow_undefined_flag_GCJ=unsupported
15575       always_export_symbols_GCJ=yes
15576       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'
15577       # Note: this linker hardcodes the directories in LIBPATH if there
15578       # are no directories specified by -L.
15579       hardcode_minus_L_GCJ=yes
15580       if test "$GCC" = yes && test -z "$link_static_flag"; then
15581         # Neither direct hardcoding nor static linking is supported with a
15582         # broken collect2.
15583         hardcode_direct_GCJ=unsupported
15584       fi
15585       ;;
15586
15587     aix4* | aix5*)
15588       if test "$host_cpu" = ia64; then
15589         # On IA64, the linker does run time linking by default, so we don't
15590         # have to do anything special.
15591         aix_use_runtimelinking=no
15592         exp_sym_flag='-Bexport'
15593         no_entry_flag=""
15594       else
15595         # If we're using GNU nm, then we don't want the "-C" option.
15596         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15597         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15598           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'
15599         else
15600           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'
15601         fi
15602         aix_use_runtimelinking=no
15603
15604         # Test if we are trying to use run time linking or normal
15605         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15606         # need to do runtime linking.
15607         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15608           for ld_flag in $LDFLAGS; do
15609           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15610             aix_use_runtimelinking=yes
15611             break
15612           fi
15613           done
15614         esac
15615
15616         exp_sym_flag='-bexport'
15617         no_entry_flag='-bnoentry'
15618       fi
15619
15620       # When large executables or shared objects are built, AIX ld can
15621       # have problems creating the table of contents.  If linking a library
15622       # or program results in "error TOC overflow" add -mminimal-toc to
15623       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15624       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15625
15626       archive_cmds_GCJ=''
15627       hardcode_direct_GCJ=yes
15628       hardcode_libdir_separator_GCJ=':'
15629       link_all_deplibs_GCJ=yes
15630
15631       if test "$GCC" = yes; then
15632         case $host_os in aix4.012|aix4.012.*)
15633         # We only want to do this on AIX 4.2 and lower, the check
15634         # below for broken collect2 doesn't work under 4.3+
15635           collect2name=`${CC} -print-prog-name=collect2`
15636           if test -f "$collect2name" && \
15637            strings "$collect2name" | grep resolve_lib_name >/dev/null
15638           then
15639           # We have reworked collect2
15640           hardcode_direct_GCJ=yes
15641           else
15642           # We have old collect2
15643           hardcode_direct_GCJ=unsupported
15644           # It fails to find uninstalled libraries when the uninstalled
15645           # path is not listed in the libpath.  Setting hardcode_minus_L
15646           # to unsupported forces relinking
15647           hardcode_minus_L_GCJ=yes
15648           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15649           hardcode_libdir_separator_GCJ=
15650           fi
15651         esac
15652         shared_flag='-shared'
15653       else
15654         # not using gcc
15655         if test "$host_cpu" = ia64; then
15656         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15657         # chokes on -Wl,-G. The following line is correct:
15658           shared_flag='-G'
15659         else
15660         if test "$aix_use_runtimelinking" = yes; then
15661             shared_flag='${wl}-G'
15662           else
15663             shared_flag='${wl}-bM:SRE'
15664         fi
15665         fi
15666       fi
15667
15668       # It seems that -bexpall does not export symbols beginning with
15669       # underscore (_), so it is better to generate a list of symbols to export.
15670       always_export_symbols_GCJ=yes
15671       if test "$aix_use_runtimelinking" = yes; then
15672         # Warning - without using the other runtime loading flags (-brtl),
15673         # -berok will link without error, but may produce a broken library.
15674         allow_undefined_flag_GCJ='-berok'
15675        # Determine the default libpath from the value encoded in an empty executable.
15676        cat >conftest.$ac_ext <<_ACEOF
15677 #line $LINENO "configure"
15678 /* confdefs.h.  */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h.  */
15683
15684 int
15685 main ()
15686 {
15687
15688   ;
15689   return 0;
15690 }
15691 _ACEOF
15692 rm -f conftest.$ac_objext conftest$ac_exeext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15694   (eval $ac_link) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); } &&
15698          { ac_try='test -s conftest$ac_exeext'
15699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700   (eval $ac_try) 2>&5
15701   ac_status=$?
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); }; }; then
15704
15705 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15706 }'`
15707 # Check for a 64-bit object if we didn't find anything.
15708 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; }
15709 }'`; fi
15710 else
15711   echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15713
15714 fi
15715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15717
15718        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15719         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"
15720        else
15721         if test "$host_cpu" = ia64; then
15722           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15723           allow_undefined_flag_GCJ="-z nodefs"
15724           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"
15725         else
15726          # Determine the default libpath from the value encoded in an empty executable.
15727          cat >conftest.$ac_ext <<_ACEOF
15728 #line $LINENO "configure"
15729 /* confdefs.h.  */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h.  */
15734
15735 int
15736 main ()
15737 {
15738
15739   ;
15740   return 0;
15741 }
15742 _ACEOF
15743 rm -f conftest.$ac_objext conftest$ac_exeext
15744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15745   (eval $ac_link) 2>&5
15746   ac_status=$?
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); } &&
15749          { ac_try='test -s conftest$ac_exeext'
15750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751   (eval $ac_try) 2>&5
15752   ac_status=$?
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); }; }; then
15755
15756 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15757 }'`
15758 # Check for a 64-bit object if we didn't find anything.
15759 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; }
15760 }'`; fi
15761 else
15762   echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15764
15765 fi
15766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15768
15769          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15770           # Warning - without using the other run time loading flags,
15771           # -berok will link without error, but may produce a broken library.
15772           no_undefined_flag_GCJ=' ${wl}-bernotok'
15773           allow_undefined_flag_GCJ=' ${wl}-berok'
15774           # -bexpall does not export symbols beginning with underscore (_)
15775           always_export_symbols_GCJ=yes
15776           # Exported symbols can be pulled into shared objects from archives
15777           whole_archive_flag_spec_GCJ=' '
15778           archive_cmds_need_lc_GCJ=yes
15779           # This is similar to how AIX traditionally builds it's shared libraries.
15780           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'
15781         fi
15782       fi
15783       ;;
15784
15785     amigaos*)
15786       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)'
15787       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15788       hardcode_minus_L_GCJ=yes
15789       # see comment about different semantics on the GNU ld section
15790       ld_shlibs_GCJ=no
15791       ;;
15792
15793     bsdi4*)
15794       export_dynamic_flag_spec_GCJ=-rdynamic
15795       ;;
15796
15797     cygwin* | mingw* | pw32*)
15798       # When not using gcc, we currently assume that we are using
15799       # Microsoft Visual C++.
15800       # hardcode_libdir_flag_spec is actually meaningless, as there is
15801       # no search path for DLLs.
15802       hardcode_libdir_flag_spec_GCJ=' '
15803       allow_undefined_flag_GCJ=unsupported
15804       # Tell ltmain to make .lib files, not .a files.
15805       libext=lib
15806       # Tell ltmain to make .dll files, not .so files.
15807       shrext=".dll"
15808       # FIXME: Setting linknames here is a bad hack.
15809       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15810       # The linker will automatically build a .lib file if we build a DLL.
15811       old_archive_From_new_cmds_GCJ='true'
15812       # FIXME: Should let the user specify the lib program.
15813       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15814       fix_srcfile_path='`cygpath -w "$srcfile"`'
15815       enable_shared_with_static_runtimes_GCJ=yes
15816       ;;
15817
15818     darwin* | rhapsody*)
15819     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15820       archive_cmds_need_lc_GCJ=no
15821       case "$host_os" in
15822       rhapsody* | darwin1.[012])
15823         allow_undefined_flag_GCJ='-undefined suppress'
15824         ;;
15825       *) # Darwin 1.3 on
15826         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15827         ;;
15828       esac
15829       # FIXME: Relying on posixy $() will cause problems for
15830       #        cross-compilation, but unfortunately the echo tests do not
15831       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15832       #        `"' quotes if we put them in here... so don't!
15833         lt_int_apple_cc_single_mod=no
15834         output_verbose_link_cmd='echo'
15835         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15836           lt_int_apple_cc_single_mod=yes
15837         fi
15838         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15839           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15840         else
15841         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'
15842       fi
15843       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15844       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15845         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15846           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}'
15847         else
15848           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}'
15849         fi
15850           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}'
15851       hardcode_direct_GCJ=no
15852       hardcode_automatic_GCJ=yes
15853       hardcode_shlibpath_var_GCJ=unsupported
15854       whole_archive_flag_spec_GCJ='-all_load $convenience'
15855       link_all_deplibs_GCJ=yes
15856     fi
15857       ;;
15858
15859     dgux*)
15860       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15861       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15862       hardcode_shlibpath_var_GCJ=no
15863       ;;
15864
15865     freebsd1*)
15866       ld_shlibs_GCJ=no
15867       ;;
15868
15869     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15870     # support.  Future versions do this automatically, but an explicit c++rt0.o
15871     # does not break anything, and helps significantly (at the cost of a little
15872     # extra space).
15873     freebsd2.2*)
15874       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15875       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15876       hardcode_direct_GCJ=yes
15877       hardcode_shlibpath_var_GCJ=no
15878       ;;
15879
15880     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15881     freebsd2*)
15882       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15883       hardcode_direct_GCJ=yes
15884       hardcode_minus_L_GCJ=yes
15885       hardcode_shlibpath_var_GCJ=no
15886       ;;
15887
15888     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15889     freebsd*)
15890       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15891       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15892       hardcode_direct_GCJ=yes
15893       hardcode_shlibpath_var_GCJ=no
15894       ;;
15895
15896     hpux9*)
15897       if test "$GCC" = yes; then
15898         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'
15899       else
15900         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'
15901       fi
15902       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15903       hardcode_libdir_separator_GCJ=:
15904       hardcode_direct_GCJ=yes
15905
15906       # hardcode_minus_L: Not really in the search PATH,
15907       # but as the default location of the library.
15908       hardcode_minus_L_GCJ=yes
15909       export_dynamic_flag_spec_GCJ='${wl}-E'
15910       ;;
15911
15912     hpux10* | hpux11*)
15913       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15914         case "$host_cpu" in
15915         hppa*64*|ia64*)
15916           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15917           ;;
15918         *)
15919           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15920           ;;
15921         esac
15922       else
15923         case "$host_cpu" in
15924         hppa*64*|ia64*)
15925           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15926           ;;
15927         *)
15928           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15929           ;;
15930         esac
15931       fi
15932       if test "$with_gnu_ld" = no; then
15933         case "$host_cpu" in
15934         hppa*64*)
15935           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15936           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15937           hardcode_libdir_separator_GCJ=:
15938           hardcode_direct_GCJ=no
15939           hardcode_shlibpath_var_GCJ=no
15940           ;;
15941         ia64*)
15942           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15943           hardcode_direct_GCJ=no
15944           hardcode_shlibpath_var_GCJ=no
15945
15946           # hardcode_minus_L: Not really in the search PATH,
15947           # but as the default location of the library.
15948           hardcode_minus_L_GCJ=yes
15949           ;;
15950         *)
15951           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15952           hardcode_libdir_separator_GCJ=:
15953           hardcode_direct_GCJ=yes
15954           export_dynamic_flag_spec_GCJ='${wl}-E'
15955
15956           # hardcode_minus_L: Not really in the search PATH,
15957           # but as the default location of the library.
15958           hardcode_minus_L_GCJ=yes
15959           ;;
15960         esac
15961       fi
15962       ;;
15963
15964     irix5* | irix6* | nonstopux*)
15965       if test "$GCC" = yes; then
15966         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'
15967       else
15968         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'
15969         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15970       fi
15971       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15972       hardcode_libdir_separator_GCJ=:
15973       link_all_deplibs_GCJ=yes
15974       ;;
15975
15976     netbsd*)
15977       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15978         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15979       else
15980         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15981       fi
15982       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15983       hardcode_direct_GCJ=yes
15984       hardcode_shlibpath_var_GCJ=no
15985       ;;
15986
15987     newsos6)
15988       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15989       hardcode_direct_GCJ=yes
15990       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15991       hardcode_libdir_separator_GCJ=:
15992       hardcode_shlibpath_var_GCJ=no
15993       ;;
15994
15995     openbsd*)
15996       hardcode_direct_GCJ=yes
15997       hardcode_shlibpath_var_GCJ=no
15998       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15999         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16000         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16001         export_dynamic_flag_spec_GCJ='${wl}-E'
16002       else
16003        case $host_os in
16004          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16005            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16006            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16007            ;;
16008          *)
16009            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16010            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16011            ;;
16012        esac
16013       fi
16014       ;;
16015
16016     os2*)
16017       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16018       hardcode_minus_L_GCJ=yes
16019       allow_undefined_flag_GCJ=unsupported
16020       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'
16021       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16022       ;;
16023
16024     osf3*)
16025       if test "$GCC" = yes; then
16026         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16027         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'
16028       else
16029         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16030         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'
16031       fi
16032       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16033       hardcode_libdir_separator_GCJ=:
16034       ;;
16035
16036     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16037       if test "$GCC" = yes; then
16038         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16039         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'
16040         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16041       else
16042         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16043         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'
16044         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~
16045         $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'
16046
16047         # Both c and cxx compiler support -rpath directly
16048         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16049       fi
16050       hardcode_libdir_separator_GCJ=:
16051       ;;
16052
16053     sco3.2v5*)
16054       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16055       hardcode_shlibpath_var_GCJ=no
16056       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16057       runpath_var=LD_RUN_PATH
16058       hardcode_runpath_var=yes
16059       ;;
16060
16061     solaris*)
16062       no_undefined_flag_GCJ=' -z text'
16063       if test "$GCC" = yes; then
16064         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16065         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16066           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16067       else
16068         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16069         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16070         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16071       fi
16072       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16073       hardcode_shlibpath_var_GCJ=no
16074       case $host_os in
16075       solaris2.[0-5] | solaris2.[0-5].*) ;;
16076       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16077         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16078       esac
16079       link_all_deplibs_GCJ=yes
16080       ;;
16081
16082     sunos4*)
16083       if test "x$host_vendor" = xsequent; then
16084         # Use $CC to link under sequent, because it throws in some extra .o
16085         # files that make .init and .fini sections work.
16086         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16087       else
16088         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16089       fi
16090       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16091       hardcode_direct_GCJ=yes
16092       hardcode_minus_L_GCJ=yes
16093       hardcode_shlibpath_var_GCJ=no
16094       ;;
16095
16096     sysv4)
16097       case $host_vendor in
16098         sni)
16099           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16100           hardcode_direct_GCJ=yes # is this really true???
16101         ;;
16102         siemens)
16103           ## LD is ld it makes a PLAMLIB
16104           ## CC just makes a GrossModule.
16105           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16106           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16107           hardcode_direct_GCJ=no
16108         ;;
16109         motorola)
16110           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16111           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16112         ;;
16113       esac
16114       runpath_var='LD_RUN_PATH'
16115       hardcode_shlibpath_var_GCJ=no
16116       ;;
16117
16118     sysv4.3*)
16119       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16120       hardcode_shlibpath_var_GCJ=no
16121       export_dynamic_flag_spec_GCJ='-Bexport'
16122       ;;
16123
16124     sysv4*MP*)
16125       if test -d /usr/nec; then
16126         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16127         hardcode_shlibpath_var_GCJ=no
16128         runpath_var=LD_RUN_PATH
16129         hardcode_runpath_var=yes
16130         ld_shlibs_GCJ=yes
16131       fi
16132       ;;
16133
16134     sysv4.2uw2*)
16135       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16136       hardcode_direct_GCJ=yes
16137       hardcode_minus_L_GCJ=no
16138       hardcode_shlibpath_var_GCJ=no
16139       hardcode_runpath_var=yes
16140       runpath_var=LD_RUN_PATH
16141       ;;
16142
16143    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16144       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16145       if test "$GCC" = yes; then
16146         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16147       else
16148         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16149       fi
16150       runpath_var='LD_RUN_PATH'
16151       hardcode_shlibpath_var_GCJ=no
16152       ;;
16153
16154     sysv5*)
16155       no_undefined_flag_GCJ=' -z text'
16156       # $CC -shared without GNU ld will not create a library from C++
16157       # object files and a static libstdc++, better avoid it by now
16158       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16159       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16160                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16161       hardcode_libdir_flag_spec_GCJ=
16162       hardcode_shlibpath_var_GCJ=no
16163       runpath_var='LD_RUN_PATH'
16164       ;;
16165
16166     uts4*)
16167       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16168       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16169       hardcode_shlibpath_var_GCJ=no
16170       ;;
16171
16172     *)
16173       ld_shlibs_GCJ=no
16174       ;;
16175     esac
16176   fi
16177
16178 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16179 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16180 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16181
16182 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16183 if test "$GCC" = yes; then
16184   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16185 fi
16186
16187 #
16188 # Do we need to explicitly link libc?
16189 #
16190 case "x$archive_cmds_need_lc_GCJ" in
16191 x|xyes)
16192   # Assume -lc should be added
16193   archive_cmds_need_lc_GCJ=yes
16194
16195   if test "$enable_shared" = yes && test "$GCC" = yes; then
16196     case $archive_cmds_GCJ in
16197     *'~'*)
16198       # FIXME: we may have to deal with multi-command sequences.
16199       ;;
16200     '$CC '*)
16201       # Test whether the compiler implicitly links with -lc since on some
16202       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16203       # to ld, don't add -lc before -lgcc.
16204       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16205 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16206       $rm conftest*
16207       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16208
16209       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210   (eval $ac_compile) 2>&5
16211   ac_status=$?
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); } 2>conftest.err; then
16214         soname=conftest
16215         lib=conftest
16216         libobjs=conftest.$ac_objext
16217         deplibs=
16218         wl=$lt_prog_compiler_wl_GCJ
16219         compiler_flags=-v
16220         linker_flags=-v
16221         verstring=
16222         output_objdir=.
16223         libname=conftest
16224         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16225         allow_undefined_flag_GCJ=
16226         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16227   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); }
16231         then
16232           archive_cmds_need_lc_GCJ=no
16233         else
16234           archive_cmds_need_lc_GCJ=yes
16235         fi
16236         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16237       else
16238         cat conftest.err 1>&5
16239       fi
16240       $rm conftest*
16241       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16242 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16243       ;;
16244     esac
16245   fi
16246   ;;
16247 esac
16248
16249 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16250 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16251 hardcode_action_GCJ=
16252 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16253    test -n "$runpath_var GCJ" || \
16254    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16255
16256   # We can hardcode non-existant directories.
16257   if test "$hardcode_direct_GCJ" != no &&
16258      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16259      # have to relink, otherwise we might link with an installed library
16260      # when we should be linking with a yet-to-be-installed one
16261      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16262      test "$hardcode_minus_L_GCJ" != no; then
16263     # Linking always hardcodes the temporary library directory.
16264     hardcode_action_GCJ=relink
16265   else
16266     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16267     hardcode_action_GCJ=immediate
16268   fi
16269 else
16270   # We cannot hardcode anything, or else we can only hardcode existing
16271   # directories.
16272   hardcode_action_GCJ=unsupported
16273 fi
16274 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16275 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16276
16277 if test "$hardcode_action_GCJ" = relink; then
16278   # Fast installation is not supported
16279   enable_fast_install=no
16280 elif test "$shlibpath_overrides_runpath" = yes ||
16281      test "$enable_shared" = no; then
16282   # Fast installation is not necessary
16283   enable_fast_install=needless
16284 fi
16285
16286 striplib=
16287 old_striplib=
16288 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16289 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16290 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16291   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16292   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16293   echo "$as_me:$LINENO: result: yes" >&5
16294 echo "${ECHO_T}yes" >&6
16295 else
16296 # FIXME - insert some real tests, host_os isn't really good enough
16297   case $host_os in
16298    darwin*)
16299        if test -n "$STRIP" ; then
16300          striplib="$STRIP -x"
16301          echo "$as_me:$LINENO: result: yes" >&5
16302 echo "${ECHO_T}yes" >&6
16303        else
16304   echo "$as_me:$LINENO: result: no" >&5
16305 echo "${ECHO_T}no" >&6
16306 fi
16307        ;;
16308    *)
16309   echo "$as_me:$LINENO: result: no" >&5
16310 echo "${ECHO_T}no" >&6
16311     ;;
16312   esac
16313 fi
16314
16315 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16316 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16317 library_names_spec=
16318 libname_spec='lib$name'
16319 soname_spec=
16320 shrext=".so"
16321 postinstall_cmds=
16322 postuninstall_cmds=
16323 finish_cmds=
16324 finish_eval=
16325 shlibpath_var=
16326 shlibpath_overrides_runpath=unknown
16327 version_type=none
16328 dynamic_linker="$host_os ld.so"
16329 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16330 if test "$GCC" = yes; then
16331   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16332   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16333     # if the path contains ";" then we assume it to be the separator
16334     # otherwise default to the standard path separator (i.e. ":") - it is
16335     # assumed that no part of a normal pathname contains ";" but that should
16336     # okay in the real world where ";" in dirpaths is itself problematic.
16337     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16338   else
16339     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16340   fi
16341 else
16342   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16343 fi
16344 need_lib_prefix=unknown
16345 hardcode_into_libs=no
16346
16347 # when you set need_version to no, make sure it does not cause -set_version
16348 # flags to be left without arguments
16349 need_version=unknown
16350
16351 case $host_os in
16352 aix3*)
16353   version_type=linux
16354   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16355   shlibpath_var=LIBPATH
16356
16357   # AIX 3 has no versioning support, so we append a major version to the name.
16358   soname_spec='${libname}${release}${shared_ext}$major'
16359   ;;
16360
16361 aix4* | aix5*)
16362   version_type=linux
16363   need_lib_prefix=no
16364   need_version=no
16365   hardcode_into_libs=yes
16366   if test "$host_cpu" = ia64; then
16367     # AIX 5 supports IA64
16368     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16369     shlibpath_var=LD_LIBRARY_PATH
16370   else
16371     # With GCC up to 2.95.x, collect2 would create an import file
16372     # for dependence libraries.  The import file would start with
16373     # the line `#! .'.  This would cause the generated library to
16374     # depend on `.', always an invalid library.  This was fixed in
16375     # development snapshots of GCC prior to 3.0.
16376     case $host_os in
16377       aix4 | aix4.[01] | aix4.[01].*)
16378       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16379            echo ' yes '
16380            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16381         :
16382       else
16383         can_build_shared=no
16384       fi
16385       ;;
16386     esac
16387     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16388     # soname into executable. Probably we can add versioning support to
16389     # collect2, so additional links can be useful in future.
16390     if test "$aix_use_runtimelinking" = yes; then
16391       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16392       # instead of lib<name>.a to let people know that these are not
16393       # typical AIX shared libraries.
16394       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395     else
16396       # We preserve .a as extension for shared libraries through AIX4.2
16397       # and later when we are not doing run time linking.
16398       library_names_spec='${libname}${release}.a $libname.a'
16399       soname_spec='${libname}${release}${shared_ext}$major'
16400     fi
16401     shlibpath_var=LIBPATH
16402   fi
16403   ;;
16404
16405 amigaos*)
16406   library_names_spec='$libname.ixlibrary $libname.a'
16407   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16408   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'
16409   ;;
16410
16411 beos*)
16412   library_names_spec='${libname}${shared_ext}'
16413   dynamic_linker="$host_os ld.so"
16414   shlibpath_var=LIBRARY_PATH
16415   ;;
16416
16417 bsdi4*)
16418   version_type=linux
16419   need_version=no
16420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421   soname_spec='${libname}${release}${shared_ext}$major'
16422   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16423   shlibpath_var=LD_LIBRARY_PATH
16424   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16425   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16426   # the default ld.so.conf also contains /usr/contrib/lib and
16427   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16428   # libtool to hard-code these into programs
16429   ;;
16430
16431 cygwin* | mingw* | pw32*)
16432   version_type=windows
16433   shrext=".dll"
16434   need_version=no
16435   need_lib_prefix=no
16436
16437   case $GCC,$host_os in
16438   yes,cygwin* | yes,mingw* | yes,pw32*)
16439     library_names_spec='$libname.dll.a'
16440     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16441     postinstall_cmds='base_file=`basename \${file}`~
16442       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16443       dldir=$destdir/`dirname \$dlpath`~
16444       test -d \$dldir || mkdir -p \$dldir~
16445       $install_prog $dir/$dlname \$dldir/$dlname'
16446     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16447       dlpath=$dir/\$dldll~
16448        $rm \$dlpath'
16449     shlibpath_overrides_runpath=yes
16450
16451     case $host_os in
16452     cygwin*)
16453       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16454       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16455       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16456       ;;
16457     mingw*)
16458       # MinGW DLLs use traditional 'lib' prefix
16459       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16460       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16461       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16462         # It is most probably a Windows format PATH printed by
16463         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16464         # path with ; separators, and with drive letters. We can handle the
16465         # drive letters (cygwin fileutils understands them), so leave them,
16466         # especially as we might pass files found there to a mingw objdump,
16467         # which wouldn't understand a cygwinified path. Ahh.
16468         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16469       else
16470         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16471       fi
16472       ;;
16473     pw32*)
16474       # pw32 DLLs use 'pw' prefix rather than 'lib'
16475       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16476       ;;
16477     esac
16478     ;;
16479
16480   *)
16481     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16482     ;;
16483   esac
16484   dynamic_linker='Win32 ld.exe'
16485   # FIXME: first we should search . and the directory the executable is in
16486   shlibpath_var=PATH
16487   ;;
16488
16489 darwin* | rhapsody*)
16490   dynamic_linker="$host_os dyld"
16491   version_type=darwin
16492   need_lib_prefix=no
16493   need_version=no
16494   # FIXME: Relying on posixy $() will cause problems for
16495   #        cross-compilation, but unfortunately the echo tests do not
16496   #        yet detect zsh echo's removal of \ escapes.
16497   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16498   soname_spec='${libname}${release}${major}$shared_ext'
16499   shlibpath_overrides_runpath=yes
16500   shlibpath_var=DYLD_LIBRARY_PATH
16501   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16502   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16503   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16504   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"`
16505   fi
16506   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16507   ;;
16508
16509 dgux*)
16510   version_type=linux
16511   need_lib_prefix=no
16512   need_version=no
16513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16514   soname_spec='${libname}${release}${shared_ext}$major'
16515   shlibpath_var=LD_LIBRARY_PATH
16516   ;;
16517
16518 freebsd1*)
16519   dynamic_linker=no
16520   ;;
16521
16522 freebsd*)
16523   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16524   version_type=freebsd-$objformat
16525   case $version_type in
16526     freebsd-elf*)
16527       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16528       need_version=no
16529       need_lib_prefix=no
16530       ;;
16531     freebsd-*)
16532       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16533       need_version=yes
16534       ;;
16535   esac
16536   shlibpath_var=LD_LIBRARY_PATH
16537   case $host_os in
16538   freebsd2*)
16539     shlibpath_overrides_runpath=yes
16540     ;;
16541   freebsd3.01* | freebsdelf3.01*)
16542     shlibpath_overrides_runpath=yes
16543     hardcode_into_libs=yes
16544     ;;
16545   *) # from 3.2 on
16546     shlibpath_overrides_runpath=no
16547     hardcode_into_libs=yes
16548     ;;
16549   esac
16550   ;;
16551
16552 gnu*)
16553   version_type=linux
16554   need_lib_prefix=no
16555   need_version=no
16556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16557   soname_spec='${libname}${release}${shared_ext}$major'
16558   shlibpath_var=LD_LIBRARY_PATH
16559   hardcode_into_libs=yes
16560   ;;
16561
16562 hpux9* | hpux10* | hpux11*)
16563   # Give a soname corresponding to the major version so that dld.sl refuses to
16564   # link against other versions.
16565   version_type=sunos
16566   need_lib_prefix=no
16567   need_version=no
16568   case "$host_cpu" in
16569   ia64*)
16570     shrext='.so'
16571     hardcode_into_libs=yes
16572     dynamic_linker="$host_os dld.so"
16573     shlibpath_var=LD_LIBRARY_PATH
16574     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16575     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16576     soname_spec='${libname}${release}${shared_ext}$major'
16577     if test "X$HPUX_IA64_MODE" = X32; then
16578       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16579     else
16580       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16581     fi
16582     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16583     ;;
16584    hppa*64*)
16585      shrext='.sl'
16586      hardcode_into_libs=yes
16587      dynamic_linker="$host_os dld.sl"
16588      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16589      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16590      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16591      soname_spec='${libname}${release}${shared_ext}$major'
16592      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16593      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16594      ;;
16595    *)
16596     shrext='.sl'
16597     dynamic_linker="$host_os dld.sl"
16598     shlibpath_var=SHLIB_PATH
16599     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16600     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16601     soname_spec='${libname}${release}${shared_ext}$major'
16602     ;;
16603   esac
16604   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16605   postinstall_cmds='chmod 555 $lib'
16606   ;;
16607
16608 irix5* | irix6* | nonstopux*)
16609   case $host_os in
16610     nonstopux*) version_type=nonstopux ;;
16611     *)
16612         if test "$lt_cv_prog_gnu_ld" = yes; then
16613                 version_type=linux
16614         else
16615                 version_type=irix
16616         fi ;;
16617   esac
16618   need_lib_prefix=no
16619   need_version=no
16620   soname_spec='${libname}${release}${shared_ext}$major'
16621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16622   case $host_os in
16623   irix5* | nonstopux*)
16624     libsuff= shlibsuff=
16625     ;;
16626   *)
16627     case $LD in # libtool.m4 will add one of these switches to LD
16628     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16629       libsuff= shlibsuff= libmagic=32-bit;;
16630     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16631       libsuff=32 shlibsuff=N32 libmagic=N32;;
16632     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16633       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16634     *) libsuff= shlibsuff= libmagic=never-match;;
16635     esac
16636     ;;
16637   esac
16638   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16639   shlibpath_overrides_runpath=no
16640   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16641   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16642   hardcode_into_libs=yes
16643   ;;
16644
16645 # No shared lib support for Linux oldld, aout, or coff.
16646 linux*oldld* | linux*aout* | linux*coff*)
16647   dynamic_linker=no
16648   ;;
16649
16650 # This must be Linux ELF.
16651 linux*)
16652   version_type=linux
16653   need_lib_prefix=no
16654   need_version=no
16655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16656   soname_spec='${libname}${release}${shared_ext}$major'
16657   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16658   shlibpath_var=LD_LIBRARY_PATH
16659   shlibpath_overrides_runpath=no
16660   # This implies no fast_install, which is unacceptable.
16661   # Some rework will be needed to allow for fast_install
16662   # before this can be enabled.
16663   hardcode_into_libs=yes
16664
16665   # We used to test for /lib/ld.so.1 and disable shared libraries on
16666   # powerpc, because MkLinux only supported shared libraries with the
16667   # GNU dynamic linker.  Since this was broken with cross compilers,
16668   # most powerpc-linux boxes support dynamic linking these days and
16669   # people can always --disable-shared, the test was removed, and we
16670   # assume the GNU/Linux dynamic linker is in use.
16671   dynamic_linker='GNU/Linux ld.so'
16672   ;;
16673
16674 netbsd*)
16675   version_type=sunos
16676   need_lib_prefix=no
16677   need_version=no
16678   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16679     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16680     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16681     dynamic_linker='NetBSD (a.out) ld.so'
16682   else
16683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16684     soname_spec='${libname}${release}${shared_ext}$major'
16685     dynamic_linker='NetBSD ld.elf_so'
16686   fi
16687   shlibpath_var=LD_LIBRARY_PATH
16688   shlibpath_overrides_runpath=yes
16689   hardcode_into_libs=yes
16690   ;;
16691
16692 newsos6)
16693   version_type=linux
16694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695   shlibpath_var=LD_LIBRARY_PATH
16696   shlibpath_overrides_runpath=yes
16697   ;;
16698
16699 nto-qnx)
16700   version_type=linux
16701   need_lib_prefix=no
16702   need_version=no
16703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16704   soname_spec='${libname}${release}${shared_ext}$major'
16705   shlibpath_var=LD_LIBRARY_PATH
16706   shlibpath_overrides_runpath=yes
16707   ;;
16708
16709 openbsd*)
16710   version_type=sunos
16711   need_lib_prefix=no
16712   need_version=no
16713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16714   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16715   shlibpath_var=LD_LIBRARY_PATH
16716   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16717     case $host_os in
16718       openbsd2.[89] | openbsd2.[89].*)
16719         shlibpath_overrides_runpath=no
16720         ;;
16721       *)
16722         shlibpath_overrides_runpath=yes
16723         ;;
16724       esac
16725   else
16726     shlibpath_overrides_runpath=yes
16727   fi
16728   ;;
16729
16730 os2*)
16731   libname_spec='$name'
16732   shrext=".dll"
16733   need_lib_prefix=no
16734   library_names_spec='$libname${shared_ext} $libname.a'
16735   dynamic_linker='OS/2 ld.exe'
16736   shlibpath_var=LIBPATH
16737   ;;
16738
16739 osf3* | osf4* | osf5*)
16740   version_type=osf
16741   need_lib_prefix=no
16742   need_version=no
16743   soname_spec='${libname}${release}${shared_ext}$major'
16744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16745   shlibpath_var=LD_LIBRARY_PATH
16746   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16747   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16748   ;;
16749
16750 sco3.2v5*)
16751   version_type=osf
16752   soname_spec='${libname}${release}${shared_ext}$major'
16753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754   shlibpath_var=LD_LIBRARY_PATH
16755   ;;
16756
16757 solaris*)
16758   version_type=linux
16759   need_lib_prefix=no
16760   need_version=no
16761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762   soname_spec='${libname}${release}${shared_ext}$major'
16763   shlibpath_var=LD_LIBRARY_PATH
16764   shlibpath_overrides_runpath=yes
16765   hardcode_into_libs=yes
16766   # ldd complains unless libraries are executable
16767   postinstall_cmds='chmod +x $lib'
16768   ;;
16769
16770 sunos4*)
16771   version_type=sunos
16772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16773   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16774   shlibpath_var=LD_LIBRARY_PATH
16775   shlibpath_overrides_runpath=yes
16776   if test "$with_gnu_ld" = yes; then
16777     need_lib_prefix=no
16778   fi
16779   need_version=yes
16780   ;;
16781
16782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16783   version_type=linux
16784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785   soname_spec='${libname}${release}${shared_ext}$major'
16786   shlibpath_var=LD_LIBRARY_PATH
16787   case $host_vendor in
16788     sni)
16789       shlibpath_overrides_runpath=no
16790       need_lib_prefix=no
16791       export_dynamic_flag_spec='${wl}-Blargedynsym'
16792       runpath_var=LD_RUN_PATH
16793       ;;
16794     siemens)
16795       need_lib_prefix=no
16796       ;;
16797     motorola)
16798       need_lib_prefix=no
16799       need_version=no
16800       shlibpath_overrides_runpath=no
16801       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16802       ;;
16803   esac
16804   ;;
16805
16806 sysv4*MP*)
16807   if test -d /usr/nec ;then
16808     version_type=linux
16809     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16810     soname_spec='$libname${shared_ext}.$major'
16811     shlibpath_var=LD_LIBRARY_PATH
16812   fi
16813   ;;
16814
16815 uts4*)
16816   version_type=linux
16817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818   soname_spec='${libname}${release}${shared_ext}$major'
16819   shlibpath_var=LD_LIBRARY_PATH
16820   ;;
16821
16822 *)
16823   dynamic_linker=no
16824   ;;
16825 esac
16826 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16827 echo "${ECHO_T}$dynamic_linker" >&6
16828 test "$dynamic_linker" = no && can_build_shared=no
16829
16830 if test "x$enable_dlopen" != xyes; then
16831   enable_dlopen=unknown
16832   enable_dlopen_self=unknown
16833   enable_dlopen_self_static=unknown
16834 else
16835   lt_cv_dlopen=no
16836   lt_cv_dlopen_libs=
16837
16838   case $host_os in
16839   beos*)
16840     lt_cv_dlopen="load_add_on"
16841     lt_cv_dlopen_libs=
16842     lt_cv_dlopen_self=yes
16843     ;;
16844
16845   mingw* | pw32*)
16846     lt_cv_dlopen="LoadLibrary"
16847     lt_cv_dlopen_libs=
16848    ;;
16849
16850   cygwin*)
16851     lt_cv_dlopen="dlopen"
16852     lt_cv_dlopen_libs=
16853    ;;
16854
16855   darwin*)
16856   # if libdl is installed we need to link against it
16857     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16858 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16859 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16860   echo $ECHO_N "(cached) $ECHO_C" >&6
16861 else
16862   ac_check_lib_save_LIBS=$LIBS
16863 LIBS="-ldl  $LIBS"
16864 cat >conftest.$ac_ext <<_ACEOF
16865 #line $LINENO "configure"
16866 /* confdefs.h.  */
16867 _ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h.  */
16871
16872 /* Override any gcc2 internal prototype to avoid an error.  */
16873 #ifdef __cplusplus
16874 extern "C"
16875 #endif
16876 /* We use char because int might match the return type of a gcc2
16877    builtin and then its argument prototype would still apply.  */
16878 char dlopen ();
16879 int
16880 main ()
16881 {
16882 dlopen ();
16883   ;
16884   return 0;
16885 }
16886 _ACEOF
16887 rm -f conftest.$ac_objext conftest$ac_exeext
16888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16889   (eval $ac_link) 2>&5
16890   ac_status=$?
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); } &&
16893          { ac_try='test -s conftest$ac_exeext'
16894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895   (eval $ac_try) 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); }; }; then
16899   ac_cv_lib_dl_dlopen=yes
16900 else
16901   echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16903
16904 ac_cv_lib_dl_dlopen=no
16905 fi
16906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16907 LIBS=$ac_check_lib_save_LIBS
16908 fi
16909 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16910 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16911 if test $ac_cv_lib_dl_dlopen = yes; then
16912   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16913 else
16914
16915     lt_cv_dlopen="dyld"
16916     lt_cv_dlopen_libs=
16917     lt_cv_dlopen_self=yes
16918
16919 fi
16920
16921    ;;
16922
16923   *)
16924     echo "$as_me:$LINENO: checking for shl_load" >&5
16925 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16926 if test "${ac_cv_func_shl_load+set}" = set; then
16927   echo $ECHO_N "(cached) $ECHO_C" >&6
16928 else
16929   cat >conftest.$ac_ext <<_ACEOF
16930 #line $LINENO "configure"
16931 /* confdefs.h.  */
16932 _ACEOF
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h.  */
16936 /* System header to define __stub macros and hopefully few prototypes,
16937     which can conflict with char shl_load (); below.
16938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16939     <limits.h> exists even on freestanding compilers.  */
16940 #ifdef __STDC__
16941 # include <limits.h>
16942 #else
16943 # include <assert.h>
16944 #endif
16945 /* Override any gcc2 internal prototype to avoid an error.  */
16946 #ifdef __cplusplus
16947 extern "C"
16948 {
16949 #endif
16950 /* We use char because int might match the return type of a gcc2
16951    builtin and then its argument prototype would still apply.  */
16952 char shl_load ();
16953 /* The GNU C library defines this for functions which it implements
16954     to always fail with ENOSYS.  Some functions are actually named
16955     something starting with __ and the normal name is an alias.  */
16956 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16957 choke me
16958 #else
16959 char (*f) () = shl_load;
16960 #endif
16961 #ifdef __cplusplus
16962 }
16963 #endif
16964
16965 int
16966 main ()
16967 {
16968 return f != shl_load;
16969   ;
16970   return 0;
16971 }
16972 _ACEOF
16973 rm -f conftest.$ac_objext conftest$ac_exeext
16974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16975   (eval $ac_link) 2>&5
16976   ac_status=$?
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); } &&
16979          { ac_try='test -s conftest$ac_exeext'
16980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981   (eval $ac_try) 2>&5
16982   ac_status=$?
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); }; }; then
16985   ac_cv_func_shl_load=yes
16986 else
16987   echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16989
16990 ac_cv_func_shl_load=no
16991 fi
16992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16993 fi
16994 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16995 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16996 if test $ac_cv_func_shl_load = yes; then
16997   lt_cv_dlopen="shl_load"
16998 else
16999   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17000 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17001 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17002   echo $ECHO_N "(cached) $ECHO_C" >&6
17003 else
17004   ac_check_lib_save_LIBS=$LIBS
17005 LIBS="-ldld  $LIBS"
17006 cat >conftest.$ac_ext <<_ACEOF
17007 #line $LINENO "configure"
17008 /* confdefs.h.  */
17009 _ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h.  */
17013
17014 /* Override any gcc2 internal prototype to avoid an error.  */
17015 #ifdef __cplusplus
17016 extern "C"
17017 #endif
17018 /* We use char because int might match the return type of a gcc2
17019    builtin and then its argument prototype would still apply.  */
17020 char shl_load ();
17021 int
17022 main ()
17023 {
17024 shl_load ();
17025   ;
17026   return 0;
17027 }
17028 _ACEOF
17029 rm -f conftest.$ac_objext conftest$ac_exeext
17030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17031   (eval $ac_link) 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); } &&
17035          { ac_try='test -s conftest$ac_exeext'
17036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037   (eval $ac_try) 2>&5
17038   ac_status=$?
17039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040   (exit $ac_status); }; }; then
17041   ac_cv_lib_dld_shl_load=yes
17042 else
17043   echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17045
17046 ac_cv_lib_dld_shl_load=no
17047 fi
17048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17049 LIBS=$ac_check_lib_save_LIBS
17050 fi
17051 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17052 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17053 if test $ac_cv_lib_dld_shl_load = yes; then
17054   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17055 else
17056   echo "$as_me:$LINENO: checking for dlopen" >&5
17057 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17058 if test "${ac_cv_func_dlopen+set}" = set; then
17059   echo $ECHO_N "(cached) $ECHO_C" >&6
17060 else
17061   cat >conftest.$ac_ext <<_ACEOF
17062 #line $LINENO "configure"
17063 /* confdefs.h.  */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h.  */
17068 /* System header to define __stub macros and hopefully few prototypes,
17069     which can conflict with char dlopen (); below.
17070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17071     <limits.h> exists even on freestanding compilers.  */
17072 #ifdef __STDC__
17073 # include <limits.h>
17074 #else
17075 # include <assert.h>
17076 #endif
17077 /* Override any gcc2 internal prototype to avoid an error.  */
17078 #ifdef __cplusplus
17079 extern "C"
17080 {
17081 #endif
17082 /* We use char because int might match the return type of a gcc2
17083    builtin and then its argument prototype would still apply.  */
17084 char dlopen ();
17085 /* The GNU C library defines this for functions which it implements
17086     to always fail with ENOSYS.  Some functions are actually named
17087     something starting with __ and the normal name is an alias.  */
17088 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17089 choke me
17090 #else
17091 char (*f) () = dlopen;
17092 #endif
17093 #ifdef __cplusplus
17094 }
17095 #endif
17096
17097 int
17098 main ()
17099 {
17100 return f != dlopen;
17101   ;
17102   return 0;
17103 }
17104 _ACEOF
17105 rm -f conftest.$ac_objext conftest$ac_exeext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17107   (eval $ac_link) 2>&5
17108   ac_status=$?
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); } &&
17111          { ac_try='test -s conftest$ac_exeext'
17112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113   (eval $ac_try) 2>&5
17114   ac_status=$?
17115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); }; }; then
17117   ac_cv_func_dlopen=yes
17118 else
17119   echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 ac_cv_func_dlopen=no
17123 fi
17124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17125 fi
17126 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17127 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17128 if test $ac_cv_func_dlopen = yes; then
17129   lt_cv_dlopen="dlopen"
17130 else
17131   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17132 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17133 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17134   echo $ECHO_N "(cached) $ECHO_C" >&6
17135 else
17136   ac_check_lib_save_LIBS=$LIBS
17137 LIBS="-ldl  $LIBS"
17138 cat >conftest.$ac_ext <<_ACEOF
17139 #line $LINENO "configure"
17140 /* confdefs.h.  */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h.  */
17145
17146 /* Override any gcc2 internal prototype to avoid an error.  */
17147 #ifdef __cplusplus
17148 extern "C"
17149 #endif
17150 /* We use char because int might match the return type of a gcc2
17151    builtin and then its argument prototype would still apply.  */
17152 char dlopen ();
17153 int
17154 main ()
17155 {
17156 dlopen ();
17157   ;
17158   return 0;
17159 }
17160 _ACEOF
17161 rm -f conftest.$ac_objext conftest$ac_exeext
17162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17163   (eval $ac_link) 2>&5
17164   ac_status=$?
17165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166   (exit $ac_status); } &&
17167          { ac_try='test -s conftest$ac_exeext'
17168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169   (eval $ac_try) 2>&5
17170   ac_status=$?
17171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172   (exit $ac_status); }; }; then
17173   ac_cv_lib_dl_dlopen=yes
17174 else
17175   echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17177
17178 ac_cv_lib_dl_dlopen=no
17179 fi
17180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17181 LIBS=$ac_check_lib_save_LIBS
17182 fi
17183 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17184 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17185 if test $ac_cv_lib_dl_dlopen = yes; then
17186   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17187 else
17188   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17189 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17190 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17191   echo $ECHO_N "(cached) $ECHO_C" >&6
17192 else
17193   ac_check_lib_save_LIBS=$LIBS
17194 LIBS="-lsvld  $LIBS"
17195 cat >conftest.$ac_ext <<_ACEOF
17196 #line $LINENO "configure"
17197 /* confdefs.h.  */
17198 _ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h.  */
17202
17203 /* Override any gcc2 internal prototype to avoid an error.  */
17204 #ifdef __cplusplus
17205 extern "C"
17206 #endif
17207 /* We use char because int might match the return type of a gcc2
17208    builtin and then its argument prototype would still apply.  */
17209 char dlopen ();
17210 int
17211 main ()
17212 {
17213 dlopen ();
17214   ;
17215   return 0;
17216 }
17217 _ACEOF
17218 rm -f conftest.$ac_objext conftest$ac_exeext
17219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17220   (eval $ac_link) 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); } &&
17224          { ac_try='test -s conftest$ac_exeext'
17225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226   (eval $ac_try) 2>&5
17227   ac_status=$?
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); }; }; then
17230   ac_cv_lib_svld_dlopen=yes
17231 else
17232   echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17234
17235 ac_cv_lib_svld_dlopen=no
17236 fi
17237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17238 LIBS=$ac_check_lib_save_LIBS
17239 fi
17240 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17241 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17242 if test $ac_cv_lib_svld_dlopen = yes; then
17243   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17244 else
17245   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17246 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17247 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17248   echo $ECHO_N "(cached) $ECHO_C" >&6
17249 else
17250   ac_check_lib_save_LIBS=$LIBS
17251 LIBS="-ldld  $LIBS"
17252 cat >conftest.$ac_ext <<_ACEOF
17253 #line $LINENO "configure"
17254 /* confdefs.h.  */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h.  */
17259
17260 /* Override any gcc2 internal prototype to avoid an error.  */
17261 #ifdef __cplusplus
17262 extern "C"
17263 #endif
17264 /* We use char because int might match the return type of a gcc2
17265    builtin and then its argument prototype would still apply.  */
17266 char dld_link ();
17267 int
17268 main ()
17269 {
17270 dld_link ();
17271   ;
17272   return 0;
17273 }
17274 _ACEOF
17275 rm -f conftest.$ac_objext conftest$ac_exeext
17276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17277   (eval $ac_link) 2>&5
17278   ac_status=$?
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); } &&
17281          { ac_try='test -s conftest$ac_exeext'
17282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283   (eval $ac_try) 2>&5
17284   ac_status=$?
17285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286   (exit $ac_status); }; }; then
17287   ac_cv_lib_dld_dld_link=yes
17288 else
17289   echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17291
17292 ac_cv_lib_dld_dld_link=no
17293 fi
17294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17295 LIBS=$ac_check_lib_save_LIBS
17296 fi
17297 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17298 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17299 if test $ac_cv_lib_dld_dld_link = yes; then
17300   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17301 fi
17302
17303
17304 fi
17305
17306
17307 fi
17308
17309
17310 fi
17311
17312
17313 fi
17314
17315
17316 fi
17317
17318     ;;
17319   esac
17320
17321   if test "x$lt_cv_dlopen" != xno; then
17322     enable_dlopen=yes
17323   else
17324     enable_dlopen=no
17325   fi
17326
17327   case $lt_cv_dlopen in
17328   dlopen)
17329     save_CPPFLAGS="$CPPFLAGS"
17330     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17331
17332     save_LDFLAGS="$LDFLAGS"
17333     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17334
17335     save_LIBS="$LIBS"
17336     LIBS="$lt_cv_dlopen_libs $LIBS"
17337
17338     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17339 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17340 if test "${lt_cv_dlopen_self+set}" = set; then
17341   echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343           if test "$cross_compiling" = yes; then :
17344   lt_cv_dlopen_self=cross
17345 else
17346   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17347   lt_status=$lt_dlunknown
17348   cat > conftest.$ac_ext <<EOF
17349 #line 17349 "configure"
17350 #include "confdefs.h"
17351
17352 #if HAVE_DLFCN_H
17353 #include <dlfcn.h>
17354 #endif
17355
17356 #include <stdio.h>
17357
17358 #ifdef RTLD_GLOBAL
17359 #  define LT_DLGLOBAL           RTLD_GLOBAL
17360 #else
17361 #  ifdef DL_GLOBAL
17362 #    define LT_DLGLOBAL         DL_GLOBAL
17363 #  else
17364 #    define LT_DLGLOBAL         0
17365 #  endif
17366 #endif
17367
17368 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17369    find out it does not work in some platform. */
17370 #ifndef LT_DLLAZY_OR_NOW
17371 #  ifdef RTLD_LAZY
17372 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17373 #  else
17374 #    ifdef DL_LAZY
17375 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17376 #    else
17377 #      ifdef RTLD_NOW
17378 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17379 #      else
17380 #        ifdef DL_NOW
17381 #          define LT_DLLAZY_OR_NOW      DL_NOW
17382 #        else
17383 #          define LT_DLLAZY_OR_NOW      0
17384 #        endif
17385 #      endif
17386 #    endif
17387 #  endif
17388 #endif
17389
17390 #ifdef __cplusplus
17391 extern "C" void exit (int);
17392 #endif
17393
17394 void fnord() { int i=42;}
17395 int main ()
17396 {
17397   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17398   int status = $lt_dlunknown;
17399
17400   if (self)
17401     {
17402       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17403       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17404       /* dlclose (self); */
17405     }
17406
17407     exit (status);
17408 }
17409 EOF
17410   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17411   (eval $ac_link) 2>&5
17412   ac_status=$?
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17415     (./conftest; exit; ) 2>/dev/null
17416     lt_status=$?
17417     case x$lt_status in
17418       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17419       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17420       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17421     esac
17422   else :
17423     # compilation failed
17424     lt_cv_dlopen_self=no
17425   fi
17426 fi
17427 rm -fr conftest*
17428
17429
17430 fi
17431 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17432 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17433
17434     if test "x$lt_cv_dlopen_self" = xyes; then
17435       LDFLAGS="$LDFLAGS $link_static_flag"
17436       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17437 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17438 if test "${lt_cv_dlopen_self_static+set}" = set; then
17439   echo $ECHO_N "(cached) $ECHO_C" >&6
17440 else
17441           if test "$cross_compiling" = yes; then :
17442   lt_cv_dlopen_self_static=cross
17443 else
17444   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17445   lt_status=$lt_dlunknown
17446   cat > conftest.$ac_ext <<EOF
17447 #line 17447 "configure"
17448 #include "confdefs.h"
17449
17450 #if HAVE_DLFCN_H
17451 #include <dlfcn.h>
17452 #endif
17453
17454 #include <stdio.h>
17455
17456 #ifdef RTLD_GLOBAL
17457 #  define LT_DLGLOBAL           RTLD_GLOBAL
17458 #else
17459 #  ifdef DL_GLOBAL
17460 #    define LT_DLGLOBAL         DL_GLOBAL
17461 #  else
17462 #    define LT_DLGLOBAL         0
17463 #  endif
17464 #endif
17465
17466 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17467    find out it does not work in some platform. */
17468 #ifndef LT_DLLAZY_OR_NOW
17469 #  ifdef RTLD_LAZY
17470 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17471 #  else
17472 #    ifdef DL_LAZY
17473 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17474 #    else
17475 #      ifdef RTLD_NOW
17476 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17477 #      else
17478 #        ifdef DL_NOW
17479 #          define LT_DLLAZY_OR_NOW      DL_NOW
17480 #        else
17481 #          define LT_DLLAZY_OR_NOW      0
17482 #        endif
17483 #      endif
17484 #    endif
17485 #  endif
17486 #endif
17487
17488 #ifdef __cplusplus
17489 extern "C" void exit (int);
17490 #endif
17491
17492 void fnord() { int i=42;}
17493 int main ()
17494 {
17495   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17496   int status = $lt_dlunknown;
17497
17498   if (self)
17499     {
17500       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17501       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17502       /* dlclose (self); */
17503     }
17504
17505     exit (status);
17506 }
17507 EOF
17508   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17509   (eval $ac_link) 2>&5
17510   ac_status=$?
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17513     (./conftest; exit; ) 2>/dev/null
17514     lt_status=$?
17515     case x$lt_status in
17516       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17517       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17518       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17519     esac
17520   else :
17521     # compilation failed
17522     lt_cv_dlopen_self_static=no
17523   fi
17524 fi
17525 rm -fr conftest*
17526
17527
17528 fi
17529 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17530 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17531     fi
17532
17533     CPPFLAGS="$save_CPPFLAGS"
17534     LDFLAGS="$save_LDFLAGS"
17535     LIBS="$save_LIBS"
17536     ;;
17537   esac
17538
17539   case $lt_cv_dlopen_self in
17540   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17541   *) enable_dlopen_self=unknown ;;
17542   esac
17543
17544   case $lt_cv_dlopen_self_static in
17545   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17546   *) enable_dlopen_self_static=unknown ;;
17547   esac
17548 fi
17549
17550
17551 # The else clause should only fire when bootstrapping the
17552 # libtool distribution, otherwise you forgot to ship ltmain.sh
17553 # with your package, and you will get complaints that there are
17554 # no rules to generate ltmain.sh.
17555 if test -f "$ltmain"; then
17556   # See if we are running on zsh, and set the options which allow our commands through
17557   # without removal of \ escapes.
17558   if test -n "${ZSH_VERSION+set}" ; then
17559     setopt NO_GLOB_SUBST
17560   fi
17561   # Now quote all the things that may contain metacharacters while being
17562   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17563   # variables and quote the copies for generation of the libtool script.
17564   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17565     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17566     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17567     deplibs_check_method reload_flag reload_cmds need_locks \
17568     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17569     lt_cv_sys_global_symbol_to_c_name_address \
17570     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17571     old_postinstall_cmds old_postuninstall_cmds \
17572     compiler_GCJ \
17573     CC_GCJ \
17574     LD_GCJ \
17575     lt_prog_compiler_wl_GCJ \
17576     lt_prog_compiler_pic_GCJ \
17577     lt_prog_compiler_static_GCJ \
17578     lt_prog_compiler_no_builtin_flag_GCJ \
17579     export_dynamic_flag_spec_GCJ \
17580     thread_safe_flag_spec_GCJ \
17581     whole_archive_flag_spec_GCJ \
17582     enable_shared_with_static_runtimes_GCJ \
17583     old_archive_cmds_GCJ \
17584     old_archive_from_new_cmds_GCJ \
17585     predep_objects_GCJ \
17586     postdep_objects_GCJ \
17587     predeps_GCJ \
17588     postdeps_GCJ \
17589     compiler_lib_search_path_GCJ \
17590     archive_cmds_GCJ \
17591     archive_expsym_cmds_GCJ \
17592     postinstall_cmds_GCJ \
17593     postuninstall_cmds_GCJ \
17594     old_archive_from_expsyms_cmds_GCJ \
17595     allow_undefined_flag_GCJ \
17596     no_undefined_flag_GCJ \
17597     export_symbols_cmds_GCJ \
17598     hardcode_libdir_flag_spec_GCJ \
17599     hardcode_libdir_flag_spec_ld_GCJ \
17600     hardcode_libdir_separator_GCJ \
17601     hardcode_automatic_GCJ \
17602     module_cmds_GCJ \
17603     module_expsym_cmds_GCJ \
17604     lt_cv_prog_compiler_c_o_GCJ \
17605     exclude_expsyms_GCJ \
17606     include_expsyms_GCJ; do
17607
17608     case $var in
17609     old_archive_cmds_GCJ | \
17610     old_archive_from_new_cmds_GCJ | \
17611     archive_cmds_GCJ | \
17612     archive_expsym_cmds_GCJ | \
17613     module_cmds_GCJ | \
17614     module_expsym_cmds_GCJ | \
17615     old_archive_from_expsyms_cmds_GCJ | \
17616     export_symbols_cmds_GCJ | \
17617     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17618     postinstall_cmds | postuninstall_cmds | \
17619     old_postinstall_cmds | old_postuninstall_cmds | \
17620     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17621       # Double-quote double-evaled strings.
17622       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17623       ;;
17624     *)
17625       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17626       ;;
17627     esac
17628   done
17629
17630   case $lt_echo in
17631   *'\$0 --fallback-echo"')
17632     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17633     ;;
17634   esac
17635
17636 cfgfile="$ofile"
17637
17638   cat <<__EOF__ >> "$cfgfile"
17639 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17640
17641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17642
17643 # Shell to use when invoking shell scripts.
17644 SHELL=$lt_SHELL
17645
17646 # Whether or not to build shared libraries.
17647 build_libtool_libs=$enable_shared
17648
17649 # Whether or not to build static libraries.
17650 build_old_libs=$enable_static
17651
17652 # Whether or not to add -lc for building shared libraries.
17653 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17654
17655 # Whether or not to disallow shared libs when runtime libs are static
17656 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17657
17658 # Whether or not to optimize for fast installation.
17659 fast_install=$enable_fast_install
17660
17661 # The host system.
17662 host_alias=$host_alias
17663 host=$host
17664
17665 # An echo program that does not interpret backslashes.
17666 echo=$lt_echo
17667
17668 # The archiver.
17669 AR=$lt_AR
17670 AR_FLAGS=$lt_AR_FLAGS
17671
17672 # A C compiler.
17673 LTCC=$lt_LTCC
17674
17675 # A language-specific compiler.
17676 CC=$lt_compiler_GCJ
17677
17678 # Is the compiler the GNU C compiler?
17679 with_gcc=$GCC_GCJ
17680
17681 # An ERE matcher.
17682 EGREP=$lt_EGREP
17683
17684 # The linker used to build libraries.
17685 LD=$lt_LD_GCJ
17686
17687 # Whether we need hard or soft links.
17688 LN_S=$lt_LN_S
17689
17690 # A BSD-compatible nm program.
17691 NM=$lt_NM
17692
17693 # A symbol stripping program
17694 STRIP=$STRIP
17695
17696 # Used to examine libraries when file_magic_cmd begins "file"
17697 MAGIC_CMD=$MAGIC_CMD
17698
17699 # Used on cygwin: DLL creation program.
17700 DLLTOOL="$DLLTOOL"
17701
17702 # Used on cygwin: object dumper.
17703 OBJDUMP="$OBJDUMP"
17704
17705 # Used on cygwin: assembler.
17706 AS="$AS"
17707
17708 # The name of the directory that contains temporary libtool files.
17709 objdir=$objdir
17710
17711 # How to create reloadable object files.
17712 reload_flag=$lt_reload_flag
17713 reload_cmds=$lt_reload_cmds
17714
17715 # How to pass a linker flag through the compiler.
17716 wl=$lt_lt_prog_compiler_wl_GCJ
17717
17718 # Object file suffix (normally "o").
17719 objext="$ac_objext"
17720
17721 # Old archive suffix (normally "a").
17722 libext="$libext"
17723
17724 # Shared library suffix (normally ".so").
17725 shrext='$shrext'
17726
17727 # Executable file suffix (normally "").
17728 exeext="$exeext"
17729
17730 # Additional compiler flags for building library objects.
17731 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17732 pic_mode=$pic_mode
17733
17734 # What is the maximum length of a command?
17735 max_cmd_len=$lt_cv_sys_max_cmd_len
17736
17737 # Does compiler simultaneously support -c and -o options?
17738 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17739
17740 # Must we lock files when doing compilation ?
17741 need_locks=$lt_need_locks
17742
17743 # Do we need the lib prefix for modules?
17744 need_lib_prefix=$need_lib_prefix
17745
17746 # Do we need a version for libraries?
17747 need_version=$need_version
17748
17749 # Whether dlopen is supported.
17750 dlopen_support=$enable_dlopen
17751
17752 # Whether dlopen of programs is supported.
17753 dlopen_self=$enable_dlopen_self
17754
17755 # Whether dlopen of statically linked programs is supported.
17756 dlopen_self_static=$enable_dlopen_self_static
17757
17758 # Compiler flag to prevent dynamic linking.
17759 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17760
17761 # Compiler flag to turn off builtin functions.
17762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17763
17764 # Compiler flag to allow reflexive dlopens.
17765 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17766
17767 # Compiler flag to generate shared objects directly from archives.
17768 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17769
17770 # Compiler flag to generate thread-safe objects.
17771 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17772
17773 # Library versioning type.
17774 version_type=$version_type
17775
17776 # Format of library name prefix.
17777 libname_spec=$lt_libname_spec
17778
17779 # List of archive names.  First name is the real one, the rest are links.
17780 # The last name is the one that the linker finds with -lNAME.
17781 library_names_spec=$lt_library_names_spec
17782
17783 # The coded name of the library, if different from the real name.
17784 soname_spec=$lt_soname_spec
17785
17786 # Commands used to build and install an old-style archive.
17787 RANLIB=$lt_RANLIB
17788 old_archive_cmds=$lt_old_archive_cmds_GCJ
17789 old_postinstall_cmds=$lt_old_postinstall_cmds
17790 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17791
17792 # Create an old-style archive from a shared archive.
17793 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17794
17795 # Create a temporary old-style archive to link instead of a shared archive.
17796 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17797
17798 # Commands used to build and install a shared archive.
17799 archive_cmds=$lt_archive_cmds_GCJ
17800 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17801 postinstall_cmds=$lt_postinstall_cmds
17802 postuninstall_cmds=$lt_postuninstall_cmds
17803
17804 # Commands used to build a loadable module (assumed same as above if empty)
17805 module_cmds=$lt_module_cmds_GCJ
17806 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17807
17808 # Commands to strip libraries.
17809 old_striplib=$lt_old_striplib
17810 striplib=$lt_striplib
17811
17812 # Dependencies to place before the objects being linked to create a
17813 # shared library.
17814 predep_objects=$lt_predep_objects_GCJ
17815
17816 # Dependencies to place after the objects being linked to create a
17817 # shared library.
17818 postdep_objects=$lt_postdep_objects_GCJ
17819
17820 # Dependencies to place before the objects being linked to create a
17821 # shared library.
17822 predeps=$lt_predeps_GCJ
17823
17824 # Dependencies to place after the objects being linked to create a
17825 # shared library.
17826 postdeps=$lt_postdeps_GCJ
17827
17828 # The library search path used internally by the compiler when linking
17829 # a shared library.
17830 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17831
17832 # Method to check whether dependent libraries are shared objects.
17833 deplibs_check_method=$lt_deplibs_check_method
17834
17835 # Command to use when deplibs_check_method == file_magic.
17836 file_magic_cmd=$lt_file_magic_cmd
17837
17838 # Flag that allows shared libraries with undefined symbols to be built.
17839 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17840
17841 # Flag that forces no undefined symbols.
17842 no_undefined_flag=$lt_no_undefined_flag_GCJ
17843
17844 # Commands used to finish a libtool library installation in a directory.
17845 finish_cmds=$lt_finish_cmds
17846
17847 # Same as above, but a single script fragment to be evaled but not shown.
17848 finish_eval=$lt_finish_eval
17849
17850 # Take the output of nm and produce a listing of raw symbols and C names.
17851 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17852
17853 # Transform the output of nm in a proper C declaration
17854 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17855
17856 # Transform the output of nm in a C name address pair
17857 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17858
17859 # This is the shared library runtime path variable.
17860 runpath_var=$runpath_var
17861
17862 # This is the shared library path variable.
17863 shlibpath_var=$shlibpath_var
17864
17865 # Is shlibpath searched before the hard-coded library search path?
17866 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17867
17868 # How to hardcode a shared library path into an executable.
17869 hardcode_action=$hardcode_action_GCJ
17870
17871 # Whether we should hardcode library paths into libraries.
17872 hardcode_into_libs=$hardcode_into_libs
17873
17874 # Flag to hardcode \$libdir into a binary during linking.
17875 # This must work even if \$libdir does not exist.
17876 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17877
17878 # If ld is used when linking, flag to hardcode \$libdir into
17879 # a binary during linking. This must work even if \$libdir does
17880 # not exist.
17881 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17882
17883 # Whether we need a single -rpath flag with a separated argument.
17884 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17885
17886 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17887 # resulting binary.
17888 hardcode_direct=$hardcode_direct_GCJ
17889
17890 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17891 # resulting binary.
17892 hardcode_minus_L=$hardcode_minus_L_GCJ
17893
17894 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17895 # the resulting binary.
17896 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17897
17898 # Set to yes if building a shared library automatically hardcodes DIR into the library
17899 # and all subsequent libraries and executables linked against it.
17900 hardcode_automatic=$hardcode_automatic_GCJ
17901
17902 # Variables whose values should be saved in libtool wrapper scripts and
17903 # restored at relink time.
17904 variables_saved_for_relink="$variables_saved_for_relink"
17905
17906 # Whether libtool must link a program against all its dependency libraries.
17907 link_all_deplibs=$link_all_deplibs_GCJ
17908
17909 # Compile-time system search path for libraries
17910 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17911
17912 # Run-time system search path for libraries
17913 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17914
17915 # Fix the shell variable \$srcfile for the compiler.
17916 fix_srcfile_path="$fix_srcfile_path_GCJ"
17917
17918 # Set to yes if exported symbols are required.
17919 always_export_symbols=$always_export_symbols_GCJ
17920
17921 # The commands to list exported symbols.
17922 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17923
17924 # The commands to extract the exported symbol list from a shared archive.
17925 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17926
17927 # Symbols that should not be listed in the preloaded symbols.
17928 exclude_expsyms=$lt_exclude_expsyms_GCJ
17929
17930 # Symbols that must always be exported.
17931 include_expsyms=$lt_include_expsyms_GCJ
17932
17933 # ### END LIBTOOL TAG CONFIG: $tagname
17934
17935 __EOF__
17936
17937
17938 else
17939   # If there is no Makefile yet, we rely on a make rule to execute
17940   # `config.status --recheck' to rerun these tests and create the
17941   # libtool script then.
17942   test -f Makefile && make "$ltmain"
17943 fi
17944
17945
17946 ac_ext=c
17947 ac_cpp='$CPP $CPPFLAGS'
17948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17951
17952 CC="$lt_save_CC"
17953
17954         else
17955           tagname=""
17956         fi
17957         ;;
17958
17959       RC)
17960
17961
17962
17963 # Source file extension for RC test sources.
17964 ac_ext=rc
17965
17966 # Object file extension for compiled RC test sources.
17967 objext=o
17968 objext_RC=$objext
17969
17970 # Code to be used in simple compile tests
17971 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17972
17973 # Code to be used in simple link tests
17974 lt_simple_link_test_code="$lt_simple_compile_test_code"
17975
17976 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17977
17978 # If no C compiler was specified, use CC.
17979 LTCC=${LTCC-"$CC"}
17980
17981 # Allow CC to be a program name with arguments.
17982 compiler=$CC
17983
17984
17985 # Allow CC to be a program name with arguments.
17986 lt_save_CC="$CC"
17987 CC=${RC-"windres"}
17988 compiler=$CC
17989 compiler_RC=$CC
17990 lt_cv_prog_compiler_c_o_RC=yes
17991
17992 # The else clause should only fire when bootstrapping the
17993 # libtool distribution, otherwise you forgot to ship ltmain.sh
17994 # with your package, and you will get complaints that there are
17995 # no rules to generate ltmain.sh.
17996 if test -f "$ltmain"; then
17997   # See if we are running on zsh, and set the options which allow our commands through
17998   # without removal of \ escapes.
17999   if test -n "${ZSH_VERSION+set}" ; then
18000     setopt NO_GLOB_SUBST
18001   fi
18002   # Now quote all the things that may contain metacharacters while being
18003   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18004   # variables and quote the copies for generation of the libtool script.
18005   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18006     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18007     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18008     deplibs_check_method reload_flag reload_cmds need_locks \
18009     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18010     lt_cv_sys_global_symbol_to_c_name_address \
18011     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18012     old_postinstall_cmds old_postuninstall_cmds \
18013     compiler_RC \
18014     CC_RC \
18015     LD_RC \
18016     lt_prog_compiler_wl_RC \
18017     lt_prog_compiler_pic_RC \
18018     lt_prog_compiler_static_RC \
18019     lt_prog_compiler_no_builtin_flag_RC \
18020     export_dynamic_flag_spec_RC \
18021     thread_safe_flag_spec_RC \
18022     whole_archive_flag_spec_RC \
18023     enable_shared_with_static_runtimes_RC \
18024     old_archive_cmds_RC \
18025     old_archive_from_new_cmds_RC \
18026     predep_objects_RC \
18027     postdep_objects_RC \
18028     predeps_RC \
18029     postdeps_RC \
18030     compiler_lib_search_path_RC \
18031     archive_cmds_RC \
18032     archive_expsym_cmds_RC \
18033     postinstall_cmds_RC \
18034     postuninstall_cmds_RC \
18035     old_archive_from_expsyms_cmds_RC \
18036     allow_undefined_flag_RC \
18037     no_undefined_flag_RC \
18038     export_symbols_cmds_RC \
18039     hardcode_libdir_flag_spec_RC \
18040     hardcode_libdir_flag_spec_ld_RC \
18041     hardcode_libdir_separator_RC \
18042     hardcode_automatic_RC \
18043     module_cmds_RC \
18044     module_expsym_cmds_RC \
18045     lt_cv_prog_compiler_c_o_RC \
18046     exclude_expsyms_RC \
18047     include_expsyms_RC; do
18048
18049     case $var in
18050     old_archive_cmds_RC | \
18051     old_archive_from_new_cmds_RC | \
18052     archive_cmds_RC | \
18053     archive_expsym_cmds_RC | \
18054     module_cmds_RC | \
18055     module_expsym_cmds_RC | \
18056     old_archive_from_expsyms_cmds_RC | \
18057     export_symbols_cmds_RC | \
18058     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18059     postinstall_cmds | postuninstall_cmds | \
18060     old_postinstall_cmds | old_postuninstall_cmds | \
18061     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18062       # Double-quote double-evaled strings.
18063       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18064       ;;
18065     *)
18066       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18067       ;;
18068     esac
18069   done
18070
18071   case $lt_echo in
18072   *'\$0 --fallback-echo"')
18073     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18074     ;;
18075   esac
18076
18077 cfgfile="$ofile"
18078
18079   cat <<__EOF__ >> "$cfgfile"
18080 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18081
18082 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18083
18084 # Shell to use when invoking shell scripts.
18085 SHELL=$lt_SHELL
18086
18087 # Whether or not to build shared libraries.
18088 build_libtool_libs=$enable_shared
18089
18090 # Whether or not to build static libraries.
18091 build_old_libs=$enable_static
18092
18093 # Whether or not to add -lc for building shared libraries.
18094 build_libtool_need_lc=$archive_cmds_need_lc_RC
18095
18096 # Whether or not to disallow shared libs when runtime libs are static
18097 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18098
18099 # Whether or not to optimize for fast installation.
18100 fast_install=$enable_fast_install
18101
18102 # The host system.
18103 host_alias=$host_alias
18104 host=$host
18105
18106 # An echo program that does not interpret backslashes.
18107 echo=$lt_echo
18108
18109 # The archiver.
18110 AR=$lt_AR
18111 AR_FLAGS=$lt_AR_FLAGS
18112
18113 # A C compiler.
18114 LTCC=$lt_LTCC
18115
18116 # A language-specific compiler.
18117 CC=$lt_compiler_RC
18118
18119 # Is the compiler the GNU C compiler?
18120 with_gcc=$GCC_RC
18121
18122 # An ERE matcher.
18123 EGREP=$lt_EGREP
18124
18125 # The linker used to build libraries.
18126 LD=$lt_LD_RC
18127
18128 # Whether we need hard or soft links.
18129 LN_S=$lt_LN_S
18130
18131 # A BSD-compatible nm program.
18132 NM=$lt_NM
18133
18134 # A symbol stripping program
18135 STRIP=$STRIP
18136
18137 # Used to examine libraries when file_magic_cmd begins "file"
18138 MAGIC_CMD=$MAGIC_CMD
18139
18140 # Used on cygwin: DLL creation program.
18141 DLLTOOL="$DLLTOOL"
18142
18143 # Used on cygwin: object dumper.
18144 OBJDUMP="$OBJDUMP"
18145
18146 # Used on cygwin: assembler.
18147 AS="$AS"
18148
18149 # The name of the directory that contains temporary libtool files.
18150 objdir=$objdir
18151
18152 # How to create reloadable object files.
18153 reload_flag=$lt_reload_flag
18154 reload_cmds=$lt_reload_cmds
18155
18156 # How to pass a linker flag through the compiler.
18157 wl=$lt_lt_prog_compiler_wl_RC
18158
18159 # Object file suffix (normally "o").
18160 objext="$ac_objext"
18161
18162 # Old archive suffix (normally "a").
18163 libext="$libext"
18164
18165 # Shared library suffix (normally ".so").
18166 shrext='$shrext'
18167
18168 # Executable file suffix (normally "").
18169 exeext="$exeext"
18170
18171 # Additional compiler flags for building library objects.
18172 pic_flag=$lt_lt_prog_compiler_pic_RC
18173 pic_mode=$pic_mode
18174
18175 # What is the maximum length of a command?
18176 max_cmd_len=$lt_cv_sys_max_cmd_len
18177
18178 # Does compiler simultaneously support -c and -o options?
18179 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18180
18181 # Must we lock files when doing compilation ?
18182 need_locks=$lt_need_locks
18183
18184 # Do we need the lib prefix for modules?
18185 need_lib_prefix=$need_lib_prefix
18186
18187 # Do we need a version for libraries?
18188 need_version=$need_version
18189
18190 # Whether dlopen is supported.
18191 dlopen_support=$enable_dlopen
18192
18193 # Whether dlopen of programs is supported.
18194 dlopen_self=$enable_dlopen_self
18195
18196 # Whether dlopen of statically linked programs is supported.
18197 dlopen_self_static=$enable_dlopen_self_static
18198
18199 # Compiler flag to prevent dynamic linking.
18200 link_static_flag=$lt_lt_prog_compiler_static_RC
18201
18202 # Compiler flag to turn off builtin functions.
18203 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18204
18205 # Compiler flag to allow reflexive dlopens.
18206 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18207
18208 # Compiler flag to generate shared objects directly from archives.
18209 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18210
18211 # Compiler flag to generate thread-safe objects.
18212 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18213
18214 # Library versioning type.
18215 version_type=$version_type
18216
18217 # Format of library name prefix.
18218 libname_spec=$lt_libname_spec
18219
18220 # List of archive names.  First name is the real one, the rest are links.
18221 # The last name is the one that the linker finds with -lNAME.
18222 library_names_spec=$lt_library_names_spec
18223
18224 # The coded name of the library, if different from the real name.
18225 soname_spec=$lt_soname_spec
18226
18227 # Commands used to build and install an old-style archive.
18228 RANLIB=$lt_RANLIB
18229 old_archive_cmds=$lt_old_archive_cmds_RC
18230 old_postinstall_cmds=$lt_old_postinstall_cmds
18231 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18232
18233 # Create an old-style archive from a shared archive.
18234 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18235
18236 # Create a temporary old-style archive to link instead of a shared archive.
18237 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18238
18239 # Commands used to build and install a shared archive.
18240 archive_cmds=$lt_archive_cmds_RC
18241 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18242 postinstall_cmds=$lt_postinstall_cmds
18243 postuninstall_cmds=$lt_postuninstall_cmds
18244
18245 # Commands used to build a loadable module (assumed same as above if empty)
18246 module_cmds=$lt_module_cmds_RC
18247 module_expsym_cmds=$lt_module_expsym_cmds_RC
18248
18249 # Commands to strip libraries.
18250 old_striplib=$lt_old_striplib
18251 striplib=$lt_striplib
18252
18253 # Dependencies to place before the objects being linked to create a
18254 # shared library.
18255 predep_objects=$lt_predep_objects_RC
18256
18257 # Dependencies to place after the objects being linked to create a
18258 # shared library.
18259 postdep_objects=$lt_postdep_objects_RC
18260
18261 # Dependencies to place before the objects being linked to create a
18262 # shared library.
18263 predeps=$lt_predeps_RC
18264
18265 # Dependencies to place after the objects being linked to create a
18266 # shared library.
18267 postdeps=$lt_postdeps_RC
18268
18269 # The library search path used internally by the compiler when linking
18270 # a shared library.
18271 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18272
18273 # Method to check whether dependent libraries are shared objects.
18274 deplibs_check_method=$lt_deplibs_check_method
18275
18276 # Command to use when deplibs_check_method == file_magic.
18277 file_magic_cmd=$lt_file_magic_cmd
18278
18279 # Flag that allows shared libraries with undefined symbols to be built.
18280 allow_undefined_flag=$lt_allow_undefined_flag_RC
18281
18282 # Flag that forces no undefined symbols.
18283 no_undefined_flag=$lt_no_undefined_flag_RC
18284
18285 # Commands used to finish a libtool library installation in a directory.
18286 finish_cmds=$lt_finish_cmds
18287
18288 # Same as above, but a single script fragment to be evaled but not shown.
18289 finish_eval=$lt_finish_eval
18290
18291 # Take the output of nm and produce a listing of raw symbols and C names.
18292 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18293
18294 # Transform the output of nm in a proper C declaration
18295 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18296
18297 # Transform the output of nm in a C name address pair
18298 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18299
18300 # This is the shared library runtime path variable.
18301 runpath_var=$runpath_var
18302
18303 # This is the shared library path variable.
18304 shlibpath_var=$shlibpath_var
18305
18306 # Is shlibpath searched before the hard-coded library search path?
18307 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18308
18309 # How to hardcode a shared library path into an executable.
18310 hardcode_action=$hardcode_action_RC
18311
18312 # Whether we should hardcode library paths into libraries.
18313 hardcode_into_libs=$hardcode_into_libs
18314
18315 # Flag to hardcode \$libdir into a binary during linking.
18316 # This must work even if \$libdir does not exist.
18317 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18318
18319 # If ld is used when linking, flag to hardcode \$libdir into
18320 # a binary during linking. This must work even if \$libdir does
18321 # not exist.
18322 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18323
18324 # Whether we need a single -rpath flag with a separated argument.
18325 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18326
18327 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18328 # resulting binary.
18329 hardcode_direct=$hardcode_direct_RC
18330
18331 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18332 # resulting binary.
18333 hardcode_minus_L=$hardcode_minus_L_RC
18334
18335 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18336 # the resulting binary.
18337 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18338
18339 # Set to yes if building a shared library automatically hardcodes DIR into the library
18340 # and all subsequent libraries and executables linked against it.
18341 hardcode_automatic=$hardcode_automatic_RC
18342
18343 # Variables whose values should be saved in libtool wrapper scripts and
18344 # restored at relink time.
18345 variables_saved_for_relink="$variables_saved_for_relink"
18346
18347 # Whether libtool must link a program against all its dependency libraries.
18348 link_all_deplibs=$link_all_deplibs_RC
18349
18350 # Compile-time system search path for libraries
18351 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18352
18353 # Run-time system search path for libraries
18354 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18355
18356 # Fix the shell variable \$srcfile for the compiler.
18357 fix_srcfile_path="$fix_srcfile_path_RC"
18358
18359 # Set to yes if exported symbols are required.
18360 always_export_symbols=$always_export_symbols_RC
18361
18362 # The commands to list exported symbols.
18363 export_symbols_cmds=$lt_export_symbols_cmds_RC
18364
18365 # The commands to extract the exported symbol list from a shared archive.
18366 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18367
18368 # Symbols that should not be listed in the preloaded symbols.
18369 exclude_expsyms=$lt_exclude_expsyms_RC
18370
18371 # Symbols that must always be exported.
18372 include_expsyms=$lt_include_expsyms_RC
18373
18374 # ### END LIBTOOL TAG CONFIG: $tagname
18375
18376 __EOF__
18377
18378
18379 else
18380   # If there is no Makefile yet, we rely on a make rule to execute
18381   # `config.status --recheck' to rerun these tests and create the
18382   # libtool script then.
18383   test -f Makefile && make "$ltmain"
18384 fi
18385
18386
18387 ac_ext=c
18388 ac_cpp='$CPP $CPPFLAGS'
18389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18392
18393 CC="$lt_save_CC"
18394
18395         ;;
18396
18397       *)
18398         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18399 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18400    { (exit 1); exit 1; }; }
18401         ;;
18402       esac
18403
18404       # Append the new tag name to the list of available tags.
18405       if test -n "$tagname" ; then
18406       available_tags="$available_tags $tagname"
18407     fi
18408     fi
18409   done
18410   IFS="$lt_save_ifs"
18411
18412   # Now substitute the updated list of available tags.
18413   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18414     mv "${ofile}T" "$ofile"
18415     chmod +x "$ofile"
18416   else
18417     rm -f "${ofile}T"
18418     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18419 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18420    { (exit 1); exit 1; }; }
18421   fi
18422 fi
18423
18424
18425
18426 # This can be used to rebuild libtool when needed
18427 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18428
18429 # Always use our own libtool.
18430 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18431
18432 # Prevent multiple expansion
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454 # Extract the first word of "pwd", so it can be a program name with args.
18455 set dummy pwd; ac_word=$2
18456 echo "$as_me:$LINENO: checking for $ac_word" >&5
18457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18458 if test "${ac_cv_path_RPWD+set}" = set; then
18459   echo $ECHO_N "(cached) $ECHO_C" >&6
18460 else
18461   case $RPWD in
18462   [\\/]* | ?:[\\/]*)
18463   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18464   ;;
18465   *)
18466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18467 for as_dir in $PATH
18468 do
18469   IFS=$as_save_IFS
18470   test -z "$as_dir" && as_dir=.
18471   for ac_exec_ext in '' $ac_executable_extensions; do
18472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18473     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18475     break 2
18476   fi
18477 done
18478 done
18479
18480   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18481   ;;
18482 esac
18483 fi
18484 RPWD=$ac_cv_path_RPWD
18485
18486 if test -n "$RPWD"; then
18487   echo "$as_me:$LINENO: result: $RPWD" >&5
18488 echo "${ECHO_T}$RPWD" >&6
18489 else
18490   echo "$as_me:$LINENO: result: no" >&5
18491 echo "${ECHO_T}no" >&6
18492 fi
18493
18494 if test ${RPWD} = "false"
18495 then
18496         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18497 echo "$as_me: error: pwd required but not found" >&2;}
18498    { (exit 1); exit 1; }; }
18499 fi
18500
18501 # Extract the first word of "ar", so it can be a program name with args.
18502 set dummy ar; ac_word=$2
18503 echo "$as_me:$LINENO: checking for $ac_word" >&5
18504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18505 if test "${ac_cv_path_AR+set}" = set; then
18506   echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508   case $AR in
18509   [\\/]* | ?:[\\/]*)
18510   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18511   ;;
18512   *)
18513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18514 for as_dir in $PATH
18515 do
18516   IFS=$as_save_IFS
18517   test -z "$as_dir" && as_dir=.
18518   for ac_exec_ext in '' $ac_executable_extensions; do
18519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18520     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18522     break 2
18523   fi
18524 done
18525 done
18526
18527   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18528   ;;
18529 esac
18530 fi
18531 AR=$ac_cv_path_AR
18532
18533 if test -n "$AR"; then
18534   echo "$as_me:$LINENO: result: $AR" >&5
18535 echo "${ECHO_T}$AR" >&6
18536 else
18537   echo "$as_me:$LINENO: result: no" >&5
18538 echo "${ECHO_T}no" >&6
18539 fi
18540
18541 if test ${AR} = "false"
18542 then
18543         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18544 echo "$as_me: error: ar required but not found" >&2;}
18545    { (exit 1); exit 1; }; }
18546 fi
18547
18548 # Extract the first word of "sed", so it can be a program name with args.
18549 set dummy sed; ac_word=$2
18550 echo "$as_me:$LINENO: checking for $ac_word" >&5
18551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18552 if test "${ac_cv_path_SED+set}" = set; then
18553   echo $ECHO_N "(cached) $ECHO_C" >&6
18554 else
18555   case $SED in
18556   [\\/]* | ?:[\\/]*)
18557   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18558   ;;
18559   *)
18560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18561 for as_dir in $PATH
18562 do
18563   IFS=$as_save_IFS
18564   test -z "$as_dir" && as_dir=.
18565   for ac_exec_ext in '' $ac_executable_extensions; do
18566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18567     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18569     break 2
18570   fi
18571 done
18572 done
18573
18574   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18575   ;;
18576 esac
18577 fi
18578 SED=$ac_cv_path_SED
18579
18580 if test -n "$SED"; then
18581   echo "$as_me:$LINENO: result: $SED" >&5
18582 echo "${ECHO_T}$SED" >&6
18583 else
18584   echo "$as_me:$LINENO: result: no" >&5
18585 echo "${ECHO_T}no" >&6
18586 fi
18587
18588 if test ${SED} = "false"
18589 then
18590         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18591 echo "$as_me: error: sed required but not found" >&2;}
18592    { (exit 1); exit 1; }; }
18593 fi
18594
18595 # Extract the first word of "rm", so it can be a program name with args.
18596 set dummy rm; ac_word=$2
18597 echo "$as_me:$LINENO: checking for $ac_word" >&5
18598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18599 if test "${ac_cv_path_RM+set}" = set; then
18600   echo $ECHO_N "(cached) $ECHO_C" >&6
18601 else
18602   case $RM in
18603   [\\/]* | ?:[\\/]*)
18604   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18605   ;;
18606   *)
18607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18608 for as_dir in $PATH
18609 do
18610   IFS=$as_save_IFS
18611   test -z "$as_dir" && as_dir=.
18612   for ac_exec_ext in '' $ac_executable_extensions; do
18613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18614     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18616     break 2
18617   fi
18618 done
18619 done
18620
18621   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18622   ;;
18623 esac
18624 fi
18625 RM=$ac_cv_path_RM
18626
18627 if test -n "$RM"; then
18628   echo "$as_me:$LINENO: result: $RM" >&5
18629 echo "${ECHO_T}$RM" >&6
18630 else
18631   echo "$as_me:$LINENO: result: no" >&5
18632 echo "${ECHO_T}no" >&6
18633 fi
18634
18635 if test ${RM} = "false"
18636 then
18637         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18638 echo "$as_me: error: rm required but not found" >&2;}
18639    { (exit 1); exit 1; }; }
18640 fi
18641
18642 # Extract the first word of "echo", so it can be a program name with args.
18643 set dummy echo; ac_word=$2
18644 echo "$as_me:$LINENO: checking for $ac_word" >&5
18645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18646 if test "${ac_cv_path_ECHO+set}" = set; then
18647   echo $ECHO_N "(cached) $ECHO_C" >&6
18648 else
18649   case $ECHO in
18650   [\\/]* | ?:[\\/]*)
18651   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18652   ;;
18653   *)
18654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18655 for as_dir in $PATH
18656 do
18657   IFS=$as_save_IFS
18658   test -z "$as_dir" && as_dir=.
18659   for ac_exec_ext in '' $ac_executable_extensions; do
18660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18661     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18663     break 2
18664   fi
18665 done
18666 done
18667
18668   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18669   ;;
18670 esac
18671 fi
18672 ECHO=$ac_cv_path_ECHO
18673
18674 if test -n "$ECHO"; then
18675   echo "$as_me:$LINENO: result: $ECHO" >&5
18676 echo "${ECHO_T}$ECHO" >&6
18677 else
18678   echo "$as_me:$LINENO: result: no" >&5
18679 echo "${ECHO_T}no" >&6
18680 fi
18681
18682 if test ${ECHO} = "false"
18683 then
18684         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18685 echo "$as_me: error: echo required but not found" >&2;}
18686    { (exit 1); exit 1; }; }
18687 fi
18688
18689 # Extract the first word of "mkdir", so it can be a program name with args.
18690 set dummy mkdir; ac_word=$2
18691 echo "$as_me:$LINENO: checking for $ac_word" >&5
18692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18693 if test "${ac_cv_path_MKDIR+set}" = set; then
18694   echo $ECHO_N "(cached) $ECHO_C" >&6
18695 else
18696   case $MKDIR in
18697   [\\/]* | ?:[\\/]*)
18698   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18699   ;;
18700   *)
18701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18702 for as_dir in $PATH
18703 do
18704   IFS=$as_save_IFS
18705   test -z "$as_dir" && as_dir=.
18706   for ac_exec_ext in '' $ac_executable_extensions; do
18707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18708     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18710     break 2
18711   fi
18712 done
18713 done
18714
18715   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18716   ;;
18717 esac
18718 fi
18719 MKDIR=$ac_cv_path_MKDIR
18720
18721 if test -n "$MKDIR"; then
18722   echo "$as_me:$LINENO: result: $MKDIR" >&5
18723 echo "${ECHO_T}$MKDIR" >&6
18724 else
18725   echo "$as_me:$LINENO: result: no" >&5
18726 echo "${ECHO_T}no" >&6
18727 fi
18728
18729 if test ${MKDIR} = "false"
18730 then
18731         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18732 echo "$as_me: error: mkdir required but not found" >&2;}
18733    { (exit 1); exit 1; }; }
18734 fi
18735
18736 # Extract the first word of "date", so it can be a program name with args.
18737 set dummy date; ac_word=$2
18738 echo "$as_me:$LINENO: checking for $ac_word" >&5
18739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18740 if test "${ac_cv_path_DATE+set}" = set; then
18741   echo $ECHO_N "(cached) $ECHO_C" >&6
18742 else
18743   case $DATE in
18744   [\\/]* | ?:[\\/]*)
18745   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18746   ;;
18747   *)
18748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18749 for as_dir in $PATH
18750 do
18751   IFS=$as_save_IFS
18752   test -z "$as_dir" && as_dir=.
18753   for ac_exec_ext in '' $ac_executable_extensions; do
18754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18755     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18757     break 2
18758   fi
18759 done
18760 done
18761
18762   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18763   ;;
18764 esac
18765 fi
18766 DATE=$ac_cv_path_DATE
18767
18768 if test -n "$DATE"; then
18769   echo "$as_me:$LINENO: result: $DATE" >&5
18770 echo "${ECHO_T}$DATE" >&6
18771 else
18772   echo "$as_me:$LINENO: result: no" >&5
18773 echo "${ECHO_T}no" >&6
18774 fi
18775
18776 if test ${DATE} = "false"
18777 then
18778         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18779 echo "$as_me: error: date required but not found" >&2;}
18780    { (exit 1); exit 1; }; }
18781 fi
18782
18783 # Extract the first word of "mv", so it can be a program name with args.
18784 set dummy mv; ac_word=$2
18785 echo "$as_me:$LINENO: checking for $ac_word" >&5
18786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18787 if test "${ac_cv_path_MV+set}" = set; then
18788   echo $ECHO_N "(cached) $ECHO_C" >&6
18789 else
18790   case $MV in
18791   [\\/]* | ?:[\\/]*)
18792   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18793   ;;
18794   *)
18795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18796 for as_dir in $PATH
18797 do
18798   IFS=$as_save_IFS
18799   test -z "$as_dir" && as_dir=.
18800   for ac_exec_ext in '' $ac_executable_extensions; do
18801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18802     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18804     break 2
18805   fi
18806 done
18807 done
18808
18809   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18810   ;;
18811 esac
18812 fi
18813 MV=$ac_cv_path_MV
18814
18815 if test -n "$MV"; then
18816   echo "$as_me:$LINENO: result: $MV" >&5
18817 echo "${ECHO_T}$MV" >&6
18818 else
18819   echo "$as_me:$LINENO: result: no" >&5
18820 echo "${ECHO_T}no" >&6
18821 fi
18822
18823 if test ${MV} = "false"
18824 then
18825         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18826 echo "$as_me: error: mv required but not found" >&2;}
18827    { (exit 1); exit 1; }; }
18828 fi
18829
18830 # Extract the first word of "dot", so it can be a program name with args.
18831 set dummy dot; ac_word=$2
18832 echo "$as_me:$LINENO: checking for $ac_word" >&5
18833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18834 if test "${ac_cv_path_DOT+set}" = set; then
18835   echo $ECHO_N "(cached) $ECHO_C" >&6
18836 else
18837   case $DOT in
18838   [\\/]* | ?:[\\/]*)
18839   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18840   ;;
18841   *)
18842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18843 for as_dir in $PATH
18844 do
18845   IFS=$as_save_IFS
18846   test -z "$as_dir" && as_dir=.
18847   for ac_exec_ext in '' $ac_executable_extensions; do
18848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18849     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18851     break 2
18852   fi
18853 done
18854 done
18855
18856   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18857   ;;
18858 esac
18859 fi
18860 DOT=$ac_cv_path_DOT
18861
18862 if test -n "$DOT"; then
18863   echo "$as_me:$LINENO: result: $DOT" >&5
18864 echo "${ECHO_T}$DOT" >&6
18865 else
18866   echo "$as_me:$LINENO: result: no" >&5
18867 echo "${ECHO_T}no" >&6
18868 fi
18869
18870
18871 # Extract the first word of "etags", so it can be a program name with args.
18872 set dummy etags; ac_word=$2
18873 echo "$as_me:$LINENO: checking for $ac_word" >&5
18874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18875 if test "${ac_cv_path_ETAGS+set}" = set; then
18876   echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878   case $ETAGS in
18879   [\\/]* | ?:[\\/]*)
18880   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18881   ;;
18882   *)
18883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18884 for as_dir in $PATH
18885 do
18886   IFS=$as_save_IFS
18887   test -z "$as_dir" && as_dir=.
18888   for ac_exec_ext in '' $ac_executable_extensions; do
18889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18890     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18892     break 2
18893   fi
18894 done
18895 done
18896
18897   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18898   ;;
18899 esac
18900 fi
18901 ETAGS=$ac_cv_path_ETAGS
18902
18903 if test -n "$ETAGS"; then
18904   echo "$as_me:$LINENO: result: $ETAGS" >&5
18905 echo "${ECHO_T}$ETAGS" >&6
18906 else
18907   echo "$as_me:$LINENO: result: no" >&5
18908 echo "${ECHO_T}no" >&6
18909 fi
18910
18911
18912 # Extract the first word of "purify", so it can be a program name with args.
18913 set dummy purify; ac_word=$2
18914 echo "$as_me:$LINENO: checking for $ac_word" >&5
18915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18916 if test "${ac_cv_path_PURIFY+set}" = set; then
18917   echo $ECHO_N "(cached) $ECHO_C" >&6
18918 else
18919   case $PURIFY in
18920   [\\/]* | ?:[\\/]*)
18921   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18922   ;;
18923   *)
18924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18925 for as_dir in $PATH
18926 do
18927   IFS=$as_save_IFS
18928   test -z "$as_dir" && as_dir=.
18929   for ac_exec_ext in '' $ac_executable_extensions; do
18930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18931     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18933     break 2
18934   fi
18935 done
18936 done
18937
18938   test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
18939   ;;
18940 esac
18941 fi
18942 PURIFY=$ac_cv_path_PURIFY
18943
18944 if test -n "$PURIFY"; then
18945   echo "$as_me:$LINENO: result: $PURIFY" >&5
18946 echo "${ECHO_T}$PURIFY" >&6
18947 else
18948   echo "$as_me:$LINENO: result: no" >&5
18949 echo "${ECHO_T}no" >&6
18950 fi
18951
18952
18953 # Extract the first word of "python", so it can be a program name with args.
18954 set dummy python; ac_word=$2
18955 echo "$as_me:$LINENO: checking for $ac_word" >&5
18956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18957 if test "${ac_cv_path_PYTHON+set}" = set; then
18958   echo $ECHO_N "(cached) $ECHO_C" >&6
18959 else
18960   case $PYTHON in
18961   [\\/]* | ?:[\\/]*)
18962   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18963   ;;
18964   *)
18965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18966 for as_dir in $PATH
18967 do
18968   IFS=$as_save_IFS
18969   test -z "$as_dir" && as_dir=.
18970   for ac_exec_ext in '' $ac_executable_extensions; do
18971   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18972     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18974     break 2
18975   fi
18976 done
18977 done
18978
18979   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18980   ;;
18981 esac
18982 fi
18983 PYTHON=$ac_cv_path_PYTHON
18984
18985 if test -n "$PYTHON"; then
18986   echo "$as_me:$LINENO: result: $PYTHON" >&5
18987 echo "${ECHO_T}$PYTHON" >&6
18988 else
18989   echo "$as_me:$LINENO: result: no" >&5
18990 echo "${ECHO_T}no" >&6
18991 fi
18992
18993 if test ${PYTHON} = "false"
18994 then
18995         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18996 echo "$as_me: WARNING: python required but not found" >&2;}
18997 fi
18998
18999 # Extract the first word of "qmtest", so it can be a program name with args.
19000 set dummy qmtest; ac_word=$2
19001 echo "$as_me:$LINENO: checking for $ac_word" >&5
19002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19003 if test "${ac_cv_path_QMTEST+set}" = set; then
19004   echo $ECHO_N "(cached) $ECHO_C" >&6
19005 else
19006   case $QMTEST in
19007   [\\/]* | ?:[\\/]*)
19008   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19009   ;;
19010   *)
19011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19012 for as_dir in $PATH
19013 do
19014   IFS=$as_save_IFS
19015   test -z "$as_dir" && as_dir=.
19016   for ac_exec_ext in '' $ac_executable_extensions; do
19017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19018     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19020     break 2
19021   fi
19022 done
19023 done
19024
19025   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
19026   ;;
19027 esac
19028 fi
19029 QMTEST=$ac_cv_path_QMTEST
19030
19031 if test -n "$QMTEST"; then
19032   echo "$as_me:$LINENO: result: $QMTEST" >&5
19033 echo "${ECHO_T}$QMTEST" >&6
19034 else
19035   echo "$as_me:$LINENO: result: no" >&5
19036 echo "${ECHO_T}no" >&6
19037 fi
19038
19039 if test ${QMTEST} = "false"
19040 then
19041         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19042 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19043 fi
19044
19045 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19046 pymajor=`echo $pyversion | cut -d. -f1`
19047 pyminor=`echo $pyversion | cut -d. -f2`
19048
19049 if test "$pymajor" -ge "2"
19050 then
19051         if test "$pymajor" -eq "2"
19052         then
19053                 if test "$pyminor" -lt "2"
19054                 then
19055                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19056 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19057    { (exit 1); exit 1; }; }
19058                 fi
19059         fi
19060 else
19061         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19062 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19063    { (exit 1); exit 1; }; }
19064 fi
19065
19066
19067
19068
19069
19070 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19071 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19072 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19073   echo $ECHO_N "(cached) $ECHO_C" >&6
19074 else
19075   ac_check_lib_save_LIBS=$LIBS
19076 LIBS="-lelf  $LIBS"
19077 cat >conftest.$ac_ext <<_ACEOF
19078 #line $LINENO "configure"
19079 /* confdefs.h.  */
19080 _ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h.  */
19084
19085 /* Override any gcc2 internal prototype to avoid an error.  */
19086 #ifdef __cplusplus
19087 extern "C"
19088 #endif
19089 /* We use char because int might match the return type of a gcc2
19090    builtin and then its argument prototype would still apply.  */
19091 char elf_begin ();
19092 int
19093 main ()
19094 {
19095 elf_begin ();
19096   ;
19097   return 0;
19098 }
19099 _ACEOF
19100 rm -f conftest.$ac_objext conftest$ac_exeext
19101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19102   (eval $ac_link) 2>&5
19103   ac_status=$?
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); } &&
19106          { ac_try='test -s conftest$ac_exeext'
19107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108   (eval $ac_try) 2>&5
19109   ac_status=$?
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); }; }; then
19112   ac_cv_lib_elf_elf_begin=yes
19113 else
19114   echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19116
19117 ac_cv_lib_elf_elf_begin=no
19118 fi
19119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19120 LIBS=$ac_check_lib_save_LIBS
19121 fi
19122 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19123 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19124 if test $ac_cv_lib_elf_elf_begin = yes; then
19125   cat >>confdefs.h <<_ACEOF
19126 #define HAVE_LIBELF 1
19127 _ACEOF
19128
19129   LIBS="-lelf $LIBS"
19130
19131 fi
19132
19133
19134 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19135 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19136 if test "${ac_cv_search_dlopen+set}" = set; then
19137   echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139   ac_func_search_save_LIBS=$LIBS
19140 ac_cv_search_dlopen=no
19141 cat >conftest.$ac_ext <<_ACEOF
19142 #line $LINENO "configure"
19143 /* confdefs.h.  */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h.  */
19148
19149 /* Override any gcc2 internal prototype to avoid an error.  */
19150 #ifdef __cplusplus
19151 extern "C"
19152 #endif
19153 /* We use char because int might match the return type of a gcc2
19154    builtin and then its argument prototype would still apply.  */
19155 char dlopen ();
19156 int
19157 main ()
19158 {
19159 dlopen ();
19160   ;
19161   return 0;
19162 }
19163 _ACEOF
19164 rm -f conftest.$ac_objext conftest$ac_exeext
19165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19166   (eval $ac_link) 2>&5
19167   ac_status=$?
19168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169   (exit $ac_status); } &&
19170          { ac_try='test -s conftest$ac_exeext'
19171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172   (eval $ac_try) 2>&5
19173   ac_status=$?
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); }; }; then
19176   ac_cv_search_dlopen="none required"
19177 else
19178   echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19180
19181 fi
19182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19183 if test "$ac_cv_search_dlopen" = no; then
19184   for ac_lib in dl; do
19185     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19186     cat >conftest.$ac_ext <<_ACEOF
19187 #line $LINENO "configure"
19188 /* confdefs.h.  */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h.  */
19193
19194 /* Override any gcc2 internal prototype to avoid an error.  */
19195 #ifdef __cplusplus
19196 extern "C"
19197 #endif
19198 /* We use char because int might match the return type of a gcc2
19199    builtin and then its argument prototype would still apply.  */
19200 char dlopen ();
19201 int
19202 main ()
19203 {
19204 dlopen ();
19205   ;
19206   return 0;
19207 }
19208 _ACEOF
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19211   (eval $ac_link) 2>&5
19212   ac_status=$?
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); } &&
19215          { ac_try='test -s conftest$ac_exeext'
19216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217   (eval $ac_try) 2>&5
19218   ac_status=$?
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); }; }; then
19221   ac_cv_search_dlopen="-l$ac_lib"
19222 break
19223 else
19224   echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227 fi
19228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19229   done
19230 fi
19231 LIBS=$ac_func_search_save_LIBS
19232 fi
19233 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19234 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19235 if test "$ac_cv_search_dlopen" != no; then
19236   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19237
19238 else
19239   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19240 echo "$as_me: error: dlopen() required but not found" >&2;}
19241    { (exit 1); exit 1; }; }
19242 fi
19243
19244
19245 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19246 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19247 if test "${ac_cv_search_mallinfo+set}" = set; then
19248   echo $ECHO_N "(cached) $ECHO_C" >&6
19249 else
19250   ac_func_search_save_LIBS=$LIBS
19251 ac_cv_search_mallinfo=no
19252 cat >conftest.$ac_ext <<_ACEOF
19253 #line $LINENO "configure"
19254 /* confdefs.h.  */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h.  */
19259
19260 /* Override any gcc2 internal prototype to avoid an error.  */
19261 #ifdef __cplusplus
19262 extern "C"
19263 #endif
19264 /* We use char because int might match the return type of a gcc2
19265    builtin and then its argument prototype would still apply.  */
19266 char mallinfo ();
19267 int
19268 main ()
19269 {
19270 mallinfo ();
19271   ;
19272   return 0;
19273 }
19274 _ACEOF
19275 rm -f conftest.$ac_objext conftest$ac_exeext
19276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19277   (eval $ac_link) 2>&5
19278   ac_status=$?
19279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280   (exit $ac_status); } &&
19281          { ac_try='test -s conftest$ac_exeext'
19282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283   (eval $ac_try) 2>&5
19284   ac_status=$?
19285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); }; }; then
19287   ac_cv_search_mallinfo="none required"
19288 else
19289   echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19291
19292 fi
19293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19294 if test "$ac_cv_search_mallinfo" = no; then
19295   for ac_lib in malloc; do
19296     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19297     cat >conftest.$ac_ext <<_ACEOF
19298 #line $LINENO "configure"
19299 /* confdefs.h.  */
19300 _ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h.  */
19304
19305 /* Override any gcc2 internal prototype to avoid an error.  */
19306 #ifdef __cplusplus
19307 extern "C"
19308 #endif
19309 /* We use char because int might match the return type of a gcc2
19310    builtin and then its argument prototype would still apply.  */
19311 char mallinfo ();
19312 int
19313 main ()
19314 {
19315 mallinfo ();
19316   ;
19317   return 0;
19318 }
19319 _ACEOF
19320 rm -f conftest.$ac_objext conftest$ac_exeext
19321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19322   (eval $ac_link) 2>&5
19323   ac_status=$?
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); } &&
19326          { ac_try='test -s conftest$ac_exeext'
19327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328   (eval $ac_try) 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; }; then
19332   ac_cv_search_mallinfo="-l$ac_lib"
19333 break
19334 else
19335   echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19337
19338 fi
19339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19340   done
19341 fi
19342 LIBS=$ac_func_search_save_LIBS
19343 fi
19344 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19345 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19346 if test "$ac_cv_search_mallinfo" != no; then
19347   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19348   cat >>confdefs.h <<\_ACEOF
19349 #define HAVE_MALLINFO 1
19350 _ACEOF
19351
19352 fi
19353
19354
19355
19356 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19357 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19358 if test "${ac_cv_header_stdc+set}" = set; then
19359   echo $ECHO_N "(cached) $ECHO_C" >&6
19360 else
19361   cat >conftest.$ac_ext <<_ACEOF
19362 #line $LINENO "configure"
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368 #include <stdlib.h>
19369 #include <stdarg.h>
19370 #include <string.h>
19371 #include <float.h>
19372
19373 int
19374 main ()
19375 {
19376
19377   ;
19378   return 0;
19379 }
19380 _ACEOF
19381 rm -f conftest.$ac_objext
19382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19383   (eval $ac_compile) 2>&5
19384   ac_status=$?
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); } &&
19387          { ac_try='test -s conftest.$ac_objext'
19388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389   (eval $ac_try) 2>&5
19390   ac_status=$?
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); }; }; then
19393   ac_cv_header_stdc=yes
19394 else
19395   echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19397
19398 ac_cv_header_stdc=no
19399 fi
19400 rm -f conftest.$ac_objext conftest.$ac_ext
19401
19402 if test $ac_cv_header_stdc = yes; then
19403   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19404   cat >conftest.$ac_ext <<_ACEOF
19405 #line $LINENO "configure"
19406 /* confdefs.h.  */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h.  */
19411 #include <string.h>
19412
19413 _ACEOF
19414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19415   $EGREP "memchr" >/dev/null 2>&1; then
19416   :
19417 else
19418   ac_cv_header_stdc=no
19419 fi
19420 rm -f conftest*
19421
19422 fi
19423
19424 if test $ac_cv_header_stdc = yes; then
19425   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19426   cat >conftest.$ac_ext <<_ACEOF
19427 #line $LINENO "configure"
19428 /* confdefs.h.  */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h.  */
19433 #include <stdlib.h>
19434
19435 _ACEOF
19436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19437   $EGREP "free" >/dev/null 2>&1; then
19438   :
19439 else
19440   ac_cv_header_stdc=no
19441 fi
19442 rm -f conftest*
19443
19444 fi
19445
19446 if test $ac_cv_header_stdc = yes; then
19447   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19448   if test "$cross_compiling" = yes; then
19449   :
19450 else
19451   cat >conftest.$ac_ext <<_ACEOF
19452 #line $LINENO "configure"
19453 /* confdefs.h.  */
19454 _ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h.  */
19458 #include <ctype.h>
19459 #if ((' ' & 0x0FF) == 0x020)
19460 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19461 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19462 #else
19463 # define ISLOWER(c) \
19464                    (('a' <= (c) && (c) <= 'i') \
19465                      || ('j' <= (c) && (c) <= 'r') \
19466                      || ('s' <= (c) && (c) <= 'z'))
19467 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19468 #endif
19469
19470 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19471 int
19472 main ()
19473 {
19474   int i;
19475   for (i = 0; i < 256; i++)
19476     if (XOR (islower (i), ISLOWER (i))
19477         || toupper (i) != TOUPPER (i))
19478       exit(2);
19479   exit (0);
19480 }
19481 _ACEOF
19482 rm -f conftest$ac_exeext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19484   (eval $ac_link) 2>&5
19485   ac_status=$?
19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489   (eval $ac_try) 2>&5
19490   ac_status=$?
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); }; }; then
19493   :
19494 else
19495   echo "$as_me: program exited with status $ac_status" >&5
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19498
19499 ( exit $ac_status )
19500 ac_cv_header_stdc=no
19501 fi
19502 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19503 fi
19504 fi
19505 fi
19506 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19507 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19508 if test $ac_cv_header_stdc = yes; then
19509
19510 cat >>confdefs.h <<\_ACEOF
19511 #define STDC_HEADERS 1
19512 _ACEOF
19513
19514 fi
19515
19516 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19517 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19518 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19519   echo $ECHO_N "(cached) $ECHO_C" >&6
19520 else
19521   cat >conftest.$ac_ext <<_ACEOF
19522 #line $LINENO "configure"
19523 /* confdefs.h.  */
19524 _ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h.  */
19528 #include <sys/types.h>
19529 #include <sys/wait.h>
19530 #ifndef WEXITSTATUS
19531 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19532 #endif
19533 #ifndef WIFEXITED
19534 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19535 #endif
19536
19537 int
19538 main ()
19539 {
19540   int s;
19541   wait (&s);
19542   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19543   ;
19544   return 0;
19545 }
19546 _ACEOF
19547 rm -f conftest.$ac_objext
19548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19549   (eval $ac_compile) 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); } &&
19553          { ac_try='test -s conftest.$ac_objext'
19554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555   (eval $ac_try) 2>&5
19556   ac_status=$?
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); }; }; then
19559   ac_cv_header_sys_wait_h=yes
19560 else
19561   echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19563
19564 ac_cv_header_sys_wait_h=no
19565 fi
19566 rm -f conftest.$ac_objext conftest.$ac_ext
19567 fi
19568 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19569 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19570 if test $ac_cv_header_sys_wait_h = yes; then
19571
19572 cat >>confdefs.h <<\_ACEOF
19573 #define HAVE_SYS_WAIT_H 1
19574 _ACEOF
19575
19576 fi
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19588 do
19589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19591   echo "$as_me:$LINENO: checking for $ac_header" >&5
19592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19594   echo $ECHO_N "(cached) $ECHO_C" >&6
19595 fi
19596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19598 else
19599   # Is the header compilable?
19600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19602 cat >conftest.$ac_ext <<_ACEOF
19603 #line $LINENO "configure"
19604 /* confdefs.h.  */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h.  */
19609 $ac_includes_default
19610 #include <$ac_header>
19611 _ACEOF
19612 rm -f conftest.$ac_objext
19613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19614   (eval $ac_compile) 2>&5
19615   ac_status=$?
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); } &&
19618          { ac_try='test -s conftest.$ac_objext'
19619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620   (eval $ac_try) 2>&5
19621   ac_status=$?
19622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623   (exit $ac_status); }; }; then
19624   ac_header_compiler=yes
19625 else
19626   echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19628
19629 ac_header_compiler=no
19630 fi
19631 rm -f conftest.$ac_objext conftest.$ac_ext
19632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19633 echo "${ECHO_T}$ac_header_compiler" >&6
19634
19635 # Is the header present?
19636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19638 cat >conftest.$ac_ext <<_ACEOF
19639 #line $LINENO "configure"
19640 /* confdefs.h.  */
19641 _ACEOF
19642 cat confdefs.h >>conftest.$ac_ext
19643 cat >>conftest.$ac_ext <<_ACEOF
19644 /* end confdefs.h.  */
19645 #include <$ac_header>
19646 _ACEOF
19647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19649   ac_status=$?
19650   grep -v '^ *+' conftest.er1 >conftest.err
19651   rm -f conftest.er1
19652   cat conftest.err >&5
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); } >/dev/null; then
19655   if test -s conftest.err; then
19656     ac_cpp_err=$ac_c_preproc_warn_flag
19657   else
19658     ac_cpp_err=
19659   fi
19660 else
19661   ac_cpp_err=yes
19662 fi
19663 if test -z "$ac_cpp_err"; then
19664   ac_header_preproc=yes
19665 else
19666   echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19668
19669   ac_header_preproc=no
19670 fi
19671 rm -f conftest.err conftest.$ac_ext
19672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19673 echo "${ECHO_T}$ac_header_preproc" >&6
19674
19675 # So?  What about this header?
19676 case $ac_header_compiler:$ac_header_preproc in
19677   yes:no )
19678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19682     (
19683       cat <<\_ASBOX
19684 ## ------------------------------------ ##
19685 ## Report this to bug-autoconf@gnu.org. ##
19686 ## ------------------------------------ ##
19687 _ASBOX
19688     ) |
19689       sed "s/^/$as_me: WARNING:     /" >&2
19690     ;;
19691   no:yes )
19692     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19694     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19698     (
19699       cat <<\_ASBOX
19700 ## ------------------------------------ ##
19701 ## Report this to bug-autoconf@gnu.org. ##
19702 ## ------------------------------------ ##
19703 _ASBOX
19704     ) |
19705       sed "s/^/$as_me: WARNING:     /" >&2
19706     ;;
19707 esac
19708 echo "$as_me:$LINENO: checking for $ac_header" >&5
19709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19711   echo $ECHO_N "(cached) $ECHO_C" >&6
19712 else
19713   eval "$as_ac_Header=$ac_header_preproc"
19714 fi
19715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19717
19718 fi
19719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19720   cat >>confdefs.h <<_ACEOF
19721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19722 _ACEOF
19723
19724 fi
19725
19726 done
19727
19728
19729
19730
19731
19732
19733 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19734 do
19735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19737   echo "$as_me:$LINENO: checking for $ac_header" >&5
19738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19740   echo $ECHO_N "(cached) $ECHO_C" >&6
19741 fi
19742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19744 else
19745   # Is the header compilable?
19746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19748 cat >conftest.$ac_ext <<_ACEOF
19749 #line $LINENO "configure"
19750 /* confdefs.h.  */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h.  */
19755 $ac_includes_default
19756 #include <$ac_header>
19757 _ACEOF
19758 rm -f conftest.$ac_objext
19759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19760   (eval $ac_compile) 2>&5
19761   ac_status=$?
19762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763   (exit $ac_status); } &&
19764          { ac_try='test -s conftest.$ac_objext'
19765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19766   (eval $ac_try) 2>&5
19767   ac_status=$?
19768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769   (exit $ac_status); }; }; then
19770   ac_header_compiler=yes
19771 else
19772   echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19774
19775 ac_header_compiler=no
19776 fi
19777 rm -f conftest.$ac_objext conftest.$ac_ext
19778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19779 echo "${ECHO_T}$ac_header_compiler" >&6
19780
19781 # Is the header present?
19782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19784 cat >conftest.$ac_ext <<_ACEOF
19785 #line $LINENO "configure"
19786 /* confdefs.h.  */
19787 _ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h.  */
19791 #include <$ac_header>
19792 _ACEOF
19793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19795   ac_status=$?
19796   grep -v '^ *+' conftest.er1 >conftest.err
19797   rm -f conftest.er1
19798   cat conftest.err >&5
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); } >/dev/null; then
19801   if test -s conftest.err; then
19802     ac_cpp_err=$ac_c_preproc_warn_flag
19803   else
19804     ac_cpp_err=
19805   fi
19806 else
19807   ac_cpp_err=yes
19808 fi
19809 if test -z "$ac_cpp_err"; then
19810   ac_header_preproc=yes
19811 else
19812   echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19814
19815   ac_header_preproc=no
19816 fi
19817 rm -f conftest.err conftest.$ac_ext
19818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19819 echo "${ECHO_T}$ac_header_preproc" >&6
19820
19821 # So?  What about this header?
19822 case $ac_header_compiler:$ac_header_preproc in
19823   yes:no )
19824     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19828     (
19829       cat <<\_ASBOX
19830 ## ------------------------------------ ##
19831 ## Report this to bug-autoconf@gnu.org. ##
19832 ## ------------------------------------ ##
19833 _ASBOX
19834     ) |
19835       sed "s/^/$as_me: WARNING:     /" >&2
19836     ;;
19837   no:yes )
19838     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19840     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19844     (
19845       cat <<\_ASBOX
19846 ## ------------------------------------ ##
19847 ## Report this to bug-autoconf@gnu.org. ##
19848 ## ------------------------------------ ##
19849 _ASBOX
19850     ) |
19851       sed "s/^/$as_me: WARNING:     /" >&2
19852     ;;
19853 esac
19854 echo "$as_me:$LINENO: checking for $ac_header" >&5
19855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19857   echo $ECHO_N "(cached) $ECHO_C" >&6
19858 else
19859   eval "$as_ac_Header=$ac_header_preproc"
19860 fi
19861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19863
19864 fi
19865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19866   cat >>confdefs.h <<_ACEOF
19867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19868 _ACEOF
19869
19870 fi
19871
19872 done
19873
19874
19875
19876
19877 for ac_header in dlfcn.h link.h
19878 do
19879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19881   echo "$as_me:$LINENO: checking for $ac_header" >&5
19882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19884   echo $ECHO_N "(cached) $ECHO_C" >&6
19885 fi
19886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19888 else
19889   # Is the header compilable?
19890 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19892 cat >conftest.$ac_ext <<_ACEOF
19893 #line $LINENO "configure"
19894 /* confdefs.h.  */
19895 _ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h.  */
19899 $ac_includes_default
19900 #include <$ac_header>
19901 _ACEOF
19902 rm -f conftest.$ac_objext
19903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19904   (eval $ac_compile) 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); } &&
19908          { ac_try='test -s conftest.$ac_objext'
19909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910   (eval $ac_try) 2>&5
19911   ac_status=$?
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); }; }; then
19914   ac_header_compiler=yes
19915 else
19916   echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19918
19919 ac_header_compiler=no
19920 fi
19921 rm -f conftest.$ac_objext conftest.$ac_ext
19922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19923 echo "${ECHO_T}$ac_header_compiler" >&6
19924
19925 # Is the header present?
19926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19928 cat >conftest.$ac_ext <<_ACEOF
19929 #line $LINENO "configure"
19930 /* confdefs.h.  */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h.  */
19935 #include <$ac_header>
19936 _ACEOF
19937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19939   ac_status=$?
19940   grep -v '^ *+' conftest.er1 >conftest.err
19941   rm -f conftest.er1
19942   cat conftest.err >&5
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); } >/dev/null; then
19945   if test -s conftest.err; then
19946     ac_cpp_err=$ac_c_preproc_warn_flag
19947   else
19948     ac_cpp_err=
19949   fi
19950 else
19951   ac_cpp_err=yes
19952 fi
19953 if test -z "$ac_cpp_err"; then
19954   ac_header_preproc=yes
19955 else
19956   echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19958
19959   ac_header_preproc=no
19960 fi
19961 rm -f conftest.err conftest.$ac_ext
19962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19963 echo "${ECHO_T}$ac_header_preproc" >&6
19964
19965 # So?  What about this header?
19966 case $ac_header_compiler:$ac_header_preproc in
19967   yes:no )
19968     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19972     (
19973       cat <<\_ASBOX
19974 ## ------------------------------------ ##
19975 ## Report this to bug-autoconf@gnu.org. ##
19976 ## ------------------------------------ ##
19977 _ASBOX
19978     ) |
19979       sed "s/^/$as_me: WARNING:     /" >&2
19980     ;;
19981   no:yes )
19982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19984     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19988     (
19989       cat <<\_ASBOX
19990 ## ------------------------------------ ##
19991 ## Report this to bug-autoconf@gnu.org. ##
19992 ## ------------------------------------ ##
19993 _ASBOX
19994     ) |
19995       sed "s/^/$as_me: WARNING:     /" >&2
19996     ;;
19997 esac
19998 echo "$as_me:$LINENO: checking for $ac_header" >&5
19999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20001   echo $ECHO_N "(cached) $ECHO_C" >&6
20002 else
20003   eval "$as_ac_Header=$ac_header_preproc"
20004 fi
20005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20007
20008 fi
20009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20010   cat >>confdefs.h <<_ACEOF
20011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20012 _ACEOF
20013
20014 fi
20015
20016 done
20017
20018
20019
20020 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20021 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20022 if test "${ac_cv_c_const+set}" = set; then
20023   echo $ECHO_N "(cached) $ECHO_C" >&6
20024 else
20025   cat >conftest.$ac_ext <<_ACEOF
20026 #line $LINENO "configure"
20027 /* confdefs.h.  */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h.  */
20032
20033 int
20034 main ()
20035 {
20036 /* FIXME: Include the comments suggested by Paul. */
20037 #ifndef __cplusplus
20038   /* Ultrix mips cc rejects this.  */
20039   typedef int charset[2];
20040   const charset x;
20041   /* SunOS 4.1.1 cc rejects this.  */
20042   char const *const *ccp;
20043   char **p;
20044   /* NEC SVR4.0.2 mips cc rejects this.  */
20045   struct point {int x, y;};
20046   static struct point const zero = {0,0};
20047   /* AIX XL C 1.02.0.0 rejects this.
20048      It does not let you subtract one const X* pointer from another in
20049      an arm of an if-expression whose if-part is not a constant
20050      expression */
20051   const char *g = "string";
20052   ccp = &g + (g ? g-g : 0);
20053   /* HPUX 7.0 cc rejects these. */
20054   ++ccp;
20055   p = (char**) ccp;
20056   ccp = (char const *const *) p;
20057   { /* SCO 3.2v4 cc rejects this.  */
20058     char *t;
20059     char const *s = 0 ? (char *) 0 : (char const *) 0;
20060
20061     *t++ = 0;
20062   }
20063   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20064     int x[] = {25, 17};
20065     const int *foo = &x[0];
20066     ++foo;
20067   }
20068   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20069     typedef const int *iptr;
20070     iptr p = 0;
20071     ++p;
20072   }
20073   { /* AIX XL C 1.02.0.0 rejects this saying
20074        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20075     struct s { int j; const int *ap[3]; };
20076     struct s *b; b->j = 5;
20077   }
20078   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20079     const int foo = 10;
20080   }
20081 #endif
20082
20083   ;
20084   return 0;
20085 }
20086 _ACEOF
20087 rm -f conftest.$ac_objext
20088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20089   (eval $ac_compile) 2>&5
20090   ac_status=$?
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); } &&
20093          { ac_try='test -s conftest.$ac_objext'
20094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095   (eval $ac_try) 2>&5
20096   ac_status=$?
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); }; }; then
20099   ac_cv_c_const=yes
20100 else
20101   echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20103
20104 ac_cv_c_const=no
20105 fi
20106 rm -f conftest.$ac_objext conftest.$ac_ext
20107 fi
20108 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20109 echo "${ECHO_T}$ac_cv_c_const" >&6
20110 if test $ac_cv_c_const = no; then
20111
20112 cat >>confdefs.h <<\_ACEOF
20113 #define const
20114 _ACEOF
20115
20116 fi
20117
20118 echo "$as_me:$LINENO: checking for inline" >&5
20119 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20120 if test "${ac_cv_c_inline+set}" = set; then
20121   echo $ECHO_N "(cached) $ECHO_C" >&6
20122 else
20123   ac_cv_c_inline=no
20124 for ac_kw in inline __inline__ __inline; do
20125   cat >conftest.$ac_ext <<_ACEOF
20126 #line $LINENO "configure"
20127 /* confdefs.h.  */
20128 _ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h.  */
20132 #ifndef __cplusplus
20133 typedef int foo_t;
20134 static $ac_kw foo_t static_foo () {return 0; }
20135 $ac_kw foo_t foo () {return 0; }
20136 #endif
20137
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20141   (eval $ac_compile) 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } &&
20145          { ac_try='test -s conftest.$ac_objext'
20146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147   (eval $ac_try) 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); }; }; then
20151   ac_cv_c_inline=$ac_kw; break
20152 else
20153   echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20155
20156 fi
20157 rm -f conftest.$ac_objext conftest.$ac_ext
20158 done
20159
20160 fi
20161 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20162 echo "${ECHO_T}$ac_cv_c_inline" >&6
20163 case $ac_cv_c_inline in
20164   inline | yes) ;;
20165   no)
20166 cat >>confdefs.h <<\_ACEOF
20167 #define inline
20168 _ACEOF
20169  ;;
20170   *)  cat >>confdefs.h <<_ACEOF
20171 #define inline $ac_cv_c_inline
20172 _ACEOF
20173  ;;
20174 esac
20175
20176
20177 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20178 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20179 if test "${ac_cv_c_bigendian+set}" = set; then
20180   echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20182   # See if sys/param.h defines the BYTE_ORDER macro.
20183 cat >conftest.$ac_ext <<_ACEOF
20184 #line $LINENO "configure"
20185 /* confdefs.h.  */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h.  */
20190 #include <sys/types.h>
20191 #include <sys/param.h>
20192
20193 int
20194 main ()
20195 {
20196 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20197  bogus endian macros
20198 #endif
20199
20200   ;
20201   return 0;
20202 }
20203 _ACEOF
20204 rm -f conftest.$ac_objext
20205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20206   (eval $ac_compile) 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); } &&
20210          { ac_try='test -s conftest.$ac_objext'
20211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212   (eval $ac_try) 2>&5
20213   ac_status=$?
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); }; }; then
20216   # It does; now see whether it defined to BIG_ENDIAN or not.
20217 cat >conftest.$ac_ext <<_ACEOF
20218 #line $LINENO "configure"
20219 /* confdefs.h.  */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h.  */
20224 #include <sys/types.h>
20225 #include <sys/param.h>
20226
20227 int
20228 main ()
20229 {
20230 #if BYTE_ORDER != BIG_ENDIAN
20231  not big endian
20232 #endif
20233
20234   ;
20235   return 0;
20236 }
20237 _ACEOF
20238 rm -f conftest.$ac_objext
20239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20240   (eval $ac_compile) 2>&5
20241   ac_status=$?
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); } &&
20244          { ac_try='test -s conftest.$ac_objext'
20245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246   (eval $ac_try) 2>&5
20247   ac_status=$?
20248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249   (exit $ac_status); }; }; then
20250   ac_cv_c_bigendian=yes
20251 else
20252   echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20254
20255 ac_cv_c_bigendian=no
20256 fi
20257 rm -f conftest.$ac_objext conftest.$ac_ext
20258 else
20259   echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20261
20262 # It does not; compile a test program.
20263 if test "$cross_compiling" = yes; then
20264   # try to guess the endianness by grepping values into an object file
20265   ac_cv_c_bigendian=unknown
20266   cat >conftest.$ac_ext <<_ACEOF
20267 #line $LINENO "configure"
20268 /* confdefs.h.  */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h.  */
20273 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20274 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20275 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20276 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20277 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20278 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20279 int
20280 main ()
20281 {
20282  _ascii (); _ebcdic ();
20283   ;
20284   return 0;
20285 }
20286 _ACEOF
20287 rm -f conftest.$ac_objext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20289   (eval $ac_compile) 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); } &&
20293          { ac_try='test -s conftest.$ac_objext'
20294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295   (eval $ac_try) 2>&5
20296   ac_status=$?
20297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298   (exit $ac_status); }; }; then
20299   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20300   ac_cv_c_bigendian=yes
20301 fi
20302 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20303   if test "$ac_cv_c_bigendian" = unknown; then
20304     ac_cv_c_bigendian=no
20305   else
20306     # finding both strings is unlikely to happen, but who knows?
20307     ac_cv_c_bigendian=unknown
20308   fi
20309 fi
20310 else
20311   echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20313
20314 fi
20315 rm -f conftest.$ac_objext conftest.$ac_ext
20316 else
20317   cat >conftest.$ac_ext <<_ACEOF
20318 #line $LINENO "configure"
20319 /* confdefs.h.  */
20320 _ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h.  */
20324 int
20325 main ()
20326 {
20327   /* Are we little or big endian?  From Harbison&Steele.  */
20328   union
20329   {
20330     long l;
20331     char c[sizeof (long)];
20332   } u;
20333   u.l = 1;
20334   exit (u.c[sizeof (long) - 1] == 1);
20335 }
20336 _ACEOF
20337 rm -f conftest$ac_exeext
20338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20339   (eval $ac_link) 2>&5
20340   ac_status=$?
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344   (eval $ac_try) 2>&5
20345   ac_status=$?
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); }; }; then
20348   ac_cv_c_bigendian=no
20349 else
20350   echo "$as_me: program exited with status $ac_status" >&5
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20353
20354 ( exit $ac_status )
20355 ac_cv_c_bigendian=yes
20356 fi
20357 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20358 fi
20359 fi
20360 rm -f conftest.$ac_objext conftest.$ac_ext
20361 fi
20362 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20363 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20364 case $ac_cv_c_bigendian in
20365   yes)
20366     cat >>confdefs.h <<\_ACEOF
20367 #define ENDIAN_BIG 1
20368 _ACEOF
20369  ;;
20370   no)
20371     cat >>confdefs.h <<\_ACEOF
20372 #define ENDIAN_LITTLE 1
20373 _ACEOF
20374  ;;
20375   *)
20376     { { echo "$as_me:$LINENO: error: unknown endianness
20377 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20378 echo "$as_me: error: unknown endianness
20379 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20380    { (exit 1); exit 1; }; } ;;
20381 esac
20382
20383
20384 echo "$as_me:$LINENO: checking for pid_t" >&5
20385 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20386 if test "${ac_cv_type_pid_t+set}" = set; then
20387   echo $ECHO_N "(cached) $ECHO_C" >&6
20388 else
20389   cat >conftest.$ac_ext <<_ACEOF
20390 #line $LINENO "configure"
20391 /* confdefs.h.  */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h.  */
20396 $ac_includes_default
20397 int
20398 main ()
20399 {
20400 if ((pid_t *) 0)
20401   return 0;
20402 if (sizeof (pid_t))
20403   return 0;
20404   ;
20405   return 0;
20406 }
20407 _ACEOF
20408 rm -f conftest.$ac_objext
20409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20410   (eval $ac_compile) 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); } &&
20414          { ac_try='test -s conftest.$ac_objext'
20415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416   (eval $ac_try) 2>&5
20417   ac_status=$?
20418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419   (exit $ac_status); }; }; then
20420   ac_cv_type_pid_t=yes
20421 else
20422   echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20424
20425 ac_cv_type_pid_t=no
20426 fi
20427 rm -f conftest.$ac_objext conftest.$ac_ext
20428 fi
20429 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20430 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20431 if test $ac_cv_type_pid_t = yes; then
20432   :
20433 else
20434
20435 cat >>confdefs.h <<_ACEOF
20436 #define pid_t int
20437 _ACEOF
20438
20439 fi
20440
20441 echo "$as_me:$LINENO: checking for size_t" >&5
20442 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20443 if test "${ac_cv_type_size_t+set}" = set; then
20444   echo $ECHO_N "(cached) $ECHO_C" >&6
20445 else
20446   cat >conftest.$ac_ext <<_ACEOF
20447 #line $LINENO "configure"
20448 /* confdefs.h.  */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h.  */
20453 $ac_includes_default
20454 int
20455 main ()
20456 {
20457 if ((size_t *) 0)
20458   return 0;
20459 if (sizeof (size_t))
20460   return 0;
20461   ;
20462   return 0;
20463 }
20464 _ACEOF
20465 rm -f conftest.$ac_objext
20466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20467   (eval $ac_compile) 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); } &&
20471          { ac_try='test -s conftest.$ac_objext'
20472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473   (eval $ac_try) 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; }; then
20477   ac_cv_type_size_t=yes
20478 else
20479   echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481
20482 ac_cv_type_size_t=no
20483 fi
20484 rm -f conftest.$ac_objext conftest.$ac_ext
20485 fi
20486 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20487 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20488 if test $ac_cv_type_size_t = yes; then
20489   :
20490 else
20491
20492 cat >>confdefs.h <<_ACEOF
20493 #define size_t unsigned
20494 _ACEOF
20495
20496 fi
20497
20498 echo "$as_me:$LINENO: checking for int64_t" >&5
20499 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20500 if test "${ac_cv_type_int64_t+set}" = set; then
20501   echo $ECHO_N "(cached) $ECHO_C" >&6
20502 else
20503   cat >conftest.$ac_ext <<_ACEOF
20504 #line $LINENO "configure"
20505 /* confdefs.h.  */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h.  */
20510 $ac_includes_default
20511 int
20512 main ()
20513 {
20514 if ((int64_t *) 0)
20515   return 0;
20516 if (sizeof (int64_t))
20517   return 0;
20518   ;
20519   return 0;
20520 }
20521 _ACEOF
20522 rm -f conftest.$ac_objext
20523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20524   (eval $ac_compile) 2>&5
20525   ac_status=$?
20526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527   (exit $ac_status); } &&
20528          { ac_try='test -s conftest.$ac_objext'
20529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20530   (eval $ac_try) 2>&5
20531   ac_status=$?
20532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533   (exit $ac_status); }; }; then
20534   ac_cv_type_int64_t=yes
20535 else
20536   echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20538
20539 ac_cv_type_int64_t=no
20540 fi
20541 rm -f conftest.$ac_objext conftest.$ac_ext
20542 fi
20543 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20544 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20545 if test $ac_cv_type_int64_t = yes; then
20546
20547 cat >>confdefs.h <<_ACEOF
20548 #define HAVE_INT64_T 1
20549 _ACEOF
20550
20551
20552 else
20553   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20554 echo "$as_me: error: Type int64_t required but not found" >&2;}
20555    { (exit 1); exit 1; }; }
20556 fi
20557
20558 echo "$as_me:$LINENO: checking for uint64_t" >&5
20559 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20560 if test "${ac_cv_type_uint64_t+set}" = set; then
20561   echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563   cat >conftest.$ac_ext <<_ACEOF
20564 #line $LINENO "configure"
20565 /* confdefs.h.  */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h.  */
20570 $ac_includes_default
20571 int
20572 main ()
20573 {
20574 if ((uint64_t *) 0)
20575   return 0;
20576 if (sizeof (uint64_t))
20577   return 0;
20578   ;
20579   return 0;
20580 }
20581 _ACEOF
20582 rm -f conftest.$ac_objext
20583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20584   (eval $ac_compile) 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); } &&
20588          { ac_try='test -s conftest.$ac_objext'
20589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590   (eval $ac_try) 2>&5
20591   ac_status=$?
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); }; }; then
20594   ac_cv_type_uint64_t=yes
20595 else
20596   echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20598
20599 ac_cv_type_uint64_t=no
20600 fi
20601 rm -f conftest.$ac_objext conftest.$ac_ext
20602 fi
20603 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20604 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20605 if test $ac_cv_type_uint64_t = yes; then
20606
20607 cat >>confdefs.h <<_ACEOF
20608 #define HAVE_UINT64_T 1
20609 _ACEOF
20610
20611
20612 else
20613   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20614 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20615    { (exit 1); exit 1; }; }
20616 fi
20617
20618 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20619 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20620 if test "${ac_cv_header_time+set}" = set; then
20621   echo $ECHO_N "(cached) $ECHO_C" >&6
20622 else
20623   cat >conftest.$ac_ext <<_ACEOF
20624 #line $LINENO "configure"
20625 /* confdefs.h.  */
20626 _ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h.  */
20630 #include <sys/types.h>
20631 #include <sys/time.h>
20632 #include <time.h>
20633
20634 int
20635 main ()
20636 {
20637 if ((struct tm *) 0)
20638 return 0;
20639   ;
20640   return 0;
20641 }
20642 _ACEOF
20643 rm -f conftest.$ac_objext
20644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20645   (eval $ac_compile) 2>&5
20646   ac_status=$?
20647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648   (exit $ac_status); } &&
20649          { ac_try='test -s conftest.$ac_objext'
20650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651   (eval $ac_try) 2>&5
20652   ac_status=$?
20653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654   (exit $ac_status); }; }; then
20655   ac_cv_header_time=yes
20656 else
20657   echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20659
20660 ac_cv_header_time=no
20661 fi
20662 rm -f conftest.$ac_objext conftest.$ac_ext
20663 fi
20664 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20665 echo "${ECHO_T}$ac_cv_header_time" >&6
20666 if test $ac_cv_header_time = yes; then
20667
20668 cat >>confdefs.h <<\_ACEOF
20669 #define TIME_WITH_SYS_TIME 1
20670 _ACEOF
20671
20672 fi
20673
20674 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20675 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20676 if test "${ac_cv_struct_tm+set}" = set; then
20677   echo $ECHO_N "(cached) $ECHO_C" >&6
20678 else
20679   cat >conftest.$ac_ext <<_ACEOF
20680 #line $LINENO "configure"
20681 /* confdefs.h.  */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h.  */
20686 #include <sys/types.h>
20687 #include <time.h>
20688
20689 int
20690 main ()
20691 {
20692 struct tm *tp; tp->tm_sec;
20693   ;
20694   return 0;
20695 }
20696 _ACEOF
20697 rm -f conftest.$ac_objext
20698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20699   (eval $ac_compile) 2>&5
20700   ac_status=$?
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); } &&
20703          { ac_try='test -s conftest.$ac_objext'
20704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705   (eval $ac_try) 2>&5
20706   ac_status=$?
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); }; }; then
20709   ac_cv_struct_tm=time.h
20710 else
20711   echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20713
20714 ac_cv_struct_tm=sys/time.h
20715 fi
20716 rm -f conftest.$ac_objext conftest.$ac_ext
20717 fi
20718 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20719 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20720 if test $ac_cv_struct_tm = sys/time.h; then
20721
20722 cat >>confdefs.h <<\_ACEOF
20723 #define TM_IN_SYS_TIME 1
20724 _ACEOF
20725
20726 fi
20727
20728
20729 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20730 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20731 if test "${ac_cv_cxx_namespaces+set}" = set; then
20732   echo $ECHO_N "(cached) $ECHO_C" >&6
20733 else
20734
20735
20736  ac_ext=cc
20737 ac_cpp='$CXXCPP $CPPFLAGS'
20738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20741
20742  cat >conftest.$ac_ext <<_ACEOF
20743 #line $LINENO "configure"
20744 /* confdefs.h.  */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h.  */
20749 namespace Outer { namespace Inner { int i = 0; }}
20750 int
20751 main ()
20752 {
20753 using namespace Outer::Inner; return i;
20754   ;
20755   return 0;
20756 }
20757 _ACEOF
20758 rm -f conftest.$ac_objext
20759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20760   (eval $ac_compile) 2>&5
20761   ac_status=$?
20762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763   (exit $ac_status); } &&
20764          { ac_try='test -s conftest.$ac_objext'
20765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766   (eval $ac_try) 2>&5
20767   ac_status=$?
20768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769   (exit $ac_status); }; }; then
20770   ac_cv_cxx_namespaces=yes
20771 else
20772   echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20774
20775 ac_cv_cxx_namespaces=no
20776 fi
20777 rm -f conftest.$ac_objext conftest.$ac_ext
20778  ac_ext=c
20779 ac_cpp='$CPP $CPPFLAGS'
20780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20783
20784
20785 fi
20786 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20787 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20788 if test "$ac_cv_cxx_namespaces" = yes; then
20789
20790 cat >>confdefs.h <<\_ACEOF
20791 #define HAVE_NAMESPACES
20792 _ACEOF
20793
20794 fi
20795
20796 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20797 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20798 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20799   echo $ECHO_N "(cached) $ECHO_C" >&6
20800 else
20801
20802
20803
20804   ac_ext=cc
20805 ac_cpp='$CXXCPP $CPPFLAGS'
20806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20809
20810   cat >conftest.$ac_ext <<_ACEOF
20811 #line $LINENO "configure"
20812 /* confdefs.h.  */
20813 _ACEOF
20814 cat confdefs.h >>conftest.$ac_ext
20815 cat >>conftest.$ac_ext <<_ACEOF
20816 /* end confdefs.h.  */
20817 #include <ext/hash_map>
20818 #ifdef HAVE_NAMESPACES
20819 using namespace std;
20820 #endif
20821 int
20822 main ()
20823 {
20824 hash_map<int, int> t; return 0;
20825   ;
20826   return 0;
20827 }
20828 _ACEOF
20829 rm -f conftest.$ac_objext
20830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20831   (eval $ac_compile) 2>&5
20832   ac_status=$?
20833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834   (exit $ac_status); } &&
20835          { ac_try='test -s conftest.$ac_objext'
20836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837   (eval $ac_try) 2>&5
20838   ac_status=$?
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); }; }; then
20841   ac_cv_cxx_have_ext_hash_map=std
20842 else
20843   echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20845
20846 ac_cv_cxx_have_ext_hash_map=no
20847 fi
20848 rm -f conftest.$ac_objext conftest.$ac_ext
20849   cat >conftest.$ac_ext <<_ACEOF
20850 #line $LINENO "configure"
20851 /* confdefs.h.  */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h.  */
20856 #include <ext/hash_map>
20857 #ifdef HAVE_NAMESPACES
20858 using namespace __gnu_cxx;
20859 #endif
20860 int
20861 main ()
20862 {
20863 hash_map<int, int> t; return 0;
20864   ;
20865   return 0;
20866 }
20867 _ACEOF
20868 rm -f conftest.$ac_objext
20869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20870   (eval $ac_compile) 2>&5
20871   ac_status=$?
20872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); } &&
20874          { ac_try='test -s conftest.$ac_objext'
20875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876   (eval $ac_try) 2>&5
20877   ac_status=$?
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); }; }; then
20880   ac_cv_cxx_have_ext_hash_map=gnu
20881 else
20882   echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20884
20885 ac_cv_cxx_have_ext_hash_map=no
20886 fi
20887 rm -f conftest.$ac_objext conftest.$ac_ext
20888   ac_ext=c
20889 ac_cpp='$CPP $CPPFLAGS'
20890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20893
20894
20895 fi
20896 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20897 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20898 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20899
20900 cat >>confdefs.h <<\_ACEOF
20901 #define HAVE_STD_EXT_HASH_MAP
20902 _ACEOF
20903
20904 fi
20905 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20906
20907 cat >>confdefs.h <<\_ACEOF
20908 #define HAVE_GNU_EXT_HASH_MAP
20909 _ACEOF
20910
20911 fi
20912
20913 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20914 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20915 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20916   echo $ECHO_N "(cached) $ECHO_C" >&6
20917 else
20918
20919
20920
20921   ac_ext=cc
20922 ac_cpp='$CXXCPP $CPPFLAGS'
20923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20926
20927   cat >conftest.$ac_ext <<_ACEOF
20928 #line $LINENO "configure"
20929 /* confdefs.h.  */
20930 _ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h.  */
20934 #include <ext/hash_set>
20935 #ifdef HAVE_NAMESPACES
20936 using namespace std;
20937 #endif
20938 int
20939 main ()
20940 {
20941 hash_set<int> t; return 0;
20942   ;
20943   return 0;
20944 }
20945 _ACEOF
20946 rm -f conftest.$ac_objext
20947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20948   (eval $ac_compile) 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); } &&
20952          { ac_try='test -s conftest.$ac_objext'
20953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954   (eval $ac_try) 2>&5
20955   ac_status=$?
20956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957   (exit $ac_status); }; }; then
20958   ac_cv_cxx_have_ext_hash_set=std
20959 else
20960   echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20962
20963 ac_cv_cxx_have_ext_hash_set=no
20964 fi
20965 rm -f conftest.$ac_objext conftest.$ac_ext
20966   cat >conftest.$ac_ext <<_ACEOF
20967 #line $LINENO "configure"
20968 /* confdefs.h.  */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h.  */
20973 #include <ext/hash_set>
20974 #ifdef HAVE_NAMESPACES
20975 using namespace __gnu_cxx;
20976 #endif
20977 int
20978 main ()
20979 {
20980 hash_set<int> t; return 0;
20981   ;
20982   return 0;
20983 }
20984 _ACEOF
20985 rm -f conftest.$ac_objext
20986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20987   (eval $ac_compile) 2>&5
20988   ac_status=$?
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); } &&
20991          { ac_try='test -s conftest.$ac_objext'
20992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993   (eval $ac_try) 2>&5
20994   ac_status=$?
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); }; }; then
20997   ac_cv_cxx_have_ext_hash_set=gnu
20998 else
20999   echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21001
21002 ac_cv_cxx_have_ext_hash_set=no
21003 fi
21004 rm -f conftest.$ac_objext conftest.$ac_ext
21005   ac_ext=c
21006 ac_cpp='$CPP $CPPFLAGS'
21007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21010
21011
21012 fi
21013 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21014 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21015 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21016
21017 cat >>confdefs.h <<\_ACEOF
21018 #define HAVE_STD_EXT_HASH_SET
21019 _ACEOF
21020
21021 fi
21022 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21023
21024 cat >>confdefs.h <<\_ACEOF
21025 #define HAVE_GNU_EXT_HASH_SET
21026 _ACEOF
21027
21028 fi
21029
21030 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21031 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21032 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21033   echo $ECHO_N "(cached) $ECHO_C" >&6
21034 else
21035
21036
21037
21038   ac_ext=cc
21039 ac_cpp='$CXXCPP $CPPFLAGS'
21040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21043
21044   cat >conftest.$ac_ext <<_ACEOF
21045 #line $LINENO "configure"
21046 /* confdefs.h.  */
21047 _ACEOF
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h.  */
21051 #include <ext/slist>
21052 #ifdef HAVE_NAMESPACES
21053 using namespace std;
21054 #endif
21055 int
21056 main ()
21057 {
21058 slist<int> s; return 0;
21059   ;
21060   return 0;
21061 }
21062 _ACEOF
21063 rm -f conftest.$ac_objext
21064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21065   (eval $ac_compile) 2>&5
21066   ac_status=$?
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); } &&
21069          { ac_try='test -s conftest.$ac_objext'
21070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071   (eval $ac_try) 2>&5
21072   ac_status=$?
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); }; }; then
21075   ac_cv_cxx_have_ext_slist=std
21076 else
21077   echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21079
21080 ac_cv_cxx_have_ext_slist=no
21081 fi
21082 rm -f conftest.$ac_objext conftest.$ac_ext
21083   cat >conftest.$ac_ext <<_ACEOF
21084 #line $LINENO "configure"
21085 /* confdefs.h.  */
21086 _ACEOF
21087 cat confdefs.h >>conftest.$ac_ext
21088 cat >>conftest.$ac_ext <<_ACEOF
21089 /* end confdefs.h.  */
21090 #include <ext/slist>
21091 #ifdef HAVE_NAMESPACES
21092 using namespace __gnu_cxx;
21093 #endif
21094 int
21095 main ()
21096 {
21097 slist<int> s; return 0;
21098   ;
21099   return 0;
21100 }
21101 _ACEOF
21102 rm -f conftest.$ac_objext
21103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21104   (eval $ac_compile) 2>&5
21105   ac_status=$?
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); } &&
21108          { ac_try='test -s conftest.$ac_objext'
21109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110   (eval $ac_try) 2>&5
21111   ac_status=$?
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); }; }; then
21114   ac_cv_cxx_have_ext_slist=gnu
21115 else
21116   echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21118
21119 ac_cv_cxx_have_ext_slist=no
21120 fi
21121 rm -f conftest.$ac_objext conftest.$ac_ext
21122
21123   ac_ext=c
21124 ac_cpp='$CPP $CPPFLAGS'
21125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21128
21129
21130 fi
21131 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21132 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21133 if test "$ac_cv_cxx_have_ext_slist" = std; then
21134
21135 cat >>confdefs.h <<\_ACEOF
21136 #define HAVE_EXT_SLIST std
21137 _ACEOF
21138
21139 fi
21140 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21141
21142 cat >>confdefs.h <<\_ACEOF
21143 #define HAVE_EXT_SLIST gnu
21144 _ACEOF
21145
21146 fi
21147
21148 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21149 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21150 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21151   echo $ECHO_N "(cached) $ECHO_C" >&6
21152 else
21153
21154
21155
21156   ac_ext=cc
21157 ac_cpp='$CXXCPP $CPPFLAGS'
21158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21161
21162   cat >conftest.$ac_ext <<_ACEOF
21163 #line $LINENO "configure"
21164 /* confdefs.h.  */
21165 _ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h.  */
21169 #include <iterator>
21170 #ifdef HAVE_NAMESPACES
21171 using namespace std;
21172 #endif
21173 int
21174 main ()
21175 {
21176 iterator<int,int,int> t; return 0;
21177   ;
21178   return 0;
21179 }
21180 _ACEOF
21181 rm -f conftest.$ac_objext
21182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21183   (eval $ac_compile) 2>&5
21184   ac_status=$?
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); } &&
21187          { ac_try='test -s conftest.$ac_objext'
21188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189   (eval $ac_try) 2>&5
21190   ac_status=$?
21191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); }; }; then
21193   ac_cv_cxx_have_std_iterator=yes
21194 else
21195   echo "$as_me: failed program was:" >&5
21196 sed 's/^/| /' conftest.$ac_ext >&5
21197
21198 ac_cv_cxx_have_std_iterator=no
21199 fi
21200 rm -f conftest.$ac_objext conftest.$ac_ext
21201   ac_ext=c
21202 ac_cpp='$CPP $CPPFLAGS'
21203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21206
21207
21208 fi
21209 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21210 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21211 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21212
21213 cat >>confdefs.h <<\_ACEOF
21214 #define HAVE_STD_ITERATOR
21215 _ACEOF
21216
21217 fi
21218
21219 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21220 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21221 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21222   echo $ECHO_N "(cached) $ECHO_C" >&6
21223 else
21224
21225
21226
21227   ac_ext=cc
21228 ac_cpp='$CXXCPP $CPPFLAGS'
21229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21232
21233   cat >conftest.$ac_ext <<_ACEOF
21234 #line $LINENO "configure"
21235 /* confdefs.h.  */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h.  */
21240 #include <iterator>
21241 #ifdef HAVE_NAMESPACES
21242 using namespace std;
21243 #endif
21244 int
21245 main ()
21246 {
21247 bidirectional_iterator<int,int> t; return 0;
21248   ;
21249   return 0;
21250 }
21251 _ACEOF
21252 rm -f conftest.$ac_objext
21253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21254   (eval $ac_compile) 2>&5
21255   ac_status=$?
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); } &&
21258          { ac_try='test -s conftest.$ac_objext'
21259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260   (eval $ac_try) 2>&5
21261   ac_status=$?
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); }; }; then
21264   ac_cv_cxx_have_bi_iterator=yes
21265 else
21266   echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21268
21269 ac_cv_cxx_have_bi_iterator=no
21270 fi
21271 rm -f conftest.$ac_objext conftest.$ac_ext
21272   ac_ext=c
21273 ac_cpp='$CPP $CPPFLAGS'
21274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21277
21278
21279 fi
21280 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21281 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21282 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21283
21284 cat >>confdefs.h <<\_ACEOF
21285 #define HAVE_BI_ITERATOR
21286 _ACEOF
21287
21288 fi
21289
21290 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21291 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21292 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21293   echo $ECHO_N "(cached) $ECHO_C" >&6
21294 else
21295
21296
21297
21298   ac_ext=cc
21299 ac_cpp='$CXXCPP $CPPFLAGS'
21300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21303
21304   cat >conftest.$ac_ext <<_ACEOF
21305 #line $LINENO "configure"
21306 /* confdefs.h.  */
21307 _ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h.  */
21311 #include <iterator>
21312 #ifdef HAVE_NAMESPACES
21313 using namespace std;
21314 #endif
21315 int
21316 main ()
21317 {
21318 forward_iterator<int,int> t; return 0;
21319   ;
21320   return 0;
21321 }
21322 _ACEOF
21323 rm -f conftest.$ac_objext
21324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21325   (eval $ac_compile) 2>&5
21326   ac_status=$?
21327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328   (exit $ac_status); } &&
21329          { ac_try='test -s conftest.$ac_objext'
21330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331   (eval $ac_try) 2>&5
21332   ac_status=$?
21333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334   (exit $ac_status); }; }; then
21335   ac_cv_cxx_have_fwd_iterator=yes
21336 else
21337   echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21339
21340 ac_cv_cxx_have_fwd_iterator=no
21341 fi
21342 rm -f conftest.$ac_objext conftest.$ac_ext
21343   ac_ext=c
21344 ac_cpp='$CPP $CPPFLAGS'
21345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21348
21349
21350 fi
21351 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21352 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21353 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21354
21355 cat >>confdefs.h <<\_ACEOF
21356 #define HAVE_FWD_ITERATOR
21357 _ACEOF
21358
21359 fi
21360
21361
21362 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21363 # for constant arguments.  Useless!
21364 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21365 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21366 if test "${ac_cv_working_alloca_h+set}" = set; then
21367   echo $ECHO_N "(cached) $ECHO_C" >&6
21368 else
21369   cat >conftest.$ac_ext <<_ACEOF
21370 #line $LINENO "configure"
21371 /* confdefs.h.  */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h.  */
21376 #include <alloca.h>
21377 int
21378 main ()
21379 {
21380 char *p = (char *) alloca (2 * sizeof (int));
21381   ;
21382   return 0;
21383 }
21384 _ACEOF
21385 rm -f conftest.$ac_objext conftest$ac_exeext
21386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21387   (eval $ac_link) 2>&5
21388   ac_status=$?
21389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390   (exit $ac_status); } &&
21391          { ac_try='test -s conftest$ac_exeext'
21392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21393   (eval $ac_try) 2>&5
21394   ac_status=$?
21395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396   (exit $ac_status); }; }; then
21397   ac_cv_working_alloca_h=yes
21398 else
21399   echo "$as_me: failed program was:" >&5
21400 sed 's/^/| /' conftest.$ac_ext >&5
21401
21402 ac_cv_working_alloca_h=no
21403 fi
21404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21405 fi
21406 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21407 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21408 if test $ac_cv_working_alloca_h = yes; then
21409
21410 cat >>confdefs.h <<\_ACEOF
21411 #define HAVE_ALLOCA_H 1
21412 _ACEOF
21413
21414 fi
21415
21416 echo "$as_me:$LINENO: checking for alloca" >&5
21417 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21418 if test "${ac_cv_func_alloca_works+set}" = set; then
21419   echo $ECHO_N "(cached) $ECHO_C" >&6
21420 else
21421   cat >conftest.$ac_ext <<_ACEOF
21422 #line $LINENO "configure"
21423 /* confdefs.h.  */
21424 _ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h.  */
21428 #ifdef __GNUC__
21429 # define alloca __builtin_alloca
21430 #else
21431 # ifdef _MSC_VER
21432 #  include <malloc.h>
21433 #  define alloca _alloca
21434 # else
21435 #  if HAVE_ALLOCA_H
21436 #   include <alloca.h>
21437 #  else
21438 #   ifdef _AIX
21439  #pragma alloca
21440 #   else
21441 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21442 char *alloca ();
21443 #    endif
21444 #   endif
21445 #  endif
21446 # endif
21447 #endif
21448
21449 int
21450 main ()
21451 {
21452 char *p = (char *) alloca (1);
21453   ;
21454   return 0;
21455 }
21456 _ACEOF
21457 rm -f conftest.$ac_objext conftest$ac_exeext
21458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21459   (eval $ac_link) 2>&5
21460   ac_status=$?
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); } &&
21463          { ac_try='test -s conftest$ac_exeext'
21464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465   (eval $ac_try) 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); }; }; then
21469   ac_cv_func_alloca_works=yes
21470 else
21471   echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21473
21474 ac_cv_func_alloca_works=no
21475 fi
21476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21477 fi
21478 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21479 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21480
21481 if test $ac_cv_func_alloca_works = yes; then
21482
21483 cat >>confdefs.h <<\_ACEOF
21484 #define HAVE_ALLOCA 1
21485 _ACEOF
21486
21487 else
21488   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21489 # that cause trouble.  Some versions do not even contain alloca or
21490 # contain a buggy version.  If you still want to use their alloca,
21491 # use ar to extract alloca.o from them instead of compiling alloca.c.
21492
21493 ALLOCA=alloca.$ac_objext
21494
21495 cat >>confdefs.h <<\_ACEOF
21496 #define C_ALLOCA 1
21497 _ACEOF
21498
21499
21500 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21501 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21502 if test "${ac_cv_os_cray+set}" = set; then
21503   echo $ECHO_N "(cached) $ECHO_C" >&6
21504 else
21505   cat >conftest.$ac_ext <<_ACEOF
21506 #line $LINENO "configure"
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512 #if defined(CRAY) && ! defined(CRAY2)
21513 webecray
21514 #else
21515 wenotbecray
21516 #endif
21517
21518 _ACEOF
21519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21520   $EGREP "webecray" >/dev/null 2>&1; then
21521   ac_cv_os_cray=yes
21522 else
21523   ac_cv_os_cray=no
21524 fi
21525 rm -f conftest*
21526
21527 fi
21528 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21529 echo "${ECHO_T}$ac_cv_os_cray" >&6
21530 if test $ac_cv_os_cray = yes; then
21531   for ac_func in _getb67 GETB67 getb67; do
21532     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21533 echo "$as_me:$LINENO: checking for $ac_func" >&5
21534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21535 if eval "test \"\${$as_ac_var+set}\" = set"; then
21536   echo $ECHO_N "(cached) $ECHO_C" >&6
21537 else
21538   cat >conftest.$ac_ext <<_ACEOF
21539 #line $LINENO "configure"
21540 /* confdefs.h.  */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h.  */
21545 /* System header to define __stub macros and hopefully few prototypes,
21546     which can conflict with char $ac_func (); below.
21547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21548     <limits.h> exists even on freestanding compilers.  */
21549 #ifdef __STDC__
21550 # include <limits.h>
21551 #else
21552 # include <assert.h>
21553 #endif
21554 /* Override any gcc2 internal prototype to avoid an error.  */
21555 #ifdef __cplusplus
21556 extern "C"
21557 {
21558 #endif
21559 /* We use char because int might match the return type of a gcc2
21560    builtin and then its argument prototype would still apply.  */
21561 char $ac_func ();
21562 /* The GNU C library defines this for functions which it implements
21563     to always fail with ENOSYS.  Some functions are actually named
21564     something starting with __ and the normal name is an alias.  */
21565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21566 choke me
21567 #else
21568 char (*f) () = $ac_func;
21569 #endif
21570 #ifdef __cplusplus
21571 }
21572 #endif
21573
21574 int
21575 main ()
21576 {
21577 return f != $ac_func;
21578   ;
21579   return 0;
21580 }
21581 _ACEOF
21582 rm -f conftest.$ac_objext conftest$ac_exeext
21583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21584   (eval $ac_link) 2>&5
21585   ac_status=$?
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); } &&
21588          { ac_try='test -s conftest$ac_exeext'
21589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590   (eval $ac_try) 2>&5
21591   ac_status=$?
21592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593   (exit $ac_status); }; }; then
21594   eval "$as_ac_var=yes"
21595 else
21596   echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21598
21599 eval "$as_ac_var=no"
21600 fi
21601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21602 fi
21603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21605 if test `eval echo '${'$as_ac_var'}'` = yes; then
21606
21607 cat >>confdefs.h <<_ACEOF
21608 #define CRAY_STACKSEG_END $ac_func
21609 _ACEOF
21610
21611     break
21612 fi
21613
21614   done
21615 fi
21616
21617 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21618 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21619 if test "${ac_cv_c_stack_direction+set}" = set; then
21620   echo $ECHO_N "(cached) $ECHO_C" >&6
21621 else
21622   if test "$cross_compiling" = yes; then
21623   ac_cv_c_stack_direction=0
21624 else
21625   cat >conftest.$ac_ext <<_ACEOF
21626 #line $LINENO "configure"
21627 /* confdefs.h.  */
21628 _ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h.  */
21632 int
21633 find_stack_direction ()
21634 {
21635   static char *addr = 0;
21636   auto char dummy;
21637   if (addr == 0)
21638     {
21639       addr = &dummy;
21640       return find_stack_direction ();
21641     }
21642   else
21643     return (&dummy > addr) ? 1 : -1;
21644 }
21645
21646 int
21647 main ()
21648 {
21649   exit (find_stack_direction () < 0);
21650 }
21651 _ACEOF
21652 rm -f conftest$ac_exeext
21653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21654   (eval $ac_link) 2>&5
21655   ac_status=$?
21656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659   (eval $ac_try) 2>&5
21660   ac_status=$?
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); }; }; then
21663   ac_cv_c_stack_direction=1
21664 else
21665   echo "$as_me: program exited with status $ac_status" >&5
21666 echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21668
21669 ( exit $ac_status )
21670 ac_cv_c_stack_direction=-1
21671 fi
21672 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21673 fi
21674 fi
21675 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21676 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21677
21678 cat >>confdefs.h <<_ACEOF
21679 #define STACK_DIRECTION $ac_cv_c_stack_direction
21680 _ACEOF
21681
21682
21683 fi
21684
21685 if test $ac_cv_c_compiler_gnu = yes; then
21686     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21687 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21688 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21689   echo $ECHO_N "(cached) $ECHO_C" >&6
21690 else
21691     ac_pattern="Autoconf.*'x'"
21692   cat >conftest.$ac_ext <<_ACEOF
21693 #line $LINENO "configure"
21694 /* confdefs.h.  */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h.  */
21699 #include <sgtty.h>
21700 Autoconf TIOCGETP
21701 _ACEOF
21702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21703   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21704   ac_cv_prog_gcc_traditional=yes
21705 else
21706   ac_cv_prog_gcc_traditional=no
21707 fi
21708 rm -f conftest*
21709
21710
21711   if test $ac_cv_prog_gcc_traditional = no; then
21712     cat >conftest.$ac_ext <<_ACEOF
21713 #line $LINENO "configure"
21714 /* confdefs.h.  */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h.  */
21719 #include <termio.h>
21720 Autoconf TCGETA
21721 _ACEOF
21722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21723   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21724   ac_cv_prog_gcc_traditional=yes
21725 fi
21726 rm -f conftest*
21727
21728   fi
21729 fi
21730 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21731 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21732   if test $ac_cv_prog_gcc_traditional = yes; then
21733     CC="$CC -traditional"
21734   fi
21735 fi
21736
21737 echo "$as_me:$LINENO: checking for working memcmp" >&5
21738 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21739 if test "${ac_cv_func_memcmp_working+set}" = set; then
21740   echo $ECHO_N "(cached) $ECHO_C" >&6
21741 else
21742   if test "$cross_compiling" = yes; then
21743   ac_cv_func_memcmp_working=no
21744 else
21745   cat >conftest.$ac_ext <<_ACEOF
21746 #line $LINENO "configure"
21747 /* confdefs.h.  */
21748 _ACEOF
21749 cat confdefs.h >>conftest.$ac_ext
21750 cat >>conftest.$ac_ext <<_ACEOF
21751 /* end confdefs.h.  */
21752
21753 int
21754 main ()
21755 {
21756
21757   /* Some versions of memcmp are not 8-bit clean.  */
21758   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21759   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21760     exit (1);
21761
21762   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21763      or more and with at least one buffer not starting on a 4-byte boundary.
21764      William Lewis provided this test program.   */
21765   {
21766     char foo[21];
21767     char bar[21];
21768     int i;
21769     for (i = 0; i < 4; i++)
21770       {
21771         char *a = foo + i;
21772         char *b = bar + i;
21773         strcpy (a, "--------01111111");
21774         strcpy (b, "--------10000000");
21775         if (memcmp (a, b, 16) >= 0)
21776           exit (1);
21777       }
21778     exit (0);
21779   }
21780
21781   ;
21782   return 0;
21783 }
21784 _ACEOF
21785 rm -f conftest$ac_exeext
21786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21787   (eval $ac_link) 2>&5
21788   ac_status=$?
21789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21792   (eval $ac_try) 2>&5
21793   ac_status=$?
21794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795   (exit $ac_status); }; }; then
21796   ac_cv_func_memcmp_working=yes
21797 else
21798   echo "$as_me: program exited with status $ac_status" >&5
21799 echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21801
21802 ( exit $ac_status )
21803 ac_cv_func_memcmp_working=no
21804 fi
21805 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21806 fi
21807 fi
21808 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21809 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21810 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21811
21812
21813
21814 for ac_header in stdlib.h unistd.h
21815 do
21816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21818   echo "$as_me:$LINENO: checking for $ac_header" >&5
21819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21821   echo $ECHO_N "(cached) $ECHO_C" >&6
21822 fi
21823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21825 else
21826   # Is the header compilable?
21827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21829 cat >conftest.$ac_ext <<_ACEOF
21830 #line $LINENO "configure"
21831 /* confdefs.h.  */
21832 _ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h.  */
21836 $ac_includes_default
21837 #include <$ac_header>
21838 _ACEOF
21839 rm -f conftest.$ac_objext
21840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21841   (eval $ac_compile) 2>&5
21842   ac_status=$?
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); } &&
21845          { ac_try='test -s conftest.$ac_objext'
21846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847   (eval $ac_try) 2>&5
21848   ac_status=$?
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); }; }; then
21851   ac_header_compiler=yes
21852 else
21853   echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21855
21856 ac_header_compiler=no
21857 fi
21858 rm -f conftest.$ac_objext conftest.$ac_ext
21859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21860 echo "${ECHO_T}$ac_header_compiler" >&6
21861
21862 # Is the header present?
21863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21865 cat >conftest.$ac_ext <<_ACEOF
21866 #line $LINENO "configure"
21867 /* confdefs.h.  */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h.  */
21872 #include <$ac_header>
21873 _ACEOF
21874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21876   ac_status=$?
21877   grep -v '^ *+' conftest.er1 >conftest.err
21878   rm -f conftest.er1
21879   cat conftest.err >&5
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); } >/dev/null; then
21882   if test -s conftest.err; then
21883     ac_cpp_err=$ac_c_preproc_warn_flag
21884   else
21885     ac_cpp_err=
21886   fi
21887 else
21888   ac_cpp_err=yes
21889 fi
21890 if test -z "$ac_cpp_err"; then
21891   ac_header_preproc=yes
21892 else
21893   echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21895
21896   ac_header_preproc=no
21897 fi
21898 rm -f conftest.err conftest.$ac_ext
21899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21900 echo "${ECHO_T}$ac_header_preproc" >&6
21901
21902 # So?  What about this header?
21903 case $ac_header_compiler:$ac_header_preproc in
21904   yes:no )
21905     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21909     (
21910       cat <<\_ASBOX
21911 ## ------------------------------------ ##
21912 ## Report this to bug-autoconf@gnu.org. ##
21913 ## ------------------------------------ ##
21914 _ASBOX
21915     ) |
21916       sed "s/^/$as_me: WARNING:     /" >&2
21917     ;;
21918   no:yes )
21919     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21921     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21925     (
21926       cat <<\_ASBOX
21927 ## ------------------------------------ ##
21928 ## Report this to bug-autoconf@gnu.org. ##
21929 ## ------------------------------------ ##
21930 _ASBOX
21931     ) |
21932       sed "s/^/$as_me: WARNING:     /" >&2
21933     ;;
21934 esac
21935 echo "$as_me:$LINENO: checking for $ac_header" >&5
21936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21938   echo $ECHO_N "(cached) $ECHO_C" >&6
21939 else
21940   eval "$as_ac_Header=$ac_header_preproc"
21941 fi
21942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21944
21945 fi
21946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21947   cat >>confdefs.h <<_ACEOF
21948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21949 _ACEOF
21950
21951 fi
21952
21953 done
21954
21955
21956 for ac_func in getpagesize
21957 do
21958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21959 echo "$as_me:$LINENO: checking for $ac_func" >&5
21960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21961 if eval "test \"\${$as_ac_var+set}\" = set"; then
21962   echo $ECHO_N "(cached) $ECHO_C" >&6
21963 else
21964   cat >conftest.$ac_ext <<_ACEOF
21965 #line $LINENO "configure"
21966 /* confdefs.h.  */
21967 _ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h.  */
21971 /* System header to define __stub macros and hopefully few prototypes,
21972     which can conflict with char $ac_func (); below.
21973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21974     <limits.h> exists even on freestanding compilers.  */
21975 #ifdef __STDC__
21976 # include <limits.h>
21977 #else
21978 # include <assert.h>
21979 #endif
21980 /* Override any gcc2 internal prototype to avoid an error.  */
21981 #ifdef __cplusplus
21982 extern "C"
21983 {
21984 #endif
21985 /* We use char because int might match the return type of a gcc2
21986    builtin and then its argument prototype would still apply.  */
21987 char $ac_func ();
21988 /* The GNU C library defines this for functions which it implements
21989     to always fail with ENOSYS.  Some functions are actually named
21990     something starting with __ and the normal name is an alias.  */
21991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21992 choke me
21993 #else
21994 char (*f) () = $ac_func;
21995 #endif
21996 #ifdef __cplusplus
21997 }
21998 #endif
21999
22000 int
22001 main ()
22002 {
22003 return f != $ac_func;
22004   ;
22005   return 0;
22006 }
22007 _ACEOF
22008 rm -f conftest.$ac_objext conftest$ac_exeext
22009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22010   (eval $ac_link) 2>&5
22011   ac_status=$?
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); } &&
22014          { ac_try='test -s conftest$ac_exeext'
22015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016   (eval $ac_try) 2>&5
22017   ac_status=$?
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); }; }; then
22020   eval "$as_ac_var=yes"
22021 else
22022   echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22024
22025 eval "$as_ac_var=no"
22026 fi
22027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22028 fi
22029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22031 if test `eval echo '${'$as_ac_var'}'` = yes; then
22032   cat >>confdefs.h <<_ACEOF
22033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22034 _ACEOF
22035
22036 fi
22037 done
22038
22039 echo "$as_me:$LINENO: checking for working mmap" >&5
22040 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22041 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22042   echo $ECHO_N "(cached) $ECHO_C" >&6
22043 else
22044   if test "$cross_compiling" = yes; then
22045   ac_cv_func_mmap_fixed_mapped=no
22046 else
22047   cat >conftest.$ac_ext <<_ACEOF
22048 #line $LINENO "configure"
22049 /* confdefs.h.  */
22050 _ACEOF
22051 cat confdefs.h >>conftest.$ac_ext
22052 cat >>conftest.$ac_ext <<_ACEOF
22053 /* end confdefs.h.  */
22054 $ac_includes_default
22055 /* malloc might have been renamed as rpl_malloc. */
22056 #undef malloc
22057
22058 /* Thanks to Mike Haertel and Jim Avera for this test.
22059    Here is a matrix of mmap possibilities:
22060         mmap private not fixed
22061         mmap private fixed at somewhere currently unmapped
22062         mmap private fixed at somewhere already mapped
22063         mmap shared not fixed
22064         mmap shared fixed at somewhere currently unmapped
22065         mmap shared fixed at somewhere already mapped
22066    For private mappings, we should verify that changes cannot be read()
22067    back from the file, nor mmap's back from the file at a different
22068    address.  (There have been systems where private was not correctly
22069    implemented like the infamous i386 svr4.0, and systems where the
22070    VM page cache was not coherent with the file system buffer cache
22071    like early versions of FreeBSD and possibly contemporary NetBSD.)
22072    For shared mappings, we should conversely verify that changes get
22073    propagated back to all the places they're supposed to be.
22074
22075    Grep wants private fixed already mapped.
22076    The main things grep needs to know about mmap are:
22077    * does it exist and is it safe to write into the mmap'd area
22078    * how to use it (BSD variants)  */
22079
22080 #include <fcntl.h>
22081 #include <sys/mman.h>
22082
22083 #if !STDC_HEADERS && !HAVE_STDLIB_H
22084 char *malloc ();
22085 #endif
22086
22087 /* This mess was copied from the GNU getpagesize.h.  */
22088 #if !HAVE_GETPAGESIZE
22089 /* Assume that all systems that can run configure have sys/param.h.  */
22090 # if !HAVE_SYS_PARAM_H
22091 #  define HAVE_SYS_PARAM_H 1
22092 # endif
22093
22094 # ifdef _SC_PAGESIZE
22095 #  define getpagesize() sysconf(_SC_PAGESIZE)
22096 # else /* no _SC_PAGESIZE */
22097 #  if HAVE_SYS_PARAM_H
22098 #   include <sys/param.h>
22099 #   ifdef EXEC_PAGESIZE
22100 #    define getpagesize() EXEC_PAGESIZE
22101 #   else /* no EXEC_PAGESIZE */
22102 #    ifdef NBPG
22103 #     define getpagesize() NBPG * CLSIZE
22104 #     ifndef CLSIZE
22105 #      define CLSIZE 1
22106 #     endif /* no CLSIZE */
22107 #    else /* no NBPG */
22108 #     ifdef NBPC
22109 #      define getpagesize() NBPC
22110 #     else /* no NBPC */
22111 #      ifdef PAGESIZE
22112 #       define getpagesize() PAGESIZE
22113 #      endif /* PAGESIZE */
22114 #     endif /* no NBPC */
22115 #    endif /* no NBPG */
22116 #   endif /* no EXEC_PAGESIZE */
22117 #  else /* no HAVE_SYS_PARAM_H */
22118 #   define getpagesize() 8192   /* punt totally */
22119 #  endif /* no HAVE_SYS_PARAM_H */
22120 # endif /* no _SC_PAGESIZE */
22121
22122 #endif /* no HAVE_GETPAGESIZE */
22123
22124 int
22125 main ()
22126 {
22127   char *data, *data2, *data3;
22128   int i, pagesize;
22129   int fd;
22130
22131   pagesize = getpagesize ();
22132
22133   /* First, make a file with some known garbage in it. */
22134   data = (char *) malloc (pagesize);
22135   if (!data)
22136     exit (1);
22137   for (i = 0; i < pagesize; ++i)
22138     *(data + i) = rand ();
22139   umask (0);
22140   fd = creat ("conftest.mmap", 0600);
22141   if (fd < 0)
22142     exit (1);
22143   if (write (fd, data, pagesize) != pagesize)
22144     exit (1);
22145   close (fd);
22146
22147   /* Next, try to mmap the file at a fixed address which already has
22148      something else allocated at it.  If we can, also make sure that
22149      we see the same garbage.  */
22150   fd = open ("conftest.mmap", O_RDWR);
22151   if (fd < 0)
22152     exit (1);
22153   data2 = (char *) malloc (2 * pagesize);
22154   if (!data2)
22155     exit (1);
22156   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22157   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22158                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22159     exit (1);
22160   for (i = 0; i < pagesize; ++i)
22161     if (*(data + i) != *(data2 + i))
22162       exit (1);
22163
22164   /* Finally, make sure that changes to the mapped area do not
22165      percolate back to the file as seen by read().  (This is a bug on
22166      some variants of i386 svr4.0.)  */
22167   for (i = 0; i < pagesize; ++i)
22168     *(data2 + i) = *(data2 + i) + 1;
22169   data3 = (char *) malloc (pagesize);
22170   if (!data3)
22171     exit (1);
22172   if (read (fd, data3, pagesize) != pagesize)
22173     exit (1);
22174   for (i = 0; i < pagesize; ++i)
22175     if (*(data + i) != *(data3 + i))
22176       exit (1);
22177   close (fd);
22178   exit (0);
22179 }
22180 _ACEOF
22181 rm -f conftest$ac_exeext
22182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22183   (eval $ac_link) 2>&5
22184   ac_status=$?
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188   (eval $ac_try) 2>&5
22189   ac_status=$?
22190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191   (exit $ac_status); }; }; then
22192   ac_cv_func_mmap_fixed_mapped=yes
22193 else
22194   echo "$as_me: program exited with status $ac_status" >&5
22195 echo "$as_me: failed program was:" >&5
22196 sed 's/^/| /' conftest.$ac_ext >&5
22197
22198 ( exit $ac_status )
22199 ac_cv_func_mmap_fixed_mapped=no
22200 fi
22201 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22202 fi
22203 fi
22204 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22205 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22206 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22207
22208 cat >>confdefs.h <<\_ACEOF
22209 #define HAVE_MMAP 1
22210 _ACEOF
22211
22212 fi
22213 rm -f conftest.mmap
22214
22215 echo "$as_me:$LINENO: checking for mmap of files" >&5
22216 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22217 if test "${ac_cv_func_mmap_file+set}" = set; then
22218   echo $ECHO_N "(cached) $ECHO_C" >&6
22219 else
22220
22221
22222   ac_ext=c
22223 ac_cpp='$CPP $CPPFLAGS'
22224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22227
22228   if test "$cross_compiling" = yes; then
22229   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22230 See \`config.log' for more details." >&5
22231 echo "$as_me: error: cannot run test program while cross compiling
22232 See \`config.log' for more details." >&2;}
22233    { (exit 1); exit 1; }; }
22234 else
22235   cat >conftest.$ac_ext <<_ACEOF
22236 #line $LINENO "configure"
22237 /* confdefs.h.  */
22238 _ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h.  */
22242
22243 #ifdef HAVE_SYS_MMAN_H
22244 #include <sys/mman.h>
22245 #endif
22246
22247 #ifdef HAVE_SYS_TYPES_H
22248 #include <sys/types.h>
22249 #endif
22250
22251 #ifdef HAVE_FCNTL_H
22252 #include <fcntl.h>
22253 #endif
22254
22255   int fd;
22256   int main () {
22257   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22258 _ACEOF
22259 rm -f conftest$ac_exeext
22260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22261   (eval $ac_link) 2>&5
22262   ac_status=$?
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266   (eval $ac_try) 2>&5
22267   ac_status=$?
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); }; }; then
22270   ac_cv_func_mmap_file=yes
22271 else
22272   echo "$as_me: program exited with status $ac_status" >&5
22273 echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22275
22276 ( exit $ac_status )
22277 ac_cv_func_mmap_file=no
22278 fi
22279 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22280 fi
22281   ac_ext=c
22282 ac_cpp='$CPP $CPPFLAGS'
22283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22286
22287
22288 fi
22289 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22290 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22291 if test "$ac_cv_func_mmap_file" = yes; then
22292    cat >>confdefs.h <<\_ACEOF
22293 #define HAVE_MMAP_FILE 1
22294 _ACEOF
22295
22296    MMAP_FILE=yes
22297
22298 fi
22299
22300 if test ${ac_cv_func_mmap_file} = "no"
22301 then
22302         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22303 echo "$as_me: error: mmap() of files required but not found" >&2;}
22304    { (exit 1); exit 1; }; }
22305 fi
22306 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22307 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22308 if test "${ac_cv_header_mmap_anon+set}" = set; then
22309   echo $ECHO_N "(cached) $ECHO_C" >&6
22310 else
22311
22312
22313   ac_ext=c
22314 ac_cpp='$CPP $CPPFLAGS'
22315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22318
22319   cat >conftest.$ac_ext <<_ACEOF
22320 #line $LINENO "configure"
22321 /* confdefs.h.  */
22322 _ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h.  */
22326 #include <sys/mman.h>
22327   #include <unistd.h>
22328   #include <fcntl.h>
22329 int
22330 main ()
22331 {
22332 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22333   ;
22334   return 0;
22335 }
22336 _ACEOF
22337 rm -f conftest.$ac_objext
22338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22339   (eval $ac_compile) 2>&5
22340   ac_status=$?
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); } &&
22343          { ac_try='test -s conftest.$ac_objext'
22344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22345   (eval $ac_try) 2>&5
22346   ac_status=$?
22347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348   (exit $ac_status); }; }; then
22349   ac_cv_header_mmap_anon=yes
22350 else
22351   echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.$ac_ext >&5
22353
22354 ac_cv_header_mmap_anon=no
22355 fi
22356 rm -f conftest.$ac_objext conftest.$ac_ext
22357   ac_ext=c
22358 ac_cpp='$CPP $CPPFLAGS'
22359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22362
22363
22364 fi
22365 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22366 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22367 if test "$ac_cv_header_mmap_anon" = yes; then
22368    cat >>confdefs.h <<\_ACEOF
22369 #define HAVE_MMAP_ANONYMOUS 1
22370 _ACEOF
22371
22372 fi
22373
22374 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22375 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22376 if test "${ac_cv_type_signal+set}" = set; then
22377   echo $ECHO_N "(cached) $ECHO_C" >&6
22378 else
22379   cat >conftest.$ac_ext <<_ACEOF
22380 #line $LINENO "configure"
22381 /* confdefs.h.  */
22382 _ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h.  */
22386 #include <sys/types.h>
22387 #include <signal.h>
22388 #ifdef signal
22389 # undef signal
22390 #endif
22391 #ifdef __cplusplus
22392 extern "C" void (*signal (int, void (*)(int)))(int);
22393 #else
22394 void (*signal ()) ();
22395 #endif
22396
22397 int
22398 main ()
22399 {
22400 int i;
22401   ;
22402   return 0;
22403 }
22404 _ACEOF
22405 rm -f conftest.$ac_objext
22406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22407   (eval $ac_compile) 2>&5
22408   ac_status=$?
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); } &&
22411          { ac_try='test -s conftest.$ac_objext'
22412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22413   (eval $ac_try) 2>&5
22414   ac_status=$?
22415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416   (exit $ac_status); }; }; then
22417   ac_cv_type_signal=void
22418 else
22419   echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22421
22422 ac_cv_type_signal=int
22423 fi
22424 rm -f conftest.$ac_objext conftest.$ac_ext
22425 fi
22426 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22427 echo "${ECHO_T}$ac_cv_type_signal" >&6
22428
22429 cat >>confdefs.h <<_ACEOF
22430 #define RETSIGTYPE $ac_cv_type_signal
22431 _ACEOF
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22444 do
22445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22446 echo "$as_me:$LINENO: checking for $ac_func" >&5
22447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22448 if eval "test \"\${$as_ac_var+set}\" = set"; then
22449   echo $ECHO_N "(cached) $ECHO_C" >&6
22450 else
22451   cat >conftest.$ac_ext <<_ACEOF
22452 #line $LINENO "configure"
22453 /* confdefs.h.  */
22454 _ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h.  */
22458 /* System header to define __stub macros and hopefully few prototypes,
22459     which can conflict with char $ac_func (); below.
22460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22461     <limits.h> exists even on freestanding compilers.  */
22462 #ifdef __STDC__
22463 # include <limits.h>
22464 #else
22465 # include <assert.h>
22466 #endif
22467 /* Override any gcc2 internal prototype to avoid an error.  */
22468 #ifdef __cplusplus
22469 extern "C"
22470 {
22471 #endif
22472 /* We use char because int might match the return type of a gcc2
22473    builtin and then its argument prototype would still apply.  */
22474 char $ac_func ();
22475 /* The GNU C library defines this for functions which it implements
22476     to always fail with ENOSYS.  Some functions are actually named
22477     something starting with __ and the normal name is an alias.  */
22478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22479 choke me
22480 #else
22481 char (*f) () = $ac_func;
22482 #endif
22483 #ifdef __cplusplus
22484 }
22485 #endif
22486
22487 int
22488 main ()
22489 {
22490 return f != $ac_func;
22491   ;
22492   return 0;
22493 }
22494 _ACEOF
22495 rm -f conftest.$ac_objext conftest$ac_exeext
22496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22497   (eval $ac_link) 2>&5
22498   ac_status=$?
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); } &&
22501          { ac_try='test -s conftest$ac_exeext'
22502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22503   (eval $ac_try) 2>&5
22504   ac_status=$?
22505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506   (exit $ac_status); }; }; then
22507   eval "$as_ac_var=yes"
22508 else
22509   echo "$as_me: failed program was:" >&5
22510 sed 's/^/| /' conftest.$ac_ext >&5
22511
22512 eval "$as_ac_var=no"
22513 fi
22514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22515 fi
22516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22518 if test `eval echo '${'$as_ac_var'}'` = yes; then
22519   cat >>confdefs.h <<_ACEOF
22520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22521 _ACEOF
22522
22523 fi
22524 done
22525
22526
22527
22528 echo "$as_me:$LINENO: checking for mmap" >&5
22529 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22530 if test "${ac_cv_func_mmap+set}" = set; then
22531   echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22533   cat >conftest.$ac_ext <<_ACEOF
22534 #line $LINENO "configure"
22535 /* confdefs.h.  */
22536 _ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h.  */
22540 /* System header to define __stub macros and hopefully few prototypes,
22541     which can conflict with char mmap (); below.
22542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22543     <limits.h> exists even on freestanding compilers.  */
22544 #ifdef __STDC__
22545 # include <limits.h>
22546 #else
22547 # include <assert.h>
22548 #endif
22549 /* Override any gcc2 internal prototype to avoid an error.  */
22550 #ifdef __cplusplus
22551 extern "C"
22552 {
22553 #endif
22554 /* We use char because int might match the return type of a gcc2
22555    builtin and then its argument prototype would still apply.  */
22556 char mmap ();
22557 /* The GNU C library defines this for functions which it implements
22558     to always fail with ENOSYS.  Some functions are actually named
22559     something starting with __ and the normal name is an alias.  */
22560 #if defined (__stub_mmap) || defined (__stub___mmap)
22561 choke me
22562 #else
22563 char (*f) () = mmap;
22564 #endif
22565 #ifdef __cplusplus
22566 }
22567 #endif
22568
22569 int
22570 main ()
22571 {
22572 return f != mmap;
22573   ;
22574   return 0;
22575 }
22576 _ACEOF
22577 rm -f conftest.$ac_objext conftest$ac_exeext
22578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22579   (eval $ac_link) 2>&5
22580   ac_status=$?
22581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); } &&
22583          { ac_try='test -s conftest$ac_exeext'
22584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22585   (eval $ac_try) 2>&5
22586   ac_status=$?
22587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588   (exit $ac_status); }; }; then
22589   ac_cv_func_mmap=yes
22590 else
22591   echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22593
22594 ac_cv_func_mmap=no
22595 fi
22596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22597 fi
22598 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22599 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22600 if test $ac_cv_func_mmap = yes; then
22601   :
22602 else
22603   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22604 echo "$as_me: error: Function mmap() required but not found" >&2;}
22605    { (exit 1); exit 1; }; }
22606 fi
22607
22608 echo "$as_me:$LINENO: checking for mprotect" >&5
22609 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22610 if test "${ac_cv_func_mprotect+set}" = set; then
22611   echo $ECHO_N "(cached) $ECHO_C" >&6
22612 else
22613   cat >conftest.$ac_ext <<_ACEOF
22614 #line $LINENO "configure"
22615 /* confdefs.h.  */
22616 _ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h.  */
22620 /* System header to define __stub macros and hopefully few prototypes,
22621     which can conflict with char mprotect (); below.
22622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22623     <limits.h> exists even on freestanding compilers.  */
22624 #ifdef __STDC__
22625 # include <limits.h>
22626 #else
22627 # include <assert.h>
22628 #endif
22629 /* Override any gcc2 internal prototype to avoid an error.  */
22630 #ifdef __cplusplus
22631 extern "C"
22632 {
22633 #endif
22634 /* We use char because int might match the return type of a gcc2
22635    builtin and then its argument prototype would still apply.  */
22636 char mprotect ();
22637 /* The GNU C library defines this for functions which it implements
22638     to always fail with ENOSYS.  Some functions are actually named
22639     something starting with __ and the normal name is an alias.  */
22640 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22641 choke me
22642 #else
22643 char (*f) () = mprotect;
22644 #endif
22645 #ifdef __cplusplus
22646 }
22647 #endif
22648
22649 int
22650 main ()
22651 {
22652 return f != mprotect;
22653   ;
22654   return 0;
22655 }
22656 _ACEOF
22657 rm -f conftest.$ac_objext conftest$ac_exeext
22658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22659   (eval $ac_link) 2>&5
22660   ac_status=$?
22661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662   (exit $ac_status); } &&
22663          { ac_try='test -s conftest$ac_exeext'
22664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665   (eval $ac_try) 2>&5
22666   ac_status=$?
22667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668   (exit $ac_status); }; }; then
22669   ac_cv_func_mprotect=yes
22670 else
22671   echo "$as_me: failed program was:" >&5
22672 sed 's/^/| /' conftest.$ac_ext >&5
22673
22674 ac_cv_func_mprotect=no
22675 fi
22676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22677 fi
22678 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22679 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22680 if test $ac_cv_func_mprotect = yes; then
22681   :
22682 else
22683   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22684 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22685    { (exit 1); exit 1; }; }
22686 fi
22687
22688
22689
22690 # Check whether --enable-purify or --disable-purify was given.
22691 if test "${enable_purify+set}" = set; then
22692   enableval="$enable_purify"
22693
22694 else
22695   enableval="no"
22696 fi;
22697 if test ${enableval} = "no"
22698 then
22699         ENABLE_PURIFY=
22700
22701 else
22702         ENABLE_PURIFY=ENABLE_PURIFY=1
22703
22704 fi
22705
22706 # Check whether --enable-optimized or --disable-optimized was given.
22707 if test "${enable_optimized+set}" = set; then
22708   enableval="$enable_optimized"
22709
22710 else
22711   enableval=no
22712 fi;
22713 if test ${enableval} = "no"
22714 then
22715         ENABLE_OPTIMIZED=
22716
22717 else
22718         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22719
22720 fi
22721
22722 # Check whether --enable-spec or --disable-spec was given.
22723 if test "${enable_spec+set}" = set; then
22724   enableval="$enable_spec"
22725
22726 else
22727   enableval=no
22728 fi;
22729 if test ${enableval} = "no"
22730 then
22731         USE_SPEC=
22732
22733 else
22734         USE_SPEC=USE_SPEC=1
22735
22736 fi
22737
22738 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22739 if test "${enable_precompiled_bytecode+set}" = set; then
22740   enableval="$enable_precompiled_bytecode"
22741
22742 else
22743   enableval=no
22744 fi;
22745 if test ${enableval} = "no"
22746 then
22747         UPB=
22748
22749 else
22750         UPB=USE_PRECOMPILED_BYTECODE=1
22751
22752 fi
22753
22754
22755 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22756 if test "${enable_llc_diffs+set}" = set; then
22757   enableval="$enable_llc_diffs"
22758
22759 else
22760   enableval=yes
22761 fi;
22762 if test ${enableval} = "no"
22763 then
22764         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22765
22766 else
22767         DISABLE_LLC_DIFFS=
22768
22769 fi
22770
22771 # Check whether --enable-jit or --disable-jit was given.
22772 if test "${enable_jit+set}" = set; then
22773   enableval="$enable_jit"
22774
22775 else
22776   enableval=default
22777 fi;
22778
22779 if test ${enableval} = "no"
22780 then
22781         JIT=
22782
22783 else
22784         case $target in
22785                 *i*86*)
22786                         JIT=TARGET_HAS_JIT=1
22787
22788                         ;;
22789                 *sparc*)
22790                         JIT=TARGET_HAS_JIT=1
22791
22792                         ;;
22793                 *)
22794                         JIT=
22795
22796                         ;;
22797         esac
22798 fi
22799
22800
22801
22802 # Check whether --with-spec or --without-spec was given.
22803 if test "${with_spec+set}" = set; then
22804   withval="$with_spec"
22805   SPEC_ROOT=$withval
22806
22807 else
22808   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22809
22810 fi;
22811
22812
22813 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22814 if test "${with_llvmgccdir+set}" = set; then
22815   withval="$with_llvmgccdir"
22816   LLVMGCCDIR=$withval
22817
22818 fi;
22819
22820
22821 # Check whether --with-bcrepos or --without-bcrepos was given.
22822 if test "${with_bcrepos+set}" = set; then
22823   withval="$with_bcrepos"
22824   BCR=$withval
22825
22826 else
22827   BCR=/home/vadve/lattner/LLVMPrograms
22828
22829 fi;
22830
22831
22832 # Check whether --with-papi or --without-papi was given.
22833 if test "${with_papi+set}" = set; then
22834   withval="$with_papi"
22835   PAPIDIR=$withval
22836
22837 else
22838   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22839
22840 fi;
22841
22842
22843 # Check whether --with-purify or --without-purify was given.
22844 if test "${with_purify+set}" = set; then
22845   withval="$with_purify"
22846   PURIFY=$withval
22847
22848 fi;
22849
22850
22851           ac_config_files="$ac_config_files Makefile.config"
22852 cat >confcache <<\_ACEOF
22853 # This file is a shell script that caches the results of configure
22854 # tests run on this system so they can be shared between configure
22855 # scripts and configure runs, see configure's option --config-cache.
22856 # It is not useful on other systems.  If it contains results you don't
22857 # want to keep, you may remove or edit it.
22858 #
22859 # config.status only pays attention to the cache file if you give it
22860 # the --recheck option to rerun configure.
22861 #
22862 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22863 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22864 # following values.
22865
22866 _ACEOF
22867
22868 # The following way of writing the cache mishandles newlines in values,
22869 # but we know of no workaround that is simple, portable, and efficient.
22870 # So, don't put newlines in cache variables' values.
22871 # Ultrix sh set writes to stderr and can't be redirected directly,
22872 # and sets the high bit in the cache file unless we assign to the vars.
22873 {
22874   (set) 2>&1 |
22875     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22876     *ac_space=\ *)
22877       # `set' does not quote correctly, so add quotes (double-quote
22878       # substitution turns \\\\ into \\, and sed turns \\ into \).
22879       sed -n \
22880         "s/'/'\\\\''/g;
22881           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22882       ;;
22883     *)
22884       # `set' quotes correctly as required by POSIX, so do not add quotes.
22885       sed -n \
22886         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22887       ;;
22888     esac;
22889 } |
22890   sed '
22891      t clear
22892      : clear
22893      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22894      t end
22895      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22896      : end' >>confcache
22897 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22898   if test -w $cache_file; then
22899     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22900     cat confcache >$cache_file
22901   else
22902     echo "not updating unwritable cache $cache_file"
22903   fi
22904 fi
22905 rm -f confcache
22906
22907 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22908 # Let make expand exec_prefix.
22909 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22910
22911 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22912 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22913 # trailing colons and then remove the whole line if VPATH becomes empty
22914 # (actually we leave an empty line to preserve line numbers).
22915 if test "x$srcdir" = x.; then
22916   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22917 s/:*\$(srcdir):*/:/;
22918 s/:*\${srcdir}:*/:/;
22919 s/:*@srcdir@:*/:/;
22920 s/^\([^=]*=[    ]*\):*/\1/;
22921 s/:*$//;
22922 s/^[^=]*=[      ]*$//;
22923 }'
22924 fi
22925
22926 DEFS=-DHAVE_CONFIG_H
22927
22928 ac_libobjs=
22929 ac_ltlibobjs=
22930 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22931   # 1. Remove the extension, and $U if already installed.
22932   ac_i=`echo "$ac_i" |
22933          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22934   # 2. Add them.
22935   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22936   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22937 done
22938 LIBOBJS=$ac_libobjs
22939
22940 LTLIBOBJS=$ac_ltlibobjs
22941
22942
22943
22944 : ${CONFIG_STATUS=./config.status}
22945 ac_clean_files_save=$ac_clean_files
22946 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22947 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22948 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22949 cat >$CONFIG_STATUS <<_ACEOF
22950 #! $SHELL
22951 # Generated by $as_me.
22952 # Run this file to recreate the current configuration.
22953 # Compiler output produced by configure, useful for debugging
22954 # configure, is in config.log if it exists.
22955
22956 debug=false
22957 ac_cs_recheck=false
22958 ac_cs_silent=false
22959 SHELL=\${CONFIG_SHELL-$SHELL}
22960 _ACEOF
22961
22962 cat >>$CONFIG_STATUS <<\_ACEOF
22963 ## --------------------- ##
22964 ## M4sh Initialization.  ##
22965 ## --------------------- ##
22966
22967 # Be Bourne compatible
22968 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22969   emulate sh
22970   NULLCMD=:
22971   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22972   # is contrary to our usage.  Disable this feature.
22973   alias -g '${1+"$@"}'='"$@"'
22974 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22975   set -o posix
22976 fi
22977
22978 # Support unset when possible.
22979 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22980   as_unset=unset
22981 else
22982   as_unset=false
22983 fi
22984
22985
22986 # Work around bugs in pre-3.0 UWIN ksh.
22987 $as_unset ENV MAIL MAILPATH
22988 PS1='$ '
22989 PS2='> '
22990 PS4='+ '
22991
22992 # NLS nuisances.
22993 for as_var in \
22994   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22995   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22996   LC_TELEPHONE LC_TIME
22997 do
22998   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22999     eval $as_var=C; export $as_var
23000   else
23001     $as_unset $as_var
23002   fi
23003 done
23004
23005 # Required to use basename.
23006 if expr a : '\(a\)' >/dev/null 2>&1; then
23007   as_expr=expr
23008 else
23009   as_expr=false
23010 fi
23011
23012 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23013   as_basename=basename
23014 else
23015   as_basename=false
23016 fi
23017
23018
23019 # Name of the executable.
23020 as_me=`$as_basename "$0" ||
23021 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23022          X"$0" : 'X\(//\)$' \| \
23023          X"$0" : 'X\(/\)$' \| \
23024          .     : '\(.\)' 2>/dev/null ||
23025 echo X/"$0" |
23026     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23027           /^X\/\(\/\/\)$/{ s//\1/; q; }
23028           /^X\/\(\/\).*/{ s//\1/; q; }
23029           s/.*/./; q'`
23030
23031
23032 # PATH needs CR, and LINENO needs CR and PATH.
23033 # Avoid depending upon Character Ranges.
23034 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23035 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23036 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23037 as_cr_digits='0123456789'
23038 as_cr_alnum=$as_cr_Letters$as_cr_digits
23039
23040 # The user is always right.
23041 if test "${PATH_SEPARATOR+set}" != set; then
23042   echo "#! /bin/sh" >conf$$.sh
23043   echo  "exit 0"   >>conf$$.sh
23044   chmod +x conf$$.sh
23045   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23046     PATH_SEPARATOR=';'
23047   else
23048     PATH_SEPARATOR=:
23049   fi
23050   rm -f conf$$.sh
23051 fi
23052
23053
23054   as_lineno_1=$LINENO
23055   as_lineno_2=$LINENO
23056   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23057   test "x$as_lineno_1" != "x$as_lineno_2" &&
23058   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23059   # Find who we are.  Look in the path if we contain no path at all
23060   # relative or not.
23061   case $0 in
23062     *[\\/]* ) as_myself=$0 ;;
23063     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23064 for as_dir in $PATH
23065 do
23066   IFS=$as_save_IFS
23067   test -z "$as_dir" && as_dir=.
23068   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23069 done
23070
23071        ;;
23072   esac
23073   # We did not find ourselves, most probably we were run as `sh COMMAND'
23074   # in which case we are not to be found in the path.
23075   if test "x$as_myself" = x; then
23076     as_myself=$0
23077   fi
23078   if test ! -f "$as_myself"; then
23079     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23080 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23081    { (exit 1); exit 1; }; }
23082   fi
23083   case $CONFIG_SHELL in
23084   '')
23085     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23086 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23087 do
23088   IFS=$as_save_IFS
23089   test -z "$as_dir" && as_dir=.
23090   for as_base in sh bash ksh sh5; do
23091          case $as_dir in
23092          /*)
23093            if ("$as_dir/$as_base" -c '
23094   as_lineno_1=$LINENO
23095   as_lineno_2=$LINENO
23096   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23097   test "x$as_lineno_1" != "x$as_lineno_2" &&
23098   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23099              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23100              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23101              CONFIG_SHELL=$as_dir/$as_base
23102              export CONFIG_SHELL
23103              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23104            fi;;
23105          esac
23106        done
23107 done
23108 ;;
23109   esac
23110
23111   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23112   # uniformly replaced by the line number.  The first 'sed' inserts a
23113   # line-number line before each line; the second 'sed' does the real
23114   # work.  The second script uses 'N' to pair each line-number line
23115   # with the numbered line, and appends trailing '-' during
23116   # substitution so that $LINENO is not a special case at line end.
23117   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23118   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23119   sed '=' <$as_myself |
23120     sed '
23121       N
23122       s,$,-,
23123       : loop
23124       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23125       t loop
23126       s,-$,,
23127       s,^['$as_cr_digits']*\n,,
23128     ' >$as_me.lineno &&
23129   chmod +x $as_me.lineno ||
23130     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23131 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23132    { (exit 1); exit 1; }; }
23133
23134   # Don't try to exec as it changes $[0], causing all sort of problems
23135   # (the dirname of $[0] is not the place where we might find the
23136   # original and so on.  Autoconf is especially sensible to this).
23137   . ./$as_me.lineno
23138   # Exit status is that of the last command.
23139   exit
23140 }
23141
23142
23143 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23144   *c*,-n*) ECHO_N= ECHO_C='
23145 ' ECHO_T='      ' ;;
23146   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23147   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23148 esac
23149
23150 if expr a : '\(a\)' >/dev/null 2>&1; then
23151   as_expr=expr
23152 else
23153   as_expr=false
23154 fi
23155
23156 rm -f conf$$ conf$$.exe conf$$.file
23157 echo >conf$$.file
23158 if ln -s conf$$.file conf$$ 2>/dev/null; then
23159   # We could just check for DJGPP; but this test a) works b) is more generic
23160   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23161   if test -f conf$$.exe; then
23162     # Don't use ln at all; we don't have any links
23163     as_ln_s='cp -p'
23164   else
23165     as_ln_s='ln -s'
23166   fi
23167 elif ln conf$$.file conf$$ 2>/dev/null; then
23168   as_ln_s=ln
23169 else
23170   as_ln_s='cp -p'
23171 fi
23172 rm -f conf$$ conf$$.exe conf$$.file
23173
23174 if mkdir -p . 2>/dev/null; then
23175   as_mkdir_p=:
23176 else
23177   as_mkdir_p=false
23178 fi
23179
23180 as_executable_p="test -f"
23181
23182 # Sed expression to map a string onto a valid CPP name.
23183 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23184
23185 # Sed expression to map a string onto a valid variable name.
23186 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23187
23188
23189 # IFS
23190 # We need space, tab and new line, in precisely that order.
23191 as_nl='
23192 '
23193 IFS="   $as_nl"
23194
23195 # CDPATH.
23196 $as_unset CDPATH
23197
23198 exec 6>&1
23199
23200 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23201 # report actual input values of CONFIG_FILES etc. instead of their
23202 # values after options handling.  Logging --version etc. is OK.
23203 exec 5>>config.log
23204 {
23205   echo
23206   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23207 ## Running $as_me. ##
23208 _ASBOX
23209 } >&5
23210 cat >&5 <<_CSEOF
23211
23212 This file was extended by [LLVM] $as_me [1.0], which was
23213 generated by GNU Autoconf 2.57.  Invocation command line was
23214
23215   CONFIG_FILES    = $CONFIG_FILES
23216   CONFIG_HEADERS  = $CONFIG_HEADERS
23217   CONFIG_LINKS    = $CONFIG_LINKS
23218   CONFIG_COMMANDS = $CONFIG_COMMANDS
23219   $ $0 $@
23220
23221 _CSEOF
23222 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23223 echo >&5
23224 _ACEOF
23225
23226 # Files that config.status was made for.
23227 if test -n "$ac_config_files"; then
23228   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23229 fi
23230
23231 if test -n "$ac_config_headers"; then
23232   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23233 fi
23234
23235 if test -n "$ac_config_links"; then
23236   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23237 fi
23238
23239 if test -n "$ac_config_commands"; then
23240   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23241 fi
23242
23243 cat >>$CONFIG_STATUS <<\_ACEOF
23244
23245 ac_cs_usage="\
23246 \`$as_me' instantiates files from templates according to the
23247 current configuration.
23248
23249 Usage: $0 [OPTIONS] [FILE]...
23250
23251   -h, --help       print this help, then exit
23252   -V, --version    print version number, then exit
23253   -q, --quiet      do not print progress messages
23254   -d, --debug      don't remove temporary files
23255       --recheck    update $as_me by reconfiguring in the same conditions
23256   --file=FILE[:TEMPLATE]
23257                    instantiate the configuration file FILE
23258   --header=FILE[:TEMPLATE]
23259                    instantiate the configuration header FILE
23260
23261 Configuration files:
23262 $config_files
23263
23264 Configuration headers:
23265 $config_headers
23266
23267 Configuration commands:
23268 $config_commands
23269
23270 Report bugs to <bug-autoconf@gnu.org>."
23271 _ACEOF
23272
23273 cat >>$CONFIG_STATUS <<_ACEOF
23274 ac_cs_version="\\
23275 [LLVM] config.status [1.0]
23276 configured by $0, generated by GNU Autoconf 2.57,
23277   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23278
23279 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23280 Free Software Foundation, Inc.
23281 This config.status script is free software; the Free Software Foundation
23282 gives unlimited permission to copy, distribute and modify it."
23283 srcdir=$srcdir
23284 INSTALL="$INSTALL"
23285 _ACEOF
23286
23287 cat >>$CONFIG_STATUS <<\_ACEOF
23288 # If no file are specified by the user, then we need to provide default
23289 # value.  By we need to know if files were specified by the user.
23290 ac_need_defaults=:
23291 while test $# != 0
23292 do
23293   case $1 in
23294   --*=*)
23295     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23296     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23297     ac_shift=:
23298     ;;
23299   -*)
23300     ac_option=$1
23301     ac_optarg=$2
23302     ac_shift=shift
23303     ;;
23304   *) # This is not an option, so the user has probably given explicit
23305      # arguments.
23306      ac_option=$1
23307      ac_need_defaults=false;;
23308   esac
23309
23310   case $ac_option in
23311   # Handling of the options.
23312 _ACEOF
23313 cat >>$CONFIG_STATUS <<\_ACEOF
23314   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23315     ac_cs_recheck=: ;;
23316   --version | --vers* | -V )
23317     echo "$ac_cs_version"; exit 0 ;;
23318   --he | --h)
23319     # Conflict between --help and --header
23320     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23321 Try \`$0 --help' for more information." >&5
23322 echo "$as_me: error: ambiguous option: $1
23323 Try \`$0 --help' for more information." >&2;}
23324    { (exit 1); exit 1; }; };;
23325   --help | --hel | -h )
23326     echo "$ac_cs_usage"; exit 0 ;;
23327   --debug | --d* | -d )
23328     debug=: ;;
23329   --file | --fil | --fi | --f )
23330     $ac_shift
23331     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23332     ac_need_defaults=false;;
23333   --header | --heade | --head | --hea )
23334     $ac_shift
23335     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23336     ac_need_defaults=false;;
23337   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23338   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23339     ac_cs_silent=: ;;
23340
23341   # This is an error.
23342   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23343 Try \`$0 --help' for more information." >&5
23344 echo "$as_me: error: unrecognized option: $1
23345 Try \`$0 --help' for more information." >&2;}
23346    { (exit 1); exit 1; }; } ;;
23347
23348   *) ac_config_targets="$ac_config_targets $1" ;;
23349
23350   esac
23351   shift
23352 done
23353
23354 ac_configure_extra_args=
23355
23356 if $ac_cs_silent; then
23357   exec 6>/dev/null
23358   ac_configure_extra_args="$ac_configure_extra_args --silent"
23359 fi
23360
23361 _ACEOF
23362 cat >>$CONFIG_STATUS <<_ACEOF
23363 if \$ac_cs_recheck; then
23364   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23365   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23366 fi
23367
23368 _ACEOF
23369
23370 cat >>$CONFIG_STATUS <<_ACEOF
23371 #
23372 # INIT-COMMANDS section.
23373 #
23374
23375 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23376 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23377 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23378 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23379 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23380 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23381 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23382 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23383 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23384 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23480 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23481 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23484 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23485 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23489 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23490 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23491 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23492 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23493 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23494 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23495 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23496 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23497 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23498 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23499 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23500 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23501 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23502 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23503 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23504 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23505 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23506 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23507 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23508 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23509 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23510 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23511 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23512 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23513 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23514 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23515 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23516 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23517 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23518 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23519 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23520 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23521 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23522 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23523 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23524 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23525 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23526 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23527 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23528 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23529 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23530 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23531 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23532 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23533 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23534 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23535 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23536 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23537 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23538 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23539 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23540 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23541 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23542 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23543 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23544 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23545 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23546 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23547 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23548 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23549 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23550 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23551 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23552
23553 _ACEOF
23554
23555
23556
23557 cat >>$CONFIG_STATUS <<\_ACEOF
23558 for ac_config_target in $ac_config_targets
23559 do
23560   case "$ac_config_target" in
23561   # Handling of arguments.
23562   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23563   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23564   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23565   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23566   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23567   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23568   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23569   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23570   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23571   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23572   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23573   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23574   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23575   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23576   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23577   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23578   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23579   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23580   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23581   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23582   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23583   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23584   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23585   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23586   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23587   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23588   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23589   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23590   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23591   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23592   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23593   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23594   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23595   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23596   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23597   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23598   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23599   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23600   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23601   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23602   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23603   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23604   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23605   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23606   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23607   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23608   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23609   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23610   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23611   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23612   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23613   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23614   "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
23615   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23616   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23617   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23618   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23619   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23620   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23621   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23622   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23623   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23624   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23625   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23626   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23627   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23628   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23629   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23630   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23631   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23632   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23633   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23634   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23635   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23636   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23637   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23638   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23639   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23640   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23641   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23642   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23643   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23644   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23645   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23646   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23647   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23648   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23649   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23650   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23651   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23652   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23653   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23654   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23655   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23656   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23657   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23658   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23659   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23660   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23661   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23662   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23663   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23664   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23665   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23666   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23667   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23668   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23669   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23670   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23671   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23672   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23673   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23674   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23675   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23676   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23677   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23678   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23679   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23680   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23681   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23682   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23683   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23684   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23685   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23686   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23687   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23688   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23689   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23690   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23691   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23692   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23693   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23694   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23695   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23696   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23697   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23698   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23699   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23700   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23701   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23702   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23703   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23704   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23705   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23706   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23707   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23708   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
23709   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23710   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23711   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23712   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23713   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23714   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23715   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23716   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23717   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23718   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23719   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23720   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23721   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23722   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23723   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23724   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23725   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23726   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23727   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23728   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23729   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23730   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23731   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23732   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23733   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23734   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23735   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23736   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23737   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23738   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23739   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23740   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23741   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23742 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23743    { (exit 1); exit 1; }; };;
23744   esac
23745 done
23746
23747 # If the user did not use the arguments to specify the items to instantiate,
23748 # then the envvar interface is used.  Set only those that are not.
23749 # We use the long form for the default assignment because of an extremely
23750 # bizarre bug on SunOS 4.1.3.
23751 if $ac_need_defaults; then
23752   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23753   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23754   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23755 fi
23756
23757 # Have a temporary directory for convenience.  Make it in the build tree
23758 # simply because there is no reason to put it here, and in addition,
23759 # creating and moving files from /tmp can sometimes cause problems.
23760 # Create a temporary directory, and hook for its removal unless debugging.
23761 $debug ||
23762 {
23763   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23764   trap '{ (exit 1); exit 1; }' 1 2 13 15
23765 }
23766
23767 # Create a (secure) tmp directory for tmp files.
23768
23769 {
23770   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23771   test -n "$tmp" && test -d "$tmp"
23772 }  ||
23773 {
23774   tmp=./confstat$$-$RANDOM
23775   (umask 077 && mkdir $tmp)
23776 } ||
23777 {
23778    echo "$me: cannot create a temporary directory in ." >&2
23779    { (exit 1); exit 1; }
23780 }
23781
23782 _ACEOF
23783
23784 cat >>$CONFIG_STATUS <<_ACEOF
23785
23786 #
23787 # CONFIG_FILES section.
23788 #
23789
23790 # No need to generate the scripts if there are no CONFIG_FILES.
23791 # This happens for instance when ./config.status config.h
23792 if test -n "\$CONFIG_FILES"; then
23793   # Protect against being on the right side of a sed subst in config.status.
23794   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23795    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23796 s,@SHELL@,$SHELL,;t t
23797 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23798 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23799 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23800 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23801 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23802 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23803 s,@exec_prefix@,$exec_prefix,;t t
23804 s,@prefix@,$prefix,;t t
23805 s,@program_transform_name@,$program_transform_name,;t t
23806 s,@bindir@,$bindir,;t t
23807 s,@sbindir@,$sbindir,;t t
23808 s,@libexecdir@,$libexecdir,;t t
23809 s,@datadir@,$datadir,;t t
23810 s,@sysconfdir@,$sysconfdir,;t t
23811 s,@sharedstatedir@,$sharedstatedir,;t t
23812 s,@localstatedir@,$localstatedir,;t t
23813 s,@libdir@,$libdir,;t t
23814 s,@includedir@,$includedir,;t t
23815 s,@oldincludedir@,$oldincludedir,;t t
23816 s,@infodir@,$infodir,;t t
23817 s,@mandir@,$mandir,;t t
23818 s,@build_alias@,$build_alias,;t t
23819 s,@host_alias@,$host_alias,;t t
23820 s,@target_alias@,$target_alias,;t t
23821 s,@DEFS@,$DEFS,;t t
23822 s,@ECHO_C@,$ECHO_C,;t t
23823 s,@ECHO_N@,$ECHO_N,;t t
23824 s,@ECHO_T@,$ECHO_T,;t t
23825 s,@LIBS@,$LIBS,;t t
23826 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23827 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23828 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23829 s,@build@,$build,;t t
23830 s,@build_cpu@,$build_cpu,;t t
23831 s,@build_vendor@,$build_vendor,;t t
23832 s,@build_os@,$build_os,;t t
23833 s,@host@,$host,;t t
23834 s,@host_cpu@,$host_cpu,;t t
23835 s,@host_vendor@,$host_vendor,;t t
23836 s,@host_os@,$host_os,;t t
23837 s,@target@,$target,;t t
23838 s,@target_cpu@,$target_cpu,;t t
23839 s,@target_vendor@,$target_vendor,;t t
23840 s,@target_os@,$target_os,;t t
23841 s,@OS@,$OS,;t t
23842 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23843 s,@ARCH@,$ARCH,;t t
23844 s,@CXX@,$CXX,;t t
23845 s,@CXXFLAGS@,$CXXFLAGS,;t t
23846 s,@LDFLAGS@,$LDFLAGS,;t t
23847 s,@CPPFLAGS@,$CPPFLAGS,;t t
23848 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23849 s,@EXEEXT@,$EXEEXT,;t t
23850 s,@OBJEXT@,$OBJEXT,;t t
23851 s,@CC@,$CC,;t t
23852 s,@CFLAGS@,$CFLAGS,;t t
23853 s,@ac_ct_CC@,$ac_ct_CC,;t t
23854 s,@CPP@,$CPP,;t t
23855 s,@ifGNUmake@,$ifGNUmake,;t t
23856 s,@LEX@,$LEX,;t t
23857 s,@LEXLIB@,$LEXLIB,;t t
23858 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23859 s,@YACC@,$YACC,;t t
23860 s,@EGREP@,$EGREP,;t t
23861 s,@LN_S@,$LN_S,;t t
23862 s,@ECHO@,$ECHO,;t t
23863 s,@AR@,$AR,;t t
23864 s,@ac_ct_AR@,$ac_ct_AR,;t t
23865 s,@RANLIB@,$RANLIB,;t t
23866 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23867 s,@STRIP@,$STRIP,;t t
23868 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23869 s,@CXXCPP@,$CXXCPP,;t t
23870 s,@F77@,$F77,;t t
23871 s,@FFLAGS@,$FFLAGS,;t t
23872 s,@ac_ct_F77@,$ac_ct_F77,;t t
23873 s,@LIBTOOL@,$LIBTOOL,;t t
23874 s,@RPWD@,$RPWD,;t t
23875 s,@SED@,$SED,;t t
23876 s,@RM@,$RM,;t t
23877 s,@MKDIR@,$MKDIR,;t t
23878 s,@DATE@,$DATE,;t t
23879 s,@MV@,$MV,;t t
23880 s,@DOT@,$DOT,;t t
23881 s,@ETAGS@,$ETAGS,;t t
23882 s,@PURIFY@,$PURIFY,;t t
23883 s,@PYTHON@,$PYTHON,;t t
23884 s,@QMTEST@,$QMTEST,;t t
23885 s,@ALLOCA@,$ALLOCA,;t t
23886 s,@LIBOBJS@,$LIBOBJS,;t t
23887 s,@MMAP_FILE@,$MMAP_FILE,;t t
23888 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23889 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23890 s,@USE_SPEC@,$USE_SPEC,;t t
23891 s,@UPB@,$UPB,;t t
23892 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23893 s,@JIT@,$JIT,;t t
23894 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23895 s,@BCR@,$BCR,;t t
23896 s,@PAPIDIR@,$PAPIDIR,;t t
23897 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23898 CEOF
23899
23900 _ACEOF
23901
23902   cat >>$CONFIG_STATUS <<\_ACEOF
23903   # Split the substitutions into bite-sized pieces for seds with
23904   # small command number limits, like on Digital OSF/1 and HP-UX.
23905   ac_max_sed_lines=48
23906   ac_sed_frag=1 # Number of current file.
23907   ac_beg=1 # First line for current file.
23908   ac_end=$ac_max_sed_lines # Line after last line for current file.
23909   ac_more_lines=:
23910   ac_sed_cmds=
23911   while $ac_more_lines; do
23912     if test $ac_beg -gt 1; then
23913       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23914     else
23915       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23916     fi
23917     if test ! -s $tmp/subs.frag; then
23918       ac_more_lines=false
23919     else
23920       # The purpose of the label and of the branching condition is to
23921       # speed up the sed processing (if there are no `@' at all, there
23922       # is no need to browse any of the substitutions).
23923       # These are the two extra sed commands mentioned above.
23924       (echo ':t
23925   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23926       if test -z "$ac_sed_cmds"; then
23927         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23928       else
23929         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23930       fi
23931       ac_sed_frag=`expr $ac_sed_frag + 1`
23932       ac_beg=$ac_end
23933       ac_end=`expr $ac_end + $ac_max_sed_lines`
23934     fi
23935   done
23936   if test -z "$ac_sed_cmds"; then
23937     ac_sed_cmds=cat
23938   fi
23939 fi # test -n "$CONFIG_FILES"
23940
23941 _ACEOF
23942 cat >>$CONFIG_STATUS <<\_ACEOF
23943 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23944   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23945   case $ac_file in
23946   - | *:- | *:-:* ) # input from stdin
23947         cat >$tmp/stdin
23948         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23949         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23950   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23951         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23952   * )   ac_file_in=$ac_file.in ;;
23953   esac
23954
23955   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23956   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23958          X"$ac_file" : 'X\(//\)[^/]' \| \
23959          X"$ac_file" : 'X\(//\)$' \| \
23960          X"$ac_file" : 'X\(/\)' \| \
23961          .     : '\(.\)' 2>/dev/null ||
23962 echo X"$ac_file" |
23963     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23964           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23965           /^X\(\/\/\)$/{ s//\1/; q; }
23966           /^X\(\/\).*/{ s//\1/; q; }
23967           s/.*/./; q'`
23968   { if $as_mkdir_p; then
23969     mkdir -p "$ac_dir"
23970   else
23971     as_dir="$ac_dir"
23972     as_dirs=
23973     while test ! -d "$as_dir"; do
23974       as_dirs="$as_dir $as_dirs"
23975       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23977          X"$as_dir" : 'X\(//\)[^/]' \| \
23978          X"$as_dir" : 'X\(//\)$' \| \
23979          X"$as_dir" : 'X\(/\)' \| \
23980          .     : '\(.\)' 2>/dev/null ||
23981 echo X"$as_dir" |
23982     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23983           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23984           /^X\(\/\/\)$/{ s//\1/; q; }
23985           /^X\(\/\).*/{ s//\1/; q; }
23986           s/.*/./; q'`
23987     done
23988     test ! -n "$as_dirs" || mkdir $as_dirs
23989   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23990 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23991    { (exit 1); exit 1; }; }; }
23992
23993   ac_builddir=.
23994
23995 if test "$ac_dir" != .; then
23996   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23997   # A "../" for each directory in $ac_dir_suffix.
23998   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23999 else
24000   ac_dir_suffix= ac_top_builddir=
24001 fi
24002
24003 case $srcdir in
24004   .)  # No --srcdir option.  We are building in place.
24005     ac_srcdir=.
24006     if test -z "$ac_top_builddir"; then
24007        ac_top_srcdir=.
24008     else
24009        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24010     fi ;;
24011   [\\/]* | ?:[\\/]* )  # Absolute path.
24012     ac_srcdir=$srcdir$ac_dir_suffix;
24013     ac_top_srcdir=$srcdir ;;
24014   *) # Relative path.
24015     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24016     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24017 esac
24018 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24019 # absolute.
24020 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24021 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24022 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24023 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24024
24025
24026   case $INSTALL in
24027   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24028   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24029   esac
24030
24031   if test x"$ac_file" != x-; then
24032     { echo "$as_me:$LINENO: creating $ac_file" >&5
24033 echo "$as_me: creating $ac_file" >&6;}
24034     rm -f "$ac_file"
24035   fi
24036   # Let's still pretend it is `configure' which instantiates (i.e., don't
24037   # use $as_me), people would be surprised to read:
24038   #    /* config.h.  Generated by config.status.  */
24039   if test x"$ac_file" = x-; then
24040     configure_input=
24041   else
24042     configure_input="$ac_file.  "
24043   fi
24044   configure_input=$configure_input"Generated from `echo $ac_file_in |
24045                                      sed 's,.*/,,'` by configure."
24046
24047   # First look for the input files in the build tree, otherwise in the
24048   # src tree.
24049   ac_file_inputs=`IFS=:
24050     for f in $ac_file_in; do
24051       case $f in
24052       -) echo $tmp/stdin ;;
24053       [\\/$]*)
24054          # Absolute (can't be DOS-style, as IFS=:)
24055          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24056 echo "$as_me: error: cannot find input file: $f" >&2;}
24057    { (exit 1); exit 1; }; }
24058          echo $f;;
24059       *) # Relative
24060          if test -f "$f"; then
24061            # Build tree
24062            echo $f
24063          elif test -f "$srcdir/$f"; then
24064            # Source tree
24065            echo $srcdir/$f
24066          else
24067            # /dev/null tree
24068            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24069 echo "$as_me: error: cannot find input file: $f" >&2;}
24070    { (exit 1); exit 1; }; }
24071          fi;;
24072       esac
24073     done` || { (exit 1); exit 1; }
24074 _ACEOF
24075 cat >>$CONFIG_STATUS <<_ACEOF
24076   sed "$ac_vpsub
24077 $extrasub
24078 _ACEOF
24079 cat >>$CONFIG_STATUS <<\_ACEOF
24080 :t
24081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24082 s,@configure_input@,$configure_input,;t t
24083 s,@srcdir@,$ac_srcdir,;t t
24084 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24085 s,@top_srcdir@,$ac_top_srcdir,;t t
24086 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24087 s,@builddir@,$ac_builddir,;t t
24088 s,@abs_builddir@,$ac_abs_builddir,;t t
24089 s,@top_builddir@,$ac_top_builddir,;t t
24090 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24091 s,@INSTALL@,$ac_INSTALL,;t t
24092 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24093   rm -f $tmp/stdin
24094   if test x"$ac_file" != x-; then
24095     mv $tmp/out $ac_file
24096   else
24097     cat $tmp/out
24098     rm -f $tmp/out
24099   fi
24100
24101 done
24102 _ACEOF
24103 cat >>$CONFIG_STATUS <<\_ACEOF
24104
24105 #
24106 # CONFIG_HEADER section.
24107 #
24108
24109 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24110 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24111 #
24112 # ac_d sets the value in "#define NAME VALUE" lines.
24113 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24114 ac_dB='[        ].*$,\1#\2'
24115 ac_dC=' '
24116 ac_dD=',;t'
24117 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24118 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24119 ac_uB='$,\1#\2define\3'
24120 ac_uC=' '
24121 ac_uD=',;t'
24122
24123 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24124   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24125   case $ac_file in
24126   - | *:- | *:-:* ) # input from stdin
24127         cat >$tmp/stdin
24128         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24129         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24130   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24131         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24132   * )   ac_file_in=$ac_file.in ;;
24133   esac
24134
24135   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24136 echo "$as_me: creating $ac_file" >&6;}
24137
24138   # First look for the input files in the build tree, otherwise in the
24139   # src tree.
24140   ac_file_inputs=`IFS=:
24141     for f in $ac_file_in; do
24142       case $f in
24143       -) echo $tmp/stdin ;;
24144       [\\/$]*)
24145          # Absolute (can't be DOS-style, as IFS=:)
24146          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24147 echo "$as_me: error: cannot find input file: $f" >&2;}
24148    { (exit 1); exit 1; }; }
24149          echo $f;;
24150       *) # Relative
24151          if test -f "$f"; then
24152            # Build tree
24153            echo $f
24154          elif test -f "$srcdir/$f"; then
24155            # Source tree
24156            echo $srcdir/$f
24157          else
24158            # /dev/null tree
24159            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24160 echo "$as_me: error: cannot find input file: $f" >&2;}
24161    { (exit 1); exit 1; }; }
24162          fi;;
24163       esac
24164     done` || { (exit 1); exit 1; }
24165   # Remove the trailing spaces.
24166   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24167
24168 _ACEOF
24169
24170 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24171 # `conftest.undefs', that substitutes the proper values into
24172 # config.h.in to produce config.h.  The first handles `#define'
24173 # templates, and the second `#undef' templates.
24174 # And first: Protect against being on the right side of a sed subst in
24175 # config.status.  Protect against being in an unquoted here document
24176 # in config.status.
24177 rm -f conftest.defines conftest.undefs
24178 # Using a here document instead of a string reduces the quoting nightmare.
24179 # Putting comments in sed scripts is not portable.
24180 #
24181 # `end' is used to avoid that the second main sed command (meant for
24182 # 0-ary CPP macros) applies to n-ary macro definitions.
24183 # See the Autoconf documentation for `clear'.
24184 cat >confdef2sed.sed <<\_ACEOF
24185 s/[\\&,]/\\&/g
24186 s,[\\$`],\\&,g
24187 t clear
24188 : clear
24189 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24190 t end
24191 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24192 : end
24193 _ACEOF
24194 # If some macros were called several times there might be several times
24195 # the same #defines, which is useless.  Nevertheless, we may not want to
24196 # sort them, since we want the *last* AC-DEFINE to be honored.
24197 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24198 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24199 rm -f confdef2sed.sed
24200
24201 # This sed command replaces #undef with comments.  This is necessary, for
24202 # example, in the case of _POSIX_SOURCE, which is predefined and required
24203 # on some systems where configure will not decide to define it.
24204 cat >>conftest.undefs <<\_ACEOF
24205 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24206 _ACEOF
24207
24208 # Break up conftest.defines because some shells have a limit on the size
24209 # of here documents, and old seds have small limits too (100 cmds).
24210 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24211 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24212 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24213 echo '  :' >>$CONFIG_STATUS
24214 rm -f conftest.tail
24215 while grep . conftest.defines >/dev/null
24216 do
24217   # Write a limited-size here document to $tmp/defines.sed.
24218   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24219   # Speed up: don't consider the non `#define' lines.
24220   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24221   # Work around the forget-to-reset-the-flag bug.
24222   echo 't clr' >>$CONFIG_STATUS
24223   echo ': clr' >>$CONFIG_STATUS
24224   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24225   echo 'CEOF
24226   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24227   rm -f $tmp/in
24228   mv $tmp/out $tmp/in
24229 ' >>$CONFIG_STATUS
24230   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24231   rm -f conftest.defines
24232   mv conftest.tail conftest.defines
24233 done
24234 rm -f conftest.defines
24235 echo '  fi # grep' >>$CONFIG_STATUS
24236 echo >>$CONFIG_STATUS
24237
24238 # Break up conftest.undefs because some shells have a limit on the size
24239 # of here documents, and old seds have small limits too (100 cmds).
24240 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24241 rm -f conftest.tail
24242 while grep . conftest.undefs >/dev/null
24243 do
24244   # Write a limited-size here document to $tmp/undefs.sed.
24245   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24246   # Speed up: don't consider the non `#undef'
24247   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24248   # Work around the forget-to-reset-the-flag bug.
24249   echo 't clr' >>$CONFIG_STATUS
24250   echo ': clr' >>$CONFIG_STATUS
24251   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24252   echo 'CEOF
24253   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24254   rm -f $tmp/in
24255   mv $tmp/out $tmp/in
24256 ' >>$CONFIG_STATUS
24257   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24258   rm -f conftest.undefs
24259   mv conftest.tail conftest.undefs
24260 done
24261 rm -f conftest.undefs
24262
24263 cat >>$CONFIG_STATUS <<\_ACEOF
24264   # Let's still pretend it is `configure' which instantiates (i.e., don't
24265   # use $as_me), people would be surprised to read:
24266   #    /* config.h.  Generated by config.status.  */
24267   if test x"$ac_file" = x-; then
24268     echo "/* Generated by configure.  */" >$tmp/config.h
24269   else
24270     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24271   fi
24272   cat $tmp/in >>$tmp/config.h
24273   rm -f $tmp/in
24274   if test x"$ac_file" != x-; then
24275     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24276       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24277 echo "$as_me: $ac_file is unchanged" >&6;}
24278     else
24279       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24280 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24281          X"$ac_file" : 'X\(//\)[^/]' \| \
24282          X"$ac_file" : 'X\(//\)$' \| \
24283          X"$ac_file" : 'X\(/\)' \| \
24284          .     : '\(.\)' 2>/dev/null ||
24285 echo X"$ac_file" |
24286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24287           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24288           /^X\(\/\/\)$/{ s//\1/; q; }
24289           /^X\(\/\).*/{ s//\1/; q; }
24290           s/.*/./; q'`
24291       { if $as_mkdir_p; then
24292     mkdir -p "$ac_dir"
24293   else
24294     as_dir="$ac_dir"
24295     as_dirs=
24296     while test ! -d "$as_dir"; do
24297       as_dirs="$as_dir $as_dirs"
24298       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24300          X"$as_dir" : 'X\(//\)[^/]' \| \
24301          X"$as_dir" : 'X\(//\)$' \| \
24302          X"$as_dir" : 'X\(/\)' \| \
24303          .     : '\(.\)' 2>/dev/null ||
24304 echo X"$as_dir" |
24305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24306           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24307           /^X\(\/\/\)$/{ s//\1/; q; }
24308           /^X\(\/\).*/{ s//\1/; q; }
24309           s/.*/./; q'`
24310     done
24311     test ! -n "$as_dirs" || mkdir $as_dirs
24312   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24313 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24314    { (exit 1); exit 1; }; }; }
24315
24316       rm -f $ac_file
24317       mv $tmp/config.h $ac_file
24318     fi
24319   else
24320     cat $tmp/config.h
24321     rm -f $tmp/config.h
24322   fi
24323 done
24324 _ACEOF
24325 cat >>$CONFIG_STATUS <<\_ACEOF
24326
24327 #
24328 # CONFIG_COMMANDS section.
24329 #
24330 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24331   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24332   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24333   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24334 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24335          X"$ac_dest" : 'X\(//\)[^/]' \| \
24336          X"$ac_dest" : 'X\(//\)$' \| \
24337          X"$ac_dest" : 'X\(/\)' \| \
24338          .     : '\(.\)' 2>/dev/null ||
24339 echo X"$ac_dest" |
24340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24341           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24342           /^X\(\/\/\)$/{ s//\1/; q; }
24343           /^X\(\/\).*/{ s//\1/; q; }
24344           s/.*/./; q'`
24345   ac_builddir=.
24346
24347 if test "$ac_dir" != .; then
24348   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24349   # A "../" for each directory in $ac_dir_suffix.
24350   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24351 else
24352   ac_dir_suffix= ac_top_builddir=
24353 fi
24354
24355 case $srcdir in
24356   .)  # No --srcdir option.  We are building in place.
24357     ac_srcdir=.
24358     if test -z "$ac_top_builddir"; then
24359        ac_top_srcdir=.
24360     else
24361        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24362     fi ;;
24363   [\\/]* | ?:[\\/]* )  # Absolute path.
24364     ac_srcdir=$srcdir$ac_dir_suffix;
24365     ac_top_srcdir=$srcdir ;;
24366   *) # Relative path.
24367     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24368     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24369 esac
24370 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24371 # absolute.
24372 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24373 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24374 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24375 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24376
24377
24378   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24379 echo "$as_me: executing $ac_dest commands" >&6;}
24380   case $ac_dest in
24381     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24382     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24383     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24384     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24385     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24386     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24387     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24388     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24389     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24390     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24391     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24392     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24393     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24394     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24395     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24396     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24397     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24398     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24399     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24400     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24401     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24402     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24403     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24404     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24405     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24406     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24407     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24408     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24409     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24410     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24411     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24412     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24413     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24414     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24415     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24416     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24417     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24418     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24419     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24420     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24421     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24422     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24423     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24424     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24425     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24426     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24427     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24428     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24429     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24430     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24431     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24432     test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
24433     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24434     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24435     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24436     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24437     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24438     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24439     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24440     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24441     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24442     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24443     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24444     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24445     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24446     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24447     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24448     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24449     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24450     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24451     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 ;;
24452     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 ;;
24453     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 ;;
24454     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 ;;
24455     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 ;;
24456     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 ;;
24457     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 ;;
24458     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 ;;
24459     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 ;;
24460     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 ;;
24461     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 ;;
24462     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 ;;
24463     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 ;;
24464     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 ;;
24465     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 ;;
24466     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 ;;
24467     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24468     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24469     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24470     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24471     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 ;;
24472     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 ;;
24473     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 ;;
24474     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24475     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 ;;
24476     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 ;;
24477     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 ;;
24478     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 ;;
24479     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 ;;
24480     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 ;;
24481     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 ;;
24482     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 ;;
24483     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 ;;
24484     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 ;;
24485     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 ;;
24486     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 ;;
24487     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 ;;
24488     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 ;;
24489     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 ;;
24490     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 ;;
24491     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 ;;
24492     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 ;;
24493     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 ;;
24494     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 ;;
24495     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 ;;
24496     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 ;;
24497     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 ;;
24498     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 ;;
24499     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 ;;
24500     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 ;;
24501     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 ;;
24502     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 ;;
24503     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 ;;
24504     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 ;;
24505     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 ;;
24506     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 ;;
24507     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24508     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24509     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24510     test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
24511     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24512     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24513     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24514     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24515     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24516     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24517     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 ;;
24518     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 ;;
24519     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 ;;
24520     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 ;;
24521     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24522     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24523     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 ;;
24524     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24525     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 ;;
24526     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 ;;
24527     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24528     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24529     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24530     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24531     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24532     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24533     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24534     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24535     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24536     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24537     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24538     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24539     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24540     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24541     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24542     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24543     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24544     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24545     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24546     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24547     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24548     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24549     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24550     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24551     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24552     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24553     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24554     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24555     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24556     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24557     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24558   esac
24559 done
24560 _ACEOF
24561
24562 cat >>$CONFIG_STATUS <<\_ACEOF
24563
24564 { (exit 0); exit 0; }
24565 _ACEOF
24566 chmod +x $CONFIG_STATUS
24567 ac_clean_files=$ac_clean_files_save
24568
24569
24570 # configure is writing to config.log, and then calls config.status.
24571 # config.status does its own redirection, appending to config.log.
24572 # Unfortunately, on DOS this fails, as config.log is still kept open
24573 # by configure, so config.status won't be able to write to it; its
24574 # output is simply discarded.  So we exec the FD to /dev/null,
24575 # effectively closing config.log, so it can be properly (re)opened and
24576 # appended to by config.status.  When coming back to configure, we
24577 # need to make the FD available again.
24578 if test "$no_create" != yes; then
24579   ac_cs_success=:
24580   ac_config_status_args=
24581   test "$silent" = yes &&
24582     ac_config_status_args="$ac_config_status_args --quiet"
24583   exec 5>/dev/null
24584   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24585   exec 5>>config.log
24586   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24587   # would make configure fail if this is the last instruction.
24588   $ac_cs_success || { (exit 1); exit 1; }
24589 fi
24590