Re-generated for recent changes.
[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           ac_config_headers="$ac_config_headers include/Config/config.h"
1513
1514           ac_config_commands="$ac_config_commands Makefile"
1515
1516
1517           ac_config_commands="$ac_config_commands Makefile.common"
1518
1519
1520           ac_config_commands="$ac_config_commands Makefile.rules"
1521
1522
1523           ac_config_commands="$ac_config_commands lib/Makefile"
1524
1525
1526           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1527
1528
1529           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1530
1531
1532           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1533
1534
1535           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1536
1537
1538           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1539
1540
1541           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1542
1543
1544           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1545
1546
1547           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1548
1549
1550           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1554
1555
1556           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1557
1558
1559           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1560
1561
1562           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1566
1567
1568           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1572
1573
1574           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1575
1576
1577           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands runtime/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libexception/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1659
1660
1661           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands test/Makefile"
1665
1666
1667           ac_config_commands="$ac_config_commands test/Makefile.tests"
1668
1669
1670           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1671
1672
1673           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1674
1675
1676           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1680
1681
1682           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1683
1684
1685           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1686
1687
1688           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1689
1690
1691           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1692
1693
1694           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1695
1696
1697           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1698
1699
1700           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1701
1702
1703           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1704
1705
1706           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1707
1708
1709           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1710
1711
1712           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1713
1714
1715           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1716
1717
1718           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1719
1720
1721           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1722
1723
1724           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1725
1726
1727           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1728
1729
1730           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1731
1732
1733           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1734
1735
1736           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1737
1738
1739           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1740
1741
1742           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1743
1744
1745           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1746
1747
1748           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1749
1750
1751           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1752
1753
1754           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1755
1756
1757           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1758
1759
1760           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1914
1915
1916           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1923
1924
1925           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1929
1930
1931           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1935
1936
1937           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands tools/Makefile"
1944
1945
1946           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1947
1948
1949           ac_config_commands="$ac_config_commands tools/as/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands tools/dis/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands tools/link/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1971
1972
1973           ac_config_commands="$ac_config_commands tools/lli/Makefile"
1974
1975
1976           ac_config_commands="$ac_config_commands tools/opt/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1983
1984
1985           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1986
1987
1988           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands utils/Makefile"
1992
1993
1994           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
1998
1999
2000           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2001
2002
2003           ac_config_commands="$ac_config_commands www/docs/Makefile"
2004
2005
2006           ac_config_commands="$ac_config_commands projects/Makefile"
2007
2008
2009           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2010
2011
2012           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2013
2014
2015           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2016
2017
2018           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2019
2020
2021           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2022
2023
2024           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2025
2026
2027           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2028
2029
2030           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2031
2032
2033           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2034
2035
2036           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2037
2038
2039           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2040
2041
2042
2043
2044 # Find a good install program.  We prefer a C program (faster),
2045 # so one script is as good as another.  But avoid the broken or
2046 # incompatible versions:
2047 # SysV /etc/install, /usr/sbin/install
2048 # SunOS /usr/etc/install
2049 # IRIX /sbin/install
2050 # AIX /bin/install
2051 # AmigaOS /C/install, which installs bootblocks on floppy discs
2052 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2053 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2054 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2055 # ./install, which can be erroneously created by make from ./install.sh.
2056 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2057 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2058 if test -z "$INSTALL"; then
2059 if test "${ac_cv_path_install+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   # Account for people who put trailing slashes in PATH elements.
2068 case $as_dir/ in
2069   ./ | .// | /cC/* | \
2070   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2071   /usr/ucb/* ) ;;
2072   *)
2073     # OSF1 and SCO ODT 3.0 have their own names for install.
2074     # Don't use installbsd from OSF since it installs stuff as root
2075     # by default.
2076     for ac_prog in ginstall scoinst install; do
2077       for ac_exec_ext in '' $ac_executable_extensions; do
2078         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2079           if test $ac_prog = install &&
2080             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2081             # AIX install.  It has an incompatible calling convention.
2082             :
2083           elif test $ac_prog = install &&
2084             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2085             # program-specific install script used by HP pwplus--don't use.
2086             :
2087           else
2088             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2089             break 3
2090           fi
2091         fi
2092       done
2093     done
2094     ;;
2095 esac
2096 done
2097
2098
2099 fi
2100   if test "${ac_cv_path_install+set}" = set; then
2101     INSTALL=$ac_cv_path_install
2102   else
2103     # As a last resort, use the slow shell script.  We don't cache a
2104     # path for INSTALL within a source directory, because that will
2105     # break other packages using the cache if that directory is
2106     # removed, or if the path is relative.
2107     INSTALL=$ac_install_sh
2108   fi
2109 fi
2110 echo "$as_me:$LINENO: result: $INSTALL" >&5
2111 echo "${ECHO_T}$INSTALL" >&6
2112
2113 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2114 # It thinks the first close brace ends the variable substitution.
2115 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2116
2117 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2118
2119 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2120
2121
2122 # Make sure we can run config.sub.
2123 $ac_config_sub sun4 >/dev/null 2>&1 ||
2124   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2125 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2126    { (exit 1); exit 1; }; }
2127
2128 echo "$as_me:$LINENO: checking build system type" >&5
2129 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2130 if test "${ac_cv_build+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   ac_cv_build_alias=$build_alias
2134 test -z "$ac_cv_build_alias" &&
2135   ac_cv_build_alias=`$ac_config_guess`
2136 test -z "$ac_cv_build_alias" &&
2137   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139    { (exit 1); exit 1; }; }
2140 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2141   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2142 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2143    { (exit 1); exit 1; }; }
2144
2145 fi
2146 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147 echo "${ECHO_T}$ac_cv_build" >&6
2148 build=$ac_cv_build
2149 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2150 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2151 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2152
2153
2154 echo "$as_me:$LINENO: checking host system type" >&5
2155 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2156 if test "${ac_cv_host+set}" = set; then
2157   echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159   ac_cv_host_alias=$host_alias
2160 test -z "$ac_cv_host_alias" &&
2161   ac_cv_host_alias=$ac_cv_build_alias
2162 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2163   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2164 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2165    { (exit 1); exit 1; }; }
2166
2167 fi
2168 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2169 echo "${ECHO_T}$ac_cv_host" >&6
2170 host=$ac_cv_host
2171 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2172 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2173 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2174
2175
2176 echo "$as_me:$LINENO: checking target system type" >&5
2177 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2178 if test "${ac_cv_target+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   ac_cv_target_alias=$target_alias
2182 test "x$ac_cv_target_alias" = "x" &&
2183   ac_cv_target_alias=$ac_cv_host_alias
2184 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2185   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2186 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2187    { (exit 1); exit 1; }; }
2188
2189 fi
2190 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2191 echo "${ECHO_T}$ac_cv_target" >&6
2192 target=$ac_cv_target
2193 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2194 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2195 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2196
2197
2198 # The aliases save the names the user supplied, while $host etc.
2199 # will get canonicalized.
2200 test -n "$target_alias" &&
2201   test "$program_prefix$program_suffix$program_transform_name" = \
2202     NONENONEs,x,x, &&
2203   program_prefix=${target_alias}-
2204
2205 case $build in
2206         *i*86*)  OS=Linux
2207
2208                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2209
2210                  ;;
2211
2212         *sparc*) OS=SunOS
2213
2214                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2215
2216                  ;;
2217
2218         *)       OS=Unknown
2219
2220                  ;;
2221 esac
2222
2223 case $target in
2224         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2225
2226                           ;;
2227 esac
2228
2229 case $target in
2230         *i*86*)           ARCH=x86
2231
2232                           ;;
2233         *sparc*solaris*)  ARCH=Sparc
2234
2235                           ;;
2236 esac
2237
2238
2239 ac_ext=cc
2240 ac_cpp='$CXXCPP $CPPFLAGS'
2241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2244 if test -n "$ac_tool_prefix"; then
2245   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2246   do
2247     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2249 echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251 if test "${ac_cv_prog_CXX+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   if test -n "$CXX"; then
2255   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260   IFS=$as_save_IFS
2261   test -z "$as_dir" && as_dir=.
2262   for ac_exec_ext in '' $ac_executable_extensions; do
2263   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266     break 2
2267   fi
2268 done
2269 done
2270
2271 fi
2272 fi
2273 CXX=$ac_cv_prog_CXX
2274 if test -n "$CXX"; then
2275   echo "$as_me:$LINENO: result: $CXX" >&5
2276 echo "${ECHO_T}$CXX" >&6
2277 else
2278   echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6
2280 fi
2281
2282     test -n "$CXX" && break
2283   done
2284 fi
2285 if test -z "$CXX"; then
2286   ac_ct_CXX=$CXX
2287   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2288 do
2289   # Extract the first word of "$ac_prog", so it can be a program name with args.
2290 set dummy $ac_prog; ac_word=$2
2291 echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2294   echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296   if test -n "$ac_ct_CXX"; then
2297   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2298 else
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2301 do
2302   IFS=$as_save_IFS
2303   test -z "$as_dir" && as_dir=.
2304   for ac_exec_ext in '' $ac_executable_extensions; do
2305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2306     ac_cv_prog_ac_ct_CXX="$ac_prog"
2307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308     break 2
2309   fi
2310 done
2311 done
2312
2313 fi
2314 fi
2315 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2316 if test -n "$ac_ct_CXX"; then
2317   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2318 echo "${ECHO_T}$ac_ct_CXX" >&6
2319 else
2320   echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6
2322 fi
2323
2324   test -n "$ac_ct_CXX" && break
2325 done
2326 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2327
2328   CXX=$ac_ct_CXX
2329 fi
2330
2331
2332 # Provide some information about the compiler.
2333 echo "$as_me:$LINENO:" \
2334      "checking for C++ compiler version" >&5
2335 ac_compiler=`set X $ac_compile; echo $2`
2336 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2337   (eval $ac_compiler --version </dev/null >&5) 2>&5
2338   ac_status=$?
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); }
2341 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2342   (eval $ac_compiler -v </dev/null >&5) 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }
2346 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2347   (eval $ac_compiler -V </dev/null >&5) 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); }
2351
2352 cat >conftest.$ac_ext <<_ACEOF
2353 #line $LINENO "configure"
2354 /* confdefs.h.  */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h.  */
2359
2360 int
2361 main ()
2362 {
2363
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 ac_clean_files_save=$ac_clean_files
2369 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2370 # Try to create an executable without -o first, disregard a.out.
2371 # It will help us diagnose broken compilers, and finding out an intuition
2372 # of exeext.
2373 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2374 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2375 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2376 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2377   (eval $ac_link_default) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }; then
2381   # Find the output, starting from the most likely.  This scheme is
2382 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2383 # resort.
2384
2385 # Be careful to initialize this variable, since it used to be cached.
2386 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2387 ac_cv_exeext=
2388 # b.out is created by i960 compilers.
2389 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2390 do
2391   test -f "$ac_file" || continue
2392   case $ac_file in
2393     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2394         ;;
2395     conftest.$ac_ext )
2396         # This is the source file.
2397         ;;
2398     [ab].out )
2399         # We found the default executable, but exeext='' is most
2400         # certainly right.
2401         break;;
2402     *.* )
2403         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2404         # FIXME: I believe we export ac_cv_exeext for Libtool,
2405         # but it would be cool to find out if it's true.  Does anybody
2406         # maintain Libtool? --akim.
2407         export ac_cv_exeext
2408         break;;
2409     * )
2410         break;;
2411   esac
2412 done
2413 else
2414   echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2418 See \`config.log' for more details." >&5
2419 echo "$as_me: error: C++ compiler cannot create executables
2420 See \`config.log' for more details." >&2;}
2421    { (exit 77); exit 77; }; }
2422 fi
2423
2424 ac_exeext=$ac_cv_exeext
2425 echo "$as_me:$LINENO: result: $ac_file" >&5
2426 echo "${ECHO_T}$ac_file" >&6
2427
2428 # Check the compiler produces executables we can run.  If not, either
2429 # the compiler is broken, or we cross compile.
2430 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2431 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2432 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2433 # If not cross compiling, check that we can run a simple program.
2434 if test "$cross_compiling" != yes; then
2435   if { ac_try='./$ac_file'
2436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437   (eval $ac_try) 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441     cross_compiling=no
2442   else
2443     if test "$cross_compiling" = maybe; then
2444         cross_compiling=yes
2445     else
2446         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2447 If you meant to cross compile, use \`--host'.
2448 See \`config.log' for more details." >&5
2449 echo "$as_me: error: cannot run C++ compiled programs.
2450 If you meant to cross compile, use \`--host'.
2451 See \`config.log' for more details." >&2;}
2452    { (exit 1); exit 1; }; }
2453     fi
2454   fi
2455 fi
2456 echo "$as_me:$LINENO: result: yes" >&5
2457 echo "${ECHO_T}yes" >&6
2458
2459 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2460 ac_clean_files=$ac_clean_files_save
2461 # Check the compiler produces executables we can run.  If not, either
2462 # the compiler is broken, or we cross compile.
2463 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2464 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2465 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2466 echo "${ECHO_T}$cross_compiling" >&6
2467
2468 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2469 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2471   (eval $ac_link) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; then
2475   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2476 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2477 # work properly (i.e., refer to `conftest.exe'), while it won't with
2478 # `rm'.
2479 for ac_file in conftest.exe conftest conftest.*; do
2480   test -f "$ac_file" || continue
2481   case $ac_file in
2482     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2483     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2484           export ac_cv_exeext
2485           break;;
2486     * ) break;;
2487   esac
2488 done
2489 else
2490   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2491 See \`config.log' for more details." >&5
2492 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2493 See \`config.log' for more details." >&2;}
2494    { (exit 1); exit 1; }; }
2495 fi
2496
2497 rm -f conftest$ac_cv_exeext
2498 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2499 echo "${ECHO_T}$ac_cv_exeext" >&6
2500
2501 rm -f conftest.$ac_ext
2502 EXEEXT=$ac_cv_exeext
2503 ac_exeext=$EXEEXT
2504 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2505 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2506 if test "${ac_cv_objext+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   cat >conftest.$ac_ext <<_ACEOF
2510 #line $LINENO "configure"
2511 /* confdefs.h.  */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h.  */
2516
2517 int
2518 main ()
2519 {
2520
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 rm -f conftest.o conftest.obj
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527   (eval $ac_compile) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; then
2531   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2532   case $ac_file in
2533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2534     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2535        break;;
2536   esac
2537 done
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2545 See \`config.log' for more details." >&2;}
2546    { (exit 1); exit 1; }; }
2547 fi
2548
2549 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2550 fi
2551 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2552 echo "${ECHO_T}$ac_cv_objext" >&6
2553 OBJEXT=$ac_cv_objext
2554 ac_objext=$OBJEXT
2555 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2556 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2557 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   cat >conftest.$ac_ext <<_ACEOF
2561 #line $LINENO "configure"
2562 /* confdefs.h.  */
2563 _ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h.  */
2567
2568 int
2569 main ()
2570 {
2571 #ifndef __GNUC__
2572        choke me
2573 #endif
2574
2575   ;
2576   return 0;
2577 }
2578 _ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581   (eval $ac_compile) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); } &&
2585          { ac_try='test -s conftest.$ac_objext'
2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   ac_compiler_gnu=yes
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 ac_compiler_gnu=no
2597 fi
2598 rm -f conftest.$ac_objext conftest.$ac_ext
2599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2600
2601 fi
2602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2604 GXX=`test $ac_compiler_gnu = yes && echo yes`
2605 ac_test_CXXFLAGS=${CXXFLAGS+set}
2606 ac_save_CXXFLAGS=$CXXFLAGS
2607 CXXFLAGS="-g"
2608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cxx_g+set}" = set; then
2611   echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613   cat >conftest.$ac_ext <<_ACEOF
2614 #line $LINENO "configure"
2615 /* confdefs.h.  */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h.  */
2620
2621 int
2622 main ()
2623 {
2624
2625   ;
2626   return 0;
2627 }
2628 _ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631   (eval $ac_compile) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); } &&
2635          { ac_try='test -s conftest.$ac_objext'
2636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637   (eval $ac_try) 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }; }; then
2641   ac_cv_prog_cxx_g=yes
2642 else
2643   echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646 ac_cv_prog_cxx_g=no
2647 fi
2648 rm -f conftest.$ac_objext conftest.$ac_ext
2649 fi
2650 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2651 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2652 if test "$ac_test_CXXFLAGS" = set; then
2653   CXXFLAGS=$ac_save_CXXFLAGS
2654 elif test $ac_cv_prog_cxx_g = yes; then
2655   if test "$GXX" = yes; then
2656     CXXFLAGS="-g -O2"
2657   else
2658     CXXFLAGS="-g"
2659   fi
2660 else
2661   if test "$GXX" = yes; then
2662     CXXFLAGS="-O2"
2663   else
2664     CXXFLAGS=
2665   fi
2666 fi
2667 for ac_declaration in \
2668    ''\
2669    '#include <stdlib.h>' \
2670    'extern "C" void std::exit (int) throw (); using std::exit;' \
2671    'extern "C" void std::exit (int); using std::exit;' \
2672    'extern "C" void exit (int) throw ();' \
2673    'extern "C" void exit (int);' \
2674    'void exit (int);'
2675 do
2676   cat >conftest.$ac_ext <<_ACEOF
2677 #line $LINENO "configure"
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683 #include <stdlib.h>
2684 $ac_declaration
2685 int
2686 main ()
2687 {
2688 exit (42);
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 rm -f conftest.$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695   (eval $ac_compile) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } &&
2699          { ac_try='test -s conftest.$ac_objext'
2700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701   (eval $ac_try) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }; }; then
2705   :
2706 else
2707   echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2709
2710 continue
2711 fi
2712 rm -f conftest.$ac_objext conftest.$ac_ext
2713   cat >conftest.$ac_ext <<_ACEOF
2714 #line $LINENO "configure"
2715 /* confdefs.h.  */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h.  */
2720 $ac_declaration
2721 int
2722 main ()
2723 {
2724 exit (42);
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731   (eval $ac_compile) 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); } &&
2735          { ac_try='test -s conftest.$ac_objext'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; }; then
2741   break
2742 else
2743   echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746 fi
2747 rm -f conftest.$ac_objext conftest.$ac_ext
2748 done
2749 rm -f conftest*
2750 if test -n "$ac_declaration"; then
2751   echo '#ifdef __cplusplus' >>confdefs.h
2752   echo $ac_declaration      >>confdefs.h
2753   echo '#endif'             >>confdefs.h
2754 fi
2755
2756 ac_ext=c
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
2762 ac_ext=c
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 if test -n "$ac_tool_prefix"; then
2768   for ac_prog in gcc
2769   do
2770     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774 if test "${ac_cv_prog_CC+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   if test -n "$CC"; then
2778   ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783   IFS=$as_save_IFS
2784   test -z "$as_dir" && as_dir=.
2785   for ac_exec_ext in '' $ac_executable_extensions; do
2786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789     break 2
2790   fi
2791 done
2792 done
2793
2794 fi
2795 fi
2796 CC=$ac_cv_prog_CC
2797 if test -n "$CC"; then
2798   echo "$as_me:$LINENO: result: $CC" >&5
2799 echo "${ECHO_T}$CC" >&6
2800 else
2801   echo "$as_me:$LINENO: result: no" >&5
2802 echo "${ECHO_T}no" >&6
2803 fi
2804
2805     test -n "$CC" && break
2806   done
2807 fi
2808 if test -z "$CC"; then
2809   ac_ct_CC=$CC
2810   for ac_prog in gcc
2811 do
2812   # Extract the first word of "$ac_prog", so it can be a program name with args.
2813 set dummy $ac_prog; ac_word=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2817   echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819   if test -n "$ac_ct_CC"; then
2820   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827   for ac_exec_ext in '' $ac_executable_extensions; do
2828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829     ac_cv_prog_ac_ct_CC="$ac_prog"
2830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831     break 2
2832   fi
2833 done
2834 done
2835
2836 fi
2837 fi
2838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841 echo "${ECHO_T}$ac_ct_CC" >&6
2842 else
2843   echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2845 fi
2846
2847   test -n "$ac_ct_CC" && break
2848 done
2849
2850   CC=$ac_ct_CC
2851 fi
2852
2853
2854 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: no acceptable C compiler found in \$PATH
2857 See \`config.log' for more details." >&2;}
2858    { (exit 1); exit 1; }; }
2859
2860 # Provide some information about the compiler.
2861 echo "$as_me:$LINENO:" \
2862      "checking for C compiler version" >&5
2863 ac_compiler=`set X $ac_compile; echo $2`
2864 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2865   (eval $ac_compiler --version </dev/null >&5) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }
2869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2870   (eval $ac_compiler -v </dev/null >&5) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }
2874 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2875   (eval $ac_compiler -V </dev/null >&5) 2>&5
2876   ac_status=$?
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); }
2879
2880 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2881 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2882 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885   cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892
2893 int
2894 main ()
2895 {
2896 #ifndef __GNUC__
2897        choke me
2898 #endif
2899
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 rm -f conftest.$ac_objext
2905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906   (eval $ac_compile) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); } &&
2910          { ac_try='test -s conftest.$ac_objext'
2911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912   (eval $ac_try) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; }; then
2916   ac_compiler_gnu=yes
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 ac_compiler_gnu=no
2922 fi
2923 rm -f conftest.$ac_objext conftest.$ac_ext
2924 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2925
2926 fi
2927 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2928 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2929 GCC=`test $ac_compiler_gnu = yes && echo yes`
2930 ac_test_CFLAGS=${CFLAGS+set}
2931 ac_save_CFLAGS=$CFLAGS
2932 CFLAGS="-g"
2933 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2934 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2935 if test "${ac_cv_prog_cc_g+set}" = set; then
2936   echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938   cat >conftest.$ac_ext <<_ACEOF
2939 #line $LINENO "configure"
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945
2946 int
2947 main ()
2948 {
2949
2950   ;
2951   return 0;
2952 }
2953 _ACEOF
2954 rm -f conftest.$ac_objext
2955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2956   (eval $ac_compile) 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } &&
2960          { ac_try='test -s conftest.$ac_objext'
2961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962   (eval $ac_try) 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }; }; then
2966   ac_cv_prog_cc_g=yes
2967 else
2968   echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971 ac_cv_prog_cc_g=no
2972 fi
2973 rm -f conftest.$ac_objext conftest.$ac_ext
2974 fi
2975 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2976 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2977 if test "$ac_test_CFLAGS" = set; then
2978   CFLAGS=$ac_save_CFLAGS
2979 elif test $ac_cv_prog_cc_g = yes; then
2980   if test "$GCC" = yes; then
2981     CFLAGS="-g -O2"
2982   else
2983     CFLAGS="-g"
2984   fi
2985 else
2986   if test "$GCC" = yes; then
2987     CFLAGS="-O2"
2988   else
2989     CFLAGS=
2990   fi
2991 fi
2992 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2993 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2994 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997   ac_cv_prog_cc_stdc=no
2998 ac_save_CC=$CC
2999 cat >conftest.$ac_ext <<_ACEOF
3000 #line $LINENO "configure"
3001 /* confdefs.h.  */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h.  */
3006 #include <stdarg.h>
3007 #include <stdio.h>
3008 #include <sys/types.h>
3009 #include <sys/stat.h>
3010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3011 struct buf { int x; };
3012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3013 static char *e (p, i)
3014      char **p;
3015      int i;
3016 {
3017   return p[i];
3018 }
3019 static char *f (char * (*g) (char **, int), char **p, ...)
3020 {
3021   char *s;
3022   va_list v;
3023   va_start (v,p);
3024   s = g (p, va_arg (v,int));
3025   va_end (v);
3026   return s;
3027 }
3028 int test (int i, double x);
3029 struct s1 {int (*f) (int a);};
3030 struct s2 {int (*f) (double a);};
3031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3032 int argc;
3033 char **argv;
3034 int
3035 main ()
3036 {
3037 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 # Don't try gcc -ansi; that turns off useful extensions and
3043 # breaks some systems' header files.
3044 # AIX                   -qlanglvl=ansi
3045 # Ultrix and OSF/1      -std1
3046 # HP-UX 10.20 and later -Ae
3047 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3048 # SVR4                  -Xc -D__EXTENSIONS__
3049 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3050 do
3051   CC="$ac_save_CC $ac_arg"
3052   rm -f conftest.$ac_objext
3053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3054   (eval $ac_compile) 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } &&
3058          { ac_try='test -s conftest.$ac_objext'
3059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060   (eval $ac_try) 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; }; then
3064   ac_cv_prog_cc_stdc=$ac_arg
3065 break
3066 else
3067   echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 fi
3071 rm -f conftest.$ac_objext
3072 done
3073 rm -f conftest.$ac_ext conftest.$ac_objext
3074 CC=$ac_save_CC
3075
3076 fi
3077
3078 case "x$ac_cv_prog_cc_stdc" in
3079   x|xno)
3080     echo "$as_me:$LINENO: result: none needed" >&5
3081 echo "${ECHO_T}none needed" >&6 ;;
3082   *)
3083     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3084 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3085     CC="$CC $ac_cv_prog_cc_stdc" ;;
3086 esac
3087
3088 # Some people use a C++ compiler to compile C.  Since we use `exit',
3089 # in C++ we need to declare it.  In case someone uses the same compiler
3090 # for both compiling C and C++ we need to have the C++ compiler decide
3091 # the declaration of exit, since it's the most demanding environment.
3092 cat >conftest.$ac_ext <<_ACEOF
3093 #ifndef __cplusplus
3094   choke me
3095 #endif
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3099   (eval $ac_compile) 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); } &&
3103          { ac_try='test -s conftest.$ac_objext'
3104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105   (eval $ac_try) 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }; }; then
3109   for ac_declaration in \
3110    ''\
3111    '#include <stdlib.h>' \
3112    'extern "C" void std::exit (int) throw (); using std::exit;' \
3113    'extern "C" void std::exit (int); using std::exit;' \
3114    'extern "C" void exit (int) throw ();' \
3115    'extern "C" void exit (int);' \
3116    'void exit (int);'
3117 do
3118   cat >conftest.$ac_ext <<_ACEOF
3119 #line $LINENO "configure"
3120 /* confdefs.h.  */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h.  */
3125 #include <stdlib.h>
3126 $ac_declaration
3127 int
3128 main ()
3129 {
3130 exit (42);
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137   (eval $ac_compile) 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } &&
3141          { ac_try='test -s conftest.$ac_objext'
3142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143   (eval $ac_try) 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; }; then
3147   :
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 continue
3153 fi
3154 rm -f conftest.$ac_objext conftest.$ac_ext
3155   cat >conftest.$ac_ext <<_ACEOF
3156 #line $LINENO "configure"
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162 $ac_declaration
3163 int
3164 main ()
3165 {
3166 exit (42);
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173   (eval $ac_compile) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); } &&
3177          { ac_try='test -s conftest.$ac_objext'
3178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179   (eval $ac_try) 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }; }; then
3183   break
3184 else
3185   echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 fi
3189 rm -f conftest.$ac_objext conftest.$ac_ext
3190 done
3191 rm -f conftest*
3192 if test -n "$ac_declaration"; then
3193   echo '#ifdef __cplusplus' >>confdefs.h
3194   echo $ac_declaration      >>confdefs.h
3195   echo '#endif'             >>confdefs.h
3196 fi
3197
3198 else
3199   echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202 fi
3203 rm -f conftest.$ac_objext conftest.$ac_ext
3204 ac_ext=c
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210 ac_ext=c
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3217 # On Suns, sometimes $CPP names a directory.
3218 if test -n "$CPP" && test -d "$CPP"; then
3219   CPP=
3220 fi
3221 if test -z "$CPP"; then
3222   if test "${ac_cv_prog_CPP+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225       # Double quotes because CPP needs to be expanded
3226     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227     do
3228       ac_preproc_ok=false
3229 for ac_c_preproc_warn_flag in '' yes
3230 do
3231   # Use a header file that comes with gcc, so configuring glibc
3232   # with a fresh cross-compiler works.
3233   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234   # <limits.h> exists even on freestanding compilers.
3235   # On the NeXT, cc -E runs the code through the compiler's parser,
3236   # not just through cpp. "Syntax error" is here to catch this case.
3237   cat >conftest.$ac_ext <<_ACEOF
3238 #line $LINENO "configure"
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244 #ifdef __STDC__
3245 # include <limits.h>
3246 #else
3247 # include <assert.h>
3248 #endif
3249                      Syntax error
3250 _ACEOF
3251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3253   ac_status=$?
3254   grep -v '^ *+' conftest.er1 >conftest.err
3255   rm -f conftest.er1
3256   cat conftest.err >&5
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); } >/dev/null; then
3259   if test -s conftest.err; then
3260     ac_cpp_err=$ac_c_preproc_warn_flag
3261   else
3262     ac_cpp_err=
3263   fi
3264 else
3265   ac_cpp_err=yes
3266 fi
3267 if test -z "$ac_cpp_err"; then
3268   :
3269 else
3270   echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273   # Broken: fails on valid input.
3274 continue
3275 fi
3276 rm -f conftest.err conftest.$ac_ext
3277
3278   # OK, works on sane cases.  Now check whether non-existent headers
3279   # can be detected and how.
3280   cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287 #include <ac_nonexistent.h>
3288 _ACEOF
3289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
3294   cat conftest.err >&5
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } >/dev/null; then
3297   if test -s conftest.err; then
3298     ac_cpp_err=$ac_c_preproc_warn_flag
3299   else
3300     ac_cpp_err=
3301   fi
3302 else
3303   ac_cpp_err=yes
3304 fi
3305 if test -z "$ac_cpp_err"; then
3306   # Broken: success on invalid input.
3307 continue
3308 else
3309   echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312   # Passes both tests.
3313 ac_preproc_ok=:
3314 break
3315 fi
3316 rm -f conftest.err conftest.$ac_ext
3317
3318 done
3319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320 rm -f conftest.err conftest.$ac_ext
3321 if $ac_preproc_ok; then
3322   break
3323 fi
3324
3325     done
3326     ac_cv_prog_CPP=$CPP
3327
3328 fi
3329   CPP=$ac_cv_prog_CPP
3330 else
3331   ac_cv_prog_CPP=$CPP
3332 fi
3333 echo "$as_me:$LINENO: result: $CPP" >&5
3334 echo "${ECHO_T}$CPP" >&6
3335 ac_preproc_ok=false
3336 for ac_c_preproc_warn_flag in '' yes
3337 do
3338   # Use a header file that comes with gcc, so configuring glibc
3339   # with a fresh cross-compiler works.
3340   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341   # <limits.h> exists even on freestanding compilers.
3342   # On the NeXT, cc -E runs the code through the compiler's parser,
3343   # not just through cpp. "Syntax error" is here to catch this case.
3344   cat >conftest.$ac_ext <<_ACEOF
3345 #line $LINENO "configure"
3346 /* confdefs.h.  */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h.  */
3351 #ifdef __STDC__
3352 # include <limits.h>
3353 #else
3354 # include <assert.h>
3355 #endif
3356                      Syntax error
3357 _ACEOF
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } >/dev/null; then
3366   if test -s conftest.err; then
3367     ac_cpp_err=$ac_c_preproc_warn_flag
3368   else
3369     ac_cpp_err=
3370   fi
3371 else
3372   ac_cpp_err=yes
3373 fi
3374 if test -z "$ac_cpp_err"; then
3375   :
3376 else
3377   echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3379
3380   # Broken: fails on valid input.
3381 continue
3382 fi
3383 rm -f conftest.err conftest.$ac_ext
3384
3385   # OK, works on sane cases.  Now check whether non-existent headers
3386   # can be detected and how.
3387   cat >conftest.$ac_ext <<_ACEOF
3388 #line $LINENO "configure"
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #include <ac_nonexistent.h>
3395 _ACEOF
3396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } >/dev/null; then
3404   if test -s conftest.err; then
3405     ac_cpp_err=$ac_c_preproc_warn_flag
3406   else
3407     ac_cpp_err=
3408   fi
3409 else
3410   ac_cpp_err=yes
3411 fi
3412 if test -z "$ac_cpp_err"; then
3413   # Broken: success on invalid input.
3414 continue
3415 else
3416   echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3418
3419   # Passes both tests.
3420 ac_preproc_ok=:
3421 break
3422 fi
3423 rm -f conftest.err conftest.$ac_ext
3424
3425 done
3426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3427 rm -f conftest.err conftest.$ac_ext
3428 if $ac_preproc_ok; then
3429   :
3430 else
3431   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3432 See \`config.log' for more details." >&5
3433 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3434 See \`config.log' for more details." >&2;}
3435    { (exit 1); exit 1; }; }
3436 fi
3437
3438 ac_ext=c
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
3444
3445 if test "$GCC" != "yes"
3446 then
3447         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3448 echo "$as_me: error: gcc required but not found" >&2;}
3449    { (exit 1); exit 1; }; }
3450 fi
3451
3452 if test "$GXX" != "yes"
3453 then
3454         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3455 echo "$as_me: error: g++ required but not found" >&2;}
3456    { (exit 1); exit 1; }; }
3457 fi
3458
3459 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3460 if test "$gccmajor" -lt "3"
3461 then
3462         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3463 echo "$as_me: error: gcc 3.x required" >&2;}
3464    { (exit 1); exit 1; }; }
3465 fi
3466
3467 cat >>confdefs.h <<\_ACEOF
3468 #define CC "$CC"
3469 _ACEOF
3470
3471
3472  echo "$as_me:$LINENO: checking for GNU make" >&5
3473 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3474 if test "${_cv_gnu_make_command+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   _cv_gnu_make_command='' ;
3478                 for a in "$MAKE" make gmake gnumake ; do
3479                         if test -z "$a" ; then continue ; fi ;
3480                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3481                                 _cv_gnu_make_command=$a ;
3482                                 break;
3483                         fi
3484                 done ;
3485
3486 fi
3487 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3488 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3489         if test  "x$_cv_gnu_make_command" != "x"  ; then
3490                 ifGNUmake='' ;
3491         else
3492                 ifGNUmake='#' ;
3493                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3494 echo "${ECHO_T}\"Not found\"" >&6;
3495         fi
3496
3497
3498 if test -z "$_cv_gnu_make_command"
3499 then
3500         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3501 echo "$as_me: error: GNU Make required but not found" >&2;}
3502    { (exit 1); exit 1; }; }
3503 fi
3504
3505
3506 echo "$as_me:$LINENO: checking " >&5
3507 echo $ECHO_N "checking ... $ECHO_C" >&6
3508 if test "${ac_cv_has_flex+set}" = set; then
3509   echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511   for ac_prog in flex lex
3512 do
3513   # Extract the first word of "$ac_prog", so it can be a program name with args.
3514 set dummy $ac_prog; ac_word=$2
3515 echo "$as_me:$LINENO: checking for $ac_word" >&5
3516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3517 if test "${ac_cv_prog_LEX+set}" = set; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   if test -n "$LEX"; then
3521   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526   IFS=$as_save_IFS
3527   test -z "$as_dir" && as_dir=.
3528   for ac_exec_ext in '' $ac_executable_extensions; do
3529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530     ac_cv_prog_LEX="$ac_prog"
3531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3532     break 2
3533   fi
3534 done
3535 done
3536
3537 fi
3538 fi
3539 LEX=$ac_cv_prog_LEX
3540 if test -n "$LEX"; then
3541   echo "$as_me:$LINENO: result: $LEX" >&5
3542 echo "${ECHO_T}$LEX" >&6
3543 else
3544   echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3546 fi
3547
3548   test -n "$LEX" && break
3549 done
3550 test -n "$LEX" || LEX=":"
3551
3552 if test -z "$LEXLIB"
3553 then
3554   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3555 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3556 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3557   echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559   ac_check_lib_save_LIBS=$LIBS
3560 LIBS="-lfl  $LIBS"
3561 cat >conftest.$ac_ext <<_ACEOF
3562 #line $LINENO "configure"
3563 /* confdefs.h.  */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h.  */
3568
3569 /* Override any gcc2 internal prototype to avoid an error.  */
3570 #ifdef __cplusplus
3571 extern "C"
3572 #endif
3573 /* We use char because int might match the return type of a gcc2
3574    builtin and then its argument prototype would still apply.  */
3575 char yywrap ();
3576 int
3577 main ()
3578 {
3579 yywrap ();
3580   ;
3581   return 0;
3582 }
3583 _ACEOF
3584 rm -f conftest.$ac_objext conftest$ac_exeext
3585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3586   (eval $ac_link) 2>&5
3587   ac_status=$?
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); } &&
3590          { ac_try='test -s conftest$ac_exeext'
3591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592   (eval $ac_try) 2>&5
3593   ac_status=$?
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); }; }; then
3596   ac_cv_lib_fl_yywrap=yes
3597 else
3598   echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3600
3601 ac_cv_lib_fl_yywrap=no
3602 fi
3603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3604 LIBS=$ac_check_lib_save_LIBS
3605 fi
3606 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3607 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3608 if test $ac_cv_lib_fl_yywrap = yes; then
3609   LEXLIB="-lfl"
3610 else
3611   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3612 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3613 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3614   echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616   ac_check_lib_save_LIBS=$LIBS
3617 LIBS="-ll  $LIBS"
3618 cat >conftest.$ac_ext <<_ACEOF
3619 #line $LINENO "configure"
3620 /* confdefs.h.  */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h.  */
3625
3626 /* Override any gcc2 internal prototype to avoid an error.  */
3627 #ifdef __cplusplus
3628 extern "C"
3629 #endif
3630 /* We use char because int might match the return type of a gcc2
3631    builtin and then its argument prototype would still apply.  */
3632 char yywrap ();
3633 int
3634 main ()
3635 {
3636 yywrap ();
3637   ;
3638   return 0;
3639 }
3640 _ACEOF
3641 rm -f conftest.$ac_objext conftest$ac_exeext
3642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3643   (eval $ac_link) 2>&5
3644   ac_status=$?
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); } &&
3647          { ac_try='test -s conftest$ac_exeext'
3648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649   (eval $ac_try) 2>&5
3650   ac_status=$?
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); }; }; then
3653   ac_cv_lib_l_yywrap=yes
3654 else
3655   echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3657
3658 ac_cv_lib_l_yywrap=no
3659 fi
3660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3661 LIBS=$ac_check_lib_save_LIBS
3662 fi
3663 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3664 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3665 if test $ac_cv_lib_l_yywrap = yes; then
3666   LEXLIB="-ll"
3667 fi
3668
3669 fi
3670
3671 fi
3672
3673 if test "x$LEX" != "x:"; then
3674   echo "$as_me:$LINENO: checking lex output file root" >&5
3675 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3676 if test "${ac_cv_prog_lex_root+set}" = set; then
3677   echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679   # The minimal lex program is just a single line: %%.  But some broken lexes
3680 # (Solaris, I think it was) want two %% lines, so accommodate them.
3681 cat >conftest.l <<_ACEOF
3682 %%
3683 %%
3684 _ACEOF
3685 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3686   (eval $LEX conftest.l) 2>&5
3687   ac_status=$?
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); }
3690 if test -f lex.yy.c; then
3691   ac_cv_prog_lex_root=lex.yy
3692 elif test -f lexyy.c; then
3693   ac_cv_prog_lex_root=lexyy
3694 else
3695   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3696 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3697    { (exit 1); exit 1; }; }
3698 fi
3699 fi
3700 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3701 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3702 rm -f conftest.l
3703 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3704
3705 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3706 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3707 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3708   echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710   # POSIX says lex can declare yytext either as a pointer or an array; the
3711 # default is implementation-dependent. Figure out which it is, since
3712 # not all implementations provide the %pointer and %array declarations.
3713 ac_cv_prog_lex_yytext_pointer=no
3714 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3715 ac_save_LIBS=$LIBS
3716 LIBS="$LIBS $LEXLIB"
3717 cat >conftest.$ac_ext <<_ACEOF
3718 `cat $LEX_OUTPUT_ROOT.c`
3719 _ACEOF
3720 rm -f conftest.$ac_objext conftest$ac_exeext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3722   (eval $ac_link) 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); } &&
3726          { ac_try='test -s conftest$ac_exeext'
3727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728   (eval $ac_try) 2>&5
3729   ac_status=$?
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); }; }; then
3732   ac_cv_prog_lex_yytext_pointer=yes
3733 else
3734   echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 fi
3738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3739 LIBS=$ac_save_LIBS
3740 rm -f "${LEX_OUTPUT_ROOT}.c"
3741
3742 fi
3743 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3744 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3745 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3746
3747 cat >>confdefs.h <<\_ACEOF
3748 #define YYTEXT_POINTER 1
3749 _ACEOF
3750
3751 fi
3752
3753 fi
3754
3755 fi
3756 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3757 echo "${ECHO_T}$ac_cv_has_flex" >&6
3758 if test "$LEX" != "flex"; then
3759   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3760 echo "$as_me: error: flex not found but required" >&2;}
3761    { (exit 1); exit 1; }; }
3762 fi
3763
3764 echo "$as_me:$LINENO: checking " >&5
3765 echo $ECHO_N "checking ... $ECHO_C" >&6
3766 if test "${ac_cv_has_bison+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   for ac_prog in 'bison -y' byacc
3770 do
3771   # Extract the first word of "$ac_prog", so it can be a program name with args.
3772 set dummy $ac_prog; ac_word=$2
3773 echo "$as_me:$LINENO: checking for $ac_word" >&5
3774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3775 if test "${ac_cv_prog_YACC+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   if test -n "$YACC"; then
3779   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784   IFS=$as_save_IFS
3785   test -z "$as_dir" && as_dir=.
3786   for ac_exec_ext in '' $ac_executable_extensions; do
3787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788     ac_cv_prog_YACC="$ac_prog"
3789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790     break 2
3791   fi
3792 done
3793 done
3794
3795 fi
3796 fi
3797 YACC=$ac_cv_prog_YACC
3798 if test -n "$YACC"; then
3799   echo "$as_me:$LINENO: result: $YACC" >&5
3800 echo "${ECHO_T}$YACC" >&6
3801 else
3802   echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6
3804 fi
3805
3806   test -n "$YACC" && break
3807 done
3808 test -n "$YACC" || YACC="yacc"
3809
3810
3811 fi
3812 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3813 echo "${ECHO_T}$ac_cv_has_bison" >&6
3814 if test "$YACC" != "bison -y"; then
3815   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3816 echo "$as_me: error: bison not found but required" >&2;}
3817    { (exit 1); exit 1; }; }
3818 else
3819   YACC=bison
3820
3821 fi
3822
3823
3824 # Check whether --enable-shared or --disable-shared was given.
3825 if test "${enable_shared+set}" = set; then
3826   enableval="$enable_shared"
3827   p=${PACKAGE-default}
3828     case $enableval in
3829     yes) enable_shared=yes ;;
3830     no) enable_shared=no ;;
3831     *)
3832       enable_shared=no
3833       # Look at the argument we got.  We use all the common list separators.
3834       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3835       for pkg in $enableval; do
3836         IFS="$lt_save_ifs"
3837         if test "X$pkg" = "X$p"; then
3838           enable_shared=yes
3839         fi
3840       done
3841       IFS="$lt_save_ifs"
3842       ;;
3843     esac
3844 else
3845   enable_shared=yes
3846 fi;
3847
3848 # Check whether --enable-static or --disable-static was given.
3849 if test "${enable_static+set}" = set; then
3850   enableval="$enable_static"
3851   p=${PACKAGE-default}
3852     case $enableval in
3853     yes) enable_static=yes ;;
3854     no) enable_static=no ;;
3855     *)
3856      enable_static=no
3857       # Look at the argument we got.  We use all the common list separators.
3858       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3859       for pkg in $enableval; do
3860         IFS="$lt_save_ifs"
3861         if test "X$pkg" = "X$p"; then
3862           enable_static=yes
3863         fi
3864       done
3865       IFS="$lt_save_ifs"
3866       ;;
3867     esac
3868 else
3869   enable_static=yes
3870 fi;
3871
3872 # Check whether --enable-fast-install or --disable-fast-install was given.
3873 if test "${enable_fast_install+set}" = set; then
3874   enableval="$enable_fast_install"
3875   p=${PACKAGE-default}
3876     case $enableval in
3877     yes) enable_fast_install=yes ;;
3878     no) enable_fast_install=no ;;
3879     *)
3880       enable_fast_install=no
3881       # Look at the argument we got.  We use all the common list separators.
3882       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3883       for pkg in $enableval; do
3884         IFS="$lt_save_ifs"
3885         if test "X$pkg" = "X$p"; then
3886           enable_fast_install=yes
3887         fi
3888       done
3889       IFS="$lt_save_ifs"
3890       ;;
3891     esac
3892 else
3893   enable_fast_install=yes
3894 fi;
3895
3896 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3897 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3898 if test "${lt_cv_path_SED+set}" = set; then
3899   echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901   # Loop through the user's path and test for sed and gsed.
3902 # Then use that list of sed's as ones to test for truncation.
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906   IFS=$as_save_IFS
3907   test -z "$as_dir" && as_dir=.
3908   for lt_ac_prog in sed gsed; do
3909     for ac_exec_ext in '' $ac_executable_extensions; do
3910       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3911         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3912       fi
3913     done
3914   done
3915 done
3916 lt_ac_max=0
3917 lt_ac_count=0
3918 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3919 # along with /bin/sed that truncates output.
3920 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3921   test ! -f $lt_ac_sed && break
3922   cat /dev/null > conftest.in
3923   lt_ac_count=0
3924   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3925   # Check for GNU sed and select it if it is found.
3926   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3927     lt_cv_path_SED=$lt_ac_sed
3928     break
3929   fi
3930   while true; do
3931     cat conftest.in conftest.in >conftest.tmp
3932     mv conftest.tmp conftest.in
3933     cp conftest.in conftest.nl
3934     echo >>conftest.nl
3935     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3936     cmp -s conftest.out conftest.nl || break
3937     # 10000 chars as input seems more than enough
3938     test $lt_ac_count -gt 10 && break
3939     lt_ac_count=`expr $lt_ac_count + 1`
3940     if test $lt_ac_count -gt $lt_ac_max; then
3941       lt_ac_max=$lt_ac_count
3942       lt_cv_path_SED=$lt_ac_sed
3943     fi
3944   done
3945 done
3946 SED=$lt_cv_path_SED
3947
3948 fi
3949
3950 echo "$as_me:$LINENO: result: $SED" >&5
3951 echo "${ECHO_T}$SED" >&6
3952
3953 echo "$as_me:$LINENO: checking for egrep" >&5
3954 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3955 if test "${ac_cv_prog_egrep+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3959     then ac_cv_prog_egrep='grep -E'
3960     else ac_cv_prog_egrep='egrep'
3961     fi
3962 fi
3963 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3964 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3965  EGREP=$ac_cv_prog_egrep
3966
3967
3968
3969 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3970 if test "${with_gnu_ld+set}" = set; then
3971   withval="$with_gnu_ld"
3972   test "$withval" = no || with_gnu_ld=yes
3973 else
3974   with_gnu_ld=no
3975 fi;
3976 ac_prog=ld
3977 if test "$GCC" = yes; then
3978   # Check if gcc -print-prog-name=ld gives a path.
3979   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3980 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3981   case $host in
3982   *-*-mingw*)
3983     # gcc leaves a trailing carriage return which upsets mingw
3984     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3985   *)
3986     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3987   esac
3988   case $ac_prog in
3989     # Accept absolute paths.
3990     [\\/]* | ?:[\\/]*)
3991       re_direlt='/[^/][^/]*/\.\./'
3992       # Canonicalize the path of ld
3993       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3994       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3995         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3996       done
3997       test -z "$LD" && LD="$ac_prog"
3998       ;;
3999   "")
4000     # If it fails, then pretend we aren't using GCC.
4001     ac_prog=ld
4002     ;;
4003   *)
4004     # If it is relative, then search for the first ld in PATH.
4005     with_gnu_ld=unknown
4006     ;;
4007   esac
4008 elif test "$with_gnu_ld" = yes; then
4009   echo "$as_me:$LINENO: checking for GNU ld" >&5
4010 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4011 else
4012   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4013 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4014 fi
4015 if test "${lt_cv_path_LD+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   if test -z "$LD"; then
4019   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4020   for ac_dir in $PATH; do
4021     IFS="$lt_save_ifs"
4022     test -z "$ac_dir" && ac_dir=.
4023     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4024       lt_cv_path_LD="$ac_dir/$ac_prog"
4025       # Check to see if the program is GNU ld.  I'd rather use --version,
4026       # but apparently some GNU ld's only accept -v.
4027       # Break only if it was the GNU/non-GNU ld that we prefer.
4028       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4029       *GNU* | *'with BFD'*)
4030         test "$with_gnu_ld" != no && break
4031         ;;
4032       *)
4033         test "$with_gnu_ld" != yes && break
4034         ;;
4035       esac
4036     fi
4037   done
4038   IFS="$lt_save_ifs"
4039 else
4040   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4041 fi
4042 fi
4043
4044 LD="$lt_cv_path_LD"
4045 if test -n "$LD"; then
4046   echo "$as_me:$LINENO: result: $LD" >&5
4047 echo "${ECHO_T}$LD" >&6
4048 else
4049   echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4051 fi
4052 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4053 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4054    { (exit 1); exit 1; }; }
4055 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4056 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4057 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4061 case `"$LD" -v 2>&1 </dev/null` in
4062 *GNU* | *'with BFD'*)
4063   lt_cv_prog_gnu_ld=yes
4064   ;;
4065 *)
4066   lt_cv_prog_gnu_ld=no
4067   ;;
4068 esac
4069 fi
4070 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4071 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4072 with_gnu_ld=$lt_cv_prog_gnu_ld
4073
4074
4075 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4076 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4077 if test "${lt_cv_ld_reload_flag+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   lt_cv_ld_reload_flag='-r'
4081 fi
4082 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4083 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4084 reload_flag=$lt_cv_ld_reload_flag
4085 case $reload_flag in
4086 "" | " "*) ;;
4087 *) reload_flag=" $reload_flag" ;;
4088 esac
4089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4090
4091 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4092 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4093 if test "${lt_cv_path_NM+set}" = set; then
4094   echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096   if test -n "$NM"; then
4097   # Let the user override the test.
4098   lt_cv_path_NM="$NM"
4099 else
4100   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4101   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4102     IFS="$lt_save_ifs"
4103     test -z "$ac_dir" && ac_dir=.
4104     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4105     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4106       # Check to see if the nm accepts a BSD-compat flag.
4107       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4108       #   nm: unknown option "B" ignored
4109       # Tru64's nm complains that /dev/null is an invalid object file
4110       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4111       */dev/null* | *'Invalid file or object type'*)
4112         lt_cv_path_NM="$tmp_nm -B"
4113         break
4114         ;;
4115       *)
4116         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4117         */dev/null*)
4118           lt_cv_path_NM="$tmp_nm -p"
4119           break
4120           ;;
4121         *)
4122           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4123           continue # so that we can try to find one that supports BSD flags
4124           ;;
4125         esac
4126       esac
4127     fi
4128   done
4129   IFS="$lt_save_ifs"
4130   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4131 fi
4132 fi
4133 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4134 echo "${ECHO_T}$lt_cv_path_NM" >&6
4135 NM="$lt_cv_path_NM"
4136
4137 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4138 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4139 LN_S=$as_ln_s
4140 if test "$LN_S" = "ln -s"; then
4141   echo "$as_me:$LINENO: result: yes" >&5
4142 echo "${ECHO_T}yes" >&6
4143 else
4144   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4145 echo "${ECHO_T}no, using $LN_S" >&6
4146 fi
4147
4148 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4149 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4150 if test "${lt_cv_deplibs_check_method+set}" = set; then
4151   echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153   lt_cv_file_magic_cmd='$MAGIC_CMD'
4154 lt_cv_file_magic_test_file=
4155 lt_cv_deplibs_check_method='unknown'
4156 # Need to set the preceding variable on all platforms that support
4157 # interlibrary dependencies.
4158 # 'none' -- dependencies not supported.
4159 # `unknown' -- same as none, but documents that we really don't know.
4160 # 'pass_all' -- all dependencies passed with no checks.
4161 # 'test_compile' -- check by making test program.
4162 # 'file_magic [[regex]]' -- check by looking for files in library path
4163 # which responds to the $file_magic_cmd with a given extended regex.
4164 # If you have `file' or equivalent on your system and you're not sure
4165 # whether `pass_all' will *always* work, you probably want this one.
4166
4167 case $host_os in
4168 aix4* | aix5*)
4169   lt_cv_deplibs_check_method=pass_all
4170   ;;
4171
4172 beos*)
4173   lt_cv_deplibs_check_method=pass_all
4174   ;;
4175
4176 bsdi4*)
4177   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4178   lt_cv_file_magic_cmd='/usr/bin/file -L'
4179   lt_cv_file_magic_test_file=/shlib/libc.so
4180   ;;
4181
4182 cygwin* | mingw* | pw32*)
4183   # win32_libid is a shell function defined in ltmain.sh
4184   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4185   lt_cv_file_magic_cmd='win32_libid'
4186   ;;
4187
4188 darwin* | rhapsody*)
4189   # this will be overwritten by pass_all, but leave it in just in case
4190   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4191   lt_cv_file_magic_cmd='/usr/bin/file -L'
4192   case "$host_os" in
4193   rhapsody* | darwin1.[012])
4194     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4195     ;;
4196   *) # Darwin 1.3 on
4197     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4198     ;;
4199   esac
4200   lt_cv_deplibs_check_method=pass_all
4201   ;;
4202
4203 freebsd*)
4204   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4205     case $host_cpu in
4206     i*86 )
4207       # Not sure whether the presence of OpenBSD here was a mistake.
4208       # Let's accept both of them until this is cleared up.
4209       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4210       lt_cv_file_magic_cmd=/usr/bin/file
4211       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4212       ;;
4213     esac
4214   else
4215     lt_cv_deplibs_check_method=pass_all
4216   fi
4217   ;;
4218
4219 gnu*)
4220   lt_cv_deplibs_check_method=pass_all
4221   ;;
4222
4223 hpux10.20* | hpux11*)
4224   lt_cv_file_magic_cmd=/usr/bin/file
4225   case "$host_cpu" in
4226   ia64*)
4227     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4228     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4229     ;;
4230   hppa*64*)
4231     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]'
4232     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4233     ;;
4234   *)
4235     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4236     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4237     ;;
4238   esac
4239   ;;
4240
4241 irix5* | irix6* | nonstopux*)
4242   case $host_os in
4243   irix5* | nonstopux*)
4244     # this will be overridden with pass_all, but let us keep it just in case
4245     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4246     ;;
4247   *)
4248     case $LD in
4249     *-32|*"-32 ") libmagic=32-bit;;
4250     *-n32|*"-n32 ") libmagic=N32;;
4251     *-64|*"-64 ") libmagic=64-bit;;
4252     *) libmagic=never-match;;
4253     esac
4254     # this will be overridden with pass_all, but let us keep it just in case
4255     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4256     ;;
4257   esac
4258   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4259   lt_cv_deplibs_check_method=pass_all
4260   ;;
4261
4262 # This must be Linux ELF.
4263 linux*)
4264   case $host_cpu in
4265   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4266     lt_cv_deplibs_check_method=pass_all ;;
4267   *)
4268     # glibc up to 2.1.1 does not perform some relocations on ARM
4269     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4270   esac
4271   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4272   ;;
4273
4274 netbsd*)
4275   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4276     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4277   else
4278     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4279   fi
4280   ;;
4281
4282 newos6*)
4283   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4284   lt_cv_file_magic_cmd=/usr/bin/file
4285   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4286   ;;
4287
4288 nto-qnx)
4289   lt_cv_deplibs_check_method=unknown
4290   ;;
4291
4292 openbsd*)
4293   lt_cv_file_magic_cmd=/usr/bin/file
4294   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4295   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4296     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4297   else
4298     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4299   fi
4300   ;;
4301
4302 osf3* | osf4* | osf5*)
4303   # this will be overridden with pass_all, but let us keep it just in case
4304   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4305   lt_cv_file_magic_test_file=/shlib/libc.so
4306   lt_cv_deplibs_check_method=pass_all
4307   ;;
4308
4309 sco3.2v5*)
4310   lt_cv_deplibs_check_method=pass_all
4311   ;;
4312
4313 solaris*)
4314   lt_cv_deplibs_check_method=pass_all
4315   lt_cv_file_magic_test_file=/lib/libc.so
4316   ;;
4317
4318 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4319   case $host_vendor in
4320   motorola)
4321     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]'
4322     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4323     ;;
4324   ncr)
4325     lt_cv_deplibs_check_method=pass_all
4326     ;;
4327   sequent)
4328     lt_cv_file_magic_cmd='/bin/file'
4329     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4330     ;;
4331   sni)
4332     lt_cv_file_magic_cmd='/bin/file'
4333     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4334     lt_cv_file_magic_test_file=/lib/libc.so
4335     ;;
4336   siemens)
4337     lt_cv_deplibs_check_method=pass_all
4338     ;;
4339   esac
4340   ;;
4341
4342 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4343   lt_cv_deplibs_check_method=pass_all
4344   ;;
4345 esac
4346
4347 fi
4348 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4349 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4350 file_magic_cmd=$lt_cv_file_magic_cmd
4351 deplibs_check_method=$lt_cv_deplibs_check_method
4352 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4353
4354
4355
4356
4357 # If no C compiler was specified, use CC.
4358 LTCC=${LTCC-"$CC"}
4359
4360 # Allow CC to be a program name with arguments.
4361 compiler=$CC
4362
4363 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4364 if test "${enable_libtool_lock+set}" = set; then
4365   enableval="$enable_libtool_lock"
4366
4367 fi;
4368 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4369
4370 # Some flags need to be propagated to the compiler or linker for good
4371 # libtool support.
4372 case $host in
4373 ia64-*-hpux*)
4374   # Find out which ABI we are using.
4375   echo 'int i;' > conftest.$ac_ext
4376   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377   (eval $ac_compile) 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }; then
4381     case `/usr/bin/file conftest.$ac_objext` in
4382     *ELF-32*)
4383       HPUX_IA64_MODE="32"
4384       ;;
4385     *ELF-64*)
4386       HPUX_IA64_MODE="64"
4387       ;;
4388     esac
4389   fi
4390   rm -rf conftest*
4391   ;;
4392 *-*-irix6*)
4393   # Find out which ABI we are using.
4394   echo '#line 4394 "configure"' > conftest.$ac_ext
4395   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396   (eval $ac_compile) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; then
4400    if test "$lt_cv_prog_gnu_ld" = yes; then
4401     case `/usr/bin/file conftest.$ac_objext` in
4402     *32-bit*)
4403       LD="${LD-ld} -melf32bsmip"
4404       ;;
4405     *N32*)
4406       LD="${LD-ld} -melf32bmipn32"
4407       ;;
4408     *64-bit*)
4409       LD="${LD-ld} -melf64bmip"
4410       ;;
4411     esac
4412    else
4413     case `/usr/bin/file conftest.$ac_objext` in
4414     *32-bit*)
4415       LD="${LD-ld} -32"
4416       ;;
4417     *N32*)
4418       LD="${LD-ld} -n32"
4419       ;;
4420     *64-bit*)
4421       LD="${LD-ld} -64"
4422       ;;
4423     esac
4424    fi
4425   fi
4426   rm -rf conftest*
4427   ;;
4428
4429 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4430   # Find out which ABI we are using.
4431   echo 'int i;' > conftest.$ac_ext
4432   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433   (eval $ac_compile) 2>&5
4434   ac_status=$?
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); }; then
4437     case "`/usr/bin/file conftest.o`" in
4438     *32-bit*)
4439       case $host in
4440         x86_64-*linux*)
4441           LD="${LD-ld} -m elf_i386"
4442           ;;
4443         ppc64-*linux*)
4444           LD="${LD-ld} -m elf32ppclinux"
4445           ;;
4446         s390x-*linux*)
4447           LD="${LD-ld} -m elf_s390"
4448           ;;
4449         sparc64-*linux*)
4450           LD="${LD-ld} -m elf32_sparc"
4451           ;;
4452       esac
4453       ;;
4454     *64-bit*)
4455       case $host in
4456         x86_64-*linux*)
4457           LD="${LD-ld} -m elf_x86_64"
4458           ;;
4459         ppc*-*linux*|powerpc*-*linux*)
4460           LD="${LD-ld} -m elf64ppc"
4461           ;;
4462         s390*-*linux*)
4463           LD="${LD-ld} -m elf64_s390"
4464           ;;
4465         sparc*-*linux*)
4466           LD="${LD-ld} -m elf64_sparc"
4467           ;;
4468       esac
4469       ;;
4470     esac
4471   fi
4472   rm -rf conftest*
4473   ;;
4474
4475 *-*-sco3.2v5*)
4476   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4477   SAVE_CFLAGS="$CFLAGS"
4478   CFLAGS="$CFLAGS -belf"
4479   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4480 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4481 if test "${lt_cv_cc_needs_belf+set}" = set; then
4482   echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484   ac_ext=c
4485 ac_cpp='$CPP $CPPFLAGS'
4486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489
4490      cat >conftest.$ac_ext <<_ACEOF
4491 #line $LINENO "configure"
4492 /* confdefs.h.  */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h.  */
4497
4498 int
4499 main ()
4500 {
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest.$ac_objext conftest$ac_exeext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508   (eval $ac_link) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); } &&
4512          { ac_try='test -s conftest$ac_exeext'
4513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514   (eval $ac_try) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; }; then
4518   lt_cv_cc_needs_belf=yes
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523 lt_cv_cc_needs_belf=no
4524 fi
4525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4526      ac_ext=c
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531
4532 fi
4533 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4534 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4535   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4536     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4537     CFLAGS="$SAVE_CFLAGS"
4538   fi
4539   ;;
4540
4541 esac
4542
4543 need_locks="$enable_libtool_lock"
4544
4545
4546
4547 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4548 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4549 if test "${ac_cv_header_stdc+set}" = set; then
4550   echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552   cat >conftest.$ac_ext <<_ACEOF
4553 #line $LINENO "configure"
4554 /* confdefs.h.  */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h.  */
4559 #include <stdlib.h>
4560 #include <stdarg.h>
4561 #include <string.h>
4562 #include <float.h>
4563
4564 int
4565 main ()
4566 {
4567
4568   ;
4569   return 0;
4570 }
4571 _ACEOF
4572 rm -f conftest.$ac_objext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4574   (eval $ac_compile) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); } &&
4578          { ac_try='test -s conftest.$ac_objext'
4579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580   (eval $ac_try) 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); }; }; then
4584   ac_cv_header_stdc=yes
4585 else
4586   echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4588
4589 ac_cv_header_stdc=no
4590 fi
4591 rm -f conftest.$ac_objext conftest.$ac_ext
4592
4593 if test $ac_cv_header_stdc = yes; then
4594   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595   cat >conftest.$ac_ext <<_ACEOF
4596 #line $LINENO "configure"
4597 /* confdefs.h.  */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h.  */
4602 #include <string.h>
4603
4604 _ACEOF
4605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606   $EGREP "memchr" >/dev/null 2>&1; then
4607   :
4608 else
4609   ac_cv_header_stdc=no
4610 fi
4611 rm -f conftest*
4612
4613 fi
4614
4615 if test $ac_cv_header_stdc = yes; then
4616   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4617   cat >conftest.$ac_ext <<_ACEOF
4618 #line $LINENO "configure"
4619 /* confdefs.h.  */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h.  */
4624 #include <stdlib.h>
4625
4626 _ACEOF
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628   $EGREP "free" >/dev/null 2>&1; then
4629   :
4630 else
4631   ac_cv_header_stdc=no
4632 fi
4633 rm -f conftest*
4634
4635 fi
4636
4637 if test $ac_cv_header_stdc = yes; then
4638   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4639   if test "$cross_compiling" = yes; then
4640   :
4641 else
4642   cat >conftest.$ac_ext <<_ACEOF
4643 #line $LINENO "configure"
4644 /* confdefs.h.  */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h.  */
4649 #include <ctype.h>
4650 #if ((' ' & 0x0FF) == 0x020)
4651 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4652 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4653 #else
4654 # define ISLOWER(c) \
4655                    (('a' <= (c) && (c) <= 'i') \
4656                      || ('j' <= (c) && (c) <= 'r') \
4657                      || ('s' <= (c) && (c) <= 'z'))
4658 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4659 #endif
4660
4661 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4662 int
4663 main ()
4664 {
4665   int i;
4666   for (i = 0; i < 256; i++)
4667     if (XOR (islower (i), ISLOWER (i))
4668         || toupper (i) != TOUPPER (i))
4669       exit(2);
4670   exit (0);
4671 }
4672 _ACEOF
4673 rm -f conftest$ac_exeext
4674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4675   (eval $ac_link) 2>&5
4676   ac_status=$?
4677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680   (eval $ac_try) 2>&5
4681   ac_status=$?
4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); }; }; then
4684   :
4685 else
4686   echo "$as_me: program exited with status $ac_status" >&5
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4689
4690 ( exit $ac_status )
4691 ac_cv_header_stdc=no
4692 fi
4693 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4694 fi
4695 fi
4696 fi
4697 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4698 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4699 if test $ac_cv_header_stdc = yes; then
4700
4701 cat >>confdefs.h <<\_ACEOF
4702 #define STDC_HEADERS 1
4703 _ACEOF
4704
4705 fi
4706
4707 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4718                   inttypes.h stdint.h unistd.h
4719 do
4720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4721 echo "$as_me:$LINENO: checking for $ac_header" >&5
4722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4724   echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726   cat >conftest.$ac_ext <<_ACEOF
4727 #line $LINENO "configure"
4728 /* confdefs.h.  */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h.  */
4733 $ac_includes_default
4734
4735 #include <$ac_header>
4736 _ACEOF
4737 rm -f conftest.$ac_objext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739   (eval $ac_compile) 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); } &&
4743          { ac_try='test -s conftest.$ac_objext'
4744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745   (eval $ac_try) 2>&5
4746   ac_status=$?
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); }; }; then
4749   eval "$as_ac_Header=yes"
4750 else
4751   echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 eval "$as_ac_Header=no"
4755 fi
4756 rm -f conftest.$ac_objext conftest.$ac_ext
4757 fi
4758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4761   cat >>confdefs.h <<_ACEOF
4762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4763 _ACEOF
4764
4765 fi
4766
4767 done
4768
4769
4770
4771 for ac_header in dlfcn.h
4772 do
4773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4775   echo "$as_me:$LINENO: checking for $ac_header" >&5
4776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 fi
4780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4782 else
4783   # Is the header compilable?
4784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4786 cat >conftest.$ac_ext <<_ACEOF
4787 #line $LINENO "configure"
4788 /* confdefs.h.  */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h.  */
4793 $ac_includes_default
4794 #include <$ac_header>
4795 _ACEOF
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798   (eval $ac_compile) 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); } &&
4802          { ac_try='test -s conftest.$ac_objext'
4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804   (eval $ac_try) 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; }; then
4808   ac_header_compiler=yes
4809 else
4810   echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4812
4813 ac_header_compiler=no
4814 fi
4815 rm -f conftest.$ac_objext conftest.$ac_ext
4816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4817 echo "${ECHO_T}$ac_header_compiler" >&6
4818
4819 # Is the header present?
4820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4822 cat >conftest.$ac_ext <<_ACEOF
4823 #line $LINENO "configure"
4824 /* confdefs.h.  */
4825 _ACEOF
4826 cat confdefs.h >>conftest.$ac_ext
4827 cat >>conftest.$ac_ext <<_ACEOF
4828 /* end confdefs.h.  */
4829 #include <$ac_header>
4830 _ACEOF
4831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4833   ac_status=$?
4834   grep -v '^ *+' conftest.er1 >conftest.err
4835   rm -f conftest.er1
4836   cat conftest.err >&5
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); } >/dev/null; then
4839   if test -s conftest.err; then
4840     ac_cpp_err=$ac_c_preproc_warn_flag
4841   else
4842     ac_cpp_err=
4843   fi
4844 else
4845   ac_cpp_err=yes
4846 fi
4847 if test -z "$ac_cpp_err"; then
4848   ac_header_preproc=yes
4849 else
4850   echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4852
4853   ac_header_preproc=no
4854 fi
4855 rm -f conftest.err conftest.$ac_ext
4856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4857 echo "${ECHO_T}$ac_header_preproc" >&6
4858
4859 # So?  What about this header?
4860 case $ac_header_compiler:$ac_header_preproc in
4861   yes:no )
4862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4866     (
4867       cat <<\_ASBOX
4868 ## ------------------------------------ ##
4869 ## Report this to bug-autoconf@gnu.org. ##
4870 ## ------------------------------------ ##
4871 _ASBOX
4872     ) |
4873       sed "s/^/$as_me: WARNING:     /" >&2
4874     ;;
4875   no:yes )
4876     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4878     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4882     (
4883       cat <<\_ASBOX
4884 ## ------------------------------------ ##
4885 ## Report this to bug-autoconf@gnu.org. ##
4886 ## ------------------------------------ ##
4887 _ASBOX
4888     ) |
4889       sed "s/^/$as_me: WARNING:     /" >&2
4890     ;;
4891 esac
4892 echo "$as_me:$LINENO: checking for $ac_header" >&5
4893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4895   echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897   eval "$as_ac_Header=$ac_header_preproc"
4898 fi
4899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4901
4902 fi
4903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4904   cat >>confdefs.h <<_ACEOF
4905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4906 _ACEOF
4907
4908 fi
4909
4910 done
4911
4912 ac_ext=cc
4913 ac_cpp='$CXXCPP $CPPFLAGS'
4914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4917 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4918 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4919 if test -z "$CXXCPP"; then
4920   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4921   echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923       # Double quotes because CXXCPP needs to be expanded
4924     for CXXCPP in "$CXX -E" "/lib/cpp"
4925     do
4926       ac_preproc_ok=false
4927 for ac_cxx_preproc_warn_flag in '' yes
4928 do
4929   # Use a header file that comes with gcc, so configuring glibc
4930   # with a fresh cross-compiler works.
4931   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932   # <limits.h> exists even on freestanding compilers.
4933   # On the NeXT, cc -E runs the code through the compiler's parser,
4934   # not just through cpp. "Syntax error" is here to catch this case.
4935   cat >conftest.$ac_ext <<_ACEOF
4936 #line $LINENO "configure"
4937 /* confdefs.h.  */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h.  */
4942 #ifdef __STDC__
4943 # include <limits.h>
4944 #else
4945 # include <assert.h>
4946 #endif
4947                      Syntax error
4948 _ACEOF
4949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4951   ac_status=$?
4952   grep -v '^ *+' conftest.er1 >conftest.err
4953   rm -f conftest.er1
4954   cat conftest.err >&5
4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956   (exit $ac_status); } >/dev/null; then
4957   if test -s conftest.err; then
4958     ac_cpp_err=$ac_cxx_preproc_warn_flag
4959   else
4960     ac_cpp_err=
4961   fi
4962 else
4963   ac_cpp_err=yes
4964 fi
4965 if test -z "$ac_cpp_err"; then
4966   :
4967 else
4968   echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4970
4971   # Broken: fails on valid input.
4972 continue
4973 fi
4974 rm -f conftest.err conftest.$ac_ext
4975
4976   # OK, works on sane cases.  Now check whether non-existent headers
4977   # can be detected and how.
4978   cat >conftest.$ac_ext <<_ACEOF
4979 #line $LINENO "configure"
4980 /* confdefs.h.  */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h.  */
4985 #include <ac_nonexistent.h>
4986 _ACEOF
4987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989   ac_status=$?
4990   grep -v '^ *+' conftest.er1 >conftest.err
4991   rm -f conftest.er1
4992   cat conftest.err >&5
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); } >/dev/null; then
4995   if test -s conftest.err; then
4996     ac_cpp_err=$ac_cxx_preproc_warn_flag
4997   else
4998     ac_cpp_err=
4999   fi
5000 else
5001   ac_cpp_err=yes
5002 fi
5003 if test -z "$ac_cpp_err"; then
5004   # Broken: success on invalid input.
5005 continue
5006 else
5007   echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5009
5010   # Passes both tests.
5011 ac_preproc_ok=:
5012 break
5013 fi
5014 rm -f conftest.err conftest.$ac_ext
5015
5016 done
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018 rm -f conftest.err conftest.$ac_ext
5019 if $ac_preproc_ok; then
5020   break
5021 fi
5022
5023     done
5024     ac_cv_prog_CXXCPP=$CXXCPP
5025
5026 fi
5027   CXXCPP=$ac_cv_prog_CXXCPP
5028 else
5029   ac_cv_prog_CXXCPP=$CXXCPP
5030 fi
5031 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5032 echo "${ECHO_T}$CXXCPP" >&6
5033 ac_preproc_ok=false
5034 for ac_cxx_preproc_warn_flag in '' yes
5035 do
5036   # Use a header file that comes with gcc, so configuring glibc
5037   # with a fresh cross-compiler works.
5038   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039   # <limits.h> exists even on freestanding compilers.
5040   # On the NeXT, cc -E runs the code through the compiler's parser,
5041   # not just through cpp. "Syntax error" is here to catch this case.
5042   cat >conftest.$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5044 /* confdefs.h.  */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h.  */
5049 #ifdef __STDC__
5050 # include <limits.h>
5051 #else
5052 # include <assert.h>
5053 #endif
5054                      Syntax error
5055 _ACEOF
5056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5058   ac_status=$?
5059   grep -v '^ *+' conftest.er1 >conftest.err
5060   rm -f conftest.er1
5061   cat conftest.err >&5
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); } >/dev/null; then
5064   if test -s conftest.err; then
5065     ac_cpp_err=$ac_cxx_preproc_warn_flag
5066   else
5067     ac_cpp_err=
5068   fi
5069 else
5070   ac_cpp_err=yes
5071 fi
5072 if test -z "$ac_cpp_err"; then
5073   :
5074 else
5075   echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078   # Broken: fails on valid input.
5079 continue
5080 fi
5081 rm -f conftest.err conftest.$ac_ext
5082
5083   # OK, works on sane cases.  Now check whether non-existent headers
5084   # can be detected and how.
5085   cat >conftest.$ac_ext <<_ACEOF
5086 #line $LINENO "configure"
5087 /* confdefs.h.  */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h.  */
5092 #include <ac_nonexistent.h>
5093 _ACEOF
5094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5096   ac_status=$?
5097   grep -v '^ *+' conftest.er1 >conftest.err
5098   rm -f conftest.er1
5099   cat conftest.err >&5
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } >/dev/null; then
5102   if test -s conftest.err; then
5103     ac_cpp_err=$ac_cxx_preproc_warn_flag
5104   else
5105     ac_cpp_err=
5106   fi
5107 else
5108   ac_cpp_err=yes
5109 fi
5110 if test -z "$ac_cpp_err"; then
5111   # Broken: success on invalid input.
5112 continue
5113 else
5114   echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117   # Passes both tests.
5118 ac_preproc_ok=:
5119 break
5120 fi
5121 rm -f conftest.err conftest.$ac_ext
5122
5123 done
5124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5125 rm -f conftest.err conftest.$ac_ext
5126 if $ac_preproc_ok; then
5127   :
5128 else
5129   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5130 See \`config.log' for more details." >&5
5131 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5132 See \`config.log' for more details." >&2;}
5133    { (exit 1); exit 1; }; }
5134 fi
5135
5136 ac_ext=cc
5137 ac_cpp='$CXXCPP $CPPFLAGS'
5138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5141
5142
5143 ac_ext=f
5144 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5145 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5147 if test -n "$ac_tool_prefix"; then
5148   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5149   do
5150     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5152 echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5154 if test "${ac_cv_prog_F77+set}" = set; then
5155   echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157   if test -n "$F77"; then
5158   ac_cv_prog_F77="$F77" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165   for ac_exec_ext in '' $ac_executable_extensions; do
5166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169     break 2
5170   fi
5171 done
5172 done
5173
5174 fi
5175 fi
5176 F77=$ac_cv_prog_F77
5177 if test -n "$F77"; then
5178   echo "$as_me:$LINENO: result: $F77" >&5
5179 echo "${ECHO_T}$F77" >&6
5180 else
5181   echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6
5183 fi
5184
5185     test -n "$F77" && break
5186   done
5187 fi
5188 if test -z "$F77"; then
5189   ac_ct_F77=$F77
5190   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5191 do
5192   # Extract the first word of "$ac_prog", so it can be a program name with args.
5193 set dummy $ac_prog; ac_word=$2
5194 echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5196 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5197   echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199   if test -n "$ac_ct_F77"; then
5200   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5201 else
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205   IFS=$as_save_IFS
5206   test -z "$as_dir" && as_dir=.
5207   for ac_exec_ext in '' $ac_executable_extensions; do
5208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209     ac_cv_prog_ac_ct_F77="$ac_prog"
5210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211     break 2
5212   fi
5213 done
5214 done
5215
5216 fi
5217 fi
5218 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5219 if test -n "$ac_ct_F77"; then
5220   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5221 echo "${ECHO_T}$ac_ct_F77" >&6
5222 else
5223   echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6
5225 fi
5226
5227   test -n "$ac_ct_F77" && break
5228 done
5229
5230   F77=$ac_ct_F77
5231 fi
5232
5233
5234 # Provide some information about the compiler.
5235 echo "$as_me:5235:" \
5236      "checking for Fortran 77 compiler version" >&5
5237 ac_compiler=`set X $ac_compile; echo $2`
5238 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5239   (eval $ac_compiler --version </dev/null >&5) 2>&5
5240   ac_status=$?
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); }
5243 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5244   (eval $ac_compiler -v </dev/null >&5) 2>&5
5245   ac_status=$?
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); }
5248 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5249   (eval $ac_compiler -V </dev/null >&5) 2>&5
5250   ac_status=$?
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); }
5253
5254 # If we don't use `.F' as extension, the preprocessor is not run on the
5255 # input file.
5256 ac_save_ext=$ac_ext
5257 ac_ext=F
5258 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5259 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5260 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5261   echo $ECHO_N "(cached) $ECHO_C" >&6
5262 else
5263   cat >conftest.$ac_ext <<_ACEOF
5264       program main
5265 #ifndef __GNUC__
5266        choke me
5267 #endif
5268
5269       end
5270 _ACEOF
5271 rm -f conftest.$ac_objext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5273   (eval $ac_compile) 2>&5
5274   ac_status=$?
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); } &&
5277          { ac_try='test -s conftest.$ac_objext'
5278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279   (eval $ac_try) 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }; }; then
5283   ac_compiler_gnu=yes
5284 else
5285   echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 ac_compiler_gnu=no
5289 fi
5290 rm -f conftest.$ac_objext conftest.$ac_ext
5291 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5292
5293 fi
5294 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5295 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5296 ac_ext=$ac_save_ext
5297 G77=`test $ac_compiler_gnu = yes && echo yes`
5298 ac_test_FFLAGS=${FFLAGS+set}
5299 ac_save_FFLAGS=$FFLAGS
5300 FFLAGS=
5301 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5302 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5303 if test "${ac_cv_prog_f77_g+set}" = set; then
5304   echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306   FFLAGS=-g
5307 cat >conftest.$ac_ext <<_ACEOF
5308       program main
5309
5310       end
5311 _ACEOF
5312 rm -f conftest.$ac_objext
5313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5314   (eval $ac_compile) 2>&5
5315   ac_status=$?
5316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317   (exit $ac_status); } &&
5318          { ac_try='test -s conftest.$ac_objext'
5319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320   (eval $ac_try) 2>&5
5321   ac_status=$?
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); }; }; then
5324   ac_cv_prog_f77_g=yes
5325 else
5326   echo "$as_me: failed program was:" >&5
5327 sed 's/^/| /' conftest.$ac_ext >&5
5328
5329 ac_cv_prog_f77_g=no
5330 fi
5331 rm -f conftest.$ac_objext conftest.$ac_ext
5332
5333 fi
5334 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5335 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5336 if test "$ac_test_FFLAGS" = set; then
5337   FFLAGS=$ac_save_FFLAGS
5338 elif test $ac_cv_prog_f77_g = yes; then
5339   if test "$G77" = yes; then
5340     FFLAGS="-g -O2"
5341   else
5342     FFLAGS="-g"
5343   fi
5344 else
5345   if test "$G77" = yes; then
5346     FFLAGS="-O2"
5347   else
5348     FFLAGS=
5349   fi
5350 fi
5351 ac_ext=c
5352 ac_cpp='$CPP $CPPFLAGS'
5353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356
5357
5358
5359 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5360
5361 # find the maximum length of command line arguments
5362 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5363 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5364 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367     i=0
5368   testring="ABCD"
5369
5370   case $build_os in
5371   msdosdjgpp*)
5372     # On DJGPP, this test can blow up pretty badly due to problems in libc
5373     # (any single argument exceeding 2000 bytes causes a buffer overrun
5374     # during glob expansion).  Even if it were fixed, the result of this
5375     # check would be larger than it should be.
5376     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5377     ;;
5378
5379   gnu*)
5380     # Under GNU Hurd, this test is not required because there is
5381     # no limit to the length of command line arguments.
5382     # Libtool will interpret -1 as no limit whatsoever
5383     lt_cv_sys_max_cmd_len=-1;
5384     ;;
5385
5386   cygwin* | mingw*)
5387     # On Win9x/ME, this test blows up -- it succeeds, but takes
5388     # about 5 minutes as the teststring grows exponentially.
5389     # Worse, since 9x/ME are not pre-emptively multitasking,
5390     # you end up with a "frozen" computer, even though with patience
5391     # the test eventually succeeds (with a max line length of 256k).
5392     # Instead, let's just punt: use the minimum linelength reported by
5393     # all of the supported platforms: 8192 (on NT/2K/XP).
5394     lt_cv_sys_max_cmd_len=8192;
5395     ;;
5396
5397  *)
5398     # If test is not a shell built-in, we'll probably end up computing a
5399     # maximum length that is only half of the actual maximum length, but
5400     # we can't tell.
5401     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5402                = "XX$testring") >/dev/null 2>&1 &&
5403             new_result=`expr "X$testring" : ".*" 2>&1` &&
5404             lt_cv_sys_max_cmd_len=$new_result &&
5405             test $i != 17 # 1/2 MB should be enough
5406     do
5407       i=`expr $i + 1`
5408       testring=$testring$testring
5409     done
5410     testring=
5411     # Add a significant safety factor because C++ compilers can tack on massive
5412     # amounts of additional arguments before passing them to the linker.
5413     # It appears as though 1/2 is a usable value.
5414     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5415     ;;
5416   esac
5417
5418 fi
5419
5420 if test -n $lt_cv_sys_max_cmd_len ; then
5421   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5422 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5423 else
5424   echo "$as_me:$LINENO: result: none" >&5
5425 echo "${ECHO_T}none" >&6
5426 fi
5427
5428
5429
5430
5431 # Check for command to grab the raw symbol name followed by C symbol from nm.
5432 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5433 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5434 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5435   echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437
5438 # These are sane defaults that work on at least a few old systems.
5439 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5440
5441 # Character class describing NM global symbol codes.
5442 symcode='[BCDEGRST]'
5443
5444 # Regexp to match symbols that can be accessed directly from C.
5445 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5446
5447 # Transform the above into a raw symbol and a C symbol.
5448 symxfrm='\1 \2\3 \3'
5449
5450 # Transform an extracted symbol line into a proper C declaration
5451 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5452
5453 # Transform an extracted symbol line into symbol name and symbol address
5454 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'"
5455
5456 # Define system-specific variables.
5457 case $host_os in
5458 aix*)
5459   symcode='[BCDT]'
5460   ;;
5461 cygwin* | mingw* | pw32*)
5462   symcode='[ABCDGISTW]'
5463   ;;
5464 hpux*) # Its linker distinguishes data from code symbols
5465   if test "$host_cpu" = ia64; then
5466     symcode='[ABCDEGRST]'
5467   fi
5468   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5469   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'"
5470   ;;
5471 irix* | nonstopux*)
5472   symcode='[BCDEGRST]'
5473   ;;
5474 osf*)
5475   symcode='[BCDEGQRST]'
5476   ;;
5477 solaris* | sysv5*)
5478   symcode='[BDT]'
5479   ;;
5480 sysv4)
5481   symcode='[DFNSTU]'
5482   ;;
5483 esac
5484
5485 # Handle CRLF in mingw tool chain
5486 opt_cr=
5487 case $build_os in
5488 mingw*)
5489   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5490   ;;
5491 esac
5492
5493 # If we're using GNU nm, then use its standard symbol codes.
5494 case `$NM -V 2>&1` in
5495 *GNU* | *'with BFD'*)
5496   symcode='[ABCDGISTW]' ;;
5497 esac
5498
5499 # Try without a prefix undercore, then with it.
5500 for ac_symprfx in "" "_"; do
5501
5502   # Write the raw and C identifiers.
5503   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5504
5505   # Check to see that the pipe works correctly.
5506   pipe_works=no
5507
5508   rm -f conftest*
5509   cat > conftest.$ac_ext <<EOF
5510 #ifdef __cplusplus
5511 extern "C" {
5512 #endif
5513 char nm_test_var;
5514 void nm_test_func(){}
5515 #ifdef __cplusplus
5516 }
5517 #endif
5518 int main(){nm_test_var='a';nm_test_func();return(0);}
5519 EOF
5520
5521   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5522   (eval $ac_compile) 2>&5
5523   ac_status=$?
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); }; then
5526     # Now try to grab the symbols.
5527     nlist=conftest.nm
5528     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5529   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5530   ac_status=$?
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); } && test -s "$nlist"; then
5533       # Try sorting and uniquifying the output.
5534       if sort "$nlist" | uniq > "$nlist"T; then
5535         mv -f "$nlist"T "$nlist"
5536       else
5537         rm -f "$nlist"T
5538       fi
5539
5540       # Make sure that we snagged all the symbols we need.
5541       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5542         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5543           cat <<EOF > conftest.$ac_ext
5544 #ifdef __cplusplus
5545 extern "C" {
5546 #endif
5547
5548 EOF
5549           # Now generate the symbol file.
5550           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5551
5552           cat <<EOF >> conftest.$ac_ext
5553 #if defined (__STDC__) && __STDC__
5554 # define lt_ptr_t void *
5555 #else
5556 # define lt_ptr_t char *
5557 # define const
5558 #endif
5559
5560 /* The mapping between symbol names and symbols. */
5561 const struct {
5562   const char *name;
5563   lt_ptr_t address;
5564 }
5565 lt_preloaded_symbols[] =
5566 {
5567 EOF
5568           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5569           cat <<\EOF >> conftest.$ac_ext
5570   {0, (lt_ptr_t) 0}
5571 };
5572
5573 #ifdef __cplusplus
5574 }
5575 #endif
5576 EOF
5577           # Now try linking the two files.
5578           mv conftest.$ac_objext conftstm.$ac_objext
5579           lt_save_LIBS="$LIBS"
5580           lt_save_CFLAGS="$CFLAGS"
5581           LIBS="conftstm.$ac_objext"
5582           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5583           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584   (eval $ac_link) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5588             pipe_works=yes
5589           fi
5590           LIBS="$lt_save_LIBS"
5591           CFLAGS="$lt_save_CFLAGS"
5592         else
5593           echo "cannot find nm_test_func in $nlist" >&5
5594         fi
5595       else
5596         echo "cannot find nm_test_var in $nlist" >&5
5597       fi
5598     else
5599       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5600     fi
5601   else
5602     echo "$progname: failed program was:" >&5
5603     cat conftest.$ac_ext >&5
5604   fi
5605   rm -f conftest* conftst*
5606
5607   # Do not use the global_symbol_pipe unless it works.
5608   if test "$pipe_works" = yes; then
5609     break
5610   else
5611     lt_cv_sys_global_symbol_pipe=
5612   fi
5613 done
5614
5615 fi
5616
5617 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5618   lt_cv_sys_global_symbol_to_cdecl=
5619 fi
5620 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5621   echo "$as_me:$LINENO: result: failed" >&5
5622 echo "${ECHO_T}failed" >&6
5623 else
5624   echo "$as_me:$LINENO: result: ok" >&5
5625 echo "${ECHO_T}ok" >&6
5626 fi
5627
5628 echo "$as_me:$LINENO: checking for objdir" >&5
5629 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5630 if test "${lt_cv_objdir+set}" = set; then
5631   echo $ECHO_N "(cached) $ECHO_C" >&6
5632 else
5633   rm -f .libs 2>/dev/null
5634 mkdir .libs 2>/dev/null
5635 if test -d .libs; then
5636   lt_cv_objdir=.libs
5637 else
5638   # MS-DOS does not allow filenames that begin with a dot.
5639   lt_cv_objdir=_libs
5640 fi
5641 rmdir .libs 2>/dev/null
5642 fi
5643 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5644 echo "${ECHO_T}$lt_cv_objdir" >&6
5645 objdir=$lt_cv_objdir
5646
5647
5648
5649
5650
5651 case $host_os in
5652 aix3*)
5653   # AIX sometimes has problems with the GCC collect2 program.  For some
5654   # reason, if we set the COLLECT_NAMES environment variable, the problems
5655   # vanish in a puff of smoke.
5656   if test "X${COLLECT_NAMES+set}" != Xset; then
5657     COLLECT_NAMES=
5658     export COLLECT_NAMES
5659   fi
5660   ;;
5661 esac
5662
5663 # Sed substitution that helps us do robust quoting.  It backslashifies
5664 # metacharacters that are still active within double-quoted strings.
5665 Xsed='sed -e s/^X//'
5666 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5667
5668 # Same as above, but do not quote variable references.
5669 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5670
5671 # Sed substitution to delay expansion of an escaped shell variable in a
5672 # double_quote_subst'ed string.
5673 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5674
5675 # Sed substitution to avoid accidental globbing in evaled expressions
5676 no_glob_subst='s/\*/\\\*/g'
5677
5678 # Constants:
5679 rm="rm -f"
5680
5681 # Global variables:
5682 default_ofile=mklib
5683 can_build_shared=yes
5684
5685 # All known linkers require a `.a' archive for static linking (except M$VC,
5686 # which needs '.lib').
5687 libext=a
5688 ltmain="$ac_aux_dir/ltmain.sh"
5689 ofile="$default_ofile"
5690 with_gnu_ld="$lt_cv_prog_gnu_ld"
5691
5692 if test -n "$ac_tool_prefix"; then
5693   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5694 set dummy ${ac_tool_prefix}ar; ac_word=$2
5695 echo "$as_me:$LINENO: checking for $ac_word" >&5
5696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5697 if test "${ac_cv_prog_AR+set}" = set; then
5698   echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700   if test -n "$AR"; then
5701   ac_cv_prog_AR="$AR" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5705 do
5706   IFS=$as_save_IFS
5707   test -z "$as_dir" && as_dir=.
5708   for ac_exec_ext in '' $ac_executable_extensions; do
5709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710     ac_cv_prog_AR="${ac_tool_prefix}ar"
5711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712     break 2
5713   fi
5714 done
5715 done
5716
5717 fi
5718 fi
5719 AR=$ac_cv_prog_AR
5720 if test -n "$AR"; then
5721   echo "$as_me:$LINENO: result: $AR" >&5
5722 echo "${ECHO_T}$AR" >&6
5723 else
5724   echo "$as_me:$LINENO: result: no" >&5
5725 echo "${ECHO_T}no" >&6
5726 fi
5727
5728 fi
5729 if test -z "$ac_cv_prog_AR"; then
5730   ac_ct_AR=$AR
5731   # Extract the first word of "ar", so it can be a program name with args.
5732 set dummy ar; ac_word=$2
5733 echo "$as_me:$LINENO: checking for $ac_word" >&5
5734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5735 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5736   echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738   if test -n "$ac_ct_AR"; then
5739   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5743 do
5744   IFS=$as_save_IFS
5745   test -z "$as_dir" && as_dir=.
5746   for ac_exec_ext in '' $ac_executable_extensions; do
5747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748     ac_cv_prog_ac_ct_AR="ar"
5749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750     break 2
5751   fi
5752 done
5753 done
5754
5755   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5756 fi
5757 fi
5758 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5759 if test -n "$ac_ct_AR"; then
5760   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5761 echo "${ECHO_T}$ac_ct_AR" >&6
5762 else
5763   echo "$as_me:$LINENO: result: no" >&5
5764 echo "${ECHO_T}no" >&6
5765 fi
5766
5767   AR=$ac_ct_AR
5768 else
5769   AR="$ac_cv_prog_AR"
5770 fi
5771
5772 if test -n "$ac_tool_prefix"; then
5773   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5774 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5775 echo "$as_me:$LINENO: checking for $ac_word" >&5
5776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5777 if test "${ac_cv_prog_RANLIB+set}" = set; then
5778   echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780   if test -n "$RANLIB"; then
5781   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5782 else
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5785 do
5786   IFS=$as_save_IFS
5787   test -z "$as_dir" && as_dir=.
5788   for ac_exec_ext in '' $ac_executable_extensions; do
5789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5792     break 2
5793   fi
5794 done
5795 done
5796
5797 fi
5798 fi
5799 RANLIB=$ac_cv_prog_RANLIB
5800 if test -n "$RANLIB"; then
5801   echo "$as_me:$LINENO: result: $RANLIB" >&5
5802 echo "${ECHO_T}$RANLIB" >&6
5803 else
5804   echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6
5806 fi
5807
5808 fi
5809 if test -z "$ac_cv_prog_RANLIB"; then
5810   ac_ct_RANLIB=$RANLIB
5811   # Extract the first word of "ranlib", so it can be a program name with args.
5812 set dummy ranlib; ac_word=$2
5813 echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   if test -n "$ac_ct_RANLIB"; then
5819   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824   IFS=$as_save_IFS
5825   test -z "$as_dir" && as_dir=.
5826   for ac_exec_ext in '' $ac_executable_extensions; do
5827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828     ac_cv_prog_ac_ct_RANLIB="ranlib"
5829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830     break 2
5831   fi
5832 done
5833 done
5834
5835   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5836 fi
5837 fi
5838 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5839 if test -n "$ac_ct_RANLIB"; then
5840   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5841 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5842 else
5843   echo "$as_me:$LINENO: result: no" >&5
5844 echo "${ECHO_T}no" >&6
5845 fi
5846
5847   RANLIB=$ac_ct_RANLIB
5848 else
5849   RANLIB="$ac_cv_prog_RANLIB"
5850 fi
5851
5852 if test -n "$ac_tool_prefix"; then
5853   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5854 set dummy ${ac_tool_prefix}strip; ac_word=$2
5855 echo "$as_me:$LINENO: checking for $ac_word" >&5
5856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5857 if test "${ac_cv_prog_STRIP+set}" = set; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860   if test -n "$STRIP"; then
5861   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866   IFS=$as_save_IFS
5867   test -z "$as_dir" && as_dir=.
5868   for ac_exec_ext in '' $ac_executable_extensions; do
5869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872     break 2
5873   fi
5874 done
5875 done
5876
5877 fi
5878 fi
5879 STRIP=$ac_cv_prog_STRIP
5880 if test -n "$STRIP"; then
5881   echo "$as_me:$LINENO: result: $STRIP" >&5
5882 echo "${ECHO_T}$STRIP" >&6
5883 else
5884   echo "$as_me:$LINENO: result: no" >&5
5885 echo "${ECHO_T}no" >&6
5886 fi
5887
5888 fi
5889 if test -z "$ac_cv_prog_STRIP"; then
5890   ac_ct_STRIP=$STRIP
5891   # Extract the first word of "strip", so it can be a program name with args.
5892 set dummy strip; ac_word=$2
5893 echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   if test -n "$ac_ct_STRIP"; then
5899   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906   for ac_exec_ext in '' $ac_executable_extensions; do
5907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908     ac_cv_prog_ac_ct_STRIP="strip"
5909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913 done
5914
5915   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5916 fi
5917 fi
5918 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5919 if test -n "$ac_ct_STRIP"; then
5920   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5921 echo "${ECHO_T}$ac_ct_STRIP" >&6
5922 else
5923   echo "$as_me:$LINENO: result: no" >&5
5924 echo "${ECHO_T}no" >&6
5925 fi
5926
5927   STRIP=$ac_ct_STRIP
5928 else
5929   STRIP="$ac_cv_prog_STRIP"
5930 fi
5931
5932
5933 old_CC="$CC"
5934 old_CFLAGS="$CFLAGS"
5935
5936 # Set sane defaults for various variables
5937 test -z "$AR" && AR=ar
5938 test -z "$AR_FLAGS" && AR_FLAGS=cru
5939 test -z "$AS" && AS=as
5940 test -z "$CC" && CC=cc
5941 test -z "$LTCC" && LTCC=$CC
5942 test -z "$DLLTOOL" && DLLTOOL=dlltool
5943 test -z "$LD" && LD=ld
5944 test -z "$LN_S" && LN_S="ln -s"
5945 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5946 test -z "$NM" && NM=nm
5947 test -z "$SED" && SED=sed
5948 test -z "$OBJDUMP" && OBJDUMP=objdump
5949 test -z "$RANLIB" && RANLIB=:
5950 test -z "$STRIP" && STRIP=:
5951 test -z "$ac_objext" && ac_objext=o
5952
5953 # Determine commands to create old-style static archives.
5954 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5955 old_postinstall_cmds='chmod 644 $oldlib'
5956 old_postuninstall_cmds=
5957
5958 if test -n "$RANLIB"; then
5959   case $host_os in
5960   openbsd*)
5961     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5962     ;;
5963   *)
5964     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5965     ;;
5966   esac
5967   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5968 fi
5969
5970 # Only perform the check for file, if the check method requires it
5971 case $deplibs_check_method in
5972 file_magic*)
5973   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5974     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5975 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5976 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5977   echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979   case $MAGIC_CMD in
5980 [\\/*] |  ?:[\\/]*)
5981   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5982   ;;
5983 *)
5984   lt_save_MAGIC_CMD="$MAGIC_CMD"
5985   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5986   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5987   for ac_dir in $ac_dummy; do
5988     IFS="$lt_save_ifs"
5989     test -z "$ac_dir" && ac_dir=.
5990     if test -f $ac_dir/${ac_tool_prefix}file; then
5991       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5992       if test -n "$file_magic_test_file"; then
5993         case $deplibs_check_method in
5994         "file_magic "*)
5995           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5996           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5997           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5998             $EGREP "$file_magic_regex" > /dev/null; then
5999             :
6000           else
6001             cat <<EOF 1>&2
6002
6003 *** Warning: the command libtool uses to detect shared libraries,
6004 *** $file_magic_cmd, produces output that libtool cannot recognize.
6005 *** The result is that libtool may fail to recognize shared libraries
6006 *** as such.  This will affect the creation of libtool libraries that
6007 *** depend on shared libraries, but programs linked with such libtool
6008 *** libraries will work regardless of this problem.  Nevertheless, you
6009 *** may want to report the problem to your system manager and/or to
6010 *** bug-libtool@gnu.org
6011
6012 EOF
6013           fi ;;
6014         esac
6015       fi
6016       break
6017     fi
6018   done
6019   IFS="$lt_save_ifs"
6020   MAGIC_CMD="$lt_save_MAGIC_CMD"
6021   ;;
6022 esac
6023 fi
6024
6025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6026 if test -n "$MAGIC_CMD"; then
6027   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6028 echo "${ECHO_T}$MAGIC_CMD" >&6
6029 else
6030   echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6
6032 fi
6033
6034 if test -z "$lt_cv_path_MAGIC_CMD"; then
6035   if test -n "$ac_tool_prefix"; then
6036     echo "$as_me:$LINENO: checking for file" >&5
6037 echo $ECHO_N "checking for file... $ECHO_C" >&6
6038 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   case $MAGIC_CMD in
6042 [\\/*] |  ?:[\\/]*)
6043   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6044   ;;
6045 *)
6046   lt_save_MAGIC_CMD="$MAGIC_CMD"
6047   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6048   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6049   for ac_dir in $ac_dummy; do
6050     IFS="$lt_save_ifs"
6051     test -z "$ac_dir" && ac_dir=.
6052     if test -f $ac_dir/file; then
6053       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6054       if test -n "$file_magic_test_file"; then
6055         case $deplibs_check_method in
6056         "file_magic "*)
6057           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6058           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6059           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6060             $EGREP "$file_magic_regex" > /dev/null; then
6061             :
6062           else
6063             cat <<EOF 1>&2
6064
6065 *** Warning: the command libtool uses to detect shared libraries,
6066 *** $file_magic_cmd, produces output that libtool cannot recognize.
6067 *** The result is that libtool may fail to recognize shared libraries
6068 *** as such.  This will affect the creation of libtool libraries that
6069 *** depend on shared libraries, but programs linked with such libtool
6070 *** libraries will work regardless of this problem.  Nevertheless, you
6071 *** may want to report the problem to your system manager and/or to
6072 *** bug-libtool@gnu.org
6073
6074 EOF
6075           fi ;;
6076         esac
6077       fi
6078       break
6079     fi
6080   done
6081   IFS="$lt_save_ifs"
6082   MAGIC_CMD="$lt_save_MAGIC_CMD"
6083   ;;
6084 esac
6085 fi
6086
6087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6088 if test -n "$MAGIC_CMD"; then
6089   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6090 echo "${ECHO_T}$MAGIC_CMD" >&6
6091 else
6092   echo "$as_me:$LINENO: result: no" >&5
6093 echo "${ECHO_T}no" >&6
6094 fi
6095
6096   else
6097     MAGIC_CMD=:
6098   fi
6099 fi
6100
6101   fi
6102   ;;
6103 esac
6104
6105 enable_dlopen=no
6106 enable_win32_dll=no
6107
6108 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6109 if test "${enable_libtool_lock+set}" = set; then
6110   enableval="$enable_libtool_lock"
6111
6112 fi;
6113 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6114
6115
6116 # Check whether --with-pic or --without-pic was given.
6117 if test "${with_pic+set}" = set; then
6118   withval="$with_pic"
6119   pic_mode="$withval"
6120 else
6121   pic_mode=default
6122 fi;
6123 test -z "$pic_mode" && pic_mode=default
6124
6125 # Use C for the default configuration in the libtool script
6126 tagname=
6127 lt_save_CC="$CC"
6128 ac_ext=c
6129 ac_cpp='$CPP $CPPFLAGS'
6130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6133
6134
6135 # Source file extension for C test sources.
6136 ac_ext=c
6137
6138 # Object file extension for compiled C test sources.
6139 objext=o
6140 objext=$objext
6141
6142 # Code to be used in simple compile tests
6143 lt_simple_compile_test_code="int some_variable = 0;\n"
6144
6145 # Code to be used in simple link tests
6146 lt_simple_link_test_code='int main(){return(0);}\n'
6147
6148
6149 # If no C compiler was specified, use CC.
6150 LTCC=${LTCC-"$CC"}
6151
6152 # Allow CC to be a program name with arguments.
6153 compiler=$CC
6154
6155
6156 #
6157 # Check for any special shared library compilation flags.
6158 #
6159 lt_prog_cc_shlib=
6160 if test "$GCC" = no; then
6161   case $host_os in
6162   sco3.2v5*)
6163     lt_prog_cc_shlib='-belf'
6164     ;;
6165   esac
6166 fi
6167 if test -n "$lt_prog_cc_shlib"; then
6168   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6169 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6170   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6171   else
6172     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6173 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6174     lt_cv_prog_cc_can_build_shared=no
6175   fi
6176 fi
6177
6178
6179 #
6180 # Check to make sure the static flag actually works.
6181 #
6182 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6183 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6184 if test "${lt_prog_compiler_static_works+set}" = set; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187   lt_prog_compiler_static_works=no
6188    save_LDFLAGS="$LDFLAGS"
6189    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6190    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6191    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6192      # The compiler can only warn and ignore the option if not recognized
6193      # So say no if there are warnings
6194      if test -s conftest.err; then
6195        # Append any errors to the config.log.
6196        cat conftest.err 1>&5
6197      else
6198        lt_prog_compiler_static_works=yes
6199      fi
6200    fi
6201    $rm conftest*
6202    LDFLAGS="$save_LDFLAGS"
6203
6204 fi
6205 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6206 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6207
6208 if test x"$lt_prog_compiler_static_works" = xyes; then
6209     :
6210 else
6211     lt_prog_compiler_static=
6212 fi
6213
6214
6215
6216 ## CAVEAT EMPTOR:
6217 ## There is no encapsulation within the following macros, do not change
6218 ## the running order or otherwise move them around unless you know exactly
6219 ## what you are doing...
6220
6221 lt_prog_compiler_no_builtin_flag=
6222
6223 if test "$GCC" = yes; then
6224   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6225
6226   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6227 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6228 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   lt_cv_prog_compiler_rtti_exceptions=no
6232   ac_outfile=conftest.$ac_objext
6233    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6234    lt_compiler_flag="-fno-rtti -fno-exceptions"
6235    # Insert the option either (1) after the last *FLAGS variable, or
6236    # (2) before a word containing "conftest.", or (3) at the end.
6237    # Note that $ac_compile itself does not contain backslashes and begins
6238    # with a dollar sign (not a hyphen), so the echo should work correctly.
6239    # The option is referenced via a variable to avoid confusing sed.
6240    lt_compile=`echo "$ac_compile" | $SED \
6241    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6242    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6243    -e 's:$: $lt_compiler_flag:'`
6244    (eval echo "\"\$as_me:6244: $lt_compile\"" >&5)
6245    (eval "$lt_compile" 2>conftest.err)
6246    ac_status=$?
6247    cat conftest.err >&5
6248    echo "$as_me:6248: \$? = $ac_status" >&5
6249    if (exit $ac_status) && test -s "$ac_outfile"; then
6250      # The compiler can only warn and ignore the option if not recognized
6251      # So say no if there are warnings
6252      if test ! -s conftest.err; then
6253        lt_cv_prog_compiler_rtti_exceptions=yes
6254      fi
6255    fi
6256    $rm conftest*
6257
6258 fi
6259 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6260 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6261
6262 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6263     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6264 else
6265     :
6266 fi
6267
6268 fi
6269
6270 lt_prog_compiler_wl=
6271 lt_prog_compiler_pic=
6272 lt_prog_compiler_static=
6273
6274 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6275 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6276
6277   if test "$GCC" = yes; then
6278     lt_prog_compiler_wl='-Wl,'
6279     lt_prog_compiler_static='-static'
6280
6281     case $host_os in
6282       aix*)
6283       # All AIX code is PIC.
6284       if test "$host_cpu" = ia64; then
6285         # AIX 5 now supports IA64 processor
6286         lt_prog_compiler_static='-Bstatic'
6287       fi
6288       ;;
6289
6290     amigaos*)
6291       # FIXME: we need at least 68020 code to build shared libraries, but
6292       # adding the `-m68020' flag to GCC prevents building anything better,
6293       # like `-m68040'.
6294       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6295       ;;
6296
6297     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6298       # PIC is the default for these OSes.
6299       ;;
6300
6301     mingw* | pw32* | os2*)
6302       # This hack is so that the source file can tell whether it is being
6303       # built for inclusion in a dll (and should export symbols for example).
6304       lt_prog_compiler_pic='-DDLL_EXPORT'
6305       ;;
6306
6307     darwin* | rhapsody*)
6308       # PIC is the default on this platform
6309       # Common symbols not allowed in MH_DYLIB files
6310       lt_prog_compiler_pic='-fno-common'
6311       ;;
6312
6313     msdosdjgpp*)
6314       # Just because we use GCC doesn't mean we suddenly get shared libraries
6315       # on systems that don't support them.
6316       lt_prog_compiler_can_build_shared=no
6317       enable_shared=no
6318       ;;
6319
6320     sysv4*MP*)
6321       if test -d /usr/nec; then
6322         lt_prog_compiler_pic=-Kconform_pic
6323       fi
6324       ;;
6325
6326     hpux*)
6327       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6328       # not for PA HP-UX.
6329       case "$host_cpu" in
6330       hppa*64*|ia64*)
6331         # +Z the default
6332         ;;
6333       *)
6334         lt_prog_compiler_pic='-fPIC'
6335         ;;
6336       esac
6337       ;;
6338
6339     *)
6340       lt_prog_compiler_pic='-fPIC'
6341       ;;
6342     esac
6343   else
6344     # PORTME Check for flag to pass linker flags through the system compiler.
6345     case $host_os in
6346     aix*)
6347       lt_prog_compiler_wl='-Wl,'
6348       if test "$host_cpu" = ia64; then
6349         # AIX 5 now supports IA64 processor
6350         lt_prog_compiler_static='-Bstatic'
6351       else
6352         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6353       fi
6354       ;;
6355
6356     mingw* | pw32* | os2*)
6357       # This hack is so that the source file can tell whether it is being
6358       # built for inclusion in a dll (and should export symbols for example).
6359       lt_prog_compiler_pic='-DDLL_EXPORT'
6360       ;;
6361
6362     hpux9* | hpux10* | hpux11*)
6363       lt_prog_compiler_wl='-Wl,'
6364       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6365       # not for PA HP-UX.
6366       case "$host_cpu" in
6367       hppa*64*|ia64*)
6368         # +Z the default
6369         ;;
6370       *)
6371         lt_prog_compiler_pic='+Z'
6372         ;;
6373       esac
6374       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6375       lt_prog_compiler_static='${wl}-a ${wl}archive'
6376       ;;
6377
6378     irix5* | irix6* | nonstopux*)
6379       lt_prog_compiler_wl='-Wl,'
6380       # PIC (with -KPIC) is the default.
6381       lt_prog_compiler_static='-non_shared'
6382       ;;
6383
6384     newsos6)
6385       lt_prog_compiler_pic='-KPIC'
6386       lt_prog_compiler_static='-Bstatic'
6387       ;;
6388
6389     linux*)
6390       case $CC in
6391       icc|ecc)
6392         lt_prog_compiler_wl='-Wl,'
6393         lt_prog_compiler_pic='-KPIC'
6394         lt_prog_compiler_static='-static'
6395         ;;
6396       ccc)
6397         lt_prog_compiler_wl='-Wl,'
6398         # All Alpha code is PIC.
6399         lt_prog_compiler_static='-non_shared'
6400         ;;
6401       esac
6402       ;;
6403
6404     osf3* | osf4* | osf5*)
6405       lt_prog_compiler_wl='-Wl,'
6406       # All OSF/1 code is PIC.
6407       lt_prog_compiler_static='-non_shared'
6408       ;;
6409
6410     sco3.2v5*)
6411       lt_prog_compiler_pic='-Kpic'
6412       lt_prog_compiler_static='-dn'
6413       ;;
6414
6415     solaris*)
6416       lt_prog_compiler_wl='-Wl,'
6417       lt_prog_compiler_pic='-KPIC'
6418       lt_prog_compiler_static='-Bstatic'
6419       ;;
6420
6421     sunos4*)
6422       lt_prog_compiler_wl='-Qoption ld '
6423       lt_prog_compiler_pic='-PIC'
6424       lt_prog_compiler_static='-Bstatic'
6425       ;;
6426
6427     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6428       lt_prog_compiler_wl='-Wl,'
6429       lt_prog_compiler_pic='-KPIC'
6430       lt_prog_compiler_static='-Bstatic'
6431       ;;
6432
6433     sysv4*MP*)
6434       if test -d /usr/nec ;then
6435         lt_prog_compiler_pic='-Kconform_pic'
6436         lt_prog_compiler_static='-Bstatic'
6437       fi
6438       ;;
6439
6440     uts4*)
6441       lt_prog_compiler_pic='-pic'
6442       lt_prog_compiler_static='-Bstatic'
6443       ;;
6444
6445     *)
6446       lt_prog_compiler_can_build_shared=no
6447       ;;
6448     esac
6449   fi
6450
6451 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6452 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6453
6454 #
6455 # Check to make sure the PIC flag actually works.
6456 #
6457 if test -n "$lt_prog_compiler_pic"; then
6458   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6459 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6460 if test "${lt_prog_compiler_pic_works+set}" = set; then
6461   echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463   lt_prog_compiler_pic_works=no
6464   ac_outfile=conftest.$ac_objext
6465    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6466    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6467    # Insert the option either (1) after the last *FLAGS variable, or
6468    # (2) before a word containing "conftest.", or (3) at the end.
6469    # Note that $ac_compile itself does not contain backslashes and begins
6470    # with a dollar sign (not a hyphen), so the echo should work correctly.
6471    # The option is referenced via a variable to avoid confusing sed.
6472    lt_compile=`echo "$ac_compile" | $SED \
6473    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6475    -e 's:$: $lt_compiler_flag:'`
6476    (eval echo "\"\$as_me:6476: $lt_compile\"" >&5)
6477    (eval "$lt_compile" 2>conftest.err)
6478    ac_status=$?
6479    cat conftest.err >&5
6480    echo "$as_me:6480: \$? = $ac_status" >&5
6481    if (exit $ac_status) && test -s "$ac_outfile"; then
6482      # The compiler can only warn and ignore the option if not recognized
6483      # So say no if there are warnings
6484      if test ! -s conftest.err; then
6485        lt_prog_compiler_pic_works=yes
6486      fi
6487    fi
6488    $rm conftest*
6489
6490 fi
6491 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6492 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6493
6494 if test x"$lt_prog_compiler_pic_works" = xyes; then
6495     case $lt_prog_compiler_pic in
6496      "" | " "*) ;;
6497      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6498      esac
6499 else
6500     lt_prog_compiler_pic=
6501      lt_prog_compiler_can_build_shared=no
6502 fi
6503
6504 fi
6505 case "$host_os" in
6506   # For platforms which do not support PIC, -DPIC is meaningless:
6507   *djgpp*)
6508     lt_prog_compiler_pic=
6509     ;;
6510   *)
6511     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6512     ;;
6513 esac
6514
6515 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6516 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6517 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6518   echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520   lt_cv_prog_compiler_c_o=no
6521    $rm -r conftest 2>/dev/null
6522    mkdir conftest
6523    cd conftest
6524    mkdir out
6525    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6526
6527    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6528    # that will create temporary files in the current directory regardless of
6529    # the output directory.  Thus, making CWD read-only will cause this test
6530    # to fail, enabling locking or at least warning the user not to do parallel
6531    # builds.
6532    chmod -w .
6533
6534    lt_compiler_flag="-o out/conftest2.$ac_objext"
6535    # Insert the option either (1) after the last *FLAGS variable, or
6536    # (2) before a word containing "conftest.", or (3) at the end.
6537    # Note that $ac_compile itself does not contain backslashes and begins
6538    # with a dollar sign (not a hyphen), so the echo should work correctly.
6539    lt_compile=`echo "$ac_compile" | $SED \
6540    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6541    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6542    -e 's:$: $lt_compiler_flag:'`
6543    (eval echo "\"\$as_me:6543: $lt_compile\"" >&5)
6544    (eval "$lt_compile" 2>out/conftest.err)
6545    ac_status=$?
6546    cat out/conftest.err >&5
6547    echo "$as_me:6547: \$? = $ac_status" >&5
6548    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6549    then
6550      # The compiler can only warn and ignore the option if not recognized
6551      # So say no if there are warnings
6552      if test ! -s out/conftest.err; then
6553        lt_cv_prog_compiler_c_o=yes
6554      fi
6555    fi
6556    chmod u+w .
6557    $rm conftest* out/*
6558    rmdir out
6559    cd ..
6560    rmdir conftest
6561    $rm conftest*
6562
6563 fi
6564 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6565 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6566
6567
6568 hard_links="nottested"
6569 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6570   # do not overwrite the value of need_locks provided by the user
6571   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6572 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6573   hard_links=yes
6574   $rm conftest*
6575   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6576   touch conftest.a
6577   ln conftest.a conftest.b 2>&5 || hard_links=no
6578   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6579   echo "$as_me:$LINENO: result: $hard_links" >&5
6580 echo "${ECHO_T}$hard_links" >&6
6581   if test "$hard_links" = no; then
6582     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6583 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6584     need_locks=warn
6585   fi
6586 else
6587   need_locks=no
6588 fi
6589
6590 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6591 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6592
6593   runpath_var=
6594   allow_undefined_flag=
6595   enable_shared_with_static_runtimes=no
6596   archive_cmds=
6597   archive_expsym_cmds=
6598   old_archive_From_new_cmds=
6599   old_archive_from_expsyms_cmds=
6600   export_dynamic_flag_spec=
6601   whole_archive_flag_spec=
6602   thread_safe_flag_spec=
6603   hardcode_libdir_flag_spec=
6604   hardcode_libdir_flag_spec_ld=
6605   hardcode_libdir_separator=
6606   hardcode_direct=no
6607   hardcode_minus_L=no
6608   hardcode_shlibpath_var=unsupported
6609   link_all_deplibs=unknown
6610   hardcode_automatic=no
6611   module_cmds=
6612   module_expsym_cmds=
6613   always_export_symbols=no
6614   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6615   # include_expsyms should be a list of space-separated symbols to be *always*
6616   # included in the symbol list
6617   include_expsyms=
6618   # exclude_expsyms can be an extended regexp of symbols to exclude
6619   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6620   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6621   # as well as any symbol that contains `d'.
6622   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6623   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6624   # platforms (ab)use it in PIC code, but their linkers get confused if
6625   # the symbol is explicitly referenced.  Since portable code cannot
6626   # rely on this symbol name, it's probably fine to never include it in
6627   # preloaded symbol tables.
6628   extract_expsyms_cmds=
6629
6630   case $host_os in
6631   cygwin* | mingw* | pw32*)
6632     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6633     # When not using gcc, we currently assume that we are using
6634     # Microsoft Visual C++.
6635     if test "$GCC" != yes; then
6636       with_gnu_ld=no
6637     fi
6638     ;;
6639   openbsd*)
6640     with_gnu_ld=no
6641     ;;
6642   esac
6643
6644   ld_shlibs=yes
6645   if test "$with_gnu_ld" = yes; then
6646     # If archive_cmds runs LD, not CC, wlarc should be empty
6647     wlarc='${wl}'
6648
6649     # See if GNU ld supports shared libraries.
6650     case $host_os in
6651     aix3* | aix4* | aix5*)
6652       # On AIX/PPC, the GNU linker is very broken
6653       if test "$host_cpu" != ia64; then
6654         ld_shlibs=no
6655         cat <<EOF 1>&2
6656
6657 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6658 *** to be unable to reliably create shared libraries on AIX.
6659 *** Therefore, libtool is disabling shared libraries support.  If you
6660 *** really care for shared libraries, you may want to modify your PATH
6661 *** so that a non-GNU linker is found, and then restart.
6662
6663 EOF
6664       fi
6665       ;;
6666
6667     amigaos*)
6668       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)'
6669       hardcode_libdir_flag_spec='-L$libdir'
6670       hardcode_minus_L=yes
6671
6672       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6673       # that the semantics of dynamic libraries on AmigaOS, at least up
6674       # to version 4, is to share data among multiple programs linked
6675       # with the same dynamic library.  Since this doesn't match the
6676       # behavior of shared libraries on other platforms, we can't use
6677       # them.
6678       ld_shlibs=no
6679       ;;
6680
6681     beos*)
6682       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6683         allow_undefined_flag=unsupported
6684         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6685         # support --undefined.  This deserves some investigation.  FIXME
6686         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6687       else
6688         ld_shlibs=no
6689       fi
6690       ;;
6691
6692     cygwin* | mingw* | pw32*)
6693       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6694       # as there is no search path for DLLs.
6695       hardcode_libdir_flag_spec='-L$libdir'
6696       allow_undefined_flag=unsupported
6697       always_export_symbols=no
6698       enable_shared_with_static_runtimes=yes
6699       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6700
6701       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6702         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6703         # If the export-symbols file already is a .def file (1st line
6704         # is EXPORTS), use it as is; otherwise, prepend...
6705         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6706           cp $export_symbols $output_objdir/$soname.def;
6707         else
6708           echo EXPORTS > $output_objdir/$soname.def;
6709           cat $export_symbols >> $output_objdir/$soname.def;
6710         fi~
6711         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6712       else
6713         ld_shlibs=no
6714       fi
6715       ;;
6716
6717     netbsd*)
6718       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6719         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6720         wlarc=
6721       else
6722         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6723         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6724       fi
6725       ;;
6726
6727     solaris* | sysv5*)
6728       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6729         ld_shlibs=no
6730         cat <<EOF 1>&2
6731
6732 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6733 *** create shared libraries on Solaris systems.  Therefore, libtool
6734 *** is disabling shared libraries support.  We urge you to upgrade GNU
6735 *** binutils to release 2.9.1 or newer.  Another option is to modify
6736 *** your PATH or compiler configuration so that the native linker is
6737 *** used, and then restart.
6738
6739 EOF
6740       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6741         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6742         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6743       else
6744         ld_shlibs=no
6745       fi
6746       ;;
6747
6748     sunos4*)
6749       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6750       wlarc=
6751       hardcode_direct=yes
6752       hardcode_shlibpath_var=no
6753       ;;
6754
6755     *)
6756       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6757         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6758         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6759       else
6760         ld_shlibs=no
6761       fi
6762       ;;
6763     esac
6764
6765     if test "$ld_shlibs" = yes; then
6766       runpath_var=LD_RUN_PATH
6767       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6768       export_dynamic_flag_spec='${wl}--export-dynamic'
6769       # ancient GNU ld didn't support --whole-archive et. al.
6770       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6771         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6772       else
6773         whole_archive_flag_spec=
6774       fi
6775     fi
6776   else
6777     # PORTME fill in a description of your system's linker (not GNU ld)
6778     case $host_os in
6779     aix3*)
6780       allow_undefined_flag=unsupported
6781       always_export_symbols=yes
6782       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'
6783       # Note: this linker hardcodes the directories in LIBPATH if there
6784       # are no directories specified by -L.
6785       hardcode_minus_L=yes
6786       if test "$GCC" = yes && test -z "$link_static_flag"; then
6787         # Neither direct hardcoding nor static linking is supported with a
6788         # broken collect2.
6789         hardcode_direct=unsupported
6790       fi
6791       ;;
6792
6793     aix4* | aix5*)
6794       if test "$host_cpu" = ia64; then
6795         # On IA64, the linker does run time linking by default, so we don't
6796         # have to do anything special.
6797         aix_use_runtimelinking=no
6798         exp_sym_flag='-Bexport'
6799         no_entry_flag=""
6800       else
6801         # If we're using GNU nm, then we don't want the "-C" option.
6802         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6803         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6804           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'
6805         else
6806           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'
6807         fi
6808         aix_use_runtimelinking=no
6809
6810         # Test if we are trying to use run time linking or normal
6811         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6812         # need to do runtime linking.
6813         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6814           for ld_flag in $LDFLAGS; do
6815           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6816             aix_use_runtimelinking=yes
6817             break
6818           fi
6819           done
6820         esac
6821
6822         exp_sym_flag='-bexport'
6823         no_entry_flag='-bnoentry'
6824       fi
6825
6826       # When large executables or shared objects are built, AIX ld can
6827       # have problems creating the table of contents.  If linking a library
6828       # or program results in "error TOC overflow" add -mminimal-toc to
6829       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6830       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6831
6832       archive_cmds=''
6833       hardcode_direct=yes
6834       hardcode_libdir_separator=':'
6835       link_all_deplibs=yes
6836
6837       if test "$GCC" = yes; then
6838         case $host_os in aix4.012|aix4.012.*)
6839         # We only want to do this on AIX 4.2 and lower, the check
6840         # below for broken collect2 doesn't work under 4.3+
6841           collect2name=`${CC} -print-prog-name=collect2`
6842           if test -f "$collect2name" && \
6843            strings "$collect2name" | grep resolve_lib_name >/dev/null
6844           then
6845           # We have reworked collect2
6846           hardcode_direct=yes
6847           else
6848           # We have old collect2
6849           hardcode_direct=unsupported
6850           # It fails to find uninstalled libraries when the uninstalled
6851           # path is not listed in the libpath.  Setting hardcode_minus_L
6852           # to unsupported forces relinking
6853           hardcode_minus_L=yes
6854           hardcode_libdir_flag_spec='-L$libdir'
6855           hardcode_libdir_separator=
6856           fi
6857         esac
6858         shared_flag='-shared'
6859       else
6860         # not using gcc
6861         if test "$host_cpu" = ia64; then
6862         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6863         # chokes on -Wl,-G. The following line is correct:
6864           shared_flag='-G'
6865         else
6866         if test "$aix_use_runtimelinking" = yes; then
6867             shared_flag='${wl}-G'
6868           else
6869             shared_flag='${wl}-bM:SRE'
6870         fi
6871         fi
6872       fi
6873
6874       # It seems that -bexpall does not export symbols beginning with
6875       # underscore (_), so it is better to generate a list of symbols to export.
6876       always_export_symbols=yes
6877       if test "$aix_use_runtimelinking" = yes; then
6878         # Warning - without using the other runtime loading flags (-brtl),
6879         # -berok will link without error, but may produce a broken library.
6880         allow_undefined_flag='-berok'
6881        # Determine the default libpath from the value encoded in an empty executable.
6882        cat >conftest.$ac_ext <<_ACEOF
6883 #line $LINENO "configure"
6884 /* confdefs.h.  */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h.  */
6889
6890 int
6891 main ()
6892 {
6893
6894   ;
6895   return 0;
6896 }
6897 _ACEOF
6898 rm -f conftest.$ac_objext conftest$ac_exeext
6899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6900   (eval $ac_link) 2>&5
6901   ac_status=$?
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); } &&
6904          { ac_try='test -s conftest$ac_exeext'
6905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906   (eval $ac_try) 2>&5
6907   ac_status=$?
6908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909   (exit $ac_status); }; }; then
6910
6911 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6912 }'`
6913 # Check for a 64-bit object if we didn't find anything.
6914 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; }
6915 }'`; fi
6916 else
6917   echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6919
6920 fi
6921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6922 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6923
6924        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6925         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"
6926        else
6927         if test "$host_cpu" = ia64; then
6928           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6929           allow_undefined_flag="-z nodefs"
6930           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"
6931         else
6932          # Determine the default libpath from the value encoded in an empty executable.
6933          cat >conftest.$ac_ext <<_ACEOF
6934 #line $LINENO "configure"
6935 /* confdefs.h.  */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h.  */
6940
6941 int
6942 main ()
6943 {
6944
6945   ;
6946   return 0;
6947 }
6948 _ACEOF
6949 rm -f conftest.$ac_objext conftest$ac_exeext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6951   (eval $ac_link) 2>&5
6952   ac_status=$?
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); } &&
6955          { ac_try='test -s conftest$ac_exeext'
6956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957   (eval $ac_try) 2>&5
6958   ac_status=$?
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); }; }; then
6961
6962 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6963 }'`
6964 # Check for a 64-bit object if we didn't find anything.
6965 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; }
6966 }'`; fi
6967 else
6968   echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971 fi
6972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6974
6975          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6976           # Warning - without using the other run time loading flags,
6977           # -berok will link without error, but may produce a broken library.
6978           no_undefined_flag=' ${wl}-bernotok'
6979           allow_undefined_flag=' ${wl}-berok'
6980           # -bexpall does not export symbols beginning with underscore (_)
6981           always_export_symbols=yes
6982           # Exported symbols can be pulled into shared objects from archives
6983           whole_archive_flag_spec=' '
6984           archive_cmds_need_lc=yes
6985           # This is similar to how AIX traditionally builds it's shared libraries.
6986           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'
6987         fi
6988       fi
6989       ;;
6990
6991     amigaos*)
6992       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)'
6993       hardcode_libdir_flag_spec='-L$libdir'
6994       hardcode_minus_L=yes
6995       # see comment about different semantics on the GNU ld section
6996       ld_shlibs=no
6997       ;;
6998
6999     bsdi4*)
7000       export_dynamic_flag_spec=-rdynamic
7001       ;;
7002
7003     cygwin* | mingw* | pw32*)
7004       # When not using gcc, we currently assume that we are using
7005       # Microsoft Visual C++.
7006       # hardcode_libdir_flag_spec is actually meaningless, as there is
7007       # no search path for DLLs.
7008       hardcode_libdir_flag_spec=' '
7009       allow_undefined_flag=unsupported
7010       # Tell ltmain to make .lib files, not .a files.
7011       libext=lib
7012       # Tell ltmain to make .dll files, not .so files.
7013       shrext=".dll"
7014       # FIXME: Setting linknames here is a bad hack.
7015       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7016       # The linker will automatically build a .lib file if we build a DLL.
7017       old_archive_From_new_cmds='true'
7018       # FIXME: Should let the user specify the lib program.
7019       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7020       fix_srcfile_path='`cygpath -w "$srcfile"`'
7021       enable_shared_with_static_runtimes=yes
7022       ;;
7023
7024     darwin* | rhapsody*)
7025     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7026       archive_cmds_need_lc=no
7027       case "$host_os" in
7028       rhapsody* | darwin1.[012])
7029         allow_undefined_flag='-undefined suppress'
7030         ;;
7031       *) # Darwin 1.3 on
7032         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7033         ;;
7034       esac
7035       # FIXME: Relying on posixy $() will cause problems for
7036       #        cross-compilation, but unfortunately the echo tests do not
7037       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7038       #        `"' quotes if we put them in here... so don't!
7039         lt_int_apple_cc_single_mod=no
7040         output_verbose_link_cmd='echo'
7041         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7042           lt_int_apple_cc_single_mod=yes
7043         fi
7044         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7045           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7046         else
7047         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'
7048       fi
7049       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7050       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7051         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7052           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}'
7053         else
7054           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}'
7055         fi
7056           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}'
7057       hardcode_direct=no
7058       hardcode_automatic=yes
7059       hardcode_shlibpath_var=unsupported
7060       whole_archive_flag_spec='-all_load $convenience'
7061       link_all_deplibs=yes
7062     fi
7063       ;;
7064
7065     dgux*)
7066       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7067       hardcode_libdir_flag_spec='-L$libdir'
7068       hardcode_shlibpath_var=no
7069       ;;
7070
7071     freebsd1*)
7072       ld_shlibs=no
7073       ;;
7074
7075     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7076     # support.  Future versions do this automatically, but an explicit c++rt0.o
7077     # does not break anything, and helps significantly (at the cost of a little
7078     # extra space).
7079     freebsd2.2*)
7080       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7081       hardcode_libdir_flag_spec='-R$libdir'
7082       hardcode_direct=yes
7083       hardcode_shlibpath_var=no
7084       ;;
7085
7086     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7087     freebsd2*)
7088       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7089       hardcode_direct=yes
7090       hardcode_minus_L=yes
7091       hardcode_shlibpath_var=no
7092       ;;
7093
7094     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7095     freebsd*)
7096       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7097       hardcode_libdir_flag_spec='-R$libdir'
7098       hardcode_direct=yes
7099       hardcode_shlibpath_var=no
7100       ;;
7101
7102     hpux9*)
7103       if test "$GCC" = yes; then
7104         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'
7105       else
7106         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'
7107       fi
7108       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7109       hardcode_libdir_separator=:
7110       hardcode_direct=yes
7111
7112       # hardcode_minus_L: Not really in the search PATH,
7113       # but as the default location of the library.
7114       hardcode_minus_L=yes
7115       export_dynamic_flag_spec='${wl}-E'
7116       ;;
7117
7118     hpux10* | hpux11*)
7119       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7120         case "$host_cpu" in
7121         hppa*64*|ia64*)
7122           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7123           ;;
7124         *)
7125           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7126           ;;
7127         esac
7128       else
7129         case "$host_cpu" in
7130         hppa*64*|ia64*)
7131           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7132           ;;
7133         *)
7134           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7135           ;;
7136         esac
7137       fi
7138       if test "$with_gnu_ld" = no; then
7139         case "$host_cpu" in
7140         hppa*64*)
7141           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7142           hardcode_libdir_flag_spec_ld='+b $libdir'
7143           hardcode_libdir_separator=:
7144           hardcode_direct=no
7145           hardcode_shlibpath_var=no
7146           ;;
7147         ia64*)
7148           hardcode_libdir_flag_spec='-L$libdir'
7149           hardcode_direct=no
7150           hardcode_shlibpath_var=no
7151
7152           # hardcode_minus_L: Not really in the search PATH,
7153           # but as the default location of the library.
7154           hardcode_minus_L=yes
7155           ;;
7156         *)
7157           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7158           hardcode_libdir_separator=:
7159           hardcode_direct=yes
7160           export_dynamic_flag_spec='${wl}-E'
7161
7162           # hardcode_minus_L: Not really in the search PATH,
7163           # but as the default location of the library.
7164           hardcode_minus_L=yes
7165           ;;
7166         esac
7167       fi
7168       ;;
7169
7170     irix5* | irix6* | nonstopux*)
7171       if test "$GCC" = yes; then
7172         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'
7173       else
7174         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'
7175         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7176       fi
7177       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7178       hardcode_libdir_separator=:
7179       link_all_deplibs=yes
7180       ;;
7181
7182     netbsd*)
7183       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7184         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7185       else
7186         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7187       fi
7188       hardcode_libdir_flag_spec='-R$libdir'
7189       hardcode_direct=yes
7190       hardcode_shlibpath_var=no
7191       ;;
7192
7193     newsos6)
7194       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7195       hardcode_direct=yes
7196       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7197       hardcode_libdir_separator=:
7198       hardcode_shlibpath_var=no
7199       ;;
7200
7201     openbsd*)
7202       hardcode_direct=yes
7203       hardcode_shlibpath_var=no
7204       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7205         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7206         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7207         export_dynamic_flag_spec='${wl}-E'
7208       else
7209        case $host_os in
7210          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7211            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7212            hardcode_libdir_flag_spec='-R$libdir'
7213            ;;
7214          *)
7215            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7216            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7217            ;;
7218        esac
7219       fi
7220       ;;
7221
7222     os2*)
7223       hardcode_libdir_flag_spec='-L$libdir'
7224       hardcode_minus_L=yes
7225       allow_undefined_flag=unsupported
7226       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'
7227       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7228       ;;
7229
7230     osf3*)
7231       if test "$GCC" = yes; then
7232         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7233         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'
7234       else
7235         allow_undefined_flag=' -expect_unresolved \*'
7236         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'
7237       fi
7238       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7239       hardcode_libdir_separator=:
7240       ;;
7241
7242     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7243       if test "$GCC" = yes; then
7244         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7245         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'
7246         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7247       else
7248         allow_undefined_flag=' -expect_unresolved \*'
7249         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'
7250         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7251         $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'
7252
7253         # Both c and cxx compiler support -rpath directly
7254         hardcode_libdir_flag_spec='-rpath $libdir'
7255       fi
7256       hardcode_libdir_separator=:
7257       ;;
7258
7259     sco3.2v5*)
7260       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7261       hardcode_shlibpath_var=no
7262       export_dynamic_flag_spec='${wl}-Bexport'
7263       runpath_var=LD_RUN_PATH
7264       hardcode_runpath_var=yes
7265       ;;
7266
7267     solaris*)
7268       no_undefined_flag=' -z text'
7269       if test "$GCC" = yes; then
7270         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7271         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7272           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7273       else
7274         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7275         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7276         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7277       fi
7278       hardcode_libdir_flag_spec='-R$libdir'
7279       hardcode_shlibpath_var=no
7280       case $host_os in
7281       solaris2.[0-5] | solaris2.[0-5].*) ;;
7282       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7283         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7284       esac
7285       link_all_deplibs=yes
7286       ;;
7287
7288     sunos4*)
7289       if test "x$host_vendor" = xsequent; then
7290         # Use $CC to link under sequent, because it throws in some extra .o
7291         # files that make .init and .fini sections work.
7292         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7293       else
7294         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7295       fi
7296       hardcode_libdir_flag_spec='-L$libdir'
7297       hardcode_direct=yes
7298       hardcode_minus_L=yes
7299       hardcode_shlibpath_var=no
7300       ;;
7301
7302     sysv4)
7303       case $host_vendor in
7304         sni)
7305           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7306           hardcode_direct=yes # is this really true???
7307         ;;
7308         siemens)
7309           ## LD is ld it makes a PLAMLIB
7310           ## CC just makes a GrossModule.
7311           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7312           reload_cmds='$CC -r -o $output$reload_objs'
7313           hardcode_direct=no
7314         ;;
7315         motorola)
7316           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7317           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7318         ;;
7319       esac
7320       runpath_var='LD_RUN_PATH'
7321       hardcode_shlibpath_var=no
7322       ;;
7323
7324     sysv4.3*)
7325       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7326       hardcode_shlibpath_var=no
7327       export_dynamic_flag_spec='-Bexport'
7328       ;;
7329
7330     sysv4*MP*)
7331       if test -d /usr/nec; then
7332         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7333         hardcode_shlibpath_var=no
7334         runpath_var=LD_RUN_PATH
7335         hardcode_runpath_var=yes
7336         ld_shlibs=yes
7337       fi
7338       ;;
7339
7340     sysv4.2uw2*)
7341       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7342       hardcode_direct=yes
7343       hardcode_minus_L=no
7344       hardcode_shlibpath_var=no
7345       hardcode_runpath_var=yes
7346       runpath_var=LD_RUN_PATH
7347       ;;
7348
7349    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7350       no_undefined_flag='${wl}-z ${wl}text'
7351       if test "$GCC" = yes; then
7352         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7353       else
7354         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7355       fi
7356       runpath_var='LD_RUN_PATH'
7357       hardcode_shlibpath_var=no
7358       ;;
7359
7360     sysv5*)
7361       no_undefined_flag=' -z text'
7362       # $CC -shared without GNU ld will not create a library from C++
7363       # object files and a static libstdc++, better avoid it by now
7364       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7365       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7366                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7367       hardcode_libdir_flag_spec=
7368       hardcode_shlibpath_var=no
7369       runpath_var='LD_RUN_PATH'
7370       ;;
7371
7372     uts4*)
7373       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7374       hardcode_libdir_flag_spec='-L$libdir'
7375       hardcode_shlibpath_var=no
7376       ;;
7377
7378     *)
7379       ld_shlibs=no
7380       ;;
7381     esac
7382   fi
7383
7384 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7385 echo "${ECHO_T}$ld_shlibs" >&6
7386 test "$ld_shlibs" = no && can_build_shared=no
7387
7388 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7389 if test "$GCC" = yes; then
7390   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7391 fi
7392
7393 #
7394 # Do we need to explicitly link libc?
7395 #
7396 case "x$archive_cmds_need_lc" in
7397 x|xyes)
7398   # Assume -lc should be added
7399   archive_cmds_need_lc=yes
7400
7401   if test "$enable_shared" = yes && test "$GCC" = yes; then
7402     case $archive_cmds in
7403     *'~'*)
7404       # FIXME: we may have to deal with multi-command sequences.
7405       ;;
7406     '$CC '*)
7407       # Test whether the compiler implicitly links with -lc since on some
7408       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7409       # to ld, don't add -lc before -lgcc.
7410       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7411 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7412       $rm conftest*
7413       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7414
7415       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416   (eval $ac_compile) 2>&5
7417   ac_status=$?
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } 2>conftest.err; then
7420         soname=conftest
7421         lib=conftest
7422         libobjs=conftest.$ac_objext
7423         deplibs=
7424         wl=$lt_prog_compiler_wl
7425         compiler_flags=-v
7426         linker_flags=-v
7427         verstring=
7428         output_objdir=.
7429         libname=conftest
7430         lt_save_allow_undefined_flag=$allow_undefined_flag
7431         allow_undefined_flag=
7432         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7433   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7434   ac_status=$?
7435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436   (exit $ac_status); }
7437         then
7438           archive_cmds_need_lc=no
7439         else
7440           archive_cmds_need_lc=yes
7441         fi
7442         allow_undefined_flag=$lt_save_allow_undefined_flag
7443       else
7444         cat conftest.err 1>&5
7445       fi
7446       $rm conftest*
7447       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7448 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7449       ;;
7450     esac
7451   fi
7452   ;;
7453 esac
7454
7455 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7456 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7457 hardcode_action=
7458 if test -n "$hardcode_libdir_flag_spec" || \
7459    test -n "$runpath_var " || \
7460    test "X$hardcode_automatic"="Xyes" ; then
7461
7462   # We can hardcode non-existant directories.
7463   if test "$hardcode_direct" != no &&
7464      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7465      # have to relink, otherwise we might link with an installed library
7466      # when we should be linking with a yet-to-be-installed one
7467      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7468      test "$hardcode_minus_L" != no; then
7469     # Linking always hardcodes the temporary library directory.
7470     hardcode_action=relink
7471   else
7472     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7473     hardcode_action=immediate
7474   fi
7475 else
7476   # We cannot hardcode anything, or else we can only hardcode existing
7477   # directories.
7478   hardcode_action=unsupported
7479 fi
7480 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7481 echo "${ECHO_T}$hardcode_action" >&6
7482
7483 if test "$hardcode_action" = relink; then
7484   # Fast installation is not supported
7485   enable_fast_install=no
7486 elif test "$shlibpath_overrides_runpath" = yes ||
7487      test "$enable_shared" = no; then
7488   # Fast installation is not necessary
7489   enable_fast_install=needless
7490 fi
7491
7492 striplib=
7493 old_striplib=
7494 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7495 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7496 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7497   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7498   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7499   echo "$as_me:$LINENO: result: yes" >&5
7500 echo "${ECHO_T}yes" >&6
7501 else
7502 # FIXME - insert some real tests, host_os isn't really good enough
7503   case $host_os in
7504    darwin*)
7505        if test -n "$STRIP" ; then
7506          striplib="$STRIP -x"
7507          echo "$as_me:$LINENO: result: yes" >&5
7508 echo "${ECHO_T}yes" >&6
7509        else
7510   echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6
7512 fi
7513        ;;
7514    *)
7515   echo "$as_me:$LINENO: result: no" >&5
7516 echo "${ECHO_T}no" >&6
7517     ;;
7518   esac
7519 fi
7520
7521 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7522 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7523 library_names_spec=
7524 libname_spec='lib$name'
7525 soname_spec=
7526 shrext=".so"
7527 postinstall_cmds=
7528 postuninstall_cmds=
7529 finish_cmds=
7530 finish_eval=
7531 shlibpath_var=
7532 shlibpath_overrides_runpath=unknown
7533 version_type=none
7534 dynamic_linker="$host_os ld.so"
7535 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7536 if test "$GCC" = yes; then
7537   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7538   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7539     # if the path contains ";" then we assume it to be the separator
7540     # otherwise default to the standard path separator (i.e. ":") - it is
7541     # assumed that no part of a normal pathname contains ";" but that should
7542     # okay in the real world where ";" in dirpaths is itself problematic.
7543     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7544   else
7545     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7546   fi
7547 else
7548   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7549 fi
7550 need_lib_prefix=unknown
7551 hardcode_into_libs=no
7552
7553 # when you set need_version to no, make sure it does not cause -set_version
7554 # flags to be left without arguments
7555 need_version=unknown
7556
7557 case $host_os in
7558 aix3*)
7559   version_type=linux
7560   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7561   shlibpath_var=LIBPATH
7562
7563   # AIX 3 has no versioning support, so we append a major version to the name.
7564   soname_spec='${libname}${release}${shared_ext}$major'
7565   ;;
7566
7567 aix4* | aix5*)
7568   version_type=linux
7569   need_lib_prefix=no
7570   need_version=no
7571   hardcode_into_libs=yes
7572   if test "$host_cpu" = ia64; then
7573     # AIX 5 supports IA64
7574     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7575     shlibpath_var=LD_LIBRARY_PATH
7576   else
7577     # With GCC up to 2.95.x, collect2 would create an import file
7578     # for dependence libraries.  The import file would start with
7579     # the line `#! .'.  This would cause the generated library to
7580     # depend on `.', always an invalid library.  This was fixed in
7581     # development snapshots of GCC prior to 3.0.
7582     case $host_os in
7583       aix4 | aix4.[01] | aix4.[01].*)
7584       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7585            echo ' yes '
7586            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7587         :
7588       else
7589         can_build_shared=no
7590       fi
7591       ;;
7592     esac
7593     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7594     # soname into executable. Probably we can add versioning support to
7595     # collect2, so additional links can be useful in future.
7596     if test "$aix_use_runtimelinking" = yes; then
7597       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7598       # instead of lib<name>.a to let people know that these are not
7599       # typical AIX shared libraries.
7600       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7601     else
7602       # We preserve .a as extension for shared libraries through AIX4.2
7603       # and later when we are not doing run time linking.
7604       library_names_spec='${libname}${release}.a $libname.a'
7605       soname_spec='${libname}${release}${shared_ext}$major'
7606     fi
7607     shlibpath_var=LIBPATH
7608   fi
7609   ;;
7610
7611 amigaos*)
7612   library_names_spec='$libname.ixlibrary $libname.a'
7613   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7614   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'
7615   ;;
7616
7617 beos*)
7618   library_names_spec='${libname}${shared_ext}'
7619   dynamic_linker="$host_os ld.so"
7620   shlibpath_var=LIBRARY_PATH
7621   ;;
7622
7623 bsdi4*)
7624   version_type=linux
7625   need_version=no
7626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7627   soname_spec='${libname}${release}${shared_ext}$major'
7628   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7629   shlibpath_var=LD_LIBRARY_PATH
7630   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7631   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7632   # the default ld.so.conf also contains /usr/contrib/lib and
7633   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7634   # libtool to hard-code these into programs
7635   ;;
7636
7637 cygwin* | mingw* | pw32*)
7638   version_type=windows
7639   shrext=".dll"
7640   need_version=no
7641   need_lib_prefix=no
7642
7643   case $GCC,$host_os in
7644   yes,cygwin* | yes,mingw* | yes,pw32*)
7645     library_names_spec='$libname.dll.a'
7646     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7647     postinstall_cmds='base_file=`basename \${file}`~
7648       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7649       dldir=$destdir/`dirname \$dlpath`~
7650       test -d \$dldir || mkdir -p \$dldir~
7651       $install_prog $dir/$dlname \$dldir/$dlname'
7652     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7653       dlpath=$dir/\$dldll~
7654        $rm \$dlpath'
7655     shlibpath_overrides_runpath=yes
7656
7657     case $host_os in
7658     cygwin*)
7659       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7660       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7661       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7662       ;;
7663     mingw*)
7664       # MinGW DLLs use traditional 'lib' prefix
7665       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7666       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7667       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7668         # It is most probably a Windows format PATH printed by
7669         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7670         # path with ; separators, and with drive letters. We can handle the
7671         # drive letters (cygwin fileutils understands them), so leave them,
7672         # especially as we might pass files found there to a mingw objdump,
7673         # which wouldn't understand a cygwinified path. Ahh.
7674         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7675       else
7676         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7677       fi
7678       ;;
7679     pw32*)
7680       # pw32 DLLs use 'pw' prefix rather than 'lib'
7681       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7682       ;;
7683     esac
7684     ;;
7685
7686   *)
7687     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7688     ;;
7689   esac
7690   dynamic_linker='Win32 ld.exe'
7691   # FIXME: first we should search . and the directory the executable is in
7692   shlibpath_var=PATH
7693   ;;
7694
7695 darwin* | rhapsody*)
7696   dynamic_linker="$host_os dyld"
7697   version_type=darwin
7698   need_lib_prefix=no
7699   need_version=no
7700   # FIXME: Relying on posixy $() will cause problems for
7701   #        cross-compilation, but unfortunately the echo tests do not
7702   #        yet detect zsh echo's removal of \ escapes.
7703   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7704   soname_spec='${libname}${release}${major}$shared_ext'
7705   shlibpath_overrides_runpath=yes
7706   shlibpath_var=DYLD_LIBRARY_PATH
7707   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7708   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7709   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7710   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"`
7711   fi
7712   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7713   ;;
7714
7715 dgux*)
7716   version_type=linux
7717   need_lib_prefix=no
7718   need_version=no
7719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7720   soname_spec='${libname}${release}${shared_ext}$major'
7721   shlibpath_var=LD_LIBRARY_PATH
7722   ;;
7723
7724 freebsd1*)
7725   dynamic_linker=no
7726   ;;
7727
7728 freebsd*)
7729   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7730   version_type=freebsd-$objformat
7731   case $version_type in
7732     freebsd-elf*)
7733       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7734       need_version=no
7735       need_lib_prefix=no
7736       ;;
7737     freebsd-*)
7738       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7739       need_version=yes
7740       ;;
7741   esac
7742   shlibpath_var=LD_LIBRARY_PATH
7743   case $host_os in
7744   freebsd2*)
7745     shlibpath_overrides_runpath=yes
7746     ;;
7747   freebsd3.01* | freebsdelf3.01*)
7748     shlibpath_overrides_runpath=yes
7749     hardcode_into_libs=yes
7750     ;;
7751   *) # from 3.2 on
7752     shlibpath_overrides_runpath=no
7753     hardcode_into_libs=yes
7754     ;;
7755   esac
7756   ;;
7757
7758 gnu*)
7759   version_type=linux
7760   need_lib_prefix=no
7761   need_version=no
7762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7763   soname_spec='${libname}${release}${shared_ext}$major'
7764   shlibpath_var=LD_LIBRARY_PATH
7765   hardcode_into_libs=yes
7766   ;;
7767
7768 hpux9* | hpux10* | hpux11*)
7769   # Give a soname corresponding to the major version so that dld.sl refuses to
7770   # link against other versions.
7771   version_type=sunos
7772   need_lib_prefix=no
7773   need_version=no
7774   case "$host_cpu" in
7775   ia64*)
7776     shrext='.so'
7777     hardcode_into_libs=yes
7778     dynamic_linker="$host_os dld.so"
7779     shlibpath_var=LD_LIBRARY_PATH
7780     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7781     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7782     soname_spec='${libname}${release}${shared_ext}$major'
7783     if test "X$HPUX_IA64_MODE" = X32; then
7784       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7785     else
7786       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7787     fi
7788     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7789     ;;
7790    hppa*64*)
7791      shrext='.sl'
7792      hardcode_into_libs=yes
7793      dynamic_linker="$host_os dld.sl"
7794      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7795      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7796      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7797      soname_spec='${libname}${release}${shared_ext}$major'
7798      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7799      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7800      ;;
7801    *)
7802     shrext='.sl'
7803     dynamic_linker="$host_os dld.sl"
7804     shlibpath_var=SHLIB_PATH
7805     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7807     soname_spec='${libname}${release}${shared_ext}$major'
7808     ;;
7809   esac
7810   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7811   postinstall_cmds='chmod 555 $lib'
7812   ;;
7813
7814 irix5* | irix6* | nonstopux*)
7815   case $host_os in
7816     nonstopux*) version_type=nonstopux ;;
7817     *)
7818         if test "$lt_cv_prog_gnu_ld" = yes; then
7819                 version_type=linux
7820         else
7821                 version_type=irix
7822         fi ;;
7823   esac
7824   need_lib_prefix=no
7825   need_version=no
7826   soname_spec='${libname}${release}${shared_ext}$major'
7827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7828   case $host_os in
7829   irix5* | nonstopux*)
7830     libsuff= shlibsuff=
7831     ;;
7832   *)
7833     case $LD in # libtool.m4 will add one of these switches to LD
7834     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7835       libsuff= shlibsuff= libmagic=32-bit;;
7836     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7837       libsuff=32 shlibsuff=N32 libmagic=N32;;
7838     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7839       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7840     *) libsuff= shlibsuff= libmagic=never-match;;
7841     esac
7842     ;;
7843   esac
7844   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7845   shlibpath_overrides_runpath=no
7846   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7847   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7848   hardcode_into_libs=yes
7849   ;;
7850
7851 # No shared lib support for Linux oldld, aout, or coff.
7852 linux*oldld* | linux*aout* | linux*coff*)
7853   dynamic_linker=no
7854   ;;
7855
7856 # This must be Linux ELF.
7857 linux*)
7858   version_type=linux
7859   need_lib_prefix=no
7860   need_version=no
7861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7862   soname_spec='${libname}${release}${shared_ext}$major'
7863   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7864   shlibpath_var=LD_LIBRARY_PATH
7865   shlibpath_overrides_runpath=no
7866   # This implies no fast_install, which is unacceptable.
7867   # Some rework will be needed to allow for fast_install
7868   # before this can be enabled.
7869   hardcode_into_libs=yes
7870
7871   # We used to test for /lib/ld.so.1 and disable shared libraries on
7872   # powerpc, because MkLinux only supported shared libraries with the
7873   # GNU dynamic linker.  Since this was broken with cross compilers,
7874   # most powerpc-linux boxes support dynamic linking these days and
7875   # people can always --disable-shared, the test was removed, and we
7876   # assume the GNU/Linux dynamic linker is in use.
7877   dynamic_linker='GNU/Linux ld.so'
7878   ;;
7879
7880 netbsd*)
7881   version_type=sunos
7882   need_lib_prefix=no
7883   need_version=no
7884   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7886     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7887     dynamic_linker='NetBSD (a.out) ld.so'
7888   else
7889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7890     soname_spec='${libname}${release}${shared_ext}$major'
7891     dynamic_linker='NetBSD ld.elf_so'
7892   fi
7893   shlibpath_var=LD_LIBRARY_PATH
7894   shlibpath_overrides_runpath=yes
7895   hardcode_into_libs=yes
7896   ;;
7897
7898 newsos6)
7899   version_type=linux
7900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7901   shlibpath_var=LD_LIBRARY_PATH
7902   shlibpath_overrides_runpath=yes
7903   ;;
7904
7905 nto-qnx)
7906   version_type=linux
7907   need_lib_prefix=no
7908   need_version=no
7909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7910   soname_spec='${libname}${release}${shared_ext}$major'
7911   shlibpath_var=LD_LIBRARY_PATH
7912   shlibpath_overrides_runpath=yes
7913   ;;
7914
7915 openbsd*)
7916   version_type=sunos
7917   need_lib_prefix=no
7918   need_version=no
7919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7920   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7921   shlibpath_var=LD_LIBRARY_PATH
7922   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7923     case $host_os in
7924       openbsd2.[89] | openbsd2.[89].*)
7925         shlibpath_overrides_runpath=no
7926         ;;
7927       *)
7928         shlibpath_overrides_runpath=yes
7929         ;;
7930       esac
7931   else
7932     shlibpath_overrides_runpath=yes
7933   fi
7934   ;;
7935
7936 os2*)
7937   libname_spec='$name'
7938   shrext=".dll"
7939   need_lib_prefix=no
7940   library_names_spec='$libname${shared_ext} $libname.a'
7941   dynamic_linker='OS/2 ld.exe'
7942   shlibpath_var=LIBPATH
7943   ;;
7944
7945 osf3* | osf4* | osf5*)
7946   version_type=osf
7947   need_lib_prefix=no
7948   need_version=no
7949   soname_spec='${libname}${release}${shared_ext}$major'
7950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7951   shlibpath_var=LD_LIBRARY_PATH
7952   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7953   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7954   ;;
7955
7956 sco3.2v5*)
7957   version_type=osf
7958   soname_spec='${libname}${release}${shared_ext}$major'
7959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7960   shlibpath_var=LD_LIBRARY_PATH
7961   ;;
7962
7963 solaris*)
7964   version_type=linux
7965   need_lib_prefix=no
7966   need_version=no
7967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7968   soname_spec='${libname}${release}${shared_ext}$major'
7969   shlibpath_var=LD_LIBRARY_PATH
7970   shlibpath_overrides_runpath=yes
7971   hardcode_into_libs=yes
7972   # ldd complains unless libraries are executable
7973   postinstall_cmds='chmod +x $lib'
7974   ;;
7975
7976 sunos4*)
7977   version_type=sunos
7978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7979   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7980   shlibpath_var=LD_LIBRARY_PATH
7981   shlibpath_overrides_runpath=yes
7982   if test "$with_gnu_ld" = yes; then
7983     need_lib_prefix=no
7984   fi
7985   need_version=yes
7986   ;;
7987
7988 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7989   version_type=linux
7990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7991   soname_spec='${libname}${release}${shared_ext}$major'
7992   shlibpath_var=LD_LIBRARY_PATH
7993   case $host_vendor in
7994     sni)
7995       shlibpath_overrides_runpath=no
7996       need_lib_prefix=no
7997       export_dynamic_flag_spec='${wl}-Blargedynsym'
7998       runpath_var=LD_RUN_PATH
7999       ;;
8000     siemens)
8001       need_lib_prefix=no
8002       ;;
8003     motorola)
8004       need_lib_prefix=no
8005       need_version=no
8006       shlibpath_overrides_runpath=no
8007       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8008       ;;
8009   esac
8010   ;;
8011
8012 sysv4*MP*)
8013   if test -d /usr/nec ;then
8014     version_type=linux
8015     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8016     soname_spec='$libname${shared_ext}.$major'
8017     shlibpath_var=LD_LIBRARY_PATH
8018   fi
8019   ;;
8020
8021 uts4*)
8022   version_type=linux
8023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8024   soname_spec='${libname}${release}${shared_ext}$major'
8025   shlibpath_var=LD_LIBRARY_PATH
8026   ;;
8027
8028 *)
8029   dynamic_linker=no
8030   ;;
8031 esac
8032 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8033 echo "${ECHO_T}$dynamic_linker" >&6
8034 test "$dynamic_linker" = no && can_build_shared=no
8035
8036 if test "x$enable_dlopen" != xyes; then
8037   enable_dlopen=unknown
8038   enable_dlopen_self=unknown
8039   enable_dlopen_self_static=unknown
8040 else
8041   lt_cv_dlopen=no
8042   lt_cv_dlopen_libs=
8043
8044   case $host_os in
8045   beos*)
8046     lt_cv_dlopen="load_add_on"
8047     lt_cv_dlopen_libs=
8048     lt_cv_dlopen_self=yes
8049     ;;
8050
8051   mingw* | pw32*)
8052     lt_cv_dlopen="LoadLibrary"
8053     lt_cv_dlopen_libs=
8054    ;;
8055
8056   cygwin*)
8057     lt_cv_dlopen="dlopen"
8058     lt_cv_dlopen_libs=
8059    ;;
8060
8061   darwin*)
8062   # if libdl is installed we need to link against it
8063     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8064 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8065 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8066   echo $ECHO_N "(cached) $ECHO_C" >&6
8067 else
8068   ac_check_lib_save_LIBS=$LIBS
8069 LIBS="-ldl  $LIBS"
8070 cat >conftest.$ac_ext <<_ACEOF
8071 #line $LINENO "configure"
8072 /* confdefs.h.  */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h.  */
8077
8078 /* Override any gcc2 internal prototype to avoid an error.  */
8079 #ifdef __cplusplus
8080 extern "C"
8081 #endif
8082 /* We use char because int might match the return type of a gcc2
8083    builtin and then its argument prototype would still apply.  */
8084 char dlopen ();
8085 int
8086 main ()
8087 {
8088 dlopen ();
8089   ;
8090   return 0;
8091 }
8092 _ACEOF
8093 rm -f conftest.$ac_objext conftest$ac_exeext
8094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8095   (eval $ac_link) 2>&5
8096   ac_status=$?
8097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); } &&
8099          { ac_try='test -s conftest$ac_exeext'
8100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101   (eval $ac_try) 2>&5
8102   ac_status=$?
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); }; }; then
8105   ac_cv_lib_dl_dlopen=yes
8106 else
8107   echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 ac_cv_lib_dl_dlopen=no
8111 fi
8112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8113 LIBS=$ac_check_lib_save_LIBS
8114 fi
8115 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8116 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8117 if test $ac_cv_lib_dl_dlopen = yes; then
8118   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8119 else
8120
8121     lt_cv_dlopen="dyld"
8122     lt_cv_dlopen_libs=
8123     lt_cv_dlopen_self=yes
8124
8125 fi
8126
8127    ;;
8128
8129   *)
8130     echo "$as_me:$LINENO: checking for shl_load" >&5
8131 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8132 if test "${ac_cv_func_shl_load+set}" = set; then
8133   echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135   cat >conftest.$ac_ext <<_ACEOF
8136 #line $LINENO "configure"
8137 /* confdefs.h.  */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h.  */
8142 /* System header to define __stub macros and hopefully few prototypes,
8143     which can conflict with char shl_load (); below.
8144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8145     <limits.h> exists even on freestanding compilers.  */
8146 #ifdef __STDC__
8147 # include <limits.h>
8148 #else
8149 # include <assert.h>
8150 #endif
8151 /* Override any gcc2 internal prototype to avoid an error.  */
8152 #ifdef __cplusplus
8153 extern "C"
8154 {
8155 #endif
8156 /* We use char because int might match the return type of a gcc2
8157    builtin and then its argument prototype would still apply.  */
8158 char shl_load ();
8159 /* The GNU C library defines this for functions which it implements
8160     to always fail with ENOSYS.  Some functions are actually named
8161     something starting with __ and the normal name is an alias.  */
8162 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8163 choke me
8164 #else
8165 char (*f) () = shl_load;
8166 #endif
8167 #ifdef __cplusplus
8168 }
8169 #endif
8170
8171 int
8172 main ()
8173 {
8174 return f != shl_load;
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 rm -f conftest.$ac_objext conftest$ac_exeext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8181   (eval $ac_link) 2>&5
8182   ac_status=$?
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); } &&
8185          { ac_try='test -s conftest$ac_exeext'
8186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187   (eval $ac_try) 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); }; }; then
8191   ac_cv_func_shl_load=yes
8192 else
8193   echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8195
8196 ac_cv_func_shl_load=no
8197 fi
8198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8199 fi
8200 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8201 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8202 if test $ac_cv_func_shl_load = yes; then
8203   lt_cv_dlopen="shl_load"
8204 else
8205   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8206 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8207 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210   ac_check_lib_save_LIBS=$LIBS
8211 LIBS="-ldld  $LIBS"
8212 cat >conftest.$ac_ext <<_ACEOF
8213 #line $LINENO "configure"
8214 /* confdefs.h.  */
8215 _ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h.  */
8219
8220 /* Override any gcc2 internal prototype to avoid an error.  */
8221 #ifdef __cplusplus
8222 extern "C"
8223 #endif
8224 /* We use char because int might match the return type of a gcc2
8225    builtin and then its argument prototype would still apply.  */
8226 char shl_load ();
8227 int
8228 main ()
8229 {
8230 shl_load ();
8231   ;
8232   return 0;
8233 }
8234 _ACEOF
8235 rm -f conftest.$ac_objext conftest$ac_exeext
8236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8237   (eval $ac_link) 2>&5
8238   ac_status=$?
8239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240   (exit $ac_status); } &&
8241          { ac_try='test -s conftest$ac_exeext'
8242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243   (eval $ac_try) 2>&5
8244   ac_status=$?
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); }; }; then
8247   ac_cv_lib_dld_shl_load=yes
8248 else
8249   echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8251
8252 ac_cv_lib_dld_shl_load=no
8253 fi
8254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8255 LIBS=$ac_check_lib_save_LIBS
8256 fi
8257 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8258 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8259 if test $ac_cv_lib_dld_shl_load = yes; then
8260   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8261 else
8262   echo "$as_me:$LINENO: checking for dlopen" >&5
8263 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8264 if test "${ac_cv_func_dlopen+set}" = set; then
8265   echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267   cat >conftest.$ac_ext <<_ACEOF
8268 #line $LINENO "configure"
8269 /* confdefs.h.  */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h.  */
8274 /* System header to define __stub macros and hopefully few prototypes,
8275     which can conflict with char dlopen (); below.
8276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8277     <limits.h> exists even on freestanding compilers.  */
8278 #ifdef __STDC__
8279 # include <limits.h>
8280 #else
8281 # include <assert.h>
8282 #endif
8283 /* Override any gcc2 internal prototype to avoid an error.  */
8284 #ifdef __cplusplus
8285 extern "C"
8286 {
8287 #endif
8288 /* We use char because int might match the return type of a gcc2
8289    builtin and then its argument prototype would still apply.  */
8290 char dlopen ();
8291 /* The GNU C library defines this for functions which it implements
8292     to always fail with ENOSYS.  Some functions are actually named
8293     something starting with __ and the normal name is an alias.  */
8294 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8295 choke me
8296 #else
8297 char (*f) () = dlopen;
8298 #endif
8299 #ifdef __cplusplus
8300 }
8301 #endif
8302
8303 int
8304 main ()
8305 {
8306 return f != dlopen;
8307   ;
8308   return 0;
8309 }
8310 _ACEOF
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8313   (eval $ac_link) 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); } &&
8317          { ac_try='test -s conftest$ac_exeext'
8318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319   (eval $ac_try) 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; }; then
8323   ac_cv_func_dlopen=yes
8324 else
8325   echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328 ac_cv_func_dlopen=no
8329 fi
8330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8331 fi
8332 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8333 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8334 if test $ac_cv_func_dlopen = yes; then
8335   lt_cv_dlopen="dlopen"
8336 else
8337   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8338 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342   ac_check_lib_save_LIBS=$LIBS
8343 LIBS="-ldl  $LIBS"
8344 cat >conftest.$ac_ext <<_ACEOF
8345 #line $LINENO "configure"
8346 /* confdefs.h.  */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h.  */
8351
8352 /* Override any gcc2 internal prototype to avoid an error.  */
8353 #ifdef __cplusplus
8354 extern "C"
8355 #endif
8356 /* We use char because int might match the return type of a gcc2
8357    builtin and then its argument prototype would still apply.  */
8358 char dlopen ();
8359 int
8360 main ()
8361 {
8362 dlopen ();
8363   ;
8364   return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369   (eval $ac_link) 2>&5
8370   ac_status=$?
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); } &&
8373          { ac_try='test -s conftest$ac_exeext'
8374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375   (eval $ac_try) 2>&5
8376   ac_status=$?
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); }; }; then
8379   ac_cv_lib_dl_dlopen=yes
8380 else
8381   echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8383
8384 ac_cv_lib_dl_dlopen=no
8385 fi
8386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8387 LIBS=$ac_check_lib_save_LIBS
8388 fi
8389 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8390 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8391 if test $ac_cv_lib_dl_dlopen = yes; then
8392   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8393 else
8394   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8395 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8396 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8397   echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399   ac_check_lib_save_LIBS=$LIBS
8400 LIBS="-lsvld  $LIBS"
8401 cat >conftest.$ac_ext <<_ACEOF
8402 #line $LINENO "configure"
8403 /* confdefs.h.  */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h.  */
8408
8409 /* Override any gcc2 internal prototype to avoid an error.  */
8410 #ifdef __cplusplus
8411 extern "C"
8412 #endif
8413 /* We use char because int might match the return type of a gcc2
8414    builtin and then its argument prototype would still apply.  */
8415 char dlopen ();
8416 int
8417 main ()
8418 {
8419 dlopen ();
8420   ;
8421   return 0;
8422 }
8423 _ACEOF
8424 rm -f conftest.$ac_objext conftest$ac_exeext
8425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8426   (eval $ac_link) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); } &&
8430          { ac_try='test -s conftest$ac_exeext'
8431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432   (eval $ac_try) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; }; then
8436   ac_cv_lib_svld_dlopen=yes
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 ac_cv_lib_svld_dlopen=no
8442 fi
8443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8444 LIBS=$ac_check_lib_save_LIBS
8445 fi
8446 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8447 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8448 if test $ac_cv_lib_svld_dlopen = yes; then
8449   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8450 else
8451   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8452 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8453 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8454   echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456   ac_check_lib_save_LIBS=$LIBS
8457 LIBS="-ldld  $LIBS"
8458 cat >conftest.$ac_ext <<_ACEOF
8459 #line $LINENO "configure"
8460 /* confdefs.h.  */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h.  */
8465
8466 /* Override any gcc2 internal prototype to avoid an error.  */
8467 #ifdef __cplusplus
8468 extern "C"
8469 #endif
8470 /* We use char because int might match the return type of a gcc2
8471    builtin and then its argument prototype would still apply.  */
8472 char dld_link ();
8473 int
8474 main ()
8475 {
8476 dld_link ();
8477   ;
8478   return 0;
8479 }
8480 _ACEOF
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483   (eval $ac_link) 2>&5
8484   ac_status=$?
8485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486   (exit $ac_status); } &&
8487          { ac_try='test -s conftest$ac_exeext'
8488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489   (eval $ac_try) 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }; }; then
8493   ac_cv_lib_dld_dld_link=yes
8494 else
8495   echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498 ac_cv_lib_dld_dld_link=no
8499 fi
8500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8501 LIBS=$ac_check_lib_save_LIBS
8502 fi
8503 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8504 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8505 if test $ac_cv_lib_dld_dld_link = yes; then
8506   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8507 fi
8508
8509
8510 fi
8511
8512
8513 fi
8514
8515
8516 fi
8517
8518
8519 fi
8520
8521
8522 fi
8523
8524     ;;
8525   esac
8526
8527   if test "x$lt_cv_dlopen" != xno; then
8528     enable_dlopen=yes
8529   else
8530     enable_dlopen=no
8531   fi
8532
8533   case $lt_cv_dlopen in
8534   dlopen)
8535     save_CPPFLAGS="$CPPFLAGS"
8536     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8537
8538     save_LDFLAGS="$LDFLAGS"
8539     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8540
8541     save_LIBS="$LIBS"
8542     LIBS="$lt_cv_dlopen_libs $LIBS"
8543
8544     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8545 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8546 if test "${lt_cv_dlopen_self+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549           if test "$cross_compiling" = yes; then :
8550   lt_cv_dlopen_self=cross
8551 else
8552   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8553   lt_status=$lt_dlunknown
8554   cat > conftest.$ac_ext <<EOF
8555 #line 8555 "configure"
8556 #include "confdefs.h"
8557
8558 #if HAVE_DLFCN_H
8559 #include <dlfcn.h>
8560 #endif
8561
8562 #include <stdio.h>
8563
8564 #ifdef RTLD_GLOBAL
8565 #  define LT_DLGLOBAL           RTLD_GLOBAL
8566 #else
8567 #  ifdef DL_GLOBAL
8568 #    define LT_DLGLOBAL         DL_GLOBAL
8569 #  else
8570 #    define LT_DLGLOBAL         0
8571 #  endif
8572 #endif
8573
8574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8575    find out it does not work in some platform. */
8576 #ifndef LT_DLLAZY_OR_NOW
8577 #  ifdef RTLD_LAZY
8578 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8579 #  else
8580 #    ifdef DL_LAZY
8581 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8582 #    else
8583 #      ifdef RTLD_NOW
8584 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8585 #      else
8586 #        ifdef DL_NOW
8587 #          define LT_DLLAZY_OR_NOW      DL_NOW
8588 #        else
8589 #          define LT_DLLAZY_OR_NOW      0
8590 #        endif
8591 #      endif
8592 #    endif
8593 #  endif
8594 #endif
8595
8596 #ifdef __cplusplus
8597 extern "C" void exit (int);
8598 #endif
8599
8600 void fnord() { int i=42;}
8601 int main ()
8602 {
8603   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8604   int status = $lt_dlunknown;
8605
8606   if (self)
8607     {
8608       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8609       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8610       /* dlclose (self); */
8611     }
8612
8613     exit (status);
8614 }
8615 EOF
8616   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8617   (eval $ac_link) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8621     (./conftest; exit; ) 2>/dev/null
8622     lt_status=$?
8623     case x$lt_status in
8624       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8625       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8626       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8627     esac
8628   else :
8629     # compilation failed
8630     lt_cv_dlopen_self=no
8631   fi
8632 fi
8633 rm -fr conftest*
8634
8635
8636 fi
8637 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8638 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8639
8640     if test "x$lt_cv_dlopen_self" = xyes; then
8641       LDFLAGS="$LDFLAGS $link_static_flag"
8642       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8643 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8644 if test "${lt_cv_dlopen_self_static+set}" = set; then
8645   echo $ECHO_N "(cached) $ECHO_C" >&6
8646 else
8647           if test "$cross_compiling" = yes; then :
8648   lt_cv_dlopen_self_static=cross
8649 else
8650   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8651   lt_status=$lt_dlunknown
8652   cat > conftest.$ac_ext <<EOF
8653 #line 8653 "configure"
8654 #include "confdefs.h"
8655
8656 #if HAVE_DLFCN_H
8657 #include <dlfcn.h>
8658 #endif
8659
8660 #include <stdio.h>
8661
8662 #ifdef RTLD_GLOBAL
8663 #  define LT_DLGLOBAL           RTLD_GLOBAL
8664 #else
8665 #  ifdef DL_GLOBAL
8666 #    define LT_DLGLOBAL         DL_GLOBAL
8667 #  else
8668 #    define LT_DLGLOBAL         0
8669 #  endif
8670 #endif
8671
8672 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8673    find out it does not work in some platform. */
8674 #ifndef LT_DLLAZY_OR_NOW
8675 #  ifdef RTLD_LAZY
8676 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8677 #  else
8678 #    ifdef DL_LAZY
8679 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8680 #    else
8681 #      ifdef RTLD_NOW
8682 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8683 #      else
8684 #        ifdef DL_NOW
8685 #          define LT_DLLAZY_OR_NOW      DL_NOW
8686 #        else
8687 #          define LT_DLLAZY_OR_NOW      0
8688 #        endif
8689 #      endif
8690 #    endif
8691 #  endif
8692 #endif
8693
8694 #ifdef __cplusplus
8695 extern "C" void exit (int);
8696 #endif
8697
8698 void fnord() { int i=42;}
8699 int main ()
8700 {
8701   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8702   int status = $lt_dlunknown;
8703
8704   if (self)
8705     {
8706       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8707       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8708       /* dlclose (self); */
8709     }
8710
8711     exit (status);
8712 }
8713 EOF
8714   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715   (eval $ac_link) 2>&5
8716   ac_status=$?
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8719     (./conftest; exit; ) 2>/dev/null
8720     lt_status=$?
8721     case x$lt_status in
8722       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8723       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8724       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8725     esac
8726   else :
8727     # compilation failed
8728     lt_cv_dlopen_self_static=no
8729   fi
8730 fi
8731 rm -fr conftest*
8732
8733
8734 fi
8735 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8736 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8737     fi
8738
8739     CPPFLAGS="$save_CPPFLAGS"
8740     LDFLAGS="$save_LDFLAGS"
8741     LIBS="$save_LIBS"
8742     ;;
8743   esac
8744
8745   case $lt_cv_dlopen_self in
8746   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8747   *) enable_dlopen_self=unknown ;;
8748   esac
8749
8750   case $lt_cv_dlopen_self_static in
8751   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8752   *) enable_dlopen_self_static=unknown ;;
8753   esac
8754 fi
8755
8756
8757 # Report which librarie types wil actually be built
8758 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8759 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8760 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8761 echo "${ECHO_T}$can_build_shared" >&6
8762
8763 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8764 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8765 test "$can_build_shared" = "no" && enable_shared=no
8766
8767 # On AIX, shared libraries and static libraries use the same namespace, and
8768 # are all built from PIC.
8769 case "$host_os" in
8770 aix3*)
8771   test "$enable_shared" = yes && enable_static=no
8772   if test -n "$RANLIB"; then
8773     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8774     postinstall_cmds='$RANLIB $lib'
8775   fi
8776   ;;
8777
8778 aix4*)
8779   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8780     test "$enable_shared" = yes && enable_static=no
8781   fi
8782   ;;
8783   darwin* | rhapsody*)
8784   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8785     archive_cmds_need_lc=no
8786     case "$host_os" in
8787     rhapsody* | darwin1.[012])
8788       allow_undefined_flag='-undefined suppress'
8789       ;;
8790     *) # Darwin 1.3 on
8791       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8792       ;;
8793     esac
8794     # FIXME: Relying on posixy $() will cause problems for
8795     #        cross-compilation, but unfortunately the echo tests do not
8796     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8797     #          `"' quotes if we put them in here... so don't!
8798                 output_verbose_link_cmd='echo'
8799     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8800     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8801     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8802                   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}'
8803                   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}'
8804     hardcode_direct=no
8805     hardcode_automatic=yes
8806     hardcode_shlibpath_var=unsupported
8807     whole_archive_flag_spec='-all_load $convenience'
8808     link_all_deplibs=yes
8809     fi
8810     ;;
8811 esac
8812 echo "$as_me:$LINENO: result: $enable_shared" >&5
8813 echo "${ECHO_T}$enable_shared" >&6
8814
8815 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8816 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8817 # Make sure either enable_shared or enable_static is yes.
8818 test "$enable_shared" = yes || enable_static=yes
8819 echo "$as_me:$LINENO: result: $enable_static" >&5
8820 echo "${ECHO_T}$enable_static" >&6
8821
8822 # The else clause should only fire when bootstrapping the
8823 # libtool distribution, otherwise you forgot to ship ltmain.sh
8824 # with your package, and you will get complaints that there are
8825 # no rules to generate ltmain.sh.
8826 if test -f "$ltmain"; then
8827   # See if we are running on zsh, and set the options which allow our commands through
8828   # without removal of \ escapes.
8829   if test -n "${ZSH_VERSION+set}" ; then
8830     setopt NO_GLOB_SUBST
8831   fi
8832   # Now quote all the things that may contain metacharacters while being
8833   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8834   # variables and quote the copies for generation of the libtool script.
8835   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8836     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8837     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8838     deplibs_check_method reload_flag reload_cmds need_locks \
8839     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8840     lt_cv_sys_global_symbol_to_c_name_address \
8841     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8842     old_postinstall_cmds old_postuninstall_cmds \
8843     compiler \
8844     CC \
8845     LD \
8846     lt_prog_compiler_wl \
8847     lt_prog_compiler_pic \
8848     lt_prog_compiler_static \
8849     lt_prog_compiler_no_builtin_flag \
8850     export_dynamic_flag_spec \
8851     thread_safe_flag_spec \
8852     whole_archive_flag_spec \
8853     enable_shared_with_static_runtimes \
8854     old_archive_cmds \
8855     old_archive_from_new_cmds \
8856     predep_objects \
8857     postdep_objects \
8858     predeps \
8859     postdeps \
8860     compiler_lib_search_path \
8861     archive_cmds \
8862     archive_expsym_cmds \
8863     postinstall_cmds \
8864     postuninstall_cmds \
8865     old_archive_from_expsyms_cmds \
8866     allow_undefined_flag \
8867     no_undefined_flag \
8868     export_symbols_cmds \
8869     hardcode_libdir_flag_spec \
8870     hardcode_libdir_flag_spec_ld \
8871     hardcode_libdir_separator \
8872     hardcode_automatic \
8873     module_cmds \
8874     module_expsym_cmds \
8875     lt_cv_prog_compiler_c_o \
8876     exclude_expsyms \
8877     include_expsyms; do
8878
8879     case $var in
8880     old_archive_cmds | \
8881     old_archive_from_new_cmds | \
8882     archive_cmds | \
8883     archive_expsym_cmds | \
8884     module_cmds | \
8885     module_expsym_cmds | \
8886     old_archive_from_expsyms_cmds | \
8887     export_symbols_cmds | \
8888     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8889     postinstall_cmds | postuninstall_cmds | \
8890     old_postinstall_cmds | old_postuninstall_cmds | \
8891     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8892       # Double-quote double-evaled strings.
8893       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8894       ;;
8895     *)
8896       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8897       ;;
8898     esac
8899   done
8900
8901   case $lt_echo in
8902   *'\$0 --fallback-echo"')
8903     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8904     ;;
8905   esac
8906
8907 cfgfile="${ofile}T"
8908   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8909   $rm -f "$cfgfile"
8910   { echo "$as_me:$LINENO: creating $ofile" >&5
8911 echo "$as_me: creating $ofile" >&6;}
8912
8913   cat <<__EOF__ >> "$cfgfile"
8914 #! $SHELL
8915
8916 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8917 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8918 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8919 #
8920 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8921 # Free Software Foundation, Inc.
8922 #
8923 # This file is part of GNU Libtool:
8924 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8925 #
8926 # This program is free software; you can redistribute it and/or modify
8927 # it under the terms of the GNU General Public License as published by
8928 # the Free Software Foundation; either version 2 of the License, or
8929 # (at your option) any later version.
8930 #
8931 # This program is distributed in the hope that it will be useful, but
8932 # WITHOUT ANY WARRANTY; without even the implied warranty of
8933 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8934 # General Public License for more details.
8935 #
8936 # You should have received a copy of the GNU General Public License
8937 # along with this program; if not, write to the Free Software
8938 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8939 #
8940 # As a special exception to the GNU General Public License, if you
8941 # distribute this file as part of a program that contains a
8942 # configuration script generated by Autoconf, you may include it under
8943 # the same distribution terms that you use for the rest of that program.
8944
8945 # A sed program that does not truncate output.
8946 SED=$lt_SED
8947
8948 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8949 Xsed="$SED -e s/^X//"
8950
8951 # The HP-UX ksh and POSIX shell print the target directory to stdout
8952 # if CDPATH is set.
8953 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8954
8955 # The names of the tagged configurations supported by this script.
8956 available_tags=
8957
8958 # ### BEGIN LIBTOOL CONFIG
8959
8960 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8961
8962 # Shell to use when invoking shell scripts.
8963 SHELL=$lt_SHELL
8964
8965 # Whether or not to build shared libraries.
8966 build_libtool_libs=$enable_shared
8967
8968 # Whether or not to build static libraries.
8969 build_old_libs=$enable_static
8970
8971 # Whether or not to add -lc for building shared libraries.
8972 build_libtool_need_lc=$archive_cmds_need_lc
8973
8974 # Whether or not to disallow shared libs when runtime libs are static
8975 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8976
8977 # Whether or not to optimize for fast installation.
8978 fast_install=$enable_fast_install
8979
8980 # The host system.
8981 host_alias=$host_alias
8982 host=$host
8983
8984 # An echo program that does not interpret backslashes.
8985 echo=$lt_echo
8986
8987 # The archiver.
8988 AR=$lt_AR
8989 AR_FLAGS=$lt_AR_FLAGS
8990
8991 # A C compiler.
8992 LTCC=$lt_LTCC
8993
8994 # A language-specific compiler.
8995 CC=$lt_compiler
8996
8997 # Is the compiler the GNU C compiler?
8998 with_gcc=$GCC
8999
9000 # An ERE matcher.
9001 EGREP=$lt_EGREP
9002
9003 # The linker used to build libraries.
9004 LD=$lt_LD
9005
9006 # Whether we need hard or soft links.
9007 LN_S=$lt_LN_S
9008
9009 # A BSD-compatible nm program.
9010 NM=$lt_NM
9011
9012 # A symbol stripping program
9013 STRIP=$STRIP
9014
9015 # Used to examine libraries when file_magic_cmd begins "file"
9016 MAGIC_CMD=$MAGIC_CMD
9017
9018 # Used on cygwin: DLL creation program.
9019 DLLTOOL="$DLLTOOL"
9020
9021 # Used on cygwin: object dumper.
9022 OBJDUMP="$OBJDUMP"
9023
9024 # Used on cygwin: assembler.
9025 AS="$AS"
9026
9027 # The name of the directory that contains temporary libtool files.
9028 objdir=$objdir
9029
9030 # How to create reloadable object files.
9031 reload_flag=$lt_reload_flag
9032 reload_cmds=$lt_reload_cmds
9033
9034 # How to pass a linker flag through the compiler.
9035 wl=$lt_lt_prog_compiler_wl
9036
9037 # Object file suffix (normally "o").
9038 objext="$ac_objext"
9039
9040 # Old archive suffix (normally "a").
9041 libext="$libext"
9042
9043 # Shared library suffix (normally ".so").
9044 shrext='$shrext'
9045
9046 # Executable file suffix (normally "").
9047 exeext="$exeext"
9048
9049 # Additional compiler flags for building library objects.
9050 pic_flag=$lt_lt_prog_compiler_pic
9051 pic_mode=$pic_mode
9052
9053 # What is the maximum length of a command?
9054 max_cmd_len=$lt_cv_sys_max_cmd_len
9055
9056 # Does compiler simultaneously support -c and -o options?
9057 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9058
9059 # Must we lock files when doing compilation ?
9060 need_locks=$lt_need_locks
9061
9062 # Do we need the lib prefix for modules?
9063 need_lib_prefix=$need_lib_prefix
9064
9065 # Do we need a version for libraries?
9066 need_version=$need_version
9067
9068 # Whether dlopen is supported.
9069 dlopen_support=$enable_dlopen
9070
9071 # Whether dlopen of programs is supported.
9072 dlopen_self=$enable_dlopen_self
9073
9074 # Whether dlopen of statically linked programs is supported.
9075 dlopen_self_static=$enable_dlopen_self_static
9076
9077 # Compiler flag to prevent dynamic linking.
9078 link_static_flag=$lt_lt_prog_compiler_static
9079
9080 # Compiler flag to turn off builtin functions.
9081 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9082
9083 # Compiler flag to allow reflexive dlopens.
9084 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9085
9086 # Compiler flag to generate shared objects directly from archives.
9087 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9088
9089 # Compiler flag to generate thread-safe objects.
9090 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9091
9092 # Library versioning type.
9093 version_type=$version_type
9094
9095 # Format of library name prefix.
9096 libname_spec=$lt_libname_spec
9097
9098 # List of archive names.  First name is the real one, the rest are links.
9099 # The last name is the one that the linker finds with -lNAME.
9100 library_names_spec=$lt_library_names_spec
9101
9102 # The coded name of the library, if different from the real name.
9103 soname_spec=$lt_soname_spec
9104
9105 # Commands used to build and install an old-style archive.
9106 RANLIB=$lt_RANLIB
9107 old_archive_cmds=$lt_old_archive_cmds
9108 old_postinstall_cmds=$lt_old_postinstall_cmds
9109 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9110
9111 # Create an old-style archive from a shared archive.
9112 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9113
9114 # Create a temporary old-style archive to link instead of a shared archive.
9115 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9116
9117 # Commands used to build and install a shared archive.
9118 archive_cmds=$lt_archive_cmds
9119 archive_expsym_cmds=$lt_archive_expsym_cmds
9120 postinstall_cmds=$lt_postinstall_cmds
9121 postuninstall_cmds=$lt_postuninstall_cmds
9122
9123 # Commands used to build a loadable module (assumed same as above if empty)
9124 module_cmds=$lt_module_cmds
9125 module_expsym_cmds=$lt_module_expsym_cmds
9126
9127 # Commands to strip libraries.
9128 old_striplib=$lt_old_striplib
9129 striplib=$lt_striplib
9130
9131 # Dependencies to place before the objects being linked to create a
9132 # shared library.
9133 predep_objects=$lt_predep_objects
9134
9135 # Dependencies to place after the objects being linked to create a
9136 # shared library.
9137 postdep_objects=$lt_postdep_objects
9138
9139 # Dependencies to place before the objects being linked to create a
9140 # shared library.
9141 predeps=$lt_predeps
9142
9143 # Dependencies to place after the objects being linked to create a
9144 # shared library.
9145 postdeps=$lt_postdeps
9146
9147 # The library search path used internally by the compiler when linking
9148 # a shared library.
9149 compiler_lib_search_path=$lt_compiler_lib_search_path
9150
9151 # Method to check whether dependent libraries are shared objects.
9152 deplibs_check_method=$lt_deplibs_check_method
9153
9154 # Command to use when deplibs_check_method == file_magic.
9155 file_magic_cmd=$lt_file_magic_cmd
9156
9157 # Flag that allows shared libraries with undefined symbols to be built.
9158 allow_undefined_flag=$lt_allow_undefined_flag
9159
9160 # Flag that forces no undefined symbols.
9161 no_undefined_flag=$lt_no_undefined_flag
9162
9163 # Commands used to finish a libtool library installation in a directory.
9164 finish_cmds=$lt_finish_cmds
9165
9166 # Same as above, but a single script fragment to be evaled but not shown.
9167 finish_eval=$lt_finish_eval
9168
9169 # Take the output of nm and produce a listing of raw symbols and C names.
9170 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9171
9172 # Transform the output of nm in a proper C declaration
9173 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9174
9175 # Transform the output of nm in a C name address pair
9176 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9177
9178 # This is the shared library runtime path variable.
9179 runpath_var=$runpath_var
9180
9181 # This is the shared library path variable.
9182 shlibpath_var=$shlibpath_var
9183
9184 # Is shlibpath searched before the hard-coded library search path?
9185 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9186
9187 # How to hardcode a shared library path into an executable.
9188 hardcode_action=$hardcode_action
9189
9190 # Whether we should hardcode library paths into libraries.
9191 hardcode_into_libs=$hardcode_into_libs
9192
9193 # Flag to hardcode \$libdir into a binary during linking.
9194 # This must work even if \$libdir does not exist.
9195 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9196
9197 # If ld is used when linking, flag to hardcode \$libdir into
9198 # a binary during linking. This must work even if \$libdir does
9199 # not exist.
9200 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9201
9202 # Whether we need a single -rpath flag with a separated argument.
9203 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9204
9205 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9206 # resulting binary.
9207 hardcode_direct=$hardcode_direct
9208
9209 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9210 # resulting binary.
9211 hardcode_minus_L=$hardcode_minus_L
9212
9213 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9214 # the resulting binary.
9215 hardcode_shlibpath_var=$hardcode_shlibpath_var
9216
9217 # Set to yes if building a shared library automatically hardcodes DIR into the library
9218 # and all subsequent libraries and executables linked against it.
9219 hardcode_automatic=$hardcode_automatic
9220
9221 # Variables whose values should be saved in libtool wrapper scripts and
9222 # restored at relink time.
9223 variables_saved_for_relink="$variables_saved_for_relink"
9224
9225 # Whether libtool must link a program against all its dependency libraries.
9226 link_all_deplibs=$link_all_deplibs
9227
9228 # Compile-time system search path for libraries
9229 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9230
9231 # Run-time system search path for libraries
9232 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9233
9234 # Fix the shell variable \$srcfile for the compiler.
9235 fix_srcfile_path="$fix_srcfile_path"
9236
9237 # Set to yes if exported symbols are required.
9238 always_export_symbols=$always_export_symbols
9239
9240 # The commands to list exported symbols.
9241 export_symbols_cmds=$lt_export_symbols_cmds
9242
9243 # The commands to extract the exported symbol list from a shared archive.
9244 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9245
9246 # Symbols that should not be listed in the preloaded symbols.
9247 exclude_expsyms=$lt_exclude_expsyms
9248
9249 # Symbols that must always be exported.
9250 include_expsyms=$lt_include_expsyms
9251
9252 # ### END LIBTOOL CONFIG
9253
9254 __EOF__
9255
9256
9257   case $host_os in
9258   aix3*)
9259     cat <<\EOF >> "$cfgfile"
9260
9261 # AIX sometimes has problems with the GCC collect2 program.  For some
9262 # reason, if we set the COLLECT_NAMES environment variable, the problems
9263 # vanish in a puff of smoke.
9264 if test "X${COLLECT_NAMES+set}" != Xset; then
9265   COLLECT_NAMES=
9266   export COLLECT_NAMES
9267 fi
9268 EOF
9269     ;;
9270   esac
9271
9272   # We use sed instead of cat because bash on DJGPP gets confused if
9273   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9274   # text mode, it properly converts lines to CR/LF.  This bash problem
9275   # is reportedly fixed, but why not run on old versions too?
9276   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9277
9278   mv -f "$cfgfile" "$ofile" || \
9279     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9280   chmod +x "$ofile"
9281
9282 else
9283   # If there is no Makefile yet, we rely on a make rule to execute
9284   # `config.status --recheck' to rerun these tests and create the
9285   # libtool script then.
9286   test -f Makefile && make "$ltmain"
9287 fi
9288
9289
9290 ac_ext=c
9291 ac_cpp='$CPP $CPPFLAGS'
9292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9295
9296 CC="$lt_save_CC"
9297
9298
9299 # Check whether --with-tags or --without-tags was given.
9300 if test "${with_tags+set}" = set; then
9301   withval="$with_tags"
9302   tagnames="$withval"
9303 fi;
9304
9305 if test -f "$ltmain" && test -n "$tagnames"; then
9306   if test ! -f "${ofile}"; then
9307     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9308 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9309   fi
9310
9311   if test -z "$LTCC"; then
9312     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9313     if test -z "$LTCC"; then
9314       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9315 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9316     else
9317       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9318 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9319     fi
9320   fi
9321
9322   # Extract list of available tagged configurations in $ofile.
9323   # Note that this assumes the entire list is on one line.
9324   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9325
9326   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9327   for tagname in $tagnames; do
9328     IFS="$lt_save_ifs"
9329     # Check whether tagname contains only valid characters
9330     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9331     "") ;;
9332     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9333 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9334    { (exit 1); exit 1; }; }
9335         ;;
9336     esac
9337
9338     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9339     then
9340       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9341 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9342    { (exit 1); exit 1; }; }
9343     fi
9344
9345     # Update the list of available tags.
9346     if test -n "$tagname"; then
9347       echo appending configuration tag \"$tagname\" to $ofile
9348
9349       case $tagname in
9350       CXX)
9351         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9352           ac_ext=cc
9353 ac_cpp='$CXXCPP $CPPFLAGS'
9354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9357
9358
9359
9360
9361 archive_cmds_need_lc_CXX=no
9362 allow_undefined_flag_CXX=
9363 always_export_symbols_CXX=no
9364 archive_expsym_cmds_CXX=
9365 export_dynamic_flag_spec_CXX=
9366 hardcode_direct_CXX=no
9367 hardcode_libdir_flag_spec_CXX=
9368 hardcode_libdir_flag_spec_ld_CXX=
9369 hardcode_libdir_separator_CXX=
9370 hardcode_minus_L_CXX=no
9371 hardcode_automatic_CXX=no
9372 module_cmds_CXX=
9373 module_expsym_cmds_CXX=
9374 link_all_deplibs_CXX=unknown
9375 old_archive_cmds_CXX=$old_archive_cmds
9376 no_undefined_flag_CXX=
9377 whole_archive_flag_spec_CXX=
9378 enable_shared_with_static_runtimes_CXX=no
9379
9380 # Dependencies to place before and after the object being linked:
9381 predep_objects_CXX=
9382 postdep_objects_CXX=
9383 predeps_CXX=
9384 postdeps_CXX=
9385 compiler_lib_search_path_CXX=
9386
9387 # Source file extension for C++ test sources.
9388 ac_ext=cc
9389
9390 # Object file extension for compiled C++ test sources.
9391 objext=o
9392 objext_CXX=$objext
9393
9394 # Code to be used in simple compile tests
9395 lt_simple_compile_test_code="int some_variable = 0;\n"
9396
9397 # Code to be used in simple link tests
9398 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9399
9400 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9401
9402 # If no C compiler was specified, use CC.
9403 LTCC=${LTCC-"$CC"}
9404
9405 # Allow CC to be a program name with arguments.
9406 compiler=$CC
9407
9408
9409 # Allow CC to be a program name with arguments.
9410 lt_save_CC=$CC
9411 lt_save_LD=$LD
9412 lt_save_GCC=$GCC
9413 GCC=$GXX
9414 lt_save_with_gnu_ld=$with_gnu_ld
9415 lt_save_path_LD=$lt_cv_path_LD
9416 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9417   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9418 else
9419   unset lt_cv_prog_gnu_ld
9420 fi
9421 if test -n "${lt_cv_path_LDCXX+set}"; then
9422   lt_cv_path_LD=$lt_cv_path_LDCXX
9423 else
9424   unset lt_cv_path_LD
9425 fi
9426 test -z "${LDCXX+set}" || LD=$LDCXX
9427 CC=${CXX-"c++"}
9428 compiler=$CC
9429 compiler_CXX=$CC
9430 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9431
9432 # We don't want -fno-exception wen compiling C++ code, so set the
9433 # no_builtin_flag separately
9434 if test "$GXX" = yes; then
9435   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9436 else
9437   lt_prog_compiler_no_builtin_flag_CXX=
9438 fi
9439
9440 if test "$GXX" = yes; then
9441   # Set up default GNU C++ configuration
9442
9443
9444 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9445 if test "${with_gnu_ld+set}" = set; then
9446   withval="$with_gnu_ld"
9447   test "$withval" = no || with_gnu_ld=yes
9448 else
9449   with_gnu_ld=no
9450 fi;
9451 ac_prog=ld
9452 if test "$GCC" = yes; then
9453   # Check if gcc -print-prog-name=ld gives a path.
9454   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9455 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9456   case $host in
9457   *-*-mingw*)
9458     # gcc leaves a trailing carriage return which upsets mingw
9459     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9460   *)
9461     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9462   esac
9463   case $ac_prog in
9464     # Accept absolute paths.
9465     [\\/]* | ?:[\\/]*)
9466       re_direlt='/[^/][^/]*/\.\./'
9467       # Canonicalize the path of ld
9468       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9469       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9470         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9471       done
9472       test -z "$LD" && LD="$ac_prog"
9473       ;;
9474   "")
9475     # If it fails, then pretend we aren't using GCC.
9476     ac_prog=ld
9477     ;;
9478   *)
9479     # If it is relative, then search for the first ld in PATH.
9480     with_gnu_ld=unknown
9481     ;;
9482   esac
9483 elif test "$with_gnu_ld" = yes; then
9484   echo "$as_me:$LINENO: checking for GNU ld" >&5
9485 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9486 else
9487   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9488 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9489 fi
9490 if test "${lt_cv_path_LD+set}" = set; then
9491   echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493   if test -z "$LD"; then
9494   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9495   for ac_dir in $PATH; do
9496     IFS="$lt_save_ifs"
9497     test -z "$ac_dir" && ac_dir=.
9498     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9499       lt_cv_path_LD="$ac_dir/$ac_prog"
9500       # Check to see if the program is GNU ld.  I'd rather use --version,
9501       # but apparently some GNU ld's only accept -v.
9502       # Break only if it was the GNU/non-GNU ld that we prefer.
9503       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9504       *GNU* | *'with BFD'*)
9505         test "$with_gnu_ld" != no && break
9506         ;;
9507       *)
9508         test "$with_gnu_ld" != yes && break
9509         ;;
9510       esac
9511     fi
9512   done
9513   IFS="$lt_save_ifs"
9514 else
9515   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9516 fi
9517 fi
9518
9519 LD="$lt_cv_path_LD"
9520 if test -n "$LD"; then
9521   echo "$as_me:$LINENO: result: $LD" >&5
9522 echo "${ECHO_T}$LD" >&6
9523 else
9524   echo "$as_me:$LINENO: result: no" >&5
9525 echo "${ECHO_T}no" >&6
9526 fi
9527 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9528 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9529    { (exit 1); exit 1; }; }
9530 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9531 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9532 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9533   echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9536 case `"$LD" -v 2>&1 </dev/null` in
9537 *GNU* | *'with BFD'*)
9538   lt_cv_prog_gnu_ld=yes
9539   ;;
9540 *)
9541   lt_cv_prog_gnu_ld=no
9542   ;;
9543 esac
9544 fi
9545 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9546 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9547 with_gnu_ld=$lt_cv_prog_gnu_ld
9548
9549
9550
9551   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9552   # archiving commands below assume that GNU ld is being used.
9553   if test "$with_gnu_ld" = yes; then
9554     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9555     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'
9556
9557     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9558     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9559
9560     # If archive_cmds runs LD, not CC, wlarc should be empty
9561     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9562     #     investigate it a little bit more. (MM)
9563     wlarc='${wl}'
9564
9565     # ancient GNU ld didn't support --whole-archive et. al.
9566     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9567         grep 'no-whole-archive' > /dev/null; then
9568       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9569     else
9570       whole_archive_flag_spec_CXX=
9571     fi
9572   else
9573     with_gnu_ld=no
9574     wlarc=
9575
9576     # A generic and very simple default shared library creation
9577     # command for GNU C++ for the case where it uses the native
9578     # linker, instead of GNU ld.  If possible, this setting should
9579     # overridden to take advantage of the native linker features on
9580     # the platform it is being used on.
9581     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9582   fi
9583
9584   # Commands to make compiler produce verbose output that lists
9585   # what "hidden" libraries, object files and flags are used when
9586   # linking a shared library.
9587   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9588
9589 else
9590   GXX=no
9591   with_gnu_ld=no
9592   wlarc=
9593 fi
9594
9595 # PORTME: fill in a description of your system's C++ link characteristics
9596 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9597 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9598 ld_shlibs_CXX=yes
9599 case $host_os in
9600   aix3*)
9601     # FIXME: insert proper C++ library support
9602     ld_shlibs_CXX=no
9603     ;;
9604   aix4* | aix5*)
9605     if test "$host_cpu" = ia64; then
9606       # On IA64, the linker does run time linking by default, so we don't
9607       # have to do anything special.
9608       aix_use_runtimelinking=no
9609       exp_sym_flag='-Bexport'
9610       no_entry_flag=""
9611     else
9612       aix_use_runtimelinking=no
9613
9614       # Test if we are trying to use run time linking or normal
9615       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9616       # need to do runtime linking.
9617       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9618         for ld_flag in $LDFLAGS; do
9619           case $ld_flag in
9620           *-brtl*)
9621             aix_use_runtimelinking=yes
9622             break
9623             ;;
9624           esac
9625         done
9626       esac
9627
9628       exp_sym_flag='-bexport'
9629       no_entry_flag='-bnoentry'
9630     fi
9631
9632     # When large executables or shared objects are built, AIX ld can
9633     # have problems creating the table of contents.  If linking a library
9634     # or program results in "error TOC overflow" add -mminimal-toc to
9635     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9636     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9637
9638     archive_cmds_CXX=''
9639     hardcode_direct_CXX=yes
9640     hardcode_libdir_separator_CXX=':'
9641     link_all_deplibs_CXX=yes
9642
9643     if test "$GXX" = yes; then
9644       case $host_os in aix4.012|aix4.012.*)
9645       # We only want to do this on AIX 4.2 and lower, the check
9646       # below for broken collect2 doesn't work under 4.3+
9647         collect2name=`${CC} -print-prog-name=collect2`
9648         if test -f "$collect2name" && \
9649            strings "$collect2name" | grep resolve_lib_name >/dev/null
9650         then
9651           # We have reworked collect2
9652           hardcode_direct_CXX=yes
9653         else
9654           # We have old collect2
9655           hardcode_direct_CXX=unsupported
9656           # It fails to find uninstalled libraries when the uninstalled
9657           # path is not listed in the libpath.  Setting hardcode_minus_L
9658           # to unsupported forces relinking
9659           hardcode_minus_L_CXX=yes
9660           hardcode_libdir_flag_spec_CXX='-L$libdir'
9661           hardcode_libdir_separator_CXX=
9662         fi
9663       esac
9664       shared_flag='-shared'
9665     else
9666       # not using gcc
9667       if test "$host_cpu" = ia64; then
9668         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9669         # chokes on -Wl,-G. The following line is correct:
9670         shared_flag='-G'
9671       else
9672         if test "$aix_use_runtimelinking" = yes; then
9673           shared_flag='${wl}-G'
9674         else
9675           shared_flag='${wl}-bM:SRE'
9676         fi
9677       fi
9678     fi
9679
9680     # It seems that -bexpall does not export symbols beginning with
9681     # underscore (_), so it is better to generate a list of symbols to export.
9682     always_export_symbols_CXX=yes
9683     if test "$aix_use_runtimelinking" = yes; then
9684       # Warning - without using the other runtime loading flags (-brtl),
9685       # -berok will link without error, but may produce a broken library.
9686       allow_undefined_flag_CXX='-berok'
9687       # Determine the default libpath from the value encoded in an empty executable.
9688       cat >conftest.$ac_ext <<_ACEOF
9689 #line $LINENO "configure"
9690 /* confdefs.h.  */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h.  */
9695
9696 int
9697 main ()
9698 {
9699
9700   ;
9701   return 0;
9702 }
9703 _ACEOF
9704 rm -f conftest.$ac_objext conftest$ac_exeext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9706   (eval $ac_link) 2>&5
9707   ac_status=$?
9708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709   (exit $ac_status); } &&
9710          { ac_try='test -s conftest$ac_exeext'
9711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712   (eval $ac_try) 2>&5
9713   ac_status=$?
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); }; }; then
9716
9717 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9718 }'`
9719 # Check for a 64-bit object if we didn't find anything.
9720 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; }
9721 }'`; fi
9722 else
9723   echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726 fi
9727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9728 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9729
9730       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9731
9732       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"
9733      else
9734       if test "$host_cpu" = ia64; then
9735         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9736         allow_undefined_flag_CXX="-z nodefs"
9737         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"
9738       else
9739         # Determine the default libpath from the value encoded in an empty executable.
9740         cat >conftest.$ac_ext <<_ACEOF
9741 #line $LINENO "configure"
9742 /* confdefs.h.  */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h.  */
9747
9748 int
9749 main ()
9750 {
9751
9752   ;
9753   return 0;
9754 }
9755 _ACEOF
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758   (eval $ac_link) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); } &&
9762          { ac_try='test -s conftest$ac_exeext'
9763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764   (eval $ac_try) 2>&5
9765   ac_status=$?
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); }; }; then
9768
9769 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9770 }'`
9771 # Check for a 64-bit object if we didn't find anything.
9772 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; }
9773 }'`; fi
9774 else
9775   echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9777
9778 fi
9779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9780 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9781
9782         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9783         # Warning - without using the other run time loading flags,
9784         # -berok will link without error, but may produce a broken library.
9785         no_undefined_flag_CXX=' ${wl}-bernotok'
9786         allow_undefined_flag_CXX=' ${wl}-berok'
9787         # -bexpall does not export symbols beginning with underscore (_)
9788         always_export_symbols_CXX=yes
9789         # Exported symbols can be pulled into shared objects from archives
9790         whole_archive_flag_spec_CXX=' '
9791         archive_cmds_need_lc_CXX=yes
9792         # This is similar to how AIX traditionally builds it's shared libraries.
9793         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'
9794       fi
9795     fi
9796     ;;
9797   chorus*)
9798     case $cc_basename in
9799       *)
9800         # FIXME: insert proper C++ library support
9801         ld_shlibs_CXX=no
9802         ;;
9803     esac
9804     ;;
9805
9806   cygwin* | mingw* | pw32*)
9807     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9808     # as there is no search path for DLLs.
9809     hardcode_libdir_flag_spec_CXX='-L$libdir'
9810     allow_undefined_flag_CXX=unsupported
9811     always_export_symbols_CXX=no
9812     enable_shared_with_static_runtimes_CXX=yes
9813
9814     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9815       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'
9816       # If the export-symbols file already is a .def file (1st line
9817       # is EXPORTS), use it as is; otherwise, prepend...
9818       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9819         cp $export_symbols $output_objdir/$soname.def;
9820       else
9821         echo EXPORTS > $output_objdir/$soname.def;
9822         cat $export_symbols >> $output_objdir/$soname.def;
9823       fi~
9824       $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'
9825     else
9826       ld_shlibs_CXX=no
9827     fi
9828   ;;
9829
9830   darwin* | rhapsody*)
9831    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9832     archive_cmds_need_lc_CXX=no
9833     case "$host_os" in
9834     rhapsody* | darwin1.[012])
9835       allow_undefined_flag_CXX='-undefined suppress'
9836       ;;
9837     *) # Darwin 1.3 on
9838       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9839       ;;
9840     esac
9841         lt_int_apple_cc_single_mod=no
9842         output_verbose_link_cmd='echo'
9843         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9844           lt_int_apple_cc_single_mod=yes
9845         fi
9846         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9847           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9848         else
9849         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'
9850       fi
9851       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9852
9853     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9854       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9855         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}'
9856       else
9857         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}'
9858       fi
9859         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}'
9860     hardcode_direct_CXX=no
9861     hardcode_automatic_CXX=yes
9862     hardcode_shlibpath_var_CXX=unsupported
9863     whole_archive_flag_spec_CXX='-all_load $convenience'
9864     link_all_deplibs_CXX=yes
9865    fi
9866     ;;
9867
9868   dgux*)
9869     case $cc_basename in
9870       ec++)
9871         # FIXME: insert proper C++ library support
9872         ld_shlibs_CXX=no
9873         ;;
9874       ghcx)
9875         # Green Hills C++ Compiler
9876         # FIXME: insert proper C++ library support
9877         ld_shlibs_CXX=no
9878         ;;
9879       *)
9880         # FIXME: insert proper C++ library support
9881         ld_shlibs_CXX=no
9882         ;;
9883     esac
9884     ;;
9885   freebsd12*)
9886     # C++ shared libraries reported to be fairly broken before switch to ELF
9887     ld_shlibs_CXX=no
9888     ;;
9889   freebsd-elf*)
9890     archive_cmds_need_lc_CXX=no
9891     ;;
9892   freebsd*)
9893     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9894     # conventions
9895     ld_shlibs_CXX=yes
9896     ;;
9897   gnu*)
9898     ;;
9899   hpux9*)
9900     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9901     hardcode_libdir_separator_CXX=:
9902     export_dynamic_flag_spec_CXX='${wl}-E'
9903     hardcode_direct_CXX=yes
9904     hardcode_minus_L_CXX=yes # Not in the search PATH,
9905                                 # but as the default
9906                                 # location of the library.
9907
9908     case $cc_basename in
9909     CC)
9910       # FIXME: insert proper C++ library support
9911       ld_shlibs_CXX=no
9912       ;;
9913     aCC)
9914       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'
9915       # Commands to make compiler produce verbose output that lists
9916       # what "hidden" libraries, object files and flags are used when
9917       # linking a shared library.
9918       #
9919       # There doesn't appear to be a way to prevent this compiler from
9920       # explicitly linking system object files so we need to strip them
9921       # from the output so that they don't get included in the library
9922       # dependencies.
9923       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'
9924       ;;
9925     *)
9926       if test "$GXX" = yes; then
9927         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'
9928       else
9929         # FIXME: insert proper C++ library support
9930         ld_shlibs_CXX=no
9931       fi
9932       ;;
9933     esac
9934     ;;
9935   hpux10*|hpux11*)
9936     if test $with_gnu_ld = no; then
9937       case "$host_cpu" in
9938       hppa*64*)
9939         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9940         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9941         hardcode_libdir_separator_CXX=:
9942         ;;
9943       ia64*)
9944         hardcode_libdir_flag_spec_CXX='-L$libdir'
9945         ;;
9946       *)
9947         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9948         hardcode_libdir_separator_CXX=:
9949         export_dynamic_flag_spec_CXX='${wl}-E'
9950         ;;
9951       esac
9952     fi
9953     case "$host_cpu" in
9954     hppa*64*)
9955       hardcode_direct_CXX=no
9956       hardcode_shlibpath_var_CXX=no
9957       ;;
9958     ia64*)
9959       hardcode_direct_CXX=no
9960       hardcode_shlibpath_var_CXX=no
9961       hardcode_minus_L_CXX=yes # Not in the search PATH,
9962                                               # but as the default
9963                                               # location of the library.
9964       ;;
9965     *)
9966       hardcode_direct_CXX=yes
9967       hardcode_minus_L_CXX=yes # Not in the search PATH,
9968                                               # but as the default
9969                                               # location of the library.
9970       ;;
9971     esac
9972
9973     case $cc_basename in
9974       CC)
9975         # FIXME: insert proper C++ library support
9976         ld_shlibs_CXX=no
9977         ;;
9978       aCC)
9979         case "$host_cpu" in
9980         hppa*64*|ia64*)
9981           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9982           ;;
9983         *)
9984           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9985           ;;
9986         esac
9987         # Commands to make compiler produce verbose output that lists
9988         # what "hidden" libraries, object files and flags are used when
9989         # linking a shared library.
9990         #
9991         # There doesn't appear to be a way to prevent this compiler from
9992         # explicitly linking system object files so we need to strip them
9993         # from the output so that they don't get included in the library
9994         # dependencies.
9995         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'
9996         ;;
9997       *)
9998         if test "$GXX" = yes; then
9999           if test $with_gnu_ld = no; then
10000             case "$host_cpu" in
10001             ia64*|hppa*64*)
10002               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10003               ;;
10004             *)
10005               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'
10006               ;;
10007             esac
10008           fi
10009         else
10010           # FIXME: insert proper C++ library support
10011           ld_shlibs_CXX=no
10012         fi
10013         ;;
10014     esac
10015     ;;
10016   irix5* | irix6*)
10017     case $cc_basename in
10018       CC)
10019         # SGI C++
10020         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'
10021
10022         # Archives containing C++ object files must be created using
10023         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10024         # necessary to make sure instantiated templates are included
10025         # in the archive.
10026         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10027         ;;
10028       *)
10029         if test "$GXX" = yes; then
10030           if test "$with_gnu_ld" = no; then
10031             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'
10032           else
10033             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'
10034           fi
10035         fi
10036         link_all_deplibs_CXX=yes
10037         ;;
10038     esac
10039     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10040     hardcode_libdir_separator_CXX=:
10041     ;;
10042   linux*)
10043     case $cc_basename in
10044       KCC)
10045         # Kuck and Associates, Inc. (KAI) C++ Compiler
10046
10047         # KCC will only create a shared library if the output file
10048         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10049         # to its proper name (with version) after linking.
10050         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'
10051         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'
10052         # Commands to make compiler produce verbose output that lists
10053         # what "hidden" libraries, object files and flags are used when
10054         # linking a shared library.
10055         #
10056         # There doesn't appear to be a way to prevent this compiler from
10057         # explicitly linking system object files so we need to strip them
10058         # from the output so that they don't get included in the library
10059         # dependencies.
10060         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'
10061
10062         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10063         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10064
10065         # Archives containing C++ object files must be created using
10066         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10067         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10068         ;;
10069       icpc)
10070         # Intel C++
10071         with_gnu_ld=yes
10072         archive_cmds_need_lc_CXX=no
10073         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10074         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'
10075         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10076         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10077         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10078         ;;
10079       cxx)
10080         # Compaq C++
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  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10083
10084         runpath_var=LD_RUN_PATH
10085         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10086         hardcode_libdir_separator_CXX=:
10087
10088         # Commands to make compiler produce verbose output that lists
10089         # what "hidden" libraries, object files and flags are used when
10090         # linking a shared library.
10091         #
10092         # There doesn't appear to be a way to prevent this compiler from
10093         # explicitly linking system object files so we need to strip them
10094         # from the output so that they don't get included in the library
10095         # dependencies.
10096         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'
10097         ;;
10098     esac
10099     ;;
10100   lynxos*)
10101     # FIXME: insert proper C++ library support
10102     ld_shlibs_CXX=no
10103     ;;
10104   m88k*)
10105     # FIXME: insert proper C++ library support
10106     ld_shlibs_CXX=no
10107     ;;
10108   mvs*)
10109     case $cc_basename in
10110       cxx)
10111         # FIXME: insert proper C++ library support
10112         ld_shlibs_CXX=no
10113         ;;
10114       *)
10115         # FIXME: insert proper C++ library support
10116         ld_shlibs_CXX=no
10117         ;;
10118     esac
10119     ;;
10120   netbsd*)
10121     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10122       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10123       wlarc=
10124       hardcode_libdir_flag_spec_CXX='-R$libdir'
10125       hardcode_direct_CXX=yes
10126       hardcode_shlibpath_var_CXX=no
10127     fi
10128     # Workaround some broken pre-1.5 toolchains
10129     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10130     ;;
10131   osf3*)
10132     case $cc_basename in
10133       KCC)
10134         # Kuck and Associates, Inc. (KAI) C++ Compiler
10135
10136         # KCC will only create a shared library if the output file
10137         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10138         # to its proper name (with version) after linking.
10139         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'
10140
10141         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10142         hardcode_libdir_separator_CXX=:
10143
10144         # Archives containing C++ object files must be created using
10145         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10146         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10147
10148         ;;
10149       RCC)
10150         # Rational C++ 2.4.1
10151         # FIXME: insert proper C++ library support
10152         ld_shlibs_CXX=no
10153         ;;
10154       cxx)
10155         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10156         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'
10157
10158         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10159         hardcode_libdir_separator_CXX=:
10160
10161         # Commands to make compiler produce verbose output that lists
10162         # what "hidden" libraries, object files and flags are used when
10163         # linking a shared library.
10164         #
10165         # There doesn't appear to be a way to prevent this compiler from
10166         # explicitly linking system object files so we need to strip them
10167         # from the output so that they don't get included in the library
10168         # dependencies.
10169         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'
10170         ;;
10171       *)
10172         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10173           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10174           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'
10175
10176           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10177           hardcode_libdir_separator_CXX=:
10178
10179           # Commands to make compiler produce verbose output that lists
10180           # what "hidden" libraries, object files and flags are used when
10181           # linking a shared library.
10182           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10183
10184         else
10185           # FIXME: insert proper C++ library support
10186           ld_shlibs_CXX=no
10187         fi
10188         ;;
10189     esac
10190     ;;
10191   osf4* | osf5*)
10192     case $cc_basename in
10193       KCC)
10194         # Kuck and Associates, Inc. (KAI) C++ Compiler
10195
10196         # KCC will only create a shared library if the output file
10197         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10198         # to its proper name (with version) after linking.
10199         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'
10200
10201         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10202         hardcode_libdir_separator_CXX=:
10203
10204         # Archives containing C++ object files must be created using
10205         # the KAI C++ compiler.
10206         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10207         ;;
10208       RCC)
10209         # Rational C++ 2.4.1
10210         # FIXME: insert proper C++ library support
10211         ld_shlibs_CXX=no
10212         ;;
10213       cxx)
10214         allow_undefined_flag_CXX=' -expect_unresolved \*'
10215         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'
10216         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10217           echo "-hidden">> $lib.exp~
10218           $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~
10219           $rm $lib.exp'
10220
10221         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10222         hardcode_libdir_separator_CXX=:
10223
10224         # Commands to make compiler produce verbose output that lists
10225         # what "hidden" libraries, object files and flags are used when
10226         # linking a shared library.
10227         #
10228         # There doesn't appear to be a way to prevent this compiler from
10229         # explicitly linking system object files so we need to strip them
10230         # from the output so that they don't get included in the library
10231         # dependencies.
10232         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'
10233         ;;
10234       *)
10235         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10236           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10237          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'
10238
10239           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10240           hardcode_libdir_separator_CXX=:
10241
10242           # Commands to make compiler produce verbose output that lists
10243           # what "hidden" libraries, object files and flags are used when
10244           # linking a shared library.
10245           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10246
10247         else
10248           # FIXME: insert proper C++ library support
10249           ld_shlibs_CXX=no
10250         fi
10251         ;;
10252     esac
10253     ;;
10254   psos*)
10255     # FIXME: insert proper C++ library support
10256     ld_shlibs_CXX=no
10257     ;;
10258   sco*)
10259     archive_cmds_need_lc_CXX=no
10260     case $cc_basename in
10261       CC)
10262         # FIXME: insert proper C++ library support
10263         ld_shlibs_CXX=no
10264         ;;
10265       *)
10266         # FIXME: insert proper C++ library support
10267         ld_shlibs_CXX=no
10268         ;;
10269     esac
10270     ;;
10271   sunos4*)
10272     case $cc_basename in
10273       CC)
10274         # Sun C++ 4.x
10275         # FIXME: insert proper C++ library support
10276         ld_shlibs_CXX=no
10277         ;;
10278       lcc)
10279         # Lucid
10280         # FIXME: insert proper C++ library support
10281         ld_shlibs_CXX=no
10282         ;;
10283       *)
10284         # FIXME: insert proper C++ library support
10285         ld_shlibs_CXX=no
10286         ;;
10287     esac
10288     ;;
10289   solaris*)
10290     case $cc_basename in
10291       CC)
10292         # Sun C++ 4.2, 5.x and Centerline C++
10293         no_undefined_flag_CXX=' -zdefs'
10294         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10295         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10296         $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'
10297
10298         hardcode_libdir_flag_spec_CXX='-R$libdir'
10299         hardcode_shlibpath_var_CXX=no
10300         case $host_os in
10301           solaris2.0-5 | solaris2.0-5.*) ;;
10302           *)
10303             # The C++ compiler is used as linker so we must use $wl
10304             # flag to pass the commands to the underlying system
10305             # linker.
10306             # Supported since Solaris 2.6 (maybe 2.5.1?)
10307             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10308             ;;
10309         esac
10310         link_all_deplibs_CXX=yes
10311
10312         # Commands to make compiler produce verbose output that lists
10313         # what "hidden" libraries, object files and flags are used when
10314         # linking a shared library.
10315         #
10316         # There doesn't appear to be a way to prevent this compiler from
10317         # explicitly linking system object files so we need to strip them
10318         # from the output so that they don't get included in the library
10319         # dependencies.
10320         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'
10321
10322         # Archives containing C++ object files must be created using
10323         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10324         # necessary to make sure instantiated templates are included
10325         # in the archive.
10326         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10327         ;;
10328       gcx)
10329         # Green Hills C++ Compiler
10330         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10331
10332         # The C++ compiler must be used to create the archive.
10333         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10334         ;;
10335       *)
10336         # GNU C++ compiler with Solaris linker
10337         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10338           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10339           if $CC --version | grep -v '^2\.7' > /dev/null; then
10340             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10341             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10342                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10343
10344             # Commands to make compiler produce verbose output that lists
10345             # what "hidden" libraries, object files and flags are used when
10346             # linking a shared library.
10347             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10348           else
10349             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10350             # platform.
10351             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10352             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10353                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10354
10355             # Commands to make compiler produce verbose output that lists
10356             # what "hidden" libraries, object files and flags are used when
10357             # linking a shared library.
10358             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10359           fi
10360
10361           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10362         fi
10363         ;;
10364     esac
10365     ;;
10366   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10367     archive_cmds_need_lc_CXX=no
10368     ;;
10369   tandem*)
10370     case $cc_basename in
10371       NCC)
10372         # NonStop-UX NCC 3.20
10373         # FIXME: insert proper C++ library support
10374         ld_shlibs_CXX=no
10375         ;;
10376       *)
10377         # FIXME: insert proper C++ library support
10378         ld_shlibs_CXX=no
10379         ;;
10380     esac
10381     ;;
10382   vxworks*)
10383     # FIXME: insert proper C++ library support
10384     ld_shlibs_CXX=no
10385     ;;
10386   *)
10387     # FIXME: insert proper C++ library support
10388     ld_shlibs_CXX=no
10389     ;;
10390 esac
10391 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10392 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10393 test "$ld_shlibs_CXX" = no && can_build_shared=no
10394
10395 GCC_CXX="$GXX"
10396 LD_CXX="$LD"
10397
10398 ## CAVEAT EMPTOR:
10399 ## There is no encapsulation within the following macros, do not change
10400 ## the running order or otherwise move them around unless you know exactly
10401 ## what you are doing...
10402
10403 cat > conftest.$ac_ext <<EOF
10404 class Foo
10405 {
10406 public:
10407   Foo (void) { a = 0; }
10408 private:
10409   int a;
10410 };
10411 EOF
10412
10413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10414   (eval $ac_compile) 2>&5
10415   ac_status=$?
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); }; then
10418   # Parse the compiler output and extract the necessary
10419   # objects, libraries and library flags.
10420
10421   # Sentinel used to keep track of whether or not we are before
10422   # the conftest object file.
10423   pre_test_object_deps_done=no
10424
10425   # The `*' in the case matches for architectures that use `case' in
10426   # $output_verbose_cmd can trigger glob expansion during the loop
10427   # eval without this substitution.
10428   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10429
10430   for p in `eval $output_verbose_link_cmd`; do
10431     case $p in
10432
10433     -L* | -R* | -l*)
10434        # Some compilers place space between "-{L,R}" and the path.
10435        # Remove the space.
10436        if test $p = "-L" \
10437           || test $p = "-R"; then
10438          prev=$p
10439          continue
10440        else
10441          prev=
10442        fi
10443
10444        if test "$pre_test_object_deps_done" = no; then
10445          case $p in
10446          -L* | -R*)
10447            # Internal compiler library paths should come after those
10448            # provided the user.  The postdeps already come after the
10449            # user supplied libs so there is no need to process them.
10450            if test -z "$compiler_lib_search_path_CXX"; then
10451              compiler_lib_search_path_CXX="${prev}${p}"
10452            else
10453              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10454            fi
10455            ;;
10456          # The "-l" case would never come before the object being
10457          # linked, so don't bother handling this case.
10458          esac
10459        else
10460          if test -z "$postdeps_CXX"; then
10461            postdeps_CXX="${prev}${p}"
10462          else
10463            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10464          fi
10465        fi
10466        ;;
10467
10468     *.$objext)
10469        # This assumes that the test object file only shows up
10470        # once in the compiler output.
10471        if test "$p" = "conftest.$objext"; then
10472          pre_test_object_deps_done=yes
10473          continue
10474        fi
10475
10476        if test "$pre_test_object_deps_done" = no; then
10477          if test -z "$predep_objects_CXX"; then
10478            predep_objects_CXX="$p"
10479          else
10480            predep_objects_CXX="$predep_objects_CXX $p"
10481          fi
10482        else
10483          if test -z "$postdep_objects_CXX"; then
10484            postdep_objects_CXX="$p"
10485          else
10486            postdep_objects_CXX="$postdep_objects_CXX $p"
10487          fi
10488        fi
10489        ;;
10490
10491     *) ;; # Ignore the rest.
10492
10493     esac
10494   done
10495
10496   # Clean up.
10497   rm -f a.out a.exe
10498 else
10499   echo "libtool.m4: error: problem compiling CXX test program"
10500 fi
10501
10502 $rm -f confest.$objext
10503
10504 case " $postdeps_CXX " in
10505 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10506 esac
10507
10508 lt_prog_compiler_wl_CXX=
10509 lt_prog_compiler_pic_CXX=
10510 lt_prog_compiler_static_CXX=
10511
10512 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10513 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10514
10515   # C++ specific cases for pic, static, wl, etc.
10516   if test "$GXX" = yes; then
10517     lt_prog_compiler_wl_CXX='-Wl,'
10518     lt_prog_compiler_static_CXX='-static'
10519
10520     case $host_os in
10521     aix*)
10522       # All AIX code is PIC.
10523       if test "$host_cpu" = ia64; then
10524         # AIX 5 now supports IA64 processor
10525         lt_prog_compiler_static_CXX='-Bstatic'
10526       fi
10527       ;;
10528     amigaos*)
10529       # FIXME: we need at least 68020 code to build shared libraries, but
10530       # adding the `-m68020' flag to GCC prevents building anything better,
10531       # like `-m68040'.
10532       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10533       ;;
10534     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10535       # PIC is the default for these OSes.
10536       ;;
10537     mingw* | os2* | pw32*)
10538       # This hack is so that the source file can tell whether it is being
10539       # built for inclusion in a dll (and should export symbols for example).
10540       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10541       ;;
10542     darwin* | rhapsody*)
10543       # PIC is the default on this platform
10544       # Common symbols not allowed in MH_DYLIB files
10545       lt_prog_compiler_pic_CXX='-fno-common'
10546       ;;
10547     *djgpp*)
10548       # DJGPP does not support shared libraries at all
10549       lt_prog_compiler_pic_CXX=
10550       ;;
10551     sysv4*MP*)
10552       if test -d /usr/nec; then
10553         lt_prog_compiler_pic_CXX=-Kconform_pic
10554       fi
10555       ;;
10556     hpux*)
10557       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10558       # not for PA HP-UX.
10559       case "$host_cpu" in
10560       hppa*64*|ia64*)
10561         ;;
10562       *)
10563         lt_prog_compiler_pic_CXX='-fPIC'
10564         ;;
10565       esac
10566       ;;
10567     *)
10568       lt_prog_compiler_pic_CXX='-fPIC'
10569       ;;
10570     esac
10571   else
10572     case $host_os in
10573       aix4* | aix5*)
10574         # All AIX code is PIC.
10575         if test "$host_cpu" = ia64; then
10576           # AIX 5 now supports IA64 processor
10577           lt_prog_compiler_static_CXX='-Bstatic'
10578         else
10579           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10580         fi
10581         ;;
10582       chorus*)
10583         case $cc_basename in
10584         cxch68)
10585           # Green Hills C++ Compiler
10586           # _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"
10587           ;;
10588         esac
10589         ;;
10590       dgux*)
10591         case $cc_basename in
10592           ec++)
10593             lt_prog_compiler_pic_CXX='-KPIC'
10594             ;;
10595           ghcx)
10596             # Green Hills C++ Compiler
10597             lt_prog_compiler_pic_CXX='-pic'
10598             ;;
10599           *)
10600             ;;
10601         esac
10602         ;;
10603       freebsd*)
10604         # FreeBSD uses GNU C++
10605         ;;
10606       hpux9* | hpux10* | hpux11*)
10607         case $cc_basename in
10608           CC)
10609             lt_prog_compiler_wl_CXX='-Wl,'
10610             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10611             if test "$host_cpu" != ia64; then
10612               lt_prog_compiler_pic_CXX='+Z'
10613             fi
10614             ;;
10615           aCC)
10616             lt_prog_compiler_wl_CXX='-Wl,'
10617             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10618             case "$host_cpu" in
10619             hppa*64*|ia64*)
10620               # +Z the default
10621               ;;
10622             *)
10623               lt_prog_compiler_pic_CXX='+Z'
10624               ;;
10625             esac
10626             ;;
10627           *)
10628             ;;
10629         esac
10630         ;;
10631       irix5* | irix6* | nonstopux*)
10632         case $cc_basename in
10633           CC)
10634             lt_prog_compiler_wl_CXX='-Wl,'
10635             lt_prog_compiler_static_CXX='-non_shared'
10636             # CC pic flag -KPIC is the default.
10637             ;;
10638           *)
10639             ;;
10640         esac
10641         ;;
10642       linux*)
10643         case $cc_basename in
10644           KCC)
10645             # KAI C++ Compiler
10646             lt_prog_compiler_wl_CXX='--backend -Wl,'
10647             lt_prog_compiler_pic_CXX='-fPIC'
10648             ;;
10649           icpc)
10650             # Intel C++
10651             lt_prog_compiler_wl_CXX='-Wl,'
10652             lt_prog_compiler_pic_CXX='-KPIC'
10653             lt_prog_compiler_static_CXX='-static'
10654             ;;
10655           cxx)
10656             # Compaq C++
10657             # Make sure the PIC flag is empty.  It appears that all Alpha
10658             # Linux and Compaq Tru64 Unix objects are PIC.
10659             lt_prog_compiler_pic_CXX=
10660             lt_prog_compiler_static_CXX='-non_shared'
10661             ;;
10662           *)
10663             ;;
10664         esac
10665         ;;
10666       lynxos*)
10667         ;;
10668       m88k*)
10669         ;;
10670       mvs*)
10671         case $cc_basename in
10672           cxx)
10673             lt_prog_compiler_pic_CXX='-W c,exportall'
10674             ;;
10675           *)
10676             ;;
10677         esac
10678         ;;
10679       netbsd*)
10680         ;;
10681       osf3* | osf4* | osf5*)
10682         case $cc_basename in
10683           KCC)
10684             lt_prog_compiler_wl_CXX='--backend -Wl,'
10685             ;;
10686           RCC)
10687             # Rational C++ 2.4.1
10688             lt_prog_compiler_pic_CXX='-pic'
10689             ;;
10690           cxx)
10691             # Digital/Compaq C++
10692             lt_prog_compiler_wl_CXX='-Wl,'
10693             # Make sure the PIC flag is empty.  It appears that all Alpha
10694             # Linux and Compaq Tru64 Unix objects are PIC.
10695             lt_prog_compiler_pic_CXX=
10696             lt_prog_compiler_static_CXX='-non_shared'
10697             ;;
10698           *)
10699             ;;
10700         esac
10701         ;;
10702       psos*)
10703         ;;
10704       sco*)
10705         case $cc_basename in
10706           CC)
10707             lt_prog_compiler_pic_CXX='-fPIC'
10708             ;;
10709           *)
10710             ;;
10711         esac
10712         ;;
10713       solaris*)
10714         case $cc_basename in
10715           CC)
10716             # Sun C++ 4.2, 5.x and Centerline C++
10717             lt_prog_compiler_pic_CXX='-KPIC'
10718             lt_prog_compiler_static_CXX='-Bstatic'
10719             lt_prog_compiler_wl_CXX='-Qoption ld '
10720             ;;
10721           gcx)
10722             # Green Hills C++ Compiler
10723             lt_prog_compiler_pic_CXX='-PIC'
10724             ;;
10725           *)
10726             ;;
10727         esac
10728         ;;
10729       sunos4*)
10730         case $cc_basename in
10731           CC)
10732             # Sun C++ 4.x
10733             lt_prog_compiler_pic_CXX='-pic'
10734             lt_prog_compiler_static_CXX='-Bstatic'
10735             ;;
10736           lcc)
10737             # Lucid
10738             lt_prog_compiler_pic_CXX='-pic'
10739             ;;
10740           *)
10741             ;;
10742         esac
10743         ;;
10744       tandem*)
10745         case $cc_basename in
10746           NCC)
10747             # NonStop-UX NCC 3.20
10748             lt_prog_compiler_pic_CXX='-KPIC'
10749             ;;
10750           *)
10751             ;;
10752         esac
10753         ;;
10754       unixware*)
10755         ;;
10756       vxworks*)
10757         ;;
10758       *)
10759         lt_prog_compiler_can_build_shared_CXX=no
10760         ;;
10761     esac
10762   fi
10763
10764 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10765 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10766
10767 #
10768 # Check to make sure the PIC flag actually works.
10769 #
10770 if test -n "$lt_prog_compiler_pic_CXX"; then
10771   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10772 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10773 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10774   echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776   lt_prog_compiler_pic_works_CXX=no
10777   ac_outfile=conftest.$ac_objext
10778    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10779    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10780    # Insert the option either (1) after the last *FLAGS variable, or
10781    # (2) before a word containing "conftest.", or (3) at the end.
10782    # Note that $ac_compile itself does not contain backslashes and begins
10783    # with a dollar sign (not a hyphen), so the echo should work correctly.
10784    # The option is referenced via a variable to avoid confusing sed.
10785    lt_compile=`echo "$ac_compile" | $SED \
10786    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10787    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10788    -e 's:$: $lt_compiler_flag:'`
10789    (eval echo "\"\$as_me:10789: $lt_compile\"" >&5)
10790    (eval "$lt_compile" 2>conftest.err)
10791    ac_status=$?
10792    cat conftest.err >&5
10793    echo "$as_me:10793: \$? = $ac_status" >&5
10794    if (exit $ac_status) && test -s "$ac_outfile"; then
10795      # The compiler can only warn and ignore the option if not recognized
10796      # So say no if there are warnings
10797      if test ! -s conftest.err; then
10798        lt_prog_compiler_pic_works_CXX=yes
10799      fi
10800    fi
10801    $rm conftest*
10802
10803 fi
10804 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10805 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10806
10807 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10808     case $lt_prog_compiler_pic_CXX in
10809      "" | " "*) ;;
10810      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10811      esac
10812 else
10813     lt_prog_compiler_pic_CXX=
10814      lt_prog_compiler_can_build_shared_CXX=no
10815 fi
10816
10817 fi
10818 case "$host_os" in
10819   # For platforms which do not support PIC, -DPIC is meaningless:
10820   *djgpp*)
10821     lt_prog_compiler_pic_CXX=
10822     ;;
10823   *)
10824     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10825     ;;
10826 esac
10827
10828 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10829 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10830 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10831   echo $ECHO_N "(cached) $ECHO_C" >&6
10832 else
10833   lt_cv_prog_compiler_c_o_CXX=no
10834    $rm -r conftest 2>/dev/null
10835    mkdir conftest
10836    cd conftest
10837    mkdir out
10838    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10839
10840    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10841    # that will create temporary files in the current directory regardless of
10842    # the output directory.  Thus, making CWD read-only will cause this test
10843    # to fail, enabling locking or at least warning the user not to do parallel
10844    # builds.
10845    chmod -w .
10846
10847    lt_compiler_flag="-o out/conftest2.$ac_objext"
10848    # Insert the option either (1) after the last *FLAGS variable, or
10849    # (2) before a word containing "conftest.", or (3) at the end.
10850    # Note that $ac_compile itself does not contain backslashes and begins
10851    # with a dollar sign (not a hyphen), so the echo should work correctly.
10852    lt_compile=`echo "$ac_compile" | $SED \
10853    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10854    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10855    -e 's:$: $lt_compiler_flag:'`
10856    (eval echo "\"\$as_me:10856: $lt_compile\"" >&5)
10857    (eval "$lt_compile" 2>out/conftest.err)
10858    ac_status=$?
10859    cat out/conftest.err >&5
10860    echo "$as_me:10860: \$? = $ac_status" >&5
10861    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10862    then
10863      # The compiler can only warn and ignore the option if not recognized
10864      # So say no if there are warnings
10865      if test ! -s out/conftest.err; then
10866        lt_cv_prog_compiler_c_o_CXX=yes
10867      fi
10868    fi
10869    chmod u+w .
10870    $rm conftest* out/*
10871    rmdir out
10872    cd ..
10873    rmdir conftest
10874    $rm conftest*
10875
10876 fi
10877 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10878 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10879
10880
10881 hard_links="nottested"
10882 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10883   # do not overwrite the value of need_locks provided by the user
10884   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10885 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10886   hard_links=yes
10887   $rm conftest*
10888   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10889   touch conftest.a
10890   ln conftest.a conftest.b 2>&5 || hard_links=no
10891   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10892   echo "$as_me:$LINENO: result: $hard_links" >&5
10893 echo "${ECHO_T}$hard_links" >&6
10894   if test "$hard_links" = no; then
10895     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10896 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10897     need_locks=warn
10898   fi
10899 else
10900   need_locks=no
10901 fi
10902
10903 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10904 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10905
10906   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10907   case $host_os in
10908   aix4* | aix5*)
10909     # If we're using GNU nm, then we don't want the "-C" option.
10910     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10911     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10912       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'
10913     else
10914       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'
10915     fi
10916     ;;
10917   pw32*)
10918     export_symbols_cmds_CXX="$ltdll_cmds"
10919   ;;
10920   cygwin* | mingw*)
10921     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10922   ;;
10923   *)
10924     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10925   ;;
10926   esac
10927
10928 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10929 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10930 test "$ld_shlibs_CXX" = no && can_build_shared=no
10931
10932 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10933 if test "$GCC" = yes; then
10934   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10935 fi
10936
10937 #
10938 # Do we need to explicitly link libc?
10939 #
10940 case "x$archive_cmds_need_lc_CXX" in
10941 x|xyes)
10942   # Assume -lc should be added
10943   archive_cmds_need_lc_CXX=yes
10944
10945   if test "$enable_shared" = yes && test "$GCC" = yes; then
10946     case $archive_cmds_CXX in
10947     *'~'*)
10948       # FIXME: we may have to deal with multi-command sequences.
10949       ;;
10950     '$CC '*)
10951       # Test whether the compiler implicitly links with -lc since on some
10952       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10953       # to ld, don't add -lc before -lgcc.
10954       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10955 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10956       $rm conftest*
10957       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10958
10959       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10960   (eval $ac_compile) 2>&5
10961   ac_status=$?
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); } 2>conftest.err; then
10964         soname=conftest
10965         lib=conftest
10966         libobjs=conftest.$ac_objext
10967         deplibs=
10968         wl=$lt_prog_compiler_wl_CXX
10969         compiler_flags=-v
10970         linker_flags=-v
10971         verstring=
10972         output_objdir=.
10973         libname=conftest
10974         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10975         allow_undefined_flag_CXX=
10976         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10977   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10978   ac_status=$?
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); }
10981         then
10982           archive_cmds_need_lc_CXX=no
10983         else
10984           archive_cmds_need_lc_CXX=yes
10985         fi
10986         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10987       else
10988         cat conftest.err 1>&5
10989       fi
10990       $rm conftest*
10991       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10992 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10993       ;;
10994     esac
10995   fi
10996   ;;
10997 esac
10998
10999 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11000 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11001 hardcode_action_CXX=
11002 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11003    test -n "$runpath_var CXX" || \
11004    test "X$hardcode_automatic_CXX"="Xyes" ; then
11005
11006   # We can hardcode non-existant directories.
11007   if test "$hardcode_direct_CXX" != no &&
11008      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11009      # have to relink, otherwise we might link with an installed library
11010      # when we should be linking with a yet-to-be-installed one
11011      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11012      test "$hardcode_minus_L_CXX" != no; then
11013     # Linking always hardcodes the temporary library directory.
11014     hardcode_action_CXX=relink
11015   else
11016     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11017     hardcode_action_CXX=immediate
11018   fi
11019 else
11020   # We cannot hardcode anything, or else we can only hardcode existing
11021   # directories.
11022   hardcode_action_CXX=unsupported
11023 fi
11024 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11025 echo "${ECHO_T}$hardcode_action_CXX" >&6
11026
11027 if test "$hardcode_action_CXX" = relink; then
11028   # Fast installation is not supported
11029   enable_fast_install=no
11030 elif test "$shlibpath_overrides_runpath" = yes ||
11031      test "$enable_shared" = no; then
11032   # Fast installation is not necessary
11033   enable_fast_install=needless
11034 fi
11035
11036 striplib=
11037 old_striplib=
11038 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11039 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11040 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11041   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11042   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11043   echo "$as_me:$LINENO: result: yes" >&5
11044 echo "${ECHO_T}yes" >&6
11045 else
11046 # FIXME - insert some real tests, host_os isn't really good enough
11047   case $host_os in
11048    darwin*)
11049        if test -n "$STRIP" ; then
11050          striplib="$STRIP -x"
11051          echo "$as_me:$LINENO: result: yes" >&5
11052 echo "${ECHO_T}yes" >&6
11053        else
11054   echo "$as_me:$LINENO: result: no" >&5
11055 echo "${ECHO_T}no" >&6
11056 fi
11057        ;;
11058    *)
11059   echo "$as_me:$LINENO: result: no" >&5
11060 echo "${ECHO_T}no" >&6
11061     ;;
11062   esac
11063 fi
11064
11065 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11066 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11067 library_names_spec=
11068 libname_spec='lib$name'
11069 soname_spec=
11070 shrext=".so"
11071 postinstall_cmds=
11072 postuninstall_cmds=
11073 finish_cmds=
11074 finish_eval=
11075 shlibpath_var=
11076 shlibpath_overrides_runpath=unknown
11077 version_type=none
11078 dynamic_linker="$host_os ld.so"
11079 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11080 if test "$GCC" = yes; then
11081   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11082   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11083     # if the path contains ";" then we assume it to be the separator
11084     # otherwise default to the standard path separator (i.e. ":") - it is
11085     # assumed that no part of a normal pathname contains ";" but that should
11086     # okay in the real world where ";" in dirpaths is itself problematic.
11087     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11088   else
11089     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11090   fi
11091 else
11092   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11093 fi
11094 need_lib_prefix=unknown
11095 hardcode_into_libs=no
11096
11097 # when you set need_version to no, make sure it does not cause -set_version
11098 # flags to be left without arguments
11099 need_version=unknown
11100
11101 case $host_os in
11102 aix3*)
11103   version_type=linux
11104   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11105   shlibpath_var=LIBPATH
11106
11107   # AIX 3 has no versioning support, so we append a major version to the name.
11108   soname_spec='${libname}${release}${shared_ext}$major'
11109   ;;
11110
11111 aix4* | aix5*)
11112   version_type=linux
11113   need_lib_prefix=no
11114   need_version=no
11115   hardcode_into_libs=yes
11116   if test "$host_cpu" = ia64; then
11117     # AIX 5 supports IA64
11118     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11119     shlibpath_var=LD_LIBRARY_PATH
11120   else
11121     # With GCC up to 2.95.x, collect2 would create an import file
11122     # for dependence libraries.  The import file would start with
11123     # the line `#! .'.  This would cause the generated library to
11124     # depend on `.', always an invalid library.  This was fixed in
11125     # development snapshots of GCC prior to 3.0.
11126     case $host_os in
11127       aix4 | aix4.[01] | aix4.[01].*)
11128       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11129            echo ' yes '
11130            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11131         :
11132       else
11133         can_build_shared=no
11134       fi
11135       ;;
11136     esac
11137     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11138     # soname into executable. Probably we can add versioning support to
11139     # collect2, so additional links can be useful in future.
11140     if test "$aix_use_runtimelinking" = yes; then
11141       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11142       # instead of lib<name>.a to let people know that these are not
11143       # typical AIX shared libraries.
11144       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145     else
11146       # We preserve .a as extension for shared libraries through AIX4.2
11147       # and later when we are not doing run time linking.
11148       library_names_spec='${libname}${release}.a $libname.a'
11149       soname_spec='${libname}${release}${shared_ext}$major'
11150     fi
11151     shlibpath_var=LIBPATH
11152   fi
11153   ;;
11154
11155 amigaos*)
11156   library_names_spec='$libname.ixlibrary $libname.a'
11157   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11158   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'
11159   ;;
11160
11161 beos*)
11162   library_names_spec='${libname}${shared_ext}'
11163   dynamic_linker="$host_os ld.so"
11164   shlibpath_var=LIBRARY_PATH
11165   ;;
11166
11167 bsdi4*)
11168   version_type=linux
11169   need_version=no
11170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171   soname_spec='${libname}${release}${shared_ext}$major'
11172   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11173   shlibpath_var=LD_LIBRARY_PATH
11174   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11175   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11176   # the default ld.so.conf also contains /usr/contrib/lib and
11177   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11178   # libtool to hard-code these into programs
11179   ;;
11180
11181 cygwin* | mingw* | pw32*)
11182   version_type=windows
11183   shrext=".dll"
11184   need_version=no
11185   need_lib_prefix=no
11186
11187   case $GCC,$host_os in
11188   yes,cygwin* | yes,mingw* | yes,pw32*)
11189     library_names_spec='$libname.dll.a'
11190     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11191     postinstall_cmds='base_file=`basename \${file}`~
11192       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11193       dldir=$destdir/`dirname \$dlpath`~
11194       test -d \$dldir || mkdir -p \$dldir~
11195       $install_prog $dir/$dlname \$dldir/$dlname'
11196     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11197       dlpath=$dir/\$dldll~
11198        $rm \$dlpath'
11199     shlibpath_overrides_runpath=yes
11200
11201     case $host_os in
11202     cygwin*)
11203       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11204       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11205       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11206       ;;
11207     mingw*)
11208       # MinGW DLLs use traditional 'lib' prefix
11209       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11210       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11211       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11212         # It is most probably a Windows format PATH printed by
11213         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11214         # path with ; separators, and with drive letters. We can handle the
11215         # drive letters (cygwin fileutils understands them), so leave them,
11216         # especially as we might pass files found there to a mingw objdump,
11217         # which wouldn't understand a cygwinified path. Ahh.
11218         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11219       else
11220         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11221       fi
11222       ;;
11223     pw32*)
11224       # pw32 DLLs use 'pw' prefix rather than 'lib'
11225       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11226       ;;
11227     esac
11228     ;;
11229
11230   *)
11231     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11232     ;;
11233   esac
11234   dynamic_linker='Win32 ld.exe'
11235   # FIXME: first we should search . and the directory the executable is in
11236   shlibpath_var=PATH
11237   ;;
11238
11239 darwin* | rhapsody*)
11240   dynamic_linker="$host_os dyld"
11241   version_type=darwin
11242   need_lib_prefix=no
11243   need_version=no
11244   # FIXME: Relying on posixy $() will cause problems for
11245   #        cross-compilation, but unfortunately the echo tests do not
11246   #        yet detect zsh echo's removal of \ escapes.
11247   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11248   soname_spec='${libname}${release}${major}$shared_ext'
11249   shlibpath_overrides_runpath=yes
11250   shlibpath_var=DYLD_LIBRARY_PATH
11251   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11252   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11253   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11254   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"`
11255   fi
11256   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11257   ;;
11258
11259 dgux*)
11260   version_type=linux
11261   need_lib_prefix=no
11262   need_version=no
11263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11264   soname_spec='${libname}${release}${shared_ext}$major'
11265   shlibpath_var=LD_LIBRARY_PATH
11266   ;;
11267
11268 freebsd1*)
11269   dynamic_linker=no
11270   ;;
11271
11272 freebsd*)
11273   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11274   version_type=freebsd-$objformat
11275   case $version_type in
11276     freebsd-elf*)
11277       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11278       need_version=no
11279       need_lib_prefix=no
11280       ;;
11281     freebsd-*)
11282       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11283       need_version=yes
11284       ;;
11285   esac
11286   shlibpath_var=LD_LIBRARY_PATH
11287   case $host_os in
11288   freebsd2*)
11289     shlibpath_overrides_runpath=yes
11290     ;;
11291   freebsd3.01* | freebsdelf3.01*)
11292     shlibpath_overrides_runpath=yes
11293     hardcode_into_libs=yes
11294     ;;
11295   *) # from 3.2 on
11296     shlibpath_overrides_runpath=no
11297     hardcode_into_libs=yes
11298     ;;
11299   esac
11300   ;;
11301
11302 gnu*)
11303   version_type=linux
11304   need_lib_prefix=no
11305   need_version=no
11306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11307   soname_spec='${libname}${release}${shared_ext}$major'
11308   shlibpath_var=LD_LIBRARY_PATH
11309   hardcode_into_libs=yes
11310   ;;
11311
11312 hpux9* | hpux10* | hpux11*)
11313   # Give a soname corresponding to the major version so that dld.sl refuses to
11314   # link against other versions.
11315   version_type=sunos
11316   need_lib_prefix=no
11317   need_version=no
11318   case "$host_cpu" in
11319   ia64*)
11320     shrext='.so'
11321     hardcode_into_libs=yes
11322     dynamic_linker="$host_os dld.so"
11323     shlibpath_var=LD_LIBRARY_PATH
11324     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11325     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326     soname_spec='${libname}${release}${shared_ext}$major'
11327     if test "X$HPUX_IA64_MODE" = X32; then
11328       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11329     else
11330       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11331     fi
11332     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11333     ;;
11334    hppa*64*)
11335      shrext='.sl'
11336      hardcode_into_libs=yes
11337      dynamic_linker="$host_os dld.sl"
11338      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11339      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11340      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341      soname_spec='${libname}${release}${shared_ext}$major'
11342      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11343      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11344      ;;
11345    *)
11346     shrext='.sl'
11347     dynamic_linker="$host_os dld.sl"
11348     shlibpath_var=SHLIB_PATH
11349     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351     soname_spec='${libname}${release}${shared_ext}$major'
11352     ;;
11353   esac
11354   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11355   postinstall_cmds='chmod 555 $lib'
11356   ;;
11357
11358 irix5* | irix6* | nonstopux*)
11359   case $host_os in
11360     nonstopux*) version_type=nonstopux ;;
11361     *)
11362         if test "$lt_cv_prog_gnu_ld" = yes; then
11363                 version_type=linux
11364         else
11365                 version_type=irix
11366         fi ;;
11367   esac
11368   need_lib_prefix=no
11369   need_version=no
11370   soname_spec='${libname}${release}${shared_ext}$major'
11371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11372   case $host_os in
11373   irix5* | nonstopux*)
11374     libsuff= shlibsuff=
11375     ;;
11376   *)
11377     case $LD in # libtool.m4 will add one of these switches to LD
11378     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11379       libsuff= shlibsuff= libmagic=32-bit;;
11380     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11381       libsuff=32 shlibsuff=N32 libmagic=N32;;
11382     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11383       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11384     *) libsuff= shlibsuff= libmagic=never-match;;
11385     esac
11386     ;;
11387   esac
11388   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11389   shlibpath_overrides_runpath=no
11390   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11391   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11392   hardcode_into_libs=yes
11393   ;;
11394
11395 # No shared lib support for Linux oldld, aout, or coff.
11396 linux*oldld* | linux*aout* | linux*coff*)
11397   dynamic_linker=no
11398   ;;
11399
11400 # This must be Linux ELF.
11401 linux*)
11402   version_type=linux
11403   need_lib_prefix=no
11404   need_version=no
11405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406   soname_spec='${libname}${release}${shared_ext}$major'
11407   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11408   shlibpath_var=LD_LIBRARY_PATH
11409   shlibpath_overrides_runpath=no
11410   # This implies no fast_install, which is unacceptable.
11411   # Some rework will be needed to allow for fast_install
11412   # before this can be enabled.
11413   hardcode_into_libs=yes
11414
11415   # We used to test for /lib/ld.so.1 and disable shared libraries on
11416   # powerpc, because MkLinux only supported shared libraries with the
11417   # GNU dynamic linker.  Since this was broken with cross compilers,
11418   # most powerpc-linux boxes support dynamic linking these days and
11419   # people can always --disable-shared, the test was removed, and we
11420   # assume the GNU/Linux dynamic linker is in use.
11421   dynamic_linker='GNU/Linux ld.so'
11422   ;;
11423
11424 netbsd*)
11425   version_type=sunos
11426   need_lib_prefix=no
11427   need_version=no
11428   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11430     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11431     dynamic_linker='NetBSD (a.out) ld.so'
11432   else
11433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11434     soname_spec='${libname}${release}${shared_ext}$major'
11435     dynamic_linker='NetBSD ld.elf_so'
11436   fi
11437   shlibpath_var=LD_LIBRARY_PATH
11438   shlibpath_overrides_runpath=yes
11439   hardcode_into_libs=yes
11440   ;;
11441
11442 newsos6)
11443   version_type=linux
11444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445   shlibpath_var=LD_LIBRARY_PATH
11446   shlibpath_overrides_runpath=yes
11447   ;;
11448
11449 nto-qnx)
11450   version_type=linux
11451   need_lib_prefix=no
11452   need_version=no
11453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454   soname_spec='${libname}${release}${shared_ext}$major'
11455   shlibpath_var=LD_LIBRARY_PATH
11456   shlibpath_overrides_runpath=yes
11457   ;;
11458
11459 openbsd*)
11460   version_type=sunos
11461   need_lib_prefix=no
11462   need_version=no
11463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11464   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11465   shlibpath_var=LD_LIBRARY_PATH
11466   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11467     case $host_os in
11468       openbsd2.[89] | openbsd2.[89].*)
11469         shlibpath_overrides_runpath=no
11470         ;;
11471       *)
11472         shlibpath_overrides_runpath=yes
11473         ;;
11474       esac
11475   else
11476     shlibpath_overrides_runpath=yes
11477   fi
11478   ;;
11479
11480 os2*)
11481   libname_spec='$name'
11482   shrext=".dll"
11483   need_lib_prefix=no
11484   library_names_spec='$libname${shared_ext} $libname.a'
11485   dynamic_linker='OS/2 ld.exe'
11486   shlibpath_var=LIBPATH
11487   ;;
11488
11489 osf3* | osf4* | osf5*)
11490   version_type=osf
11491   need_lib_prefix=no
11492   need_version=no
11493   soname_spec='${libname}${release}${shared_ext}$major'
11494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495   shlibpath_var=LD_LIBRARY_PATH
11496   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11497   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11498   ;;
11499
11500 sco3.2v5*)
11501   version_type=osf
11502   soname_spec='${libname}${release}${shared_ext}$major'
11503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504   shlibpath_var=LD_LIBRARY_PATH
11505   ;;
11506
11507 solaris*)
11508   version_type=linux
11509   need_lib_prefix=no
11510   need_version=no
11511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512   soname_spec='${libname}${release}${shared_ext}$major'
11513   shlibpath_var=LD_LIBRARY_PATH
11514   shlibpath_overrides_runpath=yes
11515   hardcode_into_libs=yes
11516   # ldd complains unless libraries are executable
11517   postinstall_cmds='chmod +x $lib'
11518   ;;
11519
11520 sunos4*)
11521   version_type=sunos
11522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11523   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11524   shlibpath_var=LD_LIBRARY_PATH
11525   shlibpath_overrides_runpath=yes
11526   if test "$with_gnu_ld" = yes; then
11527     need_lib_prefix=no
11528   fi
11529   need_version=yes
11530   ;;
11531
11532 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11533   version_type=linux
11534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535   soname_spec='${libname}${release}${shared_ext}$major'
11536   shlibpath_var=LD_LIBRARY_PATH
11537   case $host_vendor in
11538     sni)
11539       shlibpath_overrides_runpath=no
11540       need_lib_prefix=no
11541       export_dynamic_flag_spec='${wl}-Blargedynsym'
11542       runpath_var=LD_RUN_PATH
11543       ;;
11544     siemens)
11545       need_lib_prefix=no
11546       ;;
11547     motorola)
11548       need_lib_prefix=no
11549       need_version=no
11550       shlibpath_overrides_runpath=no
11551       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11552       ;;
11553   esac
11554   ;;
11555
11556 sysv4*MP*)
11557   if test -d /usr/nec ;then
11558     version_type=linux
11559     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11560     soname_spec='$libname${shared_ext}.$major'
11561     shlibpath_var=LD_LIBRARY_PATH
11562   fi
11563   ;;
11564
11565 uts4*)
11566   version_type=linux
11567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568   soname_spec='${libname}${release}${shared_ext}$major'
11569   shlibpath_var=LD_LIBRARY_PATH
11570   ;;
11571
11572 *)
11573   dynamic_linker=no
11574   ;;
11575 esac
11576 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11577 echo "${ECHO_T}$dynamic_linker" >&6
11578 test "$dynamic_linker" = no && can_build_shared=no
11579
11580 if test "x$enable_dlopen" != xyes; then
11581   enable_dlopen=unknown
11582   enable_dlopen_self=unknown
11583   enable_dlopen_self_static=unknown
11584 else
11585   lt_cv_dlopen=no
11586   lt_cv_dlopen_libs=
11587
11588   case $host_os in
11589   beos*)
11590     lt_cv_dlopen="load_add_on"
11591     lt_cv_dlopen_libs=
11592     lt_cv_dlopen_self=yes
11593     ;;
11594
11595   mingw* | pw32*)
11596     lt_cv_dlopen="LoadLibrary"
11597     lt_cv_dlopen_libs=
11598    ;;
11599
11600   cygwin*)
11601     lt_cv_dlopen="dlopen"
11602     lt_cv_dlopen_libs=
11603    ;;
11604
11605   darwin*)
11606   # if libdl is installed we need to link against it
11607     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11608 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11609 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11610   echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612   ac_check_lib_save_LIBS=$LIBS
11613 LIBS="-ldl  $LIBS"
11614 cat >conftest.$ac_ext <<_ACEOF
11615 #line $LINENO "configure"
11616 /* confdefs.h.  */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h.  */
11621
11622 /* Override any gcc2 internal prototype to avoid an error.  */
11623 #ifdef __cplusplus
11624 extern "C"
11625 #endif
11626 /* We use char because int might match the return type of a gcc2
11627    builtin and then its argument prototype would still apply.  */
11628 char dlopen ();
11629 int
11630 main ()
11631 {
11632 dlopen ();
11633   ;
11634   return 0;
11635 }
11636 _ACEOF
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639   (eval $ac_link) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } &&
11643          { ac_try='test -s conftest$ac_exeext'
11644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645   (eval $ac_try) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; }; then
11649   ac_cv_lib_dl_dlopen=yes
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654 ac_cv_lib_dl_dlopen=no
11655 fi
11656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11657 LIBS=$ac_check_lib_save_LIBS
11658 fi
11659 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11660 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11661 if test $ac_cv_lib_dl_dlopen = yes; then
11662   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11663 else
11664
11665     lt_cv_dlopen="dyld"
11666     lt_cv_dlopen_libs=
11667     lt_cv_dlopen_self=yes
11668
11669 fi
11670
11671    ;;
11672
11673   *)
11674     echo "$as_me:$LINENO: checking for shl_load" >&5
11675 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11676 if test "${ac_cv_func_shl_load+set}" = set; then
11677   echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679   cat >conftest.$ac_ext <<_ACEOF
11680 #line $LINENO "configure"
11681 /* confdefs.h.  */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h.  */
11686 /* System header to define __stub macros and hopefully few prototypes,
11687     which can conflict with char shl_load (); below.
11688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11689     <limits.h> exists even on freestanding compilers.  */
11690 #ifdef __STDC__
11691 # include <limits.h>
11692 #else
11693 # include <assert.h>
11694 #endif
11695 /* Override any gcc2 internal prototype to avoid an error.  */
11696 #ifdef __cplusplus
11697 extern "C"
11698 {
11699 #endif
11700 /* We use char because int might match the return type of a gcc2
11701    builtin and then its argument prototype would still apply.  */
11702 char shl_load ();
11703 /* The GNU C library defines this for functions which it implements
11704     to always fail with ENOSYS.  Some functions are actually named
11705     something starting with __ and the normal name is an alias.  */
11706 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11707 choke me
11708 #else
11709 char (*f) () = shl_load;
11710 #endif
11711 #ifdef __cplusplus
11712 }
11713 #endif
11714
11715 int
11716 main ()
11717 {
11718 return f != shl_load;
11719   ;
11720   return 0;
11721 }
11722 _ACEOF
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11725   (eval $ac_link) 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); } &&
11729          { ac_try='test -s conftest$ac_exeext'
11730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731   (eval $ac_try) 2>&5
11732   ac_status=$?
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); }; }; then
11735   ac_cv_func_shl_load=yes
11736 else
11737   echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11739
11740 ac_cv_func_shl_load=no
11741 fi
11742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11743 fi
11744 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11745 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11746 if test $ac_cv_func_shl_load = yes; then
11747   lt_cv_dlopen="shl_load"
11748 else
11749   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11750 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11751 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11752   echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754   ac_check_lib_save_LIBS=$LIBS
11755 LIBS="-ldld  $LIBS"
11756 cat >conftest.$ac_ext <<_ACEOF
11757 #line $LINENO "configure"
11758 /* confdefs.h.  */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h.  */
11763
11764 /* Override any gcc2 internal prototype to avoid an error.  */
11765 #ifdef __cplusplus
11766 extern "C"
11767 #endif
11768 /* We use char because int might match the return type of a gcc2
11769    builtin and then its argument prototype would still apply.  */
11770 char shl_load ();
11771 int
11772 main ()
11773 {
11774 shl_load ();
11775   ;
11776   return 0;
11777 }
11778 _ACEOF
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781   (eval $ac_link) 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); } &&
11785          { ac_try='test -s conftest$ac_exeext'
11786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787   (eval $ac_try) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); }; }; then
11791   ac_cv_lib_dld_shl_load=yes
11792 else
11793   echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11795
11796 ac_cv_lib_dld_shl_load=no
11797 fi
11798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11799 LIBS=$ac_check_lib_save_LIBS
11800 fi
11801 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11802 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11803 if test $ac_cv_lib_dld_shl_load = yes; then
11804   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11805 else
11806   echo "$as_me:$LINENO: checking for dlopen" >&5
11807 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11808 if test "${ac_cv_func_dlopen+set}" = set; then
11809   echo $ECHO_N "(cached) $ECHO_C" >&6
11810 else
11811   cat >conftest.$ac_ext <<_ACEOF
11812 #line $LINENO "configure"
11813 /* confdefs.h.  */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h.  */
11818 /* System header to define __stub macros and hopefully few prototypes,
11819     which can conflict with char dlopen (); below.
11820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11821     <limits.h> exists even on freestanding compilers.  */
11822 #ifdef __STDC__
11823 # include <limits.h>
11824 #else
11825 # include <assert.h>
11826 #endif
11827 /* Override any gcc2 internal prototype to avoid an error.  */
11828 #ifdef __cplusplus
11829 extern "C"
11830 {
11831 #endif
11832 /* We use char because int might match the return type of a gcc2
11833    builtin and then its argument prototype would still apply.  */
11834 char dlopen ();
11835 /* The GNU C library defines this for functions which it implements
11836     to always fail with ENOSYS.  Some functions are actually named
11837     something starting with __ and the normal name is an alias.  */
11838 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11839 choke me
11840 #else
11841 char (*f) () = dlopen;
11842 #endif
11843 #ifdef __cplusplus
11844 }
11845 #endif
11846
11847 int
11848 main ()
11849 {
11850 return f != dlopen;
11851   ;
11852   return 0;
11853 }
11854 _ACEOF
11855 rm -f conftest.$ac_objext conftest$ac_exeext
11856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11857   (eval $ac_link) 2>&5
11858   ac_status=$?
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); } &&
11861          { ac_try='test -s conftest$ac_exeext'
11862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863   (eval $ac_try) 2>&5
11864   ac_status=$?
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); }; }; then
11867   ac_cv_func_dlopen=yes
11868 else
11869   echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11871
11872 ac_cv_func_dlopen=no
11873 fi
11874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11875 fi
11876 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11877 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11878 if test $ac_cv_func_dlopen = yes; then
11879   lt_cv_dlopen="dlopen"
11880 else
11881   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11882 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11883 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11884   echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886   ac_check_lib_save_LIBS=$LIBS
11887 LIBS="-ldl  $LIBS"
11888 cat >conftest.$ac_ext <<_ACEOF
11889 #line $LINENO "configure"
11890 /* confdefs.h.  */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h.  */
11895
11896 /* Override any gcc2 internal prototype to avoid an error.  */
11897 #ifdef __cplusplus
11898 extern "C"
11899 #endif
11900 /* We use char because int might match the return type of a gcc2
11901    builtin and then its argument prototype would still apply.  */
11902 char dlopen ();
11903 int
11904 main ()
11905 {
11906 dlopen ();
11907   ;
11908   return 0;
11909 }
11910 _ACEOF
11911 rm -f conftest.$ac_objext conftest$ac_exeext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11913   (eval $ac_link) 2>&5
11914   ac_status=$?
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); } &&
11917          { ac_try='test -s conftest$ac_exeext'
11918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919   (eval $ac_try) 2>&5
11920   ac_status=$?
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); }; }; then
11923   ac_cv_lib_dl_dlopen=yes
11924 else
11925   echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11927
11928 ac_cv_lib_dl_dlopen=no
11929 fi
11930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11931 LIBS=$ac_check_lib_save_LIBS
11932 fi
11933 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11934 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11935 if test $ac_cv_lib_dl_dlopen = yes; then
11936   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11937 else
11938   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11939 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11940 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11941   echo $ECHO_N "(cached) $ECHO_C" >&6
11942 else
11943   ac_check_lib_save_LIBS=$LIBS
11944 LIBS="-lsvld  $LIBS"
11945 cat >conftest.$ac_ext <<_ACEOF
11946 #line $LINENO "configure"
11947 /* confdefs.h.  */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h.  */
11952
11953 /* Override any gcc2 internal prototype to avoid an error.  */
11954 #ifdef __cplusplus
11955 extern "C"
11956 #endif
11957 /* We use char because int might match the return type of a gcc2
11958    builtin and then its argument prototype would still apply.  */
11959 char dlopen ();
11960 int
11961 main ()
11962 {
11963 dlopen ();
11964   ;
11965   return 0;
11966 }
11967 _ACEOF
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970   (eval $ac_link) 2>&5
11971   ac_status=$?
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } &&
11974          { ac_try='test -s conftest$ac_exeext'
11975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976   (eval $ac_try) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; }; then
11980   ac_cv_lib_svld_dlopen=yes
11981 else
11982   echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11984
11985 ac_cv_lib_svld_dlopen=no
11986 fi
11987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11989 fi
11990 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11991 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11992 if test $ac_cv_lib_svld_dlopen = yes; then
11993   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11994 else
11995   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11996 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11997 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11998   echo $ECHO_N "(cached) $ECHO_C" >&6
11999 else
12000   ac_check_lib_save_LIBS=$LIBS
12001 LIBS="-ldld  $LIBS"
12002 cat >conftest.$ac_ext <<_ACEOF
12003 #line $LINENO "configure"
12004 /* confdefs.h.  */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h.  */
12009
12010 /* Override any gcc2 internal prototype to avoid an error.  */
12011 #ifdef __cplusplus
12012 extern "C"
12013 #endif
12014 /* We use char because int might match the return type of a gcc2
12015    builtin and then its argument prototype would still apply.  */
12016 char dld_link ();
12017 int
12018 main ()
12019 {
12020 dld_link ();
12021   ;
12022   return 0;
12023 }
12024 _ACEOF
12025 rm -f conftest.$ac_objext conftest$ac_exeext
12026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12027   (eval $ac_link) 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); } &&
12031          { ac_try='test -s conftest$ac_exeext'
12032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033   (eval $ac_try) 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); }; }; then
12037   ac_cv_lib_dld_dld_link=yes
12038 else
12039   echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12041
12042 ac_cv_lib_dld_dld_link=no
12043 fi
12044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12045 LIBS=$ac_check_lib_save_LIBS
12046 fi
12047 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12048 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12049 if test $ac_cv_lib_dld_dld_link = yes; then
12050   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12051 fi
12052
12053
12054 fi
12055
12056
12057 fi
12058
12059
12060 fi
12061
12062
12063 fi
12064
12065
12066 fi
12067
12068     ;;
12069   esac
12070
12071   if test "x$lt_cv_dlopen" != xno; then
12072     enable_dlopen=yes
12073   else
12074     enable_dlopen=no
12075   fi
12076
12077   case $lt_cv_dlopen in
12078   dlopen)
12079     save_CPPFLAGS="$CPPFLAGS"
12080     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12081
12082     save_LDFLAGS="$LDFLAGS"
12083     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12084
12085     save_LIBS="$LIBS"
12086     LIBS="$lt_cv_dlopen_libs $LIBS"
12087
12088     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12089 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12090 if test "${lt_cv_dlopen_self+set}" = set; then
12091   echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093           if test "$cross_compiling" = yes; then :
12094   lt_cv_dlopen_self=cross
12095 else
12096   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12097   lt_status=$lt_dlunknown
12098   cat > conftest.$ac_ext <<EOF
12099 #line 12099 "configure"
12100 #include "confdefs.h"
12101
12102 #if HAVE_DLFCN_H
12103 #include <dlfcn.h>
12104 #endif
12105
12106 #include <stdio.h>
12107
12108 #ifdef RTLD_GLOBAL
12109 #  define LT_DLGLOBAL           RTLD_GLOBAL
12110 #else
12111 #  ifdef DL_GLOBAL
12112 #    define LT_DLGLOBAL         DL_GLOBAL
12113 #  else
12114 #    define LT_DLGLOBAL         0
12115 #  endif
12116 #endif
12117
12118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12119    find out it does not work in some platform. */
12120 #ifndef LT_DLLAZY_OR_NOW
12121 #  ifdef RTLD_LAZY
12122 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12123 #  else
12124 #    ifdef DL_LAZY
12125 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12126 #    else
12127 #      ifdef RTLD_NOW
12128 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12129 #      else
12130 #        ifdef DL_NOW
12131 #          define LT_DLLAZY_OR_NOW      DL_NOW
12132 #        else
12133 #          define LT_DLLAZY_OR_NOW      0
12134 #        endif
12135 #      endif
12136 #    endif
12137 #  endif
12138 #endif
12139
12140 #ifdef __cplusplus
12141 extern "C" void exit (int);
12142 #endif
12143
12144 void fnord() { int i=42;}
12145 int main ()
12146 {
12147   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12148   int status = $lt_dlunknown;
12149
12150   if (self)
12151     {
12152       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12153       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12154       /* dlclose (self); */
12155     }
12156
12157     exit (status);
12158 }
12159 EOF
12160   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12161   (eval $ac_link) 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12165     (./conftest; exit; ) 2>/dev/null
12166     lt_status=$?
12167     case x$lt_status in
12168       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12169       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12170       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12171     esac
12172   else :
12173     # compilation failed
12174     lt_cv_dlopen_self=no
12175   fi
12176 fi
12177 rm -fr conftest*
12178
12179
12180 fi
12181 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12182 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12183
12184     if test "x$lt_cv_dlopen_self" = xyes; then
12185       LDFLAGS="$LDFLAGS $link_static_flag"
12186       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12187 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12188 if test "${lt_cv_dlopen_self_static+set}" = set; then
12189   echo $ECHO_N "(cached) $ECHO_C" >&6
12190 else
12191           if test "$cross_compiling" = yes; then :
12192   lt_cv_dlopen_self_static=cross
12193 else
12194   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12195   lt_status=$lt_dlunknown
12196   cat > conftest.$ac_ext <<EOF
12197 #line 12197 "configure"
12198 #include "confdefs.h"
12199
12200 #if HAVE_DLFCN_H
12201 #include <dlfcn.h>
12202 #endif
12203
12204 #include <stdio.h>
12205
12206 #ifdef RTLD_GLOBAL
12207 #  define LT_DLGLOBAL           RTLD_GLOBAL
12208 #else
12209 #  ifdef DL_GLOBAL
12210 #    define LT_DLGLOBAL         DL_GLOBAL
12211 #  else
12212 #    define LT_DLGLOBAL         0
12213 #  endif
12214 #endif
12215
12216 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12217    find out it does not work in some platform. */
12218 #ifndef LT_DLLAZY_OR_NOW
12219 #  ifdef RTLD_LAZY
12220 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12221 #  else
12222 #    ifdef DL_LAZY
12223 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12224 #    else
12225 #      ifdef RTLD_NOW
12226 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12227 #      else
12228 #        ifdef DL_NOW
12229 #          define LT_DLLAZY_OR_NOW      DL_NOW
12230 #        else
12231 #          define LT_DLLAZY_OR_NOW      0
12232 #        endif
12233 #      endif
12234 #    endif
12235 #  endif
12236 #endif
12237
12238 #ifdef __cplusplus
12239 extern "C" void exit (int);
12240 #endif
12241
12242 void fnord() { int i=42;}
12243 int main ()
12244 {
12245   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12246   int status = $lt_dlunknown;
12247
12248   if (self)
12249     {
12250       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12251       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12252       /* dlclose (self); */
12253     }
12254
12255     exit (status);
12256 }
12257 EOF
12258   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259   (eval $ac_link) 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12263     (./conftest; exit; ) 2>/dev/null
12264     lt_status=$?
12265     case x$lt_status in
12266       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12267       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12268       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12269     esac
12270   else :
12271     # compilation failed
12272     lt_cv_dlopen_self_static=no
12273   fi
12274 fi
12275 rm -fr conftest*
12276
12277
12278 fi
12279 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12280 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12281     fi
12282
12283     CPPFLAGS="$save_CPPFLAGS"
12284     LDFLAGS="$save_LDFLAGS"
12285     LIBS="$save_LIBS"
12286     ;;
12287   esac
12288
12289   case $lt_cv_dlopen_self in
12290   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12291   *) enable_dlopen_self=unknown ;;
12292   esac
12293
12294   case $lt_cv_dlopen_self_static in
12295   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12296   *) enable_dlopen_self_static=unknown ;;
12297   esac
12298 fi
12299
12300
12301 # The else clause should only fire when bootstrapping the
12302 # libtool distribution, otherwise you forgot to ship ltmain.sh
12303 # with your package, and you will get complaints that there are
12304 # no rules to generate ltmain.sh.
12305 if test -f "$ltmain"; then
12306   # See if we are running on zsh, and set the options which allow our commands through
12307   # without removal of \ escapes.
12308   if test -n "${ZSH_VERSION+set}" ; then
12309     setopt NO_GLOB_SUBST
12310   fi
12311   # Now quote all the things that may contain metacharacters while being
12312   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12313   # variables and quote the copies for generation of the libtool script.
12314   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12315     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12316     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12317     deplibs_check_method reload_flag reload_cmds need_locks \
12318     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12319     lt_cv_sys_global_symbol_to_c_name_address \
12320     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12321     old_postinstall_cmds old_postuninstall_cmds \
12322     compiler_CXX \
12323     CC_CXX \
12324     LD_CXX \
12325     lt_prog_compiler_wl_CXX \
12326     lt_prog_compiler_pic_CXX \
12327     lt_prog_compiler_static_CXX \
12328     lt_prog_compiler_no_builtin_flag_CXX \
12329     export_dynamic_flag_spec_CXX \
12330     thread_safe_flag_spec_CXX \
12331     whole_archive_flag_spec_CXX \
12332     enable_shared_with_static_runtimes_CXX \
12333     old_archive_cmds_CXX \
12334     old_archive_from_new_cmds_CXX \
12335     predep_objects_CXX \
12336     postdep_objects_CXX \
12337     predeps_CXX \
12338     postdeps_CXX \
12339     compiler_lib_search_path_CXX \
12340     archive_cmds_CXX \
12341     archive_expsym_cmds_CXX \
12342     postinstall_cmds_CXX \
12343     postuninstall_cmds_CXX \
12344     old_archive_from_expsyms_cmds_CXX \
12345     allow_undefined_flag_CXX \
12346     no_undefined_flag_CXX \
12347     export_symbols_cmds_CXX \
12348     hardcode_libdir_flag_spec_CXX \
12349     hardcode_libdir_flag_spec_ld_CXX \
12350     hardcode_libdir_separator_CXX \
12351     hardcode_automatic_CXX \
12352     module_cmds_CXX \
12353     module_expsym_cmds_CXX \
12354     lt_cv_prog_compiler_c_o_CXX \
12355     exclude_expsyms_CXX \
12356     include_expsyms_CXX; do
12357
12358     case $var in
12359     old_archive_cmds_CXX | \
12360     old_archive_from_new_cmds_CXX | \
12361     archive_cmds_CXX | \
12362     archive_expsym_cmds_CXX | \
12363     module_cmds_CXX | \
12364     module_expsym_cmds_CXX | \
12365     old_archive_from_expsyms_cmds_CXX | \
12366     export_symbols_cmds_CXX | \
12367     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12368     postinstall_cmds | postuninstall_cmds | \
12369     old_postinstall_cmds | old_postuninstall_cmds | \
12370     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12371       # Double-quote double-evaled strings.
12372       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12373       ;;
12374     *)
12375       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12376       ;;
12377     esac
12378   done
12379
12380   case $lt_echo in
12381   *'\$0 --fallback-echo"')
12382     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12383     ;;
12384   esac
12385
12386 cfgfile="$ofile"
12387
12388   cat <<__EOF__ >> "$cfgfile"
12389 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12390
12391 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12392
12393 # Shell to use when invoking shell scripts.
12394 SHELL=$lt_SHELL
12395
12396 # Whether or not to build shared libraries.
12397 build_libtool_libs=$enable_shared
12398
12399 # Whether or not to build static libraries.
12400 build_old_libs=$enable_static
12401
12402 # Whether or not to add -lc for building shared libraries.
12403 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12404
12405 # Whether or not to disallow shared libs when runtime libs are static
12406 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12407
12408 # Whether or not to optimize for fast installation.
12409 fast_install=$enable_fast_install
12410
12411 # The host system.
12412 host_alias=$host_alias
12413 host=$host
12414
12415 # An echo program that does not interpret backslashes.
12416 echo=$lt_echo
12417
12418 # The archiver.
12419 AR=$lt_AR
12420 AR_FLAGS=$lt_AR_FLAGS
12421
12422 # A C compiler.
12423 LTCC=$lt_LTCC
12424
12425 # A language-specific compiler.
12426 CC=$lt_compiler_CXX
12427
12428 # Is the compiler the GNU C compiler?
12429 with_gcc=$GCC_CXX
12430
12431 # An ERE matcher.
12432 EGREP=$lt_EGREP
12433
12434 # The linker used to build libraries.
12435 LD=$lt_LD_CXX
12436
12437 # Whether we need hard or soft links.
12438 LN_S=$lt_LN_S
12439
12440 # A BSD-compatible nm program.
12441 NM=$lt_NM
12442
12443 # A symbol stripping program
12444 STRIP=$STRIP
12445
12446 # Used to examine libraries when file_magic_cmd begins "file"
12447 MAGIC_CMD=$MAGIC_CMD
12448
12449 # Used on cygwin: DLL creation program.
12450 DLLTOOL="$DLLTOOL"
12451
12452 # Used on cygwin: object dumper.
12453 OBJDUMP="$OBJDUMP"
12454
12455 # Used on cygwin: assembler.
12456 AS="$AS"
12457
12458 # The name of the directory that contains temporary libtool files.
12459 objdir=$objdir
12460
12461 # How to create reloadable object files.
12462 reload_flag=$lt_reload_flag
12463 reload_cmds=$lt_reload_cmds
12464
12465 # How to pass a linker flag through the compiler.
12466 wl=$lt_lt_prog_compiler_wl_CXX
12467
12468 # Object file suffix (normally "o").
12469 objext="$ac_objext"
12470
12471 # Old archive suffix (normally "a").
12472 libext="$libext"
12473
12474 # Shared library suffix (normally ".so").
12475 shrext='$shrext'
12476
12477 # Executable file suffix (normally "").
12478 exeext="$exeext"
12479
12480 # Additional compiler flags for building library objects.
12481 pic_flag=$lt_lt_prog_compiler_pic_CXX
12482 pic_mode=$pic_mode
12483
12484 # What is the maximum length of a command?
12485 max_cmd_len=$lt_cv_sys_max_cmd_len
12486
12487 # Does compiler simultaneously support -c and -o options?
12488 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12489
12490 # Must we lock files when doing compilation ?
12491 need_locks=$lt_need_locks
12492
12493 # Do we need the lib prefix for modules?
12494 need_lib_prefix=$need_lib_prefix
12495
12496 # Do we need a version for libraries?
12497 need_version=$need_version
12498
12499 # Whether dlopen is supported.
12500 dlopen_support=$enable_dlopen
12501
12502 # Whether dlopen of programs is supported.
12503 dlopen_self=$enable_dlopen_self
12504
12505 # Whether dlopen of statically linked programs is supported.
12506 dlopen_self_static=$enable_dlopen_self_static
12507
12508 # Compiler flag to prevent dynamic linking.
12509 link_static_flag=$lt_lt_prog_compiler_static_CXX
12510
12511 # Compiler flag to turn off builtin functions.
12512 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12513
12514 # Compiler flag to allow reflexive dlopens.
12515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12516
12517 # Compiler flag to generate shared objects directly from archives.
12518 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12519
12520 # Compiler flag to generate thread-safe objects.
12521 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12522
12523 # Library versioning type.
12524 version_type=$version_type
12525
12526 # Format of library name prefix.
12527 libname_spec=$lt_libname_spec
12528
12529 # List of archive names.  First name is the real one, the rest are links.
12530 # The last name is the one that the linker finds with -lNAME.
12531 library_names_spec=$lt_library_names_spec
12532
12533 # The coded name of the library, if different from the real name.
12534 soname_spec=$lt_soname_spec
12535
12536 # Commands used to build and install an old-style archive.
12537 RANLIB=$lt_RANLIB
12538 old_archive_cmds=$lt_old_archive_cmds_CXX
12539 old_postinstall_cmds=$lt_old_postinstall_cmds
12540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12541
12542 # Create an old-style archive from a shared archive.
12543 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12544
12545 # Create a temporary old-style archive to link instead of a shared archive.
12546 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12547
12548 # Commands used to build and install a shared archive.
12549 archive_cmds=$lt_archive_cmds_CXX
12550 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12551 postinstall_cmds=$lt_postinstall_cmds
12552 postuninstall_cmds=$lt_postuninstall_cmds
12553
12554 # Commands used to build a loadable module (assumed same as above if empty)
12555 module_cmds=$lt_module_cmds_CXX
12556 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12557
12558 # Commands to strip libraries.
12559 old_striplib=$lt_old_striplib
12560 striplib=$lt_striplib
12561
12562 # Dependencies to place before the objects being linked to create a
12563 # shared library.
12564 predep_objects=$lt_predep_objects_CXX
12565
12566 # Dependencies to place after the objects being linked to create a
12567 # shared library.
12568 postdep_objects=$lt_postdep_objects_CXX
12569
12570 # Dependencies to place before the objects being linked to create a
12571 # shared library.
12572 predeps=$lt_predeps_CXX
12573
12574 # Dependencies to place after the objects being linked to create a
12575 # shared library.
12576 postdeps=$lt_postdeps_CXX
12577
12578 # The library search path used internally by the compiler when linking
12579 # a shared library.
12580 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12581
12582 # Method to check whether dependent libraries are shared objects.
12583 deplibs_check_method=$lt_deplibs_check_method
12584
12585 # Command to use when deplibs_check_method == file_magic.
12586 file_magic_cmd=$lt_file_magic_cmd
12587
12588 # Flag that allows shared libraries with undefined symbols to be built.
12589 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12590
12591 # Flag that forces no undefined symbols.
12592 no_undefined_flag=$lt_no_undefined_flag_CXX
12593
12594 # Commands used to finish a libtool library installation in a directory.
12595 finish_cmds=$lt_finish_cmds
12596
12597 # Same as above, but a single script fragment to be evaled but not shown.
12598 finish_eval=$lt_finish_eval
12599
12600 # Take the output of nm and produce a listing of raw symbols and C names.
12601 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12602
12603 # Transform the output of nm in a proper C declaration
12604 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12605
12606 # Transform the output of nm in a C name address pair
12607 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12608
12609 # This is the shared library runtime path variable.
12610 runpath_var=$runpath_var
12611
12612 # This is the shared library path variable.
12613 shlibpath_var=$shlibpath_var
12614
12615 # Is shlibpath searched before the hard-coded library search path?
12616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12617
12618 # How to hardcode a shared library path into an executable.
12619 hardcode_action=$hardcode_action_CXX
12620
12621 # Whether we should hardcode library paths into libraries.
12622 hardcode_into_libs=$hardcode_into_libs
12623
12624 # Flag to hardcode \$libdir into a binary during linking.
12625 # This must work even if \$libdir does not exist.
12626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12627
12628 # If ld is used when linking, flag to hardcode \$libdir into
12629 # a binary during linking. This must work even if \$libdir does
12630 # not exist.
12631 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12632
12633 # Whether we need a single -rpath flag with a separated argument.
12634 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12635
12636 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12637 # resulting binary.
12638 hardcode_direct=$hardcode_direct_CXX
12639
12640 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12641 # resulting binary.
12642 hardcode_minus_L=$hardcode_minus_L_CXX
12643
12644 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12645 # the resulting binary.
12646 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12647
12648 # Set to yes if building a shared library automatically hardcodes DIR into the library
12649 # and all subsequent libraries and executables linked against it.
12650 hardcode_automatic=$hardcode_automatic_CXX
12651
12652 # Variables whose values should be saved in libtool wrapper scripts and
12653 # restored at relink time.
12654 variables_saved_for_relink="$variables_saved_for_relink"
12655
12656 # Whether libtool must link a program against all its dependency libraries.
12657 link_all_deplibs=$link_all_deplibs_CXX
12658
12659 # Compile-time system search path for libraries
12660 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12661
12662 # Run-time system search path for libraries
12663 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12664
12665 # Fix the shell variable \$srcfile for the compiler.
12666 fix_srcfile_path="$fix_srcfile_path_CXX"
12667
12668 # Set to yes if exported symbols are required.
12669 always_export_symbols=$always_export_symbols_CXX
12670
12671 # The commands to list exported symbols.
12672 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12673
12674 # The commands to extract the exported symbol list from a shared archive.
12675 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12676
12677 # Symbols that should not be listed in the preloaded symbols.
12678 exclude_expsyms=$lt_exclude_expsyms_CXX
12679
12680 # Symbols that must always be exported.
12681 include_expsyms=$lt_include_expsyms_CXX
12682
12683 # ### END LIBTOOL TAG CONFIG: $tagname
12684
12685 __EOF__
12686
12687
12688 else
12689   # If there is no Makefile yet, we rely on a make rule to execute
12690   # `config.status --recheck' to rerun these tests and create the
12691   # libtool script then.
12692   test -f Makefile && make "$ltmain"
12693 fi
12694
12695
12696 ac_ext=c
12697 ac_cpp='$CPP $CPPFLAGS'
12698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12701
12702 CC=$lt_save_CC
12703 LDCXX=$LD
12704 LD=$lt_save_LD
12705 GCC=$lt_save_GCC
12706 with_gnu_ldcxx=$with_gnu_ld
12707 with_gnu_ld=$lt_save_with_gnu_ld
12708 lt_cv_path_LDCXX=$lt_cv_path_LD
12709 lt_cv_path_LD=$lt_save_path_LD
12710 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12711 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12712
12713         else
12714           tagname=""
12715         fi
12716         ;;
12717
12718       F77)
12719         if test -n "$F77" && test "X$F77" != "Xno"; then
12720
12721 ac_ext=f
12722 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12723 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12724 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12725
12726
12727 archive_cmds_need_lc_F77=no
12728 allow_undefined_flag_F77=
12729 always_export_symbols_F77=no
12730 archive_expsym_cmds_F77=
12731 export_dynamic_flag_spec_F77=
12732 hardcode_direct_F77=no
12733 hardcode_libdir_flag_spec_F77=
12734 hardcode_libdir_flag_spec_ld_F77=
12735 hardcode_libdir_separator_F77=
12736 hardcode_minus_L_F77=no
12737 hardcode_automatic_F77=no
12738 module_cmds_F77=
12739 module_expsym_cmds_F77=
12740 link_all_deplibs_F77=unknown
12741 old_archive_cmds_F77=$old_archive_cmds
12742 no_undefined_flag_F77=
12743 whole_archive_flag_spec_F77=
12744 enable_shared_with_static_runtimes_F77=no
12745
12746 # Source file extension for f77 test sources.
12747 ac_ext=f
12748
12749 # Object file extension for compiled f77 test sources.
12750 objext=o
12751 objext_F77=$objext
12752
12753 # Code to be used in simple compile tests
12754 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12755
12756 # Code to be used in simple link tests
12757 lt_simple_link_test_code="      program t\n      end\n"
12758
12759 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12760
12761 # If no C compiler was specified, use CC.
12762 LTCC=${LTCC-"$CC"}
12763
12764 # Allow CC to be a program name with arguments.
12765 compiler=$CC
12766
12767
12768 # Allow CC to be a program name with arguments.
12769 lt_save_CC="$CC"
12770 CC=${F77-"f77"}
12771 compiler=$CC
12772 compiler_F77=$CC
12773 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12774
12775 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12776 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12777 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12778 echo "${ECHO_T}$can_build_shared" >&6
12779
12780 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12781 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12782 test "$can_build_shared" = "no" && enable_shared=no
12783
12784 # On AIX, shared libraries and static libraries use the same namespace, and
12785 # are all built from PIC.
12786 case "$host_os" in
12787 aix3*)
12788   test "$enable_shared" = yes && enable_static=no
12789   if test -n "$RANLIB"; then
12790     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12791     postinstall_cmds='$RANLIB $lib'
12792   fi
12793   ;;
12794 aix4*)
12795   test "$enable_shared" = yes && enable_static=no
12796   ;;
12797 esac
12798 echo "$as_me:$LINENO: result: $enable_shared" >&5
12799 echo "${ECHO_T}$enable_shared" >&6
12800
12801 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12802 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12803 # Make sure either enable_shared or enable_static is yes.
12804 test "$enable_shared" = yes || enable_static=yes
12805 echo "$as_me:$LINENO: result: $enable_static" >&5
12806 echo "${ECHO_T}$enable_static" >&6
12807
12808 test "$ld_shlibs_F77" = no && can_build_shared=no
12809
12810 GCC_F77="$G77"
12811 LD_F77="$LD"
12812
12813 lt_prog_compiler_wl_F77=
12814 lt_prog_compiler_pic_F77=
12815 lt_prog_compiler_static_F77=
12816
12817 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12818 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12819
12820   if test "$GCC" = yes; then
12821     lt_prog_compiler_wl_F77='-Wl,'
12822     lt_prog_compiler_static_F77='-static'
12823
12824     case $host_os in
12825       aix*)
12826       # All AIX code is PIC.
12827       if test "$host_cpu" = ia64; then
12828         # AIX 5 now supports IA64 processor
12829         lt_prog_compiler_static_F77='-Bstatic'
12830       fi
12831       ;;
12832
12833     amigaos*)
12834       # FIXME: we need at least 68020 code to build shared libraries, but
12835       # adding the `-m68020' flag to GCC prevents building anything better,
12836       # like `-m68040'.
12837       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12838       ;;
12839
12840     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12841       # PIC is the default for these OSes.
12842       ;;
12843
12844     mingw* | pw32* | os2*)
12845       # This hack is so that the source file can tell whether it is being
12846       # built for inclusion in a dll (and should export symbols for example).
12847       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12848       ;;
12849
12850     darwin* | rhapsody*)
12851       # PIC is the default on this platform
12852       # Common symbols not allowed in MH_DYLIB files
12853       lt_prog_compiler_pic_F77='-fno-common'
12854       ;;
12855
12856     msdosdjgpp*)
12857       # Just because we use GCC doesn't mean we suddenly get shared libraries
12858       # on systems that don't support them.
12859       lt_prog_compiler_can_build_shared_F77=no
12860       enable_shared=no
12861       ;;
12862
12863     sysv4*MP*)
12864       if test -d /usr/nec; then
12865         lt_prog_compiler_pic_F77=-Kconform_pic
12866       fi
12867       ;;
12868
12869     hpux*)
12870       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12871       # not for PA HP-UX.
12872       case "$host_cpu" in
12873       hppa*64*|ia64*)
12874         # +Z the default
12875         ;;
12876       *)
12877         lt_prog_compiler_pic_F77='-fPIC'
12878         ;;
12879       esac
12880       ;;
12881
12882     *)
12883       lt_prog_compiler_pic_F77='-fPIC'
12884       ;;
12885     esac
12886   else
12887     # PORTME Check for flag to pass linker flags through the system compiler.
12888     case $host_os in
12889     aix*)
12890       lt_prog_compiler_wl_F77='-Wl,'
12891       if test "$host_cpu" = ia64; then
12892         # AIX 5 now supports IA64 processor
12893         lt_prog_compiler_static_F77='-Bstatic'
12894       else
12895         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12896       fi
12897       ;;
12898
12899     mingw* | pw32* | os2*)
12900       # This hack is so that the source file can tell whether it is being
12901       # built for inclusion in a dll (and should export symbols for example).
12902       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12903       ;;
12904
12905     hpux9* | hpux10* | hpux11*)
12906       lt_prog_compiler_wl_F77='-Wl,'
12907       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12908       # not for PA HP-UX.
12909       case "$host_cpu" in
12910       hppa*64*|ia64*)
12911         # +Z the default
12912         ;;
12913       *)
12914         lt_prog_compiler_pic_F77='+Z'
12915         ;;
12916       esac
12917       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12918       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12919       ;;
12920
12921     irix5* | irix6* | nonstopux*)
12922       lt_prog_compiler_wl_F77='-Wl,'
12923       # PIC (with -KPIC) is the default.
12924       lt_prog_compiler_static_F77='-non_shared'
12925       ;;
12926
12927     newsos6)
12928       lt_prog_compiler_pic_F77='-KPIC'
12929       lt_prog_compiler_static_F77='-Bstatic'
12930       ;;
12931
12932     linux*)
12933       case $CC in
12934       icc|ecc)
12935         lt_prog_compiler_wl_F77='-Wl,'
12936         lt_prog_compiler_pic_F77='-KPIC'
12937         lt_prog_compiler_static_F77='-static'
12938         ;;
12939       ccc)
12940         lt_prog_compiler_wl_F77='-Wl,'
12941         # All Alpha code is PIC.
12942         lt_prog_compiler_static_F77='-non_shared'
12943         ;;
12944       esac
12945       ;;
12946
12947     osf3* | osf4* | osf5*)
12948       lt_prog_compiler_wl_F77='-Wl,'
12949       # All OSF/1 code is PIC.
12950       lt_prog_compiler_static_F77='-non_shared'
12951       ;;
12952
12953     sco3.2v5*)
12954       lt_prog_compiler_pic_F77='-Kpic'
12955       lt_prog_compiler_static_F77='-dn'
12956       ;;
12957
12958     solaris*)
12959       lt_prog_compiler_wl_F77='-Wl,'
12960       lt_prog_compiler_pic_F77='-KPIC'
12961       lt_prog_compiler_static_F77='-Bstatic'
12962       ;;
12963
12964     sunos4*)
12965       lt_prog_compiler_wl_F77='-Qoption ld '
12966       lt_prog_compiler_pic_F77='-PIC'
12967       lt_prog_compiler_static_F77='-Bstatic'
12968       ;;
12969
12970     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12971       lt_prog_compiler_wl_F77='-Wl,'
12972       lt_prog_compiler_pic_F77='-KPIC'
12973       lt_prog_compiler_static_F77='-Bstatic'
12974       ;;
12975
12976     sysv4*MP*)
12977       if test -d /usr/nec ;then
12978         lt_prog_compiler_pic_F77='-Kconform_pic'
12979         lt_prog_compiler_static_F77='-Bstatic'
12980       fi
12981       ;;
12982
12983     uts4*)
12984       lt_prog_compiler_pic_F77='-pic'
12985       lt_prog_compiler_static_F77='-Bstatic'
12986       ;;
12987
12988     *)
12989       lt_prog_compiler_can_build_shared_F77=no
12990       ;;
12991     esac
12992   fi
12993
12994 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12995 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12996
12997 #
12998 # Check to make sure the PIC flag actually works.
12999 #
13000 if test -n "$lt_prog_compiler_pic_F77"; then
13001   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13002 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13003 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13004   echo $ECHO_N "(cached) $ECHO_C" >&6
13005 else
13006   lt_prog_compiler_pic_works_F77=no
13007   ac_outfile=conftest.$ac_objext
13008    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13009    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13010    # Insert the option either (1) after the last *FLAGS variable, or
13011    # (2) before a word containing "conftest.", or (3) at the end.
13012    # Note that $ac_compile itself does not contain backslashes and begins
13013    # with a dollar sign (not a hyphen), so the echo should work correctly.
13014    # The option is referenced via a variable to avoid confusing sed.
13015    lt_compile=`echo "$ac_compile" | $SED \
13016    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13017    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13018    -e 's:$: $lt_compiler_flag:'`
13019    (eval echo "\"\$as_me:13019: $lt_compile\"" >&5)
13020    (eval "$lt_compile" 2>conftest.err)
13021    ac_status=$?
13022    cat conftest.err >&5
13023    echo "$as_me:13023: \$? = $ac_status" >&5
13024    if (exit $ac_status) && test -s "$ac_outfile"; then
13025      # The compiler can only warn and ignore the option if not recognized
13026      # So say no if there are warnings
13027      if test ! -s conftest.err; then
13028        lt_prog_compiler_pic_works_F77=yes
13029      fi
13030    fi
13031    $rm conftest*
13032
13033 fi
13034 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13035 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13036
13037 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13038     case $lt_prog_compiler_pic_F77 in
13039      "" | " "*) ;;
13040      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13041      esac
13042 else
13043     lt_prog_compiler_pic_F77=
13044      lt_prog_compiler_can_build_shared_F77=no
13045 fi
13046
13047 fi
13048 case "$host_os" in
13049   # For platforms which do not support PIC, -DPIC is meaningless:
13050   *djgpp*)
13051     lt_prog_compiler_pic_F77=
13052     ;;
13053   *)
13054     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13055     ;;
13056 esac
13057
13058 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13059 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13060 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13061   echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063   lt_cv_prog_compiler_c_o_F77=no
13064    $rm -r conftest 2>/dev/null
13065    mkdir conftest
13066    cd conftest
13067    mkdir out
13068    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13069
13070    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13071    # that will create temporary files in the current directory regardless of
13072    # the output directory.  Thus, making CWD read-only will cause this test
13073    # to fail, enabling locking or at least warning the user not to do parallel
13074    # builds.
13075    chmod -w .
13076
13077    lt_compiler_flag="-o out/conftest2.$ac_objext"
13078    # Insert the option either (1) after the last *FLAGS variable, or
13079    # (2) before a word containing "conftest.", or (3) at the end.
13080    # Note that $ac_compile itself does not contain backslashes and begins
13081    # with a dollar sign (not a hyphen), so the echo should work correctly.
13082    lt_compile=`echo "$ac_compile" | $SED \
13083    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13084    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13085    -e 's:$: $lt_compiler_flag:'`
13086    (eval echo "\"\$as_me:13086: $lt_compile\"" >&5)
13087    (eval "$lt_compile" 2>out/conftest.err)
13088    ac_status=$?
13089    cat out/conftest.err >&5
13090    echo "$as_me:13090: \$? = $ac_status" >&5
13091    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13092    then
13093      # The compiler can only warn and ignore the option if not recognized
13094      # So say no if there are warnings
13095      if test ! -s out/conftest.err; then
13096        lt_cv_prog_compiler_c_o_F77=yes
13097      fi
13098    fi
13099    chmod u+w .
13100    $rm conftest* out/*
13101    rmdir out
13102    cd ..
13103    rmdir conftest
13104    $rm conftest*
13105
13106 fi
13107 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13108 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13109
13110
13111 hard_links="nottested"
13112 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13113   # do not overwrite the value of need_locks provided by the user
13114   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13115 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13116   hard_links=yes
13117   $rm conftest*
13118   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13119   touch conftest.a
13120   ln conftest.a conftest.b 2>&5 || hard_links=no
13121   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13122   echo "$as_me:$LINENO: result: $hard_links" >&5
13123 echo "${ECHO_T}$hard_links" >&6
13124   if test "$hard_links" = no; then
13125     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13126 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13127     need_locks=warn
13128   fi
13129 else
13130   need_locks=no
13131 fi
13132
13133 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13134 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13135
13136   runpath_var=
13137   allow_undefined_flag_F77=
13138   enable_shared_with_static_runtimes_F77=no
13139   archive_cmds_F77=
13140   archive_expsym_cmds_F77=
13141   old_archive_From_new_cmds_F77=
13142   old_archive_from_expsyms_cmds_F77=
13143   export_dynamic_flag_spec_F77=
13144   whole_archive_flag_spec_F77=
13145   thread_safe_flag_spec_F77=
13146   hardcode_libdir_flag_spec_F77=
13147   hardcode_libdir_flag_spec_ld_F77=
13148   hardcode_libdir_separator_F77=
13149   hardcode_direct_F77=no
13150   hardcode_minus_L_F77=no
13151   hardcode_shlibpath_var_F77=unsupported
13152   link_all_deplibs_F77=unknown
13153   hardcode_automatic_F77=no
13154   module_cmds_F77=
13155   module_expsym_cmds_F77=
13156   always_export_symbols_F77=no
13157   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13158   # include_expsyms should be a list of space-separated symbols to be *always*
13159   # included in the symbol list
13160   include_expsyms_F77=
13161   # exclude_expsyms can be an extended regexp of symbols to exclude
13162   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13163   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13164   # as well as any symbol that contains `d'.
13165   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13166   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13167   # platforms (ab)use it in PIC code, but their linkers get confused if
13168   # the symbol is explicitly referenced.  Since portable code cannot
13169   # rely on this symbol name, it's probably fine to never include it in
13170   # preloaded symbol tables.
13171   extract_expsyms_cmds=
13172
13173   case $host_os in
13174   cygwin* | mingw* | pw32*)
13175     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13176     # When not using gcc, we currently assume that we are using
13177     # Microsoft Visual C++.
13178     if test "$GCC" != yes; then
13179       with_gnu_ld=no
13180     fi
13181     ;;
13182   openbsd*)
13183     with_gnu_ld=no
13184     ;;
13185   esac
13186
13187   ld_shlibs_F77=yes
13188   if test "$with_gnu_ld" = yes; then
13189     # If archive_cmds runs LD, not CC, wlarc should be empty
13190     wlarc='${wl}'
13191
13192     # See if GNU ld supports shared libraries.
13193     case $host_os in
13194     aix3* | aix4* | aix5*)
13195       # On AIX/PPC, the GNU linker is very broken
13196       if test "$host_cpu" != ia64; then
13197         ld_shlibs_F77=no
13198         cat <<EOF 1>&2
13199
13200 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13201 *** to be unable to reliably create shared libraries on AIX.
13202 *** Therefore, libtool is disabling shared libraries support.  If you
13203 *** really care for shared libraries, you may want to modify your PATH
13204 *** so that a non-GNU linker is found, and then restart.
13205
13206 EOF
13207       fi
13208       ;;
13209
13210     amigaos*)
13211       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)'
13212       hardcode_libdir_flag_spec_F77='-L$libdir'
13213       hardcode_minus_L_F77=yes
13214
13215       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13216       # that the semantics of dynamic libraries on AmigaOS, at least up
13217       # to version 4, is to share data among multiple programs linked
13218       # with the same dynamic library.  Since this doesn't match the
13219       # behavior of shared libraries on other platforms, we can't use
13220       # them.
13221       ld_shlibs_F77=no
13222       ;;
13223
13224     beos*)
13225       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13226         allow_undefined_flag_F77=unsupported
13227         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13228         # support --undefined.  This deserves some investigation.  FIXME
13229         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13230       else
13231         ld_shlibs_F77=no
13232       fi
13233       ;;
13234
13235     cygwin* | mingw* | pw32*)
13236       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13237       # as there is no search path for DLLs.
13238       hardcode_libdir_flag_spec_F77='-L$libdir'
13239       allow_undefined_flag_F77=unsupported
13240       always_export_symbols_F77=no
13241       enable_shared_with_static_runtimes_F77=yes
13242       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13243
13244       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13245         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13246         # If the export-symbols file already is a .def file (1st line
13247         # is EXPORTS), use it as is; otherwise, prepend...
13248         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13249           cp $export_symbols $output_objdir/$soname.def;
13250         else
13251           echo EXPORTS > $output_objdir/$soname.def;
13252           cat $export_symbols >> $output_objdir/$soname.def;
13253         fi~
13254         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13255       else
13256         ld_shlibs=no
13257       fi
13258       ;;
13259
13260     netbsd*)
13261       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13262         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13263         wlarc=
13264       else
13265         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13266         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13267       fi
13268       ;;
13269
13270     solaris* | sysv5*)
13271       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13272         ld_shlibs_F77=no
13273         cat <<EOF 1>&2
13274
13275 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13276 *** create shared libraries on Solaris systems.  Therefore, libtool
13277 *** is disabling shared libraries support.  We urge you to upgrade GNU
13278 *** binutils to release 2.9.1 or newer.  Another option is to modify
13279 *** your PATH or compiler configuration so that the native linker is
13280 *** used, and then restart.
13281
13282 EOF
13283       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13284         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13285         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13286       else
13287         ld_shlibs_F77=no
13288       fi
13289       ;;
13290
13291     sunos4*)
13292       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13293       wlarc=
13294       hardcode_direct_F77=yes
13295       hardcode_shlibpath_var_F77=no
13296       ;;
13297
13298     *)
13299       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13300         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13301         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13302       else
13303         ld_shlibs_F77=no
13304       fi
13305       ;;
13306     esac
13307
13308     if test "$ld_shlibs_F77" = yes; then
13309       runpath_var=LD_RUN_PATH
13310       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13311       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13312       # ancient GNU ld didn't support --whole-archive et. al.
13313       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13314         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13315       else
13316         whole_archive_flag_spec_F77=
13317       fi
13318     fi
13319   else
13320     # PORTME fill in a description of your system's linker (not GNU ld)
13321     case $host_os in
13322     aix3*)
13323       allow_undefined_flag_F77=unsupported
13324       always_export_symbols_F77=yes
13325       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'
13326       # Note: this linker hardcodes the directories in LIBPATH if there
13327       # are no directories specified by -L.
13328       hardcode_minus_L_F77=yes
13329       if test "$GCC" = yes && test -z "$link_static_flag"; then
13330         # Neither direct hardcoding nor static linking is supported with a
13331         # broken collect2.
13332         hardcode_direct_F77=unsupported
13333       fi
13334       ;;
13335
13336     aix4* | aix5*)
13337       if test "$host_cpu" = ia64; then
13338         # On IA64, the linker does run time linking by default, so we don't
13339         # have to do anything special.
13340         aix_use_runtimelinking=no
13341         exp_sym_flag='-Bexport'
13342         no_entry_flag=""
13343       else
13344         # If we're using GNU nm, then we don't want the "-C" option.
13345         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13346         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13347           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'
13348         else
13349           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'
13350         fi
13351         aix_use_runtimelinking=no
13352
13353         # Test if we are trying to use run time linking or normal
13354         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13355         # need to do runtime linking.
13356         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13357           for ld_flag in $LDFLAGS; do
13358           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13359             aix_use_runtimelinking=yes
13360             break
13361           fi
13362           done
13363         esac
13364
13365         exp_sym_flag='-bexport'
13366         no_entry_flag='-bnoentry'
13367       fi
13368
13369       # When large executables or shared objects are built, AIX ld can
13370       # have problems creating the table of contents.  If linking a library
13371       # or program results in "error TOC overflow" add -mminimal-toc to
13372       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13373       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13374
13375       archive_cmds_F77=''
13376       hardcode_direct_F77=yes
13377       hardcode_libdir_separator_F77=':'
13378       link_all_deplibs_F77=yes
13379
13380       if test "$GCC" = yes; then
13381         case $host_os in aix4.012|aix4.012.*)
13382         # We only want to do this on AIX 4.2 and lower, the check
13383         # below for broken collect2 doesn't work under 4.3+
13384           collect2name=`${CC} -print-prog-name=collect2`
13385           if test -f "$collect2name" && \
13386            strings "$collect2name" | grep resolve_lib_name >/dev/null
13387           then
13388           # We have reworked collect2
13389           hardcode_direct_F77=yes
13390           else
13391           # We have old collect2
13392           hardcode_direct_F77=unsupported
13393           # It fails to find uninstalled libraries when the uninstalled
13394           # path is not listed in the libpath.  Setting hardcode_minus_L
13395           # to unsupported forces relinking
13396           hardcode_minus_L_F77=yes
13397           hardcode_libdir_flag_spec_F77='-L$libdir'
13398           hardcode_libdir_separator_F77=
13399           fi
13400         esac
13401         shared_flag='-shared'
13402       else
13403         # not using gcc
13404         if test "$host_cpu" = ia64; then
13405         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13406         # chokes on -Wl,-G. The following line is correct:
13407           shared_flag='-G'
13408         else
13409         if test "$aix_use_runtimelinking" = yes; then
13410             shared_flag='${wl}-G'
13411           else
13412             shared_flag='${wl}-bM:SRE'
13413         fi
13414         fi
13415       fi
13416
13417       # It seems that -bexpall does not export symbols beginning with
13418       # underscore (_), so it is better to generate a list of symbols to export.
13419       always_export_symbols_F77=yes
13420       if test "$aix_use_runtimelinking" = yes; then
13421         # Warning - without using the other runtime loading flags (-brtl),
13422         # -berok will link without error, but may produce a broken library.
13423         allow_undefined_flag_F77='-berok'
13424        # Determine the default libpath from the value encoded in an empty executable.
13425        cat >conftest.$ac_ext <<_ACEOF
13426       program main
13427
13428       end
13429 _ACEOF
13430 rm -f conftest.$ac_objext conftest$ac_exeext
13431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13432   (eval $ac_link) 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); } &&
13436          { ac_try='test -s conftest$ac_exeext'
13437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438   (eval $ac_try) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); }; }; then
13442
13443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13444 }'`
13445 # Check for a 64-bit object if we didn't find anything.
13446 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; }
13447 }'`; fi
13448 else
13449   echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13451
13452 fi
13453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13454 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13455
13456        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13457         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"
13458        else
13459         if test "$host_cpu" = ia64; then
13460           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13461           allow_undefined_flag_F77="-z nodefs"
13462           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"
13463         else
13464          # Determine the default libpath from the value encoded in an empty executable.
13465          cat >conftest.$ac_ext <<_ACEOF
13466       program main
13467
13468       end
13469 _ACEOF
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472   (eval $ac_link) 2>&5
13473   ac_status=$?
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); } &&
13476          { ac_try='test -s conftest$ac_exeext'
13477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478   (eval $ac_try) 2>&5
13479   ac_status=$?
13480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481   (exit $ac_status); }; }; then
13482
13483 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13484 }'`
13485 # Check for a 64-bit object if we didn't find anything.
13486 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; }
13487 }'`; fi
13488 else
13489   echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13491
13492 fi
13493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13495
13496          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13497           # Warning - without using the other run time loading flags,
13498           # -berok will link without error, but may produce a broken library.
13499           no_undefined_flag_F77=' ${wl}-bernotok'
13500           allow_undefined_flag_F77=' ${wl}-berok'
13501           # -bexpall does not export symbols beginning with underscore (_)
13502           always_export_symbols_F77=yes
13503           # Exported symbols can be pulled into shared objects from archives
13504           whole_archive_flag_spec_F77=' '
13505           archive_cmds_need_lc_F77=yes
13506           # This is similar to how AIX traditionally builds it's shared libraries.
13507           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'
13508         fi
13509       fi
13510       ;;
13511
13512     amigaos*)
13513       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)'
13514       hardcode_libdir_flag_spec_F77='-L$libdir'
13515       hardcode_minus_L_F77=yes
13516       # see comment about different semantics on the GNU ld section
13517       ld_shlibs_F77=no
13518       ;;
13519
13520     bsdi4*)
13521       export_dynamic_flag_spec_F77=-rdynamic
13522       ;;
13523
13524     cygwin* | mingw* | pw32*)
13525       # When not using gcc, we currently assume that we are using
13526       # Microsoft Visual C++.
13527       # hardcode_libdir_flag_spec is actually meaningless, as there is
13528       # no search path for DLLs.
13529       hardcode_libdir_flag_spec_F77=' '
13530       allow_undefined_flag_F77=unsupported
13531       # Tell ltmain to make .lib files, not .a files.
13532       libext=lib
13533       # Tell ltmain to make .dll files, not .so files.
13534       shrext=".dll"
13535       # FIXME: Setting linknames here is a bad hack.
13536       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13537       # The linker will automatically build a .lib file if we build a DLL.
13538       old_archive_From_new_cmds_F77='true'
13539       # FIXME: Should let the user specify the lib program.
13540       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13541       fix_srcfile_path='`cygpath -w "$srcfile"`'
13542       enable_shared_with_static_runtimes_F77=yes
13543       ;;
13544
13545     darwin* | rhapsody*)
13546     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13547       archive_cmds_need_lc_F77=no
13548       case "$host_os" in
13549       rhapsody* | darwin1.[012])
13550         allow_undefined_flag_F77='-undefined suppress'
13551         ;;
13552       *) # Darwin 1.3 on
13553         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13554         ;;
13555       esac
13556       # FIXME: Relying on posixy $() will cause problems for
13557       #        cross-compilation, but unfortunately the echo tests do not
13558       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13559       #        `"' quotes if we put them in here... so don't!
13560         lt_int_apple_cc_single_mod=no
13561         output_verbose_link_cmd='echo'
13562         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13563           lt_int_apple_cc_single_mod=yes
13564         fi
13565         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13566           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13567         else
13568         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'
13569       fi
13570       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13571       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13572         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13573           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}'
13574         else
13575           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}'
13576         fi
13577           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}'
13578       hardcode_direct_F77=no
13579       hardcode_automatic_F77=yes
13580       hardcode_shlibpath_var_F77=unsupported
13581       whole_archive_flag_spec_F77='-all_load $convenience'
13582       link_all_deplibs_F77=yes
13583     fi
13584       ;;
13585
13586     dgux*)
13587       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13588       hardcode_libdir_flag_spec_F77='-L$libdir'
13589       hardcode_shlibpath_var_F77=no
13590       ;;
13591
13592     freebsd1*)
13593       ld_shlibs_F77=no
13594       ;;
13595
13596     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13597     # support.  Future versions do this automatically, but an explicit c++rt0.o
13598     # does not break anything, and helps significantly (at the cost of a little
13599     # extra space).
13600     freebsd2.2*)
13601       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13602       hardcode_libdir_flag_spec_F77='-R$libdir'
13603       hardcode_direct_F77=yes
13604       hardcode_shlibpath_var_F77=no
13605       ;;
13606
13607     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13608     freebsd2*)
13609       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13610       hardcode_direct_F77=yes
13611       hardcode_minus_L_F77=yes
13612       hardcode_shlibpath_var_F77=no
13613       ;;
13614
13615     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13616     freebsd*)
13617       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13618       hardcode_libdir_flag_spec_F77='-R$libdir'
13619       hardcode_direct_F77=yes
13620       hardcode_shlibpath_var_F77=no
13621       ;;
13622
13623     hpux9*)
13624       if test "$GCC" = yes; then
13625         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'
13626       else
13627         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'
13628       fi
13629       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13630       hardcode_libdir_separator_F77=:
13631       hardcode_direct_F77=yes
13632
13633       # hardcode_minus_L: Not really in the search PATH,
13634       # but as the default location of the library.
13635       hardcode_minus_L_F77=yes
13636       export_dynamic_flag_spec_F77='${wl}-E'
13637       ;;
13638
13639     hpux10* | hpux11*)
13640       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13641         case "$host_cpu" in
13642         hppa*64*|ia64*)
13643           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13644           ;;
13645         *)
13646           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13647           ;;
13648         esac
13649       else
13650         case "$host_cpu" in
13651         hppa*64*|ia64*)
13652           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13653           ;;
13654         *)
13655           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13656           ;;
13657         esac
13658       fi
13659       if test "$with_gnu_ld" = no; then
13660         case "$host_cpu" in
13661         hppa*64*)
13662           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13663           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13664           hardcode_libdir_separator_F77=:
13665           hardcode_direct_F77=no
13666           hardcode_shlibpath_var_F77=no
13667           ;;
13668         ia64*)
13669           hardcode_libdir_flag_spec_F77='-L$libdir'
13670           hardcode_direct_F77=no
13671           hardcode_shlibpath_var_F77=no
13672
13673           # hardcode_minus_L: Not really in the search PATH,
13674           # but as the default location of the library.
13675           hardcode_minus_L_F77=yes
13676           ;;
13677         *)
13678           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13679           hardcode_libdir_separator_F77=:
13680           hardcode_direct_F77=yes
13681           export_dynamic_flag_spec_F77='${wl}-E'
13682
13683           # hardcode_minus_L: Not really in the search PATH,
13684           # but as the default location of the library.
13685           hardcode_minus_L_F77=yes
13686           ;;
13687         esac
13688       fi
13689       ;;
13690
13691     irix5* | irix6* | nonstopux*)
13692       if test "$GCC" = yes; then
13693         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'
13694       else
13695         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'
13696         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13697       fi
13698       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13699       hardcode_libdir_separator_F77=:
13700       link_all_deplibs_F77=yes
13701       ;;
13702
13703     netbsd*)
13704       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13705         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13706       else
13707         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13708       fi
13709       hardcode_libdir_flag_spec_F77='-R$libdir'
13710       hardcode_direct_F77=yes
13711       hardcode_shlibpath_var_F77=no
13712       ;;
13713
13714     newsos6)
13715       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13716       hardcode_direct_F77=yes
13717       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13718       hardcode_libdir_separator_F77=:
13719       hardcode_shlibpath_var_F77=no
13720       ;;
13721
13722     openbsd*)
13723       hardcode_direct_F77=yes
13724       hardcode_shlibpath_var_F77=no
13725       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13726         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13727         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13728         export_dynamic_flag_spec_F77='${wl}-E'
13729       else
13730        case $host_os in
13731          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13732            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13733            hardcode_libdir_flag_spec_F77='-R$libdir'
13734            ;;
13735          *)
13736            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13737            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13738            ;;
13739        esac
13740       fi
13741       ;;
13742
13743     os2*)
13744       hardcode_libdir_flag_spec_F77='-L$libdir'
13745       hardcode_minus_L_F77=yes
13746       allow_undefined_flag_F77=unsupported
13747       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'
13748       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13749       ;;
13750
13751     osf3*)
13752       if test "$GCC" = yes; then
13753         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13754         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'
13755       else
13756         allow_undefined_flag_F77=' -expect_unresolved \*'
13757         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'
13758       fi
13759       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13760       hardcode_libdir_separator_F77=:
13761       ;;
13762
13763     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13764       if test "$GCC" = yes; then
13765         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13766         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'
13767         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13768       else
13769         allow_undefined_flag_F77=' -expect_unresolved \*'
13770         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'
13771         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~
13772         $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'
13773
13774         # Both c and cxx compiler support -rpath directly
13775         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13776       fi
13777       hardcode_libdir_separator_F77=:
13778       ;;
13779
13780     sco3.2v5*)
13781       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13782       hardcode_shlibpath_var_F77=no
13783       export_dynamic_flag_spec_F77='${wl}-Bexport'
13784       runpath_var=LD_RUN_PATH
13785       hardcode_runpath_var=yes
13786       ;;
13787
13788     solaris*)
13789       no_undefined_flag_F77=' -z text'
13790       if test "$GCC" = yes; then
13791         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13792         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13793           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13794       else
13795         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13796         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13797         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13798       fi
13799       hardcode_libdir_flag_spec_F77='-R$libdir'
13800       hardcode_shlibpath_var_F77=no
13801       case $host_os in
13802       solaris2.[0-5] | solaris2.[0-5].*) ;;
13803       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13804         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13805       esac
13806       link_all_deplibs_F77=yes
13807       ;;
13808
13809     sunos4*)
13810       if test "x$host_vendor" = xsequent; then
13811         # Use $CC to link under sequent, because it throws in some extra .o
13812         # files that make .init and .fini sections work.
13813         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13814       else
13815         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13816       fi
13817       hardcode_libdir_flag_spec_F77='-L$libdir'
13818       hardcode_direct_F77=yes
13819       hardcode_minus_L_F77=yes
13820       hardcode_shlibpath_var_F77=no
13821       ;;
13822
13823     sysv4)
13824       case $host_vendor in
13825         sni)
13826           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13827           hardcode_direct_F77=yes # is this really true???
13828         ;;
13829         siemens)
13830           ## LD is ld it makes a PLAMLIB
13831           ## CC just makes a GrossModule.
13832           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13833           reload_cmds_F77='$CC -r -o $output$reload_objs'
13834           hardcode_direct_F77=no
13835         ;;
13836         motorola)
13837           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13838           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13839         ;;
13840       esac
13841       runpath_var='LD_RUN_PATH'
13842       hardcode_shlibpath_var_F77=no
13843       ;;
13844
13845     sysv4.3*)
13846       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13847       hardcode_shlibpath_var_F77=no
13848       export_dynamic_flag_spec_F77='-Bexport'
13849       ;;
13850
13851     sysv4*MP*)
13852       if test -d /usr/nec; then
13853         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13854         hardcode_shlibpath_var_F77=no
13855         runpath_var=LD_RUN_PATH
13856         hardcode_runpath_var=yes
13857         ld_shlibs_F77=yes
13858       fi
13859       ;;
13860
13861     sysv4.2uw2*)
13862       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13863       hardcode_direct_F77=yes
13864       hardcode_minus_L_F77=no
13865       hardcode_shlibpath_var_F77=no
13866       hardcode_runpath_var=yes
13867       runpath_var=LD_RUN_PATH
13868       ;;
13869
13870    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13871       no_undefined_flag_F77='${wl}-z ${wl}text'
13872       if test "$GCC" = yes; then
13873         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13874       else
13875         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13876       fi
13877       runpath_var='LD_RUN_PATH'
13878       hardcode_shlibpath_var_F77=no
13879       ;;
13880
13881     sysv5*)
13882       no_undefined_flag_F77=' -z text'
13883       # $CC -shared without GNU ld will not create a library from C++
13884       # object files and a static libstdc++, better avoid it by now
13885       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13887                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13888       hardcode_libdir_flag_spec_F77=
13889       hardcode_shlibpath_var_F77=no
13890       runpath_var='LD_RUN_PATH'
13891       ;;
13892
13893     uts4*)
13894       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13895       hardcode_libdir_flag_spec_F77='-L$libdir'
13896       hardcode_shlibpath_var_F77=no
13897       ;;
13898
13899     *)
13900       ld_shlibs_F77=no
13901       ;;
13902     esac
13903   fi
13904
13905 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13906 echo "${ECHO_T}$ld_shlibs_F77" >&6
13907 test "$ld_shlibs_F77" = no && can_build_shared=no
13908
13909 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13910 if test "$GCC" = yes; then
13911   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13912 fi
13913
13914 #
13915 # Do we need to explicitly link libc?
13916 #
13917 case "x$archive_cmds_need_lc_F77" in
13918 x|xyes)
13919   # Assume -lc should be added
13920   archive_cmds_need_lc_F77=yes
13921
13922   if test "$enable_shared" = yes && test "$GCC" = yes; then
13923     case $archive_cmds_F77 in
13924     *'~'*)
13925       # FIXME: we may have to deal with multi-command sequences.
13926       ;;
13927     '$CC '*)
13928       # Test whether the compiler implicitly links with -lc since on some
13929       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13930       # to ld, don't add -lc before -lgcc.
13931       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13932 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13933       $rm conftest*
13934       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13935
13936       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13937   (eval $ac_compile) 2>&5
13938   ac_status=$?
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); } 2>conftest.err; then
13941         soname=conftest
13942         lib=conftest
13943         libobjs=conftest.$ac_objext
13944         deplibs=
13945         wl=$lt_prog_compiler_wl_F77
13946         compiler_flags=-v
13947         linker_flags=-v
13948         verstring=
13949         output_objdir=.
13950         libname=conftest
13951         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13952         allow_undefined_flag_F77=
13953         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13954   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13955   ac_status=$?
13956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); }
13958         then
13959           archive_cmds_need_lc_F77=no
13960         else
13961           archive_cmds_need_lc_F77=yes
13962         fi
13963         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13964       else
13965         cat conftest.err 1>&5
13966       fi
13967       $rm conftest*
13968       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13969 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13970       ;;
13971     esac
13972   fi
13973   ;;
13974 esac
13975
13976 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13977 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13978 hardcode_action_F77=
13979 if test -n "$hardcode_libdir_flag_spec_F77" || \
13980    test -n "$runpath_var F77" || \
13981    test "X$hardcode_automatic_F77"="Xyes" ; then
13982
13983   # We can hardcode non-existant directories.
13984   if test "$hardcode_direct_F77" != no &&
13985      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13986      # have to relink, otherwise we might link with an installed library
13987      # when we should be linking with a yet-to-be-installed one
13988      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13989      test "$hardcode_minus_L_F77" != no; then
13990     # Linking always hardcodes the temporary library directory.
13991     hardcode_action_F77=relink
13992   else
13993     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13994     hardcode_action_F77=immediate
13995   fi
13996 else
13997   # We cannot hardcode anything, or else we can only hardcode existing
13998   # directories.
13999   hardcode_action_F77=unsupported
14000 fi
14001 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14002 echo "${ECHO_T}$hardcode_action_F77" >&6
14003
14004 if test "$hardcode_action_F77" = relink; then
14005   # Fast installation is not supported
14006   enable_fast_install=no
14007 elif test "$shlibpath_overrides_runpath" = yes ||
14008      test "$enable_shared" = no; then
14009   # Fast installation is not necessary
14010   enable_fast_install=needless
14011 fi
14012
14013 striplib=
14014 old_striplib=
14015 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14016 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14017 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14018   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14019   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14020   echo "$as_me:$LINENO: result: yes" >&5
14021 echo "${ECHO_T}yes" >&6
14022 else
14023 # FIXME - insert some real tests, host_os isn't really good enough
14024   case $host_os in
14025    darwin*)
14026        if test -n "$STRIP" ; then
14027          striplib="$STRIP -x"
14028          echo "$as_me:$LINENO: result: yes" >&5
14029 echo "${ECHO_T}yes" >&6
14030        else
14031   echo "$as_me:$LINENO: result: no" >&5
14032 echo "${ECHO_T}no" >&6
14033 fi
14034        ;;
14035    *)
14036   echo "$as_me:$LINENO: result: no" >&5
14037 echo "${ECHO_T}no" >&6
14038     ;;
14039   esac
14040 fi
14041
14042 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14043 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14044 library_names_spec=
14045 libname_spec='lib$name'
14046 soname_spec=
14047 shrext=".so"
14048 postinstall_cmds=
14049 postuninstall_cmds=
14050 finish_cmds=
14051 finish_eval=
14052 shlibpath_var=
14053 shlibpath_overrides_runpath=unknown
14054 version_type=none
14055 dynamic_linker="$host_os ld.so"
14056 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14057 if test "$GCC" = yes; then
14058   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14059   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14060     # if the path contains ";" then we assume it to be the separator
14061     # otherwise default to the standard path separator (i.e. ":") - it is
14062     # assumed that no part of a normal pathname contains ";" but that should
14063     # okay in the real world where ";" in dirpaths is itself problematic.
14064     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14065   else
14066     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14067   fi
14068 else
14069   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14070 fi
14071 need_lib_prefix=unknown
14072 hardcode_into_libs=no
14073
14074 # when you set need_version to no, make sure it does not cause -set_version
14075 # flags to be left without arguments
14076 need_version=unknown
14077
14078 case $host_os in
14079 aix3*)
14080   version_type=linux
14081   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14082   shlibpath_var=LIBPATH
14083
14084   # AIX 3 has no versioning support, so we append a major version to the name.
14085   soname_spec='${libname}${release}${shared_ext}$major'
14086   ;;
14087
14088 aix4* | aix5*)
14089   version_type=linux
14090   need_lib_prefix=no
14091   need_version=no
14092   hardcode_into_libs=yes
14093   if test "$host_cpu" = ia64; then
14094     # AIX 5 supports IA64
14095     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14096     shlibpath_var=LD_LIBRARY_PATH
14097   else
14098     # With GCC up to 2.95.x, collect2 would create an import file
14099     # for dependence libraries.  The import file would start with
14100     # the line `#! .'.  This would cause the generated library to
14101     # depend on `.', always an invalid library.  This was fixed in
14102     # development snapshots of GCC prior to 3.0.
14103     case $host_os in
14104       aix4 | aix4.[01] | aix4.[01].*)
14105       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14106            echo ' yes '
14107            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14108         :
14109       else
14110         can_build_shared=no
14111       fi
14112       ;;
14113     esac
14114     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14115     # soname into executable. Probably we can add versioning support to
14116     # collect2, so additional links can be useful in future.
14117     if test "$aix_use_runtimelinking" = yes; then
14118       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14119       # instead of lib<name>.a to let people know that these are not
14120       # typical AIX shared libraries.
14121       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14122     else
14123       # We preserve .a as extension for shared libraries through AIX4.2
14124       # and later when we are not doing run time linking.
14125       library_names_spec='${libname}${release}.a $libname.a'
14126       soname_spec='${libname}${release}${shared_ext}$major'
14127     fi
14128     shlibpath_var=LIBPATH
14129   fi
14130   ;;
14131
14132 amigaos*)
14133   library_names_spec='$libname.ixlibrary $libname.a'
14134   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14135   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'
14136   ;;
14137
14138 beos*)
14139   library_names_spec='${libname}${shared_ext}'
14140   dynamic_linker="$host_os ld.so"
14141   shlibpath_var=LIBRARY_PATH
14142   ;;
14143
14144 bsdi4*)
14145   version_type=linux
14146   need_version=no
14147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14148   soname_spec='${libname}${release}${shared_ext}$major'
14149   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14150   shlibpath_var=LD_LIBRARY_PATH
14151   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14152   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14153   # the default ld.so.conf also contains /usr/contrib/lib and
14154   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14155   # libtool to hard-code these into programs
14156   ;;
14157
14158 cygwin* | mingw* | pw32*)
14159   version_type=windows
14160   shrext=".dll"
14161   need_version=no
14162   need_lib_prefix=no
14163
14164   case $GCC,$host_os in
14165   yes,cygwin* | yes,mingw* | yes,pw32*)
14166     library_names_spec='$libname.dll.a'
14167     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14168     postinstall_cmds='base_file=`basename \${file}`~
14169       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14170       dldir=$destdir/`dirname \$dlpath`~
14171       test -d \$dldir || mkdir -p \$dldir~
14172       $install_prog $dir/$dlname \$dldir/$dlname'
14173     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14174       dlpath=$dir/\$dldll~
14175        $rm \$dlpath'
14176     shlibpath_overrides_runpath=yes
14177
14178     case $host_os in
14179     cygwin*)
14180       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14181       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14182       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14183       ;;
14184     mingw*)
14185       # MinGW DLLs use traditional 'lib' prefix
14186       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14187       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14188       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14189         # It is most probably a Windows format PATH printed by
14190         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14191         # path with ; separators, and with drive letters. We can handle the
14192         # drive letters (cygwin fileutils understands them), so leave them,
14193         # especially as we might pass files found there to a mingw objdump,
14194         # which wouldn't understand a cygwinified path. Ahh.
14195         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14196       else
14197         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14198       fi
14199       ;;
14200     pw32*)
14201       # pw32 DLLs use 'pw' prefix rather than 'lib'
14202       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14203       ;;
14204     esac
14205     ;;
14206
14207   *)
14208     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14209     ;;
14210   esac
14211   dynamic_linker='Win32 ld.exe'
14212   # FIXME: first we should search . and the directory the executable is in
14213   shlibpath_var=PATH
14214   ;;
14215
14216 darwin* | rhapsody*)
14217   dynamic_linker="$host_os dyld"
14218   version_type=darwin
14219   need_lib_prefix=no
14220   need_version=no
14221   # FIXME: Relying on posixy $() will cause problems for
14222   #        cross-compilation, but unfortunately the echo tests do not
14223   #        yet detect zsh echo's removal of \ escapes.
14224   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14225   soname_spec='${libname}${release}${major}$shared_ext'
14226   shlibpath_overrides_runpath=yes
14227   shlibpath_var=DYLD_LIBRARY_PATH
14228   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14229   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14230   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14231   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"`
14232   fi
14233   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14234   ;;
14235
14236 dgux*)
14237   version_type=linux
14238   need_lib_prefix=no
14239   need_version=no
14240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14241   soname_spec='${libname}${release}${shared_ext}$major'
14242   shlibpath_var=LD_LIBRARY_PATH
14243   ;;
14244
14245 freebsd1*)
14246   dynamic_linker=no
14247   ;;
14248
14249 freebsd*)
14250   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14251   version_type=freebsd-$objformat
14252   case $version_type in
14253     freebsd-elf*)
14254       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14255       need_version=no
14256       need_lib_prefix=no
14257       ;;
14258     freebsd-*)
14259       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14260       need_version=yes
14261       ;;
14262   esac
14263   shlibpath_var=LD_LIBRARY_PATH
14264   case $host_os in
14265   freebsd2*)
14266     shlibpath_overrides_runpath=yes
14267     ;;
14268   freebsd3.01* | freebsdelf3.01*)
14269     shlibpath_overrides_runpath=yes
14270     hardcode_into_libs=yes
14271     ;;
14272   *) # from 3.2 on
14273     shlibpath_overrides_runpath=no
14274     hardcode_into_libs=yes
14275     ;;
14276   esac
14277   ;;
14278
14279 gnu*)
14280   version_type=linux
14281   need_lib_prefix=no
14282   need_version=no
14283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14284   soname_spec='${libname}${release}${shared_ext}$major'
14285   shlibpath_var=LD_LIBRARY_PATH
14286   hardcode_into_libs=yes
14287   ;;
14288
14289 hpux9* | hpux10* | hpux11*)
14290   # Give a soname corresponding to the major version so that dld.sl refuses to
14291   # link against other versions.
14292   version_type=sunos
14293   need_lib_prefix=no
14294   need_version=no
14295   case "$host_cpu" in
14296   ia64*)
14297     shrext='.so'
14298     hardcode_into_libs=yes
14299     dynamic_linker="$host_os dld.so"
14300     shlibpath_var=LD_LIBRARY_PATH
14301     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14303     soname_spec='${libname}${release}${shared_ext}$major'
14304     if test "X$HPUX_IA64_MODE" = X32; then
14305       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14306     else
14307       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14308     fi
14309     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14310     ;;
14311    hppa*64*)
14312      shrext='.sl'
14313      hardcode_into_libs=yes
14314      dynamic_linker="$host_os dld.sl"
14315      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14316      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14317      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14318      soname_spec='${libname}${release}${shared_ext}$major'
14319      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14320      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14321      ;;
14322    *)
14323     shrext='.sl'
14324     dynamic_linker="$host_os dld.sl"
14325     shlibpath_var=SHLIB_PATH
14326     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14327     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14328     soname_spec='${libname}${release}${shared_ext}$major'
14329     ;;
14330   esac
14331   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14332   postinstall_cmds='chmod 555 $lib'
14333   ;;
14334
14335 irix5* | irix6* | nonstopux*)
14336   case $host_os in
14337     nonstopux*) version_type=nonstopux ;;
14338     *)
14339         if test "$lt_cv_prog_gnu_ld" = yes; then
14340                 version_type=linux
14341         else
14342                 version_type=irix
14343         fi ;;
14344   esac
14345   need_lib_prefix=no
14346   need_version=no
14347   soname_spec='${libname}${release}${shared_ext}$major'
14348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14349   case $host_os in
14350   irix5* | nonstopux*)
14351     libsuff= shlibsuff=
14352     ;;
14353   *)
14354     case $LD in # libtool.m4 will add one of these switches to LD
14355     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14356       libsuff= shlibsuff= libmagic=32-bit;;
14357     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14358       libsuff=32 shlibsuff=N32 libmagic=N32;;
14359     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14360       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14361     *) libsuff= shlibsuff= libmagic=never-match;;
14362     esac
14363     ;;
14364   esac
14365   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14366   shlibpath_overrides_runpath=no
14367   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14368   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14369   hardcode_into_libs=yes
14370   ;;
14371
14372 # No shared lib support for Linux oldld, aout, or coff.
14373 linux*oldld* | linux*aout* | linux*coff*)
14374   dynamic_linker=no
14375   ;;
14376
14377 # This must be Linux ELF.
14378 linux*)
14379   version_type=linux
14380   need_lib_prefix=no
14381   need_version=no
14382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14383   soname_spec='${libname}${release}${shared_ext}$major'
14384   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14385   shlibpath_var=LD_LIBRARY_PATH
14386   shlibpath_overrides_runpath=no
14387   # This implies no fast_install, which is unacceptable.
14388   # Some rework will be needed to allow for fast_install
14389   # before this can be enabled.
14390   hardcode_into_libs=yes
14391
14392   # We used to test for /lib/ld.so.1 and disable shared libraries on
14393   # powerpc, because MkLinux only supported shared libraries with the
14394   # GNU dynamic linker.  Since this was broken with cross compilers,
14395   # most powerpc-linux boxes support dynamic linking these days and
14396   # people can always --disable-shared, the test was removed, and we
14397   # assume the GNU/Linux dynamic linker is in use.
14398   dynamic_linker='GNU/Linux ld.so'
14399   ;;
14400
14401 netbsd*)
14402   version_type=sunos
14403   need_lib_prefix=no
14404   need_version=no
14405   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14407     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14408     dynamic_linker='NetBSD (a.out) ld.so'
14409   else
14410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14411     soname_spec='${libname}${release}${shared_ext}$major'
14412     dynamic_linker='NetBSD ld.elf_so'
14413   fi
14414   shlibpath_var=LD_LIBRARY_PATH
14415   shlibpath_overrides_runpath=yes
14416   hardcode_into_libs=yes
14417   ;;
14418
14419 newsos6)
14420   version_type=linux
14421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14422   shlibpath_var=LD_LIBRARY_PATH
14423   shlibpath_overrides_runpath=yes
14424   ;;
14425
14426 nto-qnx)
14427   version_type=linux
14428   need_lib_prefix=no
14429   need_version=no
14430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431   soname_spec='${libname}${release}${shared_ext}$major'
14432   shlibpath_var=LD_LIBRARY_PATH
14433   shlibpath_overrides_runpath=yes
14434   ;;
14435
14436 openbsd*)
14437   version_type=sunos
14438   need_lib_prefix=no
14439   need_version=no
14440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14441   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14442   shlibpath_var=LD_LIBRARY_PATH
14443   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14444     case $host_os in
14445       openbsd2.[89] | openbsd2.[89].*)
14446         shlibpath_overrides_runpath=no
14447         ;;
14448       *)
14449         shlibpath_overrides_runpath=yes
14450         ;;
14451       esac
14452   else
14453     shlibpath_overrides_runpath=yes
14454   fi
14455   ;;
14456
14457 os2*)
14458   libname_spec='$name'
14459   shrext=".dll"
14460   need_lib_prefix=no
14461   library_names_spec='$libname${shared_ext} $libname.a'
14462   dynamic_linker='OS/2 ld.exe'
14463   shlibpath_var=LIBPATH
14464   ;;
14465
14466 osf3* | osf4* | osf5*)
14467   version_type=osf
14468   need_lib_prefix=no
14469   need_version=no
14470   soname_spec='${libname}${release}${shared_ext}$major'
14471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14472   shlibpath_var=LD_LIBRARY_PATH
14473   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14474   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14475   ;;
14476
14477 sco3.2v5*)
14478   version_type=osf
14479   soname_spec='${libname}${release}${shared_ext}$major'
14480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481   shlibpath_var=LD_LIBRARY_PATH
14482   ;;
14483
14484 solaris*)
14485   version_type=linux
14486   need_lib_prefix=no
14487   need_version=no
14488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489   soname_spec='${libname}${release}${shared_ext}$major'
14490   shlibpath_var=LD_LIBRARY_PATH
14491   shlibpath_overrides_runpath=yes
14492   hardcode_into_libs=yes
14493   # ldd complains unless libraries are executable
14494   postinstall_cmds='chmod +x $lib'
14495   ;;
14496
14497 sunos4*)
14498   version_type=sunos
14499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14500   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14501   shlibpath_var=LD_LIBRARY_PATH
14502   shlibpath_overrides_runpath=yes
14503   if test "$with_gnu_ld" = yes; then
14504     need_lib_prefix=no
14505   fi
14506   need_version=yes
14507   ;;
14508
14509 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14510   version_type=linux
14511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14512   soname_spec='${libname}${release}${shared_ext}$major'
14513   shlibpath_var=LD_LIBRARY_PATH
14514   case $host_vendor in
14515     sni)
14516       shlibpath_overrides_runpath=no
14517       need_lib_prefix=no
14518       export_dynamic_flag_spec='${wl}-Blargedynsym'
14519       runpath_var=LD_RUN_PATH
14520       ;;
14521     siemens)
14522       need_lib_prefix=no
14523       ;;
14524     motorola)
14525       need_lib_prefix=no
14526       need_version=no
14527       shlibpath_overrides_runpath=no
14528       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14529       ;;
14530   esac
14531   ;;
14532
14533 sysv4*MP*)
14534   if test -d /usr/nec ;then
14535     version_type=linux
14536     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14537     soname_spec='$libname${shared_ext}.$major'
14538     shlibpath_var=LD_LIBRARY_PATH
14539   fi
14540   ;;
14541
14542 uts4*)
14543   version_type=linux
14544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545   soname_spec='${libname}${release}${shared_ext}$major'
14546   shlibpath_var=LD_LIBRARY_PATH
14547   ;;
14548
14549 *)
14550   dynamic_linker=no
14551   ;;
14552 esac
14553 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14554 echo "${ECHO_T}$dynamic_linker" >&6
14555 test "$dynamic_linker" = no && can_build_shared=no
14556
14557
14558 # The else clause should only fire when bootstrapping the
14559 # libtool distribution, otherwise you forgot to ship ltmain.sh
14560 # with your package, and you will get complaints that there are
14561 # no rules to generate ltmain.sh.
14562 if test -f "$ltmain"; then
14563   # See if we are running on zsh, and set the options which allow our commands through
14564   # without removal of \ escapes.
14565   if test -n "${ZSH_VERSION+set}" ; then
14566     setopt NO_GLOB_SUBST
14567   fi
14568   # Now quote all the things that may contain metacharacters while being
14569   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14570   # variables and quote the copies for generation of the libtool script.
14571   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14572     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14573     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14574     deplibs_check_method reload_flag reload_cmds need_locks \
14575     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14576     lt_cv_sys_global_symbol_to_c_name_address \
14577     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14578     old_postinstall_cmds old_postuninstall_cmds \
14579     compiler_F77 \
14580     CC_F77 \
14581     LD_F77 \
14582     lt_prog_compiler_wl_F77 \
14583     lt_prog_compiler_pic_F77 \
14584     lt_prog_compiler_static_F77 \
14585     lt_prog_compiler_no_builtin_flag_F77 \
14586     export_dynamic_flag_spec_F77 \
14587     thread_safe_flag_spec_F77 \
14588     whole_archive_flag_spec_F77 \
14589     enable_shared_with_static_runtimes_F77 \
14590     old_archive_cmds_F77 \
14591     old_archive_from_new_cmds_F77 \
14592     predep_objects_F77 \
14593     postdep_objects_F77 \
14594     predeps_F77 \
14595     postdeps_F77 \
14596     compiler_lib_search_path_F77 \
14597     archive_cmds_F77 \
14598     archive_expsym_cmds_F77 \
14599     postinstall_cmds_F77 \
14600     postuninstall_cmds_F77 \
14601     old_archive_from_expsyms_cmds_F77 \
14602     allow_undefined_flag_F77 \
14603     no_undefined_flag_F77 \
14604     export_symbols_cmds_F77 \
14605     hardcode_libdir_flag_spec_F77 \
14606     hardcode_libdir_flag_spec_ld_F77 \
14607     hardcode_libdir_separator_F77 \
14608     hardcode_automatic_F77 \
14609     module_cmds_F77 \
14610     module_expsym_cmds_F77 \
14611     lt_cv_prog_compiler_c_o_F77 \
14612     exclude_expsyms_F77 \
14613     include_expsyms_F77; do
14614
14615     case $var in
14616     old_archive_cmds_F77 | \
14617     old_archive_from_new_cmds_F77 | \
14618     archive_cmds_F77 | \
14619     archive_expsym_cmds_F77 | \
14620     module_cmds_F77 | \
14621     module_expsym_cmds_F77 | \
14622     old_archive_from_expsyms_cmds_F77 | \
14623     export_symbols_cmds_F77 | \
14624     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14625     postinstall_cmds | postuninstall_cmds | \
14626     old_postinstall_cmds | old_postuninstall_cmds | \
14627     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14628       # Double-quote double-evaled strings.
14629       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14630       ;;
14631     *)
14632       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14633       ;;
14634     esac
14635   done
14636
14637   case $lt_echo in
14638   *'\$0 --fallback-echo"')
14639     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14640     ;;
14641   esac
14642
14643 cfgfile="$ofile"
14644
14645   cat <<__EOF__ >> "$cfgfile"
14646 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14647
14648 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14649
14650 # Shell to use when invoking shell scripts.
14651 SHELL=$lt_SHELL
14652
14653 # Whether or not to build shared libraries.
14654 build_libtool_libs=$enable_shared
14655
14656 # Whether or not to build static libraries.
14657 build_old_libs=$enable_static
14658
14659 # Whether or not to add -lc for building shared libraries.
14660 build_libtool_need_lc=$archive_cmds_need_lc_F77
14661
14662 # Whether or not to disallow shared libs when runtime libs are static
14663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14664
14665 # Whether or not to optimize for fast installation.
14666 fast_install=$enable_fast_install
14667
14668 # The host system.
14669 host_alias=$host_alias
14670 host=$host
14671
14672 # An echo program that does not interpret backslashes.
14673 echo=$lt_echo
14674
14675 # The archiver.
14676 AR=$lt_AR
14677 AR_FLAGS=$lt_AR_FLAGS
14678
14679 # A C compiler.
14680 LTCC=$lt_LTCC
14681
14682 # A language-specific compiler.
14683 CC=$lt_compiler_F77
14684
14685 # Is the compiler the GNU C compiler?
14686 with_gcc=$GCC_F77
14687
14688 # An ERE matcher.
14689 EGREP=$lt_EGREP
14690
14691 # The linker used to build libraries.
14692 LD=$lt_LD_F77
14693
14694 # Whether we need hard or soft links.
14695 LN_S=$lt_LN_S
14696
14697 # A BSD-compatible nm program.
14698 NM=$lt_NM
14699
14700 # A symbol stripping program
14701 STRIP=$STRIP
14702
14703 # Used to examine libraries when file_magic_cmd begins "file"
14704 MAGIC_CMD=$MAGIC_CMD
14705
14706 # Used on cygwin: DLL creation program.
14707 DLLTOOL="$DLLTOOL"
14708
14709 # Used on cygwin: object dumper.
14710 OBJDUMP="$OBJDUMP"
14711
14712 # Used on cygwin: assembler.
14713 AS="$AS"
14714
14715 # The name of the directory that contains temporary libtool files.
14716 objdir=$objdir
14717
14718 # How to create reloadable object files.
14719 reload_flag=$lt_reload_flag
14720 reload_cmds=$lt_reload_cmds
14721
14722 # How to pass a linker flag through the compiler.
14723 wl=$lt_lt_prog_compiler_wl_F77
14724
14725 # Object file suffix (normally "o").
14726 objext="$ac_objext"
14727
14728 # Old archive suffix (normally "a").
14729 libext="$libext"
14730
14731 # Shared library suffix (normally ".so").
14732 shrext='$shrext'
14733
14734 # Executable file suffix (normally "").
14735 exeext="$exeext"
14736
14737 # Additional compiler flags for building library objects.
14738 pic_flag=$lt_lt_prog_compiler_pic_F77
14739 pic_mode=$pic_mode
14740
14741 # What is the maximum length of a command?
14742 max_cmd_len=$lt_cv_sys_max_cmd_len
14743
14744 # Does compiler simultaneously support -c and -o options?
14745 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14746
14747 # Must we lock files when doing compilation ?
14748 need_locks=$lt_need_locks
14749
14750 # Do we need the lib prefix for modules?
14751 need_lib_prefix=$need_lib_prefix
14752
14753 # Do we need a version for libraries?
14754 need_version=$need_version
14755
14756 # Whether dlopen is supported.
14757 dlopen_support=$enable_dlopen
14758
14759 # Whether dlopen of programs is supported.
14760 dlopen_self=$enable_dlopen_self
14761
14762 # Whether dlopen of statically linked programs is supported.
14763 dlopen_self_static=$enable_dlopen_self_static
14764
14765 # Compiler flag to prevent dynamic linking.
14766 link_static_flag=$lt_lt_prog_compiler_static_F77
14767
14768 # Compiler flag to turn off builtin functions.
14769 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14770
14771 # Compiler flag to allow reflexive dlopens.
14772 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14773
14774 # Compiler flag to generate shared objects directly from archives.
14775 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14776
14777 # Compiler flag to generate thread-safe objects.
14778 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14779
14780 # Library versioning type.
14781 version_type=$version_type
14782
14783 # Format of library name prefix.
14784 libname_spec=$lt_libname_spec
14785
14786 # List of archive names.  First name is the real one, the rest are links.
14787 # The last name is the one that the linker finds with -lNAME.
14788 library_names_spec=$lt_library_names_spec
14789
14790 # The coded name of the library, if different from the real name.
14791 soname_spec=$lt_soname_spec
14792
14793 # Commands used to build and install an old-style archive.
14794 RANLIB=$lt_RANLIB
14795 old_archive_cmds=$lt_old_archive_cmds_F77
14796 old_postinstall_cmds=$lt_old_postinstall_cmds
14797 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14798
14799 # Create an old-style archive from a shared archive.
14800 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14801
14802 # Create a temporary old-style archive to link instead of a shared archive.
14803 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14804
14805 # Commands used to build and install a shared archive.
14806 archive_cmds=$lt_archive_cmds_F77
14807 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14808 postinstall_cmds=$lt_postinstall_cmds
14809 postuninstall_cmds=$lt_postuninstall_cmds
14810
14811 # Commands used to build a loadable module (assumed same as above if empty)
14812 module_cmds=$lt_module_cmds_F77
14813 module_expsym_cmds=$lt_module_expsym_cmds_F77
14814
14815 # Commands to strip libraries.
14816 old_striplib=$lt_old_striplib
14817 striplib=$lt_striplib
14818
14819 # Dependencies to place before the objects being linked to create a
14820 # shared library.
14821 predep_objects=$lt_predep_objects_F77
14822
14823 # Dependencies to place after the objects being linked to create a
14824 # shared library.
14825 postdep_objects=$lt_postdep_objects_F77
14826
14827 # Dependencies to place before the objects being linked to create a
14828 # shared library.
14829 predeps=$lt_predeps_F77
14830
14831 # Dependencies to place after the objects being linked to create a
14832 # shared library.
14833 postdeps=$lt_postdeps_F77
14834
14835 # The library search path used internally by the compiler when linking
14836 # a shared library.
14837 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14838
14839 # Method to check whether dependent libraries are shared objects.
14840 deplibs_check_method=$lt_deplibs_check_method
14841
14842 # Command to use when deplibs_check_method == file_magic.
14843 file_magic_cmd=$lt_file_magic_cmd
14844
14845 # Flag that allows shared libraries with undefined symbols to be built.
14846 allow_undefined_flag=$lt_allow_undefined_flag_F77
14847
14848 # Flag that forces no undefined symbols.
14849 no_undefined_flag=$lt_no_undefined_flag_F77
14850
14851 # Commands used to finish a libtool library installation in a directory.
14852 finish_cmds=$lt_finish_cmds
14853
14854 # Same as above, but a single script fragment to be evaled but not shown.
14855 finish_eval=$lt_finish_eval
14856
14857 # Take the output of nm and produce a listing of raw symbols and C names.
14858 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14859
14860 # Transform the output of nm in a proper C declaration
14861 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14862
14863 # Transform the output of nm in a C name address pair
14864 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14865
14866 # This is the shared library runtime path variable.
14867 runpath_var=$runpath_var
14868
14869 # This is the shared library path variable.
14870 shlibpath_var=$shlibpath_var
14871
14872 # Is shlibpath searched before the hard-coded library search path?
14873 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14874
14875 # How to hardcode a shared library path into an executable.
14876 hardcode_action=$hardcode_action_F77
14877
14878 # Whether we should hardcode library paths into libraries.
14879 hardcode_into_libs=$hardcode_into_libs
14880
14881 # Flag to hardcode \$libdir into a binary during linking.
14882 # This must work even if \$libdir does not exist.
14883 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14884
14885 # If ld is used when linking, flag to hardcode \$libdir into
14886 # a binary during linking. This must work even if \$libdir does
14887 # not exist.
14888 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14889
14890 # Whether we need a single -rpath flag with a separated argument.
14891 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14892
14893 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14894 # resulting binary.
14895 hardcode_direct=$hardcode_direct_F77
14896
14897 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14898 # resulting binary.
14899 hardcode_minus_L=$hardcode_minus_L_F77
14900
14901 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14902 # the resulting binary.
14903 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14904
14905 # Set to yes if building a shared library automatically hardcodes DIR into the library
14906 # and all subsequent libraries and executables linked against it.
14907 hardcode_automatic=$hardcode_automatic_F77
14908
14909 # Variables whose values should be saved in libtool wrapper scripts and
14910 # restored at relink time.
14911 variables_saved_for_relink="$variables_saved_for_relink"
14912
14913 # Whether libtool must link a program against all its dependency libraries.
14914 link_all_deplibs=$link_all_deplibs_F77
14915
14916 # Compile-time system search path for libraries
14917 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14918
14919 # Run-time system search path for libraries
14920 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14921
14922 # Fix the shell variable \$srcfile for the compiler.
14923 fix_srcfile_path="$fix_srcfile_path_F77"
14924
14925 # Set to yes if exported symbols are required.
14926 always_export_symbols=$always_export_symbols_F77
14927
14928 # The commands to list exported symbols.
14929 export_symbols_cmds=$lt_export_symbols_cmds_F77
14930
14931 # The commands to extract the exported symbol list from a shared archive.
14932 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14933
14934 # Symbols that should not be listed in the preloaded symbols.
14935 exclude_expsyms=$lt_exclude_expsyms_F77
14936
14937 # Symbols that must always be exported.
14938 include_expsyms=$lt_include_expsyms_F77
14939
14940 # ### END LIBTOOL TAG CONFIG: $tagname
14941
14942 __EOF__
14943
14944
14945 else
14946   # If there is no Makefile yet, we rely on a make rule to execute
14947   # `config.status --recheck' to rerun these tests and create the
14948   # libtool script then.
14949   test -f Makefile && make "$ltmain"
14950 fi
14951
14952
14953 ac_ext=c
14954 ac_cpp='$CPP $CPPFLAGS'
14955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14958
14959 CC="$lt_save_CC"
14960
14961         else
14962           tagname=""
14963         fi
14964         ;;
14965
14966       GCJ)
14967         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14968
14969
14970
14971 # Source file extension for Java test sources.
14972 ac_ext=java
14973
14974 # Object file extension for compiled Java test sources.
14975 objext=o
14976 objext_GCJ=$objext
14977
14978 # Code to be used in simple compile tests
14979 lt_simple_compile_test_code="class foo {}\n"
14980
14981 # Code to be used in simple link tests
14982 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14983
14984 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14985
14986 # If no C compiler was specified, use CC.
14987 LTCC=${LTCC-"$CC"}
14988
14989 # Allow CC to be a program name with arguments.
14990 compiler=$CC
14991
14992
14993 # Allow CC to be a program name with arguments.
14994 lt_save_CC="$CC"
14995 CC=${GCJ-"gcj"}
14996 compiler=$CC
14997 compiler_GCJ=$CC
14998
14999 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15000 archive_cmds_need_lc_GCJ=no
15001
15002 ## CAVEAT EMPTOR:
15003 ## There is no encapsulation within the following macros, do not change
15004 ## the running order or otherwise move them around unless you know exactly
15005 ## what you are doing...
15006
15007 lt_prog_compiler_no_builtin_flag_GCJ=
15008
15009 if test "$GCC" = yes; then
15010   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15011
15012   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15013 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15014 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15015   echo $ECHO_N "(cached) $ECHO_C" >&6
15016 else
15017   lt_cv_prog_compiler_rtti_exceptions=no
15018   ac_outfile=conftest.$ac_objext
15019    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15020    lt_compiler_flag="-fno-rtti -fno-exceptions"
15021    # Insert the option either (1) after the last *FLAGS variable, or
15022    # (2) before a word containing "conftest.", or (3) at the end.
15023    # Note that $ac_compile itself does not contain backslashes and begins
15024    # with a dollar sign (not a hyphen), so the echo should work correctly.
15025    # The option is referenced via a variable to avoid confusing sed.
15026    lt_compile=`echo "$ac_compile" | $SED \
15027    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15028    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15029    -e 's:$: $lt_compiler_flag:'`
15030    (eval echo "\"\$as_me:15030: $lt_compile\"" >&5)
15031    (eval "$lt_compile" 2>conftest.err)
15032    ac_status=$?
15033    cat conftest.err >&5
15034    echo "$as_me:15034: \$? = $ac_status" >&5
15035    if (exit $ac_status) && test -s "$ac_outfile"; then
15036      # The compiler can only warn and ignore the option if not recognized
15037      # So say no if there are warnings
15038      if test ! -s conftest.err; then
15039        lt_cv_prog_compiler_rtti_exceptions=yes
15040      fi
15041    fi
15042    $rm conftest*
15043
15044 fi
15045 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15046 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15047
15048 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15049     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15050 else
15051     :
15052 fi
15053
15054 fi
15055
15056 lt_prog_compiler_wl_GCJ=
15057 lt_prog_compiler_pic_GCJ=
15058 lt_prog_compiler_static_GCJ=
15059
15060 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15061 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15062
15063   if test "$GCC" = yes; then
15064     lt_prog_compiler_wl_GCJ='-Wl,'
15065     lt_prog_compiler_static_GCJ='-static'
15066
15067     case $host_os in
15068       aix*)
15069       # All AIX code is PIC.
15070       if test "$host_cpu" = ia64; then
15071         # AIX 5 now supports IA64 processor
15072         lt_prog_compiler_static_GCJ='-Bstatic'
15073       fi
15074       ;;
15075
15076     amigaos*)
15077       # FIXME: we need at least 68020 code to build shared libraries, but
15078       # adding the `-m68020' flag to GCC prevents building anything better,
15079       # like `-m68040'.
15080       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15081       ;;
15082
15083     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15084       # PIC is the default for these OSes.
15085       ;;
15086
15087     mingw* | pw32* | os2*)
15088       # This hack is so that the source file can tell whether it is being
15089       # built for inclusion in a dll (and should export symbols for example).
15090       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15091       ;;
15092
15093     darwin* | rhapsody*)
15094       # PIC is the default on this platform
15095       # Common symbols not allowed in MH_DYLIB files
15096       lt_prog_compiler_pic_GCJ='-fno-common'
15097       ;;
15098
15099     msdosdjgpp*)
15100       # Just because we use GCC doesn't mean we suddenly get shared libraries
15101       # on systems that don't support them.
15102       lt_prog_compiler_can_build_shared_GCJ=no
15103       enable_shared=no
15104       ;;
15105
15106     sysv4*MP*)
15107       if test -d /usr/nec; then
15108         lt_prog_compiler_pic_GCJ=-Kconform_pic
15109       fi
15110       ;;
15111
15112     hpux*)
15113       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15114       # not for PA HP-UX.
15115       case "$host_cpu" in
15116       hppa*64*|ia64*)
15117         # +Z the default
15118         ;;
15119       *)
15120         lt_prog_compiler_pic_GCJ='-fPIC'
15121         ;;
15122       esac
15123       ;;
15124
15125     *)
15126       lt_prog_compiler_pic_GCJ='-fPIC'
15127       ;;
15128     esac
15129   else
15130     # PORTME Check for flag to pass linker flags through the system compiler.
15131     case $host_os in
15132     aix*)
15133       lt_prog_compiler_wl_GCJ='-Wl,'
15134       if test "$host_cpu" = ia64; then
15135         # AIX 5 now supports IA64 processor
15136         lt_prog_compiler_static_GCJ='-Bstatic'
15137       else
15138         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15139       fi
15140       ;;
15141
15142     mingw* | pw32* | os2*)
15143       # This hack is so that the source file can tell whether it is being
15144       # built for inclusion in a dll (and should export symbols for example).
15145       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15146       ;;
15147
15148     hpux9* | hpux10* | hpux11*)
15149       lt_prog_compiler_wl_GCJ='-Wl,'
15150       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15151       # not for PA HP-UX.
15152       case "$host_cpu" in
15153       hppa*64*|ia64*)
15154         # +Z the default
15155         ;;
15156       *)
15157         lt_prog_compiler_pic_GCJ='+Z'
15158         ;;
15159       esac
15160       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15161       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15162       ;;
15163
15164     irix5* | irix6* | nonstopux*)
15165       lt_prog_compiler_wl_GCJ='-Wl,'
15166       # PIC (with -KPIC) is the default.
15167       lt_prog_compiler_static_GCJ='-non_shared'
15168       ;;
15169
15170     newsos6)
15171       lt_prog_compiler_pic_GCJ='-KPIC'
15172       lt_prog_compiler_static_GCJ='-Bstatic'
15173       ;;
15174
15175     linux*)
15176       case $CC in
15177       icc|ecc)
15178         lt_prog_compiler_wl_GCJ='-Wl,'
15179         lt_prog_compiler_pic_GCJ='-KPIC'
15180         lt_prog_compiler_static_GCJ='-static'
15181         ;;
15182       ccc)
15183         lt_prog_compiler_wl_GCJ='-Wl,'
15184         # All Alpha code is PIC.
15185         lt_prog_compiler_static_GCJ='-non_shared'
15186         ;;
15187       esac
15188       ;;
15189
15190     osf3* | osf4* | osf5*)
15191       lt_prog_compiler_wl_GCJ='-Wl,'
15192       # All OSF/1 code is PIC.
15193       lt_prog_compiler_static_GCJ='-non_shared'
15194       ;;
15195
15196     sco3.2v5*)
15197       lt_prog_compiler_pic_GCJ='-Kpic'
15198       lt_prog_compiler_static_GCJ='-dn'
15199       ;;
15200
15201     solaris*)
15202       lt_prog_compiler_wl_GCJ='-Wl,'
15203       lt_prog_compiler_pic_GCJ='-KPIC'
15204       lt_prog_compiler_static_GCJ='-Bstatic'
15205       ;;
15206
15207     sunos4*)
15208       lt_prog_compiler_wl_GCJ='-Qoption ld '
15209       lt_prog_compiler_pic_GCJ='-PIC'
15210       lt_prog_compiler_static_GCJ='-Bstatic'
15211       ;;
15212
15213     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15214       lt_prog_compiler_wl_GCJ='-Wl,'
15215       lt_prog_compiler_pic_GCJ='-KPIC'
15216       lt_prog_compiler_static_GCJ='-Bstatic'
15217       ;;
15218
15219     sysv4*MP*)
15220       if test -d /usr/nec ;then
15221         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15222         lt_prog_compiler_static_GCJ='-Bstatic'
15223       fi
15224       ;;
15225
15226     uts4*)
15227       lt_prog_compiler_pic_GCJ='-pic'
15228       lt_prog_compiler_static_GCJ='-Bstatic'
15229       ;;
15230
15231     *)
15232       lt_prog_compiler_can_build_shared_GCJ=no
15233       ;;
15234     esac
15235   fi
15236
15237 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15238 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15239
15240 #
15241 # Check to make sure the PIC flag actually works.
15242 #
15243 if test -n "$lt_prog_compiler_pic_GCJ"; then
15244   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15245 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15246 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15247   echo $ECHO_N "(cached) $ECHO_C" >&6
15248 else
15249   lt_prog_compiler_pic_works_GCJ=no
15250   ac_outfile=conftest.$ac_objext
15251    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15252    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15253    # Insert the option either (1) after the last *FLAGS variable, or
15254    # (2) before a word containing "conftest.", or (3) at the end.
15255    # Note that $ac_compile itself does not contain backslashes and begins
15256    # with a dollar sign (not a hyphen), so the echo should work correctly.
15257    # The option is referenced via a variable to avoid confusing sed.
15258    lt_compile=`echo "$ac_compile" | $SED \
15259    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15260    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15261    -e 's:$: $lt_compiler_flag:'`
15262    (eval echo "\"\$as_me:15262: $lt_compile\"" >&5)
15263    (eval "$lt_compile" 2>conftest.err)
15264    ac_status=$?
15265    cat conftest.err >&5
15266    echo "$as_me:15266: \$? = $ac_status" >&5
15267    if (exit $ac_status) && test -s "$ac_outfile"; then
15268      # The compiler can only warn and ignore the option if not recognized
15269      # So say no if there are warnings
15270      if test ! -s conftest.err; then
15271        lt_prog_compiler_pic_works_GCJ=yes
15272      fi
15273    fi
15274    $rm conftest*
15275
15276 fi
15277 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15278 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15279
15280 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15281     case $lt_prog_compiler_pic_GCJ in
15282      "" | " "*) ;;
15283      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15284      esac
15285 else
15286     lt_prog_compiler_pic_GCJ=
15287      lt_prog_compiler_can_build_shared_GCJ=no
15288 fi
15289
15290 fi
15291 case "$host_os" in
15292   # For platforms which do not support PIC, -DPIC is meaningless:
15293   *djgpp*)
15294     lt_prog_compiler_pic_GCJ=
15295     ;;
15296   *)
15297     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15298     ;;
15299 esac
15300
15301 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15302 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15303 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15304   echo $ECHO_N "(cached) $ECHO_C" >&6
15305 else
15306   lt_cv_prog_compiler_c_o_GCJ=no
15307    $rm -r conftest 2>/dev/null
15308    mkdir conftest
15309    cd conftest
15310    mkdir out
15311    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15312
15313    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15314    # that will create temporary files in the current directory regardless of
15315    # the output directory.  Thus, making CWD read-only will cause this test
15316    # to fail, enabling locking or at least warning the user not to do parallel
15317    # builds.
15318    chmod -w .
15319
15320    lt_compiler_flag="-o out/conftest2.$ac_objext"
15321    # Insert the option either (1) after the last *FLAGS variable, or
15322    # (2) before a word containing "conftest.", or (3) at the end.
15323    # Note that $ac_compile itself does not contain backslashes and begins
15324    # with a dollar sign (not a hyphen), so the echo should work correctly.
15325    lt_compile=`echo "$ac_compile" | $SED \
15326    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15327    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15328    -e 's:$: $lt_compiler_flag:'`
15329    (eval echo "\"\$as_me:15329: $lt_compile\"" >&5)
15330    (eval "$lt_compile" 2>out/conftest.err)
15331    ac_status=$?
15332    cat out/conftest.err >&5
15333    echo "$as_me:15333: \$? = $ac_status" >&5
15334    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15335    then
15336      # The compiler can only warn and ignore the option if not recognized
15337      # So say no if there are warnings
15338      if test ! -s out/conftest.err; then
15339        lt_cv_prog_compiler_c_o_GCJ=yes
15340      fi
15341    fi
15342    chmod u+w .
15343    $rm conftest* out/*
15344    rmdir out
15345    cd ..
15346    rmdir conftest
15347    $rm conftest*
15348
15349 fi
15350 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15351 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15352
15353
15354 hard_links="nottested"
15355 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15356   # do not overwrite the value of need_locks provided by the user
15357   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15358 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15359   hard_links=yes
15360   $rm conftest*
15361   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15362   touch conftest.a
15363   ln conftest.a conftest.b 2>&5 || hard_links=no
15364   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15365   echo "$as_me:$LINENO: result: $hard_links" >&5
15366 echo "${ECHO_T}$hard_links" >&6
15367   if test "$hard_links" = no; then
15368     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15369 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15370     need_locks=warn
15371   fi
15372 else
15373   need_locks=no
15374 fi
15375
15376 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15377 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15378
15379   runpath_var=
15380   allow_undefined_flag_GCJ=
15381   enable_shared_with_static_runtimes_GCJ=no
15382   archive_cmds_GCJ=
15383   archive_expsym_cmds_GCJ=
15384   old_archive_From_new_cmds_GCJ=
15385   old_archive_from_expsyms_cmds_GCJ=
15386   export_dynamic_flag_spec_GCJ=
15387   whole_archive_flag_spec_GCJ=
15388   thread_safe_flag_spec_GCJ=
15389   hardcode_libdir_flag_spec_GCJ=
15390   hardcode_libdir_flag_spec_ld_GCJ=
15391   hardcode_libdir_separator_GCJ=
15392   hardcode_direct_GCJ=no
15393   hardcode_minus_L_GCJ=no
15394   hardcode_shlibpath_var_GCJ=unsupported
15395   link_all_deplibs_GCJ=unknown
15396   hardcode_automatic_GCJ=no
15397   module_cmds_GCJ=
15398   module_expsym_cmds_GCJ=
15399   always_export_symbols_GCJ=no
15400   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15401   # include_expsyms should be a list of space-separated symbols to be *always*
15402   # included in the symbol list
15403   include_expsyms_GCJ=
15404   # exclude_expsyms can be an extended regexp of symbols to exclude
15405   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15406   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15407   # as well as any symbol that contains `d'.
15408   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15409   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15410   # platforms (ab)use it in PIC code, but their linkers get confused if
15411   # the symbol is explicitly referenced.  Since portable code cannot
15412   # rely on this symbol name, it's probably fine to never include it in
15413   # preloaded symbol tables.
15414   extract_expsyms_cmds=
15415
15416   case $host_os in
15417   cygwin* | mingw* | pw32*)
15418     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15419     # When not using gcc, we currently assume that we are using
15420     # Microsoft Visual C++.
15421     if test "$GCC" != yes; then
15422       with_gnu_ld=no
15423     fi
15424     ;;
15425   openbsd*)
15426     with_gnu_ld=no
15427     ;;
15428   esac
15429
15430   ld_shlibs_GCJ=yes
15431   if test "$with_gnu_ld" = yes; then
15432     # If archive_cmds runs LD, not CC, wlarc should be empty
15433     wlarc='${wl}'
15434
15435     # See if GNU ld supports shared libraries.
15436     case $host_os in
15437     aix3* | aix4* | aix5*)
15438       # On AIX/PPC, the GNU linker is very broken
15439       if test "$host_cpu" != ia64; then
15440         ld_shlibs_GCJ=no
15441         cat <<EOF 1>&2
15442
15443 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15444 *** to be unable to reliably create shared libraries on AIX.
15445 *** Therefore, libtool is disabling shared libraries support.  If you
15446 *** really care for shared libraries, you may want to modify your PATH
15447 *** so that a non-GNU linker is found, and then restart.
15448
15449 EOF
15450       fi
15451       ;;
15452
15453     amigaos*)
15454       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)'
15455       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15456       hardcode_minus_L_GCJ=yes
15457
15458       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15459       # that the semantics of dynamic libraries on AmigaOS, at least up
15460       # to version 4, is to share data among multiple programs linked
15461       # with the same dynamic library.  Since this doesn't match the
15462       # behavior of shared libraries on other platforms, we can't use
15463       # them.
15464       ld_shlibs_GCJ=no
15465       ;;
15466
15467     beos*)
15468       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15469         allow_undefined_flag_GCJ=unsupported
15470         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15471         # support --undefined.  This deserves some investigation.  FIXME
15472         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15473       else
15474         ld_shlibs_GCJ=no
15475       fi
15476       ;;
15477
15478     cygwin* | mingw* | pw32*)
15479       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15480       # as there is no search path for DLLs.
15481       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15482       allow_undefined_flag_GCJ=unsupported
15483       always_export_symbols_GCJ=no
15484       enable_shared_with_static_runtimes_GCJ=yes
15485       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15486
15487       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15488         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15489         # If the export-symbols file already is a .def file (1st line
15490         # is EXPORTS), use it as is; otherwise, prepend...
15491         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15492           cp $export_symbols $output_objdir/$soname.def;
15493         else
15494           echo EXPORTS > $output_objdir/$soname.def;
15495           cat $export_symbols >> $output_objdir/$soname.def;
15496         fi~
15497         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15498       else
15499         ld_shlibs=no
15500       fi
15501       ;;
15502
15503     netbsd*)
15504       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15505         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15506         wlarc=
15507       else
15508         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15509         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15510       fi
15511       ;;
15512
15513     solaris* | sysv5*)
15514       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15515         ld_shlibs_GCJ=no
15516         cat <<EOF 1>&2
15517
15518 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15519 *** create shared libraries on Solaris systems.  Therefore, libtool
15520 *** is disabling shared libraries support.  We urge you to upgrade GNU
15521 *** binutils to release 2.9.1 or newer.  Another option is to modify
15522 *** your PATH or compiler configuration so that the native linker is
15523 *** used, and then restart.
15524
15525 EOF
15526       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15527         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15528         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15529       else
15530         ld_shlibs_GCJ=no
15531       fi
15532       ;;
15533
15534     sunos4*)
15535       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15536       wlarc=
15537       hardcode_direct_GCJ=yes
15538       hardcode_shlibpath_var_GCJ=no
15539       ;;
15540
15541     *)
15542       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15543         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15544         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15545       else
15546         ld_shlibs_GCJ=no
15547       fi
15548       ;;
15549     esac
15550
15551     if test "$ld_shlibs_GCJ" = yes; then
15552       runpath_var=LD_RUN_PATH
15553       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15554       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15555       # ancient GNU ld didn't support --whole-archive et. al.
15556       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15557         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15558       else
15559         whole_archive_flag_spec_GCJ=
15560       fi
15561     fi
15562   else
15563     # PORTME fill in a description of your system's linker (not GNU ld)
15564     case $host_os in
15565     aix3*)
15566       allow_undefined_flag_GCJ=unsupported
15567       always_export_symbols_GCJ=yes
15568       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'
15569       # Note: this linker hardcodes the directories in LIBPATH if there
15570       # are no directories specified by -L.
15571       hardcode_minus_L_GCJ=yes
15572       if test "$GCC" = yes && test -z "$link_static_flag"; then
15573         # Neither direct hardcoding nor static linking is supported with a
15574         # broken collect2.
15575         hardcode_direct_GCJ=unsupported
15576       fi
15577       ;;
15578
15579     aix4* | aix5*)
15580       if test "$host_cpu" = ia64; then
15581         # On IA64, the linker does run time linking by default, so we don't
15582         # have to do anything special.
15583         aix_use_runtimelinking=no
15584         exp_sym_flag='-Bexport'
15585         no_entry_flag=""
15586       else
15587         # If we're using GNU nm, then we don't want the "-C" option.
15588         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15589         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15590           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'
15591         else
15592           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'
15593         fi
15594         aix_use_runtimelinking=no
15595
15596         # Test if we are trying to use run time linking or normal
15597         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15598         # need to do runtime linking.
15599         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15600           for ld_flag in $LDFLAGS; do
15601           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15602             aix_use_runtimelinking=yes
15603             break
15604           fi
15605           done
15606         esac
15607
15608         exp_sym_flag='-bexport'
15609         no_entry_flag='-bnoentry'
15610       fi
15611
15612       # When large executables or shared objects are built, AIX ld can
15613       # have problems creating the table of contents.  If linking a library
15614       # or program results in "error TOC overflow" add -mminimal-toc to
15615       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15616       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15617
15618       archive_cmds_GCJ=''
15619       hardcode_direct_GCJ=yes
15620       hardcode_libdir_separator_GCJ=':'
15621       link_all_deplibs_GCJ=yes
15622
15623       if test "$GCC" = yes; then
15624         case $host_os in aix4.012|aix4.012.*)
15625         # We only want to do this on AIX 4.2 and lower, the check
15626         # below for broken collect2 doesn't work under 4.3+
15627           collect2name=`${CC} -print-prog-name=collect2`
15628           if test -f "$collect2name" && \
15629            strings "$collect2name" | grep resolve_lib_name >/dev/null
15630           then
15631           # We have reworked collect2
15632           hardcode_direct_GCJ=yes
15633           else
15634           # We have old collect2
15635           hardcode_direct_GCJ=unsupported
15636           # It fails to find uninstalled libraries when the uninstalled
15637           # path is not listed in the libpath.  Setting hardcode_minus_L
15638           # to unsupported forces relinking
15639           hardcode_minus_L_GCJ=yes
15640           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15641           hardcode_libdir_separator_GCJ=
15642           fi
15643         esac
15644         shared_flag='-shared'
15645       else
15646         # not using gcc
15647         if test "$host_cpu" = ia64; then
15648         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15649         # chokes on -Wl,-G. The following line is correct:
15650           shared_flag='-G'
15651         else
15652         if test "$aix_use_runtimelinking" = yes; then
15653             shared_flag='${wl}-G'
15654           else
15655             shared_flag='${wl}-bM:SRE'
15656         fi
15657         fi
15658       fi
15659
15660       # It seems that -bexpall does not export symbols beginning with
15661       # underscore (_), so it is better to generate a list of symbols to export.
15662       always_export_symbols_GCJ=yes
15663       if test "$aix_use_runtimelinking" = yes; then
15664         # Warning - without using the other runtime loading flags (-brtl),
15665         # -berok will link without error, but may produce a broken library.
15666         allow_undefined_flag_GCJ='-berok'
15667        # Determine the default libpath from the value encoded in an empty executable.
15668        cat >conftest.$ac_ext <<_ACEOF
15669 #line $LINENO "configure"
15670 /* confdefs.h.  */
15671 _ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h.  */
15675
15676 int
15677 main ()
15678 {
15679
15680   ;
15681   return 0;
15682 }
15683 _ACEOF
15684 rm -f conftest.$ac_objext conftest$ac_exeext
15685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15686   (eval $ac_link) 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); } &&
15690          { ac_try='test -s conftest$ac_exeext'
15691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692   (eval $ac_try) 2>&5
15693   ac_status=$?
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); }; }; then
15696
15697 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15698 }'`
15699 # Check for a 64-bit object if we didn't find anything.
15700 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; }
15701 }'`; fi
15702 else
15703   echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15705
15706 fi
15707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15708 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15709
15710        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15711         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"
15712        else
15713         if test "$host_cpu" = ia64; then
15714           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15715           allow_undefined_flag_GCJ="-z nodefs"
15716           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"
15717         else
15718          # Determine the default libpath from the value encoded in an empty executable.
15719          cat >conftest.$ac_ext <<_ACEOF
15720 #line $LINENO "configure"
15721 /* confdefs.h.  */
15722 _ACEOF
15723 cat confdefs.h >>conftest.$ac_ext
15724 cat >>conftest.$ac_ext <<_ACEOF
15725 /* end confdefs.h.  */
15726
15727 int
15728 main ()
15729 {
15730
15731   ;
15732   return 0;
15733 }
15734 _ACEOF
15735 rm -f conftest.$ac_objext conftest$ac_exeext
15736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15737   (eval $ac_link) 2>&5
15738   ac_status=$?
15739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740   (exit $ac_status); } &&
15741          { ac_try='test -s conftest$ac_exeext'
15742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743   (eval $ac_try) 2>&5
15744   ac_status=$?
15745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746   (exit $ac_status); }; }; then
15747
15748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15749 }'`
15750 # Check for a 64-bit object if we didn't find anything.
15751 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; }
15752 }'`; fi
15753 else
15754   echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15756
15757 fi
15758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15759 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15760
15761          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15762           # Warning - without using the other run time loading flags,
15763           # -berok will link without error, but may produce a broken library.
15764           no_undefined_flag_GCJ=' ${wl}-bernotok'
15765           allow_undefined_flag_GCJ=' ${wl}-berok'
15766           # -bexpall does not export symbols beginning with underscore (_)
15767           always_export_symbols_GCJ=yes
15768           # Exported symbols can be pulled into shared objects from archives
15769           whole_archive_flag_spec_GCJ=' '
15770           archive_cmds_need_lc_GCJ=yes
15771           # This is similar to how AIX traditionally builds it's shared libraries.
15772           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'
15773         fi
15774       fi
15775       ;;
15776
15777     amigaos*)
15778       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)'
15779       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15780       hardcode_minus_L_GCJ=yes
15781       # see comment about different semantics on the GNU ld section
15782       ld_shlibs_GCJ=no
15783       ;;
15784
15785     bsdi4*)
15786       export_dynamic_flag_spec_GCJ=-rdynamic
15787       ;;
15788
15789     cygwin* | mingw* | pw32*)
15790       # When not using gcc, we currently assume that we are using
15791       # Microsoft Visual C++.
15792       # hardcode_libdir_flag_spec is actually meaningless, as there is
15793       # no search path for DLLs.
15794       hardcode_libdir_flag_spec_GCJ=' '
15795       allow_undefined_flag_GCJ=unsupported
15796       # Tell ltmain to make .lib files, not .a files.
15797       libext=lib
15798       # Tell ltmain to make .dll files, not .so files.
15799       shrext=".dll"
15800       # FIXME: Setting linknames here is a bad hack.
15801       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15802       # The linker will automatically build a .lib file if we build a DLL.
15803       old_archive_From_new_cmds_GCJ='true'
15804       # FIXME: Should let the user specify the lib program.
15805       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15806       fix_srcfile_path='`cygpath -w "$srcfile"`'
15807       enable_shared_with_static_runtimes_GCJ=yes
15808       ;;
15809
15810     darwin* | rhapsody*)
15811     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15812       archive_cmds_need_lc_GCJ=no
15813       case "$host_os" in
15814       rhapsody* | darwin1.[012])
15815         allow_undefined_flag_GCJ='-undefined suppress'
15816         ;;
15817       *) # Darwin 1.3 on
15818         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15819         ;;
15820       esac
15821       # FIXME: Relying on posixy $() will cause problems for
15822       #        cross-compilation, but unfortunately the echo tests do not
15823       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15824       #        `"' quotes if we put them in here... so don't!
15825         lt_int_apple_cc_single_mod=no
15826         output_verbose_link_cmd='echo'
15827         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15828           lt_int_apple_cc_single_mod=yes
15829         fi
15830         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15831           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15832         else
15833         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'
15834       fi
15835       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15836       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15837         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15838           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}'
15839         else
15840           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}'
15841         fi
15842           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}'
15843       hardcode_direct_GCJ=no
15844       hardcode_automatic_GCJ=yes
15845       hardcode_shlibpath_var_GCJ=unsupported
15846       whole_archive_flag_spec_GCJ='-all_load $convenience'
15847       link_all_deplibs_GCJ=yes
15848     fi
15849       ;;
15850
15851     dgux*)
15852       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15853       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15854       hardcode_shlibpath_var_GCJ=no
15855       ;;
15856
15857     freebsd1*)
15858       ld_shlibs_GCJ=no
15859       ;;
15860
15861     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15862     # support.  Future versions do this automatically, but an explicit c++rt0.o
15863     # does not break anything, and helps significantly (at the cost of a little
15864     # extra space).
15865     freebsd2.2*)
15866       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15867       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15868       hardcode_direct_GCJ=yes
15869       hardcode_shlibpath_var_GCJ=no
15870       ;;
15871
15872     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15873     freebsd2*)
15874       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15875       hardcode_direct_GCJ=yes
15876       hardcode_minus_L_GCJ=yes
15877       hardcode_shlibpath_var_GCJ=no
15878       ;;
15879
15880     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15881     freebsd*)
15882       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15883       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15884       hardcode_direct_GCJ=yes
15885       hardcode_shlibpath_var_GCJ=no
15886       ;;
15887
15888     hpux9*)
15889       if test "$GCC" = yes; then
15890         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'
15891       else
15892         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'
15893       fi
15894       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15895       hardcode_libdir_separator_GCJ=:
15896       hardcode_direct_GCJ=yes
15897
15898       # hardcode_minus_L: Not really in the search PATH,
15899       # but as the default location of the library.
15900       hardcode_minus_L_GCJ=yes
15901       export_dynamic_flag_spec_GCJ='${wl}-E'
15902       ;;
15903
15904     hpux10* | hpux11*)
15905       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15906         case "$host_cpu" in
15907         hppa*64*|ia64*)
15908           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15909           ;;
15910         *)
15911           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15912           ;;
15913         esac
15914       else
15915         case "$host_cpu" in
15916         hppa*64*|ia64*)
15917           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15918           ;;
15919         *)
15920           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15921           ;;
15922         esac
15923       fi
15924       if test "$with_gnu_ld" = no; then
15925         case "$host_cpu" in
15926         hppa*64*)
15927           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15928           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15929           hardcode_libdir_separator_GCJ=:
15930           hardcode_direct_GCJ=no
15931           hardcode_shlibpath_var_GCJ=no
15932           ;;
15933         ia64*)
15934           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15935           hardcode_direct_GCJ=no
15936           hardcode_shlibpath_var_GCJ=no
15937
15938           # hardcode_minus_L: Not really in the search PATH,
15939           # but as the default location of the library.
15940           hardcode_minus_L_GCJ=yes
15941           ;;
15942         *)
15943           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15944           hardcode_libdir_separator_GCJ=:
15945           hardcode_direct_GCJ=yes
15946           export_dynamic_flag_spec_GCJ='${wl}-E'
15947
15948           # hardcode_minus_L: Not really in the search PATH,
15949           # but as the default location of the library.
15950           hardcode_minus_L_GCJ=yes
15951           ;;
15952         esac
15953       fi
15954       ;;
15955
15956     irix5* | irix6* | nonstopux*)
15957       if test "$GCC" = yes; then
15958         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'
15959       else
15960         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'
15961         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15962       fi
15963       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15964       hardcode_libdir_separator_GCJ=:
15965       link_all_deplibs_GCJ=yes
15966       ;;
15967
15968     netbsd*)
15969       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15970         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15971       else
15972         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15973       fi
15974       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15975       hardcode_direct_GCJ=yes
15976       hardcode_shlibpath_var_GCJ=no
15977       ;;
15978
15979     newsos6)
15980       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15981       hardcode_direct_GCJ=yes
15982       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15983       hardcode_libdir_separator_GCJ=:
15984       hardcode_shlibpath_var_GCJ=no
15985       ;;
15986
15987     openbsd*)
15988       hardcode_direct_GCJ=yes
15989       hardcode_shlibpath_var_GCJ=no
15990       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15991         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15992         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15993         export_dynamic_flag_spec_GCJ='${wl}-E'
15994       else
15995        case $host_os in
15996          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15997            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15998            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15999            ;;
16000          *)
16001            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16002            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16003            ;;
16004        esac
16005       fi
16006       ;;
16007
16008     os2*)
16009       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16010       hardcode_minus_L_GCJ=yes
16011       allow_undefined_flag_GCJ=unsupported
16012       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'
16013       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16014       ;;
16015
16016     osf3*)
16017       if test "$GCC" = yes; then
16018         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16019         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'
16020       else
16021         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16022         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'
16023       fi
16024       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16025       hardcode_libdir_separator_GCJ=:
16026       ;;
16027
16028     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16029       if test "$GCC" = yes; then
16030         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16031         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'
16032         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16033       else
16034         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16035         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'
16036         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~
16037         $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'
16038
16039         # Both c and cxx compiler support -rpath directly
16040         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16041       fi
16042       hardcode_libdir_separator_GCJ=:
16043       ;;
16044
16045     sco3.2v5*)
16046       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16047       hardcode_shlibpath_var_GCJ=no
16048       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16049       runpath_var=LD_RUN_PATH
16050       hardcode_runpath_var=yes
16051       ;;
16052
16053     solaris*)
16054       no_undefined_flag_GCJ=' -z text'
16055       if test "$GCC" = yes; then
16056         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16057         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16058           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16059       else
16060         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16061         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16062         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16063       fi
16064       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16065       hardcode_shlibpath_var_GCJ=no
16066       case $host_os in
16067       solaris2.[0-5] | solaris2.[0-5].*) ;;
16068       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16069         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16070       esac
16071       link_all_deplibs_GCJ=yes
16072       ;;
16073
16074     sunos4*)
16075       if test "x$host_vendor" = xsequent; then
16076         # Use $CC to link under sequent, because it throws in some extra .o
16077         # files that make .init and .fini sections work.
16078         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16079       else
16080         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16081       fi
16082       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16083       hardcode_direct_GCJ=yes
16084       hardcode_minus_L_GCJ=yes
16085       hardcode_shlibpath_var_GCJ=no
16086       ;;
16087
16088     sysv4)
16089       case $host_vendor in
16090         sni)
16091           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16092           hardcode_direct_GCJ=yes # is this really true???
16093         ;;
16094         siemens)
16095           ## LD is ld it makes a PLAMLIB
16096           ## CC just makes a GrossModule.
16097           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16098           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16099           hardcode_direct_GCJ=no
16100         ;;
16101         motorola)
16102           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16103           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16104         ;;
16105       esac
16106       runpath_var='LD_RUN_PATH'
16107       hardcode_shlibpath_var_GCJ=no
16108       ;;
16109
16110     sysv4.3*)
16111       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16112       hardcode_shlibpath_var_GCJ=no
16113       export_dynamic_flag_spec_GCJ='-Bexport'
16114       ;;
16115
16116     sysv4*MP*)
16117       if test -d /usr/nec; then
16118         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119         hardcode_shlibpath_var_GCJ=no
16120         runpath_var=LD_RUN_PATH
16121         hardcode_runpath_var=yes
16122         ld_shlibs_GCJ=yes
16123       fi
16124       ;;
16125
16126     sysv4.2uw2*)
16127       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16128       hardcode_direct_GCJ=yes
16129       hardcode_minus_L_GCJ=no
16130       hardcode_shlibpath_var_GCJ=no
16131       hardcode_runpath_var=yes
16132       runpath_var=LD_RUN_PATH
16133       ;;
16134
16135    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16136       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16137       if test "$GCC" = yes; then
16138         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16139       else
16140         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16141       fi
16142       runpath_var='LD_RUN_PATH'
16143       hardcode_shlibpath_var_GCJ=no
16144       ;;
16145
16146     sysv5*)
16147       no_undefined_flag_GCJ=' -z text'
16148       # $CC -shared without GNU ld will not create a library from C++
16149       # object files and a static libstdc++, better avoid it by now
16150       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16151       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16152                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16153       hardcode_libdir_flag_spec_GCJ=
16154       hardcode_shlibpath_var_GCJ=no
16155       runpath_var='LD_RUN_PATH'
16156       ;;
16157
16158     uts4*)
16159       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16160       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16161       hardcode_shlibpath_var_GCJ=no
16162       ;;
16163
16164     *)
16165       ld_shlibs_GCJ=no
16166       ;;
16167     esac
16168   fi
16169
16170 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16171 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16172 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16173
16174 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16175 if test "$GCC" = yes; then
16176   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16177 fi
16178
16179 #
16180 # Do we need to explicitly link libc?
16181 #
16182 case "x$archive_cmds_need_lc_GCJ" in
16183 x|xyes)
16184   # Assume -lc should be added
16185   archive_cmds_need_lc_GCJ=yes
16186
16187   if test "$enable_shared" = yes && test "$GCC" = yes; then
16188     case $archive_cmds_GCJ in
16189     *'~'*)
16190       # FIXME: we may have to deal with multi-command sequences.
16191       ;;
16192     '$CC '*)
16193       # Test whether the compiler implicitly links with -lc since on some
16194       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16195       # to ld, don't add -lc before -lgcc.
16196       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16197 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16198       $rm conftest*
16199       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16200
16201       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16202   (eval $ac_compile) 2>&5
16203   ac_status=$?
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); } 2>conftest.err; then
16206         soname=conftest
16207         lib=conftest
16208         libobjs=conftest.$ac_objext
16209         deplibs=
16210         wl=$lt_prog_compiler_wl_GCJ
16211         compiler_flags=-v
16212         linker_flags=-v
16213         verstring=
16214         output_objdir=.
16215         libname=conftest
16216         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16217         allow_undefined_flag_GCJ=
16218         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16219   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16220   ac_status=$?
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); }
16223         then
16224           archive_cmds_need_lc_GCJ=no
16225         else
16226           archive_cmds_need_lc_GCJ=yes
16227         fi
16228         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16229       else
16230         cat conftest.err 1>&5
16231       fi
16232       $rm conftest*
16233       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16234 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16235       ;;
16236     esac
16237   fi
16238   ;;
16239 esac
16240
16241 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16242 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16243 hardcode_action_GCJ=
16244 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16245    test -n "$runpath_var GCJ" || \
16246    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16247
16248   # We can hardcode non-existant directories.
16249   if test "$hardcode_direct_GCJ" != no &&
16250      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16251      # have to relink, otherwise we might link with an installed library
16252      # when we should be linking with a yet-to-be-installed one
16253      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16254      test "$hardcode_minus_L_GCJ" != no; then
16255     # Linking always hardcodes the temporary library directory.
16256     hardcode_action_GCJ=relink
16257   else
16258     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16259     hardcode_action_GCJ=immediate
16260   fi
16261 else
16262   # We cannot hardcode anything, or else we can only hardcode existing
16263   # directories.
16264   hardcode_action_GCJ=unsupported
16265 fi
16266 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16267 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16268
16269 if test "$hardcode_action_GCJ" = relink; then
16270   # Fast installation is not supported
16271   enable_fast_install=no
16272 elif test "$shlibpath_overrides_runpath" = yes ||
16273      test "$enable_shared" = no; then
16274   # Fast installation is not necessary
16275   enable_fast_install=needless
16276 fi
16277
16278 striplib=
16279 old_striplib=
16280 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16281 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16282 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16283   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16284   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16285   echo "$as_me:$LINENO: result: yes" >&5
16286 echo "${ECHO_T}yes" >&6
16287 else
16288 # FIXME - insert some real tests, host_os isn't really good enough
16289   case $host_os in
16290    darwin*)
16291        if test -n "$STRIP" ; then
16292          striplib="$STRIP -x"
16293          echo "$as_me:$LINENO: result: yes" >&5
16294 echo "${ECHO_T}yes" >&6
16295        else
16296   echo "$as_me:$LINENO: result: no" >&5
16297 echo "${ECHO_T}no" >&6
16298 fi
16299        ;;
16300    *)
16301   echo "$as_me:$LINENO: result: no" >&5
16302 echo "${ECHO_T}no" >&6
16303     ;;
16304   esac
16305 fi
16306
16307 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16308 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16309 library_names_spec=
16310 libname_spec='lib$name'
16311 soname_spec=
16312 shrext=".so"
16313 postinstall_cmds=
16314 postuninstall_cmds=
16315 finish_cmds=
16316 finish_eval=
16317 shlibpath_var=
16318 shlibpath_overrides_runpath=unknown
16319 version_type=none
16320 dynamic_linker="$host_os ld.so"
16321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16322 if test "$GCC" = yes; then
16323   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16324   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16325     # if the path contains ";" then we assume it to be the separator
16326     # otherwise default to the standard path separator (i.e. ":") - it is
16327     # assumed that no part of a normal pathname contains ";" but that should
16328     # okay in the real world where ";" in dirpaths is itself problematic.
16329     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16330   else
16331     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16332   fi
16333 else
16334   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16335 fi
16336 need_lib_prefix=unknown
16337 hardcode_into_libs=no
16338
16339 # when you set need_version to no, make sure it does not cause -set_version
16340 # flags to be left without arguments
16341 need_version=unknown
16342
16343 case $host_os in
16344 aix3*)
16345   version_type=linux
16346   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16347   shlibpath_var=LIBPATH
16348
16349   # AIX 3 has no versioning support, so we append a major version to the name.
16350   soname_spec='${libname}${release}${shared_ext}$major'
16351   ;;
16352
16353 aix4* | aix5*)
16354   version_type=linux
16355   need_lib_prefix=no
16356   need_version=no
16357   hardcode_into_libs=yes
16358   if test "$host_cpu" = ia64; then
16359     # AIX 5 supports IA64
16360     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16361     shlibpath_var=LD_LIBRARY_PATH
16362   else
16363     # With GCC up to 2.95.x, collect2 would create an import file
16364     # for dependence libraries.  The import file would start with
16365     # the line `#! .'.  This would cause the generated library to
16366     # depend on `.', always an invalid library.  This was fixed in
16367     # development snapshots of GCC prior to 3.0.
16368     case $host_os in
16369       aix4 | aix4.[01] | aix4.[01].*)
16370       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16371            echo ' yes '
16372            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16373         :
16374       else
16375         can_build_shared=no
16376       fi
16377       ;;
16378     esac
16379     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16380     # soname into executable. Probably we can add versioning support to
16381     # collect2, so additional links can be useful in future.
16382     if test "$aix_use_runtimelinking" = yes; then
16383       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16384       # instead of lib<name>.a to let people know that these are not
16385       # typical AIX shared libraries.
16386       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387     else
16388       # We preserve .a as extension for shared libraries through AIX4.2
16389       # and later when we are not doing run time linking.
16390       library_names_spec='${libname}${release}.a $libname.a'
16391       soname_spec='${libname}${release}${shared_ext}$major'
16392     fi
16393     shlibpath_var=LIBPATH
16394   fi
16395   ;;
16396
16397 amigaos*)
16398   library_names_spec='$libname.ixlibrary $libname.a'
16399   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16400   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'
16401   ;;
16402
16403 beos*)
16404   library_names_spec='${libname}${shared_ext}'
16405   dynamic_linker="$host_os ld.so"
16406   shlibpath_var=LIBRARY_PATH
16407   ;;
16408
16409 bsdi4*)
16410   version_type=linux
16411   need_version=no
16412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413   soname_spec='${libname}${release}${shared_ext}$major'
16414   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16415   shlibpath_var=LD_LIBRARY_PATH
16416   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16417   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16418   # the default ld.so.conf also contains /usr/contrib/lib and
16419   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16420   # libtool to hard-code these into programs
16421   ;;
16422
16423 cygwin* | mingw* | pw32*)
16424   version_type=windows
16425   shrext=".dll"
16426   need_version=no
16427   need_lib_prefix=no
16428
16429   case $GCC,$host_os in
16430   yes,cygwin* | yes,mingw* | yes,pw32*)
16431     library_names_spec='$libname.dll.a'
16432     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16433     postinstall_cmds='base_file=`basename \${file}`~
16434       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16435       dldir=$destdir/`dirname \$dlpath`~
16436       test -d \$dldir || mkdir -p \$dldir~
16437       $install_prog $dir/$dlname \$dldir/$dlname'
16438     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16439       dlpath=$dir/\$dldll~
16440        $rm \$dlpath'
16441     shlibpath_overrides_runpath=yes
16442
16443     case $host_os in
16444     cygwin*)
16445       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16446       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16447       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16448       ;;
16449     mingw*)
16450       # MinGW DLLs use traditional 'lib' prefix
16451       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16452       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16453       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16454         # It is most probably a Windows format PATH printed by
16455         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16456         # path with ; separators, and with drive letters. We can handle the
16457         # drive letters (cygwin fileutils understands them), so leave them,
16458         # especially as we might pass files found there to a mingw objdump,
16459         # which wouldn't understand a cygwinified path. Ahh.
16460         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16461       else
16462         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16463       fi
16464       ;;
16465     pw32*)
16466       # pw32 DLLs use 'pw' prefix rather than 'lib'
16467       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16468       ;;
16469     esac
16470     ;;
16471
16472   *)
16473     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16474     ;;
16475   esac
16476   dynamic_linker='Win32 ld.exe'
16477   # FIXME: first we should search . and the directory the executable is in
16478   shlibpath_var=PATH
16479   ;;
16480
16481 darwin* | rhapsody*)
16482   dynamic_linker="$host_os dyld"
16483   version_type=darwin
16484   need_lib_prefix=no
16485   need_version=no
16486   # FIXME: Relying on posixy $() will cause problems for
16487   #        cross-compilation, but unfortunately the echo tests do not
16488   #        yet detect zsh echo's removal of \ escapes.
16489   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16490   soname_spec='${libname}${release}${major}$shared_ext'
16491   shlibpath_overrides_runpath=yes
16492   shlibpath_var=DYLD_LIBRARY_PATH
16493   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16494   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16495   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16496   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"`
16497   fi
16498   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16499   ;;
16500
16501 dgux*)
16502   version_type=linux
16503   need_lib_prefix=no
16504   need_version=no
16505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16506   soname_spec='${libname}${release}${shared_ext}$major'
16507   shlibpath_var=LD_LIBRARY_PATH
16508   ;;
16509
16510 freebsd1*)
16511   dynamic_linker=no
16512   ;;
16513
16514 freebsd*)
16515   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16516   version_type=freebsd-$objformat
16517   case $version_type in
16518     freebsd-elf*)
16519       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16520       need_version=no
16521       need_lib_prefix=no
16522       ;;
16523     freebsd-*)
16524       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16525       need_version=yes
16526       ;;
16527   esac
16528   shlibpath_var=LD_LIBRARY_PATH
16529   case $host_os in
16530   freebsd2*)
16531     shlibpath_overrides_runpath=yes
16532     ;;
16533   freebsd3.01* | freebsdelf3.01*)
16534     shlibpath_overrides_runpath=yes
16535     hardcode_into_libs=yes
16536     ;;
16537   *) # from 3.2 on
16538     shlibpath_overrides_runpath=no
16539     hardcode_into_libs=yes
16540     ;;
16541   esac
16542   ;;
16543
16544 gnu*)
16545   version_type=linux
16546   need_lib_prefix=no
16547   need_version=no
16548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16549   soname_spec='${libname}${release}${shared_ext}$major'
16550   shlibpath_var=LD_LIBRARY_PATH
16551   hardcode_into_libs=yes
16552   ;;
16553
16554 hpux9* | hpux10* | hpux11*)
16555   # Give a soname corresponding to the major version so that dld.sl refuses to
16556   # link against other versions.
16557   version_type=sunos
16558   need_lib_prefix=no
16559   need_version=no
16560   case "$host_cpu" in
16561   ia64*)
16562     shrext='.so'
16563     hardcode_into_libs=yes
16564     dynamic_linker="$host_os dld.so"
16565     shlibpath_var=LD_LIBRARY_PATH
16566     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568     soname_spec='${libname}${release}${shared_ext}$major'
16569     if test "X$HPUX_IA64_MODE" = X32; then
16570       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16571     else
16572       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16573     fi
16574     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16575     ;;
16576    hppa*64*)
16577      shrext='.sl'
16578      hardcode_into_libs=yes
16579      dynamic_linker="$host_os dld.sl"
16580      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16581      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16582      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16583      soname_spec='${libname}${release}${shared_ext}$major'
16584      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16585      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16586      ;;
16587    *)
16588     shrext='.sl'
16589     dynamic_linker="$host_os dld.sl"
16590     shlibpath_var=SHLIB_PATH
16591     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16592     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16593     soname_spec='${libname}${release}${shared_ext}$major'
16594     ;;
16595   esac
16596   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16597   postinstall_cmds='chmod 555 $lib'
16598   ;;
16599
16600 irix5* | irix6* | nonstopux*)
16601   case $host_os in
16602     nonstopux*) version_type=nonstopux ;;
16603     *)
16604         if test "$lt_cv_prog_gnu_ld" = yes; then
16605                 version_type=linux
16606         else
16607                 version_type=irix
16608         fi ;;
16609   esac
16610   need_lib_prefix=no
16611   need_version=no
16612   soname_spec='${libname}${release}${shared_ext}$major'
16613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16614   case $host_os in
16615   irix5* | nonstopux*)
16616     libsuff= shlibsuff=
16617     ;;
16618   *)
16619     case $LD in # libtool.m4 will add one of these switches to LD
16620     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16621       libsuff= shlibsuff= libmagic=32-bit;;
16622     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16623       libsuff=32 shlibsuff=N32 libmagic=N32;;
16624     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16625       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16626     *) libsuff= shlibsuff= libmagic=never-match;;
16627     esac
16628     ;;
16629   esac
16630   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16631   shlibpath_overrides_runpath=no
16632   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16633   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16634   hardcode_into_libs=yes
16635   ;;
16636
16637 # No shared lib support for Linux oldld, aout, or coff.
16638 linux*oldld* | linux*aout* | linux*coff*)
16639   dynamic_linker=no
16640   ;;
16641
16642 # This must be Linux ELF.
16643 linux*)
16644   version_type=linux
16645   need_lib_prefix=no
16646   need_version=no
16647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648   soname_spec='${libname}${release}${shared_ext}$major'
16649   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16650   shlibpath_var=LD_LIBRARY_PATH
16651   shlibpath_overrides_runpath=no
16652   # This implies no fast_install, which is unacceptable.
16653   # Some rework will be needed to allow for fast_install
16654   # before this can be enabled.
16655   hardcode_into_libs=yes
16656
16657   # We used to test for /lib/ld.so.1 and disable shared libraries on
16658   # powerpc, because MkLinux only supported shared libraries with the
16659   # GNU dynamic linker.  Since this was broken with cross compilers,
16660   # most powerpc-linux boxes support dynamic linking these days and
16661   # people can always --disable-shared, the test was removed, and we
16662   # assume the GNU/Linux dynamic linker is in use.
16663   dynamic_linker='GNU/Linux ld.so'
16664   ;;
16665
16666 netbsd*)
16667   version_type=sunos
16668   need_lib_prefix=no
16669   need_version=no
16670   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16672     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16673     dynamic_linker='NetBSD (a.out) ld.so'
16674   else
16675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16676     soname_spec='${libname}${release}${shared_ext}$major'
16677     dynamic_linker='NetBSD ld.elf_so'
16678   fi
16679   shlibpath_var=LD_LIBRARY_PATH
16680   shlibpath_overrides_runpath=yes
16681   hardcode_into_libs=yes
16682   ;;
16683
16684 newsos6)
16685   version_type=linux
16686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687   shlibpath_var=LD_LIBRARY_PATH
16688   shlibpath_overrides_runpath=yes
16689   ;;
16690
16691 nto-qnx)
16692   version_type=linux
16693   need_lib_prefix=no
16694   need_version=no
16695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16696   soname_spec='${libname}${release}${shared_ext}$major'
16697   shlibpath_var=LD_LIBRARY_PATH
16698   shlibpath_overrides_runpath=yes
16699   ;;
16700
16701 openbsd*)
16702   version_type=sunos
16703   need_lib_prefix=no
16704   need_version=no
16705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16706   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16707   shlibpath_var=LD_LIBRARY_PATH
16708   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16709     case $host_os in
16710       openbsd2.[89] | openbsd2.[89].*)
16711         shlibpath_overrides_runpath=no
16712         ;;
16713       *)
16714         shlibpath_overrides_runpath=yes
16715         ;;
16716       esac
16717   else
16718     shlibpath_overrides_runpath=yes
16719   fi
16720   ;;
16721
16722 os2*)
16723   libname_spec='$name'
16724   shrext=".dll"
16725   need_lib_prefix=no
16726   library_names_spec='$libname${shared_ext} $libname.a'
16727   dynamic_linker='OS/2 ld.exe'
16728   shlibpath_var=LIBPATH
16729   ;;
16730
16731 osf3* | osf4* | osf5*)
16732   version_type=osf
16733   need_lib_prefix=no
16734   need_version=no
16735   soname_spec='${libname}${release}${shared_ext}$major'
16736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737   shlibpath_var=LD_LIBRARY_PATH
16738   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16739   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16740   ;;
16741
16742 sco3.2v5*)
16743   version_type=osf
16744   soname_spec='${libname}${release}${shared_ext}$major'
16745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16746   shlibpath_var=LD_LIBRARY_PATH
16747   ;;
16748
16749 solaris*)
16750   version_type=linux
16751   need_lib_prefix=no
16752   need_version=no
16753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754   soname_spec='${libname}${release}${shared_ext}$major'
16755   shlibpath_var=LD_LIBRARY_PATH
16756   shlibpath_overrides_runpath=yes
16757   hardcode_into_libs=yes
16758   # ldd complains unless libraries are executable
16759   postinstall_cmds='chmod +x $lib'
16760   ;;
16761
16762 sunos4*)
16763   version_type=sunos
16764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16765   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16766   shlibpath_var=LD_LIBRARY_PATH
16767   shlibpath_overrides_runpath=yes
16768   if test "$with_gnu_ld" = yes; then
16769     need_lib_prefix=no
16770   fi
16771   need_version=yes
16772   ;;
16773
16774 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16775   version_type=linux
16776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16777   soname_spec='${libname}${release}${shared_ext}$major'
16778   shlibpath_var=LD_LIBRARY_PATH
16779   case $host_vendor in
16780     sni)
16781       shlibpath_overrides_runpath=no
16782       need_lib_prefix=no
16783       export_dynamic_flag_spec='${wl}-Blargedynsym'
16784       runpath_var=LD_RUN_PATH
16785       ;;
16786     siemens)
16787       need_lib_prefix=no
16788       ;;
16789     motorola)
16790       need_lib_prefix=no
16791       need_version=no
16792       shlibpath_overrides_runpath=no
16793       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16794       ;;
16795   esac
16796   ;;
16797
16798 sysv4*MP*)
16799   if test -d /usr/nec ;then
16800     version_type=linux
16801     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16802     soname_spec='$libname${shared_ext}.$major'
16803     shlibpath_var=LD_LIBRARY_PATH
16804   fi
16805   ;;
16806
16807 uts4*)
16808   version_type=linux
16809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16810   soname_spec='${libname}${release}${shared_ext}$major'
16811   shlibpath_var=LD_LIBRARY_PATH
16812   ;;
16813
16814 *)
16815   dynamic_linker=no
16816   ;;
16817 esac
16818 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16819 echo "${ECHO_T}$dynamic_linker" >&6
16820 test "$dynamic_linker" = no && can_build_shared=no
16821
16822 if test "x$enable_dlopen" != xyes; then
16823   enable_dlopen=unknown
16824   enable_dlopen_self=unknown
16825   enable_dlopen_self_static=unknown
16826 else
16827   lt_cv_dlopen=no
16828   lt_cv_dlopen_libs=
16829
16830   case $host_os in
16831   beos*)
16832     lt_cv_dlopen="load_add_on"
16833     lt_cv_dlopen_libs=
16834     lt_cv_dlopen_self=yes
16835     ;;
16836
16837   mingw* | pw32*)
16838     lt_cv_dlopen="LoadLibrary"
16839     lt_cv_dlopen_libs=
16840    ;;
16841
16842   cygwin*)
16843     lt_cv_dlopen="dlopen"
16844     lt_cv_dlopen_libs=
16845    ;;
16846
16847   darwin*)
16848   # if libdl is installed we need to link against it
16849     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16850 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16851 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16852   echo $ECHO_N "(cached) $ECHO_C" >&6
16853 else
16854   ac_check_lib_save_LIBS=$LIBS
16855 LIBS="-ldl  $LIBS"
16856 cat >conftest.$ac_ext <<_ACEOF
16857 #line $LINENO "configure"
16858 /* confdefs.h.  */
16859 _ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h.  */
16863
16864 /* Override any gcc2 internal prototype to avoid an error.  */
16865 #ifdef __cplusplus
16866 extern "C"
16867 #endif
16868 /* We use char because int might match the return type of a gcc2
16869    builtin and then its argument prototype would still apply.  */
16870 char dlopen ();
16871 int
16872 main ()
16873 {
16874 dlopen ();
16875   ;
16876   return 0;
16877 }
16878 _ACEOF
16879 rm -f conftest.$ac_objext conftest$ac_exeext
16880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16881   (eval $ac_link) 2>&5
16882   ac_status=$?
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); } &&
16885          { ac_try='test -s conftest$ac_exeext'
16886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887   (eval $ac_try) 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); }; }; then
16891   ac_cv_lib_dl_dlopen=yes
16892 else
16893   echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16895
16896 ac_cv_lib_dl_dlopen=no
16897 fi
16898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16899 LIBS=$ac_check_lib_save_LIBS
16900 fi
16901 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16902 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16903 if test $ac_cv_lib_dl_dlopen = yes; then
16904   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16905 else
16906
16907     lt_cv_dlopen="dyld"
16908     lt_cv_dlopen_libs=
16909     lt_cv_dlopen_self=yes
16910
16911 fi
16912
16913    ;;
16914
16915   *)
16916     echo "$as_me:$LINENO: checking for shl_load" >&5
16917 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16918 if test "${ac_cv_func_shl_load+set}" = set; then
16919   echo $ECHO_N "(cached) $ECHO_C" >&6
16920 else
16921   cat >conftest.$ac_ext <<_ACEOF
16922 #line $LINENO "configure"
16923 /* confdefs.h.  */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h.  */
16928 /* System header to define __stub macros and hopefully few prototypes,
16929     which can conflict with char shl_load (); below.
16930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16931     <limits.h> exists even on freestanding compilers.  */
16932 #ifdef __STDC__
16933 # include <limits.h>
16934 #else
16935 # include <assert.h>
16936 #endif
16937 /* Override any gcc2 internal prototype to avoid an error.  */
16938 #ifdef __cplusplus
16939 extern "C"
16940 {
16941 #endif
16942 /* We use char because int might match the return type of a gcc2
16943    builtin and then its argument prototype would still apply.  */
16944 char shl_load ();
16945 /* The GNU C library defines this for functions which it implements
16946     to always fail with ENOSYS.  Some functions are actually named
16947     something starting with __ and the normal name is an alias.  */
16948 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16949 choke me
16950 #else
16951 char (*f) () = shl_load;
16952 #endif
16953 #ifdef __cplusplus
16954 }
16955 #endif
16956
16957 int
16958 main ()
16959 {
16960 return f != shl_load;
16961   ;
16962   return 0;
16963 }
16964 _ACEOF
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16967   (eval $ac_link) 2>&5
16968   ac_status=$?
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); } &&
16971          { ac_try='test -s conftest$ac_exeext'
16972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973   (eval $ac_try) 2>&5
16974   ac_status=$?
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); }; }; then
16977   ac_cv_func_shl_load=yes
16978 else
16979   echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16981
16982 ac_cv_func_shl_load=no
16983 fi
16984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16985 fi
16986 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16987 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16988 if test $ac_cv_func_shl_load = yes; then
16989   lt_cv_dlopen="shl_load"
16990 else
16991   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16992 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16993 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16994   echo $ECHO_N "(cached) $ECHO_C" >&6
16995 else
16996   ac_check_lib_save_LIBS=$LIBS
16997 LIBS="-ldld  $LIBS"
16998 cat >conftest.$ac_ext <<_ACEOF
16999 #line $LINENO "configure"
17000 /* confdefs.h.  */
17001 _ACEOF
17002 cat confdefs.h >>conftest.$ac_ext
17003 cat >>conftest.$ac_ext <<_ACEOF
17004 /* end confdefs.h.  */
17005
17006 /* Override any gcc2 internal prototype to avoid an error.  */
17007 #ifdef __cplusplus
17008 extern "C"
17009 #endif
17010 /* We use char because int might match the return type of a gcc2
17011    builtin and then its argument prototype would still apply.  */
17012 char shl_load ();
17013 int
17014 main ()
17015 {
17016 shl_load ();
17017   ;
17018   return 0;
17019 }
17020 _ACEOF
17021 rm -f conftest.$ac_objext conftest$ac_exeext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17023   (eval $ac_link) 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); } &&
17027          { ac_try='test -s conftest$ac_exeext'
17028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029   (eval $ac_try) 2>&5
17030   ac_status=$?
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); }; }; then
17033   ac_cv_lib_dld_shl_load=yes
17034 else
17035   echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17037
17038 ac_cv_lib_dld_shl_load=no
17039 fi
17040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17041 LIBS=$ac_check_lib_save_LIBS
17042 fi
17043 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17044 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17045 if test $ac_cv_lib_dld_shl_load = yes; then
17046   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17047 else
17048   echo "$as_me:$LINENO: checking for dlopen" >&5
17049 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17050 if test "${ac_cv_func_dlopen+set}" = set; then
17051   echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053   cat >conftest.$ac_ext <<_ACEOF
17054 #line $LINENO "configure"
17055 /* confdefs.h.  */
17056 _ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h.  */
17060 /* System header to define __stub macros and hopefully few prototypes,
17061     which can conflict with char dlopen (); below.
17062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17063     <limits.h> exists even on freestanding compilers.  */
17064 #ifdef __STDC__
17065 # include <limits.h>
17066 #else
17067 # include <assert.h>
17068 #endif
17069 /* Override any gcc2 internal prototype to avoid an error.  */
17070 #ifdef __cplusplus
17071 extern "C"
17072 {
17073 #endif
17074 /* We use char because int might match the return type of a gcc2
17075    builtin and then its argument prototype would still apply.  */
17076 char dlopen ();
17077 /* The GNU C library defines this for functions which it implements
17078     to always fail with ENOSYS.  Some functions are actually named
17079     something starting with __ and the normal name is an alias.  */
17080 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17081 choke me
17082 #else
17083 char (*f) () = dlopen;
17084 #endif
17085 #ifdef __cplusplus
17086 }
17087 #endif
17088
17089 int
17090 main ()
17091 {
17092 return f != dlopen;
17093   ;
17094   return 0;
17095 }
17096 _ACEOF
17097 rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17099   (eval $ac_link) 2>&5
17100   ac_status=$?
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); } &&
17103          { ac_try='test -s conftest$ac_exeext'
17104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105   (eval $ac_try) 2>&5
17106   ac_status=$?
17107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108   (exit $ac_status); }; }; then
17109   ac_cv_func_dlopen=yes
17110 else
17111   echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17113
17114 ac_cv_func_dlopen=no
17115 fi
17116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17117 fi
17118 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17119 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17120 if test $ac_cv_func_dlopen = yes; then
17121   lt_cv_dlopen="dlopen"
17122 else
17123   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17124 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17125 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17126   echo $ECHO_N "(cached) $ECHO_C" >&6
17127 else
17128   ac_check_lib_save_LIBS=$LIBS
17129 LIBS="-ldl  $LIBS"
17130 cat >conftest.$ac_ext <<_ACEOF
17131 #line $LINENO "configure"
17132 /* confdefs.h.  */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h.  */
17137
17138 /* Override any gcc2 internal prototype to avoid an error.  */
17139 #ifdef __cplusplus
17140 extern "C"
17141 #endif
17142 /* We use char because int might match the return type of a gcc2
17143    builtin and then its argument prototype would still apply.  */
17144 char dlopen ();
17145 int
17146 main ()
17147 {
17148 dlopen ();
17149   ;
17150   return 0;
17151 }
17152 _ACEOF
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17155   (eval $ac_link) 2>&5
17156   ac_status=$?
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); } &&
17159          { ac_try='test -s conftest$ac_exeext'
17160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161   (eval $ac_try) 2>&5
17162   ac_status=$?
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); }; }; then
17165   ac_cv_lib_dl_dlopen=yes
17166 else
17167   echo "$as_me: failed program was:" >&5
17168 sed 's/^/| /' conftest.$ac_ext >&5
17169
17170 ac_cv_lib_dl_dlopen=no
17171 fi
17172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17173 LIBS=$ac_check_lib_save_LIBS
17174 fi
17175 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17176 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17177 if test $ac_cv_lib_dl_dlopen = yes; then
17178   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17179 else
17180   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17181 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17182 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17183   echo $ECHO_N "(cached) $ECHO_C" >&6
17184 else
17185   ac_check_lib_save_LIBS=$LIBS
17186 LIBS="-lsvld  $LIBS"
17187 cat >conftest.$ac_ext <<_ACEOF
17188 #line $LINENO "configure"
17189 /* confdefs.h.  */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h.  */
17194
17195 /* Override any gcc2 internal prototype to avoid an error.  */
17196 #ifdef __cplusplus
17197 extern "C"
17198 #endif
17199 /* We use char because int might match the return type of a gcc2
17200    builtin and then its argument prototype would still apply.  */
17201 char dlopen ();
17202 int
17203 main ()
17204 {
17205 dlopen ();
17206   ;
17207   return 0;
17208 }
17209 _ACEOF
17210 rm -f conftest.$ac_objext conftest$ac_exeext
17211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17212   (eval $ac_link) 2>&5
17213   ac_status=$?
17214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215   (exit $ac_status); } &&
17216          { ac_try='test -s conftest$ac_exeext'
17217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218   (eval $ac_try) 2>&5
17219   ac_status=$?
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); }; }; then
17222   ac_cv_lib_svld_dlopen=yes
17223 else
17224   echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17226
17227 ac_cv_lib_svld_dlopen=no
17228 fi
17229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17230 LIBS=$ac_check_lib_save_LIBS
17231 fi
17232 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17233 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17234 if test $ac_cv_lib_svld_dlopen = yes; then
17235   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17236 else
17237   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17238 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17239 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17240   echo $ECHO_N "(cached) $ECHO_C" >&6
17241 else
17242   ac_check_lib_save_LIBS=$LIBS
17243 LIBS="-ldld  $LIBS"
17244 cat >conftest.$ac_ext <<_ACEOF
17245 #line $LINENO "configure"
17246 /* confdefs.h.  */
17247 _ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h.  */
17251
17252 /* Override any gcc2 internal prototype to avoid an error.  */
17253 #ifdef __cplusplus
17254 extern "C"
17255 #endif
17256 /* We use char because int might match the return type of a gcc2
17257    builtin and then its argument prototype would still apply.  */
17258 char dld_link ();
17259 int
17260 main ()
17261 {
17262 dld_link ();
17263   ;
17264   return 0;
17265 }
17266 _ACEOF
17267 rm -f conftest.$ac_objext conftest$ac_exeext
17268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17269   (eval $ac_link) 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); } &&
17273          { ac_try='test -s conftest$ac_exeext'
17274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275   (eval $ac_try) 2>&5
17276   ac_status=$?
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); }; }; then
17279   ac_cv_lib_dld_dld_link=yes
17280 else
17281   echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17283
17284 ac_cv_lib_dld_dld_link=no
17285 fi
17286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17287 LIBS=$ac_check_lib_save_LIBS
17288 fi
17289 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17290 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17291 if test $ac_cv_lib_dld_dld_link = yes; then
17292   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17293 fi
17294
17295
17296 fi
17297
17298
17299 fi
17300
17301
17302 fi
17303
17304
17305 fi
17306
17307
17308 fi
17309
17310     ;;
17311   esac
17312
17313   if test "x$lt_cv_dlopen" != xno; then
17314     enable_dlopen=yes
17315   else
17316     enable_dlopen=no
17317   fi
17318
17319   case $lt_cv_dlopen in
17320   dlopen)
17321     save_CPPFLAGS="$CPPFLAGS"
17322     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17323
17324     save_LDFLAGS="$LDFLAGS"
17325     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17326
17327     save_LIBS="$LIBS"
17328     LIBS="$lt_cv_dlopen_libs $LIBS"
17329
17330     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17331 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17332 if test "${lt_cv_dlopen_self+set}" = set; then
17333   echo $ECHO_N "(cached) $ECHO_C" >&6
17334 else
17335           if test "$cross_compiling" = yes; then :
17336   lt_cv_dlopen_self=cross
17337 else
17338   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17339   lt_status=$lt_dlunknown
17340   cat > conftest.$ac_ext <<EOF
17341 #line 17341 "configure"
17342 #include "confdefs.h"
17343
17344 #if HAVE_DLFCN_H
17345 #include <dlfcn.h>
17346 #endif
17347
17348 #include <stdio.h>
17349
17350 #ifdef RTLD_GLOBAL
17351 #  define LT_DLGLOBAL           RTLD_GLOBAL
17352 #else
17353 #  ifdef DL_GLOBAL
17354 #    define LT_DLGLOBAL         DL_GLOBAL
17355 #  else
17356 #    define LT_DLGLOBAL         0
17357 #  endif
17358 #endif
17359
17360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17361    find out it does not work in some platform. */
17362 #ifndef LT_DLLAZY_OR_NOW
17363 #  ifdef RTLD_LAZY
17364 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17365 #  else
17366 #    ifdef DL_LAZY
17367 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17368 #    else
17369 #      ifdef RTLD_NOW
17370 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17371 #      else
17372 #        ifdef DL_NOW
17373 #          define LT_DLLAZY_OR_NOW      DL_NOW
17374 #        else
17375 #          define LT_DLLAZY_OR_NOW      0
17376 #        endif
17377 #      endif
17378 #    endif
17379 #  endif
17380 #endif
17381
17382 #ifdef __cplusplus
17383 extern "C" void exit (int);
17384 #endif
17385
17386 void fnord() { int i=42;}
17387 int main ()
17388 {
17389   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17390   int status = $lt_dlunknown;
17391
17392   if (self)
17393     {
17394       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17395       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17396       /* dlclose (self); */
17397     }
17398
17399     exit (status);
17400 }
17401 EOF
17402   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17403   (eval $ac_link) 2>&5
17404   ac_status=$?
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17407     (./conftest; exit; ) 2>/dev/null
17408     lt_status=$?
17409     case x$lt_status in
17410       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17411       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17412       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17413     esac
17414   else :
17415     # compilation failed
17416     lt_cv_dlopen_self=no
17417   fi
17418 fi
17419 rm -fr conftest*
17420
17421
17422 fi
17423 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17424 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17425
17426     if test "x$lt_cv_dlopen_self" = xyes; then
17427       LDFLAGS="$LDFLAGS $link_static_flag"
17428       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17429 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17430 if test "${lt_cv_dlopen_self_static+set}" = set; then
17431   echo $ECHO_N "(cached) $ECHO_C" >&6
17432 else
17433           if test "$cross_compiling" = yes; then :
17434   lt_cv_dlopen_self_static=cross
17435 else
17436   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17437   lt_status=$lt_dlunknown
17438   cat > conftest.$ac_ext <<EOF
17439 #line 17439 "configure"
17440 #include "confdefs.h"
17441
17442 #if HAVE_DLFCN_H
17443 #include <dlfcn.h>
17444 #endif
17445
17446 #include <stdio.h>
17447
17448 #ifdef RTLD_GLOBAL
17449 #  define LT_DLGLOBAL           RTLD_GLOBAL
17450 #else
17451 #  ifdef DL_GLOBAL
17452 #    define LT_DLGLOBAL         DL_GLOBAL
17453 #  else
17454 #    define LT_DLGLOBAL         0
17455 #  endif
17456 #endif
17457
17458 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17459    find out it does not work in some platform. */
17460 #ifndef LT_DLLAZY_OR_NOW
17461 #  ifdef RTLD_LAZY
17462 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17463 #  else
17464 #    ifdef DL_LAZY
17465 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17466 #    else
17467 #      ifdef RTLD_NOW
17468 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17469 #      else
17470 #        ifdef DL_NOW
17471 #          define LT_DLLAZY_OR_NOW      DL_NOW
17472 #        else
17473 #          define LT_DLLAZY_OR_NOW      0
17474 #        endif
17475 #      endif
17476 #    endif
17477 #  endif
17478 #endif
17479
17480 #ifdef __cplusplus
17481 extern "C" void exit (int);
17482 #endif
17483
17484 void fnord() { int i=42;}
17485 int main ()
17486 {
17487   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17488   int status = $lt_dlunknown;
17489
17490   if (self)
17491     {
17492       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17493       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17494       /* dlclose (self); */
17495     }
17496
17497     exit (status);
17498 }
17499 EOF
17500   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17501   (eval $ac_link) 2>&5
17502   ac_status=$?
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17505     (./conftest; exit; ) 2>/dev/null
17506     lt_status=$?
17507     case x$lt_status in
17508       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17509       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17510       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17511     esac
17512   else :
17513     # compilation failed
17514     lt_cv_dlopen_self_static=no
17515   fi
17516 fi
17517 rm -fr conftest*
17518
17519
17520 fi
17521 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17522 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17523     fi
17524
17525     CPPFLAGS="$save_CPPFLAGS"
17526     LDFLAGS="$save_LDFLAGS"
17527     LIBS="$save_LIBS"
17528     ;;
17529   esac
17530
17531   case $lt_cv_dlopen_self in
17532   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17533   *) enable_dlopen_self=unknown ;;
17534   esac
17535
17536   case $lt_cv_dlopen_self_static in
17537   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17538   *) enable_dlopen_self_static=unknown ;;
17539   esac
17540 fi
17541
17542
17543 # The else clause should only fire when bootstrapping the
17544 # libtool distribution, otherwise you forgot to ship ltmain.sh
17545 # with your package, and you will get complaints that there are
17546 # no rules to generate ltmain.sh.
17547 if test -f "$ltmain"; then
17548   # See if we are running on zsh, and set the options which allow our commands through
17549   # without removal of \ escapes.
17550   if test -n "${ZSH_VERSION+set}" ; then
17551     setopt NO_GLOB_SUBST
17552   fi
17553   # Now quote all the things that may contain metacharacters while being
17554   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17555   # variables and quote the copies for generation of the libtool script.
17556   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17557     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17558     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17559     deplibs_check_method reload_flag reload_cmds need_locks \
17560     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17561     lt_cv_sys_global_symbol_to_c_name_address \
17562     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17563     old_postinstall_cmds old_postuninstall_cmds \
17564     compiler_GCJ \
17565     CC_GCJ \
17566     LD_GCJ \
17567     lt_prog_compiler_wl_GCJ \
17568     lt_prog_compiler_pic_GCJ \
17569     lt_prog_compiler_static_GCJ \
17570     lt_prog_compiler_no_builtin_flag_GCJ \
17571     export_dynamic_flag_spec_GCJ \
17572     thread_safe_flag_spec_GCJ \
17573     whole_archive_flag_spec_GCJ \
17574     enable_shared_with_static_runtimes_GCJ \
17575     old_archive_cmds_GCJ \
17576     old_archive_from_new_cmds_GCJ \
17577     predep_objects_GCJ \
17578     postdep_objects_GCJ \
17579     predeps_GCJ \
17580     postdeps_GCJ \
17581     compiler_lib_search_path_GCJ \
17582     archive_cmds_GCJ \
17583     archive_expsym_cmds_GCJ \
17584     postinstall_cmds_GCJ \
17585     postuninstall_cmds_GCJ \
17586     old_archive_from_expsyms_cmds_GCJ \
17587     allow_undefined_flag_GCJ \
17588     no_undefined_flag_GCJ \
17589     export_symbols_cmds_GCJ \
17590     hardcode_libdir_flag_spec_GCJ \
17591     hardcode_libdir_flag_spec_ld_GCJ \
17592     hardcode_libdir_separator_GCJ \
17593     hardcode_automatic_GCJ \
17594     module_cmds_GCJ \
17595     module_expsym_cmds_GCJ \
17596     lt_cv_prog_compiler_c_o_GCJ \
17597     exclude_expsyms_GCJ \
17598     include_expsyms_GCJ; do
17599
17600     case $var in
17601     old_archive_cmds_GCJ | \
17602     old_archive_from_new_cmds_GCJ | \
17603     archive_cmds_GCJ | \
17604     archive_expsym_cmds_GCJ | \
17605     module_cmds_GCJ | \
17606     module_expsym_cmds_GCJ | \
17607     old_archive_from_expsyms_cmds_GCJ | \
17608     export_symbols_cmds_GCJ | \
17609     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17610     postinstall_cmds | postuninstall_cmds | \
17611     old_postinstall_cmds | old_postuninstall_cmds | \
17612     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17613       # Double-quote double-evaled strings.
17614       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17615       ;;
17616     *)
17617       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17618       ;;
17619     esac
17620   done
17621
17622   case $lt_echo in
17623   *'\$0 --fallback-echo"')
17624     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17625     ;;
17626   esac
17627
17628 cfgfile="$ofile"
17629
17630   cat <<__EOF__ >> "$cfgfile"
17631 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17632
17633 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17634
17635 # Shell to use when invoking shell scripts.
17636 SHELL=$lt_SHELL
17637
17638 # Whether or not to build shared libraries.
17639 build_libtool_libs=$enable_shared
17640
17641 # Whether or not to build static libraries.
17642 build_old_libs=$enable_static
17643
17644 # Whether or not to add -lc for building shared libraries.
17645 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17646
17647 # Whether or not to disallow shared libs when runtime libs are static
17648 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17649
17650 # Whether or not to optimize for fast installation.
17651 fast_install=$enable_fast_install
17652
17653 # The host system.
17654 host_alias=$host_alias
17655 host=$host
17656
17657 # An echo program that does not interpret backslashes.
17658 echo=$lt_echo
17659
17660 # The archiver.
17661 AR=$lt_AR
17662 AR_FLAGS=$lt_AR_FLAGS
17663
17664 # A C compiler.
17665 LTCC=$lt_LTCC
17666
17667 # A language-specific compiler.
17668 CC=$lt_compiler_GCJ
17669
17670 # Is the compiler the GNU C compiler?
17671 with_gcc=$GCC_GCJ
17672
17673 # An ERE matcher.
17674 EGREP=$lt_EGREP
17675
17676 # The linker used to build libraries.
17677 LD=$lt_LD_GCJ
17678
17679 # Whether we need hard or soft links.
17680 LN_S=$lt_LN_S
17681
17682 # A BSD-compatible nm program.
17683 NM=$lt_NM
17684
17685 # A symbol stripping program
17686 STRIP=$STRIP
17687
17688 # Used to examine libraries when file_magic_cmd begins "file"
17689 MAGIC_CMD=$MAGIC_CMD
17690
17691 # Used on cygwin: DLL creation program.
17692 DLLTOOL="$DLLTOOL"
17693
17694 # Used on cygwin: object dumper.
17695 OBJDUMP="$OBJDUMP"
17696
17697 # Used on cygwin: assembler.
17698 AS="$AS"
17699
17700 # The name of the directory that contains temporary libtool files.
17701 objdir=$objdir
17702
17703 # How to create reloadable object files.
17704 reload_flag=$lt_reload_flag
17705 reload_cmds=$lt_reload_cmds
17706
17707 # How to pass a linker flag through the compiler.
17708 wl=$lt_lt_prog_compiler_wl_GCJ
17709
17710 # Object file suffix (normally "o").
17711 objext="$ac_objext"
17712
17713 # Old archive suffix (normally "a").
17714 libext="$libext"
17715
17716 # Shared library suffix (normally ".so").
17717 shrext='$shrext'
17718
17719 # Executable file suffix (normally "").
17720 exeext="$exeext"
17721
17722 # Additional compiler flags for building library objects.
17723 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17724 pic_mode=$pic_mode
17725
17726 # What is the maximum length of a command?
17727 max_cmd_len=$lt_cv_sys_max_cmd_len
17728
17729 # Does compiler simultaneously support -c and -o options?
17730 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17731
17732 # Must we lock files when doing compilation ?
17733 need_locks=$lt_need_locks
17734
17735 # Do we need the lib prefix for modules?
17736 need_lib_prefix=$need_lib_prefix
17737
17738 # Do we need a version for libraries?
17739 need_version=$need_version
17740
17741 # Whether dlopen is supported.
17742 dlopen_support=$enable_dlopen
17743
17744 # Whether dlopen of programs is supported.
17745 dlopen_self=$enable_dlopen_self
17746
17747 # Whether dlopen of statically linked programs is supported.
17748 dlopen_self_static=$enable_dlopen_self_static
17749
17750 # Compiler flag to prevent dynamic linking.
17751 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17752
17753 # Compiler flag to turn off builtin functions.
17754 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17755
17756 # Compiler flag to allow reflexive dlopens.
17757 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17758
17759 # Compiler flag to generate shared objects directly from archives.
17760 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17761
17762 # Compiler flag to generate thread-safe objects.
17763 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17764
17765 # Library versioning type.
17766 version_type=$version_type
17767
17768 # Format of library name prefix.
17769 libname_spec=$lt_libname_spec
17770
17771 # List of archive names.  First name is the real one, the rest are links.
17772 # The last name is the one that the linker finds with -lNAME.
17773 library_names_spec=$lt_library_names_spec
17774
17775 # The coded name of the library, if different from the real name.
17776 soname_spec=$lt_soname_spec
17777
17778 # Commands used to build and install an old-style archive.
17779 RANLIB=$lt_RANLIB
17780 old_archive_cmds=$lt_old_archive_cmds_GCJ
17781 old_postinstall_cmds=$lt_old_postinstall_cmds
17782 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17783
17784 # Create an old-style archive from a shared archive.
17785 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17786
17787 # Create a temporary old-style archive to link instead of a shared archive.
17788 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17789
17790 # Commands used to build and install a shared archive.
17791 archive_cmds=$lt_archive_cmds_GCJ
17792 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17793 postinstall_cmds=$lt_postinstall_cmds
17794 postuninstall_cmds=$lt_postuninstall_cmds
17795
17796 # Commands used to build a loadable module (assumed same as above if empty)
17797 module_cmds=$lt_module_cmds_GCJ
17798 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17799
17800 # Commands to strip libraries.
17801 old_striplib=$lt_old_striplib
17802 striplib=$lt_striplib
17803
17804 # Dependencies to place before the objects being linked to create a
17805 # shared library.
17806 predep_objects=$lt_predep_objects_GCJ
17807
17808 # Dependencies to place after the objects being linked to create a
17809 # shared library.
17810 postdep_objects=$lt_postdep_objects_GCJ
17811
17812 # Dependencies to place before the objects being linked to create a
17813 # shared library.
17814 predeps=$lt_predeps_GCJ
17815
17816 # Dependencies to place after the objects being linked to create a
17817 # shared library.
17818 postdeps=$lt_postdeps_GCJ
17819
17820 # The library search path used internally by the compiler when linking
17821 # a shared library.
17822 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17823
17824 # Method to check whether dependent libraries are shared objects.
17825 deplibs_check_method=$lt_deplibs_check_method
17826
17827 # Command to use when deplibs_check_method == file_magic.
17828 file_magic_cmd=$lt_file_magic_cmd
17829
17830 # Flag that allows shared libraries with undefined symbols to be built.
17831 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17832
17833 # Flag that forces no undefined symbols.
17834 no_undefined_flag=$lt_no_undefined_flag_GCJ
17835
17836 # Commands used to finish a libtool library installation in a directory.
17837 finish_cmds=$lt_finish_cmds
17838
17839 # Same as above, but a single script fragment to be evaled but not shown.
17840 finish_eval=$lt_finish_eval
17841
17842 # Take the output of nm and produce a listing of raw symbols and C names.
17843 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17844
17845 # Transform the output of nm in a proper C declaration
17846 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17847
17848 # Transform the output of nm in a C name address pair
17849 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17850
17851 # This is the shared library runtime path variable.
17852 runpath_var=$runpath_var
17853
17854 # This is the shared library path variable.
17855 shlibpath_var=$shlibpath_var
17856
17857 # Is shlibpath searched before the hard-coded library search path?
17858 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17859
17860 # How to hardcode a shared library path into an executable.
17861 hardcode_action=$hardcode_action_GCJ
17862
17863 # Whether we should hardcode library paths into libraries.
17864 hardcode_into_libs=$hardcode_into_libs
17865
17866 # Flag to hardcode \$libdir into a binary during linking.
17867 # This must work even if \$libdir does not exist.
17868 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17869
17870 # If ld is used when linking, flag to hardcode \$libdir into
17871 # a binary during linking. This must work even if \$libdir does
17872 # not exist.
17873 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17874
17875 # Whether we need a single -rpath flag with a separated argument.
17876 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17877
17878 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17879 # resulting binary.
17880 hardcode_direct=$hardcode_direct_GCJ
17881
17882 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17883 # resulting binary.
17884 hardcode_minus_L=$hardcode_minus_L_GCJ
17885
17886 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17887 # the resulting binary.
17888 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17889
17890 # Set to yes if building a shared library automatically hardcodes DIR into the library
17891 # and all subsequent libraries and executables linked against it.
17892 hardcode_automatic=$hardcode_automatic_GCJ
17893
17894 # Variables whose values should be saved in libtool wrapper scripts and
17895 # restored at relink time.
17896 variables_saved_for_relink="$variables_saved_for_relink"
17897
17898 # Whether libtool must link a program against all its dependency libraries.
17899 link_all_deplibs=$link_all_deplibs_GCJ
17900
17901 # Compile-time system search path for libraries
17902 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17903
17904 # Run-time system search path for libraries
17905 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17906
17907 # Fix the shell variable \$srcfile for the compiler.
17908 fix_srcfile_path="$fix_srcfile_path_GCJ"
17909
17910 # Set to yes if exported symbols are required.
17911 always_export_symbols=$always_export_symbols_GCJ
17912
17913 # The commands to list exported symbols.
17914 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17915
17916 # The commands to extract the exported symbol list from a shared archive.
17917 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17918
17919 # Symbols that should not be listed in the preloaded symbols.
17920 exclude_expsyms=$lt_exclude_expsyms_GCJ
17921
17922 # Symbols that must always be exported.
17923 include_expsyms=$lt_include_expsyms_GCJ
17924
17925 # ### END LIBTOOL TAG CONFIG: $tagname
17926
17927 __EOF__
17928
17929
17930 else
17931   # If there is no Makefile yet, we rely on a make rule to execute
17932   # `config.status --recheck' to rerun these tests and create the
17933   # libtool script then.
17934   test -f Makefile && make "$ltmain"
17935 fi
17936
17937
17938 ac_ext=c
17939 ac_cpp='$CPP $CPPFLAGS'
17940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17943
17944 CC="$lt_save_CC"
17945
17946         else
17947           tagname=""
17948         fi
17949         ;;
17950
17951       RC)
17952
17953
17954
17955 # Source file extension for RC test sources.
17956 ac_ext=rc
17957
17958 # Object file extension for compiled RC test sources.
17959 objext=o
17960 objext_RC=$objext
17961
17962 # Code to be used in simple compile tests
17963 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17964
17965 # Code to be used in simple link tests
17966 lt_simple_link_test_code="$lt_simple_compile_test_code"
17967
17968 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17969
17970 # If no C compiler was specified, use CC.
17971 LTCC=${LTCC-"$CC"}
17972
17973 # Allow CC to be a program name with arguments.
17974 compiler=$CC
17975
17976
17977 # Allow CC to be a program name with arguments.
17978 lt_save_CC="$CC"
17979 CC=${RC-"windres"}
17980 compiler=$CC
17981 compiler_RC=$CC
17982 lt_cv_prog_compiler_c_o_RC=yes
17983
17984 # The else clause should only fire when bootstrapping the
17985 # libtool distribution, otherwise you forgot to ship ltmain.sh
17986 # with your package, and you will get complaints that there are
17987 # no rules to generate ltmain.sh.
17988 if test -f "$ltmain"; then
17989   # See if we are running on zsh, and set the options which allow our commands through
17990   # without removal of \ escapes.
17991   if test -n "${ZSH_VERSION+set}" ; then
17992     setopt NO_GLOB_SUBST
17993   fi
17994   # Now quote all the things that may contain metacharacters while being
17995   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17996   # variables and quote the copies for generation of the libtool script.
17997   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17998     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17999     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18000     deplibs_check_method reload_flag reload_cmds need_locks \
18001     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18002     lt_cv_sys_global_symbol_to_c_name_address \
18003     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18004     old_postinstall_cmds old_postuninstall_cmds \
18005     compiler_RC \
18006     CC_RC \
18007     LD_RC \
18008     lt_prog_compiler_wl_RC \
18009     lt_prog_compiler_pic_RC \
18010     lt_prog_compiler_static_RC \
18011     lt_prog_compiler_no_builtin_flag_RC \
18012     export_dynamic_flag_spec_RC \
18013     thread_safe_flag_spec_RC \
18014     whole_archive_flag_spec_RC \
18015     enable_shared_with_static_runtimes_RC \
18016     old_archive_cmds_RC \
18017     old_archive_from_new_cmds_RC \
18018     predep_objects_RC \
18019     postdep_objects_RC \
18020     predeps_RC \
18021     postdeps_RC \
18022     compiler_lib_search_path_RC \
18023     archive_cmds_RC \
18024     archive_expsym_cmds_RC \
18025     postinstall_cmds_RC \
18026     postuninstall_cmds_RC \
18027     old_archive_from_expsyms_cmds_RC \
18028     allow_undefined_flag_RC \
18029     no_undefined_flag_RC \
18030     export_symbols_cmds_RC \
18031     hardcode_libdir_flag_spec_RC \
18032     hardcode_libdir_flag_spec_ld_RC \
18033     hardcode_libdir_separator_RC \
18034     hardcode_automatic_RC \
18035     module_cmds_RC \
18036     module_expsym_cmds_RC \
18037     lt_cv_prog_compiler_c_o_RC \
18038     exclude_expsyms_RC \
18039     include_expsyms_RC; do
18040
18041     case $var in
18042     old_archive_cmds_RC | \
18043     old_archive_from_new_cmds_RC | \
18044     archive_cmds_RC | \
18045     archive_expsym_cmds_RC | \
18046     module_cmds_RC | \
18047     module_expsym_cmds_RC | \
18048     old_archive_from_expsyms_cmds_RC | \
18049     export_symbols_cmds_RC | \
18050     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18051     postinstall_cmds | postuninstall_cmds | \
18052     old_postinstall_cmds | old_postuninstall_cmds | \
18053     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18054       # Double-quote double-evaled strings.
18055       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18056       ;;
18057     *)
18058       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18059       ;;
18060     esac
18061   done
18062
18063   case $lt_echo in
18064   *'\$0 --fallback-echo"')
18065     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18066     ;;
18067   esac
18068
18069 cfgfile="$ofile"
18070
18071   cat <<__EOF__ >> "$cfgfile"
18072 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18073
18074 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18075
18076 # Shell to use when invoking shell scripts.
18077 SHELL=$lt_SHELL
18078
18079 # Whether or not to build shared libraries.
18080 build_libtool_libs=$enable_shared
18081
18082 # Whether or not to build static libraries.
18083 build_old_libs=$enable_static
18084
18085 # Whether or not to add -lc for building shared libraries.
18086 build_libtool_need_lc=$archive_cmds_need_lc_RC
18087
18088 # Whether or not to disallow shared libs when runtime libs are static
18089 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18090
18091 # Whether or not to optimize for fast installation.
18092 fast_install=$enable_fast_install
18093
18094 # The host system.
18095 host_alias=$host_alias
18096 host=$host
18097
18098 # An echo program that does not interpret backslashes.
18099 echo=$lt_echo
18100
18101 # The archiver.
18102 AR=$lt_AR
18103 AR_FLAGS=$lt_AR_FLAGS
18104
18105 # A C compiler.
18106 LTCC=$lt_LTCC
18107
18108 # A language-specific compiler.
18109 CC=$lt_compiler_RC
18110
18111 # Is the compiler the GNU C compiler?
18112 with_gcc=$GCC_RC
18113
18114 # An ERE matcher.
18115 EGREP=$lt_EGREP
18116
18117 # The linker used to build libraries.
18118 LD=$lt_LD_RC
18119
18120 # Whether we need hard or soft links.
18121 LN_S=$lt_LN_S
18122
18123 # A BSD-compatible nm program.
18124 NM=$lt_NM
18125
18126 # A symbol stripping program
18127 STRIP=$STRIP
18128
18129 # Used to examine libraries when file_magic_cmd begins "file"
18130 MAGIC_CMD=$MAGIC_CMD
18131
18132 # Used on cygwin: DLL creation program.
18133 DLLTOOL="$DLLTOOL"
18134
18135 # Used on cygwin: object dumper.
18136 OBJDUMP="$OBJDUMP"
18137
18138 # Used on cygwin: assembler.
18139 AS="$AS"
18140
18141 # The name of the directory that contains temporary libtool files.
18142 objdir=$objdir
18143
18144 # How to create reloadable object files.
18145 reload_flag=$lt_reload_flag
18146 reload_cmds=$lt_reload_cmds
18147
18148 # How to pass a linker flag through the compiler.
18149 wl=$lt_lt_prog_compiler_wl_RC
18150
18151 # Object file suffix (normally "o").
18152 objext="$ac_objext"
18153
18154 # Old archive suffix (normally "a").
18155 libext="$libext"
18156
18157 # Shared library suffix (normally ".so").
18158 shrext='$shrext'
18159
18160 # Executable file suffix (normally "").
18161 exeext="$exeext"
18162
18163 # Additional compiler flags for building library objects.
18164 pic_flag=$lt_lt_prog_compiler_pic_RC
18165 pic_mode=$pic_mode
18166
18167 # What is the maximum length of a command?
18168 max_cmd_len=$lt_cv_sys_max_cmd_len
18169
18170 # Does compiler simultaneously support -c and -o options?
18171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18172
18173 # Must we lock files when doing compilation ?
18174 need_locks=$lt_need_locks
18175
18176 # Do we need the lib prefix for modules?
18177 need_lib_prefix=$need_lib_prefix
18178
18179 # Do we need a version for libraries?
18180 need_version=$need_version
18181
18182 # Whether dlopen is supported.
18183 dlopen_support=$enable_dlopen
18184
18185 # Whether dlopen of programs is supported.
18186 dlopen_self=$enable_dlopen_self
18187
18188 # Whether dlopen of statically linked programs is supported.
18189 dlopen_self_static=$enable_dlopen_self_static
18190
18191 # Compiler flag to prevent dynamic linking.
18192 link_static_flag=$lt_lt_prog_compiler_static_RC
18193
18194 # Compiler flag to turn off builtin functions.
18195 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18196
18197 # Compiler flag to allow reflexive dlopens.
18198 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18199
18200 # Compiler flag to generate shared objects directly from archives.
18201 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18202
18203 # Compiler flag to generate thread-safe objects.
18204 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18205
18206 # Library versioning type.
18207 version_type=$version_type
18208
18209 # Format of library name prefix.
18210 libname_spec=$lt_libname_spec
18211
18212 # List of archive names.  First name is the real one, the rest are links.
18213 # The last name is the one that the linker finds with -lNAME.
18214 library_names_spec=$lt_library_names_spec
18215
18216 # The coded name of the library, if different from the real name.
18217 soname_spec=$lt_soname_spec
18218
18219 # Commands used to build and install an old-style archive.
18220 RANLIB=$lt_RANLIB
18221 old_archive_cmds=$lt_old_archive_cmds_RC
18222 old_postinstall_cmds=$lt_old_postinstall_cmds
18223 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18224
18225 # Create an old-style archive from a shared archive.
18226 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18227
18228 # Create a temporary old-style archive to link instead of a shared archive.
18229 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18230
18231 # Commands used to build and install a shared archive.
18232 archive_cmds=$lt_archive_cmds_RC
18233 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18234 postinstall_cmds=$lt_postinstall_cmds
18235 postuninstall_cmds=$lt_postuninstall_cmds
18236
18237 # Commands used to build a loadable module (assumed same as above if empty)
18238 module_cmds=$lt_module_cmds_RC
18239 module_expsym_cmds=$lt_module_expsym_cmds_RC
18240
18241 # Commands to strip libraries.
18242 old_striplib=$lt_old_striplib
18243 striplib=$lt_striplib
18244
18245 # Dependencies to place before the objects being linked to create a
18246 # shared library.
18247 predep_objects=$lt_predep_objects_RC
18248
18249 # Dependencies to place after the objects being linked to create a
18250 # shared library.
18251 postdep_objects=$lt_postdep_objects_RC
18252
18253 # Dependencies to place before the objects being linked to create a
18254 # shared library.
18255 predeps=$lt_predeps_RC
18256
18257 # Dependencies to place after the objects being linked to create a
18258 # shared library.
18259 postdeps=$lt_postdeps_RC
18260
18261 # The library search path used internally by the compiler when linking
18262 # a shared library.
18263 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18264
18265 # Method to check whether dependent libraries are shared objects.
18266 deplibs_check_method=$lt_deplibs_check_method
18267
18268 # Command to use when deplibs_check_method == file_magic.
18269 file_magic_cmd=$lt_file_magic_cmd
18270
18271 # Flag that allows shared libraries with undefined symbols to be built.
18272 allow_undefined_flag=$lt_allow_undefined_flag_RC
18273
18274 # Flag that forces no undefined symbols.
18275 no_undefined_flag=$lt_no_undefined_flag_RC
18276
18277 # Commands used to finish a libtool library installation in a directory.
18278 finish_cmds=$lt_finish_cmds
18279
18280 # Same as above, but a single script fragment to be evaled but not shown.
18281 finish_eval=$lt_finish_eval
18282
18283 # Take the output of nm and produce a listing of raw symbols and C names.
18284 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18285
18286 # Transform the output of nm in a proper C declaration
18287 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18288
18289 # Transform the output of nm in a C name address pair
18290 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18291
18292 # This is the shared library runtime path variable.
18293 runpath_var=$runpath_var
18294
18295 # This is the shared library path variable.
18296 shlibpath_var=$shlibpath_var
18297
18298 # Is shlibpath searched before the hard-coded library search path?
18299 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18300
18301 # How to hardcode a shared library path into an executable.
18302 hardcode_action=$hardcode_action_RC
18303
18304 # Whether we should hardcode library paths into libraries.
18305 hardcode_into_libs=$hardcode_into_libs
18306
18307 # Flag to hardcode \$libdir into a binary during linking.
18308 # This must work even if \$libdir does not exist.
18309 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18310
18311 # If ld is used when linking, flag to hardcode \$libdir into
18312 # a binary during linking. This must work even if \$libdir does
18313 # not exist.
18314 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18315
18316 # Whether we need a single -rpath flag with a separated argument.
18317 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18318
18319 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18320 # resulting binary.
18321 hardcode_direct=$hardcode_direct_RC
18322
18323 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18324 # resulting binary.
18325 hardcode_minus_L=$hardcode_minus_L_RC
18326
18327 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18328 # the resulting binary.
18329 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18330
18331 # Set to yes if building a shared library automatically hardcodes DIR into the library
18332 # and all subsequent libraries and executables linked against it.
18333 hardcode_automatic=$hardcode_automatic_RC
18334
18335 # Variables whose values should be saved in libtool wrapper scripts and
18336 # restored at relink time.
18337 variables_saved_for_relink="$variables_saved_for_relink"
18338
18339 # Whether libtool must link a program against all its dependency libraries.
18340 link_all_deplibs=$link_all_deplibs_RC
18341
18342 # Compile-time system search path for libraries
18343 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18344
18345 # Run-time system search path for libraries
18346 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18347
18348 # Fix the shell variable \$srcfile for the compiler.
18349 fix_srcfile_path="$fix_srcfile_path_RC"
18350
18351 # Set to yes if exported symbols are required.
18352 always_export_symbols=$always_export_symbols_RC
18353
18354 # The commands to list exported symbols.
18355 export_symbols_cmds=$lt_export_symbols_cmds_RC
18356
18357 # The commands to extract the exported symbol list from a shared archive.
18358 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18359
18360 # Symbols that should not be listed in the preloaded symbols.
18361 exclude_expsyms=$lt_exclude_expsyms_RC
18362
18363 # Symbols that must always be exported.
18364 include_expsyms=$lt_include_expsyms_RC
18365
18366 # ### END LIBTOOL TAG CONFIG: $tagname
18367
18368 __EOF__
18369
18370
18371 else
18372   # If there is no Makefile yet, we rely on a make rule to execute
18373   # `config.status --recheck' to rerun these tests and create the
18374   # libtool script then.
18375   test -f Makefile && make "$ltmain"
18376 fi
18377
18378
18379 ac_ext=c
18380 ac_cpp='$CPP $CPPFLAGS'
18381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18384
18385 CC="$lt_save_CC"
18386
18387         ;;
18388
18389       *)
18390         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18391 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18392    { (exit 1); exit 1; }; }
18393         ;;
18394       esac
18395
18396       # Append the new tag name to the list of available tags.
18397       if test -n "$tagname" ; then
18398       available_tags="$available_tags $tagname"
18399     fi
18400     fi
18401   done
18402   IFS="$lt_save_ifs"
18403
18404   # Now substitute the updated list of available tags.
18405   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18406     mv "${ofile}T" "$ofile"
18407     chmod +x "$ofile"
18408   else
18409     rm -f "${ofile}T"
18410     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18411 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18412    { (exit 1); exit 1; }; }
18413   fi
18414 fi
18415
18416
18417
18418 # This can be used to rebuild libtool when needed
18419 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18420
18421 # Always use our own libtool.
18422 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18423
18424 # Prevent multiple expansion
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446 # Extract the first word of "pwd", so it can be a program name with args.
18447 set dummy pwd; ac_word=$2
18448 echo "$as_me:$LINENO: checking for $ac_word" >&5
18449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18450 if test "${ac_cv_path_RPWD+set}" = set; then
18451   echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18453   case $RPWD in
18454   [\\/]* | ?:[\\/]*)
18455   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18456   ;;
18457   *)
18458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18459 for as_dir in $PATH
18460 do
18461   IFS=$as_save_IFS
18462   test -z "$as_dir" && as_dir=.
18463   for ac_exec_ext in '' $ac_executable_extensions; do
18464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18465     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18467     break 2
18468   fi
18469 done
18470 done
18471
18472   ;;
18473 esac
18474 fi
18475 RPWD=$ac_cv_path_RPWD
18476
18477 if test -n "$RPWD"; then
18478   echo "$as_me:$LINENO: result: $RPWD" >&5
18479 echo "${ECHO_T}$RPWD" >&6
18480 else
18481   echo "$as_me:$LINENO: result: no" >&5
18482 echo "${ECHO_T}no" >&6
18483 fi
18484
18485 # Extract the first word of "ar", so it can be a program name with args.
18486 set dummy ar; ac_word=$2
18487 echo "$as_me:$LINENO: checking for $ac_word" >&5
18488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18489 if test "${ac_cv_path_AR+set}" = set; then
18490   echo $ECHO_N "(cached) $ECHO_C" >&6
18491 else
18492   case $AR in
18493   [\\/]* | ?:[\\/]*)
18494   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18495   ;;
18496   *)
18497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18498 for as_dir in $PATH
18499 do
18500   IFS=$as_save_IFS
18501   test -z "$as_dir" && as_dir=.
18502   for ac_exec_ext in '' $ac_executable_extensions; do
18503   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18504     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18506     break 2
18507   fi
18508 done
18509 done
18510
18511   ;;
18512 esac
18513 fi
18514 AR=$ac_cv_path_AR
18515
18516 if test -n "$AR"; then
18517   echo "$as_me:$LINENO: result: $AR" >&5
18518 echo "${ECHO_T}$AR" >&6
18519 else
18520   echo "$as_me:$LINENO: result: no" >&5
18521 echo "${ECHO_T}no" >&6
18522 fi
18523
18524 # Extract the first word of "sed", so it can be a program name with args.
18525 set dummy sed; ac_word=$2
18526 echo "$as_me:$LINENO: checking for $ac_word" >&5
18527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18528 if test "${ac_cv_path_SED+set}" = set; then
18529   echo $ECHO_N "(cached) $ECHO_C" >&6
18530 else
18531   case $SED in
18532   [\\/]* | ?:[\\/]*)
18533   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18534   ;;
18535   *)
18536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18537 for as_dir in $PATH
18538 do
18539   IFS=$as_save_IFS
18540   test -z "$as_dir" && as_dir=.
18541   for ac_exec_ext in '' $ac_executable_extensions; do
18542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18543     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18545     break 2
18546   fi
18547 done
18548 done
18549
18550   ;;
18551 esac
18552 fi
18553 SED=$ac_cv_path_SED
18554
18555 if test -n "$SED"; then
18556   echo "$as_me:$LINENO: result: $SED" >&5
18557 echo "${ECHO_T}$SED" >&6
18558 else
18559   echo "$as_me:$LINENO: result: no" >&5
18560 echo "${ECHO_T}no" >&6
18561 fi
18562
18563 # Extract the first word of "rm", so it can be a program name with args.
18564 set dummy rm; ac_word=$2
18565 echo "$as_me:$LINENO: checking for $ac_word" >&5
18566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18567 if test "${ac_cv_path_RM+set}" = set; then
18568   echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570   case $RM in
18571   [\\/]* | ?:[\\/]*)
18572   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18573   ;;
18574   *)
18575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18576 for as_dir in $PATH
18577 do
18578   IFS=$as_save_IFS
18579   test -z "$as_dir" && as_dir=.
18580   for ac_exec_ext in '' $ac_executable_extensions; do
18581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18582     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18584     break 2
18585   fi
18586 done
18587 done
18588
18589   ;;
18590 esac
18591 fi
18592 RM=$ac_cv_path_RM
18593
18594 if test -n "$RM"; then
18595   echo "$as_me:$LINENO: result: $RM" >&5
18596 echo "${ECHO_T}$RM" >&6
18597 else
18598   echo "$as_me:$LINENO: result: no" >&5
18599 echo "${ECHO_T}no" >&6
18600 fi
18601
18602 # Extract the first word of "echo", so it can be a program name with args.
18603 set dummy echo; ac_word=$2
18604 echo "$as_me:$LINENO: checking for $ac_word" >&5
18605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18606 if test "${ac_cv_path_ECHO+set}" = set; then
18607   echo $ECHO_N "(cached) $ECHO_C" >&6
18608 else
18609   case $ECHO in
18610   [\\/]* | ?:[\\/]*)
18611   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18612   ;;
18613   *)
18614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18615 for as_dir in $PATH
18616 do
18617   IFS=$as_save_IFS
18618   test -z "$as_dir" && as_dir=.
18619   for ac_exec_ext in '' $ac_executable_extensions; do
18620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18621     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18623     break 2
18624   fi
18625 done
18626 done
18627
18628   ;;
18629 esac
18630 fi
18631 ECHO=$ac_cv_path_ECHO
18632
18633 if test -n "$ECHO"; then
18634   echo "$as_me:$LINENO: result: $ECHO" >&5
18635 echo "${ECHO_T}$ECHO" >&6
18636 else
18637   echo "$as_me:$LINENO: result: no" >&5
18638 echo "${ECHO_T}no" >&6
18639 fi
18640
18641 # Extract the first word of "mkdir", so it can be a program name with args.
18642 set dummy mkdir; ac_word=$2
18643 echo "$as_me:$LINENO: checking for $ac_word" >&5
18644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18645 if test "${ac_cv_path_MKDIR+set}" = set; then
18646   echo $ECHO_N "(cached) $ECHO_C" >&6
18647 else
18648   case $MKDIR in
18649   [\\/]* | ?:[\\/]*)
18650   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18651   ;;
18652   *)
18653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18654 for as_dir in $PATH
18655 do
18656   IFS=$as_save_IFS
18657   test -z "$as_dir" && as_dir=.
18658   for ac_exec_ext in '' $ac_executable_extensions; do
18659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18660     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18662     break 2
18663   fi
18664 done
18665 done
18666
18667   ;;
18668 esac
18669 fi
18670 MKDIR=$ac_cv_path_MKDIR
18671
18672 if test -n "$MKDIR"; then
18673   echo "$as_me:$LINENO: result: $MKDIR" >&5
18674 echo "${ECHO_T}$MKDIR" >&6
18675 else
18676   echo "$as_me:$LINENO: result: no" >&5
18677 echo "${ECHO_T}no" >&6
18678 fi
18679
18680 # Extract the first word of "date", so it can be a program name with args.
18681 set dummy date; ac_word=$2
18682 echo "$as_me:$LINENO: checking for $ac_word" >&5
18683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18684 if test "${ac_cv_path_DATE+set}" = set; then
18685   echo $ECHO_N "(cached) $ECHO_C" >&6
18686 else
18687   case $DATE in
18688   [\\/]* | ?:[\\/]*)
18689   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18690   ;;
18691   *)
18692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18693 for as_dir in $PATH
18694 do
18695   IFS=$as_save_IFS
18696   test -z "$as_dir" && as_dir=.
18697   for ac_exec_ext in '' $ac_executable_extensions; do
18698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18699     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18701     break 2
18702   fi
18703 done
18704 done
18705
18706   ;;
18707 esac
18708 fi
18709 DATE=$ac_cv_path_DATE
18710
18711 if test -n "$DATE"; then
18712   echo "$as_me:$LINENO: result: $DATE" >&5
18713 echo "${ECHO_T}$DATE" >&6
18714 else
18715   echo "$as_me:$LINENO: result: no" >&5
18716 echo "${ECHO_T}no" >&6
18717 fi
18718
18719 # Extract the first word of "mv", so it can be a program name with args.
18720 set dummy mv; ac_word=$2
18721 echo "$as_me:$LINENO: checking for $ac_word" >&5
18722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18723 if test "${ac_cv_path_MV+set}" = set; then
18724   echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18726   case $MV in
18727   [\\/]* | ?:[\\/]*)
18728   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18729   ;;
18730   *)
18731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18732 for as_dir in $PATH
18733 do
18734   IFS=$as_save_IFS
18735   test -z "$as_dir" && as_dir=.
18736   for ac_exec_ext in '' $ac_executable_extensions; do
18737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18738     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18740     break 2
18741   fi
18742 done
18743 done
18744
18745   ;;
18746 esac
18747 fi
18748 MV=$ac_cv_path_MV
18749
18750 if test -n "$MV"; then
18751   echo "$as_me:$LINENO: result: $MV" >&5
18752 echo "${ECHO_T}$MV" >&6
18753 else
18754   echo "$as_me:$LINENO: result: no" >&5
18755 echo "${ECHO_T}no" >&6
18756 fi
18757
18758 # Extract the first word of "dot", so it can be a program name with args.
18759 set dummy dot; ac_word=$2
18760 echo "$as_me:$LINENO: checking for $ac_word" >&5
18761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18762 if test "${ac_cv_path_DOT+set}" = set; then
18763   echo $ECHO_N "(cached) $ECHO_C" >&6
18764 else
18765   case $DOT in
18766   [\\/]* | ?:[\\/]*)
18767   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18768   ;;
18769   *)
18770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18771 for as_dir in $PATH
18772 do
18773   IFS=$as_save_IFS
18774   test -z "$as_dir" && as_dir=.
18775   for ac_exec_ext in '' $ac_executable_extensions; do
18776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18777     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18779     break 2
18780   fi
18781 done
18782 done
18783
18784   ;;
18785 esac
18786 fi
18787 DOT=$ac_cv_path_DOT
18788
18789 if test -n "$DOT"; then
18790   echo "$as_me:$LINENO: result: $DOT" >&5
18791 echo "${ECHO_T}$DOT" >&6
18792 else
18793   echo "$as_me:$LINENO: result: no" >&5
18794 echo "${ECHO_T}no" >&6
18795 fi
18796
18797 # Extract the first word of "etags", so it can be a program name with args.
18798 set dummy etags; ac_word=$2
18799 echo "$as_me:$LINENO: checking for $ac_word" >&5
18800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18801 if test "${ac_cv_path_ETAGS+set}" = set; then
18802   echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18804   case $ETAGS in
18805   [\\/]* | ?:[\\/]*)
18806   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18807   ;;
18808   *)
18809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18810 for as_dir in $PATH
18811 do
18812   IFS=$as_save_IFS
18813   test -z "$as_dir" && as_dir=.
18814   for ac_exec_ext in '' $ac_executable_extensions; do
18815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18816     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18818     break 2
18819   fi
18820 done
18821 done
18822
18823   ;;
18824 esac
18825 fi
18826 ETAGS=$ac_cv_path_ETAGS
18827
18828 if test -n "$ETAGS"; then
18829   echo "$as_me:$LINENO: result: $ETAGS" >&5
18830 echo "${ECHO_T}$ETAGS" >&6
18831 else
18832   echo "$as_me:$LINENO: result: no" >&5
18833 echo "${ECHO_T}no" >&6
18834 fi
18835
18836 # Extract the first word of "purify", so it can be a program name with args.
18837 set dummy purify; ac_word=$2
18838 echo "$as_me:$LINENO: checking for $ac_word" >&5
18839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18840 if test "${ac_cv_path_PURIFY+set}" = set; then
18841   echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18843   case $PURIFY in
18844   [\\/]* | ?:[\\/]*)
18845   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18846   ;;
18847   *)
18848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18849 for as_dir in $PATH
18850 do
18851   IFS=$as_save_IFS
18852   test -z "$as_dir" && as_dir=.
18853   for ac_exec_ext in '' $ac_executable_extensions; do
18854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18855     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18857     break 2
18858   fi
18859 done
18860 done
18861
18862   ;;
18863 esac
18864 fi
18865 PURIFY=$ac_cv_path_PURIFY
18866
18867 if test -n "$PURIFY"; then
18868   echo "$as_me:$LINENO: result: $PURIFY" >&5
18869 echo "${ECHO_T}$PURIFY" >&6
18870 else
18871   echo "$as_me:$LINENO: result: no" >&5
18872 echo "${ECHO_T}no" >&6
18873 fi
18874
18875 # Extract the first word of "python", so it can be a program name with args.
18876 set dummy python; ac_word=$2
18877 echo "$as_me:$LINENO: checking for $ac_word" >&5
18878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18879 if test "${ac_cv_path_PYTHON+set}" = set; then
18880   echo $ECHO_N "(cached) $ECHO_C" >&6
18881 else
18882   case $PYTHON in
18883   [\\/]* | ?:[\\/]*)
18884   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18885   ;;
18886   *)
18887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18888 for as_dir in $PATH
18889 do
18890   IFS=$as_save_IFS
18891   test -z "$as_dir" && as_dir=.
18892   for ac_exec_ext in '' $ac_executable_extensions; do
18893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18894     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18896     break 2
18897   fi
18898 done
18899 done
18900
18901   ;;
18902 esac
18903 fi
18904 PYTHON=$ac_cv_path_PYTHON
18905
18906 if test -n "$PYTHON"; then
18907   echo "$as_me:$LINENO: result: $PYTHON" >&5
18908 echo "${ECHO_T}$PYTHON" >&6
18909 else
18910   echo "$as_me:$LINENO: result: no" >&5
18911 echo "${ECHO_T}no" >&6
18912 fi
18913
18914 # Extract the first word of "qmtest", so it can be a program name with args.
18915 set dummy qmtest; ac_word=$2
18916 echo "$as_me:$LINENO: checking for $ac_word" >&5
18917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18918 if test "${ac_cv_path_QMTEST+set}" = set; then
18919   echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921   case $QMTEST in
18922   [\\/]* | ?:[\\/]*)
18923   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18924   ;;
18925   *)
18926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18927 for as_dir in $PATH
18928 do
18929   IFS=$as_save_IFS
18930   test -z "$as_dir" && as_dir=.
18931   for ac_exec_ext in '' $ac_executable_extensions; do
18932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18933     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18935     break 2
18936   fi
18937 done
18938 done
18939
18940   ;;
18941 esac
18942 fi
18943 QMTEST=$ac_cv_path_QMTEST
18944
18945 if test -n "$QMTEST"; then
18946   echo "$as_me:$LINENO: result: $QMTEST" >&5
18947 echo "${ECHO_T}$QMTEST" >&6
18948 else
18949   echo "$as_me:$LINENO: result: no" >&5
18950 echo "${ECHO_T}no" >&6
18951 fi
18952
18953
18954 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18955 pymajor=`echo $pyversion | cut -d. -f1`
18956 pyminor=`echo $pyversion | cut -d. -f2`
18957
18958 if test "$pymajor" -ge "2"
18959 then
18960         if test "$pymajor" -eq "2"
18961         then
18962                 if test "$pyminor" -lt "2"
18963                 then
18964                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18965 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18966    { (exit 1); exit 1; }; }
18967                 fi
18968         fi
18969 else
18970         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18971 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18972    { (exit 1); exit 1; }; }
18973 fi
18974
18975
18976
18977
18978
18979 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18980 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18981 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18982   echo $ECHO_N "(cached) $ECHO_C" >&6
18983 else
18984   ac_check_lib_save_LIBS=$LIBS
18985 LIBS="-lelf  $LIBS"
18986 cat >conftest.$ac_ext <<_ACEOF
18987 #line $LINENO "configure"
18988 /* confdefs.h.  */
18989 _ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h.  */
18993
18994 /* Override any gcc2 internal prototype to avoid an error.  */
18995 #ifdef __cplusplus
18996 extern "C"
18997 #endif
18998 /* We use char because int might match the return type of a gcc2
18999    builtin and then its argument prototype would still apply.  */
19000 char elf_begin ();
19001 int
19002 main ()
19003 {
19004 elf_begin ();
19005   ;
19006   return 0;
19007 }
19008 _ACEOF
19009 rm -f conftest.$ac_objext conftest$ac_exeext
19010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19011   (eval $ac_link) 2>&5
19012   ac_status=$?
19013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014   (exit $ac_status); } &&
19015          { ac_try='test -s conftest$ac_exeext'
19016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19017   (eval $ac_try) 2>&5
19018   ac_status=$?
19019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020   (exit $ac_status); }; }; then
19021   ac_cv_lib_elf_elf_begin=yes
19022 else
19023   echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.$ac_ext >&5
19025
19026 ac_cv_lib_elf_elf_begin=no
19027 fi
19028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19029 LIBS=$ac_check_lib_save_LIBS
19030 fi
19031 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19032 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19033 if test $ac_cv_lib_elf_elf_begin = yes; then
19034   cat >>confdefs.h <<_ACEOF
19035 #define HAVE_LIBELF 1
19036 _ACEOF
19037
19038   LIBS="-lelf $LIBS"
19039
19040 fi
19041
19042
19043 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19044 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19045 if test "${ac_cv_search_dlopen+set}" = set; then
19046   echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048   ac_func_search_save_LIBS=$LIBS
19049 ac_cv_search_dlopen=no
19050 cat >conftest.$ac_ext <<_ACEOF
19051 #line $LINENO "configure"
19052 /* confdefs.h.  */
19053 _ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h.  */
19057
19058 /* Override any gcc2 internal prototype to avoid an error.  */
19059 #ifdef __cplusplus
19060 extern "C"
19061 #endif
19062 /* We use char because int might match the return type of a gcc2
19063    builtin and then its argument prototype would still apply.  */
19064 char dlopen ();
19065 int
19066 main ()
19067 {
19068 dlopen ();
19069   ;
19070   return 0;
19071 }
19072 _ACEOF
19073 rm -f conftest.$ac_objext conftest$ac_exeext
19074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19075   (eval $ac_link) 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); } &&
19079          { ac_try='test -s conftest$ac_exeext'
19080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081   (eval $ac_try) 2>&5
19082   ac_status=$?
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); }; }; then
19085   ac_cv_search_dlopen="none required"
19086 else
19087   echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.$ac_ext >&5
19089
19090 fi
19091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19092 if test "$ac_cv_search_dlopen" = no; then
19093   for ac_lib in dl; do
19094     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19095     cat >conftest.$ac_ext <<_ACEOF
19096 #line $LINENO "configure"
19097 /* confdefs.h.  */
19098 _ACEOF
19099 cat confdefs.h >>conftest.$ac_ext
19100 cat >>conftest.$ac_ext <<_ACEOF
19101 /* end confdefs.h.  */
19102
19103 /* Override any gcc2 internal prototype to avoid an error.  */
19104 #ifdef __cplusplus
19105 extern "C"
19106 #endif
19107 /* We use char because int might match the return type of a gcc2
19108    builtin and then its argument prototype would still apply.  */
19109 char dlopen ();
19110 int
19111 main ()
19112 {
19113 dlopen ();
19114   ;
19115   return 0;
19116 }
19117 _ACEOF
19118 rm -f conftest.$ac_objext conftest$ac_exeext
19119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19120   (eval $ac_link) 2>&5
19121   ac_status=$?
19122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123   (exit $ac_status); } &&
19124          { ac_try='test -s conftest$ac_exeext'
19125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126   (eval $ac_try) 2>&5
19127   ac_status=$?
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); }; }; then
19130   ac_cv_search_dlopen="-l$ac_lib"
19131 break
19132 else
19133   echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19135
19136 fi
19137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19138   done
19139 fi
19140 LIBS=$ac_func_search_save_LIBS
19141 fi
19142 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19143 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19144 if test "$ac_cv_search_dlopen" != no; then
19145   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19146
19147 else
19148   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19149 echo "$as_me: error: dlopen() required but not found" >&2;}
19150    { (exit 1); exit 1; }; }
19151 fi
19152
19153
19154 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19155 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19156 if test "${ac_cv_search_mallinfo+set}" = set; then
19157   echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159   ac_func_search_save_LIBS=$LIBS
19160 ac_cv_search_mallinfo=no
19161 cat >conftest.$ac_ext <<_ACEOF
19162 #line $LINENO "configure"
19163 /* confdefs.h.  */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h.  */
19168
19169 /* Override any gcc2 internal prototype to avoid an error.  */
19170 #ifdef __cplusplus
19171 extern "C"
19172 #endif
19173 /* We use char because int might match the return type of a gcc2
19174    builtin and then its argument prototype would still apply.  */
19175 char mallinfo ();
19176 int
19177 main ()
19178 {
19179 mallinfo ();
19180   ;
19181   return 0;
19182 }
19183 _ACEOF
19184 rm -f conftest.$ac_objext conftest$ac_exeext
19185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19186   (eval $ac_link) 2>&5
19187   ac_status=$?
19188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189   (exit $ac_status); } &&
19190          { ac_try='test -s conftest$ac_exeext'
19191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192   (eval $ac_try) 2>&5
19193   ac_status=$?
19194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195   (exit $ac_status); }; }; then
19196   ac_cv_search_mallinfo="none required"
19197 else
19198   echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19200
19201 fi
19202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19203 if test "$ac_cv_search_mallinfo" = no; then
19204   for ac_lib in malloc; do
19205     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19206     cat >conftest.$ac_ext <<_ACEOF
19207 #line $LINENO "configure"
19208 /* confdefs.h.  */
19209 _ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h.  */
19213
19214 /* Override any gcc2 internal prototype to avoid an error.  */
19215 #ifdef __cplusplus
19216 extern "C"
19217 #endif
19218 /* We use char because int might match the return type of a gcc2
19219    builtin and then its argument prototype would still apply.  */
19220 char mallinfo ();
19221 int
19222 main ()
19223 {
19224 mallinfo ();
19225   ;
19226   return 0;
19227 }
19228 _ACEOF
19229 rm -f conftest.$ac_objext conftest$ac_exeext
19230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19231   (eval $ac_link) 2>&5
19232   ac_status=$?
19233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234   (exit $ac_status); } &&
19235          { ac_try='test -s conftest$ac_exeext'
19236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19237   (eval $ac_try) 2>&5
19238   ac_status=$?
19239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240   (exit $ac_status); }; }; then
19241   ac_cv_search_mallinfo="-l$ac_lib"
19242 break
19243 else
19244   echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19246
19247 fi
19248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19249   done
19250 fi
19251 LIBS=$ac_func_search_save_LIBS
19252 fi
19253 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19254 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19255 if test "$ac_cv_search_mallinfo" != no; then
19256   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19257   cat >>confdefs.h <<\_ACEOF
19258 #define HAVE_MALLINFO 1
19259 _ACEOF
19260
19261 fi
19262
19263
19264
19265 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19266 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19267 if test "${ac_cv_header_stdc+set}" = set; then
19268   echo $ECHO_N "(cached) $ECHO_C" >&6
19269 else
19270   cat >conftest.$ac_ext <<_ACEOF
19271 #line $LINENO "configure"
19272 /* confdefs.h.  */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h.  */
19277 #include <stdlib.h>
19278 #include <stdarg.h>
19279 #include <string.h>
19280 #include <float.h>
19281
19282 int
19283 main ()
19284 {
19285
19286   ;
19287   return 0;
19288 }
19289 _ACEOF
19290 rm -f conftest.$ac_objext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19292   (eval $ac_compile) 2>&5
19293   ac_status=$?
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); } &&
19296          { ac_try='test -s conftest.$ac_objext'
19297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298   (eval $ac_try) 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; }; then
19302   ac_cv_header_stdc=yes
19303 else
19304   echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307 ac_cv_header_stdc=no
19308 fi
19309 rm -f conftest.$ac_objext conftest.$ac_ext
19310
19311 if test $ac_cv_header_stdc = yes; then
19312   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19313   cat >conftest.$ac_ext <<_ACEOF
19314 #line $LINENO "configure"
19315 /* confdefs.h.  */
19316 _ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h.  */
19320 #include <string.h>
19321
19322 _ACEOF
19323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19324   $EGREP "memchr" >/dev/null 2>&1; then
19325   :
19326 else
19327   ac_cv_header_stdc=no
19328 fi
19329 rm -f conftest*
19330
19331 fi
19332
19333 if test $ac_cv_header_stdc = yes; then
19334   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19335   cat >conftest.$ac_ext <<_ACEOF
19336 #line $LINENO "configure"
19337 /* confdefs.h.  */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h.  */
19342 #include <stdlib.h>
19343
19344 _ACEOF
19345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19346   $EGREP "free" >/dev/null 2>&1; then
19347   :
19348 else
19349   ac_cv_header_stdc=no
19350 fi
19351 rm -f conftest*
19352
19353 fi
19354
19355 if test $ac_cv_header_stdc = yes; then
19356   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19357   if test "$cross_compiling" = yes; then
19358   :
19359 else
19360   cat >conftest.$ac_ext <<_ACEOF
19361 #line $LINENO "configure"
19362 /* confdefs.h.  */
19363 _ACEOF
19364 cat confdefs.h >>conftest.$ac_ext
19365 cat >>conftest.$ac_ext <<_ACEOF
19366 /* end confdefs.h.  */
19367 #include <ctype.h>
19368 #if ((' ' & 0x0FF) == 0x020)
19369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19371 #else
19372 # define ISLOWER(c) \
19373                    (('a' <= (c) && (c) <= 'i') \
19374                      || ('j' <= (c) && (c) <= 'r') \
19375                      || ('s' <= (c) && (c) <= 'z'))
19376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19377 #endif
19378
19379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19380 int
19381 main ()
19382 {
19383   int i;
19384   for (i = 0; i < 256; i++)
19385     if (XOR (islower (i), ISLOWER (i))
19386         || toupper (i) != TOUPPER (i))
19387       exit(2);
19388   exit (0);
19389 }
19390 _ACEOF
19391 rm -f conftest$ac_exeext
19392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19393   (eval $ac_link) 2>&5
19394   ac_status=$?
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398   (eval $ac_try) 2>&5
19399   ac_status=$?
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); }; }; then
19402   :
19403 else
19404   echo "$as_me: program exited with status $ac_status" >&5
19405 echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19407
19408 ( exit $ac_status )
19409 ac_cv_header_stdc=no
19410 fi
19411 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19412 fi
19413 fi
19414 fi
19415 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19416 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19417 if test $ac_cv_header_stdc = yes; then
19418
19419 cat >>confdefs.h <<\_ACEOF
19420 #define STDC_HEADERS 1
19421 _ACEOF
19422
19423 fi
19424
19425 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19426 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19427 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19428   echo $ECHO_N "(cached) $ECHO_C" >&6
19429 else
19430   cat >conftest.$ac_ext <<_ACEOF
19431 #line $LINENO "configure"
19432 /* confdefs.h.  */
19433 _ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h.  */
19437 #include <sys/types.h>
19438 #include <sys/wait.h>
19439 #ifndef WEXITSTATUS
19440 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19441 #endif
19442 #ifndef WIFEXITED
19443 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19444 #endif
19445
19446 int
19447 main ()
19448 {
19449   int s;
19450   wait (&s);
19451   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19452   ;
19453   return 0;
19454 }
19455 _ACEOF
19456 rm -f conftest.$ac_objext
19457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19458   (eval $ac_compile) 2>&5
19459   ac_status=$?
19460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461   (exit $ac_status); } &&
19462          { ac_try='test -s conftest.$ac_objext'
19463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464   (eval $ac_try) 2>&5
19465   ac_status=$?
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); }; }; then
19468   ac_cv_header_sys_wait_h=yes
19469 else
19470   echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19472
19473 ac_cv_header_sys_wait_h=no
19474 fi
19475 rm -f conftest.$ac_objext conftest.$ac_ext
19476 fi
19477 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19478 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19479 if test $ac_cv_header_sys_wait_h = yes; then
19480
19481 cat >>confdefs.h <<\_ACEOF
19482 #define HAVE_SYS_WAIT_H 1
19483 _ACEOF
19484
19485 fi
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19497 do
19498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19500   echo "$as_me:$LINENO: checking for $ac_header" >&5
19501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19503   echo $ECHO_N "(cached) $ECHO_C" >&6
19504 fi
19505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19507 else
19508   # Is the header compilable?
19509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19511 cat >conftest.$ac_ext <<_ACEOF
19512 #line $LINENO "configure"
19513 /* confdefs.h.  */
19514 _ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h.  */
19518 $ac_includes_default
19519 #include <$ac_header>
19520 _ACEOF
19521 rm -f conftest.$ac_objext
19522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19523   (eval $ac_compile) 2>&5
19524   ac_status=$?
19525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526   (exit $ac_status); } &&
19527          { ac_try='test -s conftest.$ac_objext'
19528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529   (eval $ac_try) 2>&5
19530   ac_status=$?
19531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532   (exit $ac_status); }; }; then
19533   ac_header_compiler=yes
19534 else
19535   echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19537
19538 ac_header_compiler=no
19539 fi
19540 rm -f conftest.$ac_objext conftest.$ac_ext
19541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19542 echo "${ECHO_T}$ac_header_compiler" >&6
19543
19544 # Is the header present?
19545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19547 cat >conftest.$ac_ext <<_ACEOF
19548 #line $LINENO "configure"
19549 /* confdefs.h.  */
19550 _ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h.  */
19554 #include <$ac_header>
19555 _ACEOF
19556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19558   ac_status=$?
19559   grep -v '^ *+' conftest.er1 >conftest.err
19560   rm -f conftest.er1
19561   cat conftest.err >&5
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); } >/dev/null; then
19564   if test -s conftest.err; then
19565     ac_cpp_err=$ac_c_preproc_warn_flag
19566   else
19567     ac_cpp_err=
19568   fi
19569 else
19570   ac_cpp_err=yes
19571 fi
19572 if test -z "$ac_cpp_err"; then
19573   ac_header_preproc=yes
19574 else
19575   echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19577
19578   ac_header_preproc=no
19579 fi
19580 rm -f conftest.err conftest.$ac_ext
19581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19582 echo "${ECHO_T}$ac_header_preproc" >&6
19583
19584 # So?  What about this header?
19585 case $ac_header_compiler:$ac_header_preproc in
19586   yes:no )
19587     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19591     (
19592       cat <<\_ASBOX
19593 ## ------------------------------------ ##
19594 ## Report this to bug-autoconf@gnu.org. ##
19595 ## ------------------------------------ ##
19596 _ASBOX
19597     ) |
19598       sed "s/^/$as_me: WARNING:     /" >&2
19599     ;;
19600   no:yes )
19601     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19603     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19607     (
19608       cat <<\_ASBOX
19609 ## ------------------------------------ ##
19610 ## Report this to bug-autoconf@gnu.org. ##
19611 ## ------------------------------------ ##
19612 _ASBOX
19613     ) |
19614       sed "s/^/$as_me: WARNING:     /" >&2
19615     ;;
19616 esac
19617 echo "$as_me:$LINENO: checking for $ac_header" >&5
19618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19620   echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622   eval "$as_ac_Header=$ac_header_preproc"
19623 fi
19624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19626
19627 fi
19628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19629   cat >>confdefs.h <<_ACEOF
19630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19631 _ACEOF
19632
19633 fi
19634
19635 done
19636
19637
19638
19639
19640
19641
19642 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19643 do
19644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19646   echo "$as_me:$LINENO: checking for $ac_header" >&5
19647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19649   echo $ECHO_N "(cached) $ECHO_C" >&6
19650 fi
19651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19653 else
19654   # Is the header compilable?
19655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19657 cat >conftest.$ac_ext <<_ACEOF
19658 #line $LINENO "configure"
19659 /* confdefs.h.  */
19660 _ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h.  */
19664 $ac_includes_default
19665 #include <$ac_header>
19666 _ACEOF
19667 rm -f conftest.$ac_objext
19668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19669   (eval $ac_compile) 2>&5
19670   ac_status=$?
19671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672   (exit $ac_status); } &&
19673          { ac_try='test -s conftest.$ac_objext'
19674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675   (eval $ac_try) 2>&5
19676   ac_status=$?
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); }; }; then
19679   ac_header_compiler=yes
19680 else
19681   echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19683
19684 ac_header_compiler=no
19685 fi
19686 rm -f conftest.$ac_objext conftest.$ac_ext
19687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19688 echo "${ECHO_T}$ac_header_compiler" >&6
19689
19690 # Is the header present?
19691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19693 cat >conftest.$ac_ext <<_ACEOF
19694 #line $LINENO "configure"
19695 /* confdefs.h.  */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h.  */
19700 #include <$ac_header>
19701 _ACEOF
19702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19703   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19704   ac_status=$?
19705   grep -v '^ *+' conftest.er1 >conftest.err
19706   rm -f conftest.er1
19707   cat conftest.err >&5
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); } >/dev/null; then
19710   if test -s conftest.err; then
19711     ac_cpp_err=$ac_c_preproc_warn_flag
19712   else
19713     ac_cpp_err=
19714   fi
19715 else
19716   ac_cpp_err=yes
19717 fi
19718 if test -z "$ac_cpp_err"; then
19719   ac_header_preproc=yes
19720 else
19721   echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19723
19724   ac_header_preproc=no
19725 fi
19726 rm -f conftest.err conftest.$ac_ext
19727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19728 echo "${ECHO_T}$ac_header_preproc" >&6
19729
19730 # So?  What about this header?
19731 case $ac_header_compiler:$ac_header_preproc in
19732   yes:no )
19733     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19737     (
19738       cat <<\_ASBOX
19739 ## ------------------------------------ ##
19740 ## Report this to bug-autoconf@gnu.org. ##
19741 ## ------------------------------------ ##
19742 _ASBOX
19743     ) |
19744       sed "s/^/$as_me: WARNING:     /" >&2
19745     ;;
19746   no:yes )
19747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19749     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19753     (
19754       cat <<\_ASBOX
19755 ## ------------------------------------ ##
19756 ## Report this to bug-autoconf@gnu.org. ##
19757 ## ------------------------------------ ##
19758 _ASBOX
19759     ) |
19760       sed "s/^/$as_me: WARNING:     /" >&2
19761     ;;
19762 esac
19763 echo "$as_me:$LINENO: checking for $ac_header" >&5
19764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19766   echo $ECHO_N "(cached) $ECHO_C" >&6
19767 else
19768   eval "$as_ac_Header=$ac_header_preproc"
19769 fi
19770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19772
19773 fi
19774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19775   cat >>confdefs.h <<_ACEOF
19776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19777 _ACEOF
19778
19779 fi
19780
19781 done
19782
19783
19784
19785
19786 for ac_header in dlfcn.h link.h
19787 do
19788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19790   echo "$as_me:$LINENO: checking for $ac_header" >&5
19791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19793   echo $ECHO_N "(cached) $ECHO_C" >&6
19794 fi
19795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19797 else
19798   # Is the header compilable?
19799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19801 cat >conftest.$ac_ext <<_ACEOF
19802 #line $LINENO "configure"
19803 /* confdefs.h.  */
19804 _ACEOF
19805 cat confdefs.h >>conftest.$ac_ext
19806 cat >>conftest.$ac_ext <<_ACEOF
19807 /* end confdefs.h.  */
19808 $ac_includes_default
19809 #include <$ac_header>
19810 _ACEOF
19811 rm -f conftest.$ac_objext
19812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19813   (eval $ac_compile) 2>&5
19814   ac_status=$?
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); } &&
19817          { ac_try='test -s conftest.$ac_objext'
19818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819   (eval $ac_try) 2>&5
19820   ac_status=$?
19821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822   (exit $ac_status); }; }; then
19823   ac_header_compiler=yes
19824 else
19825   echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828 ac_header_compiler=no
19829 fi
19830 rm -f conftest.$ac_objext conftest.$ac_ext
19831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19832 echo "${ECHO_T}$ac_header_compiler" >&6
19833
19834 # Is the header present?
19835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19837 cat >conftest.$ac_ext <<_ACEOF
19838 #line $LINENO "configure"
19839 /* confdefs.h.  */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h.  */
19844 #include <$ac_header>
19845 _ACEOF
19846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19847   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19848   ac_status=$?
19849   grep -v '^ *+' conftest.er1 >conftest.err
19850   rm -f conftest.er1
19851   cat conftest.err >&5
19852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853   (exit $ac_status); } >/dev/null; then
19854   if test -s conftest.err; then
19855     ac_cpp_err=$ac_c_preproc_warn_flag
19856   else
19857     ac_cpp_err=
19858   fi
19859 else
19860   ac_cpp_err=yes
19861 fi
19862 if test -z "$ac_cpp_err"; then
19863   ac_header_preproc=yes
19864 else
19865   echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19867
19868   ac_header_preproc=no
19869 fi
19870 rm -f conftest.err conftest.$ac_ext
19871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19872 echo "${ECHO_T}$ac_header_preproc" >&6
19873
19874 # So?  What about this header?
19875 case $ac_header_compiler:$ac_header_preproc in
19876   yes:no )
19877     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19881     (
19882       cat <<\_ASBOX
19883 ## ------------------------------------ ##
19884 ## Report this to bug-autoconf@gnu.org. ##
19885 ## ------------------------------------ ##
19886 _ASBOX
19887     ) |
19888       sed "s/^/$as_me: WARNING:     /" >&2
19889     ;;
19890   no:yes )
19891     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19893     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19897     (
19898       cat <<\_ASBOX
19899 ## ------------------------------------ ##
19900 ## Report this to bug-autoconf@gnu.org. ##
19901 ## ------------------------------------ ##
19902 _ASBOX
19903     ) |
19904       sed "s/^/$as_me: WARNING:     /" >&2
19905     ;;
19906 esac
19907 echo "$as_me:$LINENO: checking for $ac_header" >&5
19908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19910   echo $ECHO_N "(cached) $ECHO_C" >&6
19911 else
19912   eval "$as_ac_Header=$ac_header_preproc"
19913 fi
19914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19916
19917 fi
19918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19919   cat >>confdefs.h <<_ACEOF
19920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19921 _ACEOF
19922
19923 fi
19924
19925 done
19926
19927
19928
19929 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19930 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19931 if test "${ac_cv_c_const+set}" = set; then
19932   echo $ECHO_N "(cached) $ECHO_C" >&6
19933 else
19934   cat >conftest.$ac_ext <<_ACEOF
19935 #line $LINENO "configure"
19936 /* confdefs.h.  */
19937 _ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h.  */
19941
19942 int
19943 main ()
19944 {
19945 /* FIXME: Include the comments suggested by Paul. */
19946 #ifndef __cplusplus
19947   /* Ultrix mips cc rejects this.  */
19948   typedef int charset[2];
19949   const charset x;
19950   /* SunOS 4.1.1 cc rejects this.  */
19951   char const *const *ccp;
19952   char **p;
19953   /* NEC SVR4.0.2 mips cc rejects this.  */
19954   struct point {int x, y;};
19955   static struct point const zero = {0,0};
19956   /* AIX XL C 1.02.0.0 rejects this.
19957      It does not let you subtract one const X* pointer from another in
19958      an arm of an if-expression whose if-part is not a constant
19959      expression */
19960   const char *g = "string";
19961   ccp = &g + (g ? g-g : 0);
19962   /* HPUX 7.0 cc rejects these. */
19963   ++ccp;
19964   p = (char**) ccp;
19965   ccp = (char const *const *) p;
19966   { /* SCO 3.2v4 cc rejects this.  */
19967     char *t;
19968     char const *s = 0 ? (char *) 0 : (char const *) 0;
19969
19970     *t++ = 0;
19971   }
19972   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19973     int x[] = {25, 17};
19974     const int *foo = &x[0];
19975     ++foo;
19976   }
19977   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19978     typedef const int *iptr;
19979     iptr p = 0;
19980     ++p;
19981   }
19982   { /* AIX XL C 1.02.0.0 rejects this saying
19983        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19984     struct s { int j; const int *ap[3]; };
19985     struct s *b; b->j = 5;
19986   }
19987   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19988     const int foo = 10;
19989   }
19990 #endif
19991
19992   ;
19993   return 0;
19994 }
19995 _ACEOF
19996 rm -f conftest.$ac_objext
19997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19998   (eval $ac_compile) 2>&5
19999   ac_status=$?
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); } &&
20002          { ac_try='test -s conftest.$ac_objext'
20003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004   (eval $ac_try) 2>&5
20005   ac_status=$?
20006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007   (exit $ac_status); }; }; then
20008   ac_cv_c_const=yes
20009 else
20010   echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20012
20013 ac_cv_c_const=no
20014 fi
20015 rm -f conftest.$ac_objext conftest.$ac_ext
20016 fi
20017 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20018 echo "${ECHO_T}$ac_cv_c_const" >&6
20019 if test $ac_cv_c_const = no; then
20020
20021 cat >>confdefs.h <<\_ACEOF
20022 #define const
20023 _ACEOF
20024
20025 fi
20026
20027 echo "$as_me:$LINENO: checking for inline" >&5
20028 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20029 if test "${ac_cv_c_inline+set}" = set; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032   ac_cv_c_inline=no
20033 for ac_kw in inline __inline__ __inline; do
20034   cat >conftest.$ac_ext <<_ACEOF
20035 #line $LINENO "configure"
20036 /* confdefs.h.  */
20037 _ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h.  */
20041 #ifndef __cplusplus
20042 typedef int foo_t;
20043 static $ac_kw foo_t static_foo () {return 0; }
20044 $ac_kw foo_t foo () {return 0; }
20045 #endif
20046
20047 _ACEOF
20048 rm -f conftest.$ac_objext
20049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20050   (eval $ac_compile) 2>&5
20051   ac_status=$?
20052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053   (exit $ac_status); } &&
20054          { ac_try='test -s conftest.$ac_objext'
20055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056   (eval $ac_try) 2>&5
20057   ac_status=$?
20058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059   (exit $ac_status); }; }; then
20060   ac_cv_c_inline=$ac_kw; break
20061 else
20062   echo "$as_me: failed program was:" >&5
20063 sed 's/^/| /' conftest.$ac_ext >&5
20064
20065 fi
20066 rm -f conftest.$ac_objext conftest.$ac_ext
20067 done
20068
20069 fi
20070 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20071 echo "${ECHO_T}$ac_cv_c_inline" >&6
20072 case $ac_cv_c_inline in
20073   inline | yes) ;;
20074   no)
20075 cat >>confdefs.h <<\_ACEOF
20076 #define inline
20077 _ACEOF
20078  ;;
20079   *)  cat >>confdefs.h <<_ACEOF
20080 #define inline $ac_cv_c_inline
20081 _ACEOF
20082  ;;
20083 esac
20084
20085
20086 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20087 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20088 if test "${ac_cv_c_bigendian+set}" = set; then
20089   echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091   # See if sys/param.h defines the BYTE_ORDER macro.
20092 cat >conftest.$ac_ext <<_ACEOF
20093 #line $LINENO "configure"
20094 /* confdefs.h.  */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h.  */
20099 #include <sys/types.h>
20100 #include <sys/param.h>
20101
20102 int
20103 main ()
20104 {
20105 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20106  bogus endian macros
20107 #endif
20108
20109   ;
20110   return 0;
20111 }
20112 _ACEOF
20113 rm -f conftest.$ac_objext
20114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20115   (eval $ac_compile) 2>&5
20116   ac_status=$?
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); } &&
20119          { ac_try='test -s conftest.$ac_objext'
20120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121   (eval $ac_try) 2>&5
20122   ac_status=$?
20123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124   (exit $ac_status); }; }; then
20125   # It does; now see whether it defined to BIG_ENDIAN or not.
20126 cat >conftest.$ac_ext <<_ACEOF
20127 #line $LINENO "configure"
20128 /* confdefs.h.  */
20129 _ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h.  */
20133 #include <sys/types.h>
20134 #include <sys/param.h>
20135
20136 int
20137 main ()
20138 {
20139 #if BYTE_ORDER != BIG_ENDIAN
20140  not big endian
20141 #endif
20142
20143   ;
20144   return 0;
20145 }
20146 _ACEOF
20147 rm -f conftest.$ac_objext
20148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149   (eval $ac_compile) 2>&5
20150   ac_status=$?
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); } &&
20153          { ac_try='test -s conftest.$ac_objext'
20154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155   (eval $ac_try) 2>&5
20156   ac_status=$?
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); }; }; then
20159   ac_cv_c_bigendian=yes
20160 else
20161   echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20163
20164 ac_cv_c_bigendian=no
20165 fi
20166 rm -f conftest.$ac_objext conftest.$ac_ext
20167 else
20168   echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171 # It does not; compile a test program.
20172 if test "$cross_compiling" = yes; then
20173   # try to guess the endianness by grepping values into an object file
20174   ac_cv_c_bigendian=unknown
20175   cat >conftest.$ac_ext <<_ACEOF
20176 #line $LINENO "configure"
20177 /* confdefs.h.  */
20178 _ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h.  */
20182 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20183 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20184 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20185 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20186 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20187 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20188 int
20189 main ()
20190 {
20191  _ascii (); _ebcdic ();
20192   ;
20193   return 0;
20194 }
20195 _ACEOF
20196 rm -f conftest.$ac_objext
20197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20198   (eval $ac_compile) 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); } &&
20202          { ac_try='test -s conftest.$ac_objext'
20203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204   (eval $ac_try) 2>&5
20205   ac_status=$?
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); }; }; then
20208   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20209   ac_cv_c_bigendian=yes
20210 fi
20211 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20212   if test "$ac_cv_c_bigendian" = unknown; then
20213     ac_cv_c_bigendian=no
20214   else
20215     # finding both strings is unlikely to happen, but who knows?
20216     ac_cv_c_bigendian=unknown
20217   fi
20218 fi
20219 else
20220   echo "$as_me: failed program was:" >&5
20221 sed 's/^/| /' conftest.$ac_ext >&5
20222
20223 fi
20224 rm -f conftest.$ac_objext conftest.$ac_ext
20225 else
20226   cat >conftest.$ac_ext <<_ACEOF
20227 #line $LINENO "configure"
20228 /* confdefs.h.  */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h.  */
20233 int
20234 main ()
20235 {
20236   /* Are we little or big endian?  From Harbison&Steele.  */
20237   union
20238   {
20239     long l;
20240     char c[sizeof (long)];
20241   } u;
20242   u.l = 1;
20243   exit (u.c[sizeof (long) - 1] == 1);
20244 }
20245 _ACEOF
20246 rm -f conftest$ac_exeext
20247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20248   (eval $ac_link) 2>&5
20249   ac_status=$?
20250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253   (eval $ac_try) 2>&5
20254   ac_status=$?
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); }; }; then
20257   ac_cv_c_bigendian=no
20258 else
20259   echo "$as_me: program exited with status $ac_status" >&5
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20262
20263 ( exit $ac_status )
20264 ac_cv_c_bigendian=yes
20265 fi
20266 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20267 fi
20268 fi
20269 rm -f conftest.$ac_objext conftest.$ac_ext
20270 fi
20271 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20272 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20273 case $ac_cv_c_bigendian in
20274   yes)
20275     cat >>confdefs.h <<\_ACEOF
20276 #define ENDIAN_BIG 1
20277 _ACEOF
20278  ;;
20279   no)
20280     cat >>confdefs.h <<\_ACEOF
20281 #define ENDIAN_LITTLE 1
20282 _ACEOF
20283  ;;
20284   *)
20285     { { echo "$as_me:$LINENO: error: unknown endianness
20286 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20287 echo "$as_me: error: unknown endianness
20288 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20289    { (exit 1); exit 1; }; } ;;
20290 esac
20291
20292
20293 echo "$as_me:$LINENO: checking for pid_t" >&5
20294 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20295 if test "${ac_cv_type_pid_t+set}" = set; then
20296   echo $ECHO_N "(cached) $ECHO_C" >&6
20297 else
20298   cat >conftest.$ac_ext <<_ACEOF
20299 #line $LINENO "configure"
20300 /* confdefs.h.  */
20301 _ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h.  */
20305 $ac_includes_default
20306 int
20307 main ()
20308 {
20309 if ((pid_t *) 0)
20310   return 0;
20311 if (sizeof (pid_t))
20312   return 0;
20313   ;
20314   return 0;
20315 }
20316 _ACEOF
20317 rm -f conftest.$ac_objext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319   (eval $ac_compile) 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); } &&
20323          { ac_try='test -s conftest.$ac_objext'
20324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325   (eval $ac_try) 2>&5
20326   ac_status=$?
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); }; }; then
20329   ac_cv_type_pid_t=yes
20330 else
20331   echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20333
20334 ac_cv_type_pid_t=no
20335 fi
20336 rm -f conftest.$ac_objext conftest.$ac_ext
20337 fi
20338 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20339 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20340 if test $ac_cv_type_pid_t = yes; then
20341   :
20342 else
20343
20344 cat >>confdefs.h <<_ACEOF
20345 #define pid_t int
20346 _ACEOF
20347
20348 fi
20349
20350 echo "$as_me:$LINENO: checking for size_t" >&5
20351 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20352 if test "${ac_cv_type_size_t+set}" = set; then
20353   echo $ECHO_N "(cached) $ECHO_C" >&6
20354 else
20355   cat >conftest.$ac_ext <<_ACEOF
20356 #line $LINENO "configure"
20357 /* confdefs.h.  */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h.  */
20362 $ac_includes_default
20363 int
20364 main ()
20365 {
20366 if ((size_t *) 0)
20367   return 0;
20368 if (sizeof (size_t))
20369   return 0;
20370   ;
20371   return 0;
20372 }
20373 _ACEOF
20374 rm -f conftest.$ac_objext
20375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20376   (eval $ac_compile) 2>&5
20377   ac_status=$?
20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379   (exit $ac_status); } &&
20380          { ac_try='test -s conftest.$ac_objext'
20381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382   (eval $ac_try) 2>&5
20383   ac_status=$?
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); }; }; then
20386   ac_cv_type_size_t=yes
20387 else
20388   echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20390
20391 ac_cv_type_size_t=no
20392 fi
20393 rm -f conftest.$ac_objext conftest.$ac_ext
20394 fi
20395 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20396 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20397 if test $ac_cv_type_size_t = yes; then
20398   :
20399 else
20400
20401 cat >>confdefs.h <<_ACEOF
20402 #define size_t unsigned
20403 _ACEOF
20404
20405 fi
20406
20407 echo "$as_me:$LINENO: checking for int64_t" >&5
20408 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20409 if test "${ac_cv_type_int64_t+set}" = set; then
20410   echo $ECHO_N "(cached) $ECHO_C" >&6
20411 else
20412   cat >conftest.$ac_ext <<_ACEOF
20413 #line $LINENO "configure"
20414 /* confdefs.h.  */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h.  */
20419 $ac_includes_default
20420 int
20421 main ()
20422 {
20423 if ((int64_t *) 0)
20424   return 0;
20425 if (sizeof (int64_t))
20426   return 0;
20427   ;
20428   return 0;
20429 }
20430 _ACEOF
20431 rm -f conftest.$ac_objext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20433   (eval $ac_compile) 2>&5
20434   ac_status=$?
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); } &&
20437          { ac_try='test -s conftest.$ac_objext'
20438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439   (eval $ac_try) 2>&5
20440   ac_status=$?
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); }; }; then
20443   ac_cv_type_int64_t=yes
20444 else
20445   echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20447
20448 ac_cv_type_int64_t=no
20449 fi
20450 rm -f conftest.$ac_objext conftest.$ac_ext
20451 fi
20452 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20453 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20454 if test $ac_cv_type_int64_t = yes; then
20455
20456 cat >>confdefs.h <<_ACEOF
20457 #define HAVE_INT64_T 1
20458 _ACEOF
20459
20460
20461 else
20462   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20463 echo "$as_me: error: Type int64_t required but not found" >&2;}
20464    { (exit 1); exit 1; }; }
20465 fi
20466
20467 echo "$as_me:$LINENO: checking for uint64_t" >&5
20468 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20469 if test "${ac_cv_type_uint64_t+set}" = set; then
20470   echo $ECHO_N "(cached) $ECHO_C" >&6
20471 else
20472   cat >conftest.$ac_ext <<_ACEOF
20473 #line $LINENO "configure"
20474 /* confdefs.h.  */
20475 _ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h.  */
20479 $ac_includes_default
20480 int
20481 main ()
20482 {
20483 if ((uint64_t *) 0)
20484   return 0;
20485 if (sizeof (uint64_t))
20486   return 0;
20487   ;
20488   return 0;
20489 }
20490 _ACEOF
20491 rm -f conftest.$ac_objext
20492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20493   (eval $ac_compile) 2>&5
20494   ac_status=$?
20495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496   (exit $ac_status); } &&
20497          { ac_try='test -s conftest.$ac_objext'
20498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499   (eval $ac_try) 2>&5
20500   ac_status=$?
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); }; }; then
20503   ac_cv_type_uint64_t=yes
20504 else
20505   echo "$as_me: failed program was:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20507
20508 ac_cv_type_uint64_t=no
20509 fi
20510 rm -f conftest.$ac_objext conftest.$ac_ext
20511 fi
20512 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20513 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20514 if test $ac_cv_type_uint64_t = yes; then
20515
20516 cat >>confdefs.h <<_ACEOF
20517 #define HAVE_UINT64_T 1
20518 _ACEOF
20519
20520
20521 else
20522   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20523 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20524    { (exit 1); exit 1; }; }
20525 fi
20526
20527 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20528 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20529 if test "${ac_cv_header_time+set}" = set; then
20530   echo $ECHO_N "(cached) $ECHO_C" >&6
20531 else
20532   cat >conftest.$ac_ext <<_ACEOF
20533 #line $LINENO "configure"
20534 /* confdefs.h.  */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h.  */
20539 #include <sys/types.h>
20540 #include <sys/time.h>
20541 #include <time.h>
20542
20543 int
20544 main ()
20545 {
20546 if ((struct tm *) 0)
20547 return 0;
20548   ;
20549   return 0;
20550 }
20551 _ACEOF
20552 rm -f conftest.$ac_objext
20553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554   (eval $ac_compile) 2>&5
20555   ac_status=$?
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); } &&
20558          { ac_try='test -s conftest.$ac_objext'
20559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560   (eval $ac_try) 2>&5
20561   ac_status=$?
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); }; }; then
20564   ac_cv_header_time=yes
20565 else
20566   echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20568
20569 ac_cv_header_time=no
20570 fi
20571 rm -f conftest.$ac_objext conftest.$ac_ext
20572 fi
20573 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20574 echo "${ECHO_T}$ac_cv_header_time" >&6
20575 if test $ac_cv_header_time = yes; then
20576
20577 cat >>confdefs.h <<\_ACEOF
20578 #define TIME_WITH_SYS_TIME 1
20579 _ACEOF
20580
20581 fi
20582
20583 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20584 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20585 if test "${ac_cv_struct_tm+set}" = set; then
20586   echo $ECHO_N "(cached) $ECHO_C" >&6
20587 else
20588   cat >conftest.$ac_ext <<_ACEOF
20589 #line $LINENO "configure"
20590 /* confdefs.h.  */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h.  */
20595 #include <sys/types.h>
20596 #include <time.h>
20597
20598 int
20599 main ()
20600 {
20601 struct tm *tp; tp->tm_sec;
20602   ;
20603   return 0;
20604 }
20605 _ACEOF
20606 rm -f conftest.$ac_objext
20607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20608   (eval $ac_compile) 2>&5
20609   ac_status=$?
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); } &&
20612          { ac_try='test -s conftest.$ac_objext'
20613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614   (eval $ac_try) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; }; then
20618   ac_cv_struct_tm=time.h
20619 else
20620   echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20622
20623 ac_cv_struct_tm=sys/time.h
20624 fi
20625 rm -f conftest.$ac_objext conftest.$ac_ext
20626 fi
20627 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20628 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20629 if test $ac_cv_struct_tm = sys/time.h; then
20630
20631 cat >>confdefs.h <<\_ACEOF
20632 #define TM_IN_SYS_TIME 1
20633 _ACEOF
20634
20635 fi
20636
20637
20638 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20639 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20640 if test "${ac_cv_cxx_namespaces+set}" = set; then
20641   echo $ECHO_N "(cached) $ECHO_C" >&6
20642 else
20643
20644
20645  ac_ext=cc
20646 ac_cpp='$CXXCPP $CPPFLAGS'
20647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20650
20651  cat >conftest.$ac_ext <<_ACEOF
20652 #line $LINENO "configure"
20653 /* confdefs.h.  */
20654 _ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h.  */
20658 namespace Outer { namespace Inner { int i = 0; }}
20659 int
20660 main ()
20661 {
20662 using namespace Outer::Inner; return i;
20663   ;
20664   return 0;
20665 }
20666 _ACEOF
20667 rm -f conftest.$ac_objext
20668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20669   (eval $ac_compile) 2>&5
20670   ac_status=$?
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); } &&
20673          { ac_try='test -s conftest.$ac_objext'
20674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675   (eval $ac_try) 2>&5
20676   ac_status=$?
20677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678   (exit $ac_status); }; }; then
20679   ac_cv_cxx_namespaces=yes
20680 else
20681   echo "$as_me: failed program was:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20683
20684 ac_cv_cxx_namespaces=no
20685 fi
20686 rm -f conftest.$ac_objext conftest.$ac_ext
20687  ac_ext=c
20688 ac_cpp='$CPP $CPPFLAGS'
20689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20692
20693
20694 fi
20695 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20696 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20697 if test "$ac_cv_cxx_namespaces" = yes; then
20698
20699 cat >>confdefs.h <<\_ACEOF
20700 #define HAVE_NAMESPACES
20701 _ACEOF
20702
20703 fi
20704
20705 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20706 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20707 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20708   echo $ECHO_N "(cached) $ECHO_C" >&6
20709 else
20710
20711
20712
20713   ac_ext=cc
20714 ac_cpp='$CXXCPP $CPPFLAGS'
20715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20718
20719   cat >conftest.$ac_ext <<_ACEOF
20720 #line $LINENO "configure"
20721 /* confdefs.h.  */
20722 _ACEOF
20723 cat confdefs.h >>conftest.$ac_ext
20724 cat >>conftest.$ac_ext <<_ACEOF
20725 /* end confdefs.h.  */
20726 #include <ext/hash_map>
20727 #ifdef HAVE_NAMESPACES
20728 using namespace std;
20729 #endif
20730 int
20731 main ()
20732 {
20733 hash_map<int, int> t; return 0;
20734   ;
20735   return 0;
20736 }
20737 _ACEOF
20738 rm -f conftest.$ac_objext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20740   (eval $ac_compile) 2>&5
20741   ac_status=$?
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } &&
20744          { ac_try='test -s conftest.$ac_objext'
20745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746   (eval $ac_try) 2>&5
20747   ac_status=$?
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); }; }; then
20750   ac_cv_cxx_have_ext_hash_map=std
20751 else
20752   echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20754
20755 ac_cv_cxx_have_ext_hash_map=no
20756 fi
20757 rm -f conftest.$ac_objext conftest.$ac_ext
20758   cat >conftest.$ac_ext <<_ACEOF
20759 #line $LINENO "configure"
20760 /* confdefs.h.  */
20761 _ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h.  */
20765 #include <ext/hash_map>
20766 #ifdef HAVE_NAMESPACES
20767 using namespace __gnu_cxx;
20768 #endif
20769 int
20770 main ()
20771 {
20772 hash_map<int, int> t; return 0;
20773   ;
20774   return 0;
20775 }
20776 _ACEOF
20777 rm -f conftest.$ac_objext
20778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20779   (eval $ac_compile) 2>&5
20780   ac_status=$?
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); } &&
20783          { ac_try='test -s conftest.$ac_objext'
20784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785   (eval $ac_try) 2>&5
20786   ac_status=$?
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); }; }; then
20789   ac_cv_cxx_have_ext_hash_map=gnu
20790 else
20791   echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20793
20794 ac_cv_cxx_have_ext_hash_map=no
20795 fi
20796 rm -f conftest.$ac_objext conftest.$ac_ext
20797   ac_ext=c
20798 ac_cpp='$CPP $CPPFLAGS'
20799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20802
20803
20804 fi
20805 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20806 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20807 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20808
20809 cat >>confdefs.h <<\_ACEOF
20810 #define HAVE_STD_EXT_HASH_MAP
20811 _ACEOF
20812
20813 fi
20814 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20815
20816 cat >>confdefs.h <<\_ACEOF
20817 #define HAVE_GNU_EXT_HASH_MAP
20818 _ACEOF
20819
20820 fi
20821
20822 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20823 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20824 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20825   echo $ECHO_N "(cached) $ECHO_C" >&6
20826 else
20827
20828
20829
20830   ac_ext=cc
20831 ac_cpp='$CXXCPP $CPPFLAGS'
20832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20835
20836   cat >conftest.$ac_ext <<_ACEOF
20837 #line $LINENO "configure"
20838 /* confdefs.h.  */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h.  */
20843 #include <ext/hash_set>
20844 #ifdef HAVE_NAMESPACES
20845 using namespace std;
20846 #endif
20847 int
20848 main ()
20849 {
20850 hash_set<int> t; return 0;
20851   ;
20852   return 0;
20853 }
20854 _ACEOF
20855 rm -f conftest.$ac_objext
20856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20857   (eval $ac_compile) 2>&5
20858   ac_status=$?
20859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860   (exit $ac_status); } &&
20861          { ac_try='test -s conftest.$ac_objext'
20862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863   (eval $ac_try) 2>&5
20864   ac_status=$?
20865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866   (exit $ac_status); }; }; then
20867   ac_cv_cxx_have_ext_hash_set=std
20868 else
20869   echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20871
20872 ac_cv_cxx_have_ext_hash_set=no
20873 fi
20874 rm -f conftest.$ac_objext conftest.$ac_ext
20875   cat >conftest.$ac_ext <<_ACEOF
20876 #line $LINENO "configure"
20877 /* confdefs.h.  */
20878 _ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h.  */
20882 #include <ext/hash_set>
20883 #ifdef HAVE_NAMESPACES
20884 using namespace __gnu_cxx;
20885 #endif
20886 int
20887 main ()
20888 {
20889 hash_set<int> t; return 0;
20890   ;
20891   return 0;
20892 }
20893 _ACEOF
20894 rm -f conftest.$ac_objext
20895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20896   (eval $ac_compile) 2>&5
20897   ac_status=$?
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); } &&
20900          { ac_try='test -s conftest.$ac_objext'
20901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902   (eval $ac_try) 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; }; then
20906   ac_cv_cxx_have_ext_hash_set=gnu
20907 else
20908   echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911 ac_cv_cxx_have_ext_hash_set=no
20912 fi
20913 rm -f conftest.$ac_objext conftest.$ac_ext
20914   ac_ext=c
20915 ac_cpp='$CPP $CPPFLAGS'
20916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20919
20920
20921 fi
20922 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20923 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20924 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20925
20926 cat >>confdefs.h <<\_ACEOF
20927 #define HAVE_STD_EXT_HASH_SET
20928 _ACEOF
20929
20930 fi
20931 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20932
20933 cat >>confdefs.h <<\_ACEOF
20934 #define HAVE_GNU_EXT_HASH_SET
20935 _ACEOF
20936
20937 fi
20938
20939 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20940 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20941 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20942   echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944
20945
20946
20947   ac_ext=cc
20948 ac_cpp='$CXXCPP $CPPFLAGS'
20949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20952
20953   cat >conftest.$ac_ext <<_ACEOF
20954 #line $LINENO "configure"
20955 /* confdefs.h.  */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h.  */
20960 #include <ext/slist>
20961 #ifdef HAVE_NAMESPACES
20962 using namespace std;
20963 #endif
20964 int
20965 main ()
20966 {
20967 slist<int> s; return 0;
20968   ;
20969   return 0;
20970 }
20971 _ACEOF
20972 rm -f conftest.$ac_objext
20973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20974   (eval $ac_compile) 2>&5
20975   ac_status=$?
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); } &&
20978          { ac_try='test -s conftest.$ac_objext'
20979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980   (eval $ac_try) 2>&5
20981   ac_status=$?
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); }; }; then
20984   ac_cv_cxx_have_ext_slist=std
20985 else
20986   echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20988
20989 ac_cv_cxx_have_ext_slist=no
20990 fi
20991 rm -f conftest.$ac_objext conftest.$ac_ext
20992   cat >conftest.$ac_ext <<_ACEOF
20993 #line $LINENO "configure"
20994 /* confdefs.h.  */
20995 _ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h.  */
20999 #include <ext/slist>
21000 #ifdef HAVE_NAMESPACES
21001 using namespace __gnu_cxx;
21002 #endif
21003 int
21004 main ()
21005 {
21006 slist<int> s; return 0;
21007   ;
21008   return 0;
21009 }
21010 _ACEOF
21011 rm -f conftest.$ac_objext
21012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21013   (eval $ac_compile) 2>&5
21014   ac_status=$?
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); } &&
21017          { ac_try='test -s conftest.$ac_objext'
21018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019   (eval $ac_try) 2>&5
21020   ac_status=$?
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); }; }; then
21023   ac_cv_cxx_have_ext_slist=gnu
21024 else
21025   echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21027
21028 ac_cv_cxx_have_ext_slist=no
21029 fi
21030 rm -f conftest.$ac_objext conftest.$ac_ext
21031
21032   ac_ext=c
21033 ac_cpp='$CPP $CPPFLAGS'
21034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21037
21038
21039 fi
21040 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21041 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21042 if test "$ac_cv_cxx_have_ext_slist" = std; then
21043
21044 cat >>confdefs.h <<\_ACEOF
21045 #define HAVE_EXT_SLIST std
21046 _ACEOF
21047
21048 fi
21049 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21050
21051 cat >>confdefs.h <<\_ACEOF
21052 #define HAVE_EXT_SLIST gnu
21053 _ACEOF
21054
21055 fi
21056
21057 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21058 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21059 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21060   echo $ECHO_N "(cached) $ECHO_C" >&6
21061 else
21062
21063
21064
21065   ac_ext=cc
21066 ac_cpp='$CXXCPP $CPPFLAGS'
21067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21070
21071   cat >conftest.$ac_ext <<_ACEOF
21072 #line $LINENO "configure"
21073 /* confdefs.h.  */
21074 _ACEOF
21075 cat confdefs.h >>conftest.$ac_ext
21076 cat >>conftest.$ac_ext <<_ACEOF
21077 /* end confdefs.h.  */
21078 #include <iterator>
21079 #ifdef HAVE_NAMESPACES
21080 using namespace std;
21081 #endif
21082 int
21083 main ()
21084 {
21085 iterator<int,int,int> t; return 0;
21086   ;
21087   return 0;
21088 }
21089 _ACEOF
21090 rm -f conftest.$ac_objext
21091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21092   (eval $ac_compile) 2>&5
21093   ac_status=$?
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); } &&
21096          { ac_try='test -s conftest.$ac_objext'
21097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098   (eval $ac_try) 2>&5
21099   ac_status=$?
21100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); }; }; then
21102   ac_cv_cxx_have_std_iterator=yes
21103 else
21104   echo "$as_me: failed program was:" >&5
21105 sed 's/^/| /' conftest.$ac_ext >&5
21106
21107 ac_cv_cxx_have_std_iterator=no
21108 fi
21109 rm -f conftest.$ac_objext conftest.$ac_ext
21110   ac_ext=c
21111 ac_cpp='$CPP $CPPFLAGS'
21112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21115
21116
21117 fi
21118 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21119 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21120 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21121
21122 cat >>confdefs.h <<\_ACEOF
21123 #define HAVE_STD_ITERATOR
21124 _ACEOF
21125
21126 fi
21127
21128 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21129 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21130 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21131   echo $ECHO_N "(cached) $ECHO_C" >&6
21132 else
21133
21134
21135
21136   ac_ext=cc
21137 ac_cpp='$CXXCPP $CPPFLAGS'
21138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21141
21142   cat >conftest.$ac_ext <<_ACEOF
21143 #line $LINENO "configure"
21144 /* confdefs.h.  */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h.  */
21149 #include <iterator>
21150 #ifdef HAVE_NAMESPACES
21151 using namespace std;
21152 #endif
21153 int
21154 main ()
21155 {
21156 bidirectional_iterator<int,int> t; return 0;
21157   ;
21158   return 0;
21159 }
21160 _ACEOF
21161 rm -f conftest.$ac_objext
21162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21163   (eval $ac_compile) 2>&5
21164   ac_status=$?
21165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166   (exit $ac_status); } &&
21167          { ac_try='test -s conftest.$ac_objext'
21168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169   (eval $ac_try) 2>&5
21170   ac_status=$?
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); }; }; then
21173   ac_cv_cxx_have_bi_iterator=yes
21174 else
21175   echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.$ac_ext >&5
21177
21178 ac_cv_cxx_have_bi_iterator=no
21179 fi
21180 rm -f conftest.$ac_objext conftest.$ac_ext
21181   ac_ext=c
21182 ac_cpp='$CPP $CPPFLAGS'
21183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21186
21187
21188 fi
21189 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21190 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21191 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21192
21193 cat >>confdefs.h <<\_ACEOF
21194 #define HAVE_BI_ITERATOR
21195 _ACEOF
21196
21197 fi
21198
21199 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21200 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21201 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21202   echo $ECHO_N "(cached) $ECHO_C" >&6
21203 else
21204
21205
21206
21207   ac_ext=cc
21208 ac_cpp='$CXXCPP $CPPFLAGS'
21209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21212
21213   cat >conftest.$ac_ext <<_ACEOF
21214 #line $LINENO "configure"
21215 /* confdefs.h.  */
21216 _ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h.  */
21220 #include <iterator>
21221 #ifdef HAVE_NAMESPACES
21222 using namespace std;
21223 #endif
21224 int
21225 main ()
21226 {
21227 forward_iterator<int,int> t; return 0;
21228   ;
21229   return 0;
21230 }
21231 _ACEOF
21232 rm -f conftest.$ac_objext
21233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21234   (eval $ac_compile) 2>&5
21235   ac_status=$?
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); } &&
21238          { ac_try='test -s conftest.$ac_objext'
21239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240   (eval $ac_try) 2>&5
21241   ac_status=$?
21242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243   (exit $ac_status); }; }; then
21244   ac_cv_cxx_have_fwd_iterator=yes
21245 else
21246   echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21248
21249 ac_cv_cxx_have_fwd_iterator=no
21250 fi
21251 rm -f conftest.$ac_objext conftest.$ac_ext
21252   ac_ext=c
21253 ac_cpp='$CPP $CPPFLAGS'
21254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21257
21258
21259 fi
21260 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21261 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21262 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21263
21264 cat >>confdefs.h <<\_ACEOF
21265 #define HAVE_FWD_ITERATOR
21266 _ACEOF
21267
21268 fi
21269
21270
21271 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21272 # for constant arguments.  Useless!
21273 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21274 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21275 if test "${ac_cv_working_alloca_h+set}" = set; then
21276   echo $ECHO_N "(cached) $ECHO_C" >&6
21277 else
21278   cat >conftest.$ac_ext <<_ACEOF
21279 #line $LINENO "configure"
21280 /* confdefs.h.  */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h.  */
21285 #include <alloca.h>
21286 int
21287 main ()
21288 {
21289 char *p = (char *) alloca (2 * sizeof (int));
21290   ;
21291   return 0;
21292 }
21293 _ACEOF
21294 rm -f conftest.$ac_objext conftest$ac_exeext
21295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21296   (eval $ac_link) 2>&5
21297   ac_status=$?
21298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299   (exit $ac_status); } &&
21300          { ac_try='test -s conftest$ac_exeext'
21301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302   (eval $ac_try) 2>&5
21303   ac_status=$?
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); }; }; then
21306   ac_cv_working_alloca_h=yes
21307 else
21308   echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21310
21311 ac_cv_working_alloca_h=no
21312 fi
21313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21314 fi
21315 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21316 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21317 if test $ac_cv_working_alloca_h = yes; then
21318
21319 cat >>confdefs.h <<\_ACEOF
21320 #define HAVE_ALLOCA_H 1
21321 _ACEOF
21322
21323 fi
21324
21325 echo "$as_me:$LINENO: checking for alloca" >&5
21326 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21327 if test "${ac_cv_func_alloca_works+set}" = set; then
21328   echo $ECHO_N "(cached) $ECHO_C" >&6
21329 else
21330   cat >conftest.$ac_ext <<_ACEOF
21331 #line $LINENO "configure"
21332 /* confdefs.h.  */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h.  */
21337 #ifdef __GNUC__
21338 # define alloca __builtin_alloca
21339 #else
21340 # ifdef _MSC_VER
21341 #  include <malloc.h>
21342 #  define alloca _alloca
21343 # else
21344 #  if HAVE_ALLOCA_H
21345 #   include <alloca.h>
21346 #  else
21347 #   ifdef _AIX
21348  #pragma alloca
21349 #   else
21350 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21351 char *alloca ();
21352 #    endif
21353 #   endif
21354 #  endif
21355 # endif
21356 #endif
21357
21358 int
21359 main ()
21360 {
21361 char *p = (char *) alloca (1);
21362   ;
21363   return 0;
21364 }
21365 _ACEOF
21366 rm -f conftest.$ac_objext conftest$ac_exeext
21367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21368   (eval $ac_link) 2>&5
21369   ac_status=$?
21370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371   (exit $ac_status); } &&
21372          { ac_try='test -s conftest$ac_exeext'
21373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374   (eval $ac_try) 2>&5
21375   ac_status=$?
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); }; }; then
21378   ac_cv_func_alloca_works=yes
21379 else
21380   echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21382
21383 ac_cv_func_alloca_works=no
21384 fi
21385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21386 fi
21387 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21388 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21389
21390 if test $ac_cv_func_alloca_works = yes; then
21391
21392 cat >>confdefs.h <<\_ACEOF
21393 #define HAVE_ALLOCA 1
21394 _ACEOF
21395
21396 else
21397   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21398 # that cause trouble.  Some versions do not even contain alloca or
21399 # contain a buggy version.  If you still want to use their alloca,
21400 # use ar to extract alloca.o from them instead of compiling alloca.c.
21401
21402 ALLOCA=alloca.$ac_objext
21403
21404 cat >>confdefs.h <<\_ACEOF
21405 #define C_ALLOCA 1
21406 _ACEOF
21407
21408
21409 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21410 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21411 if test "${ac_cv_os_cray+set}" = set; then
21412   echo $ECHO_N "(cached) $ECHO_C" >&6
21413 else
21414   cat >conftest.$ac_ext <<_ACEOF
21415 #line $LINENO "configure"
21416 /* confdefs.h.  */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h.  */
21421 #if defined(CRAY) && ! defined(CRAY2)
21422 webecray
21423 #else
21424 wenotbecray
21425 #endif
21426
21427 _ACEOF
21428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21429   $EGREP "webecray" >/dev/null 2>&1; then
21430   ac_cv_os_cray=yes
21431 else
21432   ac_cv_os_cray=no
21433 fi
21434 rm -f conftest*
21435
21436 fi
21437 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21438 echo "${ECHO_T}$ac_cv_os_cray" >&6
21439 if test $ac_cv_os_cray = yes; then
21440   for ac_func in _getb67 GETB67 getb67; do
21441     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21442 echo "$as_me:$LINENO: checking for $ac_func" >&5
21443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21444 if eval "test \"\${$as_ac_var+set}\" = set"; then
21445   echo $ECHO_N "(cached) $ECHO_C" >&6
21446 else
21447   cat >conftest.$ac_ext <<_ACEOF
21448 #line $LINENO "configure"
21449 /* confdefs.h.  */
21450 _ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h.  */
21454 /* System header to define __stub macros and hopefully few prototypes,
21455     which can conflict with char $ac_func (); below.
21456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21457     <limits.h> exists even on freestanding compilers.  */
21458 #ifdef __STDC__
21459 # include <limits.h>
21460 #else
21461 # include <assert.h>
21462 #endif
21463 /* Override any gcc2 internal prototype to avoid an error.  */
21464 #ifdef __cplusplus
21465 extern "C"
21466 {
21467 #endif
21468 /* We use char because int might match the return type of a gcc2
21469    builtin and then its argument prototype would still apply.  */
21470 char $ac_func ();
21471 /* The GNU C library defines this for functions which it implements
21472     to always fail with ENOSYS.  Some functions are actually named
21473     something starting with __ and the normal name is an alias.  */
21474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21475 choke me
21476 #else
21477 char (*f) () = $ac_func;
21478 #endif
21479 #ifdef __cplusplus
21480 }
21481 #endif
21482
21483 int
21484 main ()
21485 {
21486 return f != $ac_func;
21487   ;
21488   return 0;
21489 }
21490 _ACEOF
21491 rm -f conftest.$ac_objext conftest$ac_exeext
21492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21493   (eval $ac_link) 2>&5
21494   ac_status=$?
21495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496   (exit $ac_status); } &&
21497          { ac_try='test -s conftest$ac_exeext'
21498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499   (eval $ac_try) 2>&5
21500   ac_status=$?
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); }; }; then
21503   eval "$as_ac_var=yes"
21504 else
21505   echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21507
21508 eval "$as_ac_var=no"
21509 fi
21510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21511 fi
21512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21514 if test `eval echo '${'$as_ac_var'}'` = yes; then
21515
21516 cat >>confdefs.h <<_ACEOF
21517 #define CRAY_STACKSEG_END $ac_func
21518 _ACEOF
21519
21520     break
21521 fi
21522
21523   done
21524 fi
21525
21526 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21527 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21528 if test "${ac_cv_c_stack_direction+set}" = set; then
21529   echo $ECHO_N "(cached) $ECHO_C" >&6
21530 else
21531   if test "$cross_compiling" = yes; then
21532   ac_cv_c_stack_direction=0
21533 else
21534   cat >conftest.$ac_ext <<_ACEOF
21535 #line $LINENO "configure"
21536 /* confdefs.h.  */
21537 _ACEOF
21538 cat confdefs.h >>conftest.$ac_ext
21539 cat >>conftest.$ac_ext <<_ACEOF
21540 /* end confdefs.h.  */
21541 int
21542 find_stack_direction ()
21543 {
21544   static char *addr = 0;
21545   auto char dummy;
21546   if (addr == 0)
21547     {
21548       addr = &dummy;
21549       return find_stack_direction ();
21550     }
21551   else
21552     return (&dummy > addr) ? 1 : -1;
21553 }
21554
21555 int
21556 main ()
21557 {
21558   exit (find_stack_direction () < 0);
21559 }
21560 _ACEOF
21561 rm -f conftest$ac_exeext
21562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21563   (eval $ac_link) 2>&5
21564   ac_status=$?
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568   (eval $ac_try) 2>&5
21569   ac_status=$?
21570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571   (exit $ac_status); }; }; then
21572   ac_cv_c_stack_direction=1
21573 else
21574   echo "$as_me: program exited with status $ac_status" >&5
21575 echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21577
21578 ( exit $ac_status )
21579 ac_cv_c_stack_direction=-1
21580 fi
21581 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21582 fi
21583 fi
21584 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21585 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21586
21587 cat >>confdefs.h <<_ACEOF
21588 #define STACK_DIRECTION $ac_cv_c_stack_direction
21589 _ACEOF
21590
21591
21592 fi
21593
21594 if test $ac_cv_c_compiler_gnu = yes; then
21595     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21596 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21597 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21598   echo $ECHO_N "(cached) $ECHO_C" >&6
21599 else
21600     ac_pattern="Autoconf.*'x'"
21601   cat >conftest.$ac_ext <<_ACEOF
21602 #line $LINENO "configure"
21603 /* confdefs.h.  */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h.  */
21608 #include <sgtty.h>
21609 Autoconf TIOCGETP
21610 _ACEOF
21611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21612   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21613   ac_cv_prog_gcc_traditional=yes
21614 else
21615   ac_cv_prog_gcc_traditional=no
21616 fi
21617 rm -f conftest*
21618
21619
21620   if test $ac_cv_prog_gcc_traditional = no; then
21621     cat >conftest.$ac_ext <<_ACEOF
21622 #line $LINENO "configure"
21623 /* confdefs.h.  */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h.  */
21628 #include <termio.h>
21629 Autoconf TCGETA
21630 _ACEOF
21631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21632   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21633   ac_cv_prog_gcc_traditional=yes
21634 fi
21635 rm -f conftest*
21636
21637   fi
21638 fi
21639 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21640 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21641   if test $ac_cv_prog_gcc_traditional = yes; then
21642     CC="$CC -traditional"
21643   fi
21644 fi
21645
21646 echo "$as_me:$LINENO: checking for working memcmp" >&5
21647 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21648 if test "${ac_cv_func_memcmp_working+set}" = set; then
21649   echo $ECHO_N "(cached) $ECHO_C" >&6
21650 else
21651   if test "$cross_compiling" = yes; then
21652   ac_cv_func_memcmp_working=no
21653 else
21654   cat >conftest.$ac_ext <<_ACEOF
21655 #line $LINENO "configure"
21656 /* confdefs.h.  */
21657 _ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h.  */
21661
21662 int
21663 main ()
21664 {
21665
21666   /* Some versions of memcmp are not 8-bit clean.  */
21667   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21668   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21669     exit (1);
21670
21671   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21672      or more and with at least one buffer not starting on a 4-byte boundary.
21673      William Lewis provided this test program.   */
21674   {
21675     char foo[21];
21676     char bar[21];
21677     int i;
21678     for (i = 0; i < 4; i++)
21679       {
21680         char *a = foo + i;
21681         char *b = bar + i;
21682         strcpy (a, "--------01111111");
21683         strcpy (b, "--------10000000");
21684         if (memcmp (a, b, 16) >= 0)
21685           exit (1);
21686       }
21687     exit (0);
21688   }
21689
21690   ;
21691   return 0;
21692 }
21693 _ACEOF
21694 rm -f conftest$ac_exeext
21695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21696   (eval $ac_link) 2>&5
21697   ac_status=$?
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701   (eval $ac_try) 2>&5
21702   ac_status=$?
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); }; }; then
21705   ac_cv_func_memcmp_working=yes
21706 else
21707   echo "$as_me: program exited with status $ac_status" >&5
21708 echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21710
21711 ( exit $ac_status )
21712 ac_cv_func_memcmp_working=no
21713 fi
21714 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21715 fi
21716 fi
21717 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21718 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21719 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21720
21721
21722
21723 for ac_header in stdlib.h unistd.h
21724 do
21725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21727   echo "$as_me:$LINENO: checking for $ac_header" >&5
21728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21730   echo $ECHO_N "(cached) $ECHO_C" >&6
21731 fi
21732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21734 else
21735   # Is the header compilable?
21736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21738 cat >conftest.$ac_ext <<_ACEOF
21739 #line $LINENO "configure"
21740 /* confdefs.h.  */
21741 _ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h.  */
21745 $ac_includes_default
21746 #include <$ac_header>
21747 _ACEOF
21748 rm -f conftest.$ac_objext
21749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21750   (eval $ac_compile) 2>&5
21751   ac_status=$?
21752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753   (exit $ac_status); } &&
21754          { ac_try='test -s conftest.$ac_objext'
21755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756   (eval $ac_try) 2>&5
21757   ac_status=$?
21758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759   (exit $ac_status); }; }; then
21760   ac_header_compiler=yes
21761 else
21762   echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21764
21765 ac_header_compiler=no
21766 fi
21767 rm -f conftest.$ac_objext conftest.$ac_ext
21768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21769 echo "${ECHO_T}$ac_header_compiler" >&6
21770
21771 # Is the header present?
21772 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21774 cat >conftest.$ac_ext <<_ACEOF
21775 #line $LINENO "configure"
21776 /* confdefs.h.  */
21777 _ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h.  */
21781 #include <$ac_header>
21782 _ACEOF
21783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21784   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21785   ac_status=$?
21786   grep -v '^ *+' conftest.er1 >conftest.err
21787   rm -f conftest.er1
21788   cat conftest.err >&5
21789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); } >/dev/null; then
21791   if test -s conftest.err; then
21792     ac_cpp_err=$ac_c_preproc_warn_flag
21793   else
21794     ac_cpp_err=
21795   fi
21796 else
21797   ac_cpp_err=yes
21798 fi
21799 if test -z "$ac_cpp_err"; then
21800   ac_header_preproc=yes
21801 else
21802   echo "$as_me: failed program was:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21804
21805   ac_header_preproc=no
21806 fi
21807 rm -f conftest.err conftest.$ac_ext
21808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21809 echo "${ECHO_T}$ac_header_preproc" >&6
21810
21811 # So?  What about this header?
21812 case $ac_header_compiler:$ac_header_preproc in
21813   yes:no )
21814     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21818     (
21819       cat <<\_ASBOX
21820 ## ------------------------------------ ##
21821 ## Report this to bug-autoconf@gnu.org. ##
21822 ## ------------------------------------ ##
21823 _ASBOX
21824     ) |
21825       sed "s/^/$as_me: WARNING:     /" >&2
21826     ;;
21827   no:yes )
21828     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21830     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21834     (
21835       cat <<\_ASBOX
21836 ## ------------------------------------ ##
21837 ## Report this to bug-autoconf@gnu.org. ##
21838 ## ------------------------------------ ##
21839 _ASBOX
21840     ) |
21841       sed "s/^/$as_me: WARNING:     /" >&2
21842     ;;
21843 esac
21844 echo "$as_me:$LINENO: checking for $ac_header" >&5
21845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21847   echo $ECHO_N "(cached) $ECHO_C" >&6
21848 else
21849   eval "$as_ac_Header=$ac_header_preproc"
21850 fi
21851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21853
21854 fi
21855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21856   cat >>confdefs.h <<_ACEOF
21857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21858 _ACEOF
21859
21860 fi
21861
21862 done
21863
21864
21865 for ac_func in getpagesize
21866 do
21867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21868 echo "$as_me:$LINENO: checking for $ac_func" >&5
21869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21870 if eval "test \"\${$as_ac_var+set}\" = set"; then
21871   echo $ECHO_N "(cached) $ECHO_C" >&6
21872 else
21873   cat >conftest.$ac_ext <<_ACEOF
21874 #line $LINENO "configure"
21875 /* confdefs.h.  */
21876 _ACEOF
21877 cat confdefs.h >>conftest.$ac_ext
21878 cat >>conftest.$ac_ext <<_ACEOF
21879 /* end confdefs.h.  */
21880 /* System header to define __stub macros and hopefully few prototypes,
21881     which can conflict with char $ac_func (); below.
21882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21883     <limits.h> exists even on freestanding compilers.  */
21884 #ifdef __STDC__
21885 # include <limits.h>
21886 #else
21887 # include <assert.h>
21888 #endif
21889 /* Override any gcc2 internal prototype to avoid an error.  */
21890 #ifdef __cplusplus
21891 extern "C"
21892 {
21893 #endif
21894 /* We use char because int might match the return type of a gcc2
21895    builtin and then its argument prototype would still apply.  */
21896 char $ac_func ();
21897 /* The GNU C library defines this for functions which it implements
21898     to always fail with ENOSYS.  Some functions are actually named
21899     something starting with __ and the normal name is an alias.  */
21900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21901 choke me
21902 #else
21903 char (*f) () = $ac_func;
21904 #endif
21905 #ifdef __cplusplus
21906 }
21907 #endif
21908
21909 int
21910 main ()
21911 {
21912 return f != $ac_func;
21913   ;
21914   return 0;
21915 }
21916 _ACEOF
21917 rm -f conftest.$ac_objext conftest$ac_exeext
21918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21919   (eval $ac_link) 2>&5
21920   ac_status=$?
21921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922   (exit $ac_status); } &&
21923          { ac_try='test -s conftest$ac_exeext'
21924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925   (eval $ac_try) 2>&5
21926   ac_status=$?
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); }; }; then
21929   eval "$as_ac_var=yes"
21930 else
21931   echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21933
21934 eval "$as_ac_var=no"
21935 fi
21936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21937 fi
21938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21940 if test `eval echo '${'$as_ac_var'}'` = yes; then
21941   cat >>confdefs.h <<_ACEOF
21942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21943 _ACEOF
21944
21945 fi
21946 done
21947
21948 echo "$as_me:$LINENO: checking for working mmap" >&5
21949 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21950 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21951   echo $ECHO_N "(cached) $ECHO_C" >&6
21952 else
21953   if test "$cross_compiling" = yes; then
21954   ac_cv_func_mmap_fixed_mapped=no
21955 else
21956   cat >conftest.$ac_ext <<_ACEOF
21957 #line $LINENO "configure"
21958 /* confdefs.h.  */
21959 _ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h.  */
21963 $ac_includes_default
21964 /* malloc might have been renamed as rpl_malloc. */
21965 #undef malloc
21966
21967 /* Thanks to Mike Haertel and Jim Avera for this test.
21968    Here is a matrix of mmap possibilities:
21969         mmap private not fixed
21970         mmap private fixed at somewhere currently unmapped
21971         mmap private fixed at somewhere already mapped
21972         mmap shared not fixed
21973         mmap shared fixed at somewhere currently unmapped
21974         mmap shared fixed at somewhere already mapped
21975    For private mappings, we should verify that changes cannot be read()
21976    back from the file, nor mmap's back from the file at a different
21977    address.  (There have been systems where private was not correctly
21978    implemented like the infamous i386 svr4.0, and systems where the
21979    VM page cache was not coherent with the file system buffer cache
21980    like early versions of FreeBSD and possibly contemporary NetBSD.)
21981    For shared mappings, we should conversely verify that changes get
21982    propagated back to all the places they're supposed to be.
21983
21984    Grep wants private fixed already mapped.
21985    The main things grep needs to know about mmap are:
21986    * does it exist and is it safe to write into the mmap'd area
21987    * how to use it (BSD variants)  */
21988
21989 #include <fcntl.h>
21990 #include <sys/mman.h>
21991
21992 #if !STDC_HEADERS && !HAVE_STDLIB_H
21993 char *malloc ();
21994 #endif
21995
21996 /* This mess was copied from the GNU getpagesize.h.  */
21997 #if !HAVE_GETPAGESIZE
21998 /* Assume that all systems that can run configure have sys/param.h.  */
21999 # if !HAVE_SYS_PARAM_H
22000 #  define HAVE_SYS_PARAM_H 1
22001 # endif
22002
22003 # ifdef _SC_PAGESIZE
22004 #  define getpagesize() sysconf(_SC_PAGESIZE)
22005 # else /* no _SC_PAGESIZE */
22006 #  if HAVE_SYS_PARAM_H
22007 #   include <sys/param.h>
22008 #   ifdef EXEC_PAGESIZE
22009 #    define getpagesize() EXEC_PAGESIZE
22010 #   else /* no EXEC_PAGESIZE */
22011 #    ifdef NBPG
22012 #     define getpagesize() NBPG * CLSIZE
22013 #     ifndef CLSIZE
22014 #      define CLSIZE 1
22015 #     endif /* no CLSIZE */
22016 #    else /* no NBPG */
22017 #     ifdef NBPC
22018 #      define getpagesize() NBPC
22019 #     else /* no NBPC */
22020 #      ifdef PAGESIZE
22021 #       define getpagesize() PAGESIZE
22022 #      endif /* PAGESIZE */
22023 #     endif /* no NBPC */
22024 #    endif /* no NBPG */
22025 #   endif /* no EXEC_PAGESIZE */
22026 #  else /* no HAVE_SYS_PARAM_H */
22027 #   define getpagesize() 8192   /* punt totally */
22028 #  endif /* no HAVE_SYS_PARAM_H */
22029 # endif /* no _SC_PAGESIZE */
22030
22031 #endif /* no HAVE_GETPAGESIZE */
22032
22033 int
22034 main ()
22035 {
22036   char *data, *data2, *data3;
22037   int i, pagesize;
22038   int fd;
22039
22040   pagesize = getpagesize ();
22041
22042   /* First, make a file with some known garbage in it. */
22043   data = (char *) malloc (pagesize);
22044   if (!data)
22045     exit (1);
22046   for (i = 0; i < pagesize; ++i)
22047     *(data + i) = rand ();
22048   umask (0);
22049   fd = creat ("conftest.mmap", 0600);
22050   if (fd < 0)
22051     exit (1);
22052   if (write (fd, data, pagesize) != pagesize)
22053     exit (1);
22054   close (fd);
22055
22056   /* Next, try to mmap the file at a fixed address which already has
22057      something else allocated at it.  If we can, also make sure that
22058      we see the same garbage.  */
22059   fd = open ("conftest.mmap", O_RDWR);
22060   if (fd < 0)
22061     exit (1);
22062   data2 = (char *) malloc (2 * pagesize);
22063   if (!data2)
22064     exit (1);
22065   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22066   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22067                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22068     exit (1);
22069   for (i = 0; i < pagesize; ++i)
22070     if (*(data + i) != *(data2 + i))
22071       exit (1);
22072
22073   /* Finally, make sure that changes to the mapped area do not
22074      percolate back to the file as seen by read().  (This is a bug on
22075      some variants of i386 svr4.0.)  */
22076   for (i = 0; i < pagesize; ++i)
22077     *(data2 + i) = *(data2 + i) + 1;
22078   data3 = (char *) malloc (pagesize);
22079   if (!data3)
22080     exit (1);
22081   if (read (fd, data3, pagesize) != pagesize)
22082     exit (1);
22083   for (i = 0; i < pagesize; ++i)
22084     if (*(data + i) != *(data3 + i))
22085       exit (1);
22086   close (fd);
22087   exit (0);
22088 }
22089 _ACEOF
22090 rm -f conftest$ac_exeext
22091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22092   (eval $ac_link) 2>&5
22093   ac_status=$?
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097   (eval $ac_try) 2>&5
22098   ac_status=$?
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); }; }; then
22101   ac_cv_func_mmap_fixed_mapped=yes
22102 else
22103   echo "$as_me: program exited with status $ac_status" >&5
22104 echo "$as_me: failed program was:" >&5
22105 sed 's/^/| /' conftest.$ac_ext >&5
22106
22107 ( exit $ac_status )
22108 ac_cv_func_mmap_fixed_mapped=no
22109 fi
22110 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22111 fi
22112 fi
22113 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22114 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22115 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22116
22117 cat >>confdefs.h <<\_ACEOF
22118 #define HAVE_MMAP 1
22119 _ACEOF
22120
22121 fi
22122 rm -f conftest.mmap
22123
22124 echo "$as_me:$LINENO: checking for mmap of files" >&5
22125 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22126 if test "${ac_cv_func_mmap_file+set}" = set; then
22127   echo $ECHO_N "(cached) $ECHO_C" >&6
22128 else
22129
22130
22131   ac_ext=c
22132 ac_cpp='$CPP $CPPFLAGS'
22133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22136
22137   if test "$cross_compiling" = yes; then
22138   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22139 See \`config.log' for more details." >&5
22140 echo "$as_me: error: cannot run test program while cross compiling
22141 See \`config.log' for more details." >&2;}
22142    { (exit 1); exit 1; }; }
22143 else
22144   cat >conftest.$ac_ext <<_ACEOF
22145 #line $LINENO "configure"
22146 /* confdefs.h.  */
22147 _ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h.  */
22151
22152 #ifdef HAVE_SYS_MMAN_H
22153 #include <sys/mman.h>
22154 #endif
22155
22156 #ifdef HAVE_SYS_TYPES_H
22157 #include <sys/types.h>
22158 #endif
22159
22160 #ifdef HAVE_FCNTL_H
22161 #include <fcntl.h>
22162 #endif
22163
22164   int fd;
22165   int main () {
22166   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22167 _ACEOF
22168 rm -f conftest$ac_exeext
22169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22170   (eval $ac_link) 2>&5
22171   ac_status=$?
22172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22175   (eval $ac_try) 2>&5
22176   ac_status=$?
22177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); }; }; then
22179   ac_cv_func_mmap_file=yes
22180 else
22181   echo "$as_me: program exited with status $ac_status" >&5
22182 echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22184
22185 ( exit $ac_status )
22186 ac_cv_func_mmap_file=no
22187 fi
22188 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22189 fi
22190   ac_ext=c
22191 ac_cpp='$CPP $CPPFLAGS'
22192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22195
22196
22197 fi
22198 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22199 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22200 if test "$ac_cv_func_mmap_file" = yes; then
22201    cat >>confdefs.h <<\_ACEOF
22202 #define HAVE_MMAP_FILE 1
22203 _ACEOF
22204
22205    MMAP_FILE=yes
22206
22207 fi
22208
22209 if test ${ac_cv_func_mmap_file} = "no"
22210 then
22211         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22212 echo "$as_me: error: mmap() of files required but not found" >&2;}
22213    { (exit 1); exit 1; }; }
22214 fi
22215 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22216 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22217 if test "${ac_cv_header_mmap_anon+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   cat >conftest.$ac_ext <<_ACEOF
22229 #line $LINENO "configure"
22230 /* confdefs.h.  */
22231 _ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h.  */
22235 #include <sys/mman.h>
22236   #include <unistd.h>
22237   #include <fcntl.h>
22238 int
22239 main ()
22240 {
22241 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22242   ;
22243   return 0;
22244 }
22245 _ACEOF
22246 rm -f conftest.$ac_objext
22247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22248   (eval $ac_compile) 2>&5
22249   ac_status=$?
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); } &&
22252          { ac_try='test -s conftest.$ac_objext'
22253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254   (eval $ac_try) 2>&5
22255   ac_status=$?
22256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257   (exit $ac_status); }; }; then
22258   ac_cv_header_mmap_anon=yes
22259 else
22260   echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22262
22263 ac_cv_header_mmap_anon=no
22264 fi
22265 rm -f conftest.$ac_objext conftest.$ac_ext
22266   ac_ext=c
22267 ac_cpp='$CPP $CPPFLAGS'
22268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22271
22272
22273 fi
22274 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22275 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22276 if test "$ac_cv_header_mmap_anon" = yes; then
22277    cat >>confdefs.h <<\_ACEOF
22278 #define HAVE_MMAP_ANONYMOUS 1
22279 _ACEOF
22280
22281 fi
22282
22283 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22284 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22285 if test "${ac_cv_type_signal+set}" = set; then
22286   echo $ECHO_N "(cached) $ECHO_C" >&6
22287 else
22288   cat >conftest.$ac_ext <<_ACEOF
22289 #line $LINENO "configure"
22290 /* confdefs.h.  */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h.  */
22295 #include <sys/types.h>
22296 #include <signal.h>
22297 #ifdef signal
22298 # undef signal
22299 #endif
22300 #ifdef __cplusplus
22301 extern "C" void (*signal (int, void (*)(int)))(int);
22302 #else
22303 void (*signal ()) ();
22304 #endif
22305
22306 int
22307 main ()
22308 {
22309 int i;
22310   ;
22311   return 0;
22312 }
22313 _ACEOF
22314 rm -f conftest.$ac_objext
22315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22316   (eval $ac_compile) 2>&5
22317   ac_status=$?
22318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319   (exit $ac_status); } &&
22320          { ac_try='test -s conftest.$ac_objext'
22321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22322   (eval $ac_try) 2>&5
22323   ac_status=$?
22324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325   (exit $ac_status); }; }; then
22326   ac_cv_type_signal=void
22327 else
22328   echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22330
22331 ac_cv_type_signal=int
22332 fi
22333 rm -f conftest.$ac_objext conftest.$ac_ext
22334 fi
22335 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22336 echo "${ECHO_T}$ac_cv_type_signal" >&6
22337
22338 cat >>confdefs.h <<_ACEOF
22339 #define RETSIGTYPE $ac_cv_type_signal
22340 _ACEOF
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22353 do
22354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22355 echo "$as_me:$LINENO: checking for $ac_func" >&5
22356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22357 if eval "test \"\${$as_ac_var+set}\" = set"; then
22358   echo $ECHO_N "(cached) $ECHO_C" >&6
22359 else
22360   cat >conftest.$ac_ext <<_ACEOF
22361 #line $LINENO "configure"
22362 /* confdefs.h.  */
22363 _ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h.  */
22367 /* System header to define __stub macros and hopefully few prototypes,
22368     which can conflict with char $ac_func (); below.
22369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22370     <limits.h> exists even on freestanding compilers.  */
22371 #ifdef __STDC__
22372 # include <limits.h>
22373 #else
22374 # include <assert.h>
22375 #endif
22376 /* Override any gcc2 internal prototype to avoid an error.  */
22377 #ifdef __cplusplus
22378 extern "C"
22379 {
22380 #endif
22381 /* We use char because int might match the return type of a gcc2
22382    builtin and then its argument prototype would still apply.  */
22383 char $ac_func ();
22384 /* The GNU C library defines this for functions which it implements
22385     to always fail with ENOSYS.  Some functions are actually named
22386     something starting with __ and the normal name is an alias.  */
22387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22388 choke me
22389 #else
22390 char (*f) () = $ac_func;
22391 #endif
22392 #ifdef __cplusplus
22393 }
22394 #endif
22395
22396 int
22397 main ()
22398 {
22399 return f != $ac_func;
22400   ;
22401   return 0;
22402 }
22403 _ACEOF
22404 rm -f conftest.$ac_objext conftest$ac_exeext
22405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22406   (eval $ac_link) 2>&5
22407   ac_status=$?
22408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); } &&
22410          { ac_try='test -s conftest$ac_exeext'
22411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22412   (eval $ac_try) 2>&5
22413   ac_status=$?
22414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415   (exit $ac_status); }; }; then
22416   eval "$as_ac_var=yes"
22417 else
22418   echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22420
22421 eval "$as_ac_var=no"
22422 fi
22423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22424 fi
22425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22427 if test `eval echo '${'$as_ac_var'}'` = yes; then
22428   cat >>confdefs.h <<_ACEOF
22429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22430 _ACEOF
22431
22432 fi
22433 done
22434
22435
22436
22437 echo "$as_me:$LINENO: checking for mmap" >&5
22438 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22439 if test "${ac_cv_func_mmap+set}" = set; then
22440   echo $ECHO_N "(cached) $ECHO_C" >&6
22441 else
22442   cat >conftest.$ac_ext <<_ACEOF
22443 #line $LINENO "configure"
22444 /* confdefs.h.  */
22445 _ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h.  */
22449 /* System header to define __stub macros and hopefully few prototypes,
22450     which can conflict with char mmap (); below.
22451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22452     <limits.h> exists even on freestanding compilers.  */
22453 #ifdef __STDC__
22454 # include <limits.h>
22455 #else
22456 # include <assert.h>
22457 #endif
22458 /* Override any gcc2 internal prototype to avoid an error.  */
22459 #ifdef __cplusplus
22460 extern "C"
22461 {
22462 #endif
22463 /* We use char because int might match the return type of a gcc2
22464    builtin and then its argument prototype would still apply.  */
22465 char mmap ();
22466 /* The GNU C library defines this for functions which it implements
22467     to always fail with ENOSYS.  Some functions are actually named
22468     something starting with __ and the normal name is an alias.  */
22469 #if defined (__stub_mmap) || defined (__stub___mmap)
22470 choke me
22471 #else
22472 char (*f) () = mmap;
22473 #endif
22474 #ifdef __cplusplus
22475 }
22476 #endif
22477
22478 int
22479 main ()
22480 {
22481 return f != mmap;
22482   ;
22483   return 0;
22484 }
22485 _ACEOF
22486 rm -f conftest.$ac_objext conftest$ac_exeext
22487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22488   (eval $ac_link) 2>&5
22489   ac_status=$?
22490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491   (exit $ac_status); } &&
22492          { ac_try='test -s conftest$ac_exeext'
22493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494   (eval $ac_try) 2>&5
22495   ac_status=$?
22496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497   (exit $ac_status); }; }; then
22498   ac_cv_func_mmap=yes
22499 else
22500   echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22502
22503 ac_cv_func_mmap=no
22504 fi
22505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22506 fi
22507 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22508 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22509 if test $ac_cv_func_mmap = yes; then
22510   :
22511 else
22512   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22513 echo "$as_me: error: Function mmap() required but not found" >&2;}
22514    { (exit 1); exit 1; }; }
22515 fi
22516
22517 echo "$as_me:$LINENO: checking for mprotect" >&5
22518 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22519 if test "${ac_cv_func_mprotect+set}" = set; then
22520   echo $ECHO_N "(cached) $ECHO_C" >&6
22521 else
22522   cat >conftest.$ac_ext <<_ACEOF
22523 #line $LINENO "configure"
22524 /* confdefs.h.  */
22525 _ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h.  */
22529 /* System header to define __stub macros and hopefully few prototypes,
22530     which can conflict with char mprotect (); below.
22531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22532     <limits.h> exists even on freestanding compilers.  */
22533 #ifdef __STDC__
22534 # include <limits.h>
22535 #else
22536 # include <assert.h>
22537 #endif
22538 /* Override any gcc2 internal prototype to avoid an error.  */
22539 #ifdef __cplusplus
22540 extern "C"
22541 {
22542 #endif
22543 /* We use char because int might match the return type of a gcc2
22544    builtin and then its argument prototype would still apply.  */
22545 char mprotect ();
22546 /* The GNU C library defines this for functions which it implements
22547     to always fail with ENOSYS.  Some functions are actually named
22548     something starting with __ and the normal name is an alias.  */
22549 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22550 choke me
22551 #else
22552 char (*f) () = mprotect;
22553 #endif
22554 #ifdef __cplusplus
22555 }
22556 #endif
22557
22558 int
22559 main ()
22560 {
22561 return f != mprotect;
22562   ;
22563   return 0;
22564 }
22565 _ACEOF
22566 rm -f conftest.$ac_objext conftest$ac_exeext
22567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22568   (eval $ac_link) 2>&5
22569   ac_status=$?
22570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571   (exit $ac_status); } &&
22572          { ac_try='test -s conftest$ac_exeext'
22573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574   (eval $ac_try) 2>&5
22575   ac_status=$?
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); }; }; then
22578   ac_cv_func_mprotect=yes
22579 else
22580   echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22582
22583 ac_cv_func_mprotect=no
22584 fi
22585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22586 fi
22587 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22588 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22589 if test $ac_cv_func_mprotect = yes; then
22590   :
22591 else
22592   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22593 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22594    { (exit 1); exit 1; }; }
22595 fi
22596
22597
22598
22599 # Check whether --enable-purify or --disable-purify was given.
22600 if test "${enable_purify+set}" = set; then
22601   enableval="$enable_purify"
22602
22603 else
22604   enableval="no"
22605 fi;
22606 if test ${enableval} = "no"
22607 then
22608         ENABLE_PURIFY=
22609
22610 else
22611         ENABLE_PURIFY=ENABLE_PURIFY=1
22612
22613 fi
22614
22615 # Check whether --enable-optimized or --disable-optimized was given.
22616 if test "${enable_optimized+set}" = set; then
22617   enableval="$enable_optimized"
22618
22619 else
22620   enableval=no
22621 fi;
22622 if test ${enableval} = "no"
22623 then
22624         ENABLE_OPTIMIZED=
22625
22626 else
22627         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22628
22629 fi
22630
22631 # Check whether --enable-spec or --disable-spec was given.
22632 if test "${enable_spec+set}" = set; then
22633   enableval="$enable_spec"
22634
22635 else
22636   enableval=no
22637 fi;
22638 if test ${enableval} = "no"
22639 then
22640         USE_SPEC=
22641
22642 else
22643         USE_SPEC=USE_SPEC=1
22644
22645 fi
22646
22647 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22648 if test "${enable_precompiled_bytecode+set}" = set; then
22649   enableval="$enable_precompiled_bytecode"
22650
22651 else
22652   enableval=no
22653 fi;
22654 if test ${enableval} = "no"
22655 then
22656         UPB=
22657
22658 else
22659         UPB=USE_PRECOMPILED_BYTECODE=1
22660
22661 fi
22662
22663
22664 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22665 if test "${enable_llc_diffs+set}" = set; then
22666   enableval="$enable_llc_diffs"
22667
22668 else
22669   enableval=yes
22670 fi;
22671 if test ${enableval} = "no"
22672 then
22673         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22674
22675 else
22676         DISABLE_LLC_DIFFS=
22677
22678 fi
22679
22680 # Check whether --enable-jit or --disable-jit was given.
22681 if test "${enable_jit+set}" = set; then
22682   enableval="$enable_jit"
22683
22684 else
22685   enableval=default
22686 fi;
22687
22688 if test ${enableval} = "no"
22689 then
22690         JIT=
22691
22692 else
22693         case $target in
22694                 *i*86*)
22695                         JIT=TARGET_HAS_JIT=1
22696
22697                         ;;
22698                 *sparc*)
22699                         JIT=TARGET_HAS_JIT=1
22700
22701                         ;;
22702                 *)
22703                         JIT=
22704
22705                         ;;
22706         esac
22707 fi
22708
22709
22710
22711 # Check whether --with-spec or --without-spec was given.
22712 if test "${with_spec+set}" = set; then
22713   withval="$with_spec"
22714   SPEC_ROOT=$withval
22715
22716 else
22717   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22718
22719 fi;
22720
22721
22722 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22723 if test "${with_llvmgccdir+set}" = set; then
22724   withval="$with_llvmgccdir"
22725   LLVMGCCDIR=$withval
22726
22727 fi;
22728
22729
22730 # Check whether --with-bcrepos or --without-bcrepos was given.
22731 if test "${with_bcrepos+set}" = set; then
22732   withval="$with_bcrepos"
22733   BCR=$withval
22734
22735 else
22736   BCR=/home/vadve/lattner/LLVMPrograms
22737
22738 fi;
22739
22740
22741 # Check whether --with-papi or --without-papi was given.
22742 if test "${with_papi+set}" = set; then
22743   withval="$with_papi"
22744   PAPIDIR=$withval
22745
22746 else
22747   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22748
22749 fi;
22750
22751
22752 # Check whether --with-purify or --without-purify was given.
22753 if test "${with_purify+set}" = set; then
22754   withval="$with_purify"
22755   PURIFY=$withval
22756
22757 fi;
22758
22759
22760           ac_config_files="$ac_config_files Makefile.config"
22761 cat >confcache <<\_ACEOF
22762 # This file is a shell script that caches the results of configure
22763 # tests run on this system so they can be shared between configure
22764 # scripts and configure runs, see configure's option --config-cache.
22765 # It is not useful on other systems.  If it contains results you don't
22766 # want to keep, you may remove or edit it.
22767 #
22768 # config.status only pays attention to the cache file if you give it
22769 # the --recheck option to rerun configure.
22770 #
22771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22773 # following values.
22774
22775 _ACEOF
22776
22777 # The following way of writing the cache mishandles newlines in values,
22778 # but we know of no workaround that is simple, portable, and efficient.
22779 # So, don't put newlines in cache variables' values.
22780 # Ultrix sh set writes to stderr and can't be redirected directly,
22781 # and sets the high bit in the cache file unless we assign to the vars.
22782 {
22783   (set) 2>&1 |
22784     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22785     *ac_space=\ *)
22786       # `set' does not quote correctly, so add quotes (double-quote
22787       # substitution turns \\\\ into \\, and sed turns \\ into \).
22788       sed -n \
22789         "s/'/'\\\\''/g;
22790           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22791       ;;
22792     *)
22793       # `set' quotes correctly as required by POSIX, so do not add quotes.
22794       sed -n \
22795         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22796       ;;
22797     esac;
22798 } |
22799   sed '
22800      t clear
22801      : clear
22802      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22803      t end
22804      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22805      : end' >>confcache
22806 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22807   if test -w $cache_file; then
22808     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22809     cat confcache >$cache_file
22810   else
22811     echo "not updating unwritable cache $cache_file"
22812   fi
22813 fi
22814 rm -f confcache
22815
22816 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22817 # Let make expand exec_prefix.
22818 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22819
22820 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22821 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22822 # trailing colons and then remove the whole line if VPATH becomes empty
22823 # (actually we leave an empty line to preserve line numbers).
22824 if test "x$srcdir" = x.; then
22825   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22826 s/:*\$(srcdir):*/:/;
22827 s/:*\${srcdir}:*/:/;
22828 s/:*@srcdir@:*/:/;
22829 s/^\([^=]*=[    ]*\):*/\1/;
22830 s/:*$//;
22831 s/^[^=]*=[      ]*$//;
22832 }'
22833 fi
22834
22835 DEFS=-DHAVE_CONFIG_H
22836
22837 ac_libobjs=
22838 ac_ltlibobjs=
22839 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22840   # 1. Remove the extension, and $U if already installed.
22841   ac_i=`echo "$ac_i" |
22842          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22843   # 2. Add them.
22844   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22845   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22846 done
22847 LIBOBJS=$ac_libobjs
22848
22849 LTLIBOBJS=$ac_ltlibobjs
22850
22851
22852
22853 : ${CONFIG_STATUS=./config.status}
22854 ac_clean_files_save=$ac_clean_files
22855 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22856 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22857 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22858 cat >$CONFIG_STATUS <<_ACEOF
22859 #! $SHELL
22860 # Generated by $as_me.
22861 # Run this file to recreate the current configuration.
22862 # Compiler output produced by configure, useful for debugging
22863 # configure, is in config.log if it exists.
22864
22865 debug=false
22866 ac_cs_recheck=false
22867 ac_cs_silent=false
22868 SHELL=\${CONFIG_SHELL-$SHELL}
22869 _ACEOF
22870
22871 cat >>$CONFIG_STATUS <<\_ACEOF
22872 ## --------------------- ##
22873 ## M4sh Initialization.  ##
22874 ## --------------------- ##
22875
22876 # Be Bourne compatible
22877 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22878   emulate sh
22879   NULLCMD=:
22880   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22881   # is contrary to our usage.  Disable this feature.
22882   alias -g '${1+"$@"}'='"$@"'
22883 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22884   set -o posix
22885 fi
22886
22887 # Support unset when possible.
22888 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22889   as_unset=unset
22890 else
22891   as_unset=false
22892 fi
22893
22894
22895 # Work around bugs in pre-3.0 UWIN ksh.
22896 $as_unset ENV MAIL MAILPATH
22897 PS1='$ '
22898 PS2='> '
22899 PS4='+ '
22900
22901 # NLS nuisances.
22902 for as_var in \
22903   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22904   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22905   LC_TELEPHONE LC_TIME
22906 do
22907   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22908     eval $as_var=C; export $as_var
22909   else
22910     $as_unset $as_var
22911   fi
22912 done
22913
22914 # Required to use basename.
22915 if expr a : '\(a\)' >/dev/null 2>&1; then
22916   as_expr=expr
22917 else
22918   as_expr=false
22919 fi
22920
22921 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22922   as_basename=basename
22923 else
22924   as_basename=false
22925 fi
22926
22927
22928 # Name of the executable.
22929 as_me=`$as_basename "$0" ||
22930 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22931          X"$0" : 'X\(//\)$' \| \
22932          X"$0" : 'X\(/\)$' \| \
22933          .     : '\(.\)' 2>/dev/null ||
22934 echo X/"$0" |
22935     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22936           /^X\/\(\/\/\)$/{ s//\1/; q; }
22937           /^X\/\(\/\).*/{ s//\1/; q; }
22938           s/.*/./; q'`
22939
22940
22941 # PATH needs CR, and LINENO needs CR and PATH.
22942 # Avoid depending upon Character Ranges.
22943 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22944 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22945 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22946 as_cr_digits='0123456789'
22947 as_cr_alnum=$as_cr_Letters$as_cr_digits
22948
22949 # The user is always right.
22950 if test "${PATH_SEPARATOR+set}" != set; then
22951   echo "#! /bin/sh" >conf$$.sh
22952   echo  "exit 0"   >>conf$$.sh
22953   chmod +x conf$$.sh
22954   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22955     PATH_SEPARATOR=';'
22956   else
22957     PATH_SEPARATOR=:
22958   fi
22959   rm -f conf$$.sh
22960 fi
22961
22962
22963   as_lineno_1=$LINENO
22964   as_lineno_2=$LINENO
22965   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22966   test "x$as_lineno_1" != "x$as_lineno_2" &&
22967   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22968   # Find who we are.  Look in the path if we contain no path at all
22969   # relative or not.
22970   case $0 in
22971     *[\\/]* ) as_myself=$0 ;;
22972     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22973 for as_dir in $PATH
22974 do
22975   IFS=$as_save_IFS
22976   test -z "$as_dir" && as_dir=.
22977   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22978 done
22979
22980        ;;
22981   esac
22982   # We did not find ourselves, most probably we were run as `sh COMMAND'
22983   # in which case we are not to be found in the path.
22984   if test "x$as_myself" = x; then
22985     as_myself=$0
22986   fi
22987   if test ! -f "$as_myself"; then
22988     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22989 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22990    { (exit 1); exit 1; }; }
22991   fi
22992   case $CONFIG_SHELL in
22993   '')
22994     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22995 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22996 do
22997   IFS=$as_save_IFS
22998   test -z "$as_dir" && as_dir=.
22999   for as_base in sh bash ksh sh5; do
23000          case $as_dir in
23001          /*)
23002            if ("$as_dir/$as_base" -c '
23003   as_lineno_1=$LINENO
23004   as_lineno_2=$LINENO
23005   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23006   test "x$as_lineno_1" != "x$as_lineno_2" &&
23007   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23008              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23009              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23010              CONFIG_SHELL=$as_dir/$as_base
23011              export CONFIG_SHELL
23012              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23013            fi;;
23014          esac
23015        done
23016 done
23017 ;;
23018   esac
23019
23020   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23021   # uniformly replaced by the line number.  The first 'sed' inserts a
23022   # line-number line before each line; the second 'sed' does the real
23023   # work.  The second script uses 'N' to pair each line-number line
23024   # with the numbered line, and appends trailing '-' during
23025   # substitution so that $LINENO is not a special case at line end.
23026   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23027   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23028   sed '=' <$as_myself |
23029     sed '
23030       N
23031       s,$,-,
23032       : loop
23033       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23034       t loop
23035       s,-$,,
23036       s,^['$as_cr_digits']*\n,,
23037     ' >$as_me.lineno &&
23038   chmod +x $as_me.lineno ||
23039     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23040 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23041    { (exit 1); exit 1; }; }
23042
23043   # Don't try to exec as it changes $[0], causing all sort of problems
23044   # (the dirname of $[0] is not the place where we might find the
23045   # original and so on.  Autoconf is especially sensible to this).
23046   . ./$as_me.lineno
23047   # Exit status is that of the last command.
23048   exit
23049 }
23050
23051
23052 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23053   *c*,-n*) ECHO_N= ECHO_C='
23054 ' ECHO_T='      ' ;;
23055   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23056   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23057 esac
23058
23059 if expr a : '\(a\)' >/dev/null 2>&1; then
23060   as_expr=expr
23061 else
23062   as_expr=false
23063 fi
23064
23065 rm -f conf$$ conf$$.exe conf$$.file
23066 echo >conf$$.file
23067 if ln -s conf$$.file conf$$ 2>/dev/null; then
23068   # We could just check for DJGPP; but this test a) works b) is more generic
23069   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23070   if test -f conf$$.exe; then
23071     # Don't use ln at all; we don't have any links
23072     as_ln_s='cp -p'
23073   else
23074     as_ln_s='ln -s'
23075   fi
23076 elif ln conf$$.file conf$$ 2>/dev/null; then
23077   as_ln_s=ln
23078 else
23079   as_ln_s='cp -p'
23080 fi
23081 rm -f conf$$ conf$$.exe conf$$.file
23082
23083 if mkdir -p . 2>/dev/null; then
23084   as_mkdir_p=:
23085 else
23086   as_mkdir_p=false
23087 fi
23088
23089 as_executable_p="test -f"
23090
23091 # Sed expression to map a string onto a valid CPP name.
23092 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23093
23094 # Sed expression to map a string onto a valid variable name.
23095 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23096
23097
23098 # IFS
23099 # We need space, tab and new line, in precisely that order.
23100 as_nl='
23101 '
23102 IFS="   $as_nl"
23103
23104 # CDPATH.
23105 $as_unset CDPATH
23106
23107 exec 6>&1
23108
23109 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23110 # report actual input values of CONFIG_FILES etc. instead of their
23111 # values after options handling.  Logging --version etc. is OK.
23112 exec 5>>config.log
23113 {
23114   echo
23115   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23116 ## Running $as_me. ##
23117 _ASBOX
23118 } >&5
23119 cat >&5 <<_CSEOF
23120
23121 This file was extended by [LLVM] $as_me [1.0], which was
23122 generated by GNU Autoconf 2.57.  Invocation command line was
23123
23124   CONFIG_FILES    = $CONFIG_FILES
23125   CONFIG_HEADERS  = $CONFIG_HEADERS
23126   CONFIG_LINKS    = $CONFIG_LINKS
23127   CONFIG_COMMANDS = $CONFIG_COMMANDS
23128   $ $0 $@
23129
23130 _CSEOF
23131 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23132 echo >&5
23133 _ACEOF
23134
23135 # Files that config.status was made for.
23136 if test -n "$ac_config_files"; then
23137   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23138 fi
23139
23140 if test -n "$ac_config_headers"; then
23141   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23142 fi
23143
23144 if test -n "$ac_config_links"; then
23145   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23146 fi
23147
23148 if test -n "$ac_config_commands"; then
23149   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23150 fi
23151
23152 cat >>$CONFIG_STATUS <<\_ACEOF
23153
23154 ac_cs_usage="\
23155 \`$as_me' instantiates files from templates according to the
23156 current configuration.
23157
23158 Usage: $0 [OPTIONS] [FILE]...
23159
23160   -h, --help       print this help, then exit
23161   -V, --version    print version number, then exit
23162   -q, --quiet      do not print progress messages
23163   -d, --debug      don't remove temporary files
23164       --recheck    update $as_me by reconfiguring in the same conditions
23165   --file=FILE[:TEMPLATE]
23166                    instantiate the configuration file FILE
23167   --header=FILE[:TEMPLATE]
23168                    instantiate the configuration header FILE
23169
23170 Configuration files:
23171 $config_files
23172
23173 Configuration headers:
23174 $config_headers
23175
23176 Configuration commands:
23177 $config_commands
23178
23179 Report bugs to <bug-autoconf@gnu.org>."
23180 _ACEOF
23181
23182 cat >>$CONFIG_STATUS <<_ACEOF
23183 ac_cs_version="\\
23184 [LLVM] config.status [1.0]
23185 configured by $0, generated by GNU Autoconf 2.57,
23186   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23187
23188 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23189 Free Software Foundation, Inc.
23190 This config.status script is free software; the Free Software Foundation
23191 gives unlimited permission to copy, distribute and modify it."
23192 srcdir=$srcdir
23193 INSTALL="$INSTALL"
23194 _ACEOF
23195
23196 cat >>$CONFIG_STATUS <<\_ACEOF
23197 # If no file are specified by the user, then we need to provide default
23198 # value.  By we need to know if files were specified by the user.
23199 ac_need_defaults=:
23200 while test $# != 0
23201 do
23202   case $1 in
23203   --*=*)
23204     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23205     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23206     ac_shift=:
23207     ;;
23208   -*)
23209     ac_option=$1
23210     ac_optarg=$2
23211     ac_shift=shift
23212     ;;
23213   *) # This is not an option, so the user has probably given explicit
23214      # arguments.
23215      ac_option=$1
23216      ac_need_defaults=false;;
23217   esac
23218
23219   case $ac_option in
23220   # Handling of the options.
23221 _ACEOF
23222 cat >>$CONFIG_STATUS <<\_ACEOF
23223   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23224     ac_cs_recheck=: ;;
23225   --version | --vers* | -V )
23226     echo "$ac_cs_version"; exit 0 ;;
23227   --he | --h)
23228     # Conflict between --help and --header
23229     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23230 Try \`$0 --help' for more information." >&5
23231 echo "$as_me: error: ambiguous option: $1
23232 Try \`$0 --help' for more information." >&2;}
23233    { (exit 1); exit 1; }; };;
23234   --help | --hel | -h )
23235     echo "$ac_cs_usage"; exit 0 ;;
23236   --debug | --d* | -d )
23237     debug=: ;;
23238   --file | --fil | --fi | --f )
23239     $ac_shift
23240     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23241     ac_need_defaults=false;;
23242   --header | --heade | --head | --hea )
23243     $ac_shift
23244     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23245     ac_need_defaults=false;;
23246   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23247   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23248     ac_cs_silent=: ;;
23249
23250   # This is an error.
23251   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23252 Try \`$0 --help' for more information." >&5
23253 echo "$as_me: error: unrecognized option: $1
23254 Try \`$0 --help' for more information." >&2;}
23255    { (exit 1); exit 1; }; } ;;
23256
23257   *) ac_config_targets="$ac_config_targets $1" ;;
23258
23259   esac
23260   shift
23261 done
23262
23263 ac_configure_extra_args=
23264
23265 if $ac_cs_silent; then
23266   exec 6>/dev/null
23267   ac_configure_extra_args="$ac_configure_extra_args --silent"
23268 fi
23269
23270 _ACEOF
23271 cat >>$CONFIG_STATUS <<_ACEOF
23272 if \$ac_cs_recheck; then
23273   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23274   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23275 fi
23276
23277 _ACEOF
23278
23279 cat >>$CONFIG_STATUS <<_ACEOF
23280 #
23281 # INIT-COMMANDS section.
23282 #
23283
23284 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23285 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23286 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23287 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23288 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23289 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23290 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23291 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23292 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23293 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23294 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23295 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23296 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23297 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23298 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23299 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23300 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23301 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23302 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23303 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23304 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23305 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23306 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23307 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23308 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23309 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23310 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23311 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23312 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23313 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23314 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23315 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23316 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23317 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23318 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23319 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23320 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23321 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23322 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23323 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libexception/Makefile`
23324 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23325 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23326 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23327 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23328 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23329 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23330 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23331 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23332 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23333 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23334 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23335 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23336 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23337 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23338 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23339 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23340 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23341 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23342 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23343 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23344 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23345 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23346 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23347 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23348 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23349 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23350 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23351 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23352 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23353 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23354 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23355 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23356 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23357 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23358 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23359 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23360 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23361 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23362 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23363 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23364 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23365 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23366 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23367 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23368 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23369 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23370 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23371 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23372 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23373 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23374 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23375 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23376 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23377 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23378 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23379 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23380 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23381 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23382 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23383 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23384 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23460
23461 _ACEOF
23462
23463
23464
23465 cat >>$CONFIG_STATUS <<\_ACEOF
23466 for ac_config_target in $ac_config_targets
23467 do
23468   case "$ac_config_target" in
23469   # Handling of arguments.
23470   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23471   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23472   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23473   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23474   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23475   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23476   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23477   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23478   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23479   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23480   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23481   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23482   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23483   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23484   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23485   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23486   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23487   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23488   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23489   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23490   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23491   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23492   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23493   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23494   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23495   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23496   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23497   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23498   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23499   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23500   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23501   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23502   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23503   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23504   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23505   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23506   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23507   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23508   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23509   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23510   "runtime/GCCLibraries/libexception/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libexception/Makefile" ;;
23511   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23512   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23513   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23514   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23515   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23516   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23517   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23518   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23519   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23520   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23521   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23522   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23523   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23524   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23525   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23526   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23527   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23528   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23529   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23530   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23531   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23532   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23533   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23534   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23535   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23536   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23537   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23538   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23539   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23540   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23541   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23542   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23543   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23544   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23545   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23546   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23547   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23548   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23549   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23550   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23551   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23552   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23553   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23554   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23555   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23556   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23557   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23558   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23559   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23560   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23561   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23562   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23563   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23564   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23565   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23566   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23567   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23568   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23569   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23570   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23571   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23572   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23573   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23574   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23575   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23576   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23577   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23578   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23579   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23580   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23581   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23582   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23583   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23584   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23585   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23586   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23587   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23588   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23589   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23590   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23591   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23592   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23593   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23594   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23595   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23596   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23597   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23598   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23599   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23600   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23601   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23602   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23603   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23604   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23605   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23606   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23607   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23608   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23609   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23610   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23611   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23612   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23613   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23614   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23615   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23616   "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23617   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23618   "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23619   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23620   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23621   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23622   "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23623   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23624   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23625   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23626   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23627   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23628   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23629   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23630   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23631   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23632   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23633   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23634   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23635   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23636   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23637   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23638   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23639   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23640   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23641   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23642   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23643   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23644   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23645   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23646   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23647   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23648   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23649 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23650    { (exit 1); exit 1; }; };;
23651   esac
23652 done
23653
23654 # If the user did not use the arguments to specify the items to instantiate,
23655 # then the envvar interface is used.  Set only those that are not.
23656 # We use the long form for the default assignment because of an extremely
23657 # bizarre bug on SunOS 4.1.3.
23658 if $ac_need_defaults; then
23659   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23660   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23661   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23662 fi
23663
23664 # Have a temporary directory for convenience.  Make it in the build tree
23665 # simply because there is no reason to put it here, and in addition,
23666 # creating and moving files from /tmp can sometimes cause problems.
23667 # Create a temporary directory, and hook for its removal unless debugging.
23668 $debug ||
23669 {
23670   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23671   trap '{ (exit 1); exit 1; }' 1 2 13 15
23672 }
23673
23674 # Create a (secure) tmp directory for tmp files.
23675
23676 {
23677   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23678   test -n "$tmp" && test -d "$tmp"
23679 }  ||
23680 {
23681   tmp=./confstat$$-$RANDOM
23682   (umask 077 && mkdir $tmp)
23683 } ||
23684 {
23685    echo "$me: cannot create a temporary directory in ." >&2
23686    { (exit 1); exit 1; }
23687 }
23688
23689 _ACEOF
23690
23691 cat >>$CONFIG_STATUS <<_ACEOF
23692
23693 #
23694 # CONFIG_FILES section.
23695 #
23696
23697 # No need to generate the scripts if there are no CONFIG_FILES.
23698 # This happens for instance when ./config.status config.h
23699 if test -n "\$CONFIG_FILES"; then
23700   # Protect against being on the right side of a sed subst in config.status.
23701   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23702    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23703 s,@SHELL@,$SHELL,;t t
23704 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23705 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23706 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23707 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23708 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23709 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23710 s,@exec_prefix@,$exec_prefix,;t t
23711 s,@prefix@,$prefix,;t t
23712 s,@program_transform_name@,$program_transform_name,;t t
23713 s,@bindir@,$bindir,;t t
23714 s,@sbindir@,$sbindir,;t t
23715 s,@libexecdir@,$libexecdir,;t t
23716 s,@datadir@,$datadir,;t t
23717 s,@sysconfdir@,$sysconfdir,;t t
23718 s,@sharedstatedir@,$sharedstatedir,;t t
23719 s,@localstatedir@,$localstatedir,;t t
23720 s,@libdir@,$libdir,;t t
23721 s,@includedir@,$includedir,;t t
23722 s,@oldincludedir@,$oldincludedir,;t t
23723 s,@infodir@,$infodir,;t t
23724 s,@mandir@,$mandir,;t t
23725 s,@build_alias@,$build_alias,;t t
23726 s,@host_alias@,$host_alias,;t t
23727 s,@target_alias@,$target_alias,;t t
23728 s,@DEFS@,$DEFS,;t t
23729 s,@ECHO_C@,$ECHO_C,;t t
23730 s,@ECHO_N@,$ECHO_N,;t t
23731 s,@ECHO_T@,$ECHO_T,;t t
23732 s,@LIBS@,$LIBS,;t t
23733 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23734 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23735 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23736 s,@build@,$build,;t t
23737 s,@build_cpu@,$build_cpu,;t t
23738 s,@build_vendor@,$build_vendor,;t t
23739 s,@build_os@,$build_os,;t t
23740 s,@host@,$host,;t t
23741 s,@host_cpu@,$host_cpu,;t t
23742 s,@host_vendor@,$host_vendor,;t t
23743 s,@host_os@,$host_os,;t t
23744 s,@target@,$target,;t t
23745 s,@target_cpu@,$target_cpu,;t t
23746 s,@target_vendor@,$target_vendor,;t t
23747 s,@target_os@,$target_os,;t t
23748 s,@OS@,$OS,;t t
23749 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23750 s,@ARCH@,$ARCH,;t t
23751 s,@CXX@,$CXX,;t t
23752 s,@CXXFLAGS@,$CXXFLAGS,;t t
23753 s,@LDFLAGS@,$LDFLAGS,;t t
23754 s,@CPPFLAGS@,$CPPFLAGS,;t t
23755 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23756 s,@EXEEXT@,$EXEEXT,;t t
23757 s,@OBJEXT@,$OBJEXT,;t t
23758 s,@CC@,$CC,;t t
23759 s,@CFLAGS@,$CFLAGS,;t t
23760 s,@ac_ct_CC@,$ac_ct_CC,;t t
23761 s,@CPP@,$CPP,;t t
23762 s,@ifGNUmake@,$ifGNUmake,;t t
23763 s,@LEX@,$LEX,;t t
23764 s,@LEXLIB@,$LEXLIB,;t t
23765 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23766 s,@YACC@,$YACC,;t t
23767 s,@EGREP@,$EGREP,;t t
23768 s,@LN_S@,$LN_S,;t t
23769 s,@ECHO@,$ECHO,;t t
23770 s,@AR@,$AR,;t t
23771 s,@ac_ct_AR@,$ac_ct_AR,;t t
23772 s,@RANLIB@,$RANLIB,;t t
23773 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23774 s,@STRIP@,$STRIP,;t t
23775 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23776 s,@CXXCPP@,$CXXCPP,;t t
23777 s,@F77@,$F77,;t t
23778 s,@FFLAGS@,$FFLAGS,;t t
23779 s,@ac_ct_F77@,$ac_ct_F77,;t t
23780 s,@LIBTOOL@,$LIBTOOL,;t t
23781 s,@RPWD@,$RPWD,;t t
23782 s,@SED@,$SED,;t t
23783 s,@RM@,$RM,;t t
23784 s,@MKDIR@,$MKDIR,;t t
23785 s,@DATE@,$DATE,;t t
23786 s,@MV@,$MV,;t t
23787 s,@DOT@,$DOT,;t t
23788 s,@ETAGS@,$ETAGS,;t t
23789 s,@PURIFY@,$PURIFY,;t t
23790 s,@PYTHON@,$PYTHON,;t t
23791 s,@QMTEST@,$QMTEST,;t t
23792 s,@ALLOCA@,$ALLOCA,;t t
23793 s,@LIBOBJS@,$LIBOBJS,;t t
23794 s,@MMAP_FILE@,$MMAP_FILE,;t t
23795 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23796 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23797 s,@USE_SPEC@,$USE_SPEC,;t t
23798 s,@UPB@,$UPB,;t t
23799 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23800 s,@JIT@,$JIT,;t t
23801 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23802 s,@BCR@,$BCR,;t t
23803 s,@PAPIDIR@,$PAPIDIR,;t t
23804 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23805 CEOF
23806
23807 _ACEOF
23808
23809   cat >>$CONFIG_STATUS <<\_ACEOF
23810   # Split the substitutions into bite-sized pieces for seds with
23811   # small command number limits, like on Digital OSF/1 and HP-UX.
23812   ac_max_sed_lines=48
23813   ac_sed_frag=1 # Number of current file.
23814   ac_beg=1 # First line for current file.
23815   ac_end=$ac_max_sed_lines # Line after last line for current file.
23816   ac_more_lines=:
23817   ac_sed_cmds=
23818   while $ac_more_lines; do
23819     if test $ac_beg -gt 1; then
23820       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23821     else
23822       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23823     fi
23824     if test ! -s $tmp/subs.frag; then
23825       ac_more_lines=false
23826     else
23827       # The purpose of the label and of the branching condition is to
23828       # speed up the sed processing (if there are no `@' at all, there
23829       # is no need to browse any of the substitutions).
23830       # These are the two extra sed commands mentioned above.
23831       (echo ':t
23832   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23833       if test -z "$ac_sed_cmds"; then
23834         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23835       else
23836         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23837       fi
23838       ac_sed_frag=`expr $ac_sed_frag + 1`
23839       ac_beg=$ac_end
23840       ac_end=`expr $ac_end + $ac_max_sed_lines`
23841     fi
23842   done
23843   if test -z "$ac_sed_cmds"; then
23844     ac_sed_cmds=cat
23845   fi
23846 fi # test -n "$CONFIG_FILES"
23847
23848 _ACEOF
23849 cat >>$CONFIG_STATUS <<\_ACEOF
23850 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23851   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23852   case $ac_file in
23853   - | *:- | *:-:* ) # input from stdin
23854         cat >$tmp/stdin
23855         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23856         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23857   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23858         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23859   * )   ac_file_in=$ac_file.in ;;
23860   esac
23861
23862   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23863   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23864 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23865          X"$ac_file" : 'X\(//\)[^/]' \| \
23866          X"$ac_file" : 'X\(//\)$' \| \
23867          X"$ac_file" : 'X\(/\)' \| \
23868          .     : '\(.\)' 2>/dev/null ||
23869 echo X"$ac_file" |
23870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23872           /^X\(\/\/\)$/{ s//\1/; q; }
23873           /^X\(\/\).*/{ s//\1/; q; }
23874           s/.*/./; q'`
23875   { if $as_mkdir_p; then
23876     mkdir -p "$ac_dir"
23877   else
23878     as_dir="$ac_dir"
23879     as_dirs=
23880     while test ! -d "$as_dir"; do
23881       as_dirs="$as_dir $as_dirs"
23882       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23883 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23884          X"$as_dir" : 'X\(//\)[^/]' \| \
23885          X"$as_dir" : 'X\(//\)$' \| \
23886          X"$as_dir" : 'X\(/\)' \| \
23887          .     : '\(.\)' 2>/dev/null ||
23888 echo X"$as_dir" |
23889     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23890           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23891           /^X\(\/\/\)$/{ s//\1/; q; }
23892           /^X\(\/\).*/{ s//\1/; q; }
23893           s/.*/./; q'`
23894     done
23895     test ! -n "$as_dirs" || mkdir $as_dirs
23896   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23897 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23898    { (exit 1); exit 1; }; }; }
23899
23900   ac_builddir=.
23901
23902 if test "$ac_dir" != .; then
23903   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23904   # A "../" for each directory in $ac_dir_suffix.
23905   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23906 else
23907   ac_dir_suffix= ac_top_builddir=
23908 fi
23909
23910 case $srcdir in
23911   .)  # No --srcdir option.  We are building in place.
23912     ac_srcdir=.
23913     if test -z "$ac_top_builddir"; then
23914        ac_top_srcdir=.
23915     else
23916        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23917     fi ;;
23918   [\\/]* | ?:[\\/]* )  # Absolute path.
23919     ac_srcdir=$srcdir$ac_dir_suffix;
23920     ac_top_srcdir=$srcdir ;;
23921   *) # Relative path.
23922     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23923     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23924 esac
23925 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23926 # absolute.
23927 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23928 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23929 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23930 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23931
23932
23933   case $INSTALL in
23934   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23935   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23936   esac
23937
23938   if test x"$ac_file" != x-; then
23939     { echo "$as_me:$LINENO: creating $ac_file" >&5
23940 echo "$as_me: creating $ac_file" >&6;}
23941     rm -f "$ac_file"
23942   fi
23943   # Let's still pretend it is `configure' which instantiates (i.e., don't
23944   # use $as_me), people would be surprised to read:
23945   #    /* config.h.  Generated by config.status.  */
23946   if test x"$ac_file" = x-; then
23947     configure_input=
23948   else
23949     configure_input="$ac_file.  "
23950   fi
23951   configure_input=$configure_input"Generated from `echo $ac_file_in |
23952                                      sed 's,.*/,,'` by configure."
23953
23954   # First look for the input files in the build tree, otherwise in the
23955   # src tree.
23956   ac_file_inputs=`IFS=:
23957     for f in $ac_file_in; do
23958       case $f in
23959       -) echo $tmp/stdin ;;
23960       [\\/$]*)
23961          # Absolute (can't be DOS-style, as IFS=:)
23962          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23963 echo "$as_me: error: cannot find input file: $f" >&2;}
23964    { (exit 1); exit 1; }; }
23965          echo $f;;
23966       *) # Relative
23967          if test -f "$f"; then
23968            # Build tree
23969            echo $f
23970          elif test -f "$srcdir/$f"; then
23971            # Source tree
23972            echo $srcdir/$f
23973          else
23974            # /dev/null tree
23975            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23976 echo "$as_me: error: cannot find input file: $f" >&2;}
23977    { (exit 1); exit 1; }; }
23978          fi;;
23979       esac
23980     done` || { (exit 1); exit 1; }
23981 _ACEOF
23982 cat >>$CONFIG_STATUS <<_ACEOF
23983   sed "$ac_vpsub
23984 $extrasub
23985 _ACEOF
23986 cat >>$CONFIG_STATUS <<\_ACEOF
23987 :t
23988 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23989 s,@configure_input@,$configure_input,;t t
23990 s,@srcdir@,$ac_srcdir,;t t
23991 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23992 s,@top_srcdir@,$ac_top_srcdir,;t t
23993 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23994 s,@builddir@,$ac_builddir,;t t
23995 s,@abs_builddir@,$ac_abs_builddir,;t t
23996 s,@top_builddir@,$ac_top_builddir,;t t
23997 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23998 s,@INSTALL@,$ac_INSTALL,;t t
23999 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24000   rm -f $tmp/stdin
24001   if test x"$ac_file" != x-; then
24002     mv $tmp/out $ac_file
24003   else
24004     cat $tmp/out
24005     rm -f $tmp/out
24006   fi
24007
24008 done
24009 _ACEOF
24010 cat >>$CONFIG_STATUS <<\_ACEOF
24011
24012 #
24013 # CONFIG_HEADER section.
24014 #
24015
24016 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24017 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24018 #
24019 # ac_d sets the value in "#define NAME VALUE" lines.
24020 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24021 ac_dB='[        ].*$,\1#\2'
24022 ac_dC=' '
24023 ac_dD=',;t'
24024 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24025 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24026 ac_uB='$,\1#\2define\3'
24027 ac_uC=' '
24028 ac_uD=',;t'
24029
24030 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24031   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24032   case $ac_file in
24033   - | *:- | *:-:* ) # input from stdin
24034         cat >$tmp/stdin
24035         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24036         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24037   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24038         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24039   * )   ac_file_in=$ac_file.in ;;
24040   esac
24041
24042   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24043 echo "$as_me: creating $ac_file" >&6;}
24044
24045   # First look for the input files in the build tree, otherwise in the
24046   # src tree.
24047   ac_file_inputs=`IFS=:
24048     for f in $ac_file_in; do
24049       case $f in
24050       -) echo $tmp/stdin ;;
24051       [\\/$]*)
24052          # Absolute (can't be DOS-style, as IFS=:)
24053          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24054 echo "$as_me: error: cannot find input file: $f" >&2;}
24055    { (exit 1); exit 1; }; }
24056          echo $f;;
24057       *) # Relative
24058          if test -f "$f"; then
24059            # Build tree
24060            echo $f
24061          elif test -f "$srcdir/$f"; then
24062            # Source tree
24063            echo $srcdir/$f
24064          else
24065            # /dev/null tree
24066            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24067 echo "$as_me: error: cannot find input file: $f" >&2;}
24068    { (exit 1); exit 1; }; }
24069          fi;;
24070       esac
24071     done` || { (exit 1); exit 1; }
24072   # Remove the trailing spaces.
24073   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24074
24075 _ACEOF
24076
24077 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24078 # `conftest.undefs', that substitutes the proper values into
24079 # config.h.in to produce config.h.  The first handles `#define'
24080 # templates, and the second `#undef' templates.
24081 # And first: Protect against being on the right side of a sed subst in
24082 # config.status.  Protect against being in an unquoted here document
24083 # in config.status.
24084 rm -f conftest.defines conftest.undefs
24085 # Using a here document instead of a string reduces the quoting nightmare.
24086 # Putting comments in sed scripts is not portable.
24087 #
24088 # `end' is used to avoid that the second main sed command (meant for
24089 # 0-ary CPP macros) applies to n-ary macro definitions.
24090 # See the Autoconf documentation for `clear'.
24091 cat >confdef2sed.sed <<\_ACEOF
24092 s/[\\&,]/\\&/g
24093 s,[\\$`],\\&,g
24094 t clear
24095 : clear
24096 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24097 t end
24098 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24099 : end
24100 _ACEOF
24101 # If some macros were called several times there might be several times
24102 # the same #defines, which is useless.  Nevertheless, we may not want to
24103 # sort them, since we want the *last* AC-DEFINE to be honored.
24104 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24105 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24106 rm -f confdef2sed.sed
24107
24108 # This sed command replaces #undef with comments.  This is necessary, for
24109 # example, in the case of _POSIX_SOURCE, which is predefined and required
24110 # on some systems where configure will not decide to define it.
24111 cat >>conftest.undefs <<\_ACEOF
24112 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24113 _ACEOF
24114
24115 # Break up conftest.defines because some shells have a limit on the size
24116 # of here documents, and old seds have small limits too (100 cmds).
24117 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24118 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24119 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24120 echo '  :' >>$CONFIG_STATUS
24121 rm -f conftest.tail
24122 while grep . conftest.defines >/dev/null
24123 do
24124   # Write a limited-size here document to $tmp/defines.sed.
24125   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24126   # Speed up: don't consider the non `#define' lines.
24127   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24128   # Work around the forget-to-reset-the-flag bug.
24129   echo 't clr' >>$CONFIG_STATUS
24130   echo ': clr' >>$CONFIG_STATUS
24131   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24132   echo 'CEOF
24133   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24134   rm -f $tmp/in
24135   mv $tmp/out $tmp/in
24136 ' >>$CONFIG_STATUS
24137   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24138   rm -f conftest.defines
24139   mv conftest.tail conftest.defines
24140 done
24141 rm -f conftest.defines
24142 echo '  fi # grep' >>$CONFIG_STATUS
24143 echo >>$CONFIG_STATUS
24144
24145 # Break up conftest.undefs because some shells have a limit on the size
24146 # of here documents, and old seds have small limits too (100 cmds).
24147 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24148 rm -f conftest.tail
24149 while grep . conftest.undefs >/dev/null
24150 do
24151   # Write a limited-size here document to $tmp/undefs.sed.
24152   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24153   # Speed up: don't consider the non `#undef'
24154   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24155   # Work around the forget-to-reset-the-flag bug.
24156   echo 't clr' >>$CONFIG_STATUS
24157   echo ': clr' >>$CONFIG_STATUS
24158   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24159   echo 'CEOF
24160   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24161   rm -f $tmp/in
24162   mv $tmp/out $tmp/in
24163 ' >>$CONFIG_STATUS
24164   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24165   rm -f conftest.undefs
24166   mv conftest.tail conftest.undefs
24167 done
24168 rm -f conftest.undefs
24169
24170 cat >>$CONFIG_STATUS <<\_ACEOF
24171   # Let's still pretend it is `configure' which instantiates (i.e., don't
24172   # use $as_me), people would be surprised to read:
24173   #    /* config.h.  Generated by config.status.  */
24174   if test x"$ac_file" = x-; then
24175     echo "/* Generated by configure.  */" >$tmp/config.h
24176   else
24177     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24178   fi
24179   cat $tmp/in >>$tmp/config.h
24180   rm -f $tmp/in
24181   if test x"$ac_file" != x-; then
24182     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24183       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24184 echo "$as_me: $ac_file is unchanged" >&6;}
24185     else
24186       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24187 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24188          X"$ac_file" : 'X\(//\)[^/]' \| \
24189          X"$ac_file" : 'X\(//\)$' \| \
24190          X"$ac_file" : 'X\(/\)' \| \
24191          .     : '\(.\)' 2>/dev/null ||
24192 echo X"$ac_file" |
24193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24194           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24195           /^X\(\/\/\)$/{ s//\1/; q; }
24196           /^X\(\/\).*/{ s//\1/; q; }
24197           s/.*/./; q'`
24198       { if $as_mkdir_p; then
24199     mkdir -p "$ac_dir"
24200   else
24201     as_dir="$ac_dir"
24202     as_dirs=
24203     while test ! -d "$as_dir"; do
24204       as_dirs="$as_dir $as_dirs"
24205       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24206 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24207          X"$as_dir" : 'X\(//\)[^/]' \| \
24208          X"$as_dir" : 'X\(//\)$' \| \
24209          X"$as_dir" : 'X\(/\)' \| \
24210          .     : '\(.\)' 2>/dev/null ||
24211 echo X"$as_dir" |
24212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24213           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24214           /^X\(\/\/\)$/{ s//\1/; q; }
24215           /^X\(\/\).*/{ s//\1/; q; }
24216           s/.*/./; q'`
24217     done
24218     test ! -n "$as_dirs" || mkdir $as_dirs
24219   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24220 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24221    { (exit 1); exit 1; }; }; }
24222
24223       rm -f $ac_file
24224       mv $tmp/config.h $ac_file
24225     fi
24226   else
24227     cat $tmp/config.h
24228     rm -f $tmp/config.h
24229   fi
24230 done
24231 _ACEOF
24232 cat >>$CONFIG_STATUS <<\_ACEOF
24233
24234 #
24235 # CONFIG_COMMANDS section.
24236 #
24237 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24238   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24239   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24240   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24241 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24242          X"$ac_dest" : 'X\(//\)[^/]' \| \
24243          X"$ac_dest" : 'X\(//\)$' \| \
24244          X"$ac_dest" : 'X\(/\)' \| \
24245          .     : '\(.\)' 2>/dev/null ||
24246 echo X"$ac_dest" |
24247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24248           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24249           /^X\(\/\/\)$/{ s//\1/; q; }
24250           /^X\(\/\).*/{ s//\1/; q; }
24251           s/.*/./; q'`
24252   ac_builddir=.
24253
24254 if test "$ac_dir" != .; then
24255   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24256   # A "../" for each directory in $ac_dir_suffix.
24257   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24258 else
24259   ac_dir_suffix= ac_top_builddir=
24260 fi
24261
24262 case $srcdir in
24263   .)  # No --srcdir option.  We are building in place.
24264     ac_srcdir=.
24265     if test -z "$ac_top_builddir"; then
24266        ac_top_srcdir=.
24267     else
24268        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24269     fi ;;
24270   [\\/]* | ?:[\\/]* )  # Absolute path.
24271     ac_srcdir=$srcdir$ac_dir_suffix;
24272     ac_top_srcdir=$srcdir ;;
24273   *) # Relative path.
24274     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24275     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24276 esac
24277 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24278 # absolute.
24279 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24280 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24281 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24282 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24283
24284
24285   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24286 echo "$as_me: executing $ac_dest commands" >&6;}
24287   case $ac_dest in
24288     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24289     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24290     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24291     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24292     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24293     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24294     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24295     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24296     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24297     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24298     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24299     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24300     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24301     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24302     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24303     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24304     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24305     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24306     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24307     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24308     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24309     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24310     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24311     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24312     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24313     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24314     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24315     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24316     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24317     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24318     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24319     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24320     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24321     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24322     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24323     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24324     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24325     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24326     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24327     runtime/GCCLibraries/libexception/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libexception/Makefile runtime/GCCLibraries/libexception/Makefile ;;
24328     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24329     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24330     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24331     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24332     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24333     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24334     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24335     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24336     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24337     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24338     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24339     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24340     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24341     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24342     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24343     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24344     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24345     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24346     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24347     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24348     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24349     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24350     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24351     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24352     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24353     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24354     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24355     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24356     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24357     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24358     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 ;;
24359     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 ;;
24360     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 ;;
24361     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 ;;
24362     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 ;;
24363     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 ;;
24364     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 ;;
24365     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 ;;
24366     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 ;;
24367     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 ;;
24368     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 ;;
24369     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 ;;
24370     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 ;;
24371     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 ;;
24372     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 ;;
24373     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 ;;
24374     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24375     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24376     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24377     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24378     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 ;;
24379     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 ;;
24380     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 ;;
24381     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24382     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 ;;
24383     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 ;;
24384     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 ;;
24385     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 ;;
24386     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 ;;
24387     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 ;;
24388     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 ;;
24389     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 ;;
24390     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 ;;
24391     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 ;;
24392     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 ;;
24393     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 ;;
24394     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 ;;
24395     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 ;;
24396     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 ;;
24397     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 ;;
24398     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 ;;
24399     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 ;;
24400     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 ;;
24401     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 ;;
24402     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 ;;
24403     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 ;;
24404     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 ;;
24405     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 ;;
24406     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 ;;
24407     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 ;;
24408     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 ;;
24409     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 ;;
24410     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 ;;
24411     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 ;;
24412     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 ;;
24413     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 ;;
24414     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24415     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24416     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24417     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 ;;
24418     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24419     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24420     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24421     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24422     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24423     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24424     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 ;;
24425     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 ;;
24426     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 ;;
24427     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 ;;
24428     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24429     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24430     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 ;;
24431     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24432     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24433     tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24434     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24435     tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24436     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24437     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24438     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24439     tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24440     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24441     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24442     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24443     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24444     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24445     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24446     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24447     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24448     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24449     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24450     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24451     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24452     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24453     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24454     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24455     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24456     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24457     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24458     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24459     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24460     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24461     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24462     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24463     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24464   esac
24465 done
24466 _ACEOF
24467
24468 cat >>$CONFIG_STATUS <<\_ACEOF
24469
24470 { (exit 0); exit 0; }
24471 _ACEOF
24472 chmod +x $CONFIG_STATUS
24473 ac_clean_files=$ac_clean_files_save
24474
24475
24476 # configure is writing to config.log, and then calls config.status.
24477 # config.status does its own redirection, appending to config.log.
24478 # Unfortunately, on DOS this fails, as config.log is still kept open
24479 # by configure, so config.status won't be able to write to it; its
24480 # output is simply discarded.  So we exec the FD to /dev/null,
24481 # effectively closing config.log, so it can be properly (re)opened and
24482 # appended to by config.status.  When coming back to configure, we
24483 # need to make the FD available again.
24484 if test "$no_create" != yes; then
24485   ac_cs_success=:
24486   ac_config_status_args=
24487   test "$silent" = yes &&
24488     ac_config_status_args="$ac_config_status_args --quiet"
24489   exec 5>/dev/null
24490   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24491   exec 5>>config.log
24492   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24493   # would make configure fail if this is the last instruction.
24494   $ac_cs_success || { (exit 1); exit 1; }
24495 fi
24496