Add another fixed bug.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.0]'
426 PACKAGE_STRING='[LLVM] [1.0]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 ac_subdirs_all="$ac_subdirs_all projects/sample"
430 ac_subdirs_all="$ac_subdirs_all projects/reopt"
431 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 #  include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 #  include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 #  include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 ac_unique_file=""Makefile.config.in""
470 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY LTLIBOBJS'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_libraries=NONE
492
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
514   # If the previous option needs an argument, assign it.
515   if test -n "$ac_prev"; then
516     eval "$ac_prev=\$ac_option"
517     ac_prev=
518     continue
519   fi
520
521   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523   # Accept the important Cygnus configure options, so we can diagnose typos.
524
525   case $ac_option in
526
527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
528     ac_prev=bindir ;;
529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530     bindir=$ac_optarg ;;
531
532   -build | --build | --buil | --bui | --bu)
533     ac_prev=build_alias ;;
534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535     build_alias=$ac_optarg ;;
536
537   -cache-file | --cache-file | --cache-fil | --cache-fi \
538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539     ac_prev=cache_file ;;
540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542     cache_file=$ac_optarg ;;
543
544   --config-cache | -C)
545     cache_file=config.cache ;;
546
547   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548     ac_prev=datadir ;;
549   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550   | --da=*)
551     datadir=$ac_optarg ;;
552
553   -disable-* | --disable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     eval "enable_$ac_feature=no" ;;
561
562   -enable-* | --enable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     case $ac_option in
570       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571       *) ac_optarg=yes ;;
572     esac
573     eval "enable_$ac_feature='$ac_optarg'" ;;
574
575   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577   | --exec | --exe | --ex)
578     ac_prev=exec_prefix ;;
579   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581   | --exec=* | --exe=* | --ex=*)
582     exec_prefix=$ac_optarg ;;
583
584   -gas | --gas | --ga | --g)
585     # Obsolete; use --with-gas.
586     with_gas=yes ;;
587
588   -help | --help | --hel | --he | -h)
589     ac_init_help=long ;;
590   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591     ac_init_help=recursive ;;
592   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593     ac_init_help=short ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host_alias ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host_alias=$ac_optarg ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir=$ac_optarg ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir=$ac_optarg ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir=$ac_optarg ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir=$ac_optarg ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir=$ac_optarg ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir=$ac_optarg ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c | -n)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir=$ac_optarg ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix=$ac_optarg ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix=$ac_optarg ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix=$ac_optarg ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name=$ac_optarg ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir=$ac_optarg ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir=$ac_optarg ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site=$ac_optarg ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir=$ac_optarg ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir=$ac_optarg ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target_alias ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target_alias=$ac_optarg ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers | -V)
742     ac_init_version=: ;;
743
744   -with-* | --with-*)
745     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package| sed 's/-/_/g'`
751     case $ac_option in
752       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753       *) ac_optarg=yes ;;
754     esac
755     eval "with_$ac_package='$ac_optarg'" ;;
756
757   -without-* | --without-*)
758     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid package name: $ac_package" >&2
762    { (exit 1); exit 1; }; }
763     ac_package=`echo $ac_package | sed 's/-/_/g'`
764     eval "with_$ac_package=no" ;;
765
766   --x)
767     # Obsolete; use --with-x.
768     with_x=yes ;;
769
770   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771   | --x-incl | --x-inc | --x-in | --x-i)
772     ac_prev=x_includes ;;
773   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775     x_includes=$ac_optarg ;;
776
777   -x-libraries | --x-libraries | --x-librarie | --x-librari \
778   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779     ac_prev=x_libraries ;;
780   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782     x_libraries=$ac_optarg ;;
783
784   -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786    { (exit 1); exit 1; }; }
787     ;;
788
789   *=*)
790     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791     # Reject names that are not valid shell variable names.
792     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794    { (exit 1); exit 1; }; }
795     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796     eval "$ac_envvar='$ac_optarg'"
797     export $ac_envvar ;;
798
799   *)
800     # FIXME: should be removed in autoconf 3.0.
801     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805     ;;
806
807   esac
808 done
809
810 if test -n "$ac_prev"; then
811   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812   { echo "$as_me: error: missing argument to $ac_option" >&2
813    { (exit 1); exit 1; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
831   eval ac_val=$`echo $ac_var`
832   case $ac_val in
833     [\\/$]* | ?:[\\/]* ) ;;
834     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835    { (exit 1); exit 1; }; };;
836   esac
837 done
838
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848   if test "x$build_alias" = x; then
849     cross_compiling=maybe
850     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851     If a cross compiler is detected then cross compile mode will be used." >&2
852   elif test "x$build_alias" != "x$host_alias"; then
853     cross_compiling=yes
854   fi
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865   ac_srcdir_defaulted=yes
866   # Try the directory containing this script, then its parent.
867   ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$0" : 'X\(//\)[^/]' \| \
870          X"$0" : 'X\(//\)$' \| \
871          X"$0" : 'X\(/\)' \| \
872          .     : '\(.\)' 2>/dev/null ||
873 echo X"$0" |
874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876           /^X\(\/\/\)$/{ s//\1/; q; }
877           /^X\(\/\).*/{ s//\1/; q; }
878           s/.*/./; q'`
879   srcdir=$ac_confdir
880   if test ! -r $srcdir/$ac_unique_file; then
881     srcdir=..
882   fi
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if test ! -r $srcdir/$ac_unique_file; then
887   if test "$ac_srcdir_defaulted" = yes; then
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889    { (exit 1); exit 1; }; }
890   else
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892    { (exit 1); exit 1; }; }
893   fi
894 fi
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897    { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CC_set=${CC+set}
928 ac_env_CC_value=$CC
929 ac_cv_env_CC_set=${CC+set}
930 ac_cv_env_CC_value=$CC
931 ac_env_CFLAGS_set=${CFLAGS+set}
932 ac_env_CFLAGS_value=$CFLAGS
933 ac_cv_env_CFLAGS_set=${CFLAGS+set}
934 ac_cv_env_CFLAGS_value=$CFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
951
952 #
953 # Report the --help message.
954 #
955 if test "$ac_init_help" = "long"; then
956   # Omit some internal or obsolete options to make the list less imposing.
957   # This message is too long to be a string in the A/UX 3.1 sh.
958   cat <<_ACEOF
959 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
960
961 Usage: $0 [OPTION]... [VAR=VALUE]...
962
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966 Defaults for the options are specified in brackets.
967
968 Configuration:
969   -h, --help              display this help and exit
970       --help=short        display options specific to this package
971       --help=recursive    display the short help of all the included packages
972   -V, --version           display version information and exit
973   -q, --quiet, --silent   do not print \`checking...' messages
974       --cache-file=FILE   cache test results in FILE [disabled]
975   -C, --config-cache      alias for \`--cache-file=config.cache'
976   -n, --no-create         do not create output files
977       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
978
979 _ACEOF
980
981   cat <<_ACEOF
982 Installation directories:
983   --prefix=PREFIX         install architecture-independent files in PREFIX
984                           [$ac_default_prefix]
985   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
986                           [PREFIX]
987
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
992
993 For better control, use the options below.
994
995 Fine tuning of the installation directories:
996   --bindir=DIR           user executables [EPREFIX/bin]
997   --sbindir=DIR          system admin executables [EPREFIX/sbin]
998   --libexecdir=DIR       program executables [EPREFIX/libexec]
999   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1000   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1001   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1002   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1003   --libdir=DIR           object code libraries [EPREFIX/lib]
1004   --includedir=DIR       C header files [PREFIX/include]
1005   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1006   --infodir=DIR          info documentation [PREFIX/info]
1007   --mandir=DIR           man documentation [PREFIX/man]
1008 _ACEOF
1009
1010   cat <<\_ACEOF
1011
1012 System types:
1013   --build=BUILD     configure for building on BUILD [guessed]
1014   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1015   --target=TARGET   configure for building compilers for TARGET [HOST]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020   case $ac_init_help in
1021      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1022    esac
1023   cat <<\_ACEOF
1024
1025 Optional Features:
1026   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028   --enable-shared[=PKGS]
1029                           build shared libraries [default=yes]
1030   --enable-static[=PKGS]
1031                           build static libraries [default=yes]
1032   --enable-fast-install[=PKGS]
1033                           optimize for fast installation [default=yes]
1034   --disable-libtool-lock  avoid locking (might break parallel builds)
1035   --enable-purify         Compile with purify (default is NO)
1036   --enable-optimized      Compile with optimizations enabled (default is NO)
1037   --enable-spec           Compile SPEC 2000 benchmarks (default is NO)
1038   --enable-precompiled_bytecode
1039                           Use pre-compiled bytecode (default is NO)
1040   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1041   --enable-jit            Enable Just In Time Compiling (default is YES)
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051   --with-llvmgccdir       Location of LLVM GCC front-end
1052   --with-bcrepos          Location of Bytecode Repository
1053   --with-papi             Location of PAPI
1054   --with-purify           Location of purify program
1055
1056 Some influential environment variables:
1057   CXX         C++ compiler command
1058   CXXFLAGS    C++ compiler flags
1059   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060               nonstandard directory <lib dir>
1061   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062               headers in a nonstandard directory <include dir>
1063   CC          C compiler command
1064   CFLAGS      C compiler flags
1065   CPP         C preprocessor
1066   CXXCPP      C++ preprocessor
1067   F77         Fortran 77 compiler command
1068   FFLAGS      Fortran 77 compiler flags
1069
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1072
1073 Report bugs to <llvmbugs@cs.uiuc.edu>.
1074 _ACEOF
1075 fi
1076
1077 if test "$ac_init_help" = "recursive"; then
1078   # If there are subdirs, report their specific --help.
1079   ac_popdir=`pwd`
1080   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081     test -d $ac_dir || continue
1082     ac_builddir=.
1083
1084 if test "$ac_dir" != .; then
1085   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086   # A "../" for each directory in $ac_dir_suffix.
1087   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 else
1089   ac_dir_suffix= ac_top_builddir=
1090 fi
1091
1092 case $srcdir in
1093   .)  # No --srcdir option.  We are building in place.
1094     ac_srcdir=.
1095     if test -z "$ac_top_builddir"; then
1096        ac_top_srcdir=.
1097     else
1098        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099     fi ;;
1100   [\\/]* | ?:[\\/]* )  # Absolute path.
1101     ac_srcdir=$srcdir$ac_dir_suffix;
1102     ac_top_srcdir=$srcdir ;;
1103   *) # Relative path.
1104     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 esac
1107 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108 # absolute.
1109 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114     cd $ac_dir
1115     # Check for guested configure; otherwise get Cygnus style configure.
1116     if test -f $ac_srcdir/configure.gnu; then
1117       echo
1118       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1119     elif test -f $ac_srcdir/configure; then
1120       echo
1121       $SHELL $ac_srcdir/configure  --help=recursive
1122     elif test -f $ac_srcdir/configure.ac ||
1123            test -f $ac_srcdir/configure.in; then
1124       echo
1125       $ac_configure --help
1126     else
1127       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128     fi
1129     cd $ac_popdir
1130   done
1131 fi
1132
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1135   cat <<\_ACEOF
1136 [LLVM] configure [1.0]
1137 generated by GNU Autoconf 2.57
1138
1139 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1143 _ACEOF
1144   exit 0
1145 fi
1146 exec 5>config.log
1147 cat >&5 <<_ACEOF
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1150
1151 It was created by [LLVM] $as_me [1.0], which was
1152 generated by GNU Autoconf 2.57.  Invocation command line was
1153
1154   $ $0 $@
1155
1156 _ACEOF
1157 {
1158 cat <<_ASUNAME
1159 ## --------- ##
1160 ## Platform. ##
1161 ## --------- ##
1162
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1171
1172 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1173 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1176 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1177 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1178 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1179
1180 _ASUNAME
1181
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183 for as_dir in $PATH
1184 do
1185   IFS=$as_save_IFS
1186   test -z "$as_dir" && as_dir=.
1187   echo "PATH: $as_dir"
1188 done
1189
1190 } >&5
1191
1192 cat >&5 <<_ACEOF
1193
1194
1195 ## ----------- ##
1196 ## Core tests. ##
1197 ## ----------- ##
1198
1199 _ACEOF
1200
1201
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_configure_args=
1208 ac_configure_args0=
1209 ac_configure_args1=
1210 ac_sep=
1211 ac_must_keep_next=false
1212 for ac_pass in 1 2
1213 do
1214   for ac_arg
1215   do
1216     case $ac_arg in
1217     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219     | -silent | --silent | --silen | --sile | --sil)
1220       continue ;;
1221     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223     esac
1224     case $ac_pass in
1225     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226     2)
1227       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228       if test $ac_must_keep_next = true; then
1229         ac_must_keep_next=false # Got value, back to normal.
1230       else
1231         case $ac_arg in
1232           *=* | --config-cache | -C | -disable-* | --disable-* \
1233           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235           | -with-* | --with-* | -without-* | --without-* | --x)
1236             case "$ac_configure_args0 " in
1237               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238             esac
1239             ;;
1240           -* ) ac_must_keep_next=true ;;
1241         esac
1242       fi
1243       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244       # Get rid of the leading space.
1245       ac_sep=" "
1246       ;;
1247     esac
1248   done
1249 done
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log.  We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259   # Save into config.log some information that might help in debugging.
1260   {
1261     echo
1262
1263     cat <<\_ASBOX
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1267 _ASBOX
1268     echo
1269     # The following way of writing the cache mishandles newlines in values,
1270 {
1271   (set) 2>&1 |
1272     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273     *ac_space=\ *)
1274       sed -n \
1275         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277       ;;
1278     *)
1279       sed -n \
1280         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281       ;;
1282     esac;
1283 }
1284     echo
1285
1286     cat <<\_ASBOX
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1290 _ASBOX
1291     echo
1292     for ac_var in $ac_subst_vars
1293     do
1294       eval ac_val=$`echo $ac_var`
1295       echo "$ac_var='"'"'$ac_val'"'"'"
1296     done | sort
1297     echo
1298
1299     if test -n "$ac_subst_files"; then
1300       cat <<\_ASBOX
1301 ## ------------- ##
1302 ## Output files. ##
1303 ## ------------- ##
1304 _ASBOX
1305       echo
1306       for ac_var in $ac_subst_files
1307       do
1308         eval ac_val=$`echo $ac_var`
1309         echo "$ac_var='"'"'$ac_val'"'"'"
1310       done | sort
1311       echo
1312     fi
1313
1314     if test -s confdefs.h; then
1315       cat <<\_ASBOX
1316 ## ----------- ##
1317 ## confdefs.h. ##
1318 ## ----------- ##
1319 _ASBOX
1320       echo
1321       sed "/^$/d" confdefs.h | sort
1322       echo
1323     fi
1324     test "$ac_signal" != 0 &&
1325       echo "$as_me: caught signal $ac_signal"
1326     echo "$as_me: exit $exit_status"
1327   } >&5
1328   rm -f core core.* *.core &&
1329   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330     exit $exit_status
1331      ' 0
1332 for ac_signal in 1 2 13 15; do
1333   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334 done
1335 ac_signal=0
1336
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 echo >confdefs.h
1341
1342 # Predefined preprocessor variables.
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351 _ACEOF
1352
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366 _ACEOF
1367
1368
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372   if test "x$prefix" != xNONE; then
1373     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374   else
1375     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376   fi
1377 fi
1378 for ac_site_file in $CONFIG_SITE; do
1379   if test -r "$ac_site_file"; then
1380     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382     sed 's/^/| /' "$ac_site_file" >&5
1383     . "$ac_site_file"
1384   fi
1385 done
1386
1387 if test -r "$cache_file"; then
1388   # Some versions of bash will fail to source /dev/null (special
1389   # files actually), so we avoid doing that.
1390   if test -f "$cache_file"; then
1391     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1393     case $cache_file in
1394       [\\/]* | ?:[\\/]* ) . $cache_file;;
1395       *)                      . ./$cache_file;;
1396     esac
1397   fi
1398 else
1399   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1401   >$cache_file
1402 fi
1403
1404 # Check that the precious variables saved in the cache have kept the same
1405 # value.
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410   eval ac_new_set=\$ac_env_${ac_var}_set
1411   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412   eval ac_new_val="\$ac_env_${ac_var}_value"
1413   case $ac_old_set,$ac_new_set in
1414     set,)
1415       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417       ac_cache_corrupted=: ;;
1418     ,set)
1419       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421       ac_cache_corrupted=: ;;
1422     ,);;
1423     *)
1424       if test "x$ac_old_val" != "x$ac_new_val"; then
1425         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1428 echo "$as_me:   former value:  $ac_old_val" >&2;}
1429         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1430 echo "$as_me:   current value: $ac_new_val" >&2;}
1431         ac_cache_corrupted=:
1432       fi;;
1433   esac
1434   # Pass precious variables to config.status.
1435   if test "$ac_new_set" = set; then
1436     case $ac_new_val in
1437     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439     *) ac_arg=$ac_var=$ac_new_val ;;
1440     esac
1441     case " $ac_configure_args " in
1442       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1443       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444     esac
1445   fi
1446 done
1447 if $ac_cache_corrupted; then
1448   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452    { (exit 1); exit 1; }; }
1453 fi
1454
1455 ac_ext=c
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488 ac_aux_dir=
1489 for ac_dir in autoconf $srcdir/autoconf; do
1490   if test -f $ac_dir/install-sh; then
1491     ac_aux_dir=$ac_dir
1492     ac_install_sh="$ac_aux_dir/install-sh -c"
1493     break
1494   elif test -f $ac_dir/install.sh; then
1495     ac_aux_dir=$ac_dir
1496     ac_install_sh="$ac_aux_dir/install.sh -c"
1497     break
1498   elif test -f $ac_dir/shtool; then
1499     ac_aux_dir=$ac_dir
1500     ac_install_sh="$ac_aux_dir/shtool install -c"
1501     break
1502   fi
1503 done
1504 if test -z "$ac_aux_dir"; then
1505   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
1513
1514 if test ${srcdir} != "."
1515 then
1516         if test -f ${srcdir}/include/Config/config.h
1517         then
1518                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1519 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520    { (exit 1); exit 1; }; }
1521         fi
1522 fi
1523
1524 if test -d ${srcdir}/projects/sample
1525 then
1526
1527
1528 subdirs="$subdirs projects/sample"
1529
1530 fi
1531
1532 if test -d ${srcdir}/projects/reopt
1533 then
1534
1535
1536 subdirs="$subdirs projects/reopt"
1537
1538 fi
1539
1540 if test -d ${srcdir}/projects/poolalloc
1541 then
1542
1543
1544 subdirs="$subdirs projects/poolalloc"
1545
1546 fi
1547
1548           ac_config_headers="$ac_config_headers include/Config/config.h"
1549
1550           ac_config_commands="$ac_config_commands Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands Makefile.common"
1554
1555
1556           ac_config_commands="$ac_config_commands Makefile.rules"
1557
1558
1559           ac_config_commands="$ac_config_commands lib/Makefile"
1560
1561
1562           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1566
1567
1568           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1572
1573
1574           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1575
1576
1577           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands runtime/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1659
1660
1661           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1665
1666
1667           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1668
1669
1670           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1671
1672
1673           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1674
1675
1676           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1680
1681
1682           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1683
1684
1685           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1686
1687
1688           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1689
1690
1691           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1692
1693
1694           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1695
1696
1697           ac_config_commands="$ac_config_commands runtime/libprofile/Makefile"
1698
1699
1700           ac_config_commands="$ac_config_commands test/Makefile"
1701
1702
1703           ac_config_commands="$ac_config_commands test/Makefile.tests"
1704
1705
1706           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1707
1708
1709           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1710
1711
1712           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1713
1714
1715           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1716
1717
1718           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1719
1720
1721           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1722
1723
1724           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1725
1726
1727           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1728
1729
1730           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1731
1732
1733           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1734
1735
1736           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1737
1738
1739           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1740
1741
1742           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1743
1744
1745           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1746
1747
1748           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1749
1750
1751           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1752
1753
1754           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1755
1756
1757           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1758
1759
1760           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/252.eon/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1914
1915
1916           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1923
1924
1925           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1929
1930
1931           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1935
1936
1937           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1944
1945
1946           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1947
1948
1949           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1971
1972
1973           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1974
1975
1976           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1983
1984
1985           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1986
1987
1988           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1992
1993
1994           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1998
1999
2000           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
2001
2002
2003           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
2004
2005
2006           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
2007
2008
2009           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
2010
2011
2012           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
2013
2014
2015           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
2016
2017
2018           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
2019
2020
2021           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
2022
2023
2024           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
2025
2026
2027           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
2028
2029
2030           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
2031
2032
2033           ac_config_commands="$ac_config_commands tools/Makefile"
2034
2035
2036           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
2037
2038
2039           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
2040
2041
2042           ac_config_commands="$ac_config_commands tools/extract/Makefile"
2043
2044
2045           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
2046
2047
2048           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
2049
2050
2051           ac_config_commands="$ac_config_commands tools/llc/Makefile"
2052
2053
2054           ac_config_commands="$ac_config_commands tools/llee/Makefile"
2055
2056
2057           ac_config_commands="$ac_config_commands tools/lli/Makefile"
2058
2059
2060           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2061
2062
2063           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2064
2065
2066           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
2067
2068
2069           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2070
2071
2072           ac_config_commands="$ac_config_commands tools/llvm-nm/Makefile"
2073
2074
2075           ac_config_commands="$ac_config_commands tools/llvm-prof/Makefile"
2076
2077
2078           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2079
2080
2081           ac_config_commands="$ac_config_commands utils/Makefile"
2082
2083
2084           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2085
2086
2087           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2088
2089
2090           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2091
2092
2093           ac_config_commands="$ac_config_commands projects/Makefile"
2094
2095
2096           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2097
2098
2099           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2100
2101
2102           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2103
2104
2105           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2106
2107
2108
2109
2110 # Find a good install program.  We prefer a C program (faster),
2111 # so one script is as good as another.  But avoid the broken or
2112 # incompatible versions:
2113 # SysV /etc/install, /usr/sbin/install
2114 # SunOS /usr/etc/install
2115 # IRIX /sbin/install
2116 # AIX /bin/install
2117 # AmigaOS /C/install, which installs bootblocks on floppy discs
2118 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2119 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2120 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2121 # ./install, which can be erroneously created by make from ./install.sh.
2122 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2123 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2124 if test -z "$INSTALL"; then
2125 if test "${ac_cv_path_install+set}" = set; then
2126   echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2130 do
2131   IFS=$as_save_IFS
2132   test -z "$as_dir" && as_dir=.
2133   # Account for people who put trailing slashes in PATH elements.
2134 case $as_dir/ in
2135   ./ | .// | /cC/* | \
2136   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2137   /usr/ucb/* ) ;;
2138   *)
2139     # OSF1 and SCO ODT 3.0 have their own names for install.
2140     # Don't use installbsd from OSF since it installs stuff as root
2141     # by default.
2142     for ac_prog in ginstall scoinst install; do
2143       for ac_exec_ext in '' $ac_executable_extensions; do
2144         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2145           if test $ac_prog = install &&
2146             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2147             # AIX install.  It has an incompatible calling convention.
2148             :
2149           elif test $ac_prog = install &&
2150             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2151             # program-specific install script used by HP pwplus--don't use.
2152             :
2153           else
2154             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2155             break 3
2156           fi
2157         fi
2158       done
2159     done
2160     ;;
2161 esac
2162 done
2163
2164
2165 fi
2166   if test "${ac_cv_path_install+set}" = set; then
2167     INSTALL=$ac_cv_path_install
2168   else
2169     # As a last resort, use the slow shell script.  We don't cache a
2170     # path for INSTALL within a source directory, because that will
2171     # break other packages using the cache if that directory is
2172     # removed, or if the path is relative.
2173     INSTALL=$ac_install_sh
2174   fi
2175 fi
2176 echo "$as_me:$LINENO: result: $INSTALL" >&5
2177 echo "${ECHO_T}$INSTALL" >&6
2178
2179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2180 # It thinks the first close brace ends the variable substitution.
2181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2182
2183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2184
2185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2186
2187
2188 # Make sure we can run config.sub.
2189 $ac_config_sub sun4 >/dev/null 2>&1 ||
2190   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2191 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2192    { (exit 1); exit 1; }; }
2193
2194 echo "$as_me:$LINENO: checking build system type" >&5
2195 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2196 if test "${ac_cv_build+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   ac_cv_build_alias=$build_alias
2200 test -z "$ac_cv_build_alias" &&
2201   ac_cv_build_alias=`$ac_config_guess`
2202 test -z "$ac_cv_build_alias" &&
2203   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2204 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2205    { (exit 1); exit 1; }; }
2206 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2207   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2208 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2209    { (exit 1); exit 1; }; }
2210
2211 fi
2212 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2213 echo "${ECHO_T}$ac_cv_build" >&6
2214 build=$ac_cv_build
2215 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2216 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2217 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2218
2219
2220 echo "$as_me:$LINENO: checking host system type" >&5
2221 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2222 if test "${ac_cv_host+set}" = set; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   ac_cv_host_alias=$host_alias
2226 test -z "$ac_cv_host_alias" &&
2227   ac_cv_host_alias=$ac_cv_build_alias
2228 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2229   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2230 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2231    { (exit 1); exit 1; }; }
2232
2233 fi
2234 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2235 echo "${ECHO_T}$ac_cv_host" >&6
2236 host=$ac_cv_host
2237 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2238 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2239 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2240
2241
2242 echo "$as_me:$LINENO: checking target system type" >&5
2243 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2244 if test "${ac_cv_target+set}" = set; then
2245   echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247   ac_cv_target_alias=$target_alias
2248 test "x$ac_cv_target_alias" = "x" &&
2249   ac_cv_target_alias=$ac_cv_host_alias
2250 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2251   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2252 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2253    { (exit 1); exit 1; }; }
2254
2255 fi
2256 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2257 echo "${ECHO_T}$ac_cv_target" >&6
2258 target=$ac_cv_target
2259 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2260 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2261 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2262
2263
2264 # The aliases save the names the user supplied, while $host etc.
2265 # will get canonicalized.
2266 test -n "$target_alias" &&
2267   test "$program_prefix$program_suffix$program_transform_name" = \
2268     NONENONEs,x,x, &&
2269   program_prefix=${target_alias}-
2270
2271 case $build in
2272         *i*86*)  OS=Linux
2273
2274                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2275
2276                  ;;
2277
2278         *sparc*) OS=SunOS
2279
2280                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2281
2282                  ;;
2283
2284         *)       OS=Unknown
2285
2286                  ;;
2287 esac
2288
2289 case $target in
2290         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2291
2292                           ;;
2293 esac
2294
2295 case $target in
2296         *i*86*)           ARCH=x86
2297
2298                           ;;
2299         *sparc*solaris*)  ARCH=Sparc
2300
2301                           ;;
2302 esac
2303
2304
2305 ac_ext=cc
2306 ac_cpp='$CXXCPP $CPPFLAGS'
2307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2310 if test -n "$ac_tool_prefix"; then
2311   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2312   do
2313     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2315 echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317 if test "${ac_cv_prog_CXX+set}" = set; then
2318   echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320   if test -n "$CXX"; then
2321   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2325 do
2326   IFS=$as_save_IFS
2327   test -z "$as_dir" && as_dir=.
2328   for ac_exec_ext in '' $ac_executable_extensions; do
2329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332     break 2
2333   fi
2334 done
2335 done
2336
2337 fi
2338 fi
2339 CXX=$ac_cv_prog_CXX
2340 if test -n "$CXX"; then
2341   echo "$as_me:$LINENO: result: $CXX" >&5
2342 echo "${ECHO_T}$CXX" >&6
2343 else
2344   echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2346 fi
2347
2348     test -n "$CXX" && break
2349   done
2350 fi
2351 if test -z "$CXX"; then
2352   ac_ct_CXX=$CXX
2353   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2354 do
2355   # Extract the first word of "$ac_prog", so it can be a program name with args.
2356 set dummy $ac_prog; ac_word=$2
2357 echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2359 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2360   echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362   if test -n "$ac_ct_CXX"; then
2363   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368   IFS=$as_save_IFS
2369   test -z "$as_dir" && as_dir=.
2370   for ac_exec_ext in '' $ac_executable_extensions; do
2371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372     ac_cv_prog_ac_ct_CXX="$ac_prog"
2373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374     break 2
2375   fi
2376 done
2377 done
2378
2379 fi
2380 fi
2381 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2382 if test -n "$ac_ct_CXX"; then
2383   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2384 echo "${ECHO_T}$ac_ct_CXX" >&6
2385 else
2386   echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6
2388 fi
2389
2390   test -n "$ac_ct_CXX" && break
2391 done
2392 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2393
2394   CXX=$ac_ct_CXX
2395 fi
2396
2397
2398 # Provide some information about the compiler.
2399 echo "$as_me:$LINENO:" \
2400      "checking for C++ compiler version" >&5
2401 ac_compiler=`set X $ac_compile; echo $2`
2402 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2403   (eval $ac_compiler --version </dev/null >&5) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); }
2407 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2408   (eval $ac_compiler -v </dev/null >&5) 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }
2412 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2413   (eval $ac_compiler -V </dev/null >&5) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }
2417
2418 cat >conftest.$ac_ext <<_ACEOF
2419 #line $LINENO "configure"
2420 /* confdefs.h.  */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h.  */
2425
2426 int
2427 main ()
2428 {
2429
2430   ;
2431   return 0;
2432 }
2433 _ACEOF
2434 ac_clean_files_save=$ac_clean_files
2435 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2436 # Try to create an executable without -o first, disregard a.out.
2437 # It will help us diagnose broken compilers, and finding out an intuition
2438 # of exeext.
2439 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2440 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2441 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2442 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2443   (eval $ac_link_default) 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); }; then
2447   # Find the output, starting from the most likely.  This scheme is
2448 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2449 # resort.
2450
2451 # Be careful to initialize this variable, since it used to be cached.
2452 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2453 ac_cv_exeext=
2454 # b.out is created by i960 compilers.
2455 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2456 do
2457   test -f "$ac_file" || continue
2458   case $ac_file in
2459     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2460         ;;
2461     conftest.$ac_ext )
2462         # This is the source file.
2463         ;;
2464     [ab].out )
2465         # We found the default executable, but exeext='' is most
2466         # certainly right.
2467         break;;
2468     *.* )
2469         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2470         # FIXME: I believe we export ac_cv_exeext for Libtool,
2471         # but it would be cool to find out if it's true.  Does anybody
2472         # maintain Libtool? --akim.
2473         export ac_cv_exeext
2474         break;;
2475     * )
2476         break;;
2477   esac
2478 done
2479 else
2480   echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: C++ compiler cannot create executables
2486 See \`config.log' for more details." >&2;}
2487    { (exit 77); exit 77; }; }
2488 fi
2489
2490 ac_exeext=$ac_cv_exeext
2491 echo "$as_me:$LINENO: result: $ac_file" >&5
2492 echo "${ECHO_T}$ac_file" >&6
2493
2494 # Check the compiler produces executables we can run.  If not, either
2495 # the compiler is broken, or we cross compile.
2496 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2497 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2498 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2499 # If not cross compiling, check that we can run a simple program.
2500 if test "$cross_compiling" != yes; then
2501   if { ac_try='./$ac_file'
2502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503   (eval $ac_try) 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); }; }; then
2507     cross_compiling=no
2508   else
2509     if test "$cross_compiling" = maybe; then
2510         cross_compiling=yes
2511     else
2512         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2513 If you meant to cross compile, use \`--host'.
2514 See \`config.log' for more details." >&5
2515 echo "$as_me: error: cannot run C++ compiled programs.
2516 If you meant to cross compile, use \`--host'.
2517 See \`config.log' for more details." >&2;}
2518    { (exit 1); exit 1; }; }
2519     fi
2520   fi
2521 fi
2522 echo "$as_me:$LINENO: result: yes" >&5
2523 echo "${ECHO_T}yes" >&6
2524
2525 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2526 ac_clean_files=$ac_clean_files_save
2527 # Check the compiler produces executables we can run.  If not, either
2528 # the compiler is broken, or we cross compile.
2529 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2530 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2531 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2532 echo "${ECHO_T}$cross_compiling" >&6
2533
2534 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2535 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2537   (eval $ac_link) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }; then
2541   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2542 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2543 # work properly (i.e., refer to `conftest.exe'), while it won't with
2544 # `rm'.
2545 for ac_file in conftest.exe conftest conftest.*; do
2546   test -f "$ac_file" || continue
2547   case $ac_file in
2548     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2549     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2550           export ac_cv_exeext
2551           break;;
2552     * ) break;;
2553   esac
2554 done
2555 else
2556   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2557 See \`config.log' for more details." >&5
2558 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2559 See \`config.log' for more details." >&2;}
2560    { (exit 1); exit 1; }; }
2561 fi
2562
2563 rm -f conftest$ac_cv_exeext
2564 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2565 echo "${ECHO_T}$ac_cv_exeext" >&6
2566
2567 rm -f conftest.$ac_ext
2568 EXEEXT=$ac_cv_exeext
2569 ac_exeext=$EXEEXT
2570 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2571 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2572 if test "${ac_cv_objext+set}" = set; then
2573   echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575   cat >conftest.$ac_ext <<_ACEOF
2576 #line $LINENO "configure"
2577 /* confdefs.h.  */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h.  */
2582
2583 int
2584 main ()
2585 {
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.o conftest.obj
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593   (eval $ac_compile) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; then
2597   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2598   case $ac_file in
2599     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2600     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2601        break;;
2602   esac
2603 done
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2609 See \`config.log' for more details." >&5
2610 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2611 See \`config.log' for more details." >&2;}
2612    { (exit 1); exit 1; }; }
2613 fi
2614
2615 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2616 fi
2617 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2618 echo "${ECHO_T}$ac_cv_objext" >&6
2619 OBJEXT=$ac_cv_objext
2620 ac_objext=$OBJEXT
2621 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2622 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2623 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   cat >conftest.$ac_ext <<_ACEOF
2627 #line $LINENO "configure"
2628 /* confdefs.h.  */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h.  */
2633
2634 int
2635 main ()
2636 {
2637 #ifndef __GNUC__
2638        choke me
2639 #endif
2640
2641   ;
2642   return 0;
2643 }
2644 _ACEOF
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647   (eval $ac_compile) 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); } &&
2651          { ac_try='test -s conftest.$ac_objext'
2652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653   (eval $ac_try) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; }; then
2657   ac_compiler_gnu=yes
2658 else
2659   echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662 ac_compiler_gnu=no
2663 fi
2664 rm -f conftest.$ac_objext conftest.$ac_ext
2665 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2666
2667 fi
2668 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2669 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2670 GXX=`test $ac_compiler_gnu = yes && echo yes`
2671 ac_test_CXXFLAGS=${CXXFLAGS+set}
2672 ac_save_CXXFLAGS=$CXXFLAGS
2673 CXXFLAGS="-g"
2674 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2675 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2676 if test "${ac_cv_prog_cxx_g+set}" = set; then
2677   echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679   cat >conftest.$ac_ext <<_ACEOF
2680 #line $LINENO "configure"
2681 /* confdefs.h.  */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h.  */
2686
2687 int
2688 main ()
2689 {
2690
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697   (eval $ac_compile) 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); } &&
2701          { ac_try='test -s conftest.$ac_objext'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; }; then
2707   ac_cv_prog_cxx_g=yes
2708 else
2709   echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2711
2712 ac_cv_prog_cxx_g=no
2713 fi
2714 rm -f conftest.$ac_objext conftest.$ac_ext
2715 fi
2716 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2717 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2718 if test "$ac_test_CXXFLAGS" = set; then
2719   CXXFLAGS=$ac_save_CXXFLAGS
2720 elif test $ac_cv_prog_cxx_g = yes; then
2721   if test "$GXX" = yes; then
2722     CXXFLAGS="-g -O2"
2723   else
2724     CXXFLAGS="-g"
2725   fi
2726 else
2727   if test "$GXX" = yes; then
2728     CXXFLAGS="-O2"
2729   else
2730     CXXFLAGS=
2731   fi
2732 fi
2733 for ac_declaration in \
2734    ''\
2735    '#include <stdlib.h>' \
2736    'extern "C" void std::exit (int) throw (); using std::exit;' \
2737    'extern "C" void std::exit (int); using std::exit;' \
2738    'extern "C" void exit (int) throw ();' \
2739    'extern "C" void exit (int);' \
2740    'void exit (int);'
2741 do
2742   cat >conftest.$ac_ext <<_ACEOF
2743 #line $LINENO "configure"
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749 #include <stdlib.h>
2750 $ac_declaration
2751 int
2752 main ()
2753 {
2754 exit (42);
2755   ;
2756   return 0;
2757 }
2758 _ACEOF
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761   (eval $ac_compile) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } &&
2765          { ac_try='test -s conftest.$ac_objext'
2766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767   (eval $ac_try) 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }; }; then
2771   :
2772 else
2773   echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2775
2776 continue
2777 fi
2778 rm -f conftest.$ac_objext conftest.$ac_ext
2779   cat >conftest.$ac_ext <<_ACEOF
2780 #line $LINENO "configure"
2781 /* confdefs.h.  */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h.  */
2786 $ac_declaration
2787 int
2788 main ()
2789 {
2790 exit (42);
2791   ;
2792   return 0;
2793 }
2794 _ACEOF
2795 rm -f conftest.$ac_objext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797   (eval $ac_compile) 2>&5
2798   ac_status=$?
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); } &&
2801          { ac_try='test -s conftest.$ac_objext'
2802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803   (eval $ac_try) 2>&5
2804   ac_status=$?
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); }; }; then
2807   break
2808 else
2809   echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2811
2812 fi
2813 rm -f conftest.$ac_objext conftest.$ac_ext
2814 done
2815 rm -f conftest*
2816 if test -n "$ac_declaration"; then
2817   echo '#ifdef __cplusplus' >>confdefs.h
2818   echo $ac_declaration      >>confdefs.h
2819   echo '#endif'             >>confdefs.h
2820 fi
2821
2822 ac_ext=c
2823 ac_cpp='$CPP $CPPFLAGS'
2824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827
2828 ac_ext=c
2829 ac_cpp='$CPP $CPPFLAGS'
2830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833 if test -n "$ac_tool_prefix"; then
2834   for ac_prog in gcc
2835   do
2836     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2838 echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2840 if test "${ac_cv_prog_CC+set}" = set; then
2841   echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843   if test -n "$CC"; then
2844   ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851   for ac_exec_ext in '' $ac_executable_extensions; do
2852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858 done
2859
2860 fi
2861 fi
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864   echo "$as_me:$LINENO: result: $CC" >&5
2865 echo "${ECHO_T}$CC" >&6
2866 else
2867   echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6
2869 fi
2870
2871     test -n "$CC" && break
2872   done
2873 fi
2874 if test -z "$CC"; then
2875   ac_ct_CC=$CC
2876   for ac_prog in gcc
2877 do
2878   # Extract the first word of "$ac_prog", so it can be a program name with args.
2879 set dummy $ac_prog; ac_word=$2
2880 echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885   if test -n "$ac_ct_CC"; then
2886   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891   IFS=$as_save_IFS
2892   test -z "$as_dir" && as_dir=.
2893   for ac_exec_ext in '' $ac_executable_extensions; do
2894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895     ac_cv_prog_ac_ct_CC="$ac_prog"
2896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897     break 2
2898   fi
2899 done
2900 done
2901
2902 fi
2903 fi
2904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2907 echo "${ECHO_T}$ac_ct_CC" >&6
2908 else
2909   echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2911 fi
2912
2913   test -n "$ac_ct_CC" && break
2914 done
2915
2916   CC=$ac_ct_CC
2917 fi
2918
2919
2920 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2921 See \`config.log' for more details." >&5
2922 echo "$as_me: error: no acceptable C compiler found in \$PATH
2923 See \`config.log' for more details." >&2;}
2924    { (exit 1); exit 1; }; }
2925
2926 # Provide some information about the compiler.
2927 echo "$as_me:$LINENO:" \
2928      "checking for C compiler version" >&5
2929 ac_compiler=`set X $ac_compile; echo $2`
2930 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2931   (eval $ac_compiler --version </dev/null >&5) 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }
2935 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2936   (eval $ac_compiler -v </dev/null >&5) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }
2940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2941   (eval $ac_compiler -V </dev/null >&5) 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }
2945
2946 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2948 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   cat >conftest.$ac_ext <<_ACEOF
2952 #line $LINENO "configure"
2953 /* confdefs.h.  */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h.  */
2958
2959 int
2960 main ()
2961 {
2962 #ifndef __GNUC__
2963        choke me
2964 #endif
2965
2966   ;
2967   return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.$ac_objext
2971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2972   (eval $ac_compile) 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } &&
2976          { ac_try='test -s conftest.$ac_objext'
2977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978   (eval $ac_try) 2>&5
2979   ac_status=$?
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); }; }; then
2982   ac_compiler_gnu=yes
2983 else
2984   echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987 ac_compiler_gnu=no
2988 fi
2989 rm -f conftest.$ac_objext conftest.$ac_ext
2990 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2991
2992 fi
2993 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2994 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2995 GCC=`test $ac_compiler_gnu = yes && echo yes`
2996 ac_test_CFLAGS=${CFLAGS+set}
2997 ac_save_CFLAGS=$CFLAGS
2998 CFLAGS="-g"
2999 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3000 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3001 if test "${ac_cv_prog_cc_g+set}" = set; then
3002   echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004   cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011
3012 int
3013 main ()
3014 {
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3022   (eval $ac_compile) 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); } &&
3026          { ac_try='test -s conftest.$ac_objext'
3027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028   (eval $ac_try) 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }; }; then
3032   ac_cv_prog_cc_g=yes
3033 else
3034   echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037 ac_cv_prog_cc_g=no
3038 fi
3039 rm -f conftest.$ac_objext conftest.$ac_ext
3040 fi
3041 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3042 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3043 if test "$ac_test_CFLAGS" = set; then
3044   CFLAGS=$ac_save_CFLAGS
3045 elif test $ac_cv_prog_cc_g = yes; then
3046   if test "$GCC" = yes; then
3047     CFLAGS="-g -O2"
3048   else
3049     CFLAGS="-g"
3050   fi
3051 else
3052   if test "$GCC" = yes; then
3053     CFLAGS="-O2"
3054   else
3055     CFLAGS=
3056   fi
3057 fi
3058 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3059 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3060 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3061   echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063   ac_cv_prog_cc_stdc=no
3064 ac_save_CC=$CC
3065 cat >conftest.$ac_ext <<_ACEOF
3066 #line $LINENO "configure"
3067 /* confdefs.h.  */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h.  */
3072 #include <stdarg.h>
3073 #include <stdio.h>
3074 #include <sys/types.h>
3075 #include <sys/stat.h>
3076 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3077 struct buf { int x; };
3078 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3079 static char *e (p, i)
3080      char **p;
3081      int i;
3082 {
3083   return p[i];
3084 }
3085 static char *f (char * (*g) (char **, int), char **p, ...)
3086 {
3087   char *s;
3088   va_list v;
3089   va_start (v,p);
3090   s = g (p, va_arg (v,int));
3091   va_end (v);
3092   return s;
3093 }
3094 int test (int i, double x);
3095 struct s1 {int (*f) (int a);};
3096 struct s2 {int (*f) (double a);};
3097 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3098 int argc;
3099 char **argv;
3100 int
3101 main ()
3102 {
3103 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3104   ;
3105   return 0;
3106 }
3107 _ACEOF
3108 # Don't try gcc -ansi; that turns off useful extensions and
3109 # breaks some systems' header files.
3110 # AIX                   -qlanglvl=ansi
3111 # Ultrix and OSF/1      -std1
3112 # HP-UX 10.20 and later -Ae
3113 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3114 # SVR4                  -Xc -D__EXTENSIONS__
3115 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3116 do
3117   CC="$ac_save_CC $ac_arg"
3118   rm -f conftest.$ac_objext
3119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3120   (eval $ac_compile) 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); } &&
3124          { ac_try='test -s conftest.$ac_objext'
3125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126   (eval $ac_try) 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; }; then
3130   ac_cv_prog_cc_stdc=$ac_arg
3131 break
3132 else
3133   echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3135
3136 fi
3137 rm -f conftest.$ac_objext
3138 done
3139 rm -f conftest.$ac_ext conftest.$ac_objext
3140 CC=$ac_save_CC
3141
3142 fi
3143
3144 case "x$ac_cv_prog_cc_stdc" in
3145   x|xno)
3146     echo "$as_me:$LINENO: result: none needed" >&5
3147 echo "${ECHO_T}none needed" >&6 ;;
3148   *)
3149     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3150 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3151     CC="$CC $ac_cv_prog_cc_stdc" ;;
3152 esac
3153
3154 # Some people use a C++ compiler to compile C.  Since we use `exit',
3155 # in C++ we need to declare it.  In case someone uses the same compiler
3156 # for both compiling C and C++ we need to have the C++ compiler decide
3157 # the declaration of exit, since it's the most demanding environment.
3158 cat >conftest.$ac_ext <<_ACEOF
3159 #ifndef __cplusplus
3160   choke me
3161 #endif
3162 _ACEOF
3163 rm -f conftest.$ac_objext
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165   (eval $ac_compile) 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } &&
3169          { ac_try='test -s conftest.$ac_objext'
3170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171   (eval $ac_try) 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }; }; then
3175   for ac_declaration in \
3176    ''\
3177    '#include <stdlib.h>' \
3178    'extern "C" void std::exit (int) throw (); using std::exit;' \
3179    'extern "C" void std::exit (int); using std::exit;' \
3180    'extern "C" void exit (int) throw ();' \
3181    'extern "C" void exit (int);' \
3182    'void exit (int);'
3183 do
3184   cat >conftest.$ac_ext <<_ACEOF
3185 #line $LINENO "configure"
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191 #include <stdlib.h>
3192 $ac_declaration
3193 int
3194 main ()
3195 {
3196 exit (42);
3197   ;
3198   return 0;
3199 }
3200 _ACEOF
3201 rm -f conftest.$ac_objext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203   (eval $ac_compile) 2>&5
3204   ac_status=$?
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); } &&
3207          { ac_try='test -s conftest.$ac_objext'
3208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209   (eval $ac_try) 2>&5
3210   ac_status=$?
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); }; }; then
3213   :
3214 else
3215   echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3217
3218 continue
3219 fi
3220 rm -f conftest.$ac_objext conftest.$ac_ext
3221   cat >conftest.$ac_ext <<_ACEOF
3222 #line $LINENO "configure"
3223 /* confdefs.h.  */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h.  */
3228 $ac_declaration
3229 int
3230 main ()
3231 {
3232 exit (42);
3233   ;
3234   return 0;
3235 }
3236 _ACEOF
3237 rm -f conftest.$ac_objext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3239   (eval $ac_compile) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } &&
3243          { ac_try='test -s conftest.$ac_objext'
3244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245   (eval $ac_try) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }; }; then
3249   break
3250 else
3251   echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 fi
3255 rm -f conftest.$ac_objext conftest.$ac_ext
3256 done
3257 rm -f conftest*
3258 if test -n "$ac_declaration"; then
3259   echo '#ifdef __cplusplus' >>confdefs.h
3260   echo $ac_declaration      >>confdefs.h
3261   echo '#endif'             >>confdefs.h
3262 fi
3263
3264 else
3265   echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 fi
3269 rm -f conftest.$ac_objext conftest.$ac_ext
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
3276 ac_ext=c
3277 ac_cpp='$CPP $CPPFLAGS'
3278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3282 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3283 # On Suns, sometimes $CPP names a directory.
3284 if test -n "$CPP" && test -d "$CPP"; then
3285   CPP=
3286 fi
3287 if test -z "$CPP"; then
3288   if test "${ac_cv_prog_CPP+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291       # Double quotes because CPP needs to be expanded
3292     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3293     do
3294       ac_preproc_ok=false
3295 for ac_c_preproc_warn_flag in '' yes
3296 do
3297   # Use a header file that comes with gcc, so configuring glibc
3298   # with a fresh cross-compiler works.
3299   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3300   # <limits.h> exists even on freestanding compilers.
3301   # On the NeXT, cc -E runs the code through the compiler's parser,
3302   # not just through cpp. "Syntax error" is here to catch this case.
3303   cat >conftest.$ac_ext <<_ACEOF
3304 #line $LINENO "configure"
3305 /* confdefs.h.  */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h.  */
3310 #ifdef __STDC__
3311 # include <limits.h>
3312 #else
3313 # include <assert.h>
3314 #endif
3315                      Syntax error
3316 _ACEOF
3317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3318   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3319   ac_status=$?
3320   grep -v '^ *+' conftest.er1 >conftest.err
3321   rm -f conftest.er1
3322   cat conftest.err >&5
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); } >/dev/null; then
3325   if test -s conftest.err; then
3326     ac_cpp_err=$ac_c_preproc_warn_flag
3327   else
3328     ac_cpp_err=
3329   fi
3330 else
3331   ac_cpp_err=yes
3332 fi
3333 if test -z "$ac_cpp_err"; then
3334   :
3335 else
3336   echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339   # Broken: fails on valid input.
3340 continue
3341 fi
3342 rm -f conftest.err conftest.$ac_ext
3343
3344   # OK, works on sane cases.  Now check whether non-existent headers
3345   # can be detected and how.
3346   cat >conftest.$ac_ext <<_ACEOF
3347 #line $LINENO "configure"
3348 /* confdefs.h.  */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h.  */
3353 #include <ac_nonexistent.h>
3354 _ACEOF
3355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3356   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3357   ac_status=$?
3358   grep -v '^ *+' conftest.er1 >conftest.err
3359   rm -f conftest.er1
3360   cat conftest.err >&5
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); } >/dev/null; then
3363   if test -s conftest.err; then
3364     ac_cpp_err=$ac_c_preproc_warn_flag
3365   else
3366     ac_cpp_err=
3367   fi
3368 else
3369   ac_cpp_err=yes
3370 fi
3371 if test -z "$ac_cpp_err"; then
3372   # Broken: success on invalid input.
3373 continue
3374 else
3375   echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3377
3378   # Passes both tests.
3379 ac_preproc_ok=:
3380 break
3381 fi
3382 rm -f conftest.err conftest.$ac_ext
3383
3384 done
3385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3386 rm -f conftest.err conftest.$ac_ext
3387 if $ac_preproc_ok; then
3388   break
3389 fi
3390
3391     done
3392     ac_cv_prog_CPP=$CPP
3393
3394 fi
3395   CPP=$ac_cv_prog_CPP
3396 else
3397   ac_cv_prog_CPP=$CPP
3398 fi
3399 echo "$as_me:$LINENO: result: $CPP" >&5
3400 echo "${ECHO_T}$CPP" >&6
3401 ac_preproc_ok=false
3402 for ac_c_preproc_warn_flag in '' yes
3403 do
3404   # Use a header file that comes with gcc, so configuring glibc
3405   # with a fresh cross-compiler works.
3406   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3407   # <limits.h> exists even on freestanding compilers.
3408   # On the NeXT, cc -E runs the code through the compiler's parser,
3409   # not just through cpp. "Syntax error" is here to catch this case.
3410   cat >conftest.$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3412 /* confdefs.h.  */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h.  */
3417 #ifdef __STDC__
3418 # include <limits.h>
3419 #else
3420 # include <assert.h>
3421 #endif
3422                      Syntax error
3423 _ACEOF
3424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3425   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3426   ac_status=$?
3427   grep -v '^ *+' conftest.er1 >conftest.err
3428   rm -f conftest.er1
3429   cat conftest.err >&5
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); } >/dev/null; then
3432   if test -s conftest.err; then
3433     ac_cpp_err=$ac_c_preproc_warn_flag
3434   else
3435     ac_cpp_err=
3436   fi
3437 else
3438   ac_cpp_err=yes
3439 fi
3440 if test -z "$ac_cpp_err"; then
3441   :
3442 else
3443   echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3445
3446   # Broken: fails on valid input.
3447 continue
3448 fi
3449 rm -f conftest.err conftest.$ac_ext
3450
3451   # OK, works on sane cases.  Now check whether non-existent headers
3452   # can be detected and how.
3453   cat >conftest.$ac_ext <<_ACEOF
3454 #line $LINENO "configure"
3455 /* confdefs.h.  */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h.  */
3460 #include <ac_nonexistent.h>
3461 _ACEOF
3462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3463   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3464   ac_status=$?
3465   grep -v '^ *+' conftest.er1 >conftest.err
3466   rm -f conftest.er1
3467   cat conftest.err >&5
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); } >/dev/null; then
3470   if test -s conftest.err; then
3471     ac_cpp_err=$ac_c_preproc_warn_flag
3472   else
3473     ac_cpp_err=
3474   fi
3475 else
3476   ac_cpp_err=yes
3477 fi
3478 if test -z "$ac_cpp_err"; then
3479   # Broken: success on invalid input.
3480 continue
3481 else
3482   echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485   # Passes both tests.
3486 ac_preproc_ok=:
3487 break
3488 fi
3489 rm -f conftest.err conftest.$ac_ext
3490
3491 done
3492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3493 rm -f conftest.err conftest.$ac_ext
3494 if $ac_preproc_ok; then
3495   :
3496 else
3497   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3498 See \`config.log' for more details." >&5
3499 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3500 See \`config.log' for more details." >&2;}
3501    { (exit 1); exit 1; }; }
3502 fi
3503
3504 ac_ext=c
3505 ac_cpp='$CPP $CPPFLAGS'
3506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509
3510
3511 if test "$GCC" != "yes"
3512 then
3513         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3514 echo "$as_me: error: gcc required but not found" >&2;}
3515    { (exit 1); exit 1; }; }
3516 fi
3517
3518 if test "$GXX" != "yes"
3519 then
3520         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3521 echo "$as_me: error: g++ required but not found" >&2;}
3522    { (exit 1); exit 1; }; }
3523 fi
3524
3525 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3526 if test "$gccmajor" -lt "3"
3527 then
3528         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3529 echo "$as_me: error: gcc 3.x required" >&2;}
3530    { (exit 1); exit 1; }; }
3531 fi
3532
3533  echo "$as_me:$LINENO: checking for GNU make" >&5
3534 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3535 if test "${_cv_gnu_make_command+set}" = set; then
3536   echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538   _cv_gnu_make_command='' ;
3539                 for a in "$MAKE" make gmake gnumake ; do
3540                         if test -z "$a" ; then continue ; fi ;
3541                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3542                                 _cv_gnu_make_command=$a ;
3543                                 break;
3544                         fi
3545                 done ;
3546
3547 fi
3548 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3549 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3550         if test  "x$_cv_gnu_make_command" != "x"  ; then
3551                 ifGNUmake='' ;
3552         else
3553                 ifGNUmake='#' ;
3554                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3555 echo "${ECHO_T}\"Not found\"" >&6;
3556         fi
3557
3558
3559 if test -z "$_cv_gnu_make_command"
3560 then
3561         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3562 echo "$as_me: error: GNU Make required but not found" >&2;}
3563    { (exit 1); exit 1; }; }
3564 fi
3565
3566
3567 echo "$as_me:$LINENO: checking " >&5
3568 echo $ECHO_N "checking ... $ECHO_C" >&6
3569 if test "${ac_cv_has_flex+set}" = set; then
3570   echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572   for ac_prog in flex lex
3573 do
3574   # Extract the first word of "$ac_prog", so it can be a program name with args.
3575 set dummy $ac_prog; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_prog_LEX+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   if test -n "$LEX"; then
3582   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3583 else
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3586 do
3587   IFS=$as_save_IFS
3588   test -z "$as_dir" && as_dir=.
3589   for ac_exec_ext in '' $ac_executable_extensions; do
3590   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591     ac_cv_prog_LEX="$ac_prog"
3592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3593     break 2
3594   fi
3595 done
3596 done
3597
3598 fi
3599 fi
3600 LEX=$ac_cv_prog_LEX
3601 if test -n "$LEX"; then
3602   echo "$as_me:$LINENO: result: $LEX" >&5
3603 echo "${ECHO_T}$LEX" >&6
3604 else
3605   echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6
3607 fi
3608
3609   test -n "$LEX" && break
3610 done
3611 test -n "$LEX" || LEX=":"
3612
3613 if test -z "$LEXLIB"
3614 then
3615   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3616 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3617 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3618   echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620   ac_check_lib_save_LIBS=$LIBS
3621 LIBS="-lfl  $LIBS"
3622 cat >conftest.$ac_ext <<_ACEOF
3623 #line $LINENO "configure"
3624 /* confdefs.h.  */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h.  */
3629
3630 /* Override any gcc2 internal prototype to avoid an error.  */
3631 #ifdef __cplusplus
3632 extern "C"
3633 #endif
3634 /* We use char because int might match the return type of a gcc2
3635    builtin and then its argument prototype would still apply.  */
3636 char yywrap ();
3637 int
3638 main ()
3639 {
3640 yywrap ();
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 rm -f conftest.$ac_objext conftest$ac_exeext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647   (eval $ac_link) 2>&5
3648   ac_status=$?
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } &&
3651          { ac_try='test -s conftest$ac_exeext'
3652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653   (eval $ac_try) 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); }; }; then
3657   ac_cv_lib_fl_yywrap=yes
3658 else
3659   echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 ac_cv_lib_fl_yywrap=no
3663 fi
3664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3665 LIBS=$ac_check_lib_save_LIBS
3666 fi
3667 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3668 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3669 if test $ac_cv_lib_fl_yywrap = yes; then
3670   LEXLIB="-lfl"
3671 else
3672   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3673 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3674 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   ac_check_lib_save_LIBS=$LIBS
3678 LIBS="-ll  $LIBS"
3679 cat >conftest.$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3681 /* confdefs.h.  */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h.  */
3686
3687 /* Override any gcc2 internal prototype to avoid an error.  */
3688 #ifdef __cplusplus
3689 extern "C"
3690 #endif
3691 /* We use char because int might match the return type of a gcc2
3692    builtin and then its argument prototype would still apply.  */
3693 char yywrap ();
3694 int
3695 main ()
3696 {
3697 yywrap ();
3698   ;
3699   return 0;
3700 }
3701 _ACEOF
3702 rm -f conftest.$ac_objext conftest$ac_exeext
3703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3704   (eval $ac_link) 2>&5
3705   ac_status=$?
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); } &&
3708          { ac_try='test -s conftest$ac_exeext'
3709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710   (eval $ac_try) 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); }; }; then
3714   ac_cv_lib_l_yywrap=yes
3715 else
3716   echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719 ac_cv_lib_l_yywrap=no
3720 fi
3721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3722 LIBS=$ac_check_lib_save_LIBS
3723 fi
3724 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3725 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3726 if test $ac_cv_lib_l_yywrap = yes; then
3727   LEXLIB="-ll"
3728 fi
3729
3730 fi
3731
3732 fi
3733
3734 if test "x$LEX" != "x:"; then
3735   echo "$as_me:$LINENO: checking lex output file root" >&5
3736 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3737 if test "${ac_cv_prog_lex_root+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   # The minimal lex program is just a single line: %%.  But some broken lexes
3741 # (Solaris, I think it was) want two %% lines, so accommodate them.
3742 cat >conftest.l <<_ACEOF
3743 %%
3744 %%
3745 _ACEOF
3746 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3747   (eval $LEX conftest.l) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); }
3751 if test -f lex.yy.c; then
3752   ac_cv_prog_lex_root=lex.yy
3753 elif test -f lexyy.c; then
3754   ac_cv_prog_lex_root=lexyy
3755 else
3756   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3757 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3758    { (exit 1); exit 1; }; }
3759 fi
3760 fi
3761 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3762 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3763 rm -f conftest.l
3764 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3765
3766 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3767 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3768 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   # POSIX says lex can declare yytext either as a pointer or an array; the
3772 # default is implementation-dependent. Figure out which it is, since
3773 # not all implementations provide the %pointer and %array declarations.
3774 ac_cv_prog_lex_yytext_pointer=no
3775 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3776 ac_save_LIBS=$LIBS
3777 LIBS="$LIBS $LEXLIB"
3778 cat >conftest.$ac_ext <<_ACEOF
3779 `cat $LEX_OUTPUT_ROOT.c`
3780 _ACEOF
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783   (eval $ac_link) 2>&5
3784   ac_status=$?
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); } &&
3787          { ac_try='test -s conftest$ac_exeext'
3788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789   (eval $ac_try) 2>&5
3790   ac_status=$?
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); }; }; then
3793   ac_cv_prog_lex_yytext_pointer=yes
3794 else
3795   echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 fi
3799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3800 LIBS=$ac_save_LIBS
3801 rm -f "${LEX_OUTPUT_ROOT}.c"
3802
3803 fi
3804 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3805 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3806 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3807
3808 cat >>confdefs.h <<\_ACEOF
3809 #define YYTEXT_POINTER 1
3810 _ACEOF
3811
3812 fi
3813
3814 fi
3815
3816 fi
3817 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3818 echo "${ECHO_T}$ac_cv_has_flex" >&6
3819 if test "$LEX" != "flex"; then
3820   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3821 echo "$as_me: error: flex not found but required" >&2;}
3822    { (exit 1); exit 1; }; }
3823 fi
3824
3825 echo "$as_me:$LINENO: checking " >&5
3826 echo $ECHO_N "checking ... $ECHO_C" >&6
3827 if test "${ac_cv_has_bison+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   for ac_prog in 'bison -y' byacc
3831 do
3832   # Extract the first word of "$ac_prog", so it can be a program name with args.
3833 set dummy $ac_prog; ac_word=$2
3834 echo "$as_me:$LINENO: checking for $ac_word" >&5
3835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836 if test "${ac_cv_prog_YACC+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   if test -n "$YACC"; then
3840   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845   IFS=$as_save_IFS
3846   test -z "$as_dir" && as_dir=.
3847   for ac_exec_ext in '' $ac_executable_extensions; do
3848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849     ac_cv_prog_YACC="$ac_prog"
3850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851     break 2
3852   fi
3853 done
3854 done
3855
3856 fi
3857 fi
3858 YACC=$ac_cv_prog_YACC
3859 if test -n "$YACC"; then
3860   echo "$as_me:$LINENO: result: $YACC" >&5
3861 echo "${ECHO_T}$YACC" >&6
3862 else
3863   echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3865 fi
3866
3867   test -n "$YACC" && break
3868 done
3869 test -n "$YACC" || YACC="yacc"
3870
3871
3872 fi
3873 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3874 echo "${ECHO_T}$ac_cv_has_bison" >&6
3875 if test "$YACC" != "bison -y"; then
3876   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3877 echo "$as_me: error: bison not found but required" >&2;}
3878    { (exit 1); exit 1; }; }
3879 else
3880   YACC=bison
3881
3882 fi
3883
3884
3885 # Check whether --enable-shared or --disable-shared was given.
3886 if test "${enable_shared+set}" = set; then
3887   enableval="$enable_shared"
3888   p=${PACKAGE-default}
3889     case $enableval in
3890     yes) enable_shared=yes ;;
3891     no) enable_shared=no ;;
3892     *)
3893       enable_shared=no
3894       # Look at the argument we got.  We use all the common list separators.
3895       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3896       for pkg in $enableval; do
3897         IFS="$lt_save_ifs"
3898         if test "X$pkg" = "X$p"; then
3899           enable_shared=yes
3900         fi
3901       done
3902       IFS="$lt_save_ifs"
3903       ;;
3904     esac
3905 else
3906   enable_shared=yes
3907 fi;
3908
3909 # Check whether --enable-static or --disable-static was given.
3910 if test "${enable_static+set}" = set; then
3911   enableval="$enable_static"
3912   p=${PACKAGE-default}
3913     case $enableval in
3914     yes) enable_static=yes ;;
3915     no) enable_static=no ;;
3916     *)
3917      enable_static=no
3918       # Look at the argument we got.  We use all the common list separators.
3919       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3920       for pkg in $enableval; do
3921         IFS="$lt_save_ifs"
3922         if test "X$pkg" = "X$p"; then
3923           enable_static=yes
3924         fi
3925       done
3926       IFS="$lt_save_ifs"
3927       ;;
3928     esac
3929 else
3930   enable_static=yes
3931 fi;
3932
3933 # Check whether --enable-fast-install or --disable-fast-install was given.
3934 if test "${enable_fast_install+set}" = set; then
3935   enableval="$enable_fast_install"
3936   p=${PACKAGE-default}
3937     case $enableval in
3938     yes) enable_fast_install=yes ;;
3939     no) enable_fast_install=no ;;
3940     *)
3941       enable_fast_install=no
3942       # Look at the argument we got.  We use all the common list separators.
3943       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3944       for pkg in $enableval; do
3945         IFS="$lt_save_ifs"
3946         if test "X$pkg" = "X$p"; then
3947           enable_fast_install=yes
3948         fi
3949       done
3950       IFS="$lt_save_ifs"
3951       ;;
3952     esac
3953 else
3954   enable_fast_install=yes
3955 fi;
3956
3957 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3958 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3959 if test "${lt_cv_path_SED+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   # Loop through the user's path and test for sed and gsed.
3963 # Then use that list of sed's as ones to test for truncation.
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967   IFS=$as_save_IFS
3968   test -z "$as_dir" && as_dir=.
3969   for lt_ac_prog in sed gsed; do
3970     for ac_exec_ext in '' $ac_executable_extensions; do
3971       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3972         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3973       fi
3974     done
3975   done
3976 done
3977 lt_ac_max=0
3978 lt_ac_count=0
3979 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3980 # along with /bin/sed that truncates output.
3981 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3982   test ! -f $lt_ac_sed && break
3983   cat /dev/null > conftest.in
3984   lt_ac_count=0
3985   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3986   # Check for GNU sed and select it if it is found.
3987   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3988     lt_cv_path_SED=$lt_ac_sed
3989     break
3990   fi
3991   while true; do
3992     cat conftest.in conftest.in >conftest.tmp
3993     mv conftest.tmp conftest.in
3994     cp conftest.in conftest.nl
3995     echo >>conftest.nl
3996     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3997     cmp -s conftest.out conftest.nl || break
3998     # 10000 chars as input seems more than enough
3999     test $lt_ac_count -gt 10 && break
4000     lt_ac_count=`expr $lt_ac_count + 1`
4001     if test $lt_ac_count -gt $lt_ac_max; then
4002       lt_ac_max=$lt_ac_count
4003       lt_cv_path_SED=$lt_ac_sed
4004     fi
4005   done
4006 done
4007 SED=$lt_cv_path_SED
4008
4009 fi
4010
4011 echo "$as_me:$LINENO: result: $SED" >&5
4012 echo "${ECHO_T}$SED" >&6
4013
4014 echo "$as_me:$LINENO: checking for egrep" >&5
4015 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4016 if test "${ac_cv_prog_egrep+set}" = set; then
4017   echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4020     then ac_cv_prog_egrep='grep -E'
4021     else ac_cv_prog_egrep='egrep'
4022     fi
4023 fi
4024 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4025 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4026  EGREP=$ac_cv_prog_egrep
4027
4028
4029
4030 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4031 if test "${with_gnu_ld+set}" = set; then
4032   withval="$with_gnu_ld"
4033   test "$withval" = no || with_gnu_ld=yes
4034 else
4035   with_gnu_ld=no
4036 fi;
4037 ac_prog=ld
4038 if test "$GCC" = yes; then
4039   # Check if gcc -print-prog-name=ld gives a path.
4040   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4041 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4042   case $host in
4043   *-*-mingw*)
4044     # gcc leaves a trailing carriage return which upsets mingw
4045     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4046   *)
4047     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4048   esac
4049   case $ac_prog in
4050     # Accept absolute paths.
4051     [\\/]* | ?:[\\/]*)
4052       re_direlt='/[^/][^/]*/\.\./'
4053       # Canonicalize the path of ld
4054       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4055       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4056         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4057       done
4058       test -z "$LD" && LD="$ac_prog"
4059       ;;
4060   "")
4061     # If it fails, then pretend we aren't using GCC.
4062     ac_prog=ld
4063     ;;
4064   *)
4065     # If it is relative, then search for the first ld in PATH.
4066     with_gnu_ld=unknown
4067     ;;
4068   esac
4069 elif test "$with_gnu_ld" = yes; then
4070   echo "$as_me:$LINENO: checking for GNU ld" >&5
4071 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4072 else
4073   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4074 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4075 fi
4076 if test "${lt_cv_path_LD+set}" = set; then
4077   echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079   if test -z "$LD"; then
4080   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4081   for ac_dir in $PATH; do
4082     IFS="$lt_save_ifs"
4083     test -z "$ac_dir" && ac_dir=.
4084     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4085       lt_cv_path_LD="$ac_dir/$ac_prog"
4086       # Check to see if the program is GNU ld.  I'd rather use --version,
4087       # but apparently some GNU ld's only accept -v.
4088       # Break only if it was the GNU/non-GNU ld that we prefer.
4089       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4090       *GNU* | *'with BFD'*)
4091         test "$with_gnu_ld" != no && break
4092         ;;
4093       *)
4094         test "$with_gnu_ld" != yes && break
4095         ;;
4096       esac
4097     fi
4098   done
4099   IFS="$lt_save_ifs"
4100 else
4101   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4102 fi
4103 fi
4104
4105 LD="$lt_cv_path_LD"
4106 if test -n "$LD"; then
4107   echo "$as_me:$LINENO: result: $LD" >&5
4108 echo "${ECHO_T}$LD" >&6
4109 else
4110   echo "$as_me:$LINENO: result: no" >&5
4111 echo "${ECHO_T}no" >&6
4112 fi
4113 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4114 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4115    { (exit 1); exit 1; }; }
4116 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4117 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4118 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4119   echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4122 case `"$LD" -v 2>&1 </dev/null` in
4123 *GNU* | *'with BFD'*)
4124   lt_cv_prog_gnu_ld=yes
4125   ;;
4126 *)
4127   lt_cv_prog_gnu_ld=no
4128   ;;
4129 esac
4130 fi
4131 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4132 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4133 with_gnu_ld=$lt_cv_prog_gnu_ld
4134
4135
4136 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4137 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4138 if test "${lt_cv_ld_reload_flag+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   lt_cv_ld_reload_flag='-r'
4142 fi
4143 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4144 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4145 reload_flag=$lt_cv_ld_reload_flag
4146 case $reload_flag in
4147 "" | " "*) ;;
4148 *) reload_flag=" $reload_flag" ;;
4149 esac
4150 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4151
4152 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4153 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4154 if test "${lt_cv_path_NM+set}" = set; then
4155   echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157   if test -n "$NM"; then
4158   # Let the user override the test.
4159   lt_cv_path_NM="$NM"
4160 else
4161   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4162   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4163     IFS="$lt_save_ifs"
4164     test -z "$ac_dir" && ac_dir=.
4165     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4166     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4167       # Check to see if the nm accepts a BSD-compat flag.
4168       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4169       #   nm: unknown option "B" ignored
4170       # Tru64's nm complains that /dev/null is an invalid object file
4171       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4172       */dev/null* | *'Invalid file or object type'*)
4173         lt_cv_path_NM="$tmp_nm -B"
4174         break
4175         ;;
4176       *)
4177         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4178         */dev/null*)
4179           lt_cv_path_NM="$tmp_nm -p"
4180           break
4181           ;;
4182         *)
4183           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4184           continue # so that we can try to find one that supports BSD flags
4185           ;;
4186         esac
4187       esac
4188     fi
4189   done
4190   IFS="$lt_save_ifs"
4191   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4192 fi
4193 fi
4194 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4195 echo "${ECHO_T}$lt_cv_path_NM" >&6
4196 NM="$lt_cv_path_NM"
4197
4198 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4199 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4200 LN_S=$as_ln_s
4201 if test "$LN_S" = "ln -s"; then
4202   echo "$as_me:$LINENO: result: yes" >&5
4203 echo "${ECHO_T}yes" >&6
4204 else
4205   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4206 echo "${ECHO_T}no, using $LN_S" >&6
4207 fi
4208
4209 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4210 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4211 if test "${lt_cv_deplibs_check_method+set}" = set; then
4212   echo $ECHO_N "(cached) $ECHO_C" >&6
4213 else
4214   lt_cv_file_magic_cmd='$MAGIC_CMD'
4215 lt_cv_file_magic_test_file=
4216 lt_cv_deplibs_check_method='unknown'
4217 # Need to set the preceding variable on all platforms that support
4218 # interlibrary dependencies.
4219 # 'none' -- dependencies not supported.
4220 # `unknown' -- same as none, but documents that we really don't know.
4221 # 'pass_all' -- all dependencies passed with no checks.
4222 # 'test_compile' -- check by making test program.
4223 # 'file_magic [[regex]]' -- check by looking for files in library path
4224 # which responds to the $file_magic_cmd with a given extended regex.
4225 # If you have `file' or equivalent on your system and you're not sure
4226 # whether `pass_all' will *always* work, you probably want this one.
4227
4228 case $host_os in
4229 aix4* | aix5*)
4230   lt_cv_deplibs_check_method=pass_all
4231   ;;
4232
4233 beos*)
4234   lt_cv_deplibs_check_method=pass_all
4235   ;;
4236
4237 bsdi4*)
4238   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4239   lt_cv_file_magic_cmd='/usr/bin/file -L'
4240   lt_cv_file_magic_test_file=/shlib/libc.so
4241   ;;
4242
4243 cygwin* | mingw* | pw32*)
4244   # win32_libid is a shell function defined in ltmain.sh
4245   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4246   lt_cv_file_magic_cmd='win32_libid'
4247   ;;
4248
4249 darwin* | rhapsody*)
4250   # this will be overwritten by pass_all, but leave it in just in case
4251   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4252   lt_cv_file_magic_cmd='/usr/bin/file -L'
4253   case "$host_os" in
4254   rhapsody* | darwin1.[012])
4255     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4256     ;;
4257   *) # Darwin 1.3 on
4258     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4259     ;;
4260   esac
4261   lt_cv_deplibs_check_method=pass_all
4262   ;;
4263
4264 freebsd*)
4265   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4266     case $host_cpu in
4267     i*86 )
4268       # Not sure whether the presence of OpenBSD here was a mistake.
4269       # Let's accept both of them until this is cleared up.
4270       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4271       lt_cv_file_magic_cmd=/usr/bin/file
4272       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4273       ;;
4274     esac
4275   else
4276     lt_cv_deplibs_check_method=pass_all
4277   fi
4278   ;;
4279
4280 gnu*)
4281   lt_cv_deplibs_check_method=pass_all
4282   ;;
4283
4284 hpux10.20* | hpux11*)
4285   lt_cv_file_magic_cmd=/usr/bin/file
4286   case "$host_cpu" in
4287   ia64*)
4288     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4289     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4290     ;;
4291   hppa*64*)
4292     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]'
4293     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4294     ;;
4295   *)
4296     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4297     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4298     ;;
4299   esac
4300   ;;
4301
4302 irix5* | irix6* | nonstopux*)
4303   case $host_os in
4304   irix5* | nonstopux*)
4305     # this will be overridden with pass_all, but let us keep it just in case
4306     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4307     ;;
4308   *)
4309     case $LD in
4310     *-32|*"-32 ") libmagic=32-bit;;
4311     *-n32|*"-n32 ") libmagic=N32;;
4312     *-64|*"-64 ") libmagic=64-bit;;
4313     *) libmagic=never-match;;
4314     esac
4315     # this will be overridden with pass_all, but let us keep it just in case
4316     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4317     ;;
4318   esac
4319   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4320   lt_cv_deplibs_check_method=pass_all
4321   ;;
4322
4323 # This must be Linux ELF.
4324 linux*)
4325   case $host_cpu in
4326   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4327     lt_cv_deplibs_check_method=pass_all ;;
4328   *)
4329     # glibc up to 2.1.1 does not perform some relocations on ARM
4330     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4331   esac
4332   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4333   ;;
4334
4335 netbsd*)
4336   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4337     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4338   else
4339     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4340   fi
4341   ;;
4342
4343 newos6*)
4344   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4345   lt_cv_file_magic_cmd=/usr/bin/file
4346   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4347   ;;
4348
4349 nto-qnx)
4350   lt_cv_deplibs_check_method=unknown
4351   ;;
4352
4353 openbsd*)
4354   lt_cv_file_magic_cmd=/usr/bin/file
4355   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4356   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4357     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4358   else
4359     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4360   fi
4361   ;;
4362
4363 osf3* | osf4* | osf5*)
4364   # this will be overridden with pass_all, but let us keep it just in case
4365   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4366   lt_cv_file_magic_test_file=/shlib/libc.so
4367   lt_cv_deplibs_check_method=pass_all
4368   ;;
4369
4370 sco3.2v5*)
4371   lt_cv_deplibs_check_method=pass_all
4372   ;;
4373
4374 solaris*)
4375   lt_cv_deplibs_check_method=pass_all
4376   lt_cv_file_magic_test_file=/lib/libc.so
4377   ;;
4378
4379 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4380   case $host_vendor in
4381   motorola)
4382     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]'
4383     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4384     ;;
4385   ncr)
4386     lt_cv_deplibs_check_method=pass_all
4387     ;;
4388   sequent)
4389     lt_cv_file_magic_cmd='/bin/file'
4390     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4391     ;;
4392   sni)
4393     lt_cv_file_magic_cmd='/bin/file'
4394     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4395     lt_cv_file_magic_test_file=/lib/libc.so
4396     ;;
4397   siemens)
4398     lt_cv_deplibs_check_method=pass_all
4399     ;;
4400   esac
4401   ;;
4402
4403 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4404   lt_cv_deplibs_check_method=pass_all
4405   ;;
4406 esac
4407
4408 fi
4409 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4410 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4411 file_magic_cmd=$lt_cv_file_magic_cmd
4412 deplibs_check_method=$lt_cv_deplibs_check_method
4413 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4414
4415
4416
4417
4418 # If no C compiler was specified, use CC.
4419 LTCC=${LTCC-"$CC"}
4420
4421 # Allow CC to be a program name with arguments.
4422 compiler=$CC
4423
4424 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4425 if test "${enable_libtool_lock+set}" = set; then
4426   enableval="$enable_libtool_lock"
4427
4428 fi;
4429 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4430
4431 # Some flags need to be propagated to the compiler or linker for good
4432 # libtool support.
4433 case $host in
4434 ia64-*-hpux*)
4435   # Find out which ABI we are using.
4436   echo 'int i;' > conftest.$ac_ext
4437   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438   (eval $ac_compile) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }; then
4442     case `/usr/bin/file conftest.$ac_objext` in
4443     *ELF-32*)
4444       HPUX_IA64_MODE="32"
4445       ;;
4446     *ELF-64*)
4447       HPUX_IA64_MODE="64"
4448       ;;
4449     esac
4450   fi
4451   rm -rf conftest*
4452   ;;
4453 *-*-irix6*)
4454   # Find out which ABI we are using.
4455   echo '#line 4455 "configure"' > conftest.$ac_ext
4456   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457   (eval $ac_compile) 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; then
4461    if test "$lt_cv_prog_gnu_ld" = yes; then
4462     case `/usr/bin/file conftest.$ac_objext` in
4463     *32-bit*)
4464       LD="${LD-ld} -melf32bsmip"
4465       ;;
4466     *N32*)
4467       LD="${LD-ld} -melf32bmipn32"
4468       ;;
4469     *64-bit*)
4470       LD="${LD-ld} -melf64bmip"
4471       ;;
4472     esac
4473    else
4474     case `/usr/bin/file conftest.$ac_objext` in
4475     *32-bit*)
4476       LD="${LD-ld} -32"
4477       ;;
4478     *N32*)
4479       LD="${LD-ld} -n32"
4480       ;;
4481     *64-bit*)
4482       LD="${LD-ld} -64"
4483       ;;
4484     esac
4485    fi
4486   fi
4487   rm -rf conftest*
4488   ;;
4489
4490 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4491   # Find out which ABI we are using.
4492   echo 'int i;' > conftest.$ac_ext
4493   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4494   (eval $ac_compile) 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }; then
4498     case "`/usr/bin/file conftest.o`" in
4499     *32-bit*)
4500       case $host in
4501         x86_64-*linux*)
4502           LD="${LD-ld} -m elf_i386"
4503           ;;
4504         ppc64-*linux*)
4505           LD="${LD-ld} -m elf32ppclinux"
4506           ;;
4507         s390x-*linux*)
4508           LD="${LD-ld} -m elf_s390"
4509           ;;
4510         sparc64-*linux*)
4511           LD="${LD-ld} -m elf32_sparc"
4512           ;;
4513       esac
4514       ;;
4515     *64-bit*)
4516       case $host in
4517         x86_64-*linux*)
4518           LD="${LD-ld} -m elf_x86_64"
4519           ;;
4520         ppc*-*linux*|powerpc*-*linux*)
4521           LD="${LD-ld} -m elf64ppc"
4522           ;;
4523         s390*-*linux*)
4524           LD="${LD-ld} -m elf64_s390"
4525           ;;
4526         sparc*-*linux*)
4527           LD="${LD-ld} -m elf64_sparc"
4528           ;;
4529       esac
4530       ;;
4531     esac
4532   fi
4533   rm -rf conftest*
4534   ;;
4535
4536 *-*-sco3.2v5*)
4537   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4538   SAVE_CFLAGS="$CFLAGS"
4539   CFLAGS="$CFLAGS -belf"
4540   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4541 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4542 if test "${lt_cv_cc_needs_belf+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550
4551      cat >conftest.$ac_ext <<_ACEOF
4552 #line $LINENO "configure"
4553 /* confdefs.h.  */
4554 _ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h.  */
4558
4559 int
4560 main ()
4561 {
4562
4563   ;
4564   return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest.$ac_objext conftest$ac_exeext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4569   (eval $ac_link) 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); } &&
4573          { ac_try='test -s conftest$ac_exeext'
4574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575   (eval $ac_try) 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); }; }; then
4579   lt_cv_cc_needs_belf=yes
4580 else
4581   echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 lt_cv_cc_needs_belf=no
4585 fi
4586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4587      ac_ext=c
4588 ac_cpp='$CPP $CPPFLAGS'
4589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592
4593 fi
4594 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4595 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4596   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4597     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4598     CFLAGS="$SAVE_CFLAGS"
4599   fi
4600   ;;
4601
4602 esac
4603
4604 need_locks="$enable_libtool_lock"
4605
4606
4607
4608 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4609 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4610 if test "${ac_cv_header_stdc+set}" = set; then
4611   echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613   cat >conftest.$ac_ext <<_ACEOF
4614 #line $LINENO "configure"
4615 /* confdefs.h.  */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h.  */
4620 #include <stdlib.h>
4621 #include <stdarg.h>
4622 #include <string.h>
4623 #include <float.h>
4624
4625 int
4626 main ()
4627 {
4628
4629   ;
4630   return 0;
4631 }
4632 _ACEOF
4633 rm -f conftest.$ac_objext
4634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4635   (eval $ac_compile) 2>&5
4636   ac_status=$?
4637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638   (exit $ac_status); } &&
4639          { ac_try='test -s conftest.$ac_objext'
4640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641   (eval $ac_try) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }; }; then
4645   ac_cv_header_stdc=yes
4646 else
4647   echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4649
4650 ac_cv_header_stdc=no
4651 fi
4652 rm -f conftest.$ac_objext conftest.$ac_ext
4653
4654 if test $ac_cv_header_stdc = yes; then
4655   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4656   cat >conftest.$ac_ext <<_ACEOF
4657 #line $LINENO "configure"
4658 /* confdefs.h.  */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h.  */
4663 #include <string.h>
4664
4665 _ACEOF
4666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4667   $EGREP "memchr" >/dev/null 2>&1; then
4668   :
4669 else
4670   ac_cv_header_stdc=no
4671 fi
4672 rm -f conftest*
4673
4674 fi
4675
4676 if test $ac_cv_header_stdc = yes; then
4677   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4678   cat >conftest.$ac_ext <<_ACEOF
4679 #line $LINENO "configure"
4680 /* confdefs.h.  */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h.  */
4685 #include <stdlib.h>
4686
4687 _ACEOF
4688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4689   $EGREP "free" >/dev/null 2>&1; then
4690   :
4691 else
4692   ac_cv_header_stdc=no
4693 fi
4694 rm -f conftest*
4695
4696 fi
4697
4698 if test $ac_cv_header_stdc = yes; then
4699   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4700   if test "$cross_compiling" = yes; then
4701   :
4702 else
4703   cat >conftest.$ac_ext <<_ACEOF
4704 #line $LINENO "configure"
4705 /* confdefs.h.  */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h.  */
4710 #include <ctype.h>
4711 #if ((' ' & 0x0FF) == 0x020)
4712 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4713 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4714 #else
4715 # define ISLOWER(c) \
4716                    (('a' <= (c) && (c) <= 'i') \
4717                      || ('j' <= (c) && (c) <= 'r') \
4718                      || ('s' <= (c) && (c) <= 'z'))
4719 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4720 #endif
4721
4722 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4723 int
4724 main ()
4725 {
4726   int i;
4727   for (i = 0; i < 256; i++)
4728     if (XOR (islower (i), ISLOWER (i))
4729         || toupper (i) != TOUPPER (i))
4730       exit(2);
4731   exit (0);
4732 }
4733 _ACEOF
4734 rm -f conftest$ac_exeext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736   (eval $ac_link) 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741   (eval $ac_try) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; }; then
4745   :
4746 else
4747   echo "$as_me: program exited with status $ac_status" >&5
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 ( exit $ac_status )
4752 ac_cv_header_stdc=no
4753 fi
4754 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4755 fi
4756 fi
4757 fi
4758 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4759 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4760 if test $ac_cv_header_stdc = yes; then
4761
4762 cat >>confdefs.h <<\_ACEOF
4763 #define STDC_HEADERS 1
4764 _ACEOF
4765
4766 fi
4767
4768 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4779                   inttypes.h stdint.h unistd.h
4780 do
4781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4782 echo "$as_me:$LINENO: checking for $ac_header" >&5
4783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787   cat >conftest.$ac_ext <<_ACEOF
4788 #line $LINENO "configure"
4789 /* confdefs.h.  */
4790 _ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h.  */
4794 $ac_includes_default
4795
4796 #include <$ac_header>
4797 _ACEOF
4798 rm -f conftest.$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800   (eval $ac_compile) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); } &&
4804          { ac_try='test -s conftest.$ac_objext'
4805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806   (eval $ac_try) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; }; then
4810   eval "$as_ac_Header=yes"
4811 else
4812   echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 eval "$as_ac_Header=no"
4816 fi
4817 rm -f conftest.$ac_objext conftest.$ac_ext
4818 fi
4819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4822   cat >>confdefs.h <<_ACEOF
4823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4824 _ACEOF
4825
4826 fi
4827
4828 done
4829
4830
4831
4832 for ac_header in dlfcn.h
4833 do
4834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4836   echo "$as_me:$LINENO: checking for $ac_header" >&5
4837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 fi
4841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4843 else
4844   # Is the header compilable?
4845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4847 cat >conftest.$ac_ext <<_ACEOF
4848 #line $LINENO "configure"
4849 /* confdefs.h.  */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h.  */
4854 $ac_includes_default
4855 #include <$ac_header>
4856 _ACEOF
4857 rm -f conftest.$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859   (eval $ac_compile) 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); } &&
4863          { ac_try='test -s conftest.$ac_objext'
4864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865   (eval $ac_try) 2>&5
4866   ac_status=$?
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); }; }; then
4869   ac_header_compiler=yes
4870 else
4871   echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 ac_header_compiler=no
4875 fi
4876 rm -f conftest.$ac_objext conftest.$ac_ext
4877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4878 echo "${ECHO_T}$ac_header_compiler" >&6
4879
4880 # Is the header present?
4881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4883 cat >conftest.$ac_ext <<_ACEOF
4884 #line $LINENO "configure"
4885 /* confdefs.h.  */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h.  */
4890 #include <$ac_header>
4891 _ACEOF
4892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4893   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4894   ac_status=$?
4895   grep -v '^ *+' conftest.er1 >conftest.err
4896   rm -f conftest.er1
4897   cat conftest.err >&5
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); } >/dev/null; then
4900   if test -s conftest.err; then
4901     ac_cpp_err=$ac_c_preproc_warn_flag
4902   else
4903     ac_cpp_err=
4904   fi
4905 else
4906   ac_cpp_err=yes
4907 fi
4908 if test -z "$ac_cpp_err"; then
4909   ac_header_preproc=yes
4910 else
4911   echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914   ac_header_preproc=no
4915 fi
4916 rm -f conftest.err conftest.$ac_ext
4917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4918 echo "${ECHO_T}$ac_header_preproc" >&6
4919
4920 # So?  What about this header?
4921 case $ac_header_compiler:$ac_header_preproc in
4922   yes:no )
4923     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4927     (
4928       cat <<\_ASBOX
4929 ## ------------------------------------ ##
4930 ## Report this to bug-autoconf@gnu.org. ##
4931 ## ------------------------------------ ##
4932 _ASBOX
4933     ) |
4934       sed "s/^/$as_me: WARNING:     /" >&2
4935     ;;
4936   no:yes )
4937     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4939     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4943     (
4944       cat <<\_ASBOX
4945 ## ------------------------------------ ##
4946 ## Report this to bug-autoconf@gnu.org. ##
4947 ## ------------------------------------ ##
4948 _ASBOX
4949     ) |
4950       sed "s/^/$as_me: WARNING:     /" >&2
4951     ;;
4952 esac
4953 echo "$as_me:$LINENO: checking for $ac_header" >&5
4954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4956   echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958   eval "$as_ac_Header=$ac_header_preproc"
4959 fi
4960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4962
4963 fi
4964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4965   cat >>confdefs.h <<_ACEOF
4966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4967 _ACEOF
4968
4969 fi
4970
4971 done
4972
4973 ac_ext=cc
4974 ac_cpp='$CXXCPP $CPPFLAGS'
4975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4978 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4979 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4980 if test -z "$CXXCPP"; then
4981   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984       # Double quotes because CXXCPP needs to be expanded
4985     for CXXCPP in "$CXX -E" "/lib/cpp"
4986     do
4987       ac_preproc_ok=false
4988 for ac_cxx_preproc_warn_flag in '' yes
4989 do
4990   # Use a header file that comes with gcc, so configuring glibc
4991   # with a fresh cross-compiler works.
4992   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993   # <limits.h> exists even on freestanding compilers.
4994   # On the NeXT, cc -E runs the code through the compiler's parser,
4995   # not just through cpp. "Syntax error" is here to catch this case.
4996   cat >conftest.$ac_ext <<_ACEOF
4997 #line $LINENO "configure"
4998 /* confdefs.h.  */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h.  */
5003 #ifdef __STDC__
5004 # include <limits.h>
5005 #else
5006 # include <assert.h>
5007 #endif
5008                      Syntax error
5009 _ACEOF
5010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5012   ac_status=$?
5013   grep -v '^ *+' conftest.er1 >conftest.err
5014   rm -f conftest.er1
5015   cat conftest.err >&5
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } >/dev/null; then
5018   if test -s conftest.err; then
5019     ac_cpp_err=$ac_cxx_preproc_warn_flag
5020   else
5021     ac_cpp_err=
5022   fi
5023 else
5024   ac_cpp_err=yes
5025 fi
5026 if test -z "$ac_cpp_err"; then
5027   :
5028 else
5029   echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5031
5032   # Broken: fails on valid input.
5033 continue
5034 fi
5035 rm -f conftest.err conftest.$ac_ext
5036
5037   # OK, works on sane cases.  Now check whether non-existent headers
5038   # can be detected and how.
5039   cat >conftest.$ac_ext <<_ACEOF
5040 #line $LINENO "configure"
5041 /* confdefs.h.  */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h.  */
5046 #include <ac_nonexistent.h>
5047 _ACEOF
5048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5050   ac_status=$?
5051   grep -v '^ *+' conftest.er1 >conftest.err
5052   rm -f conftest.er1
5053   cat conftest.err >&5
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); } >/dev/null; then
5056   if test -s conftest.err; then
5057     ac_cpp_err=$ac_cxx_preproc_warn_flag
5058   else
5059     ac_cpp_err=
5060   fi
5061 else
5062   ac_cpp_err=yes
5063 fi
5064 if test -z "$ac_cpp_err"; then
5065   # Broken: success on invalid input.
5066 continue
5067 else
5068   echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5070
5071   # Passes both tests.
5072 ac_preproc_ok=:
5073 break
5074 fi
5075 rm -f conftest.err conftest.$ac_ext
5076
5077 done
5078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5079 rm -f conftest.err conftest.$ac_ext
5080 if $ac_preproc_ok; then
5081   break
5082 fi
5083
5084     done
5085     ac_cv_prog_CXXCPP=$CXXCPP
5086
5087 fi
5088   CXXCPP=$ac_cv_prog_CXXCPP
5089 else
5090   ac_cv_prog_CXXCPP=$CXXCPP
5091 fi
5092 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5093 echo "${ECHO_T}$CXXCPP" >&6
5094 ac_preproc_ok=false
5095 for ac_cxx_preproc_warn_flag in '' yes
5096 do
5097   # Use a header file that comes with gcc, so configuring glibc
5098   # with a fresh cross-compiler works.
5099   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5100   # <limits.h> exists even on freestanding compilers.
5101   # On the NeXT, cc -E runs the code through the compiler's parser,
5102   # not just through cpp. "Syntax error" is here to catch this case.
5103   cat >conftest.$ac_ext <<_ACEOF
5104 #line $LINENO "configure"
5105 /* confdefs.h.  */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h.  */
5110 #ifdef __STDC__
5111 # include <limits.h>
5112 #else
5113 # include <assert.h>
5114 #endif
5115                      Syntax error
5116 _ACEOF
5117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5119   ac_status=$?
5120   grep -v '^ *+' conftest.er1 >conftest.err
5121   rm -f conftest.er1
5122   cat conftest.err >&5
5123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124   (exit $ac_status); } >/dev/null; then
5125   if test -s conftest.err; then
5126     ac_cpp_err=$ac_cxx_preproc_warn_flag
5127   else
5128     ac_cpp_err=
5129   fi
5130 else
5131   ac_cpp_err=yes
5132 fi
5133 if test -z "$ac_cpp_err"; then
5134   :
5135 else
5136   echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5138
5139   # Broken: fails on valid input.
5140 continue
5141 fi
5142 rm -f conftest.err conftest.$ac_ext
5143
5144   # OK, works on sane cases.  Now check whether non-existent headers
5145   # can be detected and how.
5146   cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5148 /* confdefs.h.  */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h.  */
5153 #include <ac_nonexistent.h>
5154 _ACEOF
5155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5157   ac_status=$?
5158   grep -v '^ *+' conftest.er1 >conftest.err
5159   rm -f conftest.er1
5160   cat conftest.err >&5
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); } >/dev/null; then
5163   if test -s conftest.err; then
5164     ac_cpp_err=$ac_cxx_preproc_warn_flag
5165   else
5166     ac_cpp_err=
5167   fi
5168 else
5169   ac_cpp_err=yes
5170 fi
5171 if test -z "$ac_cpp_err"; then
5172   # Broken: success on invalid input.
5173 continue
5174 else
5175   echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5177
5178   # Passes both tests.
5179 ac_preproc_ok=:
5180 break
5181 fi
5182 rm -f conftest.err conftest.$ac_ext
5183
5184 done
5185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186 rm -f conftest.err conftest.$ac_ext
5187 if $ac_preproc_ok; then
5188   :
5189 else
5190   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5191 See \`config.log' for more details." >&5
5192 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5193 See \`config.log' for more details." >&2;}
5194    { (exit 1); exit 1; }; }
5195 fi
5196
5197 ac_ext=cc
5198 ac_cpp='$CXXCPP $CPPFLAGS'
5199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5202
5203
5204 ac_ext=f
5205 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5206 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5208 if test -n "$ac_tool_prefix"; then
5209   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5210   do
5211     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213 echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215 if test "${ac_cv_prog_F77+set}" = set; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218   if test -n "$F77"; then
5219   ac_cv_prog_F77="$F77" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226   for ac_exec_ext in '' $ac_executable_extensions; do
5227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230     break 2
5231   fi
5232 done
5233 done
5234
5235 fi
5236 fi
5237 F77=$ac_cv_prog_F77
5238 if test -n "$F77"; then
5239   echo "$as_me:$LINENO: result: $F77" >&5
5240 echo "${ECHO_T}$F77" >&6
5241 else
5242   echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6
5244 fi
5245
5246     test -n "$F77" && break
5247   done
5248 fi
5249 if test -z "$F77"; then
5250   ac_ct_F77=$F77
5251   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5252 do
5253   # Extract the first word of "$ac_prog", so it can be a program name with args.
5254 set dummy $ac_prog; ac_word=$2
5255 echo "$as_me:$LINENO: checking for $ac_word" >&5
5256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5257 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5258   echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260   if test -n "$ac_ct_F77"; then
5261   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266   IFS=$as_save_IFS
5267   test -z "$as_dir" && as_dir=.
5268   for ac_exec_ext in '' $ac_executable_extensions; do
5269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270     ac_cv_prog_ac_ct_F77="$ac_prog"
5271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272     break 2
5273   fi
5274 done
5275 done
5276
5277 fi
5278 fi
5279 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5280 if test -n "$ac_ct_F77"; then
5281   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5282 echo "${ECHO_T}$ac_ct_F77" >&6
5283 else
5284   echo "$as_me:$LINENO: result: no" >&5
5285 echo "${ECHO_T}no" >&6
5286 fi
5287
5288   test -n "$ac_ct_F77" && break
5289 done
5290
5291   F77=$ac_ct_F77
5292 fi
5293
5294
5295 # Provide some information about the compiler.
5296 echo "$as_me:5296:" \
5297      "checking for Fortran 77 compiler version" >&5
5298 ac_compiler=`set X $ac_compile; echo $2`
5299 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5300   (eval $ac_compiler --version </dev/null >&5) 2>&5
5301   ac_status=$?
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); }
5304 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5305   (eval $ac_compiler -v </dev/null >&5) 2>&5
5306   ac_status=$?
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); }
5309 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5310   (eval $ac_compiler -V </dev/null >&5) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }
5314
5315 # If we don't use `.F' as extension, the preprocessor is not run on the
5316 # input file.
5317 ac_save_ext=$ac_ext
5318 ac_ext=F
5319 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5320 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5321 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5322   echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324   cat >conftest.$ac_ext <<_ACEOF
5325       program main
5326 #ifndef __GNUC__
5327        choke me
5328 #endif
5329
5330       end
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334   (eval $ac_compile) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } &&
5338          { ac_try='test -s conftest.$ac_objext'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; }; then
5344   ac_compiler_gnu=yes
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_compiler_gnu=no
5350 fi
5351 rm -f conftest.$ac_objext conftest.$ac_ext
5352 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5353
5354 fi
5355 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5356 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5357 ac_ext=$ac_save_ext
5358 G77=`test $ac_compiler_gnu = yes && echo yes`
5359 ac_test_FFLAGS=${FFLAGS+set}
5360 ac_save_FFLAGS=$FFLAGS
5361 FFLAGS=
5362 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5363 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5364 if test "${ac_cv_prog_f77_g+set}" = set; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367   FFLAGS=-g
5368 cat >conftest.$ac_ext <<_ACEOF
5369       program main
5370
5371       end
5372 _ACEOF
5373 rm -f conftest.$ac_objext
5374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375   (eval $ac_compile) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); } &&
5379          { ac_try='test -s conftest.$ac_objext'
5380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381   (eval $ac_try) 2>&5
5382   ac_status=$?
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); }; }; then
5385   ac_cv_prog_f77_g=yes
5386 else
5387   echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5389
5390 ac_cv_prog_f77_g=no
5391 fi
5392 rm -f conftest.$ac_objext conftest.$ac_ext
5393
5394 fi
5395 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5396 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5397 if test "$ac_test_FFLAGS" = set; then
5398   FFLAGS=$ac_save_FFLAGS
5399 elif test $ac_cv_prog_f77_g = yes; then
5400   if test "$G77" = yes; then
5401     FFLAGS="-g -O2"
5402   else
5403     FFLAGS="-g"
5404   fi
5405 else
5406   if test "$G77" = yes; then
5407     FFLAGS="-O2"
5408   else
5409     FFLAGS=
5410   fi
5411 fi
5412 ac_ext=c
5413 ac_cpp='$CPP $CPPFLAGS'
5414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5417
5418
5419
5420 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5421
5422 # find the maximum length of command line arguments
5423 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5424 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5425 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5426   echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428     i=0
5429   testring="ABCD"
5430
5431   case $build_os in
5432   msdosdjgpp*)
5433     # On DJGPP, this test can blow up pretty badly due to problems in libc
5434     # (any single argument exceeding 2000 bytes causes a buffer overrun
5435     # during glob expansion).  Even if it were fixed, the result of this
5436     # check would be larger than it should be.
5437     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5438     ;;
5439
5440   gnu*)
5441     # Under GNU Hurd, this test is not required because there is
5442     # no limit to the length of command line arguments.
5443     # Libtool will interpret -1 as no limit whatsoever
5444     lt_cv_sys_max_cmd_len=-1;
5445     ;;
5446
5447   cygwin* | mingw*)
5448     # On Win9x/ME, this test blows up -- it succeeds, but takes
5449     # about 5 minutes as the teststring grows exponentially.
5450     # Worse, since 9x/ME are not pre-emptively multitasking,
5451     # you end up with a "frozen" computer, even though with patience
5452     # the test eventually succeeds (with a max line length of 256k).
5453     # Instead, let's just punt: use the minimum linelength reported by
5454     # all of the supported platforms: 8192 (on NT/2K/XP).
5455     lt_cv_sys_max_cmd_len=8192;
5456     ;;
5457
5458  *)
5459     # If test is not a shell built-in, we'll probably end up computing a
5460     # maximum length that is only half of the actual maximum length, but
5461     # we can't tell.
5462     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5463                = "XX$testring") >/dev/null 2>&1 &&
5464             new_result=`expr "X$testring" : ".*" 2>&1` &&
5465             lt_cv_sys_max_cmd_len=$new_result &&
5466             test $i != 17 # 1/2 MB should be enough
5467     do
5468       i=`expr $i + 1`
5469       testring=$testring$testring
5470     done
5471     testring=
5472     # Add a significant safety factor because C++ compilers can tack on massive
5473     # amounts of additional arguments before passing them to the linker.
5474     # It appears as though 1/2 is a usable value.
5475     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5476     ;;
5477   esac
5478
5479 fi
5480
5481 if test -n $lt_cv_sys_max_cmd_len ; then
5482   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5483 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5484 else
5485   echo "$as_me:$LINENO: result: none" >&5
5486 echo "${ECHO_T}none" >&6
5487 fi
5488
5489
5490
5491
5492 # Check for command to grab the raw symbol name followed by C symbol from nm.
5493 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5494 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5495 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5496   echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498
5499 # These are sane defaults that work on at least a few old systems.
5500 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5501
5502 # Character class describing NM global symbol codes.
5503 symcode='[BCDEGRST]'
5504
5505 # Regexp to match symbols that can be accessed directly from C.
5506 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5507
5508 # Transform the above into a raw symbol and a C symbol.
5509 symxfrm='\1 \2\3 \3'
5510
5511 # Transform an extracted symbol line into a proper C declaration
5512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5513
5514 # Transform an extracted symbol line into symbol name and symbol address
5515 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'"
5516
5517 # Define system-specific variables.
5518 case $host_os in
5519 aix*)
5520   symcode='[BCDT]'
5521   ;;
5522 cygwin* | mingw* | pw32*)
5523   symcode='[ABCDGISTW]'
5524   ;;
5525 hpux*) # Its linker distinguishes data from code symbols
5526   if test "$host_cpu" = ia64; then
5527     symcode='[ABCDEGRST]'
5528   fi
5529   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5530   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'"
5531   ;;
5532 irix* | nonstopux*)
5533   symcode='[BCDEGRST]'
5534   ;;
5535 osf*)
5536   symcode='[BCDEGQRST]'
5537   ;;
5538 solaris* | sysv5*)
5539   symcode='[BDT]'
5540   ;;
5541 sysv4)
5542   symcode='[DFNSTU]'
5543   ;;
5544 esac
5545
5546 # Handle CRLF in mingw tool chain
5547 opt_cr=
5548 case $build_os in
5549 mingw*)
5550   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5551   ;;
5552 esac
5553
5554 # If we're using GNU nm, then use its standard symbol codes.
5555 case `$NM -V 2>&1` in
5556 *GNU* | *'with BFD'*)
5557   symcode='[ABCDGISTW]' ;;
5558 esac
5559
5560 # Try without a prefix undercore, then with it.
5561 for ac_symprfx in "" "_"; do
5562
5563   # Write the raw and C identifiers.
5564   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5565
5566   # Check to see that the pipe works correctly.
5567   pipe_works=no
5568
5569   rm -f conftest*
5570   cat > conftest.$ac_ext <<EOF
5571 #ifdef __cplusplus
5572 extern "C" {
5573 #endif
5574 char nm_test_var;
5575 void nm_test_func(){}
5576 #ifdef __cplusplus
5577 }
5578 #endif
5579 int main(){nm_test_var='a';nm_test_func();return(0);}
5580 EOF
5581
5582   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583   (eval $ac_compile) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); }; then
5587     # Now try to grab the symbols.
5588     nlist=conftest.nm
5589     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5590   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5591   ac_status=$?
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); } && test -s "$nlist"; then
5594       # Try sorting and uniquifying the output.
5595       if sort "$nlist" | uniq > "$nlist"T; then
5596         mv -f "$nlist"T "$nlist"
5597       else
5598         rm -f "$nlist"T
5599       fi
5600
5601       # Make sure that we snagged all the symbols we need.
5602       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5603         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5604           cat <<EOF > conftest.$ac_ext
5605 #ifdef __cplusplus
5606 extern "C" {
5607 #endif
5608
5609 EOF
5610           # Now generate the symbol file.
5611           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5612
5613           cat <<EOF >> conftest.$ac_ext
5614 #if defined (__STDC__) && __STDC__
5615 # define lt_ptr_t void *
5616 #else
5617 # define lt_ptr_t char *
5618 # define const
5619 #endif
5620
5621 /* The mapping between symbol names and symbols. */
5622 const struct {
5623   const char *name;
5624   lt_ptr_t address;
5625 }
5626 lt_preloaded_symbols[] =
5627 {
5628 EOF
5629           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5630           cat <<\EOF >> conftest.$ac_ext
5631   {0, (lt_ptr_t) 0}
5632 };
5633
5634 #ifdef __cplusplus
5635 }
5636 #endif
5637 EOF
5638           # Now try linking the two files.
5639           mv conftest.$ac_objext conftstm.$ac_objext
5640           lt_save_LIBS="$LIBS"
5641           lt_save_CFLAGS="$CFLAGS"
5642           LIBS="conftstm.$ac_objext"
5643           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5644           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5645   (eval $ac_link) 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5649             pipe_works=yes
5650           fi
5651           LIBS="$lt_save_LIBS"
5652           CFLAGS="$lt_save_CFLAGS"
5653         else
5654           echo "cannot find nm_test_func in $nlist" >&5
5655         fi
5656       else
5657         echo "cannot find nm_test_var in $nlist" >&5
5658       fi
5659     else
5660       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5661     fi
5662   else
5663     echo "$progname: failed program was:" >&5
5664     cat conftest.$ac_ext >&5
5665   fi
5666   rm -f conftest* conftst*
5667
5668   # Do not use the global_symbol_pipe unless it works.
5669   if test "$pipe_works" = yes; then
5670     break
5671   else
5672     lt_cv_sys_global_symbol_pipe=
5673   fi
5674 done
5675
5676 fi
5677
5678 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5679   lt_cv_sys_global_symbol_to_cdecl=
5680 fi
5681 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5682   echo "$as_me:$LINENO: result: failed" >&5
5683 echo "${ECHO_T}failed" >&6
5684 else
5685   echo "$as_me:$LINENO: result: ok" >&5
5686 echo "${ECHO_T}ok" >&6
5687 fi
5688
5689 echo "$as_me:$LINENO: checking for objdir" >&5
5690 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5691 if test "${lt_cv_objdir+set}" = set; then
5692   echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694   rm -f .libs 2>/dev/null
5695 mkdir .libs 2>/dev/null
5696 if test -d .libs; then
5697   lt_cv_objdir=.libs
5698 else
5699   # MS-DOS does not allow filenames that begin with a dot.
5700   lt_cv_objdir=_libs
5701 fi
5702 rmdir .libs 2>/dev/null
5703 fi
5704 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5705 echo "${ECHO_T}$lt_cv_objdir" >&6
5706 objdir=$lt_cv_objdir
5707
5708
5709
5710
5711
5712 case $host_os in
5713 aix3*)
5714   # AIX sometimes has problems with the GCC collect2 program.  For some
5715   # reason, if we set the COLLECT_NAMES environment variable, the problems
5716   # vanish in a puff of smoke.
5717   if test "X${COLLECT_NAMES+set}" != Xset; then
5718     COLLECT_NAMES=
5719     export COLLECT_NAMES
5720   fi
5721   ;;
5722 esac
5723
5724 # Sed substitution that helps us do robust quoting.  It backslashifies
5725 # metacharacters that are still active within double-quoted strings.
5726 Xsed='sed -e s/^X//'
5727 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5728
5729 # Same as above, but do not quote variable references.
5730 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5731
5732 # Sed substitution to delay expansion of an escaped shell variable in a
5733 # double_quote_subst'ed string.
5734 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5735
5736 # Sed substitution to avoid accidental globbing in evaled expressions
5737 no_glob_subst='s/\*/\\\*/g'
5738
5739 # Constants:
5740 rm="rm -f"
5741
5742 # Global variables:
5743 default_ofile=mklib
5744 can_build_shared=yes
5745
5746 # All known linkers require a `.a' archive for static linking (except M$VC,
5747 # which needs '.lib').
5748 libext=a
5749 ltmain="$ac_aux_dir/ltmain.sh"
5750 ofile="$default_ofile"
5751 with_gnu_ld="$lt_cv_prog_gnu_ld"
5752
5753 if test -n "$ac_tool_prefix"; then
5754   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5755 set dummy ${ac_tool_prefix}ar; ac_word=$2
5756 echo "$as_me:$LINENO: checking for $ac_word" >&5
5757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758 if test "${ac_cv_prog_AR+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   if test -n "$AR"; then
5762   ac_cv_prog_AR="$AR" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769   for ac_exec_ext in '' $ac_executable_extensions; do
5770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771     ac_cv_prog_AR="${ac_tool_prefix}ar"
5772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776 done
5777
5778 fi
5779 fi
5780 AR=$ac_cv_prog_AR
5781 if test -n "$AR"; then
5782   echo "$as_me:$LINENO: result: $AR" >&5
5783 echo "${ECHO_T}$AR" >&6
5784 else
5785   echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6
5787 fi
5788
5789 fi
5790 if test -z "$ac_cv_prog_AR"; then
5791   ac_ct_AR=$AR
5792   # Extract the first word of "ar", so it can be a program name with args.
5793 set dummy ar; ac_word=$2
5794 echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   if test -n "$ac_ct_AR"; then
5800   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805   IFS=$as_save_IFS
5806   test -z "$as_dir" && as_dir=.
5807   for ac_exec_ext in '' $ac_executable_extensions; do
5808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809     ac_cv_prog_ac_ct_AR="ar"
5810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811     break 2
5812   fi
5813 done
5814 done
5815
5816   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5817 fi
5818 fi
5819 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5820 if test -n "$ac_ct_AR"; then
5821   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5822 echo "${ECHO_T}$ac_ct_AR" >&6
5823 else
5824   echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5826 fi
5827
5828   AR=$ac_ct_AR
5829 else
5830   AR="$ac_cv_prog_AR"
5831 fi
5832
5833 if test -n "$ac_tool_prefix"; then
5834   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5835 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5836 echo "$as_me:$LINENO: checking for $ac_word" >&5
5837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5838 if test "${ac_cv_prog_RANLIB+set}" = set; then
5839   echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841   if test -n "$RANLIB"; then
5842   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847   IFS=$as_save_IFS
5848   test -z "$as_dir" && as_dir=.
5849   for ac_exec_ext in '' $ac_executable_extensions; do
5850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853     break 2
5854   fi
5855 done
5856 done
5857
5858 fi
5859 fi
5860 RANLIB=$ac_cv_prog_RANLIB
5861 if test -n "$RANLIB"; then
5862   echo "$as_me:$LINENO: result: $RANLIB" >&5
5863 echo "${ECHO_T}$RANLIB" >&6
5864 else
5865   echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6
5867 fi
5868
5869 fi
5870 if test -z "$ac_cv_prog_RANLIB"; then
5871   ac_ct_RANLIB=$RANLIB
5872   # Extract the first word of "ranlib", so it can be a program name with args.
5873 set dummy ranlib; ac_word=$2
5874 echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   if test -n "$ac_ct_RANLIB"; then
5880   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887   for ac_exec_ext in '' $ac_executable_extensions; do
5888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889     ac_cv_prog_ac_ct_RANLIB="ranlib"
5890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891     break 2
5892   fi
5893 done
5894 done
5895
5896   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5897 fi
5898 fi
5899 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5900 if test -n "$ac_ct_RANLIB"; then
5901   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5902 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5903 else
5904   echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6
5906 fi
5907
5908   RANLIB=$ac_ct_RANLIB
5909 else
5910   RANLIB="$ac_cv_prog_RANLIB"
5911 fi
5912
5913 if test -n "$ac_tool_prefix"; then
5914   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}strip; ac_word=$2
5916 echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5918 if test "${ac_cv_prog_STRIP+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921   if test -n "$STRIP"; then
5922   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927   IFS=$as_save_IFS
5928   test -z "$as_dir" && as_dir=.
5929   for ac_exec_ext in '' $ac_executable_extensions; do
5930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933     break 2
5934   fi
5935 done
5936 done
5937
5938 fi
5939 fi
5940 STRIP=$ac_cv_prog_STRIP
5941 if test -n "$STRIP"; then
5942   echo "$as_me:$LINENO: result: $STRIP" >&5
5943 echo "${ECHO_T}$STRIP" >&6
5944 else
5945   echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6
5947 fi
5948
5949 fi
5950 if test -z "$ac_cv_prog_STRIP"; then
5951   ac_ct_STRIP=$STRIP
5952   # Extract the first word of "strip", so it can be a program name with args.
5953 set dummy strip; ac_word=$2
5954 echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959   if test -n "$ac_ct_STRIP"; then
5960   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965   IFS=$as_save_IFS
5966   test -z "$as_dir" && as_dir=.
5967   for ac_exec_ext in '' $ac_executable_extensions; do
5968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969     ac_cv_prog_ac_ct_STRIP="strip"
5970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971     break 2
5972   fi
5973 done
5974 done
5975
5976   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5977 fi
5978 fi
5979 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5980 if test -n "$ac_ct_STRIP"; then
5981   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5982 echo "${ECHO_T}$ac_ct_STRIP" >&6
5983 else
5984   echo "$as_me:$LINENO: result: no" >&5
5985 echo "${ECHO_T}no" >&6
5986 fi
5987
5988   STRIP=$ac_ct_STRIP
5989 else
5990   STRIP="$ac_cv_prog_STRIP"
5991 fi
5992
5993
5994 old_CC="$CC"
5995 old_CFLAGS="$CFLAGS"
5996
5997 # Set sane defaults for various variables
5998 test -z "$AR" && AR=ar
5999 test -z "$AR_FLAGS" && AR_FLAGS=cru
6000 test -z "$AS" && AS=as
6001 test -z "$CC" && CC=cc
6002 test -z "$LTCC" && LTCC=$CC
6003 test -z "$DLLTOOL" && DLLTOOL=dlltool
6004 test -z "$LD" && LD=ld
6005 test -z "$LN_S" && LN_S="ln -s"
6006 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6007 test -z "$NM" && NM=nm
6008 test -z "$SED" && SED=sed
6009 test -z "$OBJDUMP" && OBJDUMP=objdump
6010 test -z "$RANLIB" && RANLIB=:
6011 test -z "$STRIP" && STRIP=:
6012 test -z "$ac_objext" && ac_objext=o
6013
6014 # Determine commands to create old-style static archives.
6015 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6016 old_postinstall_cmds='chmod 644 $oldlib'
6017 old_postuninstall_cmds=
6018
6019 if test -n "$RANLIB"; then
6020   case $host_os in
6021   openbsd*)
6022     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6023     ;;
6024   *)
6025     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6026     ;;
6027   esac
6028   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6029 fi
6030
6031 # Only perform the check for file, if the check method requires it
6032 case $deplibs_check_method in
6033 file_magic*)
6034   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6035     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6036 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6037 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   case $MAGIC_CMD in
6041 [\\/*] |  ?:[\\/]*)
6042   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6043   ;;
6044 *)
6045   lt_save_MAGIC_CMD="$MAGIC_CMD"
6046   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6047   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6048   for ac_dir in $ac_dummy; do
6049     IFS="$lt_save_ifs"
6050     test -z "$ac_dir" && ac_dir=.
6051     if test -f $ac_dir/${ac_tool_prefix}file; then
6052       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6053       if test -n "$file_magic_test_file"; then
6054         case $deplibs_check_method in
6055         "file_magic "*)
6056           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6057           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6058           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6059             $EGREP "$file_magic_regex" > /dev/null; then
6060             :
6061           else
6062             cat <<EOF 1>&2
6063
6064 *** Warning: the command libtool uses to detect shared libraries,
6065 *** $file_magic_cmd, produces output that libtool cannot recognize.
6066 *** The result is that libtool may fail to recognize shared libraries
6067 *** as such.  This will affect the creation of libtool libraries that
6068 *** depend on shared libraries, but programs linked with such libtool
6069 *** libraries will work regardless of this problem.  Nevertheless, you
6070 *** may want to report the problem to your system manager and/or to
6071 *** bug-libtool@gnu.org
6072
6073 EOF
6074           fi ;;
6075         esac
6076       fi
6077       break
6078     fi
6079   done
6080   IFS="$lt_save_ifs"
6081   MAGIC_CMD="$lt_save_MAGIC_CMD"
6082   ;;
6083 esac
6084 fi
6085
6086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6087 if test -n "$MAGIC_CMD"; then
6088   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6089 echo "${ECHO_T}$MAGIC_CMD" >&6
6090 else
6091   echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6
6093 fi
6094
6095 if test -z "$lt_cv_path_MAGIC_CMD"; then
6096   if test -n "$ac_tool_prefix"; then
6097     echo "$as_me:$LINENO: checking for file" >&5
6098 echo $ECHO_N "checking for file... $ECHO_C" >&6
6099 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6100   echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102   case $MAGIC_CMD in
6103 [\\/*] |  ?:[\\/]*)
6104   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6105   ;;
6106 *)
6107   lt_save_MAGIC_CMD="$MAGIC_CMD"
6108   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6109   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6110   for ac_dir in $ac_dummy; do
6111     IFS="$lt_save_ifs"
6112     test -z "$ac_dir" && ac_dir=.
6113     if test -f $ac_dir/file; then
6114       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6115       if test -n "$file_magic_test_file"; then
6116         case $deplibs_check_method in
6117         "file_magic "*)
6118           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6119           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6120           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6121             $EGREP "$file_magic_regex" > /dev/null; then
6122             :
6123           else
6124             cat <<EOF 1>&2
6125
6126 *** Warning: the command libtool uses to detect shared libraries,
6127 *** $file_magic_cmd, produces output that libtool cannot recognize.
6128 *** The result is that libtool may fail to recognize shared libraries
6129 *** as such.  This will affect the creation of libtool libraries that
6130 *** depend on shared libraries, but programs linked with such libtool
6131 *** libraries will work regardless of this problem.  Nevertheless, you
6132 *** may want to report the problem to your system manager and/or to
6133 *** bug-libtool@gnu.org
6134
6135 EOF
6136           fi ;;
6137         esac
6138       fi
6139       break
6140     fi
6141   done
6142   IFS="$lt_save_ifs"
6143   MAGIC_CMD="$lt_save_MAGIC_CMD"
6144   ;;
6145 esac
6146 fi
6147
6148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6149 if test -n "$MAGIC_CMD"; then
6150   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6151 echo "${ECHO_T}$MAGIC_CMD" >&6
6152 else
6153   echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6
6155 fi
6156
6157   else
6158     MAGIC_CMD=:
6159   fi
6160 fi
6161
6162   fi
6163   ;;
6164 esac
6165
6166 enable_dlopen=no
6167 enable_win32_dll=no
6168
6169 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6170 if test "${enable_libtool_lock+set}" = set; then
6171   enableval="$enable_libtool_lock"
6172
6173 fi;
6174 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6175
6176
6177 # Check whether --with-pic or --without-pic was given.
6178 if test "${with_pic+set}" = set; then
6179   withval="$with_pic"
6180   pic_mode="$withval"
6181 else
6182   pic_mode=default
6183 fi;
6184 test -z "$pic_mode" && pic_mode=default
6185
6186 # Use C for the default configuration in the libtool script
6187 tagname=
6188 lt_save_CC="$CC"
6189 ac_ext=c
6190 ac_cpp='$CPP $CPPFLAGS'
6191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194
6195
6196 # Source file extension for C test sources.
6197 ac_ext=c
6198
6199 # Object file extension for compiled C test sources.
6200 objext=o
6201 objext=$objext
6202
6203 # Code to be used in simple compile tests
6204 lt_simple_compile_test_code="int some_variable = 0;\n"
6205
6206 # Code to be used in simple link tests
6207 lt_simple_link_test_code='int main(){return(0);}\n'
6208
6209
6210 # If no C compiler was specified, use CC.
6211 LTCC=${LTCC-"$CC"}
6212
6213 # Allow CC to be a program name with arguments.
6214 compiler=$CC
6215
6216
6217 #
6218 # Check for any special shared library compilation flags.
6219 #
6220 lt_prog_cc_shlib=
6221 if test "$GCC" = no; then
6222   case $host_os in
6223   sco3.2v5*)
6224     lt_prog_cc_shlib='-belf'
6225     ;;
6226   esac
6227 fi
6228 if test -n "$lt_prog_cc_shlib"; then
6229   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6230 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6231   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6232   else
6233     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6234 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6235     lt_cv_prog_cc_can_build_shared=no
6236   fi
6237 fi
6238
6239
6240 #
6241 # Check to make sure the static flag actually works.
6242 #
6243 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6244 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6245 if test "${lt_prog_compiler_static_works+set}" = set; then
6246   echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248   lt_prog_compiler_static_works=no
6249    save_LDFLAGS="$LDFLAGS"
6250    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6251    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6252    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6253      # The compiler can only warn and ignore the option if not recognized
6254      # So say no if there are warnings
6255      if test -s conftest.err; then
6256        # Append any errors to the config.log.
6257        cat conftest.err 1>&5
6258      else
6259        lt_prog_compiler_static_works=yes
6260      fi
6261    fi
6262    $rm conftest*
6263    LDFLAGS="$save_LDFLAGS"
6264
6265 fi
6266 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6267 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6268
6269 if test x"$lt_prog_compiler_static_works" = xyes; then
6270     :
6271 else
6272     lt_prog_compiler_static=
6273 fi
6274
6275
6276
6277 ## CAVEAT EMPTOR:
6278 ## There is no encapsulation within the following macros, do not change
6279 ## the running order or otherwise move them around unless you know exactly
6280 ## what you are doing...
6281
6282 lt_prog_compiler_no_builtin_flag=
6283
6284 if test "$GCC" = yes; then
6285   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6286
6287   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6288 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6289 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   lt_cv_prog_compiler_rtti_exceptions=no
6293   ac_outfile=conftest.$ac_objext
6294    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6295    lt_compiler_flag="-fno-rtti -fno-exceptions"
6296    # Insert the option either (1) after the last *FLAGS variable, or
6297    # (2) before a word containing "conftest.", or (3) at the end.
6298    # Note that $ac_compile itself does not contain backslashes and begins
6299    # with a dollar sign (not a hyphen), so the echo should work correctly.
6300    # The option is referenced via a variable to avoid confusing sed.
6301    lt_compile=`echo "$ac_compile" | $SED \
6302    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6303    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6304    -e 's:$: $lt_compiler_flag:'`
6305    (eval echo "\"\$as_me:6305: $lt_compile\"" >&5)
6306    (eval "$lt_compile" 2>conftest.err)
6307    ac_status=$?
6308    cat conftest.err >&5
6309    echo "$as_me:6309: \$? = $ac_status" >&5
6310    if (exit $ac_status) && test -s "$ac_outfile"; then
6311      # The compiler can only warn and ignore the option if not recognized
6312      # So say no if there are warnings
6313      if test ! -s conftest.err; then
6314        lt_cv_prog_compiler_rtti_exceptions=yes
6315      fi
6316    fi
6317    $rm conftest*
6318
6319 fi
6320 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6321 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6322
6323 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6324     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6325 else
6326     :
6327 fi
6328
6329 fi
6330
6331 lt_prog_compiler_wl=
6332 lt_prog_compiler_pic=
6333 lt_prog_compiler_static=
6334
6335 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6336 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6337
6338   if test "$GCC" = yes; then
6339     lt_prog_compiler_wl='-Wl,'
6340     lt_prog_compiler_static='-static'
6341
6342     case $host_os in
6343       aix*)
6344       # All AIX code is PIC.
6345       if test "$host_cpu" = ia64; then
6346         # AIX 5 now supports IA64 processor
6347         lt_prog_compiler_static='-Bstatic'
6348       fi
6349       ;;
6350
6351     amigaos*)
6352       # FIXME: we need at least 68020 code to build shared libraries, but
6353       # adding the `-m68020' flag to GCC prevents building anything better,
6354       # like `-m68040'.
6355       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6356       ;;
6357
6358     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6359       # PIC is the default for these OSes.
6360       ;;
6361
6362     mingw* | pw32* | os2*)
6363       # This hack is so that the source file can tell whether it is being
6364       # built for inclusion in a dll (and should export symbols for example).
6365       lt_prog_compiler_pic='-DDLL_EXPORT'
6366       ;;
6367
6368     darwin* | rhapsody*)
6369       # PIC is the default on this platform
6370       # Common symbols not allowed in MH_DYLIB files
6371       lt_prog_compiler_pic='-fno-common'
6372       ;;
6373
6374     msdosdjgpp*)
6375       # Just because we use GCC doesn't mean we suddenly get shared libraries
6376       # on systems that don't support them.
6377       lt_prog_compiler_can_build_shared=no
6378       enable_shared=no
6379       ;;
6380
6381     sysv4*MP*)
6382       if test -d /usr/nec; then
6383         lt_prog_compiler_pic=-Kconform_pic
6384       fi
6385       ;;
6386
6387     hpux*)
6388       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6389       # not for PA HP-UX.
6390       case "$host_cpu" in
6391       hppa*64*|ia64*)
6392         # +Z the default
6393         ;;
6394       *)
6395         lt_prog_compiler_pic='-fPIC'
6396         ;;
6397       esac
6398       ;;
6399
6400     *)
6401       lt_prog_compiler_pic='-fPIC'
6402       ;;
6403     esac
6404   else
6405     # PORTME Check for flag to pass linker flags through the system compiler.
6406     case $host_os in
6407     aix*)
6408       lt_prog_compiler_wl='-Wl,'
6409       if test "$host_cpu" = ia64; then
6410         # AIX 5 now supports IA64 processor
6411         lt_prog_compiler_static='-Bstatic'
6412       else
6413         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6414       fi
6415       ;;
6416
6417     mingw* | pw32* | os2*)
6418       # This hack is so that the source file can tell whether it is being
6419       # built for inclusion in a dll (and should export symbols for example).
6420       lt_prog_compiler_pic='-DDLL_EXPORT'
6421       ;;
6422
6423     hpux9* | hpux10* | hpux11*)
6424       lt_prog_compiler_wl='-Wl,'
6425       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6426       # not for PA HP-UX.
6427       case "$host_cpu" in
6428       hppa*64*|ia64*)
6429         # +Z the default
6430         ;;
6431       *)
6432         lt_prog_compiler_pic='+Z'
6433         ;;
6434       esac
6435       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6436       lt_prog_compiler_static='${wl}-a ${wl}archive'
6437       ;;
6438
6439     irix5* | irix6* | nonstopux*)
6440       lt_prog_compiler_wl='-Wl,'
6441       # PIC (with -KPIC) is the default.
6442       lt_prog_compiler_static='-non_shared'
6443       ;;
6444
6445     newsos6)
6446       lt_prog_compiler_pic='-KPIC'
6447       lt_prog_compiler_static='-Bstatic'
6448       ;;
6449
6450     linux*)
6451       case $CC in
6452       icc|ecc)
6453         lt_prog_compiler_wl='-Wl,'
6454         lt_prog_compiler_pic='-KPIC'
6455         lt_prog_compiler_static='-static'
6456         ;;
6457       ccc)
6458         lt_prog_compiler_wl='-Wl,'
6459         # All Alpha code is PIC.
6460         lt_prog_compiler_static='-non_shared'
6461         ;;
6462       esac
6463       ;;
6464
6465     osf3* | osf4* | osf5*)
6466       lt_prog_compiler_wl='-Wl,'
6467       # All OSF/1 code is PIC.
6468       lt_prog_compiler_static='-non_shared'
6469       ;;
6470
6471     sco3.2v5*)
6472       lt_prog_compiler_pic='-Kpic'
6473       lt_prog_compiler_static='-dn'
6474       ;;
6475
6476     solaris*)
6477       lt_prog_compiler_wl='-Wl,'
6478       lt_prog_compiler_pic='-KPIC'
6479       lt_prog_compiler_static='-Bstatic'
6480       ;;
6481
6482     sunos4*)
6483       lt_prog_compiler_wl='-Qoption ld '
6484       lt_prog_compiler_pic='-PIC'
6485       lt_prog_compiler_static='-Bstatic'
6486       ;;
6487
6488     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6489       lt_prog_compiler_wl='-Wl,'
6490       lt_prog_compiler_pic='-KPIC'
6491       lt_prog_compiler_static='-Bstatic'
6492       ;;
6493
6494     sysv4*MP*)
6495       if test -d /usr/nec ;then
6496         lt_prog_compiler_pic='-Kconform_pic'
6497         lt_prog_compiler_static='-Bstatic'
6498       fi
6499       ;;
6500
6501     uts4*)
6502       lt_prog_compiler_pic='-pic'
6503       lt_prog_compiler_static='-Bstatic'
6504       ;;
6505
6506     *)
6507       lt_prog_compiler_can_build_shared=no
6508       ;;
6509     esac
6510   fi
6511
6512 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6513 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6514
6515 #
6516 # Check to make sure the PIC flag actually works.
6517 #
6518 if test -n "$lt_prog_compiler_pic"; then
6519   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6520 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6521 if test "${lt_prog_compiler_pic_works+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   lt_prog_compiler_pic_works=no
6525   ac_outfile=conftest.$ac_objext
6526    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6527    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6528    # Insert the option either (1) after the last *FLAGS variable, or
6529    # (2) before a word containing "conftest.", or (3) at the end.
6530    # Note that $ac_compile itself does not contain backslashes and begins
6531    # with a dollar sign (not a hyphen), so the echo should work correctly.
6532    # The option is referenced via a variable to avoid confusing sed.
6533    lt_compile=`echo "$ac_compile" | $SED \
6534    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6535    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6536    -e 's:$: $lt_compiler_flag:'`
6537    (eval echo "\"\$as_me:6537: $lt_compile\"" >&5)
6538    (eval "$lt_compile" 2>conftest.err)
6539    ac_status=$?
6540    cat conftest.err >&5
6541    echo "$as_me:6541: \$? = $ac_status" >&5
6542    if (exit $ac_status) && test -s "$ac_outfile"; then
6543      # The compiler can only warn and ignore the option if not recognized
6544      # So say no if there are warnings
6545      if test ! -s conftest.err; then
6546        lt_prog_compiler_pic_works=yes
6547      fi
6548    fi
6549    $rm conftest*
6550
6551 fi
6552 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6553 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6554
6555 if test x"$lt_prog_compiler_pic_works" = xyes; then
6556     case $lt_prog_compiler_pic in
6557      "" | " "*) ;;
6558      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6559      esac
6560 else
6561     lt_prog_compiler_pic=
6562      lt_prog_compiler_can_build_shared=no
6563 fi
6564
6565 fi
6566 case "$host_os" in
6567   # For platforms which do not support PIC, -DPIC is meaningless:
6568   *djgpp*)
6569     lt_prog_compiler_pic=
6570     ;;
6571   *)
6572     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6573     ;;
6574 esac
6575
6576 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6577 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6578 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6579   echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581   lt_cv_prog_compiler_c_o=no
6582    $rm -r conftest 2>/dev/null
6583    mkdir conftest
6584    cd conftest
6585    mkdir out
6586    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6587
6588    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6589    # that will create temporary files in the current directory regardless of
6590    # the output directory.  Thus, making CWD read-only will cause this test
6591    # to fail, enabling locking or at least warning the user not to do parallel
6592    # builds.
6593    chmod -w .
6594
6595    lt_compiler_flag="-o out/conftest2.$ac_objext"
6596    # Insert the option either (1) after the last *FLAGS variable, or
6597    # (2) before a word containing "conftest.", or (3) at the end.
6598    # Note that $ac_compile itself does not contain backslashes and begins
6599    # with a dollar sign (not a hyphen), so the echo should work correctly.
6600    lt_compile=`echo "$ac_compile" | $SED \
6601    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6602    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6603    -e 's:$: $lt_compiler_flag:'`
6604    (eval echo "\"\$as_me:6604: $lt_compile\"" >&5)
6605    (eval "$lt_compile" 2>out/conftest.err)
6606    ac_status=$?
6607    cat out/conftest.err >&5
6608    echo "$as_me:6608: \$? = $ac_status" >&5
6609    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6610    then
6611      # The compiler can only warn and ignore the option if not recognized
6612      # So say no if there are warnings
6613      if test ! -s out/conftest.err; then
6614        lt_cv_prog_compiler_c_o=yes
6615      fi
6616    fi
6617    chmod u+w .
6618    $rm conftest* out/*
6619    rmdir out
6620    cd ..
6621    rmdir conftest
6622    $rm conftest*
6623
6624 fi
6625 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6626 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6627
6628
6629 hard_links="nottested"
6630 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6631   # do not overwrite the value of need_locks provided by the user
6632   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6633 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6634   hard_links=yes
6635   $rm conftest*
6636   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6637   touch conftest.a
6638   ln conftest.a conftest.b 2>&5 || hard_links=no
6639   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6640   echo "$as_me:$LINENO: result: $hard_links" >&5
6641 echo "${ECHO_T}$hard_links" >&6
6642   if test "$hard_links" = no; then
6643     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6644 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6645     need_locks=warn
6646   fi
6647 else
6648   need_locks=no
6649 fi
6650
6651 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6652 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6653
6654   runpath_var=
6655   allow_undefined_flag=
6656   enable_shared_with_static_runtimes=no
6657   archive_cmds=
6658   archive_expsym_cmds=
6659   old_archive_From_new_cmds=
6660   old_archive_from_expsyms_cmds=
6661   export_dynamic_flag_spec=
6662   whole_archive_flag_spec=
6663   thread_safe_flag_spec=
6664   hardcode_libdir_flag_spec=
6665   hardcode_libdir_flag_spec_ld=
6666   hardcode_libdir_separator=
6667   hardcode_direct=no
6668   hardcode_minus_L=no
6669   hardcode_shlibpath_var=unsupported
6670   link_all_deplibs=unknown
6671   hardcode_automatic=no
6672   module_cmds=
6673   module_expsym_cmds=
6674   always_export_symbols=no
6675   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6676   # include_expsyms should be a list of space-separated symbols to be *always*
6677   # included in the symbol list
6678   include_expsyms=
6679   # exclude_expsyms can be an extended regexp of symbols to exclude
6680   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6681   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6682   # as well as any symbol that contains `d'.
6683   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6684   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6685   # platforms (ab)use it in PIC code, but their linkers get confused if
6686   # the symbol is explicitly referenced.  Since portable code cannot
6687   # rely on this symbol name, it's probably fine to never include it in
6688   # preloaded symbol tables.
6689   extract_expsyms_cmds=
6690
6691   case $host_os in
6692   cygwin* | mingw* | pw32*)
6693     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6694     # When not using gcc, we currently assume that we are using
6695     # Microsoft Visual C++.
6696     if test "$GCC" != yes; then
6697       with_gnu_ld=no
6698     fi
6699     ;;
6700   openbsd*)
6701     with_gnu_ld=no
6702     ;;
6703   esac
6704
6705   ld_shlibs=yes
6706   if test "$with_gnu_ld" = yes; then
6707     # If archive_cmds runs LD, not CC, wlarc should be empty
6708     wlarc='${wl}'
6709
6710     # See if GNU ld supports shared libraries.
6711     case $host_os in
6712     aix3* | aix4* | aix5*)
6713       # On AIX/PPC, the GNU linker is very broken
6714       if test "$host_cpu" != ia64; then
6715         ld_shlibs=no
6716         cat <<EOF 1>&2
6717
6718 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6719 *** to be unable to reliably create shared libraries on AIX.
6720 *** Therefore, libtool is disabling shared libraries support.  If you
6721 *** really care for shared libraries, you may want to modify your PATH
6722 *** so that a non-GNU linker is found, and then restart.
6723
6724 EOF
6725       fi
6726       ;;
6727
6728     amigaos*)
6729       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)'
6730       hardcode_libdir_flag_spec='-L$libdir'
6731       hardcode_minus_L=yes
6732
6733       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6734       # that the semantics of dynamic libraries on AmigaOS, at least up
6735       # to version 4, is to share data among multiple programs linked
6736       # with the same dynamic library.  Since this doesn't match the
6737       # behavior of shared libraries on other platforms, we can't use
6738       # them.
6739       ld_shlibs=no
6740       ;;
6741
6742     beos*)
6743       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6744         allow_undefined_flag=unsupported
6745         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6746         # support --undefined.  This deserves some investigation.  FIXME
6747         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6748       else
6749         ld_shlibs=no
6750       fi
6751       ;;
6752
6753     cygwin* | mingw* | pw32*)
6754       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6755       # as there is no search path for DLLs.
6756       hardcode_libdir_flag_spec='-L$libdir'
6757       allow_undefined_flag=unsupported
6758       always_export_symbols=no
6759       enable_shared_with_static_runtimes=yes
6760       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6761
6762       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6763         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6764         # If the export-symbols file already is a .def file (1st line
6765         # is EXPORTS), use it as is; otherwise, prepend...
6766         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6767           cp $export_symbols $output_objdir/$soname.def;
6768         else
6769           echo EXPORTS > $output_objdir/$soname.def;
6770           cat $export_symbols >> $output_objdir/$soname.def;
6771         fi~
6772         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6773       else
6774         ld_shlibs=no
6775       fi
6776       ;;
6777
6778     netbsd*)
6779       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6780         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6781         wlarc=
6782       else
6783         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6784         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6785       fi
6786       ;;
6787
6788     solaris* | sysv5*)
6789       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6790         ld_shlibs=no
6791         cat <<EOF 1>&2
6792
6793 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6794 *** create shared libraries on Solaris systems.  Therefore, libtool
6795 *** is disabling shared libraries support.  We urge you to upgrade GNU
6796 *** binutils to release 2.9.1 or newer.  Another option is to modify
6797 *** your PATH or compiler configuration so that the native linker is
6798 *** used, and then restart.
6799
6800 EOF
6801       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6802         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6803         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6804       else
6805         ld_shlibs=no
6806       fi
6807       ;;
6808
6809     sunos4*)
6810       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6811       wlarc=
6812       hardcode_direct=yes
6813       hardcode_shlibpath_var=no
6814       ;;
6815
6816     *)
6817       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6818         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6819         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6820       else
6821         ld_shlibs=no
6822       fi
6823       ;;
6824     esac
6825
6826     if test "$ld_shlibs" = yes; then
6827       runpath_var=LD_RUN_PATH
6828       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6829       export_dynamic_flag_spec='${wl}--export-dynamic'
6830       # ancient GNU ld didn't support --whole-archive et. al.
6831       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6832         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6833       else
6834         whole_archive_flag_spec=
6835       fi
6836     fi
6837   else
6838     # PORTME fill in a description of your system's linker (not GNU ld)
6839     case $host_os in
6840     aix3*)
6841       allow_undefined_flag=unsupported
6842       always_export_symbols=yes
6843       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'
6844       # Note: this linker hardcodes the directories in LIBPATH if there
6845       # are no directories specified by -L.
6846       hardcode_minus_L=yes
6847       if test "$GCC" = yes && test -z "$link_static_flag"; then
6848         # Neither direct hardcoding nor static linking is supported with a
6849         # broken collect2.
6850         hardcode_direct=unsupported
6851       fi
6852       ;;
6853
6854     aix4* | aix5*)
6855       if test "$host_cpu" = ia64; then
6856         # On IA64, the linker does run time linking by default, so we don't
6857         # have to do anything special.
6858         aix_use_runtimelinking=no
6859         exp_sym_flag='-Bexport'
6860         no_entry_flag=""
6861       else
6862         # If we're using GNU nm, then we don't want the "-C" option.
6863         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6864         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6865           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'
6866         else
6867           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'
6868         fi
6869         aix_use_runtimelinking=no
6870
6871         # Test if we are trying to use run time linking or normal
6872         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6873         # need to do runtime linking.
6874         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6875           for ld_flag in $LDFLAGS; do
6876           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6877             aix_use_runtimelinking=yes
6878             break
6879           fi
6880           done
6881         esac
6882
6883         exp_sym_flag='-bexport'
6884         no_entry_flag='-bnoentry'
6885       fi
6886
6887       # When large executables or shared objects are built, AIX ld can
6888       # have problems creating the table of contents.  If linking a library
6889       # or program results in "error TOC overflow" add -mminimal-toc to
6890       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6891       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6892
6893       archive_cmds=''
6894       hardcode_direct=yes
6895       hardcode_libdir_separator=':'
6896       link_all_deplibs=yes
6897
6898       if test "$GCC" = yes; then
6899         case $host_os in aix4.012|aix4.012.*)
6900         # We only want to do this on AIX 4.2 and lower, the check
6901         # below for broken collect2 doesn't work under 4.3+
6902           collect2name=`${CC} -print-prog-name=collect2`
6903           if test -f "$collect2name" && \
6904            strings "$collect2name" | grep resolve_lib_name >/dev/null
6905           then
6906           # We have reworked collect2
6907           hardcode_direct=yes
6908           else
6909           # We have old collect2
6910           hardcode_direct=unsupported
6911           # It fails to find uninstalled libraries when the uninstalled
6912           # path is not listed in the libpath.  Setting hardcode_minus_L
6913           # to unsupported forces relinking
6914           hardcode_minus_L=yes
6915           hardcode_libdir_flag_spec='-L$libdir'
6916           hardcode_libdir_separator=
6917           fi
6918         esac
6919         shared_flag='-shared'
6920       else
6921         # not using gcc
6922         if test "$host_cpu" = ia64; then
6923         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6924         # chokes on -Wl,-G. The following line is correct:
6925           shared_flag='-G'
6926         else
6927         if test "$aix_use_runtimelinking" = yes; then
6928             shared_flag='${wl}-G'
6929           else
6930             shared_flag='${wl}-bM:SRE'
6931         fi
6932         fi
6933       fi
6934
6935       # It seems that -bexpall does not export symbols beginning with
6936       # underscore (_), so it is better to generate a list of symbols to export.
6937       always_export_symbols=yes
6938       if test "$aix_use_runtimelinking" = yes; then
6939         # Warning - without using the other runtime loading flags (-brtl),
6940         # -berok will link without error, but may produce a broken library.
6941         allow_undefined_flag='-berok'
6942        # Determine the default libpath from the value encoded in an empty executable.
6943        cat >conftest.$ac_ext <<_ACEOF
6944 #line $LINENO "configure"
6945 /* confdefs.h.  */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h.  */
6950
6951 int
6952 main ()
6953 {
6954
6955   ;
6956   return 0;
6957 }
6958 _ACEOF
6959 rm -f conftest.$ac_objext conftest$ac_exeext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961   (eval $ac_link) 2>&5
6962   ac_status=$?
6963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); } &&
6965          { ac_try='test -s conftest$ac_exeext'
6966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; }; then
6971
6972 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6973 }'`
6974 # Check for a 64-bit object if we didn't find anything.
6975 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; }
6976 }'`; fi
6977 else
6978   echo "$as_me: failed program was:" >&5
6979 sed 's/^/| /' conftest.$ac_ext >&5
6980
6981 fi
6982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6984
6985        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6986         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"
6987        else
6988         if test "$host_cpu" = ia64; then
6989           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6990           allow_undefined_flag="-z nodefs"
6991           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"
6992         else
6993          # Determine the default libpath from the value encoded in an empty executable.
6994          cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6996 /* confdefs.h.  */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h.  */
7001
7002 int
7003 main ()
7004 {
7005
7006   ;
7007   return 0;
7008 }
7009 _ACEOF
7010 rm -f conftest.$ac_objext conftest$ac_exeext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7012   (eval $ac_link) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); } &&
7016          { ac_try='test -s conftest$ac_exeext'
7017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018   (eval $ac_try) 2>&5
7019   ac_status=$?
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); }; }; then
7022
7023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7024 }'`
7025 # Check for a 64-bit object if we didn't find anything.
7026 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; }
7027 }'`; fi
7028 else
7029   echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 fi
7033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7035
7036          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7037           # Warning - without using the other run time loading flags,
7038           # -berok will link without error, but may produce a broken library.
7039           no_undefined_flag=' ${wl}-bernotok'
7040           allow_undefined_flag=' ${wl}-berok'
7041           # -bexpall does not export symbols beginning with underscore (_)
7042           always_export_symbols=yes
7043           # Exported symbols can be pulled into shared objects from archives
7044           whole_archive_flag_spec=' '
7045           archive_cmds_need_lc=yes
7046           # This is similar to how AIX traditionally builds it's shared libraries.
7047           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'
7048         fi
7049       fi
7050       ;;
7051
7052     amigaos*)
7053       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)'
7054       hardcode_libdir_flag_spec='-L$libdir'
7055       hardcode_minus_L=yes
7056       # see comment about different semantics on the GNU ld section
7057       ld_shlibs=no
7058       ;;
7059
7060     bsdi4*)
7061       export_dynamic_flag_spec=-rdynamic
7062       ;;
7063
7064     cygwin* | mingw* | pw32*)
7065       # When not using gcc, we currently assume that we are using
7066       # Microsoft Visual C++.
7067       # hardcode_libdir_flag_spec is actually meaningless, as there is
7068       # no search path for DLLs.
7069       hardcode_libdir_flag_spec=' '
7070       allow_undefined_flag=unsupported
7071       # Tell ltmain to make .lib files, not .a files.
7072       libext=lib
7073       # Tell ltmain to make .dll files, not .so files.
7074       shrext=".dll"
7075       # FIXME: Setting linknames here is a bad hack.
7076       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7077       # The linker will automatically build a .lib file if we build a DLL.
7078       old_archive_From_new_cmds='true'
7079       # FIXME: Should let the user specify the lib program.
7080       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7081       fix_srcfile_path='`cygpath -w "$srcfile"`'
7082       enable_shared_with_static_runtimes=yes
7083       ;;
7084
7085     darwin* | rhapsody*)
7086     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7087       archive_cmds_need_lc=no
7088       case "$host_os" in
7089       rhapsody* | darwin1.[012])
7090         allow_undefined_flag='-undefined suppress'
7091         ;;
7092       *) # Darwin 1.3 on
7093         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7094         ;;
7095       esac
7096       # FIXME: Relying on posixy $() will cause problems for
7097       #        cross-compilation, but unfortunately the echo tests do not
7098       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7099       #        `"' quotes if we put them in here... so don't!
7100         lt_int_apple_cc_single_mod=no
7101         output_verbose_link_cmd='echo'
7102         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7103           lt_int_apple_cc_single_mod=yes
7104         fi
7105         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7106           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7107         else
7108         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'
7109       fi
7110       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7111       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7112         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7113           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}'
7114         else
7115           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}'
7116         fi
7117           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}'
7118       hardcode_direct=no
7119       hardcode_automatic=yes
7120       hardcode_shlibpath_var=unsupported
7121       whole_archive_flag_spec='-all_load $convenience'
7122       link_all_deplibs=yes
7123     fi
7124       ;;
7125
7126     dgux*)
7127       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7128       hardcode_libdir_flag_spec='-L$libdir'
7129       hardcode_shlibpath_var=no
7130       ;;
7131
7132     freebsd1*)
7133       ld_shlibs=no
7134       ;;
7135
7136     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7137     # support.  Future versions do this automatically, but an explicit c++rt0.o
7138     # does not break anything, and helps significantly (at the cost of a little
7139     # extra space).
7140     freebsd2.2*)
7141       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7142       hardcode_libdir_flag_spec='-R$libdir'
7143       hardcode_direct=yes
7144       hardcode_shlibpath_var=no
7145       ;;
7146
7147     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7148     freebsd2*)
7149       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7150       hardcode_direct=yes
7151       hardcode_minus_L=yes
7152       hardcode_shlibpath_var=no
7153       ;;
7154
7155     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7156     freebsd*)
7157       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7158       hardcode_libdir_flag_spec='-R$libdir'
7159       hardcode_direct=yes
7160       hardcode_shlibpath_var=no
7161       ;;
7162
7163     hpux9*)
7164       if test "$GCC" = yes; then
7165         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'
7166       else
7167         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'
7168       fi
7169       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7170       hardcode_libdir_separator=:
7171       hardcode_direct=yes
7172
7173       # hardcode_minus_L: Not really in the search PATH,
7174       # but as the default location of the library.
7175       hardcode_minus_L=yes
7176       export_dynamic_flag_spec='${wl}-E'
7177       ;;
7178
7179     hpux10* | hpux11*)
7180       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7181         case "$host_cpu" in
7182         hppa*64*|ia64*)
7183           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7184           ;;
7185         *)
7186           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7187           ;;
7188         esac
7189       else
7190         case "$host_cpu" in
7191         hppa*64*|ia64*)
7192           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7193           ;;
7194         *)
7195           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7196           ;;
7197         esac
7198       fi
7199       if test "$with_gnu_ld" = no; then
7200         case "$host_cpu" in
7201         hppa*64*)
7202           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7203           hardcode_libdir_flag_spec_ld='+b $libdir'
7204           hardcode_libdir_separator=:
7205           hardcode_direct=no
7206           hardcode_shlibpath_var=no
7207           ;;
7208         ia64*)
7209           hardcode_libdir_flag_spec='-L$libdir'
7210           hardcode_direct=no
7211           hardcode_shlibpath_var=no
7212
7213           # hardcode_minus_L: Not really in the search PATH,
7214           # but as the default location of the library.
7215           hardcode_minus_L=yes
7216           ;;
7217         *)
7218           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7219           hardcode_libdir_separator=:
7220           hardcode_direct=yes
7221           export_dynamic_flag_spec='${wl}-E'
7222
7223           # hardcode_minus_L: Not really in the search PATH,
7224           # but as the default location of the library.
7225           hardcode_minus_L=yes
7226           ;;
7227         esac
7228       fi
7229       ;;
7230
7231     irix5* | irix6* | nonstopux*)
7232       if test "$GCC" = yes; then
7233         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'
7234       else
7235         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'
7236         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7237       fi
7238       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7239       hardcode_libdir_separator=:
7240       link_all_deplibs=yes
7241       ;;
7242
7243     netbsd*)
7244       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7245         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7246       else
7247         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7248       fi
7249       hardcode_libdir_flag_spec='-R$libdir'
7250       hardcode_direct=yes
7251       hardcode_shlibpath_var=no
7252       ;;
7253
7254     newsos6)
7255       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7256       hardcode_direct=yes
7257       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7258       hardcode_libdir_separator=:
7259       hardcode_shlibpath_var=no
7260       ;;
7261
7262     openbsd*)
7263       hardcode_direct=yes
7264       hardcode_shlibpath_var=no
7265       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7266         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7267         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7268         export_dynamic_flag_spec='${wl}-E'
7269       else
7270        case $host_os in
7271          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7272            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7273            hardcode_libdir_flag_spec='-R$libdir'
7274            ;;
7275          *)
7276            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7277            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7278            ;;
7279        esac
7280       fi
7281       ;;
7282
7283     os2*)
7284       hardcode_libdir_flag_spec='-L$libdir'
7285       hardcode_minus_L=yes
7286       allow_undefined_flag=unsupported
7287       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'
7288       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7289       ;;
7290
7291     osf3*)
7292       if test "$GCC" = yes; then
7293         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7294         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'
7295       else
7296         allow_undefined_flag=' -expect_unresolved \*'
7297         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'
7298       fi
7299       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7300       hardcode_libdir_separator=:
7301       ;;
7302
7303     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7304       if test "$GCC" = yes; then
7305         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7306         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'
7307         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7308       else
7309         allow_undefined_flag=' -expect_unresolved \*'
7310         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'
7311         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7312         $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'
7313
7314         # Both c and cxx compiler support -rpath directly
7315         hardcode_libdir_flag_spec='-rpath $libdir'
7316       fi
7317       hardcode_libdir_separator=:
7318       ;;
7319
7320     sco3.2v5*)
7321       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7322       hardcode_shlibpath_var=no
7323       export_dynamic_flag_spec='${wl}-Bexport'
7324       runpath_var=LD_RUN_PATH
7325       hardcode_runpath_var=yes
7326       ;;
7327
7328     solaris*)
7329       no_undefined_flag=' -z text'
7330       if test "$GCC" = yes; then
7331         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7332         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7333           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7334       else
7335         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7336         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7337         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7338       fi
7339       hardcode_libdir_flag_spec='-R$libdir'
7340       hardcode_shlibpath_var=no
7341       case $host_os in
7342       solaris2.[0-5] | solaris2.[0-5].*) ;;
7343       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7344         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7345       esac
7346       link_all_deplibs=yes
7347       ;;
7348
7349     sunos4*)
7350       if test "x$host_vendor" = xsequent; then
7351         # Use $CC to link under sequent, because it throws in some extra .o
7352         # files that make .init and .fini sections work.
7353         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7354       else
7355         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7356       fi
7357       hardcode_libdir_flag_spec='-L$libdir'
7358       hardcode_direct=yes
7359       hardcode_minus_L=yes
7360       hardcode_shlibpath_var=no
7361       ;;
7362
7363     sysv4)
7364       case $host_vendor in
7365         sni)
7366           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7367           hardcode_direct=yes # is this really true???
7368         ;;
7369         siemens)
7370           ## LD is ld it makes a PLAMLIB
7371           ## CC just makes a GrossModule.
7372           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7373           reload_cmds='$CC -r -o $output$reload_objs'
7374           hardcode_direct=no
7375         ;;
7376         motorola)
7377           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7379         ;;
7380       esac
7381       runpath_var='LD_RUN_PATH'
7382       hardcode_shlibpath_var=no
7383       ;;
7384
7385     sysv4.3*)
7386       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7387       hardcode_shlibpath_var=no
7388       export_dynamic_flag_spec='-Bexport'
7389       ;;
7390
7391     sysv4*MP*)
7392       if test -d /usr/nec; then
7393         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7394         hardcode_shlibpath_var=no
7395         runpath_var=LD_RUN_PATH
7396         hardcode_runpath_var=yes
7397         ld_shlibs=yes
7398       fi
7399       ;;
7400
7401     sysv4.2uw2*)
7402       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7403       hardcode_direct=yes
7404       hardcode_minus_L=no
7405       hardcode_shlibpath_var=no
7406       hardcode_runpath_var=yes
7407       runpath_var=LD_RUN_PATH
7408       ;;
7409
7410    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7411       no_undefined_flag='${wl}-z ${wl}text'
7412       if test "$GCC" = yes; then
7413         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7414       else
7415         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7416       fi
7417       runpath_var='LD_RUN_PATH'
7418       hardcode_shlibpath_var=no
7419       ;;
7420
7421     sysv5*)
7422       no_undefined_flag=' -z text'
7423       # $CC -shared without GNU ld will not create a library from C++
7424       # object files and a static libstdc++, better avoid it by now
7425       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7426       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7427                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7428       hardcode_libdir_flag_spec=
7429       hardcode_shlibpath_var=no
7430       runpath_var='LD_RUN_PATH'
7431       ;;
7432
7433     uts4*)
7434       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7435       hardcode_libdir_flag_spec='-L$libdir'
7436       hardcode_shlibpath_var=no
7437       ;;
7438
7439     *)
7440       ld_shlibs=no
7441       ;;
7442     esac
7443   fi
7444
7445 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7446 echo "${ECHO_T}$ld_shlibs" >&6
7447 test "$ld_shlibs" = no && can_build_shared=no
7448
7449 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7450 if test "$GCC" = yes; then
7451   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7452 fi
7453
7454 #
7455 # Do we need to explicitly link libc?
7456 #
7457 case "x$archive_cmds_need_lc" in
7458 x|xyes)
7459   # Assume -lc should be added
7460   archive_cmds_need_lc=yes
7461
7462   if test "$enable_shared" = yes && test "$GCC" = yes; then
7463     case $archive_cmds in
7464     *'~'*)
7465       # FIXME: we may have to deal with multi-command sequences.
7466       ;;
7467     '$CC '*)
7468       # Test whether the compiler implicitly links with -lc since on some
7469       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7470       # to ld, don't add -lc before -lgcc.
7471       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7472 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7473       $rm conftest*
7474       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7475
7476       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7477   (eval $ac_compile) 2>&5
7478   ac_status=$?
7479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480   (exit $ac_status); } 2>conftest.err; then
7481         soname=conftest
7482         lib=conftest
7483         libobjs=conftest.$ac_objext
7484         deplibs=
7485         wl=$lt_prog_compiler_wl
7486         compiler_flags=-v
7487         linker_flags=-v
7488         verstring=
7489         output_objdir=.
7490         libname=conftest
7491         lt_save_allow_undefined_flag=$allow_undefined_flag
7492         allow_undefined_flag=
7493         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7494   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7495   ac_status=$?
7496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497   (exit $ac_status); }
7498         then
7499           archive_cmds_need_lc=no
7500         else
7501           archive_cmds_need_lc=yes
7502         fi
7503         allow_undefined_flag=$lt_save_allow_undefined_flag
7504       else
7505         cat conftest.err 1>&5
7506       fi
7507       $rm conftest*
7508       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7509 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7510       ;;
7511     esac
7512   fi
7513   ;;
7514 esac
7515
7516 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7517 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7518 hardcode_action=
7519 if test -n "$hardcode_libdir_flag_spec" || \
7520    test -n "$runpath_var " || \
7521    test "X$hardcode_automatic"="Xyes" ; then
7522
7523   # We can hardcode non-existant directories.
7524   if test "$hardcode_direct" != no &&
7525      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7526      # have to relink, otherwise we might link with an installed library
7527      # when we should be linking with a yet-to-be-installed one
7528      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7529      test "$hardcode_minus_L" != no; then
7530     # Linking always hardcodes the temporary library directory.
7531     hardcode_action=relink
7532   else
7533     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7534     hardcode_action=immediate
7535   fi
7536 else
7537   # We cannot hardcode anything, or else we can only hardcode existing
7538   # directories.
7539   hardcode_action=unsupported
7540 fi
7541 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7542 echo "${ECHO_T}$hardcode_action" >&6
7543
7544 if test "$hardcode_action" = relink; then
7545   # Fast installation is not supported
7546   enable_fast_install=no
7547 elif test "$shlibpath_overrides_runpath" = yes ||
7548      test "$enable_shared" = no; then
7549   # Fast installation is not necessary
7550   enable_fast_install=needless
7551 fi
7552
7553 striplib=
7554 old_striplib=
7555 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7556 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7557 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7558   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7559   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7560   echo "$as_me:$LINENO: result: yes" >&5
7561 echo "${ECHO_T}yes" >&6
7562 else
7563 # FIXME - insert some real tests, host_os isn't really good enough
7564   case $host_os in
7565    darwin*)
7566        if test -n "$STRIP" ; then
7567          striplib="$STRIP -x"
7568          echo "$as_me:$LINENO: result: yes" >&5
7569 echo "${ECHO_T}yes" >&6
7570        else
7571   echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6
7573 fi
7574        ;;
7575    *)
7576   echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6
7578     ;;
7579   esac
7580 fi
7581
7582 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7583 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7584 library_names_spec=
7585 libname_spec='lib$name'
7586 soname_spec=
7587 shrext=".so"
7588 postinstall_cmds=
7589 postuninstall_cmds=
7590 finish_cmds=
7591 finish_eval=
7592 shlibpath_var=
7593 shlibpath_overrides_runpath=unknown
7594 version_type=none
7595 dynamic_linker="$host_os ld.so"
7596 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7597 if test "$GCC" = yes; then
7598   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7599   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7600     # if the path contains ";" then we assume it to be the separator
7601     # otherwise default to the standard path separator (i.e. ":") - it is
7602     # assumed that no part of a normal pathname contains ";" but that should
7603     # okay in the real world where ";" in dirpaths is itself problematic.
7604     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7605   else
7606     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7607   fi
7608 else
7609   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7610 fi
7611 need_lib_prefix=unknown
7612 hardcode_into_libs=no
7613
7614 # when you set need_version to no, make sure it does not cause -set_version
7615 # flags to be left without arguments
7616 need_version=unknown
7617
7618 case $host_os in
7619 aix3*)
7620   version_type=linux
7621   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7622   shlibpath_var=LIBPATH
7623
7624   # AIX 3 has no versioning support, so we append a major version to the name.
7625   soname_spec='${libname}${release}${shared_ext}$major'
7626   ;;
7627
7628 aix4* | aix5*)
7629   version_type=linux
7630   need_lib_prefix=no
7631   need_version=no
7632   hardcode_into_libs=yes
7633   if test "$host_cpu" = ia64; then
7634     # AIX 5 supports IA64
7635     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7636     shlibpath_var=LD_LIBRARY_PATH
7637   else
7638     # With GCC up to 2.95.x, collect2 would create an import file
7639     # for dependence libraries.  The import file would start with
7640     # the line `#! .'.  This would cause the generated library to
7641     # depend on `.', always an invalid library.  This was fixed in
7642     # development snapshots of GCC prior to 3.0.
7643     case $host_os in
7644       aix4 | aix4.[01] | aix4.[01].*)
7645       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7646            echo ' yes '
7647            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7648         :
7649       else
7650         can_build_shared=no
7651       fi
7652       ;;
7653     esac
7654     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7655     # soname into executable. Probably we can add versioning support to
7656     # collect2, so additional links can be useful in future.
7657     if test "$aix_use_runtimelinking" = yes; then
7658       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7659       # instead of lib<name>.a to let people know that these are not
7660       # typical AIX shared libraries.
7661       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7662     else
7663       # We preserve .a as extension for shared libraries through AIX4.2
7664       # and later when we are not doing run time linking.
7665       library_names_spec='${libname}${release}.a $libname.a'
7666       soname_spec='${libname}${release}${shared_ext}$major'
7667     fi
7668     shlibpath_var=LIBPATH
7669   fi
7670   ;;
7671
7672 amigaos*)
7673   library_names_spec='$libname.ixlibrary $libname.a'
7674   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7675   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'
7676   ;;
7677
7678 beos*)
7679   library_names_spec='${libname}${shared_ext}'
7680   dynamic_linker="$host_os ld.so"
7681   shlibpath_var=LIBRARY_PATH
7682   ;;
7683
7684 bsdi4*)
7685   version_type=linux
7686   need_version=no
7687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7688   soname_spec='${libname}${release}${shared_ext}$major'
7689   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7690   shlibpath_var=LD_LIBRARY_PATH
7691   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7692   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7693   # the default ld.so.conf also contains /usr/contrib/lib and
7694   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7695   # libtool to hard-code these into programs
7696   ;;
7697
7698 cygwin* | mingw* | pw32*)
7699   version_type=windows
7700   shrext=".dll"
7701   need_version=no
7702   need_lib_prefix=no
7703
7704   case $GCC,$host_os in
7705   yes,cygwin* | yes,mingw* | yes,pw32*)
7706     library_names_spec='$libname.dll.a'
7707     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7708     postinstall_cmds='base_file=`basename \${file}`~
7709       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7710       dldir=$destdir/`dirname \$dlpath`~
7711       test -d \$dldir || mkdir -p \$dldir~
7712       $install_prog $dir/$dlname \$dldir/$dlname'
7713     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7714       dlpath=$dir/\$dldll~
7715        $rm \$dlpath'
7716     shlibpath_overrides_runpath=yes
7717
7718     case $host_os in
7719     cygwin*)
7720       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7721       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7722       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7723       ;;
7724     mingw*)
7725       # MinGW DLLs use traditional 'lib' prefix
7726       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7727       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7728       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7729         # It is most probably a Windows format PATH printed by
7730         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7731         # path with ; separators, and with drive letters. We can handle the
7732         # drive letters (cygwin fileutils understands them), so leave them,
7733         # especially as we might pass files found there to a mingw objdump,
7734         # which wouldn't understand a cygwinified path. Ahh.
7735         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7736       else
7737         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7738       fi
7739       ;;
7740     pw32*)
7741       # pw32 DLLs use 'pw' prefix rather than 'lib'
7742       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7743       ;;
7744     esac
7745     ;;
7746
7747   *)
7748     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7749     ;;
7750   esac
7751   dynamic_linker='Win32 ld.exe'
7752   # FIXME: first we should search . and the directory the executable is in
7753   shlibpath_var=PATH
7754   ;;
7755
7756 darwin* | rhapsody*)
7757   dynamic_linker="$host_os dyld"
7758   version_type=darwin
7759   need_lib_prefix=no
7760   need_version=no
7761   # FIXME: Relying on posixy $() will cause problems for
7762   #        cross-compilation, but unfortunately the echo tests do not
7763   #        yet detect zsh echo's removal of \ escapes.
7764   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7765   soname_spec='${libname}${release}${major}$shared_ext'
7766   shlibpath_overrides_runpath=yes
7767   shlibpath_var=DYLD_LIBRARY_PATH
7768   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7769   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7770   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7771   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"`
7772   fi
7773   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7774   ;;
7775
7776 dgux*)
7777   version_type=linux
7778   need_lib_prefix=no
7779   need_version=no
7780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7781   soname_spec='${libname}${release}${shared_ext}$major'
7782   shlibpath_var=LD_LIBRARY_PATH
7783   ;;
7784
7785 freebsd1*)
7786   dynamic_linker=no
7787   ;;
7788
7789 freebsd*)
7790   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7791   version_type=freebsd-$objformat
7792   case $version_type in
7793     freebsd-elf*)
7794       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7795       need_version=no
7796       need_lib_prefix=no
7797       ;;
7798     freebsd-*)
7799       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7800       need_version=yes
7801       ;;
7802   esac
7803   shlibpath_var=LD_LIBRARY_PATH
7804   case $host_os in
7805   freebsd2*)
7806     shlibpath_overrides_runpath=yes
7807     ;;
7808   freebsd3.01* | freebsdelf3.01*)
7809     shlibpath_overrides_runpath=yes
7810     hardcode_into_libs=yes
7811     ;;
7812   *) # from 3.2 on
7813     shlibpath_overrides_runpath=no
7814     hardcode_into_libs=yes
7815     ;;
7816   esac
7817   ;;
7818
7819 gnu*)
7820   version_type=linux
7821   need_lib_prefix=no
7822   need_version=no
7823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7824   soname_spec='${libname}${release}${shared_ext}$major'
7825   shlibpath_var=LD_LIBRARY_PATH
7826   hardcode_into_libs=yes
7827   ;;
7828
7829 hpux9* | hpux10* | hpux11*)
7830   # Give a soname corresponding to the major version so that dld.sl refuses to
7831   # link against other versions.
7832   version_type=sunos
7833   need_lib_prefix=no
7834   need_version=no
7835   case "$host_cpu" in
7836   ia64*)
7837     shrext='.so'
7838     hardcode_into_libs=yes
7839     dynamic_linker="$host_os dld.so"
7840     shlibpath_var=LD_LIBRARY_PATH
7841     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7843     soname_spec='${libname}${release}${shared_ext}$major'
7844     if test "X$HPUX_IA64_MODE" = X32; then
7845       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7846     else
7847       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7848     fi
7849     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7850     ;;
7851    hppa*64*)
7852      shrext='.sl'
7853      hardcode_into_libs=yes
7854      dynamic_linker="$host_os dld.sl"
7855      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7856      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7857      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7858      soname_spec='${libname}${release}${shared_ext}$major'
7859      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7860      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7861      ;;
7862    *)
7863     shrext='.sl'
7864     dynamic_linker="$host_os dld.sl"
7865     shlibpath_var=SHLIB_PATH
7866     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7867     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7868     soname_spec='${libname}${release}${shared_ext}$major'
7869     ;;
7870   esac
7871   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7872   postinstall_cmds='chmod 555 $lib'
7873   ;;
7874
7875 irix5* | irix6* | nonstopux*)
7876   case $host_os in
7877     nonstopux*) version_type=nonstopux ;;
7878     *)
7879         if test "$lt_cv_prog_gnu_ld" = yes; then
7880                 version_type=linux
7881         else
7882                 version_type=irix
7883         fi ;;
7884   esac
7885   need_lib_prefix=no
7886   need_version=no
7887   soname_spec='${libname}${release}${shared_ext}$major'
7888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7889   case $host_os in
7890   irix5* | nonstopux*)
7891     libsuff= shlibsuff=
7892     ;;
7893   *)
7894     case $LD in # libtool.m4 will add one of these switches to LD
7895     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7896       libsuff= shlibsuff= libmagic=32-bit;;
7897     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7898       libsuff=32 shlibsuff=N32 libmagic=N32;;
7899     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7900       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7901     *) libsuff= shlibsuff= libmagic=never-match;;
7902     esac
7903     ;;
7904   esac
7905   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7906   shlibpath_overrides_runpath=no
7907   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7908   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7909   hardcode_into_libs=yes
7910   ;;
7911
7912 # No shared lib support for Linux oldld, aout, or coff.
7913 linux*oldld* | linux*aout* | linux*coff*)
7914   dynamic_linker=no
7915   ;;
7916
7917 # This must be Linux ELF.
7918 linux*)
7919   version_type=linux
7920   need_lib_prefix=no
7921   need_version=no
7922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7923   soname_spec='${libname}${release}${shared_ext}$major'
7924   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7925   shlibpath_var=LD_LIBRARY_PATH
7926   shlibpath_overrides_runpath=no
7927   # This implies no fast_install, which is unacceptable.
7928   # Some rework will be needed to allow for fast_install
7929   # before this can be enabled.
7930   hardcode_into_libs=yes
7931
7932   # We used to test for /lib/ld.so.1 and disable shared libraries on
7933   # powerpc, because MkLinux only supported shared libraries with the
7934   # GNU dynamic linker.  Since this was broken with cross compilers,
7935   # most powerpc-linux boxes support dynamic linking these days and
7936   # people can always --disable-shared, the test was removed, and we
7937   # assume the GNU/Linux dynamic linker is in use.
7938   dynamic_linker='GNU/Linux ld.so'
7939   ;;
7940
7941 netbsd*)
7942   version_type=sunos
7943   need_lib_prefix=no
7944   need_version=no
7945   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7947     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7948     dynamic_linker='NetBSD (a.out) ld.so'
7949   else
7950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7951     soname_spec='${libname}${release}${shared_ext}$major'
7952     dynamic_linker='NetBSD ld.elf_so'
7953   fi
7954   shlibpath_var=LD_LIBRARY_PATH
7955   shlibpath_overrides_runpath=yes
7956   hardcode_into_libs=yes
7957   ;;
7958
7959 newsos6)
7960   version_type=linux
7961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7962   shlibpath_var=LD_LIBRARY_PATH
7963   shlibpath_overrides_runpath=yes
7964   ;;
7965
7966 nto-qnx)
7967   version_type=linux
7968   need_lib_prefix=no
7969   need_version=no
7970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7971   soname_spec='${libname}${release}${shared_ext}$major'
7972   shlibpath_var=LD_LIBRARY_PATH
7973   shlibpath_overrides_runpath=yes
7974   ;;
7975
7976 openbsd*)
7977   version_type=sunos
7978   need_lib_prefix=no
7979   need_version=no
7980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7981   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7982   shlibpath_var=LD_LIBRARY_PATH
7983   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7984     case $host_os in
7985       openbsd2.[89] | openbsd2.[89].*)
7986         shlibpath_overrides_runpath=no
7987         ;;
7988       *)
7989         shlibpath_overrides_runpath=yes
7990         ;;
7991       esac
7992   else
7993     shlibpath_overrides_runpath=yes
7994   fi
7995   ;;
7996
7997 os2*)
7998   libname_spec='$name'
7999   shrext=".dll"
8000   need_lib_prefix=no
8001   library_names_spec='$libname${shared_ext} $libname.a'
8002   dynamic_linker='OS/2 ld.exe'
8003   shlibpath_var=LIBPATH
8004   ;;
8005
8006 osf3* | osf4* | osf5*)
8007   version_type=osf
8008   need_lib_prefix=no
8009   need_version=no
8010   soname_spec='${libname}${release}${shared_ext}$major'
8011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8012   shlibpath_var=LD_LIBRARY_PATH
8013   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8014   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8015   ;;
8016
8017 sco3.2v5*)
8018   version_type=osf
8019   soname_spec='${libname}${release}${shared_ext}$major'
8020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8021   shlibpath_var=LD_LIBRARY_PATH
8022   ;;
8023
8024 solaris*)
8025   version_type=linux
8026   need_lib_prefix=no
8027   need_version=no
8028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8029   soname_spec='${libname}${release}${shared_ext}$major'
8030   shlibpath_var=LD_LIBRARY_PATH
8031   shlibpath_overrides_runpath=yes
8032   hardcode_into_libs=yes
8033   # ldd complains unless libraries are executable
8034   postinstall_cmds='chmod +x $lib'
8035   ;;
8036
8037 sunos4*)
8038   version_type=sunos
8039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8040   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8041   shlibpath_var=LD_LIBRARY_PATH
8042   shlibpath_overrides_runpath=yes
8043   if test "$with_gnu_ld" = yes; then
8044     need_lib_prefix=no
8045   fi
8046   need_version=yes
8047   ;;
8048
8049 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8050   version_type=linux
8051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8052   soname_spec='${libname}${release}${shared_ext}$major'
8053   shlibpath_var=LD_LIBRARY_PATH
8054   case $host_vendor in
8055     sni)
8056       shlibpath_overrides_runpath=no
8057       need_lib_prefix=no
8058       export_dynamic_flag_spec='${wl}-Blargedynsym'
8059       runpath_var=LD_RUN_PATH
8060       ;;
8061     siemens)
8062       need_lib_prefix=no
8063       ;;
8064     motorola)
8065       need_lib_prefix=no
8066       need_version=no
8067       shlibpath_overrides_runpath=no
8068       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8069       ;;
8070   esac
8071   ;;
8072
8073 sysv4*MP*)
8074   if test -d /usr/nec ;then
8075     version_type=linux
8076     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8077     soname_spec='$libname${shared_ext}.$major'
8078     shlibpath_var=LD_LIBRARY_PATH
8079   fi
8080   ;;
8081
8082 uts4*)
8083   version_type=linux
8084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8085   soname_spec='${libname}${release}${shared_ext}$major'
8086   shlibpath_var=LD_LIBRARY_PATH
8087   ;;
8088
8089 *)
8090   dynamic_linker=no
8091   ;;
8092 esac
8093 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8094 echo "${ECHO_T}$dynamic_linker" >&6
8095 test "$dynamic_linker" = no && can_build_shared=no
8096
8097 if test "x$enable_dlopen" != xyes; then
8098   enable_dlopen=unknown
8099   enable_dlopen_self=unknown
8100   enable_dlopen_self_static=unknown
8101 else
8102   lt_cv_dlopen=no
8103   lt_cv_dlopen_libs=
8104
8105   case $host_os in
8106   beos*)
8107     lt_cv_dlopen="load_add_on"
8108     lt_cv_dlopen_libs=
8109     lt_cv_dlopen_self=yes
8110     ;;
8111
8112   mingw* | pw32*)
8113     lt_cv_dlopen="LoadLibrary"
8114     lt_cv_dlopen_libs=
8115    ;;
8116
8117   cygwin*)
8118     lt_cv_dlopen="dlopen"
8119     lt_cv_dlopen_libs=
8120    ;;
8121
8122   darwin*)
8123   # if libdl is installed we need to link against it
8124     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8125 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8126 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8127   echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129   ac_check_lib_save_LIBS=$LIBS
8130 LIBS="-ldl  $LIBS"
8131 cat >conftest.$ac_ext <<_ACEOF
8132 #line $LINENO "configure"
8133 /* confdefs.h.  */
8134 _ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h.  */
8138
8139 /* Override any gcc2 internal prototype to avoid an error.  */
8140 #ifdef __cplusplus
8141 extern "C"
8142 #endif
8143 /* We use char because int might match the return type of a gcc2
8144    builtin and then its argument prototype would still apply.  */
8145 char dlopen ();
8146 int
8147 main ()
8148 {
8149 dlopen ();
8150   ;
8151   return 0;
8152 }
8153 _ACEOF
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8156   (eval $ac_link) 2>&5
8157   ac_status=$?
8158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159   (exit $ac_status); } &&
8160          { ac_try='test -s conftest$ac_exeext'
8161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162   (eval $ac_try) 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); }; }; then
8166   ac_cv_lib_dl_dlopen=yes
8167 else
8168   echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8170
8171 ac_cv_lib_dl_dlopen=no
8172 fi
8173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8174 LIBS=$ac_check_lib_save_LIBS
8175 fi
8176 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8177 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8178 if test $ac_cv_lib_dl_dlopen = yes; then
8179   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8180 else
8181
8182     lt_cv_dlopen="dyld"
8183     lt_cv_dlopen_libs=
8184     lt_cv_dlopen_self=yes
8185
8186 fi
8187
8188    ;;
8189
8190   *)
8191     echo "$as_me:$LINENO: checking for shl_load" >&5
8192 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8193 if test "${ac_cv_func_shl_load+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196   cat >conftest.$ac_ext <<_ACEOF
8197 #line $LINENO "configure"
8198 /* confdefs.h.  */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h.  */
8203 /* System header to define __stub macros and hopefully few prototypes,
8204     which can conflict with char shl_load (); below.
8205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8206     <limits.h> exists even on freestanding compilers.  */
8207 #ifdef __STDC__
8208 # include <limits.h>
8209 #else
8210 # include <assert.h>
8211 #endif
8212 /* Override any gcc2 internal prototype to avoid an error.  */
8213 #ifdef __cplusplus
8214 extern "C"
8215 {
8216 #endif
8217 /* We use char because int might match the return type of a gcc2
8218    builtin and then its argument prototype would still apply.  */
8219 char shl_load ();
8220 /* The GNU C library defines this for functions which it implements
8221     to always fail with ENOSYS.  Some functions are actually named
8222     something starting with __ and the normal name is an alias.  */
8223 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8224 choke me
8225 #else
8226 char (*f) () = shl_load;
8227 #endif
8228 #ifdef __cplusplus
8229 }
8230 #endif
8231
8232 int
8233 main ()
8234 {
8235 return f != shl_load;
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242   (eval $ac_link) 2>&5
8243   ac_status=$?
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); } &&
8246          { ac_try='test -s conftest$ac_exeext'
8247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248   (eval $ac_try) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); }; }; then
8252   ac_cv_func_shl_load=yes
8253 else
8254   echo "$as_me: failed program was:" >&5
8255 sed 's/^/| /' conftest.$ac_ext >&5
8256
8257 ac_cv_func_shl_load=no
8258 fi
8259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8260 fi
8261 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8262 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8263 if test $ac_cv_func_shl_load = yes; then
8264   lt_cv_dlopen="shl_load"
8265 else
8266   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8267 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8268 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8269   echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271   ac_check_lib_save_LIBS=$LIBS
8272 LIBS="-ldld  $LIBS"
8273 cat >conftest.$ac_ext <<_ACEOF
8274 #line $LINENO "configure"
8275 /* confdefs.h.  */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h.  */
8280
8281 /* Override any gcc2 internal prototype to avoid an error.  */
8282 #ifdef __cplusplus
8283 extern "C"
8284 #endif
8285 /* We use char because int might match the return type of a gcc2
8286    builtin and then its argument prototype would still apply.  */
8287 char shl_load ();
8288 int
8289 main ()
8290 {
8291 shl_load ();
8292   ;
8293   return 0;
8294 }
8295 _ACEOF
8296 rm -f conftest.$ac_objext conftest$ac_exeext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8298   (eval $ac_link) 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); } &&
8302          { ac_try='test -s conftest$ac_exeext'
8303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304   (eval $ac_try) 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); }; }; then
8308   ac_cv_lib_dld_shl_load=yes
8309 else
8310   echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8312
8313 ac_cv_lib_dld_shl_load=no
8314 fi
8315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8316 LIBS=$ac_check_lib_save_LIBS
8317 fi
8318 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8319 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8320 if test $ac_cv_lib_dld_shl_load = yes; then
8321   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8322 else
8323   echo "$as_me:$LINENO: checking for dlopen" >&5
8324 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8325 if test "${ac_cv_func_dlopen+set}" = set; then
8326   echo $ECHO_N "(cached) $ECHO_C" >&6
8327 else
8328   cat >conftest.$ac_ext <<_ACEOF
8329 #line $LINENO "configure"
8330 /* confdefs.h.  */
8331 _ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h.  */
8335 /* System header to define __stub macros and hopefully few prototypes,
8336     which can conflict with char dlopen (); below.
8337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8338     <limits.h> exists even on freestanding compilers.  */
8339 #ifdef __STDC__
8340 # include <limits.h>
8341 #else
8342 # include <assert.h>
8343 #endif
8344 /* Override any gcc2 internal prototype to avoid an error.  */
8345 #ifdef __cplusplus
8346 extern "C"
8347 {
8348 #endif
8349 /* We use char because int might match the return type of a gcc2
8350    builtin and then its argument prototype would still apply.  */
8351 char dlopen ();
8352 /* The GNU C library defines this for functions which it implements
8353     to always fail with ENOSYS.  Some functions are actually named
8354     something starting with __ and the normal name is an alias.  */
8355 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8356 choke me
8357 #else
8358 char (*f) () = dlopen;
8359 #endif
8360 #ifdef __cplusplus
8361 }
8362 #endif
8363
8364 int
8365 main ()
8366 {
8367 return f != dlopen;
8368   ;
8369   return 0;
8370 }
8371 _ACEOF
8372 rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8374   (eval $ac_link) 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); } &&
8378          { ac_try='test -s conftest$ac_exeext'
8379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380   (eval $ac_try) 2>&5
8381   ac_status=$?
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); }; }; then
8384   ac_cv_func_dlopen=yes
8385 else
8386   echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8388
8389 ac_cv_func_dlopen=no
8390 fi
8391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8392 fi
8393 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8394 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8395 if test $ac_cv_func_dlopen = yes; then
8396   lt_cv_dlopen="dlopen"
8397 else
8398   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8399 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8400 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8401   echo $ECHO_N "(cached) $ECHO_C" >&6
8402 else
8403   ac_check_lib_save_LIBS=$LIBS
8404 LIBS="-ldl  $LIBS"
8405 cat >conftest.$ac_ext <<_ACEOF
8406 #line $LINENO "configure"
8407 /* confdefs.h.  */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h.  */
8412
8413 /* Override any gcc2 internal prototype to avoid an error.  */
8414 #ifdef __cplusplus
8415 extern "C"
8416 #endif
8417 /* We use char because int might match the return type of a gcc2
8418    builtin and then its argument prototype would still apply.  */
8419 char dlopen ();
8420 int
8421 main ()
8422 {
8423 dlopen ();
8424   ;
8425   return 0;
8426 }
8427 _ACEOF
8428 rm -f conftest.$ac_objext conftest$ac_exeext
8429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8430   (eval $ac_link) 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); } &&
8434          { ac_try='test -s conftest$ac_exeext'
8435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436   (eval $ac_try) 2>&5
8437   ac_status=$?
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); }; }; then
8440   ac_cv_lib_dl_dlopen=yes
8441 else
8442   echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.$ac_ext >&5
8444
8445 ac_cv_lib_dl_dlopen=no
8446 fi
8447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8448 LIBS=$ac_check_lib_save_LIBS
8449 fi
8450 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8451 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8452 if test $ac_cv_lib_dl_dlopen = yes; then
8453   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8454 else
8455   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8456 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8457 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8458   echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460   ac_check_lib_save_LIBS=$LIBS
8461 LIBS="-lsvld  $LIBS"
8462 cat >conftest.$ac_ext <<_ACEOF
8463 #line $LINENO "configure"
8464 /* confdefs.h.  */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h.  */
8469
8470 /* Override any gcc2 internal prototype to avoid an error.  */
8471 #ifdef __cplusplus
8472 extern "C"
8473 #endif
8474 /* We use char because int might match the return type of a gcc2
8475    builtin and then its argument prototype would still apply.  */
8476 char dlopen ();
8477 int
8478 main ()
8479 {
8480 dlopen ();
8481   ;
8482   return 0;
8483 }
8484 _ACEOF
8485 rm -f conftest.$ac_objext conftest$ac_exeext
8486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487   (eval $ac_link) 2>&5
8488   ac_status=$?
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -s conftest$ac_exeext'
8492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493   (eval $ac_try) 2>&5
8494   ac_status=$?
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); }; }; then
8497   ac_cv_lib_svld_dlopen=yes
8498 else
8499   echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8501
8502 ac_cv_lib_svld_dlopen=no
8503 fi
8504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8505 LIBS=$ac_check_lib_save_LIBS
8506 fi
8507 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8508 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8509 if test $ac_cv_lib_svld_dlopen = yes; then
8510   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8511 else
8512   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8513 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8514 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8515   echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517   ac_check_lib_save_LIBS=$LIBS
8518 LIBS="-ldld  $LIBS"
8519 cat >conftest.$ac_ext <<_ACEOF
8520 #line $LINENO "configure"
8521 /* confdefs.h.  */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h.  */
8526
8527 /* Override any gcc2 internal prototype to avoid an error.  */
8528 #ifdef __cplusplus
8529 extern "C"
8530 #endif
8531 /* We use char because int might match the return type of a gcc2
8532    builtin and then its argument prototype would still apply.  */
8533 char dld_link ();
8534 int
8535 main ()
8536 {
8537 dld_link ();
8538   ;
8539   return 0;
8540 }
8541 _ACEOF
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8544   (eval $ac_link) 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); } &&
8548          { ac_try='test -s conftest$ac_exeext'
8549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550   (eval $ac_try) 2>&5
8551   ac_status=$?
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); }; }; then
8554   ac_cv_lib_dld_dld_link=yes
8555 else
8556   echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8558
8559 ac_cv_lib_dld_dld_link=no
8560 fi
8561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8562 LIBS=$ac_check_lib_save_LIBS
8563 fi
8564 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8565 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8566 if test $ac_cv_lib_dld_dld_link = yes; then
8567   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8568 fi
8569
8570
8571 fi
8572
8573
8574 fi
8575
8576
8577 fi
8578
8579
8580 fi
8581
8582
8583 fi
8584
8585     ;;
8586   esac
8587
8588   if test "x$lt_cv_dlopen" != xno; then
8589     enable_dlopen=yes
8590   else
8591     enable_dlopen=no
8592   fi
8593
8594   case $lt_cv_dlopen in
8595   dlopen)
8596     save_CPPFLAGS="$CPPFLAGS"
8597     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8598
8599     save_LDFLAGS="$LDFLAGS"
8600     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8601
8602     save_LIBS="$LIBS"
8603     LIBS="$lt_cv_dlopen_libs $LIBS"
8604
8605     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8606 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8607 if test "${lt_cv_dlopen_self+set}" = set; then
8608   echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610           if test "$cross_compiling" = yes; then :
8611   lt_cv_dlopen_self=cross
8612 else
8613   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8614   lt_status=$lt_dlunknown
8615   cat > conftest.$ac_ext <<EOF
8616 #line 8616 "configure"
8617 #include "confdefs.h"
8618
8619 #if HAVE_DLFCN_H
8620 #include <dlfcn.h>
8621 #endif
8622
8623 #include <stdio.h>
8624
8625 #ifdef RTLD_GLOBAL
8626 #  define LT_DLGLOBAL           RTLD_GLOBAL
8627 #else
8628 #  ifdef DL_GLOBAL
8629 #    define LT_DLGLOBAL         DL_GLOBAL
8630 #  else
8631 #    define LT_DLGLOBAL         0
8632 #  endif
8633 #endif
8634
8635 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8636    find out it does not work in some platform. */
8637 #ifndef LT_DLLAZY_OR_NOW
8638 #  ifdef RTLD_LAZY
8639 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8640 #  else
8641 #    ifdef DL_LAZY
8642 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8643 #    else
8644 #      ifdef RTLD_NOW
8645 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8646 #      else
8647 #        ifdef DL_NOW
8648 #          define LT_DLLAZY_OR_NOW      DL_NOW
8649 #        else
8650 #          define LT_DLLAZY_OR_NOW      0
8651 #        endif
8652 #      endif
8653 #    endif
8654 #  endif
8655 #endif
8656
8657 #ifdef __cplusplus
8658 extern "C" void exit (int);
8659 #endif
8660
8661 void fnord() { int i=42;}
8662 int main ()
8663 {
8664   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8665   int status = $lt_dlunknown;
8666
8667   if (self)
8668     {
8669       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8670       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8671       /* dlclose (self); */
8672     }
8673
8674     exit (status);
8675 }
8676 EOF
8677   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678   (eval $ac_link) 2>&5
8679   ac_status=$?
8680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8682     (./conftest; exit; ) 2>/dev/null
8683     lt_status=$?
8684     case x$lt_status in
8685       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8686       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8687       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8688     esac
8689   else :
8690     # compilation failed
8691     lt_cv_dlopen_self=no
8692   fi
8693 fi
8694 rm -fr conftest*
8695
8696
8697 fi
8698 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8699 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8700
8701     if test "x$lt_cv_dlopen_self" = xyes; then
8702       LDFLAGS="$LDFLAGS $link_static_flag"
8703       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8704 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8705 if test "${lt_cv_dlopen_self_static+set}" = set; then
8706   echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708           if test "$cross_compiling" = yes; then :
8709   lt_cv_dlopen_self_static=cross
8710 else
8711   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8712   lt_status=$lt_dlunknown
8713   cat > conftest.$ac_ext <<EOF
8714 #line 8714 "configure"
8715 #include "confdefs.h"
8716
8717 #if HAVE_DLFCN_H
8718 #include <dlfcn.h>
8719 #endif
8720
8721 #include <stdio.h>
8722
8723 #ifdef RTLD_GLOBAL
8724 #  define LT_DLGLOBAL           RTLD_GLOBAL
8725 #else
8726 #  ifdef DL_GLOBAL
8727 #    define LT_DLGLOBAL         DL_GLOBAL
8728 #  else
8729 #    define LT_DLGLOBAL         0
8730 #  endif
8731 #endif
8732
8733 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8734    find out it does not work in some platform. */
8735 #ifndef LT_DLLAZY_OR_NOW
8736 #  ifdef RTLD_LAZY
8737 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8738 #  else
8739 #    ifdef DL_LAZY
8740 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8741 #    else
8742 #      ifdef RTLD_NOW
8743 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8744 #      else
8745 #        ifdef DL_NOW
8746 #          define LT_DLLAZY_OR_NOW      DL_NOW
8747 #        else
8748 #          define LT_DLLAZY_OR_NOW      0
8749 #        endif
8750 #      endif
8751 #    endif
8752 #  endif
8753 #endif
8754
8755 #ifdef __cplusplus
8756 extern "C" void exit (int);
8757 #endif
8758
8759 void fnord() { int i=42;}
8760 int main ()
8761 {
8762   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8763   int status = $lt_dlunknown;
8764
8765   if (self)
8766     {
8767       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8768       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8769       /* dlclose (self); */
8770     }
8771
8772     exit (status);
8773 }
8774 EOF
8775   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776   (eval $ac_link) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8780     (./conftest; exit; ) 2>/dev/null
8781     lt_status=$?
8782     case x$lt_status in
8783       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8784       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8785       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8786     esac
8787   else :
8788     # compilation failed
8789     lt_cv_dlopen_self_static=no
8790   fi
8791 fi
8792 rm -fr conftest*
8793
8794
8795 fi
8796 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8797 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8798     fi
8799
8800     CPPFLAGS="$save_CPPFLAGS"
8801     LDFLAGS="$save_LDFLAGS"
8802     LIBS="$save_LIBS"
8803     ;;
8804   esac
8805
8806   case $lt_cv_dlopen_self in
8807   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8808   *) enable_dlopen_self=unknown ;;
8809   esac
8810
8811   case $lt_cv_dlopen_self_static in
8812   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8813   *) enable_dlopen_self_static=unknown ;;
8814   esac
8815 fi
8816
8817
8818 # Report which librarie types wil actually be built
8819 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8820 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8821 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8822 echo "${ECHO_T}$can_build_shared" >&6
8823
8824 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8825 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8826 test "$can_build_shared" = "no" && enable_shared=no
8827
8828 # On AIX, shared libraries and static libraries use the same namespace, and
8829 # are all built from PIC.
8830 case "$host_os" in
8831 aix3*)
8832   test "$enable_shared" = yes && enable_static=no
8833   if test -n "$RANLIB"; then
8834     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8835     postinstall_cmds='$RANLIB $lib'
8836   fi
8837   ;;
8838
8839 aix4*)
8840   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8841     test "$enable_shared" = yes && enable_static=no
8842   fi
8843   ;;
8844   darwin* | rhapsody*)
8845   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8846     archive_cmds_need_lc=no
8847     case "$host_os" in
8848     rhapsody* | darwin1.[012])
8849       allow_undefined_flag='-undefined suppress'
8850       ;;
8851     *) # Darwin 1.3 on
8852       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8853       ;;
8854     esac
8855     # FIXME: Relying on posixy $() will cause problems for
8856     #        cross-compilation, but unfortunately the echo tests do not
8857     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8858     #          `"' quotes if we put them in here... so don't!
8859                 output_verbose_link_cmd='echo'
8860     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8861     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8862     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8863                   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}'
8864                   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}'
8865     hardcode_direct=no
8866     hardcode_automatic=yes
8867     hardcode_shlibpath_var=unsupported
8868     whole_archive_flag_spec='-all_load $convenience'
8869     link_all_deplibs=yes
8870     fi
8871     ;;
8872 esac
8873 echo "$as_me:$LINENO: result: $enable_shared" >&5
8874 echo "${ECHO_T}$enable_shared" >&6
8875
8876 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8877 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8878 # Make sure either enable_shared or enable_static is yes.
8879 test "$enable_shared" = yes || enable_static=yes
8880 echo "$as_me:$LINENO: result: $enable_static" >&5
8881 echo "${ECHO_T}$enable_static" >&6
8882
8883 # The else clause should only fire when bootstrapping the
8884 # libtool distribution, otherwise you forgot to ship ltmain.sh
8885 # with your package, and you will get complaints that there are
8886 # no rules to generate ltmain.sh.
8887 if test -f "$ltmain"; then
8888   # See if we are running on zsh, and set the options which allow our commands through
8889   # without removal of \ escapes.
8890   if test -n "${ZSH_VERSION+set}" ; then
8891     setopt NO_GLOB_SUBST
8892   fi
8893   # Now quote all the things that may contain metacharacters while being
8894   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8895   # variables and quote the copies for generation of the libtool script.
8896   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8897     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8898     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8899     deplibs_check_method reload_flag reload_cmds need_locks \
8900     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8901     lt_cv_sys_global_symbol_to_c_name_address \
8902     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8903     old_postinstall_cmds old_postuninstall_cmds \
8904     compiler \
8905     CC \
8906     LD \
8907     lt_prog_compiler_wl \
8908     lt_prog_compiler_pic \
8909     lt_prog_compiler_static \
8910     lt_prog_compiler_no_builtin_flag \
8911     export_dynamic_flag_spec \
8912     thread_safe_flag_spec \
8913     whole_archive_flag_spec \
8914     enable_shared_with_static_runtimes \
8915     old_archive_cmds \
8916     old_archive_from_new_cmds \
8917     predep_objects \
8918     postdep_objects \
8919     predeps \
8920     postdeps \
8921     compiler_lib_search_path \
8922     archive_cmds \
8923     archive_expsym_cmds \
8924     postinstall_cmds \
8925     postuninstall_cmds \
8926     old_archive_from_expsyms_cmds \
8927     allow_undefined_flag \
8928     no_undefined_flag \
8929     export_symbols_cmds \
8930     hardcode_libdir_flag_spec \
8931     hardcode_libdir_flag_spec_ld \
8932     hardcode_libdir_separator \
8933     hardcode_automatic \
8934     module_cmds \
8935     module_expsym_cmds \
8936     lt_cv_prog_compiler_c_o \
8937     exclude_expsyms \
8938     include_expsyms; do
8939
8940     case $var in
8941     old_archive_cmds | \
8942     old_archive_from_new_cmds | \
8943     archive_cmds | \
8944     archive_expsym_cmds | \
8945     module_cmds | \
8946     module_expsym_cmds | \
8947     old_archive_from_expsyms_cmds | \
8948     export_symbols_cmds | \
8949     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8950     postinstall_cmds | postuninstall_cmds | \
8951     old_postinstall_cmds | old_postuninstall_cmds | \
8952     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8953       # Double-quote double-evaled strings.
8954       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8955       ;;
8956     *)
8957       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8958       ;;
8959     esac
8960   done
8961
8962   case $lt_echo in
8963   *'\$0 --fallback-echo"')
8964     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8965     ;;
8966   esac
8967
8968 cfgfile="${ofile}T"
8969   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8970   $rm -f "$cfgfile"
8971   { echo "$as_me:$LINENO: creating $ofile" >&5
8972 echo "$as_me: creating $ofile" >&6;}
8973
8974   cat <<__EOF__ >> "$cfgfile"
8975 #! $SHELL
8976
8977 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8978 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8979 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8980 #
8981 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8982 # Free Software Foundation, Inc.
8983 #
8984 # This file is part of GNU Libtool:
8985 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8986 #
8987 # This program is free software; you can redistribute it and/or modify
8988 # it under the terms of the GNU General Public License as published by
8989 # the Free Software Foundation; either version 2 of the License, or
8990 # (at your option) any later version.
8991 #
8992 # This program is distributed in the hope that it will be useful, but
8993 # WITHOUT ANY WARRANTY; without even the implied warranty of
8994 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8995 # General Public License for more details.
8996 #
8997 # You should have received a copy of the GNU General Public License
8998 # along with this program; if not, write to the Free Software
8999 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9000 #
9001 # As a special exception to the GNU General Public License, if you
9002 # distribute this file as part of a program that contains a
9003 # configuration script generated by Autoconf, you may include it under
9004 # the same distribution terms that you use for the rest of that program.
9005
9006 # A sed program that does not truncate output.
9007 SED=$lt_SED
9008
9009 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9010 Xsed="$SED -e s/^X//"
9011
9012 # The HP-UX ksh and POSIX shell print the target directory to stdout
9013 # if CDPATH is set.
9014 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9015
9016 # The names of the tagged configurations supported by this script.
9017 available_tags=
9018
9019 # ### BEGIN LIBTOOL CONFIG
9020
9021 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9022
9023 # Shell to use when invoking shell scripts.
9024 SHELL=$lt_SHELL
9025
9026 # Whether or not to build shared libraries.
9027 build_libtool_libs=$enable_shared
9028
9029 # Whether or not to build static libraries.
9030 build_old_libs=$enable_static
9031
9032 # Whether or not to add -lc for building shared libraries.
9033 build_libtool_need_lc=$archive_cmds_need_lc
9034
9035 # Whether or not to disallow shared libs when runtime libs are static
9036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9037
9038 # Whether or not to optimize for fast installation.
9039 fast_install=$enable_fast_install
9040
9041 # The host system.
9042 host_alias=$host_alias
9043 host=$host
9044
9045 # An echo program that does not interpret backslashes.
9046 echo=$lt_echo
9047
9048 # The archiver.
9049 AR=$lt_AR
9050 AR_FLAGS=$lt_AR_FLAGS
9051
9052 # A C compiler.
9053 LTCC=$lt_LTCC
9054
9055 # A language-specific compiler.
9056 CC=$lt_compiler
9057
9058 # Is the compiler the GNU C compiler?
9059 with_gcc=$GCC
9060
9061 # An ERE matcher.
9062 EGREP=$lt_EGREP
9063
9064 # The linker used to build libraries.
9065 LD=$lt_LD
9066
9067 # Whether we need hard or soft links.
9068 LN_S=$lt_LN_S
9069
9070 # A BSD-compatible nm program.
9071 NM=$lt_NM
9072
9073 # A symbol stripping program
9074 STRIP=$STRIP
9075
9076 # Used to examine libraries when file_magic_cmd begins "file"
9077 MAGIC_CMD=$MAGIC_CMD
9078
9079 # Used on cygwin: DLL creation program.
9080 DLLTOOL="$DLLTOOL"
9081
9082 # Used on cygwin: object dumper.
9083 OBJDUMP="$OBJDUMP"
9084
9085 # Used on cygwin: assembler.
9086 AS="$AS"
9087
9088 # The name of the directory that contains temporary libtool files.
9089 objdir=$objdir
9090
9091 # How to create reloadable object files.
9092 reload_flag=$lt_reload_flag
9093 reload_cmds=$lt_reload_cmds
9094
9095 # How to pass a linker flag through the compiler.
9096 wl=$lt_lt_prog_compiler_wl
9097
9098 # Object file suffix (normally "o").
9099 objext="$ac_objext"
9100
9101 # Old archive suffix (normally "a").
9102 libext="$libext"
9103
9104 # Shared library suffix (normally ".so").
9105 shrext='$shrext'
9106
9107 # Executable file suffix (normally "").
9108 exeext="$exeext"
9109
9110 # Additional compiler flags for building library objects.
9111 pic_flag=$lt_lt_prog_compiler_pic
9112 pic_mode=$pic_mode
9113
9114 # What is the maximum length of a command?
9115 max_cmd_len=$lt_cv_sys_max_cmd_len
9116
9117 # Does compiler simultaneously support -c and -o options?
9118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9119
9120 # Must we lock files when doing compilation ?
9121 need_locks=$lt_need_locks
9122
9123 # Do we need the lib prefix for modules?
9124 need_lib_prefix=$need_lib_prefix
9125
9126 # Do we need a version for libraries?
9127 need_version=$need_version
9128
9129 # Whether dlopen is supported.
9130 dlopen_support=$enable_dlopen
9131
9132 # Whether dlopen of programs is supported.
9133 dlopen_self=$enable_dlopen_self
9134
9135 # Whether dlopen of statically linked programs is supported.
9136 dlopen_self_static=$enable_dlopen_self_static
9137
9138 # Compiler flag to prevent dynamic linking.
9139 link_static_flag=$lt_lt_prog_compiler_static
9140
9141 # Compiler flag to turn off builtin functions.
9142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9143
9144 # Compiler flag to allow reflexive dlopens.
9145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9146
9147 # Compiler flag to generate shared objects directly from archives.
9148 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9149
9150 # Compiler flag to generate thread-safe objects.
9151 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9152
9153 # Library versioning type.
9154 version_type=$version_type
9155
9156 # Format of library name prefix.
9157 libname_spec=$lt_libname_spec
9158
9159 # List of archive names.  First name is the real one, the rest are links.
9160 # The last name is the one that the linker finds with -lNAME.
9161 library_names_spec=$lt_library_names_spec
9162
9163 # The coded name of the library, if different from the real name.
9164 soname_spec=$lt_soname_spec
9165
9166 # Commands used to build and install an old-style archive.
9167 RANLIB=$lt_RANLIB
9168 old_archive_cmds=$lt_old_archive_cmds
9169 old_postinstall_cmds=$lt_old_postinstall_cmds
9170 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9171
9172 # Create an old-style archive from a shared archive.
9173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9174
9175 # Create a temporary old-style archive to link instead of a shared archive.
9176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9177
9178 # Commands used to build and install a shared archive.
9179 archive_cmds=$lt_archive_cmds
9180 archive_expsym_cmds=$lt_archive_expsym_cmds
9181 postinstall_cmds=$lt_postinstall_cmds
9182 postuninstall_cmds=$lt_postuninstall_cmds
9183
9184 # Commands used to build a loadable module (assumed same as above if empty)
9185 module_cmds=$lt_module_cmds
9186 module_expsym_cmds=$lt_module_expsym_cmds
9187
9188 # Commands to strip libraries.
9189 old_striplib=$lt_old_striplib
9190 striplib=$lt_striplib
9191
9192 # Dependencies to place before the objects being linked to create a
9193 # shared library.
9194 predep_objects=$lt_predep_objects
9195
9196 # Dependencies to place after the objects being linked to create a
9197 # shared library.
9198 postdep_objects=$lt_postdep_objects
9199
9200 # Dependencies to place before the objects being linked to create a
9201 # shared library.
9202 predeps=$lt_predeps
9203
9204 # Dependencies to place after the objects being linked to create a
9205 # shared library.
9206 postdeps=$lt_postdeps
9207
9208 # The library search path used internally by the compiler when linking
9209 # a shared library.
9210 compiler_lib_search_path=$lt_compiler_lib_search_path
9211
9212 # Method to check whether dependent libraries are shared objects.
9213 deplibs_check_method=$lt_deplibs_check_method
9214
9215 # Command to use when deplibs_check_method == file_magic.
9216 file_magic_cmd=$lt_file_magic_cmd
9217
9218 # Flag that allows shared libraries with undefined symbols to be built.
9219 allow_undefined_flag=$lt_allow_undefined_flag
9220
9221 # Flag that forces no undefined symbols.
9222 no_undefined_flag=$lt_no_undefined_flag
9223
9224 # Commands used to finish a libtool library installation in a directory.
9225 finish_cmds=$lt_finish_cmds
9226
9227 # Same as above, but a single script fragment to be evaled but not shown.
9228 finish_eval=$lt_finish_eval
9229
9230 # Take the output of nm and produce a listing of raw symbols and C names.
9231 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9232
9233 # Transform the output of nm in a proper C declaration
9234 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9235
9236 # Transform the output of nm in a C name address pair
9237 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9238
9239 # This is the shared library runtime path variable.
9240 runpath_var=$runpath_var
9241
9242 # This is the shared library path variable.
9243 shlibpath_var=$shlibpath_var
9244
9245 # Is shlibpath searched before the hard-coded library search path?
9246 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9247
9248 # How to hardcode a shared library path into an executable.
9249 hardcode_action=$hardcode_action
9250
9251 # Whether we should hardcode library paths into libraries.
9252 hardcode_into_libs=$hardcode_into_libs
9253
9254 # Flag to hardcode \$libdir into a binary during linking.
9255 # This must work even if \$libdir does not exist.
9256 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9257
9258 # If ld is used when linking, flag to hardcode \$libdir into
9259 # a binary during linking. This must work even if \$libdir does
9260 # not exist.
9261 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9262
9263 # Whether we need a single -rpath flag with a separated argument.
9264 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9265
9266 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9267 # resulting binary.
9268 hardcode_direct=$hardcode_direct
9269
9270 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9271 # resulting binary.
9272 hardcode_minus_L=$hardcode_minus_L
9273
9274 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9275 # the resulting binary.
9276 hardcode_shlibpath_var=$hardcode_shlibpath_var
9277
9278 # Set to yes if building a shared library automatically hardcodes DIR into the library
9279 # and all subsequent libraries and executables linked against it.
9280 hardcode_automatic=$hardcode_automatic
9281
9282 # Variables whose values should be saved in libtool wrapper scripts and
9283 # restored at relink time.
9284 variables_saved_for_relink="$variables_saved_for_relink"
9285
9286 # Whether libtool must link a program against all its dependency libraries.
9287 link_all_deplibs=$link_all_deplibs
9288
9289 # Compile-time system search path for libraries
9290 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9291
9292 # Run-time system search path for libraries
9293 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9294
9295 # Fix the shell variable \$srcfile for the compiler.
9296 fix_srcfile_path="$fix_srcfile_path"
9297
9298 # Set to yes if exported symbols are required.
9299 always_export_symbols=$always_export_symbols
9300
9301 # The commands to list exported symbols.
9302 export_symbols_cmds=$lt_export_symbols_cmds
9303
9304 # The commands to extract the exported symbol list from a shared archive.
9305 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9306
9307 # Symbols that should not be listed in the preloaded symbols.
9308 exclude_expsyms=$lt_exclude_expsyms
9309
9310 # Symbols that must always be exported.
9311 include_expsyms=$lt_include_expsyms
9312
9313 # ### END LIBTOOL CONFIG
9314
9315 __EOF__
9316
9317
9318   case $host_os in
9319   aix3*)
9320     cat <<\EOF >> "$cfgfile"
9321
9322 # AIX sometimes has problems with the GCC collect2 program.  For some
9323 # reason, if we set the COLLECT_NAMES environment variable, the problems
9324 # vanish in a puff of smoke.
9325 if test "X${COLLECT_NAMES+set}" != Xset; then
9326   COLLECT_NAMES=
9327   export COLLECT_NAMES
9328 fi
9329 EOF
9330     ;;
9331   esac
9332
9333   # We use sed instead of cat because bash on DJGPP gets confused if
9334   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9335   # text mode, it properly converts lines to CR/LF.  This bash problem
9336   # is reportedly fixed, but why not run on old versions too?
9337   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9338
9339   mv -f "$cfgfile" "$ofile" || \
9340     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9341   chmod +x "$ofile"
9342
9343 else
9344   # If there is no Makefile yet, we rely on a make rule to execute
9345   # `config.status --recheck' to rerun these tests and create the
9346   # libtool script then.
9347   test -f Makefile && make "$ltmain"
9348 fi
9349
9350
9351 ac_ext=c
9352 ac_cpp='$CPP $CPPFLAGS'
9353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9356
9357 CC="$lt_save_CC"
9358
9359
9360 # Check whether --with-tags or --without-tags was given.
9361 if test "${with_tags+set}" = set; then
9362   withval="$with_tags"
9363   tagnames="$withval"
9364 fi;
9365
9366 if test -f "$ltmain" && test -n "$tagnames"; then
9367   if test ! -f "${ofile}"; then
9368     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9369 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9370   fi
9371
9372   if test -z "$LTCC"; then
9373     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9374     if test -z "$LTCC"; then
9375       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9376 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9377     else
9378       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9379 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9380     fi
9381   fi
9382
9383   # Extract list of available tagged configurations in $ofile.
9384   # Note that this assumes the entire list is on one line.
9385   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9386
9387   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9388   for tagname in $tagnames; do
9389     IFS="$lt_save_ifs"
9390     # Check whether tagname contains only valid characters
9391     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9392     "") ;;
9393     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9394 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9395    { (exit 1); exit 1; }; }
9396         ;;
9397     esac
9398
9399     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9400     then
9401       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9402 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9403    { (exit 1); exit 1; }; }
9404     fi
9405
9406     # Update the list of available tags.
9407     if test -n "$tagname"; then
9408       echo appending configuration tag \"$tagname\" to $ofile
9409
9410       case $tagname in
9411       CXX)
9412         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9413           ac_ext=cc
9414 ac_cpp='$CXXCPP $CPPFLAGS'
9415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9418
9419
9420
9421
9422 archive_cmds_need_lc_CXX=no
9423 allow_undefined_flag_CXX=
9424 always_export_symbols_CXX=no
9425 archive_expsym_cmds_CXX=
9426 export_dynamic_flag_spec_CXX=
9427 hardcode_direct_CXX=no
9428 hardcode_libdir_flag_spec_CXX=
9429 hardcode_libdir_flag_spec_ld_CXX=
9430 hardcode_libdir_separator_CXX=
9431 hardcode_minus_L_CXX=no
9432 hardcode_automatic_CXX=no
9433 module_cmds_CXX=
9434 module_expsym_cmds_CXX=
9435 link_all_deplibs_CXX=unknown
9436 old_archive_cmds_CXX=$old_archive_cmds
9437 no_undefined_flag_CXX=
9438 whole_archive_flag_spec_CXX=
9439 enable_shared_with_static_runtimes_CXX=no
9440
9441 # Dependencies to place before and after the object being linked:
9442 predep_objects_CXX=
9443 postdep_objects_CXX=
9444 predeps_CXX=
9445 postdeps_CXX=
9446 compiler_lib_search_path_CXX=
9447
9448 # Source file extension for C++ test sources.
9449 ac_ext=cc
9450
9451 # Object file extension for compiled C++ test sources.
9452 objext=o
9453 objext_CXX=$objext
9454
9455 # Code to be used in simple compile tests
9456 lt_simple_compile_test_code="int some_variable = 0;\n"
9457
9458 # Code to be used in simple link tests
9459 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9460
9461 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9462
9463 # If no C compiler was specified, use CC.
9464 LTCC=${LTCC-"$CC"}
9465
9466 # Allow CC to be a program name with arguments.
9467 compiler=$CC
9468
9469
9470 # Allow CC to be a program name with arguments.
9471 lt_save_CC=$CC
9472 lt_save_LD=$LD
9473 lt_save_GCC=$GCC
9474 GCC=$GXX
9475 lt_save_with_gnu_ld=$with_gnu_ld
9476 lt_save_path_LD=$lt_cv_path_LD
9477 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9478   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9479 else
9480   unset lt_cv_prog_gnu_ld
9481 fi
9482 if test -n "${lt_cv_path_LDCXX+set}"; then
9483   lt_cv_path_LD=$lt_cv_path_LDCXX
9484 else
9485   unset lt_cv_path_LD
9486 fi
9487 test -z "${LDCXX+set}" || LD=$LDCXX
9488 CC=${CXX-"c++"}
9489 compiler=$CC
9490 compiler_CXX=$CC
9491 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9492
9493 # We don't want -fno-exception wen compiling C++ code, so set the
9494 # no_builtin_flag separately
9495 if test "$GXX" = yes; then
9496   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9497 else
9498   lt_prog_compiler_no_builtin_flag_CXX=
9499 fi
9500
9501 if test "$GXX" = yes; then
9502   # Set up default GNU C++ configuration
9503
9504
9505 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9506 if test "${with_gnu_ld+set}" = set; then
9507   withval="$with_gnu_ld"
9508   test "$withval" = no || with_gnu_ld=yes
9509 else
9510   with_gnu_ld=no
9511 fi;
9512 ac_prog=ld
9513 if test "$GCC" = yes; then
9514   # Check if gcc -print-prog-name=ld gives a path.
9515   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9516 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9517   case $host in
9518   *-*-mingw*)
9519     # gcc leaves a trailing carriage return which upsets mingw
9520     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9521   *)
9522     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9523   esac
9524   case $ac_prog in
9525     # Accept absolute paths.
9526     [\\/]* | ?:[\\/]*)
9527       re_direlt='/[^/][^/]*/\.\./'
9528       # Canonicalize the path of ld
9529       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9530       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9531         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9532       done
9533       test -z "$LD" && LD="$ac_prog"
9534       ;;
9535   "")
9536     # If it fails, then pretend we aren't using GCC.
9537     ac_prog=ld
9538     ;;
9539   *)
9540     # If it is relative, then search for the first ld in PATH.
9541     with_gnu_ld=unknown
9542     ;;
9543   esac
9544 elif test "$with_gnu_ld" = yes; then
9545   echo "$as_me:$LINENO: checking for GNU ld" >&5
9546 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9547 else
9548   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9549 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9550 fi
9551 if test "${lt_cv_path_LD+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   if test -z "$LD"; then
9555   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9556   for ac_dir in $PATH; do
9557     IFS="$lt_save_ifs"
9558     test -z "$ac_dir" && ac_dir=.
9559     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9560       lt_cv_path_LD="$ac_dir/$ac_prog"
9561       # Check to see if the program is GNU ld.  I'd rather use --version,
9562       # but apparently some GNU ld's only accept -v.
9563       # Break only if it was the GNU/non-GNU ld that we prefer.
9564       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9565       *GNU* | *'with BFD'*)
9566         test "$with_gnu_ld" != no && break
9567         ;;
9568       *)
9569         test "$with_gnu_ld" != yes && break
9570         ;;
9571       esac
9572     fi
9573   done
9574   IFS="$lt_save_ifs"
9575 else
9576   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9577 fi
9578 fi
9579
9580 LD="$lt_cv_path_LD"
9581 if test -n "$LD"; then
9582   echo "$as_me:$LINENO: result: $LD" >&5
9583 echo "${ECHO_T}$LD" >&6
9584 else
9585   echo "$as_me:$LINENO: result: no" >&5
9586 echo "${ECHO_T}no" >&6
9587 fi
9588 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9589 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9590    { (exit 1); exit 1; }; }
9591 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9592 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9593 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9594   echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9597 case `"$LD" -v 2>&1 </dev/null` in
9598 *GNU* | *'with BFD'*)
9599   lt_cv_prog_gnu_ld=yes
9600   ;;
9601 *)
9602   lt_cv_prog_gnu_ld=no
9603   ;;
9604 esac
9605 fi
9606 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9607 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9608 with_gnu_ld=$lt_cv_prog_gnu_ld
9609
9610
9611
9612   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9613   # archiving commands below assume that GNU ld is being used.
9614   if test "$with_gnu_ld" = yes; then
9615     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9616     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'
9617
9618     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9619     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9620
9621     # If archive_cmds runs LD, not CC, wlarc should be empty
9622     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9623     #     investigate it a little bit more. (MM)
9624     wlarc='${wl}'
9625
9626     # ancient GNU ld didn't support --whole-archive et. al.
9627     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9628         grep 'no-whole-archive' > /dev/null; then
9629       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9630     else
9631       whole_archive_flag_spec_CXX=
9632     fi
9633   else
9634     with_gnu_ld=no
9635     wlarc=
9636
9637     # A generic and very simple default shared library creation
9638     # command for GNU C++ for the case where it uses the native
9639     # linker, instead of GNU ld.  If possible, this setting should
9640     # overridden to take advantage of the native linker features on
9641     # the platform it is being used on.
9642     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9643   fi
9644
9645   # Commands to make compiler produce verbose output that lists
9646   # what "hidden" libraries, object files and flags are used when
9647   # linking a shared library.
9648   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9649
9650 else
9651   GXX=no
9652   with_gnu_ld=no
9653   wlarc=
9654 fi
9655
9656 # PORTME: fill in a description of your system's C++ link characteristics
9657 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9659 ld_shlibs_CXX=yes
9660 case $host_os in
9661   aix3*)
9662     # FIXME: insert proper C++ library support
9663     ld_shlibs_CXX=no
9664     ;;
9665   aix4* | aix5*)
9666     if test "$host_cpu" = ia64; then
9667       # On IA64, the linker does run time linking by default, so we don't
9668       # have to do anything special.
9669       aix_use_runtimelinking=no
9670       exp_sym_flag='-Bexport'
9671       no_entry_flag=""
9672     else
9673       aix_use_runtimelinking=no
9674
9675       # Test if we are trying to use run time linking or normal
9676       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9677       # need to do runtime linking.
9678       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9679         for ld_flag in $LDFLAGS; do
9680           case $ld_flag in
9681           *-brtl*)
9682             aix_use_runtimelinking=yes
9683             break
9684             ;;
9685           esac
9686         done
9687       esac
9688
9689       exp_sym_flag='-bexport'
9690       no_entry_flag='-bnoentry'
9691     fi
9692
9693     # When large executables or shared objects are built, AIX ld can
9694     # have problems creating the table of contents.  If linking a library
9695     # or program results in "error TOC overflow" add -mminimal-toc to
9696     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9697     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9698
9699     archive_cmds_CXX=''
9700     hardcode_direct_CXX=yes
9701     hardcode_libdir_separator_CXX=':'
9702     link_all_deplibs_CXX=yes
9703
9704     if test "$GXX" = yes; then
9705       case $host_os in aix4.012|aix4.012.*)
9706       # We only want to do this on AIX 4.2 and lower, the check
9707       # below for broken collect2 doesn't work under 4.3+
9708         collect2name=`${CC} -print-prog-name=collect2`
9709         if test -f "$collect2name" && \
9710            strings "$collect2name" | grep resolve_lib_name >/dev/null
9711         then
9712           # We have reworked collect2
9713           hardcode_direct_CXX=yes
9714         else
9715           # We have old collect2
9716           hardcode_direct_CXX=unsupported
9717           # It fails to find uninstalled libraries when the uninstalled
9718           # path is not listed in the libpath.  Setting hardcode_minus_L
9719           # to unsupported forces relinking
9720           hardcode_minus_L_CXX=yes
9721           hardcode_libdir_flag_spec_CXX='-L$libdir'
9722           hardcode_libdir_separator_CXX=
9723         fi
9724       esac
9725       shared_flag='-shared'
9726     else
9727       # not using gcc
9728       if test "$host_cpu" = ia64; then
9729         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9730         # chokes on -Wl,-G. The following line is correct:
9731         shared_flag='-G'
9732       else
9733         if test "$aix_use_runtimelinking" = yes; then
9734           shared_flag='${wl}-G'
9735         else
9736           shared_flag='${wl}-bM:SRE'
9737         fi
9738       fi
9739     fi
9740
9741     # It seems that -bexpall does not export symbols beginning with
9742     # underscore (_), so it is better to generate a list of symbols to export.
9743     always_export_symbols_CXX=yes
9744     if test "$aix_use_runtimelinking" = yes; then
9745       # Warning - without using the other runtime loading flags (-brtl),
9746       # -berok will link without error, but may produce a broken library.
9747       allow_undefined_flag_CXX='-berok'
9748       # Determine the default libpath from the value encoded in an empty executable.
9749       cat >conftest.$ac_ext <<_ACEOF
9750 #line $LINENO "configure"
9751 /* confdefs.h.  */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h.  */
9756
9757 int
9758 main ()
9759 {
9760
9761   ;
9762   return 0;
9763 }
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767   (eval $ac_link) 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); } &&
9771          { ac_try='test -s conftest$ac_exeext'
9772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773   (eval $ac_try) 2>&5
9774   ac_status=$?
9775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776   (exit $ac_status); }; }; then
9777
9778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9779 }'`
9780 # Check for a 64-bit object if we didn't find anything.
9781 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; }
9782 }'`; fi
9783 else
9784   echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9786
9787 fi
9788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9789 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9790
9791       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9792
9793       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"
9794      else
9795       if test "$host_cpu" = ia64; then
9796         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9797         allow_undefined_flag_CXX="-z nodefs"
9798         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"
9799       else
9800         # Determine the default libpath from the value encoded in an empty executable.
9801         cat >conftest.$ac_ext <<_ACEOF
9802 #line $LINENO "configure"
9803 /* confdefs.h.  */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h.  */
9808
9809 int
9810 main ()
9811 {
9812
9813   ;
9814   return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819   (eval $ac_link) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } &&
9823          { ac_try='test -s conftest$ac_exeext'
9824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825   (eval $ac_try) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }; }; then
9829
9830 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9831 }'`
9832 # Check for a 64-bit object if we didn't find anything.
9833 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; }
9834 }'`; fi
9835 else
9836   echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9838
9839 fi
9840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9841 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9842
9843         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9844         # Warning - without using the other run time loading flags,
9845         # -berok will link without error, but may produce a broken library.
9846         no_undefined_flag_CXX=' ${wl}-bernotok'
9847         allow_undefined_flag_CXX=' ${wl}-berok'
9848         # -bexpall does not export symbols beginning with underscore (_)
9849         always_export_symbols_CXX=yes
9850         # Exported symbols can be pulled into shared objects from archives
9851         whole_archive_flag_spec_CXX=' '
9852         archive_cmds_need_lc_CXX=yes
9853         # This is similar to how AIX traditionally builds it's shared libraries.
9854         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'
9855       fi
9856     fi
9857     ;;
9858   chorus*)
9859     case $cc_basename in
9860       *)
9861         # FIXME: insert proper C++ library support
9862         ld_shlibs_CXX=no
9863         ;;
9864     esac
9865     ;;
9866
9867   cygwin* | mingw* | pw32*)
9868     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9869     # as there is no search path for DLLs.
9870     hardcode_libdir_flag_spec_CXX='-L$libdir'
9871     allow_undefined_flag_CXX=unsupported
9872     always_export_symbols_CXX=no
9873     enable_shared_with_static_runtimes_CXX=yes
9874
9875     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9876       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'
9877       # If the export-symbols file already is a .def file (1st line
9878       # is EXPORTS), use it as is; otherwise, prepend...
9879       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9880         cp $export_symbols $output_objdir/$soname.def;
9881       else
9882         echo EXPORTS > $output_objdir/$soname.def;
9883         cat $export_symbols >> $output_objdir/$soname.def;
9884       fi~
9885       $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'
9886     else
9887       ld_shlibs_CXX=no
9888     fi
9889   ;;
9890
9891   darwin* | rhapsody*)
9892    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9893     archive_cmds_need_lc_CXX=no
9894     case "$host_os" in
9895     rhapsody* | darwin1.[012])
9896       allow_undefined_flag_CXX='-undefined suppress'
9897       ;;
9898     *) # Darwin 1.3 on
9899       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9900       ;;
9901     esac
9902         lt_int_apple_cc_single_mod=no
9903         output_verbose_link_cmd='echo'
9904         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9905           lt_int_apple_cc_single_mod=yes
9906         fi
9907         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9908           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9909         else
9910         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'
9911       fi
9912       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9913
9914     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9915       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9916         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}'
9917       else
9918         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}'
9919       fi
9920         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}'
9921     hardcode_direct_CXX=no
9922     hardcode_automatic_CXX=yes
9923     hardcode_shlibpath_var_CXX=unsupported
9924     whole_archive_flag_spec_CXX='-all_load $convenience'
9925     link_all_deplibs_CXX=yes
9926    fi
9927     ;;
9928
9929   dgux*)
9930     case $cc_basename in
9931       ec++)
9932         # FIXME: insert proper C++ library support
9933         ld_shlibs_CXX=no
9934         ;;
9935       ghcx)
9936         # Green Hills C++ Compiler
9937         # FIXME: insert proper C++ library support
9938         ld_shlibs_CXX=no
9939         ;;
9940       *)
9941         # FIXME: insert proper C++ library support
9942         ld_shlibs_CXX=no
9943         ;;
9944     esac
9945     ;;
9946   freebsd12*)
9947     # C++ shared libraries reported to be fairly broken before switch to ELF
9948     ld_shlibs_CXX=no
9949     ;;
9950   freebsd-elf*)
9951     archive_cmds_need_lc_CXX=no
9952     ;;
9953   freebsd*)
9954     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9955     # conventions
9956     ld_shlibs_CXX=yes
9957     ;;
9958   gnu*)
9959     ;;
9960   hpux9*)
9961     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9962     hardcode_libdir_separator_CXX=:
9963     export_dynamic_flag_spec_CXX='${wl}-E'
9964     hardcode_direct_CXX=yes
9965     hardcode_minus_L_CXX=yes # Not in the search PATH,
9966                                 # but as the default
9967                                 # location of the library.
9968
9969     case $cc_basename in
9970     CC)
9971       # FIXME: insert proper C++ library support
9972       ld_shlibs_CXX=no
9973       ;;
9974     aCC)
9975       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'
9976       # Commands to make compiler produce verbose output that lists
9977       # what "hidden" libraries, object files and flags are used when
9978       # linking a shared library.
9979       #
9980       # There doesn't appear to be a way to prevent this compiler from
9981       # explicitly linking system object files so we need to strip them
9982       # from the output so that they don't get included in the library
9983       # dependencies.
9984       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'
9985       ;;
9986     *)
9987       if test "$GXX" = yes; then
9988         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'
9989       else
9990         # FIXME: insert proper C++ library support
9991         ld_shlibs_CXX=no
9992       fi
9993       ;;
9994     esac
9995     ;;
9996   hpux10*|hpux11*)
9997     if test $with_gnu_ld = no; then
9998       case "$host_cpu" in
9999       hppa*64*)
10000         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10001         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10002         hardcode_libdir_separator_CXX=:
10003         ;;
10004       ia64*)
10005         hardcode_libdir_flag_spec_CXX='-L$libdir'
10006         ;;
10007       *)
10008         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10009         hardcode_libdir_separator_CXX=:
10010         export_dynamic_flag_spec_CXX='${wl}-E'
10011         ;;
10012       esac
10013     fi
10014     case "$host_cpu" in
10015     hppa*64*)
10016       hardcode_direct_CXX=no
10017       hardcode_shlibpath_var_CXX=no
10018       ;;
10019     ia64*)
10020       hardcode_direct_CXX=no
10021       hardcode_shlibpath_var_CXX=no
10022       hardcode_minus_L_CXX=yes # Not in the search PATH,
10023                                               # but as the default
10024                                               # location of the library.
10025       ;;
10026     *)
10027       hardcode_direct_CXX=yes
10028       hardcode_minus_L_CXX=yes # Not in the search PATH,
10029                                               # but as the default
10030                                               # location of the library.
10031       ;;
10032     esac
10033
10034     case $cc_basename in
10035       CC)
10036         # FIXME: insert proper C++ library support
10037         ld_shlibs_CXX=no
10038         ;;
10039       aCC)
10040         case "$host_cpu" in
10041         hppa*64*|ia64*)
10042           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10043           ;;
10044         *)
10045           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10046           ;;
10047         esac
10048         # Commands to make compiler produce verbose output that lists
10049         # what "hidden" libraries, object files and flags are used when
10050         # linking a shared library.
10051         #
10052         # There doesn't appear to be a way to prevent this compiler from
10053         # explicitly linking system object files so we need to strip them
10054         # from the output so that they don't get included in the library
10055         # dependencies.
10056         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'
10057         ;;
10058       *)
10059         if test "$GXX" = yes; then
10060           if test $with_gnu_ld = no; then
10061             case "$host_cpu" in
10062             ia64*|hppa*64*)
10063               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10064               ;;
10065             *)
10066               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'
10067               ;;
10068             esac
10069           fi
10070         else
10071           # FIXME: insert proper C++ library support
10072           ld_shlibs_CXX=no
10073         fi
10074         ;;
10075     esac
10076     ;;
10077   irix5* | irix6*)
10078     case $cc_basename in
10079       CC)
10080         # SGI C++
10081         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'
10082
10083         # Archives containing C++ object files must be created using
10084         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10085         # necessary to make sure instantiated templates are included
10086         # in the archive.
10087         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10088         ;;
10089       *)
10090         if test "$GXX" = yes; then
10091           if test "$with_gnu_ld" = no; then
10092             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'
10093           else
10094             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'
10095           fi
10096         fi
10097         link_all_deplibs_CXX=yes
10098         ;;
10099     esac
10100     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10101     hardcode_libdir_separator_CXX=:
10102     ;;
10103   linux*)
10104     case $cc_basename in
10105       KCC)
10106         # Kuck and Associates, Inc. (KAI) C++ Compiler
10107
10108         # KCC will only create a shared library if the output file
10109         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10110         # to its proper name (with version) after linking.
10111         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'
10112         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'
10113         # Commands to make compiler produce verbose output that lists
10114         # what "hidden" libraries, object files and flags are used when
10115         # linking a shared library.
10116         #
10117         # There doesn't appear to be a way to prevent this compiler from
10118         # explicitly linking system object files so we need to strip them
10119         # from the output so that they don't get included in the library
10120         # dependencies.
10121         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'
10122
10123         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10124         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10125
10126         # Archives containing C++ object files must be created using
10127         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10128         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10129         ;;
10130       icpc)
10131         # Intel C++
10132         with_gnu_ld=yes
10133         archive_cmds_need_lc_CXX=no
10134         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10135         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'
10136         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10137         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10138         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10139         ;;
10140       cxx)
10141         # Compaq C++
10142         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10143         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'
10144
10145         runpath_var=LD_RUN_PATH
10146         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10147         hardcode_libdir_separator_CXX=:
10148
10149         # Commands to make compiler produce verbose output that lists
10150         # what "hidden" libraries, object files and flags are used when
10151         # linking a shared library.
10152         #
10153         # There doesn't appear to be a way to prevent this compiler from
10154         # explicitly linking system object files so we need to strip them
10155         # from the output so that they don't get included in the library
10156         # dependencies.
10157         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'
10158         ;;
10159     esac
10160     ;;
10161   lynxos*)
10162     # FIXME: insert proper C++ library support
10163     ld_shlibs_CXX=no
10164     ;;
10165   m88k*)
10166     # FIXME: insert proper C++ library support
10167     ld_shlibs_CXX=no
10168     ;;
10169   mvs*)
10170     case $cc_basename in
10171       cxx)
10172         # FIXME: insert proper C++ library support
10173         ld_shlibs_CXX=no
10174         ;;
10175       *)
10176         # FIXME: insert proper C++ library support
10177         ld_shlibs_CXX=no
10178         ;;
10179     esac
10180     ;;
10181   netbsd*)
10182     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10183       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10184       wlarc=
10185       hardcode_libdir_flag_spec_CXX='-R$libdir'
10186       hardcode_direct_CXX=yes
10187       hardcode_shlibpath_var_CXX=no
10188     fi
10189     # Workaround some broken pre-1.5 toolchains
10190     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10191     ;;
10192   osf3*)
10193     case $cc_basename in
10194       KCC)
10195         # Kuck and Associates, Inc. (KAI) C++ Compiler
10196
10197         # KCC will only create a shared library if the output file
10198         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10199         # to its proper name (with version) after linking.
10200         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'
10201
10202         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10203         hardcode_libdir_separator_CXX=:
10204
10205         # Archives containing C++ object files must be created using
10206         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10207         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10208
10209         ;;
10210       RCC)
10211         # Rational C++ 2.4.1
10212         # FIXME: insert proper C++ library support
10213         ld_shlibs_CXX=no
10214         ;;
10215       cxx)
10216         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10217         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'
10218
10219         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10220         hardcode_libdir_separator_CXX=:
10221
10222         # Commands to make compiler produce verbose output that lists
10223         # what "hidden" libraries, object files and flags are used when
10224         # linking a shared library.
10225         #
10226         # There doesn't appear to be a way to prevent this compiler from
10227         # explicitly linking system object files so we need to strip them
10228         # from the output so that they don't get included in the library
10229         # dependencies.
10230         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'
10231         ;;
10232       *)
10233         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10234           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10235           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'
10236
10237           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10238           hardcode_libdir_separator_CXX=:
10239
10240           # Commands to make compiler produce verbose output that lists
10241           # what "hidden" libraries, object files and flags are used when
10242           # linking a shared library.
10243           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10244
10245         else
10246           # FIXME: insert proper C++ library support
10247           ld_shlibs_CXX=no
10248         fi
10249         ;;
10250     esac
10251     ;;
10252   osf4* | osf5*)
10253     case $cc_basename in
10254       KCC)
10255         # Kuck and Associates, Inc. (KAI) C++ Compiler
10256
10257         # KCC will only create a shared library if the output file
10258         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10259         # to its proper name (with version) after linking.
10260         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'
10261
10262         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10263         hardcode_libdir_separator_CXX=:
10264
10265         # Archives containing C++ object files must be created using
10266         # the KAI C++ compiler.
10267         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10268         ;;
10269       RCC)
10270         # Rational C++ 2.4.1
10271         # FIXME: insert proper C++ library support
10272         ld_shlibs_CXX=no
10273         ;;
10274       cxx)
10275         allow_undefined_flag_CXX=' -expect_unresolved \*'
10276         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'
10277         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10278           echo "-hidden">> $lib.exp~
10279           $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~
10280           $rm $lib.exp'
10281
10282         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10283         hardcode_libdir_separator_CXX=:
10284
10285         # Commands to make compiler produce verbose output that lists
10286         # what "hidden" libraries, object files and flags are used when
10287         # linking a shared library.
10288         #
10289         # There doesn't appear to be a way to prevent this compiler from
10290         # explicitly linking system object files so we need to strip them
10291         # from the output so that they don't get included in the library
10292         # dependencies.
10293         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'
10294         ;;
10295       *)
10296         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10297           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10298          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'
10299
10300           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10301           hardcode_libdir_separator_CXX=:
10302
10303           # Commands to make compiler produce verbose output that lists
10304           # what "hidden" libraries, object files and flags are used when
10305           # linking a shared library.
10306           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10307
10308         else
10309           # FIXME: insert proper C++ library support
10310           ld_shlibs_CXX=no
10311         fi
10312         ;;
10313     esac
10314     ;;
10315   psos*)
10316     # FIXME: insert proper C++ library support
10317     ld_shlibs_CXX=no
10318     ;;
10319   sco*)
10320     archive_cmds_need_lc_CXX=no
10321     case $cc_basename in
10322       CC)
10323         # FIXME: insert proper C++ library support
10324         ld_shlibs_CXX=no
10325         ;;
10326       *)
10327         # FIXME: insert proper C++ library support
10328         ld_shlibs_CXX=no
10329         ;;
10330     esac
10331     ;;
10332   sunos4*)
10333     case $cc_basename in
10334       CC)
10335         # Sun C++ 4.x
10336         # FIXME: insert proper C++ library support
10337         ld_shlibs_CXX=no
10338         ;;
10339       lcc)
10340         # Lucid
10341         # FIXME: insert proper C++ library support
10342         ld_shlibs_CXX=no
10343         ;;
10344       *)
10345         # FIXME: insert proper C++ library support
10346         ld_shlibs_CXX=no
10347         ;;
10348     esac
10349     ;;
10350   solaris*)
10351     case $cc_basename in
10352       CC)
10353         # Sun C++ 4.2, 5.x and Centerline C++
10354         no_undefined_flag_CXX=' -zdefs'
10355         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10356         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10357         $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'
10358
10359         hardcode_libdir_flag_spec_CXX='-R$libdir'
10360         hardcode_shlibpath_var_CXX=no
10361         case $host_os in
10362           solaris2.0-5 | solaris2.0-5.*) ;;
10363           *)
10364             # The C++ compiler is used as linker so we must use $wl
10365             # flag to pass the commands to the underlying system
10366             # linker.
10367             # Supported since Solaris 2.6 (maybe 2.5.1?)
10368             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10369             ;;
10370         esac
10371         link_all_deplibs_CXX=yes
10372
10373         # Commands to make compiler produce verbose output that lists
10374         # what "hidden" libraries, object files and flags are used when
10375         # linking a shared library.
10376         #
10377         # There doesn't appear to be a way to prevent this compiler from
10378         # explicitly linking system object files so we need to strip them
10379         # from the output so that they don't get included in the library
10380         # dependencies.
10381         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'
10382
10383         # Archives containing C++ object files must be created using
10384         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10385         # necessary to make sure instantiated templates are included
10386         # in the archive.
10387         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10388         ;;
10389       gcx)
10390         # Green Hills C++ Compiler
10391         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10392
10393         # The C++ compiler must be used to create the archive.
10394         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10395         ;;
10396       *)
10397         # GNU C++ compiler with Solaris linker
10398         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10399           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10400           if $CC --version | grep -v '^2\.7' > /dev/null; then
10401             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10402             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10403                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10404
10405             # Commands to make compiler produce verbose output that lists
10406             # what "hidden" libraries, object files and flags are used when
10407             # linking a shared library.
10408             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10409           else
10410             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10411             # platform.
10412             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10413             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10414                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10415
10416             # Commands to make compiler produce verbose output that lists
10417             # what "hidden" libraries, object files and flags are used when
10418             # linking a shared library.
10419             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10420           fi
10421
10422           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10423         fi
10424         ;;
10425     esac
10426     ;;
10427   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10428     archive_cmds_need_lc_CXX=no
10429     ;;
10430   tandem*)
10431     case $cc_basename in
10432       NCC)
10433         # NonStop-UX NCC 3.20
10434         # FIXME: insert proper C++ library support
10435         ld_shlibs_CXX=no
10436         ;;
10437       *)
10438         # FIXME: insert proper C++ library support
10439         ld_shlibs_CXX=no
10440         ;;
10441     esac
10442     ;;
10443   vxworks*)
10444     # FIXME: insert proper C++ library support
10445     ld_shlibs_CXX=no
10446     ;;
10447   *)
10448     # FIXME: insert proper C++ library support
10449     ld_shlibs_CXX=no
10450     ;;
10451 esac
10452 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10453 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10454 test "$ld_shlibs_CXX" = no && can_build_shared=no
10455
10456 GCC_CXX="$GXX"
10457 LD_CXX="$LD"
10458
10459 ## CAVEAT EMPTOR:
10460 ## There is no encapsulation within the following macros, do not change
10461 ## the running order or otherwise move them around unless you know exactly
10462 ## what you are doing...
10463
10464 cat > conftest.$ac_ext <<EOF
10465 class Foo
10466 {
10467 public:
10468   Foo (void) { a = 0; }
10469 private:
10470   int a;
10471 };
10472 EOF
10473
10474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10475   (eval $ac_compile) 2>&5
10476   ac_status=$?
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); }; then
10479   # Parse the compiler output and extract the necessary
10480   # objects, libraries and library flags.
10481
10482   # Sentinel used to keep track of whether or not we are before
10483   # the conftest object file.
10484   pre_test_object_deps_done=no
10485
10486   # The `*' in the case matches for architectures that use `case' in
10487   # $output_verbose_cmd can trigger glob expansion during the loop
10488   # eval without this substitution.
10489   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10490
10491   for p in `eval $output_verbose_link_cmd`; do
10492     case $p in
10493
10494     -L* | -R* | -l*)
10495        # Some compilers place space between "-{L,R}" and the path.
10496        # Remove the space.
10497        if test $p = "-L" \
10498           || test $p = "-R"; then
10499          prev=$p
10500          continue
10501        else
10502          prev=
10503        fi
10504
10505        if test "$pre_test_object_deps_done" = no; then
10506          case $p in
10507          -L* | -R*)
10508            # Internal compiler library paths should come after those
10509            # provided the user.  The postdeps already come after the
10510            # user supplied libs so there is no need to process them.
10511            if test -z "$compiler_lib_search_path_CXX"; then
10512              compiler_lib_search_path_CXX="${prev}${p}"
10513            else
10514              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10515            fi
10516            ;;
10517          # The "-l" case would never come before the object being
10518          # linked, so don't bother handling this case.
10519          esac
10520        else
10521          if test -z "$postdeps_CXX"; then
10522            postdeps_CXX="${prev}${p}"
10523          else
10524            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10525          fi
10526        fi
10527        ;;
10528
10529     *.$objext)
10530        # This assumes that the test object file only shows up
10531        # once in the compiler output.
10532        if test "$p" = "conftest.$objext"; then
10533          pre_test_object_deps_done=yes
10534          continue
10535        fi
10536
10537        if test "$pre_test_object_deps_done" = no; then
10538          if test -z "$predep_objects_CXX"; then
10539            predep_objects_CXX="$p"
10540          else
10541            predep_objects_CXX="$predep_objects_CXX $p"
10542          fi
10543        else
10544          if test -z "$postdep_objects_CXX"; then
10545            postdep_objects_CXX="$p"
10546          else
10547            postdep_objects_CXX="$postdep_objects_CXX $p"
10548          fi
10549        fi
10550        ;;
10551
10552     *) ;; # Ignore the rest.
10553
10554     esac
10555   done
10556
10557   # Clean up.
10558   rm -f a.out a.exe
10559 else
10560   echo "libtool.m4: error: problem compiling CXX test program"
10561 fi
10562
10563 $rm -f confest.$objext
10564
10565 case " $postdeps_CXX " in
10566 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10567 esac
10568
10569 lt_prog_compiler_wl_CXX=
10570 lt_prog_compiler_pic_CXX=
10571 lt_prog_compiler_static_CXX=
10572
10573 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10574 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10575
10576   # C++ specific cases for pic, static, wl, etc.
10577   if test "$GXX" = yes; then
10578     lt_prog_compiler_wl_CXX='-Wl,'
10579     lt_prog_compiler_static_CXX='-static'
10580
10581     case $host_os in
10582     aix*)
10583       # All AIX code is PIC.
10584       if test "$host_cpu" = ia64; then
10585         # AIX 5 now supports IA64 processor
10586         lt_prog_compiler_static_CXX='-Bstatic'
10587       fi
10588       ;;
10589     amigaos*)
10590       # FIXME: we need at least 68020 code to build shared libraries, but
10591       # adding the `-m68020' flag to GCC prevents building anything better,
10592       # like `-m68040'.
10593       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10594       ;;
10595     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10596       # PIC is the default for these OSes.
10597       ;;
10598     mingw* | os2* | pw32*)
10599       # This hack is so that the source file can tell whether it is being
10600       # built for inclusion in a dll (and should export symbols for example).
10601       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10602       ;;
10603     darwin* | rhapsody*)
10604       # PIC is the default on this platform
10605       # Common symbols not allowed in MH_DYLIB files
10606       lt_prog_compiler_pic_CXX='-fno-common'
10607       ;;
10608     *djgpp*)
10609       # DJGPP does not support shared libraries at all
10610       lt_prog_compiler_pic_CXX=
10611       ;;
10612     sysv4*MP*)
10613       if test -d /usr/nec; then
10614         lt_prog_compiler_pic_CXX=-Kconform_pic
10615       fi
10616       ;;
10617     hpux*)
10618       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10619       # not for PA HP-UX.
10620       case "$host_cpu" in
10621       hppa*64*|ia64*)
10622         ;;
10623       *)
10624         lt_prog_compiler_pic_CXX='-fPIC'
10625         ;;
10626       esac
10627       ;;
10628     *)
10629       lt_prog_compiler_pic_CXX='-fPIC'
10630       ;;
10631     esac
10632   else
10633     case $host_os in
10634       aix4* | aix5*)
10635         # All AIX code is PIC.
10636         if test "$host_cpu" = ia64; then
10637           # AIX 5 now supports IA64 processor
10638           lt_prog_compiler_static_CXX='-Bstatic'
10639         else
10640           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10641         fi
10642         ;;
10643       chorus*)
10644         case $cc_basename in
10645         cxch68)
10646           # Green Hills C++ Compiler
10647           # _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"
10648           ;;
10649         esac
10650         ;;
10651       dgux*)
10652         case $cc_basename in
10653           ec++)
10654             lt_prog_compiler_pic_CXX='-KPIC'
10655             ;;
10656           ghcx)
10657             # Green Hills C++ Compiler
10658             lt_prog_compiler_pic_CXX='-pic'
10659             ;;
10660           *)
10661             ;;
10662         esac
10663         ;;
10664       freebsd*)
10665         # FreeBSD uses GNU C++
10666         ;;
10667       hpux9* | hpux10* | hpux11*)
10668         case $cc_basename in
10669           CC)
10670             lt_prog_compiler_wl_CXX='-Wl,'
10671             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10672             if test "$host_cpu" != ia64; then
10673               lt_prog_compiler_pic_CXX='+Z'
10674             fi
10675             ;;
10676           aCC)
10677             lt_prog_compiler_wl_CXX='-Wl,'
10678             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10679             case "$host_cpu" in
10680             hppa*64*|ia64*)
10681               # +Z the default
10682               ;;
10683             *)
10684               lt_prog_compiler_pic_CXX='+Z'
10685               ;;
10686             esac
10687             ;;
10688           *)
10689             ;;
10690         esac
10691         ;;
10692       irix5* | irix6* | nonstopux*)
10693         case $cc_basename in
10694           CC)
10695             lt_prog_compiler_wl_CXX='-Wl,'
10696             lt_prog_compiler_static_CXX='-non_shared'
10697             # CC pic flag -KPIC is the default.
10698             ;;
10699           *)
10700             ;;
10701         esac
10702         ;;
10703       linux*)
10704         case $cc_basename in
10705           KCC)
10706             # KAI C++ Compiler
10707             lt_prog_compiler_wl_CXX='--backend -Wl,'
10708             lt_prog_compiler_pic_CXX='-fPIC'
10709             ;;
10710           icpc)
10711             # Intel C++
10712             lt_prog_compiler_wl_CXX='-Wl,'
10713             lt_prog_compiler_pic_CXX='-KPIC'
10714             lt_prog_compiler_static_CXX='-static'
10715             ;;
10716           cxx)
10717             # Compaq C++
10718             # Make sure the PIC flag is empty.  It appears that all Alpha
10719             # Linux and Compaq Tru64 Unix objects are PIC.
10720             lt_prog_compiler_pic_CXX=
10721             lt_prog_compiler_static_CXX='-non_shared'
10722             ;;
10723           *)
10724             ;;
10725         esac
10726         ;;
10727       lynxos*)
10728         ;;
10729       m88k*)
10730         ;;
10731       mvs*)
10732         case $cc_basename in
10733           cxx)
10734             lt_prog_compiler_pic_CXX='-W c,exportall'
10735             ;;
10736           *)
10737             ;;
10738         esac
10739         ;;
10740       netbsd*)
10741         ;;
10742       osf3* | osf4* | osf5*)
10743         case $cc_basename in
10744           KCC)
10745             lt_prog_compiler_wl_CXX='--backend -Wl,'
10746             ;;
10747           RCC)
10748             # Rational C++ 2.4.1
10749             lt_prog_compiler_pic_CXX='-pic'
10750             ;;
10751           cxx)
10752             # Digital/Compaq C++
10753             lt_prog_compiler_wl_CXX='-Wl,'
10754             # Make sure the PIC flag is empty.  It appears that all Alpha
10755             # Linux and Compaq Tru64 Unix objects are PIC.
10756             lt_prog_compiler_pic_CXX=
10757             lt_prog_compiler_static_CXX='-non_shared'
10758             ;;
10759           *)
10760             ;;
10761         esac
10762         ;;
10763       psos*)
10764         ;;
10765       sco*)
10766         case $cc_basename in
10767           CC)
10768             lt_prog_compiler_pic_CXX='-fPIC'
10769             ;;
10770           *)
10771             ;;
10772         esac
10773         ;;
10774       solaris*)
10775         case $cc_basename in
10776           CC)
10777             # Sun C++ 4.2, 5.x and Centerline C++
10778             lt_prog_compiler_pic_CXX='-KPIC'
10779             lt_prog_compiler_static_CXX='-Bstatic'
10780             lt_prog_compiler_wl_CXX='-Qoption ld '
10781             ;;
10782           gcx)
10783             # Green Hills C++ Compiler
10784             lt_prog_compiler_pic_CXX='-PIC'
10785             ;;
10786           *)
10787             ;;
10788         esac
10789         ;;
10790       sunos4*)
10791         case $cc_basename in
10792           CC)
10793             # Sun C++ 4.x
10794             lt_prog_compiler_pic_CXX='-pic'
10795             lt_prog_compiler_static_CXX='-Bstatic'
10796             ;;
10797           lcc)
10798             # Lucid
10799             lt_prog_compiler_pic_CXX='-pic'
10800             ;;
10801           *)
10802             ;;
10803         esac
10804         ;;
10805       tandem*)
10806         case $cc_basename in
10807           NCC)
10808             # NonStop-UX NCC 3.20
10809             lt_prog_compiler_pic_CXX='-KPIC'
10810             ;;
10811           *)
10812             ;;
10813         esac
10814         ;;
10815       unixware*)
10816         ;;
10817       vxworks*)
10818         ;;
10819       *)
10820         lt_prog_compiler_can_build_shared_CXX=no
10821         ;;
10822     esac
10823   fi
10824
10825 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10826 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10827
10828 #
10829 # Check to make sure the PIC flag actually works.
10830 #
10831 if test -n "$lt_prog_compiler_pic_CXX"; then
10832   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10833 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10834 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10835   echo $ECHO_N "(cached) $ECHO_C" >&6
10836 else
10837   lt_prog_compiler_pic_works_CXX=no
10838   ac_outfile=conftest.$ac_objext
10839    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10840    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10841    # Insert the option either (1) after the last *FLAGS variable, or
10842    # (2) before a word containing "conftest.", or (3) at the end.
10843    # Note that $ac_compile itself does not contain backslashes and begins
10844    # with a dollar sign (not a hyphen), so the echo should work correctly.
10845    # The option is referenced via a variable to avoid confusing sed.
10846    lt_compile=`echo "$ac_compile" | $SED \
10847    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10848    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10849    -e 's:$: $lt_compiler_flag:'`
10850    (eval echo "\"\$as_me:10850: $lt_compile\"" >&5)
10851    (eval "$lt_compile" 2>conftest.err)
10852    ac_status=$?
10853    cat conftest.err >&5
10854    echo "$as_me:10854: \$? = $ac_status" >&5
10855    if (exit $ac_status) && test -s "$ac_outfile"; then
10856      # The compiler can only warn and ignore the option if not recognized
10857      # So say no if there are warnings
10858      if test ! -s conftest.err; then
10859        lt_prog_compiler_pic_works_CXX=yes
10860      fi
10861    fi
10862    $rm conftest*
10863
10864 fi
10865 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10866 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10867
10868 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10869     case $lt_prog_compiler_pic_CXX in
10870      "" | " "*) ;;
10871      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10872      esac
10873 else
10874     lt_prog_compiler_pic_CXX=
10875      lt_prog_compiler_can_build_shared_CXX=no
10876 fi
10877
10878 fi
10879 case "$host_os" in
10880   # For platforms which do not support PIC, -DPIC is meaningless:
10881   *djgpp*)
10882     lt_prog_compiler_pic_CXX=
10883     ;;
10884   *)
10885     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10886     ;;
10887 esac
10888
10889 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10890 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10891 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10892   echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894   lt_cv_prog_compiler_c_o_CXX=no
10895    $rm -r conftest 2>/dev/null
10896    mkdir conftest
10897    cd conftest
10898    mkdir out
10899    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10900
10901    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10902    # that will create temporary files in the current directory regardless of
10903    # the output directory.  Thus, making CWD read-only will cause this test
10904    # to fail, enabling locking or at least warning the user not to do parallel
10905    # builds.
10906    chmod -w .
10907
10908    lt_compiler_flag="-o out/conftest2.$ac_objext"
10909    # Insert the option either (1) after the last *FLAGS variable, or
10910    # (2) before a word containing "conftest.", or (3) at the end.
10911    # Note that $ac_compile itself does not contain backslashes and begins
10912    # with a dollar sign (not a hyphen), so the echo should work correctly.
10913    lt_compile=`echo "$ac_compile" | $SED \
10914    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10915    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10916    -e 's:$: $lt_compiler_flag:'`
10917    (eval echo "\"\$as_me:10917: $lt_compile\"" >&5)
10918    (eval "$lt_compile" 2>out/conftest.err)
10919    ac_status=$?
10920    cat out/conftest.err >&5
10921    echo "$as_me:10921: \$? = $ac_status" >&5
10922    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10923    then
10924      # The compiler can only warn and ignore the option if not recognized
10925      # So say no if there are warnings
10926      if test ! -s out/conftest.err; then
10927        lt_cv_prog_compiler_c_o_CXX=yes
10928      fi
10929    fi
10930    chmod u+w .
10931    $rm conftest* out/*
10932    rmdir out
10933    cd ..
10934    rmdir conftest
10935    $rm conftest*
10936
10937 fi
10938 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10939 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10940
10941
10942 hard_links="nottested"
10943 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10944   # do not overwrite the value of need_locks provided by the user
10945   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10946 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10947   hard_links=yes
10948   $rm conftest*
10949   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10950   touch conftest.a
10951   ln conftest.a conftest.b 2>&5 || hard_links=no
10952   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10953   echo "$as_me:$LINENO: result: $hard_links" >&5
10954 echo "${ECHO_T}$hard_links" >&6
10955   if test "$hard_links" = no; then
10956     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10957 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10958     need_locks=warn
10959   fi
10960 else
10961   need_locks=no
10962 fi
10963
10964 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10965 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10966
10967   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10968   case $host_os in
10969   aix4* | aix5*)
10970     # If we're using GNU nm, then we don't want the "-C" option.
10971     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10972     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10973       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'
10974     else
10975       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'
10976     fi
10977     ;;
10978   pw32*)
10979     export_symbols_cmds_CXX="$ltdll_cmds"
10980   ;;
10981   cygwin* | mingw*)
10982     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10983   ;;
10984   *)
10985     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10986   ;;
10987   esac
10988
10989 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10990 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10991 test "$ld_shlibs_CXX" = no && can_build_shared=no
10992
10993 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10994 if test "$GCC" = yes; then
10995   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10996 fi
10997
10998 #
10999 # Do we need to explicitly link libc?
11000 #
11001 case "x$archive_cmds_need_lc_CXX" in
11002 x|xyes)
11003   # Assume -lc should be added
11004   archive_cmds_need_lc_CXX=yes
11005
11006   if test "$enable_shared" = yes && test "$GCC" = yes; then
11007     case $archive_cmds_CXX in
11008     *'~'*)
11009       # FIXME: we may have to deal with multi-command sequences.
11010       ;;
11011     '$CC '*)
11012       # Test whether the compiler implicitly links with -lc since on some
11013       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11014       # to ld, don't add -lc before -lgcc.
11015       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11016 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11017       $rm conftest*
11018       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11019
11020       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11021   (eval $ac_compile) 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); } 2>conftest.err; then
11025         soname=conftest
11026         lib=conftest
11027         libobjs=conftest.$ac_objext
11028         deplibs=
11029         wl=$lt_prog_compiler_wl_CXX
11030         compiler_flags=-v
11031         linker_flags=-v
11032         verstring=
11033         output_objdir=.
11034         libname=conftest
11035         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11036         allow_undefined_flag_CXX=
11037         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11038   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11039   ac_status=$?
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); }
11042         then
11043           archive_cmds_need_lc_CXX=no
11044         else
11045           archive_cmds_need_lc_CXX=yes
11046         fi
11047         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11048       else
11049         cat conftest.err 1>&5
11050       fi
11051       $rm conftest*
11052       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11053 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11054       ;;
11055     esac
11056   fi
11057   ;;
11058 esac
11059
11060 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11061 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11062 hardcode_action_CXX=
11063 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11064    test -n "$runpath_var CXX" || \
11065    test "X$hardcode_automatic_CXX"="Xyes" ; then
11066
11067   # We can hardcode non-existant directories.
11068   if test "$hardcode_direct_CXX" != no &&
11069      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11070      # have to relink, otherwise we might link with an installed library
11071      # when we should be linking with a yet-to-be-installed one
11072      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11073      test "$hardcode_minus_L_CXX" != no; then
11074     # Linking always hardcodes the temporary library directory.
11075     hardcode_action_CXX=relink
11076   else
11077     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11078     hardcode_action_CXX=immediate
11079   fi
11080 else
11081   # We cannot hardcode anything, or else we can only hardcode existing
11082   # directories.
11083   hardcode_action_CXX=unsupported
11084 fi
11085 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11086 echo "${ECHO_T}$hardcode_action_CXX" >&6
11087
11088 if test "$hardcode_action_CXX" = relink; then
11089   # Fast installation is not supported
11090   enable_fast_install=no
11091 elif test "$shlibpath_overrides_runpath" = yes ||
11092      test "$enable_shared" = no; then
11093   # Fast installation is not necessary
11094   enable_fast_install=needless
11095 fi
11096
11097 striplib=
11098 old_striplib=
11099 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11100 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11101 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11102   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11103   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11104   echo "$as_me:$LINENO: result: yes" >&5
11105 echo "${ECHO_T}yes" >&6
11106 else
11107 # FIXME - insert some real tests, host_os isn't really good enough
11108   case $host_os in
11109    darwin*)
11110        if test -n "$STRIP" ; then
11111          striplib="$STRIP -x"
11112          echo "$as_me:$LINENO: result: yes" >&5
11113 echo "${ECHO_T}yes" >&6
11114        else
11115   echo "$as_me:$LINENO: result: no" >&5
11116 echo "${ECHO_T}no" >&6
11117 fi
11118        ;;
11119    *)
11120   echo "$as_me:$LINENO: result: no" >&5
11121 echo "${ECHO_T}no" >&6
11122     ;;
11123   esac
11124 fi
11125
11126 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11127 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11128 library_names_spec=
11129 libname_spec='lib$name'
11130 soname_spec=
11131 shrext=".so"
11132 postinstall_cmds=
11133 postuninstall_cmds=
11134 finish_cmds=
11135 finish_eval=
11136 shlibpath_var=
11137 shlibpath_overrides_runpath=unknown
11138 version_type=none
11139 dynamic_linker="$host_os ld.so"
11140 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11141 if test "$GCC" = yes; then
11142   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11143   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11144     # if the path contains ";" then we assume it to be the separator
11145     # otherwise default to the standard path separator (i.e. ":") - it is
11146     # assumed that no part of a normal pathname contains ";" but that should
11147     # okay in the real world where ";" in dirpaths is itself problematic.
11148     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11149   else
11150     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11151   fi
11152 else
11153   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11154 fi
11155 need_lib_prefix=unknown
11156 hardcode_into_libs=no
11157
11158 # when you set need_version to no, make sure it does not cause -set_version
11159 # flags to be left without arguments
11160 need_version=unknown
11161
11162 case $host_os in
11163 aix3*)
11164   version_type=linux
11165   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11166   shlibpath_var=LIBPATH
11167
11168   # AIX 3 has no versioning support, so we append a major version to the name.
11169   soname_spec='${libname}${release}${shared_ext}$major'
11170   ;;
11171
11172 aix4* | aix5*)
11173   version_type=linux
11174   need_lib_prefix=no
11175   need_version=no
11176   hardcode_into_libs=yes
11177   if test "$host_cpu" = ia64; then
11178     # AIX 5 supports IA64
11179     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11180     shlibpath_var=LD_LIBRARY_PATH
11181   else
11182     # With GCC up to 2.95.x, collect2 would create an import file
11183     # for dependence libraries.  The import file would start with
11184     # the line `#! .'.  This would cause the generated library to
11185     # depend on `.', always an invalid library.  This was fixed in
11186     # development snapshots of GCC prior to 3.0.
11187     case $host_os in
11188       aix4 | aix4.[01] | aix4.[01].*)
11189       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11190            echo ' yes '
11191            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11192         :
11193       else
11194         can_build_shared=no
11195       fi
11196       ;;
11197     esac
11198     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11199     # soname into executable. Probably we can add versioning support to
11200     # collect2, so additional links can be useful in future.
11201     if test "$aix_use_runtimelinking" = yes; then
11202       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11203       # instead of lib<name>.a to let people know that these are not
11204       # typical AIX shared libraries.
11205       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206     else
11207       # We preserve .a as extension for shared libraries through AIX4.2
11208       # and later when we are not doing run time linking.
11209       library_names_spec='${libname}${release}.a $libname.a'
11210       soname_spec='${libname}${release}${shared_ext}$major'
11211     fi
11212     shlibpath_var=LIBPATH
11213   fi
11214   ;;
11215
11216 amigaos*)
11217   library_names_spec='$libname.ixlibrary $libname.a'
11218   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11219   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'
11220   ;;
11221
11222 beos*)
11223   library_names_spec='${libname}${shared_ext}'
11224   dynamic_linker="$host_os ld.so"
11225   shlibpath_var=LIBRARY_PATH
11226   ;;
11227
11228 bsdi4*)
11229   version_type=linux
11230   need_version=no
11231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11232   soname_spec='${libname}${release}${shared_ext}$major'
11233   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11234   shlibpath_var=LD_LIBRARY_PATH
11235   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11236   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11237   # the default ld.so.conf also contains /usr/contrib/lib and
11238   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11239   # libtool to hard-code these into programs
11240   ;;
11241
11242 cygwin* | mingw* | pw32*)
11243   version_type=windows
11244   shrext=".dll"
11245   need_version=no
11246   need_lib_prefix=no
11247
11248   case $GCC,$host_os in
11249   yes,cygwin* | yes,mingw* | yes,pw32*)
11250     library_names_spec='$libname.dll.a'
11251     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11252     postinstall_cmds='base_file=`basename \${file}`~
11253       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11254       dldir=$destdir/`dirname \$dlpath`~
11255       test -d \$dldir || mkdir -p \$dldir~
11256       $install_prog $dir/$dlname \$dldir/$dlname'
11257     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11258       dlpath=$dir/\$dldll~
11259        $rm \$dlpath'
11260     shlibpath_overrides_runpath=yes
11261
11262     case $host_os in
11263     cygwin*)
11264       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11265       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11266       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11267       ;;
11268     mingw*)
11269       # MinGW DLLs use traditional 'lib' prefix
11270       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11271       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11272       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11273         # It is most probably a Windows format PATH printed by
11274         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11275         # path with ; separators, and with drive letters. We can handle the
11276         # drive letters (cygwin fileutils understands them), so leave them,
11277         # especially as we might pass files found there to a mingw objdump,
11278         # which wouldn't understand a cygwinified path. Ahh.
11279         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11280       else
11281         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11282       fi
11283       ;;
11284     pw32*)
11285       # pw32 DLLs use 'pw' prefix rather than 'lib'
11286       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11287       ;;
11288     esac
11289     ;;
11290
11291   *)
11292     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11293     ;;
11294   esac
11295   dynamic_linker='Win32 ld.exe'
11296   # FIXME: first we should search . and the directory the executable is in
11297   shlibpath_var=PATH
11298   ;;
11299
11300 darwin* | rhapsody*)
11301   dynamic_linker="$host_os dyld"
11302   version_type=darwin
11303   need_lib_prefix=no
11304   need_version=no
11305   # FIXME: Relying on posixy $() will cause problems for
11306   #        cross-compilation, but unfortunately the echo tests do not
11307   #        yet detect zsh echo's removal of \ escapes.
11308   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11309   soname_spec='${libname}${release}${major}$shared_ext'
11310   shlibpath_overrides_runpath=yes
11311   shlibpath_var=DYLD_LIBRARY_PATH
11312   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11313   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11314   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11315   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"`
11316   fi
11317   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11318   ;;
11319
11320 dgux*)
11321   version_type=linux
11322   need_lib_prefix=no
11323   need_version=no
11324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11325   soname_spec='${libname}${release}${shared_ext}$major'
11326   shlibpath_var=LD_LIBRARY_PATH
11327   ;;
11328
11329 freebsd1*)
11330   dynamic_linker=no
11331   ;;
11332
11333 freebsd*)
11334   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11335   version_type=freebsd-$objformat
11336   case $version_type in
11337     freebsd-elf*)
11338       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11339       need_version=no
11340       need_lib_prefix=no
11341       ;;
11342     freebsd-*)
11343       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11344       need_version=yes
11345       ;;
11346   esac
11347   shlibpath_var=LD_LIBRARY_PATH
11348   case $host_os in
11349   freebsd2*)
11350     shlibpath_overrides_runpath=yes
11351     ;;
11352   freebsd3.01* | freebsdelf3.01*)
11353     shlibpath_overrides_runpath=yes
11354     hardcode_into_libs=yes
11355     ;;
11356   *) # from 3.2 on
11357     shlibpath_overrides_runpath=no
11358     hardcode_into_libs=yes
11359     ;;
11360   esac
11361   ;;
11362
11363 gnu*)
11364   version_type=linux
11365   need_lib_prefix=no
11366   need_version=no
11367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11368   soname_spec='${libname}${release}${shared_ext}$major'
11369   shlibpath_var=LD_LIBRARY_PATH
11370   hardcode_into_libs=yes
11371   ;;
11372
11373 hpux9* | hpux10* | hpux11*)
11374   # Give a soname corresponding to the major version so that dld.sl refuses to
11375   # link against other versions.
11376   version_type=sunos
11377   need_lib_prefix=no
11378   need_version=no
11379   case "$host_cpu" in
11380   ia64*)
11381     shrext='.so'
11382     hardcode_into_libs=yes
11383     dynamic_linker="$host_os dld.so"
11384     shlibpath_var=LD_LIBRARY_PATH
11385     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11387     soname_spec='${libname}${release}${shared_ext}$major'
11388     if test "X$HPUX_IA64_MODE" = X32; then
11389       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11390     else
11391       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11392     fi
11393     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11394     ;;
11395    hppa*64*)
11396      shrext='.sl'
11397      hardcode_into_libs=yes
11398      dynamic_linker="$host_os dld.sl"
11399      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11400      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11401      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402      soname_spec='${libname}${release}${shared_ext}$major'
11403      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11404      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11405      ;;
11406    *)
11407     shrext='.sl'
11408     dynamic_linker="$host_os dld.sl"
11409     shlibpath_var=SHLIB_PATH
11410     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11412     soname_spec='${libname}${release}${shared_ext}$major'
11413     ;;
11414   esac
11415   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11416   postinstall_cmds='chmod 555 $lib'
11417   ;;
11418
11419 irix5* | irix6* | nonstopux*)
11420   case $host_os in
11421     nonstopux*) version_type=nonstopux ;;
11422     *)
11423         if test "$lt_cv_prog_gnu_ld" = yes; then
11424                 version_type=linux
11425         else
11426                 version_type=irix
11427         fi ;;
11428   esac
11429   need_lib_prefix=no
11430   need_version=no
11431   soname_spec='${libname}${release}${shared_ext}$major'
11432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11433   case $host_os in
11434   irix5* | nonstopux*)
11435     libsuff= shlibsuff=
11436     ;;
11437   *)
11438     case $LD in # libtool.m4 will add one of these switches to LD
11439     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11440       libsuff= shlibsuff= libmagic=32-bit;;
11441     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11442       libsuff=32 shlibsuff=N32 libmagic=N32;;
11443     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11444       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11445     *) libsuff= shlibsuff= libmagic=never-match;;
11446     esac
11447     ;;
11448   esac
11449   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11450   shlibpath_overrides_runpath=no
11451   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11452   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11453   hardcode_into_libs=yes
11454   ;;
11455
11456 # No shared lib support for Linux oldld, aout, or coff.
11457 linux*oldld* | linux*aout* | linux*coff*)
11458   dynamic_linker=no
11459   ;;
11460
11461 # This must be Linux ELF.
11462 linux*)
11463   version_type=linux
11464   need_lib_prefix=no
11465   need_version=no
11466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467   soname_spec='${libname}${release}${shared_ext}$major'
11468   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11469   shlibpath_var=LD_LIBRARY_PATH
11470   shlibpath_overrides_runpath=no
11471   # This implies no fast_install, which is unacceptable.
11472   # Some rework will be needed to allow for fast_install
11473   # before this can be enabled.
11474   hardcode_into_libs=yes
11475
11476   # We used to test for /lib/ld.so.1 and disable shared libraries on
11477   # powerpc, because MkLinux only supported shared libraries with the
11478   # GNU dynamic linker.  Since this was broken with cross compilers,
11479   # most powerpc-linux boxes support dynamic linking these days and
11480   # people can always --disable-shared, the test was removed, and we
11481   # assume the GNU/Linux dynamic linker is in use.
11482   dynamic_linker='GNU/Linux ld.so'
11483   ;;
11484
11485 netbsd*)
11486   version_type=sunos
11487   need_lib_prefix=no
11488   need_version=no
11489   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11490     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11491     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11492     dynamic_linker='NetBSD (a.out) ld.so'
11493   else
11494     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11495     soname_spec='${libname}${release}${shared_ext}$major'
11496     dynamic_linker='NetBSD ld.elf_so'
11497   fi
11498   shlibpath_var=LD_LIBRARY_PATH
11499   shlibpath_overrides_runpath=yes
11500   hardcode_into_libs=yes
11501   ;;
11502
11503 newsos6)
11504   version_type=linux
11505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11506   shlibpath_var=LD_LIBRARY_PATH
11507   shlibpath_overrides_runpath=yes
11508   ;;
11509
11510 nto-qnx)
11511   version_type=linux
11512   need_lib_prefix=no
11513   need_version=no
11514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515   soname_spec='${libname}${release}${shared_ext}$major'
11516   shlibpath_var=LD_LIBRARY_PATH
11517   shlibpath_overrides_runpath=yes
11518   ;;
11519
11520 openbsd*)
11521   version_type=sunos
11522   need_lib_prefix=no
11523   need_version=no
11524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11525   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11526   shlibpath_var=LD_LIBRARY_PATH
11527   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11528     case $host_os in
11529       openbsd2.[89] | openbsd2.[89].*)
11530         shlibpath_overrides_runpath=no
11531         ;;
11532       *)
11533         shlibpath_overrides_runpath=yes
11534         ;;
11535       esac
11536   else
11537     shlibpath_overrides_runpath=yes
11538   fi
11539   ;;
11540
11541 os2*)
11542   libname_spec='$name'
11543   shrext=".dll"
11544   need_lib_prefix=no
11545   library_names_spec='$libname${shared_ext} $libname.a'
11546   dynamic_linker='OS/2 ld.exe'
11547   shlibpath_var=LIBPATH
11548   ;;
11549
11550 osf3* | osf4* | osf5*)
11551   version_type=osf
11552   need_lib_prefix=no
11553   need_version=no
11554   soname_spec='${libname}${release}${shared_ext}$major'
11555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556   shlibpath_var=LD_LIBRARY_PATH
11557   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11558   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11559   ;;
11560
11561 sco3.2v5*)
11562   version_type=osf
11563   soname_spec='${libname}${release}${shared_ext}$major'
11564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565   shlibpath_var=LD_LIBRARY_PATH
11566   ;;
11567
11568 solaris*)
11569   version_type=linux
11570   need_lib_prefix=no
11571   need_version=no
11572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573   soname_spec='${libname}${release}${shared_ext}$major'
11574   shlibpath_var=LD_LIBRARY_PATH
11575   shlibpath_overrides_runpath=yes
11576   hardcode_into_libs=yes
11577   # ldd complains unless libraries are executable
11578   postinstall_cmds='chmod +x $lib'
11579   ;;
11580
11581 sunos4*)
11582   version_type=sunos
11583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11584   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11585   shlibpath_var=LD_LIBRARY_PATH
11586   shlibpath_overrides_runpath=yes
11587   if test "$with_gnu_ld" = yes; then
11588     need_lib_prefix=no
11589   fi
11590   need_version=yes
11591   ;;
11592
11593 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11594   version_type=linux
11595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596   soname_spec='${libname}${release}${shared_ext}$major'
11597   shlibpath_var=LD_LIBRARY_PATH
11598   case $host_vendor in
11599     sni)
11600       shlibpath_overrides_runpath=no
11601       need_lib_prefix=no
11602       export_dynamic_flag_spec='${wl}-Blargedynsym'
11603       runpath_var=LD_RUN_PATH
11604       ;;
11605     siemens)
11606       need_lib_prefix=no
11607       ;;
11608     motorola)
11609       need_lib_prefix=no
11610       need_version=no
11611       shlibpath_overrides_runpath=no
11612       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11613       ;;
11614   esac
11615   ;;
11616
11617 sysv4*MP*)
11618   if test -d /usr/nec ;then
11619     version_type=linux
11620     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11621     soname_spec='$libname${shared_ext}.$major'
11622     shlibpath_var=LD_LIBRARY_PATH
11623   fi
11624   ;;
11625
11626 uts4*)
11627   version_type=linux
11628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629   soname_spec='${libname}${release}${shared_ext}$major'
11630   shlibpath_var=LD_LIBRARY_PATH
11631   ;;
11632
11633 *)
11634   dynamic_linker=no
11635   ;;
11636 esac
11637 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11638 echo "${ECHO_T}$dynamic_linker" >&6
11639 test "$dynamic_linker" = no && can_build_shared=no
11640
11641 if test "x$enable_dlopen" != xyes; then
11642   enable_dlopen=unknown
11643   enable_dlopen_self=unknown
11644   enable_dlopen_self_static=unknown
11645 else
11646   lt_cv_dlopen=no
11647   lt_cv_dlopen_libs=
11648
11649   case $host_os in
11650   beos*)
11651     lt_cv_dlopen="load_add_on"
11652     lt_cv_dlopen_libs=
11653     lt_cv_dlopen_self=yes
11654     ;;
11655
11656   mingw* | pw32*)
11657     lt_cv_dlopen="LoadLibrary"
11658     lt_cv_dlopen_libs=
11659    ;;
11660
11661   cygwin*)
11662     lt_cv_dlopen="dlopen"
11663     lt_cv_dlopen_libs=
11664    ;;
11665
11666   darwin*)
11667   # if libdl is installed we need to link against it
11668     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11669 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11670 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11671   echo $ECHO_N "(cached) $ECHO_C" >&6
11672 else
11673   ac_check_lib_save_LIBS=$LIBS
11674 LIBS="-ldl  $LIBS"
11675 cat >conftest.$ac_ext <<_ACEOF
11676 #line $LINENO "configure"
11677 /* confdefs.h.  */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h.  */
11682
11683 /* Override any gcc2 internal prototype to avoid an error.  */
11684 #ifdef __cplusplus
11685 extern "C"
11686 #endif
11687 /* We use char because int might match the return type of a gcc2
11688    builtin and then its argument prototype would still apply.  */
11689 char dlopen ();
11690 int
11691 main ()
11692 {
11693 dlopen ();
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700   (eval $ac_link) 2>&5
11701   ac_status=$?
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); } &&
11704          { ac_try='test -s conftest$ac_exeext'
11705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706   (eval $ac_try) 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); }; }; then
11710   ac_cv_lib_dl_dlopen=yes
11711 else
11712   echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11714
11715 ac_cv_lib_dl_dlopen=no
11716 fi
11717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11718 LIBS=$ac_check_lib_save_LIBS
11719 fi
11720 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11721 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11722 if test $ac_cv_lib_dl_dlopen = yes; then
11723   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11724 else
11725
11726     lt_cv_dlopen="dyld"
11727     lt_cv_dlopen_libs=
11728     lt_cv_dlopen_self=yes
11729
11730 fi
11731
11732    ;;
11733
11734   *)
11735     echo "$as_me:$LINENO: checking for shl_load" >&5
11736 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11737 if test "${ac_cv_func_shl_load+set}" = set; then
11738   echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740   cat >conftest.$ac_ext <<_ACEOF
11741 #line $LINENO "configure"
11742 /* confdefs.h.  */
11743 _ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h.  */
11747 /* System header to define __stub macros and hopefully few prototypes,
11748     which can conflict with char shl_load (); below.
11749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11750     <limits.h> exists even on freestanding compilers.  */
11751 #ifdef __STDC__
11752 # include <limits.h>
11753 #else
11754 # include <assert.h>
11755 #endif
11756 /* Override any gcc2 internal prototype to avoid an error.  */
11757 #ifdef __cplusplus
11758 extern "C"
11759 {
11760 #endif
11761 /* We use char because int might match the return type of a gcc2
11762    builtin and then its argument prototype would still apply.  */
11763 char shl_load ();
11764 /* The GNU C library defines this for functions which it implements
11765     to always fail with ENOSYS.  Some functions are actually named
11766     something starting with __ and the normal name is an alias.  */
11767 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11768 choke me
11769 #else
11770 char (*f) () = shl_load;
11771 #endif
11772 #ifdef __cplusplus
11773 }
11774 #endif
11775
11776 int
11777 main ()
11778 {
11779 return f != shl_load;
11780   ;
11781   return 0;
11782 }
11783 _ACEOF
11784 rm -f conftest.$ac_objext conftest$ac_exeext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11786   (eval $ac_link) 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); } &&
11790          { ac_try='test -s conftest$ac_exeext'
11791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792   (eval $ac_try) 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); }; }; then
11796   ac_cv_func_shl_load=yes
11797 else
11798   echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801 ac_cv_func_shl_load=no
11802 fi
11803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11804 fi
11805 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11806 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11807 if test $ac_cv_func_shl_load = yes; then
11808   lt_cv_dlopen="shl_load"
11809 else
11810   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11811 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11812 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11813   echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815   ac_check_lib_save_LIBS=$LIBS
11816 LIBS="-ldld  $LIBS"
11817 cat >conftest.$ac_ext <<_ACEOF
11818 #line $LINENO "configure"
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824
11825 /* Override any gcc2 internal prototype to avoid an error.  */
11826 #ifdef __cplusplus
11827 extern "C"
11828 #endif
11829 /* We use char because int might match the return type of a gcc2
11830    builtin and then its argument prototype would still apply.  */
11831 char shl_load ();
11832 int
11833 main ()
11834 {
11835 shl_load ();
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 rm -f conftest.$ac_objext conftest$ac_exeext
11841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11842   (eval $ac_link) 2>&5
11843   ac_status=$?
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); } &&
11846          { ac_try='test -s conftest$ac_exeext'
11847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848   (eval $ac_try) 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); }; }; then
11852   ac_cv_lib_dld_shl_load=yes
11853 else
11854   echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11856
11857 ac_cv_lib_dld_shl_load=no
11858 fi
11859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11860 LIBS=$ac_check_lib_save_LIBS
11861 fi
11862 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11863 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11864 if test $ac_cv_lib_dld_shl_load = yes; then
11865   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11866 else
11867   echo "$as_me:$LINENO: checking for dlopen" >&5
11868 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11869 if test "${ac_cv_func_dlopen+set}" = set; then
11870   echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872   cat >conftest.$ac_ext <<_ACEOF
11873 #line $LINENO "configure"
11874 /* confdefs.h.  */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h.  */
11879 /* System header to define __stub macros and hopefully few prototypes,
11880     which can conflict with char dlopen (); below.
11881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11882     <limits.h> exists even on freestanding compilers.  */
11883 #ifdef __STDC__
11884 # include <limits.h>
11885 #else
11886 # include <assert.h>
11887 #endif
11888 /* Override any gcc2 internal prototype to avoid an error.  */
11889 #ifdef __cplusplus
11890 extern "C"
11891 {
11892 #endif
11893 /* We use char because int might match the return type of a gcc2
11894    builtin and then its argument prototype would still apply.  */
11895 char dlopen ();
11896 /* The GNU C library defines this for functions which it implements
11897     to always fail with ENOSYS.  Some functions are actually named
11898     something starting with __ and the normal name is an alias.  */
11899 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11900 choke me
11901 #else
11902 char (*f) () = dlopen;
11903 #endif
11904 #ifdef __cplusplus
11905 }
11906 #endif
11907
11908 int
11909 main ()
11910 {
11911 return f != dlopen;
11912   ;
11913   return 0;
11914 }
11915 _ACEOF
11916 rm -f conftest.$ac_objext conftest$ac_exeext
11917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11918   (eval $ac_link) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); } &&
11922          { ac_try='test -s conftest$ac_exeext'
11923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924   (eval $ac_try) 2>&5
11925   ac_status=$?
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); }; }; then
11928   ac_cv_func_dlopen=yes
11929 else
11930   echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11932
11933 ac_cv_func_dlopen=no
11934 fi
11935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11936 fi
11937 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11938 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11939 if test $ac_cv_func_dlopen = yes; then
11940   lt_cv_dlopen="dlopen"
11941 else
11942   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11943 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11945   echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947   ac_check_lib_save_LIBS=$LIBS
11948 LIBS="-ldl  $LIBS"
11949 cat >conftest.$ac_ext <<_ACEOF
11950 #line $LINENO "configure"
11951 /* confdefs.h.  */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h.  */
11956
11957 /* Override any gcc2 internal prototype to avoid an error.  */
11958 #ifdef __cplusplus
11959 extern "C"
11960 #endif
11961 /* We use char because int might match the return type of a gcc2
11962    builtin and then its argument prototype would still apply.  */
11963 char dlopen ();
11964 int
11965 main ()
11966 {
11967 dlopen ();
11968   ;
11969   return 0;
11970 }
11971 _ACEOF
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11974   (eval $ac_link) 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); } &&
11978          { ac_try='test -s conftest$ac_exeext'
11979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980   (eval $ac_try) 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); }; }; then
11984   ac_cv_lib_dl_dlopen=yes
11985 else
11986   echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11988
11989 ac_cv_lib_dl_dlopen=no
11990 fi
11991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11992 LIBS=$ac_check_lib_save_LIBS
11993 fi
11994 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11995 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11996 if test $ac_cv_lib_dl_dlopen = yes; then
11997   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11998 else
11999   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12000 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12001 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12002   echo $ECHO_N "(cached) $ECHO_C" >&6
12003 else
12004   ac_check_lib_save_LIBS=$LIBS
12005 LIBS="-lsvld  $LIBS"
12006 cat >conftest.$ac_ext <<_ACEOF
12007 #line $LINENO "configure"
12008 /* confdefs.h.  */
12009 _ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h.  */
12013
12014 /* Override any gcc2 internal prototype to avoid an error.  */
12015 #ifdef __cplusplus
12016 extern "C"
12017 #endif
12018 /* We use char because int might match the return type of a gcc2
12019    builtin and then its argument prototype would still apply.  */
12020 char dlopen ();
12021 int
12022 main ()
12023 {
12024 dlopen ();
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031   (eval $ac_link) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); } &&
12035          { ac_try='test -s conftest$ac_exeext'
12036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037   (eval $ac_try) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); }; }; then
12041   ac_cv_lib_svld_dlopen=yes
12042 else
12043   echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12045
12046 ac_cv_lib_svld_dlopen=no
12047 fi
12048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12049 LIBS=$ac_check_lib_save_LIBS
12050 fi
12051 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12052 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12053 if test $ac_cv_lib_svld_dlopen = yes; then
12054   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12055 else
12056   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12057 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12058 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12059   echo $ECHO_N "(cached) $ECHO_C" >&6
12060 else
12061   ac_check_lib_save_LIBS=$LIBS
12062 LIBS="-ldld  $LIBS"
12063 cat >conftest.$ac_ext <<_ACEOF
12064 #line $LINENO "configure"
12065 /* confdefs.h.  */
12066 _ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h.  */
12070
12071 /* Override any gcc2 internal prototype to avoid an error.  */
12072 #ifdef __cplusplus
12073 extern "C"
12074 #endif
12075 /* We use char because int might match the return type of a gcc2
12076    builtin and then its argument prototype would still apply.  */
12077 char dld_link ();
12078 int
12079 main ()
12080 {
12081 dld_link ();
12082   ;
12083   return 0;
12084 }
12085 _ACEOF
12086 rm -f conftest.$ac_objext conftest$ac_exeext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12088   (eval $ac_link) 2>&5
12089   ac_status=$?
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); } &&
12092          { ac_try='test -s conftest$ac_exeext'
12093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094   (eval $ac_try) 2>&5
12095   ac_status=$?
12096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097   (exit $ac_status); }; }; then
12098   ac_cv_lib_dld_dld_link=yes
12099 else
12100   echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12102
12103 ac_cv_lib_dld_dld_link=no
12104 fi
12105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12106 LIBS=$ac_check_lib_save_LIBS
12107 fi
12108 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12109 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12110 if test $ac_cv_lib_dld_dld_link = yes; then
12111   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12112 fi
12113
12114
12115 fi
12116
12117
12118 fi
12119
12120
12121 fi
12122
12123
12124 fi
12125
12126
12127 fi
12128
12129     ;;
12130   esac
12131
12132   if test "x$lt_cv_dlopen" != xno; then
12133     enable_dlopen=yes
12134   else
12135     enable_dlopen=no
12136   fi
12137
12138   case $lt_cv_dlopen in
12139   dlopen)
12140     save_CPPFLAGS="$CPPFLAGS"
12141     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12142
12143     save_LDFLAGS="$LDFLAGS"
12144     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12145
12146     save_LIBS="$LIBS"
12147     LIBS="$lt_cv_dlopen_libs $LIBS"
12148
12149     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12150 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12151 if test "${lt_cv_dlopen_self+set}" = set; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154           if test "$cross_compiling" = yes; then :
12155   lt_cv_dlopen_self=cross
12156 else
12157   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12158   lt_status=$lt_dlunknown
12159   cat > conftest.$ac_ext <<EOF
12160 #line 12160 "configure"
12161 #include "confdefs.h"
12162
12163 #if HAVE_DLFCN_H
12164 #include <dlfcn.h>
12165 #endif
12166
12167 #include <stdio.h>
12168
12169 #ifdef RTLD_GLOBAL
12170 #  define LT_DLGLOBAL           RTLD_GLOBAL
12171 #else
12172 #  ifdef DL_GLOBAL
12173 #    define LT_DLGLOBAL         DL_GLOBAL
12174 #  else
12175 #    define LT_DLGLOBAL         0
12176 #  endif
12177 #endif
12178
12179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12180    find out it does not work in some platform. */
12181 #ifndef LT_DLLAZY_OR_NOW
12182 #  ifdef RTLD_LAZY
12183 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12184 #  else
12185 #    ifdef DL_LAZY
12186 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12187 #    else
12188 #      ifdef RTLD_NOW
12189 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12190 #      else
12191 #        ifdef DL_NOW
12192 #          define LT_DLLAZY_OR_NOW      DL_NOW
12193 #        else
12194 #          define LT_DLLAZY_OR_NOW      0
12195 #        endif
12196 #      endif
12197 #    endif
12198 #  endif
12199 #endif
12200
12201 #ifdef __cplusplus
12202 extern "C" void exit (int);
12203 #endif
12204
12205 void fnord() { int i=42;}
12206 int main ()
12207 {
12208   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12209   int status = $lt_dlunknown;
12210
12211   if (self)
12212     {
12213       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12214       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12215       /* dlclose (self); */
12216     }
12217
12218     exit (status);
12219 }
12220 EOF
12221   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12222   (eval $ac_link) 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12226     (./conftest; exit; ) 2>/dev/null
12227     lt_status=$?
12228     case x$lt_status in
12229       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12230       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12231       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12232     esac
12233   else :
12234     # compilation failed
12235     lt_cv_dlopen_self=no
12236   fi
12237 fi
12238 rm -fr conftest*
12239
12240
12241 fi
12242 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12243 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12244
12245     if test "x$lt_cv_dlopen_self" = xyes; then
12246       LDFLAGS="$LDFLAGS $link_static_flag"
12247       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12248 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12249 if test "${lt_cv_dlopen_self_static+set}" = set; then
12250   echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252           if test "$cross_compiling" = yes; then :
12253   lt_cv_dlopen_self_static=cross
12254 else
12255   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12256   lt_status=$lt_dlunknown
12257   cat > conftest.$ac_ext <<EOF
12258 #line 12258 "configure"
12259 #include "confdefs.h"
12260
12261 #if HAVE_DLFCN_H
12262 #include <dlfcn.h>
12263 #endif
12264
12265 #include <stdio.h>
12266
12267 #ifdef RTLD_GLOBAL
12268 #  define LT_DLGLOBAL           RTLD_GLOBAL
12269 #else
12270 #  ifdef DL_GLOBAL
12271 #    define LT_DLGLOBAL         DL_GLOBAL
12272 #  else
12273 #    define LT_DLGLOBAL         0
12274 #  endif
12275 #endif
12276
12277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12278    find out it does not work in some platform. */
12279 #ifndef LT_DLLAZY_OR_NOW
12280 #  ifdef RTLD_LAZY
12281 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12282 #  else
12283 #    ifdef DL_LAZY
12284 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12285 #    else
12286 #      ifdef RTLD_NOW
12287 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12288 #      else
12289 #        ifdef DL_NOW
12290 #          define LT_DLLAZY_OR_NOW      DL_NOW
12291 #        else
12292 #          define LT_DLLAZY_OR_NOW      0
12293 #        endif
12294 #      endif
12295 #    endif
12296 #  endif
12297 #endif
12298
12299 #ifdef __cplusplus
12300 extern "C" void exit (int);
12301 #endif
12302
12303 void fnord() { int i=42;}
12304 int main ()
12305 {
12306   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12307   int status = $lt_dlunknown;
12308
12309   if (self)
12310     {
12311       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12312       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12313       /* dlclose (self); */
12314     }
12315
12316     exit (status);
12317 }
12318 EOF
12319   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12320   (eval $ac_link) 2>&5
12321   ac_status=$?
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12324     (./conftest; exit; ) 2>/dev/null
12325     lt_status=$?
12326     case x$lt_status in
12327       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12328       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12329       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12330     esac
12331   else :
12332     # compilation failed
12333     lt_cv_dlopen_self_static=no
12334   fi
12335 fi
12336 rm -fr conftest*
12337
12338
12339 fi
12340 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12341 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12342     fi
12343
12344     CPPFLAGS="$save_CPPFLAGS"
12345     LDFLAGS="$save_LDFLAGS"
12346     LIBS="$save_LIBS"
12347     ;;
12348   esac
12349
12350   case $lt_cv_dlopen_self in
12351   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12352   *) enable_dlopen_self=unknown ;;
12353   esac
12354
12355   case $lt_cv_dlopen_self_static in
12356   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12357   *) enable_dlopen_self_static=unknown ;;
12358   esac
12359 fi
12360
12361
12362 # The else clause should only fire when bootstrapping the
12363 # libtool distribution, otherwise you forgot to ship ltmain.sh
12364 # with your package, and you will get complaints that there are
12365 # no rules to generate ltmain.sh.
12366 if test -f "$ltmain"; then
12367   # See if we are running on zsh, and set the options which allow our commands through
12368   # without removal of \ escapes.
12369   if test -n "${ZSH_VERSION+set}" ; then
12370     setopt NO_GLOB_SUBST
12371   fi
12372   # Now quote all the things that may contain metacharacters while being
12373   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12374   # variables and quote the copies for generation of the libtool script.
12375   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12376     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12377     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12378     deplibs_check_method reload_flag reload_cmds need_locks \
12379     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12380     lt_cv_sys_global_symbol_to_c_name_address \
12381     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12382     old_postinstall_cmds old_postuninstall_cmds \
12383     compiler_CXX \
12384     CC_CXX \
12385     LD_CXX \
12386     lt_prog_compiler_wl_CXX \
12387     lt_prog_compiler_pic_CXX \
12388     lt_prog_compiler_static_CXX \
12389     lt_prog_compiler_no_builtin_flag_CXX \
12390     export_dynamic_flag_spec_CXX \
12391     thread_safe_flag_spec_CXX \
12392     whole_archive_flag_spec_CXX \
12393     enable_shared_with_static_runtimes_CXX \
12394     old_archive_cmds_CXX \
12395     old_archive_from_new_cmds_CXX \
12396     predep_objects_CXX \
12397     postdep_objects_CXX \
12398     predeps_CXX \
12399     postdeps_CXX \
12400     compiler_lib_search_path_CXX \
12401     archive_cmds_CXX \
12402     archive_expsym_cmds_CXX \
12403     postinstall_cmds_CXX \
12404     postuninstall_cmds_CXX \
12405     old_archive_from_expsyms_cmds_CXX \
12406     allow_undefined_flag_CXX \
12407     no_undefined_flag_CXX \
12408     export_symbols_cmds_CXX \
12409     hardcode_libdir_flag_spec_CXX \
12410     hardcode_libdir_flag_spec_ld_CXX \
12411     hardcode_libdir_separator_CXX \
12412     hardcode_automatic_CXX \
12413     module_cmds_CXX \
12414     module_expsym_cmds_CXX \
12415     lt_cv_prog_compiler_c_o_CXX \
12416     exclude_expsyms_CXX \
12417     include_expsyms_CXX; do
12418
12419     case $var in
12420     old_archive_cmds_CXX | \
12421     old_archive_from_new_cmds_CXX | \
12422     archive_cmds_CXX | \
12423     archive_expsym_cmds_CXX | \
12424     module_cmds_CXX | \
12425     module_expsym_cmds_CXX | \
12426     old_archive_from_expsyms_cmds_CXX | \
12427     export_symbols_cmds_CXX | \
12428     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12429     postinstall_cmds | postuninstall_cmds | \
12430     old_postinstall_cmds | old_postuninstall_cmds | \
12431     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12432       # Double-quote double-evaled strings.
12433       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12434       ;;
12435     *)
12436       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12437       ;;
12438     esac
12439   done
12440
12441   case $lt_echo in
12442   *'\$0 --fallback-echo"')
12443     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12444     ;;
12445   esac
12446
12447 cfgfile="$ofile"
12448
12449   cat <<__EOF__ >> "$cfgfile"
12450 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12451
12452 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12453
12454 # Shell to use when invoking shell scripts.
12455 SHELL=$lt_SHELL
12456
12457 # Whether or not to build shared libraries.
12458 build_libtool_libs=$enable_shared
12459
12460 # Whether or not to build static libraries.
12461 build_old_libs=$enable_static
12462
12463 # Whether or not to add -lc for building shared libraries.
12464 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12465
12466 # Whether or not to disallow shared libs when runtime libs are static
12467 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12468
12469 # Whether or not to optimize for fast installation.
12470 fast_install=$enable_fast_install
12471
12472 # The host system.
12473 host_alias=$host_alias
12474 host=$host
12475
12476 # An echo program that does not interpret backslashes.
12477 echo=$lt_echo
12478
12479 # The archiver.
12480 AR=$lt_AR
12481 AR_FLAGS=$lt_AR_FLAGS
12482
12483 # A C compiler.
12484 LTCC=$lt_LTCC
12485
12486 # A language-specific compiler.
12487 CC=$lt_compiler_CXX
12488
12489 # Is the compiler the GNU C compiler?
12490 with_gcc=$GCC_CXX
12491
12492 # An ERE matcher.
12493 EGREP=$lt_EGREP
12494
12495 # The linker used to build libraries.
12496 LD=$lt_LD_CXX
12497
12498 # Whether we need hard or soft links.
12499 LN_S=$lt_LN_S
12500
12501 # A BSD-compatible nm program.
12502 NM=$lt_NM
12503
12504 # A symbol stripping program
12505 STRIP=$STRIP
12506
12507 # Used to examine libraries when file_magic_cmd begins "file"
12508 MAGIC_CMD=$MAGIC_CMD
12509
12510 # Used on cygwin: DLL creation program.
12511 DLLTOOL="$DLLTOOL"
12512
12513 # Used on cygwin: object dumper.
12514 OBJDUMP="$OBJDUMP"
12515
12516 # Used on cygwin: assembler.
12517 AS="$AS"
12518
12519 # The name of the directory that contains temporary libtool files.
12520 objdir=$objdir
12521
12522 # How to create reloadable object files.
12523 reload_flag=$lt_reload_flag
12524 reload_cmds=$lt_reload_cmds
12525
12526 # How to pass a linker flag through the compiler.
12527 wl=$lt_lt_prog_compiler_wl_CXX
12528
12529 # Object file suffix (normally "o").
12530 objext="$ac_objext"
12531
12532 # Old archive suffix (normally "a").
12533 libext="$libext"
12534
12535 # Shared library suffix (normally ".so").
12536 shrext='$shrext'
12537
12538 # Executable file suffix (normally "").
12539 exeext="$exeext"
12540
12541 # Additional compiler flags for building library objects.
12542 pic_flag=$lt_lt_prog_compiler_pic_CXX
12543 pic_mode=$pic_mode
12544
12545 # What is the maximum length of a command?
12546 max_cmd_len=$lt_cv_sys_max_cmd_len
12547
12548 # Does compiler simultaneously support -c and -o options?
12549 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12550
12551 # Must we lock files when doing compilation ?
12552 need_locks=$lt_need_locks
12553
12554 # Do we need the lib prefix for modules?
12555 need_lib_prefix=$need_lib_prefix
12556
12557 # Do we need a version for libraries?
12558 need_version=$need_version
12559
12560 # Whether dlopen is supported.
12561 dlopen_support=$enable_dlopen
12562
12563 # Whether dlopen of programs is supported.
12564 dlopen_self=$enable_dlopen_self
12565
12566 # Whether dlopen of statically linked programs is supported.
12567 dlopen_self_static=$enable_dlopen_self_static
12568
12569 # Compiler flag to prevent dynamic linking.
12570 link_static_flag=$lt_lt_prog_compiler_static_CXX
12571
12572 # Compiler flag to turn off builtin functions.
12573 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12574
12575 # Compiler flag to allow reflexive dlopens.
12576 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12577
12578 # Compiler flag to generate shared objects directly from archives.
12579 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12580
12581 # Compiler flag to generate thread-safe objects.
12582 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12583
12584 # Library versioning type.
12585 version_type=$version_type
12586
12587 # Format of library name prefix.
12588 libname_spec=$lt_libname_spec
12589
12590 # List of archive names.  First name is the real one, the rest are links.
12591 # The last name is the one that the linker finds with -lNAME.
12592 library_names_spec=$lt_library_names_spec
12593
12594 # The coded name of the library, if different from the real name.
12595 soname_spec=$lt_soname_spec
12596
12597 # Commands used to build and install an old-style archive.
12598 RANLIB=$lt_RANLIB
12599 old_archive_cmds=$lt_old_archive_cmds_CXX
12600 old_postinstall_cmds=$lt_old_postinstall_cmds
12601 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12602
12603 # Create an old-style archive from a shared archive.
12604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12605
12606 # Create a temporary old-style archive to link instead of a shared archive.
12607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12608
12609 # Commands used to build and install a shared archive.
12610 archive_cmds=$lt_archive_cmds_CXX
12611 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12612 postinstall_cmds=$lt_postinstall_cmds
12613 postuninstall_cmds=$lt_postuninstall_cmds
12614
12615 # Commands used to build a loadable module (assumed same as above if empty)
12616 module_cmds=$lt_module_cmds_CXX
12617 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12618
12619 # Commands to strip libraries.
12620 old_striplib=$lt_old_striplib
12621 striplib=$lt_striplib
12622
12623 # Dependencies to place before the objects being linked to create a
12624 # shared library.
12625 predep_objects=$lt_predep_objects_CXX
12626
12627 # Dependencies to place after the objects being linked to create a
12628 # shared library.
12629 postdep_objects=$lt_postdep_objects_CXX
12630
12631 # Dependencies to place before the objects being linked to create a
12632 # shared library.
12633 predeps=$lt_predeps_CXX
12634
12635 # Dependencies to place after the objects being linked to create a
12636 # shared library.
12637 postdeps=$lt_postdeps_CXX
12638
12639 # The library search path used internally by the compiler when linking
12640 # a shared library.
12641 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12642
12643 # Method to check whether dependent libraries are shared objects.
12644 deplibs_check_method=$lt_deplibs_check_method
12645
12646 # Command to use when deplibs_check_method == file_magic.
12647 file_magic_cmd=$lt_file_magic_cmd
12648
12649 # Flag that allows shared libraries with undefined symbols to be built.
12650 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12651
12652 # Flag that forces no undefined symbols.
12653 no_undefined_flag=$lt_no_undefined_flag_CXX
12654
12655 # Commands used to finish a libtool library installation in a directory.
12656 finish_cmds=$lt_finish_cmds
12657
12658 # Same as above, but a single script fragment to be evaled but not shown.
12659 finish_eval=$lt_finish_eval
12660
12661 # Take the output of nm and produce a listing of raw symbols and C names.
12662 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12663
12664 # Transform the output of nm in a proper C declaration
12665 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12666
12667 # Transform the output of nm in a C name address pair
12668 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12669
12670 # This is the shared library runtime path variable.
12671 runpath_var=$runpath_var
12672
12673 # This is the shared library path variable.
12674 shlibpath_var=$shlibpath_var
12675
12676 # Is shlibpath searched before the hard-coded library search path?
12677 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12678
12679 # How to hardcode a shared library path into an executable.
12680 hardcode_action=$hardcode_action_CXX
12681
12682 # Whether we should hardcode library paths into libraries.
12683 hardcode_into_libs=$hardcode_into_libs
12684
12685 # Flag to hardcode \$libdir into a binary during linking.
12686 # This must work even if \$libdir does not exist.
12687 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12688
12689 # If ld is used when linking, flag to hardcode \$libdir into
12690 # a binary during linking. This must work even if \$libdir does
12691 # not exist.
12692 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12693
12694 # Whether we need a single -rpath flag with a separated argument.
12695 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12696
12697 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12698 # resulting binary.
12699 hardcode_direct=$hardcode_direct_CXX
12700
12701 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12702 # resulting binary.
12703 hardcode_minus_L=$hardcode_minus_L_CXX
12704
12705 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12706 # the resulting binary.
12707 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12708
12709 # Set to yes if building a shared library automatically hardcodes DIR into the library
12710 # and all subsequent libraries and executables linked against it.
12711 hardcode_automatic=$hardcode_automatic_CXX
12712
12713 # Variables whose values should be saved in libtool wrapper scripts and
12714 # restored at relink time.
12715 variables_saved_for_relink="$variables_saved_for_relink"
12716
12717 # Whether libtool must link a program against all its dependency libraries.
12718 link_all_deplibs=$link_all_deplibs_CXX
12719
12720 # Compile-time system search path for libraries
12721 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12722
12723 # Run-time system search path for libraries
12724 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12725
12726 # Fix the shell variable \$srcfile for the compiler.
12727 fix_srcfile_path="$fix_srcfile_path_CXX"
12728
12729 # Set to yes if exported symbols are required.
12730 always_export_symbols=$always_export_symbols_CXX
12731
12732 # The commands to list exported symbols.
12733 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12734
12735 # The commands to extract the exported symbol list from a shared archive.
12736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12737
12738 # Symbols that should not be listed in the preloaded symbols.
12739 exclude_expsyms=$lt_exclude_expsyms_CXX
12740
12741 # Symbols that must always be exported.
12742 include_expsyms=$lt_include_expsyms_CXX
12743
12744 # ### END LIBTOOL TAG CONFIG: $tagname
12745
12746 __EOF__
12747
12748
12749 else
12750   # If there is no Makefile yet, we rely on a make rule to execute
12751   # `config.status --recheck' to rerun these tests and create the
12752   # libtool script then.
12753   test -f Makefile && make "$ltmain"
12754 fi
12755
12756
12757 ac_ext=c
12758 ac_cpp='$CPP $CPPFLAGS'
12759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12762
12763 CC=$lt_save_CC
12764 LDCXX=$LD
12765 LD=$lt_save_LD
12766 GCC=$lt_save_GCC
12767 with_gnu_ldcxx=$with_gnu_ld
12768 with_gnu_ld=$lt_save_with_gnu_ld
12769 lt_cv_path_LDCXX=$lt_cv_path_LD
12770 lt_cv_path_LD=$lt_save_path_LD
12771 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12772 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12773
12774         else
12775           tagname=""
12776         fi
12777         ;;
12778
12779       F77)
12780         if test -n "$F77" && test "X$F77" != "Xno"; then
12781
12782 ac_ext=f
12783 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12784 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12785 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12786
12787
12788 archive_cmds_need_lc_F77=no
12789 allow_undefined_flag_F77=
12790 always_export_symbols_F77=no
12791 archive_expsym_cmds_F77=
12792 export_dynamic_flag_spec_F77=
12793 hardcode_direct_F77=no
12794 hardcode_libdir_flag_spec_F77=
12795 hardcode_libdir_flag_spec_ld_F77=
12796 hardcode_libdir_separator_F77=
12797 hardcode_minus_L_F77=no
12798 hardcode_automatic_F77=no
12799 module_cmds_F77=
12800 module_expsym_cmds_F77=
12801 link_all_deplibs_F77=unknown
12802 old_archive_cmds_F77=$old_archive_cmds
12803 no_undefined_flag_F77=
12804 whole_archive_flag_spec_F77=
12805 enable_shared_with_static_runtimes_F77=no
12806
12807 # Source file extension for f77 test sources.
12808 ac_ext=f
12809
12810 # Object file extension for compiled f77 test sources.
12811 objext=o
12812 objext_F77=$objext
12813
12814 # Code to be used in simple compile tests
12815 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12816
12817 # Code to be used in simple link tests
12818 lt_simple_link_test_code="      program t\n      end\n"
12819
12820 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12821
12822 # If no C compiler was specified, use CC.
12823 LTCC=${LTCC-"$CC"}
12824
12825 # Allow CC to be a program name with arguments.
12826 compiler=$CC
12827
12828
12829 # Allow CC to be a program name with arguments.
12830 lt_save_CC="$CC"
12831 CC=${F77-"f77"}
12832 compiler=$CC
12833 compiler_F77=$CC
12834 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12835
12836 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12837 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12838 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12839 echo "${ECHO_T}$can_build_shared" >&6
12840
12841 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12842 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12843 test "$can_build_shared" = "no" && enable_shared=no
12844
12845 # On AIX, shared libraries and static libraries use the same namespace, and
12846 # are all built from PIC.
12847 case "$host_os" in
12848 aix3*)
12849   test "$enable_shared" = yes && enable_static=no
12850   if test -n "$RANLIB"; then
12851     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12852     postinstall_cmds='$RANLIB $lib'
12853   fi
12854   ;;
12855 aix4*)
12856   test "$enable_shared" = yes && enable_static=no
12857   ;;
12858 esac
12859 echo "$as_me:$LINENO: result: $enable_shared" >&5
12860 echo "${ECHO_T}$enable_shared" >&6
12861
12862 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12863 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12864 # Make sure either enable_shared or enable_static is yes.
12865 test "$enable_shared" = yes || enable_static=yes
12866 echo "$as_me:$LINENO: result: $enable_static" >&5
12867 echo "${ECHO_T}$enable_static" >&6
12868
12869 test "$ld_shlibs_F77" = no && can_build_shared=no
12870
12871 GCC_F77="$G77"
12872 LD_F77="$LD"
12873
12874 lt_prog_compiler_wl_F77=
12875 lt_prog_compiler_pic_F77=
12876 lt_prog_compiler_static_F77=
12877
12878 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12879 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12880
12881   if test "$GCC" = yes; then
12882     lt_prog_compiler_wl_F77='-Wl,'
12883     lt_prog_compiler_static_F77='-static'
12884
12885     case $host_os in
12886       aix*)
12887       # All AIX code is PIC.
12888       if test "$host_cpu" = ia64; then
12889         # AIX 5 now supports IA64 processor
12890         lt_prog_compiler_static_F77='-Bstatic'
12891       fi
12892       ;;
12893
12894     amigaos*)
12895       # FIXME: we need at least 68020 code to build shared libraries, but
12896       # adding the `-m68020' flag to GCC prevents building anything better,
12897       # like `-m68040'.
12898       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12899       ;;
12900
12901     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12902       # PIC is the default for these OSes.
12903       ;;
12904
12905     mingw* | pw32* | os2*)
12906       # This hack is so that the source file can tell whether it is being
12907       # built for inclusion in a dll (and should export symbols for example).
12908       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12909       ;;
12910
12911     darwin* | rhapsody*)
12912       # PIC is the default on this platform
12913       # Common symbols not allowed in MH_DYLIB files
12914       lt_prog_compiler_pic_F77='-fno-common'
12915       ;;
12916
12917     msdosdjgpp*)
12918       # Just because we use GCC doesn't mean we suddenly get shared libraries
12919       # on systems that don't support them.
12920       lt_prog_compiler_can_build_shared_F77=no
12921       enable_shared=no
12922       ;;
12923
12924     sysv4*MP*)
12925       if test -d /usr/nec; then
12926         lt_prog_compiler_pic_F77=-Kconform_pic
12927       fi
12928       ;;
12929
12930     hpux*)
12931       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12932       # not for PA HP-UX.
12933       case "$host_cpu" in
12934       hppa*64*|ia64*)
12935         # +Z the default
12936         ;;
12937       *)
12938         lt_prog_compiler_pic_F77='-fPIC'
12939         ;;
12940       esac
12941       ;;
12942
12943     *)
12944       lt_prog_compiler_pic_F77='-fPIC'
12945       ;;
12946     esac
12947   else
12948     # PORTME Check for flag to pass linker flags through the system compiler.
12949     case $host_os in
12950     aix*)
12951       lt_prog_compiler_wl_F77='-Wl,'
12952       if test "$host_cpu" = ia64; then
12953         # AIX 5 now supports IA64 processor
12954         lt_prog_compiler_static_F77='-Bstatic'
12955       else
12956         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12957       fi
12958       ;;
12959
12960     mingw* | pw32* | os2*)
12961       # This hack is so that the source file can tell whether it is being
12962       # built for inclusion in a dll (and should export symbols for example).
12963       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12964       ;;
12965
12966     hpux9* | hpux10* | hpux11*)
12967       lt_prog_compiler_wl_F77='-Wl,'
12968       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12969       # not for PA HP-UX.
12970       case "$host_cpu" in
12971       hppa*64*|ia64*)
12972         # +Z the default
12973         ;;
12974       *)
12975         lt_prog_compiler_pic_F77='+Z'
12976         ;;
12977       esac
12978       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12979       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12980       ;;
12981
12982     irix5* | irix6* | nonstopux*)
12983       lt_prog_compiler_wl_F77='-Wl,'
12984       # PIC (with -KPIC) is the default.
12985       lt_prog_compiler_static_F77='-non_shared'
12986       ;;
12987
12988     newsos6)
12989       lt_prog_compiler_pic_F77='-KPIC'
12990       lt_prog_compiler_static_F77='-Bstatic'
12991       ;;
12992
12993     linux*)
12994       case $CC in
12995       icc|ecc)
12996         lt_prog_compiler_wl_F77='-Wl,'
12997         lt_prog_compiler_pic_F77='-KPIC'
12998         lt_prog_compiler_static_F77='-static'
12999         ;;
13000       ccc)
13001         lt_prog_compiler_wl_F77='-Wl,'
13002         # All Alpha code is PIC.
13003         lt_prog_compiler_static_F77='-non_shared'
13004         ;;
13005       esac
13006       ;;
13007
13008     osf3* | osf4* | osf5*)
13009       lt_prog_compiler_wl_F77='-Wl,'
13010       # All OSF/1 code is PIC.
13011       lt_prog_compiler_static_F77='-non_shared'
13012       ;;
13013
13014     sco3.2v5*)
13015       lt_prog_compiler_pic_F77='-Kpic'
13016       lt_prog_compiler_static_F77='-dn'
13017       ;;
13018
13019     solaris*)
13020       lt_prog_compiler_wl_F77='-Wl,'
13021       lt_prog_compiler_pic_F77='-KPIC'
13022       lt_prog_compiler_static_F77='-Bstatic'
13023       ;;
13024
13025     sunos4*)
13026       lt_prog_compiler_wl_F77='-Qoption ld '
13027       lt_prog_compiler_pic_F77='-PIC'
13028       lt_prog_compiler_static_F77='-Bstatic'
13029       ;;
13030
13031     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13032       lt_prog_compiler_wl_F77='-Wl,'
13033       lt_prog_compiler_pic_F77='-KPIC'
13034       lt_prog_compiler_static_F77='-Bstatic'
13035       ;;
13036
13037     sysv4*MP*)
13038       if test -d /usr/nec ;then
13039         lt_prog_compiler_pic_F77='-Kconform_pic'
13040         lt_prog_compiler_static_F77='-Bstatic'
13041       fi
13042       ;;
13043
13044     uts4*)
13045       lt_prog_compiler_pic_F77='-pic'
13046       lt_prog_compiler_static_F77='-Bstatic'
13047       ;;
13048
13049     *)
13050       lt_prog_compiler_can_build_shared_F77=no
13051       ;;
13052     esac
13053   fi
13054
13055 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13056 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13057
13058 #
13059 # Check to make sure the PIC flag actually works.
13060 #
13061 if test -n "$lt_prog_compiler_pic_F77"; then
13062   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13063 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13064 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13065   echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067   lt_prog_compiler_pic_works_F77=no
13068   ac_outfile=conftest.$ac_objext
13069    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13070    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13071    # Insert the option either (1) after the last *FLAGS variable, or
13072    # (2) before a word containing "conftest.", or (3) at the end.
13073    # Note that $ac_compile itself does not contain backslashes and begins
13074    # with a dollar sign (not a hyphen), so the echo should work correctly.
13075    # The option is referenced via a variable to avoid confusing sed.
13076    lt_compile=`echo "$ac_compile" | $SED \
13077    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13078    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13079    -e 's:$: $lt_compiler_flag:'`
13080    (eval echo "\"\$as_me:13080: $lt_compile\"" >&5)
13081    (eval "$lt_compile" 2>conftest.err)
13082    ac_status=$?
13083    cat conftest.err >&5
13084    echo "$as_me:13084: \$? = $ac_status" >&5
13085    if (exit $ac_status) && test -s "$ac_outfile"; then
13086      # The compiler can only warn and ignore the option if not recognized
13087      # So say no if there are warnings
13088      if test ! -s conftest.err; then
13089        lt_prog_compiler_pic_works_F77=yes
13090      fi
13091    fi
13092    $rm conftest*
13093
13094 fi
13095 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13096 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13097
13098 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13099     case $lt_prog_compiler_pic_F77 in
13100      "" | " "*) ;;
13101      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13102      esac
13103 else
13104     lt_prog_compiler_pic_F77=
13105      lt_prog_compiler_can_build_shared_F77=no
13106 fi
13107
13108 fi
13109 case "$host_os" in
13110   # For platforms which do not support PIC, -DPIC is meaningless:
13111   *djgpp*)
13112     lt_prog_compiler_pic_F77=
13113     ;;
13114   *)
13115     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13116     ;;
13117 esac
13118
13119 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13120 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13121 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13122   echo $ECHO_N "(cached) $ECHO_C" >&6
13123 else
13124   lt_cv_prog_compiler_c_o_F77=no
13125    $rm -r conftest 2>/dev/null
13126    mkdir conftest
13127    cd conftest
13128    mkdir out
13129    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13130
13131    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13132    # that will create temporary files in the current directory regardless of
13133    # the output directory.  Thus, making CWD read-only will cause this test
13134    # to fail, enabling locking or at least warning the user not to do parallel
13135    # builds.
13136    chmod -w .
13137
13138    lt_compiler_flag="-o out/conftest2.$ac_objext"
13139    # Insert the option either (1) after the last *FLAGS variable, or
13140    # (2) before a word containing "conftest.", or (3) at the end.
13141    # Note that $ac_compile itself does not contain backslashes and begins
13142    # with a dollar sign (not a hyphen), so the echo should work correctly.
13143    lt_compile=`echo "$ac_compile" | $SED \
13144    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13145    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13146    -e 's:$: $lt_compiler_flag:'`
13147    (eval echo "\"\$as_me:13147: $lt_compile\"" >&5)
13148    (eval "$lt_compile" 2>out/conftest.err)
13149    ac_status=$?
13150    cat out/conftest.err >&5
13151    echo "$as_me:13151: \$? = $ac_status" >&5
13152    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13153    then
13154      # The compiler can only warn and ignore the option if not recognized
13155      # So say no if there are warnings
13156      if test ! -s out/conftest.err; then
13157        lt_cv_prog_compiler_c_o_F77=yes
13158      fi
13159    fi
13160    chmod u+w .
13161    $rm conftest* out/*
13162    rmdir out
13163    cd ..
13164    rmdir conftest
13165    $rm conftest*
13166
13167 fi
13168 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13169 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13170
13171
13172 hard_links="nottested"
13173 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13174   # do not overwrite the value of need_locks provided by the user
13175   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13176 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13177   hard_links=yes
13178   $rm conftest*
13179   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13180   touch conftest.a
13181   ln conftest.a conftest.b 2>&5 || hard_links=no
13182   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13183   echo "$as_me:$LINENO: result: $hard_links" >&5
13184 echo "${ECHO_T}$hard_links" >&6
13185   if test "$hard_links" = no; then
13186     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13187 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13188     need_locks=warn
13189   fi
13190 else
13191   need_locks=no
13192 fi
13193
13194 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13195 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13196
13197   runpath_var=
13198   allow_undefined_flag_F77=
13199   enable_shared_with_static_runtimes_F77=no
13200   archive_cmds_F77=
13201   archive_expsym_cmds_F77=
13202   old_archive_From_new_cmds_F77=
13203   old_archive_from_expsyms_cmds_F77=
13204   export_dynamic_flag_spec_F77=
13205   whole_archive_flag_spec_F77=
13206   thread_safe_flag_spec_F77=
13207   hardcode_libdir_flag_spec_F77=
13208   hardcode_libdir_flag_spec_ld_F77=
13209   hardcode_libdir_separator_F77=
13210   hardcode_direct_F77=no
13211   hardcode_minus_L_F77=no
13212   hardcode_shlibpath_var_F77=unsupported
13213   link_all_deplibs_F77=unknown
13214   hardcode_automatic_F77=no
13215   module_cmds_F77=
13216   module_expsym_cmds_F77=
13217   always_export_symbols_F77=no
13218   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13219   # include_expsyms should be a list of space-separated symbols to be *always*
13220   # included in the symbol list
13221   include_expsyms_F77=
13222   # exclude_expsyms can be an extended regexp of symbols to exclude
13223   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13224   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13225   # as well as any symbol that contains `d'.
13226   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13227   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13228   # platforms (ab)use it in PIC code, but their linkers get confused if
13229   # the symbol is explicitly referenced.  Since portable code cannot
13230   # rely on this symbol name, it's probably fine to never include it in
13231   # preloaded symbol tables.
13232   extract_expsyms_cmds=
13233
13234   case $host_os in
13235   cygwin* | mingw* | pw32*)
13236     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13237     # When not using gcc, we currently assume that we are using
13238     # Microsoft Visual C++.
13239     if test "$GCC" != yes; then
13240       with_gnu_ld=no
13241     fi
13242     ;;
13243   openbsd*)
13244     with_gnu_ld=no
13245     ;;
13246   esac
13247
13248   ld_shlibs_F77=yes
13249   if test "$with_gnu_ld" = yes; then
13250     # If archive_cmds runs LD, not CC, wlarc should be empty
13251     wlarc='${wl}'
13252
13253     # See if GNU ld supports shared libraries.
13254     case $host_os in
13255     aix3* | aix4* | aix5*)
13256       # On AIX/PPC, the GNU linker is very broken
13257       if test "$host_cpu" != ia64; then
13258         ld_shlibs_F77=no
13259         cat <<EOF 1>&2
13260
13261 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13262 *** to be unable to reliably create shared libraries on AIX.
13263 *** Therefore, libtool is disabling shared libraries support.  If you
13264 *** really care for shared libraries, you may want to modify your PATH
13265 *** so that a non-GNU linker is found, and then restart.
13266
13267 EOF
13268       fi
13269       ;;
13270
13271     amigaos*)
13272       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)'
13273       hardcode_libdir_flag_spec_F77='-L$libdir'
13274       hardcode_minus_L_F77=yes
13275
13276       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13277       # that the semantics of dynamic libraries on AmigaOS, at least up
13278       # to version 4, is to share data among multiple programs linked
13279       # with the same dynamic library.  Since this doesn't match the
13280       # behavior of shared libraries on other platforms, we can't use
13281       # them.
13282       ld_shlibs_F77=no
13283       ;;
13284
13285     beos*)
13286       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13287         allow_undefined_flag_F77=unsupported
13288         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13289         # support --undefined.  This deserves some investigation.  FIXME
13290         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13291       else
13292         ld_shlibs_F77=no
13293       fi
13294       ;;
13295
13296     cygwin* | mingw* | pw32*)
13297       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13298       # as there is no search path for DLLs.
13299       hardcode_libdir_flag_spec_F77='-L$libdir'
13300       allow_undefined_flag_F77=unsupported
13301       always_export_symbols_F77=no
13302       enable_shared_with_static_runtimes_F77=yes
13303       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13304
13305       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13306         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13307         # If the export-symbols file already is a .def file (1st line
13308         # is EXPORTS), use it as is; otherwise, prepend...
13309         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13310           cp $export_symbols $output_objdir/$soname.def;
13311         else
13312           echo EXPORTS > $output_objdir/$soname.def;
13313           cat $export_symbols >> $output_objdir/$soname.def;
13314         fi~
13315         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13316       else
13317         ld_shlibs=no
13318       fi
13319       ;;
13320
13321     netbsd*)
13322       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13323         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13324         wlarc=
13325       else
13326         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13327         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13328       fi
13329       ;;
13330
13331     solaris* | sysv5*)
13332       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13333         ld_shlibs_F77=no
13334         cat <<EOF 1>&2
13335
13336 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13337 *** create shared libraries on Solaris systems.  Therefore, libtool
13338 *** is disabling shared libraries support.  We urge you to upgrade GNU
13339 *** binutils to release 2.9.1 or newer.  Another option is to modify
13340 *** your PATH or compiler configuration so that the native linker is
13341 *** used, and then restart.
13342
13343 EOF
13344       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13345         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13346         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13347       else
13348         ld_shlibs_F77=no
13349       fi
13350       ;;
13351
13352     sunos4*)
13353       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13354       wlarc=
13355       hardcode_direct_F77=yes
13356       hardcode_shlibpath_var_F77=no
13357       ;;
13358
13359     *)
13360       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13361         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13362         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13363       else
13364         ld_shlibs_F77=no
13365       fi
13366       ;;
13367     esac
13368
13369     if test "$ld_shlibs_F77" = yes; then
13370       runpath_var=LD_RUN_PATH
13371       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13372       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13373       # ancient GNU ld didn't support --whole-archive et. al.
13374       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13375         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13376       else
13377         whole_archive_flag_spec_F77=
13378       fi
13379     fi
13380   else
13381     # PORTME fill in a description of your system's linker (not GNU ld)
13382     case $host_os in
13383     aix3*)
13384       allow_undefined_flag_F77=unsupported
13385       always_export_symbols_F77=yes
13386       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'
13387       # Note: this linker hardcodes the directories in LIBPATH if there
13388       # are no directories specified by -L.
13389       hardcode_minus_L_F77=yes
13390       if test "$GCC" = yes && test -z "$link_static_flag"; then
13391         # Neither direct hardcoding nor static linking is supported with a
13392         # broken collect2.
13393         hardcode_direct_F77=unsupported
13394       fi
13395       ;;
13396
13397     aix4* | aix5*)
13398       if test "$host_cpu" = ia64; then
13399         # On IA64, the linker does run time linking by default, so we don't
13400         # have to do anything special.
13401         aix_use_runtimelinking=no
13402         exp_sym_flag='-Bexport'
13403         no_entry_flag=""
13404       else
13405         # If we're using GNU nm, then we don't want the "-C" option.
13406         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13407         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13408           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'
13409         else
13410           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'
13411         fi
13412         aix_use_runtimelinking=no
13413
13414         # Test if we are trying to use run time linking or normal
13415         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13416         # need to do runtime linking.
13417         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13418           for ld_flag in $LDFLAGS; do
13419           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13420             aix_use_runtimelinking=yes
13421             break
13422           fi
13423           done
13424         esac
13425
13426         exp_sym_flag='-bexport'
13427         no_entry_flag='-bnoentry'
13428       fi
13429
13430       # When large executables or shared objects are built, AIX ld can
13431       # have problems creating the table of contents.  If linking a library
13432       # or program results in "error TOC overflow" add -mminimal-toc to
13433       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13434       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13435
13436       archive_cmds_F77=''
13437       hardcode_direct_F77=yes
13438       hardcode_libdir_separator_F77=':'
13439       link_all_deplibs_F77=yes
13440
13441       if test "$GCC" = yes; then
13442         case $host_os in aix4.012|aix4.012.*)
13443         # We only want to do this on AIX 4.2 and lower, the check
13444         # below for broken collect2 doesn't work under 4.3+
13445           collect2name=`${CC} -print-prog-name=collect2`
13446           if test -f "$collect2name" && \
13447            strings "$collect2name" | grep resolve_lib_name >/dev/null
13448           then
13449           # We have reworked collect2
13450           hardcode_direct_F77=yes
13451           else
13452           # We have old collect2
13453           hardcode_direct_F77=unsupported
13454           # It fails to find uninstalled libraries when the uninstalled
13455           # path is not listed in the libpath.  Setting hardcode_minus_L
13456           # to unsupported forces relinking
13457           hardcode_minus_L_F77=yes
13458           hardcode_libdir_flag_spec_F77='-L$libdir'
13459           hardcode_libdir_separator_F77=
13460           fi
13461         esac
13462         shared_flag='-shared'
13463       else
13464         # not using gcc
13465         if test "$host_cpu" = ia64; then
13466         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13467         # chokes on -Wl,-G. The following line is correct:
13468           shared_flag='-G'
13469         else
13470         if test "$aix_use_runtimelinking" = yes; then
13471             shared_flag='${wl}-G'
13472           else
13473             shared_flag='${wl}-bM:SRE'
13474         fi
13475         fi
13476       fi
13477
13478       # It seems that -bexpall does not export symbols beginning with
13479       # underscore (_), so it is better to generate a list of symbols to export.
13480       always_export_symbols_F77=yes
13481       if test "$aix_use_runtimelinking" = yes; then
13482         # Warning - without using the other runtime loading flags (-brtl),
13483         # -berok will link without error, but may produce a broken library.
13484         allow_undefined_flag_F77='-berok'
13485        # Determine the default libpath from the value encoded in an empty executable.
13486        cat >conftest.$ac_ext <<_ACEOF
13487       program main
13488
13489       end
13490 _ACEOF
13491 rm -f conftest.$ac_objext conftest$ac_exeext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13493   (eval $ac_link) 2>&5
13494   ac_status=$?
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); } &&
13497          { ac_try='test -s conftest$ac_exeext'
13498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499   (eval $ac_try) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; }; then
13503
13504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13505 }'`
13506 # Check for a 64-bit object if we didn't find anything.
13507 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; }
13508 }'`; fi
13509 else
13510   echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13512
13513 fi
13514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13516
13517        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13518         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"
13519        else
13520         if test "$host_cpu" = ia64; then
13521           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13522           allow_undefined_flag_F77="-z nodefs"
13523           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"
13524         else
13525          # Determine the default libpath from the value encoded in an empty executable.
13526          cat >conftest.$ac_ext <<_ACEOF
13527       program main
13528
13529       end
13530 _ACEOF
13531 rm -f conftest.$ac_objext conftest$ac_exeext
13532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13533   (eval $ac_link) 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); } &&
13537          { ac_try='test -s conftest$ac_exeext'
13538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539   (eval $ac_try) 2>&5
13540   ac_status=$?
13541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); }; }; then
13543
13544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13545 }'`
13546 # Check for a 64-bit object if we didn't find anything.
13547 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; }
13548 }'`; fi
13549 else
13550   echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13552
13553 fi
13554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13556
13557          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13558           # Warning - without using the other run time loading flags,
13559           # -berok will link without error, but may produce a broken library.
13560           no_undefined_flag_F77=' ${wl}-bernotok'
13561           allow_undefined_flag_F77=' ${wl}-berok'
13562           # -bexpall does not export symbols beginning with underscore (_)
13563           always_export_symbols_F77=yes
13564           # Exported symbols can be pulled into shared objects from archives
13565           whole_archive_flag_spec_F77=' '
13566           archive_cmds_need_lc_F77=yes
13567           # This is similar to how AIX traditionally builds it's shared libraries.
13568           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'
13569         fi
13570       fi
13571       ;;
13572
13573     amigaos*)
13574       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)'
13575       hardcode_libdir_flag_spec_F77='-L$libdir'
13576       hardcode_minus_L_F77=yes
13577       # see comment about different semantics on the GNU ld section
13578       ld_shlibs_F77=no
13579       ;;
13580
13581     bsdi4*)
13582       export_dynamic_flag_spec_F77=-rdynamic
13583       ;;
13584
13585     cygwin* | mingw* | pw32*)
13586       # When not using gcc, we currently assume that we are using
13587       # Microsoft Visual C++.
13588       # hardcode_libdir_flag_spec is actually meaningless, as there is
13589       # no search path for DLLs.
13590       hardcode_libdir_flag_spec_F77=' '
13591       allow_undefined_flag_F77=unsupported
13592       # Tell ltmain to make .lib files, not .a files.
13593       libext=lib
13594       # Tell ltmain to make .dll files, not .so files.
13595       shrext=".dll"
13596       # FIXME: Setting linknames here is a bad hack.
13597       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13598       # The linker will automatically build a .lib file if we build a DLL.
13599       old_archive_From_new_cmds_F77='true'
13600       # FIXME: Should let the user specify the lib program.
13601       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13602       fix_srcfile_path='`cygpath -w "$srcfile"`'
13603       enable_shared_with_static_runtimes_F77=yes
13604       ;;
13605
13606     darwin* | rhapsody*)
13607     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13608       archive_cmds_need_lc_F77=no
13609       case "$host_os" in
13610       rhapsody* | darwin1.[012])
13611         allow_undefined_flag_F77='-undefined suppress'
13612         ;;
13613       *) # Darwin 1.3 on
13614         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13615         ;;
13616       esac
13617       # FIXME: Relying on posixy $() will cause problems for
13618       #        cross-compilation, but unfortunately the echo tests do not
13619       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13620       #        `"' quotes if we put them in here... so don't!
13621         lt_int_apple_cc_single_mod=no
13622         output_verbose_link_cmd='echo'
13623         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13624           lt_int_apple_cc_single_mod=yes
13625         fi
13626         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13627           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13628         else
13629         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'
13630       fi
13631       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13632       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13633         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13634           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}'
13635         else
13636           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}'
13637         fi
13638           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}'
13639       hardcode_direct_F77=no
13640       hardcode_automatic_F77=yes
13641       hardcode_shlibpath_var_F77=unsupported
13642       whole_archive_flag_spec_F77='-all_load $convenience'
13643       link_all_deplibs_F77=yes
13644     fi
13645       ;;
13646
13647     dgux*)
13648       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13649       hardcode_libdir_flag_spec_F77='-L$libdir'
13650       hardcode_shlibpath_var_F77=no
13651       ;;
13652
13653     freebsd1*)
13654       ld_shlibs_F77=no
13655       ;;
13656
13657     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13658     # support.  Future versions do this automatically, but an explicit c++rt0.o
13659     # does not break anything, and helps significantly (at the cost of a little
13660     # extra space).
13661     freebsd2.2*)
13662       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13663       hardcode_libdir_flag_spec_F77='-R$libdir'
13664       hardcode_direct_F77=yes
13665       hardcode_shlibpath_var_F77=no
13666       ;;
13667
13668     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13669     freebsd2*)
13670       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13671       hardcode_direct_F77=yes
13672       hardcode_minus_L_F77=yes
13673       hardcode_shlibpath_var_F77=no
13674       ;;
13675
13676     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13677     freebsd*)
13678       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13679       hardcode_libdir_flag_spec_F77='-R$libdir'
13680       hardcode_direct_F77=yes
13681       hardcode_shlibpath_var_F77=no
13682       ;;
13683
13684     hpux9*)
13685       if test "$GCC" = yes; then
13686         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'
13687       else
13688         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'
13689       fi
13690       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13691       hardcode_libdir_separator_F77=:
13692       hardcode_direct_F77=yes
13693
13694       # hardcode_minus_L: Not really in the search PATH,
13695       # but as the default location of the library.
13696       hardcode_minus_L_F77=yes
13697       export_dynamic_flag_spec_F77='${wl}-E'
13698       ;;
13699
13700     hpux10* | hpux11*)
13701       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13702         case "$host_cpu" in
13703         hppa*64*|ia64*)
13704           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13705           ;;
13706         *)
13707           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13708           ;;
13709         esac
13710       else
13711         case "$host_cpu" in
13712         hppa*64*|ia64*)
13713           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13714           ;;
13715         *)
13716           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13717           ;;
13718         esac
13719       fi
13720       if test "$with_gnu_ld" = no; then
13721         case "$host_cpu" in
13722         hppa*64*)
13723           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13724           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13725           hardcode_libdir_separator_F77=:
13726           hardcode_direct_F77=no
13727           hardcode_shlibpath_var_F77=no
13728           ;;
13729         ia64*)
13730           hardcode_libdir_flag_spec_F77='-L$libdir'
13731           hardcode_direct_F77=no
13732           hardcode_shlibpath_var_F77=no
13733
13734           # hardcode_minus_L: Not really in the search PATH,
13735           # but as the default location of the library.
13736           hardcode_minus_L_F77=yes
13737           ;;
13738         *)
13739           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13740           hardcode_libdir_separator_F77=:
13741           hardcode_direct_F77=yes
13742           export_dynamic_flag_spec_F77='${wl}-E'
13743
13744           # hardcode_minus_L: Not really in the search PATH,
13745           # but as the default location of the library.
13746           hardcode_minus_L_F77=yes
13747           ;;
13748         esac
13749       fi
13750       ;;
13751
13752     irix5* | irix6* | nonstopux*)
13753       if test "$GCC" = yes; then
13754         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'
13755       else
13756         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'
13757         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13758       fi
13759       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13760       hardcode_libdir_separator_F77=:
13761       link_all_deplibs_F77=yes
13762       ;;
13763
13764     netbsd*)
13765       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13766         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13767       else
13768         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13769       fi
13770       hardcode_libdir_flag_spec_F77='-R$libdir'
13771       hardcode_direct_F77=yes
13772       hardcode_shlibpath_var_F77=no
13773       ;;
13774
13775     newsos6)
13776       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13777       hardcode_direct_F77=yes
13778       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13779       hardcode_libdir_separator_F77=:
13780       hardcode_shlibpath_var_F77=no
13781       ;;
13782
13783     openbsd*)
13784       hardcode_direct_F77=yes
13785       hardcode_shlibpath_var_F77=no
13786       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13787         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13788         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13789         export_dynamic_flag_spec_F77='${wl}-E'
13790       else
13791        case $host_os in
13792          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13793            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13794            hardcode_libdir_flag_spec_F77='-R$libdir'
13795            ;;
13796          *)
13797            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13798            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13799            ;;
13800        esac
13801       fi
13802       ;;
13803
13804     os2*)
13805       hardcode_libdir_flag_spec_F77='-L$libdir'
13806       hardcode_minus_L_F77=yes
13807       allow_undefined_flag_F77=unsupported
13808       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'
13809       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13810       ;;
13811
13812     osf3*)
13813       if test "$GCC" = yes; then
13814         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13815         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'
13816       else
13817         allow_undefined_flag_F77=' -expect_unresolved \*'
13818         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'
13819       fi
13820       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13821       hardcode_libdir_separator_F77=:
13822       ;;
13823
13824     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13825       if test "$GCC" = yes; then
13826         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13827         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'
13828         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13829       else
13830         allow_undefined_flag_F77=' -expect_unresolved \*'
13831         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'
13832         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~
13833         $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'
13834
13835         # Both c and cxx compiler support -rpath directly
13836         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13837       fi
13838       hardcode_libdir_separator_F77=:
13839       ;;
13840
13841     sco3.2v5*)
13842       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13843       hardcode_shlibpath_var_F77=no
13844       export_dynamic_flag_spec_F77='${wl}-Bexport'
13845       runpath_var=LD_RUN_PATH
13846       hardcode_runpath_var=yes
13847       ;;
13848
13849     solaris*)
13850       no_undefined_flag_F77=' -z text'
13851       if test "$GCC" = yes; then
13852         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13853         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13854           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13855       else
13856         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13857         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13858         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13859       fi
13860       hardcode_libdir_flag_spec_F77='-R$libdir'
13861       hardcode_shlibpath_var_F77=no
13862       case $host_os in
13863       solaris2.[0-5] | solaris2.[0-5].*) ;;
13864       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13865         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13866       esac
13867       link_all_deplibs_F77=yes
13868       ;;
13869
13870     sunos4*)
13871       if test "x$host_vendor" = xsequent; then
13872         # Use $CC to link under sequent, because it throws in some extra .o
13873         # files that make .init and .fini sections work.
13874         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13875       else
13876         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13877       fi
13878       hardcode_libdir_flag_spec_F77='-L$libdir'
13879       hardcode_direct_F77=yes
13880       hardcode_minus_L_F77=yes
13881       hardcode_shlibpath_var_F77=no
13882       ;;
13883
13884     sysv4)
13885       case $host_vendor in
13886         sni)
13887           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13888           hardcode_direct_F77=yes # is this really true???
13889         ;;
13890         siemens)
13891           ## LD is ld it makes a PLAMLIB
13892           ## CC just makes a GrossModule.
13893           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13894           reload_cmds_F77='$CC -r -o $output$reload_objs'
13895           hardcode_direct_F77=no
13896         ;;
13897         motorola)
13898           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13899           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13900         ;;
13901       esac
13902       runpath_var='LD_RUN_PATH'
13903       hardcode_shlibpath_var_F77=no
13904       ;;
13905
13906     sysv4.3*)
13907       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13908       hardcode_shlibpath_var_F77=no
13909       export_dynamic_flag_spec_F77='-Bexport'
13910       ;;
13911
13912     sysv4*MP*)
13913       if test -d /usr/nec; then
13914         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13915         hardcode_shlibpath_var_F77=no
13916         runpath_var=LD_RUN_PATH
13917         hardcode_runpath_var=yes
13918         ld_shlibs_F77=yes
13919       fi
13920       ;;
13921
13922     sysv4.2uw2*)
13923       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13924       hardcode_direct_F77=yes
13925       hardcode_minus_L_F77=no
13926       hardcode_shlibpath_var_F77=no
13927       hardcode_runpath_var=yes
13928       runpath_var=LD_RUN_PATH
13929       ;;
13930
13931    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13932       no_undefined_flag_F77='${wl}-z ${wl}text'
13933       if test "$GCC" = yes; then
13934         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13935       else
13936         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13937       fi
13938       runpath_var='LD_RUN_PATH'
13939       hardcode_shlibpath_var_F77=no
13940       ;;
13941
13942     sysv5*)
13943       no_undefined_flag_F77=' -z text'
13944       # $CC -shared without GNU ld will not create a library from C++
13945       # object files and a static libstdc++, better avoid it by now
13946       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13947       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13948                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13949       hardcode_libdir_flag_spec_F77=
13950       hardcode_shlibpath_var_F77=no
13951       runpath_var='LD_RUN_PATH'
13952       ;;
13953
13954     uts4*)
13955       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13956       hardcode_libdir_flag_spec_F77='-L$libdir'
13957       hardcode_shlibpath_var_F77=no
13958       ;;
13959
13960     *)
13961       ld_shlibs_F77=no
13962       ;;
13963     esac
13964   fi
13965
13966 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13967 echo "${ECHO_T}$ld_shlibs_F77" >&6
13968 test "$ld_shlibs_F77" = no && can_build_shared=no
13969
13970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13971 if test "$GCC" = yes; then
13972   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13973 fi
13974
13975 #
13976 # Do we need to explicitly link libc?
13977 #
13978 case "x$archive_cmds_need_lc_F77" in
13979 x|xyes)
13980   # Assume -lc should be added
13981   archive_cmds_need_lc_F77=yes
13982
13983   if test "$enable_shared" = yes && test "$GCC" = yes; then
13984     case $archive_cmds_F77 in
13985     *'~'*)
13986       # FIXME: we may have to deal with multi-command sequences.
13987       ;;
13988     '$CC '*)
13989       # Test whether the compiler implicitly links with -lc since on some
13990       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13991       # to ld, don't add -lc before -lgcc.
13992       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13993 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13994       $rm conftest*
13995       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13996
13997       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13998   (eval $ac_compile) 2>&5
13999   ac_status=$?
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); } 2>conftest.err; then
14002         soname=conftest
14003         lib=conftest
14004         libobjs=conftest.$ac_objext
14005         deplibs=
14006         wl=$lt_prog_compiler_wl_F77
14007         compiler_flags=-v
14008         linker_flags=-v
14009         verstring=
14010         output_objdir=.
14011         libname=conftest
14012         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14013         allow_undefined_flag_F77=
14014         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14015   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); }
14019         then
14020           archive_cmds_need_lc_F77=no
14021         else
14022           archive_cmds_need_lc_F77=yes
14023         fi
14024         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14025       else
14026         cat conftest.err 1>&5
14027       fi
14028       $rm conftest*
14029       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14030 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14031       ;;
14032     esac
14033   fi
14034   ;;
14035 esac
14036
14037 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14038 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14039 hardcode_action_F77=
14040 if test -n "$hardcode_libdir_flag_spec_F77" || \
14041    test -n "$runpath_var F77" || \
14042    test "X$hardcode_automatic_F77"="Xyes" ; then
14043
14044   # We can hardcode non-existant directories.
14045   if test "$hardcode_direct_F77" != no &&
14046      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14047      # have to relink, otherwise we might link with an installed library
14048      # when we should be linking with a yet-to-be-installed one
14049      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14050      test "$hardcode_minus_L_F77" != no; then
14051     # Linking always hardcodes the temporary library directory.
14052     hardcode_action_F77=relink
14053   else
14054     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14055     hardcode_action_F77=immediate
14056   fi
14057 else
14058   # We cannot hardcode anything, or else we can only hardcode existing
14059   # directories.
14060   hardcode_action_F77=unsupported
14061 fi
14062 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14063 echo "${ECHO_T}$hardcode_action_F77" >&6
14064
14065 if test "$hardcode_action_F77" = relink; then
14066   # Fast installation is not supported
14067   enable_fast_install=no
14068 elif test "$shlibpath_overrides_runpath" = yes ||
14069      test "$enable_shared" = no; then
14070   # Fast installation is not necessary
14071   enable_fast_install=needless
14072 fi
14073
14074 striplib=
14075 old_striplib=
14076 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14077 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14078 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14079   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14080   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14081   echo "$as_me:$LINENO: result: yes" >&5
14082 echo "${ECHO_T}yes" >&6
14083 else
14084 # FIXME - insert some real tests, host_os isn't really good enough
14085   case $host_os in
14086    darwin*)
14087        if test -n "$STRIP" ; then
14088          striplib="$STRIP -x"
14089          echo "$as_me:$LINENO: result: yes" >&5
14090 echo "${ECHO_T}yes" >&6
14091        else
14092   echo "$as_me:$LINENO: result: no" >&5
14093 echo "${ECHO_T}no" >&6
14094 fi
14095        ;;
14096    *)
14097   echo "$as_me:$LINENO: result: no" >&5
14098 echo "${ECHO_T}no" >&6
14099     ;;
14100   esac
14101 fi
14102
14103 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14104 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14105 library_names_spec=
14106 libname_spec='lib$name'
14107 soname_spec=
14108 shrext=".so"
14109 postinstall_cmds=
14110 postuninstall_cmds=
14111 finish_cmds=
14112 finish_eval=
14113 shlibpath_var=
14114 shlibpath_overrides_runpath=unknown
14115 version_type=none
14116 dynamic_linker="$host_os ld.so"
14117 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14118 if test "$GCC" = yes; then
14119   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14120   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14121     # if the path contains ";" then we assume it to be the separator
14122     # otherwise default to the standard path separator (i.e. ":") - it is
14123     # assumed that no part of a normal pathname contains ";" but that should
14124     # okay in the real world where ";" in dirpaths is itself problematic.
14125     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14126   else
14127     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14128   fi
14129 else
14130   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14131 fi
14132 need_lib_prefix=unknown
14133 hardcode_into_libs=no
14134
14135 # when you set need_version to no, make sure it does not cause -set_version
14136 # flags to be left without arguments
14137 need_version=unknown
14138
14139 case $host_os in
14140 aix3*)
14141   version_type=linux
14142   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14143   shlibpath_var=LIBPATH
14144
14145   # AIX 3 has no versioning support, so we append a major version to the name.
14146   soname_spec='${libname}${release}${shared_ext}$major'
14147   ;;
14148
14149 aix4* | aix5*)
14150   version_type=linux
14151   need_lib_prefix=no
14152   need_version=no
14153   hardcode_into_libs=yes
14154   if test "$host_cpu" = ia64; then
14155     # AIX 5 supports IA64
14156     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14157     shlibpath_var=LD_LIBRARY_PATH
14158   else
14159     # With GCC up to 2.95.x, collect2 would create an import file
14160     # for dependence libraries.  The import file would start with
14161     # the line `#! .'.  This would cause the generated library to
14162     # depend on `.', always an invalid library.  This was fixed in
14163     # development snapshots of GCC prior to 3.0.
14164     case $host_os in
14165       aix4 | aix4.[01] | aix4.[01].*)
14166       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14167            echo ' yes '
14168            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14169         :
14170       else
14171         can_build_shared=no
14172       fi
14173       ;;
14174     esac
14175     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14176     # soname into executable. Probably we can add versioning support to
14177     # collect2, so additional links can be useful in future.
14178     if test "$aix_use_runtimelinking" = yes; then
14179       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14180       # instead of lib<name>.a to let people know that these are not
14181       # typical AIX shared libraries.
14182       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14183     else
14184       # We preserve .a as extension for shared libraries through AIX4.2
14185       # and later when we are not doing run time linking.
14186       library_names_spec='${libname}${release}.a $libname.a'
14187       soname_spec='${libname}${release}${shared_ext}$major'
14188     fi
14189     shlibpath_var=LIBPATH
14190   fi
14191   ;;
14192
14193 amigaos*)
14194   library_names_spec='$libname.ixlibrary $libname.a'
14195   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14196   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'
14197   ;;
14198
14199 beos*)
14200   library_names_spec='${libname}${shared_ext}'
14201   dynamic_linker="$host_os ld.so"
14202   shlibpath_var=LIBRARY_PATH
14203   ;;
14204
14205 bsdi4*)
14206   version_type=linux
14207   need_version=no
14208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14209   soname_spec='${libname}${release}${shared_ext}$major'
14210   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14211   shlibpath_var=LD_LIBRARY_PATH
14212   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14213   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14214   # the default ld.so.conf also contains /usr/contrib/lib and
14215   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14216   # libtool to hard-code these into programs
14217   ;;
14218
14219 cygwin* | mingw* | pw32*)
14220   version_type=windows
14221   shrext=".dll"
14222   need_version=no
14223   need_lib_prefix=no
14224
14225   case $GCC,$host_os in
14226   yes,cygwin* | yes,mingw* | yes,pw32*)
14227     library_names_spec='$libname.dll.a'
14228     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14229     postinstall_cmds='base_file=`basename \${file}`~
14230       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14231       dldir=$destdir/`dirname \$dlpath`~
14232       test -d \$dldir || mkdir -p \$dldir~
14233       $install_prog $dir/$dlname \$dldir/$dlname'
14234     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14235       dlpath=$dir/\$dldll~
14236        $rm \$dlpath'
14237     shlibpath_overrides_runpath=yes
14238
14239     case $host_os in
14240     cygwin*)
14241       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14242       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14243       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14244       ;;
14245     mingw*)
14246       # MinGW DLLs use traditional 'lib' prefix
14247       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14248       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14249       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14250         # It is most probably a Windows format PATH printed by
14251         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14252         # path with ; separators, and with drive letters. We can handle the
14253         # drive letters (cygwin fileutils understands them), so leave them,
14254         # especially as we might pass files found there to a mingw objdump,
14255         # which wouldn't understand a cygwinified path. Ahh.
14256         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14257       else
14258         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14259       fi
14260       ;;
14261     pw32*)
14262       # pw32 DLLs use 'pw' prefix rather than 'lib'
14263       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14264       ;;
14265     esac
14266     ;;
14267
14268   *)
14269     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14270     ;;
14271   esac
14272   dynamic_linker='Win32 ld.exe'
14273   # FIXME: first we should search . and the directory the executable is in
14274   shlibpath_var=PATH
14275   ;;
14276
14277 darwin* | rhapsody*)
14278   dynamic_linker="$host_os dyld"
14279   version_type=darwin
14280   need_lib_prefix=no
14281   need_version=no
14282   # FIXME: Relying on posixy $() will cause problems for
14283   #        cross-compilation, but unfortunately the echo tests do not
14284   #        yet detect zsh echo's removal of \ escapes.
14285   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14286   soname_spec='${libname}${release}${major}$shared_ext'
14287   shlibpath_overrides_runpath=yes
14288   shlibpath_var=DYLD_LIBRARY_PATH
14289   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14290   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14291   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14292   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"`
14293   fi
14294   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14295   ;;
14296
14297 dgux*)
14298   version_type=linux
14299   need_lib_prefix=no
14300   need_version=no
14301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14302   soname_spec='${libname}${release}${shared_ext}$major'
14303   shlibpath_var=LD_LIBRARY_PATH
14304   ;;
14305
14306 freebsd1*)
14307   dynamic_linker=no
14308   ;;
14309
14310 freebsd*)
14311   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14312   version_type=freebsd-$objformat
14313   case $version_type in
14314     freebsd-elf*)
14315       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14316       need_version=no
14317       need_lib_prefix=no
14318       ;;
14319     freebsd-*)
14320       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14321       need_version=yes
14322       ;;
14323   esac
14324   shlibpath_var=LD_LIBRARY_PATH
14325   case $host_os in
14326   freebsd2*)
14327     shlibpath_overrides_runpath=yes
14328     ;;
14329   freebsd3.01* | freebsdelf3.01*)
14330     shlibpath_overrides_runpath=yes
14331     hardcode_into_libs=yes
14332     ;;
14333   *) # from 3.2 on
14334     shlibpath_overrides_runpath=no
14335     hardcode_into_libs=yes
14336     ;;
14337   esac
14338   ;;
14339
14340 gnu*)
14341   version_type=linux
14342   need_lib_prefix=no
14343   need_version=no
14344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14345   soname_spec='${libname}${release}${shared_ext}$major'
14346   shlibpath_var=LD_LIBRARY_PATH
14347   hardcode_into_libs=yes
14348   ;;
14349
14350 hpux9* | hpux10* | hpux11*)
14351   # Give a soname corresponding to the major version so that dld.sl refuses to
14352   # link against other versions.
14353   version_type=sunos
14354   need_lib_prefix=no
14355   need_version=no
14356   case "$host_cpu" in
14357   ia64*)
14358     shrext='.so'
14359     hardcode_into_libs=yes
14360     dynamic_linker="$host_os dld.so"
14361     shlibpath_var=LD_LIBRARY_PATH
14362     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14364     soname_spec='${libname}${release}${shared_ext}$major'
14365     if test "X$HPUX_IA64_MODE" = X32; then
14366       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14367     else
14368       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14369     fi
14370     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14371     ;;
14372    hppa*64*)
14373      shrext='.sl'
14374      hardcode_into_libs=yes
14375      dynamic_linker="$host_os dld.sl"
14376      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14377      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14378      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379      soname_spec='${libname}${release}${shared_ext}$major'
14380      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14381      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14382      ;;
14383    *)
14384     shrext='.sl'
14385     dynamic_linker="$host_os dld.sl"
14386     shlibpath_var=SHLIB_PATH
14387     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14388     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389     soname_spec='${libname}${release}${shared_ext}$major'
14390     ;;
14391   esac
14392   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14393   postinstall_cmds='chmod 555 $lib'
14394   ;;
14395
14396 irix5* | irix6* | nonstopux*)
14397   case $host_os in
14398     nonstopux*) version_type=nonstopux ;;
14399     *)
14400         if test "$lt_cv_prog_gnu_ld" = yes; then
14401                 version_type=linux
14402         else
14403                 version_type=irix
14404         fi ;;
14405   esac
14406   need_lib_prefix=no
14407   need_version=no
14408   soname_spec='${libname}${release}${shared_ext}$major'
14409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14410   case $host_os in
14411   irix5* | nonstopux*)
14412     libsuff= shlibsuff=
14413     ;;
14414   *)
14415     case $LD in # libtool.m4 will add one of these switches to LD
14416     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14417       libsuff= shlibsuff= libmagic=32-bit;;
14418     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14419       libsuff=32 shlibsuff=N32 libmagic=N32;;
14420     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14421       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14422     *) libsuff= shlibsuff= libmagic=never-match;;
14423     esac
14424     ;;
14425   esac
14426   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14427   shlibpath_overrides_runpath=no
14428   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14429   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14430   hardcode_into_libs=yes
14431   ;;
14432
14433 # No shared lib support for Linux oldld, aout, or coff.
14434 linux*oldld* | linux*aout* | linux*coff*)
14435   dynamic_linker=no
14436   ;;
14437
14438 # This must be Linux ELF.
14439 linux*)
14440   version_type=linux
14441   need_lib_prefix=no
14442   need_version=no
14443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444   soname_spec='${libname}${release}${shared_ext}$major'
14445   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14446   shlibpath_var=LD_LIBRARY_PATH
14447   shlibpath_overrides_runpath=no
14448   # This implies no fast_install, which is unacceptable.
14449   # Some rework will be needed to allow for fast_install
14450   # before this can be enabled.
14451   hardcode_into_libs=yes
14452
14453   # We used to test for /lib/ld.so.1 and disable shared libraries on
14454   # powerpc, because MkLinux only supported shared libraries with the
14455   # GNU dynamic linker.  Since this was broken with cross compilers,
14456   # most powerpc-linux boxes support dynamic linking these days and
14457   # people can always --disable-shared, the test was removed, and we
14458   # assume the GNU/Linux dynamic linker is in use.
14459   dynamic_linker='GNU/Linux ld.so'
14460   ;;
14461
14462 netbsd*)
14463   version_type=sunos
14464   need_lib_prefix=no
14465   need_version=no
14466   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14468     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14469     dynamic_linker='NetBSD (a.out) ld.so'
14470   else
14471     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14472     soname_spec='${libname}${release}${shared_ext}$major'
14473     dynamic_linker='NetBSD ld.elf_so'
14474   fi
14475   shlibpath_var=LD_LIBRARY_PATH
14476   shlibpath_overrides_runpath=yes
14477   hardcode_into_libs=yes
14478   ;;
14479
14480 newsos6)
14481   version_type=linux
14482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14483   shlibpath_var=LD_LIBRARY_PATH
14484   shlibpath_overrides_runpath=yes
14485   ;;
14486
14487 nto-qnx)
14488   version_type=linux
14489   need_lib_prefix=no
14490   need_version=no
14491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14492   soname_spec='${libname}${release}${shared_ext}$major'
14493   shlibpath_var=LD_LIBRARY_PATH
14494   shlibpath_overrides_runpath=yes
14495   ;;
14496
14497 openbsd*)
14498   version_type=sunos
14499   need_lib_prefix=no
14500   need_version=no
14501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14502   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14503   shlibpath_var=LD_LIBRARY_PATH
14504   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14505     case $host_os in
14506       openbsd2.[89] | openbsd2.[89].*)
14507         shlibpath_overrides_runpath=no
14508         ;;
14509       *)
14510         shlibpath_overrides_runpath=yes
14511         ;;
14512       esac
14513   else
14514     shlibpath_overrides_runpath=yes
14515   fi
14516   ;;
14517
14518 os2*)
14519   libname_spec='$name'
14520   shrext=".dll"
14521   need_lib_prefix=no
14522   library_names_spec='$libname${shared_ext} $libname.a'
14523   dynamic_linker='OS/2 ld.exe'
14524   shlibpath_var=LIBPATH
14525   ;;
14526
14527 osf3* | osf4* | osf5*)
14528   version_type=osf
14529   need_lib_prefix=no
14530   need_version=no
14531   soname_spec='${libname}${release}${shared_ext}$major'
14532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533   shlibpath_var=LD_LIBRARY_PATH
14534   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14535   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14536   ;;
14537
14538 sco3.2v5*)
14539   version_type=osf
14540   soname_spec='${libname}${release}${shared_ext}$major'
14541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14542   shlibpath_var=LD_LIBRARY_PATH
14543   ;;
14544
14545 solaris*)
14546   version_type=linux
14547   need_lib_prefix=no
14548   need_version=no
14549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14550   soname_spec='${libname}${release}${shared_ext}$major'
14551   shlibpath_var=LD_LIBRARY_PATH
14552   shlibpath_overrides_runpath=yes
14553   hardcode_into_libs=yes
14554   # ldd complains unless libraries are executable
14555   postinstall_cmds='chmod +x $lib'
14556   ;;
14557
14558 sunos4*)
14559   version_type=sunos
14560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14561   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14562   shlibpath_var=LD_LIBRARY_PATH
14563   shlibpath_overrides_runpath=yes
14564   if test "$with_gnu_ld" = yes; then
14565     need_lib_prefix=no
14566   fi
14567   need_version=yes
14568   ;;
14569
14570 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14571   version_type=linux
14572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14573   soname_spec='${libname}${release}${shared_ext}$major'
14574   shlibpath_var=LD_LIBRARY_PATH
14575   case $host_vendor in
14576     sni)
14577       shlibpath_overrides_runpath=no
14578       need_lib_prefix=no
14579       export_dynamic_flag_spec='${wl}-Blargedynsym'
14580       runpath_var=LD_RUN_PATH
14581       ;;
14582     siemens)
14583       need_lib_prefix=no
14584       ;;
14585     motorola)
14586       need_lib_prefix=no
14587       need_version=no
14588       shlibpath_overrides_runpath=no
14589       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14590       ;;
14591   esac
14592   ;;
14593
14594 sysv4*MP*)
14595   if test -d /usr/nec ;then
14596     version_type=linux
14597     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14598     soname_spec='$libname${shared_ext}.$major'
14599     shlibpath_var=LD_LIBRARY_PATH
14600   fi
14601   ;;
14602
14603 uts4*)
14604   version_type=linux
14605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606   soname_spec='${libname}${release}${shared_ext}$major'
14607   shlibpath_var=LD_LIBRARY_PATH
14608   ;;
14609
14610 *)
14611   dynamic_linker=no
14612   ;;
14613 esac
14614 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14615 echo "${ECHO_T}$dynamic_linker" >&6
14616 test "$dynamic_linker" = no && can_build_shared=no
14617
14618
14619 # The else clause should only fire when bootstrapping the
14620 # libtool distribution, otherwise you forgot to ship ltmain.sh
14621 # with your package, and you will get complaints that there are
14622 # no rules to generate ltmain.sh.
14623 if test -f "$ltmain"; then
14624   # See if we are running on zsh, and set the options which allow our commands through
14625   # without removal of \ escapes.
14626   if test -n "${ZSH_VERSION+set}" ; then
14627     setopt NO_GLOB_SUBST
14628   fi
14629   # Now quote all the things that may contain metacharacters while being
14630   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14631   # variables and quote the copies for generation of the libtool script.
14632   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14633     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14634     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14635     deplibs_check_method reload_flag reload_cmds need_locks \
14636     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14637     lt_cv_sys_global_symbol_to_c_name_address \
14638     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14639     old_postinstall_cmds old_postuninstall_cmds \
14640     compiler_F77 \
14641     CC_F77 \
14642     LD_F77 \
14643     lt_prog_compiler_wl_F77 \
14644     lt_prog_compiler_pic_F77 \
14645     lt_prog_compiler_static_F77 \
14646     lt_prog_compiler_no_builtin_flag_F77 \
14647     export_dynamic_flag_spec_F77 \
14648     thread_safe_flag_spec_F77 \
14649     whole_archive_flag_spec_F77 \
14650     enable_shared_with_static_runtimes_F77 \
14651     old_archive_cmds_F77 \
14652     old_archive_from_new_cmds_F77 \
14653     predep_objects_F77 \
14654     postdep_objects_F77 \
14655     predeps_F77 \
14656     postdeps_F77 \
14657     compiler_lib_search_path_F77 \
14658     archive_cmds_F77 \
14659     archive_expsym_cmds_F77 \
14660     postinstall_cmds_F77 \
14661     postuninstall_cmds_F77 \
14662     old_archive_from_expsyms_cmds_F77 \
14663     allow_undefined_flag_F77 \
14664     no_undefined_flag_F77 \
14665     export_symbols_cmds_F77 \
14666     hardcode_libdir_flag_spec_F77 \
14667     hardcode_libdir_flag_spec_ld_F77 \
14668     hardcode_libdir_separator_F77 \
14669     hardcode_automatic_F77 \
14670     module_cmds_F77 \
14671     module_expsym_cmds_F77 \
14672     lt_cv_prog_compiler_c_o_F77 \
14673     exclude_expsyms_F77 \
14674     include_expsyms_F77; do
14675
14676     case $var in
14677     old_archive_cmds_F77 | \
14678     old_archive_from_new_cmds_F77 | \
14679     archive_cmds_F77 | \
14680     archive_expsym_cmds_F77 | \
14681     module_cmds_F77 | \
14682     module_expsym_cmds_F77 | \
14683     old_archive_from_expsyms_cmds_F77 | \
14684     export_symbols_cmds_F77 | \
14685     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14686     postinstall_cmds | postuninstall_cmds | \
14687     old_postinstall_cmds | old_postuninstall_cmds | \
14688     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14689       # Double-quote double-evaled strings.
14690       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14691       ;;
14692     *)
14693       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14694       ;;
14695     esac
14696   done
14697
14698   case $lt_echo in
14699   *'\$0 --fallback-echo"')
14700     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14701     ;;
14702   esac
14703
14704 cfgfile="$ofile"
14705
14706   cat <<__EOF__ >> "$cfgfile"
14707 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14708
14709 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14710
14711 # Shell to use when invoking shell scripts.
14712 SHELL=$lt_SHELL
14713
14714 # Whether or not to build shared libraries.
14715 build_libtool_libs=$enable_shared
14716
14717 # Whether or not to build static libraries.
14718 build_old_libs=$enable_static
14719
14720 # Whether or not to add -lc for building shared libraries.
14721 build_libtool_need_lc=$archive_cmds_need_lc_F77
14722
14723 # Whether or not to disallow shared libs when runtime libs are static
14724 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14725
14726 # Whether or not to optimize for fast installation.
14727 fast_install=$enable_fast_install
14728
14729 # The host system.
14730 host_alias=$host_alias
14731 host=$host
14732
14733 # An echo program that does not interpret backslashes.
14734 echo=$lt_echo
14735
14736 # The archiver.
14737 AR=$lt_AR
14738 AR_FLAGS=$lt_AR_FLAGS
14739
14740 # A C compiler.
14741 LTCC=$lt_LTCC
14742
14743 # A language-specific compiler.
14744 CC=$lt_compiler_F77
14745
14746 # Is the compiler the GNU C compiler?
14747 with_gcc=$GCC_F77
14748
14749 # An ERE matcher.
14750 EGREP=$lt_EGREP
14751
14752 # The linker used to build libraries.
14753 LD=$lt_LD_F77
14754
14755 # Whether we need hard or soft links.
14756 LN_S=$lt_LN_S
14757
14758 # A BSD-compatible nm program.
14759 NM=$lt_NM
14760
14761 # A symbol stripping program
14762 STRIP=$STRIP
14763
14764 # Used to examine libraries when file_magic_cmd begins "file"
14765 MAGIC_CMD=$MAGIC_CMD
14766
14767 # Used on cygwin: DLL creation program.
14768 DLLTOOL="$DLLTOOL"
14769
14770 # Used on cygwin: object dumper.
14771 OBJDUMP="$OBJDUMP"
14772
14773 # Used on cygwin: assembler.
14774 AS="$AS"
14775
14776 # The name of the directory that contains temporary libtool files.
14777 objdir=$objdir
14778
14779 # How to create reloadable object files.
14780 reload_flag=$lt_reload_flag
14781 reload_cmds=$lt_reload_cmds
14782
14783 # How to pass a linker flag through the compiler.
14784 wl=$lt_lt_prog_compiler_wl_F77
14785
14786 # Object file suffix (normally "o").
14787 objext="$ac_objext"
14788
14789 # Old archive suffix (normally "a").
14790 libext="$libext"
14791
14792 # Shared library suffix (normally ".so").
14793 shrext='$shrext'
14794
14795 # Executable file suffix (normally "").
14796 exeext="$exeext"
14797
14798 # Additional compiler flags for building library objects.
14799 pic_flag=$lt_lt_prog_compiler_pic_F77
14800 pic_mode=$pic_mode
14801
14802 # What is the maximum length of a command?
14803 max_cmd_len=$lt_cv_sys_max_cmd_len
14804
14805 # Does compiler simultaneously support -c and -o options?
14806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14807
14808 # Must we lock files when doing compilation ?
14809 need_locks=$lt_need_locks
14810
14811 # Do we need the lib prefix for modules?
14812 need_lib_prefix=$need_lib_prefix
14813
14814 # Do we need a version for libraries?
14815 need_version=$need_version
14816
14817 # Whether dlopen is supported.
14818 dlopen_support=$enable_dlopen
14819
14820 # Whether dlopen of programs is supported.
14821 dlopen_self=$enable_dlopen_self
14822
14823 # Whether dlopen of statically linked programs is supported.
14824 dlopen_self_static=$enable_dlopen_self_static
14825
14826 # Compiler flag to prevent dynamic linking.
14827 link_static_flag=$lt_lt_prog_compiler_static_F77
14828
14829 # Compiler flag to turn off builtin functions.
14830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14831
14832 # Compiler flag to allow reflexive dlopens.
14833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14834
14835 # Compiler flag to generate shared objects directly from archives.
14836 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14837
14838 # Compiler flag to generate thread-safe objects.
14839 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14840
14841 # Library versioning type.
14842 version_type=$version_type
14843
14844 # Format of library name prefix.
14845 libname_spec=$lt_libname_spec
14846
14847 # List of archive names.  First name is the real one, the rest are links.
14848 # The last name is the one that the linker finds with -lNAME.
14849 library_names_spec=$lt_library_names_spec
14850
14851 # The coded name of the library, if different from the real name.
14852 soname_spec=$lt_soname_spec
14853
14854 # Commands used to build and install an old-style archive.
14855 RANLIB=$lt_RANLIB
14856 old_archive_cmds=$lt_old_archive_cmds_F77
14857 old_postinstall_cmds=$lt_old_postinstall_cmds
14858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14859
14860 # Create an old-style archive from a shared archive.
14861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14862
14863 # Create a temporary old-style archive to link instead of a shared archive.
14864 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14865
14866 # Commands used to build and install a shared archive.
14867 archive_cmds=$lt_archive_cmds_F77
14868 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14869 postinstall_cmds=$lt_postinstall_cmds
14870 postuninstall_cmds=$lt_postuninstall_cmds
14871
14872 # Commands used to build a loadable module (assumed same as above if empty)
14873 module_cmds=$lt_module_cmds_F77
14874 module_expsym_cmds=$lt_module_expsym_cmds_F77
14875
14876 # Commands to strip libraries.
14877 old_striplib=$lt_old_striplib
14878 striplib=$lt_striplib
14879
14880 # Dependencies to place before the objects being linked to create a
14881 # shared library.
14882 predep_objects=$lt_predep_objects_F77
14883
14884 # Dependencies to place after the objects being linked to create a
14885 # shared library.
14886 postdep_objects=$lt_postdep_objects_F77
14887
14888 # Dependencies to place before the objects being linked to create a
14889 # shared library.
14890 predeps=$lt_predeps_F77
14891
14892 # Dependencies to place after the objects being linked to create a
14893 # shared library.
14894 postdeps=$lt_postdeps_F77
14895
14896 # The library search path used internally by the compiler when linking
14897 # a shared library.
14898 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14899
14900 # Method to check whether dependent libraries are shared objects.
14901 deplibs_check_method=$lt_deplibs_check_method
14902
14903 # Command to use when deplibs_check_method == file_magic.
14904 file_magic_cmd=$lt_file_magic_cmd
14905
14906 # Flag that allows shared libraries with undefined symbols to be built.
14907 allow_undefined_flag=$lt_allow_undefined_flag_F77
14908
14909 # Flag that forces no undefined symbols.
14910 no_undefined_flag=$lt_no_undefined_flag_F77
14911
14912 # Commands used to finish a libtool library installation in a directory.
14913 finish_cmds=$lt_finish_cmds
14914
14915 # Same as above, but a single script fragment to be evaled but not shown.
14916 finish_eval=$lt_finish_eval
14917
14918 # Take the output of nm and produce a listing of raw symbols and C names.
14919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14920
14921 # Transform the output of nm in a proper C declaration
14922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14923
14924 # Transform the output of nm in a C name address pair
14925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14926
14927 # This is the shared library runtime path variable.
14928 runpath_var=$runpath_var
14929
14930 # This is the shared library path variable.
14931 shlibpath_var=$shlibpath_var
14932
14933 # Is shlibpath searched before the hard-coded library search path?
14934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14935
14936 # How to hardcode a shared library path into an executable.
14937 hardcode_action=$hardcode_action_F77
14938
14939 # Whether we should hardcode library paths into libraries.
14940 hardcode_into_libs=$hardcode_into_libs
14941
14942 # Flag to hardcode \$libdir into a binary during linking.
14943 # This must work even if \$libdir does not exist.
14944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14945
14946 # If ld is used when linking, flag to hardcode \$libdir into
14947 # a binary during linking. This must work even if \$libdir does
14948 # not exist.
14949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14950
14951 # Whether we need a single -rpath flag with a separated argument.
14952 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14953
14954 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14955 # resulting binary.
14956 hardcode_direct=$hardcode_direct_F77
14957
14958 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14959 # resulting binary.
14960 hardcode_minus_L=$hardcode_minus_L_F77
14961
14962 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14963 # the resulting binary.
14964 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14965
14966 # Set to yes if building a shared library automatically hardcodes DIR into the library
14967 # and all subsequent libraries and executables linked against it.
14968 hardcode_automatic=$hardcode_automatic_F77
14969
14970 # Variables whose values should be saved in libtool wrapper scripts and
14971 # restored at relink time.
14972 variables_saved_for_relink="$variables_saved_for_relink"
14973
14974 # Whether libtool must link a program against all its dependency libraries.
14975 link_all_deplibs=$link_all_deplibs_F77
14976
14977 # Compile-time system search path for libraries
14978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14979
14980 # Run-time system search path for libraries
14981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14982
14983 # Fix the shell variable \$srcfile for the compiler.
14984 fix_srcfile_path="$fix_srcfile_path_F77"
14985
14986 # Set to yes if exported symbols are required.
14987 always_export_symbols=$always_export_symbols_F77
14988
14989 # The commands to list exported symbols.
14990 export_symbols_cmds=$lt_export_symbols_cmds_F77
14991
14992 # The commands to extract the exported symbol list from a shared archive.
14993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14994
14995 # Symbols that should not be listed in the preloaded symbols.
14996 exclude_expsyms=$lt_exclude_expsyms_F77
14997
14998 # Symbols that must always be exported.
14999 include_expsyms=$lt_include_expsyms_F77
15000
15001 # ### END LIBTOOL TAG CONFIG: $tagname
15002
15003 __EOF__
15004
15005
15006 else
15007   # If there is no Makefile yet, we rely on a make rule to execute
15008   # `config.status --recheck' to rerun these tests and create the
15009   # libtool script then.
15010   test -f Makefile && make "$ltmain"
15011 fi
15012
15013
15014 ac_ext=c
15015 ac_cpp='$CPP $CPPFLAGS'
15016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15019
15020 CC="$lt_save_CC"
15021
15022         else
15023           tagname=""
15024         fi
15025         ;;
15026
15027       GCJ)
15028         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15029
15030
15031
15032 # Source file extension for Java test sources.
15033 ac_ext=java
15034
15035 # Object file extension for compiled Java test sources.
15036 objext=o
15037 objext_GCJ=$objext
15038
15039 # Code to be used in simple compile tests
15040 lt_simple_compile_test_code="class foo {}\n"
15041
15042 # Code to be used in simple link tests
15043 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15044
15045 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15046
15047 # If no C compiler was specified, use CC.
15048 LTCC=${LTCC-"$CC"}
15049
15050 # Allow CC to be a program name with arguments.
15051 compiler=$CC
15052
15053
15054 # Allow CC to be a program name with arguments.
15055 lt_save_CC="$CC"
15056 CC=${GCJ-"gcj"}
15057 compiler=$CC
15058 compiler_GCJ=$CC
15059
15060 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15061 archive_cmds_need_lc_GCJ=no
15062
15063 ## CAVEAT EMPTOR:
15064 ## There is no encapsulation within the following macros, do not change
15065 ## the running order or otherwise move them around unless you know exactly
15066 ## what you are doing...
15067
15068 lt_prog_compiler_no_builtin_flag_GCJ=
15069
15070 if test "$GCC" = yes; then
15071   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15072
15073   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15074 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15075 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15076   echo $ECHO_N "(cached) $ECHO_C" >&6
15077 else
15078   lt_cv_prog_compiler_rtti_exceptions=no
15079   ac_outfile=conftest.$ac_objext
15080    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15081    lt_compiler_flag="-fno-rtti -fno-exceptions"
15082    # Insert the option either (1) after the last *FLAGS variable, or
15083    # (2) before a word containing "conftest.", or (3) at the end.
15084    # Note that $ac_compile itself does not contain backslashes and begins
15085    # with a dollar sign (not a hyphen), so the echo should work correctly.
15086    # The option is referenced via a variable to avoid confusing sed.
15087    lt_compile=`echo "$ac_compile" | $SED \
15088    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15089    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15090    -e 's:$: $lt_compiler_flag:'`
15091    (eval echo "\"\$as_me:15091: $lt_compile\"" >&5)
15092    (eval "$lt_compile" 2>conftest.err)
15093    ac_status=$?
15094    cat conftest.err >&5
15095    echo "$as_me:15095: \$? = $ac_status" >&5
15096    if (exit $ac_status) && test -s "$ac_outfile"; then
15097      # The compiler can only warn and ignore the option if not recognized
15098      # So say no if there are warnings
15099      if test ! -s conftest.err; then
15100        lt_cv_prog_compiler_rtti_exceptions=yes
15101      fi
15102    fi
15103    $rm conftest*
15104
15105 fi
15106 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15107 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15108
15109 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15110     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15111 else
15112     :
15113 fi
15114
15115 fi
15116
15117 lt_prog_compiler_wl_GCJ=
15118 lt_prog_compiler_pic_GCJ=
15119 lt_prog_compiler_static_GCJ=
15120
15121 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15122 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15123
15124   if test "$GCC" = yes; then
15125     lt_prog_compiler_wl_GCJ='-Wl,'
15126     lt_prog_compiler_static_GCJ='-static'
15127
15128     case $host_os in
15129       aix*)
15130       # All AIX code is PIC.
15131       if test "$host_cpu" = ia64; then
15132         # AIX 5 now supports IA64 processor
15133         lt_prog_compiler_static_GCJ='-Bstatic'
15134       fi
15135       ;;
15136
15137     amigaos*)
15138       # FIXME: we need at least 68020 code to build shared libraries, but
15139       # adding the `-m68020' flag to GCC prevents building anything better,
15140       # like `-m68040'.
15141       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15142       ;;
15143
15144     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15145       # PIC is the default for these OSes.
15146       ;;
15147
15148     mingw* | pw32* | os2*)
15149       # This hack is so that the source file can tell whether it is being
15150       # built for inclusion in a dll (and should export symbols for example).
15151       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15152       ;;
15153
15154     darwin* | rhapsody*)
15155       # PIC is the default on this platform
15156       # Common symbols not allowed in MH_DYLIB files
15157       lt_prog_compiler_pic_GCJ='-fno-common'
15158       ;;
15159
15160     msdosdjgpp*)
15161       # Just because we use GCC doesn't mean we suddenly get shared libraries
15162       # on systems that don't support them.
15163       lt_prog_compiler_can_build_shared_GCJ=no
15164       enable_shared=no
15165       ;;
15166
15167     sysv4*MP*)
15168       if test -d /usr/nec; then
15169         lt_prog_compiler_pic_GCJ=-Kconform_pic
15170       fi
15171       ;;
15172
15173     hpux*)
15174       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15175       # not for PA HP-UX.
15176       case "$host_cpu" in
15177       hppa*64*|ia64*)
15178         # +Z the default
15179         ;;
15180       *)
15181         lt_prog_compiler_pic_GCJ='-fPIC'
15182         ;;
15183       esac
15184       ;;
15185
15186     *)
15187       lt_prog_compiler_pic_GCJ='-fPIC'
15188       ;;
15189     esac
15190   else
15191     # PORTME Check for flag to pass linker flags through the system compiler.
15192     case $host_os in
15193     aix*)
15194       lt_prog_compiler_wl_GCJ='-Wl,'
15195       if test "$host_cpu" = ia64; then
15196         # AIX 5 now supports IA64 processor
15197         lt_prog_compiler_static_GCJ='-Bstatic'
15198       else
15199         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15200       fi
15201       ;;
15202
15203     mingw* | pw32* | os2*)
15204       # This hack is so that the source file can tell whether it is being
15205       # built for inclusion in a dll (and should export symbols for example).
15206       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15207       ;;
15208
15209     hpux9* | hpux10* | hpux11*)
15210       lt_prog_compiler_wl_GCJ='-Wl,'
15211       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15212       # not for PA HP-UX.
15213       case "$host_cpu" in
15214       hppa*64*|ia64*)
15215         # +Z the default
15216         ;;
15217       *)
15218         lt_prog_compiler_pic_GCJ='+Z'
15219         ;;
15220       esac
15221       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15222       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15223       ;;
15224
15225     irix5* | irix6* | nonstopux*)
15226       lt_prog_compiler_wl_GCJ='-Wl,'
15227       # PIC (with -KPIC) is the default.
15228       lt_prog_compiler_static_GCJ='-non_shared'
15229       ;;
15230
15231     newsos6)
15232       lt_prog_compiler_pic_GCJ='-KPIC'
15233       lt_prog_compiler_static_GCJ='-Bstatic'
15234       ;;
15235
15236     linux*)
15237       case $CC in
15238       icc|ecc)
15239         lt_prog_compiler_wl_GCJ='-Wl,'
15240         lt_prog_compiler_pic_GCJ='-KPIC'
15241         lt_prog_compiler_static_GCJ='-static'
15242         ;;
15243       ccc)
15244         lt_prog_compiler_wl_GCJ='-Wl,'
15245         # All Alpha code is PIC.
15246         lt_prog_compiler_static_GCJ='-non_shared'
15247         ;;
15248       esac
15249       ;;
15250
15251     osf3* | osf4* | osf5*)
15252       lt_prog_compiler_wl_GCJ='-Wl,'
15253       # All OSF/1 code is PIC.
15254       lt_prog_compiler_static_GCJ='-non_shared'
15255       ;;
15256
15257     sco3.2v5*)
15258       lt_prog_compiler_pic_GCJ='-Kpic'
15259       lt_prog_compiler_static_GCJ='-dn'
15260       ;;
15261
15262     solaris*)
15263       lt_prog_compiler_wl_GCJ='-Wl,'
15264       lt_prog_compiler_pic_GCJ='-KPIC'
15265       lt_prog_compiler_static_GCJ='-Bstatic'
15266       ;;
15267
15268     sunos4*)
15269       lt_prog_compiler_wl_GCJ='-Qoption ld '
15270       lt_prog_compiler_pic_GCJ='-PIC'
15271       lt_prog_compiler_static_GCJ='-Bstatic'
15272       ;;
15273
15274     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15275       lt_prog_compiler_wl_GCJ='-Wl,'
15276       lt_prog_compiler_pic_GCJ='-KPIC'
15277       lt_prog_compiler_static_GCJ='-Bstatic'
15278       ;;
15279
15280     sysv4*MP*)
15281       if test -d /usr/nec ;then
15282         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15283         lt_prog_compiler_static_GCJ='-Bstatic'
15284       fi
15285       ;;
15286
15287     uts4*)
15288       lt_prog_compiler_pic_GCJ='-pic'
15289       lt_prog_compiler_static_GCJ='-Bstatic'
15290       ;;
15291
15292     *)
15293       lt_prog_compiler_can_build_shared_GCJ=no
15294       ;;
15295     esac
15296   fi
15297
15298 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15299 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15300
15301 #
15302 # Check to make sure the PIC flag actually works.
15303 #
15304 if test -n "$lt_prog_compiler_pic_GCJ"; then
15305   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15306 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15307 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15308   echo $ECHO_N "(cached) $ECHO_C" >&6
15309 else
15310   lt_prog_compiler_pic_works_GCJ=no
15311   ac_outfile=conftest.$ac_objext
15312    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15313    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15314    # Insert the option either (1) after the last *FLAGS variable, or
15315    # (2) before a word containing "conftest.", or (3) at the end.
15316    # Note that $ac_compile itself does not contain backslashes and begins
15317    # with a dollar sign (not a hyphen), so the echo should work correctly.
15318    # The option is referenced via a variable to avoid confusing sed.
15319    lt_compile=`echo "$ac_compile" | $SED \
15320    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15321    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15322    -e 's:$: $lt_compiler_flag:'`
15323    (eval echo "\"\$as_me:15323: $lt_compile\"" >&5)
15324    (eval "$lt_compile" 2>conftest.err)
15325    ac_status=$?
15326    cat conftest.err >&5
15327    echo "$as_me:15327: \$? = $ac_status" >&5
15328    if (exit $ac_status) && test -s "$ac_outfile"; then
15329      # The compiler can only warn and ignore the option if not recognized
15330      # So say no if there are warnings
15331      if test ! -s conftest.err; then
15332        lt_prog_compiler_pic_works_GCJ=yes
15333      fi
15334    fi
15335    $rm conftest*
15336
15337 fi
15338 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15339 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15340
15341 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15342     case $lt_prog_compiler_pic_GCJ in
15343      "" | " "*) ;;
15344      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15345      esac
15346 else
15347     lt_prog_compiler_pic_GCJ=
15348      lt_prog_compiler_can_build_shared_GCJ=no
15349 fi
15350
15351 fi
15352 case "$host_os" in
15353   # For platforms which do not support PIC, -DPIC is meaningless:
15354   *djgpp*)
15355     lt_prog_compiler_pic_GCJ=
15356     ;;
15357   *)
15358     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15359     ;;
15360 esac
15361
15362 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15363 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15364 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15365   echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367   lt_cv_prog_compiler_c_o_GCJ=no
15368    $rm -r conftest 2>/dev/null
15369    mkdir conftest
15370    cd conftest
15371    mkdir out
15372    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15373
15374    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15375    # that will create temporary files in the current directory regardless of
15376    # the output directory.  Thus, making CWD read-only will cause this test
15377    # to fail, enabling locking or at least warning the user not to do parallel
15378    # builds.
15379    chmod -w .
15380
15381    lt_compiler_flag="-o out/conftest2.$ac_objext"
15382    # Insert the option either (1) after the last *FLAGS variable, or
15383    # (2) before a word containing "conftest.", or (3) at the end.
15384    # Note that $ac_compile itself does not contain backslashes and begins
15385    # with a dollar sign (not a hyphen), so the echo should work correctly.
15386    lt_compile=`echo "$ac_compile" | $SED \
15387    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15388    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15389    -e 's:$: $lt_compiler_flag:'`
15390    (eval echo "\"\$as_me:15390: $lt_compile\"" >&5)
15391    (eval "$lt_compile" 2>out/conftest.err)
15392    ac_status=$?
15393    cat out/conftest.err >&5
15394    echo "$as_me:15394: \$? = $ac_status" >&5
15395    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15396    then
15397      # The compiler can only warn and ignore the option if not recognized
15398      # So say no if there are warnings
15399      if test ! -s out/conftest.err; then
15400        lt_cv_prog_compiler_c_o_GCJ=yes
15401      fi
15402    fi
15403    chmod u+w .
15404    $rm conftest* out/*
15405    rmdir out
15406    cd ..
15407    rmdir conftest
15408    $rm conftest*
15409
15410 fi
15411 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15412 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15413
15414
15415 hard_links="nottested"
15416 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15417   # do not overwrite the value of need_locks provided by the user
15418   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15419 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15420   hard_links=yes
15421   $rm conftest*
15422   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15423   touch conftest.a
15424   ln conftest.a conftest.b 2>&5 || hard_links=no
15425   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15426   echo "$as_me:$LINENO: result: $hard_links" >&5
15427 echo "${ECHO_T}$hard_links" >&6
15428   if test "$hard_links" = no; then
15429     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15430 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15431     need_locks=warn
15432   fi
15433 else
15434   need_locks=no
15435 fi
15436
15437 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15438 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15439
15440   runpath_var=
15441   allow_undefined_flag_GCJ=
15442   enable_shared_with_static_runtimes_GCJ=no
15443   archive_cmds_GCJ=
15444   archive_expsym_cmds_GCJ=
15445   old_archive_From_new_cmds_GCJ=
15446   old_archive_from_expsyms_cmds_GCJ=
15447   export_dynamic_flag_spec_GCJ=
15448   whole_archive_flag_spec_GCJ=
15449   thread_safe_flag_spec_GCJ=
15450   hardcode_libdir_flag_spec_GCJ=
15451   hardcode_libdir_flag_spec_ld_GCJ=
15452   hardcode_libdir_separator_GCJ=
15453   hardcode_direct_GCJ=no
15454   hardcode_minus_L_GCJ=no
15455   hardcode_shlibpath_var_GCJ=unsupported
15456   link_all_deplibs_GCJ=unknown
15457   hardcode_automatic_GCJ=no
15458   module_cmds_GCJ=
15459   module_expsym_cmds_GCJ=
15460   always_export_symbols_GCJ=no
15461   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15462   # include_expsyms should be a list of space-separated symbols to be *always*
15463   # included in the symbol list
15464   include_expsyms_GCJ=
15465   # exclude_expsyms can be an extended regexp of symbols to exclude
15466   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15467   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15468   # as well as any symbol that contains `d'.
15469   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15470   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15471   # platforms (ab)use it in PIC code, but their linkers get confused if
15472   # the symbol is explicitly referenced.  Since portable code cannot
15473   # rely on this symbol name, it's probably fine to never include it in
15474   # preloaded symbol tables.
15475   extract_expsyms_cmds=
15476
15477   case $host_os in
15478   cygwin* | mingw* | pw32*)
15479     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15480     # When not using gcc, we currently assume that we are using
15481     # Microsoft Visual C++.
15482     if test "$GCC" != yes; then
15483       with_gnu_ld=no
15484     fi
15485     ;;
15486   openbsd*)
15487     with_gnu_ld=no
15488     ;;
15489   esac
15490
15491   ld_shlibs_GCJ=yes
15492   if test "$with_gnu_ld" = yes; then
15493     # If archive_cmds runs LD, not CC, wlarc should be empty
15494     wlarc='${wl}'
15495
15496     # See if GNU ld supports shared libraries.
15497     case $host_os in
15498     aix3* | aix4* | aix5*)
15499       # On AIX/PPC, the GNU linker is very broken
15500       if test "$host_cpu" != ia64; then
15501         ld_shlibs_GCJ=no
15502         cat <<EOF 1>&2
15503
15504 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15505 *** to be unable to reliably create shared libraries on AIX.
15506 *** Therefore, libtool is disabling shared libraries support.  If you
15507 *** really care for shared libraries, you may want to modify your PATH
15508 *** so that a non-GNU linker is found, and then restart.
15509
15510 EOF
15511       fi
15512       ;;
15513
15514     amigaos*)
15515       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)'
15516       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15517       hardcode_minus_L_GCJ=yes
15518
15519       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15520       # that the semantics of dynamic libraries on AmigaOS, at least up
15521       # to version 4, is to share data among multiple programs linked
15522       # with the same dynamic library.  Since this doesn't match the
15523       # behavior of shared libraries on other platforms, we can't use
15524       # them.
15525       ld_shlibs_GCJ=no
15526       ;;
15527
15528     beos*)
15529       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15530         allow_undefined_flag_GCJ=unsupported
15531         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15532         # support --undefined.  This deserves some investigation.  FIXME
15533         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15534       else
15535         ld_shlibs_GCJ=no
15536       fi
15537       ;;
15538
15539     cygwin* | mingw* | pw32*)
15540       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15541       # as there is no search path for DLLs.
15542       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15543       allow_undefined_flag_GCJ=unsupported
15544       always_export_symbols_GCJ=no
15545       enable_shared_with_static_runtimes_GCJ=yes
15546       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15547
15548       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15549         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15550         # If the export-symbols file already is a .def file (1st line
15551         # is EXPORTS), use it as is; otherwise, prepend...
15552         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15553           cp $export_symbols $output_objdir/$soname.def;
15554         else
15555           echo EXPORTS > $output_objdir/$soname.def;
15556           cat $export_symbols >> $output_objdir/$soname.def;
15557         fi~
15558         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15559       else
15560         ld_shlibs=no
15561       fi
15562       ;;
15563
15564     netbsd*)
15565       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15566         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15567         wlarc=
15568       else
15569         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15570         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15571       fi
15572       ;;
15573
15574     solaris* | sysv5*)
15575       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15576         ld_shlibs_GCJ=no
15577         cat <<EOF 1>&2
15578
15579 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15580 *** create shared libraries on Solaris systems.  Therefore, libtool
15581 *** is disabling shared libraries support.  We urge you to upgrade GNU
15582 *** binutils to release 2.9.1 or newer.  Another option is to modify
15583 *** your PATH or compiler configuration so that the native linker is
15584 *** used, and then restart.
15585
15586 EOF
15587       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15588         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15589         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15590       else
15591         ld_shlibs_GCJ=no
15592       fi
15593       ;;
15594
15595     sunos4*)
15596       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15597       wlarc=
15598       hardcode_direct_GCJ=yes
15599       hardcode_shlibpath_var_GCJ=no
15600       ;;
15601
15602     *)
15603       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15604         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15605         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15606       else
15607         ld_shlibs_GCJ=no
15608       fi
15609       ;;
15610     esac
15611
15612     if test "$ld_shlibs_GCJ" = yes; then
15613       runpath_var=LD_RUN_PATH
15614       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15615       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15616       # ancient GNU ld didn't support --whole-archive et. al.
15617       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15618         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15619       else
15620         whole_archive_flag_spec_GCJ=
15621       fi
15622     fi
15623   else
15624     # PORTME fill in a description of your system's linker (not GNU ld)
15625     case $host_os in
15626     aix3*)
15627       allow_undefined_flag_GCJ=unsupported
15628       always_export_symbols_GCJ=yes
15629       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'
15630       # Note: this linker hardcodes the directories in LIBPATH if there
15631       # are no directories specified by -L.
15632       hardcode_minus_L_GCJ=yes
15633       if test "$GCC" = yes && test -z "$link_static_flag"; then
15634         # Neither direct hardcoding nor static linking is supported with a
15635         # broken collect2.
15636         hardcode_direct_GCJ=unsupported
15637       fi
15638       ;;
15639
15640     aix4* | aix5*)
15641       if test "$host_cpu" = ia64; then
15642         # On IA64, the linker does run time linking by default, so we don't
15643         # have to do anything special.
15644         aix_use_runtimelinking=no
15645         exp_sym_flag='-Bexport'
15646         no_entry_flag=""
15647       else
15648         # If we're using GNU nm, then we don't want the "-C" option.
15649         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15650         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15651           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'
15652         else
15653           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'
15654         fi
15655         aix_use_runtimelinking=no
15656
15657         # Test if we are trying to use run time linking or normal
15658         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15659         # need to do runtime linking.
15660         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15661           for ld_flag in $LDFLAGS; do
15662           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15663             aix_use_runtimelinking=yes
15664             break
15665           fi
15666           done
15667         esac
15668
15669         exp_sym_flag='-bexport'
15670         no_entry_flag='-bnoentry'
15671       fi
15672
15673       # When large executables or shared objects are built, AIX ld can
15674       # have problems creating the table of contents.  If linking a library
15675       # or program results in "error TOC overflow" add -mminimal-toc to
15676       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15677       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15678
15679       archive_cmds_GCJ=''
15680       hardcode_direct_GCJ=yes
15681       hardcode_libdir_separator_GCJ=':'
15682       link_all_deplibs_GCJ=yes
15683
15684       if test "$GCC" = yes; then
15685         case $host_os in aix4.012|aix4.012.*)
15686         # We only want to do this on AIX 4.2 and lower, the check
15687         # below for broken collect2 doesn't work under 4.3+
15688           collect2name=`${CC} -print-prog-name=collect2`
15689           if test -f "$collect2name" && \
15690            strings "$collect2name" | grep resolve_lib_name >/dev/null
15691           then
15692           # We have reworked collect2
15693           hardcode_direct_GCJ=yes
15694           else
15695           # We have old collect2
15696           hardcode_direct_GCJ=unsupported
15697           # It fails to find uninstalled libraries when the uninstalled
15698           # path is not listed in the libpath.  Setting hardcode_minus_L
15699           # to unsupported forces relinking
15700           hardcode_minus_L_GCJ=yes
15701           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15702           hardcode_libdir_separator_GCJ=
15703           fi
15704         esac
15705         shared_flag='-shared'
15706       else
15707         # not using gcc
15708         if test "$host_cpu" = ia64; then
15709         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15710         # chokes on -Wl,-G. The following line is correct:
15711           shared_flag='-G'
15712         else
15713         if test "$aix_use_runtimelinking" = yes; then
15714             shared_flag='${wl}-G'
15715           else
15716             shared_flag='${wl}-bM:SRE'
15717         fi
15718         fi
15719       fi
15720
15721       # It seems that -bexpall does not export symbols beginning with
15722       # underscore (_), so it is better to generate a list of symbols to export.
15723       always_export_symbols_GCJ=yes
15724       if test "$aix_use_runtimelinking" = yes; then
15725         # Warning - without using the other runtime loading flags (-brtl),
15726         # -berok will link without error, but may produce a broken library.
15727         allow_undefined_flag_GCJ='-berok'
15728        # Determine the default libpath from the value encoded in an empty executable.
15729        cat >conftest.$ac_ext <<_ACEOF
15730 #line $LINENO "configure"
15731 /* confdefs.h.  */
15732 _ACEOF
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h.  */
15736
15737 int
15738 main ()
15739 {
15740
15741   ;
15742   return 0;
15743 }
15744 _ACEOF
15745 rm -f conftest.$ac_objext conftest$ac_exeext
15746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15747   (eval $ac_link) 2>&5
15748   ac_status=$?
15749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750   (exit $ac_status); } &&
15751          { ac_try='test -s conftest$ac_exeext'
15752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753   (eval $ac_try) 2>&5
15754   ac_status=$?
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); }; }; then
15757
15758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15759 }'`
15760 # Check for a 64-bit object if we didn't find anything.
15761 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; }
15762 }'`; fi
15763 else
15764   echo "$as_me: failed program was:" >&5
15765 sed 's/^/| /' conftest.$ac_ext >&5
15766
15767 fi
15768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15769 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15770
15771        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15772         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"
15773        else
15774         if test "$host_cpu" = ia64; then
15775           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15776           allow_undefined_flag_GCJ="-z nodefs"
15777           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"
15778         else
15779          # Determine the default libpath from the value encoded in an empty executable.
15780          cat >conftest.$ac_ext <<_ACEOF
15781 #line $LINENO "configure"
15782 /* confdefs.h.  */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h.  */
15787
15788 int
15789 main ()
15790 {
15791
15792   ;
15793   return 0;
15794 }
15795 _ACEOF
15796 rm -f conftest.$ac_objext conftest$ac_exeext
15797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15798   (eval $ac_link) 2>&5
15799   ac_status=$?
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); } &&
15802          { ac_try='test -s conftest$ac_exeext'
15803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804   (eval $ac_try) 2>&5
15805   ac_status=$?
15806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807   (exit $ac_status); }; }; then
15808
15809 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15810 }'`
15811 # Check for a 64-bit object if we didn't find anything.
15812 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; }
15813 }'`; fi
15814 else
15815   echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15817
15818 fi
15819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15821
15822          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15823           # Warning - without using the other run time loading flags,
15824           # -berok will link without error, but may produce a broken library.
15825           no_undefined_flag_GCJ=' ${wl}-bernotok'
15826           allow_undefined_flag_GCJ=' ${wl}-berok'
15827           # -bexpall does not export symbols beginning with underscore (_)
15828           always_export_symbols_GCJ=yes
15829           # Exported symbols can be pulled into shared objects from archives
15830           whole_archive_flag_spec_GCJ=' '
15831           archive_cmds_need_lc_GCJ=yes
15832           # This is similar to how AIX traditionally builds it's shared libraries.
15833           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'
15834         fi
15835       fi
15836       ;;
15837
15838     amigaos*)
15839       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)'
15840       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15841       hardcode_minus_L_GCJ=yes
15842       # see comment about different semantics on the GNU ld section
15843       ld_shlibs_GCJ=no
15844       ;;
15845
15846     bsdi4*)
15847       export_dynamic_flag_spec_GCJ=-rdynamic
15848       ;;
15849
15850     cygwin* | mingw* | pw32*)
15851       # When not using gcc, we currently assume that we are using
15852       # Microsoft Visual C++.
15853       # hardcode_libdir_flag_spec is actually meaningless, as there is
15854       # no search path for DLLs.
15855       hardcode_libdir_flag_spec_GCJ=' '
15856       allow_undefined_flag_GCJ=unsupported
15857       # Tell ltmain to make .lib files, not .a files.
15858       libext=lib
15859       # Tell ltmain to make .dll files, not .so files.
15860       shrext=".dll"
15861       # FIXME: Setting linknames here is a bad hack.
15862       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15863       # The linker will automatically build a .lib file if we build a DLL.
15864       old_archive_From_new_cmds_GCJ='true'
15865       # FIXME: Should let the user specify the lib program.
15866       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15867       fix_srcfile_path='`cygpath -w "$srcfile"`'
15868       enable_shared_with_static_runtimes_GCJ=yes
15869       ;;
15870
15871     darwin* | rhapsody*)
15872     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15873       archive_cmds_need_lc_GCJ=no
15874       case "$host_os" in
15875       rhapsody* | darwin1.[012])
15876         allow_undefined_flag_GCJ='-undefined suppress'
15877         ;;
15878       *) # Darwin 1.3 on
15879         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15880         ;;
15881       esac
15882       # FIXME: Relying on posixy $() will cause problems for
15883       #        cross-compilation, but unfortunately the echo tests do not
15884       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15885       #        `"' quotes if we put them in here... so don't!
15886         lt_int_apple_cc_single_mod=no
15887         output_verbose_link_cmd='echo'
15888         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15889           lt_int_apple_cc_single_mod=yes
15890         fi
15891         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15892           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15893         else
15894         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'
15895       fi
15896       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15897       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15898         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15899           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}'
15900         else
15901           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}'
15902         fi
15903           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}'
15904       hardcode_direct_GCJ=no
15905       hardcode_automatic_GCJ=yes
15906       hardcode_shlibpath_var_GCJ=unsupported
15907       whole_archive_flag_spec_GCJ='-all_load $convenience'
15908       link_all_deplibs_GCJ=yes
15909     fi
15910       ;;
15911
15912     dgux*)
15913       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15914       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15915       hardcode_shlibpath_var_GCJ=no
15916       ;;
15917
15918     freebsd1*)
15919       ld_shlibs_GCJ=no
15920       ;;
15921
15922     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15923     # support.  Future versions do this automatically, but an explicit c++rt0.o
15924     # does not break anything, and helps significantly (at the cost of a little
15925     # extra space).
15926     freebsd2.2*)
15927       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15928       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15929       hardcode_direct_GCJ=yes
15930       hardcode_shlibpath_var_GCJ=no
15931       ;;
15932
15933     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15934     freebsd2*)
15935       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15936       hardcode_direct_GCJ=yes
15937       hardcode_minus_L_GCJ=yes
15938       hardcode_shlibpath_var_GCJ=no
15939       ;;
15940
15941     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15942     freebsd*)
15943       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15944       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15945       hardcode_direct_GCJ=yes
15946       hardcode_shlibpath_var_GCJ=no
15947       ;;
15948
15949     hpux9*)
15950       if test "$GCC" = yes; then
15951         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'
15952       else
15953         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'
15954       fi
15955       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15956       hardcode_libdir_separator_GCJ=:
15957       hardcode_direct_GCJ=yes
15958
15959       # hardcode_minus_L: Not really in the search PATH,
15960       # but as the default location of the library.
15961       hardcode_minus_L_GCJ=yes
15962       export_dynamic_flag_spec_GCJ='${wl}-E'
15963       ;;
15964
15965     hpux10* | hpux11*)
15966       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15967         case "$host_cpu" in
15968         hppa*64*|ia64*)
15969           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15970           ;;
15971         *)
15972           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15973           ;;
15974         esac
15975       else
15976         case "$host_cpu" in
15977         hppa*64*|ia64*)
15978           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15979           ;;
15980         *)
15981           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15982           ;;
15983         esac
15984       fi
15985       if test "$with_gnu_ld" = no; then
15986         case "$host_cpu" in
15987         hppa*64*)
15988           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15989           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15990           hardcode_libdir_separator_GCJ=:
15991           hardcode_direct_GCJ=no
15992           hardcode_shlibpath_var_GCJ=no
15993           ;;
15994         ia64*)
15995           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15996           hardcode_direct_GCJ=no
15997           hardcode_shlibpath_var_GCJ=no
15998
15999           # hardcode_minus_L: Not really in the search PATH,
16000           # but as the default location of the library.
16001           hardcode_minus_L_GCJ=yes
16002           ;;
16003         *)
16004           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16005           hardcode_libdir_separator_GCJ=:
16006           hardcode_direct_GCJ=yes
16007           export_dynamic_flag_spec_GCJ='${wl}-E'
16008
16009           # hardcode_minus_L: Not really in the search PATH,
16010           # but as the default location of the library.
16011           hardcode_minus_L_GCJ=yes
16012           ;;
16013         esac
16014       fi
16015       ;;
16016
16017     irix5* | irix6* | nonstopux*)
16018       if test "$GCC" = yes; then
16019         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'
16020       else
16021         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'
16022         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16023       fi
16024       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16025       hardcode_libdir_separator_GCJ=:
16026       link_all_deplibs_GCJ=yes
16027       ;;
16028
16029     netbsd*)
16030       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16031         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16032       else
16033         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16034       fi
16035       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16036       hardcode_direct_GCJ=yes
16037       hardcode_shlibpath_var_GCJ=no
16038       ;;
16039
16040     newsos6)
16041       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16042       hardcode_direct_GCJ=yes
16043       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16044       hardcode_libdir_separator_GCJ=:
16045       hardcode_shlibpath_var_GCJ=no
16046       ;;
16047
16048     openbsd*)
16049       hardcode_direct_GCJ=yes
16050       hardcode_shlibpath_var_GCJ=no
16051       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16052         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16053         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16054         export_dynamic_flag_spec_GCJ='${wl}-E'
16055       else
16056        case $host_os in
16057          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16058            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16059            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16060            ;;
16061          *)
16062            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16063            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16064            ;;
16065        esac
16066       fi
16067       ;;
16068
16069     os2*)
16070       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16071       hardcode_minus_L_GCJ=yes
16072       allow_undefined_flag_GCJ=unsupported
16073       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'
16074       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16075       ;;
16076
16077     osf3*)
16078       if test "$GCC" = yes; then
16079         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16080         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'
16081       else
16082         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16083         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'
16084       fi
16085       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16086       hardcode_libdir_separator_GCJ=:
16087       ;;
16088
16089     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16090       if test "$GCC" = yes; then
16091         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16092         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'
16093         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16094       else
16095         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16096         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'
16097         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~
16098         $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'
16099
16100         # Both c and cxx compiler support -rpath directly
16101         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16102       fi
16103       hardcode_libdir_separator_GCJ=:
16104       ;;
16105
16106     sco3.2v5*)
16107       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16108       hardcode_shlibpath_var_GCJ=no
16109       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16110       runpath_var=LD_RUN_PATH
16111       hardcode_runpath_var=yes
16112       ;;
16113
16114     solaris*)
16115       no_undefined_flag_GCJ=' -z text'
16116       if test "$GCC" = yes; then
16117         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16118         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16119           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16120       else
16121         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16123         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16124       fi
16125       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16126       hardcode_shlibpath_var_GCJ=no
16127       case $host_os in
16128       solaris2.[0-5] | solaris2.[0-5].*) ;;
16129       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16130         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16131       esac
16132       link_all_deplibs_GCJ=yes
16133       ;;
16134
16135     sunos4*)
16136       if test "x$host_vendor" = xsequent; then
16137         # Use $CC to link under sequent, because it throws in some extra .o
16138         # files that make .init and .fini sections work.
16139         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16140       else
16141         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16142       fi
16143       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16144       hardcode_direct_GCJ=yes
16145       hardcode_minus_L_GCJ=yes
16146       hardcode_shlibpath_var_GCJ=no
16147       ;;
16148
16149     sysv4)
16150       case $host_vendor in
16151         sni)
16152           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16153           hardcode_direct_GCJ=yes # is this really true???
16154         ;;
16155         siemens)
16156           ## LD is ld it makes a PLAMLIB
16157           ## CC just makes a GrossModule.
16158           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16159           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16160           hardcode_direct_GCJ=no
16161         ;;
16162         motorola)
16163           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16164           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16165         ;;
16166       esac
16167       runpath_var='LD_RUN_PATH'
16168       hardcode_shlibpath_var_GCJ=no
16169       ;;
16170
16171     sysv4.3*)
16172       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16173       hardcode_shlibpath_var_GCJ=no
16174       export_dynamic_flag_spec_GCJ='-Bexport'
16175       ;;
16176
16177     sysv4*MP*)
16178       if test -d /usr/nec; then
16179         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180         hardcode_shlibpath_var_GCJ=no
16181         runpath_var=LD_RUN_PATH
16182         hardcode_runpath_var=yes
16183         ld_shlibs_GCJ=yes
16184       fi
16185       ;;
16186
16187     sysv4.2uw2*)
16188       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16189       hardcode_direct_GCJ=yes
16190       hardcode_minus_L_GCJ=no
16191       hardcode_shlibpath_var_GCJ=no
16192       hardcode_runpath_var=yes
16193       runpath_var=LD_RUN_PATH
16194       ;;
16195
16196    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16197       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16198       if test "$GCC" = yes; then
16199         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16200       else
16201         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16202       fi
16203       runpath_var='LD_RUN_PATH'
16204       hardcode_shlibpath_var_GCJ=no
16205       ;;
16206
16207     sysv5*)
16208       no_undefined_flag_GCJ=' -z text'
16209       # $CC -shared without GNU ld will not create a library from C++
16210       # object files and a static libstdc++, better avoid it by now
16211       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16212       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16213                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16214       hardcode_libdir_flag_spec_GCJ=
16215       hardcode_shlibpath_var_GCJ=no
16216       runpath_var='LD_RUN_PATH'
16217       ;;
16218
16219     uts4*)
16220       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16221       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16222       hardcode_shlibpath_var_GCJ=no
16223       ;;
16224
16225     *)
16226       ld_shlibs_GCJ=no
16227       ;;
16228     esac
16229   fi
16230
16231 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16232 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16233 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16234
16235 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16236 if test "$GCC" = yes; then
16237   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16238 fi
16239
16240 #
16241 # Do we need to explicitly link libc?
16242 #
16243 case "x$archive_cmds_need_lc_GCJ" in
16244 x|xyes)
16245   # Assume -lc should be added
16246   archive_cmds_need_lc_GCJ=yes
16247
16248   if test "$enable_shared" = yes && test "$GCC" = yes; then
16249     case $archive_cmds_GCJ in
16250     *'~'*)
16251       # FIXME: we may have to deal with multi-command sequences.
16252       ;;
16253     '$CC '*)
16254       # Test whether the compiler implicitly links with -lc since on some
16255       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16256       # to ld, don't add -lc before -lgcc.
16257       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16258 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16259       $rm conftest*
16260       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16261
16262       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16263   (eval $ac_compile) 2>&5
16264   ac_status=$?
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); } 2>conftest.err; then
16267         soname=conftest
16268         lib=conftest
16269         libobjs=conftest.$ac_objext
16270         deplibs=
16271         wl=$lt_prog_compiler_wl_GCJ
16272         compiler_flags=-v
16273         linker_flags=-v
16274         verstring=
16275         output_objdir=.
16276         libname=conftest
16277         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16278         allow_undefined_flag_GCJ=
16279         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16280   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16281   ac_status=$?
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); }
16284         then
16285           archive_cmds_need_lc_GCJ=no
16286         else
16287           archive_cmds_need_lc_GCJ=yes
16288         fi
16289         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16290       else
16291         cat conftest.err 1>&5
16292       fi
16293       $rm conftest*
16294       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16295 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16296       ;;
16297     esac
16298   fi
16299   ;;
16300 esac
16301
16302 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16303 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16304 hardcode_action_GCJ=
16305 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16306    test -n "$runpath_var GCJ" || \
16307    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16308
16309   # We can hardcode non-existant directories.
16310   if test "$hardcode_direct_GCJ" != no &&
16311      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16312      # have to relink, otherwise we might link with an installed library
16313      # when we should be linking with a yet-to-be-installed one
16314      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16315      test "$hardcode_minus_L_GCJ" != no; then
16316     # Linking always hardcodes the temporary library directory.
16317     hardcode_action_GCJ=relink
16318   else
16319     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16320     hardcode_action_GCJ=immediate
16321   fi
16322 else
16323   # We cannot hardcode anything, or else we can only hardcode existing
16324   # directories.
16325   hardcode_action_GCJ=unsupported
16326 fi
16327 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16328 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16329
16330 if test "$hardcode_action_GCJ" = relink; then
16331   # Fast installation is not supported
16332   enable_fast_install=no
16333 elif test "$shlibpath_overrides_runpath" = yes ||
16334      test "$enable_shared" = no; then
16335   # Fast installation is not necessary
16336   enable_fast_install=needless
16337 fi
16338
16339 striplib=
16340 old_striplib=
16341 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16342 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16343 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16344   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16345   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16346   echo "$as_me:$LINENO: result: yes" >&5
16347 echo "${ECHO_T}yes" >&6
16348 else
16349 # FIXME - insert some real tests, host_os isn't really good enough
16350   case $host_os in
16351    darwin*)
16352        if test -n "$STRIP" ; then
16353          striplib="$STRIP -x"
16354          echo "$as_me:$LINENO: result: yes" >&5
16355 echo "${ECHO_T}yes" >&6
16356        else
16357   echo "$as_me:$LINENO: result: no" >&5
16358 echo "${ECHO_T}no" >&6
16359 fi
16360        ;;
16361    *)
16362   echo "$as_me:$LINENO: result: no" >&5
16363 echo "${ECHO_T}no" >&6
16364     ;;
16365   esac
16366 fi
16367
16368 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16369 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16370 library_names_spec=
16371 libname_spec='lib$name'
16372 soname_spec=
16373 shrext=".so"
16374 postinstall_cmds=
16375 postuninstall_cmds=
16376 finish_cmds=
16377 finish_eval=
16378 shlibpath_var=
16379 shlibpath_overrides_runpath=unknown
16380 version_type=none
16381 dynamic_linker="$host_os ld.so"
16382 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16383 if test "$GCC" = yes; then
16384   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16385   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16386     # if the path contains ";" then we assume it to be the separator
16387     # otherwise default to the standard path separator (i.e. ":") - it is
16388     # assumed that no part of a normal pathname contains ";" but that should
16389     # okay in the real world where ";" in dirpaths is itself problematic.
16390     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16391   else
16392     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16393   fi
16394 else
16395   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16396 fi
16397 need_lib_prefix=unknown
16398 hardcode_into_libs=no
16399
16400 # when you set need_version to no, make sure it does not cause -set_version
16401 # flags to be left without arguments
16402 need_version=unknown
16403
16404 case $host_os in
16405 aix3*)
16406   version_type=linux
16407   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16408   shlibpath_var=LIBPATH
16409
16410   # AIX 3 has no versioning support, so we append a major version to the name.
16411   soname_spec='${libname}${release}${shared_ext}$major'
16412   ;;
16413
16414 aix4* | aix5*)
16415   version_type=linux
16416   need_lib_prefix=no
16417   need_version=no
16418   hardcode_into_libs=yes
16419   if test "$host_cpu" = ia64; then
16420     # AIX 5 supports IA64
16421     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16422     shlibpath_var=LD_LIBRARY_PATH
16423   else
16424     # With GCC up to 2.95.x, collect2 would create an import file
16425     # for dependence libraries.  The import file would start with
16426     # the line `#! .'.  This would cause the generated library to
16427     # depend on `.', always an invalid library.  This was fixed in
16428     # development snapshots of GCC prior to 3.0.
16429     case $host_os in
16430       aix4 | aix4.[01] | aix4.[01].*)
16431       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16432            echo ' yes '
16433            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16434         :
16435       else
16436         can_build_shared=no
16437       fi
16438       ;;
16439     esac
16440     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16441     # soname into executable. Probably we can add versioning support to
16442     # collect2, so additional links can be useful in future.
16443     if test "$aix_use_runtimelinking" = yes; then
16444       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16445       # instead of lib<name>.a to let people know that these are not
16446       # typical AIX shared libraries.
16447       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448     else
16449       # We preserve .a as extension for shared libraries through AIX4.2
16450       # and later when we are not doing run time linking.
16451       library_names_spec='${libname}${release}.a $libname.a'
16452       soname_spec='${libname}${release}${shared_ext}$major'
16453     fi
16454     shlibpath_var=LIBPATH
16455   fi
16456   ;;
16457
16458 amigaos*)
16459   library_names_spec='$libname.ixlibrary $libname.a'
16460   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16461   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'
16462   ;;
16463
16464 beos*)
16465   library_names_spec='${libname}${shared_ext}'
16466   dynamic_linker="$host_os ld.so"
16467   shlibpath_var=LIBRARY_PATH
16468   ;;
16469
16470 bsdi4*)
16471   version_type=linux
16472   need_version=no
16473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474   soname_spec='${libname}${release}${shared_ext}$major'
16475   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16476   shlibpath_var=LD_LIBRARY_PATH
16477   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16478   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16479   # the default ld.so.conf also contains /usr/contrib/lib and
16480   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16481   # libtool to hard-code these into programs
16482   ;;
16483
16484 cygwin* | mingw* | pw32*)
16485   version_type=windows
16486   shrext=".dll"
16487   need_version=no
16488   need_lib_prefix=no
16489
16490   case $GCC,$host_os in
16491   yes,cygwin* | yes,mingw* | yes,pw32*)
16492     library_names_spec='$libname.dll.a'
16493     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16494     postinstall_cmds='base_file=`basename \${file}`~
16495       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16496       dldir=$destdir/`dirname \$dlpath`~
16497       test -d \$dldir || mkdir -p \$dldir~
16498       $install_prog $dir/$dlname \$dldir/$dlname'
16499     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16500       dlpath=$dir/\$dldll~
16501        $rm \$dlpath'
16502     shlibpath_overrides_runpath=yes
16503
16504     case $host_os in
16505     cygwin*)
16506       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16507       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16508       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16509       ;;
16510     mingw*)
16511       # MinGW DLLs use traditional 'lib' prefix
16512       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16513       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16514       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16515         # It is most probably a Windows format PATH printed by
16516         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16517         # path with ; separators, and with drive letters. We can handle the
16518         # drive letters (cygwin fileutils understands them), so leave them,
16519         # especially as we might pass files found there to a mingw objdump,
16520         # which wouldn't understand a cygwinified path. Ahh.
16521         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16522       else
16523         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16524       fi
16525       ;;
16526     pw32*)
16527       # pw32 DLLs use 'pw' prefix rather than 'lib'
16528       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16529       ;;
16530     esac
16531     ;;
16532
16533   *)
16534     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16535     ;;
16536   esac
16537   dynamic_linker='Win32 ld.exe'
16538   # FIXME: first we should search . and the directory the executable is in
16539   shlibpath_var=PATH
16540   ;;
16541
16542 darwin* | rhapsody*)
16543   dynamic_linker="$host_os dyld"
16544   version_type=darwin
16545   need_lib_prefix=no
16546   need_version=no
16547   # FIXME: Relying on posixy $() will cause problems for
16548   #        cross-compilation, but unfortunately the echo tests do not
16549   #        yet detect zsh echo's removal of \ escapes.
16550   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16551   soname_spec='${libname}${release}${major}$shared_ext'
16552   shlibpath_overrides_runpath=yes
16553   shlibpath_var=DYLD_LIBRARY_PATH
16554   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16555   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16556   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16557   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"`
16558   fi
16559   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16560   ;;
16561
16562 dgux*)
16563   version_type=linux
16564   need_lib_prefix=no
16565   need_version=no
16566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16567   soname_spec='${libname}${release}${shared_ext}$major'
16568   shlibpath_var=LD_LIBRARY_PATH
16569   ;;
16570
16571 freebsd1*)
16572   dynamic_linker=no
16573   ;;
16574
16575 freebsd*)
16576   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16577   version_type=freebsd-$objformat
16578   case $version_type in
16579     freebsd-elf*)
16580       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16581       need_version=no
16582       need_lib_prefix=no
16583       ;;
16584     freebsd-*)
16585       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16586       need_version=yes
16587       ;;
16588   esac
16589   shlibpath_var=LD_LIBRARY_PATH
16590   case $host_os in
16591   freebsd2*)
16592     shlibpath_overrides_runpath=yes
16593     ;;
16594   freebsd3.01* | freebsdelf3.01*)
16595     shlibpath_overrides_runpath=yes
16596     hardcode_into_libs=yes
16597     ;;
16598   *) # from 3.2 on
16599     shlibpath_overrides_runpath=no
16600     hardcode_into_libs=yes
16601     ;;
16602   esac
16603   ;;
16604
16605 gnu*)
16606   version_type=linux
16607   need_lib_prefix=no
16608   need_version=no
16609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16610   soname_spec='${libname}${release}${shared_ext}$major'
16611   shlibpath_var=LD_LIBRARY_PATH
16612   hardcode_into_libs=yes
16613   ;;
16614
16615 hpux9* | hpux10* | hpux11*)
16616   # Give a soname corresponding to the major version so that dld.sl refuses to
16617   # link against other versions.
16618   version_type=sunos
16619   need_lib_prefix=no
16620   need_version=no
16621   case "$host_cpu" in
16622   ia64*)
16623     shrext='.so'
16624     hardcode_into_libs=yes
16625     dynamic_linker="$host_os dld.so"
16626     shlibpath_var=LD_LIBRARY_PATH
16627     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16629     soname_spec='${libname}${release}${shared_ext}$major'
16630     if test "X$HPUX_IA64_MODE" = X32; then
16631       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16632     else
16633       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16634     fi
16635     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16636     ;;
16637    hppa*64*)
16638      shrext='.sl'
16639      hardcode_into_libs=yes
16640      dynamic_linker="$host_os dld.sl"
16641      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16642      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16643      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16644      soname_spec='${libname}${release}${shared_ext}$major'
16645      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16646      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16647      ;;
16648    *)
16649     shrext='.sl'
16650     dynamic_linker="$host_os dld.sl"
16651     shlibpath_var=SHLIB_PATH
16652     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16654     soname_spec='${libname}${release}${shared_ext}$major'
16655     ;;
16656   esac
16657   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16658   postinstall_cmds='chmod 555 $lib'
16659   ;;
16660
16661 irix5* | irix6* | nonstopux*)
16662   case $host_os in
16663     nonstopux*) version_type=nonstopux ;;
16664     *)
16665         if test "$lt_cv_prog_gnu_ld" = yes; then
16666                 version_type=linux
16667         else
16668                 version_type=irix
16669         fi ;;
16670   esac
16671   need_lib_prefix=no
16672   need_version=no
16673   soname_spec='${libname}${release}${shared_ext}$major'
16674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16675   case $host_os in
16676   irix5* | nonstopux*)
16677     libsuff= shlibsuff=
16678     ;;
16679   *)
16680     case $LD in # libtool.m4 will add one of these switches to LD
16681     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16682       libsuff= shlibsuff= libmagic=32-bit;;
16683     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16684       libsuff=32 shlibsuff=N32 libmagic=N32;;
16685     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16686       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16687     *) libsuff= shlibsuff= libmagic=never-match;;
16688     esac
16689     ;;
16690   esac
16691   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16692   shlibpath_overrides_runpath=no
16693   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16694   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16695   hardcode_into_libs=yes
16696   ;;
16697
16698 # No shared lib support for Linux oldld, aout, or coff.
16699 linux*oldld* | linux*aout* | linux*coff*)
16700   dynamic_linker=no
16701   ;;
16702
16703 # This must be Linux ELF.
16704 linux*)
16705   version_type=linux
16706   need_lib_prefix=no
16707   need_version=no
16708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709   soname_spec='${libname}${release}${shared_ext}$major'
16710   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16711   shlibpath_var=LD_LIBRARY_PATH
16712   shlibpath_overrides_runpath=no
16713   # This implies no fast_install, which is unacceptable.
16714   # Some rework will be needed to allow for fast_install
16715   # before this can be enabled.
16716   hardcode_into_libs=yes
16717
16718   # We used to test for /lib/ld.so.1 and disable shared libraries on
16719   # powerpc, because MkLinux only supported shared libraries with the
16720   # GNU dynamic linker.  Since this was broken with cross compilers,
16721   # most powerpc-linux boxes support dynamic linking these days and
16722   # people can always --disable-shared, the test was removed, and we
16723   # assume the GNU/Linux dynamic linker is in use.
16724   dynamic_linker='GNU/Linux ld.so'
16725   ;;
16726
16727 netbsd*)
16728   version_type=sunos
16729   need_lib_prefix=no
16730   need_version=no
16731   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16733     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16734     dynamic_linker='NetBSD (a.out) ld.so'
16735   else
16736     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16737     soname_spec='${libname}${release}${shared_ext}$major'
16738     dynamic_linker='NetBSD ld.elf_so'
16739   fi
16740   shlibpath_var=LD_LIBRARY_PATH
16741   shlibpath_overrides_runpath=yes
16742   hardcode_into_libs=yes
16743   ;;
16744
16745 newsos6)
16746   version_type=linux
16747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748   shlibpath_var=LD_LIBRARY_PATH
16749   shlibpath_overrides_runpath=yes
16750   ;;
16751
16752 nto-qnx)
16753   version_type=linux
16754   need_lib_prefix=no
16755   need_version=no
16756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757   soname_spec='${libname}${release}${shared_ext}$major'
16758   shlibpath_var=LD_LIBRARY_PATH
16759   shlibpath_overrides_runpath=yes
16760   ;;
16761
16762 openbsd*)
16763   version_type=sunos
16764   need_lib_prefix=no
16765   need_version=no
16766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16767   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16768   shlibpath_var=LD_LIBRARY_PATH
16769   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16770     case $host_os in
16771       openbsd2.[89] | openbsd2.[89].*)
16772         shlibpath_overrides_runpath=no
16773         ;;
16774       *)
16775         shlibpath_overrides_runpath=yes
16776         ;;
16777       esac
16778   else
16779     shlibpath_overrides_runpath=yes
16780   fi
16781   ;;
16782
16783 os2*)
16784   libname_spec='$name'
16785   shrext=".dll"
16786   need_lib_prefix=no
16787   library_names_spec='$libname${shared_ext} $libname.a'
16788   dynamic_linker='OS/2 ld.exe'
16789   shlibpath_var=LIBPATH
16790   ;;
16791
16792 osf3* | osf4* | osf5*)
16793   version_type=osf
16794   need_lib_prefix=no
16795   need_version=no
16796   soname_spec='${libname}${release}${shared_ext}$major'
16797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16798   shlibpath_var=LD_LIBRARY_PATH
16799   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16800   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16801   ;;
16802
16803 sco3.2v5*)
16804   version_type=osf
16805   soname_spec='${libname}${release}${shared_ext}$major'
16806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16807   shlibpath_var=LD_LIBRARY_PATH
16808   ;;
16809
16810 solaris*)
16811   version_type=linux
16812   need_lib_prefix=no
16813   need_version=no
16814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815   soname_spec='${libname}${release}${shared_ext}$major'
16816   shlibpath_var=LD_LIBRARY_PATH
16817   shlibpath_overrides_runpath=yes
16818   hardcode_into_libs=yes
16819   # ldd complains unless libraries are executable
16820   postinstall_cmds='chmod +x $lib'
16821   ;;
16822
16823 sunos4*)
16824   version_type=sunos
16825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16826   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16827   shlibpath_var=LD_LIBRARY_PATH
16828   shlibpath_overrides_runpath=yes
16829   if test "$with_gnu_ld" = yes; then
16830     need_lib_prefix=no
16831   fi
16832   need_version=yes
16833   ;;
16834
16835 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16836   version_type=linux
16837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838   soname_spec='${libname}${release}${shared_ext}$major'
16839   shlibpath_var=LD_LIBRARY_PATH
16840   case $host_vendor in
16841     sni)
16842       shlibpath_overrides_runpath=no
16843       need_lib_prefix=no
16844       export_dynamic_flag_spec='${wl}-Blargedynsym'
16845       runpath_var=LD_RUN_PATH
16846       ;;
16847     siemens)
16848       need_lib_prefix=no
16849       ;;
16850     motorola)
16851       need_lib_prefix=no
16852       need_version=no
16853       shlibpath_overrides_runpath=no
16854       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16855       ;;
16856   esac
16857   ;;
16858
16859 sysv4*MP*)
16860   if test -d /usr/nec ;then
16861     version_type=linux
16862     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16863     soname_spec='$libname${shared_ext}.$major'
16864     shlibpath_var=LD_LIBRARY_PATH
16865   fi
16866   ;;
16867
16868 uts4*)
16869   version_type=linux
16870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16871   soname_spec='${libname}${release}${shared_ext}$major'
16872   shlibpath_var=LD_LIBRARY_PATH
16873   ;;
16874
16875 *)
16876   dynamic_linker=no
16877   ;;
16878 esac
16879 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16880 echo "${ECHO_T}$dynamic_linker" >&6
16881 test "$dynamic_linker" = no && can_build_shared=no
16882
16883 if test "x$enable_dlopen" != xyes; then
16884   enable_dlopen=unknown
16885   enable_dlopen_self=unknown
16886   enable_dlopen_self_static=unknown
16887 else
16888   lt_cv_dlopen=no
16889   lt_cv_dlopen_libs=
16890
16891   case $host_os in
16892   beos*)
16893     lt_cv_dlopen="load_add_on"
16894     lt_cv_dlopen_libs=
16895     lt_cv_dlopen_self=yes
16896     ;;
16897
16898   mingw* | pw32*)
16899     lt_cv_dlopen="LoadLibrary"
16900     lt_cv_dlopen_libs=
16901    ;;
16902
16903   cygwin*)
16904     lt_cv_dlopen="dlopen"
16905     lt_cv_dlopen_libs=
16906    ;;
16907
16908   darwin*)
16909   # if libdl is installed we need to link against it
16910     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16911 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16912 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16913   echo $ECHO_N "(cached) $ECHO_C" >&6
16914 else
16915   ac_check_lib_save_LIBS=$LIBS
16916 LIBS="-ldl  $LIBS"
16917 cat >conftest.$ac_ext <<_ACEOF
16918 #line $LINENO "configure"
16919 /* confdefs.h.  */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h.  */
16924
16925 /* Override any gcc2 internal prototype to avoid an error.  */
16926 #ifdef __cplusplus
16927 extern "C"
16928 #endif
16929 /* We use char because int might match the return type of a gcc2
16930    builtin and then its argument prototype would still apply.  */
16931 char dlopen ();
16932 int
16933 main ()
16934 {
16935 dlopen ();
16936   ;
16937   return 0;
16938 }
16939 _ACEOF
16940 rm -f conftest.$ac_objext conftest$ac_exeext
16941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16942   (eval $ac_link) 2>&5
16943   ac_status=$?
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); } &&
16946          { ac_try='test -s conftest$ac_exeext'
16947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948   (eval $ac_try) 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }; }; then
16952   ac_cv_lib_dl_dlopen=yes
16953 else
16954   echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16956
16957 ac_cv_lib_dl_dlopen=no
16958 fi
16959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16960 LIBS=$ac_check_lib_save_LIBS
16961 fi
16962 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16963 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16964 if test $ac_cv_lib_dl_dlopen = yes; then
16965   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16966 else
16967
16968     lt_cv_dlopen="dyld"
16969     lt_cv_dlopen_libs=
16970     lt_cv_dlopen_self=yes
16971
16972 fi
16973
16974    ;;
16975
16976   *)
16977     echo "$as_me:$LINENO: checking for shl_load" >&5
16978 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16979 if test "${ac_cv_func_shl_load+set}" = set; then
16980   echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982   cat >conftest.$ac_ext <<_ACEOF
16983 #line $LINENO "configure"
16984 /* confdefs.h.  */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h.  */
16989 /* System header to define __stub macros and hopefully few prototypes,
16990     which can conflict with char shl_load (); below.
16991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16992     <limits.h> exists even on freestanding compilers.  */
16993 #ifdef __STDC__
16994 # include <limits.h>
16995 #else
16996 # include <assert.h>
16997 #endif
16998 /* Override any gcc2 internal prototype to avoid an error.  */
16999 #ifdef __cplusplus
17000 extern "C"
17001 {
17002 #endif
17003 /* We use char because int might match the return type of a gcc2
17004    builtin and then its argument prototype would still apply.  */
17005 char shl_load ();
17006 /* The GNU C library defines this for functions which it implements
17007     to always fail with ENOSYS.  Some functions are actually named
17008     something starting with __ and the normal name is an alias.  */
17009 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17010 choke me
17011 #else
17012 char (*f) () = shl_load;
17013 #endif
17014 #ifdef __cplusplus
17015 }
17016 #endif
17017
17018 int
17019 main ()
17020 {
17021 return f != shl_load;
17022   ;
17023   return 0;
17024 }
17025 _ACEOF
17026 rm -f conftest.$ac_objext conftest$ac_exeext
17027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17028   (eval $ac_link) 2>&5
17029   ac_status=$?
17030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031   (exit $ac_status); } &&
17032          { ac_try='test -s conftest$ac_exeext'
17033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034   (eval $ac_try) 2>&5
17035   ac_status=$?
17036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); }; }; then
17038   ac_cv_func_shl_load=yes
17039 else
17040   echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17042
17043 ac_cv_func_shl_load=no
17044 fi
17045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17046 fi
17047 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17048 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17049 if test $ac_cv_func_shl_load = yes; then
17050   lt_cv_dlopen="shl_load"
17051 else
17052   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17053 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17054 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17055   echo $ECHO_N "(cached) $ECHO_C" >&6
17056 else
17057   ac_check_lib_save_LIBS=$LIBS
17058 LIBS="-ldld  $LIBS"
17059 cat >conftest.$ac_ext <<_ACEOF
17060 #line $LINENO "configure"
17061 /* confdefs.h.  */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h.  */
17066
17067 /* Override any gcc2 internal prototype to avoid an error.  */
17068 #ifdef __cplusplus
17069 extern "C"
17070 #endif
17071 /* We use char because int might match the return type of a gcc2
17072    builtin and then its argument prototype would still apply.  */
17073 char shl_load ();
17074 int
17075 main ()
17076 {
17077 shl_load ();
17078   ;
17079   return 0;
17080 }
17081 _ACEOF
17082 rm -f conftest.$ac_objext conftest$ac_exeext
17083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17084   (eval $ac_link) 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); } &&
17088          { ac_try='test -s conftest$ac_exeext'
17089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090   (eval $ac_try) 2>&5
17091   ac_status=$?
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); }; }; then
17094   ac_cv_lib_dld_shl_load=yes
17095 else
17096   echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17098
17099 ac_cv_lib_dld_shl_load=no
17100 fi
17101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17102 LIBS=$ac_check_lib_save_LIBS
17103 fi
17104 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17105 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17106 if test $ac_cv_lib_dld_shl_load = yes; then
17107   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17108 else
17109   echo "$as_me:$LINENO: checking for dlopen" >&5
17110 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17111 if test "${ac_cv_func_dlopen+set}" = set; then
17112   echo $ECHO_N "(cached) $ECHO_C" >&6
17113 else
17114   cat >conftest.$ac_ext <<_ACEOF
17115 #line $LINENO "configure"
17116 /* confdefs.h.  */
17117 _ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h.  */
17121 /* System header to define __stub macros and hopefully few prototypes,
17122     which can conflict with char dlopen (); below.
17123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17124     <limits.h> exists even on freestanding compilers.  */
17125 #ifdef __STDC__
17126 # include <limits.h>
17127 #else
17128 # include <assert.h>
17129 #endif
17130 /* Override any gcc2 internal prototype to avoid an error.  */
17131 #ifdef __cplusplus
17132 extern "C"
17133 {
17134 #endif
17135 /* We use char because int might match the return type of a gcc2
17136    builtin and then its argument prototype would still apply.  */
17137 char dlopen ();
17138 /* The GNU C library defines this for functions which it implements
17139     to always fail with ENOSYS.  Some functions are actually named
17140     something starting with __ and the normal name is an alias.  */
17141 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17142 choke me
17143 #else
17144 char (*f) () = dlopen;
17145 #endif
17146 #ifdef __cplusplus
17147 }
17148 #endif
17149
17150 int
17151 main ()
17152 {
17153 return f != dlopen;
17154   ;
17155   return 0;
17156 }
17157 _ACEOF
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17160   (eval $ac_link) 2>&5
17161   ac_status=$?
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); } &&
17164          { ac_try='test -s conftest$ac_exeext'
17165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166   (eval $ac_try) 2>&5
17167   ac_status=$?
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); }; }; then
17170   ac_cv_func_dlopen=yes
17171 else
17172   echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17174
17175 ac_cv_func_dlopen=no
17176 fi
17177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17178 fi
17179 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17180 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17181 if test $ac_cv_func_dlopen = yes; then
17182   lt_cv_dlopen="dlopen"
17183 else
17184   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17185 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17186 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17187   echo $ECHO_N "(cached) $ECHO_C" >&6
17188 else
17189   ac_check_lib_save_LIBS=$LIBS
17190 LIBS="-ldl  $LIBS"
17191 cat >conftest.$ac_ext <<_ACEOF
17192 #line $LINENO "configure"
17193 /* confdefs.h.  */
17194 _ACEOF
17195 cat confdefs.h >>conftest.$ac_ext
17196 cat >>conftest.$ac_ext <<_ACEOF
17197 /* end confdefs.h.  */
17198
17199 /* Override any gcc2 internal prototype to avoid an error.  */
17200 #ifdef __cplusplus
17201 extern "C"
17202 #endif
17203 /* We use char because int might match the return type of a gcc2
17204    builtin and then its argument prototype would still apply.  */
17205 char dlopen ();
17206 int
17207 main ()
17208 {
17209 dlopen ();
17210   ;
17211   return 0;
17212 }
17213 _ACEOF
17214 rm -f conftest.$ac_objext conftest$ac_exeext
17215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17216   (eval $ac_link) 2>&5
17217   ac_status=$?
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); } &&
17220          { ac_try='test -s conftest$ac_exeext'
17221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222   (eval $ac_try) 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); }; }; then
17226   ac_cv_lib_dl_dlopen=yes
17227 else
17228   echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231 ac_cv_lib_dl_dlopen=no
17232 fi
17233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17234 LIBS=$ac_check_lib_save_LIBS
17235 fi
17236 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17237 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17238 if test $ac_cv_lib_dl_dlopen = yes; then
17239   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17240 else
17241   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17242 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17243 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17244   echo $ECHO_N "(cached) $ECHO_C" >&6
17245 else
17246   ac_check_lib_save_LIBS=$LIBS
17247 LIBS="-lsvld  $LIBS"
17248 cat >conftest.$ac_ext <<_ACEOF
17249 #line $LINENO "configure"
17250 /* confdefs.h.  */
17251 _ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h.  */
17255
17256 /* Override any gcc2 internal prototype to avoid an error.  */
17257 #ifdef __cplusplus
17258 extern "C"
17259 #endif
17260 /* We use char because int might match the return type of a gcc2
17261    builtin and then its argument prototype would still apply.  */
17262 char dlopen ();
17263 int
17264 main ()
17265 {
17266 dlopen ();
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 rm -f conftest.$ac_objext conftest$ac_exeext
17272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17273   (eval $ac_link) 2>&5
17274   ac_status=$?
17275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276   (exit $ac_status); } &&
17277          { ac_try='test -s conftest$ac_exeext'
17278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279   (eval $ac_try) 2>&5
17280   ac_status=$?
17281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); }; }; then
17283   ac_cv_lib_svld_dlopen=yes
17284 else
17285   echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17287
17288 ac_cv_lib_svld_dlopen=no
17289 fi
17290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17291 LIBS=$ac_check_lib_save_LIBS
17292 fi
17293 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17294 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17295 if test $ac_cv_lib_svld_dlopen = yes; then
17296   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17297 else
17298   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17299 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17300 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17301   echo $ECHO_N "(cached) $ECHO_C" >&6
17302 else
17303   ac_check_lib_save_LIBS=$LIBS
17304 LIBS="-ldld  $LIBS"
17305 cat >conftest.$ac_ext <<_ACEOF
17306 #line $LINENO "configure"
17307 /* confdefs.h.  */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h.  */
17312
17313 /* Override any gcc2 internal prototype to avoid an error.  */
17314 #ifdef __cplusplus
17315 extern "C"
17316 #endif
17317 /* We use char because int might match the return type of a gcc2
17318    builtin and then its argument prototype would still apply.  */
17319 char dld_link ();
17320 int
17321 main ()
17322 {
17323 dld_link ();
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330   (eval $ac_link) 2>&5
17331   ac_status=$?
17332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333   (exit $ac_status); } &&
17334          { ac_try='test -s conftest$ac_exeext'
17335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336   (eval $ac_try) 2>&5
17337   ac_status=$?
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); }; }; then
17340   ac_cv_lib_dld_dld_link=yes
17341 else
17342   echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17344
17345 ac_cv_lib_dld_dld_link=no
17346 fi
17347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17348 LIBS=$ac_check_lib_save_LIBS
17349 fi
17350 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17351 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17352 if test $ac_cv_lib_dld_dld_link = yes; then
17353   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17354 fi
17355
17356
17357 fi
17358
17359
17360 fi
17361
17362
17363 fi
17364
17365
17366 fi
17367
17368
17369 fi
17370
17371     ;;
17372   esac
17373
17374   if test "x$lt_cv_dlopen" != xno; then
17375     enable_dlopen=yes
17376   else
17377     enable_dlopen=no
17378   fi
17379
17380   case $lt_cv_dlopen in
17381   dlopen)
17382     save_CPPFLAGS="$CPPFLAGS"
17383     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17384
17385     save_LDFLAGS="$LDFLAGS"
17386     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17387
17388     save_LIBS="$LIBS"
17389     LIBS="$lt_cv_dlopen_libs $LIBS"
17390
17391     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17392 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17393 if test "${lt_cv_dlopen_self+set}" = set; then
17394   echo $ECHO_N "(cached) $ECHO_C" >&6
17395 else
17396           if test "$cross_compiling" = yes; then :
17397   lt_cv_dlopen_self=cross
17398 else
17399   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17400   lt_status=$lt_dlunknown
17401   cat > conftest.$ac_ext <<EOF
17402 #line 17402 "configure"
17403 #include "confdefs.h"
17404
17405 #if HAVE_DLFCN_H
17406 #include <dlfcn.h>
17407 #endif
17408
17409 #include <stdio.h>
17410
17411 #ifdef RTLD_GLOBAL
17412 #  define LT_DLGLOBAL           RTLD_GLOBAL
17413 #else
17414 #  ifdef DL_GLOBAL
17415 #    define LT_DLGLOBAL         DL_GLOBAL
17416 #  else
17417 #    define LT_DLGLOBAL         0
17418 #  endif
17419 #endif
17420
17421 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17422    find out it does not work in some platform. */
17423 #ifndef LT_DLLAZY_OR_NOW
17424 #  ifdef RTLD_LAZY
17425 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17426 #  else
17427 #    ifdef DL_LAZY
17428 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17429 #    else
17430 #      ifdef RTLD_NOW
17431 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17432 #      else
17433 #        ifdef DL_NOW
17434 #          define LT_DLLAZY_OR_NOW      DL_NOW
17435 #        else
17436 #          define LT_DLLAZY_OR_NOW      0
17437 #        endif
17438 #      endif
17439 #    endif
17440 #  endif
17441 #endif
17442
17443 #ifdef __cplusplus
17444 extern "C" void exit (int);
17445 #endif
17446
17447 void fnord() { int i=42;}
17448 int main ()
17449 {
17450   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17451   int status = $lt_dlunknown;
17452
17453   if (self)
17454     {
17455       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17456       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17457       /* dlclose (self); */
17458     }
17459
17460     exit (status);
17461 }
17462 EOF
17463   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17464   (eval $ac_link) 2>&5
17465   ac_status=$?
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17468     (./conftest; exit; ) 2>/dev/null
17469     lt_status=$?
17470     case x$lt_status in
17471       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17472       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17473       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17474     esac
17475   else :
17476     # compilation failed
17477     lt_cv_dlopen_self=no
17478   fi
17479 fi
17480 rm -fr conftest*
17481
17482
17483 fi
17484 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17485 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17486
17487     if test "x$lt_cv_dlopen_self" = xyes; then
17488       LDFLAGS="$LDFLAGS $link_static_flag"
17489       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17490 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17491 if test "${lt_cv_dlopen_self_static+set}" = set; then
17492   echo $ECHO_N "(cached) $ECHO_C" >&6
17493 else
17494           if test "$cross_compiling" = yes; then :
17495   lt_cv_dlopen_self_static=cross
17496 else
17497   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17498   lt_status=$lt_dlunknown
17499   cat > conftest.$ac_ext <<EOF
17500 #line 17500 "configure"
17501 #include "confdefs.h"
17502
17503 #if HAVE_DLFCN_H
17504 #include <dlfcn.h>
17505 #endif
17506
17507 #include <stdio.h>
17508
17509 #ifdef RTLD_GLOBAL
17510 #  define LT_DLGLOBAL           RTLD_GLOBAL
17511 #else
17512 #  ifdef DL_GLOBAL
17513 #    define LT_DLGLOBAL         DL_GLOBAL
17514 #  else
17515 #    define LT_DLGLOBAL         0
17516 #  endif
17517 #endif
17518
17519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17520    find out it does not work in some platform. */
17521 #ifndef LT_DLLAZY_OR_NOW
17522 #  ifdef RTLD_LAZY
17523 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17524 #  else
17525 #    ifdef DL_LAZY
17526 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17527 #    else
17528 #      ifdef RTLD_NOW
17529 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17530 #      else
17531 #        ifdef DL_NOW
17532 #          define LT_DLLAZY_OR_NOW      DL_NOW
17533 #        else
17534 #          define LT_DLLAZY_OR_NOW      0
17535 #        endif
17536 #      endif
17537 #    endif
17538 #  endif
17539 #endif
17540
17541 #ifdef __cplusplus
17542 extern "C" void exit (int);
17543 #endif
17544
17545 void fnord() { int i=42;}
17546 int main ()
17547 {
17548   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17549   int status = $lt_dlunknown;
17550
17551   if (self)
17552     {
17553       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17554       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17555       /* dlclose (self); */
17556     }
17557
17558     exit (status);
17559 }
17560 EOF
17561   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17562   (eval $ac_link) 2>&5
17563   ac_status=$?
17564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17566     (./conftest; exit; ) 2>/dev/null
17567     lt_status=$?
17568     case x$lt_status in
17569       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17570       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17571       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17572     esac
17573   else :
17574     # compilation failed
17575     lt_cv_dlopen_self_static=no
17576   fi
17577 fi
17578 rm -fr conftest*
17579
17580
17581 fi
17582 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17583 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17584     fi
17585
17586     CPPFLAGS="$save_CPPFLAGS"
17587     LDFLAGS="$save_LDFLAGS"
17588     LIBS="$save_LIBS"
17589     ;;
17590   esac
17591
17592   case $lt_cv_dlopen_self in
17593   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17594   *) enable_dlopen_self=unknown ;;
17595   esac
17596
17597   case $lt_cv_dlopen_self_static in
17598   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17599   *) enable_dlopen_self_static=unknown ;;
17600   esac
17601 fi
17602
17603
17604 # The else clause should only fire when bootstrapping the
17605 # libtool distribution, otherwise you forgot to ship ltmain.sh
17606 # with your package, and you will get complaints that there are
17607 # no rules to generate ltmain.sh.
17608 if test -f "$ltmain"; then
17609   # See if we are running on zsh, and set the options which allow our commands through
17610   # without removal of \ escapes.
17611   if test -n "${ZSH_VERSION+set}" ; then
17612     setopt NO_GLOB_SUBST
17613   fi
17614   # Now quote all the things that may contain metacharacters while being
17615   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17616   # variables and quote the copies for generation of the libtool script.
17617   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17618     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17619     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17620     deplibs_check_method reload_flag reload_cmds need_locks \
17621     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17622     lt_cv_sys_global_symbol_to_c_name_address \
17623     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17624     old_postinstall_cmds old_postuninstall_cmds \
17625     compiler_GCJ \
17626     CC_GCJ \
17627     LD_GCJ \
17628     lt_prog_compiler_wl_GCJ \
17629     lt_prog_compiler_pic_GCJ \
17630     lt_prog_compiler_static_GCJ \
17631     lt_prog_compiler_no_builtin_flag_GCJ \
17632     export_dynamic_flag_spec_GCJ \
17633     thread_safe_flag_spec_GCJ \
17634     whole_archive_flag_spec_GCJ \
17635     enable_shared_with_static_runtimes_GCJ \
17636     old_archive_cmds_GCJ \
17637     old_archive_from_new_cmds_GCJ \
17638     predep_objects_GCJ \
17639     postdep_objects_GCJ \
17640     predeps_GCJ \
17641     postdeps_GCJ \
17642     compiler_lib_search_path_GCJ \
17643     archive_cmds_GCJ \
17644     archive_expsym_cmds_GCJ \
17645     postinstall_cmds_GCJ \
17646     postuninstall_cmds_GCJ \
17647     old_archive_from_expsyms_cmds_GCJ \
17648     allow_undefined_flag_GCJ \
17649     no_undefined_flag_GCJ \
17650     export_symbols_cmds_GCJ \
17651     hardcode_libdir_flag_spec_GCJ \
17652     hardcode_libdir_flag_spec_ld_GCJ \
17653     hardcode_libdir_separator_GCJ \
17654     hardcode_automatic_GCJ \
17655     module_cmds_GCJ \
17656     module_expsym_cmds_GCJ \
17657     lt_cv_prog_compiler_c_o_GCJ \
17658     exclude_expsyms_GCJ \
17659     include_expsyms_GCJ; do
17660
17661     case $var in
17662     old_archive_cmds_GCJ | \
17663     old_archive_from_new_cmds_GCJ | \
17664     archive_cmds_GCJ | \
17665     archive_expsym_cmds_GCJ | \
17666     module_cmds_GCJ | \
17667     module_expsym_cmds_GCJ | \
17668     old_archive_from_expsyms_cmds_GCJ | \
17669     export_symbols_cmds_GCJ | \
17670     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17671     postinstall_cmds | postuninstall_cmds | \
17672     old_postinstall_cmds | old_postuninstall_cmds | \
17673     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17674       # Double-quote double-evaled strings.
17675       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17676       ;;
17677     *)
17678       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17679       ;;
17680     esac
17681   done
17682
17683   case $lt_echo in
17684   *'\$0 --fallback-echo"')
17685     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17686     ;;
17687   esac
17688
17689 cfgfile="$ofile"
17690
17691   cat <<__EOF__ >> "$cfgfile"
17692 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17693
17694 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17695
17696 # Shell to use when invoking shell scripts.
17697 SHELL=$lt_SHELL
17698
17699 # Whether or not to build shared libraries.
17700 build_libtool_libs=$enable_shared
17701
17702 # Whether or not to build static libraries.
17703 build_old_libs=$enable_static
17704
17705 # Whether or not to add -lc for building shared libraries.
17706 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17707
17708 # Whether or not to disallow shared libs when runtime libs are static
17709 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17710
17711 # Whether or not to optimize for fast installation.
17712 fast_install=$enable_fast_install
17713
17714 # The host system.
17715 host_alias=$host_alias
17716 host=$host
17717
17718 # An echo program that does not interpret backslashes.
17719 echo=$lt_echo
17720
17721 # The archiver.
17722 AR=$lt_AR
17723 AR_FLAGS=$lt_AR_FLAGS
17724
17725 # A C compiler.
17726 LTCC=$lt_LTCC
17727
17728 # A language-specific compiler.
17729 CC=$lt_compiler_GCJ
17730
17731 # Is the compiler the GNU C compiler?
17732 with_gcc=$GCC_GCJ
17733
17734 # An ERE matcher.
17735 EGREP=$lt_EGREP
17736
17737 # The linker used to build libraries.
17738 LD=$lt_LD_GCJ
17739
17740 # Whether we need hard or soft links.
17741 LN_S=$lt_LN_S
17742
17743 # A BSD-compatible nm program.
17744 NM=$lt_NM
17745
17746 # A symbol stripping program
17747 STRIP=$STRIP
17748
17749 # Used to examine libraries when file_magic_cmd begins "file"
17750 MAGIC_CMD=$MAGIC_CMD
17751
17752 # Used on cygwin: DLL creation program.
17753 DLLTOOL="$DLLTOOL"
17754
17755 # Used on cygwin: object dumper.
17756 OBJDUMP="$OBJDUMP"
17757
17758 # Used on cygwin: assembler.
17759 AS="$AS"
17760
17761 # The name of the directory that contains temporary libtool files.
17762 objdir=$objdir
17763
17764 # How to create reloadable object files.
17765 reload_flag=$lt_reload_flag
17766 reload_cmds=$lt_reload_cmds
17767
17768 # How to pass a linker flag through the compiler.
17769 wl=$lt_lt_prog_compiler_wl_GCJ
17770
17771 # Object file suffix (normally "o").
17772 objext="$ac_objext"
17773
17774 # Old archive suffix (normally "a").
17775 libext="$libext"
17776
17777 # Shared library suffix (normally ".so").
17778 shrext='$shrext'
17779
17780 # Executable file suffix (normally "").
17781 exeext="$exeext"
17782
17783 # Additional compiler flags for building library objects.
17784 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17785 pic_mode=$pic_mode
17786
17787 # What is the maximum length of a command?
17788 max_cmd_len=$lt_cv_sys_max_cmd_len
17789
17790 # Does compiler simultaneously support -c and -o options?
17791 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17792
17793 # Must we lock files when doing compilation ?
17794 need_locks=$lt_need_locks
17795
17796 # Do we need the lib prefix for modules?
17797 need_lib_prefix=$need_lib_prefix
17798
17799 # Do we need a version for libraries?
17800 need_version=$need_version
17801
17802 # Whether dlopen is supported.
17803 dlopen_support=$enable_dlopen
17804
17805 # Whether dlopen of programs is supported.
17806 dlopen_self=$enable_dlopen_self
17807
17808 # Whether dlopen of statically linked programs is supported.
17809 dlopen_self_static=$enable_dlopen_self_static
17810
17811 # Compiler flag to prevent dynamic linking.
17812 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17813
17814 # Compiler flag to turn off builtin functions.
17815 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17816
17817 # Compiler flag to allow reflexive dlopens.
17818 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17819
17820 # Compiler flag to generate shared objects directly from archives.
17821 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17822
17823 # Compiler flag to generate thread-safe objects.
17824 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17825
17826 # Library versioning type.
17827 version_type=$version_type
17828
17829 # Format of library name prefix.
17830 libname_spec=$lt_libname_spec
17831
17832 # List of archive names.  First name is the real one, the rest are links.
17833 # The last name is the one that the linker finds with -lNAME.
17834 library_names_spec=$lt_library_names_spec
17835
17836 # The coded name of the library, if different from the real name.
17837 soname_spec=$lt_soname_spec
17838
17839 # Commands used to build and install an old-style archive.
17840 RANLIB=$lt_RANLIB
17841 old_archive_cmds=$lt_old_archive_cmds_GCJ
17842 old_postinstall_cmds=$lt_old_postinstall_cmds
17843 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17844
17845 # Create an old-style archive from a shared archive.
17846 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17847
17848 # Create a temporary old-style archive to link instead of a shared archive.
17849 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17850
17851 # Commands used to build and install a shared archive.
17852 archive_cmds=$lt_archive_cmds_GCJ
17853 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17854 postinstall_cmds=$lt_postinstall_cmds
17855 postuninstall_cmds=$lt_postuninstall_cmds
17856
17857 # Commands used to build a loadable module (assumed same as above if empty)
17858 module_cmds=$lt_module_cmds_GCJ
17859 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17860
17861 # Commands to strip libraries.
17862 old_striplib=$lt_old_striplib
17863 striplib=$lt_striplib
17864
17865 # Dependencies to place before the objects being linked to create a
17866 # shared library.
17867 predep_objects=$lt_predep_objects_GCJ
17868
17869 # Dependencies to place after the objects being linked to create a
17870 # shared library.
17871 postdep_objects=$lt_postdep_objects_GCJ
17872
17873 # Dependencies to place before the objects being linked to create a
17874 # shared library.
17875 predeps=$lt_predeps_GCJ
17876
17877 # Dependencies to place after the objects being linked to create a
17878 # shared library.
17879 postdeps=$lt_postdeps_GCJ
17880
17881 # The library search path used internally by the compiler when linking
17882 # a shared library.
17883 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17884
17885 # Method to check whether dependent libraries are shared objects.
17886 deplibs_check_method=$lt_deplibs_check_method
17887
17888 # Command to use when deplibs_check_method == file_magic.
17889 file_magic_cmd=$lt_file_magic_cmd
17890
17891 # Flag that allows shared libraries with undefined symbols to be built.
17892 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17893
17894 # Flag that forces no undefined symbols.
17895 no_undefined_flag=$lt_no_undefined_flag_GCJ
17896
17897 # Commands used to finish a libtool library installation in a directory.
17898 finish_cmds=$lt_finish_cmds
17899
17900 # Same as above, but a single script fragment to be evaled but not shown.
17901 finish_eval=$lt_finish_eval
17902
17903 # Take the output of nm and produce a listing of raw symbols and C names.
17904 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17905
17906 # Transform the output of nm in a proper C declaration
17907 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17908
17909 # Transform the output of nm in a C name address pair
17910 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17911
17912 # This is the shared library runtime path variable.
17913 runpath_var=$runpath_var
17914
17915 # This is the shared library path variable.
17916 shlibpath_var=$shlibpath_var
17917
17918 # Is shlibpath searched before the hard-coded library search path?
17919 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17920
17921 # How to hardcode a shared library path into an executable.
17922 hardcode_action=$hardcode_action_GCJ
17923
17924 # Whether we should hardcode library paths into libraries.
17925 hardcode_into_libs=$hardcode_into_libs
17926
17927 # Flag to hardcode \$libdir into a binary during linking.
17928 # This must work even if \$libdir does not exist.
17929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17930
17931 # If ld is used when linking, flag to hardcode \$libdir into
17932 # a binary during linking. This must work even if \$libdir does
17933 # not exist.
17934 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17935
17936 # Whether we need a single -rpath flag with a separated argument.
17937 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17938
17939 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17940 # resulting binary.
17941 hardcode_direct=$hardcode_direct_GCJ
17942
17943 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17944 # resulting binary.
17945 hardcode_minus_L=$hardcode_minus_L_GCJ
17946
17947 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17948 # the resulting binary.
17949 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17950
17951 # Set to yes if building a shared library automatically hardcodes DIR into the library
17952 # and all subsequent libraries and executables linked against it.
17953 hardcode_automatic=$hardcode_automatic_GCJ
17954
17955 # Variables whose values should be saved in libtool wrapper scripts and
17956 # restored at relink time.
17957 variables_saved_for_relink="$variables_saved_for_relink"
17958
17959 # Whether libtool must link a program against all its dependency libraries.
17960 link_all_deplibs=$link_all_deplibs_GCJ
17961
17962 # Compile-time system search path for libraries
17963 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17964
17965 # Run-time system search path for libraries
17966 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17967
17968 # Fix the shell variable \$srcfile for the compiler.
17969 fix_srcfile_path="$fix_srcfile_path_GCJ"
17970
17971 # Set to yes if exported symbols are required.
17972 always_export_symbols=$always_export_symbols_GCJ
17973
17974 # The commands to list exported symbols.
17975 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17976
17977 # The commands to extract the exported symbol list from a shared archive.
17978 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17979
17980 # Symbols that should not be listed in the preloaded symbols.
17981 exclude_expsyms=$lt_exclude_expsyms_GCJ
17982
17983 # Symbols that must always be exported.
17984 include_expsyms=$lt_include_expsyms_GCJ
17985
17986 # ### END LIBTOOL TAG CONFIG: $tagname
17987
17988 __EOF__
17989
17990
17991 else
17992   # If there is no Makefile yet, we rely on a make rule to execute
17993   # `config.status --recheck' to rerun these tests and create the
17994   # libtool script then.
17995   test -f Makefile && make "$ltmain"
17996 fi
17997
17998
17999 ac_ext=c
18000 ac_cpp='$CPP $CPPFLAGS'
18001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18004
18005 CC="$lt_save_CC"
18006
18007         else
18008           tagname=""
18009         fi
18010         ;;
18011
18012       RC)
18013
18014
18015
18016 # Source file extension for RC test sources.
18017 ac_ext=rc
18018
18019 # Object file extension for compiled RC test sources.
18020 objext=o
18021 objext_RC=$objext
18022
18023 # Code to be used in simple compile tests
18024 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18025
18026 # Code to be used in simple link tests
18027 lt_simple_link_test_code="$lt_simple_compile_test_code"
18028
18029 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18030
18031 # If no C compiler was specified, use CC.
18032 LTCC=${LTCC-"$CC"}
18033
18034 # Allow CC to be a program name with arguments.
18035 compiler=$CC
18036
18037
18038 # Allow CC to be a program name with arguments.
18039 lt_save_CC="$CC"
18040 CC=${RC-"windres"}
18041 compiler=$CC
18042 compiler_RC=$CC
18043 lt_cv_prog_compiler_c_o_RC=yes
18044
18045 # The else clause should only fire when bootstrapping the
18046 # libtool distribution, otherwise you forgot to ship ltmain.sh
18047 # with your package, and you will get complaints that there are
18048 # no rules to generate ltmain.sh.
18049 if test -f "$ltmain"; then
18050   # See if we are running on zsh, and set the options which allow our commands through
18051   # without removal of \ escapes.
18052   if test -n "${ZSH_VERSION+set}" ; then
18053     setopt NO_GLOB_SUBST
18054   fi
18055   # Now quote all the things that may contain metacharacters while being
18056   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18057   # variables and quote the copies for generation of the libtool script.
18058   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18059     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18060     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18061     deplibs_check_method reload_flag reload_cmds need_locks \
18062     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18063     lt_cv_sys_global_symbol_to_c_name_address \
18064     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18065     old_postinstall_cmds old_postuninstall_cmds \
18066     compiler_RC \
18067     CC_RC \
18068     LD_RC \
18069     lt_prog_compiler_wl_RC \
18070     lt_prog_compiler_pic_RC \
18071     lt_prog_compiler_static_RC \
18072     lt_prog_compiler_no_builtin_flag_RC \
18073     export_dynamic_flag_spec_RC \
18074     thread_safe_flag_spec_RC \
18075     whole_archive_flag_spec_RC \
18076     enable_shared_with_static_runtimes_RC \
18077     old_archive_cmds_RC \
18078     old_archive_from_new_cmds_RC \
18079     predep_objects_RC \
18080     postdep_objects_RC \
18081     predeps_RC \
18082     postdeps_RC \
18083     compiler_lib_search_path_RC \
18084     archive_cmds_RC \
18085     archive_expsym_cmds_RC \
18086     postinstall_cmds_RC \
18087     postuninstall_cmds_RC \
18088     old_archive_from_expsyms_cmds_RC \
18089     allow_undefined_flag_RC \
18090     no_undefined_flag_RC \
18091     export_symbols_cmds_RC \
18092     hardcode_libdir_flag_spec_RC \
18093     hardcode_libdir_flag_spec_ld_RC \
18094     hardcode_libdir_separator_RC \
18095     hardcode_automatic_RC \
18096     module_cmds_RC \
18097     module_expsym_cmds_RC \
18098     lt_cv_prog_compiler_c_o_RC \
18099     exclude_expsyms_RC \
18100     include_expsyms_RC; do
18101
18102     case $var in
18103     old_archive_cmds_RC | \
18104     old_archive_from_new_cmds_RC | \
18105     archive_cmds_RC | \
18106     archive_expsym_cmds_RC | \
18107     module_cmds_RC | \
18108     module_expsym_cmds_RC | \
18109     old_archive_from_expsyms_cmds_RC | \
18110     export_symbols_cmds_RC | \
18111     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18112     postinstall_cmds | postuninstall_cmds | \
18113     old_postinstall_cmds | old_postuninstall_cmds | \
18114     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18115       # Double-quote double-evaled strings.
18116       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18117       ;;
18118     *)
18119       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18120       ;;
18121     esac
18122   done
18123
18124   case $lt_echo in
18125   *'\$0 --fallback-echo"')
18126     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18127     ;;
18128   esac
18129
18130 cfgfile="$ofile"
18131
18132   cat <<__EOF__ >> "$cfgfile"
18133 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18134
18135 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18136
18137 # Shell to use when invoking shell scripts.
18138 SHELL=$lt_SHELL
18139
18140 # Whether or not to build shared libraries.
18141 build_libtool_libs=$enable_shared
18142
18143 # Whether or not to build static libraries.
18144 build_old_libs=$enable_static
18145
18146 # Whether or not to add -lc for building shared libraries.
18147 build_libtool_need_lc=$archive_cmds_need_lc_RC
18148
18149 # Whether or not to disallow shared libs when runtime libs are static
18150 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18151
18152 # Whether or not to optimize for fast installation.
18153 fast_install=$enable_fast_install
18154
18155 # The host system.
18156 host_alias=$host_alias
18157 host=$host
18158
18159 # An echo program that does not interpret backslashes.
18160 echo=$lt_echo
18161
18162 # The archiver.
18163 AR=$lt_AR
18164 AR_FLAGS=$lt_AR_FLAGS
18165
18166 # A C compiler.
18167 LTCC=$lt_LTCC
18168
18169 # A language-specific compiler.
18170 CC=$lt_compiler_RC
18171
18172 # Is the compiler the GNU C compiler?
18173 with_gcc=$GCC_RC
18174
18175 # An ERE matcher.
18176 EGREP=$lt_EGREP
18177
18178 # The linker used to build libraries.
18179 LD=$lt_LD_RC
18180
18181 # Whether we need hard or soft links.
18182 LN_S=$lt_LN_S
18183
18184 # A BSD-compatible nm program.
18185 NM=$lt_NM
18186
18187 # A symbol stripping program
18188 STRIP=$STRIP
18189
18190 # Used to examine libraries when file_magic_cmd begins "file"
18191 MAGIC_CMD=$MAGIC_CMD
18192
18193 # Used on cygwin: DLL creation program.
18194 DLLTOOL="$DLLTOOL"
18195
18196 # Used on cygwin: object dumper.
18197 OBJDUMP="$OBJDUMP"
18198
18199 # Used on cygwin: assembler.
18200 AS="$AS"
18201
18202 # The name of the directory that contains temporary libtool files.
18203 objdir=$objdir
18204
18205 # How to create reloadable object files.
18206 reload_flag=$lt_reload_flag
18207 reload_cmds=$lt_reload_cmds
18208
18209 # How to pass a linker flag through the compiler.
18210 wl=$lt_lt_prog_compiler_wl_RC
18211
18212 # Object file suffix (normally "o").
18213 objext="$ac_objext"
18214
18215 # Old archive suffix (normally "a").
18216 libext="$libext"
18217
18218 # Shared library suffix (normally ".so").
18219 shrext='$shrext'
18220
18221 # Executable file suffix (normally "").
18222 exeext="$exeext"
18223
18224 # Additional compiler flags for building library objects.
18225 pic_flag=$lt_lt_prog_compiler_pic_RC
18226 pic_mode=$pic_mode
18227
18228 # What is the maximum length of a command?
18229 max_cmd_len=$lt_cv_sys_max_cmd_len
18230
18231 # Does compiler simultaneously support -c and -o options?
18232 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18233
18234 # Must we lock files when doing compilation ?
18235 need_locks=$lt_need_locks
18236
18237 # Do we need the lib prefix for modules?
18238 need_lib_prefix=$need_lib_prefix
18239
18240 # Do we need a version for libraries?
18241 need_version=$need_version
18242
18243 # Whether dlopen is supported.
18244 dlopen_support=$enable_dlopen
18245
18246 # Whether dlopen of programs is supported.
18247 dlopen_self=$enable_dlopen_self
18248
18249 # Whether dlopen of statically linked programs is supported.
18250 dlopen_self_static=$enable_dlopen_self_static
18251
18252 # Compiler flag to prevent dynamic linking.
18253 link_static_flag=$lt_lt_prog_compiler_static_RC
18254
18255 # Compiler flag to turn off builtin functions.
18256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18257
18258 # Compiler flag to allow reflexive dlopens.
18259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18260
18261 # Compiler flag to generate shared objects directly from archives.
18262 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18263
18264 # Compiler flag to generate thread-safe objects.
18265 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18266
18267 # Library versioning type.
18268 version_type=$version_type
18269
18270 # Format of library name prefix.
18271 libname_spec=$lt_libname_spec
18272
18273 # List of archive names.  First name is the real one, the rest are links.
18274 # The last name is the one that the linker finds with -lNAME.
18275 library_names_spec=$lt_library_names_spec
18276
18277 # The coded name of the library, if different from the real name.
18278 soname_spec=$lt_soname_spec
18279
18280 # Commands used to build and install an old-style archive.
18281 RANLIB=$lt_RANLIB
18282 old_archive_cmds=$lt_old_archive_cmds_RC
18283 old_postinstall_cmds=$lt_old_postinstall_cmds
18284 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18285
18286 # Create an old-style archive from a shared archive.
18287 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18288
18289 # Create a temporary old-style archive to link instead of a shared archive.
18290 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18291
18292 # Commands used to build and install a shared archive.
18293 archive_cmds=$lt_archive_cmds_RC
18294 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18295 postinstall_cmds=$lt_postinstall_cmds
18296 postuninstall_cmds=$lt_postuninstall_cmds
18297
18298 # Commands used to build a loadable module (assumed same as above if empty)
18299 module_cmds=$lt_module_cmds_RC
18300 module_expsym_cmds=$lt_module_expsym_cmds_RC
18301
18302 # Commands to strip libraries.
18303 old_striplib=$lt_old_striplib
18304 striplib=$lt_striplib
18305
18306 # Dependencies to place before the objects being linked to create a
18307 # shared library.
18308 predep_objects=$lt_predep_objects_RC
18309
18310 # Dependencies to place after the objects being linked to create a
18311 # shared library.
18312 postdep_objects=$lt_postdep_objects_RC
18313
18314 # Dependencies to place before the objects being linked to create a
18315 # shared library.
18316 predeps=$lt_predeps_RC
18317
18318 # Dependencies to place after the objects being linked to create a
18319 # shared library.
18320 postdeps=$lt_postdeps_RC
18321
18322 # The library search path used internally by the compiler when linking
18323 # a shared library.
18324 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18325
18326 # Method to check whether dependent libraries are shared objects.
18327 deplibs_check_method=$lt_deplibs_check_method
18328
18329 # Command to use when deplibs_check_method == file_magic.
18330 file_magic_cmd=$lt_file_magic_cmd
18331
18332 # Flag that allows shared libraries with undefined symbols to be built.
18333 allow_undefined_flag=$lt_allow_undefined_flag_RC
18334
18335 # Flag that forces no undefined symbols.
18336 no_undefined_flag=$lt_no_undefined_flag_RC
18337
18338 # Commands used to finish a libtool library installation in a directory.
18339 finish_cmds=$lt_finish_cmds
18340
18341 # Same as above, but a single script fragment to be evaled but not shown.
18342 finish_eval=$lt_finish_eval
18343
18344 # Take the output of nm and produce a listing of raw symbols and C names.
18345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18346
18347 # Transform the output of nm in a proper C declaration
18348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18349
18350 # Transform the output of nm in a C name address pair
18351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18352
18353 # This is the shared library runtime path variable.
18354 runpath_var=$runpath_var
18355
18356 # This is the shared library path variable.
18357 shlibpath_var=$shlibpath_var
18358
18359 # Is shlibpath searched before the hard-coded library search path?
18360 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18361
18362 # How to hardcode a shared library path into an executable.
18363 hardcode_action=$hardcode_action_RC
18364
18365 # Whether we should hardcode library paths into libraries.
18366 hardcode_into_libs=$hardcode_into_libs
18367
18368 # Flag to hardcode \$libdir into a binary during linking.
18369 # This must work even if \$libdir does not exist.
18370 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18371
18372 # If ld is used when linking, flag to hardcode \$libdir into
18373 # a binary during linking. This must work even if \$libdir does
18374 # not exist.
18375 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18376
18377 # Whether we need a single -rpath flag with a separated argument.
18378 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18379
18380 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18381 # resulting binary.
18382 hardcode_direct=$hardcode_direct_RC
18383
18384 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18385 # resulting binary.
18386 hardcode_minus_L=$hardcode_minus_L_RC
18387
18388 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18389 # the resulting binary.
18390 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18391
18392 # Set to yes if building a shared library automatically hardcodes DIR into the library
18393 # and all subsequent libraries and executables linked against it.
18394 hardcode_automatic=$hardcode_automatic_RC
18395
18396 # Variables whose values should be saved in libtool wrapper scripts and
18397 # restored at relink time.
18398 variables_saved_for_relink="$variables_saved_for_relink"
18399
18400 # Whether libtool must link a program against all its dependency libraries.
18401 link_all_deplibs=$link_all_deplibs_RC
18402
18403 # Compile-time system search path for libraries
18404 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18405
18406 # Run-time system search path for libraries
18407 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18408
18409 # Fix the shell variable \$srcfile for the compiler.
18410 fix_srcfile_path="$fix_srcfile_path_RC"
18411
18412 # Set to yes if exported symbols are required.
18413 always_export_symbols=$always_export_symbols_RC
18414
18415 # The commands to list exported symbols.
18416 export_symbols_cmds=$lt_export_symbols_cmds_RC
18417
18418 # The commands to extract the exported symbol list from a shared archive.
18419 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18420
18421 # Symbols that should not be listed in the preloaded symbols.
18422 exclude_expsyms=$lt_exclude_expsyms_RC
18423
18424 # Symbols that must always be exported.
18425 include_expsyms=$lt_include_expsyms_RC
18426
18427 # ### END LIBTOOL TAG CONFIG: $tagname
18428
18429 __EOF__
18430
18431
18432 else
18433   # If there is no Makefile yet, we rely on a make rule to execute
18434   # `config.status --recheck' to rerun these tests and create the
18435   # libtool script then.
18436   test -f Makefile && make "$ltmain"
18437 fi
18438
18439
18440 ac_ext=c
18441 ac_cpp='$CPP $CPPFLAGS'
18442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18445
18446 CC="$lt_save_CC"
18447
18448         ;;
18449
18450       *)
18451         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18452 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18453    { (exit 1); exit 1; }; }
18454         ;;
18455       esac
18456
18457       # Append the new tag name to the list of available tags.
18458       if test -n "$tagname" ; then
18459       available_tags="$available_tags $tagname"
18460     fi
18461     fi
18462   done
18463   IFS="$lt_save_ifs"
18464
18465   # Now substitute the updated list of available tags.
18466   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18467     mv "${ofile}T" "$ofile"
18468     chmod +x "$ofile"
18469   else
18470     rm -f "${ofile}T"
18471     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18472 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18473    { (exit 1); exit 1; }; }
18474   fi
18475 fi
18476
18477
18478
18479 # This can be used to rebuild libtool when needed
18480 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18481
18482 # Always use our own libtool.
18483 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18484
18485 # Prevent multiple expansion
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507 # Extract the first word of "pwd", so it can be a program name with args.
18508 set dummy pwd; ac_word=$2
18509 echo "$as_me:$LINENO: checking for $ac_word" >&5
18510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18511 if test "${ac_cv_path_RPWD+set}" = set; then
18512   echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514   case $RPWD in
18515   [\\/]* | ?:[\\/]*)
18516   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18517   ;;
18518   *)
18519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18520 for as_dir in $PATH
18521 do
18522   IFS=$as_save_IFS
18523   test -z "$as_dir" && as_dir=.
18524   for ac_exec_ext in '' $ac_executable_extensions; do
18525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18526     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18528     break 2
18529   fi
18530 done
18531 done
18532
18533   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18534   ;;
18535 esac
18536 fi
18537 RPWD=$ac_cv_path_RPWD
18538
18539 if test -n "$RPWD"; then
18540   echo "$as_me:$LINENO: result: $RPWD" >&5
18541 echo "${ECHO_T}$RPWD" >&6
18542 else
18543   echo "$as_me:$LINENO: result: no" >&5
18544 echo "${ECHO_T}no" >&6
18545 fi
18546
18547 if test ${RPWD} = "false"
18548 then
18549         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18550 echo "$as_me: error: pwd required but not found" >&2;}
18551    { (exit 1); exit 1; }; }
18552 fi
18553
18554 # Extract the first word of "ar", so it can be a program name with args.
18555 set dummy ar; ac_word=$2
18556 echo "$as_me:$LINENO: checking for $ac_word" >&5
18557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18558 if test "${ac_cv_path_AR+set}" = set; then
18559   echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561   case $AR in
18562   [\\/]* | ?:[\\/]*)
18563   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18564   ;;
18565   *)
18566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18567 for as_dir in $PATH
18568 do
18569   IFS=$as_save_IFS
18570   test -z "$as_dir" && as_dir=.
18571   for ac_exec_ext in '' $ac_executable_extensions; do
18572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18573     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18575     break 2
18576   fi
18577 done
18578 done
18579
18580   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18581   ;;
18582 esac
18583 fi
18584 AR=$ac_cv_path_AR
18585
18586 if test -n "$AR"; then
18587   echo "$as_me:$LINENO: result: $AR" >&5
18588 echo "${ECHO_T}$AR" >&6
18589 else
18590   echo "$as_me:$LINENO: result: no" >&5
18591 echo "${ECHO_T}no" >&6
18592 fi
18593
18594 if test ${AR} = "false"
18595 then
18596         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18597 echo "$as_me: error: ar required but not found" >&2;}
18598    { (exit 1); exit 1; }; }
18599 fi
18600
18601 # Extract the first word of "sed", so it can be a program name with args.
18602 set dummy sed; ac_word=$2
18603 echo "$as_me:$LINENO: checking for $ac_word" >&5
18604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18605 if test "${ac_cv_path_SED+set}" = set; then
18606   echo $ECHO_N "(cached) $ECHO_C" >&6
18607 else
18608   case $SED in
18609   [\\/]* | ?:[\\/]*)
18610   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18611   ;;
18612   *)
18613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18614 for as_dir in $PATH
18615 do
18616   IFS=$as_save_IFS
18617   test -z "$as_dir" && as_dir=.
18618   for ac_exec_ext in '' $ac_executable_extensions; do
18619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18620     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18622     break 2
18623   fi
18624 done
18625 done
18626
18627   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18628   ;;
18629 esac
18630 fi
18631 SED=$ac_cv_path_SED
18632
18633 if test -n "$SED"; then
18634   echo "$as_me:$LINENO: result: $SED" >&5
18635 echo "${ECHO_T}$SED" >&6
18636 else
18637   echo "$as_me:$LINENO: result: no" >&5
18638 echo "${ECHO_T}no" >&6
18639 fi
18640
18641 if test ${SED} = "false"
18642 then
18643         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18644 echo "$as_me: error: sed required but not found" >&2;}
18645    { (exit 1); exit 1; }; }
18646 fi
18647
18648 # Extract the first word of "rm", so it can be a program name with args.
18649 set dummy rm; ac_word=$2
18650 echo "$as_me:$LINENO: checking for $ac_word" >&5
18651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18652 if test "${ac_cv_path_RM+set}" = set; then
18653   echo $ECHO_N "(cached) $ECHO_C" >&6
18654 else
18655   case $RM in
18656   [\\/]* | ?:[\\/]*)
18657   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18658   ;;
18659   *)
18660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18661 for as_dir in $PATH
18662 do
18663   IFS=$as_save_IFS
18664   test -z "$as_dir" && as_dir=.
18665   for ac_exec_ext in '' $ac_executable_extensions; do
18666   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18667     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18669     break 2
18670   fi
18671 done
18672 done
18673
18674   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18675   ;;
18676 esac
18677 fi
18678 RM=$ac_cv_path_RM
18679
18680 if test -n "$RM"; then
18681   echo "$as_me:$LINENO: result: $RM" >&5
18682 echo "${ECHO_T}$RM" >&6
18683 else
18684   echo "$as_me:$LINENO: result: no" >&5
18685 echo "${ECHO_T}no" >&6
18686 fi
18687
18688 if test ${RM} = "false"
18689 then
18690         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18691 echo "$as_me: error: rm required but not found" >&2;}
18692    { (exit 1); exit 1; }; }
18693 fi
18694
18695 # Extract the first word of "echo", so it can be a program name with args.
18696 set dummy echo; ac_word=$2
18697 echo "$as_me:$LINENO: checking for $ac_word" >&5
18698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18699 if test "${ac_cv_path_ECHO+set}" = set; then
18700   echo $ECHO_N "(cached) $ECHO_C" >&6
18701 else
18702   case $ECHO in
18703   [\\/]* | ?:[\\/]*)
18704   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18705   ;;
18706   *)
18707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18708 for as_dir in $PATH
18709 do
18710   IFS=$as_save_IFS
18711   test -z "$as_dir" && as_dir=.
18712   for ac_exec_ext in '' $ac_executable_extensions; do
18713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18714     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18716     break 2
18717   fi
18718 done
18719 done
18720
18721   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18722   ;;
18723 esac
18724 fi
18725 ECHO=$ac_cv_path_ECHO
18726
18727 if test -n "$ECHO"; then
18728   echo "$as_me:$LINENO: result: $ECHO" >&5
18729 echo "${ECHO_T}$ECHO" >&6
18730 else
18731   echo "$as_me:$LINENO: result: no" >&5
18732 echo "${ECHO_T}no" >&6
18733 fi
18734
18735 if test ${ECHO} = "false"
18736 then
18737         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18738 echo "$as_me: error: echo required but not found" >&2;}
18739    { (exit 1); exit 1; }; }
18740 fi
18741
18742 # Extract the first word of "mkdir", so it can be a program name with args.
18743 set dummy mkdir; ac_word=$2
18744 echo "$as_me:$LINENO: checking for $ac_word" >&5
18745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18746 if test "${ac_cv_path_MKDIR+set}" = set; then
18747   echo $ECHO_N "(cached) $ECHO_C" >&6
18748 else
18749   case $MKDIR in
18750   [\\/]* | ?:[\\/]*)
18751   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18752   ;;
18753   *)
18754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18755 for as_dir in $PATH
18756 do
18757   IFS=$as_save_IFS
18758   test -z "$as_dir" && as_dir=.
18759   for ac_exec_ext in '' $ac_executable_extensions; do
18760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18761     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18763     break 2
18764   fi
18765 done
18766 done
18767
18768   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18769   ;;
18770 esac
18771 fi
18772 MKDIR=$ac_cv_path_MKDIR
18773
18774 if test -n "$MKDIR"; then
18775   echo "$as_me:$LINENO: result: $MKDIR" >&5
18776 echo "${ECHO_T}$MKDIR" >&6
18777 else
18778   echo "$as_me:$LINENO: result: no" >&5
18779 echo "${ECHO_T}no" >&6
18780 fi
18781
18782 if test ${MKDIR} = "false"
18783 then
18784         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18785 echo "$as_me: error: mkdir required but not found" >&2;}
18786    { (exit 1); exit 1; }; }
18787 fi
18788
18789 # Extract the first word of "date", so it can be a program name with args.
18790 set dummy date; ac_word=$2
18791 echo "$as_me:$LINENO: checking for $ac_word" >&5
18792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18793 if test "${ac_cv_path_DATE+set}" = set; then
18794   echo $ECHO_N "(cached) $ECHO_C" >&6
18795 else
18796   case $DATE in
18797   [\\/]* | ?:[\\/]*)
18798   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18799   ;;
18800   *)
18801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18802 for as_dir in $PATH
18803 do
18804   IFS=$as_save_IFS
18805   test -z "$as_dir" && as_dir=.
18806   for ac_exec_ext in '' $ac_executable_extensions; do
18807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18808     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18810     break 2
18811   fi
18812 done
18813 done
18814
18815   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18816   ;;
18817 esac
18818 fi
18819 DATE=$ac_cv_path_DATE
18820
18821 if test -n "$DATE"; then
18822   echo "$as_me:$LINENO: result: $DATE" >&5
18823 echo "${ECHO_T}$DATE" >&6
18824 else
18825   echo "$as_me:$LINENO: result: no" >&5
18826 echo "${ECHO_T}no" >&6
18827 fi
18828
18829 if test ${DATE} = "false"
18830 then
18831         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18832 echo "$as_me: error: date required but not found" >&2;}
18833    { (exit 1); exit 1; }; }
18834 fi
18835
18836 # Extract the first word of "mv", so it can be a program name with args.
18837 set dummy mv; ac_word=$2
18838 echo "$as_me:$LINENO: checking for $ac_word" >&5
18839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18840 if test "${ac_cv_path_MV+set}" = set; then
18841   echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18843   case $MV in
18844   [\\/]* | ?:[\\/]*)
18845   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18846   ;;
18847   *)
18848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18849 for as_dir in $PATH
18850 do
18851   IFS=$as_save_IFS
18852   test -z "$as_dir" && as_dir=.
18853   for ac_exec_ext in '' $ac_executable_extensions; do
18854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18855     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18857     break 2
18858   fi
18859 done
18860 done
18861
18862   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18863   ;;
18864 esac
18865 fi
18866 MV=$ac_cv_path_MV
18867
18868 if test -n "$MV"; then
18869   echo "$as_me:$LINENO: result: $MV" >&5
18870 echo "${ECHO_T}$MV" >&6
18871 else
18872   echo "$as_me:$LINENO: result: no" >&5
18873 echo "${ECHO_T}no" >&6
18874 fi
18875
18876 if test ${MV} = "false"
18877 then
18878         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18879 echo "$as_me: error: mv required but not found" >&2;}
18880    { (exit 1); exit 1; }; }
18881 fi
18882
18883 # Extract the first word of "dot", so it can be a program name with args.
18884 set dummy dot; ac_word=$2
18885 echo "$as_me:$LINENO: checking for $ac_word" >&5
18886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18887 if test "${ac_cv_path_DOT+set}" = set; then
18888   echo $ECHO_N "(cached) $ECHO_C" >&6
18889 else
18890   case $DOT in
18891   [\\/]* | ?:[\\/]*)
18892   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18893   ;;
18894   *)
18895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18896 for as_dir in $PATH
18897 do
18898   IFS=$as_save_IFS
18899   test -z "$as_dir" && as_dir=.
18900   for ac_exec_ext in '' $ac_executable_extensions; do
18901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18902     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18904     break 2
18905   fi
18906 done
18907 done
18908
18909   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18910   ;;
18911 esac
18912 fi
18913 DOT=$ac_cv_path_DOT
18914
18915 if test -n "$DOT"; then
18916   echo "$as_me:$LINENO: result: $DOT" >&5
18917 echo "${ECHO_T}$DOT" >&6
18918 else
18919   echo "$as_me:$LINENO: result: no" >&5
18920 echo "${ECHO_T}no" >&6
18921 fi
18922
18923
18924 # Extract the first word of "etags", so it can be a program name with args.
18925 set dummy etags; ac_word=$2
18926 echo "$as_me:$LINENO: checking for $ac_word" >&5
18927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18928 if test "${ac_cv_path_ETAGS+set}" = set; then
18929   echo $ECHO_N "(cached) $ECHO_C" >&6
18930 else
18931   case $ETAGS in
18932   [\\/]* | ?:[\\/]*)
18933   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18934   ;;
18935   *)
18936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18937 for as_dir in $PATH
18938 do
18939   IFS=$as_save_IFS
18940   test -z "$as_dir" && as_dir=.
18941   for ac_exec_ext in '' $ac_executable_extensions; do
18942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18943     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18945     break 2
18946   fi
18947 done
18948 done
18949
18950   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18951   ;;
18952 esac
18953 fi
18954 ETAGS=$ac_cv_path_ETAGS
18955
18956 if test -n "$ETAGS"; then
18957   echo "$as_me:$LINENO: result: $ETAGS" >&5
18958 echo "${ECHO_T}$ETAGS" >&6
18959 else
18960   echo "$as_me:$LINENO: result: no" >&5
18961 echo "${ECHO_T}no" >&6
18962 fi
18963
18964
18965 # Extract the first word of "python", so it can be a program name with args.
18966 set dummy python; ac_word=$2
18967 echo "$as_me:$LINENO: checking for $ac_word" >&5
18968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18969 if test "${ac_cv_path_PYTHON+set}" = set; then
18970   echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972   case $PYTHON in
18973   [\\/]* | ?:[\\/]*)
18974   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18975   ;;
18976   *)
18977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18978 for as_dir in $PATH
18979 do
18980   IFS=$as_save_IFS
18981   test -z "$as_dir" && as_dir=.
18982   for ac_exec_ext in '' $ac_executable_extensions; do
18983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18984     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18986     break 2
18987   fi
18988 done
18989 done
18990
18991   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18992   ;;
18993 esac
18994 fi
18995 PYTHON=$ac_cv_path_PYTHON
18996
18997 if test -n "$PYTHON"; then
18998   echo "$as_me:$LINENO: result: $PYTHON" >&5
18999 echo "${ECHO_T}$PYTHON" >&6
19000 else
19001   echo "$as_me:$LINENO: result: no" >&5
19002 echo "${ECHO_T}no" >&6
19003 fi
19004
19005 if test ${PYTHON} = "false"
19006 then
19007         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19008 echo "$as_me: WARNING: python required but not found" >&2;}
19009 fi
19010
19011 # Extract the first word of "qmtest", so it can be a program name with args.
19012 set dummy qmtest; ac_word=$2
19013 echo "$as_me:$LINENO: checking for $ac_word" >&5
19014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19015 if test "${ac_cv_path_QMTEST+set}" = set; then
19016   echo $ECHO_N "(cached) $ECHO_C" >&6
19017 else
19018   case $QMTEST in
19019   [\\/]* | ?:[\\/]*)
19020   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19021   ;;
19022   *)
19023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19024 for as_dir in $PATH
19025 do
19026   IFS=$as_save_IFS
19027   test -z "$as_dir" && as_dir=.
19028   for ac_exec_ext in '' $ac_executable_extensions; do
19029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19030     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19032     break 2
19033   fi
19034 done
19035 done
19036
19037   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
19038   ;;
19039 esac
19040 fi
19041 QMTEST=$ac_cv_path_QMTEST
19042
19043 if test -n "$QMTEST"; then
19044   echo "$as_me:$LINENO: result: $QMTEST" >&5
19045 echo "${ECHO_T}$QMTEST" >&6
19046 else
19047   echo "$as_me:$LINENO: result: no" >&5
19048 echo "${ECHO_T}no" >&6
19049 fi
19050
19051 if test ${QMTEST} = "false"
19052 then
19053         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19054 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19055 fi
19056
19057 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19058 pymajor=`echo $pyversion | cut -d. -f1`
19059 pyminor=`echo $pyversion | cut -d. -f2`
19060
19061 if test "$pymajor" -ge "2"
19062 then
19063         if test "$pymajor" -eq "2"
19064         then
19065                 if test "$pyminor" -lt "2"
19066                 then
19067                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19068 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19069    { (exit 1); exit 1; }; }
19070                 fi
19071         fi
19072 else
19073         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19074 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19075    { (exit 1); exit 1; }; }
19076 fi
19077
19078
19079
19080
19081
19082 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19083 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19084 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19085   echo $ECHO_N "(cached) $ECHO_C" >&6
19086 else
19087   ac_check_lib_save_LIBS=$LIBS
19088 LIBS="-lelf  $LIBS"
19089 cat >conftest.$ac_ext <<_ACEOF
19090 #line $LINENO "configure"
19091 /* confdefs.h.  */
19092 _ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h.  */
19096
19097 /* Override any gcc2 internal prototype to avoid an error.  */
19098 #ifdef __cplusplus
19099 extern "C"
19100 #endif
19101 /* We use char because int might match the return type of a gcc2
19102    builtin and then its argument prototype would still apply.  */
19103 char elf_begin ();
19104 int
19105 main ()
19106 {
19107 elf_begin ();
19108   ;
19109   return 0;
19110 }
19111 _ACEOF
19112 rm -f conftest.$ac_objext conftest$ac_exeext
19113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19114   (eval $ac_link) 2>&5
19115   ac_status=$?
19116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117   (exit $ac_status); } &&
19118          { ac_try='test -s conftest$ac_exeext'
19119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120   (eval $ac_try) 2>&5
19121   ac_status=$?
19122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123   (exit $ac_status); }; }; then
19124   ac_cv_lib_elf_elf_begin=yes
19125 else
19126   echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19128
19129 ac_cv_lib_elf_elf_begin=no
19130 fi
19131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19132 LIBS=$ac_check_lib_save_LIBS
19133 fi
19134 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19135 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19136 if test $ac_cv_lib_elf_elf_begin = yes; then
19137   cat >>confdefs.h <<_ACEOF
19138 #define HAVE_LIBELF 1
19139 _ACEOF
19140
19141   LIBS="-lelf $LIBS"
19142
19143 fi
19144
19145
19146 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19147 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19148 if test "${ac_cv_search_dlopen+set}" = set; then
19149   echo $ECHO_N "(cached) $ECHO_C" >&6
19150 else
19151   ac_func_search_save_LIBS=$LIBS
19152 ac_cv_search_dlopen=no
19153 cat >conftest.$ac_ext <<_ACEOF
19154 #line $LINENO "configure"
19155 /* confdefs.h.  */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h.  */
19160
19161 /* Override any gcc2 internal prototype to avoid an error.  */
19162 #ifdef __cplusplus
19163 extern "C"
19164 #endif
19165 /* We use char because int might match the return type of a gcc2
19166    builtin and then its argument prototype would still apply.  */
19167 char dlopen ();
19168 int
19169 main ()
19170 {
19171 dlopen ();
19172   ;
19173   return 0;
19174 }
19175 _ACEOF
19176 rm -f conftest.$ac_objext conftest$ac_exeext
19177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19178   (eval $ac_link) 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); } &&
19182          { ac_try='test -s conftest$ac_exeext'
19183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184   (eval $ac_try) 2>&5
19185   ac_status=$?
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); }; }; then
19188   ac_cv_search_dlopen="none required"
19189 else
19190   echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19192
19193 fi
19194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19195 if test "$ac_cv_search_dlopen" = no; then
19196   for ac_lib in dl; do
19197     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19198     cat >conftest.$ac_ext <<_ACEOF
19199 #line $LINENO "configure"
19200 /* confdefs.h.  */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h.  */
19205
19206 /* Override any gcc2 internal prototype to avoid an error.  */
19207 #ifdef __cplusplus
19208 extern "C"
19209 #endif
19210 /* We use char because int might match the return type of a gcc2
19211    builtin and then its argument prototype would still apply.  */
19212 char dlopen ();
19213 int
19214 main ()
19215 {
19216 dlopen ();
19217   ;
19218   return 0;
19219 }
19220 _ACEOF
19221 rm -f conftest.$ac_objext conftest$ac_exeext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19223   (eval $ac_link) 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); } &&
19227          { ac_try='test -s conftest$ac_exeext'
19228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229   (eval $ac_try) 2>&5
19230   ac_status=$?
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); }; }; then
19233   ac_cv_search_dlopen="-l$ac_lib"
19234 break
19235 else
19236   echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19238
19239 fi
19240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19241   done
19242 fi
19243 LIBS=$ac_func_search_save_LIBS
19244 fi
19245 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19246 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19247 if test "$ac_cv_search_dlopen" != no; then
19248   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19249
19250 cat >>confdefs.h <<\_ACEOF
19251 #define HAVE_DLOPEN 1
19252 _ACEOF
19253
19254 else
19255   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19256 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19257 fi
19258
19259
19260 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19261 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19262 if test "${ac_cv_search_mallinfo+set}" = set; then
19263   echo $ECHO_N "(cached) $ECHO_C" >&6
19264 else
19265   ac_func_search_save_LIBS=$LIBS
19266 ac_cv_search_mallinfo=no
19267 cat >conftest.$ac_ext <<_ACEOF
19268 #line $LINENO "configure"
19269 /* confdefs.h.  */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h.  */
19274
19275 /* Override any gcc2 internal prototype to avoid an error.  */
19276 #ifdef __cplusplus
19277 extern "C"
19278 #endif
19279 /* We use char because int might match the return type of a gcc2
19280    builtin and then its argument prototype would still apply.  */
19281 char mallinfo ();
19282 int
19283 main ()
19284 {
19285 mallinfo ();
19286   ;
19287   return 0;
19288 }
19289 _ACEOF
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292   (eval $ac_link) 2>&5
19293   ac_status=$?
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); } &&
19296          { ac_try='test -s conftest$ac_exeext'
19297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298   (eval $ac_try) 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; }; then
19302   ac_cv_search_mallinfo="none required"
19303 else
19304   echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307 fi
19308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19309 if test "$ac_cv_search_mallinfo" = no; then
19310   for ac_lib in malloc; do
19311     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19312     cat >conftest.$ac_ext <<_ACEOF
19313 #line $LINENO "configure"
19314 /* confdefs.h.  */
19315 _ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h.  */
19319
19320 /* Override any gcc2 internal prototype to avoid an error.  */
19321 #ifdef __cplusplus
19322 extern "C"
19323 #endif
19324 /* We use char because int might match the return type of a gcc2
19325    builtin and then its argument prototype would still apply.  */
19326 char mallinfo ();
19327 int
19328 main ()
19329 {
19330 mallinfo ();
19331   ;
19332   return 0;
19333 }
19334 _ACEOF
19335 rm -f conftest.$ac_objext conftest$ac_exeext
19336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19337   (eval $ac_link) 2>&5
19338   ac_status=$?
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); } &&
19341          { ac_try='test -s conftest$ac_exeext'
19342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343   (eval $ac_try) 2>&5
19344   ac_status=$?
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); }; }; then
19347   ac_cv_search_mallinfo="-l$ac_lib"
19348 break
19349 else
19350   echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19352
19353 fi
19354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19355   done
19356 fi
19357 LIBS=$ac_func_search_save_LIBS
19358 fi
19359 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19360 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19361 if test "$ac_cv_search_mallinfo" != no; then
19362   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19363
19364 cat >>confdefs.h <<\_ACEOF
19365 #define HAVE_MALLINFO 1
19366 _ACEOF
19367
19368 fi
19369
19370
19371
19372 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19373 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19374 if test "${ac_cv_header_stdc+set}" = set; then
19375   echo $ECHO_N "(cached) $ECHO_C" >&6
19376 else
19377   cat >conftest.$ac_ext <<_ACEOF
19378 #line $LINENO "configure"
19379 /* confdefs.h.  */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h.  */
19384 #include <stdlib.h>
19385 #include <stdarg.h>
19386 #include <string.h>
19387 #include <float.h>
19388
19389 int
19390 main ()
19391 {
19392
19393   ;
19394   return 0;
19395 }
19396 _ACEOF
19397 rm -f conftest.$ac_objext
19398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19399   (eval $ac_compile) 2>&5
19400   ac_status=$?
19401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402   (exit $ac_status); } &&
19403          { ac_try='test -s conftest.$ac_objext'
19404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405   (eval $ac_try) 2>&5
19406   ac_status=$?
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); }; }; then
19409   ac_cv_header_stdc=yes
19410 else
19411   echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19413
19414 ac_cv_header_stdc=no
19415 fi
19416 rm -f conftest.$ac_objext conftest.$ac_ext
19417
19418 if test $ac_cv_header_stdc = yes; then
19419   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19420   cat >conftest.$ac_ext <<_ACEOF
19421 #line $LINENO "configure"
19422 /* confdefs.h.  */
19423 _ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h.  */
19427 #include <string.h>
19428
19429 _ACEOF
19430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19431   $EGREP "memchr" >/dev/null 2>&1; then
19432   :
19433 else
19434   ac_cv_header_stdc=no
19435 fi
19436 rm -f conftest*
19437
19438 fi
19439
19440 if test $ac_cv_header_stdc = yes; then
19441   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19442   cat >conftest.$ac_ext <<_ACEOF
19443 #line $LINENO "configure"
19444 /* confdefs.h.  */
19445 _ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h.  */
19449 #include <stdlib.h>
19450
19451 _ACEOF
19452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19453   $EGREP "free" >/dev/null 2>&1; then
19454   :
19455 else
19456   ac_cv_header_stdc=no
19457 fi
19458 rm -f conftest*
19459
19460 fi
19461
19462 if test $ac_cv_header_stdc = yes; then
19463   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19464   if test "$cross_compiling" = yes; then
19465   :
19466 else
19467   cat >conftest.$ac_ext <<_ACEOF
19468 #line $LINENO "configure"
19469 /* confdefs.h.  */
19470 _ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h.  */
19474 #include <ctype.h>
19475 #if ((' ' & 0x0FF) == 0x020)
19476 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19477 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19478 #else
19479 # define ISLOWER(c) \
19480                    (('a' <= (c) && (c) <= 'i') \
19481                      || ('j' <= (c) && (c) <= 'r') \
19482                      || ('s' <= (c) && (c) <= 'z'))
19483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19484 #endif
19485
19486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19487 int
19488 main ()
19489 {
19490   int i;
19491   for (i = 0; i < 256; i++)
19492     if (XOR (islower (i), ISLOWER (i))
19493         || toupper (i) != TOUPPER (i))
19494       exit(2);
19495   exit (0);
19496 }
19497 _ACEOF
19498 rm -f conftest$ac_exeext
19499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19500   (eval $ac_link) 2>&5
19501   ac_status=$?
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505   (eval $ac_try) 2>&5
19506   ac_status=$?
19507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508   (exit $ac_status); }; }; then
19509   :
19510 else
19511   echo "$as_me: program exited with status $ac_status" >&5
19512 echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19514
19515 ( exit $ac_status )
19516 ac_cv_header_stdc=no
19517 fi
19518 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19519 fi
19520 fi
19521 fi
19522 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19523 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19524 if test $ac_cv_header_stdc = yes; then
19525
19526 cat >>confdefs.h <<\_ACEOF
19527 #define STDC_HEADERS 1
19528 _ACEOF
19529
19530 fi
19531
19532 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19533 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19534 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19535   echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537   cat >conftest.$ac_ext <<_ACEOF
19538 #line $LINENO "configure"
19539 /* confdefs.h.  */
19540 _ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h.  */
19544 #include <sys/types.h>
19545 #include <sys/wait.h>
19546 #ifndef WEXITSTATUS
19547 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19548 #endif
19549 #ifndef WIFEXITED
19550 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19551 #endif
19552
19553 int
19554 main ()
19555 {
19556   int s;
19557   wait (&s);
19558   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19559   ;
19560   return 0;
19561 }
19562 _ACEOF
19563 rm -f conftest.$ac_objext
19564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19565   (eval $ac_compile) 2>&5
19566   ac_status=$?
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); } &&
19569          { ac_try='test -s conftest.$ac_objext'
19570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571   (eval $ac_try) 2>&5
19572   ac_status=$?
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); }; }; then
19575   ac_cv_header_sys_wait_h=yes
19576 else
19577   echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19579
19580 ac_cv_header_sys_wait_h=no
19581 fi
19582 rm -f conftest.$ac_objext conftest.$ac_ext
19583 fi
19584 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19585 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19586 if test $ac_cv_header_sys_wait_h = yes; then
19587
19588 cat >>confdefs.h <<\_ACEOF
19589 #define HAVE_SYS_WAIT_H 1
19590 _ACEOF
19591
19592 fi
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19604 do
19605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19607   echo "$as_me:$LINENO: checking for $ac_header" >&5
19608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19610   echo $ECHO_N "(cached) $ECHO_C" >&6
19611 fi
19612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19614 else
19615   # Is the header compilable?
19616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19618 cat >conftest.$ac_ext <<_ACEOF
19619 #line $LINENO "configure"
19620 /* confdefs.h.  */
19621 _ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h.  */
19625 $ac_includes_default
19626 #include <$ac_header>
19627 _ACEOF
19628 rm -f conftest.$ac_objext
19629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19630   (eval $ac_compile) 2>&5
19631   ac_status=$?
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); } &&
19634          { ac_try='test -s conftest.$ac_objext'
19635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636   (eval $ac_try) 2>&5
19637   ac_status=$?
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); }; }; then
19640   ac_header_compiler=yes
19641 else
19642   echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19644
19645 ac_header_compiler=no
19646 fi
19647 rm -f conftest.$ac_objext conftest.$ac_ext
19648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19649 echo "${ECHO_T}$ac_header_compiler" >&6
19650
19651 # Is the header present?
19652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19654 cat >conftest.$ac_ext <<_ACEOF
19655 #line $LINENO "configure"
19656 /* confdefs.h.  */
19657 _ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h.  */
19661 #include <$ac_header>
19662 _ACEOF
19663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19664   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19665   ac_status=$?
19666   grep -v '^ *+' conftest.er1 >conftest.err
19667   rm -f conftest.er1
19668   cat conftest.err >&5
19669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670   (exit $ac_status); } >/dev/null; then
19671   if test -s conftest.err; then
19672     ac_cpp_err=$ac_c_preproc_warn_flag
19673   else
19674     ac_cpp_err=
19675   fi
19676 else
19677   ac_cpp_err=yes
19678 fi
19679 if test -z "$ac_cpp_err"; then
19680   ac_header_preproc=yes
19681 else
19682   echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19684
19685   ac_header_preproc=no
19686 fi
19687 rm -f conftest.err conftest.$ac_ext
19688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19689 echo "${ECHO_T}$ac_header_preproc" >&6
19690
19691 # So?  What about this header?
19692 case $ac_header_compiler:$ac_header_preproc in
19693   yes:no )
19694     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19698     (
19699       cat <<\_ASBOX
19700 ## ------------------------------------ ##
19701 ## Report this to bug-autoconf@gnu.org. ##
19702 ## ------------------------------------ ##
19703 _ASBOX
19704     ) |
19705       sed "s/^/$as_me: WARNING:     /" >&2
19706     ;;
19707   no:yes )
19708     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19710     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19714     (
19715       cat <<\_ASBOX
19716 ## ------------------------------------ ##
19717 ## Report this to bug-autoconf@gnu.org. ##
19718 ## ------------------------------------ ##
19719 _ASBOX
19720     ) |
19721       sed "s/^/$as_me: WARNING:     /" >&2
19722     ;;
19723 esac
19724 echo "$as_me:$LINENO: checking for $ac_header" >&5
19725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19727   echo $ECHO_N "(cached) $ECHO_C" >&6
19728 else
19729   eval "$as_ac_Header=$ac_header_preproc"
19730 fi
19731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19733
19734 fi
19735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19736   cat >>confdefs.h <<_ACEOF
19737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19738 _ACEOF
19739
19740 fi
19741
19742 done
19743
19744
19745
19746
19747
19748 for ac_header in malloc.h sys/mman.h sys/resource.h
19749 do
19750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19752   echo "$as_me:$LINENO: checking for $ac_header" >&5
19753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19755   echo $ECHO_N "(cached) $ECHO_C" >&6
19756 fi
19757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19759 else
19760   # Is the header compilable?
19761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19763 cat >conftest.$ac_ext <<_ACEOF
19764 #line $LINENO "configure"
19765 /* confdefs.h.  */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h.  */
19770 $ac_includes_default
19771 #include <$ac_header>
19772 _ACEOF
19773 rm -f conftest.$ac_objext
19774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19775   (eval $ac_compile) 2>&5
19776   ac_status=$?
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); } &&
19779          { ac_try='test -s conftest.$ac_objext'
19780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781   (eval $ac_try) 2>&5
19782   ac_status=$?
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); }; }; then
19785   ac_header_compiler=yes
19786 else
19787   echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19789
19790 ac_header_compiler=no
19791 fi
19792 rm -f conftest.$ac_objext conftest.$ac_ext
19793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19794 echo "${ECHO_T}$ac_header_compiler" >&6
19795
19796 # Is the header present?
19797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19799 cat >conftest.$ac_ext <<_ACEOF
19800 #line $LINENO "configure"
19801 /* confdefs.h.  */
19802 _ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h.  */
19806 #include <$ac_header>
19807 _ACEOF
19808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19809   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19810   ac_status=$?
19811   grep -v '^ *+' conftest.er1 >conftest.err
19812   rm -f conftest.er1
19813   cat conftest.err >&5
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); } >/dev/null; then
19816   if test -s conftest.err; then
19817     ac_cpp_err=$ac_c_preproc_warn_flag
19818   else
19819     ac_cpp_err=
19820   fi
19821 else
19822   ac_cpp_err=yes
19823 fi
19824 if test -z "$ac_cpp_err"; then
19825   ac_header_preproc=yes
19826 else
19827   echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19829
19830   ac_header_preproc=no
19831 fi
19832 rm -f conftest.err conftest.$ac_ext
19833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19834 echo "${ECHO_T}$ac_header_preproc" >&6
19835
19836 # So?  What about this header?
19837 case $ac_header_compiler:$ac_header_preproc in
19838   yes:no )
19839     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19843     (
19844       cat <<\_ASBOX
19845 ## ------------------------------------ ##
19846 ## Report this to bug-autoconf@gnu.org. ##
19847 ## ------------------------------------ ##
19848 _ASBOX
19849     ) |
19850       sed "s/^/$as_me: WARNING:     /" >&2
19851     ;;
19852   no:yes )
19853     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19855     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19859     (
19860       cat <<\_ASBOX
19861 ## ------------------------------------ ##
19862 ## Report this to bug-autoconf@gnu.org. ##
19863 ## ------------------------------------ ##
19864 _ASBOX
19865     ) |
19866       sed "s/^/$as_me: WARNING:     /" >&2
19867     ;;
19868 esac
19869 echo "$as_me:$LINENO: checking for $ac_header" >&5
19870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19872   echo $ECHO_N "(cached) $ECHO_C" >&6
19873 else
19874   eval "$as_ac_Header=$ac_header_preproc"
19875 fi
19876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19878
19879 fi
19880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19881   cat >>confdefs.h <<_ACEOF
19882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19883 _ACEOF
19884
19885 fi
19886
19887 done
19888
19889
19890
19891
19892 for ac_header in dlfcn.h link.h
19893 do
19894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19896   echo "$as_me:$LINENO: checking for $ac_header" >&5
19897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19899   echo $ECHO_N "(cached) $ECHO_C" >&6
19900 fi
19901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19903 else
19904   # Is the header compilable?
19905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19907 cat >conftest.$ac_ext <<_ACEOF
19908 #line $LINENO "configure"
19909 /* confdefs.h.  */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h.  */
19914 $ac_includes_default
19915 #include <$ac_header>
19916 _ACEOF
19917 rm -f conftest.$ac_objext
19918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19919   (eval $ac_compile) 2>&5
19920   ac_status=$?
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); } &&
19923          { ac_try='test -s conftest.$ac_objext'
19924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925   (eval $ac_try) 2>&5
19926   ac_status=$?
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); }; }; then
19929   ac_header_compiler=yes
19930 else
19931   echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934 ac_header_compiler=no
19935 fi
19936 rm -f conftest.$ac_objext conftest.$ac_ext
19937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19938 echo "${ECHO_T}$ac_header_compiler" >&6
19939
19940 # Is the header present?
19941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19943 cat >conftest.$ac_ext <<_ACEOF
19944 #line $LINENO "configure"
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950 #include <$ac_header>
19951 _ACEOF
19952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19954   ac_status=$?
19955   grep -v '^ *+' conftest.er1 >conftest.err
19956   rm -f conftest.er1
19957   cat conftest.err >&5
19958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959   (exit $ac_status); } >/dev/null; then
19960   if test -s conftest.err; then
19961     ac_cpp_err=$ac_c_preproc_warn_flag
19962   else
19963     ac_cpp_err=
19964   fi
19965 else
19966   ac_cpp_err=yes
19967 fi
19968 if test -z "$ac_cpp_err"; then
19969   ac_header_preproc=yes
19970 else
19971   echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19973
19974   ac_header_preproc=no
19975 fi
19976 rm -f conftest.err conftest.$ac_ext
19977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19978 echo "${ECHO_T}$ac_header_preproc" >&6
19979
19980 # So?  What about this header?
19981 case $ac_header_compiler:$ac_header_preproc in
19982   yes:no )
19983     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19987     (
19988       cat <<\_ASBOX
19989 ## ------------------------------------ ##
19990 ## Report this to bug-autoconf@gnu.org. ##
19991 ## ------------------------------------ ##
19992 _ASBOX
19993     ) |
19994       sed "s/^/$as_me: WARNING:     /" >&2
19995     ;;
19996   no:yes )
19997     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19999     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20003     (
20004       cat <<\_ASBOX
20005 ## ------------------------------------ ##
20006 ## Report this to bug-autoconf@gnu.org. ##
20007 ## ------------------------------------ ##
20008 _ASBOX
20009     ) |
20010       sed "s/^/$as_me: WARNING:     /" >&2
20011     ;;
20012 esac
20013 echo "$as_me:$LINENO: checking for $ac_header" >&5
20014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20016   echo $ECHO_N "(cached) $ECHO_C" >&6
20017 else
20018   eval "$as_ac_Header=$ac_header_preproc"
20019 fi
20020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20022
20023 fi
20024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20025   cat >>confdefs.h <<_ACEOF
20026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20027 _ACEOF
20028
20029 fi
20030
20031 done
20032
20033
20034
20035 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20036 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20037 if test "${ac_cv_c_const+set}" = set; then
20038   echo $ECHO_N "(cached) $ECHO_C" >&6
20039 else
20040   cat >conftest.$ac_ext <<_ACEOF
20041 #line $LINENO "configure"
20042 /* confdefs.h.  */
20043 _ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h.  */
20047
20048 int
20049 main ()
20050 {
20051 /* FIXME: Include the comments suggested by Paul. */
20052 #ifndef __cplusplus
20053   /* Ultrix mips cc rejects this.  */
20054   typedef int charset[2];
20055   const charset x;
20056   /* SunOS 4.1.1 cc rejects this.  */
20057   char const *const *ccp;
20058   char **p;
20059   /* NEC SVR4.0.2 mips cc rejects this.  */
20060   struct point {int x, y;};
20061   static struct point const zero = {0,0};
20062   /* AIX XL C 1.02.0.0 rejects this.
20063      It does not let you subtract one const X* pointer from another in
20064      an arm of an if-expression whose if-part is not a constant
20065      expression */
20066   const char *g = "string";
20067   ccp = &g + (g ? g-g : 0);
20068   /* HPUX 7.0 cc rejects these. */
20069   ++ccp;
20070   p = (char**) ccp;
20071   ccp = (char const *const *) p;
20072   { /* SCO 3.2v4 cc rejects this.  */
20073     char *t;
20074     char const *s = 0 ? (char *) 0 : (char const *) 0;
20075
20076     *t++ = 0;
20077   }
20078   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20079     int x[] = {25, 17};
20080     const int *foo = &x[0];
20081     ++foo;
20082   }
20083   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20084     typedef const int *iptr;
20085     iptr p = 0;
20086     ++p;
20087   }
20088   { /* AIX XL C 1.02.0.0 rejects this saying
20089        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20090     struct s { int j; const int *ap[3]; };
20091     struct s *b; b->j = 5;
20092   }
20093   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20094     const int foo = 10;
20095   }
20096 #endif
20097
20098   ;
20099   return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20104   (eval $ac_compile) 2>&5
20105   ac_status=$?
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); } &&
20108          { ac_try='test -s conftest.$ac_objext'
20109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110   (eval $ac_try) 2>&5
20111   ac_status=$?
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); }; }; then
20114   ac_cv_c_const=yes
20115 else
20116   echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20118
20119 ac_cv_c_const=no
20120 fi
20121 rm -f conftest.$ac_objext conftest.$ac_ext
20122 fi
20123 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20124 echo "${ECHO_T}$ac_cv_c_const" >&6
20125 if test $ac_cv_c_const = no; then
20126
20127 cat >>confdefs.h <<\_ACEOF
20128 #define const
20129 _ACEOF
20130
20131 fi
20132
20133 echo "$as_me:$LINENO: checking for inline" >&5
20134 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20135 if test "${ac_cv_c_inline+set}" = set; then
20136   echo $ECHO_N "(cached) $ECHO_C" >&6
20137 else
20138   ac_cv_c_inline=no
20139 for ac_kw in inline __inline__ __inline; do
20140   cat >conftest.$ac_ext <<_ACEOF
20141 #line $LINENO "configure"
20142 /* confdefs.h.  */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h.  */
20147 #ifndef __cplusplus
20148 typedef int foo_t;
20149 static $ac_kw foo_t static_foo () {return 0; }
20150 $ac_kw foo_t foo () {return 0; }
20151 #endif
20152
20153 _ACEOF
20154 rm -f conftest.$ac_objext
20155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20156   (eval $ac_compile) 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); } &&
20160          { ac_try='test -s conftest.$ac_objext'
20161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162   (eval $ac_try) 2>&5
20163   ac_status=$?
20164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165   (exit $ac_status); }; }; then
20166   ac_cv_c_inline=$ac_kw; break
20167 else
20168   echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171 fi
20172 rm -f conftest.$ac_objext conftest.$ac_ext
20173 done
20174
20175 fi
20176 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20177 echo "${ECHO_T}$ac_cv_c_inline" >&6
20178 case $ac_cv_c_inline in
20179   inline | yes) ;;
20180   no)
20181 cat >>confdefs.h <<\_ACEOF
20182 #define inline
20183 _ACEOF
20184  ;;
20185   *)  cat >>confdefs.h <<_ACEOF
20186 #define inline $ac_cv_c_inline
20187 _ACEOF
20188  ;;
20189 esac
20190
20191
20192 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20193 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20194 if test "${ac_cv_c_bigendian+set}" = set; then
20195   echo $ECHO_N "(cached) $ECHO_C" >&6
20196 else
20197   # See if sys/param.h defines the BYTE_ORDER macro.
20198 cat >conftest.$ac_ext <<_ACEOF
20199 #line $LINENO "configure"
20200 /* confdefs.h.  */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h.  */
20205 #include <sys/types.h>
20206 #include <sys/param.h>
20207
20208 int
20209 main ()
20210 {
20211 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20212  bogus endian macros
20213 #endif
20214
20215   ;
20216   return 0;
20217 }
20218 _ACEOF
20219 rm -f conftest.$ac_objext
20220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20221   (eval $ac_compile) 2>&5
20222   ac_status=$?
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); } &&
20225          { ac_try='test -s conftest.$ac_objext'
20226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227   (eval $ac_try) 2>&5
20228   ac_status=$?
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); }; }; then
20231   # It does; now see whether it defined to BIG_ENDIAN or not.
20232 cat >conftest.$ac_ext <<_ACEOF
20233 #line $LINENO "configure"
20234 /* confdefs.h.  */
20235 _ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h.  */
20239 #include <sys/types.h>
20240 #include <sys/param.h>
20241
20242 int
20243 main ()
20244 {
20245 #if BYTE_ORDER != BIG_ENDIAN
20246  not big endian
20247 #endif
20248
20249   ;
20250   return 0;
20251 }
20252 _ACEOF
20253 rm -f conftest.$ac_objext
20254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20255   (eval $ac_compile) 2>&5
20256   ac_status=$?
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); } &&
20259          { ac_try='test -s conftest.$ac_objext'
20260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261   (eval $ac_try) 2>&5
20262   ac_status=$?
20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); }; }; then
20265   ac_cv_c_bigendian=yes
20266 else
20267   echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20269
20270 ac_cv_c_bigendian=no
20271 fi
20272 rm -f conftest.$ac_objext conftest.$ac_ext
20273 else
20274   echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20276
20277 # It does not; compile a test program.
20278 if test "$cross_compiling" = yes; then
20279   # try to guess the endianness by grepping values into an object file
20280   ac_cv_c_bigendian=unknown
20281   cat >conftest.$ac_ext <<_ACEOF
20282 #line $LINENO "configure"
20283 /* confdefs.h.  */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h.  */
20288 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20289 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20290 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20291 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20292 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20293 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20294 int
20295 main ()
20296 {
20297  _ascii (); _ebcdic ();
20298   ;
20299   return 0;
20300 }
20301 _ACEOF
20302 rm -f conftest.$ac_objext
20303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20304   (eval $ac_compile) 2>&5
20305   ac_status=$?
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); } &&
20308          { ac_try='test -s conftest.$ac_objext'
20309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310   (eval $ac_try) 2>&5
20311   ac_status=$?
20312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); }; }; then
20314   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20315   ac_cv_c_bigendian=yes
20316 fi
20317 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20318   if test "$ac_cv_c_bigendian" = unknown; then
20319     ac_cv_c_bigendian=no
20320   else
20321     # finding both strings is unlikely to happen, but who knows?
20322     ac_cv_c_bigendian=unknown
20323   fi
20324 fi
20325 else
20326   echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20328
20329 fi
20330 rm -f conftest.$ac_objext conftest.$ac_ext
20331 else
20332   cat >conftest.$ac_ext <<_ACEOF
20333 #line $LINENO "configure"
20334 /* confdefs.h.  */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h.  */
20339 int
20340 main ()
20341 {
20342   /* Are we little or big endian?  From Harbison&Steele.  */
20343   union
20344   {
20345     long l;
20346     char c[sizeof (long)];
20347   } u;
20348   u.l = 1;
20349   exit (u.c[sizeof (long) - 1] == 1);
20350 }
20351 _ACEOF
20352 rm -f conftest$ac_exeext
20353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20354   (eval $ac_link) 2>&5
20355   ac_status=$?
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359   (eval $ac_try) 2>&5
20360   ac_status=$?
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); }; }; then
20363   ac_cv_c_bigendian=no
20364 else
20365   echo "$as_me: program exited with status $ac_status" >&5
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20368
20369 ( exit $ac_status )
20370 ac_cv_c_bigendian=yes
20371 fi
20372 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20373 fi
20374 fi
20375 rm -f conftest.$ac_objext conftest.$ac_ext
20376 fi
20377 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20378 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20379 case $ac_cv_c_bigendian in
20380   yes)
20381
20382 cat >>confdefs.h <<\_ACEOF
20383 #define ENDIAN_BIG
20384 _ACEOF
20385  ;;
20386   no)
20387
20388 cat >>confdefs.h <<\_ACEOF
20389 #define ENDIAN_LITTLE
20390 _ACEOF
20391  ;;
20392   *)
20393     { { echo "$as_me:$LINENO: error: unknown endianness
20394 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20395 echo "$as_me: error: unknown endianness
20396 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20397    { (exit 1); exit 1; }; } ;;
20398 esac
20399
20400
20401 echo "$as_me:$LINENO: checking for pid_t" >&5
20402 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20403 if test "${ac_cv_type_pid_t+set}" = set; then
20404   echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406   cat >conftest.$ac_ext <<_ACEOF
20407 #line $LINENO "configure"
20408 /* confdefs.h.  */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h.  */
20413 $ac_includes_default
20414 int
20415 main ()
20416 {
20417 if ((pid_t *) 0)
20418   return 0;
20419 if (sizeof (pid_t))
20420   return 0;
20421   ;
20422   return 0;
20423 }
20424 _ACEOF
20425 rm -f conftest.$ac_objext
20426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20427   (eval $ac_compile) 2>&5
20428   ac_status=$?
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); } &&
20431          { ac_try='test -s conftest.$ac_objext'
20432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433   (eval $ac_try) 2>&5
20434   ac_status=$?
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); }; }; then
20437   ac_cv_type_pid_t=yes
20438 else
20439   echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20441
20442 ac_cv_type_pid_t=no
20443 fi
20444 rm -f conftest.$ac_objext conftest.$ac_ext
20445 fi
20446 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20447 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20448 if test $ac_cv_type_pid_t = yes; then
20449   :
20450 else
20451
20452 cat >>confdefs.h <<_ACEOF
20453 #define pid_t int
20454 _ACEOF
20455
20456 fi
20457
20458 echo "$as_me:$LINENO: checking for size_t" >&5
20459 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20460 if test "${ac_cv_type_size_t+set}" = set; then
20461   echo $ECHO_N "(cached) $ECHO_C" >&6
20462 else
20463   cat >conftest.$ac_ext <<_ACEOF
20464 #line $LINENO "configure"
20465 /* confdefs.h.  */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h.  */
20470 $ac_includes_default
20471 int
20472 main ()
20473 {
20474 if ((size_t *) 0)
20475   return 0;
20476 if (sizeof (size_t))
20477   return 0;
20478   ;
20479   return 0;
20480 }
20481 _ACEOF
20482 rm -f conftest.$ac_objext
20483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20484   (eval $ac_compile) 2>&5
20485   ac_status=$?
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); } &&
20488          { ac_try='test -s conftest.$ac_objext'
20489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490   (eval $ac_try) 2>&5
20491   ac_status=$?
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); }; }; then
20494   ac_cv_type_size_t=yes
20495 else
20496   echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499 ac_cv_type_size_t=no
20500 fi
20501 rm -f conftest.$ac_objext conftest.$ac_ext
20502 fi
20503 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20504 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20505 if test $ac_cv_type_size_t = yes; then
20506   :
20507 else
20508
20509 cat >>confdefs.h <<_ACEOF
20510 #define size_t unsigned
20511 _ACEOF
20512
20513 fi
20514
20515 echo "$as_me:$LINENO: checking for int64_t" >&5
20516 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20517 if test "${ac_cv_type_int64_t+set}" = set; then
20518   echo $ECHO_N "(cached) $ECHO_C" >&6
20519 else
20520   cat >conftest.$ac_ext <<_ACEOF
20521 #line $LINENO "configure"
20522 /* confdefs.h.  */
20523 _ACEOF
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h.  */
20527 $ac_includes_default
20528 int
20529 main ()
20530 {
20531 if ((int64_t *) 0)
20532   return 0;
20533 if (sizeof (int64_t))
20534   return 0;
20535   ;
20536   return 0;
20537 }
20538 _ACEOF
20539 rm -f conftest.$ac_objext
20540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20541   (eval $ac_compile) 2>&5
20542   ac_status=$?
20543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); } &&
20545          { ac_try='test -s conftest.$ac_objext'
20546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547   (eval $ac_try) 2>&5
20548   ac_status=$?
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); }; }; then
20551   ac_cv_type_int64_t=yes
20552 else
20553   echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20555
20556 ac_cv_type_int64_t=no
20557 fi
20558 rm -f conftest.$ac_objext conftest.$ac_ext
20559 fi
20560 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20561 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20562 if test $ac_cv_type_int64_t = yes; then
20563
20564 cat >>confdefs.h <<_ACEOF
20565 #define HAVE_INT64_T 1
20566 _ACEOF
20567
20568
20569 else
20570   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20571 echo "$as_me: error: Type int64_t required but not found" >&2;}
20572    { (exit 1); exit 1; }; }
20573 fi
20574
20575 echo "$as_me:$LINENO: checking for uint64_t" >&5
20576 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20577 if test "${ac_cv_type_uint64_t+set}" = set; then
20578   echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580   cat >conftest.$ac_ext <<_ACEOF
20581 #line $LINENO "configure"
20582 /* confdefs.h.  */
20583 _ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h.  */
20587 $ac_includes_default
20588 int
20589 main ()
20590 {
20591 if ((uint64_t *) 0)
20592   return 0;
20593 if (sizeof (uint64_t))
20594   return 0;
20595   ;
20596   return 0;
20597 }
20598 _ACEOF
20599 rm -f conftest.$ac_objext
20600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20601   (eval $ac_compile) 2>&5
20602   ac_status=$?
20603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604   (exit $ac_status); } &&
20605          { ac_try='test -s conftest.$ac_objext'
20606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607   (eval $ac_try) 2>&5
20608   ac_status=$?
20609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); }; }; then
20611   ac_cv_type_uint64_t=yes
20612 else
20613   echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20615
20616 ac_cv_type_uint64_t=no
20617 fi
20618 rm -f conftest.$ac_objext conftest.$ac_ext
20619 fi
20620 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20621 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20622 if test $ac_cv_type_uint64_t = yes; then
20623
20624 cat >>confdefs.h <<_ACEOF
20625 #define HAVE_UINT64_T 1
20626 _ACEOF
20627
20628
20629 else
20630   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20631 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20632    { (exit 1); exit 1; }; }
20633 fi
20634
20635 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20636 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20637 if test "${ac_cv_header_time+set}" = set; then
20638   echo $ECHO_N "(cached) $ECHO_C" >&6
20639 else
20640   cat >conftest.$ac_ext <<_ACEOF
20641 #line $LINENO "configure"
20642 /* confdefs.h.  */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h.  */
20647 #include <sys/types.h>
20648 #include <sys/time.h>
20649 #include <time.h>
20650
20651 int
20652 main ()
20653 {
20654 if ((struct tm *) 0)
20655 return 0;
20656   ;
20657   return 0;
20658 }
20659 _ACEOF
20660 rm -f conftest.$ac_objext
20661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20662   (eval $ac_compile) 2>&5
20663   ac_status=$?
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); } &&
20666          { ac_try='test -s conftest.$ac_objext'
20667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668   (eval $ac_try) 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); }; }; then
20672   ac_cv_header_time=yes
20673 else
20674   echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20676
20677 ac_cv_header_time=no
20678 fi
20679 rm -f conftest.$ac_objext conftest.$ac_ext
20680 fi
20681 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20682 echo "${ECHO_T}$ac_cv_header_time" >&6
20683 if test $ac_cv_header_time = yes; then
20684
20685 cat >>confdefs.h <<\_ACEOF
20686 #define TIME_WITH_SYS_TIME 1
20687 _ACEOF
20688
20689 fi
20690
20691 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20692 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20693 if test "${ac_cv_struct_tm+set}" = set; then
20694   echo $ECHO_N "(cached) $ECHO_C" >&6
20695 else
20696   cat >conftest.$ac_ext <<_ACEOF
20697 #line $LINENO "configure"
20698 /* confdefs.h.  */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h.  */
20703 #include <sys/types.h>
20704 #include <time.h>
20705
20706 int
20707 main ()
20708 {
20709 struct tm *tp; tp->tm_sec;
20710   ;
20711   return 0;
20712 }
20713 _ACEOF
20714 rm -f conftest.$ac_objext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20716   (eval $ac_compile) 2>&5
20717   ac_status=$?
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); } &&
20720          { ac_try='test -s conftest.$ac_objext'
20721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20722   (eval $ac_try) 2>&5
20723   ac_status=$?
20724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725   (exit $ac_status); }; }; then
20726   ac_cv_struct_tm=time.h
20727 else
20728   echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20730
20731 ac_cv_struct_tm=sys/time.h
20732 fi
20733 rm -f conftest.$ac_objext conftest.$ac_ext
20734 fi
20735 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20736 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20737 if test $ac_cv_struct_tm = sys/time.h; then
20738
20739 cat >>confdefs.h <<\_ACEOF
20740 #define TM_IN_SYS_TIME 1
20741 _ACEOF
20742
20743 fi
20744
20745
20746
20747
20748
20749         ac_ext=c
20750 ac_cpp='$CPP $CPPFLAGS'
20751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20754
20755         if test "$cross_compiling" = yes; then
20756   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20757 See \`config.log' for more details." >&5
20758 echo "$as_me: error: cannot run test program while cross compiling
20759 See \`config.log' for more details." >&2;}
20760    { (exit 1); exit 1; }; }
20761 else
20762   cat >conftest.$ac_ext <<_ACEOF
20763 #line $LINENO "configure"
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769 #include <stdio.h>
20770                                  #include <stdlib.h>
20771 int
20772 main ()
20773 {
20774
20775                                  volatile double A, B;
20776                                  char Buffer[100];
20777                                  A = 1;
20778                                  A /= 10.0;
20779                                  sprintf(Buffer, "%a", A);
20780                                  B = atof(Buffer);
20781                                  if (A != B)
20782                                                          return (1);
20783                                  if (A != 0x1.999999999999ap-4)
20784                                                          return (1);
20785                                  return (0);
20786   ;
20787   return 0;
20788 }
20789 _ACEOF
20790 rm -f conftest$ac_exeext
20791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20792   (eval $ac_link) 2>&5
20793   ac_status=$?
20794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797   (eval $ac_try) 2>&5
20798   ac_status=$?
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); }; }; then
20801   ac_c_printf_a=yes
20802 else
20803   echo "$as_me: program exited with status $ac_status" >&5
20804 echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20806
20807 ( exit $ac_status )
20808 ac_c_printf_a=no
20809 fi
20810 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20811 fi
20812         ac_ext=c
20813 ac_cpp='$CPP $CPPFLAGS'
20814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20817
20818         if test "$ac_c_printf_a" = "yes"; then
20819
20820 cat >>confdefs.h <<\_ACEOF
20821 #define HAVE_PRINTF_A 1
20822 _ACEOF
20823
20824         fi
20825
20826
20827 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20828 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20829 if test "${ac_cv_cxx_namespaces+set}" = set; then
20830   echo $ECHO_N "(cached) $ECHO_C" >&6
20831 else
20832
20833
20834  ac_ext=cc
20835 ac_cpp='$CXXCPP $CPPFLAGS'
20836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20839
20840  cat >conftest.$ac_ext <<_ACEOF
20841 #line $LINENO "configure"
20842 /* confdefs.h.  */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h.  */
20847 namespace Outer { namespace Inner { int i = 0; }}
20848 int
20849 main ()
20850 {
20851 using namespace Outer::Inner; return i;
20852   ;
20853   return 0;
20854 }
20855 _ACEOF
20856 rm -f conftest.$ac_objext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20858   (eval $ac_compile) 2>&5
20859   ac_status=$?
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); } &&
20862          { ac_try='test -s conftest.$ac_objext'
20863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864   (eval $ac_try) 2>&5
20865   ac_status=$?
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); }; }; then
20868   ac_cv_cxx_namespaces=yes
20869 else
20870   echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20872
20873 ac_cv_cxx_namespaces=no
20874 fi
20875 rm -f conftest.$ac_objext conftest.$ac_ext
20876  ac_ext=c
20877 ac_cpp='$CPP $CPPFLAGS'
20878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20881
20882
20883 fi
20884 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20885 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20886 if test "$ac_cv_cxx_namespaces" = yes; then
20887
20888 cat >>confdefs.h <<\_ACEOF
20889 #define HAVE_NAMESPACES
20890 _ACEOF
20891
20892 fi
20893
20894 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20895 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20896 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20897   echo $ECHO_N "(cached) $ECHO_C" >&6
20898 else
20899
20900
20901
20902   ac_ext=cc
20903 ac_cpp='$CXXCPP $CPPFLAGS'
20904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20907
20908   cat >conftest.$ac_ext <<_ACEOF
20909 #line $LINENO "configure"
20910 /* confdefs.h.  */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h.  */
20915 #include <ext/hash_map>
20916 #ifdef HAVE_NAMESPACES
20917 using namespace std;
20918 #endif
20919 int
20920 main ()
20921 {
20922 hash_map<int, int> t;
20923   ;
20924   return 0;
20925 }
20926 _ACEOF
20927 rm -f conftest.$ac_objext
20928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20929   (eval $ac_compile) 2>&5
20930   ac_status=$?
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); } &&
20933          { ac_try='test -s conftest.$ac_objext'
20934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935   (eval $ac_try) 2>&5
20936   ac_status=$?
20937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938   (exit $ac_status); }; }; then
20939   ac_cv_cxx_have_std_ext_hash_map=yes
20940 else
20941   echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20943
20944 ac_cv_cxx_have_std_ext_hash_map=no
20945 fi
20946 rm -f conftest.$ac_objext conftest.$ac_ext
20947   ac_ext=c
20948 ac_cpp='$CPP $CPPFLAGS'
20949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20952
20953 fi
20954 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20955 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20956  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
20957
20958 cat >>confdefs.h <<\_ACEOF
20959 #define HAVE_STD_EXT_HASH_MAP
20960 _ACEOF
20961
20962  fi
20963  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20964 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20965 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20966   echo $ECHO_N "(cached) $ECHO_C" >&6
20967 else
20968
20969
20970
20971   ac_ext=cc
20972 ac_cpp='$CXXCPP $CPPFLAGS'
20973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20976
20977   cat >conftest.$ac_ext <<_ACEOF
20978 #line $LINENO "configure"
20979 /* confdefs.h.  */
20980 _ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h.  */
20984 #include <ext/hash_map>
20985 #ifdef HAVE_NAMESPACES
20986 using namespace __gnu_cxx;
20987 #endif
20988 int
20989 main ()
20990 {
20991 hash_map<int,int> t;
20992   ;
20993   return 0;
20994 }
20995 _ACEOF
20996 rm -f conftest.$ac_objext
20997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20998   (eval $ac_compile) 2>&5
20999   ac_status=$?
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } &&
21002          { ac_try='test -s conftest.$ac_objext'
21003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004   (eval $ac_try) 2>&5
21005   ac_status=$?
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); }; }; then
21008   ac_cv_cxx_have_gnu_ext_hash_map=yes
21009 else
21010   echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21012
21013 ac_cv_cxx_have_gnu_ext_hash_map=no
21014 fi
21015 rm -f conftest.$ac_objext conftest.$ac_ext
21016   ac_ext=c
21017 ac_cpp='$CPP $CPPFLAGS'
21018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21021
21022 fi
21023 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21024 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21025  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
21026
21027 cat >>confdefs.h <<\_ACEOF
21028 #define HAVE_GNU_EXT_HASH_MAP
21029 _ACEOF
21030
21031  fi
21032  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21033 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21034 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21035   echo $ECHO_N "(cached) $ECHO_C" >&6
21036 else
21037
21038
21039
21040   ac_ext=cc
21041 ac_cpp='$CXXCPP $CPPFLAGS'
21042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21045
21046   cat >conftest.$ac_ext <<_ACEOF
21047 #line $LINENO "configure"
21048 /* confdefs.h.  */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h.  */
21053 #include <hash_map>
21054 int
21055 main ()
21056 {
21057 hash_map<int,int> t;
21058   ;
21059   return 0;
21060 }
21061 _ACEOF
21062 rm -f conftest.$ac_objext
21063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21064   (eval $ac_compile) 2>&5
21065   ac_status=$?
21066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067   (exit $ac_status); } &&
21068          { ac_try='test -s conftest.$ac_objext'
21069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070   (eval $ac_try) 2>&5
21071   ac_status=$?
21072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073   (exit $ac_status); }; }; then
21074   ac_cv_cxx_have_global_hash_map=yes
21075 else
21076   echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21078
21079 ac_cv_cxx_have_global_hash_map=no
21080 fi
21081 rm -f conftest.$ac_objext conftest.$ac_ext
21082   ac_ext=c
21083 ac_cpp='$CPP $CPPFLAGS'
21084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21087
21088 fi
21089 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21090 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21091  if test "$ac_cv_cxx_have_global_hash_map" = yes; then
21092
21093 cat >>confdefs.h <<\_ACEOF
21094 #define HAVE_GLOBAL_HASH_MAP
21095 _ACEOF
21096
21097  fi
21098 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21099 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21100 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21101   echo $ECHO_N "(cached) $ECHO_C" >&6
21102 else
21103
21104
21105
21106   ac_ext=cc
21107 ac_cpp='$CXXCPP $CPPFLAGS'
21108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21111
21112   cat >conftest.$ac_ext <<_ACEOF
21113 #line $LINENO "configure"
21114 /* confdefs.h.  */
21115 _ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h.  */
21119 #include <ext/hash_set>
21120 #ifdef HAVE_NAMESPACES
21121 using namespace std;
21122 #endif
21123 int
21124 main ()
21125 {
21126 hash_set<int> t;
21127   ;
21128   return 0;
21129 }
21130 _ACEOF
21131 rm -f conftest.$ac_objext
21132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21133   (eval $ac_compile) 2>&5
21134   ac_status=$?
21135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136   (exit $ac_status); } &&
21137          { ac_try='test -s conftest.$ac_objext'
21138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21139   (eval $ac_try) 2>&5
21140   ac_status=$?
21141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142   (exit $ac_status); }; }; then
21143   ac_cv_cxx_have_std_ext_hash_set=yes
21144 else
21145   echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21147
21148 ac_cv_cxx_have_std_ext_hash_set=no
21149 fi
21150 rm -f conftest.$ac_objext conftest.$ac_ext
21151   ac_ext=c
21152 ac_cpp='$CPP $CPPFLAGS'
21153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21156
21157 fi
21158 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21159 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21160  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
21161
21162 cat >>confdefs.h <<\_ACEOF
21163 #define HAVE_STD_EXT_HASH_SET
21164 _ACEOF
21165
21166  fi
21167  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21168 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21169 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21170   echo $ECHO_N "(cached) $ECHO_C" >&6
21171 else
21172
21173
21174
21175   ac_ext=cc
21176 ac_cpp='$CXXCPP $CPPFLAGS'
21177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21180
21181   cat >conftest.$ac_ext <<_ACEOF
21182 #line $LINENO "configure"
21183 /* confdefs.h.  */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h.  */
21188 #include <ext/hash_set>
21189 #ifdef HAVE_NAMESPACES
21190 using namespace __gnu_cxx;
21191 #endif
21192 int
21193 main ()
21194 {
21195 hash_set<int> t;
21196   ;
21197   return 0;
21198 }
21199 _ACEOF
21200 rm -f conftest.$ac_objext
21201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21202   (eval $ac_compile) 2>&5
21203   ac_status=$?
21204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205   (exit $ac_status); } &&
21206          { ac_try='test -s conftest.$ac_objext'
21207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208   (eval $ac_try) 2>&5
21209   ac_status=$?
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); }; }; then
21212   ac_cv_cxx_have_gnu_ext_hash_set=yes
21213 else
21214   echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21216
21217 ac_cv_cxx_have_gnu_ext_hash_set=no
21218 fi
21219 rm -f conftest.$ac_objext conftest.$ac_ext
21220   ac_ext=c
21221 ac_cpp='$CPP $CPPFLAGS'
21222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21225
21226 fi
21227 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21228 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21229  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
21230
21231 cat >>confdefs.h <<\_ACEOF
21232 #define HAVE_GNU_EXT_HASH_SET
21233 _ACEOF
21234
21235  fi
21236  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21237 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21238 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21239   echo $ECHO_N "(cached) $ECHO_C" >&6
21240 else
21241
21242
21243
21244   ac_ext=cc
21245 ac_cpp='$CXXCPP $CPPFLAGS'
21246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21249
21250   cat >conftest.$ac_ext <<_ACEOF
21251 #line $LINENO "configure"
21252 /* confdefs.h.  */
21253 _ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h.  */
21257 #include <hash_set>
21258 int
21259 main ()
21260 {
21261 hash_set<int> t; return 0;
21262   ;
21263   return 0;
21264 }
21265 _ACEOF
21266 rm -f conftest.$ac_objext
21267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21268   (eval $ac_compile) 2>&5
21269   ac_status=$?
21270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); } &&
21272          { ac_try='test -s conftest.$ac_objext'
21273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274   (eval $ac_try) 2>&5
21275   ac_status=$?
21276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277   (exit $ac_status); }; }; then
21278   ac_cv_cxx_have_global_hash_set=yes
21279 else
21280   echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21282
21283 ac_cv_cxx_have_global_hash_set=no
21284 fi
21285 rm -f conftest.$ac_objext conftest.$ac_ext
21286   ac_ext=c
21287 ac_cpp='$CPP $CPPFLAGS'
21288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21291
21292 fi
21293 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21294 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21295  if test "$ac_cv_cxx_have_global_hash_set" = yes; then
21296
21297 cat >>confdefs.h <<\_ACEOF
21298 #define HAVE_GLOBAL_HASH_SET
21299 _ACEOF
21300
21301  fi
21302 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21303 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21304 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21305   echo $ECHO_N "(cached) $ECHO_C" >&6
21306 else
21307
21308
21309
21310   ac_ext=cc
21311 ac_cpp='$CXXCPP $CPPFLAGS'
21312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21315
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 #include <ext/slist>
21324 #ifdef HAVE_NAMESPACES
21325 using namespace std;
21326 #endif
21327 int
21328 main ()
21329 {
21330 slist<int> s; return 0;
21331   ;
21332   return 0;
21333 }
21334 _ACEOF
21335 rm -f conftest.$ac_objext
21336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21337   (eval $ac_compile) 2>&5
21338   ac_status=$?
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); } &&
21341          { ac_try='test -s conftest.$ac_objext'
21342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343   (eval $ac_try) 2>&5
21344   ac_status=$?
21345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); }; }; then
21347   ac_cv_cxx_have_ext_slist=std
21348 else
21349   echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21351
21352 ac_cv_cxx_have_ext_slist=no
21353 fi
21354 rm -f conftest.$ac_objext conftest.$ac_ext
21355   cat >conftest.$ac_ext <<_ACEOF
21356 #line $LINENO "configure"
21357 /* confdefs.h.  */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h.  */
21362 #include <ext/slist>
21363 #ifdef HAVE_NAMESPACES
21364 using namespace __gnu_cxx;
21365 #endif
21366 int
21367 main ()
21368 {
21369 slist<int> s; return 0;
21370   ;
21371   return 0;
21372 }
21373 _ACEOF
21374 rm -f conftest.$ac_objext
21375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21376   (eval $ac_compile) 2>&5
21377   ac_status=$?
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); } &&
21380          { ac_try='test -s conftest.$ac_objext'
21381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382   (eval $ac_try) 2>&5
21383   ac_status=$?
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); }; }; then
21386   ac_cv_cxx_have_ext_slist=gnu
21387 else
21388   echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21390
21391 ac_cv_cxx_have_ext_slist=no
21392 fi
21393 rm -f conftest.$ac_objext conftest.$ac_ext
21394
21395   ac_ext=c
21396 ac_cpp='$CPP $CPPFLAGS'
21397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21400
21401
21402 fi
21403 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21404 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21405 if test "$ac_cv_cxx_have_ext_slist" = std; then
21406
21407 cat >>confdefs.h <<\_ACEOF
21408 #define HAVE_EXT_SLIST std
21409 _ACEOF
21410
21411 fi
21412 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21413
21414 cat >>confdefs.h <<\_ACEOF
21415 #define HAVE_EXT_SLIST gnu
21416 _ACEOF
21417
21418 fi
21419
21420 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21421 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21422 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21423   echo $ECHO_N "(cached) $ECHO_C" >&6
21424 else
21425
21426
21427
21428   ac_ext=cc
21429 ac_cpp='$CXXCPP $CPPFLAGS'
21430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21433
21434   cat >conftest.$ac_ext <<_ACEOF
21435 #line $LINENO "configure"
21436 /* confdefs.h.  */
21437 _ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h.  */
21441 #include <iterator>
21442 #ifdef HAVE_NAMESPACES
21443 using namespace std;
21444 #endif
21445 int
21446 main ()
21447 {
21448 iterator<int,int,int> t; return 0;
21449   ;
21450   return 0;
21451 }
21452 _ACEOF
21453 rm -f conftest.$ac_objext
21454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21455   (eval $ac_compile) 2>&5
21456   ac_status=$?
21457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458   (exit $ac_status); } &&
21459          { ac_try='test -s conftest.$ac_objext'
21460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461   (eval $ac_try) 2>&5
21462   ac_status=$?
21463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464   (exit $ac_status); }; }; then
21465   ac_cv_cxx_have_std_iterator=yes
21466 else
21467   echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21469
21470 ac_cv_cxx_have_std_iterator=no
21471 fi
21472 rm -f conftest.$ac_objext conftest.$ac_ext
21473   ac_ext=c
21474 ac_cpp='$CPP $CPPFLAGS'
21475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21478
21479
21480 fi
21481 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21482 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21483 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21484
21485 cat >>confdefs.h <<\_ACEOF
21486 #define HAVE_STD_ITERATOR
21487 _ACEOF
21488
21489 fi
21490
21491 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21492 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21493 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21494   echo $ECHO_N "(cached) $ECHO_C" >&6
21495 else
21496
21497
21498
21499   ac_ext=cc
21500 ac_cpp='$CXXCPP $CPPFLAGS'
21501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21504
21505   cat >conftest.$ac_ext <<_ACEOF
21506 #line $LINENO "configure"
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512 #include <iterator>
21513 #ifdef HAVE_NAMESPACES
21514 using namespace std;
21515 #endif
21516 int
21517 main ()
21518 {
21519 bidirectional_iterator<int,int> t; return 0;
21520   ;
21521   return 0;
21522 }
21523 _ACEOF
21524 rm -f conftest.$ac_objext
21525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21526   (eval $ac_compile) 2>&5
21527   ac_status=$?
21528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529   (exit $ac_status); } &&
21530          { ac_try='test -s conftest.$ac_objext'
21531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532   (eval $ac_try) 2>&5
21533   ac_status=$?
21534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); }; }; then
21536   ac_cv_cxx_have_bi_iterator=yes
21537 else
21538   echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21540
21541 ac_cv_cxx_have_bi_iterator=no
21542 fi
21543 rm -f conftest.$ac_objext conftest.$ac_ext
21544   ac_ext=c
21545 ac_cpp='$CPP $CPPFLAGS'
21546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21549
21550
21551 fi
21552 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21553 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21554 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21555
21556 cat >>confdefs.h <<\_ACEOF
21557 #define HAVE_BI_ITERATOR
21558 _ACEOF
21559
21560 fi
21561
21562 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21563 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21564 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21565   echo $ECHO_N "(cached) $ECHO_C" >&6
21566 else
21567
21568
21569
21570   ac_ext=cc
21571 ac_cpp='$CXXCPP $CPPFLAGS'
21572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21575
21576   cat >conftest.$ac_ext <<_ACEOF
21577 #line $LINENO "configure"
21578 /* confdefs.h.  */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h.  */
21583 #include <iterator>
21584 #ifdef HAVE_NAMESPACES
21585 using namespace std;
21586 #endif
21587 int
21588 main ()
21589 {
21590 forward_iterator<int,int> t; return 0;
21591   ;
21592   return 0;
21593 }
21594 _ACEOF
21595 rm -f conftest.$ac_objext
21596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21597   (eval $ac_compile) 2>&5
21598   ac_status=$?
21599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600   (exit $ac_status); } &&
21601          { ac_try='test -s conftest.$ac_objext'
21602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603   (eval $ac_try) 2>&5
21604   ac_status=$?
21605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606   (exit $ac_status); }; }; then
21607   ac_cv_cxx_have_fwd_iterator=yes
21608 else
21609   echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21611
21612 ac_cv_cxx_have_fwd_iterator=no
21613 fi
21614 rm -f conftest.$ac_objext conftest.$ac_ext
21615   ac_ext=c
21616 ac_cpp='$CPP $CPPFLAGS'
21617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21620
21621
21622 fi
21623 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21624 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21625 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21626
21627 cat >>confdefs.h <<\_ACEOF
21628 #define HAVE_FWD_ITERATOR
21629 _ACEOF
21630
21631 fi
21632
21633
21634 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21635 # for constant arguments.  Useless!
21636 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21637 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21638 if test "${ac_cv_working_alloca_h+set}" = set; then
21639   echo $ECHO_N "(cached) $ECHO_C" >&6
21640 else
21641   cat >conftest.$ac_ext <<_ACEOF
21642 #line $LINENO "configure"
21643 /* confdefs.h.  */
21644 _ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h.  */
21648 #include <alloca.h>
21649 int
21650 main ()
21651 {
21652 char *p = (char *) alloca (2 * sizeof (int));
21653   ;
21654   return 0;
21655 }
21656 _ACEOF
21657 rm -f conftest.$ac_objext conftest$ac_exeext
21658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21659   (eval $ac_link) 2>&5
21660   ac_status=$?
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); } &&
21663          { ac_try='test -s conftest$ac_exeext'
21664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665   (eval $ac_try) 2>&5
21666   ac_status=$?
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); }; }; then
21669   ac_cv_working_alloca_h=yes
21670 else
21671   echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21673
21674 ac_cv_working_alloca_h=no
21675 fi
21676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21677 fi
21678 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21679 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21680 if test $ac_cv_working_alloca_h = yes; then
21681
21682 cat >>confdefs.h <<\_ACEOF
21683 #define HAVE_ALLOCA_H 1
21684 _ACEOF
21685
21686 fi
21687
21688 echo "$as_me:$LINENO: checking for alloca" >&5
21689 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21690 if test "${ac_cv_func_alloca_works+set}" = set; then
21691   echo $ECHO_N "(cached) $ECHO_C" >&6
21692 else
21693   cat >conftest.$ac_ext <<_ACEOF
21694 #line $LINENO "configure"
21695 /* confdefs.h.  */
21696 _ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h.  */
21700 #ifdef __GNUC__
21701 # define alloca __builtin_alloca
21702 #else
21703 # ifdef _MSC_VER
21704 #  include <malloc.h>
21705 #  define alloca _alloca
21706 # else
21707 #  if HAVE_ALLOCA_H
21708 #   include <alloca.h>
21709 #  else
21710 #   ifdef _AIX
21711  #pragma alloca
21712 #   else
21713 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21714 char *alloca ();
21715 #    endif
21716 #   endif
21717 #  endif
21718 # endif
21719 #endif
21720
21721 int
21722 main ()
21723 {
21724 char *p = (char *) alloca (1);
21725   ;
21726   return 0;
21727 }
21728 _ACEOF
21729 rm -f conftest.$ac_objext conftest$ac_exeext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21731   (eval $ac_link) 2>&5
21732   ac_status=$?
21733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734   (exit $ac_status); } &&
21735          { ac_try='test -s conftest$ac_exeext'
21736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21737   (eval $ac_try) 2>&5
21738   ac_status=$?
21739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740   (exit $ac_status); }; }; then
21741   ac_cv_func_alloca_works=yes
21742 else
21743   echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21745
21746 ac_cv_func_alloca_works=no
21747 fi
21748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21749 fi
21750 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21751 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21752
21753 if test $ac_cv_func_alloca_works = yes; then
21754
21755 cat >>confdefs.h <<\_ACEOF
21756 #define HAVE_ALLOCA 1
21757 _ACEOF
21758
21759 else
21760   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21761 # that cause trouble.  Some versions do not even contain alloca or
21762 # contain a buggy version.  If you still want to use their alloca,
21763 # use ar to extract alloca.o from them instead of compiling alloca.c.
21764
21765 ALLOCA=alloca.$ac_objext
21766
21767 cat >>confdefs.h <<\_ACEOF
21768 #define C_ALLOCA 1
21769 _ACEOF
21770
21771
21772 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21773 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21774 if test "${ac_cv_os_cray+set}" = set; then
21775   echo $ECHO_N "(cached) $ECHO_C" >&6
21776 else
21777   cat >conftest.$ac_ext <<_ACEOF
21778 #line $LINENO "configure"
21779 /* confdefs.h.  */
21780 _ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h.  */
21784 #if defined(CRAY) && ! defined(CRAY2)
21785 webecray
21786 #else
21787 wenotbecray
21788 #endif
21789
21790 _ACEOF
21791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21792   $EGREP "webecray" >/dev/null 2>&1; then
21793   ac_cv_os_cray=yes
21794 else
21795   ac_cv_os_cray=no
21796 fi
21797 rm -f conftest*
21798
21799 fi
21800 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21801 echo "${ECHO_T}$ac_cv_os_cray" >&6
21802 if test $ac_cv_os_cray = yes; then
21803   for ac_func in _getb67 GETB67 getb67; do
21804     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21805 echo "$as_me:$LINENO: checking for $ac_func" >&5
21806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21807 if eval "test \"\${$as_ac_var+set}\" = set"; then
21808   echo $ECHO_N "(cached) $ECHO_C" >&6
21809 else
21810   cat >conftest.$ac_ext <<_ACEOF
21811 #line $LINENO "configure"
21812 /* confdefs.h.  */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h.  */
21817 /* System header to define __stub macros and hopefully few prototypes,
21818     which can conflict with char $ac_func (); below.
21819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21820     <limits.h> exists even on freestanding compilers.  */
21821 #ifdef __STDC__
21822 # include <limits.h>
21823 #else
21824 # include <assert.h>
21825 #endif
21826 /* Override any gcc2 internal prototype to avoid an error.  */
21827 #ifdef __cplusplus
21828 extern "C"
21829 {
21830 #endif
21831 /* We use char because int might match the return type of a gcc2
21832    builtin and then its argument prototype would still apply.  */
21833 char $ac_func ();
21834 /* The GNU C library defines this for functions which it implements
21835     to always fail with ENOSYS.  Some functions are actually named
21836     something starting with __ and the normal name is an alias.  */
21837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21838 choke me
21839 #else
21840 char (*f) () = $ac_func;
21841 #endif
21842 #ifdef __cplusplus
21843 }
21844 #endif
21845
21846 int
21847 main ()
21848 {
21849 return f != $ac_func;
21850   ;
21851   return 0;
21852 }
21853 _ACEOF
21854 rm -f conftest.$ac_objext conftest$ac_exeext
21855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21856   (eval $ac_link) 2>&5
21857   ac_status=$?
21858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859   (exit $ac_status); } &&
21860          { ac_try='test -s conftest$ac_exeext'
21861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862   (eval $ac_try) 2>&5
21863   ac_status=$?
21864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865   (exit $ac_status); }; }; then
21866   eval "$as_ac_var=yes"
21867 else
21868   echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21870
21871 eval "$as_ac_var=no"
21872 fi
21873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21874 fi
21875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21877 if test `eval echo '${'$as_ac_var'}'` = yes; then
21878
21879 cat >>confdefs.h <<_ACEOF
21880 #define CRAY_STACKSEG_END $ac_func
21881 _ACEOF
21882
21883     break
21884 fi
21885
21886   done
21887 fi
21888
21889 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21890 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21891 if test "${ac_cv_c_stack_direction+set}" = set; then
21892   echo $ECHO_N "(cached) $ECHO_C" >&6
21893 else
21894   if test "$cross_compiling" = yes; then
21895   ac_cv_c_stack_direction=0
21896 else
21897   cat >conftest.$ac_ext <<_ACEOF
21898 #line $LINENO "configure"
21899 /* confdefs.h.  */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h.  */
21904 int
21905 find_stack_direction ()
21906 {
21907   static char *addr = 0;
21908   auto char dummy;
21909   if (addr == 0)
21910     {
21911       addr = &dummy;
21912       return find_stack_direction ();
21913     }
21914   else
21915     return (&dummy > addr) ? 1 : -1;
21916 }
21917
21918 int
21919 main ()
21920 {
21921   exit (find_stack_direction () < 0);
21922 }
21923 _ACEOF
21924 rm -f conftest$ac_exeext
21925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21926   (eval $ac_link) 2>&5
21927   ac_status=$?
21928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21931   (eval $ac_try) 2>&5
21932   ac_status=$?
21933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934   (exit $ac_status); }; }; then
21935   ac_cv_c_stack_direction=1
21936 else
21937   echo "$as_me: program exited with status $ac_status" >&5
21938 echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21940
21941 ( exit $ac_status )
21942 ac_cv_c_stack_direction=-1
21943 fi
21944 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21945 fi
21946 fi
21947 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21948 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21949
21950 cat >>confdefs.h <<_ACEOF
21951 #define STACK_DIRECTION $ac_cv_c_stack_direction
21952 _ACEOF
21953
21954
21955 fi
21956
21957 if test $ac_cv_c_compiler_gnu = yes; then
21958     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21959 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21960 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21961   echo $ECHO_N "(cached) $ECHO_C" >&6
21962 else
21963     ac_pattern="Autoconf.*'x'"
21964   cat >conftest.$ac_ext <<_ACEOF
21965 #line $LINENO "configure"
21966 /* confdefs.h.  */
21967 _ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h.  */
21971 #include <sgtty.h>
21972 Autoconf TIOCGETP
21973 _ACEOF
21974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21975   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21976   ac_cv_prog_gcc_traditional=yes
21977 else
21978   ac_cv_prog_gcc_traditional=no
21979 fi
21980 rm -f conftest*
21981
21982
21983   if test $ac_cv_prog_gcc_traditional = no; then
21984     cat >conftest.$ac_ext <<_ACEOF
21985 #line $LINENO "configure"
21986 /* confdefs.h.  */
21987 _ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h.  */
21991 #include <termio.h>
21992 Autoconf TCGETA
21993 _ACEOF
21994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21995   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21996   ac_cv_prog_gcc_traditional=yes
21997 fi
21998 rm -f conftest*
21999
22000   fi
22001 fi
22002 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22003 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
22004   if test $ac_cv_prog_gcc_traditional = yes; then
22005     CC="$CC -traditional"
22006   fi
22007 fi
22008
22009 echo "$as_me:$LINENO: checking for working memcmp" >&5
22010 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22011 if test "${ac_cv_func_memcmp_working+set}" = set; then
22012   echo $ECHO_N "(cached) $ECHO_C" >&6
22013 else
22014   if test "$cross_compiling" = yes; then
22015   ac_cv_func_memcmp_working=no
22016 else
22017   cat >conftest.$ac_ext <<_ACEOF
22018 #line $LINENO "configure"
22019 /* confdefs.h.  */
22020 _ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h.  */
22024
22025 int
22026 main ()
22027 {
22028
22029   /* Some versions of memcmp are not 8-bit clean.  */
22030   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22031   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22032     exit (1);
22033
22034   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22035      or more and with at least one buffer not starting on a 4-byte boundary.
22036      William Lewis provided this test program.   */
22037   {
22038     char foo[21];
22039     char bar[21];
22040     int i;
22041     for (i = 0; i < 4; i++)
22042       {
22043         char *a = foo + i;
22044         char *b = bar + i;
22045         strcpy (a, "--------01111111");
22046         strcpy (b, "--------10000000");
22047         if (memcmp (a, b, 16) >= 0)
22048           exit (1);
22049       }
22050     exit (0);
22051   }
22052
22053   ;
22054   return 0;
22055 }
22056 _ACEOF
22057 rm -f conftest$ac_exeext
22058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22059   (eval $ac_link) 2>&5
22060   ac_status=$?
22061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064   (eval $ac_try) 2>&5
22065   ac_status=$?
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); }; }; then
22068   ac_cv_func_memcmp_working=yes
22069 else
22070   echo "$as_me: program exited with status $ac_status" >&5
22071 echo "$as_me: failed program was:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22073
22074 ( exit $ac_status )
22075 ac_cv_func_memcmp_working=no
22076 fi
22077 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22078 fi
22079 fi
22080 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22081 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22082 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22083
22084
22085
22086 for ac_header in stdlib.h unistd.h
22087 do
22088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22090   echo "$as_me:$LINENO: checking for $ac_header" >&5
22091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22093   echo $ECHO_N "(cached) $ECHO_C" >&6
22094 fi
22095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22097 else
22098   # Is the header compilable?
22099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22101 cat >conftest.$ac_ext <<_ACEOF
22102 #line $LINENO "configure"
22103 /* confdefs.h.  */
22104 _ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h.  */
22108 $ac_includes_default
22109 #include <$ac_header>
22110 _ACEOF
22111 rm -f conftest.$ac_objext
22112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22113   (eval $ac_compile) 2>&5
22114   ac_status=$?
22115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116   (exit $ac_status); } &&
22117          { ac_try='test -s conftest.$ac_objext'
22118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119   (eval $ac_try) 2>&5
22120   ac_status=$?
22121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122   (exit $ac_status); }; }; then
22123   ac_header_compiler=yes
22124 else
22125   echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22127
22128 ac_header_compiler=no
22129 fi
22130 rm -f conftest.$ac_objext conftest.$ac_ext
22131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22132 echo "${ECHO_T}$ac_header_compiler" >&6
22133
22134 # Is the header present?
22135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22137 cat >conftest.$ac_ext <<_ACEOF
22138 #line $LINENO "configure"
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144 #include <$ac_header>
22145 _ACEOF
22146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22147   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22148   ac_status=$?
22149   grep -v '^ *+' conftest.er1 >conftest.err
22150   rm -f conftest.er1
22151   cat conftest.err >&5
22152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153   (exit $ac_status); } >/dev/null; then
22154   if test -s conftest.err; then
22155     ac_cpp_err=$ac_c_preproc_warn_flag
22156   else
22157     ac_cpp_err=
22158   fi
22159 else
22160   ac_cpp_err=yes
22161 fi
22162 if test -z "$ac_cpp_err"; then
22163   ac_header_preproc=yes
22164 else
22165   echo "$as_me: failed program was:" >&5
22166 sed 's/^/| /' conftest.$ac_ext >&5
22167
22168   ac_header_preproc=no
22169 fi
22170 rm -f conftest.err conftest.$ac_ext
22171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22172 echo "${ECHO_T}$ac_header_preproc" >&6
22173
22174 # So?  What about this header?
22175 case $ac_header_compiler:$ac_header_preproc in
22176   yes:no )
22177     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22181     (
22182       cat <<\_ASBOX
22183 ## ------------------------------------ ##
22184 ## Report this to bug-autoconf@gnu.org. ##
22185 ## ------------------------------------ ##
22186 _ASBOX
22187     ) |
22188       sed "s/^/$as_me: WARNING:     /" >&2
22189     ;;
22190   no:yes )
22191     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22193     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22197     (
22198       cat <<\_ASBOX
22199 ## ------------------------------------ ##
22200 ## Report this to bug-autoconf@gnu.org. ##
22201 ## ------------------------------------ ##
22202 _ASBOX
22203     ) |
22204       sed "s/^/$as_me: WARNING:     /" >&2
22205     ;;
22206 esac
22207 echo "$as_me:$LINENO: checking for $ac_header" >&5
22208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22210   echo $ECHO_N "(cached) $ECHO_C" >&6
22211 else
22212   eval "$as_ac_Header=$ac_header_preproc"
22213 fi
22214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22216
22217 fi
22218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22219   cat >>confdefs.h <<_ACEOF
22220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22221 _ACEOF
22222
22223 fi
22224
22225 done
22226
22227
22228 for ac_func in getpagesize
22229 do
22230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22231 echo "$as_me:$LINENO: checking for $ac_func" >&5
22232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22233 if eval "test \"\${$as_ac_var+set}\" = set"; then
22234   echo $ECHO_N "(cached) $ECHO_C" >&6
22235 else
22236   cat >conftest.$ac_ext <<_ACEOF
22237 #line $LINENO "configure"
22238 /* confdefs.h.  */
22239 _ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h.  */
22243 /* System header to define __stub macros and hopefully few prototypes,
22244     which can conflict with char $ac_func (); below.
22245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22246     <limits.h> exists even on freestanding compilers.  */
22247 #ifdef __STDC__
22248 # include <limits.h>
22249 #else
22250 # include <assert.h>
22251 #endif
22252 /* Override any gcc2 internal prototype to avoid an error.  */
22253 #ifdef __cplusplus
22254 extern "C"
22255 {
22256 #endif
22257 /* We use char because int might match the return type of a gcc2
22258    builtin and then its argument prototype would still apply.  */
22259 char $ac_func ();
22260 /* The GNU C library defines this for functions which it implements
22261     to always fail with ENOSYS.  Some functions are actually named
22262     something starting with __ and the normal name is an alias.  */
22263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22264 choke me
22265 #else
22266 char (*f) () = $ac_func;
22267 #endif
22268 #ifdef __cplusplus
22269 }
22270 #endif
22271
22272 int
22273 main ()
22274 {
22275 return f != $ac_func;
22276   ;
22277   return 0;
22278 }
22279 _ACEOF
22280 rm -f conftest.$ac_objext conftest$ac_exeext
22281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22282   (eval $ac_link) 2>&5
22283   ac_status=$?
22284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285   (exit $ac_status); } &&
22286          { ac_try='test -s conftest$ac_exeext'
22287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22288   (eval $ac_try) 2>&5
22289   ac_status=$?
22290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291   (exit $ac_status); }; }; then
22292   eval "$as_ac_var=yes"
22293 else
22294   echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22296
22297 eval "$as_ac_var=no"
22298 fi
22299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22300 fi
22301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22303 if test `eval echo '${'$as_ac_var'}'` = yes; then
22304   cat >>confdefs.h <<_ACEOF
22305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22306 _ACEOF
22307
22308 fi
22309 done
22310
22311 echo "$as_me:$LINENO: checking for working mmap" >&5
22312 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22313 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22314   echo $ECHO_N "(cached) $ECHO_C" >&6
22315 else
22316   if test "$cross_compiling" = yes; then
22317   ac_cv_func_mmap_fixed_mapped=no
22318 else
22319   cat >conftest.$ac_ext <<_ACEOF
22320 #line $LINENO "configure"
22321 /* confdefs.h.  */
22322 _ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h.  */
22326 $ac_includes_default
22327 /* malloc might have been renamed as rpl_malloc. */
22328 #undef malloc
22329
22330 /* Thanks to Mike Haertel and Jim Avera for this test.
22331    Here is a matrix of mmap possibilities:
22332         mmap private not fixed
22333         mmap private fixed at somewhere currently unmapped
22334         mmap private fixed at somewhere already mapped
22335         mmap shared not fixed
22336         mmap shared fixed at somewhere currently unmapped
22337         mmap shared fixed at somewhere already mapped
22338    For private mappings, we should verify that changes cannot be read()
22339    back from the file, nor mmap's back from the file at a different
22340    address.  (There have been systems where private was not correctly
22341    implemented like the infamous i386 svr4.0, and systems where the
22342    VM page cache was not coherent with the file system buffer cache
22343    like early versions of FreeBSD and possibly contemporary NetBSD.)
22344    For shared mappings, we should conversely verify that changes get
22345    propagated back to all the places they're supposed to be.
22346
22347    Grep wants private fixed already mapped.
22348    The main things grep needs to know about mmap are:
22349    * does it exist and is it safe to write into the mmap'd area
22350    * how to use it (BSD variants)  */
22351
22352 #include <fcntl.h>
22353 #include <sys/mman.h>
22354
22355 #if !STDC_HEADERS && !HAVE_STDLIB_H
22356 char *malloc ();
22357 #endif
22358
22359 /* This mess was copied from the GNU getpagesize.h.  */
22360 #if !HAVE_GETPAGESIZE
22361 /* Assume that all systems that can run configure have sys/param.h.  */
22362 # if !HAVE_SYS_PARAM_H
22363 #  define HAVE_SYS_PARAM_H 1
22364 # endif
22365
22366 # ifdef _SC_PAGESIZE
22367 #  define getpagesize() sysconf(_SC_PAGESIZE)
22368 # else /* no _SC_PAGESIZE */
22369 #  if HAVE_SYS_PARAM_H
22370 #   include <sys/param.h>
22371 #   ifdef EXEC_PAGESIZE
22372 #    define getpagesize() EXEC_PAGESIZE
22373 #   else /* no EXEC_PAGESIZE */
22374 #    ifdef NBPG
22375 #     define getpagesize() NBPG * CLSIZE
22376 #     ifndef CLSIZE
22377 #      define CLSIZE 1
22378 #     endif /* no CLSIZE */
22379 #    else /* no NBPG */
22380 #     ifdef NBPC
22381 #      define getpagesize() NBPC
22382 #     else /* no NBPC */
22383 #      ifdef PAGESIZE
22384 #       define getpagesize() PAGESIZE
22385 #      endif /* PAGESIZE */
22386 #     endif /* no NBPC */
22387 #    endif /* no NBPG */
22388 #   endif /* no EXEC_PAGESIZE */
22389 #  else /* no HAVE_SYS_PARAM_H */
22390 #   define getpagesize() 8192   /* punt totally */
22391 #  endif /* no HAVE_SYS_PARAM_H */
22392 # endif /* no _SC_PAGESIZE */
22393
22394 #endif /* no HAVE_GETPAGESIZE */
22395
22396 int
22397 main ()
22398 {
22399   char *data, *data2, *data3;
22400   int i, pagesize;
22401   int fd;
22402
22403   pagesize = getpagesize ();
22404
22405   /* First, make a file with some known garbage in it. */
22406   data = (char *) malloc (pagesize);
22407   if (!data)
22408     exit (1);
22409   for (i = 0; i < pagesize; ++i)
22410     *(data + i) = rand ();
22411   umask (0);
22412   fd = creat ("conftest.mmap", 0600);
22413   if (fd < 0)
22414     exit (1);
22415   if (write (fd, data, pagesize) != pagesize)
22416     exit (1);
22417   close (fd);
22418
22419   /* Next, try to mmap the file at a fixed address which already has
22420      something else allocated at it.  If we can, also make sure that
22421      we see the same garbage.  */
22422   fd = open ("conftest.mmap", O_RDWR);
22423   if (fd < 0)
22424     exit (1);
22425   data2 = (char *) malloc (2 * pagesize);
22426   if (!data2)
22427     exit (1);
22428   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22429   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22430                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22431     exit (1);
22432   for (i = 0; i < pagesize; ++i)
22433     if (*(data + i) != *(data2 + i))
22434       exit (1);
22435
22436   /* Finally, make sure that changes to the mapped area do not
22437      percolate back to the file as seen by read().  (This is a bug on
22438      some variants of i386 svr4.0.)  */
22439   for (i = 0; i < pagesize; ++i)
22440     *(data2 + i) = *(data2 + i) + 1;
22441   data3 = (char *) malloc (pagesize);
22442   if (!data3)
22443     exit (1);
22444   if (read (fd, data3, pagesize) != pagesize)
22445     exit (1);
22446   for (i = 0; i < pagesize; ++i)
22447     if (*(data + i) != *(data3 + i))
22448       exit (1);
22449   close (fd);
22450   exit (0);
22451 }
22452 _ACEOF
22453 rm -f conftest$ac_exeext
22454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22455   (eval $ac_link) 2>&5
22456   ac_status=$?
22457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460   (eval $ac_try) 2>&5
22461   ac_status=$?
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); }; }; then
22464   ac_cv_func_mmap_fixed_mapped=yes
22465 else
22466   echo "$as_me: program exited with status $ac_status" >&5
22467 echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22469
22470 ( exit $ac_status )
22471 ac_cv_func_mmap_fixed_mapped=no
22472 fi
22473 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22474 fi
22475 fi
22476 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22477 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22478 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22479
22480 cat >>confdefs.h <<\_ACEOF
22481 #define HAVE_MMAP 1
22482 _ACEOF
22483
22484 fi
22485 rm -f conftest.mmap
22486
22487 echo "$as_me:$LINENO: checking for mmap of files" >&5
22488 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22489 if test "${ac_cv_func_mmap_file+set}" = set; then
22490   echo $ECHO_N "(cached) $ECHO_C" >&6
22491 else
22492
22493
22494   ac_ext=c
22495 ac_cpp='$CPP $CPPFLAGS'
22496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22499
22500   if test "$cross_compiling" = yes; then
22501   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22502 See \`config.log' for more details." >&5
22503 echo "$as_me: error: cannot run test program while cross compiling
22504 See \`config.log' for more details." >&2;}
22505    { (exit 1); exit 1; }; }
22506 else
22507   cat >conftest.$ac_ext <<_ACEOF
22508 #line $LINENO "configure"
22509 /* confdefs.h.  */
22510 _ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h.  */
22514
22515 #ifdef HAVE_SYS_TYPES_H
22516 #include <sys/types.h>
22517 #endif
22518
22519 #ifdef HAVE_SYS_MMAN_H
22520 #include <sys/mman.h>
22521 #endif
22522
22523 #ifdef HAVE_FCNTL_H
22524 #include <fcntl.h>
22525 #endif
22526
22527   int fd;
22528   int main () {
22529   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22530 _ACEOF
22531 rm -f conftest$ac_exeext
22532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22533   (eval $ac_link) 2>&5
22534   ac_status=$?
22535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22538   (eval $ac_try) 2>&5
22539   ac_status=$?
22540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541   (exit $ac_status); }; }; then
22542   ac_cv_func_mmap_file=yes
22543 else
22544   echo "$as_me: program exited with status $ac_status" >&5
22545 echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548 ( exit $ac_status )
22549 ac_cv_func_mmap_file=no
22550 fi
22551 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22552 fi
22553   ac_ext=c
22554 ac_cpp='$CPP $CPPFLAGS'
22555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22558
22559
22560 fi
22561 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22562 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22563 if test "$ac_cv_func_mmap_file" = yes; then
22564
22565 cat >>confdefs.h <<\_ACEOF
22566 #define HAVE_MMAP_FILE
22567 _ACEOF
22568
22569    MMAP_FILE=yes
22570
22571 fi
22572
22573 if test ${ac_cv_func_mmap_file} = "no"
22574 then
22575         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22576 echo "$as_me: error: mmap() of files required but not found" >&2;}
22577    { (exit 1); exit 1; }; }
22578 fi
22579 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22580 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22581 if test "${ac_cv_header_mmap_anon+set}" = set; then
22582   echo $ECHO_N "(cached) $ECHO_C" >&6
22583 else
22584
22585
22586   ac_ext=c
22587 ac_cpp='$CPP $CPPFLAGS'
22588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22591
22592   cat >conftest.$ac_ext <<_ACEOF
22593 #line $LINENO "configure"
22594 /* confdefs.h.  */
22595 _ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h.  */
22599 #include <sys/mman.h>
22600   #include <unistd.h>
22601   #include <fcntl.h>
22602 int
22603 main ()
22604 {
22605 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext
22611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22612   (eval $ac_compile) 2>&5
22613   ac_status=$?
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); } &&
22616          { ac_try='test -s conftest.$ac_objext'
22617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618   (eval $ac_try) 2>&5
22619   ac_status=$?
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); }; }; then
22622   ac_cv_header_mmap_anon=yes
22623 else
22624   echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22626
22627 ac_cv_header_mmap_anon=no
22628 fi
22629 rm -f conftest.$ac_objext conftest.$ac_ext
22630   ac_ext=c
22631 ac_cpp='$CPP $CPPFLAGS'
22632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22635
22636
22637 fi
22638 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22639 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22640 if test "$ac_cv_header_mmap_anon" = yes; then
22641
22642 cat >>confdefs.h <<\_ACEOF
22643 #define HAVE_MMAP_ANONYMOUS
22644 _ACEOF
22645
22646 fi
22647
22648 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22649 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22650 if test "${ac_cv_type_signal+set}" = set; then
22651   echo $ECHO_N "(cached) $ECHO_C" >&6
22652 else
22653   cat >conftest.$ac_ext <<_ACEOF
22654 #line $LINENO "configure"
22655 /* confdefs.h.  */
22656 _ACEOF
22657 cat confdefs.h >>conftest.$ac_ext
22658 cat >>conftest.$ac_ext <<_ACEOF
22659 /* end confdefs.h.  */
22660 #include <sys/types.h>
22661 #include <signal.h>
22662 #ifdef signal
22663 # undef signal
22664 #endif
22665 #ifdef __cplusplus
22666 extern "C" void (*signal (int, void (*)(int)))(int);
22667 #else
22668 void (*signal ()) ();
22669 #endif
22670
22671 int
22672 main ()
22673 {
22674 int i;
22675   ;
22676   return 0;
22677 }
22678 _ACEOF
22679 rm -f conftest.$ac_objext
22680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22681   (eval $ac_compile) 2>&5
22682   ac_status=$?
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); } &&
22685          { ac_try='test -s conftest.$ac_objext'
22686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22687   (eval $ac_try) 2>&5
22688   ac_status=$?
22689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690   (exit $ac_status); }; }; then
22691   ac_cv_type_signal=void
22692 else
22693   echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22695
22696 ac_cv_type_signal=int
22697 fi
22698 rm -f conftest.$ac_objext conftest.$ac_ext
22699 fi
22700 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22701 echo "${ECHO_T}$ac_cv_type_signal" >&6
22702
22703 cat >>confdefs.h <<_ACEOF
22704 #define RETSIGTYPE $ac_cv_type_signal
22705 _ACEOF
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22720 do
22721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22722 echo "$as_me:$LINENO: checking for $ac_func" >&5
22723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22724 if eval "test \"\${$as_ac_var+set}\" = set"; then
22725   echo $ECHO_N "(cached) $ECHO_C" >&6
22726 else
22727   cat >conftest.$ac_ext <<_ACEOF
22728 #line $LINENO "configure"
22729 /* confdefs.h.  */
22730 _ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h.  */
22734 /* System header to define __stub macros and hopefully few prototypes,
22735     which can conflict with char $ac_func (); below.
22736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22737     <limits.h> exists even on freestanding compilers.  */
22738 #ifdef __STDC__
22739 # include <limits.h>
22740 #else
22741 # include <assert.h>
22742 #endif
22743 /* Override any gcc2 internal prototype to avoid an error.  */
22744 #ifdef __cplusplus
22745 extern "C"
22746 {
22747 #endif
22748 /* We use char because int might match the return type of a gcc2
22749    builtin and then its argument prototype would still apply.  */
22750 char $ac_func ();
22751 /* The GNU C library defines this for functions which it implements
22752     to always fail with ENOSYS.  Some functions are actually named
22753     something starting with __ and the normal name is an alias.  */
22754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22755 choke me
22756 #else
22757 char (*f) () = $ac_func;
22758 #endif
22759 #ifdef __cplusplus
22760 }
22761 #endif
22762
22763 int
22764 main ()
22765 {
22766 return f != $ac_func;
22767   ;
22768   return 0;
22769 }
22770 _ACEOF
22771 rm -f conftest.$ac_objext conftest$ac_exeext
22772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22773   (eval $ac_link) 2>&5
22774   ac_status=$?
22775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776   (exit $ac_status); } &&
22777          { ac_try='test -s conftest$ac_exeext'
22778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779   (eval $ac_try) 2>&5
22780   ac_status=$?
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); }; }; then
22783   eval "$as_ac_var=yes"
22784 else
22785   echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22787
22788 eval "$as_ac_var=no"
22789 fi
22790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22791 fi
22792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22794 if test `eval echo '${'$as_ac_var'}'` = yes; then
22795   cat >>confdefs.h <<_ACEOF
22796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22797 _ACEOF
22798
22799 fi
22800 done
22801
22802
22803
22804 echo "$as_me:$LINENO: checking for mmap" >&5
22805 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22806 if test "${ac_cv_func_mmap+set}" = set; then
22807   echo $ECHO_N "(cached) $ECHO_C" >&6
22808 else
22809   cat >conftest.$ac_ext <<_ACEOF
22810 #line $LINENO "configure"
22811 /* confdefs.h.  */
22812 _ACEOF
22813 cat confdefs.h >>conftest.$ac_ext
22814 cat >>conftest.$ac_ext <<_ACEOF
22815 /* end confdefs.h.  */
22816 /* System header to define __stub macros and hopefully few prototypes,
22817     which can conflict with char mmap (); below.
22818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22819     <limits.h> exists even on freestanding compilers.  */
22820 #ifdef __STDC__
22821 # include <limits.h>
22822 #else
22823 # include <assert.h>
22824 #endif
22825 /* Override any gcc2 internal prototype to avoid an error.  */
22826 #ifdef __cplusplus
22827 extern "C"
22828 {
22829 #endif
22830 /* We use char because int might match the return type of a gcc2
22831    builtin and then its argument prototype would still apply.  */
22832 char mmap ();
22833 /* The GNU C library defines this for functions which it implements
22834     to always fail with ENOSYS.  Some functions are actually named
22835     something starting with __ and the normal name is an alias.  */
22836 #if defined (__stub_mmap) || defined (__stub___mmap)
22837 choke me
22838 #else
22839 char (*f) () = mmap;
22840 #endif
22841 #ifdef __cplusplus
22842 }
22843 #endif
22844
22845 int
22846 main ()
22847 {
22848 return f != mmap;
22849   ;
22850   return 0;
22851 }
22852 _ACEOF
22853 rm -f conftest.$ac_objext conftest$ac_exeext
22854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22855   (eval $ac_link) 2>&5
22856   ac_status=$?
22857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858   (exit $ac_status); } &&
22859          { ac_try='test -s conftest$ac_exeext'
22860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22861   (eval $ac_try) 2>&5
22862   ac_status=$?
22863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864   (exit $ac_status); }; }; then
22865   ac_cv_func_mmap=yes
22866 else
22867   echo "$as_me: failed program was:" >&5
22868 sed 's/^/| /' conftest.$ac_ext >&5
22869
22870 ac_cv_func_mmap=no
22871 fi
22872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22873 fi
22874 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22875 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22876 if test $ac_cv_func_mmap = yes; then
22877   :
22878 else
22879   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22880 echo "$as_me: error: Function mmap() required but not found" >&2;}
22881    { (exit 1); exit 1; }; }
22882 fi
22883
22884 echo "$as_me:$LINENO: checking for mprotect" >&5
22885 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22886 if test "${ac_cv_func_mprotect+set}" = set; then
22887   echo $ECHO_N "(cached) $ECHO_C" >&6
22888 else
22889   cat >conftest.$ac_ext <<_ACEOF
22890 #line $LINENO "configure"
22891 /* confdefs.h.  */
22892 _ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h.  */
22896 /* System header to define __stub macros and hopefully few prototypes,
22897     which can conflict with char mprotect (); below.
22898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22899     <limits.h> exists even on freestanding compilers.  */
22900 #ifdef __STDC__
22901 # include <limits.h>
22902 #else
22903 # include <assert.h>
22904 #endif
22905 /* Override any gcc2 internal prototype to avoid an error.  */
22906 #ifdef __cplusplus
22907 extern "C"
22908 {
22909 #endif
22910 /* We use char because int might match the return type of a gcc2
22911    builtin and then its argument prototype would still apply.  */
22912 char mprotect ();
22913 /* The GNU C library defines this for functions which it implements
22914     to always fail with ENOSYS.  Some functions are actually named
22915     something starting with __ and the normal name is an alias.  */
22916 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22917 choke me
22918 #else
22919 char (*f) () = mprotect;
22920 #endif
22921 #ifdef __cplusplus
22922 }
22923 #endif
22924
22925 int
22926 main ()
22927 {
22928 return f != mprotect;
22929   ;
22930   return 0;
22931 }
22932 _ACEOF
22933 rm -f conftest.$ac_objext conftest$ac_exeext
22934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22935   (eval $ac_link) 2>&5
22936   ac_status=$?
22937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938   (exit $ac_status); } &&
22939          { ac_try='test -s conftest$ac_exeext'
22940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941   (eval $ac_try) 2>&5
22942   ac_status=$?
22943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944   (exit $ac_status); }; }; then
22945   ac_cv_func_mprotect=yes
22946 else
22947   echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22949
22950 ac_cv_func_mprotect=no
22951 fi
22952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22953 fi
22954 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22955 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22956 if test $ac_cv_func_mprotect = yes; then
22957   :
22958 else
22959   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22960 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22961    { (exit 1); exit 1; }; }
22962 fi
22963
22964
22965
22966 # Check whether --enable-purify or --disable-purify was given.
22967 if test "${enable_purify+set}" = set; then
22968   enableval="$enable_purify"
22969
22970 else
22971   enableval="no"
22972 fi;
22973 if test ${enableval} = "no"
22974 then
22975         ENABLE_PURIFY=
22976
22977 else
22978         ENABLE_PURIFY=ENABLE_PURIFY=1
22979
22980 fi
22981
22982 # Check whether --enable-optimized or --disable-optimized was given.
22983 if test "${enable_optimized+set}" = set; then
22984   enableval="$enable_optimized"
22985
22986 else
22987   enableval=no
22988 fi;
22989 if test ${enableval} = "no"
22990 then
22991         ENABLE_OPTIMIZED=
22992
22993 else
22994         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22995
22996 fi
22997
22998 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22999 if test "${enable_spec2000+set}" = set; then
23000   enableval="$enable_spec2000"
23001
23002 else
23003   enableval=no
23004 fi;
23005 if test ${enableval} = "no"
23006 then
23007         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
23008         then
23009                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23010
23011                 USE_SPEC=USE_SPEC=1
23012
23013         else
23014                 USE_SPEC=
23015
23016
23017         fi
23018 else
23019         if test ${enableval} = ""
23020         then
23021                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23022
23023         else
23024                 SPEC_ROOT=${enableval}
23025
23026         fi
23027         USE_SPEC=USE_SPEC=1
23028
23029 fi
23030
23031 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23032 if test "${enable_precompiled_bytecode+set}" = set; then
23033   enableval="$enable_precompiled_bytecode"
23034
23035 else
23036   enableval=no
23037 fi;
23038 if test ${enableval} = "no"
23039 then
23040         UPB=
23041
23042 else
23043         UPB=USE_PRECOMPILED_BYTECODE=1
23044
23045 fi
23046
23047
23048 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23049 if test "${enable_llc_diffs+set}" = set; then
23050   enableval="$enable_llc_diffs"
23051
23052 else
23053   enableval=yes
23054 fi;
23055 if test ${enableval} = "no"
23056 then
23057         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23058
23059 else
23060         DISABLE_LLC_DIFFS=
23061
23062 fi
23063
23064 # Check whether --enable-jit or --disable-jit was given.
23065 if test "${enable_jit+set}" = set; then
23066   enableval="$enable_jit"
23067
23068 else
23069   enableval=default
23070 fi;
23071
23072 if test ${enableval} = "no"
23073 then
23074         JIT=
23075
23076 else
23077         case $target in
23078                 *i*86*)
23079                         JIT=TARGET_HAS_JIT=1
23080
23081                         ;;
23082                 *sparc*)
23083                         JIT=TARGET_HAS_JIT=1
23084
23085                         ;;
23086                 *)
23087                         JIT=
23088
23089                         ;;
23090         esac
23091 fi
23092
23093
23094
23095 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23096 if test "${with_llvmgccdir+set}" = set; then
23097   withval="$with_llvmgccdir"
23098   LLVMGCCDIR=$withval
23099
23100 fi;
23101
23102
23103 # Check whether --with-bcrepos or --without-bcrepos was given.
23104 if test "${with_bcrepos+set}" = set; then
23105   withval="$with_bcrepos"
23106   BCR=$withval
23107
23108 else
23109   BCR=/home/vadve/lattner/LLVMPrograms
23110
23111 fi;
23112
23113
23114 # Check whether --with-papi or --without-papi was given.
23115 if test "${with_papi+set}" = set; then
23116   withval="$with_papi"
23117   PAPIDIR=$withval
23118
23119 else
23120   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23121
23122 fi;
23123
23124
23125 # Check whether --with-purify or --without-purify was given.
23126 if test "${with_purify+set}" = set; then
23127   withval="$with_purify"
23128   PURIFY=$withval
23129
23130 fi;
23131
23132
23133           ac_config_files="$ac_config_files Makefile.config"
23134 cat >confcache <<\_ACEOF
23135 # This file is a shell script that caches the results of configure
23136 # tests run on this system so they can be shared between configure
23137 # scripts and configure runs, see configure's option --config-cache.
23138 # It is not useful on other systems.  If it contains results you don't
23139 # want to keep, you may remove or edit it.
23140 #
23141 # config.status only pays attention to the cache file if you give it
23142 # the --recheck option to rerun configure.
23143 #
23144 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23145 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23146 # following values.
23147
23148 _ACEOF
23149
23150 # The following way of writing the cache mishandles newlines in values,
23151 # but we know of no workaround that is simple, portable, and efficient.
23152 # So, don't put newlines in cache variables' values.
23153 # Ultrix sh set writes to stderr and can't be redirected directly,
23154 # and sets the high bit in the cache file unless we assign to the vars.
23155 {
23156   (set) 2>&1 |
23157     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23158     *ac_space=\ *)
23159       # `set' does not quote correctly, so add quotes (double-quote
23160       # substitution turns \\\\ into \\, and sed turns \\ into \).
23161       sed -n \
23162         "s/'/'\\\\''/g;
23163           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23164       ;;
23165     *)
23166       # `set' quotes correctly as required by POSIX, so do not add quotes.
23167       sed -n \
23168         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23169       ;;
23170     esac;
23171 } |
23172   sed '
23173      t clear
23174      : clear
23175      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23176      t end
23177      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23178      : end' >>confcache
23179 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23180   if test -w $cache_file; then
23181     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23182     cat confcache >$cache_file
23183   else
23184     echo "not updating unwritable cache $cache_file"
23185   fi
23186 fi
23187 rm -f confcache
23188
23189 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23190 # Let make expand exec_prefix.
23191 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23192
23193 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23194 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23195 # trailing colons and then remove the whole line if VPATH becomes empty
23196 # (actually we leave an empty line to preserve line numbers).
23197 if test "x$srcdir" = x.; then
23198   ac_vpsub='/^[         ]*VPATH[        ]*=/{
23199 s/:*\$(srcdir):*/:/;
23200 s/:*\${srcdir}:*/:/;
23201 s/:*@srcdir@:*/:/;
23202 s/^\([^=]*=[    ]*\):*/\1/;
23203 s/:*$//;
23204 s/^[^=]*=[      ]*$//;
23205 }'
23206 fi
23207
23208 DEFS=-DHAVE_CONFIG_H
23209
23210 ac_libobjs=
23211 ac_ltlibobjs=
23212 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23213   # 1. Remove the extension, and $U if already installed.
23214   ac_i=`echo "$ac_i" |
23215          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23216   # 2. Add them.
23217   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23218   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23219 done
23220 LIBOBJS=$ac_libobjs
23221
23222 LTLIBOBJS=$ac_ltlibobjs
23223
23224
23225
23226 : ${CONFIG_STATUS=./config.status}
23227 ac_clean_files_save=$ac_clean_files
23228 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23229 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23230 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23231 cat >$CONFIG_STATUS <<_ACEOF
23232 #! $SHELL
23233 # Generated by $as_me.
23234 # Run this file to recreate the current configuration.
23235 # Compiler output produced by configure, useful for debugging
23236 # configure, is in config.log if it exists.
23237
23238 debug=false
23239 ac_cs_recheck=false
23240 ac_cs_silent=false
23241 SHELL=\${CONFIG_SHELL-$SHELL}
23242 _ACEOF
23243
23244 cat >>$CONFIG_STATUS <<\_ACEOF
23245 ## --------------------- ##
23246 ## M4sh Initialization.  ##
23247 ## --------------------- ##
23248
23249 # Be Bourne compatible
23250 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23251   emulate sh
23252   NULLCMD=:
23253   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23254   # is contrary to our usage.  Disable this feature.
23255   alias -g '${1+"$@"}'='"$@"'
23256 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23257   set -o posix
23258 fi
23259
23260 # Support unset when possible.
23261 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23262   as_unset=unset
23263 else
23264   as_unset=false
23265 fi
23266
23267
23268 # Work around bugs in pre-3.0 UWIN ksh.
23269 $as_unset ENV MAIL MAILPATH
23270 PS1='$ '
23271 PS2='> '
23272 PS4='+ '
23273
23274 # NLS nuisances.
23275 for as_var in \
23276   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23277   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23278   LC_TELEPHONE LC_TIME
23279 do
23280   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23281     eval $as_var=C; export $as_var
23282   else
23283     $as_unset $as_var
23284   fi
23285 done
23286
23287 # Required to use basename.
23288 if expr a : '\(a\)' >/dev/null 2>&1; then
23289   as_expr=expr
23290 else
23291   as_expr=false
23292 fi
23293
23294 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23295   as_basename=basename
23296 else
23297   as_basename=false
23298 fi
23299
23300
23301 # Name of the executable.
23302 as_me=`$as_basename "$0" ||
23303 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23304          X"$0" : 'X\(//\)$' \| \
23305          X"$0" : 'X\(/\)$' \| \
23306          .     : '\(.\)' 2>/dev/null ||
23307 echo X/"$0" |
23308     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23309           /^X\/\(\/\/\)$/{ s//\1/; q; }
23310           /^X\/\(\/\).*/{ s//\1/; q; }
23311           s/.*/./; q'`
23312
23313
23314 # PATH needs CR, and LINENO needs CR and PATH.
23315 # Avoid depending upon Character Ranges.
23316 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23317 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23318 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23319 as_cr_digits='0123456789'
23320 as_cr_alnum=$as_cr_Letters$as_cr_digits
23321
23322 # The user is always right.
23323 if test "${PATH_SEPARATOR+set}" != set; then
23324   echo "#! /bin/sh" >conf$$.sh
23325   echo  "exit 0"   >>conf$$.sh
23326   chmod +x conf$$.sh
23327   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23328     PATH_SEPARATOR=';'
23329   else
23330     PATH_SEPARATOR=:
23331   fi
23332   rm -f conf$$.sh
23333 fi
23334
23335
23336   as_lineno_1=$LINENO
23337   as_lineno_2=$LINENO
23338   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23339   test "x$as_lineno_1" != "x$as_lineno_2" &&
23340   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23341   # Find who we are.  Look in the path if we contain no path at all
23342   # relative or not.
23343   case $0 in
23344     *[\\/]* ) as_myself=$0 ;;
23345     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23346 for as_dir in $PATH
23347 do
23348   IFS=$as_save_IFS
23349   test -z "$as_dir" && as_dir=.
23350   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23351 done
23352
23353        ;;
23354   esac
23355   # We did not find ourselves, most probably we were run as `sh COMMAND'
23356   # in which case we are not to be found in the path.
23357   if test "x$as_myself" = x; then
23358     as_myself=$0
23359   fi
23360   if test ! -f "$as_myself"; then
23361     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23362 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23363    { (exit 1); exit 1; }; }
23364   fi
23365   case $CONFIG_SHELL in
23366   '')
23367     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23368 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23369 do
23370   IFS=$as_save_IFS
23371   test -z "$as_dir" && as_dir=.
23372   for as_base in sh bash ksh sh5; do
23373          case $as_dir in
23374          /*)
23375            if ("$as_dir/$as_base" -c '
23376   as_lineno_1=$LINENO
23377   as_lineno_2=$LINENO
23378   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23379   test "x$as_lineno_1" != "x$as_lineno_2" &&
23380   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23381              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23382              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23383              CONFIG_SHELL=$as_dir/$as_base
23384              export CONFIG_SHELL
23385              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23386            fi;;
23387          esac
23388        done
23389 done
23390 ;;
23391   esac
23392
23393   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23394   # uniformly replaced by the line number.  The first 'sed' inserts a
23395   # line-number line before each line; the second 'sed' does the real
23396   # work.  The second script uses 'N' to pair each line-number line
23397   # with the numbered line, and appends trailing '-' during
23398   # substitution so that $LINENO is not a special case at line end.
23399   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23400   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23401   sed '=' <$as_myself |
23402     sed '
23403       N
23404       s,$,-,
23405       : loop
23406       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23407       t loop
23408       s,-$,,
23409       s,^['$as_cr_digits']*\n,,
23410     ' >$as_me.lineno &&
23411   chmod +x $as_me.lineno ||
23412     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23413 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23414    { (exit 1); exit 1; }; }
23415
23416   # Don't try to exec as it changes $[0], causing all sort of problems
23417   # (the dirname of $[0] is not the place where we might find the
23418   # original and so on.  Autoconf is especially sensible to this).
23419   . ./$as_me.lineno
23420   # Exit status is that of the last command.
23421   exit
23422 }
23423
23424
23425 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23426   *c*,-n*) ECHO_N= ECHO_C='
23427 ' ECHO_T='      ' ;;
23428   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23429   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23430 esac
23431
23432 if expr a : '\(a\)' >/dev/null 2>&1; then
23433   as_expr=expr
23434 else
23435   as_expr=false
23436 fi
23437
23438 rm -f conf$$ conf$$.exe conf$$.file
23439 echo >conf$$.file
23440 if ln -s conf$$.file conf$$ 2>/dev/null; then
23441   # We could just check for DJGPP; but this test a) works b) is more generic
23442   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23443   if test -f conf$$.exe; then
23444     # Don't use ln at all; we don't have any links
23445     as_ln_s='cp -p'
23446   else
23447     as_ln_s='ln -s'
23448   fi
23449 elif ln conf$$.file conf$$ 2>/dev/null; then
23450   as_ln_s=ln
23451 else
23452   as_ln_s='cp -p'
23453 fi
23454 rm -f conf$$ conf$$.exe conf$$.file
23455
23456 if mkdir -p . 2>/dev/null; then
23457   as_mkdir_p=:
23458 else
23459   as_mkdir_p=false
23460 fi
23461
23462 as_executable_p="test -f"
23463
23464 # Sed expression to map a string onto a valid CPP name.
23465 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23466
23467 # Sed expression to map a string onto a valid variable name.
23468 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23469
23470
23471 # IFS
23472 # We need space, tab and new line, in precisely that order.
23473 as_nl='
23474 '
23475 IFS="   $as_nl"
23476
23477 # CDPATH.
23478 $as_unset CDPATH
23479
23480 exec 6>&1
23481
23482 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23483 # report actual input values of CONFIG_FILES etc. instead of their
23484 # values after options handling.  Logging --version etc. is OK.
23485 exec 5>>config.log
23486 {
23487   echo
23488   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23489 ## Running $as_me. ##
23490 _ASBOX
23491 } >&5
23492 cat >&5 <<_CSEOF
23493
23494 This file was extended by [LLVM] $as_me [1.0], which was
23495 generated by GNU Autoconf 2.57.  Invocation command line was
23496
23497   CONFIG_FILES    = $CONFIG_FILES
23498   CONFIG_HEADERS  = $CONFIG_HEADERS
23499   CONFIG_LINKS    = $CONFIG_LINKS
23500   CONFIG_COMMANDS = $CONFIG_COMMANDS
23501   $ $0 $@
23502
23503 _CSEOF
23504 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23505 echo >&5
23506 _ACEOF
23507
23508 # Files that config.status was made for.
23509 if test -n "$ac_config_files"; then
23510   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23511 fi
23512
23513 if test -n "$ac_config_headers"; then
23514   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23515 fi
23516
23517 if test -n "$ac_config_links"; then
23518   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23519 fi
23520
23521 if test -n "$ac_config_commands"; then
23522   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23523 fi
23524
23525 cat >>$CONFIG_STATUS <<\_ACEOF
23526
23527 ac_cs_usage="\
23528 \`$as_me' instantiates files from templates according to the
23529 current configuration.
23530
23531 Usage: $0 [OPTIONS] [FILE]...
23532
23533   -h, --help       print this help, then exit
23534   -V, --version    print version number, then exit
23535   -q, --quiet      do not print progress messages
23536   -d, --debug      don't remove temporary files
23537       --recheck    update $as_me by reconfiguring in the same conditions
23538   --file=FILE[:TEMPLATE]
23539                    instantiate the configuration file FILE
23540   --header=FILE[:TEMPLATE]
23541                    instantiate the configuration header FILE
23542
23543 Configuration files:
23544 $config_files
23545
23546 Configuration headers:
23547 $config_headers
23548
23549 Configuration commands:
23550 $config_commands
23551
23552 Report bugs to <bug-autoconf@gnu.org>."
23553 _ACEOF
23554
23555 cat >>$CONFIG_STATUS <<_ACEOF
23556 ac_cs_version="\\
23557 [LLVM] config.status [1.0]
23558 configured by $0, generated by GNU Autoconf 2.57,
23559   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23560
23561 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23562 Free Software Foundation, Inc.
23563 This config.status script is free software; the Free Software Foundation
23564 gives unlimited permission to copy, distribute and modify it."
23565 srcdir=$srcdir
23566 INSTALL="$INSTALL"
23567 _ACEOF
23568
23569 cat >>$CONFIG_STATUS <<\_ACEOF
23570 # If no file are specified by the user, then we need to provide default
23571 # value.  By we need to know if files were specified by the user.
23572 ac_need_defaults=:
23573 while test $# != 0
23574 do
23575   case $1 in
23576   --*=*)
23577     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23578     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23579     ac_shift=:
23580     ;;
23581   -*)
23582     ac_option=$1
23583     ac_optarg=$2
23584     ac_shift=shift
23585     ;;
23586   *) # This is not an option, so the user has probably given explicit
23587      # arguments.
23588      ac_option=$1
23589      ac_need_defaults=false;;
23590   esac
23591
23592   case $ac_option in
23593   # Handling of the options.
23594 _ACEOF
23595 cat >>$CONFIG_STATUS <<\_ACEOF
23596   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23597     ac_cs_recheck=: ;;
23598   --version | --vers* | -V )
23599     echo "$ac_cs_version"; exit 0 ;;
23600   --he | --h)
23601     # Conflict between --help and --header
23602     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23603 Try \`$0 --help' for more information." >&5
23604 echo "$as_me: error: ambiguous option: $1
23605 Try \`$0 --help' for more information." >&2;}
23606    { (exit 1); exit 1; }; };;
23607   --help | --hel | -h )
23608     echo "$ac_cs_usage"; exit 0 ;;
23609   --debug | --d* | -d )
23610     debug=: ;;
23611   --file | --fil | --fi | --f )
23612     $ac_shift
23613     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23614     ac_need_defaults=false;;
23615   --header | --heade | --head | --hea )
23616     $ac_shift
23617     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23618     ac_need_defaults=false;;
23619   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23620   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23621     ac_cs_silent=: ;;
23622
23623   # This is an error.
23624   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23625 Try \`$0 --help' for more information." >&5
23626 echo "$as_me: error: unrecognized option: $1
23627 Try \`$0 --help' for more information." >&2;}
23628    { (exit 1); exit 1; }; } ;;
23629
23630   *) ac_config_targets="$ac_config_targets $1" ;;
23631
23632   esac
23633   shift
23634 done
23635
23636 ac_configure_extra_args=
23637
23638 if $ac_cs_silent; then
23639   exec 6>/dev/null
23640   ac_configure_extra_args="$ac_configure_extra_args --silent"
23641 fi
23642
23643 _ACEOF
23644 cat >>$CONFIG_STATUS <<_ACEOF
23645 if \$ac_cs_recheck; then
23646   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23647   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23648 fi
23649
23650 _ACEOF
23651
23652 cat >>$CONFIG_STATUS <<_ACEOF
23653 #
23654 # INIT-COMMANDS section.
23655 #
23656
23657 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23658 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23659 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23660 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23661 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23662 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23663 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23664 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23665 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23666 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23667 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23668 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23669 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23670 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23671 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23672 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23673 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23674 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23675 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23676 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23677 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23678 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23679 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23680 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23681 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23682 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23683 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23684 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23685 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23686 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23687 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23688 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23689 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23690 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23691 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23692 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23693 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23694 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23695 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23696 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23697 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23698 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23699 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23700 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23701 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23702 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23703 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23704 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23705 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23706 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libprofile/Makefile`
23707 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23708 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23709 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23710 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23711 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23712 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23713 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23714 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23715 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23716 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23717 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23718 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23719 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23720 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23721 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23722 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23723 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23724 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23725 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23726 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23727 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23728 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23729 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23730 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23731 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
23732 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23733 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23734 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23735 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23736 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23737 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23738 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23739 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23740 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23741 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23742 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23743 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
23744 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23745 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23746 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23747 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23748 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23749 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23750 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23751 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23752 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23753 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23754 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23755 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23756 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23757 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/Makefile`
23758 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile`
23759 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23760 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23761 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23762 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23763 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23764 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23765 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23766 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23767 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23768 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23769 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23770 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23771 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23772 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23773 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23774 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23775 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23776 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23777 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23778 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23779 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23780 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23781 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23782 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23783 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23784 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23785 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23786 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23787 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23788 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23789 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23790 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23791 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23792 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23793 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23794 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23795 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23796 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23797 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23798 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23799 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23800 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23801 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23802 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23803 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23804 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23805 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23806 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23807 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23808 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23809 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23810 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23811 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23812 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23813 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23814 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23815 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23816 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23817 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23818 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23819 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23820 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23821 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23822 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23823 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23824 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23825 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23826 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23827 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23828 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23829 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23830 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23831 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-nm/Makefile`
23832 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-prof/Makefile`
23833 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23834 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23835 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23836 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23837 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23838 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23839 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23840 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23841 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23842 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23843
23844 _ACEOF
23845
23846
23847
23848 cat >>$CONFIG_STATUS <<\_ACEOF
23849 for ac_config_target in $ac_config_targets
23850 do
23851   case "$ac_config_target" in
23852   # Handling of arguments.
23853   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23854   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23855   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23856   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23857   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23858   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23859   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23860   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23861   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23862   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23863   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23864   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23865   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23866   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23867   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23868   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23869   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23870   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23871   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23872   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23873   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23874   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23875   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23876   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23877   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23878   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23879   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23880   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23881   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23882   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23883   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23884   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23885   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23886   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23887   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23888   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23889   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23890   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23891   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23892   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23893   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23894   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23895   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23896   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23897   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23898   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23899   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23900   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23901   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23902   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23903   "runtime/libprofile/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libprofile/Makefile" ;;
23904   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23905   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23906   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23907   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23908   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23909   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23910   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23911   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23912   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23913   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23914   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23915   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23916   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23917   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23918   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23919   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23920   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23921   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23922   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23923   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23924   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23925   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23926   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23927   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23928   "test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ;;
23929   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23930   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23931   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23932   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23933   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23934   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23935   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23936   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23937   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23938   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23939   "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
23940   "test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ;;
23941   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23942   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23943   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23944   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23945   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23946   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23947   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23948   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23949   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23950   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23951   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23952   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23953   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23954   "test/Programs/MultiSource/Benchmarks/FreeBench/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/Makefile" ;;
23955   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile" ;;
23956   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23957   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23958   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23959   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23960   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23961   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23962   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23963   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23964   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23965   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23966   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23967   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23968   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
23969   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23970   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23971   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23972   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23973   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23974   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23975   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23976   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23977   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23978   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23979   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23980   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23981   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23982   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23983   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23984   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23985   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23986   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23987   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23988   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23989   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23990   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23991   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23992   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23993   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23994   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23995   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23996   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23997   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23998   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23999   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
24000   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24001   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
24002   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
24003   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
24004   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
24005   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
24006   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
24007   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
24008   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
24009   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
24010   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
24011   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
24012   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
24013   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
24014   "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
24015   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24016   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
24017   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
24018   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
24019   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
24020   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
24021   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
24022   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
24023   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
24024   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
24025   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
24026   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
24027   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
24028   "tools/llvm-nm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-nm/Makefile" ;;
24029   "tools/llvm-prof/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-prof/Makefile" ;;
24030   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
24031   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24032   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
24033   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
24034   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
24035   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24036   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
24037   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
24038   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
24039   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
24040   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24041   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24042 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24043    { (exit 1); exit 1; }; };;
24044   esac
24045 done
24046
24047 # If the user did not use the arguments to specify the items to instantiate,
24048 # then the envvar interface is used.  Set only those that are not.
24049 # We use the long form for the default assignment because of an extremely
24050 # bizarre bug on SunOS 4.1.3.
24051 if $ac_need_defaults; then
24052   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24053   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24054   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24055 fi
24056
24057 # Have a temporary directory for convenience.  Make it in the build tree
24058 # simply because there is no reason to put it here, and in addition,
24059 # creating and moving files from /tmp can sometimes cause problems.
24060 # Create a temporary directory, and hook for its removal unless debugging.
24061 $debug ||
24062 {
24063   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24064   trap '{ (exit 1); exit 1; }' 1 2 13 15
24065 }
24066
24067 # Create a (secure) tmp directory for tmp files.
24068
24069 {
24070   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24071   test -n "$tmp" && test -d "$tmp"
24072 }  ||
24073 {
24074   tmp=./confstat$$-$RANDOM
24075   (umask 077 && mkdir $tmp)
24076 } ||
24077 {
24078    echo "$me: cannot create a temporary directory in ." >&2
24079    { (exit 1); exit 1; }
24080 }
24081
24082 _ACEOF
24083
24084 cat >>$CONFIG_STATUS <<_ACEOF
24085
24086 #
24087 # CONFIG_FILES section.
24088 #
24089
24090 # No need to generate the scripts if there are no CONFIG_FILES.
24091 # This happens for instance when ./config.status config.h
24092 if test -n "\$CONFIG_FILES"; then
24093   # Protect against being on the right side of a sed subst in config.status.
24094   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24095    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24096 s,@SHELL@,$SHELL,;t t
24097 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24098 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24099 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24100 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24101 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24102 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24103 s,@exec_prefix@,$exec_prefix,;t t
24104 s,@prefix@,$prefix,;t t
24105 s,@program_transform_name@,$program_transform_name,;t t
24106 s,@bindir@,$bindir,;t t
24107 s,@sbindir@,$sbindir,;t t
24108 s,@libexecdir@,$libexecdir,;t t
24109 s,@datadir@,$datadir,;t t
24110 s,@sysconfdir@,$sysconfdir,;t t
24111 s,@sharedstatedir@,$sharedstatedir,;t t
24112 s,@localstatedir@,$localstatedir,;t t
24113 s,@libdir@,$libdir,;t t
24114 s,@includedir@,$includedir,;t t
24115 s,@oldincludedir@,$oldincludedir,;t t
24116 s,@infodir@,$infodir,;t t
24117 s,@mandir@,$mandir,;t t
24118 s,@build_alias@,$build_alias,;t t
24119 s,@host_alias@,$host_alias,;t t
24120 s,@target_alias@,$target_alias,;t t
24121 s,@DEFS@,$DEFS,;t t
24122 s,@ECHO_C@,$ECHO_C,;t t
24123 s,@ECHO_N@,$ECHO_N,;t t
24124 s,@ECHO_T@,$ECHO_T,;t t
24125 s,@LIBS@,$LIBS,;t t
24126 s,@subdirs@,$subdirs,;t t
24127 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24128 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24129 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24130 s,@build@,$build,;t t
24131 s,@build_cpu@,$build_cpu,;t t
24132 s,@build_vendor@,$build_vendor,;t t
24133 s,@build_os@,$build_os,;t t
24134 s,@host@,$host,;t t
24135 s,@host_cpu@,$host_cpu,;t t
24136 s,@host_vendor@,$host_vendor,;t t
24137 s,@host_os@,$host_os,;t t
24138 s,@target@,$target,;t t
24139 s,@target_cpu@,$target_cpu,;t t
24140 s,@target_vendor@,$target_vendor,;t t
24141 s,@target_os@,$target_os,;t t
24142 s,@OS@,$OS,;t t
24143 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24144 s,@ARCH@,$ARCH,;t t
24145 s,@CXX@,$CXX,;t t
24146 s,@CXXFLAGS@,$CXXFLAGS,;t t
24147 s,@LDFLAGS@,$LDFLAGS,;t t
24148 s,@CPPFLAGS@,$CPPFLAGS,;t t
24149 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24150 s,@EXEEXT@,$EXEEXT,;t t
24151 s,@OBJEXT@,$OBJEXT,;t t
24152 s,@CC@,$CC,;t t
24153 s,@CFLAGS@,$CFLAGS,;t t
24154 s,@ac_ct_CC@,$ac_ct_CC,;t t
24155 s,@CPP@,$CPP,;t t
24156 s,@ifGNUmake@,$ifGNUmake,;t t
24157 s,@LEX@,$LEX,;t t
24158 s,@LEXLIB@,$LEXLIB,;t t
24159 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24160 s,@YACC@,$YACC,;t t
24161 s,@EGREP@,$EGREP,;t t
24162 s,@LN_S@,$LN_S,;t t
24163 s,@ECHO@,$ECHO,;t t
24164 s,@AR@,$AR,;t t
24165 s,@ac_ct_AR@,$ac_ct_AR,;t t
24166 s,@RANLIB@,$RANLIB,;t t
24167 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24168 s,@STRIP@,$STRIP,;t t
24169 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24170 s,@CXXCPP@,$CXXCPP,;t t
24171 s,@F77@,$F77,;t t
24172 s,@FFLAGS@,$FFLAGS,;t t
24173 s,@ac_ct_F77@,$ac_ct_F77,;t t
24174 s,@LIBTOOL@,$LIBTOOL,;t t
24175 s,@RPWD@,$RPWD,;t t
24176 s,@SED@,$SED,;t t
24177 s,@RM@,$RM,;t t
24178 s,@MKDIR@,$MKDIR,;t t
24179 s,@DATE@,$DATE,;t t
24180 s,@MV@,$MV,;t t
24181 s,@DOT@,$DOT,;t t
24182 s,@ETAGS@,$ETAGS,;t t
24183 s,@PYTHON@,$PYTHON,;t t
24184 s,@QMTEST@,$QMTEST,;t t
24185 s,@ALLOCA@,$ALLOCA,;t t
24186 s,@LIBOBJS@,$LIBOBJS,;t t
24187 s,@MMAP_FILE@,$MMAP_FILE,;t t
24188 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
24189 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24190 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
24191 s,@USE_SPEC@,$USE_SPEC,;t t
24192 s,@UPB@,$UPB,;t t
24193 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24194 s,@JIT@,$JIT,;t t
24195 s,@BCR@,$BCR,;t t
24196 s,@PAPIDIR@,$PAPIDIR,;t t
24197 s,@PURIFY@,$PURIFY,;t t
24198 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24199 CEOF
24200
24201 _ACEOF
24202
24203   cat >>$CONFIG_STATUS <<\_ACEOF
24204   # Split the substitutions into bite-sized pieces for seds with
24205   # small command number limits, like on Digital OSF/1 and HP-UX.
24206   ac_max_sed_lines=48
24207   ac_sed_frag=1 # Number of current file.
24208   ac_beg=1 # First line for current file.
24209   ac_end=$ac_max_sed_lines # Line after last line for current file.
24210   ac_more_lines=:
24211   ac_sed_cmds=
24212   while $ac_more_lines; do
24213     if test $ac_beg -gt 1; then
24214       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24215     else
24216       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24217     fi
24218     if test ! -s $tmp/subs.frag; then
24219       ac_more_lines=false
24220     else
24221       # The purpose of the label and of the branching condition is to
24222       # speed up the sed processing (if there are no `@' at all, there
24223       # is no need to browse any of the substitutions).
24224       # These are the two extra sed commands mentioned above.
24225       (echo ':t
24226   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24227       if test -z "$ac_sed_cmds"; then
24228         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24229       else
24230         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24231       fi
24232       ac_sed_frag=`expr $ac_sed_frag + 1`
24233       ac_beg=$ac_end
24234       ac_end=`expr $ac_end + $ac_max_sed_lines`
24235     fi
24236   done
24237   if test -z "$ac_sed_cmds"; then
24238     ac_sed_cmds=cat
24239   fi
24240 fi # test -n "$CONFIG_FILES"
24241
24242 _ACEOF
24243 cat >>$CONFIG_STATUS <<\_ACEOF
24244 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24245   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24246   case $ac_file in
24247   - | *:- | *:-:* ) # input from stdin
24248         cat >$tmp/stdin
24249         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24250         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24251   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24252         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24253   * )   ac_file_in=$ac_file.in ;;
24254   esac
24255
24256   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24257   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24258 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24259          X"$ac_file" : 'X\(//\)[^/]' \| \
24260          X"$ac_file" : 'X\(//\)$' \| \
24261          X"$ac_file" : 'X\(/\)' \| \
24262          .     : '\(.\)' 2>/dev/null ||
24263 echo X"$ac_file" |
24264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24265           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24266           /^X\(\/\/\)$/{ s//\1/; q; }
24267           /^X\(\/\).*/{ s//\1/; q; }
24268           s/.*/./; q'`
24269   { if $as_mkdir_p; then
24270     mkdir -p "$ac_dir"
24271   else
24272     as_dir="$ac_dir"
24273     as_dirs=
24274     while test ! -d "$as_dir"; do
24275       as_dirs="$as_dir $as_dirs"
24276       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24278          X"$as_dir" : 'X\(//\)[^/]' \| \
24279          X"$as_dir" : 'X\(//\)$' \| \
24280          X"$as_dir" : 'X\(/\)' \| \
24281          .     : '\(.\)' 2>/dev/null ||
24282 echo X"$as_dir" |
24283     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24284           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24285           /^X\(\/\/\)$/{ s//\1/; q; }
24286           /^X\(\/\).*/{ s//\1/; q; }
24287           s/.*/./; q'`
24288     done
24289     test ! -n "$as_dirs" || mkdir $as_dirs
24290   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24291 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24292    { (exit 1); exit 1; }; }; }
24293
24294   ac_builddir=.
24295
24296 if test "$ac_dir" != .; then
24297   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24298   # A "../" for each directory in $ac_dir_suffix.
24299   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24300 else
24301   ac_dir_suffix= ac_top_builddir=
24302 fi
24303
24304 case $srcdir in
24305   .)  # No --srcdir option.  We are building in place.
24306     ac_srcdir=.
24307     if test -z "$ac_top_builddir"; then
24308        ac_top_srcdir=.
24309     else
24310        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24311     fi ;;
24312   [\\/]* | ?:[\\/]* )  # Absolute path.
24313     ac_srcdir=$srcdir$ac_dir_suffix;
24314     ac_top_srcdir=$srcdir ;;
24315   *) # Relative path.
24316     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24317     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24318 esac
24319 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24320 # absolute.
24321 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24322 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24323 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24324 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24325
24326
24327   case $INSTALL in
24328   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24329   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24330   esac
24331
24332   if test x"$ac_file" != x-; then
24333     { echo "$as_me:$LINENO: creating $ac_file" >&5
24334 echo "$as_me: creating $ac_file" >&6;}
24335     rm -f "$ac_file"
24336   fi
24337   # Let's still pretend it is `configure' which instantiates (i.e., don't
24338   # use $as_me), people would be surprised to read:
24339   #    /* config.h.  Generated by config.status.  */
24340   if test x"$ac_file" = x-; then
24341     configure_input=
24342   else
24343     configure_input="$ac_file.  "
24344   fi
24345   configure_input=$configure_input"Generated from `echo $ac_file_in |
24346                                      sed 's,.*/,,'` by configure."
24347
24348   # First look for the input files in the build tree, otherwise in the
24349   # src tree.
24350   ac_file_inputs=`IFS=:
24351     for f in $ac_file_in; do
24352       case $f in
24353       -) echo $tmp/stdin ;;
24354       [\\/$]*)
24355          # Absolute (can't be DOS-style, as IFS=:)
24356          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24357 echo "$as_me: error: cannot find input file: $f" >&2;}
24358    { (exit 1); exit 1; }; }
24359          echo $f;;
24360       *) # Relative
24361          if test -f "$f"; then
24362            # Build tree
24363            echo $f
24364          elif test -f "$srcdir/$f"; then
24365            # Source tree
24366            echo $srcdir/$f
24367          else
24368            # /dev/null tree
24369            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24370 echo "$as_me: error: cannot find input file: $f" >&2;}
24371    { (exit 1); exit 1; }; }
24372          fi;;
24373       esac
24374     done` || { (exit 1); exit 1; }
24375 _ACEOF
24376 cat >>$CONFIG_STATUS <<_ACEOF
24377   sed "$ac_vpsub
24378 $extrasub
24379 _ACEOF
24380 cat >>$CONFIG_STATUS <<\_ACEOF
24381 :t
24382 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24383 s,@configure_input@,$configure_input,;t t
24384 s,@srcdir@,$ac_srcdir,;t t
24385 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24386 s,@top_srcdir@,$ac_top_srcdir,;t t
24387 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24388 s,@builddir@,$ac_builddir,;t t
24389 s,@abs_builddir@,$ac_abs_builddir,;t t
24390 s,@top_builddir@,$ac_top_builddir,;t t
24391 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24392 s,@INSTALL@,$ac_INSTALL,;t t
24393 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24394   rm -f $tmp/stdin
24395   if test x"$ac_file" != x-; then
24396     mv $tmp/out $ac_file
24397   else
24398     cat $tmp/out
24399     rm -f $tmp/out
24400   fi
24401
24402 done
24403 _ACEOF
24404 cat >>$CONFIG_STATUS <<\_ACEOF
24405
24406 #
24407 # CONFIG_HEADER section.
24408 #
24409
24410 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24411 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24412 #
24413 # ac_d sets the value in "#define NAME VALUE" lines.
24414 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24415 ac_dB='[        ].*$,\1#\2'
24416 ac_dC=' '
24417 ac_dD=',;t'
24418 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24419 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24420 ac_uB='$,\1#\2define\3'
24421 ac_uC=' '
24422 ac_uD=',;t'
24423
24424 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24425   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24426   case $ac_file in
24427   - | *:- | *:-:* ) # input from stdin
24428         cat >$tmp/stdin
24429         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24430         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24431   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24432         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24433   * )   ac_file_in=$ac_file.in ;;
24434   esac
24435
24436   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24437 echo "$as_me: creating $ac_file" >&6;}
24438
24439   # First look for the input files in the build tree, otherwise in the
24440   # src tree.
24441   ac_file_inputs=`IFS=:
24442     for f in $ac_file_in; do
24443       case $f in
24444       -) echo $tmp/stdin ;;
24445       [\\/$]*)
24446          # Absolute (can't be DOS-style, as IFS=:)
24447          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24448 echo "$as_me: error: cannot find input file: $f" >&2;}
24449    { (exit 1); exit 1; }; }
24450          echo $f;;
24451       *) # Relative
24452          if test -f "$f"; then
24453            # Build tree
24454            echo $f
24455          elif test -f "$srcdir/$f"; then
24456            # Source tree
24457            echo $srcdir/$f
24458          else
24459            # /dev/null tree
24460            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24461 echo "$as_me: error: cannot find input file: $f" >&2;}
24462    { (exit 1); exit 1; }; }
24463          fi;;
24464       esac
24465     done` || { (exit 1); exit 1; }
24466   # Remove the trailing spaces.
24467   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24468
24469 _ACEOF
24470
24471 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24472 # `conftest.undefs', that substitutes the proper values into
24473 # config.h.in to produce config.h.  The first handles `#define'
24474 # templates, and the second `#undef' templates.
24475 # And first: Protect against being on the right side of a sed subst in
24476 # config.status.  Protect against being in an unquoted here document
24477 # in config.status.
24478 rm -f conftest.defines conftest.undefs
24479 # Using a here document instead of a string reduces the quoting nightmare.
24480 # Putting comments in sed scripts is not portable.
24481 #
24482 # `end' is used to avoid that the second main sed command (meant for
24483 # 0-ary CPP macros) applies to n-ary macro definitions.
24484 # See the Autoconf documentation for `clear'.
24485 cat >confdef2sed.sed <<\_ACEOF
24486 s/[\\&,]/\\&/g
24487 s,[\\$`],\\&,g
24488 t clear
24489 : clear
24490 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24491 t end
24492 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24493 : end
24494 _ACEOF
24495 # If some macros were called several times there might be several times
24496 # the same #defines, which is useless.  Nevertheless, we may not want to
24497 # sort them, since we want the *last* AC-DEFINE to be honored.
24498 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24499 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24500 rm -f confdef2sed.sed
24501
24502 # This sed command replaces #undef with comments.  This is necessary, for
24503 # example, in the case of _POSIX_SOURCE, which is predefined and required
24504 # on some systems where configure will not decide to define it.
24505 cat >>conftest.undefs <<\_ACEOF
24506 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24507 _ACEOF
24508
24509 # Break up conftest.defines because some shells have a limit on the size
24510 # of here documents, and old seds have small limits too (100 cmds).
24511 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24512 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24513 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24514 echo '  :' >>$CONFIG_STATUS
24515 rm -f conftest.tail
24516 while grep . conftest.defines >/dev/null
24517 do
24518   # Write a limited-size here document to $tmp/defines.sed.
24519   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24520   # Speed up: don't consider the non `#define' lines.
24521   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24522   # Work around the forget-to-reset-the-flag bug.
24523   echo 't clr' >>$CONFIG_STATUS
24524   echo ': clr' >>$CONFIG_STATUS
24525   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24526   echo 'CEOF
24527   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24528   rm -f $tmp/in
24529   mv $tmp/out $tmp/in
24530 ' >>$CONFIG_STATUS
24531   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24532   rm -f conftest.defines
24533   mv conftest.tail conftest.defines
24534 done
24535 rm -f conftest.defines
24536 echo '  fi # grep' >>$CONFIG_STATUS
24537 echo >>$CONFIG_STATUS
24538
24539 # Break up conftest.undefs because some shells have a limit on the size
24540 # of here documents, and old seds have small limits too (100 cmds).
24541 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24542 rm -f conftest.tail
24543 while grep . conftest.undefs >/dev/null
24544 do
24545   # Write a limited-size here document to $tmp/undefs.sed.
24546   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24547   # Speed up: don't consider the non `#undef'
24548   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24549   # Work around the forget-to-reset-the-flag bug.
24550   echo 't clr' >>$CONFIG_STATUS
24551   echo ': clr' >>$CONFIG_STATUS
24552   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24553   echo 'CEOF
24554   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24555   rm -f $tmp/in
24556   mv $tmp/out $tmp/in
24557 ' >>$CONFIG_STATUS
24558   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24559   rm -f conftest.undefs
24560   mv conftest.tail conftest.undefs
24561 done
24562 rm -f conftest.undefs
24563
24564 cat >>$CONFIG_STATUS <<\_ACEOF
24565   # Let's still pretend it is `configure' which instantiates (i.e., don't
24566   # use $as_me), people would be surprised to read:
24567   #    /* config.h.  Generated by config.status.  */
24568   if test x"$ac_file" = x-; then
24569     echo "/* Generated by configure.  */" >$tmp/config.h
24570   else
24571     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24572   fi
24573   cat $tmp/in >>$tmp/config.h
24574   rm -f $tmp/in
24575   if test x"$ac_file" != x-; then
24576     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24577       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24578 echo "$as_me: $ac_file is unchanged" >&6;}
24579     else
24580       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24582          X"$ac_file" : 'X\(//\)[^/]' \| \
24583          X"$ac_file" : 'X\(//\)$' \| \
24584          X"$ac_file" : 'X\(/\)' \| \
24585          .     : '\(.\)' 2>/dev/null ||
24586 echo X"$ac_file" |
24587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24588           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24589           /^X\(\/\/\)$/{ s//\1/; q; }
24590           /^X\(\/\).*/{ s//\1/; q; }
24591           s/.*/./; q'`
24592       { if $as_mkdir_p; then
24593     mkdir -p "$ac_dir"
24594   else
24595     as_dir="$ac_dir"
24596     as_dirs=
24597     while test ! -d "$as_dir"; do
24598       as_dirs="$as_dir $as_dirs"
24599       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24601          X"$as_dir" : 'X\(//\)[^/]' \| \
24602          X"$as_dir" : 'X\(//\)$' \| \
24603          X"$as_dir" : 'X\(/\)' \| \
24604          .     : '\(.\)' 2>/dev/null ||
24605 echo X"$as_dir" |
24606     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24607           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24608           /^X\(\/\/\)$/{ s//\1/; q; }
24609           /^X\(\/\).*/{ s//\1/; q; }
24610           s/.*/./; q'`
24611     done
24612     test ! -n "$as_dirs" || mkdir $as_dirs
24613   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24614 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24615    { (exit 1); exit 1; }; }; }
24616
24617       rm -f $ac_file
24618       mv $tmp/config.h $ac_file
24619     fi
24620   else
24621     cat $tmp/config.h
24622     rm -f $tmp/config.h
24623   fi
24624 done
24625 _ACEOF
24626 cat >>$CONFIG_STATUS <<\_ACEOF
24627
24628 #
24629 # CONFIG_COMMANDS section.
24630 #
24631 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24632   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24633   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24634   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24635 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24636          X"$ac_dest" : 'X\(//\)[^/]' \| \
24637          X"$ac_dest" : 'X\(//\)$' \| \
24638          X"$ac_dest" : 'X\(/\)' \| \
24639          .     : '\(.\)' 2>/dev/null ||
24640 echo X"$ac_dest" |
24641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24642           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24643           /^X\(\/\/\)$/{ s//\1/; q; }
24644           /^X\(\/\).*/{ s//\1/; q; }
24645           s/.*/./; q'`
24646   ac_builddir=.
24647
24648 if test "$ac_dir" != .; then
24649   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24650   # A "../" for each directory in $ac_dir_suffix.
24651   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24652 else
24653   ac_dir_suffix= ac_top_builddir=
24654 fi
24655
24656 case $srcdir in
24657   .)  # No --srcdir option.  We are building in place.
24658     ac_srcdir=.
24659     if test -z "$ac_top_builddir"; then
24660        ac_top_srcdir=.
24661     else
24662        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24663     fi ;;
24664   [\\/]* | ?:[\\/]* )  # Absolute path.
24665     ac_srcdir=$srcdir$ac_dir_suffix;
24666     ac_top_srcdir=$srcdir ;;
24667   *) # Relative path.
24668     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24669     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24670 esac
24671 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24672 # absolute.
24673 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24674 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24675 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24676 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24677
24678
24679   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24680 echo "$as_me: executing $ac_dest commands" >&6;}
24681   case $ac_dest in
24682     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24683     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24684     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24685     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24686     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24687     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24688     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24689     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24690     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24691     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24692     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24693     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24694     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24695     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24696     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24697     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24698     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24699     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24700     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24701     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24702     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24703     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24704     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24705     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24706     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24707     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24708     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24709     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24710     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24711     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24712     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24713     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24714     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24715     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24716     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24717     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24718     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24719     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24720     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24721     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24722     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24723     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24724     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24725     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24726     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24727     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24728     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24729     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24730     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24731     runtime/libprofile/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libprofile/Makefile runtime/libprofile/Makefile ;;
24732     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24733     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24734     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24735     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24736     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24737     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24738     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24739     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24740     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24741     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24742     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24743     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24744     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24745     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24746     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24747     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24748     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24749     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24750     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24751     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24752     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24753     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24754     test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
24755     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 ;;
24756     test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/177.mesa/Makefile test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ;;
24757     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 ;;
24758     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 ;;
24759     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 ;;
24760     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 ;;
24761     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 ;;
24762     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 ;;
24763     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 ;;
24764     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 ;;
24765     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 ;;
24766     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 ;;
24767     test/Programs/External/SPEC/CINT2000/252.eon/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/252.eon/Makefile test/Programs/External/SPEC/CINT2000/252.eon/Makefile ;;
24768     test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ;;
24769     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 ;;
24770     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 ;;
24771     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 ;;
24772     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 ;;
24773     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24774     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24775     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24776     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24777     test/Programs/MultiSource/Applications/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Burg/Makefile test/Programs/MultiSource/Applications/Burg/Makefile ;;
24778     test/Programs/MultiSource/Applications/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/aha/Makefile test/Programs/MultiSource/Applications/aha/Makefile ;;
24779     test/Programs/MultiSource/Applications/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/sgefa/Makefile test/Programs/MultiSource/Applications/sgefa/Makefile ;;
24780     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24781     test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ;;
24782     test/Programs/MultiSource/Benchmarks/FreeBench/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/Makefile ;;
24783     test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile ;;
24784     test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
24785     test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
24786     test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
24787     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
24788     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
24789     test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
24790     test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
24791     test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
24792     test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
24793     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
24794     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
24795     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
24796     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
24797     test/Programs/MultiSource/Benchmarks/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/Makefile test/Programs/MultiSource/Benchmarks/McCat/Makefile ;;
24798     test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ;;
24799     test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ;;
24800     test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ;;
24801     test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ;;
24802     test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ;;
24803     test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ;;
24804     test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ;;
24805     test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ;;
24806     test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ;;
24807     test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ;;
24808     test/Programs/MultiSource/Benchmarks/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/Makefile test/Programs/MultiSource/Benchmarks/Olden/Makefile ;;
24809     test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ;;
24810     test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ;;
24811     test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ;;
24812     test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/health/Makefile test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ;;
24813     test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ;;
24814     test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ;;
24815     test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/power/Makefile test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ;;
24816     test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ;;
24817     test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ;;
24818     test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ;;
24819     test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ;;
24820     test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ;;
24821     test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ;;
24822     test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ;;
24823     test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ;;
24824     test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ;;
24825     test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ;;
24826     test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ;;
24827     test/Programs/MultiSource/Benchmarks/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/sim/Makefile test/Programs/MultiSource/Benchmarks/sim/Makefile ;;
24828     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24829     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24830     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24831     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24832     test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ;;
24833     test/Programs/SingleSource/Benchmarks/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Shootout/Makefile test/Programs/SingleSource/Benchmarks/Shootout/Makefile ;;
24834     test/Programs/SingleSource/Benchmarks/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Stanford/Makefile test/Programs/SingleSource/Benchmarks/Stanford/Makefile ;;
24835     test/Programs/SingleSource/Benchmarks/Misc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Misc/Makefile test/Programs/SingleSource/Benchmarks/Misc/Makefile ;;
24836     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24837     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24838     test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
24839     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24840     test/Programs/SingleSource/Regression/C/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C/Makefile test/Programs/SingleSource/Regression/C/Makefile ;;
24841     test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
24842     test/Programs/SingleSource/Regression/C++/EH/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/EH/Makefile test/Programs/SingleSource/Regression/C++/EH/Makefile ;;
24843     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24844     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24845     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24846     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24847     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24848     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24849     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24850     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24851     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24852     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24853     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24854     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24855     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24856     tools/llvm-nm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-nm/Makefile tools/llvm-nm/Makefile ;;
24857     tools/llvm-prof/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-prof/Makefile tools/llvm-prof/Makefile ;;
24858     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24859     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24860     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24861     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24862     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24863     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24864     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24865     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24866     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24867     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24868   esac
24869 done
24870 _ACEOF
24871
24872 cat >>$CONFIG_STATUS <<\_ACEOF
24873
24874 { (exit 0); exit 0; }
24875 _ACEOF
24876 chmod +x $CONFIG_STATUS
24877 ac_clean_files=$ac_clean_files_save
24878
24879
24880 # configure is writing to config.log, and then calls config.status.
24881 # config.status does its own redirection, appending to config.log.
24882 # Unfortunately, on DOS this fails, as config.log is still kept open
24883 # by configure, so config.status won't be able to write to it; its
24884 # output is simply discarded.  So we exec the FD to /dev/null,
24885 # effectively closing config.log, so it can be properly (re)opened and
24886 # appended to by config.status.  When coming back to configure, we
24887 # need to make the FD available again.
24888 if test "$no_create" != yes; then
24889   ac_cs_success=:
24890   ac_config_status_args=
24891   test "$silent" = yes &&
24892     ac_config_status_args="$ac_config_status_args --quiet"
24893   exec 5>/dev/null
24894   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24895   exec 5>>config.log
24896   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24897   # would make configure fail if this is the last instruction.
24898   $ac_cs_success || { (exit 1); exit 1; }
24899 fi
24900
24901 #
24902 # CONFIG_SUBDIRS section.
24903 #
24904 if test "$no_recursion" != yes; then
24905
24906   # Remove --cache-file and --srcdir arguments so they do not pile up.
24907   ac_sub_configure_args=
24908   ac_prev=
24909   for ac_arg in $ac_configure_args; do
24910     if test -n "$ac_prev"; then
24911       ac_prev=
24912       continue
24913     fi
24914     case $ac_arg in
24915     -cache-file | --cache-file | --cache-fil | --cache-fi \
24916     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24917       ac_prev=cache_file ;;
24918     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24919     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24920     | --c=*)
24921       ;;
24922     --config-cache | -C)
24923       ;;
24924     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24925       ac_prev=srcdir ;;
24926     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24927       ;;
24928     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24929       ac_prev=prefix ;;
24930     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24931       ;;
24932     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24933     esac
24934   done
24935
24936   # Always prepend --prefix to ensure using the same prefix
24937   # in subdir configurations.
24938   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24939
24940   ac_popdir=`pwd`
24941   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24942
24943     # Do not complain, so a configure script can configure whichever
24944     # parts of a large source tree are present.
24945     test -d $srcdir/$ac_dir || continue
24946
24947     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24948 echo "$as_me: configuring in $ac_dir" >&6;}
24949     { if $as_mkdir_p; then
24950     mkdir -p "$ac_dir"
24951   else
24952     as_dir="$ac_dir"
24953     as_dirs=
24954     while test ! -d "$as_dir"; do
24955       as_dirs="$as_dir $as_dirs"
24956       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24957 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24958          X"$as_dir" : 'X\(//\)[^/]' \| \
24959          X"$as_dir" : 'X\(//\)$' \| \
24960          X"$as_dir" : 'X\(/\)' \| \
24961          .     : '\(.\)' 2>/dev/null ||
24962 echo X"$as_dir" |
24963     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24964           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24965           /^X\(\/\/\)$/{ s//\1/; q; }
24966           /^X\(\/\).*/{ s//\1/; q; }
24967           s/.*/./; q'`
24968     done
24969     test ! -n "$as_dirs" || mkdir $as_dirs
24970   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24971 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24972    { (exit 1); exit 1; }; }; }
24973
24974     ac_builddir=.
24975
24976 if test "$ac_dir" != .; then
24977   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24978   # A "../" for each directory in $ac_dir_suffix.
24979   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24980 else
24981   ac_dir_suffix= ac_top_builddir=
24982 fi
24983
24984 case $srcdir in
24985   .)  # No --srcdir option.  We are building in place.
24986     ac_srcdir=.
24987     if test -z "$ac_top_builddir"; then
24988        ac_top_srcdir=.
24989     else
24990        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24991     fi ;;
24992   [\\/]* | ?:[\\/]* )  # Absolute path.
24993     ac_srcdir=$srcdir$ac_dir_suffix;
24994     ac_top_srcdir=$srcdir ;;
24995   *) # Relative path.
24996     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24997     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24998 esac
24999 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25000 # absolute.
25001 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25002 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25003 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25004 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25005
25006
25007     cd $ac_dir
25008
25009     # Check for guested configure; otherwise get Cygnus style configure.
25010     if test -f $ac_srcdir/configure.gnu; then
25011       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25012     elif test -f $ac_srcdir/configure; then
25013       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25014     elif test -f $ac_srcdir/configure.in; then
25015       ac_sub_configure=$ac_configure
25016     else
25017       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25018 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25019       ac_sub_configure=
25020     fi
25021
25022     # The recursion is here.
25023     if test -n "$ac_sub_configure"; then
25024       # Make the cache file name correct relative to the subdirectory.
25025       case $cache_file in
25026       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25027       *) # Relative path.
25028         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25029       esac
25030
25031       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25032 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25033       # The eval makes quoting arguments work.
25034       eval $ac_sub_configure $ac_sub_configure_args \
25035            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25036         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25037 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25038    { (exit 1); exit 1; }; }
25039     fi
25040
25041     cd $ac_popdir
25042   done
25043 fi
25044