7e4291290f0cc145e9a0e0c7d9ea879224b2f848
[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/PostOpts/Makefile"
1566
1567
1568           ac_config_commands="$ac_config_commands lib/CodeGen/PreOpts/Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1572
1573
1574           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1575
1576
1577           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands runtime/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/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/libucb/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands test/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands test/Makefile.tests"
1659
1660
1661           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1665
1666
1667           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1668
1669
1670           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1671
1672
1673           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1674
1675
1676           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1677
1678
1679           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1680
1681
1682           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1683
1684
1685           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1686
1687
1688           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1689
1690
1691           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1692
1693
1694           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1695
1696
1697           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1698
1699
1700           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1701
1702
1703           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1704
1705
1706           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1707
1708
1709           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1710
1711
1712           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1713
1714
1715           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1716
1717
1718           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1719
1720
1721           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1722
1723
1724           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1725
1726
1727           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1728
1729
1730           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1731
1732
1733           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1734
1735
1736           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1737
1738
1739           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1740
1741
1742           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1743
1744
1745           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1746
1747
1748           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1749
1750
1751           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1752
1753
1754           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1755
1756
1757           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1758
1759
1760           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Burg/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Fhourstones/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/01-qbsort/Makefile"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/03-testtrie/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/04-bisect/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/05-eks/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/08-main/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/09-vor/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/12-IOtest/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/15-trie/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/17-bintr/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/18-imp/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/Makefile"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bh/Makefile"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bisort/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/em3d/Makefile"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/health/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/mst/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/perimeter/Makefile"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/power/Makefile"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/treeadd/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/tsp/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/voronoi/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/OptimizerEval/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/anagram/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/bc/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ft/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ks/Makefile"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/yacr2/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/aha/Makefile"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/llubenchmark/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/MultiSource/sgefa/Makefile"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/MultiSource/sim/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/Makefile"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/Makefile"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/164.gzip/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/181.mcf/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/197.parser/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/254.gap/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/255.vortex/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/256.bzip2/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/300.twolf/Makefile"
1914
1915
1916           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1923
1924
1925           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Shootout/Makefile"
1929
1930
1931           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Stanford/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1935
1936
1937           ac_config_commands="$ac_config_commands tools/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands tools/as/Makefile"
1944
1945
1946           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1947
1948
1949           ac_config_commands="$ac_config_commands tools/dis/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands tools/link/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands tools/lli/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands tools/opt/Makefile"
1971
1972
1973           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1974
1975
1976           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands utils/Makefile"
1983
1984
1985           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
1986
1987
1988           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
1992
1993
1994           ac_config_commands="$ac_config_commands www/docs/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands projects/Makefile"
1998
1999
2000           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2001
2002
2003           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2004
2005
2006           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2007
2008
2009           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2010
2011
2012           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2013
2014
2015           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2016
2017
2018           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2019
2020
2021           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2022
2023
2024           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2025
2026
2027           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2028
2029
2030           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2031
2032
2033
2034
2035 # Find a good install program.  We prefer a C program (faster),
2036 # so one script is as good as another.  But avoid the broken or
2037 # incompatible versions:
2038 # SysV /etc/install, /usr/sbin/install
2039 # SunOS /usr/etc/install
2040 # IRIX /sbin/install
2041 # AIX /bin/install
2042 # AmigaOS /C/install, which installs bootblocks on floppy discs
2043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2046 # ./install, which can be erroneously created by make from ./install.sh.
2047 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2048 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2049 if test -z "$INSTALL"; then
2050 if test "${ac_cv_path_install+set}" = set; then
2051   echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056   IFS=$as_save_IFS
2057   test -z "$as_dir" && as_dir=.
2058   # Account for people who put trailing slashes in PATH elements.
2059 case $as_dir/ in
2060   ./ | .// | /cC/* | \
2061   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2062   /usr/ucb/* ) ;;
2063   *)
2064     # OSF1 and SCO ODT 3.0 have their own names for install.
2065     # Don't use installbsd from OSF since it installs stuff as root
2066     # by default.
2067     for ac_prog in ginstall scoinst install; do
2068       for ac_exec_ext in '' $ac_executable_extensions; do
2069         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2070           if test $ac_prog = install &&
2071             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2072             # AIX install.  It has an incompatible calling convention.
2073             :
2074           elif test $ac_prog = install &&
2075             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2076             # program-specific install script used by HP pwplus--don't use.
2077             :
2078           else
2079             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2080             break 3
2081           fi
2082         fi
2083       done
2084     done
2085     ;;
2086 esac
2087 done
2088
2089
2090 fi
2091   if test "${ac_cv_path_install+set}" = set; then
2092     INSTALL=$ac_cv_path_install
2093   else
2094     # As a last resort, use the slow shell script.  We don't cache a
2095     # path for INSTALL within a source directory, because that will
2096     # break other packages using the cache if that directory is
2097     # removed, or if the path is relative.
2098     INSTALL=$ac_install_sh
2099   fi
2100 fi
2101 echo "$as_me:$LINENO: result: $INSTALL" >&5
2102 echo "${ECHO_T}$INSTALL" >&6
2103
2104 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2105 # It thinks the first close brace ends the variable substitution.
2106 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2107
2108 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2109
2110 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2111
2112
2113 # Make sure we can run config.sub.
2114 $ac_config_sub sun4 >/dev/null 2>&1 ||
2115   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2116 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2117    { (exit 1); exit 1; }; }
2118
2119 echo "$as_me:$LINENO: checking build system type" >&5
2120 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2121 if test "${ac_cv_build+set}" = set; then
2122   echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124   ac_cv_build_alias=$build_alias
2125 test -z "$ac_cv_build_alias" &&
2126   ac_cv_build_alias=`$ac_config_guess`
2127 test -z "$ac_cv_build_alias" &&
2128   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2129 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2130    { (exit 1); exit 1; }; }
2131 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2132   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2133 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2134    { (exit 1); exit 1; }; }
2135
2136 fi
2137 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2138 echo "${ECHO_T}$ac_cv_build" >&6
2139 build=$ac_cv_build
2140 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2141 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2142 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2143
2144
2145 echo "$as_me:$LINENO: checking host system type" >&5
2146 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2147 if test "${ac_cv_host+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   ac_cv_host_alias=$host_alias
2151 test -z "$ac_cv_host_alias" &&
2152   ac_cv_host_alias=$ac_cv_build_alias
2153 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2154   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2155 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2156    { (exit 1); exit 1; }; }
2157
2158 fi
2159 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2160 echo "${ECHO_T}$ac_cv_host" >&6
2161 host=$ac_cv_host
2162 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2163 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2164 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2165
2166
2167 echo "$as_me:$LINENO: checking target system type" >&5
2168 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2169 if test "${ac_cv_target+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   ac_cv_target_alias=$target_alias
2173 test "x$ac_cv_target_alias" = "x" &&
2174   ac_cv_target_alias=$ac_cv_host_alias
2175 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2176   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2177 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2178    { (exit 1); exit 1; }; }
2179
2180 fi
2181 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2182 echo "${ECHO_T}$ac_cv_target" >&6
2183 target=$ac_cv_target
2184 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2185 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2186 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2187
2188
2189 # The aliases save the names the user supplied, while $host etc.
2190 # will get canonicalized.
2191 test -n "$target_alias" &&
2192   test "$program_prefix$program_suffix$program_transform_name" = \
2193     NONENONEs,x,x, &&
2194   program_prefix=${target_alias}-
2195
2196 case $build in
2197         *i*86*)  OS=Linux
2198
2199                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2200
2201                  ;;
2202
2203         *sparc*) OS=SunOS
2204
2205                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2206
2207                  ;;
2208
2209         *)       OS=Unknown
2210
2211                  ;;
2212 esac
2213
2214 case $target in
2215         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2216
2217                           ;;
2218 esac
2219
2220 case $target in
2221         *i*86*)           ARCH=x86
2222
2223                           ;;
2224         *sparc*solaris*)  ARCH=Sparc
2225
2226                           ;;
2227 esac
2228
2229
2230 ac_ext=cc
2231 ac_cpp='$CXXCPP $CPPFLAGS'
2232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2235 if test -n "$ac_tool_prefix"; then
2236   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2237   do
2238     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2240 echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2242 if test "${ac_cv_prog_CXX+set}" = set; then
2243   echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245   if test -n "$CXX"; then
2246   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2250 do
2251   IFS=$as_save_IFS
2252   test -z "$as_dir" && as_dir=.
2253   for ac_exec_ext in '' $ac_executable_extensions; do
2254   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2255     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257     break 2
2258   fi
2259 done
2260 done
2261
2262 fi
2263 fi
2264 CXX=$ac_cv_prog_CXX
2265 if test -n "$CXX"; then
2266   echo "$as_me:$LINENO: result: $CXX" >&5
2267 echo "${ECHO_T}$CXX" >&6
2268 else
2269   echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6
2271 fi
2272
2273     test -n "$CXX" && break
2274   done
2275 fi
2276 if test -z "$CXX"; then
2277   ac_ct_CXX=$CXX
2278   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2279 do
2280   # Extract the first word of "$ac_prog", so it can be a program name with args.
2281 set dummy $ac_prog; ac_word=$2
2282 echo "$as_me:$LINENO: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2284 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2285   echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287   if test -n "$ac_ct_CXX"; then
2288   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2289 else
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293   IFS=$as_save_IFS
2294   test -z "$as_dir" && as_dir=.
2295   for ac_exec_ext in '' $ac_executable_extensions; do
2296   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2297     ac_cv_prog_ac_ct_CXX="$ac_prog"
2298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299     break 2
2300   fi
2301 done
2302 done
2303
2304 fi
2305 fi
2306 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2307 if test -n "$ac_ct_CXX"; then
2308   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2309 echo "${ECHO_T}$ac_ct_CXX" >&6
2310 else
2311   echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6
2313 fi
2314
2315   test -n "$ac_ct_CXX" && break
2316 done
2317 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2318
2319   CXX=$ac_ct_CXX
2320 fi
2321
2322
2323 # Provide some information about the compiler.
2324 echo "$as_me:$LINENO:" \
2325      "checking for C++ compiler version" >&5
2326 ac_compiler=`set X $ac_compile; echo $2`
2327 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2328   (eval $ac_compiler --version </dev/null >&5) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }
2332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2333   (eval $ac_compiler -v </dev/null >&5) 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }
2337 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2338   (eval $ac_compiler -V </dev/null >&5) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }
2342
2343 cat >conftest.$ac_ext <<_ACEOF
2344 #line $LINENO "configure"
2345 /* confdefs.h.  */
2346 _ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h.  */
2350
2351 int
2352 main ()
2353 {
2354
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 ac_clean_files_save=$ac_clean_files
2360 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2361 # Try to create an executable without -o first, disregard a.out.
2362 # It will help us diagnose broken compilers, and finding out an intuition
2363 # of exeext.
2364 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2365 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2366 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2367 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2368   (eval $ac_link_default) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }; then
2372   # Find the output, starting from the most likely.  This scheme is
2373 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2374 # resort.
2375
2376 # Be careful to initialize this variable, since it used to be cached.
2377 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2378 ac_cv_exeext=
2379 # b.out is created by i960 compilers.
2380 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2381 do
2382   test -f "$ac_file" || continue
2383   case $ac_file in
2384     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2385         ;;
2386     conftest.$ac_ext )
2387         # This is the source file.
2388         ;;
2389     [ab].out )
2390         # We found the default executable, but exeext='' is most
2391         # certainly right.
2392         break;;
2393     *.* )
2394         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2395         # FIXME: I believe we export ac_cv_exeext for Libtool,
2396         # but it would be cool to find out if it's true.  Does anybody
2397         # maintain Libtool? --akim.
2398         export ac_cv_exeext
2399         break;;
2400     * )
2401         break;;
2402   esac
2403 done
2404 else
2405   echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2407
2408 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2409 See \`config.log' for more details." >&5
2410 echo "$as_me: error: C++ compiler cannot create executables
2411 See \`config.log' for more details." >&2;}
2412    { (exit 77); exit 77; }; }
2413 fi
2414
2415 ac_exeext=$ac_cv_exeext
2416 echo "$as_me:$LINENO: result: $ac_file" >&5
2417 echo "${ECHO_T}$ac_file" >&6
2418
2419 # Check the compiler produces executables we can run.  If not, either
2420 # the compiler is broken, or we cross compile.
2421 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2422 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2423 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2424 # If not cross compiling, check that we can run a simple program.
2425 if test "$cross_compiling" != yes; then
2426   if { ac_try='./$ac_file'
2427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428   (eval $ac_try) 2>&5
2429   ac_status=$?
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); }; }; then
2432     cross_compiling=no
2433   else
2434     if test "$cross_compiling" = maybe; then
2435         cross_compiling=yes
2436     else
2437         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2438 If you meant to cross compile, use \`--host'.
2439 See \`config.log' for more details." >&5
2440 echo "$as_me: error: cannot run C++ compiled programs.
2441 If you meant to cross compile, use \`--host'.
2442 See \`config.log' for more details." >&2;}
2443    { (exit 1); exit 1; }; }
2444     fi
2445   fi
2446 fi
2447 echo "$as_me:$LINENO: result: yes" >&5
2448 echo "${ECHO_T}yes" >&6
2449
2450 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2451 ac_clean_files=$ac_clean_files_save
2452 # Check the compiler produces executables we can run.  If not, either
2453 # the compiler is broken, or we cross compile.
2454 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2455 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2456 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2457 echo "${ECHO_T}$cross_compiling" >&6
2458
2459 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2460 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2462   (eval $ac_link) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }; then
2466   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2467 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2468 # work properly (i.e., refer to `conftest.exe'), while it won't with
2469 # `rm'.
2470 for ac_file in conftest.exe conftest conftest.*; do
2471   test -f "$ac_file" || continue
2472   case $ac_file in
2473     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2474     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2475           export ac_cv_exeext
2476           break;;
2477     * ) break;;
2478   esac
2479 done
2480 else
2481   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2482 See \`config.log' for more details." >&5
2483 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2484 See \`config.log' for more details." >&2;}
2485    { (exit 1); exit 1; }; }
2486 fi
2487
2488 rm -f conftest$ac_cv_exeext
2489 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2490 echo "${ECHO_T}$ac_cv_exeext" >&6
2491
2492 rm -f conftest.$ac_ext
2493 EXEEXT=$ac_cv_exeext
2494 ac_exeext=$EXEEXT
2495 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2496 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2497 if test "${ac_cv_objext+set}" = set; then
2498   echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500   cat >conftest.$ac_ext <<_ACEOF
2501 #line $LINENO "configure"
2502 /* confdefs.h.  */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h.  */
2507
2508 int
2509 main ()
2510 {
2511
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 rm -f conftest.o conftest.obj
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518   (eval $ac_compile) 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); }; then
2522   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2523   case $ac_file in
2524     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2525     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2526        break;;
2527   esac
2528 done
2529 else
2530   echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2532
2533 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2534 See \`config.log' for more details." >&5
2535 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2536 See \`config.log' for more details." >&2;}
2537    { (exit 1); exit 1; }; }
2538 fi
2539
2540 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2541 fi
2542 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2543 echo "${ECHO_T}$ac_cv_objext" >&6
2544 OBJEXT=$ac_cv_objext
2545 ac_objext=$OBJEXT
2546 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2547 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2548 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2549   echo $ECHO_N "(cached) $ECHO_C" >&6
2550 else
2551   cat >conftest.$ac_ext <<_ACEOF
2552 #line $LINENO "configure"
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558
2559 int
2560 main ()
2561 {
2562 #ifndef __GNUC__
2563        choke me
2564 #endif
2565
2566   ;
2567   return 0;
2568 }
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572   (eval $ac_compile) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); } &&
2576          { ac_try='test -s conftest.$ac_objext'
2577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578   (eval $ac_try) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }; }; then
2582   ac_compiler_gnu=yes
2583 else
2584   echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586
2587 ac_compiler_gnu=no
2588 fi
2589 rm -f conftest.$ac_objext conftest.$ac_ext
2590 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2591
2592 fi
2593 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2594 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2595 GXX=`test $ac_compiler_gnu = yes && echo yes`
2596 ac_test_CXXFLAGS=${CXXFLAGS+set}
2597 ac_save_CXXFLAGS=$CXXFLAGS
2598 CXXFLAGS="-g"
2599 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2600 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2601 if test "${ac_cv_prog_cxx_g+set}" = set; then
2602   echo $ECHO_N "(cached) $ECHO_C" >&6
2603 else
2604   cat >conftest.$ac_ext <<_ACEOF
2605 #line $LINENO "configure"
2606 /* confdefs.h.  */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h.  */
2611
2612 int
2613 main ()
2614 {
2615
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622   (eval $ac_compile) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); } &&
2626          { ac_try='test -s conftest.$ac_objext'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   ac_cv_prog_cxx_g=yes
2633 else
2634   echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 ac_cv_prog_cxx_g=no
2638 fi
2639 rm -f conftest.$ac_objext conftest.$ac_ext
2640 fi
2641 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2642 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2643 if test "$ac_test_CXXFLAGS" = set; then
2644   CXXFLAGS=$ac_save_CXXFLAGS
2645 elif test $ac_cv_prog_cxx_g = yes; then
2646   if test "$GXX" = yes; then
2647     CXXFLAGS="-g -O2"
2648   else
2649     CXXFLAGS="-g"
2650   fi
2651 else
2652   if test "$GXX" = yes; then
2653     CXXFLAGS="-O2"
2654   else
2655     CXXFLAGS=
2656   fi
2657 fi
2658 for ac_declaration in \
2659    ''\
2660    '#include <stdlib.h>' \
2661    'extern "C" void std::exit (int) throw (); using std::exit;' \
2662    'extern "C" void std::exit (int); using std::exit;' \
2663    'extern "C" void exit (int) throw ();' \
2664    'extern "C" void exit (int);' \
2665    'void exit (int);'
2666 do
2667   cat >conftest.$ac_ext <<_ACEOF
2668 #line $LINENO "configure"
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674 #include <stdlib.h>
2675 $ac_declaration
2676 int
2677 main ()
2678 {
2679 exit (42);
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 rm -f conftest.$ac_objext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686   (eval $ac_compile) 2>&5
2687   ac_status=$?
2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689   (exit $ac_status); } &&
2690          { ac_try='test -s conftest.$ac_objext'
2691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692   (eval $ac_try) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); }; }; then
2696   :
2697 else
2698   echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2700
2701 continue
2702 fi
2703 rm -f conftest.$ac_objext conftest.$ac_ext
2704   cat >conftest.$ac_ext <<_ACEOF
2705 #line $LINENO "configure"
2706 /* confdefs.h.  */
2707 _ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h.  */
2711 $ac_declaration
2712 int
2713 main ()
2714 {
2715 exit (42);
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722   (eval $ac_compile) 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); } &&
2726          { ac_try='test -s conftest.$ac_objext'
2727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728   (eval $ac_try) 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; }; then
2732   break
2733 else
2734   echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736
2737 fi
2738 rm -f conftest.$ac_objext conftest.$ac_ext
2739 done
2740 rm -f conftest*
2741 if test -n "$ac_declaration"; then
2742   echo '#ifdef __cplusplus' >>confdefs.h
2743   echo $ac_declaration      >>confdefs.h
2744   echo '#endif'             >>confdefs.h
2745 fi
2746
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752
2753 ac_ext=c
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758 if test -n "$ac_tool_prefix"; then
2759   for ac_prog in gcc
2760   do
2761     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2763 echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765 if test "${ac_cv_prog_CC+set}" = set; then
2766   echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768   if test -n "$CC"; then
2769   ac_cv_prog_CC="$CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774   IFS=$as_save_IFS
2775   test -z "$as_dir" && as_dir=.
2776   for ac_exec_ext in '' $ac_executable_extensions; do
2777   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780     break 2
2781   fi
2782 done
2783 done
2784
2785 fi
2786 fi
2787 CC=$ac_cv_prog_CC
2788 if test -n "$CC"; then
2789   echo "$as_me:$LINENO: result: $CC" >&5
2790 echo "${ECHO_T}$CC" >&6
2791 else
2792   echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2794 fi
2795
2796     test -n "$CC" && break
2797   done
2798 fi
2799 if test -z "$CC"; then
2800   ac_ct_CC=$CC
2801   for ac_prog in gcc
2802 do
2803   # Extract the first word of "$ac_prog", so it can be a program name with args.
2804 set dummy $ac_prog; ac_word=$2
2805 echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2808   echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810   if test -n "$ac_ct_CC"; then
2811   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2815 do
2816   IFS=$as_save_IFS
2817   test -z "$as_dir" && as_dir=.
2818   for ac_exec_ext in '' $ac_executable_extensions; do
2819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820     ac_cv_prog_ac_ct_CC="$ac_prog"
2821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822     break 2
2823   fi
2824 done
2825 done
2826
2827 fi
2828 fi
2829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830 if test -n "$ac_ct_CC"; then
2831   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2832 echo "${ECHO_T}$ac_ct_CC" >&6
2833 else
2834   echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6
2836 fi
2837
2838   test -n "$ac_ct_CC" && break
2839 done
2840
2841   CC=$ac_ct_CC
2842 fi
2843
2844
2845 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2846 See \`config.log' for more details." >&5
2847 echo "$as_me: error: no acceptable C compiler found in \$PATH
2848 See \`config.log' for more details." >&2;}
2849    { (exit 1); exit 1; }; }
2850
2851 # Provide some information about the compiler.
2852 echo "$as_me:$LINENO:" \
2853      "checking for C compiler version" >&5
2854 ac_compiler=`set X $ac_compile; echo $2`
2855 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2856   (eval $ac_compiler --version </dev/null >&5) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }
2860 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2861   (eval $ac_compiler -v </dev/null >&5) 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); }
2865 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2866   (eval $ac_compiler -V </dev/null >&5) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); }
2870
2871 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2872 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2873 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2874   echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876   cat >conftest.$ac_ext <<_ACEOF
2877 #line $LINENO "configure"
2878 /* confdefs.h.  */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h.  */
2883
2884 int
2885 main ()
2886 {
2887 #ifndef __GNUC__
2888        choke me
2889 #endif
2890
2891   ;
2892   return 0;
2893 }
2894 _ACEOF
2895 rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897   (eval $ac_compile) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); } &&
2901          { ac_try='test -s conftest.$ac_objext'
2902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903   (eval $ac_try) 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); }; }; then
2907   ac_compiler_gnu=yes
2908 else
2909   echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 ac_compiler_gnu=no
2913 fi
2914 rm -f conftest.$ac_objext conftest.$ac_ext
2915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2916
2917 fi
2918 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2919 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2920 GCC=`test $ac_compiler_gnu = yes && echo yes`
2921 ac_test_CFLAGS=${CFLAGS+set}
2922 ac_save_CFLAGS=$CFLAGS
2923 CFLAGS="-g"
2924 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2925 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2926 if test "${ac_cv_prog_cc_g+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929   cat >conftest.$ac_ext <<_ACEOF
2930 #line $LINENO "configure"
2931 /* confdefs.h.  */
2932 _ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h.  */
2936
2937 int
2938 main ()
2939 {
2940
2941   ;
2942   return 0;
2943 }
2944 _ACEOF
2945 rm -f conftest.$ac_objext
2946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2947   (eval $ac_compile) 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); } &&
2951          { ac_try='test -s conftest.$ac_objext'
2952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953   (eval $ac_try) 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }; }; then
2957   ac_cv_prog_cc_g=yes
2958 else
2959   echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2961
2962 ac_cv_prog_cc_g=no
2963 fi
2964 rm -f conftest.$ac_objext conftest.$ac_ext
2965 fi
2966 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2967 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2968 if test "$ac_test_CFLAGS" = set; then
2969   CFLAGS=$ac_save_CFLAGS
2970 elif test $ac_cv_prog_cc_g = yes; then
2971   if test "$GCC" = yes; then
2972     CFLAGS="-g -O2"
2973   else
2974     CFLAGS="-g"
2975   fi
2976 else
2977   if test "$GCC" = yes; then
2978     CFLAGS="-O2"
2979   else
2980     CFLAGS=
2981   fi
2982 fi
2983 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2984 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2985 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   ac_cv_prog_cc_stdc=no
2989 ac_save_CC=$CC
2990 cat >conftest.$ac_ext <<_ACEOF
2991 #line $LINENO "configure"
2992 /* confdefs.h.  */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h.  */
2997 #include <stdarg.h>
2998 #include <stdio.h>
2999 #include <sys/types.h>
3000 #include <sys/stat.h>
3001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3002 struct buf { int x; };
3003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3004 static char *e (p, i)
3005      char **p;
3006      int i;
3007 {
3008   return p[i];
3009 }
3010 static char *f (char * (*g) (char **, int), char **p, ...)
3011 {
3012   char *s;
3013   va_list v;
3014   va_start (v,p);
3015   s = g (p, va_arg (v,int));
3016   va_end (v);
3017   return s;
3018 }
3019 int test (int i, double x);
3020 struct s1 {int (*f) (int a);};
3021 struct s2 {int (*f) (double a);};
3022 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3023 int argc;
3024 char **argv;
3025 int
3026 main ()
3027 {
3028 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3029   ;
3030   return 0;
3031 }
3032 _ACEOF
3033 # Don't try gcc -ansi; that turns off useful extensions and
3034 # breaks some systems' header files.
3035 # AIX                   -qlanglvl=ansi
3036 # Ultrix and OSF/1      -std1
3037 # HP-UX 10.20 and later -Ae
3038 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3039 # SVR4                  -Xc -D__EXTENSIONS__
3040 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3041 do
3042   CC="$ac_save_CC $ac_arg"
3043   rm -f conftest.$ac_objext
3044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3045   (eval $ac_compile) 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } &&
3049          { ac_try='test -s conftest.$ac_objext'
3050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051   (eval $ac_try) 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; }; then
3055   ac_cv_prog_cc_stdc=$ac_arg
3056 break
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 fi
3062 rm -f conftest.$ac_objext
3063 done
3064 rm -f conftest.$ac_ext conftest.$ac_objext
3065 CC=$ac_save_CC
3066
3067 fi
3068
3069 case "x$ac_cv_prog_cc_stdc" in
3070   x|xno)
3071     echo "$as_me:$LINENO: result: none needed" >&5
3072 echo "${ECHO_T}none needed" >&6 ;;
3073   *)
3074     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3075 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3076     CC="$CC $ac_cv_prog_cc_stdc" ;;
3077 esac
3078
3079 # Some people use a C++ compiler to compile C.  Since we use `exit',
3080 # in C++ we need to declare it.  In case someone uses the same compiler
3081 # for both compiling C and C++ we need to have the C++ compiler decide
3082 # the declaration of exit, since it's the most demanding environment.
3083 cat >conftest.$ac_ext <<_ACEOF
3084 #ifndef __cplusplus
3085   choke me
3086 #endif
3087 _ACEOF
3088 rm -f conftest.$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090   (eval $ac_compile) 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } &&
3094          { ac_try='test -s conftest.$ac_objext'
3095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096   (eval $ac_try) 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; }; then
3100   for ac_declaration in \
3101    ''\
3102    '#include <stdlib.h>' \
3103    'extern "C" void std::exit (int) throw (); using std::exit;' \
3104    'extern "C" void std::exit (int); using std::exit;' \
3105    'extern "C" void exit (int) throw ();' \
3106    'extern "C" void exit (int);' \
3107    'void exit (int);'
3108 do
3109   cat >conftest.$ac_ext <<_ACEOF
3110 #line $LINENO "configure"
3111 /* confdefs.h.  */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h.  */
3116 #include <stdlib.h>
3117 $ac_declaration
3118 int
3119 main ()
3120 {
3121 exit (42);
3122   ;
3123   return 0;
3124 }
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128   (eval $ac_compile) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); } &&
3132          { ac_try='test -s conftest.$ac_objext'
3133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134   (eval $ac_try) 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }; }; then
3138   :
3139 else
3140   echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143 continue
3144 fi
3145 rm -f conftest.$ac_objext conftest.$ac_ext
3146   cat >conftest.$ac_ext <<_ACEOF
3147 #line $LINENO "configure"
3148 /* confdefs.h.  */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h.  */
3153 $ac_declaration
3154 int
3155 main ()
3156 {
3157 exit (42);
3158   ;
3159   return 0;
3160 }
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164   (eval $ac_compile) 2>&5
3165   ac_status=$?
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); } &&
3168          { ac_try='test -s conftest.$ac_objext'
3169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170   (eval $ac_try) 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }; }; then
3174   break
3175 else
3176   echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 fi
3180 rm -f conftest.$ac_objext conftest.$ac_ext
3181 done
3182 rm -f conftest*
3183 if test -n "$ac_declaration"; then
3184   echo '#ifdef __cplusplus' >>confdefs.h
3185   echo $ac_declaration      >>confdefs.h
3186   echo '#endif'             >>confdefs.h
3187 fi
3188
3189 else
3190   echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 fi
3194 rm -f conftest.$ac_objext conftest.$ac_ext
3195 ac_ext=c
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200
3201 ac_ext=c
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3207 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3208 # On Suns, sometimes $CPP names a directory.
3209 if test -n "$CPP" && test -d "$CPP"; then
3210   CPP=
3211 fi
3212 if test -z "$CPP"; then
3213   if test "${ac_cv_prog_CPP+set}" = set; then
3214   echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216       # Double quotes because CPP needs to be expanded
3217     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3218     do
3219       ac_preproc_ok=false
3220 for ac_c_preproc_warn_flag in '' yes
3221 do
3222   # Use a header file that comes with gcc, so configuring glibc
3223   # with a fresh cross-compiler works.
3224   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3225   # <limits.h> exists even on freestanding compilers.
3226   # On the NeXT, cc -E runs the code through the compiler's parser,
3227   # not just through cpp. "Syntax error" is here to catch this case.
3228   cat >conftest.$ac_ext <<_ACEOF
3229 #line $LINENO "configure"
3230 /* confdefs.h.  */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h.  */
3235 #ifdef __STDC__
3236 # include <limits.h>
3237 #else
3238 # include <assert.h>
3239 #endif
3240                      Syntax error
3241 _ACEOF
3242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3244   ac_status=$?
3245   grep -v '^ *+' conftest.er1 >conftest.err
3246   rm -f conftest.er1
3247   cat conftest.err >&5
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); } >/dev/null; then
3250   if test -s conftest.err; then
3251     ac_cpp_err=$ac_c_preproc_warn_flag
3252   else
3253     ac_cpp_err=
3254   fi
3255 else
3256   ac_cpp_err=yes
3257 fi
3258 if test -z "$ac_cpp_err"; then
3259   :
3260 else
3261   echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264   # Broken: fails on valid input.
3265 continue
3266 fi
3267 rm -f conftest.err conftest.$ac_ext
3268
3269   # OK, works on sane cases.  Now check whether non-existent headers
3270   # can be detected and how.
3271   cat >conftest.$ac_ext <<_ACEOF
3272 #line $LINENO "configure"
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278 #include <ac_nonexistent.h>
3279 _ACEOF
3280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
3285   cat conftest.err >&5
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } >/dev/null; then
3288   if test -s conftest.err; then
3289     ac_cpp_err=$ac_c_preproc_warn_flag
3290   else
3291     ac_cpp_err=
3292   fi
3293 else
3294   ac_cpp_err=yes
3295 fi
3296 if test -z "$ac_cpp_err"; then
3297   # Broken: success on invalid input.
3298 continue
3299 else
3300   echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303   # Passes both tests.
3304 ac_preproc_ok=:
3305 break
3306 fi
3307 rm -f conftest.err conftest.$ac_ext
3308
3309 done
3310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3311 rm -f conftest.err conftest.$ac_ext
3312 if $ac_preproc_ok; then
3313   break
3314 fi
3315
3316     done
3317     ac_cv_prog_CPP=$CPP
3318
3319 fi
3320   CPP=$ac_cv_prog_CPP
3321 else
3322   ac_cv_prog_CPP=$CPP
3323 fi
3324 echo "$as_me:$LINENO: result: $CPP" >&5
3325 echo "${ECHO_T}$CPP" >&6
3326 ac_preproc_ok=false
3327 for ac_c_preproc_warn_flag in '' yes
3328 do
3329   # Use a header file that comes with gcc, so configuring glibc
3330   # with a fresh cross-compiler works.
3331   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3332   # <limits.h> exists even on freestanding compilers.
3333   # On the NeXT, cc -E runs the code through the compiler's parser,
3334   # not just through cpp. "Syntax error" is here to catch this case.
3335   cat >conftest.$ac_ext <<_ACEOF
3336 #line $LINENO "configure"
3337 /* confdefs.h.  */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h.  */
3342 #ifdef __STDC__
3343 # include <limits.h>
3344 #else
3345 # include <assert.h>
3346 #endif
3347                      Syntax error
3348 _ACEOF
3349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3351   ac_status=$?
3352   grep -v '^ *+' conftest.er1 >conftest.err
3353   rm -f conftest.er1
3354   cat conftest.err >&5
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); } >/dev/null; then
3357   if test -s conftest.err; then
3358     ac_cpp_err=$ac_c_preproc_warn_flag
3359   else
3360     ac_cpp_err=
3361   fi
3362 else
3363   ac_cpp_err=yes
3364 fi
3365 if test -z "$ac_cpp_err"; then
3366   :
3367 else
3368   echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371   # Broken: fails on valid input.
3372 continue
3373 fi
3374 rm -f conftest.err conftest.$ac_ext
3375
3376   # OK, works on sane cases.  Now check whether non-existent headers
3377   # can be detected and how.
3378   cat >conftest.$ac_ext <<_ACEOF
3379 #line $LINENO "configure"
3380 /* confdefs.h.  */
3381 _ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h.  */
3385 #include <ac_nonexistent.h>
3386 _ACEOF
3387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3389   ac_status=$?
3390   grep -v '^ *+' conftest.er1 >conftest.err
3391   rm -f conftest.er1
3392   cat conftest.err >&5
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); } >/dev/null; then
3395   if test -s conftest.err; then
3396     ac_cpp_err=$ac_c_preproc_warn_flag
3397   else
3398     ac_cpp_err=
3399   fi
3400 else
3401   ac_cpp_err=yes
3402 fi
3403 if test -z "$ac_cpp_err"; then
3404   # Broken: success on invalid input.
3405 continue
3406 else
3407   echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410   # Passes both tests.
3411 ac_preproc_ok=:
3412 break
3413 fi
3414 rm -f conftest.err conftest.$ac_ext
3415
3416 done
3417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3418 rm -f conftest.err conftest.$ac_ext
3419 if $ac_preproc_ok; then
3420   :
3421 else
3422   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3423 See \`config.log' for more details." >&5
3424 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3425 See \`config.log' for more details." >&2;}
3426    { (exit 1); exit 1; }; }
3427 fi
3428
3429 ac_ext=c
3430 ac_cpp='$CPP $CPPFLAGS'
3431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434
3435
3436 if test "$GCC" != "yes"
3437 then
3438         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3439 echo "$as_me: error: gcc required but not found" >&2;}
3440    { (exit 1); exit 1; }; }
3441 fi
3442
3443 if test "$GXX" != "yes"
3444 then
3445         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3446 echo "$as_me: error: g++ required but not found" >&2;}
3447    { (exit 1); exit 1; }; }
3448 fi
3449
3450 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3451 if test "$gccmajor" -lt "3"
3452 then
3453         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3454 echo "$as_me: error: gcc 3.x required" >&2;}
3455    { (exit 1); exit 1; }; }
3456 fi
3457
3458  echo "$as_me:$LINENO: checking for GNU make" >&5
3459 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3460 if test "${_cv_gnu_make_command+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463   _cv_gnu_make_command='' ;
3464                 for a in "$MAKE" make gmake gnumake ; do
3465                         if test -z "$a" ; then continue ; fi ;
3466                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3467                                 _cv_gnu_make_command=$a ;
3468                                 break;
3469                         fi
3470                 done ;
3471
3472 fi
3473 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3474 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3475         if test  "x$_cv_gnu_make_command" != "x"  ; then
3476                 ifGNUmake='' ;
3477         else
3478                 ifGNUmake='#' ;
3479                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3480 echo "${ECHO_T}\"Not found\"" >&6;
3481         fi
3482
3483
3484 if test -z "$_cv_gnu_make_command"
3485 then
3486         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3487 echo "$as_me: error: GNU Make required but not found" >&2;}
3488    { (exit 1); exit 1; }; }
3489 fi
3490
3491
3492 echo "$as_me:$LINENO: checking " >&5
3493 echo $ECHO_N "checking ... $ECHO_C" >&6
3494 if test "${ac_cv_has_flex+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   for ac_prog in flex lex
3498 do
3499   # Extract the first word of "$ac_prog", so it can be a program name with args.
3500 set dummy $ac_prog; ac_word=$2
3501 echo "$as_me:$LINENO: checking for $ac_word" >&5
3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3503 if test "${ac_cv_prog_LEX+set}" = set; then
3504   echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506   if test -n "$LEX"; then
3507   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3511 do
3512   IFS=$as_save_IFS
3513   test -z "$as_dir" && as_dir=.
3514   for ac_exec_ext in '' $ac_executable_extensions; do
3515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516     ac_cv_prog_LEX="$ac_prog"
3517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518     break 2
3519   fi
3520 done
3521 done
3522
3523 fi
3524 fi
3525 LEX=$ac_cv_prog_LEX
3526 if test -n "$LEX"; then
3527   echo "$as_me:$LINENO: result: $LEX" >&5
3528 echo "${ECHO_T}$LEX" >&6
3529 else
3530   echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3532 fi
3533
3534   test -n "$LEX" && break
3535 done
3536 test -n "$LEX" || LEX=":"
3537
3538 if test -z "$LEXLIB"
3539 then
3540   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3541 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3542 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   ac_check_lib_save_LIBS=$LIBS
3546 LIBS="-lfl  $LIBS"
3547 cat >conftest.$ac_ext <<_ACEOF
3548 #line $LINENO "configure"
3549 /* confdefs.h.  */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h.  */
3554
3555 /* Override any gcc2 internal prototype to avoid an error.  */
3556 #ifdef __cplusplus
3557 extern "C"
3558 #endif
3559 /* We use char because int might match the return type of a gcc2
3560    builtin and then its argument prototype would still apply.  */
3561 char yywrap ();
3562 int
3563 main ()
3564 {
3565 yywrap ();
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 rm -f conftest.$ac_objext conftest$ac_exeext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3572   (eval $ac_link) 2>&5
3573   ac_status=$?
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } &&
3576          { ac_try='test -s conftest$ac_exeext'
3577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578   (eval $ac_try) 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); }; }; then
3582   ac_cv_lib_fl_yywrap=yes
3583 else
3584   echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 ac_cv_lib_fl_yywrap=no
3588 fi
3589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3590 LIBS=$ac_check_lib_save_LIBS
3591 fi
3592 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3593 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3594 if test $ac_cv_lib_fl_yywrap = yes; then
3595   LEXLIB="-lfl"
3596 else
3597   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3598 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3599 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3600   echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602   ac_check_lib_save_LIBS=$LIBS
3603 LIBS="-ll  $LIBS"
3604 cat >conftest.$ac_ext <<_ACEOF
3605 #line $LINENO "configure"
3606 /* confdefs.h.  */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h.  */
3611
3612 /* Override any gcc2 internal prototype to avoid an error.  */
3613 #ifdef __cplusplus
3614 extern "C"
3615 #endif
3616 /* We use char because int might match the return type of a gcc2
3617    builtin and then its argument prototype would still apply.  */
3618 char yywrap ();
3619 int
3620 main ()
3621 {
3622 yywrap ();
3623   ;
3624   return 0;
3625 }
3626 _ACEOF
3627 rm -f conftest.$ac_objext conftest$ac_exeext
3628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3629   (eval $ac_link) 2>&5
3630   ac_status=$?
3631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632   (exit $ac_status); } &&
3633          { ac_try='test -s conftest$ac_exeext'
3634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635   (eval $ac_try) 2>&5
3636   ac_status=$?
3637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); }; }; then
3639   ac_cv_lib_l_yywrap=yes
3640 else
3641   echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3643
3644 ac_cv_lib_l_yywrap=no
3645 fi
3646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3647 LIBS=$ac_check_lib_save_LIBS
3648 fi
3649 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3650 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3651 if test $ac_cv_lib_l_yywrap = yes; then
3652   LEXLIB="-ll"
3653 fi
3654
3655 fi
3656
3657 fi
3658
3659 if test "x$LEX" != "x:"; then
3660   echo "$as_me:$LINENO: checking lex output file root" >&5
3661 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3662 if test "${ac_cv_prog_lex_root+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   # The minimal lex program is just a single line: %%.  But some broken lexes
3666 # (Solaris, I think it was) want two %% lines, so accommodate them.
3667 cat >conftest.l <<_ACEOF
3668 %%
3669 %%
3670 _ACEOF
3671 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3672   (eval $LEX conftest.l) 2>&5
3673   ac_status=$?
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); }
3676 if test -f lex.yy.c; then
3677   ac_cv_prog_lex_root=lex.yy
3678 elif test -f lexyy.c; then
3679   ac_cv_prog_lex_root=lexyy
3680 else
3681   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3682 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3683    { (exit 1); exit 1; }; }
3684 fi
3685 fi
3686 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3687 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3688 rm -f conftest.l
3689 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3690
3691 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3692 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3693 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3694   echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696   # POSIX says lex can declare yytext either as a pointer or an array; the
3697 # default is implementation-dependent. Figure out which it is, since
3698 # not all implementations provide the %pointer and %array declarations.
3699 ac_cv_prog_lex_yytext_pointer=no
3700 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3701 ac_save_LIBS=$LIBS
3702 LIBS="$LIBS $LEXLIB"
3703 cat >conftest.$ac_ext <<_ACEOF
3704 `cat $LEX_OUTPUT_ROOT.c`
3705 _ACEOF
3706 rm -f conftest.$ac_objext conftest$ac_exeext
3707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3708   (eval $ac_link) 2>&5
3709   ac_status=$?
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); } &&
3712          { ac_try='test -s conftest$ac_exeext'
3713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714   (eval $ac_try) 2>&5
3715   ac_status=$?
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); }; }; then
3718   ac_cv_prog_lex_yytext_pointer=yes
3719 else
3720   echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 fi
3724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3725 LIBS=$ac_save_LIBS
3726 rm -f "${LEX_OUTPUT_ROOT}.c"
3727
3728 fi
3729 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3730 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3731 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3732
3733 cat >>confdefs.h <<\_ACEOF
3734 #define YYTEXT_POINTER 1
3735 _ACEOF
3736
3737 fi
3738
3739 fi
3740
3741 fi
3742 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3743 echo "${ECHO_T}$ac_cv_has_flex" >&6
3744 if test "$LEX" != "flex"; then
3745   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3746 echo "$as_me: error: flex not found but required" >&2;}
3747    { (exit 1); exit 1; }; }
3748 fi
3749
3750 echo "$as_me:$LINENO: checking " >&5
3751 echo $ECHO_N "checking ... $ECHO_C" >&6
3752 if test "${ac_cv_has_bison+set}" = set; then
3753   echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755   for ac_prog in 'bison -y' byacc
3756 do
3757   # Extract the first word of "$ac_prog", so it can be a program name with args.
3758 set dummy $ac_prog; ac_word=$2
3759 echo "$as_me:$LINENO: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761 if test "${ac_cv_prog_YACC+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   if test -n "$YACC"; then
3765   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770   IFS=$as_save_IFS
3771   test -z "$as_dir" && as_dir=.
3772   for ac_exec_ext in '' $ac_executable_extensions; do
3773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774     ac_cv_prog_YACC="$ac_prog"
3775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776     break 2
3777   fi
3778 done
3779 done
3780
3781 fi
3782 fi
3783 YACC=$ac_cv_prog_YACC
3784 if test -n "$YACC"; then
3785   echo "$as_me:$LINENO: result: $YACC" >&5
3786 echo "${ECHO_T}$YACC" >&6
3787 else
3788   echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6
3790 fi
3791
3792   test -n "$YACC" && break
3793 done
3794 test -n "$YACC" || YACC="yacc"
3795
3796
3797 fi
3798 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3799 echo "${ECHO_T}$ac_cv_has_bison" >&6
3800 if test "$YACC" != "bison -y"; then
3801   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3802 echo "$as_me: error: bison not found but required" >&2;}
3803    { (exit 1); exit 1; }; }
3804 else
3805   YACC=bison
3806
3807 fi
3808
3809
3810 # Check whether --enable-shared or --disable-shared was given.
3811 if test "${enable_shared+set}" = set; then
3812   enableval="$enable_shared"
3813   p=${PACKAGE-default}
3814     case $enableval in
3815     yes) enable_shared=yes ;;
3816     no) enable_shared=no ;;
3817     *)
3818       enable_shared=no
3819       # Look at the argument we got.  We use all the common list separators.
3820       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3821       for pkg in $enableval; do
3822         IFS="$lt_save_ifs"
3823         if test "X$pkg" = "X$p"; then
3824           enable_shared=yes
3825         fi
3826       done
3827       IFS="$lt_save_ifs"
3828       ;;
3829     esac
3830 else
3831   enable_shared=yes
3832 fi;
3833
3834 # Check whether --enable-static or --disable-static was given.
3835 if test "${enable_static+set}" = set; then
3836   enableval="$enable_static"
3837   p=${PACKAGE-default}
3838     case $enableval in
3839     yes) enable_static=yes ;;
3840     no) enable_static=no ;;
3841     *)
3842      enable_static=no
3843       # Look at the argument we got.  We use all the common list separators.
3844       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3845       for pkg in $enableval; do
3846         IFS="$lt_save_ifs"
3847         if test "X$pkg" = "X$p"; then
3848           enable_static=yes
3849         fi
3850       done
3851       IFS="$lt_save_ifs"
3852       ;;
3853     esac
3854 else
3855   enable_static=yes
3856 fi;
3857
3858 # Check whether --enable-fast-install or --disable-fast-install was given.
3859 if test "${enable_fast_install+set}" = set; then
3860   enableval="$enable_fast_install"
3861   p=${PACKAGE-default}
3862     case $enableval in
3863     yes) enable_fast_install=yes ;;
3864     no) enable_fast_install=no ;;
3865     *)
3866       enable_fast_install=no
3867       # Look at the argument we got.  We use all the common list separators.
3868       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3869       for pkg in $enableval; do
3870         IFS="$lt_save_ifs"
3871         if test "X$pkg" = "X$p"; then
3872           enable_fast_install=yes
3873         fi
3874       done
3875       IFS="$lt_save_ifs"
3876       ;;
3877     esac
3878 else
3879   enable_fast_install=yes
3880 fi;
3881
3882 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3883 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3884 if test "${lt_cv_path_SED+set}" = set; then
3885   echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887   # Loop through the user's path and test for sed and gsed.
3888 # Then use that list of sed's as ones to test for truncation.
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892   IFS=$as_save_IFS
3893   test -z "$as_dir" && as_dir=.
3894   for lt_ac_prog in sed gsed; do
3895     for ac_exec_ext in '' $ac_executable_extensions; do
3896       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3897         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3898       fi
3899     done
3900   done
3901 done
3902 lt_ac_max=0
3903 lt_ac_count=0
3904 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3905 # along with /bin/sed that truncates output.
3906 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3907   test ! -f $lt_ac_sed && break
3908   cat /dev/null > conftest.in
3909   lt_ac_count=0
3910   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3911   # Check for GNU sed and select it if it is found.
3912   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3913     lt_cv_path_SED=$lt_ac_sed
3914     break
3915   fi
3916   while true; do
3917     cat conftest.in conftest.in >conftest.tmp
3918     mv conftest.tmp conftest.in
3919     cp conftest.in conftest.nl
3920     echo >>conftest.nl
3921     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3922     cmp -s conftest.out conftest.nl || break
3923     # 10000 chars as input seems more than enough
3924     test $lt_ac_count -gt 10 && break
3925     lt_ac_count=`expr $lt_ac_count + 1`
3926     if test $lt_ac_count -gt $lt_ac_max; then
3927       lt_ac_max=$lt_ac_count
3928       lt_cv_path_SED=$lt_ac_sed
3929     fi
3930   done
3931 done
3932 SED=$lt_cv_path_SED
3933
3934 fi
3935
3936 echo "$as_me:$LINENO: result: $SED" >&5
3937 echo "${ECHO_T}$SED" >&6
3938
3939 echo "$as_me:$LINENO: checking for egrep" >&5
3940 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3941 if test "${ac_cv_prog_egrep+set}" = set; then
3942   echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3945     then ac_cv_prog_egrep='grep -E'
3946     else ac_cv_prog_egrep='egrep'
3947     fi
3948 fi
3949 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3950 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3951  EGREP=$ac_cv_prog_egrep
3952
3953
3954
3955 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3956 if test "${with_gnu_ld+set}" = set; then
3957   withval="$with_gnu_ld"
3958   test "$withval" = no || with_gnu_ld=yes
3959 else
3960   with_gnu_ld=no
3961 fi;
3962 ac_prog=ld
3963 if test "$GCC" = yes; then
3964   # Check if gcc -print-prog-name=ld gives a path.
3965   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3966 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3967   case $host in
3968   *-*-mingw*)
3969     # gcc leaves a trailing carriage return which upsets mingw
3970     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3971   *)
3972     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3973   esac
3974   case $ac_prog in
3975     # Accept absolute paths.
3976     [\\/]* | ?:[\\/]*)
3977       re_direlt='/[^/][^/]*/\.\./'
3978       # Canonicalize the path of ld
3979       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3980       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3981         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3982       done
3983       test -z "$LD" && LD="$ac_prog"
3984       ;;
3985   "")
3986     # If it fails, then pretend we aren't using GCC.
3987     ac_prog=ld
3988     ;;
3989   *)
3990     # If it is relative, then search for the first ld in PATH.
3991     with_gnu_ld=unknown
3992     ;;
3993   esac
3994 elif test "$with_gnu_ld" = yes; then
3995   echo "$as_me:$LINENO: checking for GNU ld" >&5
3996 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3997 else
3998   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3999 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4000 fi
4001 if test "${lt_cv_path_LD+set}" = set; then
4002   echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004   if test -z "$LD"; then
4005   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4006   for ac_dir in $PATH; do
4007     IFS="$lt_save_ifs"
4008     test -z "$ac_dir" && ac_dir=.
4009     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4010       lt_cv_path_LD="$ac_dir/$ac_prog"
4011       # Check to see if the program is GNU ld.  I'd rather use --version,
4012       # but apparently some GNU ld's only accept -v.
4013       # Break only if it was the GNU/non-GNU ld that we prefer.
4014       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4015       *GNU* | *'with BFD'*)
4016         test "$with_gnu_ld" != no && break
4017         ;;
4018       *)
4019         test "$with_gnu_ld" != yes && break
4020         ;;
4021       esac
4022     fi
4023   done
4024   IFS="$lt_save_ifs"
4025 else
4026   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4027 fi
4028 fi
4029
4030 LD="$lt_cv_path_LD"
4031 if test -n "$LD"; then
4032   echo "$as_me:$LINENO: result: $LD" >&5
4033 echo "${ECHO_T}$LD" >&6
4034 else
4035   echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4037 fi
4038 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4039 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4040    { (exit 1); exit 1; }; }
4041 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4042 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4043 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4047 case `"$LD" -v 2>&1 </dev/null` in
4048 *GNU* | *'with BFD'*)
4049   lt_cv_prog_gnu_ld=yes
4050   ;;
4051 *)
4052   lt_cv_prog_gnu_ld=no
4053   ;;
4054 esac
4055 fi
4056 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4057 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4058 with_gnu_ld=$lt_cv_prog_gnu_ld
4059
4060
4061 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4062 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4063 if test "${lt_cv_ld_reload_flag+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   lt_cv_ld_reload_flag='-r'
4067 fi
4068 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4069 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4070 reload_flag=$lt_cv_ld_reload_flag
4071 case $reload_flag in
4072 "" | " "*) ;;
4073 *) reload_flag=" $reload_flag" ;;
4074 esac
4075 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4076
4077 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4078 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4079 if test "${lt_cv_path_NM+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   if test -n "$NM"; then
4083   # Let the user override the test.
4084   lt_cv_path_NM="$NM"
4085 else
4086   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4087   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4088     IFS="$lt_save_ifs"
4089     test -z "$ac_dir" && ac_dir=.
4090     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4091     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4092       # Check to see if the nm accepts a BSD-compat flag.
4093       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4094       #   nm: unknown option "B" ignored
4095       # Tru64's nm complains that /dev/null is an invalid object file
4096       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4097       */dev/null* | *'Invalid file or object type'*)
4098         lt_cv_path_NM="$tmp_nm -B"
4099         break
4100         ;;
4101       *)
4102         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4103         */dev/null*)
4104           lt_cv_path_NM="$tmp_nm -p"
4105           break
4106           ;;
4107         *)
4108           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4109           continue # so that we can try to find one that supports BSD flags
4110           ;;
4111         esac
4112       esac
4113     fi
4114   done
4115   IFS="$lt_save_ifs"
4116   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4117 fi
4118 fi
4119 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4120 echo "${ECHO_T}$lt_cv_path_NM" >&6
4121 NM="$lt_cv_path_NM"
4122
4123 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4124 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4125 LN_S=$as_ln_s
4126 if test "$LN_S" = "ln -s"; then
4127   echo "$as_me:$LINENO: result: yes" >&5
4128 echo "${ECHO_T}yes" >&6
4129 else
4130   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4131 echo "${ECHO_T}no, using $LN_S" >&6
4132 fi
4133
4134 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4135 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4136 if test "${lt_cv_deplibs_check_method+set}" = set; then
4137   echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139   lt_cv_file_magic_cmd='$MAGIC_CMD'
4140 lt_cv_file_magic_test_file=
4141 lt_cv_deplibs_check_method='unknown'
4142 # Need to set the preceding variable on all platforms that support
4143 # interlibrary dependencies.
4144 # 'none' -- dependencies not supported.
4145 # `unknown' -- same as none, but documents that we really don't know.
4146 # 'pass_all' -- all dependencies passed with no checks.
4147 # 'test_compile' -- check by making test program.
4148 # 'file_magic [[regex]]' -- check by looking for files in library path
4149 # which responds to the $file_magic_cmd with a given extended regex.
4150 # If you have `file' or equivalent on your system and you're not sure
4151 # whether `pass_all' will *always* work, you probably want this one.
4152
4153 case $host_os in
4154 aix4* | aix5*)
4155   lt_cv_deplibs_check_method=pass_all
4156   ;;
4157
4158 beos*)
4159   lt_cv_deplibs_check_method=pass_all
4160   ;;
4161
4162 bsdi4*)
4163   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4164   lt_cv_file_magic_cmd='/usr/bin/file -L'
4165   lt_cv_file_magic_test_file=/shlib/libc.so
4166   ;;
4167
4168 cygwin* | mingw* | pw32*)
4169   # win32_libid is a shell function defined in ltmain.sh
4170   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4171   lt_cv_file_magic_cmd='win32_libid'
4172   ;;
4173
4174 darwin* | rhapsody*)
4175   # this will be overwritten by pass_all, but leave it in just in case
4176   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4177   lt_cv_file_magic_cmd='/usr/bin/file -L'
4178   case "$host_os" in
4179   rhapsody* | darwin1.[012])
4180     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4181     ;;
4182   *) # Darwin 1.3 on
4183     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4184     ;;
4185   esac
4186   lt_cv_deplibs_check_method=pass_all
4187   ;;
4188
4189 freebsd*)
4190   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4191     case $host_cpu in
4192     i*86 )
4193       # Not sure whether the presence of OpenBSD here was a mistake.
4194       # Let's accept both of them until this is cleared up.
4195       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4196       lt_cv_file_magic_cmd=/usr/bin/file
4197       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4198       ;;
4199     esac
4200   else
4201     lt_cv_deplibs_check_method=pass_all
4202   fi
4203   ;;
4204
4205 gnu*)
4206   lt_cv_deplibs_check_method=pass_all
4207   ;;
4208
4209 hpux10.20* | hpux11*)
4210   lt_cv_file_magic_cmd=/usr/bin/file
4211   case "$host_cpu" in
4212   ia64*)
4213     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4214     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4215     ;;
4216   hppa*64*)
4217     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]'
4218     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4219     ;;
4220   *)
4221     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4222     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4223     ;;
4224   esac
4225   ;;
4226
4227 irix5* | irix6* | nonstopux*)
4228   case $host_os in
4229   irix5* | nonstopux*)
4230     # this will be overridden with pass_all, but let us keep it just in case
4231     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4232     ;;
4233   *)
4234     case $LD in
4235     *-32|*"-32 ") libmagic=32-bit;;
4236     *-n32|*"-n32 ") libmagic=N32;;
4237     *-64|*"-64 ") libmagic=64-bit;;
4238     *) libmagic=never-match;;
4239     esac
4240     # this will be overridden with pass_all, but let us keep it just in case
4241     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4242     ;;
4243   esac
4244   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4245   lt_cv_deplibs_check_method=pass_all
4246   ;;
4247
4248 # This must be Linux ELF.
4249 linux*)
4250   case $host_cpu in
4251   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4252     lt_cv_deplibs_check_method=pass_all ;;
4253   *)
4254     # glibc up to 2.1.1 does not perform some relocations on ARM
4255     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4256   esac
4257   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4258   ;;
4259
4260 netbsd*)
4261   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4262     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4263   else
4264     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4265   fi
4266   ;;
4267
4268 newos6*)
4269   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4270   lt_cv_file_magic_cmd=/usr/bin/file
4271   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4272   ;;
4273
4274 nto-qnx)
4275   lt_cv_deplibs_check_method=unknown
4276   ;;
4277
4278 openbsd*)
4279   lt_cv_file_magic_cmd=/usr/bin/file
4280   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4281   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4282     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4283   else
4284     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4285   fi
4286   ;;
4287
4288 osf3* | osf4* | osf5*)
4289   # this will be overridden with pass_all, but let us keep it just in case
4290   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4291   lt_cv_file_magic_test_file=/shlib/libc.so
4292   lt_cv_deplibs_check_method=pass_all
4293   ;;
4294
4295 sco3.2v5*)
4296   lt_cv_deplibs_check_method=pass_all
4297   ;;
4298
4299 solaris*)
4300   lt_cv_deplibs_check_method=pass_all
4301   lt_cv_file_magic_test_file=/lib/libc.so
4302   ;;
4303
4304 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4305   case $host_vendor in
4306   motorola)
4307     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]'
4308     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4309     ;;
4310   ncr)
4311     lt_cv_deplibs_check_method=pass_all
4312     ;;
4313   sequent)
4314     lt_cv_file_magic_cmd='/bin/file'
4315     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4316     ;;
4317   sni)
4318     lt_cv_file_magic_cmd='/bin/file'
4319     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4320     lt_cv_file_magic_test_file=/lib/libc.so
4321     ;;
4322   siemens)
4323     lt_cv_deplibs_check_method=pass_all
4324     ;;
4325   esac
4326   ;;
4327
4328 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4329   lt_cv_deplibs_check_method=pass_all
4330   ;;
4331 esac
4332
4333 fi
4334 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4335 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4336 file_magic_cmd=$lt_cv_file_magic_cmd
4337 deplibs_check_method=$lt_cv_deplibs_check_method
4338 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4339
4340
4341
4342
4343 # If no C compiler was specified, use CC.
4344 LTCC=${LTCC-"$CC"}
4345
4346 # Allow CC to be a program name with arguments.
4347 compiler=$CC
4348
4349 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4350 if test "${enable_libtool_lock+set}" = set; then
4351   enableval="$enable_libtool_lock"
4352
4353 fi;
4354 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4355
4356 # Some flags need to be propagated to the compiler or linker for good
4357 # libtool support.
4358 case $host in
4359 ia64-*-hpux*)
4360   # Find out which ABI we are using.
4361   echo 'int i;' > conftest.$ac_ext
4362   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363   (eval $ac_compile) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; then
4367     case `/usr/bin/file conftest.$ac_objext` in
4368     *ELF-32*)
4369       HPUX_IA64_MODE="32"
4370       ;;
4371     *ELF-64*)
4372       HPUX_IA64_MODE="64"
4373       ;;
4374     esac
4375   fi
4376   rm -rf conftest*
4377   ;;
4378 *-*-irix6*)
4379   # Find out which ABI we are using.
4380   echo '#line 4380 "configure"' > conftest.$ac_ext
4381   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4382   (eval $ac_compile) 2>&5
4383   ac_status=$?
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); }; then
4386    if test "$lt_cv_prog_gnu_ld" = yes; then
4387     case `/usr/bin/file conftest.$ac_objext` in
4388     *32-bit*)
4389       LD="${LD-ld} -melf32bsmip"
4390       ;;
4391     *N32*)
4392       LD="${LD-ld} -melf32bmipn32"
4393       ;;
4394     *64-bit*)
4395       LD="${LD-ld} -melf64bmip"
4396       ;;
4397     esac
4398    else
4399     case `/usr/bin/file conftest.$ac_objext` in
4400     *32-bit*)
4401       LD="${LD-ld} -32"
4402       ;;
4403     *N32*)
4404       LD="${LD-ld} -n32"
4405       ;;
4406     *64-bit*)
4407       LD="${LD-ld} -64"
4408       ;;
4409     esac
4410    fi
4411   fi
4412   rm -rf conftest*
4413   ;;
4414
4415 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4416   # Find out which ABI we are using.
4417   echo 'int i;' > conftest.$ac_ext
4418   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419   (eval $ac_compile) 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); }; then
4423     case "`/usr/bin/file conftest.o`" in
4424     *32-bit*)
4425       case $host in
4426         x86_64-*linux*)
4427           LD="${LD-ld} -m elf_i386"
4428           ;;
4429         ppc64-*linux*)
4430           LD="${LD-ld} -m elf32ppclinux"
4431           ;;
4432         s390x-*linux*)
4433           LD="${LD-ld} -m elf_s390"
4434           ;;
4435         sparc64-*linux*)
4436           LD="${LD-ld} -m elf32_sparc"
4437           ;;
4438       esac
4439       ;;
4440     *64-bit*)
4441       case $host in
4442         x86_64-*linux*)
4443           LD="${LD-ld} -m elf_x86_64"
4444           ;;
4445         ppc*-*linux*|powerpc*-*linux*)
4446           LD="${LD-ld} -m elf64ppc"
4447           ;;
4448         s390*-*linux*)
4449           LD="${LD-ld} -m elf64_s390"
4450           ;;
4451         sparc*-*linux*)
4452           LD="${LD-ld} -m elf64_sparc"
4453           ;;
4454       esac
4455       ;;
4456     esac
4457   fi
4458   rm -rf conftest*
4459   ;;
4460
4461 *-*-sco3.2v5*)
4462   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4463   SAVE_CFLAGS="$CFLAGS"
4464   CFLAGS="$CFLAGS -belf"
4465   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4466 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4467 if test "${lt_cv_cc_needs_belf+set}" = set; then
4468   echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470   ac_ext=c
4471 ac_cpp='$CPP $CPPFLAGS'
4472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475
4476      cat >conftest.$ac_ext <<_ACEOF
4477 #line $LINENO "configure"
4478 /* confdefs.h.  */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h.  */
4483
4484 int
4485 main ()
4486 {
4487
4488   ;
4489   return 0;
4490 }
4491 _ACEOF
4492 rm -f conftest.$ac_objext conftest$ac_exeext
4493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4494   (eval $ac_link) 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } &&
4498          { ac_try='test -s conftest$ac_exeext'
4499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500   (eval $ac_try) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; }; then
4504   lt_cv_cc_needs_belf=yes
4505 else
4506   echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4508
4509 lt_cv_cc_needs_belf=no
4510 fi
4511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4512      ac_ext=c
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517
4518 fi
4519 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4520 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4521   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4522     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4523     CFLAGS="$SAVE_CFLAGS"
4524   fi
4525   ;;
4526
4527 esac
4528
4529 need_locks="$enable_libtool_lock"
4530
4531
4532
4533 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4534 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4535 if test "${ac_cv_header_stdc+set}" = set; then
4536   echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538   cat >conftest.$ac_ext <<_ACEOF
4539 #line $LINENO "configure"
4540 /* confdefs.h.  */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h.  */
4545 #include <stdlib.h>
4546 #include <stdarg.h>
4547 #include <string.h>
4548 #include <float.h>
4549
4550 int
4551 main ()
4552 {
4553
4554   ;
4555   return 0;
4556 }
4557 _ACEOF
4558 rm -f conftest.$ac_objext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560   (eval $ac_compile) 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); } &&
4564          { ac_try='test -s conftest.$ac_objext'
4565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566   (eval $ac_try) 2>&5
4567   ac_status=$?
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); }; }; then
4570   ac_cv_header_stdc=yes
4571 else
4572   echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4574
4575 ac_cv_header_stdc=no
4576 fi
4577 rm -f conftest.$ac_objext conftest.$ac_ext
4578
4579 if test $ac_cv_header_stdc = yes; then
4580   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4581   cat >conftest.$ac_ext <<_ACEOF
4582 #line $LINENO "configure"
4583 /* confdefs.h.  */
4584 _ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h.  */
4588 #include <string.h>
4589
4590 _ACEOF
4591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4592   $EGREP "memchr" >/dev/null 2>&1; then
4593   :
4594 else
4595   ac_cv_header_stdc=no
4596 fi
4597 rm -f conftest*
4598
4599 fi
4600
4601 if test $ac_cv_header_stdc = yes; then
4602   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4603   cat >conftest.$ac_ext <<_ACEOF
4604 #line $LINENO "configure"
4605 /* confdefs.h.  */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h.  */
4610 #include <stdlib.h>
4611
4612 _ACEOF
4613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4614   $EGREP "free" >/dev/null 2>&1; then
4615   :
4616 else
4617   ac_cv_header_stdc=no
4618 fi
4619 rm -f conftest*
4620
4621 fi
4622
4623 if test $ac_cv_header_stdc = yes; then
4624   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4625   if test "$cross_compiling" = yes; then
4626   :
4627 else
4628   cat >conftest.$ac_ext <<_ACEOF
4629 #line $LINENO "configure"
4630 /* confdefs.h.  */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h.  */
4635 #include <ctype.h>
4636 #if ((' ' & 0x0FF) == 0x020)
4637 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4638 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4639 #else
4640 # define ISLOWER(c) \
4641                    (('a' <= (c) && (c) <= 'i') \
4642                      || ('j' <= (c) && (c) <= 'r') \
4643                      || ('s' <= (c) && (c) <= 'z'))
4644 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4645 #endif
4646
4647 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4648 int
4649 main ()
4650 {
4651   int i;
4652   for (i = 0; i < 256; i++)
4653     if (XOR (islower (i), ISLOWER (i))
4654         || toupper (i) != TOUPPER (i))
4655       exit(2);
4656   exit (0);
4657 }
4658 _ACEOF
4659 rm -f conftest$ac_exeext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4661   (eval $ac_link) 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; }; then
4670   :
4671 else
4672   echo "$as_me: program exited with status $ac_status" >&5
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676 ( exit $ac_status )
4677 ac_cv_header_stdc=no
4678 fi
4679 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4680 fi
4681 fi
4682 fi
4683 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4684 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4685 if test $ac_cv_header_stdc = yes; then
4686
4687 cat >>confdefs.h <<\_ACEOF
4688 #define STDC_HEADERS 1
4689 _ACEOF
4690
4691 fi
4692
4693 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4704                   inttypes.h stdint.h unistd.h
4705 do
4706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4707 echo "$as_me:$LINENO: checking for $ac_header" >&5
4708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   cat >conftest.$ac_ext <<_ACEOF
4713 #line $LINENO "configure"
4714 /* confdefs.h.  */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h.  */
4719 $ac_includes_default
4720
4721 #include <$ac_header>
4722 _ACEOF
4723 rm -f conftest.$ac_objext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725   (eval $ac_compile) 2>&5
4726   ac_status=$?
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); } &&
4729          { ac_try='test -s conftest.$ac_objext'
4730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731   (eval $ac_try) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; }; then
4735   eval "$as_ac_Header=yes"
4736 else
4737   echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4739
4740 eval "$as_ac_Header=no"
4741 fi
4742 rm -f conftest.$ac_objext conftest.$ac_ext
4743 fi
4744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4747   cat >>confdefs.h <<_ACEOF
4748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4749 _ACEOF
4750
4751 fi
4752
4753 done
4754
4755
4756
4757 for ac_header in dlfcn.h
4758 do
4759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761   echo "$as_me:$LINENO: checking for $ac_header" >&5
4762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4764   echo $ECHO_N "(cached) $ECHO_C" >&6
4765 fi
4766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768 else
4769   # Is the header compilable?
4770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4772 cat >conftest.$ac_ext <<_ACEOF
4773 #line $LINENO "configure"
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779 $ac_includes_default
4780 #include <$ac_header>
4781 _ACEOF
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784   (eval $ac_compile) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); } &&
4788          { ac_try='test -s conftest.$ac_objext'
4789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790   (eval $ac_try) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; }; then
4794   ac_header_compiler=yes
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 ac_header_compiler=no
4800 fi
4801 rm -f conftest.$ac_objext conftest.$ac_ext
4802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4803 echo "${ECHO_T}$ac_header_compiler" >&6
4804
4805 # Is the header present?
4806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4808 cat >conftest.$ac_ext <<_ACEOF
4809 #line $LINENO "configure"
4810 /* confdefs.h.  */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h.  */
4815 #include <$ac_header>
4816 _ACEOF
4817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4818   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4819   ac_status=$?
4820   grep -v '^ *+' conftest.er1 >conftest.err
4821   rm -f conftest.er1
4822   cat conftest.err >&5
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); } >/dev/null; then
4825   if test -s conftest.err; then
4826     ac_cpp_err=$ac_c_preproc_warn_flag
4827   else
4828     ac_cpp_err=
4829   fi
4830 else
4831   ac_cpp_err=yes
4832 fi
4833 if test -z "$ac_cpp_err"; then
4834   ac_header_preproc=yes
4835 else
4836   echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839   ac_header_preproc=no
4840 fi
4841 rm -f conftest.err conftest.$ac_ext
4842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4843 echo "${ECHO_T}$ac_header_preproc" >&6
4844
4845 # So?  What about this header?
4846 case $ac_header_compiler:$ac_header_preproc in
4847   yes:no )
4848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4852     (
4853       cat <<\_ASBOX
4854 ## ------------------------------------ ##
4855 ## Report this to bug-autoconf@gnu.org. ##
4856 ## ------------------------------------ ##
4857 _ASBOX
4858     ) |
4859       sed "s/^/$as_me: WARNING:     /" >&2
4860     ;;
4861   no:yes )
4862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4864     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4868     (
4869       cat <<\_ASBOX
4870 ## ------------------------------------ ##
4871 ## Report this to bug-autoconf@gnu.org. ##
4872 ## ------------------------------------ ##
4873 _ASBOX
4874     ) |
4875       sed "s/^/$as_me: WARNING:     /" >&2
4876     ;;
4877 esac
4878 echo "$as_me:$LINENO: checking for $ac_header" >&5
4879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4881   echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883   eval "$as_ac_Header=$ac_header_preproc"
4884 fi
4885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4887
4888 fi
4889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4890   cat >>confdefs.h <<_ACEOF
4891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4892 _ACEOF
4893
4894 fi
4895
4896 done
4897
4898 ac_ext=cc
4899 ac_cpp='$CXXCPP $CPPFLAGS'
4900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4903 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4904 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4905 if test -z "$CXXCPP"; then
4906   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909       # Double quotes because CXXCPP needs to be expanded
4910     for CXXCPP in "$CXX -E" "/lib/cpp"
4911     do
4912       ac_preproc_ok=false
4913 for ac_cxx_preproc_warn_flag in '' yes
4914 do
4915   # Use a header file that comes with gcc, so configuring glibc
4916   # with a fresh cross-compiler works.
4917   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918   # <limits.h> exists even on freestanding compilers.
4919   # On the NeXT, cc -E runs the code through the compiler's parser,
4920   # not just through cpp. "Syntax error" is here to catch this case.
4921   cat >conftest.$ac_ext <<_ACEOF
4922 #line $LINENO "configure"
4923 /* confdefs.h.  */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h.  */
4928 #ifdef __STDC__
4929 # include <limits.h>
4930 #else
4931 # include <assert.h>
4932 #endif
4933                      Syntax error
4934 _ACEOF
4935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4937   ac_status=$?
4938   grep -v '^ *+' conftest.er1 >conftest.err
4939   rm -f conftest.er1
4940   cat conftest.err >&5
4941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942   (exit $ac_status); } >/dev/null; then
4943   if test -s conftest.err; then
4944     ac_cpp_err=$ac_cxx_preproc_warn_flag
4945   else
4946     ac_cpp_err=
4947   fi
4948 else
4949   ac_cpp_err=yes
4950 fi
4951 if test -z "$ac_cpp_err"; then
4952   :
4953 else
4954   echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957   # Broken: fails on valid input.
4958 continue
4959 fi
4960 rm -f conftest.err conftest.$ac_ext
4961
4962   # OK, works on sane cases.  Now check whether non-existent headers
4963   # can be detected and how.
4964   cat >conftest.$ac_ext <<_ACEOF
4965 #line $LINENO "configure"
4966 /* confdefs.h.  */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h.  */
4971 #include <ac_nonexistent.h>
4972 _ACEOF
4973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4975   ac_status=$?
4976   grep -v '^ *+' conftest.er1 >conftest.err
4977   rm -f conftest.er1
4978   cat conftest.err >&5
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); } >/dev/null; then
4981   if test -s conftest.err; then
4982     ac_cpp_err=$ac_cxx_preproc_warn_flag
4983   else
4984     ac_cpp_err=
4985   fi
4986 else
4987   ac_cpp_err=yes
4988 fi
4989 if test -z "$ac_cpp_err"; then
4990   # Broken: success on invalid input.
4991 continue
4992 else
4993   echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4995
4996   # Passes both tests.
4997 ac_preproc_ok=:
4998 break
4999 fi
5000 rm -f conftest.err conftest.$ac_ext
5001
5002 done
5003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004 rm -f conftest.err conftest.$ac_ext
5005 if $ac_preproc_ok; then
5006   break
5007 fi
5008
5009     done
5010     ac_cv_prog_CXXCPP=$CXXCPP
5011
5012 fi
5013   CXXCPP=$ac_cv_prog_CXXCPP
5014 else
5015   ac_cv_prog_CXXCPP=$CXXCPP
5016 fi
5017 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5018 echo "${ECHO_T}$CXXCPP" >&6
5019 ac_preproc_ok=false
5020 for ac_cxx_preproc_warn_flag in '' yes
5021 do
5022   # Use a header file that comes with gcc, so configuring glibc
5023   # with a fresh cross-compiler works.
5024   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5025   # <limits.h> exists even on freestanding compilers.
5026   # On the NeXT, cc -E runs the code through the compiler's parser,
5027   # not just through cpp. "Syntax error" is here to catch this case.
5028   cat >conftest.$ac_ext <<_ACEOF
5029 #line $LINENO "configure"
5030 /* confdefs.h.  */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h.  */
5035 #ifdef __STDC__
5036 # include <limits.h>
5037 #else
5038 # include <assert.h>
5039 #endif
5040                      Syntax error
5041 _ACEOF
5042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5043   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5044   ac_status=$?
5045   grep -v '^ *+' conftest.er1 >conftest.err
5046   rm -f conftest.er1
5047   cat conftest.err >&5
5048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); } >/dev/null; then
5050   if test -s conftest.err; then
5051     ac_cpp_err=$ac_cxx_preproc_warn_flag
5052   else
5053     ac_cpp_err=
5054   fi
5055 else
5056   ac_cpp_err=yes
5057 fi
5058 if test -z "$ac_cpp_err"; then
5059   :
5060 else
5061   echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064   # Broken: fails on valid input.
5065 continue
5066 fi
5067 rm -f conftest.err conftest.$ac_ext
5068
5069   # OK, works on sane cases.  Now check whether non-existent headers
5070   # can be detected and how.
5071   cat >conftest.$ac_ext <<_ACEOF
5072 #line $LINENO "configure"
5073 /* confdefs.h.  */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h.  */
5078 #include <ac_nonexistent.h>
5079 _ACEOF
5080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5082   ac_status=$?
5083   grep -v '^ *+' conftest.er1 >conftest.err
5084   rm -f conftest.er1
5085   cat conftest.err >&5
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); } >/dev/null; then
5088   if test -s conftest.err; then
5089     ac_cpp_err=$ac_cxx_preproc_warn_flag
5090   else
5091     ac_cpp_err=
5092   fi
5093 else
5094   ac_cpp_err=yes
5095 fi
5096 if test -z "$ac_cpp_err"; then
5097   # Broken: success on invalid input.
5098 continue
5099 else
5100   echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5102
5103   # Passes both tests.
5104 ac_preproc_ok=:
5105 break
5106 fi
5107 rm -f conftest.err conftest.$ac_ext
5108
5109 done
5110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5111 rm -f conftest.err conftest.$ac_ext
5112 if $ac_preproc_ok; then
5113   :
5114 else
5115   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5116 See \`config.log' for more details." >&5
5117 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5118 See \`config.log' for more details." >&2;}
5119    { (exit 1); exit 1; }; }
5120 fi
5121
5122 ac_ext=cc
5123 ac_cpp='$CXXCPP $CPPFLAGS'
5124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5127
5128
5129 ac_ext=f
5130 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5131 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5133 if test -n "$ac_tool_prefix"; then
5134   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5135   do
5136     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5138 echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140 if test "${ac_cv_prog_F77+set}" = set; then
5141   echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143   if test -n "$F77"; then
5144   ac_cv_prog_F77="$F77" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149   IFS=$as_save_IFS
5150   test -z "$as_dir" && as_dir=.
5151   for ac_exec_ext in '' $ac_executable_extensions; do
5152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155     break 2
5156   fi
5157 done
5158 done
5159
5160 fi
5161 fi
5162 F77=$ac_cv_prog_F77
5163 if test -n "$F77"; then
5164   echo "$as_me:$LINENO: result: $F77" >&5
5165 echo "${ECHO_T}$F77" >&6
5166 else
5167   echo "$as_me:$LINENO: result: no" >&5
5168 echo "${ECHO_T}no" >&6
5169 fi
5170
5171     test -n "$F77" && break
5172   done
5173 fi
5174 if test -z "$F77"; then
5175   ac_ct_F77=$F77
5176   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5177 do
5178   # Extract the first word of "$ac_prog", so it can be a program name with args.
5179 set dummy $ac_prog; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   if test -n "$ac_ct_F77"; then
5186   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193   for ac_exec_ext in '' $ac_executable_extensions; do
5194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195     ac_cv_prog_ac_ct_F77="$ac_prog"
5196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200 done
5201
5202 fi
5203 fi
5204 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5205 if test -n "$ac_ct_F77"; then
5206   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5207 echo "${ECHO_T}$ac_ct_F77" >&6
5208 else
5209   echo "$as_me:$LINENO: result: no" >&5
5210 echo "${ECHO_T}no" >&6
5211 fi
5212
5213   test -n "$ac_ct_F77" && break
5214 done
5215
5216   F77=$ac_ct_F77
5217 fi
5218
5219
5220 # Provide some information about the compiler.
5221 echo "$as_me:5221:" \
5222      "checking for Fortran 77 compiler version" >&5
5223 ac_compiler=`set X $ac_compile; echo $2`
5224 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5225   (eval $ac_compiler --version </dev/null >&5) 2>&5
5226   ac_status=$?
5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); }
5229 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5230   (eval $ac_compiler -v </dev/null >&5) 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); }
5234 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5235   (eval $ac_compiler -V </dev/null >&5) 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); }
5239
5240 # If we don't use `.F' as extension, the preprocessor is not run on the
5241 # input file.
5242 ac_save_ext=$ac_ext
5243 ac_ext=F
5244 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5245 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5246 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   cat >conftest.$ac_ext <<_ACEOF
5250       program main
5251 #ifndef __GNUC__
5252        choke me
5253 #endif
5254
5255       end
5256 _ACEOF
5257 rm -f conftest.$ac_objext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259   (eval $ac_compile) 2>&5
5260   ac_status=$?
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); } &&
5263          { ac_try='test -s conftest.$ac_objext'
5264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265   (eval $ac_try) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); }; }; then
5269   ac_compiler_gnu=yes
5270 else
5271   echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274 ac_compiler_gnu=no
5275 fi
5276 rm -f conftest.$ac_objext conftest.$ac_ext
5277 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5278
5279 fi
5280 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5281 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5282 ac_ext=$ac_save_ext
5283 G77=`test $ac_compiler_gnu = yes && echo yes`
5284 ac_test_FFLAGS=${FFLAGS+set}
5285 ac_save_FFLAGS=$FFLAGS
5286 FFLAGS=
5287 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5288 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5289 if test "${ac_cv_prog_f77_g+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   FFLAGS=-g
5293 cat >conftest.$ac_ext <<_ACEOF
5294       program main
5295
5296       end
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300   (eval $ac_compile) 2>&5
5301   ac_status=$?
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); } &&
5304          { ac_try='test -s conftest.$ac_objext'
5305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306   (eval $ac_try) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }; }; then
5310   ac_cv_prog_f77_g=yes
5311 else
5312   echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 ac_cv_prog_f77_g=no
5316 fi
5317 rm -f conftest.$ac_objext conftest.$ac_ext
5318
5319 fi
5320 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5321 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5322 if test "$ac_test_FFLAGS" = set; then
5323   FFLAGS=$ac_save_FFLAGS
5324 elif test $ac_cv_prog_f77_g = yes; then
5325   if test "$G77" = yes; then
5326     FFLAGS="-g -O2"
5327   else
5328     FFLAGS="-g"
5329   fi
5330 else
5331   if test "$G77" = yes; then
5332     FFLAGS="-O2"
5333   else
5334     FFLAGS=
5335   fi
5336 fi
5337 ac_ext=c
5338 ac_cpp='$CPP $CPPFLAGS'
5339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5342
5343
5344
5345 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5346
5347 # find the maximum length of command line arguments
5348 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5349 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5350 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5351   echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353     i=0
5354   testring="ABCD"
5355
5356   case $build_os in
5357   msdosdjgpp*)
5358     # On DJGPP, this test can blow up pretty badly due to problems in libc
5359     # (any single argument exceeding 2000 bytes causes a buffer overrun
5360     # during glob expansion).  Even if it were fixed, the result of this
5361     # check would be larger than it should be.
5362     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5363     ;;
5364
5365   gnu*)
5366     # Under GNU Hurd, this test is not required because there is
5367     # no limit to the length of command line arguments.
5368     # Libtool will interpret -1 as no limit whatsoever
5369     lt_cv_sys_max_cmd_len=-1;
5370     ;;
5371
5372   cygwin* | mingw*)
5373     # On Win9x/ME, this test blows up -- it succeeds, but takes
5374     # about 5 minutes as the teststring grows exponentially.
5375     # Worse, since 9x/ME are not pre-emptively multitasking,
5376     # you end up with a "frozen" computer, even though with patience
5377     # the test eventually succeeds (with a max line length of 256k).
5378     # Instead, let's just punt: use the minimum linelength reported by
5379     # all of the supported platforms: 8192 (on NT/2K/XP).
5380     lt_cv_sys_max_cmd_len=8192;
5381     ;;
5382
5383  *)
5384     # If test is not a shell built-in, we'll probably end up computing a
5385     # maximum length that is only half of the actual maximum length, but
5386     # we can't tell.
5387     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5388                = "XX$testring") >/dev/null 2>&1 &&
5389             new_result=`expr "X$testring" : ".*" 2>&1` &&
5390             lt_cv_sys_max_cmd_len=$new_result &&
5391             test $i != 17 # 1/2 MB should be enough
5392     do
5393       i=`expr $i + 1`
5394       testring=$testring$testring
5395     done
5396     testring=
5397     # Add a significant safety factor because C++ compilers can tack on massive
5398     # amounts of additional arguments before passing them to the linker.
5399     # It appears as though 1/2 is a usable value.
5400     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5401     ;;
5402   esac
5403
5404 fi
5405
5406 if test -n $lt_cv_sys_max_cmd_len ; then
5407   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5408 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5409 else
5410   echo "$as_me:$LINENO: result: none" >&5
5411 echo "${ECHO_T}none" >&6
5412 fi
5413
5414
5415
5416
5417 # Check for command to grab the raw symbol name followed by C symbol from nm.
5418 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5419 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5420 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423
5424 # These are sane defaults that work on at least a few old systems.
5425 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5426
5427 # Character class describing NM global symbol codes.
5428 symcode='[BCDEGRST]'
5429
5430 # Regexp to match symbols that can be accessed directly from C.
5431 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5432
5433 # Transform the above into a raw symbol and a C symbol.
5434 symxfrm='\1 \2\3 \3'
5435
5436 # Transform an extracted symbol line into a proper C declaration
5437 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5438
5439 # Transform an extracted symbol line into symbol name and symbol address
5440 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'"
5441
5442 # Define system-specific variables.
5443 case $host_os in
5444 aix*)
5445   symcode='[BCDT]'
5446   ;;
5447 cygwin* | mingw* | pw32*)
5448   symcode='[ABCDGISTW]'
5449   ;;
5450 hpux*) # Its linker distinguishes data from code symbols
5451   if test "$host_cpu" = ia64; then
5452     symcode='[ABCDEGRST]'
5453   fi
5454   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5455   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'"
5456   ;;
5457 irix* | nonstopux*)
5458   symcode='[BCDEGRST]'
5459   ;;
5460 osf*)
5461   symcode='[BCDEGQRST]'
5462   ;;
5463 solaris* | sysv5*)
5464   symcode='[BDT]'
5465   ;;
5466 sysv4)
5467   symcode='[DFNSTU]'
5468   ;;
5469 esac
5470
5471 # Handle CRLF in mingw tool chain
5472 opt_cr=
5473 case $build_os in
5474 mingw*)
5475   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5476   ;;
5477 esac
5478
5479 # If we're using GNU nm, then use its standard symbol codes.
5480 case `$NM -V 2>&1` in
5481 *GNU* | *'with BFD'*)
5482   symcode='[ABCDGISTW]' ;;
5483 esac
5484
5485 # Try without a prefix undercore, then with it.
5486 for ac_symprfx in "" "_"; do
5487
5488   # Write the raw and C identifiers.
5489   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5490
5491   # Check to see that the pipe works correctly.
5492   pipe_works=no
5493
5494   rm -f conftest*
5495   cat > conftest.$ac_ext <<EOF
5496 #ifdef __cplusplus
5497 extern "C" {
5498 #endif
5499 char nm_test_var;
5500 void nm_test_func(){}
5501 #ifdef __cplusplus
5502 }
5503 #endif
5504 int main(){nm_test_var='a';nm_test_func();return(0);}
5505 EOF
5506
5507   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5508   (eval $ac_compile) 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); }; then
5512     # Now try to grab the symbols.
5513     nlist=conftest.nm
5514     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5515   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5516   ac_status=$?
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); } && test -s "$nlist"; then
5519       # Try sorting and uniquifying the output.
5520       if sort "$nlist" | uniq > "$nlist"T; then
5521         mv -f "$nlist"T "$nlist"
5522       else
5523         rm -f "$nlist"T
5524       fi
5525
5526       # Make sure that we snagged all the symbols we need.
5527       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5528         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5529           cat <<EOF > conftest.$ac_ext
5530 #ifdef __cplusplus
5531 extern "C" {
5532 #endif
5533
5534 EOF
5535           # Now generate the symbol file.
5536           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5537
5538           cat <<EOF >> conftest.$ac_ext
5539 #if defined (__STDC__) && __STDC__
5540 # define lt_ptr_t void *
5541 #else
5542 # define lt_ptr_t char *
5543 # define const
5544 #endif
5545
5546 /* The mapping between symbol names and symbols. */
5547 const struct {
5548   const char *name;
5549   lt_ptr_t address;
5550 }
5551 lt_preloaded_symbols[] =
5552 {
5553 EOF
5554           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5555           cat <<\EOF >> conftest.$ac_ext
5556   {0, (lt_ptr_t) 0}
5557 };
5558
5559 #ifdef __cplusplus
5560 }
5561 #endif
5562 EOF
5563           # Now try linking the two files.
5564           mv conftest.$ac_objext conftstm.$ac_objext
5565           lt_save_LIBS="$LIBS"
5566           lt_save_CFLAGS="$CFLAGS"
5567           LIBS="conftstm.$ac_objext"
5568           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5569           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570   (eval $ac_link) 2>&5
5571   ac_status=$?
5572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5574             pipe_works=yes
5575           fi
5576           LIBS="$lt_save_LIBS"
5577           CFLAGS="$lt_save_CFLAGS"
5578         else
5579           echo "cannot find nm_test_func in $nlist" >&5
5580         fi
5581       else
5582         echo "cannot find nm_test_var in $nlist" >&5
5583       fi
5584     else
5585       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5586     fi
5587   else
5588     echo "$progname: failed program was:" >&5
5589     cat conftest.$ac_ext >&5
5590   fi
5591   rm -f conftest* conftst*
5592
5593   # Do not use the global_symbol_pipe unless it works.
5594   if test "$pipe_works" = yes; then
5595     break
5596   else
5597     lt_cv_sys_global_symbol_pipe=
5598   fi
5599 done
5600
5601 fi
5602
5603 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5604   lt_cv_sys_global_symbol_to_cdecl=
5605 fi
5606 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5607   echo "$as_me:$LINENO: result: failed" >&5
5608 echo "${ECHO_T}failed" >&6
5609 else
5610   echo "$as_me:$LINENO: result: ok" >&5
5611 echo "${ECHO_T}ok" >&6
5612 fi
5613
5614 echo "$as_me:$LINENO: checking for objdir" >&5
5615 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5616 if test "${lt_cv_objdir+set}" = set; then
5617   echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619   rm -f .libs 2>/dev/null
5620 mkdir .libs 2>/dev/null
5621 if test -d .libs; then
5622   lt_cv_objdir=.libs
5623 else
5624   # MS-DOS does not allow filenames that begin with a dot.
5625   lt_cv_objdir=_libs
5626 fi
5627 rmdir .libs 2>/dev/null
5628 fi
5629 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5630 echo "${ECHO_T}$lt_cv_objdir" >&6
5631 objdir=$lt_cv_objdir
5632
5633
5634
5635
5636
5637 case $host_os in
5638 aix3*)
5639   # AIX sometimes has problems with the GCC collect2 program.  For some
5640   # reason, if we set the COLLECT_NAMES environment variable, the problems
5641   # vanish in a puff of smoke.
5642   if test "X${COLLECT_NAMES+set}" != Xset; then
5643     COLLECT_NAMES=
5644     export COLLECT_NAMES
5645   fi
5646   ;;
5647 esac
5648
5649 # Sed substitution that helps us do robust quoting.  It backslashifies
5650 # metacharacters that are still active within double-quoted strings.
5651 Xsed='sed -e s/^X//'
5652 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5653
5654 # Same as above, but do not quote variable references.
5655 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5656
5657 # Sed substitution to delay expansion of an escaped shell variable in a
5658 # double_quote_subst'ed string.
5659 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5660
5661 # Sed substitution to avoid accidental globbing in evaled expressions
5662 no_glob_subst='s/\*/\\\*/g'
5663
5664 # Constants:
5665 rm="rm -f"
5666
5667 # Global variables:
5668 default_ofile=mklib
5669 can_build_shared=yes
5670
5671 # All known linkers require a `.a' archive for static linking (except M$VC,
5672 # which needs '.lib').
5673 libext=a
5674 ltmain="$ac_aux_dir/ltmain.sh"
5675 ofile="$default_ofile"
5676 with_gnu_ld="$lt_cv_prog_gnu_ld"
5677
5678 if test -n "$ac_tool_prefix"; then
5679   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5680 set dummy ${ac_tool_prefix}ar; ac_word=$2
5681 echo "$as_me:$LINENO: checking for $ac_word" >&5
5682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5683 if test "${ac_cv_prog_AR+set}" = set; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686   if test -n "$AR"; then
5687   ac_cv_prog_AR="$AR" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692   IFS=$as_save_IFS
5693   test -z "$as_dir" && as_dir=.
5694   for ac_exec_ext in '' $ac_executable_extensions; do
5695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696     ac_cv_prog_AR="${ac_tool_prefix}ar"
5697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5698     break 2
5699   fi
5700 done
5701 done
5702
5703 fi
5704 fi
5705 AR=$ac_cv_prog_AR
5706 if test -n "$AR"; then
5707   echo "$as_me:$LINENO: result: $AR" >&5
5708 echo "${ECHO_T}$AR" >&6
5709 else
5710   echo "$as_me:$LINENO: result: no" >&5
5711 echo "${ECHO_T}no" >&6
5712 fi
5713
5714 fi
5715 if test -z "$ac_cv_prog_AR"; then
5716   ac_ct_AR=$AR
5717   # Extract the first word of "ar", so it can be a program name with args.
5718 set dummy ar; ac_word=$2
5719 echo "$as_me:$LINENO: checking for $ac_word" >&5
5720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5722   echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724   if test -n "$ac_ct_AR"; then
5725   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730   IFS=$as_save_IFS
5731   test -z "$as_dir" && as_dir=.
5732   for ac_exec_ext in '' $ac_executable_extensions; do
5733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734     ac_cv_prog_ac_ct_AR="ar"
5735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736     break 2
5737   fi
5738 done
5739 done
5740
5741   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5742 fi
5743 fi
5744 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5745 if test -n "$ac_ct_AR"; then
5746   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5747 echo "${ECHO_T}$ac_ct_AR" >&6
5748 else
5749   echo "$as_me:$LINENO: result: no" >&5
5750 echo "${ECHO_T}no" >&6
5751 fi
5752
5753   AR=$ac_ct_AR
5754 else
5755   AR="$ac_cv_prog_AR"
5756 fi
5757
5758 if test -n "$ac_tool_prefix"; then
5759   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5760 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5761 echo "$as_me:$LINENO: checking for $ac_word" >&5
5762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5763 if test "${ac_cv_prog_RANLIB+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766   if test -n "$RANLIB"; then
5767   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772   IFS=$as_save_IFS
5773   test -z "$as_dir" && as_dir=.
5774   for ac_exec_ext in '' $ac_executable_extensions; do
5775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778     break 2
5779   fi
5780 done
5781 done
5782
5783 fi
5784 fi
5785 RANLIB=$ac_cv_prog_RANLIB
5786 if test -n "$RANLIB"; then
5787   echo "$as_me:$LINENO: result: $RANLIB" >&5
5788 echo "${ECHO_T}$RANLIB" >&6
5789 else
5790   echo "$as_me:$LINENO: result: no" >&5
5791 echo "${ECHO_T}no" >&6
5792 fi
5793
5794 fi
5795 if test -z "$ac_cv_prog_RANLIB"; then
5796   ac_ct_RANLIB=$RANLIB
5797   # Extract the first word of "ranlib", so it can be a program name with args.
5798 set dummy ranlib; ac_word=$2
5799 echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5801 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   if test -n "$ac_ct_RANLIB"; then
5805   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810   IFS=$as_save_IFS
5811   test -z "$as_dir" && as_dir=.
5812   for ac_exec_ext in '' $ac_executable_extensions; do
5813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814     ac_cv_prog_ac_ct_RANLIB="ranlib"
5815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816     break 2
5817   fi
5818 done
5819 done
5820
5821   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5822 fi
5823 fi
5824 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5825 if test -n "$ac_ct_RANLIB"; then
5826   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5827 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5828 else
5829   echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6
5831 fi
5832
5833   RANLIB=$ac_ct_RANLIB
5834 else
5835   RANLIB="$ac_cv_prog_RANLIB"
5836 fi
5837
5838 if test -n "$ac_tool_prefix"; then
5839   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5840 set dummy ${ac_tool_prefix}strip; ac_word=$2
5841 echo "$as_me:$LINENO: checking for $ac_word" >&5
5842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5843 if test "${ac_cv_prog_STRIP+set}" = set; then
5844   echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846   if test -n "$STRIP"; then
5847   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5848 else
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852   IFS=$as_save_IFS
5853   test -z "$as_dir" && as_dir=.
5854   for ac_exec_ext in '' $ac_executable_extensions; do
5855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5856     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858     break 2
5859   fi
5860 done
5861 done
5862
5863 fi
5864 fi
5865 STRIP=$ac_cv_prog_STRIP
5866 if test -n "$STRIP"; then
5867   echo "$as_me:$LINENO: result: $STRIP" >&5
5868 echo "${ECHO_T}$STRIP" >&6
5869 else
5870   echo "$as_me:$LINENO: result: no" >&5
5871 echo "${ECHO_T}no" >&6
5872 fi
5873
5874 fi
5875 if test -z "$ac_cv_prog_STRIP"; then
5876   ac_ct_STRIP=$STRIP
5877   # Extract the first word of "strip", so it can be a program name with args.
5878 set dummy strip; ac_word=$2
5879 echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5881 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884   if test -n "$ac_ct_STRIP"; then
5885   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890   IFS=$as_save_IFS
5891   test -z "$as_dir" && as_dir=.
5892   for ac_exec_ext in '' $ac_executable_extensions; do
5893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894     ac_cv_prog_ac_ct_STRIP="strip"
5895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896     break 2
5897   fi
5898 done
5899 done
5900
5901   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5902 fi
5903 fi
5904 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5905 if test -n "$ac_ct_STRIP"; then
5906   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5907 echo "${ECHO_T}$ac_ct_STRIP" >&6
5908 else
5909   echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6
5911 fi
5912
5913   STRIP=$ac_ct_STRIP
5914 else
5915   STRIP="$ac_cv_prog_STRIP"
5916 fi
5917
5918
5919 old_CC="$CC"
5920 old_CFLAGS="$CFLAGS"
5921
5922 # Set sane defaults for various variables
5923 test -z "$AR" && AR=ar
5924 test -z "$AR_FLAGS" && AR_FLAGS=cru
5925 test -z "$AS" && AS=as
5926 test -z "$CC" && CC=cc
5927 test -z "$LTCC" && LTCC=$CC
5928 test -z "$DLLTOOL" && DLLTOOL=dlltool
5929 test -z "$LD" && LD=ld
5930 test -z "$LN_S" && LN_S="ln -s"
5931 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5932 test -z "$NM" && NM=nm
5933 test -z "$SED" && SED=sed
5934 test -z "$OBJDUMP" && OBJDUMP=objdump
5935 test -z "$RANLIB" && RANLIB=:
5936 test -z "$STRIP" && STRIP=:
5937 test -z "$ac_objext" && ac_objext=o
5938
5939 # Determine commands to create old-style static archives.
5940 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5941 old_postinstall_cmds='chmod 644 $oldlib'
5942 old_postuninstall_cmds=
5943
5944 if test -n "$RANLIB"; then
5945   case $host_os in
5946   openbsd*)
5947     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5948     ;;
5949   *)
5950     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5951     ;;
5952   esac
5953   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5954 fi
5955
5956 # Only perform the check for file, if the check method requires it
5957 case $deplibs_check_method in
5958 file_magic*)
5959   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5960     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5961 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5962 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   case $MAGIC_CMD in
5966 [\\/*] |  ?:[\\/]*)
5967   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5968   ;;
5969 *)
5970   lt_save_MAGIC_CMD="$MAGIC_CMD"
5971   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5972   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5973   for ac_dir in $ac_dummy; do
5974     IFS="$lt_save_ifs"
5975     test -z "$ac_dir" && ac_dir=.
5976     if test -f $ac_dir/${ac_tool_prefix}file; then
5977       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5978       if test -n "$file_magic_test_file"; then
5979         case $deplibs_check_method in
5980         "file_magic "*)
5981           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5982           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5983           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5984             $EGREP "$file_magic_regex" > /dev/null; then
5985             :
5986           else
5987             cat <<EOF 1>&2
5988
5989 *** Warning: the command libtool uses to detect shared libraries,
5990 *** $file_magic_cmd, produces output that libtool cannot recognize.
5991 *** The result is that libtool may fail to recognize shared libraries
5992 *** as such.  This will affect the creation of libtool libraries that
5993 *** depend on shared libraries, but programs linked with such libtool
5994 *** libraries will work regardless of this problem.  Nevertheless, you
5995 *** may want to report the problem to your system manager and/or to
5996 *** bug-libtool@gnu.org
5997
5998 EOF
5999           fi ;;
6000         esac
6001       fi
6002       break
6003     fi
6004   done
6005   IFS="$lt_save_ifs"
6006   MAGIC_CMD="$lt_save_MAGIC_CMD"
6007   ;;
6008 esac
6009 fi
6010
6011 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6012 if test -n "$MAGIC_CMD"; then
6013   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6014 echo "${ECHO_T}$MAGIC_CMD" >&6
6015 else
6016   echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6
6018 fi
6019
6020 if test -z "$lt_cv_path_MAGIC_CMD"; then
6021   if test -n "$ac_tool_prefix"; then
6022     echo "$as_me:$LINENO: checking for file" >&5
6023 echo $ECHO_N "checking for file... $ECHO_C" >&6
6024 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6025   echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027   case $MAGIC_CMD in
6028 [\\/*] |  ?:[\\/]*)
6029   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6030   ;;
6031 *)
6032   lt_save_MAGIC_CMD="$MAGIC_CMD"
6033   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6034   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6035   for ac_dir in $ac_dummy; do
6036     IFS="$lt_save_ifs"
6037     test -z "$ac_dir" && ac_dir=.
6038     if test -f $ac_dir/file; then
6039       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6040       if test -n "$file_magic_test_file"; then
6041         case $deplibs_check_method in
6042         "file_magic "*)
6043           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6044           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6045           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6046             $EGREP "$file_magic_regex" > /dev/null; then
6047             :
6048           else
6049             cat <<EOF 1>&2
6050
6051 *** Warning: the command libtool uses to detect shared libraries,
6052 *** $file_magic_cmd, produces output that libtool cannot recognize.
6053 *** The result is that libtool may fail to recognize shared libraries
6054 *** as such.  This will affect the creation of libtool libraries that
6055 *** depend on shared libraries, but programs linked with such libtool
6056 *** libraries will work regardless of this problem.  Nevertheless, you
6057 *** may want to report the problem to your system manager and/or to
6058 *** bug-libtool@gnu.org
6059
6060 EOF
6061           fi ;;
6062         esac
6063       fi
6064       break
6065     fi
6066   done
6067   IFS="$lt_save_ifs"
6068   MAGIC_CMD="$lt_save_MAGIC_CMD"
6069   ;;
6070 esac
6071 fi
6072
6073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6074 if test -n "$MAGIC_CMD"; then
6075   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6076 echo "${ECHO_T}$MAGIC_CMD" >&6
6077 else
6078   echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6
6080 fi
6081
6082   else
6083     MAGIC_CMD=:
6084   fi
6085 fi
6086
6087   fi
6088   ;;
6089 esac
6090
6091 enable_dlopen=no
6092 enable_win32_dll=no
6093
6094 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6095 if test "${enable_libtool_lock+set}" = set; then
6096   enableval="$enable_libtool_lock"
6097
6098 fi;
6099 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6100
6101
6102 # Check whether --with-pic or --without-pic was given.
6103 if test "${with_pic+set}" = set; then
6104   withval="$with_pic"
6105   pic_mode="$withval"
6106 else
6107   pic_mode=default
6108 fi;
6109 test -z "$pic_mode" && pic_mode=default
6110
6111 # Use C for the default configuration in the libtool script
6112 tagname=
6113 lt_save_CC="$CC"
6114 ac_ext=c
6115 ac_cpp='$CPP $CPPFLAGS'
6116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6119
6120
6121 # Source file extension for C test sources.
6122 ac_ext=c
6123
6124 # Object file extension for compiled C test sources.
6125 objext=o
6126 objext=$objext
6127
6128 # Code to be used in simple compile tests
6129 lt_simple_compile_test_code="int some_variable = 0;\n"
6130
6131 # Code to be used in simple link tests
6132 lt_simple_link_test_code='int main(){return(0);}\n'
6133
6134
6135 # If no C compiler was specified, use CC.
6136 LTCC=${LTCC-"$CC"}
6137
6138 # Allow CC to be a program name with arguments.
6139 compiler=$CC
6140
6141
6142 #
6143 # Check for any special shared library compilation flags.
6144 #
6145 lt_prog_cc_shlib=
6146 if test "$GCC" = no; then
6147   case $host_os in
6148   sco3.2v5*)
6149     lt_prog_cc_shlib='-belf'
6150     ;;
6151   esac
6152 fi
6153 if test -n "$lt_prog_cc_shlib"; then
6154   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6155 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6156   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6157   else
6158     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6159 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6160     lt_cv_prog_cc_can_build_shared=no
6161   fi
6162 fi
6163
6164
6165 #
6166 # Check to make sure the static flag actually works.
6167 #
6168 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6169 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6170 if test "${lt_prog_compiler_static_works+set}" = set; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173   lt_prog_compiler_static_works=no
6174    save_LDFLAGS="$LDFLAGS"
6175    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6176    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6177    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6178      # The compiler can only warn and ignore the option if not recognized
6179      # So say no if there are warnings
6180      if test -s conftest.err; then
6181        # Append any errors to the config.log.
6182        cat conftest.err 1>&5
6183      else
6184        lt_prog_compiler_static_works=yes
6185      fi
6186    fi
6187    $rm conftest*
6188    LDFLAGS="$save_LDFLAGS"
6189
6190 fi
6191 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6192 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6193
6194 if test x"$lt_prog_compiler_static_works" = xyes; then
6195     :
6196 else
6197     lt_prog_compiler_static=
6198 fi
6199
6200
6201
6202 ## CAVEAT EMPTOR:
6203 ## There is no encapsulation within the following macros, do not change
6204 ## the running order or otherwise move them around unless you know exactly
6205 ## what you are doing...
6206
6207 lt_prog_compiler_no_builtin_flag=
6208
6209 if test "$GCC" = yes; then
6210   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6211
6212   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6213 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6214 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   lt_cv_prog_compiler_rtti_exceptions=no
6218   ac_outfile=conftest.$ac_objext
6219    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6220    lt_compiler_flag="-fno-rtti -fno-exceptions"
6221    # Insert the option either (1) after the last *FLAGS variable, or
6222    # (2) before a word containing "conftest.", or (3) at the end.
6223    # Note that $ac_compile itself does not contain backslashes and begins
6224    # with a dollar sign (not a hyphen), so the echo should work correctly.
6225    # The option is referenced via a variable to avoid confusing sed.
6226    lt_compile=`echo "$ac_compile" | $SED \
6227    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6228    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6229    -e 's:$: $lt_compiler_flag:'`
6230    (eval echo "\"\$as_me:6230: $lt_compile\"" >&5)
6231    (eval "$lt_compile" 2>conftest.err)
6232    ac_status=$?
6233    cat conftest.err >&5
6234    echo "$as_me:6234: \$? = $ac_status" >&5
6235    if (exit $ac_status) && test -s "$ac_outfile"; then
6236      # The compiler can only warn and ignore the option if not recognized
6237      # So say no if there are warnings
6238      if test ! -s conftest.err; then
6239        lt_cv_prog_compiler_rtti_exceptions=yes
6240      fi
6241    fi
6242    $rm conftest*
6243
6244 fi
6245 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6246 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6247
6248 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6249     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6250 else
6251     :
6252 fi
6253
6254 fi
6255
6256 lt_prog_compiler_wl=
6257 lt_prog_compiler_pic=
6258 lt_prog_compiler_static=
6259
6260 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6261 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6262
6263   if test "$GCC" = yes; then
6264     lt_prog_compiler_wl='-Wl,'
6265     lt_prog_compiler_static='-static'
6266
6267     case $host_os in
6268       aix*)
6269       # All AIX code is PIC.
6270       if test "$host_cpu" = ia64; then
6271         # AIX 5 now supports IA64 processor
6272         lt_prog_compiler_static='-Bstatic'
6273       fi
6274       ;;
6275
6276     amigaos*)
6277       # FIXME: we need at least 68020 code to build shared libraries, but
6278       # adding the `-m68020' flag to GCC prevents building anything better,
6279       # like `-m68040'.
6280       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6281       ;;
6282
6283     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6284       # PIC is the default for these OSes.
6285       ;;
6286
6287     mingw* | pw32* | os2*)
6288       # This hack is so that the source file can tell whether it is being
6289       # built for inclusion in a dll (and should export symbols for example).
6290       lt_prog_compiler_pic='-DDLL_EXPORT'
6291       ;;
6292
6293     darwin* | rhapsody*)
6294       # PIC is the default on this platform
6295       # Common symbols not allowed in MH_DYLIB files
6296       lt_prog_compiler_pic='-fno-common'
6297       ;;
6298
6299     msdosdjgpp*)
6300       # Just because we use GCC doesn't mean we suddenly get shared libraries
6301       # on systems that don't support them.
6302       lt_prog_compiler_can_build_shared=no
6303       enable_shared=no
6304       ;;
6305
6306     sysv4*MP*)
6307       if test -d /usr/nec; then
6308         lt_prog_compiler_pic=-Kconform_pic
6309       fi
6310       ;;
6311
6312     hpux*)
6313       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6314       # not for PA HP-UX.
6315       case "$host_cpu" in
6316       hppa*64*|ia64*)
6317         # +Z the default
6318         ;;
6319       *)
6320         lt_prog_compiler_pic='-fPIC'
6321         ;;
6322       esac
6323       ;;
6324
6325     *)
6326       lt_prog_compiler_pic='-fPIC'
6327       ;;
6328     esac
6329   else
6330     # PORTME Check for flag to pass linker flags through the system compiler.
6331     case $host_os in
6332     aix*)
6333       lt_prog_compiler_wl='-Wl,'
6334       if test "$host_cpu" = ia64; then
6335         # AIX 5 now supports IA64 processor
6336         lt_prog_compiler_static='-Bstatic'
6337       else
6338         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6339       fi
6340       ;;
6341
6342     mingw* | pw32* | os2*)
6343       # This hack is so that the source file can tell whether it is being
6344       # built for inclusion in a dll (and should export symbols for example).
6345       lt_prog_compiler_pic='-DDLL_EXPORT'
6346       ;;
6347
6348     hpux9* | hpux10* | hpux11*)
6349       lt_prog_compiler_wl='-Wl,'
6350       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6351       # not for PA HP-UX.
6352       case "$host_cpu" in
6353       hppa*64*|ia64*)
6354         # +Z the default
6355         ;;
6356       *)
6357         lt_prog_compiler_pic='+Z'
6358         ;;
6359       esac
6360       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6361       lt_prog_compiler_static='${wl}-a ${wl}archive'
6362       ;;
6363
6364     irix5* | irix6* | nonstopux*)
6365       lt_prog_compiler_wl='-Wl,'
6366       # PIC (with -KPIC) is the default.
6367       lt_prog_compiler_static='-non_shared'
6368       ;;
6369
6370     newsos6)
6371       lt_prog_compiler_pic='-KPIC'
6372       lt_prog_compiler_static='-Bstatic'
6373       ;;
6374
6375     linux*)
6376       case $CC in
6377       icc|ecc)
6378         lt_prog_compiler_wl='-Wl,'
6379         lt_prog_compiler_pic='-KPIC'
6380         lt_prog_compiler_static='-static'
6381         ;;
6382       ccc)
6383         lt_prog_compiler_wl='-Wl,'
6384         # All Alpha code is PIC.
6385         lt_prog_compiler_static='-non_shared'
6386         ;;
6387       esac
6388       ;;
6389
6390     osf3* | osf4* | osf5*)
6391       lt_prog_compiler_wl='-Wl,'
6392       # All OSF/1 code is PIC.
6393       lt_prog_compiler_static='-non_shared'
6394       ;;
6395
6396     sco3.2v5*)
6397       lt_prog_compiler_pic='-Kpic'
6398       lt_prog_compiler_static='-dn'
6399       ;;
6400
6401     solaris*)
6402       lt_prog_compiler_wl='-Wl,'
6403       lt_prog_compiler_pic='-KPIC'
6404       lt_prog_compiler_static='-Bstatic'
6405       ;;
6406
6407     sunos4*)
6408       lt_prog_compiler_wl='-Qoption ld '
6409       lt_prog_compiler_pic='-PIC'
6410       lt_prog_compiler_static='-Bstatic'
6411       ;;
6412
6413     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6414       lt_prog_compiler_wl='-Wl,'
6415       lt_prog_compiler_pic='-KPIC'
6416       lt_prog_compiler_static='-Bstatic'
6417       ;;
6418
6419     sysv4*MP*)
6420       if test -d /usr/nec ;then
6421         lt_prog_compiler_pic='-Kconform_pic'
6422         lt_prog_compiler_static='-Bstatic'
6423       fi
6424       ;;
6425
6426     uts4*)
6427       lt_prog_compiler_pic='-pic'
6428       lt_prog_compiler_static='-Bstatic'
6429       ;;
6430
6431     *)
6432       lt_prog_compiler_can_build_shared=no
6433       ;;
6434     esac
6435   fi
6436
6437 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6438 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6439
6440 #
6441 # Check to make sure the PIC flag actually works.
6442 #
6443 if test -n "$lt_prog_compiler_pic"; then
6444   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6445 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6446 if test "${lt_prog_compiler_pic_works+set}" = set; then
6447   echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449   lt_prog_compiler_pic_works=no
6450   ac_outfile=conftest.$ac_objext
6451    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6452    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6453    # Insert the option either (1) after the last *FLAGS variable, or
6454    # (2) before a word containing "conftest.", or (3) at the end.
6455    # Note that $ac_compile itself does not contain backslashes and begins
6456    # with a dollar sign (not a hyphen), so the echo should work correctly.
6457    # The option is referenced via a variable to avoid confusing sed.
6458    lt_compile=`echo "$ac_compile" | $SED \
6459    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6460    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6461    -e 's:$: $lt_compiler_flag:'`
6462    (eval echo "\"\$as_me:6462: $lt_compile\"" >&5)
6463    (eval "$lt_compile" 2>conftest.err)
6464    ac_status=$?
6465    cat conftest.err >&5
6466    echo "$as_me:6466: \$? = $ac_status" >&5
6467    if (exit $ac_status) && test -s "$ac_outfile"; then
6468      # The compiler can only warn and ignore the option if not recognized
6469      # So say no if there are warnings
6470      if test ! -s conftest.err; then
6471        lt_prog_compiler_pic_works=yes
6472      fi
6473    fi
6474    $rm conftest*
6475
6476 fi
6477 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6478 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6479
6480 if test x"$lt_prog_compiler_pic_works" = xyes; then
6481     case $lt_prog_compiler_pic in
6482      "" | " "*) ;;
6483      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6484      esac
6485 else
6486     lt_prog_compiler_pic=
6487      lt_prog_compiler_can_build_shared=no
6488 fi
6489
6490 fi
6491 case "$host_os" in
6492   # For platforms which do not support PIC, -DPIC is meaningless:
6493   *djgpp*)
6494     lt_prog_compiler_pic=
6495     ;;
6496   *)
6497     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6498     ;;
6499 esac
6500
6501 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6502 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6503 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   lt_cv_prog_compiler_c_o=no
6507    $rm -r conftest 2>/dev/null
6508    mkdir conftest
6509    cd conftest
6510    mkdir out
6511    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6512
6513    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6514    # that will create temporary files in the current directory regardless of
6515    # the output directory.  Thus, making CWD read-only will cause this test
6516    # to fail, enabling locking or at least warning the user not to do parallel
6517    # builds.
6518    chmod -w .
6519
6520    lt_compiler_flag="-o out/conftest2.$ac_objext"
6521    # Insert the option either (1) after the last *FLAGS variable, or
6522    # (2) before a word containing "conftest.", or (3) at the end.
6523    # Note that $ac_compile itself does not contain backslashes and begins
6524    # with a dollar sign (not a hyphen), so the echo should work correctly.
6525    lt_compile=`echo "$ac_compile" | $SED \
6526    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6527    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6528    -e 's:$: $lt_compiler_flag:'`
6529    (eval echo "\"\$as_me:6529: $lt_compile\"" >&5)
6530    (eval "$lt_compile" 2>out/conftest.err)
6531    ac_status=$?
6532    cat out/conftest.err >&5
6533    echo "$as_me:6533: \$? = $ac_status" >&5
6534    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6535    then
6536      # The compiler can only warn and ignore the option if not recognized
6537      # So say no if there are warnings
6538      if test ! -s out/conftest.err; then
6539        lt_cv_prog_compiler_c_o=yes
6540      fi
6541    fi
6542    chmod u+w .
6543    $rm conftest* out/*
6544    rmdir out
6545    cd ..
6546    rmdir conftest
6547    $rm conftest*
6548
6549 fi
6550 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6551 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6552
6553
6554 hard_links="nottested"
6555 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6556   # do not overwrite the value of need_locks provided by the user
6557   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6558 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6559   hard_links=yes
6560   $rm conftest*
6561   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6562   touch conftest.a
6563   ln conftest.a conftest.b 2>&5 || hard_links=no
6564   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6565   echo "$as_me:$LINENO: result: $hard_links" >&5
6566 echo "${ECHO_T}$hard_links" >&6
6567   if test "$hard_links" = no; then
6568     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6569 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6570     need_locks=warn
6571   fi
6572 else
6573   need_locks=no
6574 fi
6575
6576 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6577 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6578
6579   runpath_var=
6580   allow_undefined_flag=
6581   enable_shared_with_static_runtimes=no
6582   archive_cmds=
6583   archive_expsym_cmds=
6584   old_archive_From_new_cmds=
6585   old_archive_from_expsyms_cmds=
6586   export_dynamic_flag_spec=
6587   whole_archive_flag_spec=
6588   thread_safe_flag_spec=
6589   hardcode_libdir_flag_spec=
6590   hardcode_libdir_flag_spec_ld=
6591   hardcode_libdir_separator=
6592   hardcode_direct=no
6593   hardcode_minus_L=no
6594   hardcode_shlibpath_var=unsupported
6595   link_all_deplibs=unknown
6596   hardcode_automatic=no
6597   module_cmds=
6598   module_expsym_cmds=
6599   always_export_symbols=no
6600   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6601   # include_expsyms should be a list of space-separated symbols to be *always*
6602   # included in the symbol list
6603   include_expsyms=
6604   # exclude_expsyms can be an extended regexp of symbols to exclude
6605   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6606   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6607   # as well as any symbol that contains `d'.
6608   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6609   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6610   # platforms (ab)use it in PIC code, but their linkers get confused if
6611   # the symbol is explicitly referenced.  Since portable code cannot
6612   # rely on this symbol name, it's probably fine to never include it in
6613   # preloaded symbol tables.
6614   extract_expsyms_cmds=
6615
6616   case $host_os in
6617   cygwin* | mingw* | pw32*)
6618     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6619     # When not using gcc, we currently assume that we are using
6620     # Microsoft Visual C++.
6621     if test "$GCC" != yes; then
6622       with_gnu_ld=no
6623     fi
6624     ;;
6625   openbsd*)
6626     with_gnu_ld=no
6627     ;;
6628   esac
6629
6630   ld_shlibs=yes
6631   if test "$with_gnu_ld" = yes; then
6632     # If archive_cmds runs LD, not CC, wlarc should be empty
6633     wlarc='${wl}'
6634
6635     # See if GNU ld supports shared libraries.
6636     case $host_os in
6637     aix3* | aix4* | aix5*)
6638       # On AIX/PPC, the GNU linker is very broken
6639       if test "$host_cpu" != ia64; then
6640         ld_shlibs=no
6641         cat <<EOF 1>&2
6642
6643 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6644 *** to be unable to reliably create shared libraries on AIX.
6645 *** Therefore, libtool is disabling shared libraries support.  If you
6646 *** really care for shared libraries, you may want to modify your PATH
6647 *** so that a non-GNU linker is found, and then restart.
6648
6649 EOF
6650       fi
6651       ;;
6652
6653     amigaos*)
6654       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)'
6655       hardcode_libdir_flag_spec='-L$libdir'
6656       hardcode_minus_L=yes
6657
6658       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6659       # that the semantics of dynamic libraries on AmigaOS, at least up
6660       # to version 4, is to share data among multiple programs linked
6661       # with the same dynamic library.  Since this doesn't match the
6662       # behavior of shared libraries on other platforms, we can't use
6663       # them.
6664       ld_shlibs=no
6665       ;;
6666
6667     beos*)
6668       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6669         allow_undefined_flag=unsupported
6670         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6671         # support --undefined.  This deserves some investigation.  FIXME
6672         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6673       else
6674         ld_shlibs=no
6675       fi
6676       ;;
6677
6678     cygwin* | mingw* | pw32*)
6679       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6680       # as there is no search path for DLLs.
6681       hardcode_libdir_flag_spec='-L$libdir'
6682       allow_undefined_flag=unsupported
6683       always_export_symbols=no
6684       enable_shared_with_static_runtimes=yes
6685       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6686
6687       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6688         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6689         # If the export-symbols file already is a .def file (1st line
6690         # is EXPORTS), use it as is; otherwise, prepend...
6691         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6692           cp $export_symbols $output_objdir/$soname.def;
6693         else
6694           echo EXPORTS > $output_objdir/$soname.def;
6695           cat $export_symbols >> $output_objdir/$soname.def;
6696         fi~
6697         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6698       else
6699         ld_shlibs=no
6700       fi
6701       ;;
6702
6703     netbsd*)
6704       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6705         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6706         wlarc=
6707       else
6708         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6709         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6710       fi
6711       ;;
6712
6713     solaris* | sysv5*)
6714       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6715         ld_shlibs=no
6716         cat <<EOF 1>&2
6717
6718 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6719 *** create shared libraries on Solaris systems.  Therefore, libtool
6720 *** is disabling shared libraries support.  We urge you to upgrade GNU
6721 *** binutils to release 2.9.1 or newer.  Another option is to modify
6722 *** your PATH or compiler configuration so that the native linker is
6723 *** used, and then restart.
6724
6725 EOF
6726       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6727         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6728         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6729       else
6730         ld_shlibs=no
6731       fi
6732       ;;
6733
6734     sunos4*)
6735       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6736       wlarc=
6737       hardcode_direct=yes
6738       hardcode_shlibpath_var=no
6739       ;;
6740
6741     *)
6742       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6743         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6744         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6745       else
6746         ld_shlibs=no
6747       fi
6748       ;;
6749     esac
6750
6751     if test "$ld_shlibs" = yes; then
6752       runpath_var=LD_RUN_PATH
6753       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6754       export_dynamic_flag_spec='${wl}--export-dynamic'
6755       # ancient GNU ld didn't support --whole-archive et. al.
6756       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6757         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6758       else
6759         whole_archive_flag_spec=
6760       fi
6761     fi
6762   else
6763     # PORTME fill in a description of your system's linker (not GNU ld)
6764     case $host_os in
6765     aix3*)
6766       allow_undefined_flag=unsupported
6767       always_export_symbols=yes
6768       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'
6769       # Note: this linker hardcodes the directories in LIBPATH if there
6770       # are no directories specified by -L.
6771       hardcode_minus_L=yes
6772       if test "$GCC" = yes && test -z "$link_static_flag"; then
6773         # Neither direct hardcoding nor static linking is supported with a
6774         # broken collect2.
6775         hardcode_direct=unsupported
6776       fi
6777       ;;
6778
6779     aix4* | aix5*)
6780       if test "$host_cpu" = ia64; then
6781         # On IA64, the linker does run time linking by default, so we don't
6782         # have to do anything special.
6783         aix_use_runtimelinking=no
6784         exp_sym_flag='-Bexport'
6785         no_entry_flag=""
6786       else
6787         # If we're using GNU nm, then we don't want the "-C" option.
6788         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6789         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6790           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'
6791         else
6792           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'
6793         fi
6794         aix_use_runtimelinking=no
6795
6796         # Test if we are trying to use run time linking or normal
6797         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6798         # need to do runtime linking.
6799         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6800           for ld_flag in $LDFLAGS; do
6801           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6802             aix_use_runtimelinking=yes
6803             break
6804           fi
6805           done
6806         esac
6807
6808         exp_sym_flag='-bexport'
6809         no_entry_flag='-bnoentry'
6810       fi
6811
6812       # When large executables or shared objects are built, AIX ld can
6813       # have problems creating the table of contents.  If linking a library
6814       # or program results in "error TOC overflow" add -mminimal-toc to
6815       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6816       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6817
6818       archive_cmds=''
6819       hardcode_direct=yes
6820       hardcode_libdir_separator=':'
6821       link_all_deplibs=yes
6822
6823       if test "$GCC" = yes; then
6824         case $host_os in aix4.012|aix4.012.*)
6825         # We only want to do this on AIX 4.2 and lower, the check
6826         # below for broken collect2 doesn't work under 4.3+
6827           collect2name=`${CC} -print-prog-name=collect2`
6828           if test -f "$collect2name" && \
6829            strings "$collect2name" | grep resolve_lib_name >/dev/null
6830           then
6831           # We have reworked collect2
6832           hardcode_direct=yes
6833           else
6834           # We have old collect2
6835           hardcode_direct=unsupported
6836           # It fails to find uninstalled libraries when the uninstalled
6837           # path is not listed in the libpath.  Setting hardcode_minus_L
6838           # to unsupported forces relinking
6839           hardcode_minus_L=yes
6840           hardcode_libdir_flag_spec='-L$libdir'
6841           hardcode_libdir_separator=
6842           fi
6843         esac
6844         shared_flag='-shared'
6845       else
6846         # not using gcc
6847         if test "$host_cpu" = ia64; then
6848         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6849         # chokes on -Wl,-G. The following line is correct:
6850           shared_flag='-G'
6851         else
6852         if test "$aix_use_runtimelinking" = yes; then
6853             shared_flag='${wl}-G'
6854           else
6855             shared_flag='${wl}-bM:SRE'
6856         fi
6857         fi
6858       fi
6859
6860       # It seems that -bexpall does not export symbols beginning with
6861       # underscore (_), so it is better to generate a list of symbols to export.
6862       always_export_symbols=yes
6863       if test "$aix_use_runtimelinking" = yes; then
6864         # Warning - without using the other runtime loading flags (-brtl),
6865         # -berok will link without error, but may produce a broken library.
6866         allow_undefined_flag='-berok'
6867        # Determine the default libpath from the value encoded in an empty executable.
6868        cat >conftest.$ac_ext <<_ACEOF
6869 #line $LINENO "configure"
6870 /* confdefs.h.  */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h.  */
6875
6876 int
6877 main ()
6878 {
6879
6880   ;
6881   return 0;
6882 }
6883 _ACEOF
6884 rm -f conftest.$ac_objext conftest$ac_exeext
6885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6886   (eval $ac_link) 2>&5
6887   ac_status=$?
6888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889   (exit $ac_status); } &&
6890          { ac_try='test -s conftest$ac_exeext'
6891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892   (eval $ac_try) 2>&5
6893   ac_status=$?
6894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); }; }; then
6896
6897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6898 }'`
6899 # Check for a 64-bit object if we didn't find anything.
6900 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; }
6901 }'`; fi
6902 else
6903   echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906 fi
6907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6908 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6909
6910        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6911         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"
6912        else
6913         if test "$host_cpu" = ia64; then
6914           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6915           allow_undefined_flag="-z nodefs"
6916           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"
6917         else
6918          # Determine the default libpath from the value encoded in an empty executable.
6919          cat >conftest.$ac_ext <<_ACEOF
6920 #line $LINENO "configure"
6921 /* confdefs.h.  */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h.  */
6926
6927 int
6928 main ()
6929 {
6930
6931   ;
6932   return 0;
6933 }
6934 _ACEOF
6935 rm -f conftest.$ac_objext conftest$ac_exeext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937   (eval $ac_link) 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); } &&
6941          { ac_try='test -s conftest$ac_exeext'
6942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943   (eval $ac_try) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); }; }; then
6947
6948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6949 }'`
6950 # Check for a 64-bit object if we didn't find anything.
6951 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; }
6952 }'`; fi
6953 else
6954   echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6956
6957 fi
6958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6960
6961          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6962           # Warning - without using the other run time loading flags,
6963           # -berok will link without error, but may produce a broken library.
6964           no_undefined_flag=' ${wl}-bernotok'
6965           allow_undefined_flag=' ${wl}-berok'
6966           # -bexpall does not export symbols beginning with underscore (_)
6967           always_export_symbols=yes
6968           # Exported symbols can be pulled into shared objects from archives
6969           whole_archive_flag_spec=' '
6970           archive_cmds_need_lc=yes
6971           # This is similar to how AIX traditionally builds it's shared libraries.
6972           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'
6973         fi
6974       fi
6975       ;;
6976
6977     amigaos*)
6978       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)'
6979       hardcode_libdir_flag_spec='-L$libdir'
6980       hardcode_minus_L=yes
6981       # see comment about different semantics on the GNU ld section
6982       ld_shlibs=no
6983       ;;
6984
6985     bsdi4*)
6986       export_dynamic_flag_spec=-rdynamic
6987       ;;
6988
6989     cygwin* | mingw* | pw32*)
6990       # When not using gcc, we currently assume that we are using
6991       # Microsoft Visual C++.
6992       # hardcode_libdir_flag_spec is actually meaningless, as there is
6993       # no search path for DLLs.
6994       hardcode_libdir_flag_spec=' '
6995       allow_undefined_flag=unsupported
6996       # Tell ltmain to make .lib files, not .a files.
6997       libext=lib
6998       # Tell ltmain to make .dll files, not .so files.
6999       shrext=".dll"
7000       # FIXME: Setting linknames here is a bad hack.
7001       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7002       # The linker will automatically build a .lib file if we build a DLL.
7003       old_archive_From_new_cmds='true'
7004       # FIXME: Should let the user specify the lib program.
7005       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7006       fix_srcfile_path='`cygpath -w "$srcfile"`'
7007       enable_shared_with_static_runtimes=yes
7008       ;;
7009
7010     darwin* | rhapsody*)
7011     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7012       archive_cmds_need_lc=no
7013       case "$host_os" in
7014       rhapsody* | darwin1.[012])
7015         allow_undefined_flag='-undefined suppress'
7016         ;;
7017       *) # Darwin 1.3 on
7018         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7019         ;;
7020       esac
7021       # FIXME: Relying on posixy $() will cause problems for
7022       #        cross-compilation, but unfortunately the echo tests do not
7023       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7024       #        `"' quotes if we put them in here... so don't!
7025         lt_int_apple_cc_single_mod=no
7026         output_verbose_link_cmd='echo'
7027         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7028           lt_int_apple_cc_single_mod=yes
7029         fi
7030         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7031           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7032         else
7033         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'
7034       fi
7035       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7036       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7037         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7038           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}'
7039         else
7040           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}'
7041         fi
7042           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}'
7043       hardcode_direct=no
7044       hardcode_automatic=yes
7045       hardcode_shlibpath_var=unsupported
7046       whole_archive_flag_spec='-all_load $convenience'
7047       link_all_deplibs=yes
7048     fi
7049       ;;
7050
7051     dgux*)
7052       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7053       hardcode_libdir_flag_spec='-L$libdir'
7054       hardcode_shlibpath_var=no
7055       ;;
7056
7057     freebsd1*)
7058       ld_shlibs=no
7059       ;;
7060
7061     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7062     # support.  Future versions do this automatically, but an explicit c++rt0.o
7063     # does not break anything, and helps significantly (at the cost of a little
7064     # extra space).
7065     freebsd2.2*)
7066       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7067       hardcode_libdir_flag_spec='-R$libdir'
7068       hardcode_direct=yes
7069       hardcode_shlibpath_var=no
7070       ;;
7071
7072     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7073     freebsd2*)
7074       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7075       hardcode_direct=yes
7076       hardcode_minus_L=yes
7077       hardcode_shlibpath_var=no
7078       ;;
7079
7080     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7081     freebsd*)
7082       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7083       hardcode_libdir_flag_spec='-R$libdir'
7084       hardcode_direct=yes
7085       hardcode_shlibpath_var=no
7086       ;;
7087
7088     hpux9*)
7089       if test "$GCC" = yes; then
7090         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'
7091       else
7092         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'
7093       fi
7094       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7095       hardcode_libdir_separator=:
7096       hardcode_direct=yes
7097
7098       # hardcode_minus_L: Not really in the search PATH,
7099       # but as the default location of the library.
7100       hardcode_minus_L=yes
7101       export_dynamic_flag_spec='${wl}-E'
7102       ;;
7103
7104     hpux10* | hpux11*)
7105       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7106         case "$host_cpu" in
7107         hppa*64*|ia64*)
7108           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7109           ;;
7110         *)
7111           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7112           ;;
7113         esac
7114       else
7115         case "$host_cpu" in
7116         hppa*64*|ia64*)
7117           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7118           ;;
7119         *)
7120           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7121           ;;
7122         esac
7123       fi
7124       if test "$with_gnu_ld" = no; then
7125         case "$host_cpu" in
7126         hppa*64*)
7127           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7128           hardcode_libdir_flag_spec_ld='+b $libdir'
7129           hardcode_libdir_separator=:
7130           hardcode_direct=no
7131           hardcode_shlibpath_var=no
7132           ;;
7133         ia64*)
7134           hardcode_libdir_flag_spec='-L$libdir'
7135           hardcode_direct=no
7136           hardcode_shlibpath_var=no
7137
7138           # hardcode_minus_L: Not really in the search PATH,
7139           # but as the default location of the library.
7140           hardcode_minus_L=yes
7141           ;;
7142         *)
7143           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7144           hardcode_libdir_separator=:
7145           hardcode_direct=yes
7146           export_dynamic_flag_spec='${wl}-E'
7147
7148           # hardcode_minus_L: Not really in the search PATH,
7149           # but as the default location of the library.
7150           hardcode_minus_L=yes
7151           ;;
7152         esac
7153       fi
7154       ;;
7155
7156     irix5* | irix6* | nonstopux*)
7157       if test "$GCC" = yes; then
7158         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'
7159       else
7160         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'
7161         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7162       fi
7163       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7164       hardcode_libdir_separator=:
7165       link_all_deplibs=yes
7166       ;;
7167
7168     netbsd*)
7169       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7170         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7171       else
7172         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7173       fi
7174       hardcode_libdir_flag_spec='-R$libdir'
7175       hardcode_direct=yes
7176       hardcode_shlibpath_var=no
7177       ;;
7178
7179     newsos6)
7180       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7181       hardcode_direct=yes
7182       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7183       hardcode_libdir_separator=:
7184       hardcode_shlibpath_var=no
7185       ;;
7186
7187     openbsd*)
7188       hardcode_direct=yes
7189       hardcode_shlibpath_var=no
7190       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7191         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7192         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7193         export_dynamic_flag_spec='${wl}-E'
7194       else
7195        case $host_os in
7196          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7197            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7198            hardcode_libdir_flag_spec='-R$libdir'
7199            ;;
7200          *)
7201            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7202            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7203            ;;
7204        esac
7205       fi
7206       ;;
7207
7208     os2*)
7209       hardcode_libdir_flag_spec='-L$libdir'
7210       hardcode_minus_L=yes
7211       allow_undefined_flag=unsupported
7212       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'
7213       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7214       ;;
7215
7216     osf3*)
7217       if test "$GCC" = yes; then
7218         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7219         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'
7220       else
7221         allow_undefined_flag=' -expect_unresolved \*'
7222         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'
7223       fi
7224       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7225       hardcode_libdir_separator=:
7226       ;;
7227
7228     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7229       if test "$GCC" = yes; then
7230         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7231         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'
7232         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7233       else
7234         allow_undefined_flag=' -expect_unresolved \*'
7235         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'
7236         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7237         $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'
7238
7239         # Both c and cxx compiler support -rpath directly
7240         hardcode_libdir_flag_spec='-rpath $libdir'
7241       fi
7242       hardcode_libdir_separator=:
7243       ;;
7244
7245     sco3.2v5*)
7246       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7247       hardcode_shlibpath_var=no
7248       export_dynamic_flag_spec='${wl}-Bexport'
7249       runpath_var=LD_RUN_PATH
7250       hardcode_runpath_var=yes
7251       ;;
7252
7253     solaris*)
7254       no_undefined_flag=' -z text'
7255       if test "$GCC" = yes; then
7256         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7257         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7258           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7259       else
7260         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7261         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7262         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7263       fi
7264       hardcode_libdir_flag_spec='-R$libdir'
7265       hardcode_shlibpath_var=no
7266       case $host_os in
7267       solaris2.[0-5] | solaris2.[0-5].*) ;;
7268       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7269         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7270       esac
7271       link_all_deplibs=yes
7272       ;;
7273
7274     sunos4*)
7275       if test "x$host_vendor" = xsequent; then
7276         # Use $CC to link under sequent, because it throws in some extra .o
7277         # files that make .init and .fini sections work.
7278         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7279       else
7280         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7281       fi
7282       hardcode_libdir_flag_spec='-L$libdir'
7283       hardcode_direct=yes
7284       hardcode_minus_L=yes
7285       hardcode_shlibpath_var=no
7286       ;;
7287
7288     sysv4)
7289       case $host_vendor in
7290         sni)
7291           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7292           hardcode_direct=yes # is this really true???
7293         ;;
7294         siemens)
7295           ## LD is ld it makes a PLAMLIB
7296           ## CC just makes a GrossModule.
7297           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7298           reload_cmds='$CC -r -o $output$reload_objs'
7299           hardcode_direct=no
7300         ;;
7301         motorola)
7302           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7303           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7304         ;;
7305       esac
7306       runpath_var='LD_RUN_PATH'
7307       hardcode_shlibpath_var=no
7308       ;;
7309
7310     sysv4.3*)
7311       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7312       hardcode_shlibpath_var=no
7313       export_dynamic_flag_spec='-Bexport'
7314       ;;
7315
7316     sysv4*MP*)
7317       if test -d /usr/nec; then
7318         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7319         hardcode_shlibpath_var=no
7320         runpath_var=LD_RUN_PATH
7321         hardcode_runpath_var=yes
7322         ld_shlibs=yes
7323       fi
7324       ;;
7325
7326     sysv4.2uw2*)
7327       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7328       hardcode_direct=yes
7329       hardcode_minus_L=no
7330       hardcode_shlibpath_var=no
7331       hardcode_runpath_var=yes
7332       runpath_var=LD_RUN_PATH
7333       ;;
7334
7335    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7336       no_undefined_flag='${wl}-z ${wl}text'
7337       if test "$GCC" = yes; then
7338         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7339       else
7340         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7341       fi
7342       runpath_var='LD_RUN_PATH'
7343       hardcode_shlibpath_var=no
7344       ;;
7345
7346     sysv5*)
7347       no_undefined_flag=' -z text'
7348       # $CC -shared without GNU ld will not create a library from C++
7349       # object files and a static libstdc++, better avoid it by now
7350       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7351       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7352                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7353       hardcode_libdir_flag_spec=
7354       hardcode_shlibpath_var=no
7355       runpath_var='LD_RUN_PATH'
7356       ;;
7357
7358     uts4*)
7359       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7360       hardcode_libdir_flag_spec='-L$libdir'
7361       hardcode_shlibpath_var=no
7362       ;;
7363
7364     *)
7365       ld_shlibs=no
7366       ;;
7367     esac
7368   fi
7369
7370 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7371 echo "${ECHO_T}$ld_shlibs" >&6
7372 test "$ld_shlibs" = no && can_build_shared=no
7373
7374 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7375 if test "$GCC" = yes; then
7376   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7377 fi
7378
7379 #
7380 # Do we need to explicitly link libc?
7381 #
7382 case "x$archive_cmds_need_lc" in
7383 x|xyes)
7384   # Assume -lc should be added
7385   archive_cmds_need_lc=yes
7386
7387   if test "$enable_shared" = yes && test "$GCC" = yes; then
7388     case $archive_cmds in
7389     *'~'*)
7390       # FIXME: we may have to deal with multi-command sequences.
7391       ;;
7392     '$CC '*)
7393       # Test whether the compiler implicitly links with -lc since on some
7394       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7395       # to ld, don't add -lc before -lgcc.
7396       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7397 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7398       $rm conftest*
7399       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7400
7401       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7402   (eval $ac_compile) 2>&5
7403   ac_status=$?
7404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405   (exit $ac_status); } 2>conftest.err; then
7406         soname=conftest
7407         lib=conftest
7408         libobjs=conftest.$ac_objext
7409         deplibs=
7410         wl=$lt_prog_compiler_wl
7411         compiler_flags=-v
7412         linker_flags=-v
7413         verstring=
7414         output_objdir=.
7415         libname=conftest
7416         lt_save_allow_undefined_flag=$allow_undefined_flag
7417         allow_undefined_flag=
7418         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7419   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7420   ac_status=$?
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); }
7423         then
7424           archive_cmds_need_lc=no
7425         else
7426           archive_cmds_need_lc=yes
7427         fi
7428         allow_undefined_flag=$lt_save_allow_undefined_flag
7429       else
7430         cat conftest.err 1>&5
7431       fi
7432       $rm conftest*
7433       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7434 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7435       ;;
7436     esac
7437   fi
7438   ;;
7439 esac
7440
7441 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7442 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7443 hardcode_action=
7444 if test -n "$hardcode_libdir_flag_spec" || \
7445    test -n "$runpath_var " || \
7446    test "X$hardcode_automatic"="Xyes" ; then
7447
7448   # We can hardcode non-existant directories.
7449   if test "$hardcode_direct" != no &&
7450      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7451      # have to relink, otherwise we might link with an installed library
7452      # when we should be linking with a yet-to-be-installed one
7453      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7454      test "$hardcode_minus_L" != no; then
7455     # Linking always hardcodes the temporary library directory.
7456     hardcode_action=relink
7457   else
7458     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7459     hardcode_action=immediate
7460   fi
7461 else
7462   # We cannot hardcode anything, or else we can only hardcode existing
7463   # directories.
7464   hardcode_action=unsupported
7465 fi
7466 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7467 echo "${ECHO_T}$hardcode_action" >&6
7468
7469 if test "$hardcode_action" = relink; then
7470   # Fast installation is not supported
7471   enable_fast_install=no
7472 elif test "$shlibpath_overrides_runpath" = yes ||
7473      test "$enable_shared" = no; then
7474   # Fast installation is not necessary
7475   enable_fast_install=needless
7476 fi
7477
7478 striplib=
7479 old_striplib=
7480 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7481 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7482 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7483   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7484   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7485   echo "$as_me:$LINENO: result: yes" >&5
7486 echo "${ECHO_T}yes" >&6
7487 else
7488 # FIXME - insert some real tests, host_os isn't really good enough
7489   case $host_os in
7490    darwin*)
7491        if test -n "$STRIP" ; then
7492          striplib="$STRIP -x"
7493          echo "$as_me:$LINENO: result: yes" >&5
7494 echo "${ECHO_T}yes" >&6
7495        else
7496   echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6
7498 fi
7499        ;;
7500    *)
7501   echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7503     ;;
7504   esac
7505 fi
7506
7507 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7508 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7509 library_names_spec=
7510 libname_spec='lib$name'
7511 soname_spec=
7512 shrext=".so"
7513 postinstall_cmds=
7514 postuninstall_cmds=
7515 finish_cmds=
7516 finish_eval=
7517 shlibpath_var=
7518 shlibpath_overrides_runpath=unknown
7519 version_type=none
7520 dynamic_linker="$host_os ld.so"
7521 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7522 if test "$GCC" = yes; then
7523   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7524   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7525     # if the path contains ";" then we assume it to be the separator
7526     # otherwise default to the standard path separator (i.e. ":") - it is
7527     # assumed that no part of a normal pathname contains ";" but that should
7528     # okay in the real world where ";" in dirpaths is itself problematic.
7529     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7530   else
7531     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7532   fi
7533 else
7534   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7535 fi
7536 need_lib_prefix=unknown
7537 hardcode_into_libs=no
7538
7539 # when you set need_version to no, make sure it does not cause -set_version
7540 # flags to be left without arguments
7541 need_version=unknown
7542
7543 case $host_os in
7544 aix3*)
7545   version_type=linux
7546   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7547   shlibpath_var=LIBPATH
7548
7549   # AIX 3 has no versioning support, so we append a major version to the name.
7550   soname_spec='${libname}${release}${shared_ext}$major'
7551   ;;
7552
7553 aix4* | aix5*)
7554   version_type=linux
7555   need_lib_prefix=no
7556   need_version=no
7557   hardcode_into_libs=yes
7558   if test "$host_cpu" = ia64; then
7559     # AIX 5 supports IA64
7560     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7561     shlibpath_var=LD_LIBRARY_PATH
7562   else
7563     # With GCC up to 2.95.x, collect2 would create an import file
7564     # for dependence libraries.  The import file would start with
7565     # the line `#! .'.  This would cause the generated library to
7566     # depend on `.', always an invalid library.  This was fixed in
7567     # development snapshots of GCC prior to 3.0.
7568     case $host_os in
7569       aix4 | aix4.[01] | aix4.[01].*)
7570       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7571            echo ' yes '
7572            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7573         :
7574       else
7575         can_build_shared=no
7576       fi
7577       ;;
7578     esac
7579     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7580     # soname into executable. Probably we can add versioning support to
7581     # collect2, so additional links can be useful in future.
7582     if test "$aix_use_runtimelinking" = yes; then
7583       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7584       # instead of lib<name>.a to let people know that these are not
7585       # typical AIX shared libraries.
7586       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7587     else
7588       # We preserve .a as extension for shared libraries through AIX4.2
7589       # and later when we are not doing run time linking.
7590       library_names_spec='${libname}${release}.a $libname.a'
7591       soname_spec='${libname}${release}${shared_ext}$major'
7592     fi
7593     shlibpath_var=LIBPATH
7594   fi
7595   ;;
7596
7597 amigaos*)
7598   library_names_spec='$libname.ixlibrary $libname.a'
7599   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7600   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'
7601   ;;
7602
7603 beos*)
7604   library_names_spec='${libname}${shared_ext}'
7605   dynamic_linker="$host_os ld.so"
7606   shlibpath_var=LIBRARY_PATH
7607   ;;
7608
7609 bsdi4*)
7610   version_type=linux
7611   need_version=no
7612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7613   soname_spec='${libname}${release}${shared_ext}$major'
7614   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7615   shlibpath_var=LD_LIBRARY_PATH
7616   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7617   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7618   # the default ld.so.conf also contains /usr/contrib/lib and
7619   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7620   # libtool to hard-code these into programs
7621   ;;
7622
7623 cygwin* | mingw* | pw32*)
7624   version_type=windows
7625   shrext=".dll"
7626   need_version=no
7627   need_lib_prefix=no
7628
7629   case $GCC,$host_os in
7630   yes,cygwin* | yes,mingw* | yes,pw32*)
7631     library_names_spec='$libname.dll.a'
7632     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7633     postinstall_cmds='base_file=`basename \${file}`~
7634       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7635       dldir=$destdir/`dirname \$dlpath`~
7636       test -d \$dldir || mkdir -p \$dldir~
7637       $install_prog $dir/$dlname \$dldir/$dlname'
7638     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7639       dlpath=$dir/\$dldll~
7640        $rm \$dlpath'
7641     shlibpath_overrides_runpath=yes
7642
7643     case $host_os in
7644     cygwin*)
7645       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7646       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7647       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7648       ;;
7649     mingw*)
7650       # MinGW DLLs use traditional 'lib' prefix
7651       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7652       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7653       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7654         # It is most probably a Windows format PATH printed by
7655         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7656         # path with ; separators, and with drive letters. We can handle the
7657         # drive letters (cygwin fileutils understands them), so leave them,
7658         # especially as we might pass files found there to a mingw objdump,
7659         # which wouldn't understand a cygwinified path. Ahh.
7660         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7661       else
7662         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7663       fi
7664       ;;
7665     pw32*)
7666       # pw32 DLLs use 'pw' prefix rather than 'lib'
7667       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7668       ;;
7669     esac
7670     ;;
7671
7672   *)
7673     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7674     ;;
7675   esac
7676   dynamic_linker='Win32 ld.exe'
7677   # FIXME: first we should search . and the directory the executable is in
7678   shlibpath_var=PATH
7679   ;;
7680
7681 darwin* | rhapsody*)
7682   dynamic_linker="$host_os dyld"
7683   version_type=darwin
7684   need_lib_prefix=no
7685   need_version=no
7686   # FIXME: Relying on posixy $() will cause problems for
7687   #        cross-compilation, but unfortunately the echo tests do not
7688   #        yet detect zsh echo's removal of \ escapes.
7689   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7690   soname_spec='${libname}${release}${major}$shared_ext'
7691   shlibpath_overrides_runpath=yes
7692   shlibpath_var=DYLD_LIBRARY_PATH
7693   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7694   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7695   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7696   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"`
7697   fi
7698   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7699   ;;
7700
7701 dgux*)
7702   version_type=linux
7703   need_lib_prefix=no
7704   need_version=no
7705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7706   soname_spec='${libname}${release}${shared_ext}$major'
7707   shlibpath_var=LD_LIBRARY_PATH
7708   ;;
7709
7710 freebsd1*)
7711   dynamic_linker=no
7712   ;;
7713
7714 freebsd*)
7715   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7716   version_type=freebsd-$objformat
7717   case $version_type in
7718     freebsd-elf*)
7719       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7720       need_version=no
7721       need_lib_prefix=no
7722       ;;
7723     freebsd-*)
7724       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7725       need_version=yes
7726       ;;
7727   esac
7728   shlibpath_var=LD_LIBRARY_PATH
7729   case $host_os in
7730   freebsd2*)
7731     shlibpath_overrides_runpath=yes
7732     ;;
7733   freebsd3.01* | freebsdelf3.01*)
7734     shlibpath_overrides_runpath=yes
7735     hardcode_into_libs=yes
7736     ;;
7737   *) # from 3.2 on
7738     shlibpath_overrides_runpath=no
7739     hardcode_into_libs=yes
7740     ;;
7741   esac
7742   ;;
7743
7744 gnu*)
7745   version_type=linux
7746   need_lib_prefix=no
7747   need_version=no
7748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7749   soname_spec='${libname}${release}${shared_ext}$major'
7750   shlibpath_var=LD_LIBRARY_PATH
7751   hardcode_into_libs=yes
7752   ;;
7753
7754 hpux9* | hpux10* | hpux11*)
7755   # Give a soname corresponding to the major version so that dld.sl refuses to
7756   # link against other versions.
7757   version_type=sunos
7758   need_lib_prefix=no
7759   need_version=no
7760   case "$host_cpu" in
7761   ia64*)
7762     shrext='.so'
7763     hardcode_into_libs=yes
7764     dynamic_linker="$host_os dld.so"
7765     shlibpath_var=LD_LIBRARY_PATH
7766     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7768     soname_spec='${libname}${release}${shared_ext}$major'
7769     if test "X$HPUX_IA64_MODE" = X32; then
7770       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7771     else
7772       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7773     fi
7774     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7775     ;;
7776    hppa*64*)
7777      shrext='.sl'
7778      hardcode_into_libs=yes
7779      dynamic_linker="$host_os dld.sl"
7780      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7781      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7782      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7783      soname_spec='${libname}${release}${shared_ext}$major'
7784      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7785      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7786      ;;
7787    *)
7788     shrext='.sl'
7789     dynamic_linker="$host_os dld.sl"
7790     shlibpath_var=SHLIB_PATH
7791     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7793     soname_spec='${libname}${release}${shared_ext}$major'
7794     ;;
7795   esac
7796   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7797   postinstall_cmds='chmod 555 $lib'
7798   ;;
7799
7800 irix5* | irix6* | nonstopux*)
7801   case $host_os in
7802     nonstopux*) version_type=nonstopux ;;
7803     *)
7804         if test "$lt_cv_prog_gnu_ld" = yes; then
7805                 version_type=linux
7806         else
7807                 version_type=irix
7808         fi ;;
7809   esac
7810   need_lib_prefix=no
7811   need_version=no
7812   soname_spec='${libname}${release}${shared_ext}$major'
7813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7814   case $host_os in
7815   irix5* | nonstopux*)
7816     libsuff= shlibsuff=
7817     ;;
7818   *)
7819     case $LD in # libtool.m4 will add one of these switches to LD
7820     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7821       libsuff= shlibsuff= libmagic=32-bit;;
7822     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7823       libsuff=32 shlibsuff=N32 libmagic=N32;;
7824     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7825       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7826     *) libsuff= shlibsuff= libmagic=never-match;;
7827     esac
7828     ;;
7829   esac
7830   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7831   shlibpath_overrides_runpath=no
7832   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7833   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7834   hardcode_into_libs=yes
7835   ;;
7836
7837 # No shared lib support for Linux oldld, aout, or coff.
7838 linux*oldld* | linux*aout* | linux*coff*)
7839   dynamic_linker=no
7840   ;;
7841
7842 # This must be Linux ELF.
7843 linux*)
7844   version_type=linux
7845   need_lib_prefix=no
7846   need_version=no
7847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7848   soname_spec='${libname}${release}${shared_ext}$major'
7849   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7850   shlibpath_var=LD_LIBRARY_PATH
7851   shlibpath_overrides_runpath=no
7852   # This implies no fast_install, which is unacceptable.
7853   # Some rework will be needed to allow for fast_install
7854   # before this can be enabled.
7855   hardcode_into_libs=yes
7856
7857   # We used to test for /lib/ld.so.1 and disable shared libraries on
7858   # powerpc, because MkLinux only supported shared libraries with the
7859   # GNU dynamic linker.  Since this was broken with cross compilers,
7860   # most powerpc-linux boxes support dynamic linking these days and
7861   # people can always --disable-shared, the test was removed, and we
7862   # assume the GNU/Linux dynamic linker is in use.
7863   dynamic_linker='GNU/Linux ld.so'
7864   ;;
7865
7866 netbsd*)
7867   version_type=sunos
7868   need_lib_prefix=no
7869   need_version=no
7870   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7871     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7872     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7873     dynamic_linker='NetBSD (a.out) ld.so'
7874   else
7875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7876     soname_spec='${libname}${release}${shared_ext}$major'
7877     dynamic_linker='NetBSD ld.elf_so'
7878   fi
7879   shlibpath_var=LD_LIBRARY_PATH
7880   shlibpath_overrides_runpath=yes
7881   hardcode_into_libs=yes
7882   ;;
7883
7884 newsos6)
7885   version_type=linux
7886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7887   shlibpath_var=LD_LIBRARY_PATH
7888   shlibpath_overrides_runpath=yes
7889   ;;
7890
7891 nto-qnx)
7892   version_type=linux
7893   need_lib_prefix=no
7894   need_version=no
7895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896   soname_spec='${libname}${release}${shared_ext}$major'
7897   shlibpath_var=LD_LIBRARY_PATH
7898   shlibpath_overrides_runpath=yes
7899   ;;
7900
7901 openbsd*)
7902   version_type=sunos
7903   need_lib_prefix=no
7904   need_version=no
7905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7906   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7907   shlibpath_var=LD_LIBRARY_PATH
7908   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7909     case $host_os in
7910       openbsd2.[89] | openbsd2.[89].*)
7911         shlibpath_overrides_runpath=no
7912         ;;
7913       *)
7914         shlibpath_overrides_runpath=yes
7915         ;;
7916       esac
7917   else
7918     shlibpath_overrides_runpath=yes
7919   fi
7920   ;;
7921
7922 os2*)
7923   libname_spec='$name'
7924   shrext=".dll"
7925   need_lib_prefix=no
7926   library_names_spec='$libname${shared_ext} $libname.a'
7927   dynamic_linker='OS/2 ld.exe'
7928   shlibpath_var=LIBPATH
7929   ;;
7930
7931 osf3* | osf4* | osf5*)
7932   version_type=osf
7933   need_lib_prefix=no
7934   need_version=no
7935   soname_spec='${libname}${release}${shared_ext}$major'
7936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7937   shlibpath_var=LD_LIBRARY_PATH
7938   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7939   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7940   ;;
7941
7942 sco3.2v5*)
7943   version_type=osf
7944   soname_spec='${libname}${release}${shared_ext}$major'
7945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7946   shlibpath_var=LD_LIBRARY_PATH
7947   ;;
7948
7949 solaris*)
7950   version_type=linux
7951   need_lib_prefix=no
7952   need_version=no
7953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7954   soname_spec='${libname}${release}${shared_ext}$major'
7955   shlibpath_var=LD_LIBRARY_PATH
7956   shlibpath_overrides_runpath=yes
7957   hardcode_into_libs=yes
7958   # ldd complains unless libraries are executable
7959   postinstall_cmds='chmod +x $lib'
7960   ;;
7961
7962 sunos4*)
7963   version_type=sunos
7964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7965   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7966   shlibpath_var=LD_LIBRARY_PATH
7967   shlibpath_overrides_runpath=yes
7968   if test "$with_gnu_ld" = yes; then
7969     need_lib_prefix=no
7970   fi
7971   need_version=yes
7972   ;;
7973
7974 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7975   version_type=linux
7976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7977   soname_spec='${libname}${release}${shared_ext}$major'
7978   shlibpath_var=LD_LIBRARY_PATH
7979   case $host_vendor in
7980     sni)
7981       shlibpath_overrides_runpath=no
7982       need_lib_prefix=no
7983       export_dynamic_flag_spec='${wl}-Blargedynsym'
7984       runpath_var=LD_RUN_PATH
7985       ;;
7986     siemens)
7987       need_lib_prefix=no
7988       ;;
7989     motorola)
7990       need_lib_prefix=no
7991       need_version=no
7992       shlibpath_overrides_runpath=no
7993       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7994       ;;
7995   esac
7996   ;;
7997
7998 sysv4*MP*)
7999   if test -d /usr/nec ;then
8000     version_type=linux
8001     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8002     soname_spec='$libname${shared_ext}.$major'
8003     shlibpath_var=LD_LIBRARY_PATH
8004   fi
8005   ;;
8006
8007 uts4*)
8008   version_type=linux
8009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8010   soname_spec='${libname}${release}${shared_ext}$major'
8011   shlibpath_var=LD_LIBRARY_PATH
8012   ;;
8013
8014 *)
8015   dynamic_linker=no
8016   ;;
8017 esac
8018 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8019 echo "${ECHO_T}$dynamic_linker" >&6
8020 test "$dynamic_linker" = no && can_build_shared=no
8021
8022 if test "x$enable_dlopen" != xyes; then
8023   enable_dlopen=unknown
8024   enable_dlopen_self=unknown
8025   enable_dlopen_self_static=unknown
8026 else
8027   lt_cv_dlopen=no
8028   lt_cv_dlopen_libs=
8029
8030   case $host_os in
8031   beos*)
8032     lt_cv_dlopen="load_add_on"
8033     lt_cv_dlopen_libs=
8034     lt_cv_dlopen_self=yes
8035     ;;
8036
8037   mingw* | pw32*)
8038     lt_cv_dlopen="LoadLibrary"
8039     lt_cv_dlopen_libs=
8040    ;;
8041
8042   cygwin*)
8043     lt_cv_dlopen="dlopen"
8044     lt_cv_dlopen_libs=
8045    ;;
8046
8047   darwin*)
8048   # if libdl is installed we need to link against it
8049     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8050 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8051 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8052   echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054   ac_check_lib_save_LIBS=$LIBS
8055 LIBS="-ldl  $LIBS"
8056 cat >conftest.$ac_ext <<_ACEOF
8057 #line $LINENO "configure"
8058 /* confdefs.h.  */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h.  */
8063
8064 /* Override any gcc2 internal prototype to avoid an error.  */
8065 #ifdef __cplusplus
8066 extern "C"
8067 #endif
8068 /* We use char because int might match the return type of a gcc2
8069    builtin and then its argument prototype would still apply.  */
8070 char dlopen ();
8071 int
8072 main ()
8073 {
8074 dlopen ();
8075   ;
8076   return 0;
8077 }
8078 _ACEOF
8079 rm -f conftest.$ac_objext conftest$ac_exeext
8080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8081   (eval $ac_link) 2>&5
8082   ac_status=$?
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); } &&
8085          { ac_try='test -s conftest$ac_exeext'
8086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087   (eval $ac_try) 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); }; }; then
8091   ac_cv_lib_dl_dlopen=yes
8092 else
8093   echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096 ac_cv_lib_dl_dlopen=no
8097 fi
8098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8099 LIBS=$ac_check_lib_save_LIBS
8100 fi
8101 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8102 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8103 if test $ac_cv_lib_dl_dlopen = yes; then
8104   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8105 else
8106
8107     lt_cv_dlopen="dyld"
8108     lt_cv_dlopen_libs=
8109     lt_cv_dlopen_self=yes
8110
8111 fi
8112
8113    ;;
8114
8115   *)
8116     echo "$as_me:$LINENO: checking for shl_load" >&5
8117 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8118 if test "${ac_cv_func_shl_load+set}" = set; then
8119   echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121   cat >conftest.$ac_ext <<_ACEOF
8122 #line $LINENO "configure"
8123 /* confdefs.h.  */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h.  */
8128 /* System header to define __stub macros and hopefully few prototypes,
8129     which can conflict with char shl_load (); below.
8130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8131     <limits.h> exists even on freestanding compilers.  */
8132 #ifdef __STDC__
8133 # include <limits.h>
8134 #else
8135 # include <assert.h>
8136 #endif
8137 /* Override any gcc2 internal prototype to avoid an error.  */
8138 #ifdef __cplusplus
8139 extern "C"
8140 {
8141 #endif
8142 /* We use char because int might match the return type of a gcc2
8143    builtin and then its argument prototype would still apply.  */
8144 char shl_load ();
8145 /* The GNU C library defines this for functions which it implements
8146     to always fail with ENOSYS.  Some functions are actually named
8147     something starting with __ and the normal name is an alias.  */
8148 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8149 choke me
8150 #else
8151 char (*f) () = shl_load;
8152 #endif
8153 #ifdef __cplusplus
8154 }
8155 #endif
8156
8157 int
8158 main ()
8159 {
8160 return f != shl_load;
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 rm -f conftest.$ac_objext conftest$ac_exeext
8166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167   (eval $ac_link) 2>&5
8168   ac_status=$?
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); } &&
8171          { ac_try='test -s conftest$ac_exeext'
8172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173   (eval $ac_try) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); }; }; then
8177   ac_cv_func_shl_load=yes
8178 else
8179   echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8181
8182 ac_cv_func_shl_load=no
8183 fi
8184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8185 fi
8186 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8187 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8188 if test $ac_cv_func_shl_load = yes; then
8189   lt_cv_dlopen="shl_load"
8190 else
8191   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8192 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8193 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196   ac_check_lib_save_LIBS=$LIBS
8197 LIBS="-ldld  $LIBS"
8198 cat >conftest.$ac_ext <<_ACEOF
8199 #line $LINENO "configure"
8200 /* confdefs.h.  */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h.  */
8205
8206 /* Override any gcc2 internal prototype to avoid an error.  */
8207 #ifdef __cplusplus
8208 extern "C"
8209 #endif
8210 /* We use char because int might match the return type of a gcc2
8211    builtin and then its argument prototype would still apply.  */
8212 char shl_load ();
8213 int
8214 main ()
8215 {
8216 shl_load ();
8217   ;
8218   return 0;
8219 }
8220 _ACEOF
8221 rm -f conftest.$ac_objext conftest$ac_exeext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8223   (eval $ac_link) 2>&5
8224   ac_status=$?
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); } &&
8227          { ac_try='test -s conftest$ac_exeext'
8228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229   (eval $ac_try) 2>&5
8230   ac_status=$?
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); }; }; then
8233   ac_cv_lib_dld_shl_load=yes
8234 else
8235   echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238 ac_cv_lib_dld_shl_load=no
8239 fi
8240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8241 LIBS=$ac_check_lib_save_LIBS
8242 fi
8243 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8244 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8245 if test $ac_cv_lib_dld_shl_load = yes; then
8246   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8247 else
8248   echo "$as_me:$LINENO: checking for dlopen" >&5
8249 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8250 if test "${ac_cv_func_dlopen+set}" = set; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   cat >conftest.$ac_ext <<_ACEOF
8254 #line $LINENO "configure"
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260 /* System header to define __stub macros and hopefully few prototypes,
8261     which can conflict with char dlopen (); below.
8262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8263     <limits.h> exists even on freestanding compilers.  */
8264 #ifdef __STDC__
8265 # include <limits.h>
8266 #else
8267 # include <assert.h>
8268 #endif
8269 /* Override any gcc2 internal prototype to avoid an error.  */
8270 #ifdef __cplusplus
8271 extern "C"
8272 {
8273 #endif
8274 /* We use char because int might match the return type of a gcc2
8275    builtin and then its argument prototype would still apply.  */
8276 char dlopen ();
8277 /* The GNU C library defines this for functions which it implements
8278     to always fail with ENOSYS.  Some functions are actually named
8279     something starting with __ and the normal name is an alias.  */
8280 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8281 choke me
8282 #else
8283 char (*f) () = dlopen;
8284 #endif
8285 #ifdef __cplusplus
8286 }
8287 #endif
8288
8289 int
8290 main ()
8291 {
8292 return f != dlopen;
8293   ;
8294   return 0;
8295 }
8296 _ACEOF
8297 rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299   (eval $ac_link) 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } &&
8303          { ac_try='test -s conftest$ac_exeext'
8304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305   (eval $ac_try) 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; }; then
8309   ac_cv_func_dlopen=yes
8310 else
8311   echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314 ac_cv_func_dlopen=no
8315 fi
8316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8317 fi
8318 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8319 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8320 if test $ac_cv_func_dlopen = yes; then
8321   lt_cv_dlopen="dlopen"
8322 else
8323   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8324 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8325 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8326   echo $ECHO_N "(cached) $ECHO_C" >&6
8327 else
8328   ac_check_lib_save_LIBS=$LIBS
8329 LIBS="-ldl  $LIBS"
8330 cat >conftest.$ac_ext <<_ACEOF
8331 #line $LINENO "configure"
8332 /* confdefs.h.  */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h.  */
8337
8338 /* Override any gcc2 internal prototype to avoid an error.  */
8339 #ifdef __cplusplus
8340 extern "C"
8341 #endif
8342 /* We use char because int might match the return type of a gcc2
8343    builtin and then its argument prototype would still apply.  */
8344 char dlopen ();
8345 int
8346 main ()
8347 {
8348 dlopen ();
8349   ;
8350   return 0;
8351 }
8352 _ACEOF
8353 rm -f conftest.$ac_objext conftest$ac_exeext
8354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355   (eval $ac_link) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); } &&
8359          { ac_try='test -s conftest$ac_exeext'
8360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361   (eval $ac_try) 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; }; then
8365   ac_cv_lib_dl_dlopen=yes
8366 else
8367   echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370 ac_cv_lib_dl_dlopen=no
8371 fi
8372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8373 LIBS=$ac_check_lib_save_LIBS
8374 fi
8375 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8376 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8377 if test $ac_cv_lib_dl_dlopen = yes; then
8378   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8379 else
8380   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8381 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8382 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8383   echo $ECHO_N "(cached) $ECHO_C" >&6
8384 else
8385   ac_check_lib_save_LIBS=$LIBS
8386 LIBS="-lsvld  $LIBS"
8387 cat >conftest.$ac_ext <<_ACEOF
8388 #line $LINENO "configure"
8389 /* confdefs.h.  */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h.  */
8394
8395 /* Override any gcc2 internal prototype to avoid an error.  */
8396 #ifdef __cplusplus
8397 extern "C"
8398 #endif
8399 /* We use char because int might match the return type of a gcc2
8400    builtin and then its argument prototype would still apply.  */
8401 char dlopen ();
8402 int
8403 main ()
8404 {
8405 dlopen ();
8406   ;
8407   return 0;
8408 }
8409 _ACEOF
8410 rm -f conftest.$ac_objext conftest$ac_exeext
8411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8412   (eval $ac_link) 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); } &&
8416          { ac_try='test -s conftest$ac_exeext'
8417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418   (eval $ac_try) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; }; then
8422   ac_cv_lib_svld_dlopen=yes
8423 else
8424   echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8426
8427 ac_cv_lib_svld_dlopen=no
8428 fi
8429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8430 LIBS=$ac_check_lib_save_LIBS
8431 fi
8432 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8433 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8434 if test $ac_cv_lib_svld_dlopen = yes; then
8435   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8436 else
8437   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8438 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8439 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8440   echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442   ac_check_lib_save_LIBS=$LIBS
8443 LIBS="-ldld  $LIBS"
8444 cat >conftest.$ac_ext <<_ACEOF
8445 #line $LINENO "configure"
8446 /* confdefs.h.  */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h.  */
8451
8452 /* Override any gcc2 internal prototype to avoid an error.  */
8453 #ifdef __cplusplus
8454 extern "C"
8455 #endif
8456 /* We use char because int might match the return type of a gcc2
8457    builtin and then its argument prototype would still apply.  */
8458 char dld_link ();
8459 int
8460 main ()
8461 {
8462 dld_link ();
8463   ;
8464   return 0;
8465 }
8466 _ACEOF
8467 rm -f conftest.$ac_objext conftest$ac_exeext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8469   (eval $ac_link) 2>&5
8470   ac_status=$?
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); } &&
8473          { ac_try='test -s conftest$ac_exeext'
8474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475   (eval $ac_try) 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); }; }; then
8479   ac_cv_lib_dld_dld_link=yes
8480 else
8481   echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484 ac_cv_lib_dld_dld_link=no
8485 fi
8486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8487 LIBS=$ac_check_lib_save_LIBS
8488 fi
8489 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8490 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8491 if test $ac_cv_lib_dld_dld_link = yes; then
8492   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8493 fi
8494
8495
8496 fi
8497
8498
8499 fi
8500
8501
8502 fi
8503
8504
8505 fi
8506
8507
8508 fi
8509
8510     ;;
8511   esac
8512
8513   if test "x$lt_cv_dlopen" != xno; then
8514     enable_dlopen=yes
8515   else
8516     enable_dlopen=no
8517   fi
8518
8519   case $lt_cv_dlopen in
8520   dlopen)
8521     save_CPPFLAGS="$CPPFLAGS"
8522     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8523
8524     save_LDFLAGS="$LDFLAGS"
8525     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8526
8527     save_LIBS="$LIBS"
8528     LIBS="$lt_cv_dlopen_libs $LIBS"
8529
8530     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8531 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8532 if test "${lt_cv_dlopen_self+set}" = set; then
8533   echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535           if test "$cross_compiling" = yes; then :
8536   lt_cv_dlopen_self=cross
8537 else
8538   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8539   lt_status=$lt_dlunknown
8540   cat > conftest.$ac_ext <<EOF
8541 #line 8541 "configure"
8542 #include "confdefs.h"
8543
8544 #if HAVE_DLFCN_H
8545 #include <dlfcn.h>
8546 #endif
8547
8548 #include <stdio.h>
8549
8550 #ifdef RTLD_GLOBAL
8551 #  define LT_DLGLOBAL           RTLD_GLOBAL
8552 #else
8553 #  ifdef DL_GLOBAL
8554 #    define LT_DLGLOBAL         DL_GLOBAL
8555 #  else
8556 #    define LT_DLGLOBAL         0
8557 #  endif
8558 #endif
8559
8560 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8561    find out it does not work in some platform. */
8562 #ifndef LT_DLLAZY_OR_NOW
8563 #  ifdef RTLD_LAZY
8564 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8565 #  else
8566 #    ifdef DL_LAZY
8567 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8568 #    else
8569 #      ifdef RTLD_NOW
8570 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8571 #      else
8572 #        ifdef DL_NOW
8573 #          define LT_DLLAZY_OR_NOW      DL_NOW
8574 #        else
8575 #          define LT_DLLAZY_OR_NOW      0
8576 #        endif
8577 #      endif
8578 #    endif
8579 #  endif
8580 #endif
8581
8582 #ifdef __cplusplus
8583 extern "C" void exit (int);
8584 #endif
8585
8586 void fnord() { int i=42;}
8587 int main ()
8588 {
8589   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8590   int status = $lt_dlunknown;
8591
8592   if (self)
8593     {
8594       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8595       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8596       /* dlclose (self); */
8597     }
8598
8599     exit (status);
8600 }
8601 EOF
8602   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603   (eval $ac_link) 2>&5
8604   ac_status=$?
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8607     (./conftest; exit; ) 2>/dev/null
8608     lt_status=$?
8609     case x$lt_status in
8610       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8611       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8612       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8613     esac
8614   else :
8615     # compilation failed
8616     lt_cv_dlopen_self=no
8617   fi
8618 fi
8619 rm -fr conftest*
8620
8621
8622 fi
8623 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8624 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8625
8626     if test "x$lt_cv_dlopen_self" = xyes; then
8627       LDFLAGS="$LDFLAGS $link_static_flag"
8628       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8629 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8630 if test "${lt_cv_dlopen_self_static+set}" = set; then
8631   echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633           if test "$cross_compiling" = yes; then :
8634   lt_cv_dlopen_self_static=cross
8635 else
8636   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8637   lt_status=$lt_dlunknown
8638   cat > conftest.$ac_ext <<EOF
8639 #line 8639 "configure"
8640 #include "confdefs.h"
8641
8642 #if HAVE_DLFCN_H
8643 #include <dlfcn.h>
8644 #endif
8645
8646 #include <stdio.h>
8647
8648 #ifdef RTLD_GLOBAL
8649 #  define LT_DLGLOBAL           RTLD_GLOBAL
8650 #else
8651 #  ifdef DL_GLOBAL
8652 #    define LT_DLGLOBAL         DL_GLOBAL
8653 #  else
8654 #    define LT_DLGLOBAL         0
8655 #  endif
8656 #endif
8657
8658 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8659    find out it does not work in some platform. */
8660 #ifndef LT_DLLAZY_OR_NOW
8661 #  ifdef RTLD_LAZY
8662 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8663 #  else
8664 #    ifdef DL_LAZY
8665 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8666 #    else
8667 #      ifdef RTLD_NOW
8668 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8669 #      else
8670 #        ifdef DL_NOW
8671 #          define LT_DLLAZY_OR_NOW      DL_NOW
8672 #        else
8673 #          define LT_DLLAZY_OR_NOW      0
8674 #        endif
8675 #      endif
8676 #    endif
8677 #  endif
8678 #endif
8679
8680 #ifdef __cplusplus
8681 extern "C" void exit (int);
8682 #endif
8683
8684 void fnord() { int i=42;}
8685 int main ()
8686 {
8687   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8688   int status = $lt_dlunknown;
8689
8690   if (self)
8691     {
8692       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8693       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8694       /* dlclose (self); */
8695     }
8696
8697     exit (status);
8698 }
8699 EOF
8700   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8701   (eval $ac_link) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8705     (./conftest; exit; ) 2>/dev/null
8706     lt_status=$?
8707     case x$lt_status in
8708       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8709       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8710       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8711     esac
8712   else :
8713     # compilation failed
8714     lt_cv_dlopen_self_static=no
8715   fi
8716 fi
8717 rm -fr conftest*
8718
8719
8720 fi
8721 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8722 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8723     fi
8724
8725     CPPFLAGS="$save_CPPFLAGS"
8726     LDFLAGS="$save_LDFLAGS"
8727     LIBS="$save_LIBS"
8728     ;;
8729   esac
8730
8731   case $lt_cv_dlopen_self in
8732   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8733   *) enable_dlopen_self=unknown ;;
8734   esac
8735
8736   case $lt_cv_dlopen_self_static in
8737   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8738   *) enable_dlopen_self_static=unknown ;;
8739   esac
8740 fi
8741
8742
8743 # Report which librarie types wil actually be built
8744 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8745 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8746 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8747 echo "${ECHO_T}$can_build_shared" >&6
8748
8749 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8750 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8751 test "$can_build_shared" = "no" && enable_shared=no
8752
8753 # On AIX, shared libraries and static libraries use the same namespace, and
8754 # are all built from PIC.
8755 case "$host_os" in
8756 aix3*)
8757   test "$enable_shared" = yes && enable_static=no
8758   if test -n "$RANLIB"; then
8759     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8760     postinstall_cmds='$RANLIB $lib'
8761   fi
8762   ;;
8763
8764 aix4*)
8765   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8766     test "$enable_shared" = yes && enable_static=no
8767   fi
8768   ;;
8769   darwin* | rhapsody*)
8770   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8771     archive_cmds_need_lc=no
8772     case "$host_os" in
8773     rhapsody* | darwin1.[012])
8774       allow_undefined_flag='-undefined suppress'
8775       ;;
8776     *) # Darwin 1.3 on
8777       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8778       ;;
8779     esac
8780     # FIXME: Relying on posixy $() will cause problems for
8781     #        cross-compilation, but unfortunately the echo tests do not
8782     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8783     #          `"' quotes if we put them in here... so don't!
8784                 output_verbose_link_cmd='echo'
8785     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8786     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8787     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8788                   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}'
8789                   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}'
8790     hardcode_direct=no
8791     hardcode_automatic=yes
8792     hardcode_shlibpath_var=unsupported
8793     whole_archive_flag_spec='-all_load $convenience'
8794     link_all_deplibs=yes
8795     fi
8796     ;;
8797 esac
8798 echo "$as_me:$LINENO: result: $enable_shared" >&5
8799 echo "${ECHO_T}$enable_shared" >&6
8800
8801 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8802 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8803 # Make sure either enable_shared or enable_static is yes.
8804 test "$enable_shared" = yes || enable_static=yes
8805 echo "$as_me:$LINENO: result: $enable_static" >&5
8806 echo "${ECHO_T}$enable_static" >&6
8807
8808 # The else clause should only fire when bootstrapping the
8809 # libtool distribution, otherwise you forgot to ship ltmain.sh
8810 # with your package, and you will get complaints that there are
8811 # no rules to generate ltmain.sh.
8812 if test -f "$ltmain"; then
8813   # See if we are running on zsh, and set the options which allow our commands through
8814   # without removal of \ escapes.
8815   if test -n "${ZSH_VERSION+set}" ; then
8816     setopt NO_GLOB_SUBST
8817   fi
8818   # Now quote all the things that may contain metacharacters while being
8819   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8820   # variables and quote the copies for generation of the libtool script.
8821   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8822     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8823     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8824     deplibs_check_method reload_flag reload_cmds need_locks \
8825     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8826     lt_cv_sys_global_symbol_to_c_name_address \
8827     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8828     old_postinstall_cmds old_postuninstall_cmds \
8829     compiler \
8830     CC \
8831     LD \
8832     lt_prog_compiler_wl \
8833     lt_prog_compiler_pic \
8834     lt_prog_compiler_static \
8835     lt_prog_compiler_no_builtin_flag \
8836     export_dynamic_flag_spec \
8837     thread_safe_flag_spec \
8838     whole_archive_flag_spec \
8839     enable_shared_with_static_runtimes \
8840     old_archive_cmds \
8841     old_archive_from_new_cmds \
8842     predep_objects \
8843     postdep_objects \
8844     predeps \
8845     postdeps \
8846     compiler_lib_search_path \
8847     archive_cmds \
8848     archive_expsym_cmds \
8849     postinstall_cmds \
8850     postuninstall_cmds \
8851     old_archive_from_expsyms_cmds \
8852     allow_undefined_flag \
8853     no_undefined_flag \
8854     export_symbols_cmds \
8855     hardcode_libdir_flag_spec \
8856     hardcode_libdir_flag_spec_ld \
8857     hardcode_libdir_separator \
8858     hardcode_automatic \
8859     module_cmds \
8860     module_expsym_cmds \
8861     lt_cv_prog_compiler_c_o \
8862     exclude_expsyms \
8863     include_expsyms; do
8864
8865     case $var in
8866     old_archive_cmds | \
8867     old_archive_from_new_cmds | \
8868     archive_cmds | \
8869     archive_expsym_cmds | \
8870     module_cmds | \
8871     module_expsym_cmds | \
8872     old_archive_from_expsyms_cmds | \
8873     export_symbols_cmds | \
8874     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8875     postinstall_cmds | postuninstall_cmds | \
8876     old_postinstall_cmds | old_postuninstall_cmds | \
8877     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8878       # Double-quote double-evaled strings.
8879       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8880       ;;
8881     *)
8882       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8883       ;;
8884     esac
8885   done
8886
8887   case $lt_echo in
8888   *'\$0 --fallback-echo"')
8889     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8890     ;;
8891   esac
8892
8893 cfgfile="${ofile}T"
8894   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8895   $rm -f "$cfgfile"
8896   { echo "$as_me:$LINENO: creating $ofile" >&5
8897 echo "$as_me: creating $ofile" >&6;}
8898
8899   cat <<__EOF__ >> "$cfgfile"
8900 #! $SHELL
8901
8902 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8903 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8904 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8905 #
8906 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8907 # Free Software Foundation, Inc.
8908 #
8909 # This file is part of GNU Libtool:
8910 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8911 #
8912 # This program is free software; you can redistribute it and/or modify
8913 # it under the terms of the GNU General Public License as published by
8914 # the Free Software Foundation; either version 2 of the License, or
8915 # (at your option) any later version.
8916 #
8917 # This program is distributed in the hope that it will be useful, but
8918 # WITHOUT ANY WARRANTY; without even the implied warranty of
8919 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8920 # General Public License for more details.
8921 #
8922 # You should have received a copy of the GNU General Public License
8923 # along with this program; if not, write to the Free Software
8924 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8925 #
8926 # As a special exception to the GNU General Public License, if you
8927 # distribute this file as part of a program that contains a
8928 # configuration script generated by Autoconf, you may include it under
8929 # the same distribution terms that you use for the rest of that program.
8930
8931 # A sed program that does not truncate output.
8932 SED=$lt_SED
8933
8934 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8935 Xsed="$SED -e s/^X//"
8936
8937 # The HP-UX ksh and POSIX shell print the target directory to stdout
8938 # if CDPATH is set.
8939 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8940
8941 # The names of the tagged configurations supported by this script.
8942 available_tags=
8943
8944 # ### BEGIN LIBTOOL CONFIG
8945
8946 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8947
8948 # Shell to use when invoking shell scripts.
8949 SHELL=$lt_SHELL
8950
8951 # Whether or not to build shared libraries.
8952 build_libtool_libs=$enable_shared
8953
8954 # Whether or not to build static libraries.
8955 build_old_libs=$enable_static
8956
8957 # Whether or not to add -lc for building shared libraries.
8958 build_libtool_need_lc=$archive_cmds_need_lc
8959
8960 # Whether or not to disallow shared libs when runtime libs are static
8961 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8962
8963 # Whether or not to optimize for fast installation.
8964 fast_install=$enable_fast_install
8965
8966 # The host system.
8967 host_alias=$host_alias
8968 host=$host
8969
8970 # An echo program that does not interpret backslashes.
8971 echo=$lt_echo
8972
8973 # The archiver.
8974 AR=$lt_AR
8975 AR_FLAGS=$lt_AR_FLAGS
8976
8977 # A C compiler.
8978 LTCC=$lt_LTCC
8979
8980 # A language-specific compiler.
8981 CC=$lt_compiler
8982
8983 # Is the compiler the GNU C compiler?
8984 with_gcc=$GCC
8985
8986 # An ERE matcher.
8987 EGREP=$lt_EGREP
8988
8989 # The linker used to build libraries.
8990 LD=$lt_LD
8991
8992 # Whether we need hard or soft links.
8993 LN_S=$lt_LN_S
8994
8995 # A BSD-compatible nm program.
8996 NM=$lt_NM
8997
8998 # A symbol stripping program
8999 STRIP=$STRIP
9000
9001 # Used to examine libraries when file_magic_cmd begins "file"
9002 MAGIC_CMD=$MAGIC_CMD
9003
9004 # Used on cygwin: DLL creation program.
9005 DLLTOOL="$DLLTOOL"
9006
9007 # Used on cygwin: object dumper.
9008 OBJDUMP="$OBJDUMP"
9009
9010 # Used on cygwin: assembler.
9011 AS="$AS"
9012
9013 # The name of the directory that contains temporary libtool files.
9014 objdir=$objdir
9015
9016 # How to create reloadable object files.
9017 reload_flag=$lt_reload_flag
9018 reload_cmds=$lt_reload_cmds
9019
9020 # How to pass a linker flag through the compiler.
9021 wl=$lt_lt_prog_compiler_wl
9022
9023 # Object file suffix (normally "o").
9024 objext="$ac_objext"
9025
9026 # Old archive suffix (normally "a").
9027 libext="$libext"
9028
9029 # Shared library suffix (normally ".so").
9030 shrext='$shrext'
9031
9032 # Executable file suffix (normally "").
9033 exeext="$exeext"
9034
9035 # Additional compiler flags for building library objects.
9036 pic_flag=$lt_lt_prog_compiler_pic
9037 pic_mode=$pic_mode
9038
9039 # What is the maximum length of a command?
9040 max_cmd_len=$lt_cv_sys_max_cmd_len
9041
9042 # Does compiler simultaneously support -c and -o options?
9043 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9044
9045 # Must we lock files when doing compilation ?
9046 need_locks=$lt_need_locks
9047
9048 # Do we need the lib prefix for modules?
9049 need_lib_prefix=$need_lib_prefix
9050
9051 # Do we need a version for libraries?
9052 need_version=$need_version
9053
9054 # Whether dlopen is supported.
9055 dlopen_support=$enable_dlopen
9056
9057 # Whether dlopen of programs is supported.
9058 dlopen_self=$enable_dlopen_self
9059
9060 # Whether dlopen of statically linked programs is supported.
9061 dlopen_self_static=$enable_dlopen_self_static
9062
9063 # Compiler flag to prevent dynamic linking.
9064 link_static_flag=$lt_lt_prog_compiler_static
9065
9066 # Compiler flag to turn off builtin functions.
9067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9068
9069 # Compiler flag to allow reflexive dlopens.
9070 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9071
9072 # Compiler flag to generate shared objects directly from archives.
9073 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9074
9075 # Compiler flag to generate thread-safe objects.
9076 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9077
9078 # Library versioning type.
9079 version_type=$version_type
9080
9081 # Format of library name prefix.
9082 libname_spec=$lt_libname_spec
9083
9084 # List of archive names.  First name is the real one, the rest are links.
9085 # The last name is the one that the linker finds with -lNAME.
9086 library_names_spec=$lt_library_names_spec
9087
9088 # The coded name of the library, if different from the real name.
9089 soname_spec=$lt_soname_spec
9090
9091 # Commands used to build and install an old-style archive.
9092 RANLIB=$lt_RANLIB
9093 old_archive_cmds=$lt_old_archive_cmds
9094 old_postinstall_cmds=$lt_old_postinstall_cmds
9095 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9096
9097 # Create an old-style archive from a shared archive.
9098 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9099
9100 # Create a temporary old-style archive to link instead of a shared archive.
9101 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9102
9103 # Commands used to build and install a shared archive.
9104 archive_cmds=$lt_archive_cmds
9105 archive_expsym_cmds=$lt_archive_expsym_cmds
9106 postinstall_cmds=$lt_postinstall_cmds
9107 postuninstall_cmds=$lt_postuninstall_cmds
9108
9109 # Commands used to build a loadable module (assumed same as above if empty)
9110 module_cmds=$lt_module_cmds
9111 module_expsym_cmds=$lt_module_expsym_cmds
9112
9113 # Commands to strip libraries.
9114 old_striplib=$lt_old_striplib
9115 striplib=$lt_striplib
9116
9117 # Dependencies to place before the objects being linked to create a
9118 # shared library.
9119 predep_objects=$lt_predep_objects
9120
9121 # Dependencies to place after the objects being linked to create a
9122 # shared library.
9123 postdep_objects=$lt_postdep_objects
9124
9125 # Dependencies to place before the objects being linked to create a
9126 # shared library.
9127 predeps=$lt_predeps
9128
9129 # Dependencies to place after the objects being linked to create a
9130 # shared library.
9131 postdeps=$lt_postdeps
9132
9133 # The library search path used internally by the compiler when linking
9134 # a shared library.
9135 compiler_lib_search_path=$lt_compiler_lib_search_path
9136
9137 # Method to check whether dependent libraries are shared objects.
9138 deplibs_check_method=$lt_deplibs_check_method
9139
9140 # Command to use when deplibs_check_method == file_magic.
9141 file_magic_cmd=$lt_file_magic_cmd
9142
9143 # Flag that allows shared libraries with undefined symbols to be built.
9144 allow_undefined_flag=$lt_allow_undefined_flag
9145
9146 # Flag that forces no undefined symbols.
9147 no_undefined_flag=$lt_no_undefined_flag
9148
9149 # Commands used to finish a libtool library installation in a directory.
9150 finish_cmds=$lt_finish_cmds
9151
9152 # Same as above, but a single script fragment to be evaled but not shown.
9153 finish_eval=$lt_finish_eval
9154
9155 # Take the output of nm and produce a listing of raw symbols and C names.
9156 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9157
9158 # Transform the output of nm in a proper C declaration
9159 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9160
9161 # Transform the output of nm in a C name address pair
9162 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9163
9164 # This is the shared library runtime path variable.
9165 runpath_var=$runpath_var
9166
9167 # This is the shared library path variable.
9168 shlibpath_var=$shlibpath_var
9169
9170 # Is shlibpath searched before the hard-coded library search path?
9171 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9172
9173 # How to hardcode a shared library path into an executable.
9174 hardcode_action=$hardcode_action
9175
9176 # Whether we should hardcode library paths into libraries.
9177 hardcode_into_libs=$hardcode_into_libs
9178
9179 # Flag to hardcode \$libdir into a binary during linking.
9180 # This must work even if \$libdir does not exist.
9181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9182
9183 # If ld is used when linking, flag to hardcode \$libdir into
9184 # a binary during linking. This must work even if \$libdir does
9185 # not exist.
9186 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9187
9188 # Whether we need a single -rpath flag with a separated argument.
9189 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9190
9191 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9192 # resulting binary.
9193 hardcode_direct=$hardcode_direct
9194
9195 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9196 # resulting binary.
9197 hardcode_minus_L=$hardcode_minus_L
9198
9199 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9200 # the resulting binary.
9201 hardcode_shlibpath_var=$hardcode_shlibpath_var
9202
9203 # Set to yes if building a shared library automatically hardcodes DIR into the library
9204 # and all subsequent libraries and executables linked against it.
9205 hardcode_automatic=$hardcode_automatic
9206
9207 # Variables whose values should be saved in libtool wrapper scripts and
9208 # restored at relink time.
9209 variables_saved_for_relink="$variables_saved_for_relink"
9210
9211 # Whether libtool must link a program against all its dependency libraries.
9212 link_all_deplibs=$link_all_deplibs
9213
9214 # Compile-time system search path for libraries
9215 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9216
9217 # Run-time system search path for libraries
9218 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9219
9220 # Fix the shell variable \$srcfile for the compiler.
9221 fix_srcfile_path="$fix_srcfile_path"
9222
9223 # Set to yes if exported symbols are required.
9224 always_export_symbols=$always_export_symbols
9225
9226 # The commands to list exported symbols.
9227 export_symbols_cmds=$lt_export_symbols_cmds
9228
9229 # The commands to extract the exported symbol list from a shared archive.
9230 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9231
9232 # Symbols that should not be listed in the preloaded symbols.
9233 exclude_expsyms=$lt_exclude_expsyms
9234
9235 # Symbols that must always be exported.
9236 include_expsyms=$lt_include_expsyms
9237
9238 # ### END LIBTOOL CONFIG
9239
9240 __EOF__
9241
9242
9243   case $host_os in
9244   aix3*)
9245     cat <<\EOF >> "$cfgfile"
9246
9247 # AIX sometimes has problems with the GCC collect2 program.  For some
9248 # reason, if we set the COLLECT_NAMES environment variable, the problems
9249 # vanish in a puff of smoke.
9250 if test "X${COLLECT_NAMES+set}" != Xset; then
9251   COLLECT_NAMES=
9252   export COLLECT_NAMES
9253 fi
9254 EOF
9255     ;;
9256   esac
9257
9258   # We use sed instead of cat because bash on DJGPP gets confused if
9259   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9260   # text mode, it properly converts lines to CR/LF.  This bash problem
9261   # is reportedly fixed, but why not run on old versions too?
9262   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9263
9264   mv -f "$cfgfile" "$ofile" || \
9265     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9266   chmod +x "$ofile"
9267
9268 else
9269   # If there is no Makefile yet, we rely on a make rule to execute
9270   # `config.status --recheck' to rerun these tests and create the
9271   # libtool script then.
9272   test -f Makefile && make "$ltmain"
9273 fi
9274
9275
9276 ac_ext=c
9277 ac_cpp='$CPP $CPPFLAGS'
9278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9281
9282 CC="$lt_save_CC"
9283
9284
9285 # Check whether --with-tags or --without-tags was given.
9286 if test "${with_tags+set}" = set; then
9287   withval="$with_tags"
9288   tagnames="$withval"
9289 fi;
9290
9291 if test -f "$ltmain" && test -n "$tagnames"; then
9292   if test ! -f "${ofile}"; then
9293     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9294 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9295   fi
9296
9297   if test -z "$LTCC"; then
9298     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9299     if test -z "$LTCC"; then
9300       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9301 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9302     else
9303       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9304 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9305     fi
9306   fi
9307
9308   # Extract list of available tagged configurations in $ofile.
9309   # Note that this assumes the entire list is on one line.
9310   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9311
9312   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9313   for tagname in $tagnames; do
9314     IFS="$lt_save_ifs"
9315     # Check whether tagname contains only valid characters
9316     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9317     "") ;;
9318     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9319 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9320    { (exit 1); exit 1; }; }
9321         ;;
9322     esac
9323
9324     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9325     then
9326       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9327 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9328    { (exit 1); exit 1; }; }
9329     fi
9330
9331     # Update the list of available tags.
9332     if test -n "$tagname"; then
9333       echo appending configuration tag \"$tagname\" to $ofile
9334
9335       case $tagname in
9336       CXX)
9337         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9338           ac_ext=cc
9339 ac_cpp='$CXXCPP $CPPFLAGS'
9340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9343
9344
9345
9346
9347 archive_cmds_need_lc_CXX=no
9348 allow_undefined_flag_CXX=
9349 always_export_symbols_CXX=no
9350 archive_expsym_cmds_CXX=
9351 export_dynamic_flag_spec_CXX=
9352 hardcode_direct_CXX=no
9353 hardcode_libdir_flag_spec_CXX=
9354 hardcode_libdir_flag_spec_ld_CXX=
9355 hardcode_libdir_separator_CXX=
9356 hardcode_minus_L_CXX=no
9357 hardcode_automatic_CXX=no
9358 module_cmds_CXX=
9359 module_expsym_cmds_CXX=
9360 link_all_deplibs_CXX=unknown
9361 old_archive_cmds_CXX=$old_archive_cmds
9362 no_undefined_flag_CXX=
9363 whole_archive_flag_spec_CXX=
9364 enable_shared_with_static_runtimes_CXX=no
9365
9366 # Dependencies to place before and after the object being linked:
9367 predep_objects_CXX=
9368 postdep_objects_CXX=
9369 predeps_CXX=
9370 postdeps_CXX=
9371 compiler_lib_search_path_CXX=
9372
9373 # Source file extension for C++ test sources.
9374 ac_ext=cc
9375
9376 # Object file extension for compiled C++ test sources.
9377 objext=o
9378 objext_CXX=$objext
9379
9380 # Code to be used in simple compile tests
9381 lt_simple_compile_test_code="int some_variable = 0;\n"
9382
9383 # Code to be used in simple link tests
9384 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9385
9386 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9387
9388 # If no C compiler was specified, use CC.
9389 LTCC=${LTCC-"$CC"}
9390
9391 # Allow CC to be a program name with arguments.
9392 compiler=$CC
9393
9394
9395 # Allow CC to be a program name with arguments.
9396 lt_save_CC=$CC
9397 lt_save_LD=$LD
9398 lt_save_GCC=$GCC
9399 GCC=$GXX
9400 lt_save_with_gnu_ld=$with_gnu_ld
9401 lt_save_path_LD=$lt_cv_path_LD
9402 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9403   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9404 else
9405   unset lt_cv_prog_gnu_ld
9406 fi
9407 if test -n "${lt_cv_path_LDCXX+set}"; then
9408   lt_cv_path_LD=$lt_cv_path_LDCXX
9409 else
9410   unset lt_cv_path_LD
9411 fi
9412 test -z "${LDCXX+set}" || LD=$LDCXX
9413 CC=${CXX-"c++"}
9414 compiler=$CC
9415 compiler_CXX=$CC
9416 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9417
9418 # We don't want -fno-exception wen compiling C++ code, so set the
9419 # no_builtin_flag separately
9420 if test "$GXX" = yes; then
9421   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9422 else
9423   lt_prog_compiler_no_builtin_flag_CXX=
9424 fi
9425
9426 if test "$GXX" = yes; then
9427   # Set up default GNU C++ configuration
9428
9429
9430 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9431 if test "${with_gnu_ld+set}" = set; then
9432   withval="$with_gnu_ld"
9433   test "$withval" = no || with_gnu_ld=yes
9434 else
9435   with_gnu_ld=no
9436 fi;
9437 ac_prog=ld
9438 if test "$GCC" = yes; then
9439   # Check if gcc -print-prog-name=ld gives a path.
9440   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9441 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9442   case $host in
9443   *-*-mingw*)
9444     # gcc leaves a trailing carriage return which upsets mingw
9445     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9446   *)
9447     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9448   esac
9449   case $ac_prog in
9450     # Accept absolute paths.
9451     [\\/]* | ?:[\\/]*)
9452       re_direlt='/[^/][^/]*/\.\./'
9453       # Canonicalize the path of ld
9454       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9455       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9456         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9457       done
9458       test -z "$LD" && LD="$ac_prog"
9459       ;;
9460   "")
9461     # If it fails, then pretend we aren't using GCC.
9462     ac_prog=ld
9463     ;;
9464   *)
9465     # If it is relative, then search for the first ld in PATH.
9466     with_gnu_ld=unknown
9467     ;;
9468   esac
9469 elif test "$with_gnu_ld" = yes; then
9470   echo "$as_me:$LINENO: checking for GNU ld" >&5
9471 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9472 else
9473   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9474 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9475 fi
9476 if test "${lt_cv_path_LD+set}" = set; then
9477   echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479   if test -z "$LD"; then
9480   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9481   for ac_dir in $PATH; do
9482     IFS="$lt_save_ifs"
9483     test -z "$ac_dir" && ac_dir=.
9484     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9485       lt_cv_path_LD="$ac_dir/$ac_prog"
9486       # Check to see if the program is GNU ld.  I'd rather use --version,
9487       # but apparently some GNU ld's only accept -v.
9488       # Break only if it was the GNU/non-GNU ld that we prefer.
9489       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9490       *GNU* | *'with BFD'*)
9491         test "$with_gnu_ld" != no && break
9492         ;;
9493       *)
9494         test "$with_gnu_ld" != yes && break
9495         ;;
9496       esac
9497     fi
9498   done
9499   IFS="$lt_save_ifs"
9500 else
9501   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9502 fi
9503 fi
9504
9505 LD="$lt_cv_path_LD"
9506 if test -n "$LD"; then
9507   echo "$as_me:$LINENO: result: $LD" >&5
9508 echo "${ECHO_T}$LD" >&6
9509 else
9510   echo "$as_me:$LINENO: result: no" >&5
9511 echo "${ECHO_T}no" >&6
9512 fi
9513 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9514 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9515    { (exit 1); exit 1; }; }
9516 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9517 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9518 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9522 case `"$LD" -v 2>&1 </dev/null` in
9523 *GNU* | *'with BFD'*)
9524   lt_cv_prog_gnu_ld=yes
9525   ;;
9526 *)
9527   lt_cv_prog_gnu_ld=no
9528   ;;
9529 esac
9530 fi
9531 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9532 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9533 with_gnu_ld=$lt_cv_prog_gnu_ld
9534
9535
9536
9537   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9538   # archiving commands below assume that GNU ld is being used.
9539   if test "$with_gnu_ld" = yes; then
9540     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9541     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'
9542
9543     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9544     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9545
9546     # If archive_cmds runs LD, not CC, wlarc should be empty
9547     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9548     #     investigate it a little bit more. (MM)
9549     wlarc='${wl}'
9550
9551     # ancient GNU ld didn't support --whole-archive et. al.
9552     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9553         grep 'no-whole-archive' > /dev/null; then
9554       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9555     else
9556       whole_archive_flag_spec_CXX=
9557     fi
9558   else
9559     with_gnu_ld=no
9560     wlarc=
9561
9562     # A generic and very simple default shared library creation
9563     # command for GNU C++ for the case where it uses the native
9564     # linker, instead of GNU ld.  If possible, this setting should
9565     # overridden to take advantage of the native linker features on
9566     # the platform it is being used on.
9567     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9568   fi
9569
9570   # Commands to make compiler produce verbose output that lists
9571   # what "hidden" libraries, object files and flags are used when
9572   # linking a shared library.
9573   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9574
9575 else
9576   GXX=no
9577   with_gnu_ld=no
9578   wlarc=
9579 fi
9580
9581 # PORTME: fill in a description of your system's C++ link characteristics
9582 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9583 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9584 ld_shlibs_CXX=yes
9585 case $host_os in
9586   aix3*)
9587     # FIXME: insert proper C++ library support
9588     ld_shlibs_CXX=no
9589     ;;
9590   aix4* | aix5*)
9591     if test "$host_cpu" = ia64; then
9592       # On IA64, the linker does run time linking by default, so we don't
9593       # have to do anything special.
9594       aix_use_runtimelinking=no
9595       exp_sym_flag='-Bexport'
9596       no_entry_flag=""
9597     else
9598       aix_use_runtimelinking=no
9599
9600       # Test if we are trying to use run time linking or normal
9601       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9602       # need to do runtime linking.
9603       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9604         for ld_flag in $LDFLAGS; do
9605           case $ld_flag in
9606           *-brtl*)
9607             aix_use_runtimelinking=yes
9608             break
9609             ;;
9610           esac
9611         done
9612       esac
9613
9614       exp_sym_flag='-bexport'
9615       no_entry_flag='-bnoentry'
9616     fi
9617
9618     # When large executables or shared objects are built, AIX ld can
9619     # have problems creating the table of contents.  If linking a library
9620     # or program results in "error TOC overflow" add -mminimal-toc to
9621     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9622     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9623
9624     archive_cmds_CXX=''
9625     hardcode_direct_CXX=yes
9626     hardcode_libdir_separator_CXX=':'
9627     link_all_deplibs_CXX=yes
9628
9629     if test "$GXX" = yes; then
9630       case $host_os in aix4.012|aix4.012.*)
9631       # We only want to do this on AIX 4.2 and lower, the check
9632       # below for broken collect2 doesn't work under 4.3+
9633         collect2name=`${CC} -print-prog-name=collect2`
9634         if test -f "$collect2name" && \
9635            strings "$collect2name" | grep resolve_lib_name >/dev/null
9636         then
9637           # We have reworked collect2
9638           hardcode_direct_CXX=yes
9639         else
9640           # We have old collect2
9641           hardcode_direct_CXX=unsupported
9642           # It fails to find uninstalled libraries when the uninstalled
9643           # path is not listed in the libpath.  Setting hardcode_minus_L
9644           # to unsupported forces relinking
9645           hardcode_minus_L_CXX=yes
9646           hardcode_libdir_flag_spec_CXX='-L$libdir'
9647           hardcode_libdir_separator_CXX=
9648         fi
9649       esac
9650       shared_flag='-shared'
9651     else
9652       # not using gcc
9653       if test "$host_cpu" = ia64; then
9654         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9655         # chokes on -Wl,-G. The following line is correct:
9656         shared_flag='-G'
9657       else
9658         if test "$aix_use_runtimelinking" = yes; then
9659           shared_flag='${wl}-G'
9660         else
9661           shared_flag='${wl}-bM:SRE'
9662         fi
9663       fi
9664     fi
9665
9666     # It seems that -bexpall does not export symbols beginning with
9667     # underscore (_), so it is better to generate a list of symbols to export.
9668     always_export_symbols_CXX=yes
9669     if test "$aix_use_runtimelinking" = yes; then
9670       # Warning - without using the other runtime loading flags (-brtl),
9671       # -berok will link without error, but may produce a broken library.
9672       allow_undefined_flag_CXX='-berok'
9673       # Determine the default libpath from the value encoded in an empty executable.
9674       cat >conftest.$ac_ext <<_ACEOF
9675 #line $LINENO "configure"
9676 /* confdefs.h.  */
9677 _ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h.  */
9681
9682 int
9683 main ()
9684 {
9685
9686   ;
9687   return 0;
9688 }
9689 _ACEOF
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9692   (eval $ac_link) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); } &&
9696          { ac_try='test -s conftest$ac_exeext'
9697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698   (eval $ac_try) 2>&5
9699   ac_status=$?
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); }; }; then
9702
9703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9704 }'`
9705 # Check for a 64-bit object if we didn't find anything.
9706 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; }
9707 }'`; fi
9708 else
9709   echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9711
9712 fi
9713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9714 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9715
9716       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9717
9718       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"
9719      else
9720       if test "$host_cpu" = ia64; then
9721         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9722         allow_undefined_flag_CXX="-z nodefs"
9723         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"
9724       else
9725         # Determine the default libpath from the value encoded in an empty executable.
9726         cat >conftest.$ac_ext <<_ACEOF
9727 #line $LINENO "configure"
9728 /* confdefs.h.  */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h.  */
9733
9734 int
9735 main ()
9736 {
9737
9738   ;
9739   return 0;
9740 }
9741 _ACEOF
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744   (eval $ac_link) 2>&5
9745   ac_status=$?
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); } &&
9748          { ac_try='test -s conftest$ac_exeext'
9749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750   (eval $ac_try) 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); }; }; then
9754
9755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9756 }'`
9757 # Check for a 64-bit object if we didn't find anything.
9758 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9759 }'`; fi
9760 else
9761   echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9763
9764 fi
9765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9767
9768         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9769         # Warning - without using the other run time loading flags,
9770         # -berok will link without error, but may produce a broken library.
9771         no_undefined_flag_CXX=' ${wl}-bernotok'
9772         allow_undefined_flag_CXX=' ${wl}-berok'
9773         # -bexpall does not export symbols beginning with underscore (_)
9774         always_export_symbols_CXX=yes
9775         # Exported symbols can be pulled into shared objects from archives
9776         whole_archive_flag_spec_CXX=' '
9777         archive_cmds_need_lc_CXX=yes
9778         # This is similar to how AIX traditionally builds it's shared libraries.
9779         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'
9780       fi
9781     fi
9782     ;;
9783   chorus*)
9784     case $cc_basename in
9785       *)
9786         # FIXME: insert proper C++ library support
9787         ld_shlibs_CXX=no
9788         ;;
9789     esac
9790     ;;
9791
9792   cygwin* | mingw* | pw32*)
9793     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9794     # as there is no search path for DLLs.
9795     hardcode_libdir_flag_spec_CXX='-L$libdir'
9796     allow_undefined_flag_CXX=unsupported
9797     always_export_symbols_CXX=no
9798     enable_shared_with_static_runtimes_CXX=yes
9799
9800     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9801       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'
9802       # If the export-symbols file already is a .def file (1st line
9803       # is EXPORTS), use it as is; otherwise, prepend...
9804       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9805         cp $export_symbols $output_objdir/$soname.def;
9806       else
9807         echo EXPORTS > $output_objdir/$soname.def;
9808         cat $export_symbols >> $output_objdir/$soname.def;
9809       fi~
9810       $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'
9811     else
9812       ld_shlibs_CXX=no
9813     fi
9814   ;;
9815
9816   darwin* | rhapsody*)
9817    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9818     archive_cmds_need_lc_CXX=no
9819     case "$host_os" in
9820     rhapsody* | darwin1.[012])
9821       allow_undefined_flag_CXX='-undefined suppress'
9822       ;;
9823     *) # Darwin 1.3 on
9824       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9825       ;;
9826     esac
9827         lt_int_apple_cc_single_mod=no
9828         output_verbose_link_cmd='echo'
9829         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9830           lt_int_apple_cc_single_mod=yes
9831         fi
9832         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9833           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9834         else
9835         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'
9836       fi
9837       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9838
9839     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9840       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9841         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}'
9842       else
9843         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}'
9844       fi
9845         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}'
9846     hardcode_direct_CXX=no
9847     hardcode_automatic_CXX=yes
9848     hardcode_shlibpath_var_CXX=unsupported
9849     whole_archive_flag_spec_CXX='-all_load $convenience'
9850     link_all_deplibs_CXX=yes
9851    fi
9852     ;;
9853
9854   dgux*)
9855     case $cc_basename in
9856       ec++)
9857         # FIXME: insert proper C++ library support
9858         ld_shlibs_CXX=no
9859         ;;
9860       ghcx)
9861         # Green Hills C++ Compiler
9862         # FIXME: insert proper C++ library support
9863         ld_shlibs_CXX=no
9864         ;;
9865       *)
9866         # FIXME: insert proper C++ library support
9867         ld_shlibs_CXX=no
9868         ;;
9869     esac
9870     ;;
9871   freebsd12*)
9872     # C++ shared libraries reported to be fairly broken before switch to ELF
9873     ld_shlibs_CXX=no
9874     ;;
9875   freebsd-elf*)
9876     archive_cmds_need_lc_CXX=no
9877     ;;
9878   freebsd*)
9879     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9880     # conventions
9881     ld_shlibs_CXX=yes
9882     ;;
9883   gnu*)
9884     ;;
9885   hpux9*)
9886     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9887     hardcode_libdir_separator_CXX=:
9888     export_dynamic_flag_spec_CXX='${wl}-E'
9889     hardcode_direct_CXX=yes
9890     hardcode_minus_L_CXX=yes # Not in the search PATH,
9891                                 # but as the default
9892                                 # location of the library.
9893
9894     case $cc_basename in
9895     CC)
9896       # FIXME: insert proper C++ library support
9897       ld_shlibs_CXX=no
9898       ;;
9899     aCC)
9900       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'
9901       # Commands to make compiler produce verbose output that lists
9902       # what "hidden" libraries, object files and flags are used when
9903       # linking a shared library.
9904       #
9905       # There doesn't appear to be a way to prevent this compiler from
9906       # explicitly linking system object files so we need to strip them
9907       # from the output so that they don't get included in the library
9908       # dependencies.
9909       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'
9910       ;;
9911     *)
9912       if test "$GXX" = yes; then
9913         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'
9914       else
9915         # FIXME: insert proper C++ library support
9916         ld_shlibs_CXX=no
9917       fi
9918       ;;
9919     esac
9920     ;;
9921   hpux10*|hpux11*)
9922     if test $with_gnu_ld = no; then
9923       case "$host_cpu" in
9924       hppa*64*)
9925         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9926         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9927         hardcode_libdir_separator_CXX=:
9928         ;;
9929       ia64*)
9930         hardcode_libdir_flag_spec_CXX='-L$libdir'
9931         ;;
9932       *)
9933         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9934         hardcode_libdir_separator_CXX=:
9935         export_dynamic_flag_spec_CXX='${wl}-E'
9936         ;;
9937       esac
9938     fi
9939     case "$host_cpu" in
9940     hppa*64*)
9941       hardcode_direct_CXX=no
9942       hardcode_shlibpath_var_CXX=no
9943       ;;
9944     ia64*)
9945       hardcode_direct_CXX=no
9946       hardcode_shlibpath_var_CXX=no
9947       hardcode_minus_L_CXX=yes # Not in the search PATH,
9948                                               # but as the default
9949                                               # location of the library.
9950       ;;
9951     *)
9952       hardcode_direct_CXX=yes
9953       hardcode_minus_L_CXX=yes # Not in the search PATH,
9954                                               # but as the default
9955                                               # location of the library.
9956       ;;
9957     esac
9958
9959     case $cc_basename in
9960       CC)
9961         # FIXME: insert proper C++ library support
9962         ld_shlibs_CXX=no
9963         ;;
9964       aCC)
9965         case "$host_cpu" in
9966         hppa*64*|ia64*)
9967           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9968           ;;
9969         *)
9970           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9971           ;;
9972         esac
9973         # Commands to make compiler produce verbose output that lists
9974         # what "hidden" libraries, object files and flags are used when
9975         # linking a shared library.
9976         #
9977         # There doesn't appear to be a way to prevent this compiler from
9978         # explicitly linking system object files so we need to strip them
9979         # from the output so that they don't get included in the library
9980         # dependencies.
9981         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'
9982         ;;
9983       *)
9984         if test "$GXX" = yes; then
9985           if test $with_gnu_ld = no; then
9986             case "$host_cpu" in
9987             ia64*|hppa*64*)
9988               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9989               ;;
9990             *)
9991               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'
9992               ;;
9993             esac
9994           fi
9995         else
9996           # FIXME: insert proper C++ library support
9997           ld_shlibs_CXX=no
9998         fi
9999         ;;
10000     esac
10001     ;;
10002   irix5* | irix6*)
10003     case $cc_basename in
10004       CC)
10005         # SGI C++
10006         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'
10007
10008         # Archives containing C++ object files must be created using
10009         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10010         # necessary to make sure instantiated templates are included
10011         # in the archive.
10012         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10013         ;;
10014       *)
10015         if test "$GXX" = yes; then
10016           if test "$with_gnu_ld" = no; then
10017             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'
10018           else
10019             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'
10020           fi
10021         fi
10022         link_all_deplibs_CXX=yes
10023         ;;
10024     esac
10025     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10026     hardcode_libdir_separator_CXX=:
10027     ;;
10028   linux*)
10029     case $cc_basename in
10030       KCC)
10031         # Kuck and Associates, Inc. (KAI) C++ Compiler
10032
10033         # KCC will only create a shared library if the output file
10034         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10035         # to its proper name (with version) after linking.
10036         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'
10037         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'
10038         # Commands to make compiler produce verbose output that lists
10039         # what "hidden" libraries, object files and flags are used when
10040         # linking a shared library.
10041         #
10042         # There doesn't appear to be a way to prevent this compiler from
10043         # explicitly linking system object files so we need to strip them
10044         # from the output so that they don't get included in the library
10045         # dependencies.
10046         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'
10047
10048         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10049         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10050
10051         # Archives containing C++ object files must be created using
10052         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10053         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10054         ;;
10055       icpc)
10056         # Intel C++
10057         with_gnu_ld=yes
10058         archive_cmds_need_lc_CXX=no
10059         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10060         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'
10061         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10062         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10063         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10064         ;;
10065       cxx)
10066         # Compaq C++
10067         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10068         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'
10069
10070         runpath_var=LD_RUN_PATH
10071         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10072         hardcode_libdir_separator_CXX=:
10073
10074         # Commands to make compiler produce verbose output that lists
10075         # what "hidden" libraries, object files and flags are used when
10076         # linking a shared library.
10077         #
10078         # There doesn't appear to be a way to prevent this compiler from
10079         # explicitly linking system object files so we need to strip them
10080         # from the output so that they don't get included in the library
10081         # dependencies.
10082         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'
10083         ;;
10084     esac
10085     ;;
10086   lynxos*)
10087     # FIXME: insert proper C++ library support
10088     ld_shlibs_CXX=no
10089     ;;
10090   m88k*)
10091     # FIXME: insert proper C++ library support
10092     ld_shlibs_CXX=no
10093     ;;
10094   mvs*)
10095     case $cc_basename in
10096       cxx)
10097         # FIXME: insert proper C++ library support
10098         ld_shlibs_CXX=no
10099         ;;
10100       *)
10101         # FIXME: insert proper C++ library support
10102         ld_shlibs_CXX=no
10103         ;;
10104     esac
10105     ;;
10106   netbsd*)
10107     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10108       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10109       wlarc=
10110       hardcode_libdir_flag_spec_CXX='-R$libdir'
10111       hardcode_direct_CXX=yes
10112       hardcode_shlibpath_var_CXX=no
10113     fi
10114     # Workaround some broken pre-1.5 toolchains
10115     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10116     ;;
10117   osf3*)
10118     case $cc_basename in
10119       KCC)
10120         # Kuck and Associates, Inc. (KAI) C++ Compiler
10121
10122         # KCC will only create a shared library if the output file
10123         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10124         # to its proper name (with version) after linking.
10125         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'
10126
10127         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10128         hardcode_libdir_separator_CXX=:
10129
10130         # Archives containing C++ object files must be created using
10131         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10132         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10133
10134         ;;
10135       RCC)
10136         # Rational C++ 2.4.1
10137         # FIXME: insert proper C++ library support
10138         ld_shlibs_CXX=no
10139         ;;
10140       cxx)
10141         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10142         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'
10143
10144         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10145         hardcode_libdir_separator_CXX=:
10146
10147         # Commands to make compiler produce verbose output that lists
10148         # what "hidden" libraries, object files and flags are used when
10149         # linking a shared library.
10150         #
10151         # There doesn't appear to be a way to prevent this compiler from
10152         # explicitly linking system object files so we need to strip them
10153         # from the output so that they don't get included in the library
10154         # dependencies.
10155         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'
10156         ;;
10157       *)
10158         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10159           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10160           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'
10161
10162           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10163           hardcode_libdir_separator_CXX=:
10164
10165           # Commands to make compiler produce verbose output that lists
10166           # what "hidden" libraries, object files and flags are used when
10167           # linking a shared library.
10168           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10169
10170         else
10171           # FIXME: insert proper C++ library support
10172           ld_shlibs_CXX=no
10173         fi
10174         ;;
10175     esac
10176     ;;
10177   osf4* | osf5*)
10178     case $cc_basename in
10179       KCC)
10180         # Kuck and Associates, Inc. (KAI) C++ Compiler
10181
10182         # KCC will only create a shared library if the output file
10183         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10184         # to its proper name (with version) after linking.
10185         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'
10186
10187         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10188         hardcode_libdir_separator_CXX=:
10189
10190         # Archives containing C++ object files must be created using
10191         # the KAI C++ compiler.
10192         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10193         ;;
10194       RCC)
10195         # Rational C++ 2.4.1
10196         # FIXME: insert proper C++ library support
10197         ld_shlibs_CXX=no
10198         ;;
10199       cxx)
10200         allow_undefined_flag_CXX=' -expect_unresolved \*'
10201         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'
10202         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10203           echo "-hidden">> $lib.exp~
10204           $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~
10205           $rm $lib.exp'
10206
10207         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10208         hardcode_libdir_separator_CXX=:
10209
10210         # Commands to make compiler produce verbose output that lists
10211         # what "hidden" libraries, object files and flags are used when
10212         # linking a shared library.
10213         #
10214         # There doesn't appear to be a way to prevent this compiler from
10215         # explicitly linking system object files so we need to strip them
10216         # from the output so that they don't get included in the library
10217         # dependencies.
10218         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'
10219         ;;
10220       *)
10221         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10222           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10223          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'
10224
10225           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10226           hardcode_libdir_separator_CXX=:
10227
10228           # Commands to make compiler produce verbose output that lists
10229           # what "hidden" libraries, object files and flags are used when
10230           # linking a shared library.
10231           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10232
10233         else
10234           # FIXME: insert proper C++ library support
10235           ld_shlibs_CXX=no
10236         fi
10237         ;;
10238     esac
10239     ;;
10240   psos*)
10241     # FIXME: insert proper C++ library support
10242     ld_shlibs_CXX=no
10243     ;;
10244   sco*)
10245     archive_cmds_need_lc_CXX=no
10246     case $cc_basename in
10247       CC)
10248         # FIXME: insert proper C++ library support
10249         ld_shlibs_CXX=no
10250         ;;
10251       *)
10252         # FIXME: insert proper C++ library support
10253         ld_shlibs_CXX=no
10254         ;;
10255     esac
10256     ;;
10257   sunos4*)
10258     case $cc_basename in
10259       CC)
10260         # Sun C++ 4.x
10261         # FIXME: insert proper C++ library support
10262         ld_shlibs_CXX=no
10263         ;;
10264       lcc)
10265         # Lucid
10266         # FIXME: insert proper C++ library support
10267         ld_shlibs_CXX=no
10268         ;;
10269       *)
10270         # FIXME: insert proper C++ library support
10271         ld_shlibs_CXX=no
10272         ;;
10273     esac
10274     ;;
10275   solaris*)
10276     case $cc_basename in
10277       CC)
10278         # Sun C++ 4.2, 5.x and Centerline C++
10279         no_undefined_flag_CXX=' -zdefs'
10280         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10281         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10282         $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'
10283
10284         hardcode_libdir_flag_spec_CXX='-R$libdir'
10285         hardcode_shlibpath_var_CXX=no
10286         case $host_os in
10287           solaris2.0-5 | solaris2.0-5.*) ;;
10288           *)
10289             # The C++ compiler is used as linker so we must use $wl
10290             # flag to pass the commands to the underlying system
10291             # linker.
10292             # Supported since Solaris 2.6 (maybe 2.5.1?)
10293             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10294             ;;
10295         esac
10296         link_all_deplibs_CXX=yes
10297
10298         # Commands to make compiler produce verbose output that lists
10299         # what "hidden" libraries, object files and flags are used when
10300         # linking a shared library.
10301         #
10302         # There doesn't appear to be a way to prevent this compiler from
10303         # explicitly linking system object files so we need to strip them
10304         # from the output so that they don't get included in the library
10305         # dependencies.
10306         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'
10307
10308         # Archives containing C++ object files must be created using
10309         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10310         # necessary to make sure instantiated templates are included
10311         # in the archive.
10312         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10313         ;;
10314       gcx)
10315         # Green Hills C++ Compiler
10316         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10317
10318         # The C++ compiler must be used to create the archive.
10319         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10320         ;;
10321       *)
10322         # GNU C++ compiler with Solaris linker
10323         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10324           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10325           if $CC --version | grep -v '^2\.7' > /dev/null; then
10326             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10327             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10328                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10329
10330             # Commands to make compiler produce verbose output that lists
10331             # what "hidden" libraries, object files and flags are used when
10332             # linking a shared library.
10333             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10334           else
10335             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10336             # platform.
10337             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10338             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10339                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10340
10341             # Commands to make compiler produce verbose output that lists
10342             # what "hidden" libraries, object files and flags are used when
10343             # linking a shared library.
10344             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10345           fi
10346
10347           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10348         fi
10349         ;;
10350     esac
10351     ;;
10352   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10353     archive_cmds_need_lc_CXX=no
10354     ;;
10355   tandem*)
10356     case $cc_basename in
10357       NCC)
10358         # NonStop-UX NCC 3.20
10359         # FIXME: insert proper C++ library support
10360         ld_shlibs_CXX=no
10361         ;;
10362       *)
10363         # FIXME: insert proper C++ library support
10364         ld_shlibs_CXX=no
10365         ;;
10366     esac
10367     ;;
10368   vxworks*)
10369     # FIXME: insert proper C++ library support
10370     ld_shlibs_CXX=no
10371     ;;
10372   *)
10373     # FIXME: insert proper C++ library support
10374     ld_shlibs_CXX=no
10375     ;;
10376 esac
10377 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10378 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10379 test "$ld_shlibs_CXX" = no && can_build_shared=no
10380
10381 GCC_CXX="$GXX"
10382 LD_CXX="$LD"
10383
10384 ## CAVEAT EMPTOR:
10385 ## There is no encapsulation within the following macros, do not change
10386 ## the running order or otherwise move them around unless you know exactly
10387 ## what you are doing...
10388
10389 cat > conftest.$ac_ext <<EOF
10390 class Foo
10391 {
10392 public:
10393   Foo (void) { a = 0; }
10394 private:
10395   int a;
10396 };
10397 EOF
10398
10399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400   (eval $ac_compile) 2>&5
10401   ac_status=$?
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); }; then
10404   # Parse the compiler output and extract the necessary
10405   # objects, libraries and library flags.
10406
10407   # Sentinel used to keep track of whether or not we are before
10408   # the conftest object file.
10409   pre_test_object_deps_done=no
10410
10411   # The `*' in the case matches for architectures that use `case' in
10412   # $output_verbose_cmd can trigger glob expansion during the loop
10413   # eval without this substitution.
10414   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10415
10416   for p in `eval $output_verbose_link_cmd`; do
10417     case $p in
10418
10419     -L* | -R* | -l*)
10420        # Some compilers place space between "-{L,R}" and the path.
10421        # Remove the space.
10422        if test $p = "-L" \
10423           || test $p = "-R"; then
10424          prev=$p
10425          continue
10426        else
10427          prev=
10428        fi
10429
10430        if test "$pre_test_object_deps_done" = no; then
10431          case $p in
10432          -L* | -R*)
10433            # Internal compiler library paths should come after those
10434            # provided the user.  The postdeps already come after the
10435            # user supplied libs so there is no need to process them.
10436            if test -z "$compiler_lib_search_path_CXX"; then
10437              compiler_lib_search_path_CXX="${prev}${p}"
10438            else
10439              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10440            fi
10441            ;;
10442          # The "-l" case would never come before the object being
10443          # linked, so don't bother handling this case.
10444          esac
10445        else
10446          if test -z "$postdeps_CXX"; then
10447            postdeps_CXX="${prev}${p}"
10448          else
10449            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10450          fi
10451        fi
10452        ;;
10453
10454     *.$objext)
10455        # This assumes that the test object file only shows up
10456        # once in the compiler output.
10457        if test "$p" = "conftest.$objext"; then
10458          pre_test_object_deps_done=yes
10459          continue
10460        fi
10461
10462        if test "$pre_test_object_deps_done" = no; then
10463          if test -z "$predep_objects_CXX"; then
10464            predep_objects_CXX="$p"
10465          else
10466            predep_objects_CXX="$predep_objects_CXX $p"
10467          fi
10468        else
10469          if test -z "$postdep_objects_CXX"; then
10470            postdep_objects_CXX="$p"
10471          else
10472            postdep_objects_CXX="$postdep_objects_CXX $p"
10473          fi
10474        fi
10475        ;;
10476
10477     *) ;; # Ignore the rest.
10478
10479     esac
10480   done
10481
10482   # Clean up.
10483   rm -f a.out a.exe
10484 else
10485   echo "libtool.m4: error: problem compiling CXX test program"
10486 fi
10487
10488 $rm -f confest.$objext
10489
10490 case " $postdeps_CXX " in
10491 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10492 esac
10493
10494 lt_prog_compiler_wl_CXX=
10495 lt_prog_compiler_pic_CXX=
10496 lt_prog_compiler_static_CXX=
10497
10498 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10499 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10500
10501   # C++ specific cases for pic, static, wl, etc.
10502   if test "$GXX" = yes; then
10503     lt_prog_compiler_wl_CXX='-Wl,'
10504     lt_prog_compiler_static_CXX='-static'
10505
10506     case $host_os in
10507     aix*)
10508       # All AIX code is PIC.
10509       if test "$host_cpu" = ia64; then
10510         # AIX 5 now supports IA64 processor
10511         lt_prog_compiler_static_CXX='-Bstatic'
10512       fi
10513       ;;
10514     amigaos*)
10515       # FIXME: we need at least 68020 code to build shared libraries, but
10516       # adding the `-m68020' flag to GCC prevents building anything better,
10517       # like `-m68040'.
10518       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10519       ;;
10520     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10521       # PIC is the default for these OSes.
10522       ;;
10523     mingw* | os2* | pw32*)
10524       # This hack is so that the source file can tell whether it is being
10525       # built for inclusion in a dll (and should export symbols for example).
10526       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10527       ;;
10528     darwin* | rhapsody*)
10529       # PIC is the default on this platform
10530       # Common symbols not allowed in MH_DYLIB files
10531       lt_prog_compiler_pic_CXX='-fno-common'
10532       ;;
10533     *djgpp*)
10534       # DJGPP does not support shared libraries at all
10535       lt_prog_compiler_pic_CXX=
10536       ;;
10537     sysv4*MP*)
10538       if test -d /usr/nec; then
10539         lt_prog_compiler_pic_CXX=-Kconform_pic
10540       fi
10541       ;;
10542     hpux*)
10543       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10544       # not for PA HP-UX.
10545       case "$host_cpu" in
10546       hppa*64*|ia64*)
10547         ;;
10548       *)
10549         lt_prog_compiler_pic_CXX='-fPIC'
10550         ;;
10551       esac
10552       ;;
10553     *)
10554       lt_prog_compiler_pic_CXX='-fPIC'
10555       ;;
10556     esac
10557   else
10558     case $host_os in
10559       aix4* | aix5*)
10560         # All AIX code is PIC.
10561         if test "$host_cpu" = ia64; then
10562           # AIX 5 now supports IA64 processor
10563           lt_prog_compiler_static_CXX='-Bstatic'
10564         else
10565           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10566         fi
10567         ;;
10568       chorus*)
10569         case $cc_basename in
10570         cxch68)
10571           # Green Hills C++ Compiler
10572           # _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"
10573           ;;
10574         esac
10575         ;;
10576       dgux*)
10577         case $cc_basename in
10578           ec++)
10579             lt_prog_compiler_pic_CXX='-KPIC'
10580             ;;
10581           ghcx)
10582             # Green Hills C++ Compiler
10583             lt_prog_compiler_pic_CXX='-pic'
10584             ;;
10585           *)
10586             ;;
10587         esac
10588         ;;
10589       freebsd*)
10590         # FreeBSD uses GNU C++
10591         ;;
10592       hpux9* | hpux10* | hpux11*)
10593         case $cc_basename in
10594           CC)
10595             lt_prog_compiler_wl_CXX='-Wl,'
10596             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10597             if test "$host_cpu" != ia64; then
10598               lt_prog_compiler_pic_CXX='+Z'
10599             fi
10600             ;;
10601           aCC)
10602             lt_prog_compiler_wl_CXX='-Wl,'
10603             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10604             case "$host_cpu" in
10605             hppa*64*|ia64*)
10606               # +Z the default
10607               ;;
10608             *)
10609               lt_prog_compiler_pic_CXX='+Z'
10610               ;;
10611             esac
10612             ;;
10613           *)
10614             ;;
10615         esac
10616         ;;
10617       irix5* | irix6* | nonstopux*)
10618         case $cc_basename in
10619           CC)
10620             lt_prog_compiler_wl_CXX='-Wl,'
10621             lt_prog_compiler_static_CXX='-non_shared'
10622             # CC pic flag -KPIC is the default.
10623             ;;
10624           *)
10625             ;;
10626         esac
10627         ;;
10628       linux*)
10629         case $cc_basename in
10630           KCC)
10631             # KAI C++ Compiler
10632             lt_prog_compiler_wl_CXX='--backend -Wl,'
10633             lt_prog_compiler_pic_CXX='-fPIC'
10634             ;;
10635           icpc)
10636             # Intel C++
10637             lt_prog_compiler_wl_CXX='-Wl,'
10638             lt_prog_compiler_pic_CXX='-KPIC'
10639             lt_prog_compiler_static_CXX='-static'
10640             ;;
10641           cxx)
10642             # Compaq C++
10643             # Make sure the PIC flag is empty.  It appears that all Alpha
10644             # Linux and Compaq Tru64 Unix objects are PIC.
10645             lt_prog_compiler_pic_CXX=
10646             lt_prog_compiler_static_CXX='-non_shared'
10647             ;;
10648           *)
10649             ;;
10650         esac
10651         ;;
10652       lynxos*)
10653         ;;
10654       m88k*)
10655         ;;
10656       mvs*)
10657         case $cc_basename in
10658           cxx)
10659             lt_prog_compiler_pic_CXX='-W c,exportall'
10660             ;;
10661           *)
10662             ;;
10663         esac
10664         ;;
10665       netbsd*)
10666         ;;
10667       osf3* | osf4* | osf5*)
10668         case $cc_basename in
10669           KCC)
10670             lt_prog_compiler_wl_CXX='--backend -Wl,'
10671             ;;
10672           RCC)
10673             # Rational C++ 2.4.1
10674             lt_prog_compiler_pic_CXX='-pic'
10675             ;;
10676           cxx)
10677             # Digital/Compaq C++
10678             lt_prog_compiler_wl_CXX='-Wl,'
10679             # Make sure the PIC flag is empty.  It appears that all Alpha
10680             # Linux and Compaq Tru64 Unix objects are PIC.
10681             lt_prog_compiler_pic_CXX=
10682             lt_prog_compiler_static_CXX='-non_shared'
10683             ;;
10684           *)
10685             ;;
10686         esac
10687         ;;
10688       psos*)
10689         ;;
10690       sco*)
10691         case $cc_basename in
10692           CC)
10693             lt_prog_compiler_pic_CXX='-fPIC'
10694             ;;
10695           *)
10696             ;;
10697         esac
10698         ;;
10699       solaris*)
10700         case $cc_basename in
10701           CC)
10702             # Sun C++ 4.2, 5.x and Centerline C++
10703             lt_prog_compiler_pic_CXX='-KPIC'
10704             lt_prog_compiler_static_CXX='-Bstatic'
10705             lt_prog_compiler_wl_CXX='-Qoption ld '
10706             ;;
10707           gcx)
10708             # Green Hills C++ Compiler
10709             lt_prog_compiler_pic_CXX='-PIC'
10710             ;;
10711           *)
10712             ;;
10713         esac
10714         ;;
10715       sunos4*)
10716         case $cc_basename in
10717           CC)
10718             # Sun C++ 4.x
10719             lt_prog_compiler_pic_CXX='-pic'
10720             lt_prog_compiler_static_CXX='-Bstatic'
10721             ;;
10722           lcc)
10723             # Lucid
10724             lt_prog_compiler_pic_CXX='-pic'
10725             ;;
10726           *)
10727             ;;
10728         esac
10729         ;;
10730       tandem*)
10731         case $cc_basename in
10732           NCC)
10733             # NonStop-UX NCC 3.20
10734             lt_prog_compiler_pic_CXX='-KPIC'
10735             ;;
10736           *)
10737             ;;
10738         esac
10739         ;;
10740       unixware*)
10741         ;;
10742       vxworks*)
10743         ;;
10744       *)
10745         lt_prog_compiler_can_build_shared_CXX=no
10746         ;;
10747     esac
10748   fi
10749
10750 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10751 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10752
10753 #
10754 # Check to make sure the PIC flag actually works.
10755 #
10756 if test -n "$lt_prog_compiler_pic_CXX"; then
10757   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10758 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10759 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10760   echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else
10762   lt_prog_compiler_pic_works_CXX=no
10763   ac_outfile=conftest.$ac_objext
10764    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10765    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10766    # Insert the option either (1) after the last *FLAGS variable, or
10767    # (2) before a word containing "conftest.", or (3) at the end.
10768    # Note that $ac_compile itself does not contain backslashes and begins
10769    # with a dollar sign (not a hyphen), so the echo should work correctly.
10770    # The option is referenced via a variable to avoid confusing sed.
10771    lt_compile=`echo "$ac_compile" | $SED \
10772    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10773    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10774    -e 's:$: $lt_compiler_flag:'`
10775    (eval echo "\"\$as_me:10775: $lt_compile\"" >&5)
10776    (eval "$lt_compile" 2>conftest.err)
10777    ac_status=$?
10778    cat conftest.err >&5
10779    echo "$as_me:10779: \$? = $ac_status" >&5
10780    if (exit $ac_status) && test -s "$ac_outfile"; then
10781      # The compiler can only warn and ignore the option if not recognized
10782      # So say no if there are warnings
10783      if test ! -s conftest.err; then
10784        lt_prog_compiler_pic_works_CXX=yes
10785      fi
10786    fi
10787    $rm conftest*
10788
10789 fi
10790 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10791 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10792
10793 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10794     case $lt_prog_compiler_pic_CXX in
10795      "" | " "*) ;;
10796      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10797      esac
10798 else
10799     lt_prog_compiler_pic_CXX=
10800      lt_prog_compiler_can_build_shared_CXX=no
10801 fi
10802
10803 fi
10804 case "$host_os" in
10805   # For platforms which do not support PIC, -DPIC is meaningless:
10806   *djgpp*)
10807     lt_prog_compiler_pic_CXX=
10808     ;;
10809   *)
10810     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10811     ;;
10812 esac
10813
10814 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10815 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10816 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10817   echo $ECHO_N "(cached) $ECHO_C" >&6
10818 else
10819   lt_cv_prog_compiler_c_o_CXX=no
10820    $rm -r conftest 2>/dev/null
10821    mkdir conftest
10822    cd conftest
10823    mkdir out
10824    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10825
10826    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10827    # that will create temporary files in the current directory regardless of
10828    # the output directory.  Thus, making CWD read-only will cause this test
10829    # to fail, enabling locking or at least warning the user not to do parallel
10830    # builds.
10831    chmod -w .
10832
10833    lt_compiler_flag="-o out/conftest2.$ac_objext"
10834    # Insert the option either (1) after the last *FLAGS variable, or
10835    # (2) before a word containing "conftest.", or (3) at the end.
10836    # Note that $ac_compile itself does not contain backslashes and begins
10837    # with a dollar sign (not a hyphen), so the echo should work correctly.
10838    lt_compile=`echo "$ac_compile" | $SED \
10839    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10840    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10841    -e 's:$: $lt_compiler_flag:'`
10842    (eval echo "\"\$as_me:10842: $lt_compile\"" >&5)
10843    (eval "$lt_compile" 2>out/conftest.err)
10844    ac_status=$?
10845    cat out/conftest.err >&5
10846    echo "$as_me:10846: \$? = $ac_status" >&5
10847    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10848    then
10849      # The compiler can only warn and ignore the option if not recognized
10850      # So say no if there are warnings
10851      if test ! -s out/conftest.err; then
10852        lt_cv_prog_compiler_c_o_CXX=yes
10853      fi
10854    fi
10855    chmod u+w .
10856    $rm conftest* out/*
10857    rmdir out
10858    cd ..
10859    rmdir conftest
10860    $rm conftest*
10861
10862 fi
10863 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10864 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10865
10866
10867 hard_links="nottested"
10868 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10869   # do not overwrite the value of need_locks provided by the user
10870   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10871 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10872   hard_links=yes
10873   $rm conftest*
10874   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10875   touch conftest.a
10876   ln conftest.a conftest.b 2>&5 || hard_links=no
10877   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10878   echo "$as_me:$LINENO: result: $hard_links" >&5
10879 echo "${ECHO_T}$hard_links" >&6
10880   if test "$hard_links" = no; then
10881     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10882 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10883     need_locks=warn
10884   fi
10885 else
10886   need_locks=no
10887 fi
10888
10889 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10890 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10891
10892   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10893   case $host_os in
10894   aix4* | aix5*)
10895     # If we're using GNU nm, then we don't want the "-C" option.
10896     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10897     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10898       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'
10899     else
10900       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'
10901     fi
10902     ;;
10903   pw32*)
10904     export_symbols_cmds_CXX="$ltdll_cmds"
10905   ;;
10906   cygwin* | mingw*)
10907     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10908   ;;
10909   *)
10910     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10911   ;;
10912   esac
10913
10914 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10915 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10916 test "$ld_shlibs_CXX" = no && can_build_shared=no
10917
10918 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10919 if test "$GCC" = yes; then
10920   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10921 fi
10922
10923 #
10924 # Do we need to explicitly link libc?
10925 #
10926 case "x$archive_cmds_need_lc_CXX" in
10927 x|xyes)
10928   # Assume -lc should be added
10929   archive_cmds_need_lc_CXX=yes
10930
10931   if test "$enable_shared" = yes && test "$GCC" = yes; then
10932     case $archive_cmds_CXX in
10933     *'~'*)
10934       # FIXME: we may have to deal with multi-command sequences.
10935       ;;
10936     '$CC '*)
10937       # Test whether the compiler implicitly links with -lc since on some
10938       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10939       # to ld, don't add -lc before -lgcc.
10940       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10941 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10942       $rm conftest*
10943       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10944
10945       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946   (eval $ac_compile) 2>&5
10947   ac_status=$?
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); } 2>conftest.err; then
10950         soname=conftest
10951         lib=conftest
10952         libobjs=conftest.$ac_objext
10953         deplibs=
10954         wl=$lt_prog_compiler_wl_CXX
10955         compiler_flags=-v
10956         linker_flags=-v
10957         verstring=
10958         output_objdir=.
10959         libname=conftest
10960         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10961         allow_undefined_flag_CXX=
10962         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10963   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10964   ac_status=$?
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); }
10967         then
10968           archive_cmds_need_lc_CXX=no
10969         else
10970           archive_cmds_need_lc_CXX=yes
10971         fi
10972         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10973       else
10974         cat conftest.err 1>&5
10975       fi
10976       $rm conftest*
10977       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10978 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10979       ;;
10980     esac
10981   fi
10982   ;;
10983 esac
10984
10985 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10986 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10987 hardcode_action_CXX=
10988 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10989    test -n "$runpath_var CXX" || \
10990    test "X$hardcode_automatic_CXX"="Xyes" ; then
10991
10992   # We can hardcode non-existant directories.
10993   if test "$hardcode_direct_CXX" != no &&
10994      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10995      # have to relink, otherwise we might link with an installed library
10996      # when we should be linking with a yet-to-be-installed one
10997      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10998      test "$hardcode_minus_L_CXX" != no; then
10999     # Linking always hardcodes the temporary library directory.
11000     hardcode_action_CXX=relink
11001   else
11002     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11003     hardcode_action_CXX=immediate
11004   fi
11005 else
11006   # We cannot hardcode anything, or else we can only hardcode existing
11007   # directories.
11008   hardcode_action_CXX=unsupported
11009 fi
11010 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11011 echo "${ECHO_T}$hardcode_action_CXX" >&6
11012
11013 if test "$hardcode_action_CXX" = relink; then
11014   # Fast installation is not supported
11015   enable_fast_install=no
11016 elif test "$shlibpath_overrides_runpath" = yes ||
11017      test "$enable_shared" = no; then
11018   # Fast installation is not necessary
11019   enable_fast_install=needless
11020 fi
11021
11022 striplib=
11023 old_striplib=
11024 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11025 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11026 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11027   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11028   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11029   echo "$as_me:$LINENO: result: yes" >&5
11030 echo "${ECHO_T}yes" >&6
11031 else
11032 # FIXME - insert some real tests, host_os isn't really good enough
11033   case $host_os in
11034    darwin*)
11035        if test -n "$STRIP" ; then
11036          striplib="$STRIP -x"
11037          echo "$as_me:$LINENO: result: yes" >&5
11038 echo "${ECHO_T}yes" >&6
11039        else
11040   echo "$as_me:$LINENO: result: no" >&5
11041 echo "${ECHO_T}no" >&6
11042 fi
11043        ;;
11044    *)
11045   echo "$as_me:$LINENO: result: no" >&5
11046 echo "${ECHO_T}no" >&6
11047     ;;
11048   esac
11049 fi
11050
11051 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11052 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11053 library_names_spec=
11054 libname_spec='lib$name'
11055 soname_spec=
11056 shrext=".so"
11057 postinstall_cmds=
11058 postuninstall_cmds=
11059 finish_cmds=
11060 finish_eval=
11061 shlibpath_var=
11062 shlibpath_overrides_runpath=unknown
11063 version_type=none
11064 dynamic_linker="$host_os ld.so"
11065 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11066 if test "$GCC" = yes; then
11067   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11068   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11069     # if the path contains ";" then we assume it to be the separator
11070     # otherwise default to the standard path separator (i.e. ":") - it is
11071     # assumed that no part of a normal pathname contains ";" but that should
11072     # okay in the real world where ";" in dirpaths is itself problematic.
11073     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11074   else
11075     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11076   fi
11077 else
11078   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11079 fi
11080 need_lib_prefix=unknown
11081 hardcode_into_libs=no
11082
11083 # when you set need_version to no, make sure it does not cause -set_version
11084 # flags to be left without arguments
11085 need_version=unknown
11086
11087 case $host_os in
11088 aix3*)
11089   version_type=linux
11090   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11091   shlibpath_var=LIBPATH
11092
11093   # AIX 3 has no versioning support, so we append a major version to the name.
11094   soname_spec='${libname}${release}${shared_ext}$major'
11095   ;;
11096
11097 aix4* | aix5*)
11098   version_type=linux
11099   need_lib_prefix=no
11100   need_version=no
11101   hardcode_into_libs=yes
11102   if test "$host_cpu" = ia64; then
11103     # AIX 5 supports IA64
11104     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11105     shlibpath_var=LD_LIBRARY_PATH
11106   else
11107     # With GCC up to 2.95.x, collect2 would create an import file
11108     # for dependence libraries.  The import file would start with
11109     # the line `#! .'.  This would cause the generated library to
11110     # depend on `.', always an invalid library.  This was fixed in
11111     # development snapshots of GCC prior to 3.0.
11112     case $host_os in
11113       aix4 | aix4.[01] | aix4.[01].*)
11114       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11115            echo ' yes '
11116            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11117         :
11118       else
11119         can_build_shared=no
11120       fi
11121       ;;
11122     esac
11123     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11124     # soname into executable. Probably we can add versioning support to
11125     # collect2, so additional links can be useful in future.
11126     if test "$aix_use_runtimelinking" = yes; then
11127       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11128       # instead of lib<name>.a to let people know that these are not
11129       # typical AIX shared libraries.
11130       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11131     else
11132       # We preserve .a as extension for shared libraries through AIX4.2
11133       # and later when we are not doing run time linking.
11134       library_names_spec='${libname}${release}.a $libname.a'
11135       soname_spec='${libname}${release}${shared_ext}$major'
11136     fi
11137     shlibpath_var=LIBPATH
11138   fi
11139   ;;
11140
11141 amigaos*)
11142   library_names_spec='$libname.ixlibrary $libname.a'
11143   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11144   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'
11145   ;;
11146
11147 beos*)
11148   library_names_spec='${libname}${shared_ext}'
11149   dynamic_linker="$host_os ld.so"
11150   shlibpath_var=LIBRARY_PATH
11151   ;;
11152
11153 bsdi4*)
11154   version_type=linux
11155   need_version=no
11156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157   soname_spec='${libname}${release}${shared_ext}$major'
11158   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11159   shlibpath_var=LD_LIBRARY_PATH
11160   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11161   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11162   # the default ld.so.conf also contains /usr/contrib/lib and
11163   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11164   # libtool to hard-code these into programs
11165   ;;
11166
11167 cygwin* | mingw* | pw32*)
11168   version_type=windows
11169   shrext=".dll"
11170   need_version=no
11171   need_lib_prefix=no
11172
11173   case $GCC,$host_os in
11174   yes,cygwin* | yes,mingw* | yes,pw32*)
11175     library_names_spec='$libname.dll.a'
11176     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11177     postinstall_cmds='base_file=`basename \${file}`~
11178       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11179       dldir=$destdir/`dirname \$dlpath`~
11180       test -d \$dldir || mkdir -p \$dldir~
11181       $install_prog $dir/$dlname \$dldir/$dlname'
11182     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11183       dlpath=$dir/\$dldll~
11184        $rm \$dlpath'
11185     shlibpath_overrides_runpath=yes
11186
11187     case $host_os in
11188     cygwin*)
11189       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11190       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11191       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11192       ;;
11193     mingw*)
11194       # MinGW DLLs use traditional 'lib' prefix
11195       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11196       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11197       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11198         # It is most probably a Windows format PATH printed by
11199         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11200         # path with ; separators, and with drive letters. We can handle the
11201         # drive letters (cygwin fileutils understands them), so leave them,
11202         # especially as we might pass files found there to a mingw objdump,
11203         # which wouldn't understand a cygwinified path. Ahh.
11204         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11205       else
11206         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11207       fi
11208       ;;
11209     pw32*)
11210       # pw32 DLLs use 'pw' prefix rather than 'lib'
11211       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11212       ;;
11213     esac
11214     ;;
11215
11216   *)
11217     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11218     ;;
11219   esac
11220   dynamic_linker='Win32 ld.exe'
11221   # FIXME: first we should search . and the directory the executable is in
11222   shlibpath_var=PATH
11223   ;;
11224
11225 darwin* | rhapsody*)
11226   dynamic_linker="$host_os dyld"
11227   version_type=darwin
11228   need_lib_prefix=no
11229   need_version=no
11230   # FIXME: Relying on posixy $() will cause problems for
11231   #        cross-compilation, but unfortunately the echo tests do not
11232   #        yet detect zsh echo's removal of \ escapes.
11233   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11234   soname_spec='${libname}${release}${major}$shared_ext'
11235   shlibpath_overrides_runpath=yes
11236   shlibpath_var=DYLD_LIBRARY_PATH
11237   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11238   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11239   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11240   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"`
11241   fi
11242   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11243   ;;
11244
11245 dgux*)
11246   version_type=linux
11247   need_lib_prefix=no
11248   need_version=no
11249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11250   soname_spec='${libname}${release}${shared_ext}$major'
11251   shlibpath_var=LD_LIBRARY_PATH
11252   ;;
11253
11254 freebsd1*)
11255   dynamic_linker=no
11256   ;;
11257
11258 freebsd*)
11259   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11260   version_type=freebsd-$objformat
11261   case $version_type in
11262     freebsd-elf*)
11263       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11264       need_version=no
11265       need_lib_prefix=no
11266       ;;
11267     freebsd-*)
11268       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11269       need_version=yes
11270       ;;
11271   esac
11272   shlibpath_var=LD_LIBRARY_PATH
11273   case $host_os in
11274   freebsd2*)
11275     shlibpath_overrides_runpath=yes
11276     ;;
11277   freebsd3.01* | freebsdelf3.01*)
11278     shlibpath_overrides_runpath=yes
11279     hardcode_into_libs=yes
11280     ;;
11281   *) # from 3.2 on
11282     shlibpath_overrides_runpath=no
11283     hardcode_into_libs=yes
11284     ;;
11285   esac
11286   ;;
11287
11288 gnu*)
11289   version_type=linux
11290   need_lib_prefix=no
11291   need_version=no
11292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11293   soname_spec='${libname}${release}${shared_ext}$major'
11294   shlibpath_var=LD_LIBRARY_PATH
11295   hardcode_into_libs=yes
11296   ;;
11297
11298 hpux9* | hpux10* | hpux11*)
11299   # Give a soname corresponding to the major version so that dld.sl refuses to
11300   # link against other versions.
11301   version_type=sunos
11302   need_lib_prefix=no
11303   need_version=no
11304   case "$host_cpu" in
11305   ia64*)
11306     shrext='.so'
11307     hardcode_into_libs=yes
11308     dynamic_linker="$host_os dld.so"
11309     shlibpath_var=LD_LIBRARY_PATH
11310     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11311     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11312     soname_spec='${libname}${release}${shared_ext}$major'
11313     if test "X$HPUX_IA64_MODE" = X32; then
11314       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11315     else
11316       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11317     fi
11318     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11319     ;;
11320    hppa*64*)
11321      shrext='.sl'
11322      hardcode_into_libs=yes
11323      dynamic_linker="$host_os dld.sl"
11324      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11325      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11326      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327      soname_spec='${libname}${release}${shared_ext}$major'
11328      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11329      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11330      ;;
11331    *)
11332     shrext='.sl'
11333     dynamic_linker="$host_os dld.sl"
11334     shlibpath_var=SHLIB_PATH
11335     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11336     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337     soname_spec='${libname}${release}${shared_ext}$major'
11338     ;;
11339   esac
11340   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11341   postinstall_cmds='chmod 555 $lib'
11342   ;;
11343
11344 irix5* | irix6* | nonstopux*)
11345   case $host_os in
11346     nonstopux*) version_type=nonstopux ;;
11347     *)
11348         if test "$lt_cv_prog_gnu_ld" = yes; then
11349                 version_type=linux
11350         else
11351                 version_type=irix
11352         fi ;;
11353   esac
11354   need_lib_prefix=no
11355   need_version=no
11356   soname_spec='${libname}${release}${shared_ext}$major'
11357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11358   case $host_os in
11359   irix5* | nonstopux*)
11360     libsuff= shlibsuff=
11361     ;;
11362   *)
11363     case $LD in # libtool.m4 will add one of these switches to LD
11364     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11365       libsuff= shlibsuff= libmagic=32-bit;;
11366     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11367       libsuff=32 shlibsuff=N32 libmagic=N32;;
11368     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11369       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11370     *) libsuff= shlibsuff= libmagic=never-match;;
11371     esac
11372     ;;
11373   esac
11374   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11375   shlibpath_overrides_runpath=no
11376   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11377   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11378   hardcode_into_libs=yes
11379   ;;
11380
11381 # No shared lib support for Linux oldld, aout, or coff.
11382 linux*oldld* | linux*aout* | linux*coff*)
11383   dynamic_linker=no
11384   ;;
11385
11386 # This must be Linux ELF.
11387 linux*)
11388   version_type=linux
11389   need_lib_prefix=no
11390   need_version=no
11391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392   soname_spec='${libname}${release}${shared_ext}$major'
11393   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11394   shlibpath_var=LD_LIBRARY_PATH
11395   shlibpath_overrides_runpath=no
11396   # This implies no fast_install, which is unacceptable.
11397   # Some rework will be needed to allow for fast_install
11398   # before this can be enabled.
11399   hardcode_into_libs=yes
11400
11401   # We used to test for /lib/ld.so.1 and disable shared libraries on
11402   # powerpc, because MkLinux only supported shared libraries with the
11403   # GNU dynamic linker.  Since this was broken with cross compilers,
11404   # most powerpc-linux boxes support dynamic linking these days and
11405   # people can always --disable-shared, the test was removed, and we
11406   # assume the GNU/Linux dynamic linker is in use.
11407   dynamic_linker='GNU/Linux ld.so'
11408   ;;
11409
11410 netbsd*)
11411   version_type=sunos
11412   need_lib_prefix=no
11413   need_version=no
11414   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11416     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11417     dynamic_linker='NetBSD (a.out) ld.so'
11418   else
11419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11420     soname_spec='${libname}${release}${shared_ext}$major'
11421     dynamic_linker='NetBSD ld.elf_so'
11422   fi
11423   shlibpath_var=LD_LIBRARY_PATH
11424   shlibpath_overrides_runpath=yes
11425   hardcode_into_libs=yes
11426   ;;
11427
11428 newsos6)
11429   version_type=linux
11430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431   shlibpath_var=LD_LIBRARY_PATH
11432   shlibpath_overrides_runpath=yes
11433   ;;
11434
11435 nto-qnx)
11436   version_type=linux
11437   need_lib_prefix=no
11438   need_version=no
11439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440   soname_spec='${libname}${release}${shared_ext}$major'
11441   shlibpath_var=LD_LIBRARY_PATH
11442   shlibpath_overrides_runpath=yes
11443   ;;
11444
11445 openbsd*)
11446   version_type=sunos
11447   need_lib_prefix=no
11448   need_version=no
11449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11450   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11451   shlibpath_var=LD_LIBRARY_PATH
11452   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11453     case $host_os in
11454       openbsd2.[89] | openbsd2.[89].*)
11455         shlibpath_overrides_runpath=no
11456         ;;
11457       *)
11458         shlibpath_overrides_runpath=yes
11459         ;;
11460       esac
11461   else
11462     shlibpath_overrides_runpath=yes
11463   fi
11464   ;;
11465
11466 os2*)
11467   libname_spec='$name'
11468   shrext=".dll"
11469   need_lib_prefix=no
11470   library_names_spec='$libname${shared_ext} $libname.a'
11471   dynamic_linker='OS/2 ld.exe'
11472   shlibpath_var=LIBPATH
11473   ;;
11474
11475 osf3* | osf4* | osf5*)
11476   version_type=osf
11477   need_lib_prefix=no
11478   need_version=no
11479   soname_spec='${libname}${release}${shared_ext}$major'
11480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11483   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11484   ;;
11485
11486 sco3.2v5*)
11487   version_type=osf
11488   soname_spec='${libname}${release}${shared_ext}$major'
11489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490   shlibpath_var=LD_LIBRARY_PATH
11491   ;;
11492
11493 solaris*)
11494   version_type=linux
11495   need_lib_prefix=no
11496   need_version=no
11497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11498   soname_spec='${libname}${release}${shared_ext}$major'
11499   shlibpath_var=LD_LIBRARY_PATH
11500   shlibpath_overrides_runpath=yes
11501   hardcode_into_libs=yes
11502   # ldd complains unless libraries are executable
11503   postinstall_cmds='chmod +x $lib'
11504   ;;
11505
11506 sunos4*)
11507   version_type=sunos
11508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11509   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11510   shlibpath_var=LD_LIBRARY_PATH
11511   shlibpath_overrides_runpath=yes
11512   if test "$with_gnu_ld" = yes; then
11513     need_lib_prefix=no
11514   fi
11515   need_version=yes
11516   ;;
11517
11518 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11519   version_type=linux
11520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521   soname_spec='${libname}${release}${shared_ext}$major'
11522   shlibpath_var=LD_LIBRARY_PATH
11523   case $host_vendor in
11524     sni)
11525       shlibpath_overrides_runpath=no
11526       need_lib_prefix=no
11527       export_dynamic_flag_spec='${wl}-Blargedynsym'
11528       runpath_var=LD_RUN_PATH
11529       ;;
11530     siemens)
11531       need_lib_prefix=no
11532       ;;
11533     motorola)
11534       need_lib_prefix=no
11535       need_version=no
11536       shlibpath_overrides_runpath=no
11537       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11538       ;;
11539   esac
11540   ;;
11541
11542 sysv4*MP*)
11543   if test -d /usr/nec ;then
11544     version_type=linux
11545     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11546     soname_spec='$libname${shared_ext}.$major'
11547     shlibpath_var=LD_LIBRARY_PATH
11548   fi
11549   ;;
11550
11551 uts4*)
11552   version_type=linux
11553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554   soname_spec='${libname}${release}${shared_ext}$major'
11555   shlibpath_var=LD_LIBRARY_PATH
11556   ;;
11557
11558 *)
11559   dynamic_linker=no
11560   ;;
11561 esac
11562 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11563 echo "${ECHO_T}$dynamic_linker" >&6
11564 test "$dynamic_linker" = no && can_build_shared=no
11565
11566 if test "x$enable_dlopen" != xyes; then
11567   enable_dlopen=unknown
11568   enable_dlopen_self=unknown
11569   enable_dlopen_self_static=unknown
11570 else
11571   lt_cv_dlopen=no
11572   lt_cv_dlopen_libs=
11573
11574   case $host_os in
11575   beos*)
11576     lt_cv_dlopen="load_add_on"
11577     lt_cv_dlopen_libs=
11578     lt_cv_dlopen_self=yes
11579     ;;
11580
11581   mingw* | pw32*)
11582     lt_cv_dlopen="LoadLibrary"
11583     lt_cv_dlopen_libs=
11584    ;;
11585
11586   cygwin*)
11587     lt_cv_dlopen="dlopen"
11588     lt_cv_dlopen_libs=
11589    ;;
11590
11591   darwin*)
11592   # if libdl is installed we need to link against it
11593     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11594 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11595 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11596   echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598   ac_check_lib_save_LIBS=$LIBS
11599 LIBS="-ldl  $LIBS"
11600 cat >conftest.$ac_ext <<_ACEOF
11601 #line $LINENO "configure"
11602 /* confdefs.h.  */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h.  */
11607
11608 /* Override any gcc2 internal prototype to avoid an error.  */
11609 #ifdef __cplusplus
11610 extern "C"
11611 #endif
11612 /* We use char because int might match the return type of a gcc2
11613    builtin and then its argument prototype would still apply.  */
11614 char dlopen ();
11615 int
11616 main ()
11617 {
11618 dlopen ();
11619   ;
11620   return 0;
11621 }
11622 _ACEOF
11623 rm -f conftest.$ac_objext conftest$ac_exeext
11624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11625   (eval $ac_link) 2>&5
11626   ac_status=$?
11627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628   (exit $ac_status); } &&
11629          { ac_try='test -s conftest$ac_exeext'
11630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631   (eval $ac_try) 2>&5
11632   ac_status=$?
11633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634   (exit $ac_status); }; }; then
11635   ac_cv_lib_dl_dlopen=yes
11636 else
11637   echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11639
11640 ac_cv_lib_dl_dlopen=no
11641 fi
11642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11643 LIBS=$ac_check_lib_save_LIBS
11644 fi
11645 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11646 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11647 if test $ac_cv_lib_dl_dlopen = yes; then
11648   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11649 else
11650
11651     lt_cv_dlopen="dyld"
11652     lt_cv_dlopen_libs=
11653     lt_cv_dlopen_self=yes
11654
11655 fi
11656
11657    ;;
11658
11659   *)
11660     echo "$as_me:$LINENO: checking for shl_load" >&5
11661 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11662 if test "${ac_cv_func_shl_load+set}" = set; then
11663   echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665   cat >conftest.$ac_ext <<_ACEOF
11666 #line $LINENO "configure"
11667 /* confdefs.h.  */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h.  */
11672 /* System header to define __stub macros and hopefully few prototypes,
11673     which can conflict with char shl_load (); below.
11674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11675     <limits.h> exists even on freestanding compilers.  */
11676 #ifdef __STDC__
11677 # include <limits.h>
11678 #else
11679 # include <assert.h>
11680 #endif
11681 /* Override any gcc2 internal prototype to avoid an error.  */
11682 #ifdef __cplusplus
11683 extern "C"
11684 {
11685 #endif
11686 /* We use char because int might match the return type of a gcc2
11687    builtin and then its argument prototype would still apply.  */
11688 char shl_load ();
11689 /* The GNU C library defines this for functions which it implements
11690     to always fail with ENOSYS.  Some functions are actually named
11691     something starting with __ and the normal name is an alias.  */
11692 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11693 choke me
11694 #else
11695 char (*f) () = shl_load;
11696 #endif
11697 #ifdef __cplusplus
11698 }
11699 #endif
11700
11701 int
11702 main ()
11703 {
11704 return f != shl_load;
11705   ;
11706   return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext conftest$ac_exeext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11711   (eval $ac_link) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); } &&
11715          { ac_try='test -s conftest$ac_exeext'
11716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717   (eval $ac_try) 2>&5
11718   ac_status=$?
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); }; }; then
11721   ac_cv_func_shl_load=yes
11722 else
11723   echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726 ac_cv_func_shl_load=no
11727 fi
11728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11729 fi
11730 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11731 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11732 if test $ac_cv_func_shl_load = yes; then
11733   lt_cv_dlopen="shl_load"
11734 else
11735   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11736 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11737 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11738   echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740   ac_check_lib_save_LIBS=$LIBS
11741 LIBS="-ldld  $LIBS"
11742 cat >conftest.$ac_ext <<_ACEOF
11743 #line $LINENO "configure"
11744 /* confdefs.h.  */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h.  */
11749
11750 /* Override any gcc2 internal prototype to avoid an error.  */
11751 #ifdef __cplusplus
11752 extern "C"
11753 #endif
11754 /* We use char because int might match the return type of a gcc2
11755    builtin and then its argument prototype would still apply.  */
11756 char shl_load ();
11757 int
11758 main ()
11759 {
11760 shl_load ();
11761   ;
11762   return 0;
11763 }
11764 _ACEOF
11765 rm -f conftest.$ac_objext conftest$ac_exeext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11767   (eval $ac_link) 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); } &&
11771          { ac_try='test -s conftest$ac_exeext'
11772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773   (eval $ac_try) 2>&5
11774   ac_status=$?
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); }; }; then
11777   ac_cv_lib_dld_shl_load=yes
11778 else
11779   echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11781
11782 ac_cv_lib_dld_shl_load=no
11783 fi
11784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11785 LIBS=$ac_check_lib_save_LIBS
11786 fi
11787 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11788 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11789 if test $ac_cv_lib_dld_shl_load = yes; then
11790   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11791 else
11792   echo "$as_me:$LINENO: checking for dlopen" >&5
11793 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11794 if test "${ac_cv_func_dlopen+set}" = set; then
11795   echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797   cat >conftest.$ac_ext <<_ACEOF
11798 #line $LINENO "configure"
11799 /* confdefs.h.  */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h.  */
11804 /* System header to define __stub macros and hopefully few prototypes,
11805     which can conflict with char dlopen (); below.
11806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11807     <limits.h> exists even on freestanding compilers.  */
11808 #ifdef __STDC__
11809 # include <limits.h>
11810 #else
11811 # include <assert.h>
11812 #endif
11813 /* Override any gcc2 internal prototype to avoid an error.  */
11814 #ifdef __cplusplus
11815 extern "C"
11816 {
11817 #endif
11818 /* We use char because int might match the return type of a gcc2
11819    builtin and then its argument prototype would still apply.  */
11820 char dlopen ();
11821 /* The GNU C library defines this for functions which it implements
11822     to always fail with ENOSYS.  Some functions are actually named
11823     something starting with __ and the normal name is an alias.  */
11824 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11825 choke me
11826 #else
11827 char (*f) () = dlopen;
11828 #endif
11829 #ifdef __cplusplus
11830 }
11831 #endif
11832
11833 int
11834 main ()
11835 {
11836 return f != dlopen;
11837   ;
11838   return 0;
11839 }
11840 _ACEOF
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11843   (eval $ac_link) 2>&5
11844   ac_status=$?
11845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846   (exit $ac_status); } &&
11847          { ac_try='test -s conftest$ac_exeext'
11848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849   (eval $ac_try) 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); }; }; then
11853   ac_cv_func_dlopen=yes
11854 else
11855   echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11857
11858 ac_cv_func_dlopen=no
11859 fi
11860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11861 fi
11862 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11863 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11864 if test $ac_cv_func_dlopen = yes; then
11865   lt_cv_dlopen="dlopen"
11866 else
11867   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11868 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11870   echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872   ac_check_lib_save_LIBS=$LIBS
11873 LIBS="-ldl  $LIBS"
11874 cat >conftest.$ac_ext <<_ACEOF
11875 #line $LINENO "configure"
11876 /* confdefs.h.  */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h.  */
11881
11882 /* Override any gcc2 internal prototype to avoid an error.  */
11883 #ifdef __cplusplus
11884 extern "C"
11885 #endif
11886 /* We use char because int might match the return type of a gcc2
11887    builtin and then its argument prototype would still apply.  */
11888 char dlopen ();
11889 int
11890 main ()
11891 {
11892 dlopen ();
11893   ;
11894   return 0;
11895 }
11896 _ACEOF
11897 rm -f conftest.$ac_objext conftest$ac_exeext
11898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11899   (eval $ac_link) 2>&5
11900   ac_status=$?
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); } &&
11903          { ac_try='test -s conftest$ac_exeext'
11904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905   (eval $ac_try) 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); }; }; then
11909   ac_cv_lib_dl_dlopen=yes
11910 else
11911   echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11913
11914 ac_cv_lib_dl_dlopen=no
11915 fi
11916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11917 LIBS=$ac_check_lib_save_LIBS
11918 fi
11919 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11920 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11921 if test $ac_cv_lib_dl_dlopen = yes; then
11922   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11923 else
11924   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11925 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11926 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11927   echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929   ac_check_lib_save_LIBS=$LIBS
11930 LIBS="-lsvld  $LIBS"
11931 cat >conftest.$ac_ext <<_ACEOF
11932 #line $LINENO "configure"
11933 /* confdefs.h.  */
11934 _ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h.  */
11938
11939 /* Override any gcc2 internal prototype to avoid an error.  */
11940 #ifdef __cplusplus
11941 extern "C"
11942 #endif
11943 /* We use char because int might match the return type of a gcc2
11944    builtin and then its argument prototype would still apply.  */
11945 char dlopen ();
11946 int
11947 main ()
11948 {
11949 dlopen ();
11950   ;
11951   return 0;
11952 }
11953 _ACEOF
11954 rm -f conftest.$ac_objext conftest$ac_exeext
11955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11956   (eval $ac_link) 2>&5
11957   ac_status=$?
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); } &&
11960          { ac_try='test -s conftest$ac_exeext'
11961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962   (eval $ac_try) 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); }; }; then
11966   ac_cv_lib_svld_dlopen=yes
11967 else
11968   echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11970
11971 ac_cv_lib_svld_dlopen=no
11972 fi
11973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11975 fi
11976 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11977 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11978 if test $ac_cv_lib_svld_dlopen = yes; then
11979   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11980 else
11981   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11982 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11983 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11984   echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986   ac_check_lib_save_LIBS=$LIBS
11987 LIBS="-ldld  $LIBS"
11988 cat >conftest.$ac_ext <<_ACEOF
11989 #line $LINENO "configure"
11990 /* confdefs.h.  */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h.  */
11995
11996 /* Override any gcc2 internal prototype to avoid an error.  */
11997 #ifdef __cplusplus
11998 extern "C"
11999 #endif
12000 /* We use char because int might match the return type of a gcc2
12001    builtin and then its argument prototype would still apply.  */
12002 char dld_link ();
12003 int
12004 main ()
12005 {
12006 dld_link ();
12007   ;
12008   return 0;
12009 }
12010 _ACEOF
12011 rm -f conftest.$ac_objext conftest$ac_exeext
12012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12013   (eval $ac_link) 2>&5
12014   ac_status=$?
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); } &&
12017          { ac_try='test -s conftest$ac_exeext'
12018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019   (eval $ac_try) 2>&5
12020   ac_status=$?
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); }; }; then
12023   ac_cv_lib_dld_dld_link=yes
12024 else
12025   echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028 ac_cv_lib_dld_dld_link=no
12029 fi
12030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12031 LIBS=$ac_check_lib_save_LIBS
12032 fi
12033 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12034 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12035 if test $ac_cv_lib_dld_dld_link = yes; then
12036   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12037 fi
12038
12039
12040 fi
12041
12042
12043 fi
12044
12045
12046 fi
12047
12048
12049 fi
12050
12051
12052 fi
12053
12054     ;;
12055   esac
12056
12057   if test "x$lt_cv_dlopen" != xno; then
12058     enable_dlopen=yes
12059   else
12060     enable_dlopen=no
12061   fi
12062
12063   case $lt_cv_dlopen in
12064   dlopen)
12065     save_CPPFLAGS="$CPPFLAGS"
12066     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12067
12068     save_LDFLAGS="$LDFLAGS"
12069     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12070
12071     save_LIBS="$LIBS"
12072     LIBS="$lt_cv_dlopen_libs $LIBS"
12073
12074     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12075 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12076 if test "${lt_cv_dlopen_self+set}" = set; then
12077   echo $ECHO_N "(cached) $ECHO_C" >&6
12078 else
12079           if test "$cross_compiling" = yes; then :
12080   lt_cv_dlopen_self=cross
12081 else
12082   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12083   lt_status=$lt_dlunknown
12084   cat > conftest.$ac_ext <<EOF
12085 #line 12085 "configure"
12086 #include "confdefs.h"
12087
12088 #if HAVE_DLFCN_H
12089 #include <dlfcn.h>
12090 #endif
12091
12092 #include <stdio.h>
12093
12094 #ifdef RTLD_GLOBAL
12095 #  define LT_DLGLOBAL           RTLD_GLOBAL
12096 #else
12097 #  ifdef DL_GLOBAL
12098 #    define LT_DLGLOBAL         DL_GLOBAL
12099 #  else
12100 #    define LT_DLGLOBAL         0
12101 #  endif
12102 #endif
12103
12104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12105    find out it does not work in some platform. */
12106 #ifndef LT_DLLAZY_OR_NOW
12107 #  ifdef RTLD_LAZY
12108 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12109 #  else
12110 #    ifdef DL_LAZY
12111 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12112 #    else
12113 #      ifdef RTLD_NOW
12114 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12115 #      else
12116 #        ifdef DL_NOW
12117 #          define LT_DLLAZY_OR_NOW      DL_NOW
12118 #        else
12119 #          define LT_DLLAZY_OR_NOW      0
12120 #        endif
12121 #      endif
12122 #    endif
12123 #  endif
12124 #endif
12125
12126 #ifdef __cplusplus
12127 extern "C" void exit (int);
12128 #endif
12129
12130 void fnord() { int i=42;}
12131 int main ()
12132 {
12133   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12134   int status = $lt_dlunknown;
12135
12136   if (self)
12137     {
12138       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12139       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12140       /* dlclose (self); */
12141     }
12142
12143     exit (status);
12144 }
12145 EOF
12146   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12147   (eval $ac_link) 2>&5
12148   ac_status=$?
12149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12151     (./conftest; exit; ) 2>/dev/null
12152     lt_status=$?
12153     case x$lt_status in
12154       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12155       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12156       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12157     esac
12158   else :
12159     # compilation failed
12160     lt_cv_dlopen_self=no
12161   fi
12162 fi
12163 rm -fr conftest*
12164
12165
12166 fi
12167 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12168 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12169
12170     if test "x$lt_cv_dlopen_self" = xyes; then
12171       LDFLAGS="$LDFLAGS $link_static_flag"
12172       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12173 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12174 if test "${lt_cv_dlopen_self_static+set}" = set; then
12175   echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177           if test "$cross_compiling" = yes; then :
12178   lt_cv_dlopen_self_static=cross
12179 else
12180   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12181   lt_status=$lt_dlunknown
12182   cat > conftest.$ac_ext <<EOF
12183 #line 12183 "configure"
12184 #include "confdefs.h"
12185
12186 #if HAVE_DLFCN_H
12187 #include <dlfcn.h>
12188 #endif
12189
12190 #include <stdio.h>
12191
12192 #ifdef RTLD_GLOBAL
12193 #  define LT_DLGLOBAL           RTLD_GLOBAL
12194 #else
12195 #  ifdef DL_GLOBAL
12196 #    define LT_DLGLOBAL         DL_GLOBAL
12197 #  else
12198 #    define LT_DLGLOBAL         0
12199 #  endif
12200 #endif
12201
12202 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12203    find out it does not work in some platform. */
12204 #ifndef LT_DLLAZY_OR_NOW
12205 #  ifdef RTLD_LAZY
12206 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12207 #  else
12208 #    ifdef DL_LAZY
12209 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12210 #    else
12211 #      ifdef RTLD_NOW
12212 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12213 #      else
12214 #        ifdef DL_NOW
12215 #          define LT_DLLAZY_OR_NOW      DL_NOW
12216 #        else
12217 #          define LT_DLLAZY_OR_NOW      0
12218 #        endif
12219 #      endif
12220 #    endif
12221 #  endif
12222 #endif
12223
12224 #ifdef __cplusplus
12225 extern "C" void exit (int);
12226 #endif
12227
12228 void fnord() { int i=42;}
12229 int main ()
12230 {
12231   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12232   int status = $lt_dlunknown;
12233
12234   if (self)
12235     {
12236       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12237       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12238       /* dlclose (self); */
12239     }
12240
12241     exit (status);
12242 }
12243 EOF
12244   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12245   (eval $ac_link) 2>&5
12246   ac_status=$?
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12249     (./conftest; exit; ) 2>/dev/null
12250     lt_status=$?
12251     case x$lt_status in
12252       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12253       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12254       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12255     esac
12256   else :
12257     # compilation failed
12258     lt_cv_dlopen_self_static=no
12259   fi
12260 fi
12261 rm -fr conftest*
12262
12263
12264 fi
12265 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12266 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12267     fi
12268
12269     CPPFLAGS="$save_CPPFLAGS"
12270     LDFLAGS="$save_LDFLAGS"
12271     LIBS="$save_LIBS"
12272     ;;
12273   esac
12274
12275   case $lt_cv_dlopen_self in
12276   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12277   *) enable_dlopen_self=unknown ;;
12278   esac
12279
12280   case $lt_cv_dlopen_self_static in
12281   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12282   *) enable_dlopen_self_static=unknown ;;
12283   esac
12284 fi
12285
12286
12287 # The else clause should only fire when bootstrapping the
12288 # libtool distribution, otherwise you forgot to ship ltmain.sh
12289 # with your package, and you will get complaints that there are
12290 # no rules to generate ltmain.sh.
12291 if test -f "$ltmain"; then
12292   # See if we are running on zsh, and set the options which allow our commands through
12293   # without removal of \ escapes.
12294   if test -n "${ZSH_VERSION+set}" ; then
12295     setopt NO_GLOB_SUBST
12296   fi
12297   # Now quote all the things that may contain metacharacters while being
12298   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12299   # variables and quote the copies for generation of the libtool script.
12300   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12301     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12302     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12303     deplibs_check_method reload_flag reload_cmds need_locks \
12304     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12305     lt_cv_sys_global_symbol_to_c_name_address \
12306     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12307     old_postinstall_cmds old_postuninstall_cmds \
12308     compiler_CXX \
12309     CC_CXX \
12310     LD_CXX \
12311     lt_prog_compiler_wl_CXX \
12312     lt_prog_compiler_pic_CXX \
12313     lt_prog_compiler_static_CXX \
12314     lt_prog_compiler_no_builtin_flag_CXX \
12315     export_dynamic_flag_spec_CXX \
12316     thread_safe_flag_spec_CXX \
12317     whole_archive_flag_spec_CXX \
12318     enable_shared_with_static_runtimes_CXX \
12319     old_archive_cmds_CXX \
12320     old_archive_from_new_cmds_CXX \
12321     predep_objects_CXX \
12322     postdep_objects_CXX \
12323     predeps_CXX \
12324     postdeps_CXX \
12325     compiler_lib_search_path_CXX \
12326     archive_cmds_CXX \
12327     archive_expsym_cmds_CXX \
12328     postinstall_cmds_CXX \
12329     postuninstall_cmds_CXX \
12330     old_archive_from_expsyms_cmds_CXX \
12331     allow_undefined_flag_CXX \
12332     no_undefined_flag_CXX \
12333     export_symbols_cmds_CXX \
12334     hardcode_libdir_flag_spec_CXX \
12335     hardcode_libdir_flag_spec_ld_CXX \
12336     hardcode_libdir_separator_CXX \
12337     hardcode_automatic_CXX \
12338     module_cmds_CXX \
12339     module_expsym_cmds_CXX \
12340     lt_cv_prog_compiler_c_o_CXX \
12341     exclude_expsyms_CXX \
12342     include_expsyms_CXX; do
12343
12344     case $var in
12345     old_archive_cmds_CXX | \
12346     old_archive_from_new_cmds_CXX | \
12347     archive_cmds_CXX | \
12348     archive_expsym_cmds_CXX | \
12349     module_cmds_CXX | \
12350     module_expsym_cmds_CXX | \
12351     old_archive_from_expsyms_cmds_CXX | \
12352     export_symbols_cmds_CXX | \
12353     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12354     postinstall_cmds | postuninstall_cmds | \
12355     old_postinstall_cmds | old_postuninstall_cmds | \
12356     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12357       # Double-quote double-evaled strings.
12358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12359       ;;
12360     *)
12361       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12362       ;;
12363     esac
12364   done
12365
12366   case $lt_echo in
12367   *'\$0 --fallback-echo"')
12368     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12369     ;;
12370   esac
12371
12372 cfgfile="$ofile"
12373
12374   cat <<__EOF__ >> "$cfgfile"
12375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12376
12377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12378
12379 # Shell to use when invoking shell scripts.
12380 SHELL=$lt_SHELL
12381
12382 # Whether or not to build shared libraries.
12383 build_libtool_libs=$enable_shared
12384
12385 # Whether or not to build static libraries.
12386 build_old_libs=$enable_static
12387
12388 # Whether or not to add -lc for building shared libraries.
12389 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12390
12391 # Whether or not to disallow shared libs when runtime libs are static
12392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12393
12394 # Whether or not to optimize for fast installation.
12395 fast_install=$enable_fast_install
12396
12397 # The host system.
12398 host_alias=$host_alias
12399 host=$host
12400
12401 # An echo program that does not interpret backslashes.
12402 echo=$lt_echo
12403
12404 # The archiver.
12405 AR=$lt_AR
12406 AR_FLAGS=$lt_AR_FLAGS
12407
12408 # A C compiler.
12409 LTCC=$lt_LTCC
12410
12411 # A language-specific compiler.
12412 CC=$lt_compiler_CXX
12413
12414 # Is the compiler the GNU C compiler?
12415 with_gcc=$GCC_CXX
12416
12417 # An ERE matcher.
12418 EGREP=$lt_EGREP
12419
12420 # The linker used to build libraries.
12421 LD=$lt_LD_CXX
12422
12423 # Whether we need hard or soft links.
12424 LN_S=$lt_LN_S
12425
12426 # A BSD-compatible nm program.
12427 NM=$lt_NM
12428
12429 # A symbol stripping program
12430 STRIP=$STRIP
12431
12432 # Used to examine libraries when file_magic_cmd begins "file"
12433 MAGIC_CMD=$MAGIC_CMD
12434
12435 # Used on cygwin: DLL creation program.
12436 DLLTOOL="$DLLTOOL"
12437
12438 # Used on cygwin: object dumper.
12439 OBJDUMP="$OBJDUMP"
12440
12441 # Used on cygwin: assembler.
12442 AS="$AS"
12443
12444 # The name of the directory that contains temporary libtool files.
12445 objdir=$objdir
12446
12447 # How to create reloadable object files.
12448 reload_flag=$lt_reload_flag
12449 reload_cmds=$lt_reload_cmds
12450
12451 # How to pass a linker flag through the compiler.
12452 wl=$lt_lt_prog_compiler_wl_CXX
12453
12454 # Object file suffix (normally "o").
12455 objext="$ac_objext"
12456
12457 # Old archive suffix (normally "a").
12458 libext="$libext"
12459
12460 # Shared library suffix (normally ".so").
12461 shrext='$shrext'
12462
12463 # Executable file suffix (normally "").
12464 exeext="$exeext"
12465
12466 # Additional compiler flags for building library objects.
12467 pic_flag=$lt_lt_prog_compiler_pic_CXX
12468 pic_mode=$pic_mode
12469
12470 # What is the maximum length of a command?
12471 max_cmd_len=$lt_cv_sys_max_cmd_len
12472
12473 # Does compiler simultaneously support -c and -o options?
12474 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12475
12476 # Must we lock files when doing compilation ?
12477 need_locks=$lt_need_locks
12478
12479 # Do we need the lib prefix for modules?
12480 need_lib_prefix=$need_lib_prefix
12481
12482 # Do we need a version for libraries?
12483 need_version=$need_version
12484
12485 # Whether dlopen is supported.
12486 dlopen_support=$enable_dlopen
12487
12488 # Whether dlopen of programs is supported.
12489 dlopen_self=$enable_dlopen_self
12490
12491 # Whether dlopen of statically linked programs is supported.
12492 dlopen_self_static=$enable_dlopen_self_static
12493
12494 # Compiler flag to prevent dynamic linking.
12495 link_static_flag=$lt_lt_prog_compiler_static_CXX
12496
12497 # Compiler flag to turn off builtin functions.
12498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12499
12500 # Compiler flag to allow reflexive dlopens.
12501 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12502
12503 # Compiler flag to generate shared objects directly from archives.
12504 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12505
12506 # Compiler flag to generate thread-safe objects.
12507 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12508
12509 # Library versioning type.
12510 version_type=$version_type
12511
12512 # Format of library name prefix.
12513 libname_spec=$lt_libname_spec
12514
12515 # List of archive names.  First name is the real one, the rest are links.
12516 # The last name is the one that the linker finds with -lNAME.
12517 library_names_spec=$lt_library_names_spec
12518
12519 # The coded name of the library, if different from the real name.
12520 soname_spec=$lt_soname_spec
12521
12522 # Commands used to build and install an old-style archive.
12523 RANLIB=$lt_RANLIB
12524 old_archive_cmds=$lt_old_archive_cmds_CXX
12525 old_postinstall_cmds=$lt_old_postinstall_cmds
12526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12527
12528 # Create an old-style archive from a shared archive.
12529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12530
12531 # Create a temporary old-style archive to link instead of a shared archive.
12532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12533
12534 # Commands used to build and install a shared archive.
12535 archive_cmds=$lt_archive_cmds_CXX
12536 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12537 postinstall_cmds=$lt_postinstall_cmds
12538 postuninstall_cmds=$lt_postuninstall_cmds
12539
12540 # Commands used to build a loadable module (assumed same as above if empty)
12541 module_cmds=$lt_module_cmds_CXX
12542 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12543
12544 # Commands to strip libraries.
12545 old_striplib=$lt_old_striplib
12546 striplib=$lt_striplib
12547
12548 # Dependencies to place before the objects being linked to create a
12549 # shared library.
12550 predep_objects=$lt_predep_objects_CXX
12551
12552 # Dependencies to place after the objects being linked to create a
12553 # shared library.
12554 postdep_objects=$lt_postdep_objects_CXX
12555
12556 # Dependencies to place before the objects being linked to create a
12557 # shared library.
12558 predeps=$lt_predeps_CXX
12559
12560 # Dependencies to place after the objects being linked to create a
12561 # shared library.
12562 postdeps=$lt_postdeps_CXX
12563
12564 # The library search path used internally by the compiler when linking
12565 # a shared library.
12566 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12567
12568 # Method to check whether dependent libraries are shared objects.
12569 deplibs_check_method=$lt_deplibs_check_method
12570
12571 # Command to use when deplibs_check_method == file_magic.
12572 file_magic_cmd=$lt_file_magic_cmd
12573
12574 # Flag that allows shared libraries with undefined symbols to be built.
12575 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12576
12577 # Flag that forces no undefined symbols.
12578 no_undefined_flag=$lt_no_undefined_flag_CXX
12579
12580 # Commands used to finish a libtool library installation in a directory.
12581 finish_cmds=$lt_finish_cmds
12582
12583 # Same as above, but a single script fragment to be evaled but not shown.
12584 finish_eval=$lt_finish_eval
12585
12586 # Take the output of nm and produce a listing of raw symbols and C names.
12587 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12588
12589 # Transform the output of nm in a proper C declaration
12590 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12591
12592 # Transform the output of nm in a C name address pair
12593 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12594
12595 # This is the shared library runtime path variable.
12596 runpath_var=$runpath_var
12597
12598 # This is the shared library path variable.
12599 shlibpath_var=$shlibpath_var
12600
12601 # Is shlibpath searched before the hard-coded library search path?
12602 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12603
12604 # How to hardcode a shared library path into an executable.
12605 hardcode_action=$hardcode_action_CXX
12606
12607 # Whether we should hardcode library paths into libraries.
12608 hardcode_into_libs=$hardcode_into_libs
12609
12610 # Flag to hardcode \$libdir into a binary during linking.
12611 # This must work even if \$libdir does not exist.
12612 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12613
12614 # If ld is used when linking, flag to hardcode \$libdir into
12615 # a binary during linking. This must work even if \$libdir does
12616 # not exist.
12617 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12618
12619 # Whether we need a single -rpath flag with a separated argument.
12620 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12621
12622 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12623 # resulting binary.
12624 hardcode_direct=$hardcode_direct_CXX
12625
12626 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12627 # resulting binary.
12628 hardcode_minus_L=$hardcode_minus_L_CXX
12629
12630 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12631 # the resulting binary.
12632 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12633
12634 # Set to yes if building a shared library automatically hardcodes DIR into the library
12635 # and all subsequent libraries and executables linked against it.
12636 hardcode_automatic=$hardcode_automatic_CXX
12637
12638 # Variables whose values should be saved in libtool wrapper scripts and
12639 # restored at relink time.
12640 variables_saved_for_relink="$variables_saved_for_relink"
12641
12642 # Whether libtool must link a program against all its dependency libraries.
12643 link_all_deplibs=$link_all_deplibs_CXX
12644
12645 # Compile-time system search path for libraries
12646 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12647
12648 # Run-time system search path for libraries
12649 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12650
12651 # Fix the shell variable \$srcfile for the compiler.
12652 fix_srcfile_path="$fix_srcfile_path_CXX"
12653
12654 # Set to yes if exported symbols are required.
12655 always_export_symbols=$always_export_symbols_CXX
12656
12657 # The commands to list exported symbols.
12658 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12659
12660 # The commands to extract the exported symbol list from a shared archive.
12661 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12662
12663 # Symbols that should not be listed in the preloaded symbols.
12664 exclude_expsyms=$lt_exclude_expsyms_CXX
12665
12666 # Symbols that must always be exported.
12667 include_expsyms=$lt_include_expsyms_CXX
12668
12669 # ### END LIBTOOL TAG CONFIG: $tagname
12670
12671 __EOF__
12672
12673
12674 else
12675   # If there is no Makefile yet, we rely on a make rule to execute
12676   # `config.status --recheck' to rerun these tests and create the
12677   # libtool script then.
12678   test -f Makefile && make "$ltmain"
12679 fi
12680
12681
12682 ac_ext=c
12683 ac_cpp='$CPP $CPPFLAGS'
12684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12687
12688 CC=$lt_save_CC
12689 LDCXX=$LD
12690 LD=$lt_save_LD
12691 GCC=$lt_save_GCC
12692 with_gnu_ldcxx=$with_gnu_ld
12693 with_gnu_ld=$lt_save_with_gnu_ld
12694 lt_cv_path_LDCXX=$lt_cv_path_LD
12695 lt_cv_path_LD=$lt_save_path_LD
12696 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12697 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12698
12699         else
12700           tagname=""
12701         fi
12702         ;;
12703
12704       F77)
12705         if test -n "$F77" && test "X$F77" != "Xno"; then
12706
12707 ac_ext=f
12708 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12709 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12710 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12711
12712
12713 archive_cmds_need_lc_F77=no
12714 allow_undefined_flag_F77=
12715 always_export_symbols_F77=no
12716 archive_expsym_cmds_F77=
12717 export_dynamic_flag_spec_F77=
12718 hardcode_direct_F77=no
12719 hardcode_libdir_flag_spec_F77=
12720 hardcode_libdir_flag_spec_ld_F77=
12721 hardcode_libdir_separator_F77=
12722 hardcode_minus_L_F77=no
12723 hardcode_automatic_F77=no
12724 module_cmds_F77=
12725 module_expsym_cmds_F77=
12726 link_all_deplibs_F77=unknown
12727 old_archive_cmds_F77=$old_archive_cmds
12728 no_undefined_flag_F77=
12729 whole_archive_flag_spec_F77=
12730 enable_shared_with_static_runtimes_F77=no
12731
12732 # Source file extension for f77 test sources.
12733 ac_ext=f
12734
12735 # Object file extension for compiled f77 test sources.
12736 objext=o
12737 objext_F77=$objext
12738
12739 # Code to be used in simple compile tests
12740 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12741
12742 # Code to be used in simple link tests
12743 lt_simple_link_test_code="      program t\n      end\n"
12744
12745 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12746
12747 # If no C compiler was specified, use CC.
12748 LTCC=${LTCC-"$CC"}
12749
12750 # Allow CC to be a program name with arguments.
12751 compiler=$CC
12752
12753
12754 # Allow CC to be a program name with arguments.
12755 lt_save_CC="$CC"
12756 CC=${F77-"f77"}
12757 compiler=$CC
12758 compiler_F77=$CC
12759 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12760
12761 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12762 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12763 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12764 echo "${ECHO_T}$can_build_shared" >&6
12765
12766 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12767 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12768 test "$can_build_shared" = "no" && enable_shared=no
12769
12770 # On AIX, shared libraries and static libraries use the same namespace, and
12771 # are all built from PIC.
12772 case "$host_os" in
12773 aix3*)
12774   test "$enable_shared" = yes && enable_static=no
12775   if test -n "$RANLIB"; then
12776     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12777     postinstall_cmds='$RANLIB $lib'
12778   fi
12779   ;;
12780 aix4*)
12781   test "$enable_shared" = yes && enable_static=no
12782   ;;
12783 esac
12784 echo "$as_me:$LINENO: result: $enable_shared" >&5
12785 echo "${ECHO_T}$enable_shared" >&6
12786
12787 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12788 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12789 # Make sure either enable_shared or enable_static is yes.
12790 test "$enable_shared" = yes || enable_static=yes
12791 echo "$as_me:$LINENO: result: $enable_static" >&5
12792 echo "${ECHO_T}$enable_static" >&6
12793
12794 test "$ld_shlibs_F77" = no && can_build_shared=no
12795
12796 GCC_F77="$G77"
12797 LD_F77="$LD"
12798
12799 lt_prog_compiler_wl_F77=
12800 lt_prog_compiler_pic_F77=
12801 lt_prog_compiler_static_F77=
12802
12803 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12804 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12805
12806   if test "$GCC" = yes; then
12807     lt_prog_compiler_wl_F77='-Wl,'
12808     lt_prog_compiler_static_F77='-static'
12809
12810     case $host_os in
12811       aix*)
12812       # All AIX code is PIC.
12813       if test "$host_cpu" = ia64; then
12814         # AIX 5 now supports IA64 processor
12815         lt_prog_compiler_static_F77='-Bstatic'
12816       fi
12817       ;;
12818
12819     amigaos*)
12820       # FIXME: we need at least 68020 code to build shared libraries, but
12821       # adding the `-m68020' flag to GCC prevents building anything better,
12822       # like `-m68040'.
12823       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12824       ;;
12825
12826     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12827       # PIC is the default for these OSes.
12828       ;;
12829
12830     mingw* | pw32* | os2*)
12831       # This hack is so that the source file can tell whether it is being
12832       # built for inclusion in a dll (and should export symbols for example).
12833       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12834       ;;
12835
12836     darwin* | rhapsody*)
12837       # PIC is the default on this platform
12838       # Common symbols not allowed in MH_DYLIB files
12839       lt_prog_compiler_pic_F77='-fno-common'
12840       ;;
12841
12842     msdosdjgpp*)
12843       # Just because we use GCC doesn't mean we suddenly get shared libraries
12844       # on systems that don't support them.
12845       lt_prog_compiler_can_build_shared_F77=no
12846       enable_shared=no
12847       ;;
12848
12849     sysv4*MP*)
12850       if test -d /usr/nec; then
12851         lt_prog_compiler_pic_F77=-Kconform_pic
12852       fi
12853       ;;
12854
12855     hpux*)
12856       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12857       # not for PA HP-UX.
12858       case "$host_cpu" in
12859       hppa*64*|ia64*)
12860         # +Z the default
12861         ;;
12862       *)
12863         lt_prog_compiler_pic_F77='-fPIC'
12864         ;;
12865       esac
12866       ;;
12867
12868     *)
12869       lt_prog_compiler_pic_F77='-fPIC'
12870       ;;
12871     esac
12872   else
12873     # PORTME Check for flag to pass linker flags through the system compiler.
12874     case $host_os in
12875     aix*)
12876       lt_prog_compiler_wl_F77='-Wl,'
12877       if test "$host_cpu" = ia64; then
12878         # AIX 5 now supports IA64 processor
12879         lt_prog_compiler_static_F77='-Bstatic'
12880       else
12881         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12882       fi
12883       ;;
12884
12885     mingw* | pw32* | os2*)
12886       # This hack is so that the source file can tell whether it is being
12887       # built for inclusion in a dll (and should export symbols for example).
12888       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12889       ;;
12890
12891     hpux9* | hpux10* | hpux11*)
12892       lt_prog_compiler_wl_F77='-Wl,'
12893       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12894       # not for PA HP-UX.
12895       case "$host_cpu" in
12896       hppa*64*|ia64*)
12897         # +Z the default
12898         ;;
12899       *)
12900         lt_prog_compiler_pic_F77='+Z'
12901         ;;
12902       esac
12903       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12904       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12905       ;;
12906
12907     irix5* | irix6* | nonstopux*)
12908       lt_prog_compiler_wl_F77='-Wl,'
12909       # PIC (with -KPIC) is the default.
12910       lt_prog_compiler_static_F77='-non_shared'
12911       ;;
12912
12913     newsos6)
12914       lt_prog_compiler_pic_F77='-KPIC'
12915       lt_prog_compiler_static_F77='-Bstatic'
12916       ;;
12917
12918     linux*)
12919       case $CC in
12920       icc|ecc)
12921         lt_prog_compiler_wl_F77='-Wl,'
12922         lt_prog_compiler_pic_F77='-KPIC'
12923         lt_prog_compiler_static_F77='-static'
12924         ;;
12925       ccc)
12926         lt_prog_compiler_wl_F77='-Wl,'
12927         # All Alpha code is PIC.
12928         lt_prog_compiler_static_F77='-non_shared'
12929         ;;
12930       esac
12931       ;;
12932
12933     osf3* | osf4* | osf5*)
12934       lt_prog_compiler_wl_F77='-Wl,'
12935       # All OSF/1 code is PIC.
12936       lt_prog_compiler_static_F77='-non_shared'
12937       ;;
12938
12939     sco3.2v5*)
12940       lt_prog_compiler_pic_F77='-Kpic'
12941       lt_prog_compiler_static_F77='-dn'
12942       ;;
12943
12944     solaris*)
12945       lt_prog_compiler_wl_F77='-Wl,'
12946       lt_prog_compiler_pic_F77='-KPIC'
12947       lt_prog_compiler_static_F77='-Bstatic'
12948       ;;
12949
12950     sunos4*)
12951       lt_prog_compiler_wl_F77='-Qoption ld '
12952       lt_prog_compiler_pic_F77='-PIC'
12953       lt_prog_compiler_static_F77='-Bstatic'
12954       ;;
12955
12956     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12957       lt_prog_compiler_wl_F77='-Wl,'
12958       lt_prog_compiler_pic_F77='-KPIC'
12959       lt_prog_compiler_static_F77='-Bstatic'
12960       ;;
12961
12962     sysv4*MP*)
12963       if test -d /usr/nec ;then
12964         lt_prog_compiler_pic_F77='-Kconform_pic'
12965         lt_prog_compiler_static_F77='-Bstatic'
12966       fi
12967       ;;
12968
12969     uts4*)
12970       lt_prog_compiler_pic_F77='-pic'
12971       lt_prog_compiler_static_F77='-Bstatic'
12972       ;;
12973
12974     *)
12975       lt_prog_compiler_can_build_shared_F77=no
12976       ;;
12977     esac
12978   fi
12979
12980 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12981 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12982
12983 #
12984 # Check to make sure the PIC flag actually works.
12985 #
12986 if test -n "$lt_prog_compiler_pic_F77"; then
12987   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12988 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12989 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12990   echo $ECHO_N "(cached) $ECHO_C" >&6
12991 else
12992   lt_prog_compiler_pic_works_F77=no
12993   ac_outfile=conftest.$ac_objext
12994    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12995    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12996    # Insert the option either (1) after the last *FLAGS variable, or
12997    # (2) before a word containing "conftest.", or (3) at the end.
12998    # Note that $ac_compile itself does not contain backslashes and begins
12999    # with a dollar sign (not a hyphen), so the echo should work correctly.
13000    # The option is referenced via a variable to avoid confusing sed.
13001    lt_compile=`echo "$ac_compile" | $SED \
13002    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13003    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13004    -e 's:$: $lt_compiler_flag:'`
13005    (eval echo "\"\$as_me:13005: $lt_compile\"" >&5)
13006    (eval "$lt_compile" 2>conftest.err)
13007    ac_status=$?
13008    cat conftest.err >&5
13009    echo "$as_me:13009: \$? = $ac_status" >&5
13010    if (exit $ac_status) && test -s "$ac_outfile"; then
13011      # The compiler can only warn and ignore the option if not recognized
13012      # So say no if there are warnings
13013      if test ! -s conftest.err; then
13014        lt_prog_compiler_pic_works_F77=yes
13015      fi
13016    fi
13017    $rm conftest*
13018
13019 fi
13020 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13021 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13022
13023 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13024     case $lt_prog_compiler_pic_F77 in
13025      "" | " "*) ;;
13026      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13027      esac
13028 else
13029     lt_prog_compiler_pic_F77=
13030      lt_prog_compiler_can_build_shared_F77=no
13031 fi
13032
13033 fi
13034 case "$host_os" in
13035   # For platforms which do not support PIC, -DPIC is meaningless:
13036   *djgpp*)
13037     lt_prog_compiler_pic_F77=
13038     ;;
13039   *)
13040     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13041     ;;
13042 esac
13043
13044 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13045 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13046 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13047   echo $ECHO_N "(cached) $ECHO_C" >&6
13048 else
13049   lt_cv_prog_compiler_c_o_F77=no
13050    $rm -r conftest 2>/dev/null
13051    mkdir conftest
13052    cd conftest
13053    mkdir out
13054    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13055
13056    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13057    # that will create temporary files in the current directory regardless of
13058    # the output directory.  Thus, making CWD read-only will cause this test
13059    # to fail, enabling locking or at least warning the user not to do parallel
13060    # builds.
13061    chmod -w .
13062
13063    lt_compiler_flag="-o out/conftest2.$ac_objext"
13064    # Insert the option either (1) after the last *FLAGS variable, or
13065    # (2) before a word containing "conftest.", or (3) at the end.
13066    # Note that $ac_compile itself does not contain backslashes and begins
13067    # with a dollar sign (not a hyphen), so the echo should work correctly.
13068    lt_compile=`echo "$ac_compile" | $SED \
13069    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13071    -e 's:$: $lt_compiler_flag:'`
13072    (eval echo "\"\$as_me:13072: $lt_compile\"" >&5)
13073    (eval "$lt_compile" 2>out/conftest.err)
13074    ac_status=$?
13075    cat out/conftest.err >&5
13076    echo "$as_me:13076: \$? = $ac_status" >&5
13077    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13078    then
13079      # The compiler can only warn and ignore the option if not recognized
13080      # So say no if there are warnings
13081      if test ! -s out/conftest.err; then
13082        lt_cv_prog_compiler_c_o_F77=yes
13083      fi
13084    fi
13085    chmod u+w .
13086    $rm conftest* out/*
13087    rmdir out
13088    cd ..
13089    rmdir conftest
13090    $rm conftest*
13091
13092 fi
13093 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13094 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13095
13096
13097 hard_links="nottested"
13098 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13099   # do not overwrite the value of need_locks provided by the user
13100   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13101 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13102   hard_links=yes
13103   $rm conftest*
13104   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13105   touch conftest.a
13106   ln conftest.a conftest.b 2>&5 || hard_links=no
13107   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13108   echo "$as_me:$LINENO: result: $hard_links" >&5
13109 echo "${ECHO_T}$hard_links" >&6
13110   if test "$hard_links" = no; then
13111     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13112 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13113     need_locks=warn
13114   fi
13115 else
13116   need_locks=no
13117 fi
13118
13119 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13120 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13121
13122   runpath_var=
13123   allow_undefined_flag_F77=
13124   enable_shared_with_static_runtimes_F77=no
13125   archive_cmds_F77=
13126   archive_expsym_cmds_F77=
13127   old_archive_From_new_cmds_F77=
13128   old_archive_from_expsyms_cmds_F77=
13129   export_dynamic_flag_spec_F77=
13130   whole_archive_flag_spec_F77=
13131   thread_safe_flag_spec_F77=
13132   hardcode_libdir_flag_spec_F77=
13133   hardcode_libdir_flag_spec_ld_F77=
13134   hardcode_libdir_separator_F77=
13135   hardcode_direct_F77=no
13136   hardcode_minus_L_F77=no
13137   hardcode_shlibpath_var_F77=unsupported
13138   link_all_deplibs_F77=unknown
13139   hardcode_automatic_F77=no
13140   module_cmds_F77=
13141   module_expsym_cmds_F77=
13142   always_export_symbols_F77=no
13143   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13144   # include_expsyms should be a list of space-separated symbols to be *always*
13145   # included in the symbol list
13146   include_expsyms_F77=
13147   # exclude_expsyms can be an extended regexp of symbols to exclude
13148   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13149   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13150   # as well as any symbol that contains `d'.
13151   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13152   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13153   # platforms (ab)use it in PIC code, but their linkers get confused if
13154   # the symbol is explicitly referenced.  Since portable code cannot
13155   # rely on this symbol name, it's probably fine to never include it in
13156   # preloaded symbol tables.
13157   extract_expsyms_cmds=
13158
13159   case $host_os in
13160   cygwin* | mingw* | pw32*)
13161     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13162     # When not using gcc, we currently assume that we are using
13163     # Microsoft Visual C++.
13164     if test "$GCC" != yes; then
13165       with_gnu_ld=no
13166     fi
13167     ;;
13168   openbsd*)
13169     with_gnu_ld=no
13170     ;;
13171   esac
13172
13173   ld_shlibs_F77=yes
13174   if test "$with_gnu_ld" = yes; then
13175     # If archive_cmds runs LD, not CC, wlarc should be empty
13176     wlarc='${wl}'
13177
13178     # See if GNU ld supports shared libraries.
13179     case $host_os in
13180     aix3* | aix4* | aix5*)
13181       # On AIX/PPC, the GNU linker is very broken
13182       if test "$host_cpu" != ia64; then
13183         ld_shlibs_F77=no
13184         cat <<EOF 1>&2
13185
13186 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13187 *** to be unable to reliably create shared libraries on AIX.
13188 *** Therefore, libtool is disabling shared libraries support.  If you
13189 *** really care for shared libraries, you may want to modify your PATH
13190 *** so that a non-GNU linker is found, and then restart.
13191
13192 EOF
13193       fi
13194       ;;
13195
13196     amigaos*)
13197       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)'
13198       hardcode_libdir_flag_spec_F77='-L$libdir'
13199       hardcode_minus_L_F77=yes
13200
13201       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13202       # that the semantics of dynamic libraries on AmigaOS, at least up
13203       # to version 4, is to share data among multiple programs linked
13204       # with the same dynamic library.  Since this doesn't match the
13205       # behavior of shared libraries on other platforms, we can't use
13206       # them.
13207       ld_shlibs_F77=no
13208       ;;
13209
13210     beos*)
13211       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13212         allow_undefined_flag_F77=unsupported
13213         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13214         # support --undefined.  This deserves some investigation.  FIXME
13215         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13216       else
13217         ld_shlibs_F77=no
13218       fi
13219       ;;
13220
13221     cygwin* | mingw* | pw32*)
13222       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13223       # as there is no search path for DLLs.
13224       hardcode_libdir_flag_spec_F77='-L$libdir'
13225       allow_undefined_flag_F77=unsupported
13226       always_export_symbols_F77=no
13227       enable_shared_with_static_runtimes_F77=yes
13228       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13229
13230       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13231         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13232         # If the export-symbols file already is a .def file (1st line
13233         # is EXPORTS), use it as is; otherwise, prepend...
13234         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13235           cp $export_symbols $output_objdir/$soname.def;
13236         else
13237           echo EXPORTS > $output_objdir/$soname.def;
13238           cat $export_symbols >> $output_objdir/$soname.def;
13239         fi~
13240         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13241       else
13242         ld_shlibs=no
13243       fi
13244       ;;
13245
13246     netbsd*)
13247       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13248         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13249         wlarc=
13250       else
13251         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13252         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13253       fi
13254       ;;
13255
13256     solaris* | sysv5*)
13257       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13258         ld_shlibs_F77=no
13259         cat <<EOF 1>&2
13260
13261 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13262 *** create shared libraries on Solaris systems.  Therefore, libtool
13263 *** is disabling shared libraries support.  We urge you to upgrade GNU
13264 *** binutils to release 2.9.1 or newer.  Another option is to modify
13265 *** your PATH or compiler configuration so that the native linker is
13266 *** used, and then restart.
13267
13268 EOF
13269       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13270         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13271         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13272       else
13273         ld_shlibs_F77=no
13274       fi
13275       ;;
13276
13277     sunos4*)
13278       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13279       wlarc=
13280       hardcode_direct_F77=yes
13281       hardcode_shlibpath_var_F77=no
13282       ;;
13283
13284     *)
13285       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13286         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13287         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13288       else
13289         ld_shlibs_F77=no
13290       fi
13291       ;;
13292     esac
13293
13294     if test "$ld_shlibs_F77" = yes; then
13295       runpath_var=LD_RUN_PATH
13296       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13297       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13298       # ancient GNU ld didn't support --whole-archive et. al.
13299       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13300         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13301       else
13302         whole_archive_flag_spec_F77=
13303       fi
13304     fi
13305   else
13306     # PORTME fill in a description of your system's linker (not GNU ld)
13307     case $host_os in
13308     aix3*)
13309       allow_undefined_flag_F77=unsupported
13310       always_export_symbols_F77=yes
13311       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'
13312       # Note: this linker hardcodes the directories in LIBPATH if there
13313       # are no directories specified by -L.
13314       hardcode_minus_L_F77=yes
13315       if test "$GCC" = yes && test -z "$link_static_flag"; then
13316         # Neither direct hardcoding nor static linking is supported with a
13317         # broken collect2.
13318         hardcode_direct_F77=unsupported
13319       fi
13320       ;;
13321
13322     aix4* | aix5*)
13323       if test "$host_cpu" = ia64; then
13324         # On IA64, the linker does run time linking by default, so we don't
13325         # have to do anything special.
13326         aix_use_runtimelinking=no
13327         exp_sym_flag='-Bexport'
13328         no_entry_flag=""
13329       else
13330         # If we're using GNU nm, then we don't want the "-C" option.
13331         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13332         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13333           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'
13334         else
13335           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'
13336         fi
13337         aix_use_runtimelinking=no
13338
13339         # Test if we are trying to use run time linking or normal
13340         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13341         # need to do runtime linking.
13342         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13343           for ld_flag in $LDFLAGS; do
13344           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13345             aix_use_runtimelinking=yes
13346             break
13347           fi
13348           done
13349         esac
13350
13351         exp_sym_flag='-bexport'
13352         no_entry_flag='-bnoentry'
13353       fi
13354
13355       # When large executables or shared objects are built, AIX ld can
13356       # have problems creating the table of contents.  If linking a library
13357       # or program results in "error TOC overflow" add -mminimal-toc to
13358       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13359       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13360
13361       archive_cmds_F77=''
13362       hardcode_direct_F77=yes
13363       hardcode_libdir_separator_F77=':'
13364       link_all_deplibs_F77=yes
13365
13366       if test "$GCC" = yes; then
13367         case $host_os in aix4.012|aix4.012.*)
13368         # We only want to do this on AIX 4.2 and lower, the check
13369         # below for broken collect2 doesn't work under 4.3+
13370           collect2name=`${CC} -print-prog-name=collect2`
13371           if test -f "$collect2name" && \
13372            strings "$collect2name" | grep resolve_lib_name >/dev/null
13373           then
13374           # We have reworked collect2
13375           hardcode_direct_F77=yes
13376           else
13377           # We have old collect2
13378           hardcode_direct_F77=unsupported
13379           # It fails to find uninstalled libraries when the uninstalled
13380           # path is not listed in the libpath.  Setting hardcode_minus_L
13381           # to unsupported forces relinking
13382           hardcode_minus_L_F77=yes
13383           hardcode_libdir_flag_spec_F77='-L$libdir'
13384           hardcode_libdir_separator_F77=
13385           fi
13386         esac
13387         shared_flag='-shared'
13388       else
13389         # not using gcc
13390         if test "$host_cpu" = ia64; then
13391         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13392         # chokes on -Wl,-G. The following line is correct:
13393           shared_flag='-G'
13394         else
13395         if test "$aix_use_runtimelinking" = yes; then
13396             shared_flag='${wl}-G'
13397           else
13398             shared_flag='${wl}-bM:SRE'
13399         fi
13400         fi
13401       fi
13402
13403       # It seems that -bexpall does not export symbols beginning with
13404       # underscore (_), so it is better to generate a list of symbols to export.
13405       always_export_symbols_F77=yes
13406       if test "$aix_use_runtimelinking" = yes; then
13407         # Warning - without using the other runtime loading flags (-brtl),
13408         # -berok will link without error, but may produce a broken library.
13409         allow_undefined_flag_F77='-berok'
13410        # Determine the default libpath from the value encoded in an empty executable.
13411        cat >conftest.$ac_ext <<_ACEOF
13412       program main
13413
13414       end
13415 _ACEOF
13416 rm -f conftest.$ac_objext conftest$ac_exeext
13417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13418   (eval $ac_link) 2>&5
13419   ac_status=$?
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); } &&
13422          { ac_try='test -s conftest$ac_exeext'
13423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424   (eval $ac_try) 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); }; }; then
13428
13429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13430 }'`
13431 # Check for a 64-bit object if we didn't find anything.
13432 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; }
13433 }'`; fi
13434 else
13435   echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13437
13438 fi
13439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13440 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13441
13442        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13443         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"
13444        else
13445         if test "$host_cpu" = ia64; then
13446           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13447           allow_undefined_flag_F77="-z nodefs"
13448           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"
13449         else
13450          # Determine the default libpath from the value encoded in an empty executable.
13451          cat >conftest.$ac_ext <<_ACEOF
13452       program main
13453
13454       end
13455 _ACEOF
13456 rm -f conftest.$ac_objext conftest$ac_exeext
13457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13458   (eval $ac_link) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); } &&
13462          { ac_try='test -s conftest$ac_exeext'
13463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464   (eval $ac_try) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); }; }; then
13468
13469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13470 }'`
13471 # Check for a 64-bit object if we didn't find anything.
13472 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; }
13473 }'`; fi
13474 else
13475   echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13477
13478 fi
13479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13481
13482          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13483           # Warning - without using the other run time loading flags,
13484           # -berok will link without error, but may produce a broken library.
13485           no_undefined_flag_F77=' ${wl}-bernotok'
13486           allow_undefined_flag_F77=' ${wl}-berok'
13487           # -bexpall does not export symbols beginning with underscore (_)
13488           always_export_symbols_F77=yes
13489           # Exported symbols can be pulled into shared objects from archives
13490           whole_archive_flag_spec_F77=' '
13491           archive_cmds_need_lc_F77=yes
13492           # This is similar to how AIX traditionally builds it's shared libraries.
13493           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'
13494         fi
13495       fi
13496       ;;
13497
13498     amigaos*)
13499       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)'
13500       hardcode_libdir_flag_spec_F77='-L$libdir'
13501       hardcode_minus_L_F77=yes
13502       # see comment about different semantics on the GNU ld section
13503       ld_shlibs_F77=no
13504       ;;
13505
13506     bsdi4*)
13507       export_dynamic_flag_spec_F77=-rdynamic
13508       ;;
13509
13510     cygwin* | mingw* | pw32*)
13511       # When not using gcc, we currently assume that we are using
13512       # Microsoft Visual C++.
13513       # hardcode_libdir_flag_spec is actually meaningless, as there is
13514       # no search path for DLLs.
13515       hardcode_libdir_flag_spec_F77=' '
13516       allow_undefined_flag_F77=unsupported
13517       # Tell ltmain to make .lib files, not .a files.
13518       libext=lib
13519       # Tell ltmain to make .dll files, not .so files.
13520       shrext=".dll"
13521       # FIXME: Setting linknames here is a bad hack.
13522       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13523       # The linker will automatically build a .lib file if we build a DLL.
13524       old_archive_From_new_cmds_F77='true'
13525       # FIXME: Should let the user specify the lib program.
13526       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13527       fix_srcfile_path='`cygpath -w "$srcfile"`'
13528       enable_shared_with_static_runtimes_F77=yes
13529       ;;
13530
13531     darwin* | rhapsody*)
13532     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13533       archive_cmds_need_lc_F77=no
13534       case "$host_os" in
13535       rhapsody* | darwin1.[012])
13536         allow_undefined_flag_F77='-undefined suppress'
13537         ;;
13538       *) # Darwin 1.3 on
13539         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13540         ;;
13541       esac
13542       # FIXME: Relying on posixy $() will cause problems for
13543       #        cross-compilation, but unfortunately the echo tests do not
13544       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13545       #        `"' quotes if we put them in here... so don't!
13546         lt_int_apple_cc_single_mod=no
13547         output_verbose_link_cmd='echo'
13548         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13549           lt_int_apple_cc_single_mod=yes
13550         fi
13551         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13552           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13553         else
13554         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'
13555       fi
13556       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13557       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13558         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13559           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}'
13560         else
13561           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}'
13562         fi
13563           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}'
13564       hardcode_direct_F77=no
13565       hardcode_automatic_F77=yes
13566       hardcode_shlibpath_var_F77=unsupported
13567       whole_archive_flag_spec_F77='-all_load $convenience'
13568       link_all_deplibs_F77=yes
13569     fi
13570       ;;
13571
13572     dgux*)
13573       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13574       hardcode_libdir_flag_spec_F77='-L$libdir'
13575       hardcode_shlibpath_var_F77=no
13576       ;;
13577
13578     freebsd1*)
13579       ld_shlibs_F77=no
13580       ;;
13581
13582     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13583     # support.  Future versions do this automatically, but an explicit c++rt0.o
13584     # does not break anything, and helps significantly (at the cost of a little
13585     # extra space).
13586     freebsd2.2*)
13587       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13588       hardcode_libdir_flag_spec_F77='-R$libdir'
13589       hardcode_direct_F77=yes
13590       hardcode_shlibpath_var_F77=no
13591       ;;
13592
13593     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13594     freebsd2*)
13595       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13596       hardcode_direct_F77=yes
13597       hardcode_minus_L_F77=yes
13598       hardcode_shlibpath_var_F77=no
13599       ;;
13600
13601     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13602     freebsd*)
13603       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13604       hardcode_libdir_flag_spec_F77='-R$libdir'
13605       hardcode_direct_F77=yes
13606       hardcode_shlibpath_var_F77=no
13607       ;;
13608
13609     hpux9*)
13610       if test "$GCC" = yes; then
13611         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'
13612       else
13613         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'
13614       fi
13615       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13616       hardcode_libdir_separator_F77=:
13617       hardcode_direct_F77=yes
13618
13619       # hardcode_minus_L: Not really in the search PATH,
13620       # but as the default location of the library.
13621       hardcode_minus_L_F77=yes
13622       export_dynamic_flag_spec_F77='${wl}-E'
13623       ;;
13624
13625     hpux10* | hpux11*)
13626       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13627         case "$host_cpu" in
13628         hppa*64*|ia64*)
13629           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13630           ;;
13631         *)
13632           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13633           ;;
13634         esac
13635       else
13636         case "$host_cpu" in
13637         hppa*64*|ia64*)
13638           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13639           ;;
13640         *)
13641           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13642           ;;
13643         esac
13644       fi
13645       if test "$with_gnu_ld" = no; then
13646         case "$host_cpu" in
13647         hppa*64*)
13648           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13649           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13650           hardcode_libdir_separator_F77=:
13651           hardcode_direct_F77=no
13652           hardcode_shlibpath_var_F77=no
13653           ;;
13654         ia64*)
13655           hardcode_libdir_flag_spec_F77='-L$libdir'
13656           hardcode_direct_F77=no
13657           hardcode_shlibpath_var_F77=no
13658
13659           # hardcode_minus_L: Not really in the search PATH,
13660           # but as the default location of the library.
13661           hardcode_minus_L_F77=yes
13662           ;;
13663         *)
13664           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13665           hardcode_libdir_separator_F77=:
13666           hardcode_direct_F77=yes
13667           export_dynamic_flag_spec_F77='${wl}-E'
13668
13669           # hardcode_minus_L: Not really in the search PATH,
13670           # but as the default location of the library.
13671           hardcode_minus_L_F77=yes
13672           ;;
13673         esac
13674       fi
13675       ;;
13676
13677     irix5* | irix6* | nonstopux*)
13678       if test "$GCC" = yes; then
13679         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'
13680       else
13681         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'
13682         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13683       fi
13684       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13685       hardcode_libdir_separator_F77=:
13686       link_all_deplibs_F77=yes
13687       ;;
13688
13689     netbsd*)
13690       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13691         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13692       else
13693         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13694       fi
13695       hardcode_libdir_flag_spec_F77='-R$libdir'
13696       hardcode_direct_F77=yes
13697       hardcode_shlibpath_var_F77=no
13698       ;;
13699
13700     newsos6)
13701       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13702       hardcode_direct_F77=yes
13703       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13704       hardcode_libdir_separator_F77=:
13705       hardcode_shlibpath_var_F77=no
13706       ;;
13707
13708     openbsd*)
13709       hardcode_direct_F77=yes
13710       hardcode_shlibpath_var_F77=no
13711       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13712         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13713         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13714         export_dynamic_flag_spec_F77='${wl}-E'
13715       else
13716        case $host_os in
13717          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13718            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13719            hardcode_libdir_flag_spec_F77='-R$libdir'
13720            ;;
13721          *)
13722            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13723            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13724            ;;
13725        esac
13726       fi
13727       ;;
13728
13729     os2*)
13730       hardcode_libdir_flag_spec_F77='-L$libdir'
13731       hardcode_minus_L_F77=yes
13732       allow_undefined_flag_F77=unsupported
13733       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'
13734       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13735       ;;
13736
13737     osf3*)
13738       if test "$GCC" = yes; then
13739         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13740         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'
13741       else
13742         allow_undefined_flag_F77=' -expect_unresolved \*'
13743         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'
13744       fi
13745       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13746       hardcode_libdir_separator_F77=:
13747       ;;
13748
13749     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13750       if test "$GCC" = yes; then
13751         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13752         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'
13753         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13754       else
13755         allow_undefined_flag_F77=' -expect_unresolved \*'
13756         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'
13757         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~
13758         $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'
13759
13760         # Both c and cxx compiler support -rpath directly
13761         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13762       fi
13763       hardcode_libdir_separator_F77=:
13764       ;;
13765
13766     sco3.2v5*)
13767       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13768       hardcode_shlibpath_var_F77=no
13769       export_dynamic_flag_spec_F77='${wl}-Bexport'
13770       runpath_var=LD_RUN_PATH
13771       hardcode_runpath_var=yes
13772       ;;
13773
13774     solaris*)
13775       no_undefined_flag_F77=' -z text'
13776       if test "$GCC" = yes; then
13777         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13778         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13779           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13780       else
13781         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13782         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13783         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13784       fi
13785       hardcode_libdir_flag_spec_F77='-R$libdir'
13786       hardcode_shlibpath_var_F77=no
13787       case $host_os in
13788       solaris2.[0-5] | solaris2.[0-5].*) ;;
13789       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13790         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13791       esac
13792       link_all_deplibs_F77=yes
13793       ;;
13794
13795     sunos4*)
13796       if test "x$host_vendor" = xsequent; then
13797         # Use $CC to link under sequent, because it throws in some extra .o
13798         # files that make .init and .fini sections work.
13799         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13800       else
13801         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13802       fi
13803       hardcode_libdir_flag_spec_F77='-L$libdir'
13804       hardcode_direct_F77=yes
13805       hardcode_minus_L_F77=yes
13806       hardcode_shlibpath_var_F77=no
13807       ;;
13808
13809     sysv4)
13810       case $host_vendor in
13811         sni)
13812           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13813           hardcode_direct_F77=yes # is this really true???
13814         ;;
13815         siemens)
13816           ## LD is ld it makes a PLAMLIB
13817           ## CC just makes a GrossModule.
13818           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13819           reload_cmds_F77='$CC -r -o $output$reload_objs'
13820           hardcode_direct_F77=no
13821         ;;
13822         motorola)
13823           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13824           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13825         ;;
13826       esac
13827       runpath_var='LD_RUN_PATH'
13828       hardcode_shlibpath_var_F77=no
13829       ;;
13830
13831     sysv4.3*)
13832       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13833       hardcode_shlibpath_var_F77=no
13834       export_dynamic_flag_spec_F77='-Bexport'
13835       ;;
13836
13837     sysv4*MP*)
13838       if test -d /usr/nec; then
13839         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13840         hardcode_shlibpath_var_F77=no
13841         runpath_var=LD_RUN_PATH
13842         hardcode_runpath_var=yes
13843         ld_shlibs_F77=yes
13844       fi
13845       ;;
13846
13847     sysv4.2uw2*)
13848       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13849       hardcode_direct_F77=yes
13850       hardcode_minus_L_F77=no
13851       hardcode_shlibpath_var_F77=no
13852       hardcode_runpath_var=yes
13853       runpath_var=LD_RUN_PATH
13854       ;;
13855
13856    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13857       no_undefined_flag_F77='${wl}-z ${wl}text'
13858       if test "$GCC" = yes; then
13859         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13860       else
13861         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13862       fi
13863       runpath_var='LD_RUN_PATH'
13864       hardcode_shlibpath_var_F77=no
13865       ;;
13866
13867     sysv5*)
13868       no_undefined_flag_F77=' -z text'
13869       # $CC -shared without GNU ld will not create a library from C++
13870       # object files and a static libstdc++, better avoid it by now
13871       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13872       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13873                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13874       hardcode_libdir_flag_spec_F77=
13875       hardcode_shlibpath_var_F77=no
13876       runpath_var='LD_RUN_PATH'
13877       ;;
13878
13879     uts4*)
13880       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13881       hardcode_libdir_flag_spec_F77='-L$libdir'
13882       hardcode_shlibpath_var_F77=no
13883       ;;
13884
13885     *)
13886       ld_shlibs_F77=no
13887       ;;
13888     esac
13889   fi
13890
13891 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13892 echo "${ECHO_T}$ld_shlibs_F77" >&6
13893 test "$ld_shlibs_F77" = no && can_build_shared=no
13894
13895 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13896 if test "$GCC" = yes; then
13897   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13898 fi
13899
13900 #
13901 # Do we need to explicitly link libc?
13902 #
13903 case "x$archive_cmds_need_lc_F77" in
13904 x|xyes)
13905   # Assume -lc should be added
13906   archive_cmds_need_lc_F77=yes
13907
13908   if test "$enable_shared" = yes && test "$GCC" = yes; then
13909     case $archive_cmds_F77 in
13910     *'~'*)
13911       # FIXME: we may have to deal with multi-command sequences.
13912       ;;
13913     '$CC '*)
13914       # Test whether the compiler implicitly links with -lc since on some
13915       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13916       # to ld, don't add -lc before -lgcc.
13917       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13918 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13919       $rm conftest*
13920       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13921
13922       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13923   (eval $ac_compile) 2>&5
13924   ac_status=$?
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); } 2>conftest.err; then
13927         soname=conftest
13928         lib=conftest
13929         libobjs=conftest.$ac_objext
13930         deplibs=
13931         wl=$lt_prog_compiler_wl_F77
13932         compiler_flags=-v
13933         linker_flags=-v
13934         verstring=
13935         output_objdir=.
13936         libname=conftest
13937         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13938         allow_undefined_flag_F77=
13939         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13940   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13941   ac_status=$?
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   (exit $ac_status); }
13944         then
13945           archive_cmds_need_lc_F77=no
13946         else
13947           archive_cmds_need_lc_F77=yes
13948         fi
13949         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13950       else
13951         cat conftest.err 1>&5
13952       fi
13953       $rm conftest*
13954       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13955 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13956       ;;
13957     esac
13958   fi
13959   ;;
13960 esac
13961
13962 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13963 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13964 hardcode_action_F77=
13965 if test -n "$hardcode_libdir_flag_spec_F77" || \
13966    test -n "$runpath_var F77" || \
13967    test "X$hardcode_automatic_F77"="Xyes" ; then
13968
13969   # We can hardcode non-existant directories.
13970   if test "$hardcode_direct_F77" != no &&
13971      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13972      # have to relink, otherwise we might link with an installed library
13973      # when we should be linking with a yet-to-be-installed one
13974      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13975      test "$hardcode_minus_L_F77" != no; then
13976     # Linking always hardcodes the temporary library directory.
13977     hardcode_action_F77=relink
13978   else
13979     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13980     hardcode_action_F77=immediate
13981   fi
13982 else
13983   # We cannot hardcode anything, or else we can only hardcode existing
13984   # directories.
13985   hardcode_action_F77=unsupported
13986 fi
13987 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13988 echo "${ECHO_T}$hardcode_action_F77" >&6
13989
13990 if test "$hardcode_action_F77" = relink; then
13991   # Fast installation is not supported
13992   enable_fast_install=no
13993 elif test "$shlibpath_overrides_runpath" = yes ||
13994      test "$enable_shared" = no; then
13995   # Fast installation is not necessary
13996   enable_fast_install=needless
13997 fi
13998
13999 striplib=
14000 old_striplib=
14001 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14002 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14003 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14004   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14005   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14006   echo "$as_me:$LINENO: result: yes" >&5
14007 echo "${ECHO_T}yes" >&6
14008 else
14009 # FIXME - insert some real tests, host_os isn't really good enough
14010   case $host_os in
14011    darwin*)
14012        if test -n "$STRIP" ; then
14013          striplib="$STRIP -x"
14014          echo "$as_me:$LINENO: result: yes" >&5
14015 echo "${ECHO_T}yes" >&6
14016        else
14017   echo "$as_me:$LINENO: result: no" >&5
14018 echo "${ECHO_T}no" >&6
14019 fi
14020        ;;
14021    *)
14022   echo "$as_me:$LINENO: result: no" >&5
14023 echo "${ECHO_T}no" >&6
14024     ;;
14025   esac
14026 fi
14027
14028 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14029 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14030 library_names_spec=
14031 libname_spec='lib$name'
14032 soname_spec=
14033 shrext=".so"
14034 postinstall_cmds=
14035 postuninstall_cmds=
14036 finish_cmds=
14037 finish_eval=
14038 shlibpath_var=
14039 shlibpath_overrides_runpath=unknown
14040 version_type=none
14041 dynamic_linker="$host_os ld.so"
14042 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14043 if test "$GCC" = yes; then
14044   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14045   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14046     # if the path contains ";" then we assume it to be the separator
14047     # otherwise default to the standard path separator (i.e. ":") - it is
14048     # assumed that no part of a normal pathname contains ";" but that should
14049     # okay in the real world where ";" in dirpaths is itself problematic.
14050     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14051   else
14052     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14053   fi
14054 else
14055   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14056 fi
14057 need_lib_prefix=unknown
14058 hardcode_into_libs=no
14059
14060 # when you set need_version to no, make sure it does not cause -set_version
14061 # flags to be left without arguments
14062 need_version=unknown
14063
14064 case $host_os in
14065 aix3*)
14066   version_type=linux
14067   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14068   shlibpath_var=LIBPATH
14069
14070   # AIX 3 has no versioning support, so we append a major version to the name.
14071   soname_spec='${libname}${release}${shared_ext}$major'
14072   ;;
14073
14074 aix4* | aix5*)
14075   version_type=linux
14076   need_lib_prefix=no
14077   need_version=no
14078   hardcode_into_libs=yes
14079   if test "$host_cpu" = ia64; then
14080     # AIX 5 supports IA64
14081     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14082     shlibpath_var=LD_LIBRARY_PATH
14083   else
14084     # With GCC up to 2.95.x, collect2 would create an import file
14085     # for dependence libraries.  The import file would start with
14086     # the line `#! .'.  This would cause the generated library to
14087     # depend on `.', always an invalid library.  This was fixed in
14088     # development snapshots of GCC prior to 3.0.
14089     case $host_os in
14090       aix4 | aix4.[01] | aix4.[01].*)
14091       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14092            echo ' yes '
14093            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14094         :
14095       else
14096         can_build_shared=no
14097       fi
14098       ;;
14099     esac
14100     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14101     # soname into executable. Probably we can add versioning support to
14102     # collect2, so additional links can be useful in future.
14103     if test "$aix_use_runtimelinking" = yes; then
14104       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14105       # instead of lib<name>.a to let people know that these are not
14106       # typical AIX shared libraries.
14107       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108     else
14109       # We preserve .a as extension for shared libraries through AIX4.2
14110       # and later when we are not doing run time linking.
14111       library_names_spec='${libname}${release}.a $libname.a'
14112       soname_spec='${libname}${release}${shared_ext}$major'
14113     fi
14114     shlibpath_var=LIBPATH
14115   fi
14116   ;;
14117
14118 amigaos*)
14119   library_names_spec='$libname.ixlibrary $libname.a'
14120   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14121   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'
14122   ;;
14123
14124 beos*)
14125   library_names_spec='${libname}${shared_ext}'
14126   dynamic_linker="$host_os ld.so"
14127   shlibpath_var=LIBRARY_PATH
14128   ;;
14129
14130 bsdi4*)
14131   version_type=linux
14132   need_version=no
14133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134   soname_spec='${libname}${release}${shared_ext}$major'
14135   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14136   shlibpath_var=LD_LIBRARY_PATH
14137   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14138   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14139   # the default ld.so.conf also contains /usr/contrib/lib and
14140   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14141   # libtool to hard-code these into programs
14142   ;;
14143
14144 cygwin* | mingw* | pw32*)
14145   version_type=windows
14146   shrext=".dll"
14147   need_version=no
14148   need_lib_prefix=no
14149
14150   case $GCC,$host_os in
14151   yes,cygwin* | yes,mingw* | yes,pw32*)
14152     library_names_spec='$libname.dll.a'
14153     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14154     postinstall_cmds='base_file=`basename \${file}`~
14155       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14156       dldir=$destdir/`dirname \$dlpath`~
14157       test -d \$dldir || mkdir -p \$dldir~
14158       $install_prog $dir/$dlname \$dldir/$dlname'
14159     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14160       dlpath=$dir/\$dldll~
14161        $rm \$dlpath'
14162     shlibpath_overrides_runpath=yes
14163
14164     case $host_os in
14165     cygwin*)
14166       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14167       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14168       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14169       ;;
14170     mingw*)
14171       # MinGW DLLs use traditional 'lib' prefix
14172       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14173       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14174       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14175         # It is most probably a Windows format PATH printed by
14176         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14177         # path with ; separators, and with drive letters. We can handle the
14178         # drive letters (cygwin fileutils understands them), so leave them,
14179         # especially as we might pass files found there to a mingw objdump,
14180         # which wouldn't understand a cygwinified path. Ahh.
14181         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14182       else
14183         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14184       fi
14185       ;;
14186     pw32*)
14187       # pw32 DLLs use 'pw' prefix rather than 'lib'
14188       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14189       ;;
14190     esac
14191     ;;
14192
14193   *)
14194     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14195     ;;
14196   esac
14197   dynamic_linker='Win32 ld.exe'
14198   # FIXME: first we should search . and the directory the executable is in
14199   shlibpath_var=PATH
14200   ;;
14201
14202 darwin* | rhapsody*)
14203   dynamic_linker="$host_os dyld"
14204   version_type=darwin
14205   need_lib_prefix=no
14206   need_version=no
14207   # FIXME: Relying on posixy $() will cause problems for
14208   #        cross-compilation, but unfortunately the echo tests do not
14209   #        yet detect zsh echo's removal of \ escapes.
14210   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14211   soname_spec='${libname}${release}${major}$shared_ext'
14212   shlibpath_overrides_runpath=yes
14213   shlibpath_var=DYLD_LIBRARY_PATH
14214   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14215   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14216   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14217   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"`
14218   fi
14219   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14220   ;;
14221
14222 dgux*)
14223   version_type=linux
14224   need_lib_prefix=no
14225   need_version=no
14226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14227   soname_spec='${libname}${release}${shared_ext}$major'
14228   shlibpath_var=LD_LIBRARY_PATH
14229   ;;
14230
14231 freebsd1*)
14232   dynamic_linker=no
14233   ;;
14234
14235 freebsd*)
14236   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14237   version_type=freebsd-$objformat
14238   case $version_type in
14239     freebsd-elf*)
14240       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14241       need_version=no
14242       need_lib_prefix=no
14243       ;;
14244     freebsd-*)
14245       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14246       need_version=yes
14247       ;;
14248   esac
14249   shlibpath_var=LD_LIBRARY_PATH
14250   case $host_os in
14251   freebsd2*)
14252     shlibpath_overrides_runpath=yes
14253     ;;
14254   freebsd3.01* | freebsdelf3.01*)
14255     shlibpath_overrides_runpath=yes
14256     hardcode_into_libs=yes
14257     ;;
14258   *) # from 3.2 on
14259     shlibpath_overrides_runpath=no
14260     hardcode_into_libs=yes
14261     ;;
14262   esac
14263   ;;
14264
14265 gnu*)
14266   version_type=linux
14267   need_lib_prefix=no
14268   need_version=no
14269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14270   soname_spec='${libname}${release}${shared_ext}$major'
14271   shlibpath_var=LD_LIBRARY_PATH
14272   hardcode_into_libs=yes
14273   ;;
14274
14275 hpux9* | hpux10* | hpux11*)
14276   # Give a soname corresponding to the major version so that dld.sl refuses to
14277   # link against other versions.
14278   version_type=sunos
14279   need_lib_prefix=no
14280   need_version=no
14281   case "$host_cpu" in
14282   ia64*)
14283     shrext='.so'
14284     hardcode_into_libs=yes
14285     dynamic_linker="$host_os dld.so"
14286     shlibpath_var=LD_LIBRARY_PATH
14287     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14288     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14289     soname_spec='${libname}${release}${shared_ext}$major'
14290     if test "X$HPUX_IA64_MODE" = X32; then
14291       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14292     else
14293       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14294     fi
14295     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14296     ;;
14297    hppa*64*)
14298      shrext='.sl'
14299      hardcode_into_libs=yes
14300      dynamic_linker="$host_os dld.sl"
14301      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14302      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14303      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14304      soname_spec='${libname}${release}${shared_ext}$major'
14305      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14306      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14307      ;;
14308    *)
14309     shrext='.sl'
14310     dynamic_linker="$host_os dld.sl"
14311     shlibpath_var=SHLIB_PATH
14312     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14313     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14314     soname_spec='${libname}${release}${shared_ext}$major'
14315     ;;
14316   esac
14317   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14318   postinstall_cmds='chmod 555 $lib'
14319   ;;
14320
14321 irix5* | irix6* | nonstopux*)
14322   case $host_os in
14323     nonstopux*) version_type=nonstopux ;;
14324     *)
14325         if test "$lt_cv_prog_gnu_ld" = yes; then
14326                 version_type=linux
14327         else
14328                 version_type=irix
14329         fi ;;
14330   esac
14331   need_lib_prefix=no
14332   need_version=no
14333   soname_spec='${libname}${release}${shared_ext}$major'
14334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14335   case $host_os in
14336   irix5* | nonstopux*)
14337     libsuff= shlibsuff=
14338     ;;
14339   *)
14340     case $LD in # libtool.m4 will add one of these switches to LD
14341     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14342       libsuff= shlibsuff= libmagic=32-bit;;
14343     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14344       libsuff=32 shlibsuff=N32 libmagic=N32;;
14345     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14346       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14347     *) libsuff= shlibsuff= libmagic=never-match;;
14348     esac
14349     ;;
14350   esac
14351   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14352   shlibpath_overrides_runpath=no
14353   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14354   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14355   hardcode_into_libs=yes
14356   ;;
14357
14358 # No shared lib support for Linux oldld, aout, or coff.
14359 linux*oldld* | linux*aout* | linux*coff*)
14360   dynamic_linker=no
14361   ;;
14362
14363 # This must be Linux ELF.
14364 linux*)
14365   version_type=linux
14366   need_lib_prefix=no
14367   need_version=no
14368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14369   soname_spec='${libname}${release}${shared_ext}$major'
14370   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14371   shlibpath_var=LD_LIBRARY_PATH
14372   shlibpath_overrides_runpath=no
14373   # This implies no fast_install, which is unacceptable.
14374   # Some rework will be needed to allow for fast_install
14375   # before this can be enabled.
14376   hardcode_into_libs=yes
14377
14378   # We used to test for /lib/ld.so.1 and disable shared libraries on
14379   # powerpc, because MkLinux only supported shared libraries with the
14380   # GNU dynamic linker.  Since this was broken with cross compilers,
14381   # most powerpc-linux boxes support dynamic linking these days and
14382   # people can always --disable-shared, the test was removed, and we
14383   # assume the GNU/Linux dynamic linker is in use.
14384   dynamic_linker='GNU/Linux ld.so'
14385   ;;
14386
14387 netbsd*)
14388   version_type=sunos
14389   need_lib_prefix=no
14390   need_version=no
14391   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14393     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14394     dynamic_linker='NetBSD (a.out) ld.so'
14395   else
14396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14397     soname_spec='${libname}${release}${shared_ext}$major'
14398     dynamic_linker='NetBSD ld.elf_so'
14399   fi
14400   shlibpath_var=LD_LIBRARY_PATH
14401   shlibpath_overrides_runpath=yes
14402   hardcode_into_libs=yes
14403   ;;
14404
14405 newsos6)
14406   version_type=linux
14407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14408   shlibpath_var=LD_LIBRARY_PATH
14409   shlibpath_overrides_runpath=yes
14410   ;;
14411
14412 nto-qnx)
14413   version_type=linux
14414   need_lib_prefix=no
14415   need_version=no
14416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417   soname_spec='${libname}${release}${shared_ext}$major'
14418   shlibpath_var=LD_LIBRARY_PATH
14419   shlibpath_overrides_runpath=yes
14420   ;;
14421
14422 openbsd*)
14423   version_type=sunos
14424   need_lib_prefix=no
14425   need_version=no
14426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14427   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14428   shlibpath_var=LD_LIBRARY_PATH
14429   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14430     case $host_os in
14431       openbsd2.[89] | openbsd2.[89].*)
14432         shlibpath_overrides_runpath=no
14433         ;;
14434       *)
14435         shlibpath_overrides_runpath=yes
14436         ;;
14437       esac
14438   else
14439     shlibpath_overrides_runpath=yes
14440   fi
14441   ;;
14442
14443 os2*)
14444   libname_spec='$name'
14445   shrext=".dll"
14446   need_lib_prefix=no
14447   library_names_spec='$libname${shared_ext} $libname.a'
14448   dynamic_linker='OS/2 ld.exe'
14449   shlibpath_var=LIBPATH
14450   ;;
14451
14452 osf3* | osf4* | osf5*)
14453   version_type=osf
14454   need_lib_prefix=no
14455   need_version=no
14456   soname_spec='${libname}${release}${shared_ext}$major'
14457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458   shlibpath_var=LD_LIBRARY_PATH
14459   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14460   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14461   ;;
14462
14463 sco3.2v5*)
14464   version_type=osf
14465   soname_spec='${libname}${release}${shared_ext}$major'
14466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14467   shlibpath_var=LD_LIBRARY_PATH
14468   ;;
14469
14470 solaris*)
14471   version_type=linux
14472   need_lib_prefix=no
14473   need_version=no
14474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14475   soname_spec='${libname}${release}${shared_ext}$major'
14476   shlibpath_var=LD_LIBRARY_PATH
14477   shlibpath_overrides_runpath=yes
14478   hardcode_into_libs=yes
14479   # ldd complains unless libraries are executable
14480   postinstall_cmds='chmod +x $lib'
14481   ;;
14482
14483 sunos4*)
14484   version_type=sunos
14485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14486   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14487   shlibpath_var=LD_LIBRARY_PATH
14488   shlibpath_overrides_runpath=yes
14489   if test "$with_gnu_ld" = yes; then
14490     need_lib_prefix=no
14491   fi
14492   need_version=yes
14493   ;;
14494
14495 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14496   version_type=linux
14497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498   soname_spec='${libname}${release}${shared_ext}$major'
14499   shlibpath_var=LD_LIBRARY_PATH
14500   case $host_vendor in
14501     sni)
14502       shlibpath_overrides_runpath=no
14503       need_lib_prefix=no
14504       export_dynamic_flag_spec='${wl}-Blargedynsym'
14505       runpath_var=LD_RUN_PATH
14506       ;;
14507     siemens)
14508       need_lib_prefix=no
14509       ;;
14510     motorola)
14511       need_lib_prefix=no
14512       need_version=no
14513       shlibpath_overrides_runpath=no
14514       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14515       ;;
14516   esac
14517   ;;
14518
14519 sysv4*MP*)
14520   if test -d /usr/nec ;then
14521     version_type=linux
14522     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14523     soname_spec='$libname${shared_ext}.$major'
14524     shlibpath_var=LD_LIBRARY_PATH
14525   fi
14526   ;;
14527
14528 uts4*)
14529   version_type=linux
14530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14531   soname_spec='${libname}${release}${shared_ext}$major'
14532   shlibpath_var=LD_LIBRARY_PATH
14533   ;;
14534
14535 *)
14536   dynamic_linker=no
14537   ;;
14538 esac
14539 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14540 echo "${ECHO_T}$dynamic_linker" >&6
14541 test "$dynamic_linker" = no && can_build_shared=no
14542
14543
14544 # The else clause should only fire when bootstrapping the
14545 # libtool distribution, otherwise you forgot to ship ltmain.sh
14546 # with your package, and you will get complaints that there are
14547 # no rules to generate ltmain.sh.
14548 if test -f "$ltmain"; then
14549   # See if we are running on zsh, and set the options which allow our commands through
14550   # without removal of \ escapes.
14551   if test -n "${ZSH_VERSION+set}" ; then
14552     setopt NO_GLOB_SUBST
14553   fi
14554   # Now quote all the things that may contain metacharacters while being
14555   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14556   # variables and quote the copies for generation of the libtool script.
14557   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14558     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14559     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14560     deplibs_check_method reload_flag reload_cmds need_locks \
14561     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14562     lt_cv_sys_global_symbol_to_c_name_address \
14563     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14564     old_postinstall_cmds old_postuninstall_cmds \
14565     compiler_F77 \
14566     CC_F77 \
14567     LD_F77 \
14568     lt_prog_compiler_wl_F77 \
14569     lt_prog_compiler_pic_F77 \
14570     lt_prog_compiler_static_F77 \
14571     lt_prog_compiler_no_builtin_flag_F77 \
14572     export_dynamic_flag_spec_F77 \
14573     thread_safe_flag_spec_F77 \
14574     whole_archive_flag_spec_F77 \
14575     enable_shared_with_static_runtimes_F77 \
14576     old_archive_cmds_F77 \
14577     old_archive_from_new_cmds_F77 \
14578     predep_objects_F77 \
14579     postdep_objects_F77 \
14580     predeps_F77 \
14581     postdeps_F77 \
14582     compiler_lib_search_path_F77 \
14583     archive_cmds_F77 \
14584     archive_expsym_cmds_F77 \
14585     postinstall_cmds_F77 \
14586     postuninstall_cmds_F77 \
14587     old_archive_from_expsyms_cmds_F77 \
14588     allow_undefined_flag_F77 \
14589     no_undefined_flag_F77 \
14590     export_symbols_cmds_F77 \
14591     hardcode_libdir_flag_spec_F77 \
14592     hardcode_libdir_flag_spec_ld_F77 \
14593     hardcode_libdir_separator_F77 \
14594     hardcode_automatic_F77 \
14595     module_cmds_F77 \
14596     module_expsym_cmds_F77 \
14597     lt_cv_prog_compiler_c_o_F77 \
14598     exclude_expsyms_F77 \
14599     include_expsyms_F77; do
14600
14601     case $var in
14602     old_archive_cmds_F77 | \
14603     old_archive_from_new_cmds_F77 | \
14604     archive_cmds_F77 | \
14605     archive_expsym_cmds_F77 | \
14606     module_cmds_F77 | \
14607     module_expsym_cmds_F77 | \
14608     old_archive_from_expsyms_cmds_F77 | \
14609     export_symbols_cmds_F77 | \
14610     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14611     postinstall_cmds | postuninstall_cmds | \
14612     old_postinstall_cmds | old_postuninstall_cmds | \
14613     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14614       # Double-quote double-evaled strings.
14615       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14616       ;;
14617     *)
14618       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14619       ;;
14620     esac
14621   done
14622
14623   case $lt_echo in
14624   *'\$0 --fallback-echo"')
14625     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14626     ;;
14627   esac
14628
14629 cfgfile="$ofile"
14630
14631   cat <<__EOF__ >> "$cfgfile"
14632 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14633
14634 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14635
14636 # Shell to use when invoking shell scripts.
14637 SHELL=$lt_SHELL
14638
14639 # Whether or not to build shared libraries.
14640 build_libtool_libs=$enable_shared
14641
14642 # Whether or not to build static libraries.
14643 build_old_libs=$enable_static
14644
14645 # Whether or not to add -lc for building shared libraries.
14646 build_libtool_need_lc=$archive_cmds_need_lc_F77
14647
14648 # Whether or not to disallow shared libs when runtime libs are static
14649 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14650
14651 # Whether or not to optimize for fast installation.
14652 fast_install=$enable_fast_install
14653
14654 # The host system.
14655 host_alias=$host_alias
14656 host=$host
14657
14658 # An echo program that does not interpret backslashes.
14659 echo=$lt_echo
14660
14661 # The archiver.
14662 AR=$lt_AR
14663 AR_FLAGS=$lt_AR_FLAGS
14664
14665 # A C compiler.
14666 LTCC=$lt_LTCC
14667
14668 # A language-specific compiler.
14669 CC=$lt_compiler_F77
14670
14671 # Is the compiler the GNU C compiler?
14672 with_gcc=$GCC_F77
14673
14674 # An ERE matcher.
14675 EGREP=$lt_EGREP
14676
14677 # The linker used to build libraries.
14678 LD=$lt_LD_F77
14679
14680 # Whether we need hard or soft links.
14681 LN_S=$lt_LN_S
14682
14683 # A BSD-compatible nm program.
14684 NM=$lt_NM
14685
14686 # A symbol stripping program
14687 STRIP=$STRIP
14688
14689 # Used to examine libraries when file_magic_cmd begins "file"
14690 MAGIC_CMD=$MAGIC_CMD
14691
14692 # Used on cygwin: DLL creation program.
14693 DLLTOOL="$DLLTOOL"
14694
14695 # Used on cygwin: object dumper.
14696 OBJDUMP="$OBJDUMP"
14697
14698 # Used on cygwin: assembler.
14699 AS="$AS"
14700
14701 # The name of the directory that contains temporary libtool files.
14702 objdir=$objdir
14703
14704 # How to create reloadable object files.
14705 reload_flag=$lt_reload_flag
14706 reload_cmds=$lt_reload_cmds
14707
14708 # How to pass a linker flag through the compiler.
14709 wl=$lt_lt_prog_compiler_wl_F77
14710
14711 # Object file suffix (normally "o").
14712 objext="$ac_objext"
14713
14714 # Old archive suffix (normally "a").
14715 libext="$libext"
14716
14717 # Shared library suffix (normally ".so").
14718 shrext='$shrext'
14719
14720 # Executable file suffix (normally "").
14721 exeext="$exeext"
14722
14723 # Additional compiler flags for building library objects.
14724 pic_flag=$lt_lt_prog_compiler_pic_F77
14725 pic_mode=$pic_mode
14726
14727 # What is the maximum length of a command?
14728 max_cmd_len=$lt_cv_sys_max_cmd_len
14729
14730 # Does compiler simultaneously support -c and -o options?
14731 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14732
14733 # Must we lock files when doing compilation ?
14734 need_locks=$lt_need_locks
14735
14736 # Do we need the lib prefix for modules?
14737 need_lib_prefix=$need_lib_prefix
14738
14739 # Do we need a version for libraries?
14740 need_version=$need_version
14741
14742 # Whether dlopen is supported.
14743 dlopen_support=$enable_dlopen
14744
14745 # Whether dlopen of programs is supported.
14746 dlopen_self=$enable_dlopen_self
14747
14748 # Whether dlopen of statically linked programs is supported.
14749 dlopen_self_static=$enable_dlopen_self_static
14750
14751 # Compiler flag to prevent dynamic linking.
14752 link_static_flag=$lt_lt_prog_compiler_static_F77
14753
14754 # Compiler flag to turn off builtin functions.
14755 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14756
14757 # Compiler flag to allow reflexive dlopens.
14758 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14759
14760 # Compiler flag to generate shared objects directly from archives.
14761 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14762
14763 # Compiler flag to generate thread-safe objects.
14764 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14765
14766 # Library versioning type.
14767 version_type=$version_type
14768
14769 # Format of library name prefix.
14770 libname_spec=$lt_libname_spec
14771
14772 # List of archive names.  First name is the real one, the rest are links.
14773 # The last name is the one that the linker finds with -lNAME.
14774 library_names_spec=$lt_library_names_spec
14775
14776 # The coded name of the library, if different from the real name.
14777 soname_spec=$lt_soname_spec
14778
14779 # Commands used to build and install an old-style archive.
14780 RANLIB=$lt_RANLIB
14781 old_archive_cmds=$lt_old_archive_cmds_F77
14782 old_postinstall_cmds=$lt_old_postinstall_cmds
14783 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14784
14785 # Create an old-style archive from a shared archive.
14786 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14787
14788 # Create a temporary old-style archive to link instead of a shared archive.
14789 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14790
14791 # Commands used to build and install a shared archive.
14792 archive_cmds=$lt_archive_cmds_F77
14793 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14794 postinstall_cmds=$lt_postinstall_cmds
14795 postuninstall_cmds=$lt_postuninstall_cmds
14796
14797 # Commands used to build a loadable module (assumed same as above if empty)
14798 module_cmds=$lt_module_cmds_F77
14799 module_expsym_cmds=$lt_module_expsym_cmds_F77
14800
14801 # Commands to strip libraries.
14802 old_striplib=$lt_old_striplib
14803 striplib=$lt_striplib
14804
14805 # Dependencies to place before the objects being linked to create a
14806 # shared library.
14807 predep_objects=$lt_predep_objects_F77
14808
14809 # Dependencies to place after the objects being linked to create a
14810 # shared library.
14811 postdep_objects=$lt_postdep_objects_F77
14812
14813 # Dependencies to place before the objects being linked to create a
14814 # shared library.
14815 predeps=$lt_predeps_F77
14816
14817 # Dependencies to place after the objects being linked to create a
14818 # shared library.
14819 postdeps=$lt_postdeps_F77
14820
14821 # The library search path used internally by the compiler when linking
14822 # a shared library.
14823 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14824
14825 # Method to check whether dependent libraries are shared objects.
14826 deplibs_check_method=$lt_deplibs_check_method
14827
14828 # Command to use when deplibs_check_method == file_magic.
14829 file_magic_cmd=$lt_file_magic_cmd
14830
14831 # Flag that allows shared libraries with undefined symbols to be built.
14832 allow_undefined_flag=$lt_allow_undefined_flag_F77
14833
14834 # Flag that forces no undefined symbols.
14835 no_undefined_flag=$lt_no_undefined_flag_F77
14836
14837 # Commands used to finish a libtool library installation in a directory.
14838 finish_cmds=$lt_finish_cmds
14839
14840 # Same as above, but a single script fragment to be evaled but not shown.
14841 finish_eval=$lt_finish_eval
14842
14843 # Take the output of nm and produce a listing of raw symbols and C names.
14844 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14845
14846 # Transform the output of nm in a proper C declaration
14847 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14848
14849 # Transform the output of nm in a C name address pair
14850 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14851
14852 # This is the shared library runtime path variable.
14853 runpath_var=$runpath_var
14854
14855 # This is the shared library path variable.
14856 shlibpath_var=$shlibpath_var
14857
14858 # Is shlibpath searched before the hard-coded library search path?
14859 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14860
14861 # How to hardcode a shared library path into an executable.
14862 hardcode_action=$hardcode_action_F77
14863
14864 # Whether we should hardcode library paths into libraries.
14865 hardcode_into_libs=$hardcode_into_libs
14866
14867 # Flag to hardcode \$libdir into a binary during linking.
14868 # This must work even if \$libdir does not exist.
14869 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14870
14871 # If ld is used when linking, flag to hardcode \$libdir into
14872 # a binary during linking. This must work even if \$libdir does
14873 # not exist.
14874 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14875
14876 # Whether we need a single -rpath flag with a separated argument.
14877 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14878
14879 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14880 # resulting binary.
14881 hardcode_direct=$hardcode_direct_F77
14882
14883 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14884 # resulting binary.
14885 hardcode_minus_L=$hardcode_minus_L_F77
14886
14887 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14888 # the resulting binary.
14889 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14890
14891 # Set to yes if building a shared library automatically hardcodes DIR into the library
14892 # and all subsequent libraries and executables linked against it.
14893 hardcode_automatic=$hardcode_automatic_F77
14894
14895 # Variables whose values should be saved in libtool wrapper scripts and
14896 # restored at relink time.
14897 variables_saved_for_relink="$variables_saved_for_relink"
14898
14899 # Whether libtool must link a program against all its dependency libraries.
14900 link_all_deplibs=$link_all_deplibs_F77
14901
14902 # Compile-time system search path for libraries
14903 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14904
14905 # Run-time system search path for libraries
14906 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14907
14908 # Fix the shell variable \$srcfile for the compiler.
14909 fix_srcfile_path="$fix_srcfile_path_F77"
14910
14911 # Set to yes if exported symbols are required.
14912 always_export_symbols=$always_export_symbols_F77
14913
14914 # The commands to list exported symbols.
14915 export_symbols_cmds=$lt_export_symbols_cmds_F77
14916
14917 # The commands to extract the exported symbol list from a shared archive.
14918 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14919
14920 # Symbols that should not be listed in the preloaded symbols.
14921 exclude_expsyms=$lt_exclude_expsyms_F77
14922
14923 # Symbols that must always be exported.
14924 include_expsyms=$lt_include_expsyms_F77
14925
14926 # ### END LIBTOOL TAG CONFIG: $tagname
14927
14928 __EOF__
14929
14930
14931 else
14932   # If there is no Makefile yet, we rely on a make rule to execute
14933   # `config.status --recheck' to rerun these tests and create the
14934   # libtool script then.
14935   test -f Makefile && make "$ltmain"
14936 fi
14937
14938
14939 ac_ext=c
14940 ac_cpp='$CPP $CPPFLAGS'
14941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14944
14945 CC="$lt_save_CC"
14946
14947         else
14948           tagname=""
14949         fi
14950         ;;
14951
14952       GCJ)
14953         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14954
14955
14956
14957 # Source file extension for Java test sources.
14958 ac_ext=java
14959
14960 # Object file extension for compiled Java test sources.
14961 objext=o
14962 objext_GCJ=$objext
14963
14964 # Code to be used in simple compile tests
14965 lt_simple_compile_test_code="class foo {}\n"
14966
14967 # Code to be used in simple link tests
14968 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14969
14970 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14971
14972 # If no C compiler was specified, use CC.
14973 LTCC=${LTCC-"$CC"}
14974
14975 # Allow CC to be a program name with arguments.
14976 compiler=$CC
14977
14978
14979 # Allow CC to be a program name with arguments.
14980 lt_save_CC="$CC"
14981 CC=${GCJ-"gcj"}
14982 compiler=$CC
14983 compiler_GCJ=$CC
14984
14985 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14986 archive_cmds_need_lc_GCJ=no
14987
14988 ## CAVEAT EMPTOR:
14989 ## There is no encapsulation within the following macros, do not change
14990 ## the running order or otherwise move them around unless you know exactly
14991 ## what you are doing...
14992
14993 lt_prog_compiler_no_builtin_flag_GCJ=
14994
14995 if test "$GCC" = yes; then
14996   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14997
14998   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14999 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15000 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15001   echo $ECHO_N "(cached) $ECHO_C" >&6
15002 else
15003   lt_cv_prog_compiler_rtti_exceptions=no
15004   ac_outfile=conftest.$ac_objext
15005    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15006    lt_compiler_flag="-fno-rtti -fno-exceptions"
15007    # Insert the option either (1) after the last *FLAGS variable, or
15008    # (2) before a word containing "conftest.", or (3) at the end.
15009    # Note that $ac_compile itself does not contain backslashes and begins
15010    # with a dollar sign (not a hyphen), so the echo should work correctly.
15011    # The option is referenced via a variable to avoid confusing sed.
15012    lt_compile=`echo "$ac_compile" | $SED \
15013    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15014    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15015    -e 's:$: $lt_compiler_flag:'`
15016    (eval echo "\"\$as_me:15016: $lt_compile\"" >&5)
15017    (eval "$lt_compile" 2>conftest.err)
15018    ac_status=$?
15019    cat conftest.err >&5
15020    echo "$as_me:15020: \$? = $ac_status" >&5
15021    if (exit $ac_status) && test -s "$ac_outfile"; then
15022      # The compiler can only warn and ignore the option if not recognized
15023      # So say no if there are warnings
15024      if test ! -s conftest.err; then
15025        lt_cv_prog_compiler_rtti_exceptions=yes
15026      fi
15027    fi
15028    $rm conftest*
15029
15030 fi
15031 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15032 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15033
15034 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15035     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15036 else
15037     :
15038 fi
15039
15040 fi
15041
15042 lt_prog_compiler_wl_GCJ=
15043 lt_prog_compiler_pic_GCJ=
15044 lt_prog_compiler_static_GCJ=
15045
15046 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15047 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15048
15049   if test "$GCC" = yes; then
15050     lt_prog_compiler_wl_GCJ='-Wl,'
15051     lt_prog_compiler_static_GCJ='-static'
15052
15053     case $host_os in
15054       aix*)
15055       # All AIX code is PIC.
15056       if test "$host_cpu" = ia64; then
15057         # AIX 5 now supports IA64 processor
15058         lt_prog_compiler_static_GCJ='-Bstatic'
15059       fi
15060       ;;
15061
15062     amigaos*)
15063       # FIXME: we need at least 68020 code to build shared libraries, but
15064       # adding the `-m68020' flag to GCC prevents building anything better,
15065       # like `-m68040'.
15066       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15067       ;;
15068
15069     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15070       # PIC is the default for these OSes.
15071       ;;
15072
15073     mingw* | pw32* | os2*)
15074       # This hack is so that the source file can tell whether it is being
15075       # built for inclusion in a dll (and should export symbols for example).
15076       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15077       ;;
15078
15079     darwin* | rhapsody*)
15080       # PIC is the default on this platform
15081       # Common symbols not allowed in MH_DYLIB files
15082       lt_prog_compiler_pic_GCJ='-fno-common'
15083       ;;
15084
15085     msdosdjgpp*)
15086       # Just because we use GCC doesn't mean we suddenly get shared libraries
15087       # on systems that don't support them.
15088       lt_prog_compiler_can_build_shared_GCJ=no
15089       enable_shared=no
15090       ;;
15091
15092     sysv4*MP*)
15093       if test -d /usr/nec; then
15094         lt_prog_compiler_pic_GCJ=-Kconform_pic
15095       fi
15096       ;;
15097
15098     hpux*)
15099       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15100       # not for PA HP-UX.
15101       case "$host_cpu" in
15102       hppa*64*|ia64*)
15103         # +Z the default
15104         ;;
15105       *)
15106         lt_prog_compiler_pic_GCJ='-fPIC'
15107         ;;
15108       esac
15109       ;;
15110
15111     *)
15112       lt_prog_compiler_pic_GCJ='-fPIC'
15113       ;;
15114     esac
15115   else
15116     # PORTME Check for flag to pass linker flags through the system compiler.
15117     case $host_os in
15118     aix*)
15119       lt_prog_compiler_wl_GCJ='-Wl,'
15120       if test "$host_cpu" = ia64; then
15121         # AIX 5 now supports IA64 processor
15122         lt_prog_compiler_static_GCJ='-Bstatic'
15123       else
15124         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15125       fi
15126       ;;
15127
15128     mingw* | pw32* | os2*)
15129       # This hack is so that the source file can tell whether it is being
15130       # built for inclusion in a dll (and should export symbols for example).
15131       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15132       ;;
15133
15134     hpux9* | hpux10* | hpux11*)
15135       lt_prog_compiler_wl_GCJ='-Wl,'
15136       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15137       # not for PA HP-UX.
15138       case "$host_cpu" in
15139       hppa*64*|ia64*)
15140         # +Z the default
15141         ;;
15142       *)
15143         lt_prog_compiler_pic_GCJ='+Z'
15144         ;;
15145       esac
15146       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15147       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15148       ;;
15149
15150     irix5* | irix6* | nonstopux*)
15151       lt_prog_compiler_wl_GCJ='-Wl,'
15152       # PIC (with -KPIC) is the default.
15153       lt_prog_compiler_static_GCJ='-non_shared'
15154       ;;
15155
15156     newsos6)
15157       lt_prog_compiler_pic_GCJ='-KPIC'
15158       lt_prog_compiler_static_GCJ='-Bstatic'
15159       ;;
15160
15161     linux*)
15162       case $CC in
15163       icc|ecc)
15164         lt_prog_compiler_wl_GCJ='-Wl,'
15165         lt_prog_compiler_pic_GCJ='-KPIC'
15166         lt_prog_compiler_static_GCJ='-static'
15167         ;;
15168       ccc)
15169         lt_prog_compiler_wl_GCJ='-Wl,'
15170         # All Alpha code is PIC.
15171         lt_prog_compiler_static_GCJ='-non_shared'
15172         ;;
15173       esac
15174       ;;
15175
15176     osf3* | osf4* | osf5*)
15177       lt_prog_compiler_wl_GCJ='-Wl,'
15178       # All OSF/1 code is PIC.
15179       lt_prog_compiler_static_GCJ='-non_shared'
15180       ;;
15181
15182     sco3.2v5*)
15183       lt_prog_compiler_pic_GCJ='-Kpic'
15184       lt_prog_compiler_static_GCJ='-dn'
15185       ;;
15186
15187     solaris*)
15188       lt_prog_compiler_wl_GCJ='-Wl,'
15189       lt_prog_compiler_pic_GCJ='-KPIC'
15190       lt_prog_compiler_static_GCJ='-Bstatic'
15191       ;;
15192
15193     sunos4*)
15194       lt_prog_compiler_wl_GCJ='-Qoption ld '
15195       lt_prog_compiler_pic_GCJ='-PIC'
15196       lt_prog_compiler_static_GCJ='-Bstatic'
15197       ;;
15198
15199     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15200       lt_prog_compiler_wl_GCJ='-Wl,'
15201       lt_prog_compiler_pic_GCJ='-KPIC'
15202       lt_prog_compiler_static_GCJ='-Bstatic'
15203       ;;
15204
15205     sysv4*MP*)
15206       if test -d /usr/nec ;then
15207         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15208         lt_prog_compiler_static_GCJ='-Bstatic'
15209       fi
15210       ;;
15211
15212     uts4*)
15213       lt_prog_compiler_pic_GCJ='-pic'
15214       lt_prog_compiler_static_GCJ='-Bstatic'
15215       ;;
15216
15217     *)
15218       lt_prog_compiler_can_build_shared_GCJ=no
15219       ;;
15220     esac
15221   fi
15222
15223 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15224 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15225
15226 #
15227 # Check to make sure the PIC flag actually works.
15228 #
15229 if test -n "$lt_prog_compiler_pic_GCJ"; then
15230   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15231 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15232 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15233   echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235   lt_prog_compiler_pic_works_GCJ=no
15236   ac_outfile=conftest.$ac_objext
15237    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15238    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15239    # Insert the option either (1) after the last *FLAGS variable, or
15240    # (2) before a word containing "conftest.", or (3) at the end.
15241    # Note that $ac_compile itself does not contain backslashes and begins
15242    # with a dollar sign (not a hyphen), so the echo should work correctly.
15243    # The option is referenced via a variable to avoid confusing sed.
15244    lt_compile=`echo "$ac_compile" | $SED \
15245    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15246    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15247    -e 's:$: $lt_compiler_flag:'`
15248    (eval echo "\"\$as_me:15248: $lt_compile\"" >&5)
15249    (eval "$lt_compile" 2>conftest.err)
15250    ac_status=$?
15251    cat conftest.err >&5
15252    echo "$as_me:15252: \$? = $ac_status" >&5
15253    if (exit $ac_status) && test -s "$ac_outfile"; then
15254      # The compiler can only warn and ignore the option if not recognized
15255      # So say no if there are warnings
15256      if test ! -s conftest.err; then
15257        lt_prog_compiler_pic_works_GCJ=yes
15258      fi
15259    fi
15260    $rm conftest*
15261
15262 fi
15263 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15264 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15265
15266 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15267     case $lt_prog_compiler_pic_GCJ in
15268      "" | " "*) ;;
15269      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15270      esac
15271 else
15272     lt_prog_compiler_pic_GCJ=
15273      lt_prog_compiler_can_build_shared_GCJ=no
15274 fi
15275
15276 fi
15277 case "$host_os" in
15278   # For platforms which do not support PIC, -DPIC is meaningless:
15279   *djgpp*)
15280     lt_prog_compiler_pic_GCJ=
15281     ;;
15282   *)
15283     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15284     ;;
15285 esac
15286
15287 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15288 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15289 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15290   echo $ECHO_N "(cached) $ECHO_C" >&6
15291 else
15292   lt_cv_prog_compiler_c_o_GCJ=no
15293    $rm -r conftest 2>/dev/null
15294    mkdir conftest
15295    cd conftest
15296    mkdir out
15297    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15298
15299    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15300    # that will create temporary files in the current directory regardless of
15301    # the output directory.  Thus, making CWD read-only will cause this test
15302    # to fail, enabling locking or at least warning the user not to do parallel
15303    # builds.
15304    chmod -w .
15305
15306    lt_compiler_flag="-o out/conftest2.$ac_objext"
15307    # Insert the option either (1) after the last *FLAGS variable, or
15308    # (2) before a word containing "conftest.", or (3) at the end.
15309    # Note that $ac_compile itself does not contain backslashes and begins
15310    # with a dollar sign (not a hyphen), so the echo should work correctly.
15311    lt_compile=`echo "$ac_compile" | $SED \
15312    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15313    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15314    -e 's:$: $lt_compiler_flag:'`
15315    (eval echo "\"\$as_me:15315: $lt_compile\"" >&5)
15316    (eval "$lt_compile" 2>out/conftest.err)
15317    ac_status=$?
15318    cat out/conftest.err >&5
15319    echo "$as_me:15319: \$? = $ac_status" >&5
15320    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15321    then
15322      # The compiler can only warn and ignore the option if not recognized
15323      # So say no if there are warnings
15324      if test ! -s out/conftest.err; then
15325        lt_cv_prog_compiler_c_o_GCJ=yes
15326      fi
15327    fi
15328    chmod u+w .
15329    $rm conftest* out/*
15330    rmdir out
15331    cd ..
15332    rmdir conftest
15333    $rm conftest*
15334
15335 fi
15336 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15337 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15338
15339
15340 hard_links="nottested"
15341 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15342   # do not overwrite the value of need_locks provided by the user
15343   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15344 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15345   hard_links=yes
15346   $rm conftest*
15347   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15348   touch conftest.a
15349   ln conftest.a conftest.b 2>&5 || hard_links=no
15350   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15351   echo "$as_me:$LINENO: result: $hard_links" >&5
15352 echo "${ECHO_T}$hard_links" >&6
15353   if test "$hard_links" = no; then
15354     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15355 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15356     need_locks=warn
15357   fi
15358 else
15359   need_locks=no
15360 fi
15361
15362 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15363 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15364
15365   runpath_var=
15366   allow_undefined_flag_GCJ=
15367   enable_shared_with_static_runtimes_GCJ=no
15368   archive_cmds_GCJ=
15369   archive_expsym_cmds_GCJ=
15370   old_archive_From_new_cmds_GCJ=
15371   old_archive_from_expsyms_cmds_GCJ=
15372   export_dynamic_flag_spec_GCJ=
15373   whole_archive_flag_spec_GCJ=
15374   thread_safe_flag_spec_GCJ=
15375   hardcode_libdir_flag_spec_GCJ=
15376   hardcode_libdir_flag_spec_ld_GCJ=
15377   hardcode_libdir_separator_GCJ=
15378   hardcode_direct_GCJ=no
15379   hardcode_minus_L_GCJ=no
15380   hardcode_shlibpath_var_GCJ=unsupported
15381   link_all_deplibs_GCJ=unknown
15382   hardcode_automatic_GCJ=no
15383   module_cmds_GCJ=
15384   module_expsym_cmds_GCJ=
15385   always_export_symbols_GCJ=no
15386   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15387   # include_expsyms should be a list of space-separated symbols to be *always*
15388   # included in the symbol list
15389   include_expsyms_GCJ=
15390   # exclude_expsyms can be an extended regexp of symbols to exclude
15391   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15392   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15393   # as well as any symbol that contains `d'.
15394   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15395   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15396   # platforms (ab)use it in PIC code, but their linkers get confused if
15397   # the symbol is explicitly referenced.  Since portable code cannot
15398   # rely on this symbol name, it's probably fine to never include it in
15399   # preloaded symbol tables.
15400   extract_expsyms_cmds=
15401
15402   case $host_os in
15403   cygwin* | mingw* | pw32*)
15404     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15405     # When not using gcc, we currently assume that we are using
15406     # Microsoft Visual C++.
15407     if test "$GCC" != yes; then
15408       with_gnu_ld=no
15409     fi
15410     ;;
15411   openbsd*)
15412     with_gnu_ld=no
15413     ;;
15414   esac
15415
15416   ld_shlibs_GCJ=yes
15417   if test "$with_gnu_ld" = yes; then
15418     # If archive_cmds runs LD, not CC, wlarc should be empty
15419     wlarc='${wl}'
15420
15421     # See if GNU ld supports shared libraries.
15422     case $host_os in
15423     aix3* | aix4* | aix5*)
15424       # On AIX/PPC, the GNU linker is very broken
15425       if test "$host_cpu" != ia64; then
15426         ld_shlibs_GCJ=no
15427         cat <<EOF 1>&2
15428
15429 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15430 *** to be unable to reliably create shared libraries on AIX.
15431 *** Therefore, libtool is disabling shared libraries support.  If you
15432 *** really care for shared libraries, you may want to modify your PATH
15433 *** so that a non-GNU linker is found, and then restart.
15434
15435 EOF
15436       fi
15437       ;;
15438
15439     amigaos*)
15440       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)'
15441       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15442       hardcode_minus_L_GCJ=yes
15443
15444       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15445       # that the semantics of dynamic libraries on AmigaOS, at least up
15446       # to version 4, is to share data among multiple programs linked
15447       # with the same dynamic library.  Since this doesn't match the
15448       # behavior of shared libraries on other platforms, we can't use
15449       # them.
15450       ld_shlibs_GCJ=no
15451       ;;
15452
15453     beos*)
15454       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15455         allow_undefined_flag_GCJ=unsupported
15456         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15457         # support --undefined.  This deserves some investigation.  FIXME
15458         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15459       else
15460         ld_shlibs_GCJ=no
15461       fi
15462       ;;
15463
15464     cygwin* | mingw* | pw32*)
15465       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15466       # as there is no search path for DLLs.
15467       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15468       allow_undefined_flag_GCJ=unsupported
15469       always_export_symbols_GCJ=no
15470       enable_shared_with_static_runtimes_GCJ=yes
15471       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15472
15473       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15474         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15475         # If the export-symbols file already is a .def file (1st line
15476         # is EXPORTS), use it as is; otherwise, prepend...
15477         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15478           cp $export_symbols $output_objdir/$soname.def;
15479         else
15480           echo EXPORTS > $output_objdir/$soname.def;
15481           cat $export_symbols >> $output_objdir/$soname.def;
15482         fi~
15483         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15484       else
15485         ld_shlibs=no
15486       fi
15487       ;;
15488
15489     netbsd*)
15490       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15491         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15492         wlarc=
15493       else
15494         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15495         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15496       fi
15497       ;;
15498
15499     solaris* | sysv5*)
15500       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15501         ld_shlibs_GCJ=no
15502         cat <<EOF 1>&2
15503
15504 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15505 *** create shared libraries on Solaris systems.  Therefore, libtool
15506 *** is disabling shared libraries support.  We urge you to upgrade GNU
15507 *** binutils to release 2.9.1 or newer.  Another option is to modify
15508 *** your PATH or compiler configuration so that the native linker is
15509 *** used, and then restart.
15510
15511 EOF
15512       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15513         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15514         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15515       else
15516         ld_shlibs_GCJ=no
15517       fi
15518       ;;
15519
15520     sunos4*)
15521       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15522       wlarc=
15523       hardcode_direct_GCJ=yes
15524       hardcode_shlibpath_var_GCJ=no
15525       ;;
15526
15527     *)
15528       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15529         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15530         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15531       else
15532         ld_shlibs_GCJ=no
15533       fi
15534       ;;
15535     esac
15536
15537     if test "$ld_shlibs_GCJ" = yes; then
15538       runpath_var=LD_RUN_PATH
15539       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15540       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15541       # ancient GNU ld didn't support --whole-archive et. al.
15542       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15543         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15544       else
15545         whole_archive_flag_spec_GCJ=
15546       fi
15547     fi
15548   else
15549     # PORTME fill in a description of your system's linker (not GNU ld)
15550     case $host_os in
15551     aix3*)
15552       allow_undefined_flag_GCJ=unsupported
15553       always_export_symbols_GCJ=yes
15554       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'
15555       # Note: this linker hardcodes the directories in LIBPATH if there
15556       # are no directories specified by -L.
15557       hardcode_minus_L_GCJ=yes
15558       if test "$GCC" = yes && test -z "$link_static_flag"; then
15559         # Neither direct hardcoding nor static linking is supported with a
15560         # broken collect2.
15561         hardcode_direct_GCJ=unsupported
15562       fi
15563       ;;
15564
15565     aix4* | aix5*)
15566       if test "$host_cpu" = ia64; then
15567         # On IA64, the linker does run time linking by default, so we don't
15568         # have to do anything special.
15569         aix_use_runtimelinking=no
15570         exp_sym_flag='-Bexport'
15571         no_entry_flag=""
15572       else
15573         # If we're using GNU nm, then we don't want the "-C" option.
15574         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15575         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15576           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'
15577         else
15578           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'
15579         fi
15580         aix_use_runtimelinking=no
15581
15582         # Test if we are trying to use run time linking or normal
15583         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15584         # need to do runtime linking.
15585         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15586           for ld_flag in $LDFLAGS; do
15587           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15588             aix_use_runtimelinking=yes
15589             break
15590           fi
15591           done
15592         esac
15593
15594         exp_sym_flag='-bexport'
15595         no_entry_flag='-bnoentry'
15596       fi
15597
15598       # When large executables or shared objects are built, AIX ld can
15599       # have problems creating the table of contents.  If linking a library
15600       # or program results in "error TOC overflow" add -mminimal-toc to
15601       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15602       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15603
15604       archive_cmds_GCJ=''
15605       hardcode_direct_GCJ=yes
15606       hardcode_libdir_separator_GCJ=':'
15607       link_all_deplibs_GCJ=yes
15608
15609       if test "$GCC" = yes; then
15610         case $host_os in aix4.012|aix4.012.*)
15611         # We only want to do this on AIX 4.2 and lower, the check
15612         # below for broken collect2 doesn't work under 4.3+
15613           collect2name=`${CC} -print-prog-name=collect2`
15614           if test -f "$collect2name" && \
15615            strings "$collect2name" | grep resolve_lib_name >/dev/null
15616           then
15617           # We have reworked collect2
15618           hardcode_direct_GCJ=yes
15619           else
15620           # We have old collect2
15621           hardcode_direct_GCJ=unsupported
15622           # It fails to find uninstalled libraries when the uninstalled
15623           # path is not listed in the libpath.  Setting hardcode_minus_L
15624           # to unsupported forces relinking
15625           hardcode_minus_L_GCJ=yes
15626           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15627           hardcode_libdir_separator_GCJ=
15628           fi
15629         esac
15630         shared_flag='-shared'
15631       else
15632         # not using gcc
15633         if test "$host_cpu" = ia64; then
15634         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15635         # chokes on -Wl,-G. The following line is correct:
15636           shared_flag='-G'
15637         else
15638         if test "$aix_use_runtimelinking" = yes; then
15639             shared_flag='${wl}-G'
15640           else
15641             shared_flag='${wl}-bM:SRE'
15642         fi
15643         fi
15644       fi
15645
15646       # It seems that -bexpall does not export symbols beginning with
15647       # underscore (_), so it is better to generate a list of symbols to export.
15648       always_export_symbols_GCJ=yes
15649       if test "$aix_use_runtimelinking" = yes; then
15650         # Warning - without using the other runtime loading flags (-brtl),
15651         # -berok will link without error, but may produce a broken library.
15652         allow_undefined_flag_GCJ='-berok'
15653        # Determine the default libpath from the value encoded in an empty executable.
15654        cat >conftest.$ac_ext <<_ACEOF
15655 #line $LINENO "configure"
15656 /* confdefs.h.  */
15657 _ACEOF
15658 cat confdefs.h >>conftest.$ac_ext
15659 cat >>conftest.$ac_ext <<_ACEOF
15660 /* end confdefs.h.  */
15661
15662 int
15663 main ()
15664 {
15665
15666   ;
15667   return 0;
15668 }
15669 _ACEOF
15670 rm -f conftest.$ac_objext conftest$ac_exeext
15671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15672   (eval $ac_link) 2>&5
15673   ac_status=$?
15674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675   (exit $ac_status); } &&
15676          { ac_try='test -s conftest$ac_exeext'
15677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678   (eval $ac_try) 2>&5
15679   ac_status=$?
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); }; }; then
15682
15683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15684 }'`
15685 # Check for a 64-bit object if we didn't find anything.
15686 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; }
15687 }'`; fi
15688 else
15689   echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15691
15692 fi
15693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15695
15696        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15697         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"
15698        else
15699         if test "$host_cpu" = ia64; then
15700           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15701           allow_undefined_flag_GCJ="-z nodefs"
15702           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"
15703         else
15704          # Determine the default libpath from the value encoded in an empty executable.
15705          cat >conftest.$ac_ext <<_ACEOF
15706 #line $LINENO "configure"
15707 /* confdefs.h.  */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h.  */
15712
15713 int
15714 main ()
15715 {
15716
15717   ;
15718   return 0;
15719 }
15720 _ACEOF
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723   (eval $ac_link) 2>&5
15724   ac_status=$?
15725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726   (exit $ac_status); } &&
15727          { ac_try='test -s conftest$ac_exeext'
15728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729   (eval $ac_try) 2>&5
15730   ac_status=$?
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); }; }; then
15733
15734 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15735 }'`
15736 # Check for a 64-bit object if we didn't find anything.
15737 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; }
15738 }'`; fi
15739 else
15740   echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15742
15743 fi
15744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15745 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15746
15747          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15748           # Warning - without using the other run time loading flags,
15749           # -berok will link without error, but may produce a broken library.
15750           no_undefined_flag_GCJ=' ${wl}-bernotok'
15751           allow_undefined_flag_GCJ=' ${wl}-berok'
15752           # -bexpall does not export symbols beginning with underscore (_)
15753           always_export_symbols_GCJ=yes
15754           # Exported symbols can be pulled into shared objects from archives
15755           whole_archive_flag_spec_GCJ=' '
15756           archive_cmds_need_lc_GCJ=yes
15757           # This is similar to how AIX traditionally builds it's shared libraries.
15758           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'
15759         fi
15760       fi
15761       ;;
15762
15763     amigaos*)
15764       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)'
15765       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15766       hardcode_minus_L_GCJ=yes
15767       # see comment about different semantics on the GNU ld section
15768       ld_shlibs_GCJ=no
15769       ;;
15770
15771     bsdi4*)
15772       export_dynamic_flag_spec_GCJ=-rdynamic
15773       ;;
15774
15775     cygwin* | mingw* | pw32*)
15776       # When not using gcc, we currently assume that we are using
15777       # Microsoft Visual C++.
15778       # hardcode_libdir_flag_spec is actually meaningless, as there is
15779       # no search path for DLLs.
15780       hardcode_libdir_flag_spec_GCJ=' '
15781       allow_undefined_flag_GCJ=unsupported
15782       # Tell ltmain to make .lib files, not .a files.
15783       libext=lib
15784       # Tell ltmain to make .dll files, not .so files.
15785       shrext=".dll"
15786       # FIXME: Setting linknames here is a bad hack.
15787       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15788       # The linker will automatically build a .lib file if we build a DLL.
15789       old_archive_From_new_cmds_GCJ='true'
15790       # FIXME: Should let the user specify the lib program.
15791       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15792       fix_srcfile_path='`cygpath -w "$srcfile"`'
15793       enable_shared_with_static_runtimes_GCJ=yes
15794       ;;
15795
15796     darwin* | rhapsody*)
15797     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15798       archive_cmds_need_lc_GCJ=no
15799       case "$host_os" in
15800       rhapsody* | darwin1.[012])
15801         allow_undefined_flag_GCJ='-undefined suppress'
15802         ;;
15803       *) # Darwin 1.3 on
15804         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15805         ;;
15806       esac
15807       # FIXME: Relying on posixy $() will cause problems for
15808       #        cross-compilation, but unfortunately the echo tests do not
15809       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15810       #        `"' quotes if we put them in here... so don't!
15811         lt_int_apple_cc_single_mod=no
15812         output_verbose_link_cmd='echo'
15813         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15814           lt_int_apple_cc_single_mod=yes
15815         fi
15816         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15817           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15818         else
15819         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'
15820       fi
15821       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15822       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15823         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15824           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}'
15825         else
15826           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}'
15827         fi
15828           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}'
15829       hardcode_direct_GCJ=no
15830       hardcode_automatic_GCJ=yes
15831       hardcode_shlibpath_var_GCJ=unsupported
15832       whole_archive_flag_spec_GCJ='-all_load $convenience'
15833       link_all_deplibs_GCJ=yes
15834     fi
15835       ;;
15836
15837     dgux*)
15838       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15839       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15840       hardcode_shlibpath_var_GCJ=no
15841       ;;
15842
15843     freebsd1*)
15844       ld_shlibs_GCJ=no
15845       ;;
15846
15847     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15848     # support.  Future versions do this automatically, but an explicit c++rt0.o
15849     # does not break anything, and helps significantly (at the cost of a little
15850     # extra space).
15851     freebsd2.2*)
15852       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15853       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15854       hardcode_direct_GCJ=yes
15855       hardcode_shlibpath_var_GCJ=no
15856       ;;
15857
15858     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15859     freebsd2*)
15860       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15861       hardcode_direct_GCJ=yes
15862       hardcode_minus_L_GCJ=yes
15863       hardcode_shlibpath_var_GCJ=no
15864       ;;
15865
15866     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15867     freebsd*)
15868       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15869       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15870       hardcode_direct_GCJ=yes
15871       hardcode_shlibpath_var_GCJ=no
15872       ;;
15873
15874     hpux9*)
15875       if test "$GCC" = yes; then
15876         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'
15877       else
15878         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'
15879       fi
15880       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15881       hardcode_libdir_separator_GCJ=:
15882       hardcode_direct_GCJ=yes
15883
15884       # hardcode_minus_L: Not really in the search PATH,
15885       # but as the default location of the library.
15886       hardcode_minus_L_GCJ=yes
15887       export_dynamic_flag_spec_GCJ='${wl}-E'
15888       ;;
15889
15890     hpux10* | hpux11*)
15891       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15892         case "$host_cpu" in
15893         hppa*64*|ia64*)
15894           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15895           ;;
15896         *)
15897           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15898           ;;
15899         esac
15900       else
15901         case "$host_cpu" in
15902         hppa*64*|ia64*)
15903           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15904           ;;
15905         *)
15906           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15907           ;;
15908         esac
15909       fi
15910       if test "$with_gnu_ld" = no; then
15911         case "$host_cpu" in
15912         hppa*64*)
15913           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15914           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15915           hardcode_libdir_separator_GCJ=:
15916           hardcode_direct_GCJ=no
15917           hardcode_shlibpath_var_GCJ=no
15918           ;;
15919         ia64*)
15920           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15921           hardcode_direct_GCJ=no
15922           hardcode_shlibpath_var_GCJ=no
15923
15924           # hardcode_minus_L: Not really in the search PATH,
15925           # but as the default location of the library.
15926           hardcode_minus_L_GCJ=yes
15927           ;;
15928         *)
15929           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15930           hardcode_libdir_separator_GCJ=:
15931           hardcode_direct_GCJ=yes
15932           export_dynamic_flag_spec_GCJ='${wl}-E'
15933
15934           # hardcode_minus_L: Not really in the search PATH,
15935           # but as the default location of the library.
15936           hardcode_minus_L_GCJ=yes
15937           ;;
15938         esac
15939       fi
15940       ;;
15941
15942     irix5* | irix6* | nonstopux*)
15943       if test "$GCC" = yes; then
15944         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'
15945       else
15946         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'
15947         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15948       fi
15949       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15950       hardcode_libdir_separator_GCJ=:
15951       link_all_deplibs_GCJ=yes
15952       ;;
15953
15954     netbsd*)
15955       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15956         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15957       else
15958         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15959       fi
15960       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15961       hardcode_direct_GCJ=yes
15962       hardcode_shlibpath_var_GCJ=no
15963       ;;
15964
15965     newsos6)
15966       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15967       hardcode_direct_GCJ=yes
15968       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15969       hardcode_libdir_separator_GCJ=:
15970       hardcode_shlibpath_var_GCJ=no
15971       ;;
15972
15973     openbsd*)
15974       hardcode_direct_GCJ=yes
15975       hardcode_shlibpath_var_GCJ=no
15976       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15977         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15978         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15979         export_dynamic_flag_spec_GCJ='${wl}-E'
15980       else
15981        case $host_os in
15982          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15983            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15984            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15985            ;;
15986          *)
15987            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15988            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15989            ;;
15990        esac
15991       fi
15992       ;;
15993
15994     os2*)
15995       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15996       hardcode_minus_L_GCJ=yes
15997       allow_undefined_flag_GCJ=unsupported
15998       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'
15999       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16000       ;;
16001
16002     osf3*)
16003       if test "$GCC" = yes; then
16004         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16005         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'
16006       else
16007         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16008         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'
16009       fi
16010       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16011       hardcode_libdir_separator_GCJ=:
16012       ;;
16013
16014     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16015       if test "$GCC" = yes; then
16016         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16017         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'
16018         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16019       else
16020         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16021         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'
16022         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~
16023         $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'
16024
16025         # Both c and cxx compiler support -rpath directly
16026         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16027       fi
16028       hardcode_libdir_separator_GCJ=:
16029       ;;
16030
16031     sco3.2v5*)
16032       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16033       hardcode_shlibpath_var_GCJ=no
16034       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16035       runpath_var=LD_RUN_PATH
16036       hardcode_runpath_var=yes
16037       ;;
16038
16039     solaris*)
16040       no_undefined_flag_GCJ=' -z text'
16041       if test "$GCC" = yes; then
16042         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16043         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16044           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16045       else
16046         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16047         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16048         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16049       fi
16050       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16051       hardcode_shlibpath_var_GCJ=no
16052       case $host_os in
16053       solaris2.[0-5] | solaris2.[0-5].*) ;;
16054       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16055         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16056       esac
16057       link_all_deplibs_GCJ=yes
16058       ;;
16059
16060     sunos4*)
16061       if test "x$host_vendor" = xsequent; then
16062         # Use $CC to link under sequent, because it throws in some extra .o
16063         # files that make .init and .fini sections work.
16064         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16065       else
16066         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16067       fi
16068       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16069       hardcode_direct_GCJ=yes
16070       hardcode_minus_L_GCJ=yes
16071       hardcode_shlibpath_var_GCJ=no
16072       ;;
16073
16074     sysv4)
16075       case $host_vendor in
16076         sni)
16077           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16078           hardcode_direct_GCJ=yes # is this really true???
16079         ;;
16080         siemens)
16081           ## LD is ld it makes a PLAMLIB
16082           ## CC just makes a GrossModule.
16083           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16084           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16085           hardcode_direct_GCJ=no
16086         ;;
16087         motorola)
16088           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16089           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16090         ;;
16091       esac
16092       runpath_var='LD_RUN_PATH'
16093       hardcode_shlibpath_var_GCJ=no
16094       ;;
16095
16096     sysv4.3*)
16097       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16098       hardcode_shlibpath_var_GCJ=no
16099       export_dynamic_flag_spec_GCJ='-Bexport'
16100       ;;
16101
16102     sysv4*MP*)
16103       if test -d /usr/nec; then
16104         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16105         hardcode_shlibpath_var_GCJ=no
16106         runpath_var=LD_RUN_PATH
16107         hardcode_runpath_var=yes
16108         ld_shlibs_GCJ=yes
16109       fi
16110       ;;
16111
16112     sysv4.2uw2*)
16113       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16114       hardcode_direct_GCJ=yes
16115       hardcode_minus_L_GCJ=no
16116       hardcode_shlibpath_var_GCJ=no
16117       hardcode_runpath_var=yes
16118       runpath_var=LD_RUN_PATH
16119       ;;
16120
16121    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16122       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16123       if test "$GCC" = yes; then
16124         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16125       else
16126         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16127       fi
16128       runpath_var='LD_RUN_PATH'
16129       hardcode_shlibpath_var_GCJ=no
16130       ;;
16131
16132     sysv5*)
16133       no_undefined_flag_GCJ=' -z text'
16134       # $CC -shared without GNU ld will not create a library from C++
16135       # object files and a static libstdc++, better avoid it by now
16136       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16137       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16138                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16139       hardcode_libdir_flag_spec_GCJ=
16140       hardcode_shlibpath_var_GCJ=no
16141       runpath_var='LD_RUN_PATH'
16142       ;;
16143
16144     uts4*)
16145       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16146       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16147       hardcode_shlibpath_var_GCJ=no
16148       ;;
16149
16150     *)
16151       ld_shlibs_GCJ=no
16152       ;;
16153     esac
16154   fi
16155
16156 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16157 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16158 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16159
16160 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16161 if test "$GCC" = yes; then
16162   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16163 fi
16164
16165 #
16166 # Do we need to explicitly link libc?
16167 #
16168 case "x$archive_cmds_need_lc_GCJ" in
16169 x|xyes)
16170   # Assume -lc should be added
16171   archive_cmds_need_lc_GCJ=yes
16172
16173   if test "$enable_shared" = yes && test "$GCC" = yes; then
16174     case $archive_cmds_GCJ in
16175     *'~'*)
16176       # FIXME: we may have to deal with multi-command sequences.
16177       ;;
16178     '$CC '*)
16179       # Test whether the compiler implicitly links with -lc since on some
16180       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16181       # to ld, don't add -lc before -lgcc.
16182       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16183 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16184       $rm conftest*
16185       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16186
16187       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16188   (eval $ac_compile) 2>&5
16189   ac_status=$?
16190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191   (exit $ac_status); } 2>conftest.err; then
16192         soname=conftest
16193         lib=conftest
16194         libobjs=conftest.$ac_objext
16195         deplibs=
16196         wl=$lt_prog_compiler_wl_GCJ
16197         compiler_flags=-v
16198         linker_flags=-v
16199         verstring=
16200         output_objdir=.
16201         libname=conftest
16202         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16203         allow_undefined_flag_GCJ=
16204         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16205   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); }
16209         then
16210           archive_cmds_need_lc_GCJ=no
16211         else
16212           archive_cmds_need_lc_GCJ=yes
16213         fi
16214         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16215       else
16216         cat conftest.err 1>&5
16217       fi
16218       $rm conftest*
16219       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16220 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16221       ;;
16222     esac
16223   fi
16224   ;;
16225 esac
16226
16227 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16228 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16229 hardcode_action_GCJ=
16230 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16231    test -n "$runpath_var GCJ" || \
16232    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16233
16234   # We can hardcode non-existant directories.
16235   if test "$hardcode_direct_GCJ" != no &&
16236      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16237      # have to relink, otherwise we might link with an installed library
16238      # when we should be linking with a yet-to-be-installed one
16239      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16240      test "$hardcode_minus_L_GCJ" != no; then
16241     # Linking always hardcodes the temporary library directory.
16242     hardcode_action_GCJ=relink
16243   else
16244     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16245     hardcode_action_GCJ=immediate
16246   fi
16247 else
16248   # We cannot hardcode anything, or else we can only hardcode existing
16249   # directories.
16250   hardcode_action_GCJ=unsupported
16251 fi
16252 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16253 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16254
16255 if test "$hardcode_action_GCJ" = relink; then
16256   # Fast installation is not supported
16257   enable_fast_install=no
16258 elif test "$shlibpath_overrides_runpath" = yes ||
16259      test "$enable_shared" = no; then
16260   # Fast installation is not necessary
16261   enable_fast_install=needless
16262 fi
16263
16264 striplib=
16265 old_striplib=
16266 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16267 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16268 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16269   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16270   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16271   echo "$as_me:$LINENO: result: yes" >&5
16272 echo "${ECHO_T}yes" >&6
16273 else
16274 # FIXME - insert some real tests, host_os isn't really good enough
16275   case $host_os in
16276    darwin*)
16277        if test -n "$STRIP" ; then
16278          striplib="$STRIP -x"
16279          echo "$as_me:$LINENO: result: yes" >&5
16280 echo "${ECHO_T}yes" >&6
16281        else
16282   echo "$as_me:$LINENO: result: no" >&5
16283 echo "${ECHO_T}no" >&6
16284 fi
16285        ;;
16286    *)
16287   echo "$as_me:$LINENO: result: no" >&5
16288 echo "${ECHO_T}no" >&6
16289     ;;
16290   esac
16291 fi
16292
16293 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16294 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16295 library_names_spec=
16296 libname_spec='lib$name'
16297 soname_spec=
16298 shrext=".so"
16299 postinstall_cmds=
16300 postuninstall_cmds=
16301 finish_cmds=
16302 finish_eval=
16303 shlibpath_var=
16304 shlibpath_overrides_runpath=unknown
16305 version_type=none
16306 dynamic_linker="$host_os ld.so"
16307 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16308 if test "$GCC" = yes; then
16309   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16310   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16311     # if the path contains ";" then we assume it to be the separator
16312     # otherwise default to the standard path separator (i.e. ":") - it is
16313     # assumed that no part of a normal pathname contains ";" but that should
16314     # okay in the real world where ";" in dirpaths is itself problematic.
16315     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16316   else
16317     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16318   fi
16319 else
16320   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16321 fi
16322 need_lib_prefix=unknown
16323 hardcode_into_libs=no
16324
16325 # when you set need_version to no, make sure it does not cause -set_version
16326 # flags to be left without arguments
16327 need_version=unknown
16328
16329 case $host_os in
16330 aix3*)
16331   version_type=linux
16332   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16333   shlibpath_var=LIBPATH
16334
16335   # AIX 3 has no versioning support, so we append a major version to the name.
16336   soname_spec='${libname}${release}${shared_ext}$major'
16337   ;;
16338
16339 aix4* | aix5*)
16340   version_type=linux
16341   need_lib_prefix=no
16342   need_version=no
16343   hardcode_into_libs=yes
16344   if test "$host_cpu" = ia64; then
16345     # AIX 5 supports IA64
16346     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16347     shlibpath_var=LD_LIBRARY_PATH
16348   else
16349     # With GCC up to 2.95.x, collect2 would create an import file
16350     # for dependence libraries.  The import file would start with
16351     # the line `#! .'.  This would cause the generated library to
16352     # depend on `.', always an invalid library.  This was fixed in
16353     # development snapshots of GCC prior to 3.0.
16354     case $host_os in
16355       aix4 | aix4.[01] | aix4.[01].*)
16356       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16357            echo ' yes '
16358            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16359         :
16360       else
16361         can_build_shared=no
16362       fi
16363       ;;
16364     esac
16365     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16366     # soname into executable. Probably we can add versioning support to
16367     # collect2, so additional links can be useful in future.
16368     if test "$aix_use_runtimelinking" = yes; then
16369       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16370       # instead of lib<name>.a to let people know that these are not
16371       # typical AIX shared libraries.
16372       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373     else
16374       # We preserve .a as extension for shared libraries through AIX4.2
16375       # and later when we are not doing run time linking.
16376       library_names_spec='${libname}${release}.a $libname.a'
16377       soname_spec='${libname}${release}${shared_ext}$major'
16378     fi
16379     shlibpath_var=LIBPATH
16380   fi
16381   ;;
16382
16383 amigaos*)
16384   library_names_spec='$libname.ixlibrary $libname.a'
16385   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16386   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'
16387   ;;
16388
16389 beos*)
16390   library_names_spec='${libname}${shared_ext}'
16391   dynamic_linker="$host_os ld.so"
16392   shlibpath_var=LIBRARY_PATH
16393   ;;
16394
16395 bsdi4*)
16396   version_type=linux
16397   need_version=no
16398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399   soname_spec='${libname}${release}${shared_ext}$major'
16400   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16401   shlibpath_var=LD_LIBRARY_PATH
16402   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16403   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16404   # the default ld.so.conf also contains /usr/contrib/lib and
16405   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16406   # libtool to hard-code these into programs
16407   ;;
16408
16409 cygwin* | mingw* | pw32*)
16410   version_type=windows
16411   shrext=".dll"
16412   need_version=no
16413   need_lib_prefix=no
16414
16415   case $GCC,$host_os in
16416   yes,cygwin* | yes,mingw* | yes,pw32*)
16417     library_names_spec='$libname.dll.a'
16418     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16419     postinstall_cmds='base_file=`basename \${file}`~
16420       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16421       dldir=$destdir/`dirname \$dlpath`~
16422       test -d \$dldir || mkdir -p \$dldir~
16423       $install_prog $dir/$dlname \$dldir/$dlname'
16424     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16425       dlpath=$dir/\$dldll~
16426        $rm \$dlpath'
16427     shlibpath_overrides_runpath=yes
16428
16429     case $host_os in
16430     cygwin*)
16431       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16432       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16433       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16434       ;;
16435     mingw*)
16436       # MinGW DLLs use traditional 'lib' prefix
16437       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16438       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16439       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16440         # It is most probably a Windows format PATH printed by
16441         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16442         # path with ; separators, and with drive letters. We can handle the
16443         # drive letters (cygwin fileutils understands them), so leave them,
16444         # especially as we might pass files found there to a mingw objdump,
16445         # which wouldn't understand a cygwinified path. Ahh.
16446         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16447       else
16448         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16449       fi
16450       ;;
16451     pw32*)
16452       # pw32 DLLs use 'pw' prefix rather than 'lib'
16453       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16454       ;;
16455     esac
16456     ;;
16457
16458   *)
16459     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16460     ;;
16461   esac
16462   dynamic_linker='Win32 ld.exe'
16463   # FIXME: first we should search . and the directory the executable is in
16464   shlibpath_var=PATH
16465   ;;
16466
16467 darwin* | rhapsody*)
16468   dynamic_linker="$host_os dyld"
16469   version_type=darwin
16470   need_lib_prefix=no
16471   need_version=no
16472   # FIXME: Relying on posixy $() will cause problems for
16473   #        cross-compilation, but unfortunately the echo tests do not
16474   #        yet detect zsh echo's removal of \ escapes.
16475   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16476   soname_spec='${libname}${release}${major}$shared_ext'
16477   shlibpath_overrides_runpath=yes
16478   shlibpath_var=DYLD_LIBRARY_PATH
16479   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16480   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16481   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16482   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"`
16483   fi
16484   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16485   ;;
16486
16487 dgux*)
16488   version_type=linux
16489   need_lib_prefix=no
16490   need_version=no
16491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16492   soname_spec='${libname}${release}${shared_ext}$major'
16493   shlibpath_var=LD_LIBRARY_PATH
16494   ;;
16495
16496 freebsd1*)
16497   dynamic_linker=no
16498   ;;
16499
16500 freebsd*)
16501   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16502   version_type=freebsd-$objformat
16503   case $version_type in
16504     freebsd-elf*)
16505       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16506       need_version=no
16507       need_lib_prefix=no
16508       ;;
16509     freebsd-*)
16510       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16511       need_version=yes
16512       ;;
16513   esac
16514   shlibpath_var=LD_LIBRARY_PATH
16515   case $host_os in
16516   freebsd2*)
16517     shlibpath_overrides_runpath=yes
16518     ;;
16519   freebsd3.01* | freebsdelf3.01*)
16520     shlibpath_overrides_runpath=yes
16521     hardcode_into_libs=yes
16522     ;;
16523   *) # from 3.2 on
16524     shlibpath_overrides_runpath=no
16525     hardcode_into_libs=yes
16526     ;;
16527   esac
16528   ;;
16529
16530 gnu*)
16531   version_type=linux
16532   need_lib_prefix=no
16533   need_version=no
16534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16535   soname_spec='${libname}${release}${shared_ext}$major'
16536   shlibpath_var=LD_LIBRARY_PATH
16537   hardcode_into_libs=yes
16538   ;;
16539
16540 hpux9* | hpux10* | hpux11*)
16541   # Give a soname corresponding to the major version so that dld.sl refuses to
16542   # link against other versions.
16543   version_type=sunos
16544   need_lib_prefix=no
16545   need_version=no
16546   case "$host_cpu" in
16547   ia64*)
16548     shrext='.so'
16549     hardcode_into_libs=yes
16550     dynamic_linker="$host_os dld.so"
16551     shlibpath_var=LD_LIBRARY_PATH
16552     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16554     soname_spec='${libname}${release}${shared_ext}$major'
16555     if test "X$HPUX_IA64_MODE" = X32; then
16556       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16557     else
16558       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16559     fi
16560     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16561     ;;
16562    hppa*64*)
16563      shrext='.sl'
16564      hardcode_into_libs=yes
16565      dynamic_linker="$host_os dld.sl"
16566      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16567      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16568      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16569      soname_spec='${libname}${release}${shared_ext}$major'
16570      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16571      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16572      ;;
16573    *)
16574     shrext='.sl'
16575     dynamic_linker="$host_os dld.sl"
16576     shlibpath_var=SHLIB_PATH
16577     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579     soname_spec='${libname}${release}${shared_ext}$major'
16580     ;;
16581   esac
16582   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16583   postinstall_cmds='chmod 555 $lib'
16584   ;;
16585
16586 irix5* | irix6* | nonstopux*)
16587   case $host_os in
16588     nonstopux*) version_type=nonstopux ;;
16589     *)
16590         if test "$lt_cv_prog_gnu_ld" = yes; then
16591                 version_type=linux
16592         else
16593                 version_type=irix
16594         fi ;;
16595   esac
16596   need_lib_prefix=no
16597   need_version=no
16598   soname_spec='${libname}${release}${shared_ext}$major'
16599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16600   case $host_os in
16601   irix5* | nonstopux*)
16602     libsuff= shlibsuff=
16603     ;;
16604   *)
16605     case $LD in # libtool.m4 will add one of these switches to LD
16606     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16607       libsuff= shlibsuff= libmagic=32-bit;;
16608     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16609       libsuff=32 shlibsuff=N32 libmagic=N32;;
16610     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16611       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16612     *) libsuff= shlibsuff= libmagic=never-match;;
16613     esac
16614     ;;
16615   esac
16616   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16617   shlibpath_overrides_runpath=no
16618   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16619   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16620   hardcode_into_libs=yes
16621   ;;
16622
16623 # No shared lib support for Linux oldld, aout, or coff.
16624 linux*oldld* | linux*aout* | linux*coff*)
16625   dynamic_linker=no
16626   ;;
16627
16628 # This must be Linux ELF.
16629 linux*)
16630   version_type=linux
16631   need_lib_prefix=no
16632   need_version=no
16633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634   soname_spec='${libname}${release}${shared_ext}$major'
16635   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16636   shlibpath_var=LD_LIBRARY_PATH
16637   shlibpath_overrides_runpath=no
16638   # This implies no fast_install, which is unacceptable.
16639   # Some rework will be needed to allow for fast_install
16640   # before this can be enabled.
16641   hardcode_into_libs=yes
16642
16643   # We used to test for /lib/ld.so.1 and disable shared libraries on
16644   # powerpc, because MkLinux only supported shared libraries with the
16645   # GNU dynamic linker.  Since this was broken with cross compilers,
16646   # most powerpc-linux boxes support dynamic linking these days and
16647   # people can always --disable-shared, the test was removed, and we
16648   # assume the GNU/Linux dynamic linker is in use.
16649   dynamic_linker='GNU/Linux ld.so'
16650   ;;
16651
16652 netbsd*)
16653   version_type=sunos
16654   need_lib_prefix=no
16655   need_version=no
16656   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16658     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16659     dynamic_linker='NetBSD (a.out) ld.so'
16660   else
16661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16662     soname_spec='${libname}${release}${shared_ext}$major'
16663     dynamic_linker='NetBSD ld.elf_so'
16664   fi
16665   shlibpath_var=LD_LIBRARY_PATH
16666   shlibpath_overrides_runpath=yes
16667   hardcode_into_libs=yes
16668   ;;
16669
16670 newsos6)
16671   version_type=linux
16672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673   shlibpath_var=LD_LIBRARY_PATH
16674   shlibpath_overrides_runpath=yes
16675   ;;
16676
16677 nto-qnx)
16678   version_type=linux
16679   need_lib_prefix=no
16680   need_version=no
16681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682   soname_spec='${libname}${release}${shared_ext}$major'
16683   shlibpath_var=LD_LIBRARY_PATH
16684   shlibpath_overrides_runpath=yes
16685   ;;
16686
16687 openbsd*)
16688   version_type=sunos
16689   need_lib_prefix=no
16690   need_version=no
16691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16692   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16693   shlibpath_var=LD_LIBRARY_PATH
16694   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16695     case $host_os in
16696       openbsd2.[89] | openbsd2.[89].*)
16697         shlibpath_overrides_runpath=no
16698         ;;
16699       *)
16700         shlibpath_overrides_runpath=yes
16701         ;;
16702       esac
16703   else
16704     shlibpath_overrides_runpath=yes
16705   fi
16706   ;;
16707
16708 os2*)
16709   libname_spec='$name'
16710   shrext=".dll"
16711   need_lib_prefix=no
16712   library_names_spec='$libname${shared_ext} $libname.a'
16713   dynamic_linker='OS/2 ld.exe'
16714   shlibpath_var=LIBPATH
16715   ;;
16716
16717 osf3* | osf4* | osf5*)
16718   version_type=osf
16719   need_lib_prefix=no
16720   need_version=no
16721   soname_spec='${libname}${release}${shared_ext}$major'
16722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16723   shlibpath_var=LD_LIBRARY_PATH
16724   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16725   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16726   ;;
16727
16728 sco3.2v5*)
16729   version_type=osf
16730   soname_spec='${libname}${release}${shared_ext}$major'
16731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16732   shlibpath_var=LD_LIBRARY_PATH
16733   ;;
16734
16735 solaris*)
16736   version_type=linux
16737   need_lib_prefix=no
16738   need_version=no
16739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16740   soname_spec='${libname}${release}${shared_ext}$major'
16741   shlibpath_var=LD_LIBRARY_PATH
16742   shlibpath_overrides_runpath=yes
16743   hardcode_into_libs=yes
16744   # ldd complains unless libraries are executable
16745   postinstall_cmds='chmod +x $lib'
16746   ;;
16747
16748 sunos4*)
16749   version_type=sunos
16750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16751   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16752   shlibpath_var=LD_LIBRARY_PATH
16753   shlibpath_overrides_runpath=yes
16754   if test "$with_gnu_ld" = yes; then
16755     need_lib_prefix=no
16756   fi
16757   need_version=yes
16758   ;;
16759
16760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16761   version_type=linux
16762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16763   soname_spec='${libname}${release}${shared_ext}$major'
16764   shlibpath_var=LD_LIBRARY_PATH
16765   case $host_vendor in
16766     sni)
16767       shlibpath_overrides_runpath=no
16768       need_lib_prefix=no
16769       export_dynamic_flag_spec='${wl}-Blargedynsym'
16770       runpath_var=LD_RUN_PATH
16771       ;;
16772     siemens)
16773       need_lib_prefix=no
16774       ;;
16775     motorola)
16776       need_lib_prefix=no
16777       need_version=no
16778       shlibpath_overrides_runpath=no
16779       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16780       ;;
16781   esac
16782   ;;
16783
16784 sysv4*MP*)
16785   if test -d /usr/nec ;then
16786     version_type=linux
16787     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16788     soname_spec='$libname${shared_ext}.$major'
16789     shlibpath_var=LD_LIBRARY_PATH
16790   fi
16791   ;;
16792
16793 uts4*)
16794   version_type=linux
16795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16796   soname_spec='${libname}${release}${shared_ext}$major'
16797   shlibpath_var=LD_LIBRARY_PATH
16798   ;;
16799
16800 *)
16801   dynamic_linker=no
16802   ;;
16803 esac
16804 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16805 echo "${ECHO_T}$dynamic_linker" >&6
16806 test "$dynamic_linker" = no && can_build_shared=no
16807
16808 if test "x$enable_dlopen" != xyes; then
16809   enable_dlopen=unknown
16810   enable_dlopen_self=unknown
16811   enable_dlopen_self_static=unknown
16812 else
16813   lt_cv_dlopen=no
16814   lt_cv_dlopen_libs=
16815
16816   case $host_os in
16817   beos*)
16818     lt_cv_dlopen="load_add_on"
16819     lt_cv_dlopen_libs=
16820     lt_cv_dlopen_self=yes
16821     ;;
16822
16823   mingw* | pw32*)
16824     lt_cv_dlopen="LoadLibrary"
16825     lt_cv_dlopen_libs=
16826    ;;
16827
16828   cygwin*)
16829     lt_cv_dlopen="dlopen"
16830     lt_cv_dlopen_libs=
16831    ;;
16832
16833   darwin*)
16834   # if libdl is installed we need to link against it
16835     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16836 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16837 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16838   echo $ECHO_N "(cached) $ECHO_C" >&6
16839 else
16840   ac_check_lib_save_LIBS=$LIBS
16841 LIBS="-ldl  $LIBS"
16842 cat >conftest.$ac_ext <<_ACEOF
16843 #line $LINENO "configure"
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849
16850 /* Override any gcc2 internal prototype to avoid an error.  */
16851 #ifdef __cplusplus
16852 extern "C"
16853 #endif
16854 /* We use char because int might match the return type of a gcc2
16855    builtin and then its argument prototype would still apply.  */
16856 char dlopen ();
16857 int
16858 main ()
16859 {
16860 dlopen ();
16861   ;
16862   return 0;
16863 }
16864 _ACEOF
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16867   (eval $ac_link) 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); } &&
16871          { ac_try='test -s conftest$ac_exeext'
16872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873   (eval $ac_try) 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); }; }; then
16877   ac_cv_lib_dl_dlopen=yes
16878 else
16879   echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16881
16882 ac_cv_lib_dl_dlopen=no
16883 fi
16884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16885 LIBS=$ac_check_lib_save_LIBS
16886 fi
16887 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16888 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16889 if test $ac_cv_lib_dl_dlopen = yes; then
16890   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16891 else
16892
16893     lt_cv_dlopen="dyld"
16894     lt_cv_dlopen_libs=
16895     lt_cv_dlopen_self=yes
16896
16897 fi
16898
16899    ;;
16900
16901   *)
16902     echo "$as_me:$LINENO: checking for shl_load" >&5
16903 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16904 if test "${ac_cv_func_shl_load+set}" = set; then
16905   echo $ECHO_N "(cached) $ECHO_C" >&6
16906 else
16907   cat >conftest.$ac_ext <<_ACEOF
16908 #line $LINENO "configure"
16909 /* confdefs.h.  */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h.  */
16914 /* System header to define __stub macros and hopefully few prototypes,
16915     which can conflict with char shl_load (); below.
16916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16917     <limits.h> exists even on freestanding compilers.  */
16918 #ifdef __STDC__
16919 # include <limits.h>
16920 #else
16921 # include <assert.h>
16922 #endif
16923 /* Override any gcc2 internal prototype to avoid an error.  */
16924 #ifdef __cplusplus
16925 extern "C"
16926 {
16927 #endif
16928 /* We use char because int might match the return type of a gcc2
16929    builtin and then its argument prototype would still apply.  */
16930 char shl_load ();
16931 /* The GNU C library defines this for functions which it implements
16932     to always fail with ENOSYS.  Some functions are actually named
16933     something starting with __ and the normal name is an alias.  */
16934 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16935 choke me
16936 #else
16937 char (*f) () = shl_load;
16938 #endif
16939 #ifdef __cplusplus
16940 }
16941 #endif
16942
16943 int
16944 main ()
16945 {
16946 return f != shl_load;
16947   ;
16948   return 0;
16949 }
16950 _ACEOF
16951 rm -f conftest.$ac_objext conftest$ac_exeext
16952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16953   (eval $ac_link) 2>&5
16954   ac_status=$?
16955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956   (exit $ac_status); } &&
16957          { ac_try='test -s conftest$ac_exeext'
16958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959   (eval $ac_try) 2>&5
16960   ac_status=$?
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); }; }; then
16963   ac_cv_func_shl_load=yes
16964 else
16965   echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16967
16968 ac_cv_func_shl_load=no
16969 fi
16970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16971 fi
16972 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16973 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16974 if test $ac_cv_func_shl_load = yes; then
16975   lt_cv_dlopen="shl_load"
16976 else
16977   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16978 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16979 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16980   echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982   ac_check_lib_save_LIBS=$LIBS
16983 LIBS="-ldld  $LIBS"
16984 cat >conftest.$ac_ext <<_ACEOF
16985 #line $LINENO "configure"
16986 /* confdefs.h.  */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h.  */
16991
16992 /* Override any gcc2 internal prototype to avoid an error.  */
16993 #ifdef __cplusplus
16994 extern "C"
16995 #endif
16996 /* We use char because int might match the return type of a gcc2
16997    builtin and then its argument prototype would still apply.  */
16998 char shl_load ();
16999 int
17000 main ()
17001 {
17002 shl_load ();
17003   ;
17004   return 0;
17005 }
17006 _ACEOF
17007 rm -f conftest.$ac_objext conftest$ac_exeext
17008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17009   (eval $ac_link) 2>&5
17010   ac_status=$?
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); } &&
17013          { ac_try='test -s conftest$ac_exeext'
17014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015   (eval $ac_try) 2>&5
17016   ac_status=$?
17017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); }; }; then
17019   ac_cv_lib_dld_shl_load=yes
17020 else
17021   echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.$ac_ext >&5
17023
17024 ac_cv_lib_dld_shl_load=no
17025 fi
17026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17027 LIBS=$ac_check_lib_save_LIBS
17028 fi
17029 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17030 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17031 if test $ac_cv_lib_dld_shl_load = yes; then
17032   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17033 else
17034   echo "$as_me:$LINENO: checking for dlopen" >&5
17035 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17036 if test "${ac_cv_func_dlopen+set}" = set; then
17037   echo $ECHO_N "(cached) $ECHO_C" >&6
17038 else
17039   cat >conftest.$ac_ext <<_ACEOF
17040 #line $LINENO "configure"
17041 /* confdefs.h.  */
17042 _ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h.  */
17046 /* System header to define __stub macros and hopefully few prototypes,
17047     which can conflict with char dlopen (); below.
17048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17049     <limits.h> exists even on freestanding compilers.  */
17050 #ifdef __STDC__
17051 # include <limits.h>
17052 #else
17053 # include <assert.h>
17054 #endif
17055 /* Override any gcc2 internal prototype to avoid an error.  */
17056 #ifdef __cplusplus
17057 extern "C"
17058 {
17059 #endif
17060 /* We use char because int might match the return type of a gcc2
17061    builtin and then its argument prototype would still apply.  */
17062 char dlopen ();
17063 /* The GNU C library defines this for functions which it implements
17064     to always fail with ENOSYS.  Some functions are actually named
17065     something starting with __ and the normal name is an alias.  */
17066 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17067 choke me
17068 #else
17069 char (*f) () = dlopen;
17070 #endif
17071 #ifdef __cplusplus
17072 }
17073 #endif
17074
17075 int
17076 main ()
17077 {
17078 return f != dlopen;
17079   ;
17080   return 0;
17081 }
17082 _ACEOF
17083 rm -f conftest.$ac_objext conftest$ac_exeext
17084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17085   (eval $ac_link) 2>&5
17086   ac_status=$?
17087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088   (exit $ac_status); } &&
17089          { ac_try='test -s conftest$ac_exeext'
17090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091   (eval $ac_try) 2>&5
17092   ac_status=$?
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); }; }; then
17095   ac_cv_func_dlopen=yes
17096 else
17097   echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17099
17100 ac_cv_func_dlopen=no
17101 fi
17102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17103 fi
17104 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17105 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17106 if test $ac_cv_func_dlopen = yes; then
17107   lt_cv_dlopen="dlopen"
17108 else
17109   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17110 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17111 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17112   echo $ECHO_N "(cached) $ECHO_C" >&6
17113 else
17114   ac_check_lib_save_LIBS=$LIBS
17115 LIBS="-ldl  $LIBS"
17116 cat >conftest.$ac_ext <<_ACEOF
17117 #line $LINENO "configure"
17118 /* confdefs.h.  */
17119 _ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h.  */
17123
17124 /* Override any gcc2 internal prototype to avoid an error.  */
17125 #ifdef __cplusplus
17126 extern "C"
17127 #endif
17128 /* We use char because int might match the return type of a gcc2
17129    builtin and then its argument prototype would still apply.  */
17130 char dlopen ();
17131 int
17132 main ()
17133 {
17134 dlopen ();
17135   ;
17136   return 0;
17137 }
17138 _ACEOF
17139 rm -f conftest.$ac_objext conftest$ac_exeext
17140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17141   (eval $ac_link) 2>&5
17142   ac_status=$?
17143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144   (exit $ac_status); } &&
17145          { ac_try='test -s conftest$ac_exeext'
17146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147   (eval $ac_try) 2>&5
17148   ac_status=$?
17149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150   (exit $ac_status); }; }; then
17151   ac_cv_lib_dl_dlopen=yes
17152 else
17153   echo "$as_me: failed program was:" >&5
17154 sed 's/^/| /' conftest.$ac_ext >&5
17155
17156 ac_cv_lib_dl_dlopen=no
17157 fi
17158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17159 LIBS=$ac_check_lib_save_LIBS
17160 fi
17161 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17162 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17163 if test $ac_cv_lib_dl_dlopen = yes; then
17164   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17165 else
17166   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17167 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17168 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17169   echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171   ac_check_lib_save_LIBS=$LIBS
17172 LIBS="-lsvld  $LIBS"
17173 cat >conftest.$ac_ext <<_ACEOF
17174 #line $LINENO "configure"
17175 /* confdefs.h.  */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h.  */
17180
17181 /* Override any gcc2 internal prototype to avoid an error.  */
17182 #ifdef __cplusplus
17183 extern "C"
17184 #endif
17185 /* We use char because int might match the return type of a gcc2
17186    builtin and then its argument prototype would still apply.  */
17187 char dlopen ();
17188 int
17189 main ()
17190 {
17191 dlopen ();
17192   ;
17193   return 0;
17194 }
17195 _ACEOF
17196 rm -f conftest.$ac_objext conftest$ac_exeext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17198   (eval $ac_link) 2>&5
17199   ac_status=$?
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); } &&
17202          { ac_try='test -s conftest$ac_exeext'
17203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204   (eval $ac_try) 2>&5
17205   ac_status=$?
17206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207   (exit $ac_status); }; }; then
17208   ac_cv_lib_svld_dlopen=yes
17209 else
17210   echo "$as_me: failed program was:" >&5
17211 sed 's/^/| /' conftest.$ac_ext >&5
17212
17213 ac_cv_lib_svld_dlopen=no
17214 fi
17215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17216 LIBS=$ac_check_lib_save_LIBS
17217 fi
17218 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17219 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17220 if test $ac_cv_lib_svld_dlopen = yes; then
17221   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17222 else
17223   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17224 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17225 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17226   echo $ECHO_N "(cached) $ECHO_C" >&6
17227 else
17228   ac_check_lib_save_LIBS=$LIBS
17229 LIBS="-ldld  $LIBS"
17230 cat >conftest.$ac_ext <<_ACEOF
17231 #line $LINENO "configure"
17232 /* confdefs.h.  */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h.  */
17237
17238 /* Override any gcc2 internal prototype to avoid an error.  */
17239 #ifdef __cplusplus
17240 extern "C"
17241 #endif
17242 /* We use char because int might match the return type of a gcc2
17243    builtin and then its argument prototype would still apply.  */
17244 char dld_link ();
17245 int
17246 main ()
17247 {
17248 dld_link ();
17249   ;
17250   return 0;
17251 }
17252 _ACEOF
17253 rm -f conftest.$ac_objext conftest$ac_exeext
17254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17255   (eval $ac_link) 2>&5
17256   ac_status=$?
17257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258   (exit $ac_status); } &&
17259          { ac_try='test -s conftest$ac_exeext'
17260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261   (eval $ac_try) 2>&5
17262   ac_status=$?
17263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); }; }; then
17265   ac_cv_lib_dld_dld_link=yes
17266 else
17267   echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17269
17270 ac_cv_lib_dld_dld_link=no
17271 fi
17272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17273 LIBS=$ac_check_lib_save_LIBS
17274 fi
17275 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17276 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17277 if test $ac_cv_lib_dld_dld_link = yes; then
17278   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17279 fi
17280
17281
17282 fi
17283
17284
17285 fi
17286
17287
17288 fi
17289
17290
17291 fi
17292
17293
17294 fi
17295
17296     ;;
17297   esac
17298
17299   if test "x$lt_cv_dlopen" != xno; then
17300     enable_dlopen=yes
17301   else
17302     enable_dlopen=no
17303   fi
17304
17305   case $lt_cv_dlopen in
17306   dlopen)
17307     save_CPPFLAGS="$CPPFLAGS"
17308     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17309
17310     save_LDFLAGS="$LDFLAGS"
17311     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17312
17313     save_LIBS="$LIBS"
17314     LIBS="$lt_cv_dlopen_libs $LIBS"
17315
17316     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17317 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17318 if test "${lt_cv_dlopen_self+set}" = set; then
17319   echo $ECHO_N "(cached) $ECHO_C" >&6
17320 else
17321           if test "$cross_compiling" = yes; then :
17322   lt_cv_dlopen_self=cross
17323 else
17324   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17325   lt_status=$lt_dlunknown
17326   cat > conftest.$ac_ext <<EOF
17327 #line 17327 "configure"
17328 #include "confdefs.h"
17329
17330 #if HAVE_DLFCN_H
17331 #include <dlfcn.h>
17332 #endif
17333
17334 #include <stdio.h>
17335
17336 #ifdef RTLD_GLOBAL
17337 #  define LT_DLGLOBAL           RTLD_GLOBAL
17338 #else
17339 #  ifdef DL_GLOBAL
17340 #    define LT_DLGLOBAL         DL_GLOBAL
17341 #  else
17342 #    define LT_DLGLOBAL         0
17343 #  endif
17344 #endif
17345
17346 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17347    find out it does not work in some platform. */
17348 #ifndef LT_DLLAZY_OR_NOW
17349 #  ifdef RTLD_LAZY
17350 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17351 #  else
17352 #    ifdef DL_LAZY
17353 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17354 #    else
17355 #      ifdef RTLD_NOW
17356 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17357 #      else
17358 #        ifdef DL_NOW
17359 #          define LT_DLLAZY_OR_NOW      DL_NOW
17360 #        else
17361 #          define LT_DLLAZY_OR_NOW      0
17362 #        endif
17363 #      endif
17364 #    endif
17365 #  endif
17366 #endif
17367
17368 #ifdef __cplusplus
17369 extern "C" void exit (int);
17370 #endif
17371
17372 void fnord() { int i=42;}
17373 int main ()
17374 {
17375   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17376   int status = $lt_dlunknown;
17377
17378   if (self)
17379     {
17380       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17381       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17382       /* dlclose (self); */
17383     }
17384
17385     exit (status);
17386 }
17387 EOF
17388   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17389   (eval $ac_link) 2>&5
17390   ac_status=$?
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17393     (./conftest; exit; ) 2>/dev/null
17394     lt_status=$?
17395     case x$lt_status in
17396       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17397       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17398       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17399     esac
17400   else :
17401     # compilation failed
17402     lt_cv_dlopen_self=no
17403   fi
17404 fi
17405 rm -fr conftest*
17406
17407
17408 fi
17409 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17410 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17411
17412     if test "x$lt_cv_dlopen_self" = xyes; then
17413       LDFLAGS="$LDFLAGS $link_static_flag"
17414       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17415 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17416 if test "${lt_cv_dlopen_self_static+set}" = set; then
17417   echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419           if test "$cross_compiling" = yes; then :
17420   lt_cv_dlopen_self_static=cross
17421 else
17422   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17423   lt_status=$lt_dlunknown
17424   cat > conftest.$ac_ext <<EOF
17425 #line 17425 "configure"
17426 #include "confdefs.h"
17427
17428 #if HAVE_DLFCN_H
17429 #include <dlfcn.h>
17430 #endif
17431
17432 #include <stdio.h>
17433
17434 #ifdef RTLD_GLOBAL
17435 #  define LT_DLGLOBAL           RTLD_GLOBAL
17436 #else
17437 #  ifdef DL_GLOBAL
17438 #    define LT_DLGLOBAL         DL_GLOBAL
17439 #  else
17440 #    define LT_DLGLOBAL         0
17441 #  endif
17442 #endif
17443
17444 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17445    find out it does not work in some platform. */
17446 #ifndef LT_DLLAZY_OR_NOW
17447 #  ifdef RTLD_LAZY
17448 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17449 #  else
17450 #    ifdef DL_LAZY
17451 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17452 #    else
17453 #      ifdef RTLD_NOW
17454 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17455 #      else
17456 #        ifdef DL_NOW
17457 #          define LT_DLLAZY_OR_NOW      DL_NOW
17458 #        else
17459 #          define LT_DLLAZY_OR_NOW      0
17460 #        endif
17461 #      endif
17462 #    endif
17463 #  endif
17464 #endif
17465
17466 #ifdef __cplusplus
17467 extern "C" void exit (int);
17468 #endif
17469
17470 void fnord() { int i=42;}
17471 int main ()
17472 {
17473   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17474   int status = $lt_dlunknown;
17475
17476   if (self)
17477     {
17478       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17479       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17480       /* dlclose (self); */
17481     }
17482
17483     exit (status);
17484 }
17485 EOF
17486   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17487   (eval $ac_link) 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17491     (./conftest; exit; ) 2>/dev/null
17492     lt_status=$?
17493     case x$lt_status in
17494       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17495       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17496       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17497     esac
17498   else :
17499     # compilation failed
17500     lt_cv_dlopen_self_static=no
17501   fi
17502 fi
17503 rm -fr conftest*
17504
17505
17506 fi
17507 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17508 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17509     fi
17510
17511     CPPFLAGS="$save_CPPFLAGS"
17512     LDFLAGS="$save_LDFLAGS"
17513     LIBS="$save_LIBS"
17514     ;;
17515   esac
17516
17517   case $lt_cv_dlopen_self in
17518   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17519   *) enable_dlopen_self=unknown ;;
17520   esac
17521
17522   case $lt_cv_dlopen_self_static in
17523   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17524   *) enable_dlopen_self_static=unknown ;;
17525   esac
17526 fi
17527
17528
17529 # The else clause should only fire when bootstrapping the
17530 # libtool distribution, otherwise you forgot to ship ltmain.sh
17531 # with your package, and you will get complaints that there are
17532 # no rules to generate ltmain.sh.
17533 if test -f "$ltmain"; then
17534   # See if we are running on zsh, and set the options which allow our commands through
17535   # without removal of \ escapes.
17536   if test -n "${ZSH_VERSION+set}" ; then
17537     setopt NO_GLOB_SUBST
17538   fi
17539   # Now quote all the things that may contain metacharacters while being
17540   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17541   # variables and quote the copies for generation of the libtool script.
17542   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17543     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17544     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17545     deplibs_check_method reload_flag reload_cmds need_locks \
17546     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17547     lt_cv_sys_global_symbol_to_c_name_address \
17548     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17549     old_postinstall_cmds old_postuninstall_cmds \
17550     compiler_GCJ \
17551     CC_GCJ \
17552     LD_GCJ \
17553     lt_prog_compiler_wl_GCJ \
17554     lt_prog_compiler_pic_GCJ \
17555     lt_prog_compiler_static_GCJ \
17556     lt_prog_compiler_no_builtin_flag_GCJ \
17557     export_dynamic_flag_spec_GCJ \
17558     thread_safe_flag_spec_GCJ \
17559     whole_archive_flag_spec_GCJ \
17560     enable_shared_with_static_runtimes_GCJ \
17561     old_archive_cmds_GCJ \
17562     old_archive_from_new_cmds_GCJ \
17563     predep_objects_GCJ \
17564     postdep_objects_GCJ \
17565     predeps_GCJ \
17566     postdeps_GCJ \
17567     compiler_lib_search_path_GCJ \
17568     archive_cmds_GCJ \
17569     archive_expsym_cmds_GCJ \
17570     postinstall_cmds_GCJ \
17571     postuninstall_cmds_GCJ \
17572     old_archive_from_expsyms_cmds_GCJ \
17573     allow_undefined_flag_GCJ \
17574     no_undefined_flag_GCJ \
17575     export_symbols_cmds_GCJ \
17576     hardcode_libdir_flag_spec_GCJ \
17577     hardcode_libdir_flag_spec_ld_GCJ \
17578     hardcode_libdir_separator_GCJ \
17579     hardcode_automatic_GCJ \
17580     module_cmds_GCJ \
17581     module_expsym_cmds_GCJ \
17582     lt_cv_prog_compiler_c_o_GCJ \
17583     exclude_expsyms_GCJ \
17584     include_expsyms_GCJ; do
17585
17586     case $var in
17587     old_archive_cmds_GCJ | \
17588     old_archive_from_new_cmds_GCJ | \
17589     archive_cmds_GCJ | \
17590     archive_expsym_cmds_GCJ | \
17591     module_cmds_GCJ | \
17592     module_expsym_cmds_GCJ | \
17593     old_archive_from_expsyms_cmds_GCJ | \
17594     export_symbols_cmds_GCJ | \
17595     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17596     postinstall_cmds | postuninstall_cmds | \
17597     old_postinstall_cmds | old_postuninstall_cmds | \
17598     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17599       # Double-quote double-evaled strings.
17600       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17601       ;;
17602     *)
17603       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17604       ;;
17605     esac
17606   done
17607
17608   case $lt_echo in
17609   *'\$0 --fallback-echo"')
17610     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17611     ;;
17612   esac
17613
17614 cfgfile="$ofile"
17615
17616   cat <<__EOF__ >> "$cfgfile"
17617 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17618
17619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17620
17621 # Shell to use when invoking shell scripts.
17622 SHELL=$lt_SHELL
17623
17624 # Whether or not to build shared libraries.
17625 build_libtool_libs=$enable_shared
17626
17627 # Whether or not to build static libraries.
17628 build_old_libs=$enable_static
17629
17630 # Whether or not to add -lc for building shared libraries.
17631 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17632
17633 # Whether or not to disallow shared libs when runtime libs are static
17634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17635
17636 # Whether or not to optimize for fast installation.
17637 fast_install=$enable_fast_install
17638
17639 # The host system.
17640 host_alias=$host_alias
17641 host=$host
17642
17643 # An echo program that does not interpret backslashes.
17644 echo=$lt_echo
17645
17646 # The archiver.
17647 AR=$lt_AR
17648 AR_FLAGS=$lt_AR_FLAGS
17649
17650 # A C compiler.
17651 LTCC=$lt_LTCC
17652
17653 # A language-specific compiler.
17654 CC=$lt_compiler_GCJ
17655
17656 # Is the compiler the GNU C compiler?
17657 with_gcc=$GCC_GCJ
17658
17659 # An ERE matcher.
17660 EGREP=$lt_EGREP
17661
17662 # The linker used to build libraries.
17663 LD=$lt_LD_GCJ
17664
17665 # Whether we need hard or soft links.
17666 LN_S=$lt_LN_S
17667
17668 # A BSD-compatible nm program.
17669 NM=$lt_NM
17670
17671 # A symbol stripping program
17672 STRIP=$STRIP
17673
17674 # Used to examine libraries when file_magic_cmd begins "file"
17675 MAGIC_CMD=$MAGIC_CMD
17676
17677 # Used on cygwin: DLL creation program.
17678 DLLTOOL="$DLLTOOL"
17679
17680 # Used on cygwin: object dumper.
17681 OBJDUMP="$OBJDUMP"
17682
17683 # Used on cygwin: assembler.
17684 AS="$AS"
17685
17686 # The name of the directory that contains temporary libtool files.
17687 objdir=$objdir
17688
17689 # How to create reloadable object files.
17690 reload_flag=$lt_reload_flag
17691 reload_cmds=$lt_reload_cmds
17692
17693 # How to pass a linker flag through the compiler.
17694 wl=$lt_lt_prog_compiler_wl_GCJ
17695
17696 # Object file suffix (normally "o").
17697 objext="$ac_objext"
17698
17699 # Old archive suffix (normally "a").
17700 libext="$libext"
17701
17702 # Shared library suffix (normally ".so").
17703 shrext='$shrext'
17704
17705 # Executable file suffix (normally "").
17706 exeext="$exeext"
17707
17708 # Additional compiler flags for building library objects.
17709 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17710 pic_mode=$pic_mode
17711
17712 # What is the maximum length of a command?
17713 max_cmd_len=$lt_cv_sys_max_cmd_len
17714
17715 # Does compiler simultaneously support -c and -o options?
17716 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17717
17718 # Must we lock files when doing compilation ?
17719 need_locks=$lt_need_locks
17720
17721 # Do we need the lib prefix for modules?
17722 need_lib_prefix=$need_lib_prefix
17723
17724 # Do we need a version for libraries?
17725 need_version=$need_version
17726
17727 # Whether dlopen is supported.
17728 dlopen_support=$enable_dlopen
17729
17730 # Whether dlopen of programs is supported.
17731 dlopen_self=$enable_dlopen_self
17732
17733 # Whether dlopen of statically linked programs is supported.
17734 dlopen_self_static=$enable_dlopen_self_static
17735
17736 # Compiler flag to prevent dynamic linking.
17737 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17738
17739 # Compiler flag to turn off builtin functions.
17740 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17741
17742 # Compiler flag to allow reflexive dlopens.
17743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17744
17745 # Compiler flag to generate shared objects directly from archives.
17746 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17747
17748 # Compiler flag to generate thread-safe objects.
17749 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17750
17751 # Library versioning type.
17752 version_type=$version_type
17753
17754 # Format of library name prefix.
17755 libname_spec=$lt_libname_spec
17756
17757 # List of archive names.  First name is the real one, the rest are links.
17758 # The last name is the one that the linker finds with -lNAME.
17759 library_names_spec=$lt_library_names_spec
17760
17761 # The coded name of the library, if different from the real name.
17762 soname_spec=$lt_soname_spec
17763
17764 # Commands used to build and install an old-style archive.
17765 RANLIB=$lt_RANLIB
17766 old_archive_cmds=$lt_old_archive_cmds_GCJ
17767 old_postinstall_cmds=$lt_old_postinstall_cmds
17768 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17769
17770 # Create an old-style archive from a shared archive.
17771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17772
17773 # Create a temporary old-style archive to link instead of a shared archive.
17774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17775
17776 # Commands used to build and install a shared archive.
17777 archive_cmds=$lt_archive_cmds_GCJ
17778 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17779 postinstall_cmds=$lt_postinstall_cmds
17780 postuninstall_cmds=$lt_postuninstall_cmds
17781
17782 # Commands used to build a loadable module (assumed same as above if empty)
17783 module_cmds=$lt_module_cmds_GCJ
17784 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17785
17786 # Commands to strip libraries.
17787 old_striplib=$lt_old_striplib
17788 striplib=$lt_striplib
17789
17790 # Dependencies to place before the objects being linked to create a
17791 # shared library.
17792 predep_objects=$lt_predep_objects_GCJ
17793
17794 # Dependencies to place after the objects being linked to create a
17795 # shared library.
17796 postdep_objects=$lt_postdep_objects_GCJ
17797
17798 # Dependencies to place before the objects being linked to create a
17799 # shared library.
17800 predeps=$lt_predeps_GCJ
17801
17802 # Dependencies to place after the objects being linked to create a
17803 # shared library.
17804 postdeps=$lt_postdeps_GCJ
17805
17806 # The library search path used internally by the compiler when linking
17807 # a shared library.
17808 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17809
17810 # Method to check whether dependent libraries are shared objects.
17811 deplibs_check_method=$lt_deplibs_check_method
17812
17813 # Command to use when deplibs_check_method == file_magic.
17814 file_magic_cmd=$lt_file_magic_cmd
17815
17816 # Flag that allows shared libraries with undefined symbols to be built.
17817 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17818
17819 # Flag that forces no undefined symbols.
17820 no_undefined_flag=$lt_no_undefined_flag_GCJ
17821
17822 # Commands used to finish a libtool library installation in a directory.
17823 finish_cmds=$lt_finish_cmds
17824
17825 # Same as above, but a single script fragment to be evaled but not shown.
17826 finish_eval=$lt_finish_eval
17827
17828 # Take the output of nm and produce a listing of raw symbols and C names.
17829 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17830
17831 # Transform the output of nm in a proper C declaration
17832 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17833
17834 # Transform the output of nm in a C name address pair
17835 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17836
17837 # This is the shared library runtime path variable.
17838 runpath_var=$runpath_var
17839
17840 # This is the shared library path variable.
17841 shlibpath_var=$shlibpath_var
17842
17843 # Is shlibpath searched before the hard-coded library search path?
17844 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17845
17846 # How to hardcode a shared library path into an executable.
17847 hardcode_action=$hardcode_action_GCJ
17848
17849 # Whether we should hardcode library paths into libraries.
17850 hardcode_into_libs=$hardcode_into_libs
17851
17852 # Flag to hardcode \$libdir into a binary during linking.
17853 # This must work even if \$libdir does not exist.
17854 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17855
17856 # If ld is used when linking, flag to hardcode \$libdir into
17857 # a binary during linking. This must work even if \$libdir does
17858 # not exist.
17859 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17860
17861 # Whether we need a single -rpath flag with a separated argument.
17862 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17863
17864 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17865 # resulting binary.
17866 hardcode_direct=$hardcode_direct_GCJ
17867
17868 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17869 # resulting binary.
17870 hardcode_minus_L=$hardcode_minus_L_GCJ
17871
17872 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17873 # the resulting binary.
17874 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17875
17876 # Set to yes if building a shared library automatically hardcodes DIR into the library
17877 # and all subsequent libraries and executables linked against it.
17878 hardcode_automatic=$hardcode_automatic_GCJ
17879
17880 # Variables whose values should be saved in libtool wrapper scripts and
17881 # restored at relink time.
17882 variables_saved_for_relink="$variables_saved_for_relink"
17883
17884 # Whether libtool must link a program against all its dependency libraries.
17885 link_all_deplibs=$link_all_deplibs_GCJ
17886
17887 # Compile-time system search path for libraries
17888 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17889
17890 # Run-time system search path for libraries
17891 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17892
17893 # Fix the shell variable \$srcfile for the compiler.
17894 fix_srcfile_path="$fix_srcfile_path_GCJ"
17895
17896 # Set to yes if exported symbols are required.
17897 always_export_symbols=$always_export_symbols_GCJ
17898
17899 # The commands to list exported symbols.
17900 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17901
17902 # The commands to extract the exported symbol list from a shared archive.
17903 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17904
17905 # Symbols that should not be listed in the preloaded symbols.
17906 exclude_expsyms=$lt_exclude_expsyms_GCJ
17907
17908 # Symbols that must always be exported.
17909 include_expsyms=$lt_include_expsyms_GCJ
17910
17911 # ### END LIBTOOL TAG CONFIG: $tagname
17912
17913 __EOF__
17914
17915
17916 else
17917   # If there is no Makefile yet, we rely on a make rule to execute
17918   # `config.status --recheck' to rerun these tests and create the
17919   # libtool script then.
17920   test -f Makefile && make "$ltmain"
17921 fi
17922
17923
17924 ac_ext=c
17925 ac_cpp='$CPP $CPPFLAGS'
17926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17929
17930 CC="$lt_save_CC"
17931
17932         else
17933           tagname=""
17934         fi
17935         ;;
17936
17937       RC)
17938
17939
17940
17941 # Source file extension for RC test sources.
17942 ac_ext=rc
17943
17944 # Object file extension for compiled RC test sources.
17945 objext=o
17946 objext_RC=$objext
17947
17948 # Code to be used in simple compile tests
17949 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17950
17951 # Code to be used in simple link tests
17952 lt_simple_link_test_code="$lt_simple_compile_test_code"
17953
17954 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17955
17956 # If no C compiler was specified, use CC.
17957 LTCC=${LTCC-"$CC"}
17958
17959 # Allow CC to be a program name with arguments.
17960 compiler=$CC
17961
17962
17963 # Allow CC to be a program name with arguments.
17964 lt_save_CC="$CC"
17965 CC=${RC-"windres"}
17966 compiler=$CC
17967 compiler_RC=$CC
17968 lt_cv_prog_compiler_c_o_RC=yes
17969
17970 # The else clause should only fire when bootstrapping the
17971 # libtool distribution, otherwise you forgot to ship ltmain.sh
17972 # with your package, and you will get complaints that there are
17973 # no rules to generate ltmain.sh.
17974 if test -f "$ltmain"; then
17975   # See if we are running on zsh, and set the options which allow our commands through
17976   # without removal of \ escapes.
17977   if test -n "${ZSH_VERSION+set}" ; then
17978     setopt NO_GLOB_SUBST
17979   fi
17980   # Now quote all the things that may contain metacharacters while being
17981   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17982   # variables and quote the copies for generation of the libtool script.
17983   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17984     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17985     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17986     deplibs_check_method reload_flag reload_cmds need_locks \
17987     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17988     lt_cv_sys_global_symbol_to_c_name_address \
17989     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17990     old_postinstall_cmds old_postuninstall_cmds \
17991     compiler_RC \
17992     CC_RC \
17993     LD_RC \
17994     lt_prog_compiler_wl_RC \
17995     lt_prog_compiler_pic_RC \
17996     lt_prog_compiler_static_RC \
17997     lt_prog_compiler_no_builtin_flag_RC \
17998     export_dynamic_flag_spec_RC \
17999     thread_safe_flag_spec_RC \
18000     whole_archive_flag_spec_RC \
18001     enable_shared_with_static_runtimes_RC \
18002     old_archive_cmds_RC \
18003     old_archive_from_new_cmds_RC \
18004     predep_objects_RC \
18005     postdep_objects_RC \
18006     predeps_RC \
18007     postdeps_RC \
18008     compiler_lib_search_path_RC \
18009     archive_cmds_RC \
18010     archive_expsym_cmds_RC \
18011     postinstall_cmds_RC \
18012     postuninstall_cmds_RC \
18013     old_archive_from_expsyms_cmds_RC \
18014     allow_undefined_flag_RC \
18015     no_undefined_flag_RC \
18016     export_symbols_cmds_RC \
18017     hardcode_libdir_flag_spec_RC \
18018     hardcode_libdir_flag_spec_ld_RC \
18019     hardcode_libdir_separator_RC \
18020     hardcode_automatic_RC \
18021     module_cmds_RC \
18022     module_expsym_cmds_RC \
18023     lt_cv_prog_compiler_c_o_RC \
18024     exclude_expsyms_RC \
18025     include_expsyms_RC; do
18026
18027     case $var in
18028     old_archive_cmds_RC | \
18029     old_archive_from_new_cmds_RC | \
18030     archive_cmds_RC | \
18031     archive_expsym_cmds_RC | \
18032     module_cmds_RC | \
18033     module_expsym_cmds_RC | \
18034     old_archive_from_expsyms_cmds_RC | \
18035     export_symbols_cmds_RC | \
18036     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18037     postinstall_cmds | postuninstall_cmds | \
18038     old_postinstall_cmds | old_postuninstall_cmds | \
18039     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18040       # Double-quote double-evaled strings.
18041       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18042       ;;
18043     *)
18044       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18045       ;;
18046     esac
18047   done
18048
18049   case $lt_echo in
18050   *'\$0 --fallback-echo"')
18051     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18052     ;;
18053   esac
18054
18055 cfgfile="$ofile"
18056
18057   cat <<__EOF__ >> "$cfgfile"
18058 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18059
18060 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18061
18062 # Shell to use when invoking shell scripts.
18063 SHELL=$lt_SHELL
18064
18065 # Whether or not to build shared libraries.
18066 build_libtool_libs=$enable_shared
18067
18068 # Whether or not to build static libraries.
18069 build_old_libs=$enable_static
18070
18071 # Whether or not to add -lc for building shared libraries.
18072 build_libtool_need_lc=$archive_cmds_need_lc_RC
18073
18074 # Whether or not to disallow shared libs when runtime libs are static
18075 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18076
18077 # Whether or not to optimize for fast installation.
18078 fast_install=$enable_fast_install
18079
18080 # The host system.
18081 host_alias=$host_alias
18082 host=$host
18083
18084 # An echo program that does not interpret backslashes.
18085 echo=$lt_echo
18086
18087 # The archiver.
18088 AR=$lt_AR
18089 AR_FLAGS=$lt_AR_FLAGS
18090
18091 # A C compiler.
18092 LTCC=$lt_LTCC
18093
18094 # A language-specific compiler.
18095 CC=$lt_compiler_RC
18096
18097 # Is the compiler the GNU C compiler?
18098 with_gcc=$GCC_RC
18099
18100 # An ERE matcher.
18101 EGREP=$lt_EGREP
18102
18103 # The linker used to build libraries.
18104 LD=$lt_LD_RC
18105
18106 # Whether we need hard or soft links.
18107 LN_S=$lt_LN_S
18108
18109 # A BSD-compatible nm program.
18110 NM=$lt_NM
18111
18112 # A symbol stripping program
18113 STRIP=$STRIP
18114
18115 # Used to examine libraries when file_magic_cmd begins "file"
18116 MAGIC_CMD=$MAGIC_CMD
18117
18118 # Used on cygwin: DLL creation program.
18119 DLLTOOL="$DLLTOOL"
18120
18121 # Used on cygwin: object dumper.
18122 OBJDUMP="$OBJDUMP"
18123
18124 # Used on cygwin: assembler.
18125 AS="$AS"
18126
18127 # The name of the directory that contains temporary libtool files.
18128 objdir=$objdir
18129
18130 # How to create reloadable object files.
18131 reload_flag=$lt_reload_flag
18132 reload_cmds=$lt_reload_cmds
18133
18134 # How to pass a linker flag through the compiler.
18135 wl=$lt_lt_prog_compiler_wl_RC
18136
18137 # Object file suffix (normally "o").
18138 objext="$ac_objext"
18139
18140 # Old archive suffix (normally "a").
18141 libext="$libext"
18142
18143 # Shared library suffix (normally ".so").
18144 shrext='$shrext'
18145
18146 # Executable file suffix (normally "").
18147 exeext="$exeext"
18148
18149 # Additional compiler flags for building library objects.
18150 pic_flag=$lt_lt_prog_compiler_pic_RC
18151 pic_mode=$pic_mode
18152
18153 # What is the maximum length of a command?
18154 max_cmd_len=$lt_cv_sys_max_cmd_len
18155
18156 # Does compiler simultaneously support -c and -o options?
18157 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18158
18159 # Must we lock files when doing compilation ?
18160 need_locks=$lt_need_locks
18161
18162 # Do we need the lib prefix for modules?
18163 need_lib_prefix=$need_lib_prefix
18164
18165 # Do we need a version for libraries?
18166 need_version=$need_version
18167
18168 # Whether dlopen is supported.
18169 dlopen_support=$enable_dlopen
18170
18171 # Whether dlopen of programs is supported.
18172 dlopen_self=$enable_dlopen_self
18173
18174 # Whether dlopen of statically linked programs is supported.
18175 dlopen_self_static=$enable_dlopen_self_static
18176
18177 # Compiler flag to prevent dynamic linking.
18178 link_static_flag=$lt_lt_prog_compiler_static_RC
18179
18180 # Compiler flag to turn off builtin functions.
18181 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18182
18183 # Compiler flag to allow reflexive dlopens.
18184 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18185
18186 # Compiler flag to generate shared objects directly from archives.
18187 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18188
18189 # Compiler flag to generate thread-safe objects.
18190 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18191
18192 # Library versioning type.
18193 version_type=$version_type
18194
18195 # Format of library name prefix.
18196 libname_spec=$lt_libname_spec
18197
18198 # List of archive names.  First name is the real one, the rest are links.
18199 # The last name is the one that the linker finds with -lNAME.
18200 library_names_spec=$lt_library_names_spec
18201
18202 # The coded name of the library, if different from the real name.
18203 soname_spec=$lt_soname_spec
18204
18205 # Commands used to build and install an old-style archive.
18206 RANLIB=$lt_RANLIB
18207 old_archive_cmds=$lt_old_archive_cmds_RC
18208 old_postinstall_cmds=$lt_old_postinstall_cmds
18209 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18210
18211 # Create an old-style archive from a shared archive.
18212 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18213
18214 # Create a temporary old-style archive to link instead of a shared archive.
18215 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18216
18217 # Commands used to build and install a shared archive.
18218 archive_cmds=$lt_archive_cmds_RC
18219 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18220 postinstall_cmds=$lt_postinstall_cmds
18221 postuninstall_cmds=$lt_postuninstall_cmds
18222
18223 # Commands used to build a loadable module (assumed same as above if empty)
18224 module_cmds=$lt_module_cmds_RC
18225 module_expsym_cmds=$lt_module_expsym_cmds_RC
18226
18227 # Commands to strip libraries.
18228 old_striplib=$lt_old_striplib
18229 striplib=$lt_striplib
18230
18231 # Dependencies to place before the objects being linked to create a
18232 # shared library.
18233 predep_objects=$lt_predep_objects_RC
18234
18235 # Dependencies to place after the objects being linked to create a
18236 # shared library.
18237 postdep_objects=$lt_postdep_objects_RC
18238
18239 # Dependencies to place before the objects being linked to create a
18240 # shared library.
18241 predeps=$lt_predeps_RC
18242
18243 # Dependencies to place after the objects being linked to create a
18244 # shared library.
18245 postdeps=$lt_postdeps_RC
18246
18247 # The library search path used internally by the compiler when linking
18248 # a shared library.
18249 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18250
18251 # Method to check whether dependent libraries are shared objects.
18252 deplibs_check_method=$lt_deplibs_check_method
18253
18254 # Command to use when deplibs_check_method == file_magic.
18255 file_magic_cmd=$lt_file_magic_cmd
18256
18257 # Flag that allows shared libraries with undefined symbols to be built.
18258 allow_undefined_flag=$lt_allow_undefined_flag_RC
18259
18260 # Flag that forces no undefined symbols.
18261 no_undefined_flag=$lt_no_undefined_flag_RC
18262
18263 # Commands used to finish a libtool library installation in a directory.
18264 finish_cmds=$lt_finish_cmds
18265
18266 # Same as above, but a single script fragment to be evaled but not shown.
18267 finish_eval=$lt_finish_eval
18268
18269 # Take the output of nm and produce a listing of raw symbols and C names.
18270 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18271
18272 # Transform the output of nm in a proper C declaration
18273 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18274
18275 # Transform the output of nm in a C name address pair
18276 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18277
18278 # This is the shared library runtime path variable.
18279 runpath_var=$runpath_var
18280
18281 # This is the shared library path variable.
18282 shlibpath_var=$shlibpath_var
18283
18284 # Is shlibpath searched before the hard-coded library search path?
18285 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18286
18287 # How to hardcode a shared library path into an executable.
18288 hardcode_action=$hardcode_action_RC
18289
18290 # Whether we should hardcode library paths into libraries.
18291 hardcode_into_libs=$hardcode_into_libs
18292
18293 # Flag to hardcode \$libdir into a binary during linking.
18294 # This must work even if \$libdir does not exist.
18295 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18296
18297 # If ld is used when linking, flag to hardcode \$libdir into
18298 # a binary during linking. This must work even if \$libdir does
18299 # not exist.
18300 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18301
18302 # Whether we need a single -rpath flag with a separated argument.
18303 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18304
18305 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18306 # resulting binary.
18307 hardcode_direct=$hardcode_direct_RC
18308
18309 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18310 # resulting binary.
18311 hardcode_minus_L=$hardcode_minus_L_RC
18312
18313 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18314 # the resulting binary.
18315 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18316
18317 # Set to yes if building a shared library automatically hardcodes DIR into the library
18318 # and all subsequent libraries and executables linked against it.
18319 hardcode_automatic=$hardcode_automatic_RC
18320
18321 # Variables whose values should be saved in libtool wrapper scripts and
18322 # restored at relink time.
18323 variables_saved_for_relink="$variables_saved_for_relink"
18324
18325 # Whether libtool must link a program against all its dependency libraries.
18326 link_all_deplibs=$link_all_deplibs_RC
18327
18328 # Compile-time system search path for libraries
18329 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18330
18331 # Run-time system search path for libraries
18332 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18333
18334 # Fix the shell variable \$srcfile for the compiler.
18335 fix_srcfile_path="$fix_srcfile_path_RC"
18336
18337 # Set to yes if exported symbols are required.
18338 always_export_symbols=$always_export_symbols_RC
18339
18340 # The commands to list exported symbols.
18341 export_symbols_cmds=$lt_export_symbols_cmds_RC
18342
18343 # The commands to extract the exported symbol list from a shared archive.
18344 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18345
18346 # Symbols that should not be listed in the preloaded symbols.
18347 exclude_expsyms=$lt_exclude_expsyms_RC
18348
18349 # Symbols that must always be exported.
18350 include_expsyms=$lt_include_expsyms_RC
18351
18352 # ### END LIBTOOL TAG CONFIG: $tagname
18353
18354 __EOF__
18355
18356
18357 else
18358   # If there is no Makefile yet, we rely on a make rule to execute
18359   # `config.status --recheck' to rerun these tests and create the
18360   # libtool script then.
18361   test -f Makefile && make "$ltmain"
18362 fi
18363
18364
18365 ac_ext=c
18366 ac_cpp='$CPP $CPPFLAGS'
18367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18370
18371 CC="$lt_save_CC"
18372
18373         ;;
18374
18375       *)
18376         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18377 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18378    { (exit 1); exit 1; }; }
18379         ;;
18380       esac
18381
18382       # Append the new tag name to the list of available tags.
18383       if test -n "$tagname" ; then
18384       available_tags="$available_tags $tagname"
18385     fi
18386     fi
18387   done
18388   IFS="$lt_save_ifs"
18389
18390   # Now substitute the updated list of available tags.
18391   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18392     mv "${ofile}T" "$ofile"
18393     chmod +x "$ofile"
18394   else
18395     rm -f "${ofile}T"
18396     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18397 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18398    { (exit 1); exit 1; }; }
18399   fi
18400 fi
18401
18402
18403
18404 # This can be used to rebuild libtool when needed
18405 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18406
18407 # Always use our own libtool.
18408 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18409
18410 # Prevent multiple expansion
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432 # Extract the first word of "pwd", so it can be a program name with args.
18433 set dummy pwd; ac_word=$2
18434 echo "$as_me:$LINENO: checking for $ac_word" >&5
18435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18436 if test "${ac_cv_path_RPWD+set}" = set; then
18437   echo $ECHO_N "(cached) $ECHO_C" >&6
18438 else
18439   case $RPWD in
18440   [\\/]* | ?:[\\/]*)
18441   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18442   ;;
18443   *)
18444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18445 for as_dir in $PATH
18446 do
18447   IFS=$as_save_IFS
18448   test -z "$as_dir" && as_dir=.
18449   for ac_exec_ext in '' $ac_executable_extensions; do
18450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18451     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18453     break 2
18454   fi
18455 done
18456 done
18457
18458   ;;
18459 esac
18460 fi
18461 RPWD=$ac_cv_path_RPWD
18462
18463 if test -n "$RPWD"; then
18464   echo "$as_me:$LINENO: result: $RPWD" >&5
18465 echo "${ECHO_T}$RPWD" >&6
18466 else
18467   echo "$as_me:$LINENO: result: no" >&5
18468 echo "${ECHO_T}no" >&6
18469 fi
18470
18471 # Extract the first word of "ar", so it can be a program name with args.
18472 set dummy ar; ac_word=$2
18473 echo "$as_me:$LINENO: checking for $ac_word" >&5
18474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18475 if test "${ac_cv_path_AR+set}" = set; then
18476   echo $ECHO_N "(cached) $ECHO_C" >&6
18477 else
18478   case $AR in
18479   [\\/]* | ?:[\\/]*)
18480   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18481   ;;
18482   *)
18483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484 for as_dir in $PATH
18485 do
18486   IFS=$as_save_IFS
18487   test -z "$as_dir" && as_dir=.
18488   for ac_exec_ext in '' $ac_executable_extensions; do
18489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18490     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18492     break 2
18493   fi
18494 done
18495 done
18496
18497   ;;
18498 esac
18499 fi
18500 AR=$ac_cv_path_AR
18501
18502 if test -n "$AR"; then
18503   echo "$as_me:$LINENO: result: $AR" >&5
18504 echo "${ECHO_T}$AR" >&6
18505 else
18506   echo "$as_me:$LINENO: result: no" >&5
18507 echo "${ECHO_T}no" >&6
18508 fi
18509
18510 # Extract the first word of "sed", so it can be a program name with args.
18511 set dummy sed; ac_word=$2
18512 echo "$as_me:$LINENO: checking for $ac_word" >&5
18513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18514 if test "${ac_cv_path_SED+set}" = set; then
18515   echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18517   case $SED in
18518   [\\/]* | ?:[\\/]*)
18519   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18520   ;;
18521   *)
18522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18523 for as_dir in $PATH
18524 do
18525   IFS=$as_save_IFS
18526   test -z "$as_dir" && as_dir=.
18527   for ac_exec_ext in '' $ac_executable_extensions; do
18528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18529     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18531     break 2
18532   fi
18533 done
18534 done
18535
18536   ;;
18537 esac
18538 fi
18539 SED=$ac_cv_path_SED
18540
18541 if test -n "$SED"; then
18542   echo "$as_me:$LINENO: result: $SED" >&5
18543 echo "${ECHO_T}$SED" >&6
18544 else
18545   echo "$as_me:$LINENO: result: no" >&5
18546 echo "${ECHO_T}no" >&6
18547 fi
18548
18549 # Extract the first word of "rm", so it can be a program name with args.
18550 set dummy rm; ac_word=$2
18551 echo "$as_me:$LINENO: checking for $ac_word" >&5
18552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18553 if test "${ac_cv_path_RM+set}" = set; then
18554   echo $ECHO_N "(cached) $ECHO_C" >&6
18555 else
18556   case $RM in
18557   [\\/]* | ?:[\\/]*)
18558   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18559   ;;
18560   *)
18561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18562 for as_dir in $PATH
18563 do
18564   IFS=$as_save_IFS
18565   test -z "$as_dir" && as_dir=.
18566   for ac_exec_ext in '' $ac_executable_extensions; do
18567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18568     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18570     break 2
18571   fi
18572 done
18573 done
18574
18575   ;;
18576 esac
18577 fi
18578 RM=$ac_cv_path_RM
18579
18580 if test -n "$RM"; then
18581   echo "$as_me:$LINENO: result: $RM" >&5
18582 echo "${ECHO_T}$RM" >&6
18583 else
18584   echo "$as_me:$LINENO: result: no" >&5
18585 echo "${ECHO_T}no" >&6
18586 fi
18587
18588 # Extract the first word of "echo", so it can be a program name with args.
18589 set dummy echo; ac_word=$2
18590 echo "$as_me:$LINENO: checking for $ac_word" >&5
18591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18592 if test "${ac_cv_path_ECHO+set}" = set; then
18593   echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595   case $ECHO in
18596   [\\/]* | ?:[\\/]*)
18597   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18598   ;;
18599   *)
18600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18601 for as_dir in $PATH
18602 do
18603   IFS=$as_save_IFS
18604   test -z "$as_dir" && as_dir=.
18605   for ac_exec_ext in '' $ac_executable_extensions; do
18606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18607     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18609     break 2
18610   fi
18611 done
18612 done
18613
18614   ;;
18615 esac
18616 fi
18617 ECHO=$ac_cv_path_ECHO
18618
18619 if test -n "$ECHO"; then
18620   echo "$as_me:$LINENO: result: $ECHO" >&5
18621 echo "${ECHO_T}$ECHO" >&6
18622 else
18623   echo "$as_me:$LINENO: result: no" >&5
18624 echo "${ECHO_T}no" >&6
18625 fi
18626
18627 # Extract the first word of "mkdir", so it can be a program name with args.
18628 set dummy mkdir; ac_word=$2
18629 echo "$as_me:$LINENO: checking for $ac_word" >&5
18630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18631 if test "${ac_cv_path_MKDIR+set}" = set; then
18632   echo $ECHO_N "(cached) $ECHO_C" >&6
18633 else
18634   case $MKDIR in
18635   [\\/]* | ?:[\\/]*)
18636   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18637   ;;
18638   *)
18639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18640 for as_dir in $PATH
18641 do
18642   IFS=$as_save_IFS
18643   test -z "$as_dir" && as_dir=.
18644   for ac_exec_ext in '' $ac_executable_extensions; do
18645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18646     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18648     break 2
18649   fi
18650 done
18651 done
18652
18653   ;;
18654 esac
18655 fi
18656 MKDIR=$ac_cv_path_MKDIR
18657
18658 if test -n "$MKDIR"; then
18659   echo "$as_me:$LINENO: result: $MKDIR" >&5
18660 echo "${ECHO_T}$MKDIR" >&6
18661 else
18662   echo "$as_me:$LINENO: result: no" >&5
18663 echo "${ECHO_T}no" >&6
18664 fi
18665
18666 # Extract the first word of "date", so it can be a program name with args.
18667 set dummy date; ac_word=$2
18668 echo "$as_me:$LINENO: checking for $ac_word" >&5
18669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18670 if test "${ac_cv_path_DATE+set}" = set; then
18671   echo $ECHO_N "(cached) $ECHO_C" >&6
18672 else
18673   case $DATE in
18674   [\\/]* | ?:[\\/]*)
18675   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18676   ;;
18677   *)
18678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18679 for as_dir in $PATH
18680 do
18681   IFS=$as_save_IFS
18682   test -z "$as_dir" && as_dir=.
18683   for ac_exec_ext in '' $ac_executable_extensions; do
18684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18685     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18687     break 2
18688   fi
18689 done
18690 done
18691
18692   ;;
18693 esac
18694 fi
18695 DATE=$ac_cv_path_DATE
18696
18697 if test -n "$DATE"; then
18698   echo "$as_me:$LINENO: result: $DATE" >&5
18699 echo "${ECHO_T}$DATE" >&6
18700 else
18701   echo "$as_me:$LINENO: result: no" >&5
18702 echo "${ECHO_T}no" >&6
18703 fi
18704
18705 # Extract the first word of "mv", so it can be a program name with args.
18706 set dummy mv; ac_word=$2
18707 echo "$as_me:$LINENO: checking for $ac_word" >&5
18708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18709 if test "${ac_cv_path_MV+set}" = set; then
18710   echo $ECHO_N "(cached) $ECHO_C" >&6
18711 else
18712   case $MV in
18713   [\\/]* | ?:[\\/]*)
18714   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18715   ;;
18716   *)
18717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18718 for as_dir in $PATH
18719 do
18720   IFS=$as_save_IFS
18721   test -z "$as_dir" && as_dir=.
18722   for ac_exec_ext in '' $ac_executable_extensions; do
18723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18724     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18726     break 2
18727   fi
18728 done
18729 done
18730
18731   ;;
18732 esac
18733 fi
18734 MV=$ac_cv_path_MV
18735
18736 if test -n "$MV"; then
18737   echo "$as_me:$LINENO: result: $MV" >&5
18738 echo "${ECHO_T}$MV" >&6
18739 else
18740   echo "$as_me:$LINENO: result: no" >&5
18741 echo "${ECHO_T}no" >&6
18742 fi
18743
18744 # Extract the first word of "dot", so it can be a program name with args.
18745 set dummy dot; ac_word=$2
18746 echo "$as_me:$LINENO: checking for $ac_word" >&5
18747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18748 if test "${ac_cv_path_DOT+set}" = set; then
18749   echo $ECHO_N "(cached) $ECHO_C" >&6
18750 else
18751   case $DOT in
18752   [\\/]* | ?:[\\/]*)
18753   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18754   ;;
18755   *)
18756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18757 for as_dir in $PATH
18758 do
18759   IFS=$as_save_IFS
18760   test -z "$as_dir" && as_dir=.
18761   for ac_exec_ext in '' $ac_executable_extensions; do
18762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18763     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18765     break 2
18766   fi
18767 done
18768 done
18769
18770   ;;
18771 esac
18772 fi
18773 DOT=$ac_cv_path_DOT
18774
18775 if test -n "$DOT"; then
18776   echo "$as_me:$LINENO: result: $DOT" >&5
18777 echo "${ECHO_T}$DOT" >&6
18778 else
18779   echo "$as_me:$LINENO: result: no" >&5
18780 echo "${ECHO_T}no" >&6
18781 fi
18782
18783 # Extract the first word of "etags", so it can be a program name with args.
18784 set dummy etags; ac_word=$2
18785 echo "$as_me:$LINENO: checking for $ac_word" >&5
18786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18787 if test "${ac_cv_path_ETAGS+set}" = set; then
18788   echo $ECHO_N "(cached) $ECHO_C" >&6
18789 else
18790   case $ETAGS in
18791   [\\/]* | ?:[\\/]*)
18792   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18793   ;;
18794   *)
18795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18796 for as_dir in $PATH
18797 do
18798   IFS=$as_save_IFS
18799   test -z "$as_dir" && as_dir=.
18800   for ac_exec_ext in '' $ac_executable_extensions; do
18801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18802     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18804     break 2
18805   fi
18806 done
18807 done
18808
18809   ;;
18810 esac
18811 fi
18812 ETAGS=$ac_cv_path_ETAGS
18813
18814 if test -n "$ETAGS"; then
18815   echo "$as_me:$LINENO: result: $ETAGS" >&5
18816 echo "${ECHO_T}$ETAGS" >&6
18817 else
18818   echo "$as_me:$LINENO: result: no" >&5
18819 echo "${ECHO_T}no" >&6
18820 fi
18821
18822 # Extract the first word of "purify", so it can be a program name with args.
18823 set dummy purify; ac_word=$2
18824 echo "$as_me:$LINENO: checking for $ac_word" >&5
18825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18826 if test "${ac_cv_path_PURIFY+set}" = set; then
18827   echo $ECHO_N "(cached) $ECHO_C" >&6
18828 else
18829   case $PURIFY in
18830   [\\/]* | ?:[\\/]*)
18831   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18832   ;;
18833   *)
18834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18835 for as_dir in $PATH
18836 do
18837   IFS=$as_save_IFS
18838   test -z "$as_dir" && as_dir=.
18839   for ac_exec_ext in '' $ac_executable_extensions; do
18840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18841     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18843     break 2
18844   fi
18845 done
18846 done
18847
18848   ;;
18849 esac
18850 fi
18851 PURIFY=$ac_cv_path_PURIFY
18852
18853 if test -n "$PURIFY"; then
18854   echo "$as_me:$LINENO: result: $PURIFY" >&5
18855 echo "${ECHO_T}$PURIFY" >&6
18856 else
18857   echo "$as_me:$LINENO: result: no" >&5
18858 echo "${ECHO_T}no" >&6
18859 fi
18860
18861 # Extract the first word of "python", so it can be a program name with args.
18862 set dummy python; ac_word=$2
18863 echo "$as_me:$LINENO: checking for $ac_word" >&5
18864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18865 if test "${ac_cv_path_PYTHON+set}" = set; then
18866   echo $ECHO_N "(cached) $ECHO_C" >&6
18867 else
18868   case $PYTHON in
18869   [\\/]* | ?:[\\/]*)
18870   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18871   ;;
18872   *)
18873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18874 for as_dir in $PATH
18875 do
18876   IFS=$as_save_IFS
18877   test -z "$as_dir" && as_dir=.
18878   for ac_exec_ext in '' $ac_executable_extensions; do
18879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18880     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18882     break 2
18883   fi
18884 done
18885 done
18886
18887   ;;
18888 esac
18889 fi
18890 PYTHON=$ac_cv_path_PYTHON
18891
18892 if test -n "$PYTHON"; then
18893   echo "$as_me:$LINENO: result: $PYTHON" >&5
18894 echo "${ECHO_T}$PYTHON" >&6
18895 else
18896   echo "$as_me:$LINENO: result: no" >&5
18897 echo "${ECHO_T}no" >&6
18898 fi
18899
18900 # Extract the first word of "qmtest", so it can be a program name with args.
18901 set dummy qmtest; ac_word=$2
18902 echo "$as_me:$LINENO: checking for $ac_word" >&5
18903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18904 if test "${ac_cv_path_QMTEST+set}" = set; then
18905   echo $ECHO_N "(cached) $ECHO_C" >&6
18906 else
18907   case $QMTEST in
18908   [\\/]* | ?:[\\/]*)
18909   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18910   ;;
18911   *)
18912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18913 for as_dir in $PATH
18914 do
18915   IFS=$as_save_IFS
18916   test -z "$as_dir" && as_dir=.
18917   for ac_exec_ext in '' $ac_executable_extensions; do
18918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18919     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18921     break 2
18922   fi
18923 done
18924 done
18925
18926   ;;
18927 esac
18928 fi
18929 QMTEST=$ac_cv_path_QMTEST
18930
18931 if test -n "$QMTEST"; then
18932   echo "$as_me:$LINENO: result: $QMTEST" >&5
18933 echo "${ECHO_T}$QMTEST" >&6
18934 else
18935   echo "$as_me:$LINENO: result: no" >&5
18936 echo "${ECHO_T}no" >&6
18937 fi
18938
18939
18940 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18941 pymajor=`echo $pyversion | cut -d. -f1`
18942 pyminor=`echo $pyversion | cut -d. -f2`
18943
18944 if test "$pymajor" -ge "2"
18945 then
18946         if test "$pymajor" -eq "2"
18947         then
18948                 if test "$pyminor" -lt "2"
18949                 then
18950                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18951 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18952    { (exit 1); exit 1; }; }
18953                 fi
18954         fi
18955 else
18956         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18957 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18958    { (exit 1); exit 1; }; }
18959 fi
18960
18961
18962
18963
18964
18965 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18966 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18967 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18968   echo $ECHO_N "(cached) $ECHO_C" >&6
18969 else
18970   ac_check_lib_save_LIBS=$LIBS
18971 LIBS="-lelf  $LIBS"
18972 cat >conftest.$ac_ext <<_ACEOF
18973 #line $LINENO "configure"
18974 /* confdefs.h.  */
18975 _ACEOF
18976 cat confdefs.h >>conftest.$ac_ext
18977 cat >>conftest.$ac_ext <<_ACEOF
18978 /* end confdefs.h.  */
18979
18980 /* Override any gcc2 internal prototype to avoid an error.  */
18981 #ifdef __cplusplus
18982 extern "C"
18983 #endif
18984 /* We use char because int might match the return type of a gcc2
18985    builtin and then its argument prototype would still apply.  */
18986 char elf_begin ();
18987 int
18988 main ()
18989 {
18990 elf_begin ();
18991   ;
18992   return 0;
18993 }
18994 _ACEOF
18995 rm -f conftest.$ac_objext conftest$ac_exeext
18996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18997   (eval $ac_link) 2>&5
18998   ac_status=$?
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); } &&
19001          { ac_try='test -s conftest$ac_exeext'
19002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003   (eval $ac_try) 2>&5
19004   ac_status=$?
19005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); }; }; then
19007   ac_cv_lib_elf_elf_begin=yes
19008 else
19009   echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19011
19012 ac_cv_lib_elf_elf_begin=no
19013 fi
19014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19015 LIBS=$ac_check_lib_save_LIBS
19016 fi
19017 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19018 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19019 if test $ac_cv_lib_elf_elf_begin = yes; then
19020   cat >>confdefs.h <<_ACEOF
19021 #define HAVE_LIBELF 1
19022 _ACEOF
19023
19024   LIBS="-lelf $LIBS"
19025
19026 fi
19027
19028
19029 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19030 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19031 if test "${ac_cv_search_dlopen+set}" = set; then
19032   echo $ECHO_N "(cached) $ECHO_C" >&6
19033 else
19034   ac_func_search_save_LIBS=$LIBS
19035 ac_cv_search_dlopen=no
19036 cat >conftest.$ac_ext <<_ACEOF
19037 #line $LINENO "configure"
19038 /* confdefs.h.  */
19039 _ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h.  */
19043
19044 /* Override any gcc2 internal prototype to avoid an error.  */
19045 #ifdef __cplusplus
19046 extern "C"
19047 #endif
19048 /* We use char because int might match the return type of a gcc2
19049    builtin and then its argument prototype would still apply.  */
19050 char dlopen ();
19051 int
19052 main ()
19053 {
19054 dlopen ();
19055   ;
19056   return 0;
19057 }
19058 _ACEOF
19059 rm -f conftest.$ac_objext conftest$ac_exeext
19060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19061   (eval $ac_link) 2>&5
19062   ac_status=$?
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); } &&
19065          { ac_try='test -s conftest$ac_exeext'
19066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067   (eval $ac_try) 2>&5
19068   ac_status=$?
19069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070   (exit $ac_status); }; }; then
19071   ac_cv_search_dlopen="none required"
19072 else
19073   echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19075
19076 fi
19077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19078 if test "$ac_cv_search_dlopen" = no; then
19079   for ac_lib in dl; do
19080     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19081     cat >conftest.$ac_ext <<_ACEOF
19082 #line $LINENO "configure"
19083 /* confdefs.h.  */
19084 _ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h.  */
19088
19089 /* Override any gcc2 internal prototype to avoid an error.  */
19090 #ifdef __cplusplus
19091 extern "C"
19092 #endif
19093 /* We use char because int might match the return type of a gcc2
19094    builtin and then its argument prototype would still apply.  */
19095 char dlopen ();
19096 int
19097 main ()
19098 {
19099 dlopen ();
19100   ;
19101   return 0;
19102 }
19103 _ACEOF
19104 rm -f conftest.$ac_objext conftest$ac_exeext
19105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19106   (eval $ac_link) 2>&5
19107   ac_status=$?
19108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109   (exit $ac_status); } &&
19110          { ac_try='test -s conftest$ac_exeext'
19111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112   (eval $ac_try) 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; }; then
19116   ac_cv_search_dlopen="-l$ac_lib"
19117 break
19118 else
19119   echo "$as_me: failed program was:" >&5
19120 sed 's/^/| /' conftest.$ac_ext >&5
19121
19122 fi
19123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19124   done
19125 fi
19126 LIBS=$ac_func_search_save_LIBS
19127 fi
19128 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19129 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19130 if test "$ac_cv_search_dlopen" != no; then
19131   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19132
19133 else
19134   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19135 echo "$as_me: error: dlopen() required but not found" >&2;}
19136    { (exit 1); exit 1; }; }
19137 fi
19138
19139
19140 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19141 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19142 if test "${ac_cv_search_mallinfo+set}" = set; then
19143   echo $ECHO_N "(cached) $ECHO_C" >&6
19144 else
19145   ac_func_search_save_LIBS=$LIBS
19146 ac_cv_search_mallinfo=no
19147 cat >conftest.$ac_ext <<_ACEOF
19148 #line $LINENO "configure"
19149 /* confdefs.h.  */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h.  */
19154
19155 /* Override any gcc2 internal prototype to avoid an error.  */
19156 #ifdef __cplusplus
19157 extern "C"
19158 #endif
19159 /* We use char because int might match the return type of a gcc2
19160    builtin and then its argument prototype would still apply.  */
19161 char mallinfo ();
19162 int
19163 main ()
19164 {
19165 mallinfo ();
19166   ;
19167   return 0;
19168 }
19169 _ACEOF
19170 rm -f conftest.$ac_objext conftest$ac_exeext
19171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19172   (eval $ac_link) 2>&5
19173   ac_status=$?
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); } &&
19176          { ac_try='test -s conftest$ac_exeext'
19177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178   (eval $ac_try) 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); }; }; then
19182   ac_cv_search_mallinfo="none required"
19183 else
19184   echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19186
19187 fi
19188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19189 if test "$ac_cv_search_mallinfo" = no; then
19190   for ac_lib in malloc; do
19191     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19192     cat >conftest.$ac_ext <<_ACEOF
19193 #line $LINENO "configure"
19194 /* confdefs.h.  */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h.  */
19199
19200 /* Override any gcc2 internal prototype to avoid an error.  */
19201 #ifdef __cplusplus
19202 extern "C"
19203 #endif
19204 /* We use char because int might match the return type of a gcc2
19205    builtin and then its argument prototype would still apply.  */
19206 char mallinfo ();
19207 int
19208 main ()
19209 {
19210 mallinfo ();
19211   ;
19212   return 0;
19213 }
19214 _ACEOF
19215 rm -f conftest.$ac_objext conftest$ac_exeext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19217   (eval $ac_link) 2>&5
19218   ac_status=$?
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); } &&
19221          { ac_try='test -s conftest$ac_exeext'
19222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223   (eval $ac_try) 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); }; }; then
19227   ac_cv_search_mallinfo="-l$ac_lib"
19228 break
19229 else
19230   echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19232
19233 fi
19234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19235   done
19236 fi
19237 LIBS=$ac_func_search_save_LIBS
19238 fi
19239 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19240 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19241 if test "$ac_cv_search_mallinfo" != no; then
19242   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19243   cat >>confdefs.h <<\_ACEOF
19244 #define HAVE_MALLINFO 1
19245 _ACEOF
19246
19247 fi
19248
19249
19250
19251 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19252 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19253 if test "${ac_cv_header_stdc+set}" = set; then
19254   echo $ECHO_N "(cached) $ECHO_C" >&6
19255 else
19256   cat >conftest.$ac_ext <<_ACEOF
19257 #line $LINENO "configure"
19258 /* confdefs.h.  */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h.  */
19263 #include <stdlib.h>
19264 #include <stdarg.h>
19265 #include <string.h>
19266 #include <float.h>
19267
19268 int
19269 main ()
19270 {
19271
19272   ;
19273   return 0;
19274 }
19275 _ACEOF
19276 rm -f conftest.$ac_objext
19277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19278   (eval $ac_compile) 2>&5
19279   ac_status=$?
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); } &&
19282          { ac_try='test -s conftest.$ac_objext'
19283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284   (eval $ac_try) 2>&5
19285   ac_status=$?
19286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287   (exit $ac_status); }; }; then
19288   ac_cv_header_stdc=yes
19289 else
19290   echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19292
19293 ac_cv_header_stdc=no
19294 fi
19295 rm -f conftest.$ac_objext conftest.$ac_ext
19296
19297 if test $ac_cv_header_stdc = yes; then
19298   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19299   cat >conftest.$ac_ext <<_ACEOF
19300 #line $LINENO "configure"
19301 /* confdefs.h.  */
19302 _ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h.  */
19306 #include <string.h>
19307
19308 _ACEOF
19309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19310   $EGREP "memchr" >/dev/null 2>&1; then
19311   :
19312 else
19313   ac_cv_header_stdc=no
19314 fi
19315 rm -f conftest*
19316
19317 fi
19318
19319 if test $ac_cv_header_stdc = yes; then
19320   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19321   cat >conftest.$ac_ext <<_ACEOF
19322 #line $LINENO "configure"
19323 /* confdefs.h.  */
19324 _ACEOF
19325 cat confdefs.h >>conftest.$ac_ext
19326 cat >>conftest.$ac_ext <<_ACEOF
19327 /* end confdefs.h.  */
19328 #include <stdlib.h>
19329
19330 _ACEOF
19331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19332   $EGREP "free" >/dev/null 2>&1; then
19333   :
19334 else
19335   ac_cv_header_stdc=no
19336 fi
19337 rm -f conftest*
19338
19339 fi
19340
19341 if test $ac_cv_header_stdc = yes; then
19342   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19343   if test "$cross_compiling" = yes; then
19344   :
19345 else
19346   cat >conftest.$ac_ext <<_ACEOF
19347 #line $LINENO "configure"
19348 /* confdefs.h.  */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h.  */
19353 #include <ctype.h>
19354 #if ((' ' & 0x0FF) == 0x020)
19355 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19356 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19357 #else
19358 # define ISLOWER(c) \
19359                    (('a' <= (c) && (c) <= 'i') \
19360                      || ('j' <= (c) && (c) <= 'r') \
19361                      || ('s' <= (c) && (c) <= 'z'))
19362 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19363 #endif
19364
19365 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19366 int
19367 main ()
19368 {
19369   int i;
19370   for (i = 0; i < 256; i++)
19371     if (XOR (islower (i), ISLOWER (i))
19372         || toupper (i) != TOUPPER (i))
19373       exit(2);
19374   exit (0);
19375 }
19376 _ACEOF
19377 rm -f conftest$ac_exeext
19378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19379   (eval $ac_link) 2>&5
19380   ac_status=$?
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384   (eval $ac_try) 2>&5
19385   ac_status=$?
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); }; }; then
19388   :
19389 else
19390   echo "$as_me: program exited with status $ac_status" >&5
19391 echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19393
19394 ( exit $ac_status )
19395 ac_cv_header_stdc=no
19396 fi
19397 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19398 fi
19399 fi
19400 fi
19401 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19402 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19403 if test $ac_cv_header_stdc = yes; then
19404
19405 cat >>confdefs.h <<\_ACEOF
19406 #define STDC_HEADERS 1
19407 _ACEOF
19408
19409 fi
19410
19411 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19412 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19413 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19414   echo $ECHO_N "(cached) $ECHO_C" >&6
19415 else
19416   cat >conftest.$ac_ext <<_ACEOF
19417 #line $LINENO "configure"
19418 /* confdefs.h.  */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h.  */
19423 #include <sys/types.h>
19424 #include <sys/wait.h>
19425 #ifndef WEXITSTATUS
19426 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19427 #endif
19428 #ifndef WIFEXITED
19429 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19430 #endif
19431
19432 int
19433 main ()
19434 {
19435   int s;
19436   wait (&s);
19437   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19438   ;
19439   return 0;
19440 }
19441 _ACEOF
19442 rm -f conftest.$ac_objext
19443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444   (eval $ac_compile) 2>&5
19445   ac_status=$?
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); } &&
19448          { ac_try='test -s conftest.$ac_objext'
19449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450   (eval $ac_try) 2>&5
19451   ac_status=$?
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); }; }; then
19454   ac_cv_header_sys_wait_h=yes
19455 else
19456   echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19458
19459 ac_cv_header_sys_wait_h=no
19460 fi
19461 rm -f conftest.$ac_objext conftest.$ac_ext
19462 fi
19463 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19464 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19465 if test $ac_cv_header_sys_wait_h = yes; then
19466
19467 cat >>confdefs.h <<\_ACEOF
19468 #define HAVE_SYS_WAIT_H 1
19469 _ACEOF
19470
19471 fi
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19483 do
19484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19486   echo "$as_me:$LINENO: checking for $ac_header" >&5
19487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19489   echo $ECHO_N "(cached) $ECHO_C" >&6
19490 fi
19491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19493 else
19494   # Is the header compilable?
19495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19497 cat >conftest.$ac_ext <<_ACEOF
19498 #line $LINENO "configure"
19499 /* confdefs.h.  */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h.  */
19504 $ac_includes_default
19505 #include <$ac_header>
19506 _ACEOF
19507 rm -f conftest.$ac_objext
19508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19509   (eval $ac_compile) 2>&5
19510   ac_status=$?
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); } &&
19513          { ac_try='test -s conftest.$ac_objext'
19514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515   (eval $ac_try) 2>&5
19516   ac_status=$?
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); }; }; then
19519   ac_header_compiler=yes
19520 else
19521   echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19523
19524 ac_header_compiler=no
19525 fi
19526 rm -f conftest.$ac_objext conftest.$ac_ext
19527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19528 echo "${ECHO_T}$ac_header_compiler" >&6
19529
19530 # Is the header present?
19531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19533 cat >conftest.$ac_ext <<_ACEOF
19534 #line $LINENO "configure"
19535 /* confdefs.h.  */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h.  */
19540 #include <$ac_header>
19541 _ACEOF
19542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19543   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19544   ac_status=$?
19545   grep -v '^ *+' conftest.er1 >conftest.err
19546   rm -f conftest.er1
19547   cat conftest.err >&5
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); } >/dev/null; then
19550   if test -s conftest.err; then
19551     ac_cpp_err=$ac_c_preproc_warn_flag
19552   else
19553     ac_cpp_err=
19554   fi
19555 else
19556   ac_cpp_err=yes
19557 fi
19558 if test -z "$ac_cpp_err"; then
19559   ac_header_preproc=yes
19560 else
19561   echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19563
19564   ac_header_preproc=no
19565 fi
19566 rm -f conftest.err conftest.$ac_ext
19567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19568 echo "${ECHO_T}$ac_header_preproc" >&6
19569
19570 # So?  What about this header?
19571 case $ac_header_compiler:$ac_header_preproc in
19572   yes:no )
19573     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19577     (
19578       cat <<\_ASBOX
19579 ## ------------------------------------ ##
19580 ## Report this to bug-autoconf@gnu.org. ##
19581 ## ------------------------------------ ##
19582 _ASBOX
19583     ) |
19584       sed "s/^/$as_me: WARNING:     /" >&2
19585     ;;
19586   no:yes )
19587     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19589     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19593     (
19594       cat <<\_ASBOX
19595 ## ------------------------------------ ##
19596 ## Report this to bug-autoconf@gnu.org. ##
19597 ## ------------------------------------ ##
19598 _ASBOX
19599     ) |
19600       sed "s/^/$as_me: WARNING:     /" >&2
19601     ;;
19602 esac
19603 echo "$as_me:$LINENO: checking for $ac_header" >&5
19604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19606   echo $ECHO_N "(cached) $ECHO_C" >&6
19607 else
19608   eval "$as_ac_Header=$ac_header_preproc"
19609 fi
19610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19612
19613 fi
19614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19615   cat >>confdefs.h <<_ACEOF
19616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19617 _ACEOF
19618
19619 fi
19620
19621 done
19622
19623
19624
19625
19626
19627
19628 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19629 do
19630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19632   echo "$as_me:$LINENO: checking for $ac_header" >&5
19633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19635   echo $ECHO_N "(cached) $ECHO_C" >&6
19636 fi
19637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19639 else
19640   # Is the header compilable?
19641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19643 cat >conftest.$ac_ext <<_ACEOF
19644 #line $LINENO "configure"
19645 /* confdefs.h.  */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h.  */
19650 $ac_includes_default
19651 #include <$ac_header>
19652 _ACEOF
19653 rm -f conftest.$ac_objext
19654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19655   (eval $ac_compile) 2>&5
19656   ac_status=$?
19657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); } &&
19659          { ac_try='test -s conftest.$ac_objext'
19660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661   (eval $ac_try) 2>&5
19662   ac_status=$?
19663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664   (exit $ac_status); }; }; then
19665   ac_header_compiler=yes
19666 else
19667   echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19669
19670 ac_header_compiler=no
19671 fi
19672 rm -f conftest.$ac_objext conftest.$ac_ext
19673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19674 echo "${ECHO_T}$ac_header_compiler" >&6
19675
19676 # Is the header present?
19677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19679 cat >conftest.$ac_ext <<_ACEOF
19680 #line $LINENO "configure"
19681 /* confdefs.h.  */
19682 _ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h.  */
19686 #include <$ac_header>
19687 _ACEOF
19688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19690   ac_status=$?
19691   grep -v '^ *+' conftest.er1 >conftest.err
19692   rm -f conftest.er1
19693   cat conftest.err >&5
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); } >/dev/null; then
19696   if test -s conftest.err; then
19697     ac_cpp_err=$ac_c_preproc_warn_flag
19698   else
19699     ac_cpp_err=
19700   fi
19701 else
19702   ac_cpp_err=yes
19703 fi
19704 if test -z "$ac_cpp_err"; then
19705   ac_header_preproc=yes
19706 else
19707   echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19709
19710   ac_header_preproc=no
19711 fi
19712 rm -f conftest.err conftest.$ac_ext
19713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19714 echo "${ECHO_T}$ac_header_preproc" >&6
19715
19716 # So?  What about this header?
19717 case $ac_header_compiler:$ac_header_preproc in
19718   yes:no )
19719     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19723     (
19724       cat <<\_ASBOX
19725 ## ------------------------------------ ##
19726 ## Report this to bug-autoconf@gnu.org. ##
19727 ## ------------------------------------ ##
19728 _ASBOX
19729     ) |
19730       sed "s/^/$as_me: WARNING:     /" >&2
19731     ;;
19732   no:yes )
19733     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19735     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19739     (
19740       cat <<\_ASBOX
19741 ## ------------------------------------ ##
19742 ## Report this to bug-autoconf@gnu.org. ##
19743 ## ------------------------------------ ##
19744 _ASBOX
19745     ) |
19746       sed "s/^/$as_me: WARNING:     /" >&2
19747     ;;
19748 esac
19749 echo "$as_me:$LINENO: checking for $ac_header" >&5
19750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19752   echo $ECHO_N "(cached) $ECHO_C" >&6
19753 else
19754   eval "$as_ac_Header=$ac_header_preproc"
19755 fi
19756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19758
19759 fi
19760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19761   cat >>confdefs.h <<_ACEOF
19762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19763 _ACEOF
19764
19765 fi
19766
19767 done
19768
19769
19770
19771
19772 for ac_header in dlfcn.h link.h
19773 do
19774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19776   echo "$as_me:$LINENO: checking for $ac_header" >&5
19777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19779   echo $ECHO_N "(cached) $ECHO_C" >&6
19780 fi
19781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19783 else
19784   # Is the header compilable?
19785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19787 cat >conftest.$ac_ext <<_ACEOF
19788 #line $LINENO "configure"
19789 /* confdefs.h.  */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h.  */
19794 $ac_includes_default
19795 #include <$ac_header>
19796 _ACEOF
19797 rm -f conftest.$ac_objext
19798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19799   (eval $ac_compile) 2>&5
19800   ac_status=$?
19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802   (exit $ac_status); } &&
19803          { ac_try='test -s conftest.$ac_objext'
19804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805   (eval $ac_try) 2>&5
19806   ac_status=$?
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); }; }; then
19809   ac_header_compiler=yes
19810 else
19811   echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19813
19814 ac_header_compiler=no
19815 fi
19816 rm -f conftest.$ac_objext conftest.$ac_ext
19817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19818 echo "${ECHO_T}$ac_header_compiler" >&6
19819
19820 # Is the header present?
19821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19823 cat >conftest.$ac_ext <<_ACEOF
19824 #line $LINENO "configure"
19825 /* confdefs.h.  */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h.  */
19830 #include <$ac_header>
19831 _ACEOF
19832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19834   ac_status=$?
19835   grep -v '^ *+' conftest.er1 >conftest.err
19836   rm -f conftest.er1
19837   cat conftest.err >&5
19838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); } >/dev/null; then
19840   if test -s conftest.err; then
19841     ac_cpp_err=$ac_c_preproc_warn_flag
19842   else
19843     ac_cpp_err=
19844   fi
19845 else
19846   ac_cpp_err=yes
19847 fi
19848 if test -z "$ac_cpp_err"; then
19849   ac_header_preproc=yes
19850 else
19851   echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19853
19854   ac_header_preproc=no
19855 fi
19856 rm -f conftest.err conftest.$ac_ext
19857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19858 echo "${ECHO_T}$ac_header_preproc" >&6
19859
19860 # So?  What about this header?
19861 case $ac_header_compiler:$ac_header_preproc in
19862   yes:no )
19863     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19867     (
19868       cat <<\_ASBOX
19869 ## ------------------------------------ ##
19870 ## Report this to bug-autoconf@gnu.org. ##
19871 ## ------------------------------------ ##
19872 _ASBOX
19873     ) |
19874       sed "s/^/$as_me: WARNING:     /" >&2
19875     ;;
19876   no:yes )
19877     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19879     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19883     (
19884       cat <<\_ASBOX
19885 ## ------------------------------------ ##
19886 ## Report this to bug-autoconf@gnu.org. ##
19887 ## ------------------------------------ ##
19888 _ASBOX
19889     ) |
19890       sed "s/^/$as_me: WARNING:     /" >&2
19891     ;;
19892 esac
19893 echo "$as_me:$LINENO: checking for $ac_header" >&5
19894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19896   echo $ECHO_N "(cached) $ECHO_C" >&6
19897 else
19898   eval "$as_ac_Header=$ac_header_preproc"
19899 fi
19900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19902
19903 fi
19904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19905   cat >>confdefs.h <<_ACEOF
19906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19907 _ACEOF
19908
19909 fi
19910
19911 done
19912
19913
19914
19915 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19916 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19917 if test "${ac_cv_c_const+set}" = set; then
19918   echo $ECHO_N "(cached) $ECHO_C" >&6
19919 else
19920   cat >conftest.$ac_ext <<_ACEOF
19921 #line $LINENO "configure"
19922 /* confdefs.h.  */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h.  */
19927
19928 int
19929 main ()
19930 {
19931 /* FIXME: Include the comments suggested by Paul. */
19932 #ifndef __cplusplus
19933   /* Ultrix mips cc rejects this.  */
19934   typedef int charset[2];
19935   const charset x;
19936   /* SunOS 4.1.1 cc rejects this.  */
19937   char const *const *ccp;
19938   char **p;
19939   /* NEC SVR4.0.2 mips cc rejects this.  */
19940   struct point {int x, y;};
19941   static struct point const zero = {0,0};
19942   /* AIX XL C 1.02.0.0 rejects this.
19943      It does not let you subtract one const X* pointer from another in
19944      an arm of an if-expression whose if-part is not a constant
19945      expression */
19946   const char *g = "string";
19947   ccp = &g + (g ? g-g : 0);
19948   /* HPUX 7.0 cc rejects these. */
19949   ++ccp;
19950   p = (char**) ccp;
19951   ccp = (char const *const *) p;
19952   { /* SCO 3.2v4 cc rejects this.  */
19953     char *t;
19954     char const *s = 0 ? (char *) 0 : (char const *) 0;
19955
19956     *t++ = 0;
19957   }
19958   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19959     int x[] = {25, 17};
19960     const int *foo = &x[0];
19961     ++foo;
19962   }
19963   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19964     typedef const int *iptr;
19965     iptr p = 0;
19966     ++p;
19967   }
19968   { /* AIX XL C 1.02.0.0 rejects this saying
19969        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19970     struct s { int j; const int *ap[3]; };
19971     struct s *b; b->j = 5;
19972   }
19973   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19974     const int foo = 10;
19975   }
19976 #endif
19977
19978   ;
19979   return 0;
19980 }
19981 _ACEOF
19982 rm -f conftest.$ac_objext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19984   (eval $ac_compile) 2>&5
19985   ac_status=$?
19986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987   (exit $ac_status); } &&
19988          { ac_try='test -s conftest.$ac_objext'
19989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990   (eval $ac_try) 2>&5
19991   ac_status=$?
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); }; }; then
19994   ac_cv_c_const=yes
19995 else
19996   echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999 ac_cv_c_const=no
20000 fi
20001 rm -f conftest.$ac_objext conftest.$ac_ext
20002 fi
20003 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20004 echo "${ECHO_T}$ac_cv_c_const" >&6
20005 if test $ac_cv_c_const = no; then
20006
20007 cat >>confdefs.h <<\_ACEOF
20008 #define const
20009 _ACEOF
20010
20011 fi
20012
20013 echo "$as_me:$LINENO: checking for inline" >&5
20014 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20015 if test "${ac_cv_c_inline+set}" = set; then
20016   echo $ECHO_N "(cached) $ECHO_C" >&6
20017 else
20018   ac_cv_c_inline=no
20019 for ac_kw in inline __inline__ __inline; do
20020   cat >conftest.$ac_ext <<_ACEOF
20021 #line $LINENO "configure"
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027 #ifndef __cplusplus
20028 typedef int foo_t;
20029 static $ac_kw foo_t static_foo () {return 0; }
20030 $ac_kw foo_t foo () {return 0; }
20031 #endif
20032
20033 _ACEOF
20034 rm -f conftest.$ac_objext
20035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20036   (eval $ac_compile) 2>&5
20037   ac_status=$?
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); } &&
20040          { ac_try='test -s conftest.$ac_objext'
20041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042   (eval $ac_try) 2>&5
20043   ac_status=$?
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); }; }; then
20046   ac_cv_c_inline=$ac_kw; break
20047 else
20048   echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20050
20051 fi
20052 rm -f conftest.$ac_objext conftest.$ac_ext
20053 done
20054
20055 fi
20056 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20057 echo "${ECHO_T}$ac_cv_c_inline" >&6
20058 case $ac_cv_c_inline in
20059   inline | yes) ;;
20060   no)
20061 cat >>confdefs.h <<\_ACEOF
20062 #define inline
20063 _ACEOF
20064  ;;
20065   *)  cat >>confdefs.h <<_ACEOF
20066 #define inline $ac_cv_c_inline
20067 _ACEOF
20068  ;;
20069 esac
20070
20071
20072 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20073 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20074 if test "${ac_cv_c_bigendian+set}" = set; then
20075   echo $ECHO_N "(cached) $ECHO_C" >&6
20076 else
20077   # See if sys/param.h defines the BYTE_ORDER macro.
20078 cat >conftest.$ac_ext <<_ACEOF
20079 #line $LINENO "configure"
20080 /* confdefs.h.  */
20081 _ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h.  */
20085 #include <sys/types.h>
20086 #include <sys/param.h>
20087
20088 int
20089 main ()
20090 {
20091 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20092  bogus endian macros
20093 #endif
20094
20095   ;
20096   return 0;
20097 }
20098 _ACEOF
20099 rm -f conftest.$ac_objext
20100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20101   (eval $ac_compile) 2>&5
20102   ac_status=$?
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); } &&
20105          { ac_try='test -s conftest.$ac_objext'
20106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107   (eval $ac_try) 2>&5
20108   ac_status=$?
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); }; }; then
20111   # It does; now see whether it defined to BIG_ENDIAN or not.
20112 cat >conftest.$ac_ext <<_ACEOF
20113 #line $LINENO "configure"
20114 /* confdefs.h.  */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h.  */
20119 #include <sys/types.h>
20120 #include <sys/param.h>
20121
20122 int
20123 main ()
20124 {
20125 #if BYTE_ORDER != BIG_ENDIAN
20126  not big endian
20127 #endif
20128
20129   ;
20130   return 0;
20131 }
20132 _ACEOF
20133 rm -f conftest.$ac_objext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20135   (eval $ac_compile) 2>&5
20136   ac_status=$?
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); } &&
20139          { ac_try='test -s conftest.$ac_objext'
20140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141   (eval $ac_try) 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); }; }; then
20145   ac_cv_c_bigendian=yes
20146 else
20147   echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20149
20150 ac_cv_c_bigendian=no
20151 fi
20152 rm -f conftest.$ac_objext conftest.$ac_ext
20153 else
20154   echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20156
20157 # It does not; compile a test program.
20158 if test "$cross_compiling" = yes; then
20159   # try to guess the endianness by grepping values into an object file
20160   ac_cv_c_bigendian=unknown
20161   cat >conftest.$ac_ext <<_ACEOF
20162 #line $LINENO "configure"
20163 /* confdefs.h.  */
20164 _ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h.  */
20168 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20169 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20170 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20171 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20172 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20173 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20174 int
20175 main ()
20176 {
20177  _ascii (); _ebcdic ();
20178   ;
20179   return 0;
20180 }
20181 _ACEOF
20182 rm -f conftest.$ac_objext
20183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20184   (eval $ac_compile) 2>&5
20185   ac_status=$?
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); } &&
20188          { ac_try='test -s conftest.$ac_objext'
20189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190   (eval $ac_try) 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); }; }; then
20194   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20195   ac_cv_c_bigendian=yes
20196 fi
20197 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20198   if test "$ac_cv_c_bigendian" = unknown; then
20199     ac_cv_c_bigendian=no
20200   else
20201     # finding both strings is unlikely to happen, but who knows?
20202     ac_cv_c_bigendian=unknown
20203   fi
20204 fi
20205 else
20206   echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20208
20209 fi
20210 rm -f conftest.$ac_objext conftest.$ac_ext
20211 else
20212   cat >conftest.$ac_ext <<_ACEOF
20213 #line $LINENO "configure"
20214 /* confdefs.h.  */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h.  */
20219 int
20220 main ()
20221 {
20222   /* Are we little or big endian?  From Harbison&Steele.  */
20223   union
20224   {
20225     long l;
20226     char c[sizeof (long)];
20227   } u;
20228   u.l = 1;
20229   exit (u.c[sizeof (long) - 1] == 1);
20230 }
20231 _ACEOF
20232 rm -f conftest$ac_exeext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20234   (eval $ac_link) 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239   (eval $ac_try) 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; }; then
20243   ac_cv_c_bigendian=no
20244 else
20245   echo "$as_me: program exited with status $ac_status" >&5
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249 ( exit $ac_status )
20250 ac_cv_c_bigendian=yes
20251 fi
20252 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20253 fi
20254 fi
20255 rm -f conftest.$ac_objext conftest.$ac_ext
20256 fi
20257 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20258 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20259 case $ac_cv_c_bigendian in
20260   yes)
20261     cat >>confdefs.h <<\_ACEOF
20262 #define ENDIAN_BIG 1
20263 _ACEOF
20264  ;;
20265   no)
20266     cat >>confdefs.h <<\_ACEOF
20267 #define ENDIAN_LITTLE 1
20268 _ACEOF
20269  ;;
20270   *)
20271     { { echo "$as_me:$LINENO: error: unknown endianness
20272 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20273 echo "$as_me: error: unknown endianness
20274 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20275    { (exit 1); exit 1; }; } ;;
20276 esac
20277
20278
20279 echo "$as_me:$LINENO: checking for pid_t" >&5
20280 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20281 if test "${ac_cv_type_pid_t+set}" = set; then
20282   echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284   cat >conftest.$ac_ext <<_ACEOF
20285 #line $LINENO "configure"
20286 /* confdefs.h.  */
20287 _ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h.  */
20291 $ac_includes_default
20292 int
20293 main ()
20294 {
20295 if ((pid_t *) 0)
20296   return 0;
20297 if (sizeof (pid_t))
20298   return 0;
20299   ;
20300   return 0;
20301 }
20302 _ACEOF
20303 rm -f conftest.$ac_objext
20304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20305   (eval $ac_compile) 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); } &&
20309          { ac_try='test -s conftest.$ac_objext'
20310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311   (eval $ac_try) 2>&5
20312   ac_status=$?
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); }; }; then
20315   ac_cv_type_pid_t=yes
20316 else
20317   echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20319
20320 ac_cv_type_pid_t=no
20321 fi
20322 rm -f conftest.$ac_objext conftest.$ac_ext
20323 fi
20324 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20325 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20326 if test $ac_cv_type_pid_t = yes; then
20327   :
20328 else
20329
20330 cat >>confdefs.h <<_ACEOF
20331 #define pid_t int
20332 _ACEOF
20333
20334 fi
20335
20336 echo "$as_me:$LINENO: checking for size_t" >&5
20337 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20338 if test "${ac_cv_type_size_t+set}" = set; then
20339   echo $ECHO_N "(cached) $ECHO_C" >&6
20340 else
20341   cat >conftest.$ac_ext <<_ACEOF
20342 #line $LINENO "configure"
20343 /* confdefs.h.  */
20344 _ACEOF
20345 cat confdefs.h >>conftest.$ac_ext
20346 cat >>conftest.$ac_ext <<_ACEOF
20347 /* end confdefs.h.  */
20348 $ac_includes_default
20349 int
20350 main ()
20351 {
20352 if ((size_t *) 0)
20353   return 0;
20354 if (sizeof (size_t))
20355   return 0;
20356   ;
20357   return 0;
20358 }
20359 _ACEOF
20360 rm -f conftest.$ac_objext
20361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20362   (eval $ac_compile) 2>&5
20363   ac_status=$?
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); } &&
20366          { ac_try='test -s conftest.$ac_objext'
20367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368   (eval $ac_try) 2>&5
20369   ac_status=$?
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); }; }; then
20372   ac_cv_type_size_t=yes
20373 else
20374   echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20376
20377 ac_cv_type_size_t=no
20378 fi
20379 rm -f conftest.$ac_objext conftest.$ac_ext
20380 fi
20381 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20382 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20383 if test $ac_cv_type_size_t = yes; then
20384   :
20385 else
20386
20387 cat >>confdefs.h <<_ACEOF
20388 #define size_t unsigned
20389 _ACEOF
20390
20391 fi
20392
20393 echo "$as_me:$LINENO: checking for int64_t" >&5
20394 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20395 if test "${ac_cv_type_int64_t+set}" = set; then
20396   echo $ECHO_N "(cached) $ECHO_C" >&6
20397 else
20398   cat >conftest.$ac_ext <<_ACEOF
20399 #line $LINENO "configure"
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405 $ac_includes_default
20406 int
20407 main ()
20408 {
20409 if ((int64_t *) 0)
20410   return 0;
20411 if (sizeof (int64_t))
20412   return 0;
20413   ;
20414   return 0;
20415 }
20416 _ACEOF
20417 rm -f conftest.$ac_objext
20418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20419   (eval $ac_compile) 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); } &&
20423          { ac_try='test -s conftest.$ac_objext'
20424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425   (eval $ac_try) 2>&5
20426   ac_status=$?
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); }; }; then
20429   ac_cv_type_int64_t=yes
20430 else
20431   echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20433
20434 ac_cv_type_int64_t=no
20435 fi
20436 rm -f conftest.$ac_objext conftest.$ac_ext
20437 fi
20438 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20439 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20440 if test $ac_cv_type_int64_t = yes; then
20441
20442 cat >>confdefs.h <<_ACEOF
20443 #define HAVE_INT64_T 1
20444 _ACEOF
20445
20446
20447 else
20448   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20449 echo "$as_me: error: Type int64_t required but not found" >&2;}
20450    { (exit 1); exit 1; }; }
20451 fi
20452
20453 echo "$as_me:$LINENO: checking for uint64_t" >&5
20454 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20455 if test "${ac_cv_type_uint64_t+set}" = set; then
20456   echo $ECHO_N "(cached) $ECHO_C" >&6
20457 else
20458   cat >conftest.$ac_ext <<_ACEOF
20459 #line $LINENO "configure"
20460 /* confdefs.h.  */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h.  */
20465 $ac_includes_default
20466 int
20467 main ()
20468 {
20469 if ((uint64_t *) 0)
20470   return 0;
20471 if (sizeof (uint64_t))
20472   return 0;
20473   ;
20474   return 0;
20475 }
20476 _ACEOF
20477 rm -f conftest.$ac_objext
20478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20479   (eval $ac_compile) 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); } &&
20483          { ac_try='test -s conftest.$ac_objext'
20484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485   (eval $ac_try) 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); }; }; then
20489   ac_cv_type_uint64_t=yes
20490 else
20491   echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20493
20494 ac_cv_type_uint64_t=no
20495 fi
20496 rm -f conftest.$ac_objext conftest.$ac_ext
20497 fi
20498 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20499 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20500 if test $ac_cv_type_uint64_t = yes; then
20501
20502 cat >>confdefs.h <<_ACEOF
20503 #define HAVE_UINT64_T 1
20504 _ACEOF
20505
20506
20507 else
20508   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20509 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20510    { (exit 1); exit 1; }; }
20511 fi
20512
20513 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20514 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20515 if test "${ac_cv_header_time+set}" = set; then
20516   echo $ECHO_N "(cached) $ECHO_C" >&6
20517 else
20518   cat >conftest.$ac_ext <<_ACEOF
20519 #line $LINENO "configure"
20520 /* confdefs.h.  */
20521 _ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h.  */
20525 #include <sys/types.h>
20526 #include <sys/time.h>
20527 #include <time.h>
20528
20529 int
20530 main ()
20531 {
20532 if ((struct tm *) 0)
20533 return 0;
20534   ;
20535   return 0;
20536 }
20537 _ACEOF
20538 rm -f conftest.$ac_objext
20539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20540   (eval $ac_compile) 2>&5
20541   ac_status=$?
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); } &&
20544          { ac_try='test -s conftest.$ac_objext'
20545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546   (eval $ac_try) 2>&5
20547   ac_status=$?
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); }; }; then
20550   ac_cv_header_time=yes
20551 else
20552   echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20554
20555 ac_cv_header_time=no
20556 fi
20557 rm -f conftest.$ac_objext conftest.$ac_ext
20558 fi
20559 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20560 echo "${ECHO_T}$ac_cv_header_time" >&6
20561 if test $ac_cv_header_time = yes; then
20562
20563 cat >>confdefs.h <<\_ACEOF
20564 #define TIME_WITH_SYS_TIME 1
20565 _ACEOF
20566
20567 fi
20568
20569 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20570 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20571 if test "${ac_cv_struct_tm+set}" = set; then
20572   echo $ECHO_N "(cached) $ECHO_C" >&6
20573 else
20574   cat >conftest.$ac_ext <<_ACEOF
20575 #line $LINENO "configure"
20576 /* confdefs.h.  */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h.  */
20581 #include <sys/types.h>
20582 #include <time.h>
20583
20584 int
20585 main ()
20586 {
20587 struct tm *tp; tp->tm_sec;
20588   ;
20589   return 0;
20590 }
20591 _ACEOF
20592 rm -f conftest.$ac_objext
20593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20594   (eval $ac_compile) 2>&5
20595   ac_status=$?
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); } &&
20598          { ac_try='test -s conftest.$ac_objext'
20599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600   (eval $ac_try) 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); }; }; then
20604   ac_cv_struct_tm=time.h
20605 else
20606   echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20608
20609 ac_cv_struct_tm=sys/time.h
20610 fi
20611 rm -f conftest.$ac_objext conftest.$ac_ext
20612 fi
20613 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20614 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20615 if test $ac_cv_struct_tm = sys/time.h; then
20616
20617 cat >>confdefs.h <<\_ACEOF
20618 #define TM_IN_SYS_TIME 1
20619 _ACEOF
20620
20621 fi
20622
20623
20624 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20625 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20626 if test "${ac_cv_cxx_namespaces+set}" = set; then
20627   echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629
20630
20631  ac_ext=cc
20632 ac_cpp='$CXXCPP $CPPFLAGS'
20633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20636
20637  cat >conftest.$ac_ext <<_ACEOF
20638 #line $LINENO "configure"
20639 /* confdefs.h.  */
20640 _ACEOF
20641 cat confdefs.h >>conftest.$ac_ext
20642 cat >>conftest.$ac_ext <<_ACEOF
20643 /* end confdefs.h.  */
20644 namespace Outer { namespace Inner { int i = 0; }}
20645 int
20646 main ()
20647 {
20648 using namespace Outer::Inner; return i;
20649   ;
20650   return 0;
20651 }
20652 _ACEOF
20653 rm -f conftest.$ac_objext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20655   (eval $ac_compile) 2>&5
20656   ac_status=$?
20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658   (exit $ac_status); } &&
20659          { ac_try='test -s conftest.$ac_objext'
20660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661   (eval $ac_try) 2>&5
20662   ac_status=$?
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); }; }; then
20665   ac_cv_cxx_namespaces=yes
20666 else
20667   echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 ac_cv_cxx_namespaces=no
20671 fi
20672 rm -f conftest.$ac_objext conftest.$ac_ext
20673  ac_ext=c
20674 ac_cpp='$CPP $CPPFLAGS'
20675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20678
20679
20680 fi
20681 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20682 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20683 if test "$ac_cv_cxx_namespaces" = yes; then
20684
20685 cat >>confdefs.h <<\_ACEOF
20686 #define HAVE_NAMESPACES
20687 _ACEOF
20688
20689 fi
20690
20691 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20692 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20693 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20694   echo $ECHO_N "(cached) $ECHO_C" >&6
20695 else
20696
20697
20698
20699   ac_ext=cc
20700 ac_cpp='$CXXCPP $CPPFLAGS'
20701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20704
20705   cat >conftest.$ac_ext <<_ACEOF
20706 #line $LINENO "configure"
20707 /* confdefs.h.  */
20708 _ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h.  */
20712 #include <ext/hash_map>
20713 #ifdef HAVE_NAMESPACES
20714 using namespace std;
20715 #endif
20716 int
20717 main ()
20718 {
20719 hash_map<int, int> t; return 0;
20720   ;
20721   return 0;
20722 }
20723 _ACEOF
20724 rm -f conftest.$ac_objext
20725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20726   (eval $ac_compile) 2>&5
20727   ac_status=$?
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); } &&
20730          { ac_try='test -s conftest.$ac_objext'
20731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732   (eval $ac_try) 2>&5
20733   ac_status=$?
20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735   (exit $ac_status); }; }; then
20736   ac_cv_cxx_have_ext_hash_map=std
20737 else
20738   echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20740
20741 ac_cv_cxx_have_ext_hash_map=no
20742 fi
20743 rm -f conftest.$ac_objext conftest.$ac_ext
20744   cat >conftest.$ac_ext <<_ACEOF
20745 #line $LINENO "configure"
20746 /* confdefs.h.  */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h.  */
20751 #include <ext/hash_map>
20752 #ifdef HAVE_NAMESPACES
20753 using namespace __gnu_cxx;
20754 #endif
20755 int
20756 main ()
20757 {
20758 hash_map<int, int> t; return 0;
20759   ;
20760   return 0;
20761 }
20762 _ACEOF
20763 rm -f conftest.$ac_objext
20764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20765   (eval $ac_compile) 2>&5
20766   ac_status=$?
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); } &&
20769          { ac_try='test -s conftest.$ac_objext'
20770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771   (eval $ac_try) 2>&5
20772   ac_status=$?
20773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774   (exit $ac_status); }; }; then
20775   ac_cv_cxx_have_ext_hash_map=gnu
20776 else
20777   echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20779
20780 ac_cv_cxx_have_ext_hash_map=no
20781 fi
20782 rm -f conftest.$ac_objext conftest.$ac_ext
20783   ac_ext=c
20784 ac_cpp='$CPP $CPPFLAGS'
20785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20788
20789
20790 fi
20791 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20792 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20793 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20794
20795 cat >>confdefs.h <<\_ACEOF
20796 #define HAVE_STD_EXT_HASH_MAP
20797 _ACEOF
20798
20799 fi
20800 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20801
20802 cat >>confdefs.h <<\_ACEOF
20803 #define HAVE_GNU_EXT_HASH_MAP
20804 _ACEOF
20805
20806 fi
20807
20808 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20809 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20810 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20811   echo $ECHO_N "(cached) $ECHO_C" >&6
20812 else
20813
20814
20815
20816   ac_ext=cc
20817 ac_cpp='$CXXCPP $CPPFLAGS'
20818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20821
20822   cat >conftest.$ac_ext <<_ACEOF
20823 #line $LINENO "configure"
20824 /* confdefs.h.  */
20825 _ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h.  */
20829 #include <ext/hash_set>
20830 #ifdef HAVE_NAMESPACES
20831 using namespace std;
20832 #endif
20833 int
20834 main ()
20835 {
20836 hash_set<int> t; return 0;
20837   ;
20838   return 0;
20839 }
20840 _ACEOF
20841 rm -f conftest.$ac_objext
20842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20843   (eval $ac_compile) 2>&5
20844   ac_status=$?
20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   (exit $ac_status); } &&
20847          { ac_try='test -s conftest.$ac_objext'
20848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849   (eval $ac_try) 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); }; }; then
20853   ac_cv_cxx_have_ext_hash_set=std
20854 else
20855   echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20857
20858 ac_cv_cxx_have_ext_hash_set=no
20859 fi
20860 rm -f conftest.$ac_objext conftest.$ac_ext
20861   cat >conftest.$ac_ext <<_ACEOF
20862 #line $LINENO "configure"
20863 /* confdefs.h.  */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h.  */
20868 #include <ext/hash_set>
20869 #ifdef HAVE_NAMESPACES
20870 using namespace __gnu_cxx;
20871 #endif
20872 int
20873 main ()
20874 {
20875 hash_set<int> t; return 0;
20876   ;
20877   return 0;
20878 }
20879 _ACEOF
20880 rm -f conftest.$ac_objext
20881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20882   (eval $ac_compile) 2>&5
20883   ac_status=$?
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } &&
20886          { ac_try='test -s conftest.$ac_objext'
20887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888   (eval $ac_try) 2>&5
20889   ac_status=$?
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); }; }; then
20892   ac_cv_cxx_have_ext_hash_set=gnu
20893 else
20894   echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20896
20897 ac_cv_cxx_have_ext_hash_set=no
20898 fi
20899 rm -f conftest.$ac_objext conftest.$ac_ext
20900   ac_ext=c
20901 ac_cpp='$CPP $CPPFLAGS'
20902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20905
20906
20907 fi
20908 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20909 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20910 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20911
20912 cat >>confdefs.h <<\_ACEOF
20913 #define HAVE_STD_EXT_HASH_SET
20914 _ACEOF
20915
20916 fi
20917 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20918
20919 cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_GNU_EXT_HASH_SET
20921 _ACEOF
20922
20923 fi
20924
20925 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20926 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20927 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20928   echo $ECHO_N "(cached) $ECHO_C" >&6
20929 else
20930
20931
20932
20933   ac_ext=cc
20934 ac_cpp='$CXXCPP $CPPFLAGS'
20935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20938
20939   cat >conftest.$ac_ext <<_ACEOF
20940 #line $LINENO "configure"
20941 /* confdefs.h.  */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h.  */
20946 #include <ext/slist>
20947 #ifdef HAVE_NAMESPACES
20948 using namespace std;
20949 #endif
20950 int
20951 main ()
20952 {
20953 slist<int> s; return 0;
20954   ;
20955   return 0;
20956 }
20957 _ACEOF
20958 rm -f conftest.$ac_objext
20959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20960   (eval $ac_compile) 2>&5
20961   ac_status=$?
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); } &&
20964          { ac_try='test -s conftest.$ac_objext'
20965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966   (eval $ac_try) 2>&5
20967   ac_status=$?
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); }; }; then
20970   ac_cv_cxx_have_ext_slist=std
20971 else
20972   echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20974
20975 ac_cv_cxx_have_ext_slist=no
20976 fi
20977 rm -f conftest.$ac_objext conftest.$ac_ext
20978   cat >conftest.$ac_ext <<_ACEOF
20979 #line $LINENO "configure"
20980 /* confdefs.h.  */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h.  */
20985 #include <ext/slist>
20986 #ifdef HAVE_NAMESPACES
20987 using namespace __gnu_cxx;
20988 #endif
20989 int
20990 main ()
20991 {
20992 slist<int> s; return 0;
20993   ;
20994   return 0;
20995 }
20996 _ACEOF
20997 rm -f conftest.$ac_objext
20998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20999   (eval $ac_compile) 2>&5
21000   ac_status=$?
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); } &&
21003          { ac_try='test -s conftest.$ac_objext'
21004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005   (eval $ac_try) 2>&5
21006   ac_status=$?
21007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008   (exit $ac_status); }; }; then
21009   ac_cv_cxx_have_ext_slist=gnu
21010 else
21011   echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21013
21014 ac_cv_cxx_have_ext_slist=no
21015 fi
21016 rm -f conftest.$ac_objext conftest.$ac_ext
21017
21018   ac_ext=c
21019 ac_cpp='$CPP $CPPFLAGS'
21020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023
21024
21025 fi
21026 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21027 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21028 if test "$ac_cv_cxx_have_ext_slist" = std; then
21029
21030 cat >>confdefs.h <<\_ACEOF
21031 #define HAVE_EXT_SLIST std
21032 _ACEOF
21033
21034 fi
21035 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21036
21037 cat >>confdefs.h <<\_ACEOF
21038 #define HAVE_EXT_SLIST gnu
21039 _ACEOF
21040
21041 fi
21042
21043 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21044 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21045 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21046   echo $ECHO_N "(cached) $ECHO_C" >&6
21047 else
21048
21049
21050
21051   ac_ext=cc
21052 ac_cpp='$CXXCPP $CPPFLAGS'
21053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21056
21057   cat >conftest.$ac_ext <<_ACEOF
21058 #line $LINENO "configure"
21059 /* confdefs.h.  */
21060 _ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h.  */
21064 #include <iterator>
21065 #ifdef HAVE_NAMESPACES
21066 using namespace std;
21067 #endif
21068 int
21069 main ()
21070 {
21071 iterator<int,int,int> t; return 0;
21072   ;
21073   return 0;
21074 }
21075 _ACEOF
21076 rm -f conftest.$ac_objext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21078   (eval $ac_compile) 2>&5
21079   ac_status=$?
21080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081   (exit $ac_status); } &&
21082          { ac_try='test -s conftest.$ac_objext'
21083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084   (eval $ac_try) 2>&5
21085   ac_status=$?
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); }; }; then
21088   ac_cv_cxx_have_std_iterator=yes
21089 else
21090   echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.$ac_ext >&5
21092
21093 ac_cv_cxx_have_std_iterator=no
21094 fi
21095 rm -f conftest.$ac_objext conftest.$ac_ext
21096   ac_ext=c
21097 ac_cpp='$CPP $CPPFLAGS'
21098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21101
21102
21103 fi
21104 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21105 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21106 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21107
21108 cat >>confdefs.h <<\_ACEOF
21109 #define HAVE_STD_ITERATOR
21110 _ACEOF
21111
21112 fi
21113
21114 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21115 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21116 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21117   echo $ECHO_N "(cached) $ECHO_C" >&6
21118 else
21119
21120
21121
21122   ac_ext=cc
21123 ac_cpp='$CXXCPP $CPPFLAGS'
21124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21127
21128   cat >conftest.$ac_ext <<_ACEOF
21129 #line $LINENO "configure"
21130 /* confdefs.h.  */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h.  */
21135 #include <iterator>
21136 #ifdef HAVE_NAMESPACES
21137 using namespace std;
21138 #endif
21139 int
21140 main ()
21141 {
21142 bidirectional_iterator<int,int> t; return 0;
21143   ;
21144   return 0;
21145 }
21146 _ACEOF
21147 rm -f conftest.$ac_objext
21148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21149   (eval $ac_compile) 2>&5
21150   ac_status=$?
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); } &&
21153          { ac_try='test -s conftest.$ac_objext'
21154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155   (eval $ac_try) 2>&5
21156   ac_status=$?
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); }; }; then
21159   ac_cv_cxx_have_bi_iterator=yes
21160 else
21161   echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21163
21164 ac_cv_cxx_have_bi_iterator=no
21165 fi
21166 rm -f conftest.$ac_objext conftest.$ac_ext
21167   ac_ext=c
21168 ac_cpp='$CPP $CPPFLAGS'
21169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21172
21173
21174 fi
21175 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21176 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21177 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21178
21179 cat >>confdefs.h <<\_ACEOF
21180 #define HAVE_BI_ITERATOR
21181 _ACEOF
21182
21183 fi
21184
21185 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21186 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21187 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21188   echo $ECHO_N "(cached) $ECHO_C" >&6
21189 else
21190
21191
21192
21193   ac_ext=cc
21194 ac_cpp='$CXXCPP $CPPFLAGS'
21195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21198
21199   cat >conftest.$ac_ext <<_ACEOF
21200 #line $LINENO "configure"
21201 /* confdefs.h.  */
21202 _ACEOF
21203 cat confdefs.h >>conftest.$ac_ext
21204 cat >>conftest.$ac_ext <<_ACEOF
21205 /* end confdefs.h.  */
21206 #include <iterator>
21207 #ifdef HAVE_NAMESPACES
21208 using namespace std;
21209 #endif
21210 int
21211 main ()
21212 {
21213 forward_iterator<int,int> t; return 0;
21214   ;
21215   return 0;
21216 }
21217 _ACEOF
21218 rm -f conftest.$ac_objext
21219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21220   (eval $ac_compile) 2>&5
21221   ac_status=$?
21222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223   (exit $ac_status); } &&
21224          { ac_try='test -s conftest.$ac_objext'
21225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226   (eval $ac_try) 2>&5
21227   ac_status=$?
21228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229   (exit $ac_status); }; }; then
21230   ac_cv_cxx_have_fwd_iterator=yes
21231 else
21232   echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21234
21235 ac_cv_cxx_have_fwd_iterator=no
21236 fi
21237 rm -f conftest.$ac_objext conftest.$ac_ext
21238   ac_ext=c
21239 ac_cpp='$CPP $CPPFLAGS'
21240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21243
21244
21245 fi
21246 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21247 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21248 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21249
21250 cat >>confdefs.h <<\_ACEOF
21251 #define HAVE_FWD_ITERATOR
21252 _ACEOF
21253
21254 fi
21255
21256
21257 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21258 # for constant arguments.  Useless!
21259 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21260 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21261 if test "${ac_cv_working_alloca_h+set}" = set; then
21262   echo $ECHO_N "(cached) $ECHO_C" >&6
21263 else
21264   cat >conftest.$ac_ext <<_ACEOF
21265 #line $LINENO "configure"
21266 /* confdefs.h.  */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h.  */
21271 #include <alloca.h>
21272 int
21273 main ()
21274 {
21275 char *p = (char *) alloca (2 * sizeof (int));
21276   ;
21277   return 0;
21278 }
21279 _ACEOF
21280 rm -f conftest.$ac_objext conftest$ac_exeext
21281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21282   (eval $ac_link) 2>&5
21283   ac_status=$?
21284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285   (exit $ac_status); } &&
21286          { ac_try='test -s conftest$ac_exeext'
21287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288   (eval $ac_try) 2>&5
21289   ac_status=$?
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); }; }; then
21292   ac_cv_working_alloca_h=yes
21293 else
21294   echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21296
21297 ac_cv_working_alloca_h=no
21298 fi
21299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21300 fi
21301 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21302 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21303 if test $ac_cv_working_alloca_h = yes; then
21304
21305 cat >>confdefs.h <<\_ACEOF
21306 #define HAVE_ALLOCA_H 1
21307 _ACEOF
21308
21309 fi
21310
21311 echo "$as_me:$LINENO: checking for alloca" >&5
21312 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21313 if test "${ac_cv_func_alloca_works+set}" = set; then
21314   echo $ECHO_N "(cached) $ECHO_C" >&6
21315 else
21316   cat >conftest.$ac_ext <<_ACEOF
21317 #line $LINENO "configure"
21318 /* confdefs.h.  */
21319 _ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h.  */
21323 #ifdef __GNUC__
21324 # define alloca __builtin_alloca
21325 #else
21326 # ifdef _MSC_VER
21327 #  include <malloc.h>
21328 #  define alloca _alloca
21329 # else
21330 #  if HAVE_ALLOCA_H
21331 #   include <alloca.h>
21332 #  else
21333 #   ifdef _AIX
21334  #pragma alloca
21335 #   else
21336 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21337 char *alloca ();
21338 #    endif
21339 #   endif
21340 #  endif
21341 # endif
21342 #endif
21343
21344 int
21345 main ()
21346 {
21347 char *p = (char *) alloca (1);
21348   ;
21349   return 0;
21350 }
21351 _ACEOF
21352 rm -f conftest.$ac_objext conftest$ac_exeext
21353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21354   (eval $ac_link) 2>&5
21355   ac_status=$?
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); } &&
21358          { ac_try='test -s conftest$ac_exeext'
21359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360   (eval $ac_try) 2>&5
21361   ac_status=$?
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); }; }; then
21364   ac_cv_func_alloca_works=yes
21365 else
21366   echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21368
21369 ac_cv_func_alloca_works=no
21370 fi
21371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21372 fi
21373 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21374 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21375
21376 if test $ac_cv_func_alloca_works = yes; then
21377
21378 cat >>confdefs.h <<\_ACEOF
21379 #define HAVE_ALLOCA 1
21380 _ACEOF
21381
21382 else
21383   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21384 # that cause trouble.  Some versions do not even contain alloca or
21385 # contain a buggy version.  If you still want to use their alloca,
21386 # use ar to extract alloca.o from them instead of compiling alloca.c.
21387
21388 ALLOCA=alloca.$ac_objext
21389
21390 cat >>confdefs.h <<\_ACEOF
21391 #define C_ALLOCA 1
21392 _ACEOF
21393
21394
21395 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21396 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21397 if test "${ac_cv_os_cray+set}" = set; then
21398   echo $ECHO_N "(cached) $ECHO_C" >&6
21399 else
21400   cat >conftest.$ac_ext <<_ACEOF
21401 #line $LINENO "configure"
21402 /* confdefs.h.  */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h.  */
21407 #if defined(CRAY) && ! defined(CRAY2)
21408 webecray
21409 #else
21410 wenotbecray
21411 #endif
21412
21413 _ACEOF
21414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21415   $EGREP "webecray" >/dev/null 2>&1; then
21416   ac_cv_os_cray=yes
21417 else
21418   ac_cv_os_cray=no
21419 fi
21420 rm -f conftest*
21421
21422 fi
21423 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21424 echo "${ECHO_T}$ac_cv_os_cray" >&6
21425 if test $ac_cv_os_cray = yes; then
21426   for ac_func in _getb67 GETB67 getb67; do
21427     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21428 echo "$as_me:$LINENO: checking for $ac_func" >&5
21429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21430 if eval "test \"\${$as_ac_var+set}\" = set"; then
21431   echo $ECHO_N "(cached) $ECHO_C" >&6
21432 else
21433   cat >conftest.$ac_ext <<_ACEOF
21434 #line $LINENO "configure"
21435 /* confdefs.h.  */
21436 _ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h.  */
21440 /* System header to define __stub macros and hopefully few prototypes,
21441     which can conflict with char $ac_func (); below.
21442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21443     <limits.h> exists even on freestanding compilers.  */
21444 #ifdef __STDC__
21445 # include <limits.h>
21446 #else
21447 # include <assert.h>
21448 #endif
21449 /* Override any gcc2 internal prototype to avoid an error.  */
21450 #ifdef __cplusplus
21451 extern "C"
21452 {
21453 #endif
21454 /* We use char because int might match the return type of a gcc2
21455    builtin and then its argument prototype would still apply.  */
21456 char $ac_func ();
21457 /* The GNU C library defines this for functions which it implements
21458     to always fail with ENOSYS.  Some functions are actually named
21459     something starting with __ and the normal name is an alias.  */
21460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21461 choke me
21462 #else
21463 char (*f) () = $ac_func;
21464 #endif
21465 #ifdef __cplusplus
21466 }
21467 #endif
21468
21469 int
21470 main ()
21471 {
21472 return f != $ac_func;
21473   ;
21474   return 0;
21475 }
21476 _ACEOF
21477 rm -f conftest.$ac_objext conftest$ac_exeext
21478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21479   (eval $ac_link) 2>&5
21480   ac_status=$?
21481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482   (exit $ac_status); } &&
21483          { ac_try='test -s conftest$ac_exeext'
21484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21485   (eval $ac_try) 2>&5
21486   ac_status=$?
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); }; }; then
21489   eval "$as_ac_var=yes"
21490 else
21491   echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21493
21494 eval "$as_ac_var=no"
21495 fi
21496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21497 fi
21498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21500 if test `eval echo '${'$as_ac_var'}'` = yes; then
21501
21502 cat >>confdefs.h <<_ACEOF
21503 #define CRAY_STACKSEG_END $ac_func
21504 _ACEOF
21505
21506     break
21507 fi
21508
21509   done
21510 fi
21511
21512 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21513 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21514 if test "${ac_cv_c_stack_direction+set}" = set; then
21515   echo $ECHO_N "(cached) $ECHO_C" >&6
21516 else
21517   if test "$cross_compiling" = yes; then
21518   ac_cv_c_stack_direction=0
21519 else
21520   cat >conftest.$ac_ext <<_ACEOF
21521 #line $LINENO "configure"
21522 /* confdefs.h.  */
21523 _ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h.  */
21527 int
21528 find_stack_direction ()
21529 {
21530   static char *addr = 0;
21531   auto char dummy;
21532   if (addr == 0)
21533     {
21534       addr = &dummy;
21535       return find_stack_direction ();
21536     }
21537   else
21538     return (&dummy > addr) ? 1 : -1;
21539 }
21540
21541 int
21542 main ()
21543 {
21544   exit (find_stack_direction () < 0);
21545 }
21546 _ACEOF
21547 rm -f conftest$ac_exeext
21548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21549   (eval $ac_link) 2>&5
21550   ac_status=$?
21551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21554   (eval $ac_try) 2>&5
21555   ac_status=$?
21556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557   (exit $ac_status); }; }; then
21558   ac_cv_c_stack_direction=1
21559 else
21560   echo "$as_me: program exited with status $ac_status" >&5
21561 echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21563
21564 ( exit $ac_status )
21565 ac_cv_c_stack_direction=-1
21566 fi
21567 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21568 fi
21569 fi
21570 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21571 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21572
21573 cat >>confdefs.h <<_ACEOF
21574 #define STACK_DIRECTION $ac_cv_c_stack_direction
21575 _ACEOF
21576
21577
21578 fi
21579
21580 if test $ac_cv_c_compiler_gnu = yes; then
21581     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21582 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21583 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21584   echo $ECHO_N "(cached) $ECHO_C" >&6
21585 else
21586     ac_pattern="Autoconf.*'x'"
21587   cat >conftest.$ac_ext <<_ACEOF
21588 #line $LINENO "configure"
21589 /* confdefs.h.  */
21590 _ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h.  */
21594 #include <sgtty.h>
21595 Autoconf TIOCGETP
21596 _ACEOF
21597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21598   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21599   ac_cv_prog_gcc_traditional=yes
21600 else
21601   ac_cv_prog_gcc_traditional=no
21602 fi
21603 rm -f conftest*
21604
21605
21606   if test $ac_cv_prog_gcc_traditional = no; then
21607     cat >conftest.$ac_ext <<_ACEOF
21608 #line $LINENO "configure"
21609 /* confdefs.h.  */
21610 _ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h.  */
21614 #include <termio.h>
21615 Autoconf TCGETA
21616 _ACEOF
21617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21618   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21619   ac_cv_prog_gcc_traditional=yes
21620 fi
21621 rm -f conftest*
21622
21623   fi
21624 fi
21625 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21626 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21627   if test $ac_cv_prog_gcc_traditional = yes; then
21628     CC="$CC -traditional"
21629   fi
21630 fi
21631
21632 echo "$as_me:$LINENO: checking for working memcmp" >&5
21633 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21634 if test "${ac_cv_func_memcmp_working+set}" = set; then
21635   echo $ECHO_N "(cached) $ECHO_C" >&6
21636 else
21637   if test "$cross_compiling" = yes; then
21638   ac_cv_func_memcmp_working=no
21639 else
21640   cat >conftest.$ac_ext <<_ACEOF
21641 #line $LINENO "configure"
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647
21648 int
21649 main ()
21650 {
21651
21652   /* Some versions of memcmp are not 8-bit clean.  */
21653   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21654   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21655     exit (1);
21656
21657   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21658      or more and with at least one buffer not starting on a 4-byte boundary.
21659      William Lewis provided this test program.   */
21660   {
21661     char foo[21];
21662     char bar[21];
21663     int i;
21664     for (i = 0; i < 4; i++)
21665       {
21666         char *a = foo + i;
21667         char *b = bar + i;
21668         strcpy (a, "--------01111111");
21669         strcpy (b, "--------10000000");
21670         if (memcmp (a, b, 16) >= 0)
21671           exit (1);
21672       }
21673     exit (0);
21674   }
21675
21676   ;
21677   return 0;
21678 }
21679 _ACEOF
21680 rm -f conftest$ac_exeext
21681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21682   (eval $ac_link) 2>&5
21683   ac_status=$?
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687   (eval $ac_try) 2>&5
21688   ac_status=$?
21689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690   (exit $ac_status); }; }; then
21691   ac_cv_func_memcmp_working=yes
21692 else
21693   echo "$as_me: program exited with status $ac_status" >&5
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21696
21697 ( exit $ac_status )
21698 ac_cv_func_memcmp_working=no
21699 fi
21700 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21701 fi
21702 fi
21703 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21704 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21705 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21706
21707
21708
21709 for ac_header in stdlib.h unistd.h
21710 do
21711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21713   echo "$as_me:$LINENO: checking for $ac_header" >&5
21714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21716   echo $ECHO_N "(cached) $ECHO_C" >&6
21717 fi
21718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21720 else
21721   # Is the header compilable?
21722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21724 cat >conftest.$ac_ext <<_ACEOF
21725 #line $LINENO "configure"
21726 /* confdefs.h.  */
21727 _ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h.  */
21731 $ac_includes_default
21732 #include <$ac_header>
21733 _ACEOF
21734 rm -f conftest.$ac_objext
21735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21736   (eval $ac_compile) 2>&5
21737   ac_status=$?
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); } &&
21740          { ac_try='test -s conftest.$ac_objext'
21741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21742   (eval $ac_try) 2>&5
21743   ac_status=$?
21744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745   (exit $ac_status); }; }; then
21746   ac_header_compiler=yes
21747 else
21748   echo "$as_me: failed program was:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21750
21751 ac_header_compiler=no
21752 fi
21753 rm -f conftest.$ac_objext conftest.$ac_ext
21754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21755 echo "${ECHO_T}$ac_header_compiler" >&6
21756
21757 # Is the header present?
21758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21760 cat >conftest.$ac_ext <<_ACEOF
21761 #line $LINENO "configure"
21762 /* confdefs.h.  */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h.  */
21767 #include <$ac_header>
21768 _ACEOF
21769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21770   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21771   ac_status=$?
21772   grep -v '^ *+' conftest.er1 >conftest.err
21773   rm -f conftest.er1
21774   cat conftest.err >&5
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); } >/dev/null; then
21777   if test -s conftest.err; then
21778     ac_cpp_err=$ac_c_preproc_warn_flag
21779   else
21780     ac_cpp_err=
21781   fi
21782 else
21783   ac_cpp_err=yes
21784 fi
21785 if test -z "$ac_cpp_err"; then
21786   ac_header_preproc=yes
21787 else
21788   echo "$as_me: failed program was:" >&5
21789 sed 's/^/| /' conftest.$ac_ext >&5
21790
21791   ac_header_preproc=no
21792 fi
21793 rm -f conftest.err conftest.$ac_ext
21794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21795 echo "${ECHO_T}$ac_header_preproc" >&6
21796
21797 # So?  What about this header?
21798 case $ac_header_compiler:$ac_header_preproc in
21799   yes:no )
21800     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21804     (
21805       cat <<\_ASBOX
21806 ## ------------------------------------ ##
21807 ## Report this to bug-autoconf@gnu.org. ##
21808 ## ------------------------------------ ##
21809 _ASBOX
21810     ) |
21811       sed "s/^/$as_me: WARNING:     /" >&2
21812     ;;
21813   no:yes )
21814     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21816     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21820     (
21821       cat <<\_ASBOX
21822 ## ------------------------------------ ##
21823 ## Report this to bug-autoconf@gnu.org. ##
21824 ## ------------------------------------ ##
21825 _ASBOX
21826     ) |
21827       sed "s/^/$as_me: WARNING:     /" >&2
21828     ;;
21829 esac
21830 echo "$as_me:$LINENO: checking for $ac_header" >&5
21831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21833   echo $ECHO_N "(cached) $ECHO_C" >&6
21834 else
21835   eval "$as_ac_Header=$ac_header_preproc"
21836 fi
21837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21839
21840 fi
21841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21842   cat >>confdefs.h <<_ACEOF
21843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21844 _ACEOF
21845
21846 fi
21847
21848 done
21849
21850
21851 for ac_func in getpagesize
21852 do
21853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21854 echo "$as_me:$LINENO: checking for $ac_func" >&5
21855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21856 if eval "test \"\${$as_ac_var+set}\" = set"; then
21857   echo $ECHO_N "(cached) $ECHO_C" >&6
21858 else
21859   cat >conftest.$ac_ext <<_ACEOF
21860 #line $LINENO "configure"
21861 /* confdefs.h.  */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h.  */
21866 /* System header to define __stub macros and hopefully few prototypes,
21867     which can conflict with char $ac_func (); below.
21868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21869     <limits.h> exists even on freestanding compilers.  */
21870 #ifdef __STDC__
21871 # include <limits.h>
21872 #else
21873 # include <assert.h>
21874 #endif
21875 /* Override any gcc2 internal prototype to avoid an error.  */
21876 #ifdef __cplusplus
21877 extern "C"
21878 {
21879 #endif
21880 /* We use char because int might match the return type of a gcc2
21881    builtin and then its argument prototype would still apply.  */
21882 char $ac_func ();
21883 /* The GNU C library defines this for functions which it implements
21884     to always fail with ENOSYS.  Some functions are actually named
21885     something starting with __ and the normal name is an alias.  */
21886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21887 choke me
21888 #else
21889 char (*f) () = $ac_func;
21890 #endif
21891 #ifdef __cplusplus
21892 }
21893 #endif
21894
21895 int
21896 main ()
21897 {
21898 return f != $ac_func;
21899   ;
21900   return 0;
21901 }
21902 _ACEOF
21903 rm -f conftest.$ac_objext conftest$ac_exeext
21904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21905   (eval $ac_link) 2>&5
21906   ac_status=$?
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); } &&
21909          { ac_try='test -s conftest$ac_exeext'
21910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911   (eval $ac_try) 2>&5
21912   ac_status=$?
21913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914   (exit $ac_status); }; }; then
21915   eval "$as_ac_var=yes"
21916 else
21917   echo "$as_me: failed program was:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21919
21920 eval "$as_ac_var=no"
21921 fi
21922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21923 fi
21924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21926 if test `eval echo '${'$as_ac_var'}'` = yes; then
21927   cat >>confdefs.h <<_ACEOF
21928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21929 _ACEOF
21930
21931 fi
21932 done
21933
21934 echo "$as_me:$LINENO: checking for working mmap" >&5
21935 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21936 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21937   echo $ECHO_N "(cached) $ECHO_C" >&6
21938 else
21939   if test "$cross_compiling" = yes; then
21940   ac_cv_func_mmap_fixed_mapped=no
21941 else
21942   cat >conftest.$ac_ext <<_ACEOF
21943 #line $LINENO "configure"
21944 /* confdefs.h.  */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h.  */
21949 $ac_includes_default
21950 /* malloc might have been renamed as rpl_malloc. */
21951 #undef malloc
21952
21953 /* Thanks to Mike Haertel and Jim Avera for this test.
21954    Here is a matrix of mmap possibilities:
21955         mmap private not fixed
21956         mmap private fixed at somewhere currently unmapped
21957         mmap private fixed at somewhere already mapped
21958         mmap shared not fixed
21959         mmap shared fixed at somewhere currently unmapped
21960         mmap shared fixed at somewhere already mapped
21961    For private mappings, we should verify that changes cannot be read()
21962    back from the file, nor mmap's back from the file at a different
21963    address.  (There have been systems where private was not correctly
21964    implemented like the infamous i386 svr4.0, and systems where the
21965    VM page cache was not coherent with the file system buffer cache
21966    like early versions of FreeBSD and possibly contemporary NetBSD.)
21967    For shared mappings, we should conversely verify that changes get
21968    propagated back to all the places they're supposed to be.
21969
21970    Grep wants private fixed already mapped.
21971    The main things grep needs to know about mmap are:
21972    * does it exist and is it safe to write into the mmap'd area
21973    * how to use it (BSD variants)  */
21974
21975 #include <fcntl.h>
21976 #include <sys/mman.h>
21977
21978 #if !STDC_HEADERS && !HAVE_STDLIB_H
21979 char *malloc ();
21980 #endif
21981
21982 /* This mess was copied from the GNU getpagesize.h.  */
21983 #if !HAVE_GETPAGESIZE
21984 /* Assume that all systems that can run configure have sys/param.h.  */
21985 # if !HAVE_SYS_PARAM_H
21986 #  define HAVE_SYS_PARAM_H 1
21987 # endif
21988
21989 # ifdef _SC_PAGESIZE
21990 #  define getpagesize() sysconf(_SC_PAGESIZE)
21991 # else /* no _SC_PAGESIZE */
21992 #  if HAVE_SYS_PARAM_H
21993 #   include <sys/param.h>
21994 #   ifdef EXEC_PAGESIZE
21995 #    define getpagesize() EXEC_PAGESIZE
21996 #   else /* no EXEC_PAGESIZE */
21997 #    ifdef NBPG
21998 #     define getpagesize() NBPG * CLSIZE
21999 #     ifndef CLSIZE
22000 #      define CLSIZE 1
22001 #     endif /* no CLSIZE */
22002 #    else /* no NBPG */
22003 #     ifdef NBPC
22004 #      define getpagesize() NBPC
22005 #     else /* no NBPC */
22006 #      ifdef PAGESIZE
22007 #       define getpagesize() PAGESIZE
22008 #      endif /* PAGESIZE */
22009 #     endif /* no NBPC */
22010 #    endif /* no NBPG */
22011 #   endif /* no EXEC_PAGESIZE */
22012 #  else /* no HAVE_SYS_PARAM_H */
22013 #   define getpagesize() 8192   /* punt totally */
22014 #  endif /* no HAVE_SYS_PARAM_H */
22015 # endif /* no _SC_PAGESIZE */
22016
22017 #endif /* no HAVE_GETPAGESIZE */
22018
22019 int
22020 main ()
22021 {
22022   char *data, *data2, *data3;
22023   int i, pagesize;
22024   int fd;
22025
22026   pagesize = getpagesize ();
22027
22028   /* First, make a file with some known garbage in it. */
22029   data = (char *) malloc (pagesize);
22030   if (!data)
22031     exit (1);
22032   for (i = 0; i < pagesize; ++i)
22033     *(data + i) = rand ();
22034   umask (0);
22035   fd = creat ("conftest.mmap", 0600);
22036   if (fd < 0)
22037     exit (1);
22038   if (write (fd, data, pagesize) != pagesize)
22039     exit (1);
22040   close (fd);
22041
22042   /* Next, try to mmap the file at a fixed address which already has
22043      something else allocated at it.  If we can, also make sure that
22044      we see the same garbage.  */
22045   fd = open ("conftest.mmap", O_RDWR);
22046   if (fd < 0)
22047     exit (1);
22048   data2 = (char *) malloc (2 * pagesize);
22049   if (!data2)
22050     exit (1);
22051   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22052   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22053                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22054     exit (1);
22055   for (i = 0; i < pagesize; ++i)
22056     if (*(data + i) != *(data2 + i))
22057       exit (1);
22058
22059   /* Finally, make sure that changes to the mapped area do not
22060      percolate back to the file as seen by read().  (This is a bug on
22061      some variants of i386 svr4.0.)  */
22062   for (i = 0; i < pagesize; ++i)
22063     *(data2 + i) = *(data2 + i) + 1;
22064   data3 = (char *) malloc (pagesize);
22065   if (!data3)
22066     exit (1);
22067   if (read (fd, data3, pagesize) != pagesize)
22068     exit (1);
22069   for (i = 0; i < pagesize; ++i)
22070     if (*(data + i) != *(data3 + i))
22071       exit (1);
22072   close (fd);
22073   exit (0);
22074 }
22075 _ACEOF
22076 rm -f conftest$ac_exeext
22077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22078   (eval $ac_link) 2>&5
22079   ac_status=$?
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083   (eval $ac_try) 2>&5
22084   ac_status=$?
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); }; }; then
22087   ac_cv_func_mmap_fixed_mapped=yes
22088 else
22089   echo "$as_me: program exited with status $ac_status" >&5
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22092
22093 ( exit $ac_status )
22094 ac_cv_func_mmap_fixed_mapped=no
22095 fi
22096 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22097 fi
22098 fi
22099 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22100 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22101 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22102
22103 cat >>confdefs.h <<\_ACEOF
22104 #define HAVE_MMAP 1
22105 _ACEOF
22106
22107 fi
22108 rm -f conftest.mmap
22109
22110 echo "$as_me:$LINENO: checking for mmap of files" >&5
22111 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22112 if test "${ac_cv_func_mmap_file+set}" = set; then
22113   echo $ECHO_N "(cached) $ECHO_C" >&6
22114 else
22115
22116
22117   ac_ext=c
22118 ac_cpp='$CPP $CPPFLAGS'
22119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22122
22123   if test "$cross_compiling" = yes; then
22124   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22125 See \`config.log' for more details." >&5
22126 echo "$as_me: error: cannot run test program while cross compiling
22127 See \`config.log' for more details." >&2;}
22128    { (exit 1); exit 1; }; }
22129 else
22130   cat >conftest.$ac_ext <<_ACEOF
22131 #line $LINENO "configure"
22132 /* confdefs.h.  */
22133 _ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h.  */
22137
22138 #ifdef HAVE_SYS_MMAN_H
22139 #include <sys/mman.h>
22140 #endif
22141
22142 #ifdef HAVE_SYS_TYPES_H
22143 #include <sys/types.h>
22144 #endif
22145
22146 #ifdef HAVE_FCNTL_H
22147 #include <fcntl.h>
22148 #endif
22149
22150   int fd;
22151   int main () {
22152   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22153 _ACEOF
22154 rm -f conftest$ac_exeext
22155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22156   (eval $ac_link) 2>&5
22157   ac_status=$?
22158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161   (eval $ac_try) 2>&5
22162   ac_status=$?
22163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164   (exit $ac_status); }; }; then
22165   ac_cv_func_mmap_file=yes
22166 else
22167   echo "$as_me: program exited with status $ac_status" >&5
22168 echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22170
22171 ( exit $ac_status )
22172 ac_cv_func_mmap_file=no
22173 fi
22174 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22175 fi
22176   ac_ext=c
22177 ac_cpp='$CPP $CPPFLAGS'
22178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22181
22182
22183 fi
22184 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22185 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22186 if test "$ac_cv_func_mmap_file" = yes; then
22187    cat >>confdefs.h <<\_ACEOF
22188 #define HAVE_MMAP_FILE 1
22189 _ACEOF
22190
22191    MMAP_FILE=yes
22192
22193 fi
22194
22195 if test ${ac_cv_func_mmap_file} = "no"
22196 then
22197         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22198 echo "$as_me: error: mmap() of files required but not found" >&2;}
22199    { (exit 1); exit 1; }; }
22200 fi
22201 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22202 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22203 if test "${ac_cv_header_mmap_anon+set}" = set; then
22204   echo $ECHO_N "(cached) $ECHO_C" >&6
22205 else
22206
22207
22208   ac_ext=c
22209 ac_cpp='$CPP $CPPFLAGS'
22210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22213
22214   cat >conftest.$ac_ext <<_ACEOF
22215 #line $LINENO "configure"
22216 /* confdefs.h.  */
22217 _ACEOF
22218 cat confdefs.h >>conftest.$ac_ext
22219 cat >>conftest.$ac_ext <<_ACEOF
22220 /* end confdefs.h.  */
22221 #include <sys/mman.h>
22222   #include <unistd.h>
22223   #include <fcntl.h>
22224 int
22225 main ()
22226 {
22227 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22228   ;
22229   return 0;
22230 }
22231 _ACEOF
22232 rm -f conftest.$ac_objext
22233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22234   (eval $ac_compile) 2>&5
22235   ac_status=$?
22236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237   (exit $ac_status); } &&
22238          { ac_try='test -s conftest.$ac_objext'
22239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22240   (eval $ac_try) 2>&5
22241   ac_status=$?
22242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243   (exit $ac_status); }; }; then
22244   ac_cv_header_mmap_anon=yes
22245 else
22246   echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22248
22249 ac_cv_header_mmap_anon=no
22250 fi
22251 rm -f conftest.$ac_objext conftest.$ac_ext
22252   ac_ext=c
22253 ac_cpp='$CPP $CPPFLAGS'
22254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22257
22258
22259 fi
22260 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22261 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22262 if test "$ac_cv_header_mmap_anon" = yes; then
22263    cat >>confdefs.h <<\_ACEOF
22264 #define HAVE_MMAP_ANONYMOUS 1
22265 _ACEOF
22266
22267 fi
22268
22269 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22270 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22271 if test "${ac_cv_type_signal+set}" = set; then
22272   echo $ECHO_N "(cached) $ECHO_C" >&6
22273 else
22274   cat >conftest.$ac_ext <<_ACEOF
22275 #line $LINENO "configure"
22276 /* confdefs.h.  */
22277 _ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h.  */
22281 #include <sys/types.h>
22282 #include <signal.h>
22283 #ifdef signal
22284 # undef signal
22285 #endif
22286 #ifdef __cplusplus
22287 extern "C" void (*signal (int, void (*)(int)))(int);
22288 #else
22289 void (*signal ()) ();
22290 #endif
22291
22292 int
22293 main ()
22294 {
22295 int i;
22296   ;
22297   return 0;
22298 }
22299 _ACEOF
22300 rm -f conftest.$ac_objext
22301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22302   (eval $ac_compile) 2>&5
22303   ac_status=$?
22304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305   (exit $ac_status); } &&
22306          { ac_try='test -s conftest.$ac_objext'
22307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308   (eval $ac_try) 2>&5
22309   ac_status=$?
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); }; }; then
22312   ac_cv_type_signal=void
22313 else
22314   echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22316
22317 ac_cv_type_signal=int
22318 fi
22319 rm -f conftest.$ac_objext conftest.$ac_ext
22320 fi
22321 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22322 echo "${ECHO_T}$ac_cv_type_signal" >&6
22323
22324 cat >>confdefs.h <<_ACEOF
22325 #define RETSIGTYPE $ac_cv_type_signal
22326 _ACEOF
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22339 do
22340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22341 echo "$as_me:$LINENO: checking for $ac_func" >&5
22342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22343 if eval "test \"\${$as_ac_var+set}\" = set"; then
22344   echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22346   cat >conftest.$ac_ext <<_ACEOF
22347 #line $LINENO "configure"
22348 /* confdefs.h.  */
22349 _ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h.  */
22353 /* System header to define __stub macros and hopefully few prototypes,
22354     which can conflict with char $ac_func (); below.
22355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22356     <limits.h> exists even on freestanding compilers.  */
22357 #ifdef __STDC__
22358 # include <limits.h>
22359 #else
22360 # include <assert.h>
22361 #endif
22362 /* Override any gcc2 internal prototype to avoid an error.  */
22363 #ifdef __cplusplus
22364 extern "C"
22365 {
22366 #endif
22367 /* We use char because int might match the return type of a gcc2
22368    builtin and then its argument prototype would still apply.  */
22369 char $ac_func ();
22370 /* The GNU C library defines this for functions which it implements
22371     to always fail with ENOSYS.  Some functions are actually named
22372     something starting with __ and the normal name is an alias.  */
22373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22374 choke me
22375 #else
22376 char (*f) () = $ac_func;
22377 #endif
22378 #ifdef __cplusplus
22379 }
22380 #endif
22381
22382 int
22383 main ()
22384 {
22385 return f != $ac_func;
22386   ;
22387   return 0;
22388 }
22389 _ACEOF
22390 rm -f conftest.$ac_objext conftest$ac_exeext
22391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22392   (eval $ac_link) 2>&5
22393   ac_status=$?
22394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395   (exit $ac_status); } &&
22396          { ac_try='test -s conftest$ac_exeext'
22397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398   (eval $ac_try) 2>&5
22399   ac_status=$?
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); }; }; then
22402   eval "$as_ac_var=yes"
22403 else
22404   echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22406
22407 eval "$as_ac_var=no"
22408 fi
22409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22410 fi
22411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22413 if test `eval echo '${'$as_ac_var'}'` = yes; then
22414   cat >>confdefs.h <<_ACEOF
22415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22416 _ACEOF
22417
22418 fi
22419 done
22420
22421
22422
22423 echo "$as_me:$LINENO: checking for mmap" >&5
22424 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22425 if test "${ac_cv_func_mmap+set}" = set; then
22426   echo $ECHO_N "(cached) $ECHO_C" >&6
22427 else
22428   cat >conftest.$ac_ext <<_ACEOF
22429 #line $LINENO "configure"
22430 /* confdefs.h.  */
22431 _ACEOF
22432 cat confdefs.h >>conftest.$ac_ext
22433 cat >>conftest.$ac_ext <<_ACEOF
22434 /* end confdefs.h.  */
22435 /* System header to define __stub macros and hopefully few prototypes,
22436     which can conflict with char mmap (); below.
22437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22438     <limits.h> exists even on freestanding compilers.  */
22439 #ifdef __STDC__
22440 # include <limits.h>
22441 #else
22442 # include <assert.h>
22443 #endif
22444 /* Override any gcc2 internal prototype to avoid an error.  */
22445 #ifdef __cplusplus
22446 extern "C"
22447 {
22448 #endif
22449 /* We use char because int might match the return type of a gcc2
22450    builtin and then its argument prototype would still apply.  */
22451 char mmap ();
22452 /* The GNU C library defines this for functions which it implements
22453     to always fail with ENOSYS.  Some functions are actually named
22454     something starting with __ and the normal name is an alias.  */
22455 #if defined (__stub_mmap) || defined (__stub___mmap)
22456 choke me
22457 #else
22458 char (*f) () = mmap;
22459 #endif
22460 #ifdef __cplusplus
22461 }
22462 #endif
22463
22464 int
22465 main ()
22466 {
22467 return f != mmap;
22468   ;
22469   return 0;
22470 }
22471 _ACEOF
22472 rm -f conftest.$ac_objext conftest$ac_exeext
22473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22474   (eval $ac_link) 2>&5
22475   ac_status=$?
22476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477   (exit $ac_status); } &&
22478          { ac_try='test -s conftest$ac_exeext'
22479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22480   (eval $ac_try) 2>&5
22481   ac_status=$?
22482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483   (exit $ac_status); }; }; then
22484   ac_cv_func_mmap=yes
22485 else
22486   echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22488
22489 ac_cv_func_mmap=no
22490 fi
22491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22492 fi
22493 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22494 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22495 if test $ac_cv_func_mmap = yes; then
22496   :
22497 else
22498   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22499 echo "$as_me: error: Function mmap() required but not found" >&2;}
22500    { (exit 1); exit 1; }; }
22501 fi
22502
22503 echo "$as_me:$LINENO: checking for mprotect" >&5
22504 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22505 if test "${ac_cv_func_mprotect+set}" = set; then
22506   echo $ECHO_N "(cached) $ECHO_C" >&6
22507 else
22508   cat >conftest.$ac_ext <<_ACEOF
22509 #line $LINENO "configure"
22510 /* confdefs.h.  */
22511 _ACEOF
22512 cat confdefs.h >>conftest.$ac_ext
22513 cat >>conftest.$ac_ext <<_ACEOF
22514 /* end confdefs.h.  */
22515 /* System header to define __stub macros and hopefully few prototypes,
22516     which can conflict with char mprotect (); below.
22517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22518     <limits.h> exists even on freestanding compilers.  */
22519 #ifdef __STDC__
22520 # include <limits.h>
22521 #else
22522 # include <assert.h>
22523 #endif
22524 /* Override any gcc2 internal prototype to avoid an error.  */
22525 #ifdef __cplusplus
22526 extern "C"
22527 {
22528 #endif
22529 /* We use char because int might match the return type of a gcc2
22530    builtin and then its argument prototype would still apply.  */
22531 char mprotect ();
22532 /* The GNU C library defines this for functions which it implements
22533     to always fail with ENOSYS.  Some functions are actually named
22534     something starting with __ and the normal name is an alias.  */
22535 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22536 choke me
22537 #else
22538 char (*f) () = mprotect;
22539 #endif
22540 #ifdef __cplusplus
22541 }
22542 #endif
22543
22544 int
22545 main ()
22546 {
22547 return f != mprotect;
22548   ;
22549   return 0;
22550 }
22551 _ACEOF
22552 rm -f conftest.$ac_objext conftest$ac_exeext
22553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22554   (eval $ac_link) 2>&5
22555   ac_status=$?
22556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); } &&
22558          { ac_try='test -s conftest$ac_exeext'
22559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560   (eval $ac_try) 2>&5
22561   ac_status=$?
22562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); }; }; then
22564   ac_cv_func_mprotect=yes
22565 else
22566   echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22568
22569 ac_cv_func_mprotect=no
22570 fi
22571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22572 fi
22573 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22574 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22575 if test $ac_cv_func_mprotect = yes; then
22576   :
22577 else
22578   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22579 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22580    { (exit 1); exit 1; }; }
22581 fi
22582
22583
22584
22585 # Check whether --enable-purify or --disable-purify was given.
22586 if test "${enable_purify+set}" = set; then
22587   enableval="$enable_purify"
22588
22589 else
22590   enableval="no"
22591 fi;
22592 if test ${enableval} = "no"
22593 then
22594         ENABLE_PURIFY=
22595
22596 else
22597         ENABLE_PURIFY=ENABLE_PURIFY=1
22598
22599 fi
22600
22601 # Check whether --enable-optimized or --disable-optimized was given.
22602 if test "${enable_optimized+set}" = set; then
22603   enableval="$enable_optimized"
22604
22605 else
22606   enableval=no
22607 fi;
22608 if test ${enableval} = "no"
22609 then
22610         ENABLE_OPTIMIZED=
22611
22612 else
22613         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22614
22615 fi
22616
22617 # Check whether --enable-spec or --disable-spec was given.
22618 if test "${enable_spec+set}" = set; then
22619   enableval="$enable_spec"
22620
22621 else
22622   enableval=no
22623 fi;
22624 if test ${enableval} = "no"
22625 then
22626         USE_SPEC=
22627
22628 else
22629         USE_SPEC=USE_SPEC=1
22630
22631 fi
22632
22633 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22634 if test "${enable_precompiled_bytecode+set}" = set; then
22635   enableval="$enable_precompiled_bytecode"
22636
22637 else
22638   enableval=no
22639 fi;
22640 if test ${enableval} = "no"
22641 then
22642         UPB=
22643
22644 else
22645         UPB=USE_PRECOMPILED_BYTECODE=1
22646
22647 fi
22648
22649
22650 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22651 if test "${enable_llc_diffs+set}" = set; then
22652   enableval="$enable_llc_diffs"
22653
22654 else
22655   enableval=yes
22656 fi;
22657 if test ${enableval} = "no"
22658 then
22659         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22660
22661 else
22662         DISABLE_LLC_DIFFS=
22663
22664 fi
22665
22666 # Check whether --enable-jit or --disable-jit was given.
22667 if test "${enable_jit+set}" = set; then
22668   enableval="$enable_jit"
22669
22670 else
22671   enableval=default
22672 fi;
22673
22674 if test ${enableval} = "no"
22675 then
22676         JIT=
22677
22678 else
22679         case $target in
22680                 *i*86*)
22681                         JIT=TARGET_HAS_JIT=1
22682
22683                         ;;
22684                 *sparc*)
22685                         JIT=TARGET_HAS_JIT=1
22686
22687                         ;;
22688                 *)
22689                         JIT=
22690
22691                         ;;
22692         esac
22693 fi
22694
22695
22696
22697 # Check whether --with-spec or --without-spec was given.
22698 if test "${with_spec+set}" = set; then
22699   withval="$with_spec"
22700   SPEC_ROOT=$withval
22701
22702 else
22703   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22704
22705 fi;
22706
22707
22708 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22709 if test "${with_llvmgccdir+set}" = set; then
22710   withval="$with_llvmgccdir"
22711   LLVMGCCDIR=$withval
22712
22713 fi;
22714
22715
22716 # Check whether --with-bcrepos or --without-bcrepos was given.
22717 if test "${with_bcrepos+set}" = set; then
22718   withval="$with_bcrepos"
22719   BCR=$withval
22720
22721 else
22722   BCR=/home/vadve/lattner/LLVMPrograms
22723
22724 fi;
22725
22726
22727 # Check whether --with-papi or --without-papi was given.
22728 if test "${with_papi+set}" = set; then
22729   withval="$with_papi"
22730   PAPIDIR=$withval
22731
22732 else
22733   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22734
22735 fi;
22736
22737
22738 # Check whether --with-purify or --without-purify was given.
22739 if test "${with_purify+set}" = set; then
22740   withval="$with_purify"
22741   PURIFY=$withval
22742
22743 fi;
22744
22745
22746           ac_config_files="$ac_config_files Makefile.config"
22747 cat >confcache <<\_ACEOF
22748 # This file is a shell script that caches the results of configure
22749 # tests run on this system so they can be shared between configure
22750 # scripts and configure runs, see configure's option --config-cache.
22751 # It is not useful on other systems.  If it contains results you don't
22752 # want to keep, you may remove or edit it.
22753 #
22754 # config.status only pays attention to the cache file if you give it
22755 # the --recheck option to rerun configure.
22756 #
22757 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22758 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22759 # following values.
22760
22761 _ACEOF
22762
22763 # The following way of writing the cache mishandles newlines in values,
22764 # but we know of no workaround that is simple, portable, and efficient.
22765 # So, don't put newlines in cache variables' values.
22766 # Ultrix sh set writes to stderr and can't be redirected directly,
22767 # and sets the high bit in the cache file unless we assign to the vars.
22768 {
22769   (set) 2>&1 |
22770     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22771     *ac_space=\ *)
22772       # `set' does not quote correctly, so add quotes (double-quote
22773       # substitution turns \\\\ into \\, and sed turns \\ into \).
22774       sed -n \
22775         "s/'/'\\\\''/g;
22776           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22777       ;;
22778     *)
22779       # `set' quotes correctly as required by POSIX, so do not add quotes.
22780       sed -n \
22781         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22782       ;;
22783     esac;
22784 } |
22785   sed '
22786      t clear
22787      : clear
22788      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22789      t end
22790      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22791      : end' >>confcache
22792 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22793   if test -w $cache_file; then
22794     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22795     cat confcache >$cache_file
22796   else
22797     echo "not updating unwritable cache $cache_file"
22798   fi
22799 fi
22800 rm -f confcache
22801
22802 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22803 # Let make expand exec_prefix.
22804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22805
22806 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22807 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22808 # trailing colons and then remove the whole line if VPATH becomes empty
22809 # (actually we leave an empty line to preserve line numbers).
22810 if test "x$srcdir" = x.; then
22811   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22812 s/:*\$(srcdir):*/:/;
22813 s/:*\${srcdir}:*/:/;
22814 s/:*@srcdir@:*/:/;
22815 s/^\([^=]*=[    ]*\):*/\1/;
22816 s/:*$//;
22817 s/^[^=]*=[      ]*$//;
22818 }'
22819 fi
22820
22821 DEFS=-DHAVE_CONFIG_H
22822
22823 ac_libobjs=
22824 ac_ltlibobjs=
22825 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22826   # 1. Remove the extension, and $U if already installed.
22827   ac_i=`echo "$ac_i" |
22828          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22829   # 2. Add them.
22830   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22831   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22832 done
22833 LIBOBJS=$ac_libobjs
22834
22835 LTLIBOBJS=$ac_ltlibobjs
22836
22837
22838
22839 : ${CONFIG_STATUS=./config.status}
22840 ac_clean_files_save=$ac_clean_files
22841 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22842 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22843 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22844 cat >$CONFIG_STATUS <<_ACEOF
22845 #! $SHELL
22846 # Generated by $as_me.
22847 # Run this file to recreate the current configuration.
22848 # Compiler output produced by configure, useful for debugging
22849 # configure, is in config.log if it exists.
22850
22851 debug=false
22852 ac_cs_recheck=false
22853 ac_cs_silent=false
22854 SHELL=\${CONFIG_SHELL-$SHELL}
22855 _ACEOF
22856
22857 cat >>$CONFIG_STATUS <<\_ACEOF
22858 ## --------------------- ##
22859 ## M4sh Initialization.  ##
22860 ## --------------------- ##
22861
22862 # Be Bourne compatible
22863 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22864   emulate sh
22865   NULLCMD=:
22866   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22867   # is contrary to our usage.  Disable this feature.
22868   alias -g '${1+"$@"}'='"$@"'
22869 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22870   set -o posix
22871 fi
22872
22873 # Support unset when possible.
22874 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22875   as_unset=unset
22876 else
22877   as_unset=false
22878 fi
22879
22880
22881 # Work around bugs in pre-3.0 UWIN ksh.
22882 $as_unset ENV MAIL MAILPATH
22883 PS1='$ '
22884 PS2='> '
22885 PS4='+ '
22886
22887 # NLS nuisances.
22888 for as_var in \
22889   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22890   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22891   LC_TELEPHONE LC_TIME
22892 do
22893   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22894     eval $as_var=C; export $as_var
22895   else
22896     $as_unset $as_var
22897   fi
22898 done
22899
22900 # Required to use basename.
22901 if expr a : '\(a\)' >/dev/null 2>&1; then
22902   as_expr=expr
22903 else
22904   as_expr=false
22905 fi
22906
22907 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22908   as_basename=basename
22909 else
22910   as_basename=false
22911 fi
22912
22913
22914 # Name of the executable.
22915 as_me=`$as_basename "$0" ||
22916 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22917          X"$0" : 'X\(//\)$' \| \
22918          X"$0" : 'X\(/\)$' \| \
22919          .     : '\(.\)' 2>/dev/null ||
22920 echo X/"$0" |
22921     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22922           /^X\/\(\/\/\)$/{ s//\1/; q; }
22923           /^X\/\(\/\).*/{ s//\1/; q; }
22924           s/.*/./; q'`
22925
22926
22927 # PATH needs CR, and LINENO needs CR and PATH.
22928 # Avoid depending upon Character Ranges.
22929 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22930 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22931 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22932 as_cr_digits='0123456789'
22933 as_cr_alnum=$as_cr_Letters$as_cr_digits
22934
22935 # The user is always right.
22936 if test "${PATH_SEPARATOR+set}" != set; then
22937   echo "#! /bin/sh" >conf$$.sh
22938   echo  "exit 0"   >>conf$$.sh
22939   chmod +x conf$$.sh
22940   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22941     PATH_SEPARATOR=';'
22942   else
22943     PATH_SEPARATOR=:
22944   fi
22945   rm -f conf$$.sh
22946 fi
22947
22948
22949   as_lineno_1=$LINENO
22950   as_lineno_2=$LINENO
22951   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22952   test "x$as_lineno_1" != "x$as_lineno_2" &&
22953   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22954   # Find who we are.  Look in the path if we contain no path at all
22955   # relative or not.
22956   case $0 in
22957     *[\\/]* ) as_myself=$0 ;;
22958     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22959 for as_dir in $PATH
22960 do
22961   IFS=$as_save_IFS
22962   test -z "$as_dir" && as_dir=.
22963   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22964 done
22965
22966        ;;
22967   esac
22968   # We did not find ourselves, most probably we were run as `sh COMMAND'
22969   # in which case we are not to be found in the path.
22970   if test "x$as_myself" = x; then
22971     as_myself=$0
22972   fi
22973   if test ! -f "$as_myself"; then
22974     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22975 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22976    { (exit 1); exit 1; }; }
22977   fi
22978   case $CONFIG_SHELL in
22979   '')
22980     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22981 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22982 do
22983   IFS=$as_save_IFS
22984   test -z "$as_dir" && as_dir=.
22985   for as_base in sh bash ksh sh5; do
22986          case $as_dir in
22987          /*)
22988            if ("$as_dir/$as_base" -c '
22989   as_lineno_1=$LINENO
22990   as_lineno_2=$LINENO
22991   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22992   test "x$as_lineno_1" != "x$as_lineno_2" &&
22993   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22994              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22995              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22996              CONFIG_SHELL=$as_dir/$as_base
22997              export CONFIG_SHELL
22998              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22999            fi;;
23000          esac
23001        done
23002 done
23003 ;;
23004   esac
23005
23006   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23007   # uniformly replaced by the line number.  The first 'sed' inserts a
23008   # line-number line before each line; the second 'sed' does the real
23009   # work.  The second script uses 'N' to pair each line-number line
23010   # with the numbered line, and appends trailing '-' during
23011   # substitution so that $LINENO is not a special case at line end.
23012   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23013   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23014   sed '=' <$as_myself |
23015     sed '
23016       N
23017       s,$,-,
23018       : loop
23019       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23020       t loop
23021       s,-$,,
23022       s,^['$as_cr_digits']*\n,,
23023     ' >$as_me.lineno &&
23024   chmod +x $as_me.lineno ||
23025     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23026 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23027    { (exit 1); exit 1; }; }
23028
23029   # Don't try to exec as it changes $[0], causing all sort of problems
23030   # (the dirname of $[0] is not the place where we might find the
23031   # original and so on.  Autoconf is especially sensible to this).
23032   . ./$as_me.lineno
23033   # Exit status is that of the last command.
23034   exit
23035 }
23036
23037
23038 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23039   *c*,-n*) ECHO_N= ECHO_C='
23040 ' ECHO_T='      ' ;;
23041   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23042   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23043 esac
23044
23045 if expr a : '\(a\)' >/dev/null 2>&1; then
23046   as_expr=expr
23047 else
23048   as_expr=false
23049 fi
23050
23051 rm -f conf$$ conf$$.exe conf$$.file
23052 echo >conf$$.file
23053 if ln -s conf$$.file conf$$ 2>/dev/null; then
23054   # We could just check for DJGPP; but this test a) works b) is more generic
23055   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23056   if test -f conf$$.exe; then
23057     # Don't use ln at all; we don't have any links
23058     as_ln_s='cp -p'
23059   else
23060     as_ln_s='ln -s'
23061   fi
23062 elif ln conf$$.file conf$$ 2>/dev/null; then
23063   as_ln_s=ln
23064 else
23065   as_ln_s='cp -p'
23066 fi
23067 rm -f conf$$ conf$$.exe conf$$.file
23068
23069 if mkdir -p . 2>/dev/null; then
23070   as_mkdir_p=:
23071 else
23072   as_mkdir_p=false
23073 fi
23074
23075 as_executable_p="test -f"
23076
23077 # Sed expression to map a string onto a valid CPP name.
23078 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23079
23080 # Sed expression to map a string onto a valid variable name.
23081 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23082
23083
23084 # IFS
23085 # We need space, tab and new line, in precisely that order.
23086 as_nl='
23087 '
23088 IFS="   $as_nl"
23089
23090 # CDPATH.
23091 $as_unset CDPATH
23092
23093 exec 6>&1
23094
23095 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23096 # report actual input values of CONFIG_FILES etc. instead of their
23097 # values after options handling.  Logging --version etc. is OK.
23098 exec 5>>config.log
23099 {
23100   echo
23101   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23102 ## Running $as_me. ##
23103 _ASBOX
23104 } >&5
23105 cat >&5 <<_CSEOF
23106
23107 This file was extended by [LLVM] $as_me [1.0], which was
23108 generated by GNU Autoconf 2.57.  Invocation command line was
23109
23110   CONFIG_FILES    = $CONFIG_FILES
23111   CONFIG_HEADERS  = $CONFIG_HEADERS
23112   CONFIG_LINKS    = $CONFIG_LINKS
23113   CONFIG_COMMANDS = $CONFIG_COMMANDS
23114   $ $0 $@
23115
23116 _CSEOF
23117 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23118 echo >&5
23119 _ACEOF
23120
23121 # Files that config.status was made for.
23122 if test -n "$ac_config_files"; then
23123   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23124 fi
23125
23126 if test -n "$ac_config_headers"; then
23127   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23128 fi
23129
23130 if test -n "$ac_config_links"; then
23131   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23132 fi
23133
23134 if test -n "$ac_config_commands"; then
23135   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23136 fi
23137
23138 cat >>$CONFIG_STATUS <<\_ACEOF
23139
23140 ac_cs_usage="\
23141 \`$as_me' instantiates files from templates according to the
23142 current configuration.
23143
23144 Usage: $0 [OPTIONS] [FILE]...
23145
23146   -h, --help       print this help, then exit
23147   -V, --version    print version number, then exit
23148   -q, --quiet      do not print progress messages
23149   -d, --debug      don't remove temporary files
23150       --recheck    update $as_me by reconfiguring in the same conditions
23151   --file=FILE[:TEMPLATE]
23152                    instantiate the configuration file FILE
23153   --header=FILE[:TEMPLATE]
23154                    instantiate the configuration header FILE
23155
23156 Configuration files:
23157 $config_files
23158
23159 Configuration headers:
23160 $config_headers
23161
23162 Configuration commands:
23163 $config_commands
23164
23165 Report bugs to <bug-autoconf@gnu.org>."
23166 _ACEOF
23167
23168 cat >>$CONFIG_STATUS <<_ACEOF
23169 ac_cs_version="\\
23170 [LLVM] config.status [1.0]
23171 configured by $0, generated by GNU Autoconf 2.57,
23172   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23173
23174 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23175 Free Software Foundation, Inc.
23176 This config.status script is free software; the Free Software Foundation
23177 gives unlimited permission to copy, distribute and modify it."
23178 srcdir=$srcdir
23179 INSTALL="$INSTALL"
23180 _ACEOF
23181
23182 cat >>$CONFIG_STATUS <<\_ACEOF
23183 # If no file are specified by the user, then we need to provide default
23184 # value.  By we need to know if files were specified by the user.
23185 ac_need_defaults=:
23186 while test $# != 0
23187 do
23188   case $1 in
23189   --*=*)
23190     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23191     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23192     ac_shift=:
23193     ;;
23194   -*)
23195     ac_option=$1
23196     ac_optarg=$2
23197     ac_shift=shift
23198     ;;
23199   *) # This is not an option, so the user has probably given explicit
23200      # arguments.
23201      ac_option=$1
23202      ac_need_defaults=false;;
23203   esac
23204
23205   case $ac_option in
23206   # Handling of the options.
23207 _ACEOF
23208 cat >>$CONFIG_STATUS <<\_ACEOF
23209   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23210     ac_cs_recheck=: ;;
23211   --version | --vers* | -V )
23212     echo "$ac_cs_version"; exit 0 ;;
23213   --he | --h)
23214     # Conflict between --help and --header
23215     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23216 Try \`$0 --help' for more information." >&5
23217 echo "$as_me: error: ambiguous option: $1
23218 Try \`$0 --help' for more information." >&2;}
23219    { (exit 1); exit 1; }; };;
23220   --help | --hel | -h )
23221     echo "$ac_cs_usage"; exit 0 ;;
23222   --debug | --d* | -d )
23223     debug=: ;;
23224   --file | --fil | --fi | --f )
23225     $ac_shift
23226     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23227     ac_need_defaults=false;;
23228   --header | --heade | --head | --hea )
23229     $ac_shift
23230     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23231     ac_need_defaults=false;;
23232   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23233   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23234     ac_cs_silent=: ;;
23235
23236   # This is an error.
23237   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23238 Try \`$0 --help' for more information." >&5
23239 echo "$as_me: error: unrecognized option: $1
23240 Try \`$0 --help' for more information." >&2;}
23241    { (exit 1); exit 1; }; } ;;
23242
23243   *) ac_config_targets="$ac_config_targets $1" ;;
23244
23245   esac
23246   shift
23247 done
23248
23249 ac_configure_extra_args=
23250
23251 if $ac_cs_silent; then
23252   exec 6>/dev/null
23253   ac_configure_extra_args="$ac_configure_extra_args --silent"
23254 fi
23255
23256 _ACEOF
23257 cat >>$CONFIG_STATUS <<_ACEOF
23258 if \$ac_cs_recheck; then
23259   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23260   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23261 fi
23262
23263 _ACEOF
23264
23265 cat >>$CONFIG_STATUS <<_ACEOF
23266 #
23267 # INIT-COMMANDS section.
23268 #
23269
23270 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23271 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23272 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23273 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23274 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23275 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23276 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23277 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23278 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23279 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23280 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23281 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23282 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23283 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23284 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23285 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23286 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23287 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/PostOpts/Makefile`
23288 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/PreOpts/Makefile`
23289 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23290 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23291 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23292 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23293 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23294 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23295 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23296 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23297 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23298 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23299 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23300 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23301 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23302 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23303 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23304 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23305 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23306 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23307 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23308 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23309 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23310 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23311 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23312 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23313 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23314 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23315 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23316 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23317 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23318 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23319 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23320 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23321 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23322 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23323 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23324 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23325 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23326 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23327 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23328 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23329 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23330 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23331 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23332 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23333 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23334 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23335 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23336 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23337 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23338 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23339 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23340 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23341 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23342 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23343 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23344 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23345 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23346 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23347 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23348 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23349 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23350 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23351 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23352 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23353 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23354 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23355 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Burg/Makefile`
23356 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Fhourstones/Makefile`
23357 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/Makefile`
23358 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/01-qbsort/Makefile`
23359 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/03-testtrie/Makefile`
23360 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/04-bisect/Makefile`
23361 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/05-eks/Makefile`
23362 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/08-main/Makefile`
23363 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/09-vor/Makefile`
23364 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/12-IOtest/Makefile`
23365 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/15-trie/Makefile`
23366 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/17-bintr/Makefile`
23367 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/18-imp/Makefile`
23368 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/Makefile`
23369 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bh/Makefile`
23370 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bisort/Makefile`
23371 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/em3d/Makefile`
23372 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/health/Makefile`
23373 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/mst/Makefile`
23374 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/perimeter/Makefile`
23375 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/power/Makefile`
23376 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/treeadd/Makefile`
23377 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/tsp/Makefile`
23378 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/voronoi/Makefile`
23379 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/OptimizerEval/Makefile`
23380 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/Makefile`
23381 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/anagram/Makefile`
23382 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/bc/Makefile`
23383 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ft/Makefile`
23384 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ks/Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/yacr2/Makefile`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/aha/Makefile`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/llubenchmark/Makefile`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sgefa/Makefile`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sim/Makefile`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/164.gzip/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/181.mcf/Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/197.parser/Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/254.gap/Makefile`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/255.vortex/Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/256.bzip2/Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/300.twolf/Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Shootout/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Stanford/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23443
23444 _ACEOF
23445
23446
23447
23448 cat >>$CONFIG_STATUS <<\_ACEOF
23449 for ac_config_target in $ac_config_targets
23450 do
23451   case "$ac_config_target" in
23452   # Handling of arguments.
23453   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23454   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23455   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23456   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23457   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23458   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23459   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23460   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23461   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23462   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23463   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23464   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23465   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23466   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23467   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23468   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23469   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23470   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23471   "lib/CodeGen/PostOpts/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/PostOpts/Makefile" ;;
23472   "lib/CodeGen/PreOpts/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/PreOpts/Makefile" ;;
23473   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23474   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23475   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23476   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23477   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23478   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23479   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23480   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23481   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23482   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23483   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23484   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23485   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23486   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23487   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23488   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23489   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23490   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23491   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23492   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23493   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23494   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23495   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23496   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23497   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23498   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23499   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23500   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23501   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23502   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23503   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23504   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23505   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23506   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23507   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23508   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23509   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23510   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23511   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23512   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23513   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23514   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23515   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23516   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23517   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23518   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23519   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23520   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23521   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23522   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23523   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23524   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23525   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23526   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23527   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23528   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23529   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23530   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23531   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23532   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23533   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23534   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23535   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23536   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23537   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23538   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23539   "test/Programs/MultiSource/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Burg/Makefile" ;;
23540   "test/Programs/MultiSource/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Fhourstones/Makefile" ;;
23541   "test/Programs/MultiSource/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/Makefile" ;;
23542   "test/Programs/MultiSource/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/01-qbsort/Makefile" ;;
23543   "test/Programs/MultiSource/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/03-testtrie/Makefile" ;;
23544   "test/Programs/MultiSource/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/04-bisect/Makefile" ;;
23545   "test/Programs/MultiSource/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/05-eks/Makefile" ;;
23546   "test/Programs/MultiSource/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/08-main/Makefile" ;;
23547   "test/Programs/MultiSource/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/09-vor/Makefile" ;;
23548   "test/Programs/MultiSource/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/12-IOtest/Makefile" ;;
23549   "test/Programs/MultiSource/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/15-trie/Makefile" ;;
23550   "test/Programs/MultiSource/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/17-bintr/Makefile" ;;
23551   "test/Programs/MultiSource/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/18-imp/Makefile" ;;
23552   "test/Programs/MultiSource/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/Makefile" ;;
23553   "test/Programs/MultiSource/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bh/Makefile" ;;
23554   "test/Programs/MultiSource/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bisort/Makefile" ;;
23555   "test/Programs/MultiSource/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/em3d/Makefile" ;;
23556   "test/Programs/MultiSource/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/health/Makefile" ;;
23557   "test/Programs/MultiSource/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/mst/Makefile" ;;
23558   "test/Programs/MultiSource/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/perimeter/Makefile" ;;
23559   "test/Programs/MultiSource/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/power/Makefile" ;;
23560   "test/Programs/MultiSource/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/treeadd/Makefile" ;;
23561   "test/Programs/MultiSource/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/tsp/Makefile" ;;
23562   "test/Programs/MultiSource/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/voronoi/Makefile" ;;
23563   "test/Programs/MultiSource/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/OptimizerEval/Makefile" ;;
23564   "test/Programs/MultiSource/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/Makefile" ;;
23565   "test/Programs/MultiSource/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/anagram/Makefile" ;;
23566   "test/Programs/MultiSource/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/bc/Makefile" ;;
23567   "test/Programs/MultiSource/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ft/Makefile" ;;
23568   "test/Programs/MultiSource/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ks/Makefile" ;;
23569   "test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ;;
23570   "test/Programs/MultiSource/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/aha/Makefile" ;;
23571   "test/Programs/MultiSource/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/llubenchmark/Makefile" ;;
23572   "test/Programs/MultiSource/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sgefa/Makefile" ;;
23573   "test/Programs/MultiSource/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sim/Makefile" ;;
23574   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23575   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23576   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23577   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23578   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23579   "test/Programs/NoSource/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/Makefile" ;;
23580   "test/Programs/NoSource/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/Makefile" ;;
23581   "test/Programs/NoSource/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/164.gzip/Makefile" ;;
23582   "test/Programs/NoSource/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/181.mcf/Makefile" ;;
23583   "test/Programs/NoSource/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/197.parser/Makefile" ;;
23584   "test/Programs/NoSource/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/254.gap/Makefile" ;;
23585   "test/Programs/NoSource/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/255.vortex/Makefile" ;;
23586   "test/Programs/NoSource/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/256.bzip2/Makefile" ;;
23587   "test/Programs/NoSource/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/300.twolf/Makefile" ;;
23588   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23589   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23590   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23591   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23592   "test/Programs/SingleSource/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Shootout/Makefile" ;;
23593   "test/Programs/SingleSource/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Stanford/Makefile" ;;
23594   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23595   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23596   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23597   "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23598   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23599   "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23600   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23601   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23602   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23603   "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23604   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23605   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23606   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23607   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23608   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23609   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23610   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23611   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23612   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23613   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23614   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23615   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23616   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23617   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23618   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23619   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23620   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23621   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23622   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23623   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23624   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23625   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23626   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23627   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23628   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23629 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23630    { (exit 1); exit 1; }; };;
23631   esac
23632 done
23633
23634 # If the user did not use the arguments to specify the items to instantiate,
23635 # then the envvar interface is used.  Set only those that are not.
23636 # We use the long form for the default assignment because of an extremely
23637 # bizarre bug on SunOS 4.1.3.
23638 if $ac_need_defaults; then
23639   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23640   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23641   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23642 fi
23643
23644 # Have a temporary directory for convenience.  Make it in the build tree
23645 # simply because there is no reason to put it here, and in addition,
23646 # creating and moving files from /tmp can sometimes cause problems.
23647 # Create a temporary directory, and hook for its removal unless debugging.
23648 $debug ||
23649 {
23650   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23651   trap '{ (exit 1); exit 1; }' 1 2 13 15
23652 }
23653
23654 # Create a (secure) tmp directory for tmp files.
23655
23656 {
23657   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23658   test -n "$tmp" && test -d "$tmp"
23659 }  ||
23660 {
23661   tmp=./confstat$$-$RANDOM
23662   (umask 077 && mkdir $tmp)
23663 } ||
23664 {
23665    echo "$me: cannot create a temporary directory in ." >&2
23666    { (exit 1); exit 1; }
23667 }
23668
23669 _ACEOF
23670
23671 cat >>$CONFIG_STATUS <<_ACEOF
23672
23673 #
23674 # CONFIG_FILES section.
23675 #
23676
23677 # No need to generate the scripts if there are no CONFIG_FILES.
23678 # This happens for instance when ./config.status config.h
23679 if test -n "\$CONFIG_FILES"; then
23680   # Protect against being on the right side of a sed subst in config.status.
23681   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23682    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23683 s,@SHELL@,$SHELL,;t t
23684 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23685 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23686 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23687 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23688 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23689 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23690 s,@exec_prefix@,$exec_prefix,;t t
23691 s,@prefix@,$prefix,;t t
23692 s,@program_transform_name@,$program_transform_name,;t t
23693 s,@bindir@,$bindir,;t t
23694 s,@sbindir@,$sbindir,;t t
23695 s,@libexecdir@,$libexecdir,;t t
23696 s,@datadir@,$datadir,;t t
23697 s,@sysconfdir@,$sysconfdir,;t t
23698 s,@sharedstatedir@,$sharedstatedir,;t t
23699 s,@localstatedir@,$localstatedir,;t t
23700 s,@libdir@,$libdir,;t t
23701 s,@includedir@,$includedir,;t t
23702 s,@oldincludedir@,$oldincludedir,;t t
23703 s,@infodir@,$infodir,;t t
23704 s,@mandir@,$mandir,;t t
23705 s,@build_alias@,$build_alias,;t t
23706 s,@host_alias@,$host_alias,;t t
23707 s,@target_alias@,$target_alias,;t t
23708 s,@DEFS@,$DEFS,;t t
23709 s,@ECHO_C@,$ECHO_C,;t t
23710 s,@ECHO_N@,$ECHO_N,;t t
23711 s,@ECHO_T@,$ECHO_T,;t t
23712 s,@LIBS@,$LIBS,;t t
23713 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23714 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23715 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23716 s,@build@,$build,;t t
23717 s,@build_cpu@,$build_cpu,;t t
23718 s,@build_vendor@,$build_vendor,;t t
23719 s,@build_os@,$build_os,;t t
23720 s,@host@,$host,;t t
23721 s,@host_cpu@,$host_cpu,;t t
23722 s,@host_vendor@,$host_vendor,;t t
23723 s,@host_os@,$host_os,;t t
23724 s,@target@,$target,;t t
23725 s,@target_cpu@,$target_cpu,;t t
23726 s,@target_vendor@,$target_vendor,;t t
23727 s,@target_os@,$target_os,;t t
23728 s,@OS@,$OS,;t t
23729 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23730 s,@ARCH@,$ARCH,;t t
23731 s,@CXX@,$CXX,;t t
23732 s,@CXXFLAGS@,$CXXFLAGS,;t t
23733 s,@LDFLAGS@,$LDFLAGS,;t t
23734 s,@CPPFLAGS@,$CPPFLAGS,;t t
23735 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23736 s,@EXEEXT@,$EXEEXT,;t t
23737 s,@OBJEXT@,$OBJEXT,;t t
23738 s,@CC@,$CC,;t t
23739 s,@CFLAGS@,$CFLAGS,;t t
23740 s,@ac_ct_CC@,$ac_ct_CC,;t t
23741 s,@CPP@,$CPP,;t t
23742 s,@ifGNUmake@,$ifGNUmake,;t t
23743 s,@LEX@,$LEX,;t t
23744 s,@LEXLIB@,$LEXLIB,;t t
23745 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23746 s,@YACC@,$YACC,;t t
23747 s,@EGREP@,$EGREP,;t t
23748 s,@LN_S@,$LN_S,;t t
23749 s,@ECHO@,$ECHO,;t t
23750 s,@AR@,$AR,;t t
23751 s,@ac_ct_AR@,$ac_ct_AR,;t t
23752 s,@RANLIB@,$RANLIB,;t t
23753 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23754 s,@STRIP@,$STRIP,;t t
23755 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23756 s,@CXXCPP@,$CXXCPP,;t t
23757 s,@F77@,$F77,;t t
23758 s,@FFLAGS@,$FFLAGS,;t t
23759 s,@ac_ct_F77@,$ac_ct_F77,;t t
23760 s,@LIBTOOL@,$LIBTOOL,;t t
23761 s,@RPWD@,$RPWD,;t t
23762 s,@SED@,$SED,;t t
23763 s,@RM@,$RM,;t t
23764 s,@MKDIR@,$MKDIR,;t t
23765 s,@DATE@,$DATE,;t t
23766 s,@MV@,$MV,;t t
23767 s,@DOT@,$DOT,;t t
23768 s,@ETAGS@,$ETAGS,;t t
23769 s,@PURIFY@,$PURIFY,;t t
23770 s,@PYTHON@,$PYTHON,;t t
23771 s,@QMTEST@,$QMTEST,;t t
23772 s,@ALLOCA@,$ALLOCA,;t t
23773 s,@LIBOBJS@,$LIBOBJS,;t t
23774 s,@MMAP_FILE@,$MMAP_FILE,;t t
23775 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23776 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23777 s,@USE_SPEC@,$USE_SPEC,;t t
23778 s,@UPB@,$UPB,;t t
23779 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23780 s,@JIT@,$JIT,;t t
23781 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23782 s,@BCR@,$BCR,;t t
23783 s,@PAPIDIR@,$PAPIDIR,;t t
23784 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23785 CEOF
23786
23787 _ACEOF
23788
23789   cat >>$CONFIG_STATUS <<\_ACEOF
23790   # Split the substitutions into bite-sized pieces for seds with
23791   # small command number limits, like on Digital OSF/1 and HP-UX.
23792   ac_max_sed_lines=48
23793   ac_sed_frag=1 # Number of current file.
23794   ac_beg=1 # First line for current file.
23795   ac_end=$ac_max_sed_lines # Line after last line for current file.
23796   ac_more_lines=:
23797   ac_sed_cmds=
23798   while $ac_more_lines; do
23799     if test $ac_beg -gt 1; then
23800       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23801     else
23802       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23803     fi
23804     if test ! -s $tmp/subs.frag; then
23805       ac_more_lines=false
23806     else
23807       # The purpose of the label and of the branching condition is to
23808       # speed up the sed processing (if there are no `@' at all, there
23809       # is no need to browse any of the substitutions).
23810       # These are the two extra sed commands mentioned above.
23811       (echo ':t
23812   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23813       if test -z "$ac_sed_cmds"; then
23814         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23815       else
23816         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23817       fi
23818       ac_sed_frag=`expr $ac_sed_frag + 1`
23819       ac_beg=$ac_end
23820       ac_end=`expr $ac_end + $ac_max_sed_lines`
23821     fi
23822   done
23823   if test -z "$ac_sed_cmds"; then
23824     ac_sed_cmds=cat
23825   fi
23826 fi # test -n "$CONFIG_FILES"
23827
23828 _ACEOF
23829 cat >>$CONFIG_STATUS <<\_ACEOF
23830 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23831   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23832   case $ac_file in
23833   - | *:- | *:-:* ) # input from stdin
23834         cat >$tmp/stdin
23835         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23836         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23837   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23838         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23839   * )   ac_file_in=$ac_file.in ;;
23840   esac
23841
23842   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23843   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23844 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23845          X"$ac_file" : 'X\(//\)[^/]' \| \
23846          X"$ac_file" : 'X\(//\)$' \| \
23847          X"$ac_file" : 'X\(/\)' \| \
23848          .     : '\(.\)' 2>/dev/null ||
23849 echo X"$ac_file" |
23850     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23851           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23852           /^X\(\/\/\)$/{ s//\1/; q; }
23853           /^X\(\/\).*/{ s//\1/; q; }
23854           s/.*/./; q'`
23855   { if $as_mkdir_p; then
23856     mkdir -p "$ac_dir"
23857   else
23858     as_dir="$ac_dir"
23859     as_dirs=
23860     while test ! -d "$as_dir"; do
23861       as_dirs="$as_dir $as_dirs"
23862       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23864          X"$as_dir" : 'X\(//\)[^/]' \| \
23865          X"$as_dir" : 'X\(//\)$' \| \
23866          X"$as_dir" : 'X\(/\)' \| \
23867          .     : '\(.\)' 2>/dev/null ||
23868 echo X"$as_dir" |
23869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23870           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23871           /^X\(\/\/\)$/{ s//\1/; q; }
23872           /^X\(\/\).*/{ s//\1/; q; }
23873           s/.*/./; q'`
23874     done
23875     test ! -n "$as_dirs" || mkdir $as_dirs
23876   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23877 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23878    { (exit 1); exit 1; }; }; }
23879
23880   ac_builddir=.
23881
23882 if test "$ac_dir" != .; then
23883   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23884   # A "../" for each directory in $ac_dir_suffix.
23885   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23886 else
23887   ac_dir_suffix= ac_top_builddir=
23888 fi
23889
23890 case $srcdir in
23891   .)  # No --srcdir option.  We are building in place.
23892     ac_srcdir=.
23893     if test -z "$ac_top_builddir"; then
23894        ac_top_srcdir=.
23895     else
23896        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23897     fi ;;
23898   [\\/]* | ?:[\\/]* )  # Absolute path.
23899     ac_srcdir=$srcdir$ac_dir_suffix;
23900     ac_top_srcdir=$srcdir ;;
23901   *) # Relative path.
23902     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23903     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23904 esac
23905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23906 # absolute.
23907 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23908 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23909 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23910 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23911
23912
23913   case $INSTALL in
23914   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23915   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23916   esac
23917
23918   if test x"$ac_file" != x-; then
23919     { echo "$as_me:$LINENO: creating $ac_file" >&5
23920 echo "$as_me: creating $ac_file" >&6;}
23921     rm -f "$ac_file"
23922   fi
23923   # Let's still pretend it is `configure' which instantiates (i.e., don't
23924   # use $as_me), people would be surprised to read:
23925   #    /* config.h.  Generated by config.status.  */
23926   if test x"$ac_file" = x-; then
23927     configure_input=
23928   else
23929     configure_input="$ac_file.  "
23930   fi
23931   configure_input=$configure_input"Generated from `echo $ac_file_in |
23932                                      sed 's,.*/,,'` by configure."
23933
23934   # First look for the input files in the build tree, otherwise in the
23935   # src tree.
23936   ac_file_inputs=`IFS=:
23937     for f in $ac_file_in; do
23938       case $f in
23939       -) echo $tmp/stdin ;;
23940       [\\/$]*)
23941          # Absolute (can't be DOS-style, as IFS=:)
23942          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23943 echo "$as_me: error: cannot find input file: $f" >&2;}
23944    { (exit 1); exit 1; }; }
23945          echo $f;;
23946       *) # Relative
23947          if test -f "$f"; then
23948            # Build tree
23949            echo $f
23950          elif test -f "$srcdir/$f"; then
23951            # Source tree
23952            echo $srcdir/$f
23953          else
23954            # /dev/null tree
23955            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23956 echo "$as_me: error: cannot find input file: $f" >&2;}
23957    { (exit 1); exit 1; }; }
23958          fi;;
23959       esac
23960     done` || { (exit 1); exit 1; }
23961 _ACEOF
23962 cat >>$CONFIG_STATUS <<_ACEOF
23963   sed "$ac_vpsub
23964 $extrasub
23965 _ACEOF
23966 cat >>$CONFIG_STATUS <<\_ACEOF
23967 :t
23968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23969 s,@configure_input@,$configure_input,;t t
23970 s,@srcdir@,$ac_srcdir,;t t
23971 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23972 s,@top_srcdir@,$ac_top_srcdir,;t t
23973 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23974 s,@builddir@,$ac_builddir,;t t
23975 s,@abs_builddir@,$ac_abs_builddir,;t t
23976 s,@top_builddir@,$ac_top_builddir,;t t
23977 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23978 s,@INSTALL@,$ac_INSTALL,;t t
23979 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23980   rm -f $tmp/stdin
23981   if test x"$ac_file" != x-; then
23982     mv $tmp/out $ac_file
23983   else
23984     cat $tmp/out
23985     rm -f $tmp/out
23986   fi
23987
23988 done
23989 _ACEOF
23990 cat >>$CONFIG_STATUS <<\_ACEOF
23991
23992 #
23993 # CONFIG_HEADER section.
23994 #
23995
23996 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23997 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23998 #
23999 # ac_d sets the value in "#define NAME VALUE" lines.
24000 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24001 ac_dB='[        ].*$,\1#\2'
24002 ac_dC=' '
24003 ac_dD=',;t'
24004 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24005 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24006 ac_uB='$,\1#\2define\3'
24007 ac_uC=' '
24008 ac_uD=',;t'
24009
24010 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24011   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24012   case $ac_file in
24013   - | *:- | *:-:* ) # input from stdin
24014         cat >$tmp/stdin
24015         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24016         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24017   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24018         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24019   * )   ac_file_in=$ac_file.in ;;
24020   esac
24021
24022   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24023 echo "$as_me: creating $ac_file" >&6;}
24024
24025   # First look for the input files in the build tree, otherwise in the
24026   # src tree.
24027   ac_file_inputs=`IFS=:
24028     for f in $ac_file_in; do
24029       case $f in
24030       -) echo $tmp/stdin ;;
24031       [\\/$]*)
24032          # Absolute (can't be DOS-style, as IFS=:)
24033          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24034 echo "$as_me: error: cannot find input file: $f" >&2;}
24035    { (exit 1); exit 1; }; }
24036          echo $f;;
24037       *) # Relative
24038          if test -f "$f"; then
24039            # Build tree
24040            echo $f
24041          elif test -f "$srcdir/$f"; then
24042            # Source tree
24043            echo $srcdir/$f
24044          else
24045            # /dev/null tree
24046            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24047 echo "$as_me: error: cannot find input file: $f" >&2;}
24048    { (exit 1); exit 1; }; }
24049          fi;;
24050       esac
24051     done` || { (exit 1); exit 1; }
24052   # Remove the trailing spaces.
24053   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24054
24055 _ACEOF
24056
24057 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24058 # `conftest.undefs', that substitutes the proper values into
24059 # config.h.in to produce config.h.  The first handles `#define'
24060 # templates, and the second `#undef' templates.
24061 # And first: Protect against being on the right side of a sed subst in
24062 # config.status.  Protect against being in an unquoted here document
24063 # in config.status.
24064 rm -f conftest.defines conftest.undefs
24065 # Using a here document instead of a string reduces the quoting nightmare.
24066 # Putting comments in sed scripts is not portable.
24067 #
24068 # `end' is used to avoid that the second main sed command (meant for
24069 # 0-ary CPP macros) applies to n-ary macro definitions.
24070 # See the Autoconf documentation for `clear'.
24071 cat >confdef2sed.sed <<\_ACEOF
24072 s/[\\&,]/\\&/g
24073 s,[\\$`],\\&,g
24074 t clear
24075 : clear
24076 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24077 t end
24078 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24079 : end
24080 _ACEOF
24081 # If some macros were called several times there might be several times
24082 # the same #defines, which is useless.  Nevertheless, we may not want to
24083 # sort them, since we want the *last* AC-DEFINE to be honored.
24084 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24085 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24086 rm -f confdef2sed.sed
24087
24088 # This sed command replaces #undef with comments.  This is necessary, for
24089 # example, in the case of _POSIX_SOURCE, which is predefined and required
24090 # on some systems where configure will not decide to define it.
24091 cat >>conftest.undefs <<\_ACEOF
24092 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24093 _ACEOF
24094
24095 # Break up conftest.defines because some shells have a limit on the size
24096 # of here documents, and old seds have small limits too (100 cmds).
24097 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24098 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24099 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24100 echo '  :' >>$CONFIG_STATUS
24101 rm -f conftest.tail
24102 while grep . conftest.defines >/dev/null
24103 do
24104   # Write a limited-size here document to $tmp/defines.sed.
24105   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24106   # Speed up: don't consider the non `#define' lines.
24107   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24108   # Work around the forget-to-reset-the-flag bug.
24109   echo 't clr' >>$CONFIG_STATUS
24110   echo ': clr' >>$CONFIG_STATUS
24111   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24112   echo 'CEOF
24113   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24114   rm -f $tmp/in
24115   mv $tmp/out $tmp/in
24116 ' >>$CONFIG_STATUS
24117   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24118   rm -f conftest.defines
24119   mv conftest.tail conftest.defines
24120 done
24121 rm -f conftest.defines
24122 echo '  fi # grep' >>$CONFIG_STATUS
24123 echo >>$CONFIG_STATUS
24124
24125 # Break up conftest.undefs because some shells have a limit on the size
24126 # of here documents, and old seds have small limits too (100 cmds).
24127 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24128 rm -f conftest.tail
24129 while grep . conftest.undefs >/dev/null
24130 do
24131   # Write a limited-size here document to $tmp/undefs.sed.
24132   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24133   # Speed up: don't consider the non `#undef'
24134   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24135   # Work around the forget-to-reset-the-flag bug.
24136   echo 't clr' >>$CONFIG_STATUS
24137   echo ': clr' >>$CONFIG_STATUS
24138   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24139   echo 'CEOF
24140   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24141   rm -f $tmp/in
24142   mv $tmp/out $tmp/in
24143 ' >>$CONFIG_STATUS
24144   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24145   rm -f conftest.undefs
24146   mv conftest.tail conftest.undefs
24147 done
24148 rm -f conftest.undefs
24149
24150 cat >>$CONFIG_STATUS <<\_ACEOF
24151   # Let's still pretend it is `configure' which instantiates (i.e., don't
24152   # use $as_me), people would be surprised to read:
24153   #    /* config.h.  Generated by config.status.  */
24154   if test x"$ac_file" = x-; then
24155     echo "/* Generated by configure.  */" >$tmp/config.h
24156   else
24157     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24158   fi
24159   cat $tmp/in >>$tmp/config.h
24160   rm -f $tmp/in
24161   if test x"$ac_file" != x-; then
24162     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24163       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24164 echo "$as_me: $ac_file is unchanged" >&6;}
24165     else
24166       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24168          X"$ac_file" : 'X\(//\)[^/]' \| \
24169          X"$ac_file" : 'X\(//\)$' \| \
24170          X"$ac_file" : 'X\(/\)' \| \
24171          .     : '\(.\)' 2>/dev/null ||
24172 echo X"$ac_file" |
24173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24174           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24175           /^X\(\/\/\)$/{ s//\1/; q; }
24176           /^X\(\/\).*/{ s//\1/; q; }
24177           s/.*/./; q'`
24178       { if $as_mkdir_p; then
24179     mkdir -p "$ac_dir"
24180   else
24181     as_dir="$ac_dir"
24182     as_dirs=
24183     while test ! -d "$as_dir"; do
24184       as_dirs="$as_dir $as_dirs"
24185       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24187          X"$as_dir" : 'X\(//\)[^/]' \| \
24188          X"$as_dir" : 'X\(//\)$' \| \
24189          X"$as_dir" : 'X\(/\)' \| \
24190          .     : '\(.\)' 2>/dev/null ||
24191 echo X"$as_dir" |
24192     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24193           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24194           /^X\(\/\/\)$/{ s//\1/; q; }
24195           /^X\(\/\).*/{ s//\1/; q; }
24196           s/.*/./; q'`
24197     done
24198     test ! -n "$as_dirs" || mkdir $as_dirs
24199   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24200 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24201    { (exit 1); exit 1; }; }; }
24202
24203       rm -f $ac_file
24204       mv $tmp/config.h $ac_file
24205     fi
24206   else
24207     cat $tmp/config.h
24208     rm -f $tmp/config.h
24209   fi
24210 done
24211 _ACEOF
24212 cat >>$CONFIG_STATUS <<\_ACEOF
24213
24214 #
24215 # CONFIG_COMMANDS section.
24216 #
24217 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24218   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24219   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24220   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24221 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24222          X"$ac_dest" : 'X\(//\)[^/]' \| \
24223          X"$ac_dest" : 'X\(//\)$' \| \
24224          X"$ac_dest" : 'X\(/\)' \| \
24225          .     : '\(.\)' 2>/dev/null ||
24226 echo X"$ac_dest" |
24227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24228           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24229           /^X\(\/\/\)$/{ s//\1/; q; }
24230           /^X\(\/\).*/{ s//\1/; q; }
24231           s/.*/./; q'`
24232   ac_builddir=.
24233
24234 if test "$ac_dir" != .; then
24235   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24236   # A "../" for each directory in $ac_dir_suffix.
24237   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24238 else
24239   ac_dir_suffix= ac_top_builddir=
24240 fi
24241
24242 case $srcdir in
24243   .)  # No --srcdir option.  We are building in place.
24244     ac_srcdir=.
24245     if test -z "$ac_top_builddir"; then
24246        ac_top_srcdir=.
24247     else
24248        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24249     fi ;;
24250   [\\/]* | ?:[\\/]* )  # Absolute path.
24251     ac_srcdir=$srcdir$ac_dir_suffix;
24252     ac_top_srcdir=$srcdir ;;
24253   *) # Relative path.
24254     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24255     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24256 esac
24257 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24258 # absolute.
24259 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24260 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24261 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24262 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24263
24264
24265   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24266 echo "$as_me: executing $ac_dest commands" >&6;}
24267   case $ac_dest in
24268     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24269     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24270     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24271     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24272     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24273     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24274     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24275     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24276     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24277     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24278     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24279     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24280     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24281     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24282     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24283     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24284     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24285     lib/CodeGen/PostOpts/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/PostOpts/Makefile lib/CodeGen/PostOpts/Makefile ;;
24286     lib/CodeGen/PreOpts/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/PreOpts/Makefile lib/CodeGen/PreOpts/Makefile ;;
24287     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24288     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24289     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24290     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24291     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24292     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24293     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24294     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24295     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24296     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24297     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24298     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24299     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24300     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24301     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24302     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24303     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24304     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24305     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24306     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24307     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24308     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24309     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24310     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24311     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24312     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24313     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24314     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24315     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24316     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24317     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24318     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24319     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24320     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24321     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24322     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24323     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24324     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24325     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24326     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24327     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24328     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24329     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24330     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24331     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24332     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24333     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24334     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24335     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 ;;
24336     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 ;;
24337     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 ;;
24338     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 ;;
24339     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 ;;
24340     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 ;;
24341     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 ;;
24342     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 ;;
24343     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 ;;
24344     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 ;;
24345     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 ;;
24346     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 ;;
24347     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 ;;
24348     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 ;;
24349     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 ;;
24350     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24351     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24352     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24353     test/Programs/MultiSource/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Burg/Makefile test/Programs/MultiSource/Burg/Makefile ;;
24354     test/Programs/MultiSource/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Fhourstones/Makefile test/Programs/MultiSource/Fhourstones/Makefile ;;
24355     test/Programs/MultiSource/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/Makefile test/Programs/MultiSource/McCat/Makefile ;;
24356     test/Programs/MultiSource/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/01-qbsort/Makefile test/Programs/MultiSource/McCat/01-qbsort/Makefile ;;
24357     test/Programs/MultiSource/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/03-testtrie/Makefile test/Programs/MultiSource/McCat/03-testtrie/Makefile ;;
24358     test/Programs/MultiSource/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/04-bisect/Makefile test/Programs/MultiSource/McCat/04-bisect/Makefile ;;
24359     test/Programs/MultiSource/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/05-eks/Makefile test/Programs/MultiSource/McCat/05-eks/Makefile ;;
24360     test/Programs/MultiSource/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/08-main/Makefile test/Programs/MultiSource/McCat/08-main/Makefile ;;
24361     test/Programs/MultiSource/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/09-vor/Makefile test/Programs/MultiSource/McCat/09-vor/Makefile ;;
24362     test/Programs/MultiSource/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/12-IOtest/Makefile test/Programs/MultiSource/McCat/12-IOtest/Makefile ;;
24363     test/Programs/MultiSource/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/15-trie/Makefile test/Programs/MultiSource/McCat/15-trie/Makefile ;;
24364     test/Programs/MultiSource/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/17-bintr/Makefile test/Programs/MultiSource/McCat/17-bintr/Makefile ;;
24365     test/Programs/MultiSource/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/18-imp/Makefile test/Programs/MultiSource/McCat/18-imp/Makefile ;;
24366     test/Programs/MultiSource/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/Makefile test/Programs/MultiSource/Olden/Makefile ;;
24367     test/Programs/MultiSource/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bh/Makefile test/Programs/MultiSource/Olden/bh/Makefile ;;
24368     test/Programs/MultiSource/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bisort/Makefile test/Programs/MultiSource/Olden/bisort/Makefile ;;
24369     test/Programs/MultiSource/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/em3d/Makefile test/Programs/MultiSource/Olden/em3d/Makefile ;;
24370     test/Programs/MultiSource/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/health/Makefile test/Programs/MultiSource/Olden/health/Makefile ;;
24371     test/Programs/MultiSource/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/mst/Makefile test/Programs/MultiSource/Olden/mst/Makefile ;;
24372     test/Programs/MultiSource/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/perimeter/Makefile test/Programs/MultiSource/Olden/perimeter/Makefile ;;
24373     test/Programs/MultiSource/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/power/Makefile test/Programs/MultiSource/Olden/power/Makefile ;;
24374     test/Programs/MultiSource/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/treeadd/Makefile test/Programs/MultiSource/Olden/treeadd/Makefile ;;
24375     test/Programs/MultiSource/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/tsp/Makefile test/Programs/MultiSource/Olden/tsp/Makefile ;;
24376     test/Programs/MultiSource/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/voronoi/Makefile test/Programs/MultiSource/Olden/voronoi/Makefile ;;
24377     test/Programs/MultiSource/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/OptimizerEval/Makefile test/Programs/MultiSource/OptimizerEval/Makefile ;;
24378     test/Programs/MultiSource/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/Makefile test/Programs/MultiSource/Ptrdist/Makefile ;;
24379     test/Programs/MultiSource/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/anagram/Makefile test/Programs/MultiSource/Ptrdist/anagram/Makefile ;;
24380     test/Programs/MultiSource/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/bc/Makefile test/Programs/MultiSource/Ptrdist/bc/Makefile ;;
24381     test/Programs/MultiSource/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ft/Makefile test/Programs/MultiSource/Ptrdist/ft/Makefile ;;
24382     test/Programs/MultiSource/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ks/Makefile test/Programs/MultiSource/Ptrdist/ks/Makefile ;;
24383     test/Programs/MultiSource/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Ptrdist/yacr2/Makefile ;;
24384     test/Programs/MultiSource/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/aha/Makefile test/Programs/MultiSource/aha/Makefile ;;
24385     test/Programs/MultiSource/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/llubenchmark/Makefile test/Programs/MultiSource/llubenchmark/Makefile ;;
24386     test/Programs/MultiSource/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sgefa/Makefile test/Programs/MultiSource/sgefa/Makefile ;;
24387     test/Programs/MultiSource/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sim/Makefile test/Programs/MultiSource/sim/Makefile ;;
24388     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24389     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24390     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24391     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 ;;
24392     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24393     test/Programs/NoSource/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/Makefile test/Programs/NoSource/SPEC/Makefile ;;
24394     test/Programs/NoSource/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/Makefile test/Programs/NoSource/SPEC/CINT2000/Makefile ;;
24395     test/Programs/NoSource/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/164.gzip/Makefile test/Programs/NoSource/SPEC/CINT2000/164.gzip/Makefile ;;
24396     test/Programs/NoSource/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/181.mcf/Makefile test/Programs/NoSource/SPEC/CINT2000/181.mcf/Makefile ;;
24397     test/Programs/NoSource/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/197.parser/Makefile test/Programs/NoSource/SPEC/CINT2000/197.parser/Makefile ;;
24398     test/Programs/NoSource/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/254.gap/Makefile test/Programs/NoSource/SPEC/CINT2000/254.gap/Makefile ;;
24399     test/Programs/NoSource/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/255.vortex/Makefile test/Programs/NoSource/SPEC/CINT2000/255.vortex/Makefile ;;
24400     test/Programs/NoSource/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/256.bzip2/Makefile test/Programs/NoSource/SPEC/CINT2000/256.bzip2/Makefile ;;
24401     test/Programs/NoSource/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/300.twolf/Makefile test/Programs/NoSource/SPEC/CINT2000/300.twolf/Makefile ;;
24402     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24403     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24404     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24405     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24406     test/Programs/SingleSource/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Shootout/Makefile test/Programs/SingleSource/Shootout/Makefile ;;
24407     test/Programs/SingleSource/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Stanford/Makefile test/Programs/SingleSource/Stanford/Makefile ;;
24408     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24409     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24410     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24411     tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24412     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24413     tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24414     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24415     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24416     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24417     tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24418     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24419     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24420     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24421     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24422     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24423     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24424     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24425     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24426     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24427     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24428     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24429     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24430     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24431     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24432     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24433     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24434     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24435     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24436     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24437     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24438     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24439     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24440     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24441   esac
24442 done
24443 _ACEOF
24444
24445 cat >>$CONFIG_STATUS <<\_ACEOF
24446
24447 { (exit 0); exit 0; }
24448 _ACEOF
24449 chmod +x $CONFIG_STATUS
24450 ac_clean_files=$ac_clean_files_save
24451
24452
24453 # configure is writing to config.log, and then calls config.status.
24454 # config.status does its own redirection, appending to config.log.
24455 # Unfortunately, on DOS this fails, as config.log is still kept open
24456 # by configure, so config.status won't be able to write to it; its
24457 # output is simply discarded.  So we exec the FD to /dev/null,
24458 # effectively closing config.log, so it can be properly (re)opened and
24459 # appended to by config.status.  When coming back to configure, we
24460 # need to make the FD available again.
24461 if test "$no_create" != yes; then
24462   ac_cs_success=:
24463   ac_config_status_args=
24464   test "$silent" = yes &&
24465     ac_config_status_args="$ac_config_status_args --quiet"
24466   exec 5>/dev/null
24467   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24468   exec 5>>config.log
24469   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24470   # would make configure fail if this is the last instruction.
24471   $ac_cs_success || { (exit 1); exit 1; }
24472 fi
24473