Added autoconf support for the sample project.
[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 test/Makefile"
1698
1699
1700           ac_config_commands="$ac_config_commands test/Makefile.tests"
1701
1702
1703           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1704
1705
1706           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1707
1708
1709           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1710
1711
1712           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1713
1714
1715           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1716
1717
1718           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1719
1720
1721           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1722
1723
1724           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1725
1726
1727           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1728
1729
1730           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1731
1732
1733           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1734
1735
1736           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1737
1738
1739           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1740
1741
1742           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1743
1744
1745           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1746
1747
1748           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1749
1750
1751           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1752
1753
1754           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1755
1756
1757           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1758
1759
1760           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/252.eon/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1914
1915
1916           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1923
1924
1925           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1929
1930
1931           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1935
1936
1937           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1944
1945
1946           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1947
1948
1949           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1971
1972
1973           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1974
1975
1976           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1983
1984
1985           ac_config_commands="$ac_config_commands tools/Makefile"
1986
1987
1988           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1992
1993
1994           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1998
1999
2000           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
2001
2002
2003           ac_config_commands="$ac_config_commands tools/llc/Makefile"
2004
2005
2006           ac_config_commands="$ac_config_commands tools/llee/Makefile"
2007
2008
2009           ac_config_commands="$ac_config_commands tools/lli/Makefile"
2010
2011
2012           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2013
2014
2015           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2016
2017
2018           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
2019
2020
2021           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2022
2023
2024           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2025
2026
2027           ac_config_commands="$ac_config_commands utils/Makefile"
2028
2029
2030           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2031
2032
2033           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2034
2035
2036           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2037
2038
2039           ac_config_commands="$ac_config_commands projects/Makefile"
2040
2041
2042           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2043
2044
2045           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2046
2047
2048           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2049
2050
2051           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2052
2053
2054
2055
2056 # Find a good install program.  We prefer a C program (faster),
2057 # so one script is as good as another.  But avoid the broken or
2058 # incompatible versions:
2059 # SysV /etc/install, /usr/sbin/install
2060 # SunOS /usr/etc/install
2061 # IRIX /sbin/install
2062 # AIX /bin/install
2063 # AmigaOS /C/install, which installs bootblocks on floppy discs
2064 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2065 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2067 # ./install, which can be erroneously created by make from ./install.sh.
2068 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2069 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2070 if test -z "$INSTALL"; then
2071 if test "${ac_cv_path_install+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2076 do
2077   IFS=$as_save_IFS
2078   test -z "$as_dir" && as_dir=.
2079   # Account for people who put trailing slashes in PATH elements.
2080 case $as_dir/ in
2081   ./ | .// | /cC/* | \
2082   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2083   /usr/ucb/* ) ;;
2084   *)
2085     # OSF1 and SCO ODT 3.0 have their own names for install.
2086     # Don't use installbsd from OSF since it installs stuff as root
2087     # by default.
2088     for ac_prog in ginstall scoinst install; do
2089       for ac_exec_ext in '' $ac_executable_extensions; do
2090         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2091           if test $ac_prog = install &&
2092             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2093             # AIX install.  It has an incompatible calling convention.
2094             :
2095           elif test $ac_prog = install &&
2096             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2097             # program-specific install script used by HP pwplus--don't use.
2098             :
2099           else
2100             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2101             break 3
2102           fi
2103         fi
2104       done
2105     done
2106     ;;
2107 esac
2108 done
2109
2110
2111 fi
2112   if test "${ac_cv_path_install+set}" = set; then
2113     INSTALL=$ac_cv_path_install
2114   else
2115     # As a last resort, use the slow shell script.  We don't cache a
2116     # path for INSTALL within a source directory, because that will
2117     # break other packages using the cache if that directory is
2118     # removed, or if the path is relative.
2119     INSTALL=$ac_install_sh
2120   fi
2121 fi
2122 echo "$as_me:$LINENO: result: $INSTALL" >&5
2123 echo "${ECHO_T}$INSTALL" >&6
2124
2125 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2126 # It thinks the first close brace ends the variable substitution.
2127 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2128
2129 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2130
2131 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2132
2133
2134 # Make sure we can run config.sub.
2135 $ac_config_sub sun4 >/dev/null 2>&1 ||
2136   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2137 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2138    { (exit 1); exit 1; }; }
2139
2140 echo "$as_me:$LINENO: checking build system type" >&5
2141 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2142 if test "${ac_cv_build+set}" = set; then
2143   echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145   ac_cv_build_alias=$build_alias
2146 test -z "$ac_cv_build_alias" &&
2147   ac_cv_build_alias=`$ac_config_guess`
2148 test -z "$ac_cv_build_alias" &&
2149   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2150 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2151    { (exit 1); exit 1; }; }
2152 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2153   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2154 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2155    { (exit 1); exit 1; }; }
2156
2157 fi
2158 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2159 echo "${ECHO_T}$ac_cv_build" >&6
2160 build=$ac_cv_build
2161 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2162 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2163 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2164
2165
2166 echo "$as_me:$LINENO: checking host system type" >&5
2167 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2168 if test "${ac_cv_host+set}" = set; then
2169   echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171   ac_cv_host_alias=$host_alias
2172 test -z "$ac_cv_host_alias" &&
2173   ac_cv_host_alias=$ac_cv_build_alias
2174 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2175   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2176 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2177    { (exit 1); exit 1; }; }
2178
2179 fi
2180 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2181 echo "${ECHO_T}$ac_cv_host" >&6
2182 host=$ac_cv_host
2183 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2184 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2185 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2186
2187
2188 echo "$as_me:$LINENO: checking target system type" >&5
2189 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2190 if test "${ac_cv_target+set}" = set; then
2191   echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193   ac_cv_target_alias=$target_alias
2194 test "x$ac_cv_target_alias" = "x" &&
2195   ac_cv_target_alias=$ac_cv_host_alias
2196 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2197   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2198 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2199    { (exit 1); exit 1; }; }
2200
2201 fi
2202 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2203 echo "${ECHO_T}$ac_cv_target" >&6
2204 target=$ac_cv_target
2205 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2206 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2207 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2208
2209
2210 # The aliases save the names the user supplied, while $host etc.
2211 # will get canonicalized.
2212 test -n "$target_alias" &&
2213   test "$program_prefix$program_suffix$program_transform_name" = \
2214     NONENONEs,x,x, &&
2215   program_prefix=${target_alias}-
2216
2217 case $build in
2218         *i*86*)  OS=Linux
2219
2220                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2221
2222                  ;;
2223
2224         *sparc*) OS=SunOS
2225
2226                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2227
2228                  ;;
2229
2230         *)       OS=Unknown
2231
2232                  ;;
2233 esac
2234
2235 case $target in
2236         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2237
2238                           ;;
2239 esac
2240
2241 case $target in
2242         *i*86*)           ARCH=x86
2243
2244                           ;;
2245         *sparc*solaris*)  ARCH=Sparc
2246
2247                           ;;
2248 esac
2249
2250
2251 ac_ext=cc
2252 ac_cpp='$CXXCPP $CPPFLAGS'
2253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2256 if test -n "$ac_tool_prefix"; then
2257   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2258   do
2259     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_CXX+set}" = set; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   if test -n "$CXX"; then
2267   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2271 do
2272   IFS=$as_save_IFS
2273   test -z "$as_dir" && as_dir=.
2274   for ac_exec_ext in '' $ac_executable_extensions; do
2275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278     break 2
2279   fi
2280 done
2281 done
2282
2283 fi
2284 fi
2285 CXX=$ac_cv_prog_CXX
2286 if test -n "$CXX"; then
2287   echo "$as_me:$LINENO: result: $CXX" >&5
2288 echo "${ECHO_T}$CXX" >&6
2289 else
2290   echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2292 fi
2293
2294     test -n "$CXX" && break
2295   done
2296 fi
2297 if test -z "$CXX"; then
2298   ac_ct_CXX=$CXX
2299   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2300 do
2301   # Extract the first word of "$ac_prog", so it can be a program name with args.
2302 set dummy $ac_prog; ac_word=$2
2303 echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   if test -n "$ac_ct_CXX"; then
2309   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2310 else
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 for as_dir in $PATH
2313 do
2314   IFS=$as_save_IFS
2315   test -z "$as_dir" && as_dir=.
2316   for ac_exec_ext in '' $ac_executable_extensions; do
2317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318     ac_cv_prog_ac_ct_CXX="$ac_prog"
2319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320     break 2
2321   fi
2322 done
2323 done
2324
2325 fi
2326 fi
2327 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2328 if test -n "$ac_ct_CXX"; then
2329   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2330 echo "${ECHO_T}$ac_ct_CXX" >&6
2331 else
2332   echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6
2334 fi
2335
2336   test -n "$ac_ct_CXX" && break
2337 done
2338 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2339
2340   CXX=$ac_ct_CXX
2341 fi
2342
2343
2344 # Provide some information about the compiler.
2345 echo "$as_me:$LINENO:" \
2346      "checking for C++ compiler version" >&5
2347 ac_compiler=`set X $ac_compile; echo $2`
2348 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2349   (eval $ac_compiler --version </dev/null >&5) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }
2353 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2354   (eval $ac_compiler -v </dev/null >&5) 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }
2358 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2359   (eval $ac_compiler -V </dev/null >&5) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }
2363
2364 cat >conftest.$ac_ext <<_ACEOF
2365 #line $LINENO "configure"
2366 /* confdefs.h.  */
2367 _ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h.  */
2371
2372 int
2373 main ()
2374 {
2375
2376   ;
2377   return 0;
2378 }
2379 _ACEOF
2380 ac_clean_files_save=$ac_clean_files
2381 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2382 # Try to create an executable without -o first, disregard a.out.
2383 # It will help us diagnose broken compilers, and finding out an intuition
2384 # of exeext.
2385 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2386 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2387 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2388 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2389   (eval $ac_link_default) 2>&5
2390   ac_status=$?
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); }; then
2393   # Find the output, starting from the most likely.  This scheme is
2394 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2395 # resort.
2396
2397 # Be careful to initialize this variable, since it used to be cached.
2398 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2399 ac_cv_exeext=
2400 # b.out is created by i960 compilers.
2401 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2402 do
2403   test -f "$ac_file" || continue
2404   case $ac_file in
2405     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2406         ;;
2407     conftest.$ac_ext )
2408         # This is the source file.
2409         ;;
2410     [ab].out )
2411         # We found the default executable, but exeext='' is most
2412         # certainly right.
2413         break;;
2414     *.* )
2415         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2416         # FIXME: I believe we export ac_cv_exeext for Libtool,
2417         # but it would be cool to find out if it's true.  Does anybody
2418         # maintain Libtool? --akim.
2419         export ac_cv_exeext
2420         break;;
2421     * )
2422         break;;
2423   esac
2424 done
2425 else
2426   echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2428
2429 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2430 See \`config.log' for more details." >&5
2431 echo "$as_me: error: C++ compiler cannot create executables
2432 See \`config.log' for more details." >&2;}
2433    { (exit 77); exit 77; }; }
2434 fi
2435
2436 ac_exeext=$ac_cv_exeext
2437 echo "$as_me:$LINENO: result: $ac_file" >&5
2438 echo "${ECHO_T}$ac_file" >&6
2439
2440 # Check the compiler produces executables we can run.  If not, either
2441 # the compiler is broken, or we cross compile.
2442 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2443 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2444 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2445 # If not cross compiling, check that we can run a simple program.
2446 if test "$cross_compiling" != yes; then
2447   if { ac_try='./$ac_file'
2448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449   (eval $ac_try) 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; }; then
2453     cross_compiling=no
2454   else
2455     if test "$cross_compiling" = maybe; then
2456         cross_compiling=yes
2457     else
2458         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2459 If you meant to cross compile, use \`--host'.
2460 See \`config.log' for more details." >&5
2461 echo "$as_me: error: cannot run C++ compiled programs.
2462 If you meant to cross compile, use \`--host'.
2463 See \`config.log' for more details." >&2;}
2464    { (exit 1); exit 1; }; }
2465     fi
2466   fi
2467 fi
2468 echo "$as_me:$LINENO: result: yes" >&5
2469 echo "${ECHO_T}yes" >&6
2470
2471 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2472 ac_clean_files=$ac_clean_files_save
2473 # Check the compiler produces executables we can run.  If not, either
2474 # the compiler is broken, or we cross compile.
2475 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2476 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2477 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2478 echo "${ECHO_T}$cross_compiling" >&6
2479
2480 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2481 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2483   (eval $ac_link) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; then
2487   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2488 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2489 # work properly (i.e., refer to `conftest.exe'), while it won't with
2490 # `rm'.
2491 for ac_file in conftest.exe conftest conftest.*; do
2492   test -f "$ac_file" || continue
2493   case $ac_file in
2494     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2495     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2496           export ac_cv_exeext
2497           break;;
2498     * ) break;;
2499   esac
2500 done
2501 else
2502   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2503 See \`config.log' for more details." >&5
2504 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2505 See \`config.log' for more details." >&2;}
2506    { (exit 1); exit 1; }; }
2507 fi
2508
2509 rm -f conftest$ac_cv_exeext
2510 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2511 echo "${ECHO_T}$ac_cv_exeext" >&6
2512
2513 rm -f conftest.$ac_ext
2514 EXEEXT=$ac_cv_exeext
2515 ac_exeext=$EXEEXT
2516 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2517 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2518 if test "${ac_cv_objext+set}" = set; then
2519   echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521   cat >conftest.$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528
2529 int
2530 main ()
2531 {
2532
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.o conftest.obj
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539   (eval $ac_compile) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }; then
2543   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2544   case $ac_file in
2545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2546     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2547        break;;
2548   esac
2549 done
2550 else
2551   echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553
2554 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2557 See \`config.log' for more details." >&2;}
2558    { (exit 1); exit 1; }; }
2559 fi
2560
2561 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2562 fi
2563 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2564 echo "${ECHO_T}$ac_cv_objext" >&6
2565 OBJEXT=$ac_cv_objext
2566 ac_objext=$OBJEXT
2567 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2568 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2569 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2570   echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572   cat >conftest.$ac_ext <<_ACEOF
2573 #line $LINENO "configure"
2574 /* confdefs.h.  */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h.  */
2579
2580 int
2581 main ()
2582 {
2583 #ifndef __GNUC__
2584        choke me
2585 #endif
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
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); } &&
2597          { ac_try='test -s conftest.$ac_objext'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; }; then
2603   ac_compiler_gnu=yes
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 ac_compiler_gnu=no
2609 fi
2610 rm -f conftest.$ac_objext conftest.$ac_ext
2611 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2612
2613 fi
2614 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2615 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2616 GXX=`test $ac_compiler_gnu = yes && echo yes`
2617 ac_test_CXXFLAGS=${CXXFLAGS+set}
2618 ac_save_CXXFLAGS=$CXXFLAGS
2619 CXXFLAGS="-g"
2620 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2621 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2622 if test "${ac_cv_prog_cxx_g+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   cat >conftest.$ac_ext <<_ACEOF
2626 #line $LINENO "configure"
2627 /* confdefs.h.  */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h.  */
2632
2633 int
2634 main ()
2635 {
2636
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643   (eval $ac_compile) 2>&5
2644   ac_status=$?
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); } &&
2647          { ac_try='test -s conftest.$ac_objext'
2648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649   (eval $ac_try) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); }; }; then
2653   ac_cv_prog_cxx_g=yes
2654 else
2655   echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 ac_cv_prog_cxx_g=no
2659 fi
2660 rm -f conftest.$ac_objext conftest.$ac_ext
2661 fi
2662 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2663 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2664 if test "$ac_test_CXXFLAGS" = set; then
2665   CXXFLAGS=$ac_save_CXXFLAGS
2666 elif test $ac_cv_prog_cxx_g = yes; then
2667   if test "$GXX" = yes; then
2668     CXXFLAGS="-g -O2"
2669   else
2670     CXXFLAGS="-g"
2671   fi
2672 else
2673   if test "$GXX" = yes; then
2674     CXXFLAGS="-O2"
2675   else
2676     CXXFLAGS=
2677   fi
2678 fi
2679 for ac_declaration in \
2680    ''\
2681    '#include <stdlib.h>' \
2682    'extern "C" void std::exit (int) throw (); using std::exit;' \
2683    'extern "C" void std::exit (int); using std::exit;' \
2684    'extern "C" void exit (int) throw ();' \
2685    'extern "C" void exit (int);' \
2686    'void exit (int);'
2687 do
2688   cat >conftest.$ac_ext <<_ACEOF
2689 #line $LINENO "configure"
2690 /* confdefs.h.  */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h.  */
2695 #include <stdlib.h>
2696 $ac_declaration
2697 int
2698 main ()
2699 {
2700 exit (42);
2701   ;
2702   return 0;
2703 }
2704 _ACEOF
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707   (eval $ac_compile) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } &&
2711          { ac_try='test -s conftest.$ac_objext'
2712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713   (eval $ac_try) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; }; then
2717   :
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 continue
2723 fi
2724 rm -f conftest.$ac_objext conftest.$ac_ext
2725   cat >conftest.$ac_ext <<_ACEOF
2726 #line $LINENO "configure"
2727 /* confdefs.h.  */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h.  */
2732 $ac_declaration
2733 int
2734 main ()
2735 {
2736 exit (42);
2737   ;
2738   return 0;
2739 }
2740 _ACEOF
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743   (eval $ac_compile) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); } &&
2747          { ac_try='test -s conftest.$ac_objext'
2748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749   (eval $ac_try) 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; }; then
2753   break
2754 else
2755   echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 fi
2759 rm -f conftest.$ac_objext conftest.$ac_ext
2760 done
2761 rm -f conftest*
2762 if test -n "$ac_declaration"; then
2763   echo '#ifdef __cplusplus' >>confdefs.h
2764   echo $ac_declaration      >>confdefs.h
2765   echo '#endif'             >>confdefs.h
2766 fi
2767
2768 ac_ext=c
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
2774 ac_ext=c
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 if test -n "$ac_tool_prefix"; then
2780   for ac_prog in gcc
2781   do
2782     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2784 echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2786 if test "${ac_cv_prog_CC+set}" = set; then
2787   echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789   if test -n "$CC"; then
2790   ac_cv_prog_CC="$CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797   for ac_exec_ext in '' $ac_executable_extensions; do
2798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804 done
2805
2806 fi
2807 fi
2808 CC=$ac_cv_prog_CC
2809 if test -n "$CC"; then
2810   echo "$as_me:$LINENO: result: $CC" >&5
2811 echo "${ECHO_T}$CC" >&6
2812 else
2813   echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2815 fi
2816
2817     test -n "$CC" && break
2818   done
2819 fi
2820 if test -z "$CC"; then
2821   ac_ct_CC=$CC
2822   for ac_prog in gcc
2823 do
2824   # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   if test -n "$ac_ct_CC"; then
2832   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839   for ac_exec_ext in '' $ac_executable_extensions; do
2840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841     ac_cv_prog_ac_ct_CC="$ac_prog"
2842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846 done
2847
2848 fi
2849 fi
2850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851 if test -n "$ac_ct_CC"; then
2852   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2853 echo "${ECHO_T}$ac_ct_CC" >&6
2854 else
2855   echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6
2857 fi
2858
2859   test -n "$ac_ct_CC" && break
2860 done
2861
2862   CC=$ac_ct_CC
2863 fi
2864
2865
2866 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: no acceptable C compiler found in \$PATH
2869 See \`config.log' for more details." >&2;}
2870    { (exit 1); exit 1; }; }
2871
2872 # Provide some information about the compiler.
2873 echo "$as_me:$LINENO:" \
2874      "checking for C compiler version" >&5
2875 ac_compiler=`set X $ac_compile; echo $2`
2876 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2877   (eval $ac_compiler --version </dev/null >&5) 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); }
2881 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2882   (eval $ac_compiler -v </dev/null >&5) 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }
2886 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2887   (eval $ac_compiler -V </dev/null >&5) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }
2891
2892 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2893 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2894 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2895   echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897   cat >conftest.$ac_ext <<_ACEOF
2898 #line $LINENO "configure"
2899 /* confdefs.h.  */
2900 _ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h.  */
2904
2905 int
2906 main ()
2907 {
2908 #ifndef __GNUC__
2909        choke me
2910 #endif
2911
2912   ;
2913   return 0;
2914 }
2915 _ACEOF
2916 rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918   (eval $ac_compile) 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); } &&
2922          { ac_try='test -s conftest.$ac_objext'
2923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924   (eval $ac_try) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; }; then
2928   ac_compiler_gnu=yes
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 ac_compiler_gnu=no
2934 fi
2935 rm -f conftest.$ac_objext conftest.$ac_ext
2936 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2937
2938 fi
2939 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2940 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2941 GCC=`test $ac_compiler_gnu = yes && echo yes`
2942 ac_test_CFLAGS=${CFLAGS+set}
2943 ac_save_CFLAGS=$CFLAGS
2944 CFLAGS="-g"
2945 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2946 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2947 if test "${ac_cv_prog_cc_g+set}" = set; then
2948   echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950   cat >conftest.$ac_ext <<_ACEOF
2951 #line $LINENO "configure"
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957
2958 int
2959 main ()
2960 {
2961
2962   ;
2963   return 0;
2964 }
2965 _ACEOF
2966 rm -f conftest.$ac_objext
2967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2968   (eval $ac_compile) 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); } &&
2972          { ac_try='test -s conftest.$ac_objext'
2973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974   (eval $ac_try) 2>&5
2975   ac_status=$?
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); }; }; then
2978   ac_cv_prog_cc_g=yes
2979 else
2980   echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2982
2983 ac_cv_prog_cc_g=no
2984 fi
2985 rm -f conftest.$ac_objext conftest.$ac_ext
2986 fi
2987 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2988 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2989 if test "$ac_test_CFLAGS" = set; then
2990   CFLAGS=$ac_save_CFLAGS
2991 elif test $ac_cv_prog_cc_g = yes; then
2992   if test "$GCC" = yes; then
2993     CFLAGS="-g -O2"
2994   else
2995     CFLAGS="-g"
2996   fi
2997 else
2998   if test "$GCC" = yes; then
2999     CFLAGS="-O2"
3000   else
3001     CFLAGS=
3002   fi
3003 fi
3004 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3005 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3006 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3007   echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009   ac_cv_prog_cc_stdc=no
3010 ac_save_CC=$CC
3011 cat >conftest.$ac_ext <<_ACEOF
3012 #line $LINENO "configure"
3013 /* confdefs.h.  */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h.  */
3018 #include <stdarg.h>
3019 #include <stdio.h>
3020 #include <sys/types.h>
3021 #include <sys/stat.h>
3022 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3023 struct buf { int x; };
3024 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3025 static char *e (p, i)
3026      char **p;
3027      int i;
3028 {
3029   return p[i];
3030 }
3031 static char *f (char * (*g) (char **, int), char **p, ...)
3032 {
3033   char *s;
3034   va_list v;
3035   va_start (v,p);
3036   s = g (p, va_arg (v,int));
3037   va_end (v);
3038   return s;
3039 }
3040 int test (int i, double x);
3041 struct s1 {int (*f) (int a);};
3042 struct s2 {int (*f) (double a);};
3043 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3044 int argc;
3045 char **argv;
3046 int
3047 main ()
3048 {
3049 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3050   ;
3051   return 0;
3052 }
3053 _ACEOF
3054 # Don't try gcc -ansi; that turns off useful extensions and
3055 # breaks some systems' header files.
3056 # AIX                   -qlanglvl=ansi
3057 # Ultrix and OSF/1      -std1
3058 # HP-UX 10.20 and later -Ae
3059 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3060 # SVR4                  -Xc -D__EXTENSIONS__
3061 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3062 do
3063   CC="$ac_save_CC $ac_arg"
3064   rm -f conftest.$ac_objext
3065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066   (eval $ac_compile) 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } &&
3070          { ac_try='test -s conftest.$ac_objext'
3071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072   (eval $ac_try) 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); }; }; then
3076   ac_cv_prog_cc_stdc=$ac_arg
3077 break
3078 else
3079   echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3081
3082 fi
3083 rm -f conftest.$ac_objext
3084 done
3085 rm -f conftest.$ac_ext conftest.$ac_objext
3086 CC=$ac_save_CC
3087
3088 fi
3089
3090 case "x$ac_cv_prog_cc_stdc" in
3091   x|xno)
3092     echo "$as_me:$LINENO: result: none needed" >&5
3093 echo "${ECHO_T}none needed" >&6 ;;
3094   *)
3095     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3096 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3097     CC="$CC $ac_cv_prog_cc_stdc" ;;
3098 esac
3099
3100 # Some people use a C++ compiler to compile C.  Since we use `exit',
3101 # in C++ we need to declare it.  In case someone uses the same compiler
3102 # for both compiling C and C++ we need to have the C++ compiler decide
3103 # the declaration of exit, since it's the most demanding environment.
3104 cat >conftest.$ac_ext <<_ACEOF
3105 #ifndef __cplusplus
3106   choke me
3107 #endif
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111   (eval $ac_compile) 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); } &&
3115          { ac_try='test -s conftest.$ac_objext'
3116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117   (eval $ac_try) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; }; then
3121   for ac_declaration in \
3122    ''\
3123    '#include <stdlib.h>' \
3124    'extern "C" void std::exit (int) throw (); using std::exit;' \
3125    'extern "C" void std::exit (int); using std::exit;' \
3126    'extern "C" void exit (int) throw ();' \
3127    'extern "C" void exit (int);' \
3128    'void exit (int);'
3129 do
3130   cat >conftest.$ac_ext <<_ACEOF
3131 #line $LINENO "configure"
3132 /* confdefs.h.  */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h.  */
3137 #include <stdlib.h>
3138 $ac_declaration
3139 int
3140 main ()
3141 {
3142 exit (42);
3143   ;
3144   return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.$ac_objext
3148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3149   (eval $ac_compile) 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); } &&
3153          { ac_try='test -s conftest.$ac_objext'
3154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155   (eval $ac_try) 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; }; then
3159   :
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 continue
3165 fi
3166 rm -f conftest.$ac_objext conftest.$ac_ext
3167   cat >conftest.$ac_ext <<_ACEOF
3168 #line $LINENO "configure"
3169 /* confdefs.h.  */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h.  */
3174 $ac_declaration
3175 int
3176 main ()
3177 {
3178 exit (42);
3179   ;
3180   return 0;
3181 }
3182 _ACEOF
3183 rm -f conftest.$ac_objext
3184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3185   (eval $ac_compile) 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); } &&
3189          { ac_try='test -s conftest.$ac_objext'
3190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191   (eval $ac_try) 2>&5
3192   ac_status=$?
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); }; }; then
3195   break
3196 else
3197   echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200 fi
3201 rm -f conftest.$ac_objext conftest.$ac_ext
3202 done
3203 rm -f conftest*
3204 if test -n "$ac_declaration"; then
3205   echo '#ifdef __cplusplus' >>confdefs.h
3206   echo $ac_declaration      >>confdefs.h
3207   echo '#endif'             >>confdefs.h
3208 fi
3209
3210 else
3211   echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214 fi
3215 rm -f conftest.$ac_objext conftest.$ac_ext
3216 ac_ext=c
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3228 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3229 # On Suns, sometimes $CPP names a directory.
3230 if test -n "$CPP" && test -d "$CPP"; then
3231   CPP=
3232 fi
3233 if test -z "$CPP"; then
3234   if test "${ac_cv_prog_CPP+set}" = set; then
3235   echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237       # Double quotes because CPP needs to be expanded
3238     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3239     do
3240       ac_preproc_ok=false
3241 for ac_c_preproc_warn_flag in '' yes
3242 do
3243   # Use a header file that comes with gcc, so configuring glibc
3244   # with a fresh cross-compiler works.
3245   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246   # <limits.h> exists even on freestanding compilers.
3247   # On the NeXT, cc -E runs the code through the compiler's parser,
3248   # not just through cpp. "Syntax error" is here to catch this case.
3249   cat >conftest.$ac_ext <<_ACEOF
3250 #line $LINENO "configure"
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256 #ifdef __STDC__
3257 # include <limits.h>
3258 #else
3259 # include <assert.h>
3260 #endif
3261                      Syntax error
3262 _ACEOF
3263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3264   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3265   ac_status=$?
3266   grep -v '^ *+' conftest.er1 >conftest.err
3267   rm -f conftest.er1
3268   cat conftest.err >&5
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); } >/dev/null; then
3271   if test -s conftest.err; then
3272     ac_cpp_err=$ac_c_preproc_warn_flag
3273   else
3274     ac_cpp_err=
3275   fi
3276 else
3277   ac_cpp_err=yes
3278 fi
3279 if test -z "$ac_cpp_err"; then
3280   :
3281 else
3282   echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285   # Broken: fails on valid input.
3286 continue
3287 fi
3288 rm -f conftest.err conftest.$ac_ext
3289
3290   # OK, works on sane cases.  Now check whether non-existent headers
3291   # can be detected and how.
3292   cat >conftest.$ac_ext <<_ACEOF
3293 #line $LINENO "configure"
3294 /* confdefs.h.  */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h.  */
3299 #include <ac_nonexistent.h>
3300 _ACEOF
3301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3302   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3303   ac_status=$?
3304   grep -v '^ *+' conftest.er1 >conftest.err
3305   rm -f conftest.er1
3306   cat conftest.err >&5
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } >/dev/null; then
3309   if test -s conftest.err; then
3310     ac_cpp_err=$ac_c_preproc_warn_flag
3311   else
3312     ac_cpp_err=
3313   fi
3314 else
3315   ac_cpp_err=yes
3316 fi
3317 if test -z "$ac_cpp_err"; then
3318   # Broken: success on invalid input.
3319 continue
3320 else
3321   echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3323
3324   # Passes both tests.
3325 ac_preproc_ok=:
3326 break
3327 fi
3328 rm -f conftest.err conftest.$ac_ext
3329
3330 done
3331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332 rm -f conftest.err conftest.$ac_ext
3333 if $ac_preproc_ok; then
3334   break
3335 fi
3336
3337     done
3338     ac_cv_prog_CPP=$CPP
3339
3340 fi
3341   CPP=$ac_cv_prog_CPP
3342 else
3343   ac_cv_prog_CPP=$CPP
3344 fi
3345 echo "$as_me:$LINENO: result: $CPP" >&5
3346 echo "${ECHO_T}$CPP" >&6
3347 ac_preproc_ok=false
3348 for ac_c_preproc_warn_flag in '' yes
3349 do
3350   # Use a header file that comes with gcc, so configuring glibc
3351   # with a fresh cross-compiler works.
3352   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353   # <limits.h> exists even on freestanding compilers.
3354   # On the NeXT, cc -E runs the code through the compiler's parser,
3355   # not just through cpp. "Syntax error" is here to catch this case.
3356   cat >conftest.$ac_ext <<_ACEOF
3357 #line $LINENO "configure"
3358 /* confdefs.h.  */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h.  */
3363 #ifdef __STDC__
3364 # include <limits.h>
3365 #else
3366 # include <assert.h>
3367 #endif
3368                      Syntax error
3369 _ACEOF
3370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3371   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3372   ac_status=$?
3373   grep -v '^ *+' conftest.er1 >conftest.err
3374   rm -f conftest.er1
3375   cat conftest.err >&5
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); } >/dev/null; then
3378   if test -s conftest.err; then
3379     ac_cpp_err=$ac_c_preproc_warn_flag
3380   else
3381     ac_cpp_err=
3382   fi
3383 else
3384   ac_cpp_err=yes
3385 fi
3386 if test -z "$ac_cpp_err"; then
3387   :
3388 else
3389   echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392   # Broken: fails on valid input.
3393 continue
3394 fi
3395 rm -f conftest.err conftest.$ac_ext
3396
3397   # OK, works on sane cases.  Now check whether non-existent headers
3398   # can be detected and how.
3399   cat >conftest.$ac_ext <<_ACEOF
3400 #line $LINENO "configure"
3401 /* confdefs.h.  */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h.  */
3406 #include <ac_nonexistent.h>
3407 _ACEOF
3408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3409   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3410   ac_status=$?
3411   grep -v '^ *+' conftest.er1 >conftest.err
3412   rm -f conftest.er1
3413   cat conftest.err >&5
3414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); } >/dev/null; then
3416   if test -s conftest.err; then
3417     ac_cpp_err=$ac_c_preproc_warn_flag
3418   else
3419     ac_cpp_err=
3420   fi
3421 else
3422   ac_cpp_err=yes
3423 fi
3424 if test -z "$ac_cpp_err"; then
3425   # Broken: success on invalid input.
3426 continue
3427 else
3428   echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3430
3431   # Passes both tests.
3432 ac_preproc_ok=:
3433 break
3434 fi
3435 rm -f conftest.err conftest.$ac_ext
3436
3437 done
3438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439 rm -f conftest.err conftest.$ac_ext
3440 if $ac_preproc_ok; then
3441   :
3442 else
3443   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444 See \`config.log' for more details." >&5
3445 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446 See \`config.log' for more details." >&2;}
3447    { (exit 1); exit 1; }; }
3448 fi
3449
3450 ac_ext=c
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
3456
3457 if test "$GCC" != "yes"
3458 then
3459         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3460 echo "$as_me: error: gcc required but not found" >&2;}
3461    { (exit 1); exit 1; }; }
3462 fi
3463
3464 if test "$GXX" != "yes"
3465 then
3466         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3467 echo "$as_me: error: g++ required but not found" >&2;}
3468    { (exit 1); exit 1; }; }
3469 fi
3470
3471 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3472 if test "$gccmajor" -lt "3"
3473 then
3474         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3475 echo "$as_me: error: gcc 3.x required" >&2;}
3476    { (exit 1); exit 1; }; }
3477 fi
3478
3479  echo "$as_me:$LINENO: checking for GNU make" >&5
3480 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3481 if test "${_cv_gnu_make_command+set}" = set; then
3482   echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484   _cv_gnu_make_command='' ;
3485                 for a in "$MAKE" make gmake gnumake ; do
3486                         if test -z "$a" ; then continue ; fi ;
3487                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3488                                 _cv_gnu_make_command=$a ;
3489                                 break;
3490                         fi
3491                 done ;
3492
3493 fi
3494 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3495 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3496         if test  "x$_cv_gnu_make_command" != "x"  ; then
3497                 ifGNUmake='' ;
3498         else
3499                 ifGNUmake='#' ;
3500                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3501 echo "${ECHO_T}\"Not found\"" >&6;
3502         fi
3503
3504
3505 if test -z "$_cv_gnu_make_command"
3506 then
3507         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3508 echo "$as_me: error: GNU Make required but not found" >&2;}
3509    { (exit 1); exit 1; }; }
3510 fi
3511
3512
3513 echo "$as_me:$LINENO: checking " >&5
3514 echo $ECHO_N "checking ... $ECHO_C" >&6
3515 if test "${ac_cv_has_flex+set}" = set; then
3516   echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518   for ac_prog in flex lex
3519 do
3520   # Extract the first word of "$ac_prog", so it can be a program name with args.
3521 set dummy $ac_prog; ac_word=$2
3522 echo "$as_me:$LINENO: checking for $ac_word" >&5
3523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3524 if test "${ac_cv_prog_LEX+set}" = set; then
3525   echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527   if test -n "$LEX"; then
3528   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533   IFS=$as_save_IFS
3534   test -z "$as_dir" && as_dir=.
3535   for ac_exec_ext in '' $ac_executable_extensions; do
3536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537     ac_cv_prog_LEX="$ac_prog"
3538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539     break 2
3540   fi
3541 done
3542 done
3543
3544 fi
3545 fi
3546 LEX=$ac_cv_prog_LEX
3547 if test -n "$LEX"; then
3548   echo "$as_me:$LINENO: result: $LEX" >&5
3549 echo "${ECHO_T}$LEX" >&6
3550 else
3551   echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6
3553 fi
3554
3555   test -n "$LEX" && break
3556 done
3557 test -n "$LEX" || LEX=":"
3558
3559 if test -z "$LEXLIB"
3560 then
3561   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3562 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3563 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   ac_check_lib_save_LIBS=$LIBS
3567 LIBS="-lfl  $LIBS"
3568 cat >conftest.$ac_ext <<_ACEOF
3569 #line $LINENO "configure"
3570 /* confdefs.h.  */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h.  */
3575
3576 /* Override any gcc2 internal prototype to avoid an error.  */
3577 #ifdef __cplusplus
3578 extern "C"
3579 #endif
3580 /* We use char because int might match the return type of a gcc2
3581    builtin and then its argument prototype would still apply.  */
3582 char yywrap ();
3583 int
3584 main ()
3585 {
3586 yywrap ();
3587   ;
3588   return 0;
3589 }
3590 _ACEOF
3591 rm -f conftest.$ac_objext conftest$ac_exeext
3592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3593   (eval $ac_link) 2>&5
3594   ac_status=$?
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); } &&
3597          { ac_try='test -s conftest$ac_exeext'
3598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599   (eval $ac_try) 2>&5
3600   ac_status=$?
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); }; }; then
3603   ac_cv_lib_fl_yywrap=yes
3604 else
3605   echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3607
3608 ac_cv_lib_fl_yywrap=no
3609 fi
3610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3611 LIBS=$ac_check_lib_save_LIBS
3612 fi
3613 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3614 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3615 if test $ac_cv_lib_fl_yywrap = yes; then
3616   LEXLIB="-lfl"
3617 else
3618   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3619 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3620 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3621   echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623   ac_check_lib_save_LIBS=$LIBS
3624 LIBS="-ll  $LIBS"
3625 cat >conftest.$ac_ext <<_ACEOF
3626 #line $LINENO "configure"
3627 /* confdefs.h.  */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h.  */
3632
3633 /* Override any gcc2 internal prototype to avoid an error.  */
3634 #ifdef __cplusplus
3635 extern "C"
3636 #endif
3637 /* We use char because int might match the return type of a gcc2
3638    builtin and then its argument prototype would still apply.  */
3639 char yywrap ();
3640 int
3641 main ()
3642 {
3643 yywrap ();
3644   ;
3645   return 0;
3646 }
3647 _ACEOF
3648 rm -f conftest.$ac_objext conftest$ac_exeext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3650   (eval $ac_link) 2>&5
3651   ac_status=$?
3652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653   (exit $ac_status); } &&
3654          { ac_try='test -s conftest$ac_exeext'
3655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656   (eval $ac_try) 2>&5
3657   ac_status=$?
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); }; }; then
3660   ac_cv_lib_l_yywrap=yes
3661 else
3662   echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3664
3665 ac_cv_lib_l_yywrap=no
3666 fi
3667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3668 LIBS=$ac_check_lib_save_LIBS
3669 fi
3670 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3671 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3672 if test $ac_cv_lib_l_yywrap = yes; then
3673   LEXLIB="-ll"
3674 fi
3675
3676 fi
3677
3678 fi
3679
3680 if test "x$LEX" != "x:"; then
3681   echo "$as_me:$LINENO: checking lex output file root" >&5
3682 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3683 if test "${ac_cv_prog_lex_root+set}" = set; then
3684   echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686   # The minimal lex program is just a single line: %%.  But some broken lexes
3687 # (Solaris, I think it was) want two %% lines, so accommodate them.
3688 cat >conftest.l <<_ACEOF
3689 %%
3690 %%
3691 _ACEOF
3692 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3693   (eval $LEX conftest.l) 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); }
3697 if test -f lex.yy.c; then
3698   ac_cv_prog_lex_root=lex.yy
3699 elif test -f lexyy.c; then
3700   ac_cv_prog_lex_root=lexyy
3701 else
3702   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3703 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3704    { (exit 1); exit 1; }; }
3705 fi
3706 fi
3707 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3708 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3709 rm -f conftest.l
3710 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3711
3712 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3713 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3714 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   # POSIX says lex can declare yytext either as a pointer or an array; the
3718 # default is implementation-dependent. Figure out which it is, since
3719 # not all implementations provide the %pointer and %array declarations.
3720 ac_cv_prog_lex_yytext_pointer=no
3721 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3722 ac_save_LIBS=$LIBS
3723 LIBS="$LIBS $LEXLIB"
3724 cat >conftest.$ac_ext <<_ACEOF
3725 `cat $LEX_OUTPUT_ROOT.c`
3726 _ACEOF
3727 rm -f conftest.$ac_objext conftest$ac_exeext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729   (eval $ac_link) 2>&5
3730   ac_status=$?
3731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732   (exit $ac_status); } &&
3733          { ac_try='test -s conftest$ac_exeext'
3734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735   (eval $ac_try) 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); }; }; then
3739   ac_cv_prog_lex_yytext_pointer=yes
3740 else
3741   echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3743
3744 fi
3745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3746 LIBS=$ac_save_LIBS
3747 rm -f "${LEX_OUTPUT_ROOT}.c"
3748
3749 fi
3750 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3751 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3752 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3753
3754 cat >>confdefs.h <<\_ACEOF
3755 #define YYTEXT_POINTER 1
3756 _ACEOF
3757
3758 fi
3759
3760 fi
3761
3762 fi
3763 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3764 echo "${ECHO_T}$ac_cv_has_flex" >&6
3765 if test "$LEX" != "flex"; then
3766   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3767 echo "$as_me: error: flex not found but required" >&2;}
3768    { (exit 1); exit 1; }; }
3769 fi
3770
3771 echo "$as_me:$LINENO: checking " >&5
3772 echo $ECHO_N "checking ... $ECHO_C" >&6
3773 if test "${ac_cv_has_bison+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   for ac_prog in 'bison -y' byacc
3777 do
3778   # Extract the first word of "$ac_prog", so it can be a program name with args.
3779 set dummy $ac_prog; ac_word=$2
3780 echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_prog_YACC+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   if test -n "$YACC"; then
3786   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793   for ac_exec_ext in '' $ac_executable_extensions; do
3794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795     ac_cv_prog_YACC="$ac_prog"
3796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797     break 2
3798   fi
3799 done
3800 done
3801
3802 fi
3803 fi
3804 YACC=$ac_cv_prog_YACC
3805 if test -n "$YACC"; then
3806   echo "$as_me:$LINENO: result: $YACC" >&5
3807 echo "${ECHO_T}$YACC" >&6
3808 else
3809   echo "$as_me:$LINENO: result: no" >&5
3810 echo "${ECHO_T}no" >&6
3811 fi
3812
3813   test -n "$YACC" && break
3814 done
3815 test -n "$YACC" || YACC="yacc"
3816
3817
3818 fi
3819 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3820 echo "${ECHO_T}$ac_cv_has_bison" >&6
3821 if test "$YACC" != "bison -y"; then
3822   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3823 echo "$as_me: error: bison not found but required" >&2;}
3824    { (exit 1); exit 1; }; }
3825 else
3826   YACC=bison
3827
3828 fi
3829
3830
3831 # Check whether --enable-shared or --disable-shared was given.
3832 if test "${enable_shared+set}" = set; then
3833   enableval="$enable_shared"
3834   p=${PACKAGE-default}
3835     case $enableval in
3836     yes) enable_shared=yes ;;
3837     no) enable_shared=no ;;
3838     *)
3839       enable_shared=no
3840       # Look at the argument we got.  We use all the common list separators.
3841       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3842       for pkg in $enableval; do
3843         IFS="$lt_save_ifs"
3844         if test "X$pkg" = "X$p"; then
3845           enable_shared=yes
3846         fi
3847       done
3848       IFS="$lt_save_ifs"
3849       ;;
3850     esac
3851 else
3852   enable_shared=yes
3853 fi;
3854
3855 # Check whether --enable-static or --disable-static was given.
3856 if test "${enable_static+set}" = set; then
3857   enableval="$enable_static"
3858   p=${PACKAGE-default}
3859     case $enableval in
3860     yes) enable_static=yes ;;
3861     no) enable_static=no ;;
3862     *)
3863      enable_static=no
3864       # Look at the argument we got.  We use all the common list separators.
3865       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3866       for pkg in $enableval; do
3867         IFS="$lt_save_ifs"
3868         if test "X$pkg" = "X$p"; then
3869           enable_static=yes
3870         fi
3871       done
3872       IFS="$lt_save_ifs"
3873       ;;
3874     esac
3875 else
3876   enable_static=yes
3877 fi;
3878
3879 # Check whether --enable-fast-install or --disable-fast-install was given.
3880 if test "${enable_fast_install+set}" = set; then
3881   enableval="$enable_fast_install"
3882   p=${PACKAGE-default}
3883     case $enableval in
3884     yes) enable_fast_install=yes ;;
3885     no) enable_fast_install=no ;;
3886     *)
3887       enable_fast_install=no
3888       # Look at the argument we got.  We use all the common list separators.
3889       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3890       for pkg in $enableval; do
3891         IFS="$lt_save_ifs"
3892         if test "X$pkg" = "X$p"; then
3893           enable_fast_install=yes
3894         fi
3895       done
3896       IFS="$lt_save_ifs"
3897       ;;
3898     esac
3899 else
3900   enable_fast_install=yes
3901 fi;
3902
3903 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3904 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3905 if test "${lt_cv_path_SED+set}" = set; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908   # Loop through the user's path and test for sed and gsed.
3909 # Then use that list of sed's as ones to test for truncation.
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915   for lt_ac_prog in sed gsed; do
3916     for ac_exec_ext in '' $ac_executable_extensions; do
3917       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3918         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3919       fi
3920     done
3921   done
3922 done
3923 lt_ac_max=0
3924 lt_ac_count=0
3925 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3926 # along with /bin/sed that truncates output.
3927 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3928   test ! -f $lt_ac_sed && break
3929   cat /dev/null > conftest.in
3930   lt_ac_count=0
3931   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3932   # Check for GNU sed and select it if it is found.
3933   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3934     lt_cv_path_SED=$lt_ac_sed
3935     break
3936   fi
3937   while true; do
3938     cat conftest.in conftest.in >conftest.tmp
3939     mv conftest.tmp conftest.in
3940     cp conftest.in conftest.nl
3941     echo >>conftest.nl
3942     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3943     cmp -s conftest.out conftest.nl || break
3944     # 10000 chars as input seems more than enough
3945     test $lt_ac_count -gt 10 && break
3946     lt_ac_count=`expr $lt_ac_count + 1`
3947     if test $lt_ac_count -gt $lt_ac_max; then
3948       lt_ac_max=$lt_ac_count
3949       lt_cv_path_SED=$lt_ac_sed
3950     fi
3951   done
3952 done
3953 SED=$lt_cv_path_SED
3954
3955 fi
3956
3957 echo "$as_me:$LINENO: result: $SED" >&5
3958 echo "${ECHO_T}$SED" >&6
3959
3960 echo "$as_me:$LINENO: checking for egrep" >&5
3961 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3962 if test "${ac_cv_prog_egrep+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3966     then ac_cv_prog_egrep='grep -E'
3967     else ac_cv_prog_egrep='egrep'
3968     fi
3969 fi
3970 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3971 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3972  EGREP=$ac_cv_prog_egrep
3973
3974
3975
3976 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3977 if test "${with_gnu_ld+set}" = set; then
3978   withval="$with_gnu_ld"
3979   test "$withval" = no || with_gnu_ld=yes
3980 else
3981   with_gnu_ld=no
3982 fi;
3983 ac_prog=ld
3984 if test "$GCC" = yes; then
3985   # Check if gcc -print-prog-name=ld gives a path.
3986   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3987 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3988   case $host in
3989   *-*-mingw*)
3990     # gcc leaves a trailing carriage return which upsets mingw
3991     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3992   *)
3993     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3994   esac
3995   case $ac_prog in
3996     # Accept absolute paths.
3997     [\\/]* | ?:[\\/]*)
3998       re_direlt='/[^/][^/]*/\.\./'
3999       # Canonicalize the path of ld
4000       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4001       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4002         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4003       done
4004       test -z "$LD" && LD="$ac_prog"
4005       ;;
4006   "")
4007     # If it fails, then pretend we aren't using GCC.
4008     ac_prog=ld
4009     ;;
4010   *)
4011     # If it is relative, then search for the first ld in PATH.
4012     with_gnu_ld=unknown
4013     ;;
4014   esac
4015 elif test "$with_gnu_ld" = yes; then
4016   echo "$as_me:$LINENO: checking for GNU ld" >&5
4017 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4018 else
4019   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4020 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4021 fi
4022 if test "${lt_cv_path_LD+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   if test -z "$LD"; then
4026   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4027   for ac_dir in $PATH; do
4028     IFS="$lt_save_ifs"
4029     test -z "$ac_dir" && ac_dir=.
4030     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4031       lt_cv_path_LD="$ac_dir/$ac_prog"
4032       # Check to see if the program is GNU ld.  I'd rather use --version,
4033       # but apparently some GNU ld's only accept -v.
4034       # Break only if it was the GNU/non-GNU ld that we prefer.
4035       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4036       *GNU* | *'with BFD'*)
4037         test "$with_gnu_ld" != no && break
4038         ;;
4039       *)
4040         test "$with_gnu_ld" != yes && break
4041         ;;
4042       esac
4043     fi
4044   done
4045   IFS="$lt_save_ifs"
4046 else
4047   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4048 fi
4049 fi
4050
4051 LD="$lt_cv_path_LD"
4052 if test -n "$LD"; then
4053   echo "$as_me:$LINENO: result: $LD" >&5
4054 echo "${ECHO_T}$LD" >&6
4055 else
4056   echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4058 fi
4059 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4060 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4061    { (exit 1); exit 1; }; }
4062 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4063 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4064 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4068 case `"$LD" -v 2>&1 </dev/null` in
4069 *GNU* | *'with BFD'*)
4070   lt_cv_prog_gnu_ld=yes
4071   ;;
4072 *)
4073   lt_cv_prog_gnu_ld=no
4074   ;;
4075 esac
4076 fi
4077 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4078 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4079 with_gnu_ld=$lt_cv_prog_gnu_ld
4080
4081
4082 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4083 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4084 if test "${lt_cv_ld_reload_flag+set}" = set; then
4085   echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087   lt_cv_ld_reload_flag='-r'
4088 fi
4089 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4090 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4091 reload_flag=$lt_cv_ld_reload_flag
4092 case $reload_flag in
4093 "" | " "*) ;;
4094 *) reload_flag=" $reload_flag" ;;
4095 esac
4096 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4097
4098 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4099 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4100 if test "${lt_cv_path_NM+set}" = set; then
4101   echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103   if test -n "$NM"; then
4104   # Let the user override the test.
4105   lt_cv_path_NM="$NM"
4106 else
4107   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4108   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4109     IFS="$lt_save_ifs"
4110     test -z "$ac_dir" && ac_dir=.
4111     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4112     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4113       # Check to see if the nm accepts a BSD-compat flag.
4114       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4115       #   nm: unknown option "B" ignored
4116       # Tru64's nm complains that /dev/null is an invalid object file
4117       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4118       */dev/null* | *'Invalid file or object type'*)
4119         lt_cv_path_NM="$tmp_nm -B"
4120         break
4121         ;;
4122       *)
4123         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4124         */dev/null*)
4125           lt_cv_path_NM="$tmp_nm -p"
4126           break
4127           ;;
4128         *)
4129           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4130           continue # so that we can try to find one that supports BSD flags
4131           ;;
4132         esac
4133       esac
4134     fi
4135   done
4136   IFS="$lt_save_ifs"
4137   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4138 fi
4139 fi
4140 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4141 echo "${ECHO_T}$lt_cv_path_NM" >&6
4142 NM="$lt_cv_path_NM"
4143
4144 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4145 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4146 LN_S=$as_ln_s
4147 if test "$LN_S" = "ln -s"; then
4148   echo "$as_me:$LINENO: result: yes" >&5
4149 echo "${ECHO_T}yes" >&6
4150 else
4151   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4152 echo "${ECHO_T}no, using $LN_S" >&6
4153 fi
4154
4155 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4156 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4157 if test "${lt_cv_deplibs_check_method+set}" = set; then
4158   echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160   lt_cv_file_magic_cmd='$MAGIC_CMD'
4161 lt_cv_file_magic_test_file=
4162 lt_cv_deplibs_check_method='unknown'
4163 # Need to set the preceding variable on all platforms that support
4164 # interlibrary dependencies.
4165 # 'none' -- dependencies not supported.
4166 # `unknown' -- same as none, but documents that we really don't know.
4167 # 'pass_all' -- all dependencies passed with no checks.
4168 # 'test_compile' -- check by making test program.
4169 # 'file_magic [[regex]]' -- check by looking for files in library path
4170 # which responds to the $file_magic_cmd with a given extended regex.
4171 # If you have `file' or equivalent on your system and you're not sure
4172 # whether `pass_all' will *always* work, you probably want this one.
4173
4174 case $host_os in
4175 aix4* | aix5*)
4176   lt_cv_deplibs_check_method=pass_all
4177   ;;
4178
4179 beos*)
4180   lt_cv_deplibs_check_method=pass_all
4181   ;;
4182
4183 bsdi4*)
4184   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4185   lt_cv_file_magic_cmd='/usr/bin/file -L'
4186   lt_cv_file_magic_test_file=/shlib/libc.so
4187   ;;
4188
4189 cygwin* | mingw* | pw32*)
4190   # win32_libid is a shell function defined in ltmain.sh
4191   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4192   lt_cv_file_magic_cmd='win32_libid'
4193   ;;
4194
4195 darwin* | rhapsody*)
4196   # this will be overwritten by pass_all, but leave it in just in case
4197   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4198   lt_cv_file_magic_cmd='/usr/bin/file -L'
4199   case "$host_os" in
4200   rhapsody* | darwin1.[012])
4201     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4202     ;;
4203   *) # Darwin 1.3 on
4204     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4205     ;;
4206   esac
4207   lt_cv_deplibs_check_method=pass_all
4208   ;;
4209
4210 freebsd*)
4211   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4212     case $host_cpu in
4213     i*86 )
4214       # Not sure whether the presence of OpenBSD here was a mistake.
4215       # Let's accept both of them until this is cleared up.
4216       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4217       lt_cv_file_magic_cmd=/usr/bin/file
4218       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4219       ;;
4220     esac
4221   else
4222     lt_cv_deplibs_check_method=pass_all
4223   fi
4224   ;;
4225
4226 gnu*)
4227   lt_cv_deplibs_check_method=pass_all
4228   ;;
4229
4230 hpux10.20* | hpux11*)
4231   lt_cv_file_magic_cmd=/usr/bin/file
4232   case "$host_cpu" in
4233   ia64*)
4234     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4235     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4236     ;;
4237   hppa*64*)
4238     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]'
4239     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4240     ;;
4241   *)
4242     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4243     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4244     ;;
4245   esac
4246   ;;
4247
4248 irix5* | irix6* | nonstopux*)
4249   case $host_os in
4250   irix5* | nonstopux*)
4251     # this will be overridden with pass_all, but let us keep it just in case
4252     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4253     ;;
4254   *)
4255     case $LD in
4256     *-32|*"-32 ") libmagic=32-bit;;
4257     *-n32|*"-n32 ") libmagic=N32;;
4258     *-64|*"-64 ") libmagic=64-bit;;
4259     *) libmagic=never-match;;
4260     esac
4261     # this will be overridden with pass_all, but let us keep it just in case
4262     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4263     ;;
4264   esac
4265   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4266   lt_cv_deplibs_check_method=pass_all
4267   ;;
4268
4269 # This must be Linux ELF.
4270 linux*)
4271   case $host_cpu in
4272   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4273     lt_cv_deplibs_check_method=pass_all ;;
4274   *)
4275     # glibc up to 2.1.1 does not perform some relocations on ARM
4276     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4277   esac
4278   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4279   ;;
4280
4281 netbsd*)
4282   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4283     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4284   else
4285     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4286   fi
4287   ;;
4288
4289 newos6*)
4290   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4291   lt_cv_file_magic_cmd=/usr/bin/file
4292   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4293   ;;
4294
4295 nto-qnx)
4296   lt_cv_deplibs_check_method=unknown
4297   ;;
4298
4299 openbsd*)
4300   lt_cv_file_magic_cmd=/usr/bin/file
4301   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4302   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4303     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4304   else
4305     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4306   fi
4307   ;;
4308
4309 osf3* | osf4* | osf5*)
4310   # this will be overridden with pass_all, but let us keep it just in case
4311   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4312   lt_cv_file_magic_test_file=/shlib/libc.so
4313   lt_cv_deplibs_check_method=pass_all
4314   ;;
4315
4316 sco3.2v5*)
4317   lt_cv_deplibs_check_method=pass_all
4318   ;;
4319
4320 solaris*)
4321   lt_cv_deplibs_check_method=pass_all
4322   lt_cv_file_magic_test_file=/lib/libc.so
4323   ;;
4324
4325 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4326   case $host_vendor in
4327   motorola)
4328     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]'
4329     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4330     ;;
4331   ncr)
4332     lt_cv_deplibs_check_method=pass_all
4333     ;;
4334   sequent)
4335     lt_cv_file_magic_cmd='/bin/file'
4336     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4337     ;;
4338   sni)
4339     lt_cv_file_magic_cmd='/bin/file'
4340     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4341     lt_cv_file_magic_test_file=/lib/libc.so
4342     ;;
4343   siemens)
4344     lt_cv_deplibs_check_method=pass_all
4345     ;;
4346   esac
4347   ;;
4348
4349 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4350   lt_cv_deplibs_check_method=pass_all
4351   ;;
4352 esac
4353
4354 fi
4355 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4356 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4357 file_magic_cmd=$lt_cv_file_magic_cmd
4358 deplibs_check_method=$lt_cv_deplibs_check_method
4359 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4360
4361
4362
4363
4364 # If no C compiler was specified, use CC.
4365 LTCC=${LTCC-"$CC"}
4366
4367 # Allow CC to be a program name with arguments.
4368 compiler=$CC
4369
4370 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4371 if test "${enable_libtool_lock+set}" = set; then
4372   enableval="$enable_libtool_lock"
4373
4374 fi;
4375 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4376
4377 # Some flags need to be propagated to the compiler or linker for good
4378 # libtool support.
4379 case $host in
4380 ia64-*-hpux*)
4381   # Find out which ABI we are using.
4382   echo 'int i;' > conftest.$ac_ext
4383   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384   (eval $ac_compile) 2>&5
4385   ac_status=$?
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); }; then
4388     case `/usr/bin/file conftest.$ac_objext` in
4389     *ELF-32*)
4390       HPUX_IA64_MODE="32"
4391       ;;
4392     *ELF-64*)
4393       HPUX_IA64_MODE="64"
4394       ;;
4395     esac
4396   fi
4397   rm -rf conftest*
4398   ;;
4399 *-*-irix6*)
4400   # Find out which ABI we are using.
4401   echo '#line 4401 "configure"' > conftest.$ac_ext
4402   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4403   (eval $ac_compile) 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; then
4407    if test "$lt_cv_prog_gnu_ld" = yes; then
4408     case `/usr/bin/file conftest.$ac_objext` in
4409     *32-bit*)
4410       LD="${LD-ld} -melf32bsmip"
4411       ;;
4412     *N32*)
4413       LD="${LD-ld} -melf32bmipn32"
4414       ;;
4415     *64-bit*)
4416       LD="${LD-ld} -melf64bmip"
4417       ;;
4418     esac
4419    else
4420     case `/usr/bin/file conftest.$ac_objext` in
4421     *32-bit*)
4422       LD="${LD-ld} -32"
4423       ;;
4424     *N32*)
4425       LD="${LD-ld} -n32"
4426       ;;
4427     *64-bit*)
4428       LD="${LD-ld} -64"
4429       ;;
4430     esac
4431    fi
4432   fi
4433   rm -rf conftest*
4434   ;;
4435
4436 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4437   # Find out which ABI we are using.
4438   echo 'int i;' > conftest.$ac_ext
4439   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440   (eval $ac_compile) 2>&5
4441   ac_status=$?
4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443   (exit $ac_status); }; then
4444     case "`/usr/bin/file conftest.o`" in
4445     *32-bit*)
4446       case $host in
4447         x86_64-*linux*)
4448           LD="${LD-ld} -m elf_i386"
4449           ;;
4450         ppc64-*linux*)
4451           LD="${LD-ld} -m elf32ppclinux"
4452           ;;
4453         s390x-*linux*)
4454           LD="${LD-ld} -m elf_s390"
4455           ;;
4456         sparc64-*linux*)
4457           LD="${LD-ld} -m elf32_sparc"
4458           ;;
4459       esac
4460       ;;
4461     *64-bit*)
4462       case $host in
4463         x86_64-*linux*)
4464           LD="${LD-ld} -m elf_x86_64"
4465           ;;
4466         ppc*-*linux*|powerpc*-*linux*)
4467           LD="${LD-ld} -m elf64ppc"
4468           ;;
4469         s390*-*linux*)
4470           LD="${LD-ld} -m elf64_s390"
4471           ;;
4472         sparc*-*linux*)
4473           LD="${LD-ld} -m elf64_sparc"
4474           ;;
4475       esac
4476       ;;
4477     esac
4478   fi
4479   rm -rf conftest*
4480   ;;
4481
4482 *-*-sco3.2v5*)
4483   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4484   SAVE_CFLAGS="$CFLAGS"
4485   CFLAGS="$CFLAGS -belf"
4486   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4487 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4488 if test "${lt_cv_cc_needs_belf+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   ac_ext=c
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496
4497      cat >conftest.$ac_ext <<_ACEOF
4498 #line $LINENO "configure"
4499 /* confdefs.h.  */
4500 _ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h.  */
4504
4505 int
4506 main ()
4507 {
4508
4509   ;
4510   return 0;
4511 }
4512 _ACEOF
4513 rm -f conftest.$ac_objext conftest$ac_exeext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4515   (eval $ac_link) 2>&5
4516   ac_status=$?
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); } &&
4519          { ac_try='test -s conftest$ac_exeext'
4520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521   (eval $ac_try) 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }; }; then
4525   lt_cv_cc_needs_belf=yes
4526 else
4527   echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530 lt_cv_cc_needs_belf=no
4531 fi
4532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4533      ac_ext=c
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538
4539 fi
4540 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4541 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4542   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4543     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4544     CFLAGS="$SAVE_CFLAGS"
4545   fi
4546   ;;
4547
4548 esac
4549
4550 need_locks="$enable_libtool_lock"
4551
4552
4553
4554 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4555 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4556 if test "${ac_cv_header_stdc+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   cat >conftest.$ac_ext <<_ACEOF
4560 #line $LINENO "configure"
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566 #include <stdlib.h>
4567 #include <stdarg.h>
4568 #include <string.h>
4569 #include <float.h>
4570
4571 int
4572 main ()
4573 {
4574
4575   ;
4576   return 0;
4577 }
4578 _ACEOF
4579 rm -f conftest.$ac_objext
4580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4581   (eval $ac_compile) 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); } &&
4585          { ac_try='test -s conftest.$ac_objext'
4586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587   (eval $ac_try) 2>&5
4588   ac_status=$?
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); }; }; then
4591   ac_cv_header_stdc=yes
4592 else
4593   echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596 ac_cv_header_stdc=no
4597 fi
4598 rm -f conftest.$ac_objext conftest.$ac_ext
4599
4600 if test $ac_cv_header_stdc = yes; then
4601   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4602   cat >conftest.$ac_ext <<_ACEOF
4603 #line $LINENO "configure"
4604 /* confdefs.h.  */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h.  */
4609 #include <string.h>
4610
4611 _ACEOF
4612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613   $EGREP "memchr" >/dev/null 2>&1; then
4614   :
4615 else
4616   ac_cv_header_stdc=no
4617 fi
4618 rm -f conftest*
4619
4620 fi
4621
4622 if test $ac_cv_header_stdc = yes; then
4623   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4624   cat >conftest.$ac_ext <<_ACEOF
4625 #line $LINENO "configure"
4626 /* confdefs.h.  */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h.  */
4631 #include <stdlib.h>
4632
4633 _ACEOF
4634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4635   $EGREP "free" >/dev/null 2>&1; then
4636   :
4637 else
4638   ac_cv_header_stdc=no
4639 fi
4640 rm -f conftest*
4641
4642 fi
4643
4644 if test $ac_cv_header_stdc = yes; then
4645   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4646   if test "$cross_compiling" = yes; then
4647   :
4648 else
4649   cat >conftest.$ac_ext <<_ACEOF
4650 #line $LINENO "configure"
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656 #include <ctype.h>
4657 #if ((' ' & 0x0FF) == 0x020)
4658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4660 #else
4661 # define ISLOWER(c) \
4662                    (('a' <= (c) && (c) <= 'i') \
4663                      || ('j' <= (c) && (c) <= 'r') \
4664                      || ('s' <= (c) && (c) <= 'z'))
4665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4666 #endif
4667
4668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4669 int
4670 main ()
4671 {
4672   int i;
4673   for (i = 0; i < 256; i++)
4674     if (XOR (islower (i), ISLOWER (i))
4675         || toupper (i) != TOUPPER (i))
4676       exit(2);
4677   exit (0);
4678 }
4679 _ACEOF
4680 rm -f conftest$ac_exeext
4681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682   (eval $ac_link) 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687   (eval $ac_try) 2>&5
4688   ac_status=$?
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); }; }; then
4691   :
4692 else
4693   echo "$as_me: program exited with status $ac_status" >&5
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 ( exit $ac_status )
4698 ac_cv_header_stdc=no
4699 fi
4700 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4701 fi
4702 fi
4703 fi
4704 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4705 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4706 if test $ac_cv_header_stdc = yes; then
4707
4708 cat >>confdefs.h <<\_ACEOF
4709 #define STDC_HEADERS 1
4710 _ACEOF
4711
4712 fi
4713
4714 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4725                   inttypes.h stdint.h unistd.h
4726 do
4727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4728 echo "$as_me:$LINENO: checking for $ac_header" >&5
4729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4731   echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733   cat >conftest.$ac_ext <<_ACEOF
4734 #line $LINENO "configure"
4735 /* confdefs.h.  */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h.  */
4740 $ac_includes_default
4741
4742 #include <$ac_header>
4743 _ACEOF
4744 rm -f conftest.$ac_objext
4745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746   (eval $ac_compile) 2>&5
4747   ac_status=$?
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); } &&
4750          { ac_try='test -s conftest.$ac_objext'
4751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752   (eval $ac_try) 2>&5
4753   ac_status=$?
4754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); }; }; then
4756   eval "$as_ac_Header=yes"
4757 else
4758   echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4760
4761 eval "$as_ac_Header=no"
4762 fi
4763 rm -f conftest.$ac_objext conftest.$ac_ext
4764 fi
4765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4768   cat >>confdefs.h <<_ACEOF
4769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4770 _ACEOF
4771
4772 fi
4773
4774 done
4775
4776
4777
4778 for ac_header in dlfcn.h
4779 do
4780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
4787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4789 else
4790   # Is the header compilable?
4791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4793 cat >conftest.$ac_ext <<_ACEOF
4794 #line $LINENO "configure"
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800 $ac_includes_default
4801 #include <$ac_header>
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805   (eval $ac_compile) 2>&5
4806   ac_status=$?
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); } &&
4809          { ac_try='test -s conftest.$ac_objext'
4810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811   (eval $ac_try) 2>&5
4812   ac_status=$?
4813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); }; }; then
4815   ac_header_compiler=yes
4816 else
4817   echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4819
4820 ac_header_compiler=no
4821 fi
4822 rm -f conftest.$ac_objext conftest.$ac_ext
4823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4824 echo "${ECHO_T}$ac_header_compiler" >&6
4825
4826 # Is the header present?
4827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4829 cat >conftest.$ac_ext <<_ACEOF
4830 #line $LINENO "configure"
4831 /* confdefs.h.  */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h.  */
4836 #include <$ac_header>
4837 _ACEOF
4838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4839   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4840   ac_status=$?
4841   grep -v '^ *+' conftest.er1 >conftest.err
4842   rm -f conftest.er1
4843   cat conftest.err >&5
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); } >/dev/null; then
4846   if test -s conftest.err; then
4847     ac_cpp_err=$ac_c_preproc_warn_flag
4848   else
4849     ac_cpp_err=
4850   fi
4851 else
4852   ac_cpp_err=yes
4853 fi
4854 if test -z "$ac_cpp_err"; then
4855   ac_header_preproc=yes
4856 else
4857   echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860   ac_header_preproc=no
4861 fi
4862 rm -f conftest.err conftest.$ac_ext
4863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4864 echo "${ECHO_T}$ac_header_preproc" >&6
4865
4866 # So?  What about this header?
4867 case $ac_header_compiler:$ac_header_preproc in
4868   yes:no )
4869     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4873     (
4874       cat <<\_ASBOX
4875 ## ------------------------------------ ##
4876 ## Report this to bug-autoconf@gnu.org. ##
4877 ## ------------------------------------ ##
4878 _ASBOX
4879     ) |
4880       sed "s/^/$as_me: WARNING:     /" >&2
4881     ;;
4882   no:yes )
4883     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4885     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4889     (
4890       cat <<\_ASBOX
4891 ## ------------------------------------ ##
4892 ## Report this to bug-autoconf@gnu.org. ##
4893 ## ------------------------------------ ##
4894 _ASBOX
4895     ) |
4896       sed "s/^/$as_me: WARNING:     /" >&2
4897     ;;
4898 esac
4899 echo "$as_me:$LINENO: checking for $ac_header" >&5
4900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4902   echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904   eval "$as_ac_Header=$ac_header_preproc"
4905 fi
4906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4908
4909 fi
4910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4911   cat >>confdefs.h <<_ACEOF
4912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4913 _ACEOF
4914
4915 fi
4916
4917 done
4918
4919 ac_ext=cc
4920 ac_cpp='$CXXCPP $CPPFLAGS'
4921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4924 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4925 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4926 if test -z "$CXXCPP"; then
4927   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4928   echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930       # Double quotes because CXXCPP needs to be expanded
4931     for CXXCPP in "$CXX -E" "/lib/cpp"
4932     do
4933       ac_preproc_ok=false
4934 for ac_cxx_preproc_warn_flag in '' yes
4935 do
4936   # Use a header file that comes with gcc, so configuring glibc
4937   # with a fresh cross-compiler works.
4938   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939   # <limits.h> exists even on freestanding compilers.
4940   # On the NeXT, cc -E runs the code through the compiler's parser,
4941   # not just through cpp. "Syntax error" is here to catch this case.
4942   cat >conftest.$ac_ext <<_ACEOF
4943 #line $LINENO "configure"
4944 /* confdefs.h.  */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h.  */
4949 #ifdef __STDC__
4950 # include <limits.h>
4951 #else
4952 # include <assert.h>
4953 #endif
4954                      Syntax error
4955 _ACEOF
4956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4958   ac_status=$?
4959   grep -v '^ *+' conftest.er1 >conftest.err
4960   rm -f conftest.er1
4961   cat conftest.err >&5
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); } >/dev/null; then
4964   if test -s conftest.err; then
4965     ac_cpp_err=$ac_cxx_preproc_warn_flag
4966   else
4967     ac_cpp_err=
4968   fi
4969 else
4970   ac_cpp_err=yes
4971 fi
4972 if test -z "$ac_cpp_err"; then
4973   :
4974 else
4975   echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4977
4978   # Broken: fails on valid input.
4979 continue
4980 fi
4981 rm -f conftest.err conftest.$ac_ext
4982
4983   # OK, works on sane cases.  Now check whether non-existent headers
4984   # can be detected and how.
4985   cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4987 /* confdefs.h.  */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h.  */
4992 #include <ac_nonexistent.h>
4993 _ACEOF
4994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4996   ac_status=$?
4997   grep -v '^ *+' conftest.er1 >conftest.err
4998   rm -f conftest.er1
4999   cat conftest.err >&5
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); } >/dev/null; then
5002   if test -s conftest.err; then
5003     ac_cpp_err=$ac_cxx_preproc_warn_flag
5004   else
5005     ac_cpp_err=
5006   fi
5007 else
5008   ac_cpp_err=yes
5009 fi
5010 if test -z "$ac_cpp_err"; then
5011   # Broken: success on invalid input.
5012 continue
5013 else
5014   echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5016
5017   # Passes both tests.
5018 ac_preproc_ok=:
5019 break
5020 fi
5021 rm -f conftest.err conftest.$ac_ext
5022
5023 done
5024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025 rm -f conftest.err conftest.$ac_ext
5026 if $ac_preproc_ok; then
5027   break
5028 fi
5029
5030     done
5031     ac_cv_prog_CXXCPP=$CXXCPP
5032
5033 fi
5034   CXXCPP=$ac_cv_prog_CXXCPP
5035 else
5036   ac_cv_prog_CXXCPP=$CXXCPP
5037 fi
5038 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5039 echo "${ECHO_T}$CXXCPP" >&6
5040 ac_preproc_ok=false
5041 for ac_cxx_preproc_warn_flag in '' yes
5042 do
5043   # Use a header file that comes with gcc, so configuring glibc
5044   # with a fresh cross-compiler works.
5045   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046   # <limits.h> exists even on freestanding compilers.
5047   # On the NeXT, cc -E runs the code through the compiler's parser,
5048   # not just through cpp. "Syntax error" is here to catch this case.
5049   cat >conftest.$ac_ext <<_ACEOF
5050 #line $LINENO "configure"
5051 /* confdefs.h.  */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h.  */
5056 #ifdef __STDC__
5057 # include <limits.h>
5058 #else
5059 # include <assert.h>
5060 #endif
5061                      Syntax error
5062 _ACEOF
5063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5065   ac_status=$?
5066   grep -v '^ *+' conftest.er1 >conftest.err
5067   rm -f conftest.er1
5068   cat conftest.err >&5
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); } >/dev/null; then
5071   if test -s conftest.err; then
5072     ac_cpp_err=$ac_cxx_preproc_warn_flag
5073   else
5074     ac_cpp_err=
5075   fi
5076 else
5077   ac_cpp_err=yes
5078 fi
5079 if test -z "$ac_cpp_err"; then
5080   :
5081 else
5082   echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5084
5085   # Broken: fails on valid input.
5086 continue
5087 fi
5088 rm -f conftest.err conftest.$ac_ext
5089
5090   # OK, works on sane cases.  Now check whether non-existent headers
5091   # can be detected and how.
5092   cat >conftest.$ac_ext <<_ACEOF
5093 #line $LINENO "configure"
5094 /* confdefs.h.  */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h.  */
5099 #include <ac_nonexistent.h>
5100 _ACEOF
5101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5103   ac_status=$?
5104   grep -v '^ *+' conftest.er1 >conftest.err
5105   rm -f conftest.er1
5106   cat conftest.err >&5
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); } >/dev/null; then
5109   if test -s conftest.err; then
5110     ac_cpp_err=$ac_cxx_preproc_warn_flag
5111   else
5112     ac_cpp_err=
5113   fi
5114 else
5115   ac_cpp_err=yes
5116 fi
5117 if test -z "$ac_cpp_err"; then
5118   # Broken: success on invalid input.
5119 continue
5120 else
5121   echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124   # Passes both tests.
5125 ac_preproc_ok=:
5126 break
5127 fi
5128 rm -f conftest.err conftest.$ac_ext
5129
5130 done
5131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5132 rm -f conftest.err conftest.$ac_ext
5133 if $ac_preproc_ok; then
5134   :
5135 else
5136   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5137 See \`config.log' for more details." >&5
5138 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5139 See \`config.log' for more details." >&2;}
5140    { (exit 1); exit 1; }; }
5141 fi
5142
5143 ac_ext=cc
5144 ac_cpp='$CXXCPP $CPPFLAGS'
5145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5148
5149
5150 ac_ext=f
5151 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5152 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5154 if test -n "$ac_tool_prefix"; then
5155   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5156   do
5157     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5159 echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5161 if test "${ac_cv_prog_F77+set}" = set; then
5162   echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164   if test -n "$F77"; then
5165   ac_cv_prog_F77="$F77" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170   IFS=$as_save_IFS
5171   test -z "$as_dir" && as_dir=.
5172   for ac_exec_ext in '' $ac_executable_extensions; do
5173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176     break 2
5177   fi
5178 done
5179 done
5180
5181 fi
5182 fi
5183 F77=$ac_cv_prog_F77
5184 if test -n "$F77"; then
5185   echo "$as_me:$LINENO: result: $F77" >&5
5186 echo "${ECHO_T}$F77" >&6
5187 else
5188   echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6
5190 fi
5191
5192     test -n "$F77" && break
5193   done
5194 fi
5195 if test -z "$F77"; then
5196   ac_ct_F77=$F77
5197   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5198 do
5199   # Extract the first word of "$ac_prog", so it can be a program name with args.
5200 set dummy $ac_prog; ac_word=$2
5201 echo "$as_me:$LINENO: checking for $ac_word" >&5
5202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5204   echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206   if test -n "$ac_ct_F77"; then
5207   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212   IFS=$as_save_IFS
5213   test -z "$as_dir" && as_dir=.
5214   for ac_exec_ext in '' $ac_executable_extensions; do
5215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216     ac_cv_prog_ac_ct_F77="$ac_prog"
5217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218     break 2
5219   fi
5220 done
5221 done
5222
5223 fi
5224 fi
5225 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5226 if test -n "$ac_ct_F77"; then
5227   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5228 echo "${ECHO_T}$ac_ct_F77" >&6
5229 else
5230   echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6
5232 fi
5233
5234   test -n "$ac_ct_F77" && break
5235 done
5236
5237   F77=$ac_ct_F77
5238 fi
5239
5240
5241 # Provide some information about the compiler.
5242 echo "$as_me:5242:" \
5243      "checking for Fortran 77 compiler version" >&5
5244 ac_compiler=`set X $ac_compile; echo $2`
5245 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5246   (eval $ac_compiler --version </dev/null >&5) 2>&5
5247   ac_status=$?
5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); }
5250 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5251   (eval $ac_compiler -v </dev/null >&5) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }
5255 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5256   (eval $ac_compiler -V </dev/null >&5) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); }
5260
5261 # If we don't use `.F' as extension, the preprocessor is not run on the
5262 # input file.
5263 ac_save_ext=$ac_ext
5264 ac_ext=F
5265 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5266 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5267 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   cat >conftest.$ac_ext <<_ACEOF
5271       program main
5272 #ifndef __GNUC__
5273        choke me
5274 #endif
5275
5276       end
5277 _ACEOF
5278 rm -f conftest.$ac_objext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280   (eval $ac_compile) 2>&5
5281   ac_status=$?
5282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283   (exit $ac_status); } &&
5284          { ac_try='test -s conftest.$ac_objext'
5285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286   (eval $ac_try) 2>&5
5287   ac_status=$?
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); }; }; then
5290   ac_compiler_gnu=yes
5291 else
5292   echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295 ac_compiler_gnu=no
5296 fi
5297 rm -f conftest.$ac_objext conftest.$ac_ext
5298 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5299
5300 fi
5301 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5302 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5303 ac_ext=$ac_save_ext
5304 G77=`test $ac_compiler_gnu = yes && echo yes`
5305 ac_test_FFLAGS=${FFLAGS+set}
5306 ac_save_FFLAGS=$FFLAGS
5307 FFLAGS=
5308 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5309 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5310 if test "${ac_cv_prog_f77_g+set}" = set; then
5311   echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313   FFLAGS=-g
5314 cat >conftest.$ac_ext <<_ACEOF
5315       program main
5316
5317       end
5318 _ACEOF
5319 rm -f conftest.$ac_objext
5320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5321   (eval $ac_compile) 2>&5
5322   ac_status=$?
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); } &&
5325          { ac_try='test -s conftest.$ac_objext'
5326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327   (eval $ac_try) 2>&5
5328   ac_status=$?
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); }; }; then
5331   ac_cv_prog_f77_g=yes
5332 else
5333   echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5335
5336 ac_cv_prog_f77_g=no
5337 fi
5338 rm -f conftest.$ac_objext conftest.$ac_ext
5339
5340 fi
5341 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5342 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5343 if test "$ac_test_FFLAGS" = set; then
5344   FFLAGS=$ac_save_FFLAGS
5345 elif test $ac_cv_prog_f77_g = yes; then
5346   if test "$G77" = yes; then
5347     FFLAGS="-g -O2"
5348   else
5349     FFLAGS="-g"
5350   fi
5351 else
5352   if test "$G77" = yes; then
5353     FFLAGS="-O2"
5354   else
5355     FFLAGS=
5356   fi
5357 fi
5358 ac_ext=c
5359 ac_cpp='$CPP $CPPFLAGS'
5360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5363
5364
5365
5366 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5367
5368 # find the maximum length of command line arguments
5369 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5370 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5371 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5372   echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374     i=0
5375   testring="ABCD"
5376
5377   case $build_os in
5378   msdosdjgpp*)
5379     # On DJGPP, this test can blow up pretty badly due to problems in libc
5380     # (any single argument exceeding 2000 bytes causes a buffer overrun
5381     # during glob expansion).  Even if it were fixed, the result of this
5382     # check would be larger than it should be.
5383     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5384     ;;
5385
5386   gnu*)
5387     # Under GNU Hurd, this test is not required because there is
5388     # no limit to the length of command line arguments.
5389     # Libtool will interpret -1 as no limit whatsoever
5390     lt_cv_sys_max_cmd_len=-1;
5391     ;;
5392
5393   cygwin* | mingw*)
5394     # On Win9x/ME, this test blows up -- it succeeds, but takes
5395     # about 5 minutes as the teststring grows exponentially.
5396     # Worse, since 9x/ME are not pre-emptively multitasking,
5397     # you end up with a "frozen" computer, even though with patience
5398     # the test eventually succeeds (with a max line length of 256k).
5399     # Instead, let's just punt: use the minimum linelength reported by
5400     # all of the supported platforms: 8192 (on NT/2K/XP).
5401     lt_cv_sys_max_cmd_len=8192;
5402     ;;
5403
5404  *)
5405     # If test is not a shell built-in, we'll probably end up computing a
5406     # maximum length that is only half of the actual maximum length, but
5407     # we can't tell.
5408     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5409                = "XX$testring") >/dev/null 2>&1 &&
5410             new_result=`expr "X$testring" : ".*" 2>&1` &&
5411             lt_cv_sys_max_cmd_len=$new_result &&
5412             test $i != 17 # 1/2 MB should be enough
5413     do
5414       i=`expr $i + 1`
5415       testring=$testring$testring
5416     done
5417     testring=
5418     # Add a significant safety factor because C++ compilers can tack on massive
5419     # amounts of additional arguments before passing them to the linker.
5420     # It appears as though 1/2 is a usable value.
5421     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5422     ;;
5423   esac
5424
5425 fi
5426
5427 if test -n $lt_cv_sys_max_cmd_len ; then
5428   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5429 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5430 else
5431   echo "$as_me:$LINENO: result: none" >&5
5432 echo "${ECHO_T}none" >&6
5433 fi
5434
5435
5436
5437
5438 # Check for command to grab the raw symbol name followed by C symbol from nm.
5439 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5440 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5441 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5442   echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444
5445 # These are sane defaults that work on at least a few old systems.
5446 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5447
5448 # Character class describing NM global symbol codes.
5449 symcode='[BCDEGRST]'
5450
5451 # Regexp to match symbols that can be accessed directly from C.
5452 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5453
5454 # Transform the above into a raw symbol and a C symbol.
5455 symxfrm='\1 \2\3 \3'
5456
5457 # Transform an extracted symbol line into a proper C declaration
5458 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5459
5460 # Transform an extracted symbol line into symbol name and symbol address
5461 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'"
5462
5463 # Define system-specific variables.
5464 case $host_os in
5465 aix*)
5466   symcode='[BCDT]'
5467   ;;
5468 cygwin* | mingw* | pw32*)
5469   symcode='[ABCDGISTW]'
5470   ;;
5471 hpux*) # Its linker distinguishes data from code symbols
5472   if test "$host_cpu" = ia64; then
5473     symcode='[ABCDEGRST]'
5474   fi
5475   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5476   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'"
5477   ;;
5478 irix* | nonstopux*)
5479   symcode='[BCDEGRST]'
5480   ;;
5481 osf*)
5482   symcode='[BCDEGQRST]'
5483   ;;
5484 solaris* | sysv5*)
5485   symcode='[BDT]'
5486   ;;
5487 sysv4)
5488   symcode='[DFNSTU]'
5489   ;;
5490 esac
5491
5492 # Handle CRLF in mingw tool chain
5493 opt_cr=
5494 case $build_os in
5495 mingw*)
5496   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5497   ;;
5498 esac
5499
5500 # If we're using GNU nm, then use its standard symbol codes.
5501 case `$NM -V 2>&1` in
5502 *GNU* | *'with BFD'*)
5503   symcode='[ABCDGISTW]' ;;
5504 esac
5505
5506 # Try without a prefix undercore, then with it.
5507 for ac_symprfx in "" "_"; do
5508
5509   # Write the raw and C identifiers.
5510   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5511
5512   # Check to see that the pipe works correctly.
5513   pipe_works=no
5514
5515   rm -f conftest*
5516   cat > conftest.$ac_ext <<EOF
5517 #ifdef __cplusplus
5518 extern "C" {
5519 #endif
5520 char nm_test_var;
5521 void nm_test_func(){}
5522 #ifdef __cplusplus
5523 }
5524 #endif
5525 int main(){nm_test_var='a';nm_test_func();return(0);}
5526 EOF
5527
5528   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5529   (eval $ac_compile) 2>&5
5530   ac_status=$?
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); }; then
5533     # Now try to grab the symbols.
5534     nlist=conftest.nm
5535     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5536   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5537   ac_status=$?
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); } && test -s "$nlist"; then
5540       # Try sorting and uniquifying the output.
5541       if sort "$nlist" | uniq > "$nlist"T; then
5542         mv -f "$nlist"T "$nlist"
5543       else
5544         rm -f "$nlist"T
5545       fi
5546
5547       # Make sure that we snagged all the symbols we need.
5548       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5549         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5550           cat <<EOF > conftest.$ac_ext
5551 #ifdef __cplusplus
5552 extern "C" {
5553 #endif
5554
5555 EOF
5556           # Now generate the symbol file.
5557           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5558
5559           cat <<EOF >> conftest.$ac_ext
5560 #if defined (__STDC__) && __STDC__
5561 # define lt_ptr_t void *
5562 #else
5563 # define lt_ptr_t char *
5564 # define const
5565 #endif
5566
5567 /* The mapping between symbol names and symbols. */
5568 const struct {
5569   const char *name;
5570   lt_ptr_t address;
5571 }
5572 lt_preloaded_symbols[] =
5573 {
5574 EOF
5575           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5576           cat <<\EOF >> conftest.$ac_ext
5577   {0, (lt_ptr_t) 0}
5578 };
5579
5580 #ifdef __cplusplus
5581 }
5582 #endif
5583 EOF
5584           # Now try linking the two files.
5585           mv conftest.$ac_objext conftstm.$ac_objext
5586           lt_save_LIBS="$LIBS"
5587           lt_save_CFLAGS="$CFLAGS"
5588           LIBS="conftstm.$ac_objext"
5589           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5590           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591   (eval $ac_link) 2>&5
5592   ac_status=$?
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5595             pipe_works=yes
5596           fi
5597           LIBS="$lt_save_LIBS"
5598           CFLAGS="$lt_save_CFLAGS"
5599         else
5600           echo "cannot find nm_test_func in $nlist" >&5
5601         fi
5602       else
5603         echo "cannot find nm_test_var in $nlist" >&5
5604       fi
5605     else
5606       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5607     fi
5608   else
5609     echo "$progname: failed program was:" >&5
5610     cat conftest.$ac_ext >&5
5611   fi
5612   rm -f conftest* conftst*
5613
5614   # Do not use the global_symbol_pipe unless it works.
5615   if test "$pipe_works" = yes; then
5616     break
5617   else
5618     lt_cv_sys_global_symbol_pipe=
5619   fi
5620 done
5621
5622 fi
5623
5624 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5625   lt_cv_sys_global_symbol_to_cdecl=
5626 fi
5627 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5628   echo "$as_me:$LINENO: result: failed" >&5
5629 echo "${ECHO_T}failed" >&6
5630 else
5631   echo "$as_me:$LINENO: result: ok" >&5
5632 echo "${ECHO_T}ok" >&6
5633 fi
5634
5635 echo "$as_me:$LINENO: checking for objdir" >&5
5636 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5637 if test "${lt_cv_objdir+set}" = set; then
5638   echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640   rm -f .libs 2>/dev/null
5641 mkdir .libs 2>/dev/null
5642 if test -d .libs; then
5643   lt_cv_objdir=.libs
5644 else
5645   # MS-DOS does not allow filenames that begin with a dot.
5646   lt_cv_objdir=_libs
5647 fi
5648 rmdir .libs 2>/dev/null
5649 fi
5650 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5651 echo "${ECHO_T}$lt_cv_objdir" >&6
5652 objdir=$lt_cv_objdir
5653
5654
5655
5656
5657
5658 case $host_os in
5659 aix3*)
5660   # AIX sometimes has problems with the GCC collect2 program.  For some
5661   # reason, if we set the COLLECT_NAMES environment variable, the problems
5662   # vanish in a puff of smoke.
5663   if test "X${COLLECT_NAMES+set}" != Xset; then
5664     COLLECT_NAMES=
5665     export COLLECT_NAMES
5666   fi
5667   ;;
5668 esac
5669
5670 # Sed substitution that helps us do robust quoting.  It backslashifies
5671 # metacharacters that are still active within double-quoted strings.
5672 Xsed='sed -e s/^X//'
5673 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5674
5675 # Same as above, but do not quote variable references.
5676 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5677
5678 # Sed substitution to delay expansion of an escaped shell variable in a
5679 # double_quote_subst'ed string.
5680 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5681
5682 # Sed substitution to avoid accidental globbing in evaled expressions
5683 no_glob_subst='s/\*/\\\*/g'
5684
5685 # Constants:
5686 rm="rm -f"
5687
5688 # Global variables:
5689 default_ofile=mklib
5690 can_build_shared=yes
5691
5692 # All known linkers require a `.a' archive for static linking (except M$VC,
5693 # which needs '.lib').
5694 libext=a
5695 ltmain="$ac_aux_dir/ltmain.sh"
5696 ofile="$default_ofile"
5697 with_gnu_ld="$lt_cv_prog_gnu_ld"
5698
5699 if test -n "$ac_tool_prefix"; then
5700   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5701 set dummy ${ac_tool_prefix}ar; ac_word=$2
5702 echo "$as_me:$LINENO: checking for $ac_word" >&5
5703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5704 if test "${ac_cv_prog_AR+set}" = set; then
5705   echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707   if test -n "$AR"; then
5708   ac_cv_prog_AR="$AR" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713   IFS=$as_save_IFS
5714   test -z "$as_dir" && as_dir=.
5715   for ac_exec_ext in '' $ac_executable_extensions; do
5716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717     ac_cv_prog_AR="${ac_tool_prefix}ar"
5718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5719     break 2
5720   fi
5721 done
5722 done
5723
5724 fi
5725 fi
5726 AR=$ac_cv_prog_AR
5727 if test -n "$AR"; then
5728   echo "$as_me:$LINENO: result: $AR" >&5
5729 echo "${ECHO_T}$AR" >&6
5730 else
5731   echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6
5733 fi
5734
5735 fi
5736 if test -z "$ac_cv_prog_AR"; then
5737   ac_ct_AR=$AR
5738   # Extract the first word of "ar", so it can be a program name with args.
5739 set dummy ar; ac_word=$2
5740 echo "$as_me:$LINENO: checking for $ac_word" >&5
5741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5742 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   if test -n "$ac_ct_AR"; then
5746   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753   for ac_exec_ext in '' $ac_executable_extensions; do
5754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755     ac_cv_prog_ac_ct_AR="ar"
5756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760 done
5761
5762   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5763 fi
5764 fi
5765 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5766 if test -n "$ac_ct_AR"; then
5767   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5768 echo "${ECHO_T}$ac_ct_AR" >&6
5769 else
5770   echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6
5772 fi
5773
5774   AR=$ac_ct_AR
5775 else
5776   AR="$ac_cv_prog_AR"
5777 fi
5778
5779 if test -n "$ac_tool_prefix"; then
5780   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5781 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5782 echo "$as_me:$LINENO: checking for $ac_word" >&5
5783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5784 if test "${ac_cv_prog_RANLIB+set}" = set; then
5785   echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787   if test -n "$RANLIB"; then
5788   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5789 else
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795   for ac_exec_ext in '' $ac_executable_extensions; do
5796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799     break 2
5800   fi
5801 done
5802 done
5803
5804 fi
5805 fi
5806 RANLIB=$ac_cv_prog_RANLIB
5807 if test -n "$RANLIB"; then
5808   echo "$as_me:$LINENO: result: $RANLIB" >&5
5809 echo "${ECHO_T}$RANLIB" >&6
5810 else
5811   echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6
5813 fi
5814
5815 fi
5816 if test -z "$ac_cv_prog_RANLIB"; then
5817   ac_ct_RANLIB=$RANLIB
5818   # Extract the first word of "ranlib", so it can be a program name with args.
5819 set dummy ranlib; ac_word=$2
5820 echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5822 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   if test -n "$ac_ct_RANLIB"; then
5826   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831   IFS=$as_save_IFS
5832   test -z "$as_dir" && as_dir=.
5833   for ac_exec_ext in '' $ac_executable_extensions; do
5834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835     ac_cv_prog_ac_ct_RANLIB="ranlib"
5836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837     break 2
5838   fi
5839 done
5840 done
5841
5842   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5843 fi
5844 fi
5845 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5846 if test -n "$ac_ct_RANLIB"; then
5847   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5848 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5849 else
5850   echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6
5852 fi
5853
5854   RANLIB=$ac_ct_RANLIB
5855 else
5856   RANLIB="$ac_cv_prog_RANLIB"
5857 fi
5858
5859 if test -n "$ac_tool_prefix"; then
5860   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5861 set dummy ${ac_tool_prefix}strip; ac_word=$2
5862 echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5864 if test "${ac_cv_prog_STRIP+set}" = set; then
5865   echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867   if test -n "$STRIP"; then
5868   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875   for ac_exec_ext in '' $ac_executable_extensions; do
5876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882 done
5883
5884 fi
5885 fi
5886 STRIP=$ac_cv_prog_STRIP
5887 if test -n "$STRIP"; then
5888   echo "$as_me:$LINENO: result: $STRIP" >&5
5889 echo "${ECHO_T}$STRIP" >&6
5890 else
5891   echo "$as_me:$LINENO: result: no" >&5
5892 echo "${ECHO_T}no" >&6
5893 fi
5894
5895 fi
5896 if test -z "$ac_cv_prog_STRIP"; then
5897   ac_ct_STRIP=$STRIP
5898   # Extract the first word of "strip", so it can be a program name with args.
5899 set dummy strip; ac_word=$2
5900 echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5902 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   if test -n "$ac_ct_STRIP"; then
5906   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5907 else
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911   IFS=$as_save_IFS
5912   test -z "$as_dir" && as_dir=.
5913   for ac_exec_ext in '' $ac_executable_extensions; do
5914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915     ac_cv_prog_ac_ct_STRIP="strip"
5916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5917     break 2
5918   fi
5919 done
5920 done
5921
5922   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5923 fi
5924 fi
5925 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5926 if test -n "$ac_ct_STRIP"; then
5927   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5928 echo "${ECHO_T}$ac_ct_STRIP" >&6
5929 else
5930   echo "$as_me:$LINENO: result: no" >&5
5931 echo "${ECHO_T}no" >&6
5932 fi
5933
5934   STRIP=$ac_ct_STRIP
5935 else
5936   STRIP="$ac_cv_prog_STRIP"
5937 fi
5938
5939
5940 old_CC="$CC"
5941 old_CFLAGS="$CFLAGS"
5942
5943 # Set sane defaults for various variables
5944 test -z "$AR" && AR=ar
5945 test -z "$AR_FLAGS" && AR_FLAGS=cru
5946 test -z "$AS" && AS=as
5947 test -z "$CC" && CC=cc
5948 test -z "$LTCC" && LTCC=$CC
5949 test -z "$DLLTOOL" && DLLTOOL=dlltool
5950 test -z "$LD" && LD=ld
5951 test -z "$LN_S" && LN_S="ln -s"
5952 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5953 test -z "$NM" && NM=nm
5954 test -z "$SED" && SED=sed
5955 test -z "$OBJDUMP" && OBJDUMP=objdump
5956 test -z "$RANLIB" && RANLIB=:
5957 test -z "$STRIP" && STRIP=:
5958 test -z "$ac_objext" && ac_objext=o
5959
5960 # Determine commands to create old-style static archives.
5961 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5962 old_postinstall_cmds='chmod 644 $oldlib'
5963 old_postuninstall_cmds=
5964
5965 if test -n "$RANLIB"; then
5966   case $host_os in
5967   openbsd*)
5968     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5969     ;;
5970   *)
5971     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5972     ;;
5973   esac
5974   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5975 fi
5976
5977 # Only perform the check for file, if the check method requires it
5978 case $deplibs_check_method in
5979 file_magic*)
5980   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5981     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5982 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5983 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5984   echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986   case $MAGIC_CMD in
5987 [\\/*] |  ?:[\\/]*)
5988   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5989   ;;
5990 *)
5991   lt_save_MAGIC_CMD="$MAGIC_CMD"
5992   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5993   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5994   for ac_dir in $ac_dummy; do
5995     IFS="$lt_save_ifs"
5996     test -z "$ac_dir" && ac_dir=.
5997     if test -f $ac_dir/${ac_tool_prefix}file; then
5998       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5999       if test -n "$file_magic_test_file"; then
6000         case $deplibs_check_method in
6001         "file_magic "*)
6002           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6003           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6004           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6005             $EGREP "$file_magic_regex" > /dev/null; then
6006             :
6007           else
6008             cat <<EOF 1>&2
6009
6010 *** Warning: the command libtool uses to detect shared libraries,
6011 *** $file_magic_cmd, produces output that libtool cannot recognize.
6012 *** The result is that libtool may fail to recognize shared libraries
6013 *** as such.  This will affect the creation of libtool libraries that
6014 *** depend on shared libraries, but programs linked with such libtool
6015 *** libraries will work regardless of this problem.  Nevertheless, you
6016 *** may want to report the problem to your system manager and/or to
6017 *** bug-libtool@gnu.org
6018
6019 EOF
6020           fi ;;
6021         esac
6022       fi
6023       break
6024     fi
6025   done
6026   IFS="$lt_save_ifs"
6027   MAGIC_CMD="$lt_save_MAGIC_CMD"
6028   ;;
6029 esac
6030 fi
6031
6032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6033 if test -n "$MAGIC_CMD"; then
6034   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6035 echo "${ECHO_T}$MAGIC_CMD" >&6
6036 else
6037   echo "$as_me:$LINENO: result: no" >&5
6038 echo "${ECHO_T}no" >&6
6039 fi
6040
6041 if test -z "$lt_cv_path_MAGIC_CMD"; then
6042   if test -n "$ac_tool_prefix"; then
6043     echo "$as_me:$LINENO: checking for file" >&5
6044 echo $ECHO_N "checking for file... $ECHO_C" >&6
6045 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6046   echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048   case $MAGIC_CMD in
6049 [\\/*] |  ?:[\\/]*)
6050   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6051   ;;
6052 *)
6053   lt_save_MAGIC_CMD="$MAGIC_CMD"
6054   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6055   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6056   for ac_dir in $ac_dummy; do
6057     IFS="$lt_save_ifs"
6058     test -z "$ac_dir" && ac_dir=.
6059     if test -f $ac_dir/file; then
6060       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6061       if test -n "$file_magic_test_file"; then
6062         case $deplibs_check_method in
6063         "file_magic "*)
6064           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6065           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6066           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6067             $EGREP "$file_magic_regex" > /dev/null; then
6068             :
6069           else
6070             cat <<EOF 1>&2
6071
6072 *** Warning: the command libtool uses to detect shared libraries,
6073 *** $file_magic_cmd, produces output that libtool cannot recognize.
6074 *** The result is that libtool may fail to recognize shared libraries
6075 *** as such.  This will affect the creation of libtool libraries that
6076 *** depend on shared libraries, but programs linked with such libtool
6077 *** libraries will work regardless of this problem.  Nevertheless, you
6078 *** may want to report the problem to your system manager and/or to
6079 *** bug-libtool@gnu.org
6080
6081 EOF
6082           fi ;;
6083         esac
6084       fi
6085       break
6086     fi
6087   done
6088   IFS="$lt_save_ifs"
6089   MAGIC_CMD="$lt_save_MAGIC_CMD"
6090   ;;
6091 esac
6092 fi
6093
6094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6095 if test -n "$MAGIC_CMD"; then
6096   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6097 echo "${ECHO_T}$MAGIC_CMD" >&6
6098 else
6099   echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6
6101 fi
6102
6103   else
6104     MAGIC_CMD=:
6105   fi
6106 fi
6107
6108   fi
6109   ;;
6110 esac
6111
6112 enable_dlopen=no
6113 enable_win32_dll=no
6114
6115 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6116 if test "${enable_libtool_lock+set}" = set; then
6117   enableval="$enable_libtool_lock"
6118
6119 fi;
6120 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6121
6122
6123 # Check whether --with-pic or --without-pic was given.
6124 if test "${with_pic+set}" = set; then
6125   withval="$with_pic"
6126   pic_mode="$withval"
6127 else
6128   pic_mode=default
6129 fi;
6130 test -z "$pic_mode" && pic_mode=default
6131
6132 # Use C for the default configuration in the libtool script
6133 tagname=
6134 lt_save_CC="$CC"
6135 ac_ext=c
6136 ac_cpp='$CPP $CPPFLAGS'
6137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140
6141
6142 # Source file extension for C test sources.
6143 ac_ext=c
6144
6145 # Object file extension for compiled C test sources.
6146 objext=o
6147 objext=$objext
6148
6149 # Code to be used in simple compile tests
6150 lt_simple_compile_test_code="int some_variable = 0;\n"
6151
6152 # Code to be used in simple link tests
6153 lt_simple_link_test_code='int main(){return(0);}\n'
6154
6155
6156 # If no C compiler was specified, use CC.
6157 LTCC=${LTCC-"$CC"}
6158
6159 # Allow CC to be a program name with arguments.
6160 compiler=$CC
6161
6162
6163 #
6164 # Check for any special shared library compilation flags.
6165 #
6166 lt_prog_cc_shlib=
6167 if test "$GCC" = no; then
6168   case $host_os in
6169   sco3.2v5*)
6170     lt_prog_cc_shlib='-belf'
6171     ;;
6172   esac
6173 fi
6174 if test -n "$lt_prog_cc_shlib"; then
6175   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6176 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6177   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6178   else
6179     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6180 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6181     lt_cv_prog_cc_can_build_shared=no
6182   fi
6183 fi
6184
6185
6186 #
6187 # Check to make sure the static flag actually works.
6188 #
6189 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6190 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6191 if test "${lt_prog_compiler_static_works+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   lt_prog_compiler_static_works=no
6195    save_LDFLAGS="$LDFLAGS"
6196    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6197    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6198    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6199      # The compiler can only warn and ignore the option if not recognized
6200      # So say no if there are warnings
6201      if test -s conftest.err; then
6202        # Append any errors to the config.log.
6203        cat conftest.err 1>&5
6204      else
6205        lt_prog_compiler_static_works=yes
6206      fi
6207    fi
6208    $rm conftest*
6209    LDFLAGS="$save_LDFLAGS"
6210
6211 fi
6212 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6213 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6214
6215 if test x"$lt_prog_compiler_static_works" = xyes; then
6216     :
6217 else
6218     lt_prog_compiler_static=
6219 fi
6220
6221
6222
6223 ## CAVEAT EMPTOR:
6224 ## There is no encapsulation within the following macros, do not change
6225 ## the running order or otherwise move them around unless you know exactly
6226 ## what you are doing...
6227
6228 lt_prog_compiler_no_builtin_flag=
6229
6230 if test "$GCC" = yes; then
6231   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6232
6233   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6234 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6235 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238   lt_cv_prog_compiler_rtti_exceptions=no
6239   ac_outfile=conftest.$ac_objext
6240    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6241    lt_compiler_flag="-fno-rtti -fno-exceptions"
6242    # Insert the option either (1) after the last *FLAGS variable, or
6243    # (2) before a word containing "conftest.", or (3) at the end.
6244    # Note that $ac_compile itself does not contain backslashes and begins
6245    # with a dollar sign (not a hyphen), so the echo should work correctly.
6246    # The option is referenced via a variable to avoid confusing sed.
6247    lt_compile=`echo "$ac_compile" | $SED \
6248    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6249    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6250    -e 's:$: $lt_compiler_flag:'`
6251    (eval echo "\"\$as_me:6251: $lt_compile\"" >&5)
6252    (eval "$lt_compile" 2>conftest.err)
6253    ac_status=$?
6254    cat conftest.err >&5
6255    echo "$as_me:6255: \$? = $ac_status" >&5
6256    if (exit $ac_status) && test -s "$ac_outfile"; then
6257      # The compiler can only warn and ignore the option if not recognized
6258      # So say no if there are warnings
6259      if test ! -s conftest.err; then
6260        lt_cv_prog_compiler_rtti_exceptions=yes
6261      fi
6262    fi
6263    $rm conftest*
6264
6265 fi
6266 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6267 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6268
6269 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6270     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6271 else
6272     :
6273 fi
6274
6275 fi
6276
6277 lt_prog_compiler_wl=
6278 lt_prog_compiler_pic=
6279 lt_prog_compiler_static=
6280
6281 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6282 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6283
6284   if test "$GCC" = yes; then
6285     lt_prog_compiler_wl='-Wl,'
6286     lt_prog_compiler_static='-static'
6287
6288     case $host_os in
6289       aix*)
6290       # All AIX code is PIC.
6291       if test "$host_cpu" = ia64; then
6292         # AIX 5 now supports IA64 processor
6293         lt_prog_compiler_static='-Bstatic'
6294       fi
6295       ;;
6296
6297     amigaos*)
6298       # FIXME: we need at least 68020 code to build shared libraries, but
6299       # adding the `-m68020' flag to GCC prevents building anything better,
6300       # like `-m68040'.
6301       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6302       ;;
6303
6304     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6305       # PIC is the default for these OSes.
6306       ;;
6307
6308     mingw* | pw32* | os2*)
6309       # This hack is so that the source file can tell whether it is being
6310       # built for inclusion in a dll (and should export symbols for example).
6311       lt_prog_compiler_pic='-DDLL_EXPORT'
6312       ;;
6313
6314     darwin* | rhapsody*)
6315       # PIC is the default on this platform
6316       # Common symbols not allowed in MH_DYLIB files
6317       lt_prog_compiler_pic='-fno-common'
6318       ;;
6319
6320     msdosdjgpp*)
6321       # Just because we use GCC doesn't mean we suddenly get shared libraries
6322       # on systems that don't support them.
6323       lt_prog_compiler_can_build_shared=no
6324       enable_shared=no
6325       ;;
6326
6327     sysv4*MP*)
6328       if test -d /usr/nec; then
6329         lt_prog_compiler_pic=-Kconform_pic
6330       fi
6331       ;;
6332
6333     hpux*)
6334       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6335       # not for PA HP-UX.
6336       case "$host_cpu" in
6337       hppa*64*|ia64*)
6338         # +Z the default
6339         ;;
6340       *)
6341         lt_prog_compiler_pic='-fPIC'
6342         ;;
6343       esac
6344       ;;
6345
6346     *)
6347       lt_prog_compiler_pic='-fPIC'
6348       ;;
6349     esac
6350   else
6351     # PORTME Check for flag to pass linker flags through the system compiler.
6352     case $host_os in
6353     aix*)
6354       lt_prog_compiler_wl='-Wl,'
6355       if test "$host_cpu" = ia64; then
6356         # AIX 5 now supports IA64 processor
6357         lt_prog_compiler_static='-Bstatic'
6358       else
6359         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6360       fi
6361       ;;
6362
6363     mingw* | pw32* | os2*)
6364       # This hack is so that the source file can tell whether it is being
6365       # built for inclusion in a dll (and should export symbols for example).
6366       lt_prog_compiler_pic='-DDLL_EXPORT'
6367       ;;
6368
6369     hpux9* | hpux10* | hpux11*)
6370       lt_prog_compiler_wl='-Wl,'
6371       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6372       # not for PA HP-UX.
6373       case "$host_cpu" in
6374       hppa*64*|ia64*)
6375         # +Z the default
6376         ;;
6377       *)
6378         lt_prog_compiler_pic='+Z'
6379         ;;
6380       esac
6381       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6382       lt_prog_compiler_static='${wl}-a ${wl}archive'
6383       ;;
6384
6385     irix5* | irix6* | nonstopux*)
6386       lt_prog_compiler_wl='-Wl,'
6387       # PIC (with -KPIC) is the default.
6388       lt_prog_compiler_static='-non_shared'
6389       ;;
6390
6391     newsos6)
6392       lt_prog_compiler_pic='-KPIC'
6393       lt_prog_compiler_static='-Bstatic'
6394       ;;
6395
6396     linux*)
6397       case $CC in
6398       icc|ecc)
6399         lt_prog_compiler_wl='-Wl,'
6400         lt_prog_compiler_pic='-KPIC'
6401         lt_prog_compiler_static='-static'
6402         ;;
6403       ccc)
6404         lt_prog_compiler_wl='-Wl,'
6405         # All Alpha code is PIC.
6406         lt_prog_compiler_static='-non_shared'
6407         ;;
6408       esac
6409       ;;
6410
6411     osf3* | osf4* | osf5*)
6412       lt_prog_compiler_wl='-Wl,'
6413       # All OSF/1 code is PIC.
6414       lt_prog_compiler_static='-non_shared'
6415       ;;
6416
6417     sco3.2v5*)
6418       lt_prog_compiler_pic='-Kpic'
6419       lt_prog_compiler_static='-dn'
6420       ;;
6421
6422     solaris*)
6423       lt_prog_compiler_wl='-Wl,'
6424       lt_prog_compiler_pic='-KPIC'
6425       lt_prog_compiler_static='-Bstatic'
6426       ;;
6427
6428     sunos4*)
6429       lt_prog_compiler_wl='-Qoption ld '
6430       lt_prog_compiler_pic='-PIC'
6431       lt_prog_compiler_static='-Bstatic'
6432       ;;
6433
6434     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6435       lt_prog_compiler_wl='-Wl,'
6436       lt_prog_compiler_pic='-KPIC'
6437       lt_prog_compiler_static='-Bstatic'
6438       ;;
6439
6440     sysv4*MP*)
6441       if test -d /usr/nec ;then
6442         lt_prog_compiler_pic='-Kconform_pic'
6443         lt_prog_compiler_static='-Bstatic'
6444       fi
6445       ;;
6446
6447     uts4*)
6448       lt_prog_compiler_pic='-pic'
6449       lt_prog_compiler_static='-Bstatic'
6450       ;;
6451
6452     *)
6453       lt_prog_compiler_can_build_shared=no
6454       ;;
6455     esac
6456   fi
6457
6458 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6459 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6460
6461 #
6462 # Check to make sure the PIC flag actually works.
6463 #
6464 if test -n "$lt_prog_compiler_pic"; then
6465   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6466 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6467 if test "${lt_prog_compiler_pic_works+set}" = set; then
6468   echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470   lt_prog_compiler_pic_works=no
6471   ac_outfile=conftest.$ac_objext
6472    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6473    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6474    # Insert the option either (1) after the last *FLAGS variable, or
6475    # (2) before a word containing "conftest.", or (3) at the end.
6476    # Note that $ac_compile itself does not contain backslashes and begins
6477    # with a dollar sign (not a hyphen), so the echo should work correctly.
6478    # The option is referenced via a variable to avoid confusing sed.
6479    lt_compile=`echo "$ac_compile" | $SED \
6480    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6481    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6482    -e 's:$: $lt_compiler_flag:'`
6483    (eval echo "\"\$as_me:6483: $lt_compile\"" >&5)
6484    (eval "$lt_compile" 2>conftest.err)
6485    ac_status=$?
6486    cat conftest.err >&5
6487    echo "$as_me:6487: \$? = $ac_status" >&5
6488    if (exit $ac_status) && test -s "$ac_outfile"; then
6489      # The compiler can only warn and ignore the option if not recognized
6490      # So say no if there are warnings
6491      if test ! -s conftest.err; then
6492        lt_prog_compiler_pic_works=yes
6493      fi
6494    fi
6495    $rm conftest*
6496
6497 fi
6498 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6499 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6500
6501 if test x"$lt_prog_compiler_pic_works" = xyes; then
6502     case $lt_prog_compiler_pic in
6503      "" | " "*) ;;
6504      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6505      esac
6506 else
6507     lt_prog_compiler_pic=
6508      lt_prog_compiler_can_build_shared=no
6509 fi
6510
6511 fi
6512 case "$host_os" in
6513   # For platforms which do not support PIC, -DPIC is meaningless:
6514   *djgpp*)
6515     lt_prog_compiler_pic=
6516     ;;
6517   *)
6518     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6519     ;;
6520 esac
6521
6522 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6523 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6524 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6525   echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527   lt_cv_prog_compiler_c_o=no
6528    $rm -r conftest 2>/dev/null
6529    mkdir conftest
6530    cd conftest
6531    mkdir out
6532    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6533
6534    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6535    # that will create temporary files in the current directory regardless of
6536    # the output directory.  Thus, making CWD read-only will cause this test
6537    # to fail, enabling locking or at least warning the user not to do parallel
6538    # builds.
6539    chmod -w .
6540
6541    lt_compiler_flag="-o out/conftest2.$ac_objext"
6542    # Insert the option either (1) after the last *FLAGS variable, or
6543    # (2) before a word containing "conftest.", or (3) at the end.
6544    # Note that $ac_compile itself does not contain backslashes and begins
6545    # with a dollar sign (not a hyphen), so the echo should work correctly.
6546    lt_compile=`echo "$ac_compile" | $SED \
6547    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6548    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6549    -e 's:$: $lt_compiler_flag:'`
6550    (eval echo "\"\$as_me:6550: $lt_compile\"" >&5)
6551    (eval "$lt_compile" 2>out/conftest.err)
6552    ac_status=$?
6553    cat out/conftest.err >&5
6554    echo "$as_me:6554: \$? = $ac_status" >&5
6555    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6556    then
6557      # The compiler can only warn and ignore the option if not recognized
6558      # So say no if there are warnings
6559      if test ! -s out/conftest.err; then
6560        lt_cv_prog_compiler_c_o=yes
6561      fi
6562    fi
6563    chmod u+w .
6564    $rm conftest* out/*
6565    rmdir out
6566    cd ..
6567    rmdir conftest
6568    $rm conftest*
6569
6570 fi
6571 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6572 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6573
6574
6575 hard_links="nottested"
6576 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6577   # do not overwrite the value of need_locks provided by the user
6578   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6579 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6580   hard_links=yes
6581   $rm conftest*
6582   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6583   touch conftest.a
6584   ln conftest.a conftest.b 2>&5 || hard_links=no
6585   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6586   echo "$as_me:$LINENO: result: $hard_links" >&5
6587 echo "${ECHO_T}$hard_links" >&6
6588   if test "$hard_links" = no; then
6589     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6590 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6591     need_locks=warn
6592   fi
6593 else
6594   need_locks=no
6595 fi
6596
6597 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6598 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6599
6600   runpath_var=
6601   allow_undefined_flag=
6602   enable_shared_with_static_runtimes=no
6603   archive_cmds=
6604   archive_expsym_cmds=
6605   old_archive_From_new_cmds=
6606   old_archive_from_expsyms_cmds=
6607   export_dynamic_flag_spec=
6608   whole_archive_flag_spec=
6609   thread_safe_flag_spec=
6610   hardcode_libdir_flag_spec=
6611   hardcode_libdir_flag_spec_ld=
6612   hardcode_libdir_separator=
6613   hardcode_direct=no
6614   hardcode_minus_L=no
6615   hardcode_shlibpath_var=unsupported
6616   link_all_deplibs=unknown
6617   hardcode_automatic=no
6618   module_cmds=
6619   module_expsym_cmds=
6620   always_export_symbols=no
6621   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6622   # include_expsyms should be a list of space-separated symbols to be *always*
6623   # included in the symbol list
6624   include_expsyms=
6625   # exclude_expsyms can be an extended regexp of symbols to exclude
6626   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6627   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6628   # as well as any symbol that contains `d'.
6629   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6630   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6631   # platforms (ab)use it in PIC code, but their linkers get confused if
6632   # the symbol is explicitly referenced.  Since portable code cannot
6633   # rely on this symbol name, it's probably fine to never include it in
6634   # preloaded symbol tables.
6635   extract_expsyms_cmds=
6636
6637   case $host_os in
6638   cygwin* | mingw* | pw32*)
6639     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6640     # When not using gcc, we currently assume that we are using
6641     # Microsoft Visual C++.
6642     if test "$GCC" != yes; then
6643       with_gnu_ld=no
6644     fi
6645     ;;
6646   openbsd*)
6647     with_gnu_ld=no
6648     ;;
6649   esac
6650
6651   ld_shlibs=yes
6652   if test "$with_gnu_ld" = yes; then
6653     # If archive_cmds runs LD, not CC, wlarc should be empty
6654     wlarc='${wl}'
6655
6656     # See if GNU ld supports shared libraries.
6657     case $host_os in
6658     aix3* | aix4* | aix5*)
6659       # On AIX/PPC, the GNU linker is very broken
6660       if test "$host_cpu" != ia64; then
6661         ld_shlibs=no
6662         cat <<EOF 1>&2
6663
6664 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6665 *** to be unable to reliably create shared libraries on AIX.
6666 *** Therefore, libtool is disabling shared libraries support.  If you
6667 *** really care for shared libraries, you may want to modify your PATH
6668 *** so that a non-GNU linker is found, and then restart.
6669
6670 EOF
6671       fi
6672       ;;
6673
6674     amigaos*)
6675       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)'
6676       hardcode_libdir_flag_spec='-L$libdir'
6677       hardcode_minus_L=yes
6678
6679       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6680       # that the semantics of dynamic libraries on AmigaOS, at least up
6681       # to version 4, is to share data among multiple programs linked
6682       # with the same dynamic library.  Since this doesn't match the
6683       # behavior of shared libraries on other platforms, we can't use
6684       # them.
6685       ld_shlibs=no
6686       ;;
6687
6688     beos*)
6689       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6690         allow_undefined_flag=unsupported
6691         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6692         # support --undefined.  This deserves some investigation.  FIXME
6693         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6694       else
6695         ld_shlibs=no
6696       fi
6697       ;;
6698
6699     cygwin* | mingw* | pw32*)
6700       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6701       # as there is no search path for DLLs.
6702       hardcode_libdir_flag_spec='-L$libdir'
6703       allow_undefined_flag=unsupported
6704       always_export_symbols=no
6705       enable_shared_with_static_runtimes=yes
6706       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6707
6708       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6709         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6710         # If the export-symbols file already is a .def file (1st line
6711         # is EXPORTS), use it as is; otherwise, prepend...
6712         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6713           cp $export_symbols $output_objdir/$soname.def;
6714         else
6715           echo EXPORTS > $output_objdir/$soname.def;
6716           cat $export_symbols >> $output_objdir/$soname.def;
6717         fi~
6718         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6719       else
6720         ld_shlibs=no
6721       fi
6722       ;;
6723
6724     netbsd*)
6725       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6726         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6727         wlarc=
6728       else
6729         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6730         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6731       fi
6732       ;;
6733
6734     solaris* | sysv5*)
6735       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6736         ld_shlibs=no
6737         cat <<EOF 1>&2
6738
6739 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6740 *** create shared libraries on Solaris systems.  Therefore, libtool
6741 *** is disabling shared libraries support.  We urge you to upgrade GNU
6742 *** binutils to release 2.9.1 or newer.  Another option is to modify
6743 *** your PATH or compiler configuration so that the native linker is
6744 *** used, and then restart.
6745
6746 EOF
6747       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6748         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6749         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6750       else
6751         ld_shlibs=no
6752       fi
6753       ;;
6754
6755     sunos4*)
6756       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6757       wlarc=
6758       hardcode_direct=yes
6759       hardcode_shlibpath_var=no
6760       ;;
6761
6762     *)
6763       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6764         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6765         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6766       else
6767         ld_shlibs=no
6768       fi
6769       ;;
6770     esac
6771
6772     if test "$ld_shlibs" = yes; then
6773       runpath_var=LD_RUN_PATH
6774       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6775       export_dynamic_flag_spec='${wl}--export-dynamic'
6776       # ancient GNU ld didn't support --whole-archive et. al.
6777       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6778         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6779       else
6780         whole_archive_flag_spec=
6781       fi
6782     fi
6783   else
6784     # PORTME fill in a description of your system's linker (not GNU ld)
6785     case $host_os in
6786     aix3*)
6787       allow_undefined_flag=unsupported
6788       always_export_symbols=yes
6789       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'
6790       # Note: this linker hardcodes the directories in LIBPATH if there
6791       # are no directories specified by -L.
6792       hardcode_minus_L=yes
6793       if test "$GCC" = yes && test -z "$link_static_flag"; then
6794         # Neither direct hardcoding nor static linking is supported with a
6795         # broken collect2.
6796         hardcode_direct=unsupported
6797       fi
6798       ;;
6799
6800     aix4* | aix5*)
6801       if test "$host_cpu" = ia64; then
6802         # On IA64, the linker does run time linking by default, so we don't
6803         # have to do anything special.
6804         aix_use_runtimelinking=no
6805         exp_sym_flag='-Bexport'
6806         no_entry_flag=""
6807       else
6808         # If we're using GNU nm, then we don't want the "-C" option.
6809         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6810         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6811           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'
6812         else
6813           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'
6814         fi
6815         aix_use_runtimelinking=no
6816
6817         # Test if we are trying to use run time linking or normal
6818         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6819         # need to do runtime linking.
6820         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6821           for ld_flag in $LDFLAGS; do
6822           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6823             aix_use_runtimelinking=yes
6824             break
6825           fi
6826           done
6827         esac
6828
6829         exp_sym_flag='-bexport'
6830         no_entry_flag='-bnoentry'
6831       fi
6832
6833       # When large executables or shared objects are built, AIX ld can
6834       # have problems creating the table of contents.  If linking a library
6835       # or program results in "error TOC overflow" add -mminimal-toc to
6836       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6837       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6838
6839       archive_cmds=''
6840       hardcode_direct=yes
6841       hardcode_libdir_separator=':'
6842       link_all_deplibs=yes
6843
6844       if test "$GCC" = yes; then
6845         case $host_os in aix4.012|aix4.012.*)
6846         # We only want to do this on AIX 4.2 and lower, the check
6847         # below for broken collect2 doesn't work under 4.3+
6848           collect2name=`${CC} -print-prog-name=collect2`
6849           if test -f "$collect2name" && \
6850            strings "$collect2name" | grep resolve_lib_name >/dev/null
6851           then
6852           # We have reworked collect2
6853           hardcode_direct=yes
6854           else
6855           # We have old collect2
6856           hardcode_direct=unsupported
6857           # It fails to find uninstalled libraries when the uninstalled
6858           # path is not listed in the libpath.  Setting hardcode_minus_L
6859           # to unsupported forces relinking
6860           hardcode_minus_L=yes
6861           hardcode_libdir_flag_spec='-L$libdir'
6862           hardcode_libdir_separator=
6863           fi
6864         esac
6865         shared_flag='-shared'
6866       else
6867         # not using gcc
6868         if test "$host_cpu" = ia64; then
6869         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6870         # chokes on -Wl,-G. The following line is correct:
6871           shared_flag='-G'
6872         else
6873         if test "$aix_use_runtimelinking" = yes; then
6874             shared_flag='${wl}-G'
6875           else
6876             shared_flag='${wl}-bM:SRE'
6877         fi
6878         fi
6879       fi
6880
6881       # It seems that -bexpall does not export symbols beginning with
6882       # underscore (_), so it is better to generate a list of symbols to export.
6883       always_export_symbols=yes
6884       if test "$aix_use_runtimelinking" = yes; then
6885         # Warning - without using the other runtime loading flags (-brtl),
6886         # -berok will link without error, but may produce a broken library.
6887         allow_undefined_flag='-berok'
6888        # Determine the default libpath from the value encoded in an empty executable.
6889        cat >conftest.$ac_ext <<_ACEOF
6890 #line $LINENO "configure"
6891 /* confdefs.h.  */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h.  */
6896
6897 int
6898 main ()
6899 {
6900
6901   ;
6902   return 0;
6903 }
6904 _ACEOF
6905 rm -f conftest.$ac_objext conftest$ac_exeext
6906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6907   (eval $ac_link) 2>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); } &&
6911          { ac_try='test -s conftest$ac_exeext'
6912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913   (eval $ac_try) 2>&5
6914   ac_status=$?
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); }; }; then
6917
6918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6919 }'`
6920 # Check for a 64-bit object if we didn't find anything.
6921 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; }
6922 }'`; fi
6923 else
6924   echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6926
6927 fi
6928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6930
6931        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6932         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"
6933        else
6934         if test "$host_cpu" = ia64; then
6935           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6936           allow_undefined_flag="-z nodefs"
6937           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"
6938         else
6939          # Determine the default libpath from the value encoded in an empty executable.
6940          cat >conftest.$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6942 /* confdefs.h.  */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h.  */
6947
6948 int
6949 main ()
6950 {
6951
6952   ;
6953   return 0;
6954 }
6955 _ACEOF
6956 rm -f conftest.$ac_objext conftest$ac_exeext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958   (eval $ac_link) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); } &&
6962          { ac_try='test -s conftest$ac_exeext'
6963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964   (eval $ac_try) 2>&5
6965   ac_status=$?
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); }; }; then
6968
6969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6970 }'`
6971 # Check for a 64-bit object if we didn't find anything.
6972 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; }
6973 }'`; fi
6974 else
6975   echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6977
6978 fi
6979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6981
6982          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6983           # Warning - without using the other run time loading flags,
6984           # -berok will link without error, but may produce a broken library.
6985           no_undefined_flag=' ${wl}-bernotok'
6986           allow_undefined_flag=' ${wl}-berok'
6987           # -bexpall does not export symbols beginning with underscore (_)
6988           always_export_symbols=yes
6989           # Exported symbols can be pulled into shared objects from archives
6990           whole_archive_flag_spec=' '
6991           archive_cmds_need_lc=yes
6992           # This is similar to how AIX traditionally builds it's shared libraries.
6993           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'
6994         fi
6995       fi
6996       ;;
6997
6998     amigaos*)
6999       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)'
7000       hardcode_libdir_flag_spec='-L$libdir'
7001       hardcode_minus_L=yes
7002       # see comment about different semantics on the GNU ld section
7003       ld_shlibs=no
7004       ;;
7005
7006     bsdi4*)
7007       export_dynamic_flag_spec=-rdynamic
7008       ;;
7009
7010     cygwin* | mingw* | pw32*)
7011       # When not using gcc, we currently assume that we are using
7012       # Microsoft Visual C++.
7013       # hardcode_libdir_flag_spec is actually meaningless, as there is
7014       # no search path for DLLs.
7015       hardcode_libdir_flag_spec=' '
7016       allow_undefined_flag=unsupported
7017       # Tell ltmain to make .lib files, not .a files.
7018       libext=lib
7019       # Tell ltmain to make .dll files, not .so files.
7020       shrext=".dll"
7021       # FIXME: Setting linknames here is a bad hack.
7022       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7023       # The linker will automatically build a .lib file if we build a DLL.
7024       old_archive_From_new_cmds='true'
7025       # FIXME: Should let the user specify the lib program.
7026       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7027       fix_srcfile_path='`cygpath -w "$srcfile"`'
7028       enable_shared_with_static_runtimes=yes
7029       ;;
7030
7031     darwin* | rhapsody*)
7032     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7033       archive_cmds_need_lc=no
7034       case "$host_os" in
7035       rhapsody* | darwin1.[012])
7036         allow_undefined_flag='-undefined suppress'
7037         ;;
7038       *) # Darwin 1.3 on
7039         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7040         ;;
7041       esac
7042       # FIXME: Relying on posixy $() will cause problems for
7043       #        cross-compilation, but unfortunately the echo tests do not
7044       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7045       #        `"' quotes if we put them in here... so don't!
7046         lt_int_apple_cc_single_mod=no
7047         output_verbose_link_cmd='echo'
7048         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7049           lt_int_apple_cc_single_mod=yes
7050         fi
7051         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7052           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7053         else
7054         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'
7055       fi
7056       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7057       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7058         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7059           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}'
7060         else
7061           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}'
7062         fi
7063           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}'
7064       hardcode_direct=no
7065       hardcode_automatic=yes
7066       hardcode_shlibpath_var=unsupported
7067       whole_archive_flag_spec='-all_load $convenience'
7068       link_all_deplibs=yes
7069     fi
7070       ;;
7071
7072     dgux*)
7073       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7074       hardcode_libdir_flag_spec='-L$libdir'
7075       hardcode_shlibpath_var=no
7076       ;;
7077
7078     freebsd1*)
7079       ld_shlibs=no
7080       ;;
7081
7082     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7083     # support.  Future versions do this automatically, but an explicit c++rt0.o
7084     # does not break anything, and helps significantly (at the cost of a little
7085     # extra space).
7086     freebsd2.2*)
7087       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7088       hardcode_libdir_flag_spec='-R$libdir'
7089       hardcode_direct=yes
7090       hardcode_shlibpath_var=no
7091       ;;
7092
7093     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7094     freebsd2*)
7095       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7096       hardcode_direct=yes
7097       hardcode_minus_L=yes
7098       hardcode_shlibpath_var=no
7099       ;;
7100
7101     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7102     freebsd*)
7103       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7104       hardcode_libdir_flag_spec='-R$libdir'
7105       hardcode_direct=yes
7106       hardcode_shlibpath_var=no
7107       ;;
7108
7109     hpux9*)
7110       if test "$GCC" = yes; then
7111         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'
7112       else
7113         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'
7114       fi
7115       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7116       hardcode_libdir_separator=:
7117       hardcode_direct=yes
7118
7119       # hardcode_minus_L: Not really in the search PATH,
7120       # but as the default location of the library.
7121       hardcode_minus_L=yes
7122       export_dynamic_flag_spec='${wl}-E'
7123       ;;
7124
7125     hpux10* | hpux11*)
7126       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7127         case "$host_cpu" in
7128         hppa*64*|ia64*)
7129           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7130           ;;
7131         *)
7132           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7133           ;;
7134         esac
7135       else
7136         case "$host_cpu" in
7137         hppa*64*|ia64*)
7138           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7139           ;;
7140         *)
7141           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7142           ;;
7143         esac
7144       fi
7145       if test "$with_gnu_ld" = no; then
7146         case "$host_cpu" in
7147         hppa*64*)
7148           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7149           hardcode_libdir_flag_spec_ld='+b $libdir'
7150           hardcode_libdir_separator=:
7151           hardcode_direct=no
7152           hardcode_shlibpath_var=no
7153           ;;
7154         ia64*)
7155           hardcode_libdir_flag_spec='-L$libdir'
7156           hardcode_direct=no
7157           hardcode_shlibpath_var=no
7158
7159           # hardcode_minus_L: Not really in the search PATH,
7160           # but as the default location of the library.
7161           hardcode_minus_L=yes
7162           ;;
7163         *)
7164           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7165           hardcode_libdir_separator=:
7166           hardcode_direct=yes
7167           export_dynamic_flag_spec='${wl}-E'
7168
7169           # hardcode_minus_L: Not really in the search PATH,
7170           # but as the default location of the library.
7171           hardcode_minus_L=yes
7172           ;;
7173         esac
7174       fi
7175       ;;
7176
7177     irix5* | irix6* | nonstopux*)
7178       if test "$GCC" = yes; then
7179         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'
7180       else
7181         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'
7182         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7183       fi
7184       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7185       hardcode_libdir_separator=:
7186       link_all_deplibs=yes
7187       ;;
7188
7189     netbsd*)
7190       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7191         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7192       else
7193         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7194       fi
7195       hardcode_libdir_flag_spec='-R$libdir'
7196       hardcode_direct=yes
7197       hardcode_shlibpath_var=no
7198       ;;
7199
7200     newsos6)
7201       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7202       hardcode_direct=yes
7203       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7204       hardcode_libdir_separator=:
7205       hardcode_shlibpath_var=no
7206       ;;
7207
7208     openbsd*)
7209       hardcode_direct=yes
7210       hardcode_shlibpath_var=no
7211       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7212         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7213         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7214         export_dynamic_flag_spec='${wl}-E'
7215       else
7216        case $host_os in
7217          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7218            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7219            hardcode_libdir_flag_spec='-R$libdir'
7220            ;;
7221          *)
7222            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7223            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7224            ;;
7225        esac
7226       fi
7227       ;;
7228
7229     os2*)
7230       hardcode_libdir_flag_spec='-L$libdir'
7231       hardcode_minus_L=yes
7232       allow_undefined_flag=unsupported
7233       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'
7234       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7235       ;;
7236
7237     osf3*)
7238       if test "$GCC" = yes; then
7239         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7240         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'
7241       else
7242         allow_undefined_flag=' -expect_unresolved \*'
7243         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'
7244       fi
7245       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7246       hardcode_libdir_separator=:
7247       ;;
7248
7249     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7250       if test "$GCC" = yes; then
7251         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7252         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'
7253         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7254       else
7255         allow_undefined_flag=' -expect_unresolved \*'
7256         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'
7257         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7258         $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'
7259
7260         # Both c and cxx compiler support -rpath directly
7261         hardcode_libdir_flag_spec='-rpath $libdir'
7262       fi
7263       hardcode_libdir_separator=:
7264       ;;
7265
7266     sco3.2v5*)
7267       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268       hardcode_shlibpath_var=no
7269       export_dynamic_flag_spec='${wl}-Bexport'
7270       runpath_var=LD_RUN_PATH
7271       hardcode_runpath_var=yes
7272       ;;
7273
7274     solaris*)
7275       no_undefined_flag=' -z text'
7276       if test "$GCC" = yes; then
7277         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7278         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7279           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7280       else
7281         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7282         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7283         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7284       fi
7285       hardcode_libdir_flag_spec='-R$libdir'
7286       hardcode_shlibpath_var=no
7287       case $host_os in
7288       solaris2.[0-5] | solaris2.[0-5].*) ;;
7289       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7290         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7291       esac
7292       link_all_deplibs=yes
7293       ;;
7294
7295     sunos4*)
7296       if test "x$host_vendor" = xsequent; then
7297         # Use $CC to link under sequent, because it throws in some extra .o
7298         # files that make .init and .fini sections work.
7299         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7300       else
7301         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7302       fi
7303       hardcode_libdir_flag_spec='-L$libdir'
7304       hardcode_direct=yes
7305       hardcode_minus_L=yes
7306       hardcode_shlibpath_var=no
7307       ;;
7308
7309     sysv4)
7310       case $host_vendor in
7311         sni)
7312           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7313           hardcode_direct=yes # is this really true???
7314         ;;
7315         siemens)
7316           ## LD is ld it makes a PLAMLIB
7317           ## CC just makes a GrossModule.
7318           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7319           reload_cmds='$CC -r -o $output$reload_objs'
7320           hardcode_direct=no
7321         ;;
7322         motorola)
7323           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7324           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7325         ;;
7326       esac
7327       runpath_var='LD_RUN_PATH'
7328       hardcode_shlibpath_var=no
7329       ;;
7330
7331     sysv4.3*)
7332       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7333       hardcode_shlibpath_var=no
7334       export_dynamic_flag_spec='-Bexport'
7335       ;;
7336
7337     sysv4*MP*)
7338       if test -d /usr/nec; then
7339         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7340         hardcode_shlibpath_var=no
7341         runpath_var=LD_RUN_PATH
7342         hardcode_runpath_var=yes
7343         ld_shlibs=yes
7344       fi
7345       ;;
7346
7347     sysv4.2uw2*)
7348       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7349       hardcode_direct=yes
7350       hardcode_minus_L=no
7351       hardcode_shlibpath_var=no
7352       hardcode_runpath_var=yes
7353       runpath_var=LD_RUN_PATH
7354       ;;
7355
7356    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7357       no_undefined_flag='${wl}-z ${wl}text'
7358       if test "$GCC" = yes; then
7359         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7360       else
7361         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7362       fi
7363       runpath_var='LD_RUN_PATH'
7364       hardcode_shlibpath_var=no
7365       ;;
7366
7367     sysv5*)
7368       no_undefined_flag=' -z text'
7369       # $CC -shared without GNU ld will not create a library from C++
7370       # object files and a static libstdc++, better avoid it by now
7371       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7372       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7373                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7374       hardcode_libdir_flag_spec=
7375       hardcode_shlibpath_var=no
7376       runpath_var='LD_RUN_PATH'
7377       ;;
7378
7379     uts4*)
7380       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7381       hardcode_libdir_flag_spec='-L$libdir'
7382       hardcode_shlibpath_var=no
7383       ;;
7384
7385     *)
7386       ld_shlibs=no
7387       ;;
7388     esac
7389   fi
7390
7391 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7392 echo "${ECHO_T}$ld_shlibs" >&6
7393 test "$ld_shlibs" = no && can_build_shared=no
7394
7395 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7396 if test "$GCC" = yes; then
7397   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7398 fi
7399
7400 #
7401 # Do we need to explicitly link libc?
7402 #
7403 case "x$archive_cmds_need_lc" in
7404 x|xyes)
7405   # Assume -lc should be added
7406   archive_cmds_need_lc=yes
7407
7408   if test "$enable_shared" = yes && test "$GCC" = yes; then
7409     case $archive_cmds in
7410     *'~'*)
7411       # FIXME: we may have to deal with multi-command sequences.
7412       ;;
7413     '$CC '*)
7414       # Test whether the compiler implicitly links with -lc since on some
7415       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7416       # to ld, don't add -lc before -lgcc.
7417       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7418 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7419       $rm conftest*
7420       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7421
7422       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7423   (eval $ac_compile) 2>&5
7424   ac_status=$?
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); } 2>conftest.err; then
7427         soname=conftest
7428         lib=conftest
7429         libobjs=conftest.$ac_objext
7430         deplibs=
7431         wl=$lt_prog_compiler_wl
7432         compiler_flags=-v
7433         linker_flags=-v
7434         verstring=
7435         output_objdir=.
7436         libname=conftest
7437         lt_save_allow_undefined_flag=$allow_undefined_flag
7438         allow_undefined_flag=
7439         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7440   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7441   ac_status=$?
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); }
7444         then
7445           archive_cmds_need_lc=no
7446         else
7447           archive_cmds_need_lc=yes
7448         fi
7449         allow_undefined_flag=$lt_save_allow_undefined_flag
7450       else
7451         cat conftest.err 1>&5
7452       fi
7453       $rm conftest*
7454       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7455 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7456       ;;
7457     esac
7458   fi
7459   ;;
7460 esac
7461
7462 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7463 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7464 hardcode_action=
7465 if test -n "$hardcode_libdir_flag_spec" || \
7466    test -n "$runpath_var " || \
7467    test "X$hardcode_automatic"="Xyes" ; then
7468
7469   # We can hardcode non-existant directories.
7470   if test "$hardcode_direct" != no &&
7471      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7472      # have to relink, otherwise we might link with an installed library
7473      # when we should be linking with a yet-to-be-installed one
7474      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7475      test "$hardcode_minus_L" != no; then
7476     # Linking always hardcodes the temporary library directory.
7477     hardcode_action=relink
7478   else
7479     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7480     hardcode_action=immediate
7481   fi
7482 else
7483   # We cannot hardcode anything, or else we can only hardcode existing
7484   # directories.
7485   hardcode_action=unsupported
7486 fi
7487 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7488 echo "${ECHO_T}$hardcode_action" >&6
7489
7490 if test "$hardcode_action" = relink; then
7491   # Fast installation is not supported
7492   enable_fast_install=no
7493 elif test "$shlibpath_overrides_runpath" = yes ||
7494      test "$enable_shared" = no; then
7495   # Fast installation is not necessary
7496   enable_fast_install=needless
7497 fi
7498
7499 striplib=
7500 old_striplib=
7501 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7502 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7503 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7504   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7505   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7506   echo "$as_me:$LINENO: result: yes" >&5
7507 echo "${ECHO_T}yes" >&6
7508 else
7509 # FIXME - insert some real tests, host_os isn't really good enough
7510   case $host_os in
7511    darwin*)
7512        if test -n "$STRIP" ; then
7513          striplib="$STRIP -x"
7514          echo "$as_me:$LINENO: result: yes" >&5
7515 echo "${ECHO_T}yes" >&6
7516        else
7517   echo "$as_me:$LINENO: result: no" >&5
7518 echo "${ECHO_T}no" >&6
7519 fi
7520        ;;
7521    *)
7522   echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6
7524     ;;
7525   esac
7526 fi
7527
7528 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7529 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7530 library_names_spec=
7531 libname_spec='lib$name'
7532 soname_spec=
7533 shrext=".so"
7534 postinstall_cmds=
7535 postuninstall_cmds=
7536 finish_cmds=
7537 finish_eval=
7538 shlibpath_var=
7539 shlibpath_overrides_runpath=unknown
7540 version_type=none
7541 dynamic_linker="$host_os ld.so"
7542 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7543 if test "$GCC" = yes; then
7544   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7545   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7546     # if the path contains ";" then we assume it to be the separator
7547     # otherwise default to the standard path separator (i.e. ":") - it is
7548     # assumed that no part of a normal pathname contains ";" but that should
7549     # okay in the real world where ";" in dirpaths is itself problematic.
7550     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7551   else
7552     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7553   fi
7554 else
7555   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7556 fi
7557 need_lib_prefix=unknown
7558 hardcode_into_libs=no
7559
7560 # when you set need_version to no, make sure it does not cause -set_version
7561 # flags to be left without arguments
7562 need_version=unknown
7563
7564 case $host_os in
7565 aix3*)
7566   version_type=linux
7567   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7568   shlibpath_var=LIBPATH
7569
7570   # AIX 3 has no versioning support, so we append a major version to the name.
7571   soname_spec='${libname}${release}${shared_ext}$major'
7572   ;;
7573
7574 aix4* | aix5*)
7575   version_type=linux
7576   need_lib_prefix=no
7577   need_version=no
7578   hardcode_into_libs=yes
7579   if test "$host_cpu" = ia64; then
7580     # AIX 5 supports IA64
7581     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7582     shlibpath_var=LD_LIBRARY_PATH
7583   else
7584     # With GCC up to 2.95.x, collect2 would create an import file
7585     # for dependence libraries.  The import file would start with
7586     # the line `#! .'.  This would cause the generated library to
7587     # depend on `.', always an invalid library.  This was fixed in
7588     # development snapshots of GCC prior to 3.0.
7589     case $host_os in
7590       aix4 | aix4.[01] | aix4.[01].*)
7591       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7592            echo ' yes '
7593            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7594         :
7595       else
7596         can_build_shared=no
7597       fi
7598       ;;
7599     esac
7600     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7601     # soname into executable. Probably we can add versioning support to
7602     # collect2, so additional links can be useful in future.
7603     if test "$aix_use_runtimelinking" = yes; then
7604       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7605       # instead of lib<name>.a to let people know that these are not
7606       # typical AIX shared libraries.
7607       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7608     else
7609       # We preserve .a as extension for shared libraries through AIX4.2
7610       # and later when we are not doing run time linking.
7611       library_names_spec='${libname}${release}.a $libname.a'
7612       soname_spec='${libname}${release}${shared_ext}$major'
7613     fi
7614     shlibpath_var=LIBPATH
7615   fi
7616   ;;
7617
7618 amigaos*)
7619   library_names_spec='$libname.ixlibrary $libname.a'
7620   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7621   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'
7622   ;;
7623
7624 beos*)
7625   library_names_spec='${libname}${shared_ext}'
7626   dynamic_linker="$host_os ld.so"
7627   shlibpath_var=LIBRARY_PATH
7628   ;;
7629
7630 bsdi4*)
7631   version_type=linux
7632   need_version=no
7633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7634   soname_spec='${libname}${release}${shared_ext}$major'
7635   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7636   shlibpath_var=LD_LIBRARY_PATH
7637   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7638   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7639   # the default ld.so.conf also contains /usr/contrib/lib and
7640   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7641   # libtool to hard-code these into programs
7642   ;;
7643
7644 cygwin* | mingw* | pw32*)
7645   version_type=windows
7646   shrext=".dll"
7647   need_version=no
7648   need_lib_prefix=no
7649
7650   case $GCC,$host_os in
7651   yes,cygwin* | yes,mingw* | yes,pw32*)
7652     library_names_spec='$libname.dll.a'
7653     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7654     postinstall_cmds='base_file=`basename \${file}`~
7655       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7656       dldir=$destdir/`dirname \$dlpath`~
7657       test -d \$dldir || mkdir -p \$dldir~
7658       $install_prog $dir/$dlname \$dldir/$dlname'
7659     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7660       dlpath=$dir/\$dldll~
7661        $rm \$dlpath'
7662     shlibpath_overrides_runpath=yes
7663
7664     case $host_os in
7665     cygwin*)
7666       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7667       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7668       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7669       ;;
7670     mingw*)
7671       # MinGW DLLs use traditional 'lib' prefix
7672       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7673       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7674       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7675         # It is most probably a Windows format PATH printed by
7676         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7677         # path with ; separators, and with drive letters. We can handle the
7678         # drive letters (cygwin fileutils understands them), so leave them,
7679         # especially as we might pass files found there to a mingw objdump,
7680         # which wouldn't understand a cygwinified path. Ahh.
7681         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7682       else
7683         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7684       fi
7685       ;;
7686     pw32*)
7687       # pw32 DLLs use 'pw' prefix rather than 'lib'
7688       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7689       ;;
7690     esac
7691     ;;
7692
7693   *)
7694     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7695     ;;
7696   esac
7697   dynamic_linker='Win32 ld.exe'
7698   # FIXME: first we should search . and the directory the executable is in
7699   shlibpath_var=PATH
7700   ;;
7701
7702 darwin* | rhapsody*)
7703   dynamic_linker="$host_os dyld"
7704   version_type=darwin
7705   need_lib_prefix=no
7706   need_version=no
7707   # FIXME: Relying on posixy $() will cause problems for
7708   #        cross-compilation, but unfortunately the echo tests do not
7709   #        yet detect zsh echo's removal of \ escapes.
7710   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7711   soname_spec='${libname}${release}${major}$shared_ext'
7712   shlibpath_overrides_runpath=yes
7713   shlibpath_var=DYLD_LIBRARY_PATH
7714   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7715   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7716   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7717   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"`
7718   fi
7719   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7720   ;;
7721
7722 dgux*)
7723   version_type=linux
7724   need_lib_prefix=no
7725   need_version=no
7726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7727   soname_spec='${libname}${release}${shared_ext}$major'
7728   shlibpath_var=LD_LIBRARY_PATH
7729   ;;
7730
7731 freebsd1*)
7732   dynamic_linker=no
7733   ;;
7734
7735 freebsd*)
7736   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7737   version_type=freebsd-$objformat
7738   case $version_type in
7739     freebsd-elf*)
7740       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7741       need_version=no
7742       need_lib_prefix=no
7743       ;;
7744     freebsd-*)
7745       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7746       need_version=yes
7747       ;;
7748   esac
7749   shlibpath_var=LD_LIBRARY_PATH
7750   case $host_os in
7751   freebsd2*)
7752     shlibpath_overrides_runpath=yes
7753     ;;
7754   freebsd3.01* | freebsdelf3.01*)
7755     shlibpath_overrides_runpath=yes
7756     hardcode_into_libs=yes
7757     ;;
7758   *) # from 3.2 on
7759     shlibpath_overrides_runpath=no
7760     hardcode_into_libs=yes
7761     ;;
7762   esac
7763   ;;
7764
7765 gnu*)
7766   version_type=linux
7767   need_lib_prefix=no
7768   need_version=no
7769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7770   soname_spec='${libname}${release}${shared_ext}$major'
7771   shlibpath_var=LD_LIBRARY_PATH
7772   hardcode_into_libs=yes
7773   ;;
7774
7775 hpux9* | hpux10* | hpux11*)
7776   # Give a soname corresponding to the major version so that dld.sl refuses to
7777   # link against other versions.
7778   version_type=sunos
7779   need_lib_prefix=no
7780   need_version=no
7781   case "$host_cpu" in
7782   ia64*)
7783     shrext='.so'
7784     hardcode_into_libs=yes
7785     dynamic_linker="$host_os dld.so"
7786     shlibpath_var=LD_LIBRARY_PATH
7787     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7789     soname_spec='${libname}${release}${shared_ext}$major'
7790     if test "X$HPUX_IA64_MODE" = X32; then
7791       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7792     else
7793       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7794     fi
7795     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7796     ;;
7797    hppa*64*)
7798      shrext='.sl'
7799      hardcode_into_libs=yes
7800      dynamic_linker="$host_os dld.sl"
7801      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7802      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7803      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7804      soname_spec='${libname}${release}${shared_ext}$major'
7805      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7806      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7807      ;;
7808    *)
7809     shrext='.sl'
7810     dynamic_linker="$host_os dld.sl"
7811     shlibpath_var=SHLIB_PATH
7812     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7814     soname_spec='${libname}${release}${shared_ext}$major'
7815     ;;
7816   esac
7817   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7818   postinstall_cmds='chmod 555 $lib'
7819   ;;
7820
7821 irix5* | irix6* | nonstopux*)
7822   case $host_os in
7823     nonstopux*) version_type=nonstopux ;;
7824     *)
7825         if test "$lt_cv_prog_gnu_ld" = yes; then
7826                 version_type=linux
7827         else
7828                 version_type=irix
7829         fi ;;
7830   esac
7831   need_lib_prefix=no
7832   need_version=no
7833   soname_spec='${libname}${release}${shared_ext}$major'
7834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7835   case $host_os in
7836   irix5* | nonstopux*)
7837     libsuff= shlibsuff=
7838     ;;
7839   *)
7840     case $LD in # libtool.m4 will add one of these switches to LD
7841     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7842       libsuff= shlibsuff= libmagic=32-bit;;
7843     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7844       libsuff=32 shlibsuff=N32 libmagic=N32;;
7845     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7846       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7847     *) libsuff= shlibsuff= libmagic=never-match;;
7848     esac
7849     ;;
7850   esac
7851   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7852   shlibpath_overrides_runpath=no
7853   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7854   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7855   hardcode_into_libs=yes
7856   ;;
7857
7858 # No shared lib support for Linux oldld, aout, or coff.
7859 linux*oldld* | linux*aout* | linux*coff*)
7860   dynamic_linker=no
7861   ;;
7862
7863 # This must be Linux ELF.
7864 linux*)
7865   version_type=linux
7866   need_lib_prefix=no
7867   need_version=no
7868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7869   soname_spec='${libname}${release}${shared_ext}$major'
7870   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7871   shlibpath_var=LD_LIBRARY_PATH
7872   shlibpath_overrides_runpath=no
7873   # This implies no fast_install, which is unacceptable.
7874   # Some rework will be needed to allow for fast_install
7875   # before this can be enabled.
7876   hardcode_into_libs=yes
7877
7878   # We used to test for /lib/ld.so.1 and disable shared libraries on
7879   # powerpc, because MkLinux only supported shared libraries with the
7880   # GNU dynamic linker.  Since this was broken with cross compilers,
7881   # most powerpc-linux boxes support dynamic linking these days and
7882   # people can always --disable-shared, the test was removed, and we
7883   # assume the GNU/Linux dynamic linker is in use.
7884   dynamic_linker='GNU/Linux ld.so'
7885   ;;
7886
7887 netbsd*)
7888   version_type=sunos
7889   need_lib_prefix=no
7890   need_version=no
7891   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7893     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7894     dynamic_linker='NetBSD (a.out) ld.so'
7895   else
7896     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7897     soname_spec='${libname}${release}${shared_ext}$major'
7898     dynamic_linker='NetBSD ld.elf_so'
7899   fi
7900   shlibpath_var=LD_LIBRARY_PATH
7901   shlibpath_overrides_runpath=yes
7902   hardcode_into_libs=yes
7903   ;;
7904
7905 newsos6)
7906   version_type=linux
7907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7908   shlibpath_var=LD_LIBRARY_PATH
7909   shlibpath_overrides_runpath=yes
7910   ;;
7911
7912 nto-qnx)
7913   version_type=linux
7914   need_lib_prefix=no
7915   need_version=no
7916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7917   soname_spec='${libname}${release}${shared_ext}$major'
7918   shlibpath_var=LD_LIBRARY_PATH
7919   shlibpath_overrides_runpath=yes
7920   ;;
7921
7922 openbsd*)
7923   version_type=sunos
7924   need_lib_prefix=no
7925   need_version=no
7926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7927   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7928   shlibpath_var=LD_LIBRARY_PATH
7929   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7930     case $host_os in
7931       openbsd2.[89] | openbsd2.[89].*)
7932         shlibpath_overrides_runpath=no
7933         ;;
7934       *)
7935         shlibpath_overrides_runpath=yes
7936         ;;
7937       esac
7938   else
7939     shlibpath_overrides_runpath=yes
7940   fi
7941   ;;
7942
7943 os2*)
7944   libname_spec='$name'
7945   shrext=".dll"
7946   need_lib_prefix=no
7947   library_names_spec='$libname${shared_ext} $libname.a'
7948   dynamic_linker='OS/2 ld.exe'
7949   shlibpath_var=LIBPATH
7950   ;;
7951
7952 osf3* | osf4* | osf5*)
7953   version_type=osf
7954   need_lib_prefix=no
7955   need_version=no
7956   soname_spec='${libname}${release}${shared_ext}$major'
7957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7958   shlibpath_var=LD_LIBRARY_PATH
7959   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7960   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7961   ;;
7962
7963 sco3.2v5*)
7964   version_type=osf
7965   soname_spec='${libname}${release}${shared_ext}$major'
7966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7967   shlibpath_var=LD_LIBRARY_PATH
7968   ;;
7969
7970 solaris*)
7971   version_type=linux
7972   need_lib_prefix=no
7973   need_version=no
7974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975   soname_spec='${libname}${release}${shared_ext}$major'
7976   shlibpath_var=LD_LIBRARY_PATH
7977   shlibpath_overrides_runpath=yes
7978   hardcode_into_libs=yes
7979   # ldd complains unless libraries are executable
7980   postinstall_cmds='chmod +x $lib'
7981   ;;
7982
7983 sunos4*)
7984   version_type=sunos
7985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7986   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7987   shlibpath_var=LD_LIBRARY_PATH
7988   shlibpath_overrides_runpath=yes
7989   if test "$with_gnu_ld" = yes; then
7990     need_lib_prefix=no
7991   fi
7992   need_version=yes
7993   ;;
7994
7995 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7996   version_type=linux
7997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7998   soname_spec='${libname}${release}${shared_ext}$major'
7999   shlibpath_var=LD_LIBRARY_PATH
8000   case $host_vendor in
8001     sni)
8002       shlibpath_overrides_runpath=no
8003       need_lib_prefix=no
8004       export_dynamic_flag_spec='${wl}-Blargedynsym'
8005       runpath_var=LD_RUN_PATH
8006       ;;
8007     siemens)
8008       need_lib_prefix=no
8009       ;;
8010     motorola)
8011       need_lib_prefix=no
8012       need_version=no
8013       shlibpath_overrides_runpath=no
8014       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8015       ;;
8016   esac
8017   ;;
8018
8019 sysv4*MP*)
8020   if test -d /usr/nec ;then
8021     version_type=linux
8022     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8023     soname_spec='$libname${shared_ext}.$major'
8024     shlibpath_var=LD_LIBRARY_PATH
8025   fi
8026   ;;
8027
8028 uts4*)
8029   version_type=linux
8030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8031   soname_spec='${libname}${release}${shared_ext}$major'
8032   shlibpath_var=LD_LIBRARY_PATH
8033   ;;
8034
8035 *)
8036   dynamic_linker=no
8037   ;;
8038 esac
8039 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8040 echo "${ECHO_T}$dynamic_linker" >&6
8041 test "$dynamic_linker" = no && can_build_shared=no
8042
8043 if test "x$enable_dlopen" != xyes; then
8044   enable_dlopen=unknown
8045   enable_dlopen_self=unknown
8046   enable_dlopen_self_static=unknown
8047 else
8048   lt_cv_dlopen=no
8049   lt_cv_dlopen_libs=
8050
8051   case $host_os in
8052   beos*)
8053     lt_cv_dlopen="load_add_on"
8054     lt_cv_dlopen_libs=
8055     lt_cv_dlopen_self=yes
8056     ;;
8057
8058   mingw* | pw32*)
8059     lt_cv_dlopen="LoadLibrary"
8060     lt_cv_dlopen_libs=
8061    ;;
8062
8063   cygwin*)
8064     lt_cv_dlopen="dlopen"
8065     lt_cv_dlopen_libs=
8066    ;;
8067
8068   darwin*)
8069   # if libdl is installed we need to link against it
8070     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8071 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8072 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8073   echo $ECHO_N "(cached) $ECHO_C" >&6
8074 else
8075   ac_check_lib_save_LIBS=$LIBS
8076 LIBS="-ldl  $LIBS"
8077 cat >conftest.$ac_ext <<_ACEOF
8078 #line $LINENO "configure"
8079 /* confdefs.h.  */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h.  */
8084
8085 /* Override any gcc2 internal prototype to avoid an error.  */
8086 #ifdef __cplusplus
8087 extern "C"
8088 #endif
8089 /* We use char because int might match the return type of a gcc2
8090    builtin and then its argument prototype would still apply.  */
8091 char dlopen ();
8092 int
8093 main ()
8094 {
8095 dlopen ();
8096   ;
8097   return 0;
8098 }
8099 _ACEOF
8100 rm -f conftest.$ac_objext conftest$ac_exeext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8102   (eval $ac_link) 2>&5
8103   ac_status=$?
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); } &&
8106          { ac_try='test -s conftest$ac_exeext'
8107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108   (eval $ac_try) 2>&5
8109   ac_status=$?
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); }; }; then
8112   ac_cv_lib_dl_dlopen=yes
8113 else
8114   echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8116
8117 ac_cv_lib_dl_dlopen=no
8118 fi
8119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8120 LIBS=$ac_check_lib_save_LIBS
8121 fi
8122 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8123 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8124 if test $ac_cv_lib_dl_dlopen = yes; then
8125   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8126 else
8127
8128     lt_cv_dlopen="dyld"
8129     lt_cv_dlopen_libs=
8130     lt_cv_dlopen_self=yes
8131
8132 fi
8133
8134    ;;
8135
8136   *)
8137     echo "$as_me:$LINENO: checking for shl_load" >&5
8138 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8139 if test "${ac_cv_func_shl_load+set}" = set; then
8140   echo $ECHO_N "(cached) $ECHO_C" >&6
8141 else
8142   cat >conftest.$ac_ext <<_ACEOF
8143 #line $LINENO "configure"
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149 /* System header to define __stub macros and hopefully few prototypes,
8150     which can conflict with char shl_load (); below.
8151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8152     <limits.h> exists even on freestanding compilers.  */
8153 #ifdef __STDC__
8154 # include <limits.h>
8155 #else
8156 # include <assert.h>
8157 #endif
8158 /* Override any gcc2 internal prototype to avoid an error.  */
8159 #ifdef __cplusplus
8160 extern "C"
8161 {
8162 #endif
8163 /* We use char because int might match the return type of a gcc2
8164    builtin and then its argument prototype would still apply.  */
8165 char shl_load ();
8166 /* The GNU C library defines this for functions which it implements
8167     to always fail with ENOSYS.  Some functions are actually named
8168     something starting with __ and the normal name is an alias.  */
8169 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8170 choke me
8171 #else
8172 char (*f) () = shl_load;
8173 #endif
8174 #ifdef __cplusplus
8175 }
8176 #endif
8177
8178 int
8179 main ()
8180 {
8181 return f != shl_load;
8182   ;
8183   return 0;
8184 }
8185 _ACEOF
8186 rm -f conftest.$ac_objext conftest$ac_exeext
8187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8188   (eval $ac_link) 2>&5
8189   ac_status=$?
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); } &&
8192          { ac_try='test -s conftest$ac_exeext'
8193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194   (eval $ac_try) 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); }; }; then
8198   ac_cv_func_shl_load=yes
8199 else
8200   echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203 ac_cv_func_shl_load=no
8204 fi
8205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8206 fi
8207 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8208 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8209 if test $ac_cv_func_shl_load = yes; then
8210   lt_cv_dlopen="shl_load"
8211 else
8212   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8213 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8214 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8215   echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217   ac_check_lib_save_LIBS=$LIBS
8218 LIBS="-ldld  $LIBS"
8219 cat >conftest.$ac_ext <<_ACEOF
8220 #line $LINENO "configure"
8221 /* confdefs.h.  */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h.  */
8226
8227 /* Override any gcc2 internal prototype to avoid an error.  */
8228 #ifdef __cplusplus
8229 extern "C"
8230 #endif
8231 /* We use char because int might match the return type of a gcc2
8232    builtin and then its argument prototype would still apply.  */
8233 char shl_load ();
8234 int
8235 main ()
8236 {
8237 shl_load ();
8238   ;
8239   return 0;
8240 }
8241 _ACEOF
8242 rm -f conftest.$ac_objext conftest$ac_exeext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8244   (eval $ac_link) 2>&5
8245   ac_status=$?
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); } &&
8248          { ac_try='test -s conftest$ac_exeext'
8249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250   (eval $ac_try) 2>&5
8251   ac_status=$?
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); }; }; then
8254   ac_cv_lib_dld_shl_load=yes
8255 else
8256   echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8258
8259 ac_cv_lib_dld_shl_load=no
8260 fi
8261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8262 LIBS=$ac_check_lib_save_LIBS
8263 fi
8264 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8265 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8266 if test $ac_cv_lib_dld_shl_load = yes; then
8267   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8268 else
8269   echo "$as_me:$LINENO: checking for dlopen" >&5
8270 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8271 if test "${ac_cv_func_dlopen+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   cat >conftest.$ac_ext <<_ACEOF
8275 #line $LINENO "configure"
8276 /* confdefs.h.  */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h.  */
8281 /* System header to define __stub macros and hopefully few prototypes,
8282     which can conflict with char dlopen (); below.
8283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8284     <limits.h> exists even on freestanding compilers.  */
8285 #ifdef __STDC__
8286 # include <limits.h>
8287 #else
8288 # include <assert.h>
8289 #endif
8290 /* Override any gcc2 internal prototype to avoid an error.  */
8291 #ifdef __cplusplus
8292 extern "C"
8293 {
8294 #endif
8295 /* We use char because int might match the return type of a gcc2
8296    builtin and then its argument prototype would still apply.  */
8297 char dlopen ();
8298 /* The GNU C library defines this for functions which it implements
8299     to always fail with ENOSYS.  Some functions are actually named
8300     something starting with __ and the normal name is an alias.  */
8301 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8302 choke me
8303 #else
8304 char (*f) () = dlopen;
8305 #endif
8306 #ifdef __cplusplus
8307 }
8308 #endif
8309
8310 int
8311 main ()
8312 {
8313 return f != dlopen;
8314   ;
8315   return 0;
8316 }
8317 _ACEOF
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320   (eval $ac_link) 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); } &&
8324          { ac_try='test -s conftest$ac_exeext'
8325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326   (eval $ac_try) 2>&5
8327   ac_status=$?
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); }; }; then
8330   ac_cv_func_dlopen=yes
8331 else
8332   echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335 ac_cv_func_dlopen=no
8336 fi
8337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8338 fi
8339 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8340 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8341 if test $ac_cv_func_dlopen = yes; then
8342   lt_cv_dlopen="dlopen"
8343 else
8344   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8345 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8346 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349   ac_check_lib_save_LIBS=$LIBS
8350 LIBS="-ldl  $LIBS"
8351 cat >conftest.$ac_ext <<_ACEOF
8352 #line $LINENO "configure"
8353 /* confdefs.h.  */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h.  */
8358
8359 /* Override any gcc2 internal prototype to avoid an error.  */
8360 #ifdef __cplusplus
8361 extern "C"
8362 #endif
8363 /* We use char because int might match the return type of a gcc2
8364    builtin and then its argument prototype would still apply.  */
8365 char dlopen ();
8366 int
8367 main ()
8368 {
8369 dlopen ();
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376   (eval $ac_link) 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); } &&
8380          { ac_try='test -s conftest$ac_exeext'
8381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382   (eval $ac_try) 2>&5
8383   ac_status=$?
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); }; }; then
8386   ac_cv_lib_dl_dlopen=yes
8387 else
8388   echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8390
8391 ac_cv_lib_dl_dlopen=no
8392 fi
8393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8394 LIBS=$ac_check_lib_save_LIBS
8395 fi
8396 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8397 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8398 if test $ac_cv_lib_dl_dlopen = yes; then
8399   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8400 else
8401   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8402 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8403 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8404   echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406   ac_check_lib_save_LIBS=$LIBS
8407 LIBS="-lsvld  $LIBS"
8408 cat >conftest.$ac_ext <<_ACEOF
8409 #line $LINENO "configure"
8410 /* confdefs.h.  */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h.  */
8415
8416 /* Override any gcc2 internal prototype to avoid an error.  */
8417 #ifdef __cplusplus
8418 extern "C"
8419 #endif
8420 /* We use char because int might match the return type of a gcc2
8421    builtin and then its argument prototype would still apply.  */
8422 char dlopen ();
8423 int
8424 main ()
8425 {
8426 dlopen ();
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433   (eval $ac_link) 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); } &&
8437          { ac_try='test -s conftest$ac_exeext'
8438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439   (eval $ac_try) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; }; then
8443   ac_cv_lib_svld_dlopen=yes
8444 else
8445   echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8447
8448 ac_cv_lib_svld_dlopen=no
8449 fi
8450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8451 LIBS=$ac_check_lib_save_LIBS
8452 fi
8453 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8454 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8455 if test $ac_cv_lib_svld_dlopen = yes; then
8456   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8457 else
8458   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8459 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8460 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8461   echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463   ac_check_lib_save_LIBS=$LIBS
8464 LIBS="-ldld  $LIBS"
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8467 /* confdefs.h.  */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h.  */
8472
8473 /* Override any gcc2 internal prototype to avoid an error.  */
8474 #ifdef __cplusplus
8475 extern "C"
8476 #endif
8477 /* We use char because int might match the return type of a gcc2
8478    builtin and then its argument prototype would still apply.  */
8479 char dld_link ();
8480 int
8481 main ()
8482 {
8483 dld_link ();
8484   ;
8485   return 0;
8486 }
8487 _ACEOF
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490   (eval $ac_link) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } &&
8494          { ac_try='test -s conftest$ac_exeext'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; }; then
8500   ac_cv_lib_dld_dld_link=yes
8501 else
8502   echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 ac_cv_lib_dld_dld_link=no
8506 fi
8507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8508 LIBS=$ac_check_lib_save_LIBS
8509 fi
8510 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8511 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8512 if test $ac_cv_lib_dld_dld_link = yes; then
8513   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8514 fi
8515
8516
8517 fi
8518
8519
8520 fi
8521
8522
8523 fi
8524
8525
8526 fi
8527
8528
8529 fi
8530
8531     ;;
8532   esac
8533
8534   if test "x$lt_cv_dlopen" != xno; then
8535     enable_dlopen=yes
8536   else
8537     enable_dlopen=no
8538   fi
8539
8540   case $lt_cv_dlopen in
8541   dlopen)
8542     save_CPPFLAGS="$CPPFLAGS"
8543     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8544
8545     save_LDFLAGS="$LDFLAGS"
8546     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8547
8548     save_LIBS="$LIBS"
8549     LIBS="$lt_cv_dlopen_libs $LIBS"
8550
8551     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8552 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8553 if test "${lt_cv_dlopen_self+set}" = set; then
8554   echo $ECHO_N "(cached) $ECHO_C" >&6
8555 else
8556           if test "$cross_compiling" = yes; then :
8557   lt_cv_dlopen_self=cross
8558 else
8559   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8560   lt_status=$lt_dlunknown
8561   cat > conftest.$ac_ext <<EOF
8562 #line 8562 "configure"
8563 #include "confdefs.h"
8564
8565 #if HAVE_DLFCN_H
8566 #include <dlfcn.h>
8567 #endif
8568
8569 #include <stdio.h>
8570
8571 #ifdef RTLD_GLOBAL
8572 #  define LT_DLGLOBAL           RTLD_GLOBAL
8573 #else
8574 #  ifdef DL_GLOBAL
8575 #    define LT_DLGLOBAL         DL_GLOBAL
8576 #  else
8577 #    define LT_DLGLOBAL         0
8578 #  endif
8579 #endif
8580
8581 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8582    find out it does not work in some platform. */
8583 #ifndef LT_DLLAZY_OR_NOW
8584 #  ifdef RTLD_LAZY
8585 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8586 #  else
8587 #    ifdef DL_LAZY
8588 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8589 #    else
8590 #      ifdef RTLD_NOW
8591 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8592 #      else
8593 #        ifdef DL_NOW
8594 #          define LT_DLLAZY_OR_NOW      DL_NOW
8595 #        else
8596 #          define LT_DLLAZY_OR_NOW      0
8597 #        endif
8598 #      endif
8599 #    endif
8600 #  endif
8601 #endif
8602
8603 #ifdef __cplusplus
8604 extern "C" void exit (int);
8605 #endif
8606
8607 void fnord() { int i=42;}
8608 int main ()
8609 {
8610   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8611   int status = $lt_dlunknown;
8612
8613   if (self)
8614     {
8615       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8616       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8617       /* dlclose (self); */
8618     }
8619
8620     exit (status);
8621 }
8622 EOF
8623   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8624   (eval $ac_link) 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8628     (./conftest; exit; ) 2>/dev/null
8629     lt_status=$?
8630     case x$lt_status in
8631       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8632       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8633       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8634     esac
8635   else :
8636     # compilation failed
8637     lt_cv_dlopen_self=no
8638   fi
8639 fi
8640 rm -fr conftest*
8641
8642
8643 fi
8644 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8645 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8646
8647     if test "x$lt_cv_dlopen_self" = xyes; then
8648       LDFLAGS="$LDFLAGS $link_static_flag"
8649       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8650 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8651 if test "${lt_cv_dlopen_self_static+set}" = set; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654           if test "$cross_compiling" = yes; then :
8655   lt_cv_dlopen_self_static=cross
8656 else
8657   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8658   lt_status=$lt_dlunknown
8659   cat > conftest.$ac_ext <<EOF
8660 #line 8660 "configure"
8661 #include "confdefs.h"
8662
8663 #if HAVE_DLFCN_H
8664 #include <dlfcn.h>
8665 #endif
8666
8667 #include <stdio.h>
8668
8669 #ifdef RTLD_GLOBAL
8670 #  define LT_DLGLOBAL           RTLD_GLOBAL
8671 #else
8672 #  ifdef DL_GLOBAL
8673 #    define LT_DLGLOBAL         DL_GLOBAL
8674 #  else
8675 #    define LT_DLGLOBAL         0
8676 #  endif
8677 #endif
8678
8679 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8680    find out it does not work in some platform. */
8681 #ifndef LT_DLLAZY_OR_NOW
8682 #  ifdef RTLD_LAZY
8683 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8684 #  else
8685 #    ifdef DL_LAZY
8686 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8687 #    else
8688 #      ifdef RTLD_NOW
8689 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8690 #      else
8691 #        ifdef DL_NOW
8692 #          define LT_DLLAZY_OR_NOW      DL_NOW
8693 #        else
8694 #          define LT_DLLAZY_OR_NOW      0
8695 #        endif
8696 #      endif
8697 #    endif
8698 #  endif
8699 #endif
8700
8701 #ifdef __cplusplus
8702 extern "C" void exit (int);
8703 #endif
8704
8705 void fnord() { int i=42;}
8706 int main ()
8707 {
8708   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8709   int status = $lt_dlunknown;
8710
8711   if (self)
8712     {
8713       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8714       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8715       /* dlclose (self); */
8716     }
8717
8718     exit (status);
8719 }
8720 EOF
8721   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722   (eval $ac_link) 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8726     (./conftest; exit; ) 2>/dev/null
8727     lt_status=$?
8728     case x$lt_status in
8729       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8730       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8731       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8732     esac
8733   else :
8734     # compilation failed
8735     lt_cv_dlopen_self_static=no
8736   fi
8737 fi
8738 rm -fr conftest*
8739
8740
8741 fi
8742 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8743 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8744     fi
8745
8746     CPPFLAGS="$save_CPPFLAGS"
8747     LDFLAGS="$save_LDFLAGS"
8748     LIBS="$save_LIBS"
8749     ;;
8750   esac
8751
8752   case $lt_cv_dlopen_self in
8753   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8754   *) enable_dlopen_self=unknown ;;
8755   esac
8756
8757   case $lt_cv_dlopen_self_static in
8758   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8759   *) enable_dlopen_self_static=unknown ;;
8760   esac
8761 fi
8762
8763
8764 # Report which librarie types wil actually be built
8765 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8766 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8767 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8768 echo "${ECHO_T}$can_build_shared" >&6
8769
8770 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8771 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8772 test "$can_build_shared" = "no" && enable_shared=no
8773
8774 # On AIX, shared libraries and static libraries use the same namespace, and
8775 # are all built from PIC.
8776 case "$host_os" in
8777 aix3*)
8778   test "$enable_shared" = yes && enable_static=no
8779   if test -n "$RANLIB"; then
8780     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8781     postinstall_cmds='$RANLIB $lib'
8782   fi
8783   ;;
8784
8785 aix4*)
8786   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8787     test "$enable_shared" = yes && enable_static=no
8788   fi
8789   ;;
8790   darwin* | rhapsody*)
8791   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8792     archive_cmds_need_lc=no
8793     case "$host_os" in
8794     rhapsody* | darwin1.[012])
8795       allow_undefined_flag='-undefined suppress'
8796       ;;
8797     *) # Darwin 1.3 on
8798       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8799       ;;
8800     esac
8801     # FIXME: Relying on posixy $() will cause problems for
8802     #        cross-compilation, but unfortunately the echo tests do not
8803     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8804     #          `"' quotes if we put them in here... so don't!
8805                 output_verbose_link_cmd='echo'
8806     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8807     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8808     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8809                   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}'
8810                   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}'
8811     hardcode_direct=no
8812     hardcode_automatic=yes
8813     hardcode_shlibpath_var=unsupported
8814     whole_archive_flag_spec='-all_load $convenience'
8815     link_all_deplibs=yes
8816     fi
8817     ;;
8818 esac
8819 echo "$as_me:$LINENO: result: $enable_shared" >&5
8820 echo "${ECHO_T}$enable_shared" >&6
8821
8822 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8823 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8824 # Make sure either enable_shared or enable_static is yes.
8825 test "$enable_shared" = yes || enable_static=yes
8826 echo "$as_me:$LINENO: result: $enable_static" >&5
8827 echo "${ECHO_T}$enable_static" >&6
8828
8829 # The else clause should only fire when bootstrapping the
8830 # libtool distribution, otherwise you forgot to ship ltmain.sh
8831 # with your package, and you will get complaints that there are
8832 # no rules to generate ltmain.sh.
8833 if test -f "$ltmain"; then
8834   # See if we are running on zsh, and set the options which allow our commands through
8835   # without removal of \ escapes.
8836   if test -n "${ZSH_VERSION+set}" ; then
8837     setopt NO_GLOB_SUBST
8838   fi
8839   # Now quote all the things that may contain metacharacters while being
8840   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8841   # variables and quote the copies for generation of the libtool script.
8842   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8843     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8844     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8845     deplibs_check_method reload_flag reload_cmds need_locks \
8846     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8847     lt_cv_sys_global_symbol_to_c_name_address \
8848     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8849     old_postinstall_cmds old_postuninstall_cmds \
8850     compiler \
8851     CC \
8852     LD \
8853     lt_prog_compiler_wl \
8854     lt_prog_compiler_pic \
8855     lt_prog_compiler_static \
8856     lt_prog_compiler_no_builtin_flag \
8857     export_dynamic_flag_spec \
8858     thread_safe_flag_spec \
8859     whole_archive_flag_spec \
8860     enable_shared_with_static_runtimes \
8861     old_archive_cmds \
8862     old_archive_from_new_cmds \
8863     predep_objects \
8864     postdep_objects \
8865     predeps \
8866     postdeps \
8867     compiler_lib_search_path \
8868     archive_cmds \
8869     archive_expsym_cmds \
8870     postinstall_cmds \
8871     postuninstall_cmds \
8872     old_archive_from_expsyms_cmds \
8873     allow_undefined_flag \
8874     no_undefined_flag \
8875     export_symbols_cmds \
8876     hardcode_libdir_flag_spec \
8877     hardcode_libdir_flag_spec_ld \
8878     hardcode_libdir_separator \
8879     hardcode_automatic \
8880     module_cmds \
8881     module_expsym_cmds \
8882     lt_cv_prog_compiler_c_o \
8883     exclude_expsyms \
8884     include_expsyms; do
8885
8886     case $var in
8887     old_archive_cmds | \
8888     old_archive_from_new_cmds | \
8889     archive_cmds | \
8890     archive_expsym_cmds | \
8891     module_cmds | \
8892     module_expsym_cmds | \
8893     old_archive_from_expsyms_cmds | \
8894     export_symbols_cmds | \
8895     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8896     postinstall_cmds | postuninstall_cmds | \
8897     old_postinstall_cmds | old_postuninstall_cmds | \
8898     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8899       # Double-quote double-evaled strings.
8900       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8901       ;;
8902     *)
8903       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8904       ;;
8905     esac
8906   done
8907
8908   case $lt_echo in
8909   *'\$0 --fallback-echo"')
8910     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8911     ;;
8912   esac
8913
8914 cfgfile="${ofile}T"
8915   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8916   $rm -f "$cfgfile"
8917   { echo "$as_me:$LINENO: creating $ofile" >&5
8918 echo "$as_me: creating $ofile" >&6;}
8919
8920   cat <<__EOF__ >> "$cfgfile"
8921 #! $SHELL
8922
8923 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8924 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8925 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8926 #
8927 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8928 # Free Software Foundation, Inc.
8929 #
8930 # This file is part of GNU Libtool:
8931 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8932 #
8933 # This program is free software; you can redistribute it and/or modify
8934 # it under the terms of the GNU General Public License as published by
8935 # the Free Software Foundation; either version 2 of the License, or
8936 # (at your option) any later version.
8937 #
8938 # This program is distributed in the hope that it will be useful, but
8939 # WITHOUT ANY WARRANTY; without even the implied warranty of
8940 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8941 # General Public License for more details.
8942 #
8943 # You should have received a copy of the GNU General Public License
8944 # along with this program; if not, write to the Free Software
8945 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8946 #
8947 # As a special exception to the GNU General Public License, if you
8948 # distribute this file as part of a program that contains a
8949 # configuration script generated by Autoconf, you may include it under
8950 # the same distribution terms that you use for the rest of that program.
8951
8952 # A sed program that does not truncate output.
8953 SED=$lt_SED
8954
8955 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8956 Xsed="$SED -e s/^X//"
8957
8958 # The HP-UX ksh and POSIX shell print the target directory to stdout
8959 # if CDPATH is set.
8960 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8961
8962 # The names of the tagged configurations supported by this script.
8963 available_tags=
8964
8965 # ### BEGIN LIBTOOL CONFIG
8966
8967 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8968
8969 # Shell to use when invoking shell scripts.
8970 SHELL=$lt_SHELL
8971
8972 # Whether or not to build shared libraries.
8973 build_libtool_libs=$enable_shared
8974
8975 # Whether or not to build static libraries.
8976 build_old_libs=$enable_static
8977
8978 # Whether or not to add -lc for building shared libraries.
8979 build_libtool_need_lc=$archive_cmds_need_lc
8980
8981 # Whether or not to disallow shared libs when runtime libs are static
8982 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8983
8984 # Whether or not to optimize for fast installation.
8985 fast_install=$enable_fast_install
8986
8987 # The host system.
8988 host_alias=$host_alias
8989 host=$host
8990
8991 # An echo program that does not interpret backslashes.
8992 echo=$lt_echo
8993
8994 # The archiver.
8995 AR=$lt_AR
8996 AR_FLAGS=$lt_AR_FLAGS
8997
8998 # A C compiler.
8999 LTCC=$lt_LTCC
9000
9001 # A language-specific compiler.
9002 CC=$lt_compiler
9003
9004 # Is the compiler the GNU C compiler?
9005 with_gcc=$GCC
9006
9007 # An ERE matcher.
9008 EGREP=$lt_EGREP
9009
9010 # The linker used to build libraries.
9011 LD=$lt_LD
9012
9013 # Whether we need hard or soft links.
9014 LN_S=$lt_LN_S
9015
9016 # A BSD-compatible nm program.
9017 NM=$lt_NM
9018
9019 # A symbol stripping program
9020 STRIP=$STRIP
9021
9022 # Used to examine libraries when file_magic_cmd begins "file"
9023 MAGIC_CMD=$MAGIC_CMD
9024
9025 # Used on cygwin: DLL creation program.
9026 DLLTOOL="$DLLTOOL"
9027
9028 # Used on cygwin: object dumper.
9029 OBJDUMP="$OBJDUMP"
9030
9031 # Used on cygwin: assembler.
9032 AS="$AS"
9033
9034 # The name of the directory that contains temporary libtool files.
9035 objdir=$objdir
9036
9037 # How to create reloadable object files.
9038 reload_flag=$lt_reload_flag
9039 reload_cmds=$lt_reload_cmds
9040
9041 # How to pass a linker flag through the compiler.
9042 wl=$lt_lt_prog_compiler_wl
9043
9044 # Object file suffix (normally "o").
9045 objext="$ac_objext"
9046
9047 # Old archive suffix (normally "a").
9048 libext="$libext"
9049
9050 # Shared library suffix (normally ".so").
9051 shrext='$shrext'
9052
9053 # Executable file suffix (normally "").
9054 exeext="$exeext"
9055
9056 # Additional compiler flags for building library objects.
9057 pic_flag=$lt_lt_prog_compiler_pic
9058 pic_mode=$pic_mode
9059
9060 # What is the maximum length of a command?
9061 max_cmd_len=$lt_cv_sys_max_cmd_len
9062
9063 # Does compiler simultaneously support -c and -o options?
9064 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9065
9066 # Must we lock files when doing compilation ?
9067 need_locks=$lt_need_locks
9068
9069 # Do we need the lib prefix for modules?
9070 need_lib_prefix=$need_lib_prefix
9071
9072 # Do we need a version for libraries?
9073 need_version=$need_version
9074
9075 # Whether dlopen is supported.
9076 dlopen_support=$enable_dlopen
9077
9078 # Whether dlopen of programs is supported.
9079 dlopen_self=$enable_dlopen_self
9080
9081 # Whether dlopen of statically linked programs is supported.
9082 dlopen_self_static=$enable_dlopen_self_static
9083
9084 # Compiler flag to prevent dynamic linking.
9085 link_static_flag=$lt_lt_prog_compiler_static
9086
9087 # Compiler flag to turn off builtin functions.
9088 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9089
9090 # Compiler flag to allow reflexive dlopens.
9091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9092
9093 # Compiler flag to generate shared objects directly from archives.
9094 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9095
9096 # Compiler flag to generate thread-safe objects.
9097 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9098
9099 # Library versioning type.
9100 version_type=$version_type
9101
9102 # Format of library name prefix.
9103 libname_spec=$lt_libname_spec
9104
9105 # List of archive names.  First name is the real one, the rest are links.
9106 # The last name is the one that the linker finds with -lNAME.
9107 library_names_spec=$lt_library_names_spec
9108
9109 # The coded name of the library, if different from the real name.
9110 soname_spec=$lt_soname_spec
9111
9112 # Commands used to build and install an old-style archive.
9113 RANLIB=$lt_RANLIB
9114 old_archive_cmds=$lt_old_archive_cmds
9115 old_postinstall_cmds=$lt_old_postinstall_cmds
9116 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9117
9118 # Create an old-style archive from a shared archive.
9119 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9120
9121 # Create a temporary old-style archive to link instead of a shared archive.
9122 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9123
9124 # Commands used to build and install a shared archive.
9125 archive_cmds=$lt_archive_cmds
9126 archive_expsym_cmds=$lt_archive_expsym_cmds
9127 postinstall_cmds=$lt_postinstall_cmds
9128 postuninstall_cmds=$lt_postuninstall_cmds
9129
9130 # Commands used to build a loadable module (assumed same as above if empty)
9131 module_cmds=$lt_module_cmds
9132 module_expsym_cmds=$lt_module_expsym_cmds
9133
9134 # Commands to strip libraries.
9135 old_striplib=$lt_old_striplib
9136 striplib=$lt_striplib
9137
9138 # Dependencies to place before the objects being linked to create a
9139 # shared library.
9140 predep_objects=$lt_predep_objects
9141
9142 # Dependencies to place after the objects being linked to create a
9143 # shared library.
9144 postdep_objects=$lt_postdep_objects
9145
9146 # Dependencies to place before the objects being linked to create a
9147 # shared library.
9148 predeps=$lt_predeps
9149
9150 # Dependencies to place after the objects being linked to create a
9151 # shared library.
9152 postdeps=$lt_postdeps
9153
9154 # The library search path used internally by the compiler when linking
9155 # a shared library.
9156 compiler_lib_search_path=$lt_compiler_lib_search_path
9157
9158 # Method to check whether dependent libraries are shared objects.
9159 deplibs_check_method=$lt_deplibs_check_method
9160
9161 # Command to use when deplibs_check_method == file_magic.
9162 file_magic_cmd=$lt_file_magic_cmd
9163
9164 # Flag that allows shared libraries with undefined symbols to be built.
9165 allow_undefined_flag=$lt_allow_undefined_flag
9166
9167 # Flag that forces no undefined symbols.
9168 no_undefined_flag=$lt_no_undefined_flag
9169
9170 # Commands used to finish a libtool library installation in a directory.
9171 finish_cmds=$lt_finish_cmds
9172
9173 # Same as above, but a single script fragment to be evaled but not shown.
9174 finish_eval=$lt_finish_eval
9175
9176 # Take the output of nm and produce a listing of raw symbols and C names.
9177 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9178
9179 # Transform the output of nm in a proper C declaration
9180 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9181
9182 # Transform the output of nm in a C name address pair
9183 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9184
9185 # This is the shared library runtime path variable.
9186 runpath_var=$runpath_var
9187
9188 # This is the shared library path variable.
9189 shlibpath_var=$shlibpath_var
9190
9191 # Is shlibpath searched before the hard-coded library search path?
9192 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9193
9194 # How to hardcode a shared library path into an executable.
9195 hardcode_action=$hardcode_action
9196
9197 # Whether we should hardcode library paths into libraries.
9198 hardcode_into_libs=$hardcode_into_libs
9199
9200 # Flag to hardcode \$libdir into a binary during linking.
9201 # This must work even if \$libdir does not exist.
9202 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9203
9204 # If ld is used when linking, flag to hardcode \$libdir into
9205 # a binary during linking. This must work even if \$libdir does
9206 # not exist.
9207 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9208
9209 # Whether we need a single -rpath flag with a separated argument.
9210 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9211
9212 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9213 # resulting binary.
9214 hardcode_direct=$hardcode_direct
9215
9216 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9217 # resulting binary.
9218 hardcode_minus_L=$hardcode_minus_L
9219
9220 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9221 # the resulting binary.
9222 hardcode_shlibpath_var=$hardcode_shlibpath_var
9223
9224 # Set to yes if building a shared library automatically hardcodes DIR into the library
9225 # and all subsequent libraries and executables linked against it.
9226 hardcode_automatic=$hardcode_automatic
9227
9228 # Variables whose values should be saved in libtool wrapper scripts and
9229 # restored at relink time.
9230 variables_saved_for_relink="$variables_saved_for_relink"
9231
9232 # Whether libtool must link a program against all its dependency libraries.
9233 link_all_deplibs=$link_all_deplibs
9234
9235 # Compile-time system search path for libraries
9236 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9237
9238 # Run-time system search path for libraries
9239 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9240
9241 # Fix the shell variable \$srcfile for the compiler.
9242 fix_srcfile_path="$fix_srcfile_path"
9243
9244 # Set to yes if exported symbols are required.
9245 always_export_symbols=$always_export_symbols
9246
9247 # The commands to list exported symbols.
9248 export_symbols_cmds=$lt_export_symbols_cmds
9249
9250 # The commands to extract the exported symbol list from a shared archive.
9251 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9252
9253 # Symbols that should not be listed in the preloaded symbols.
9254 exclude_expsyms=$lt_exclude_expsyms
9255
9256 # Symbols that must always be exported.
9257 include_expsyms=$lt_include_expsyms
9258
9259 # ### END LIBTOOL CONFIG
9260
9261 __EOF__
9262
9263
9264   case $host_os in
9265   aix3*)
9266     cat <<\EOF >> "$cfgfile"
9267
9268 # AIX sometimes has problems with the GCC collect2 program.  For some
9269 # reason, if we set the COLLECT_NAMES environment variable, the problems
9270 # vanish in a puff of smoke.
9271 if test "X${COLLECT_NAMES+set}" != Xset; then
9272   COLLECT_NAMES=
9273   export COLLECT_NAMES
9274 fi
9275 EOF
9276     ;;
9277   esac
9278
9279   # We use sed instead of cat because bash on DJGPP gets confused if
9280   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9281   # text mode, it properly converts lines to CR/LF.  This bash problem
9282   # is reportedly fixed, but why not run on old versions too?
9283   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9284
9285   mv -f "$cfgfile" "$ofile" || \
9286     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9287   chmod +x "$ofile"
9288
9289 else
9290   # If there is no Makefile yet, we rely on a make rule to execute
9291   # `config.status --recheck' to rerun these tests and create the
9292   # libtool script then.
9293   test -f Makefile && make "$ltmain"
9294 fi
9295
9296
9297 ac_ext=c
9298 ac_cpp='$CPP $CPPFLAGS'
9299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9302
9303 CC="$lt_save_CC"
9304
9305
9306 # Check whether --with-tags or --without-tags was given.
9307 if test "${with_tags+set}" = set; then
9308   withval="$with_tags"
9309   tagnames="$withval"
9310 fi;
9311
9312 if test -f "$ltmain" && test -n "$tagnames"; then
9313   if test ! -f "${ofile}"; then
9314     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9315 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9316   fi
9317
9318   if test -z "$LTCC"; then
9319     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9320     if test -z "$LTCC"; then
9321       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9322 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9323     else
9324       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9325 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9326     fi
9327   fi
9328
9329   # Extract list of available tagged configurations in $ofile.
9330   # Note that this assumes the entire list is on one line.
9331   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9332
9333   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9334   for tagname in $tagnames; do
9335     IFS="$lt_save_ifs"
9336     # Check whether tagname contains only valid characters
9337     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9338     "") ;;
9339     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9340 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9341    { (exit 1); exit 1; }; }
9342         ;;
9343     esac
9344
9345     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9346     then
9347       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9348 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9349    { (exit 1); exit 1; }; }
9350     fi
9351
9352     # Update the list of available tags.
9353     if test -n "$tagname"; then
9354       echo appending configuration tag \"$tagname\" to $ofile
9355
9356       case $tagname in
9357       CXX)
9358         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9359           ac_ext=cc
9360 ac_cpp='$CXXCPP $CPPFLAGS'
9361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9364
9365
9366
9367
9368 archive_cmds_need_lc_CXX=no
9369 allow_undefined_flag_CXX=
9370 always_export_symbols_CXX=no
9371 archive_expsym_cmds_CXX=
9372 export_dynamic_flag_spec_CXX=
9373 hardcode_direct_CXX=no
9374 hardcode_libdir_flag_spec_CXX=
9375 hardcode_libdir_flag_spec_ld_CXX=
9376 hardcode_libdir_separator_CXX=
9377 hardcode_minus_L_CXX=no
9378 hardcode_automatic_CXX=no
9379 module_cmds_CXX=
9380 module_expsym_cmds_CXX=
9381 link_all_deplibs_CXX=unknown
9382 old_archive_cmds_CXX=$old_archive_cmds
9383 no_undefined_flag_CXX=
9384 whole_archive_flag_spec_CXX=
9385 enable_shared_with_static_runtimes_CXX=no
9386
9387 # Dependencies to place before and after the object being linked:
9388 predep_objects_CXX=
9389 postdep_objects_CXX=
9390 predeps_CXX=
9391 postdeps_CXX=
9392 compiler_lib_search_path_CXX=
9393
9394 # Source file extension for C++ test sources.
9395 ac_ext=cc
9396
9397 # Object file extension for compiled C++ test sources.
9398 objext=o
9399 objext_CXX=$objext
9400
9401 # Code to be used in simple compile tests
9402 lt_simple_compile_test_code="int some_variable = 0;\n"
9403
9404 # Code to be used in simple link tests
9405 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9406
9407 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9408
9409 # If no C compiler was specified, use CC.
9410 LTCC=${LTCC-"$CC"}
9411
9412 # Allow CC to be a program name with arguments.
9413 compiler=$CC
9414
9415
9416 # Allow CC to be a program name with arguments.
9417 lt_save_CC=$CC
9418 lt_save_LD=$LD
9419 lt_save_GCC=$GCC
9420 GCC=$GXX
9421 lt_save_with_gnu_ld=$with_gnu_ld
9422 lt_save_path_LD=$lt_cv_path_LD
9423 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9424   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9425 else
9426   unset lt_cv_prog_gnu_ld
9427 fi
9428 if test -n "${lt_cv_path_LDCXX+set}"; then
9429   lt_cv_path_LD=$lt_cv_path_LDCXX
9430 else
9431   unset lt_cv_path_LD
9432 fi
9433 test -z "${LDCXX+set}" || LD=$LDCXX
9434 CC=${CXX-"c++"}
9435 compiler=$CC
9436 compiler_CXX=$CC
9437 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9438
9439 # We don't want -fno-exception wen compiling C++ code, so set the
9440 # no_builtin_flag separately
9441 if test "$GXX" = yes; then
9442   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9443 else
9444   lt_prog_compiler_no_builtin_flag_CXX=
9445 fi
9446
9447 if test "$GXX" = yes; then
9448   # Set up default GNU C++ configuration
9449
9450
9451 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9452 if test "${with_gnu_ld+set}" = set; then
9453   withval="$with_gnu_ld"
9454   test "$withval" = no || with_gnu_ld=yes
9455 else
9456   with_gnu_ld=no
9457 fi;
9458 ac_prog=ld
9459 if test "$GCC" = yes; then
9460   # Check if gcc -print-prog-name=ld gives a path.
9461   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9462 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9463   case $host in
9464   *-*-mingw*)
9465     # gcc leaves a trailing carriage return which upsets mingw
9466     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9467   *)
9468     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9469   esac
9470   case $ac_prog in
9471     # Accept absolute paths.
9472     [\\/]* | ?:[\\/]*)
9473       re_direlt='/[^/][^/]*/\.\./'
9474       # Canonicalize the path of ld
9475       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9476       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9477         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9478       done
9479       test -z "$LD" && LD="$ac_prog"
9480       ;;
9481   "")
9482     # If it fails, then pretend we aren't using GCC.
9483     ac_prog=ld
9484     ;;
9485   *)
9486     # If it is relative, then search for the first ld in PATH.
9487     with_gnu_ld=unknown
9488     ;;
9489   esac
9490 elif test "$with_gnu_ld" = yes; then
9491   echo "$as_me:$LINENO: checking for GNU ld" >&5
9492 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9493 else
9494   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9495 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9496 fi
9497 if test "${lt_cv_path_LD+set}" = set; then
9498   echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500   if test -z "$LD"; then
9501   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9502   for ac_dir in $PATH; do
9503     IFS="$lt_save_ifs"
9504     test -z "$ac_dir" && ac_dir=.
9505     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9506       lt_cv_path_LD="$ac_dir/$ac_prog"
9507       # Check to see if the program is GNU ld.  I'd rather use --version,
9508       # but apparently some GNU ld's only accept -v.
9509       # Break only if it was the GNU/non-GNU ld that we prefer.
9510       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9511       *GNU* | *'with BFD'*)
9512         test "$with_gnu_ld" != no && break
9513         ;;
9514       *)
9515         test "$with_gnu_ld" != yes && break
9516         ;;
9517       esac
9518     fi
9519   done
9520   IFS="$lt_save_ifs"
9521 else
9522   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9523 fi
9524 fi
9525
9526 LD="$lt_cv_path_LD"
9527 if test -n "$LD"; then
9528   echo "$as_me:$LINENO: result: $LD" >&5
9529 echo "${ECHO_T}$LD" >&6
9530 else
9531   echo "$as_me:$LINENO: result: no" >&5
9532 echo "${ECHO_T}no" >&6
9533 fi
9534 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9535 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9536    { (exit 1); exit 1; }; }
9537 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9538 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9539 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9540   echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9543 case `"$LD" -v 2>&1 </dev/null` in
9544 *GNU* | *'with BFD'*)
9545   lt_cv_prog_gnu_ld=yes
9546   ;;
9547 *)
9548   lt_cv_prog_gnu_ld=no
9549   ;;
9550 esac
9551 fi
9552 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9553 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9554 with_gnu_ld=$lt_cv_prog_gnu_ld
9555
9556
9557
9558   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9559   # archiving commands below assume that GNU ld is being used.
9560   if test "$with_gnu_ld" = yes; then
9561     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562     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'
9563
9564     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9565     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9566
9567     # If archive_cmds runs LD, not CC, wlarc should be empty
9568     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9569     #     investigate it a little bit more. (MM)
9570     wlarc='${wl}'
9571
9572     # ancient GNU ld didn't support --whole-archive et. al.
9573     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9574         grep 'no-whole-archive' > /dev/null; then
9575       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9576     else
9577       whole_archive_flag_spec_CXX=
9578     fi
9579   else
9580     with_gnu_ld=no
9581     wlarc=
9582
9583     # A generic and very simple default shared library creation
9584     # command for GNU C++ for the case where it uses the native
9585     # linker, instead of GNU ld.  If possible, this setting should
9586     # overridden to take advantage of the native linker features on
9587     # the platform it is being used on.
9588     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9589   fi
9590
9591   # Commands to make compiler produce verbose output that lists
9592   # what "hidden" libraries, object files and flags are used when
9593   # linking a shared library.
9594   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9595
9596 else
9597   GXX=no
9598   with_gnu_ld=no
9599   wlarc=
9600 fi
9601
9602 # PORTME: fill in a description of your system's C++ link characteristics
9603 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9604 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9605 ld_shlibs_CXX=yes
9606 case $host_os in
9607   aix3*)
9608     # FIXME: insert proper C++ library support
9609     ld_shlibs_CXX=no
9610     ;;
9611   aix4* | aix5*)
9612     if test "$host_cpu" = ia64; then
9613       # On IA64, the linker does run time linking by default, so we don't
9614       # have to do anything special.
9615       aix_use_runtimelinking=no
9616       exp_sym_flag='-Bexport'
9617       no_entry_flag=""
9618     else
9619       aix_use_runtimelinking=no
9620
9621       # Test if we are trying to use run time linking or normal
9622       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9623       # need to do runtime linking.
9624       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9625         for ld_flag in $LDFLAGS; do
9626           case $ld_flag in
9627           *-brtl*)
9628             aix_use_runtimelinking=yes
9629             break
9630             ;;
9631           esac
9632         done
9633       esac
9634
9635       exp_sym_flag='-bexport'
9636       no_entry_flag='-bnoentry'
9637     fi
9638
9639     # When large executables or shared objects are built, AIX ld can
9640     # have problems creating the table of contents.  If linking a library
9641     # or program results in "error TOC overflow" add -mminimal-toc to
9642     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9643     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9644
9645     archive_cmds_CXX=''
9646     hardcode_direct_CXX=yes
9647     hardcode_libdir_separator_CXX=':'
9648     link_all_deplibs_CXX=yes
9649
9650     if test "$GXX" = yes; then
9651       case $host_os in aix4.012|aix4.012.*)
9652       # We only want to do this on AIX 4.2 and lower, the check
9653       # below for broken collect2 doesn't work under 4.3+
9654         collect2name=`${CC} -print-prog-name=collect2`
9655         if test -f "$collect2name" && \
9656            strings "$collect2name" | grep resolve_lib_name >/dev/null
9657         then
9658           # We have reworked collect2
9659           hardcode_direct_CXX=yes
9660         else
9661           # We have old collect2
9662           hardcode_direct_CXX=unsupported
9663           # It fails to find uninstalled libraries when the uninstalled
9664           # path is not listed in the libpath.  Setting hardcode_minus_L
9665           # to unsupported forces relinking
9666           hardcode_minus_L_CXX=yes
9667           hardcode_libdir_flag_spec_CXX='-L$libdir'
9668           hardcode_libdir_separator_CXX=
9669         fi
9670       esac
9671       shared_flag='-shared'
9672     else
9673       # not using gcc
9674       if test "$host_cpu" = ia64; then
9675         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9676         # chokes on -Wl,-G. The following line is correct:
9677         shared_flag='-G'
9678       else
9679         if test "$aix_use_runtimelinking" = yes; then
9680           shared_flag='${wl}-G'
9681         else
9682           shared_flag='${wl}-bM:SRE'
9683         fi
9684       fi
9685     fi
9686
9687     # It seems that -bexpall does not export symbols beginning with
9688     # underscore (_), so it is better to generate a list of symbols to export.
9689     always_export_symbols_CXX=yes
9690     if test "$aix_use_runtimelinking" = yes; then
9691       # Warning - without using the other runtime loading flags (-brtl),
9692       # -berok will link without error, but may produce a broken library.
9693       allow_undefined_flag_CXX='-berok'
9694       # Determine the default libpath from the value encoded in an empty executable.
9695       cat >conftest.$ac_ext <<_ACEOF
9696 #line $LINENO "configure"
9697 /* confdefs.h.  */
9698 _ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h.  */
9702
9703 int
9704 main ()
9705 {
9706
9707   ;
9708   return 0;
9709 }
9710 _ACEOF
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713   (eval $ac_link) 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); } &&
9717          { ac_try='test -s conftest$ac_exeext'
9718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719   (eval $ac_try) 2>&5
9720   ac_status=$?
9721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); }; }; then
9723
9724 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9725 }'`
9726 # Check for a 64-bit object if we didn't find anything.
9727 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; }
9728 }'`; fi
9729 else
9730   echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733 fi
9734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9736
9737       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9738
9739       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"
9740      else
9741       if test "$host_cpu" = ia64; then
9742         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9743         allow_undefined_flag_CXX="-z nodefs"
9744         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"
9745       else
9746         # Determine the default libpath from the value encoded in an empty executable.
9747         cat >conftest.$ac_ext <<_ACEOF
9748 #line $LINENO "configure"
9749 /* confdefs.h.  */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h.  */
9754
9755 int
9756 main ()
9757 {
9758
9759   ;
9760   return 0;
9761 }
9762 _ACEOF
9763 rm -f conftest.$ac_objext conftest$ac_exeext
9764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765   (eval $ac_link) 2>&5
9766   ac_status=$?
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   (exit $ac_status); } &&
9769          { ac_try='test -s conftest$ac_exeext'
9770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771   (eval $ac_try) 2>&5
9772   ac_status=$?
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); }; }; then
9775
9776 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9777 }'`
9778 # Check for a 64-bit object if we didn't find anything.
9779 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; }
9780 }'`; fi
9781 else
9782   echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9784
9785 fi
9786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9787 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9788
9789         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9790         # Warning - without using the other run time loading flags,
9791         # -berok will link without error, but may produce a broken library.
9792         no_undefined_flag_CXX=' ${wl}-bernotok'
9793         allow_undefined_flag_CXX=' ${wl}-berok'
9794         # -bexpall does not export symbols beginning with underscore (_)
9795         always_export_symbols_CXX=yes
9796         # Exported symbols can be pulled into shared objects from archives
9797         whole_archive_flag_spec_CXX=' '
9798         archive_cmds_need_lc_CXX=yes
9799         # This is similar to how AIX traditionally builds it's shared libraries.
9800         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'
9801       fi
9802     fi
9803     ;;
9804   chorus*)
9805     case $cc_basename in
9806       *)
9807         # FIXME: insert proper C++ library support
9808         ld_shlibs_CXX=no
9809         ;;
9810     esac
9811     ;;
9812
9813   cygwin* | mingw* | pw32*)
9814     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9815     # as there is no search path for DLLs.
9816     hardcode_libdir_flag_spec_CXX='-L$libdir'
9817     allow_undefined_flag_CXX=unsupported
9818     always_export_symbols_CXX=no
9819     enable_shared_with_static_runtimes_CXX=yes
9820
9821     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9822       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'
9823       # If the export-symbols file already is a .def file (1st line
9824       # is EXPORTS), use it as is; otherwise, prepend...
9825       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9826         cp $export_symbols $output_objdir/$soname.def;
9827       else
9828         echo EXPORTS > $output_objdir/$soname.def;
9829         cat $export_symbols >> $output_objdir/$soname.def;
9830       fi~
9831       $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'
9832     else
9833       ld_shlibs_CXX=no
9834     fi
9835   ;;
9836
9837   darwin* | rhapsody*)
9838    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9839     archive_cmds_need_lc_CXX=no
9840     case "$host_os" in
9841     rhapsody* | darwin1.[012])
9842       allow_undefined_flag_CXX='-undefined suppress'
9843       ;;
9844     *) # Darwin 1.3 on
9845       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9846       ;;
9847     esac
9848         lt_int_apple_cc_single_mod=no
9849         output_verbose_link_cmd='echo'
9850         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9851           lt_int_apple_cc_single_mod=yes
9852         fi
9853         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9854           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9855         else
9856         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'
9857       fi
9858       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9859
9860     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9861       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9862         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}'
9863       else
9864         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}'
9865       fi
9866         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}'
9867     hardcode_direct_CXX=no
9868     hardcode_automatic_CXX=yes
9869     hardcode_shlibpath_var_CXX=unsupported
9870     whole_archive_flag_spec_CXX='-all_load $convenience'
9871     link_all_deplibs_CXX=yes
9872    fi
9873     ;;
9874
9875   dgux*)
9876     case $cc_basename in
9877       ec++)
9878         # FIXME: insert proper C++ library support
9879         ld_shlibs_CXX=no
9880         ;;
9881       ghcx)
9882         # Green Hills C++ Compiler
9883         # FIXME: insert proper C++ library support
9884         ld_shlibs_CXX=no
9885         ;;
9886       *)
9887         # FIXME: insert proper C++ library support
9888         ld_shlibs_CXX=no
9889         ;;
9890     esac
9891     ;;
9892   freebsd12*)
9893     # C++ shared libraries reported to be fairly broken before switch to ELF
9894     ld_shlibs_CXX=no
9895     ;;
9896   freebsd-elf*)
9897     archive_cmds_need_lc_CXX=no
9898     ;;
9899   freebsd*)
9900     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9901     # conventions
9902     ld_shlibs_CXX=yes
9903     ;;
9904   gnu*)
9905     ;;
9906   hpux9*)
9907     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9908     hardcode_libdir_separator_CXX=:
9909     export_dynamic_flag_spec_CXX='${wl}-E'
9910     hardcode_direct_CXX=yes
9911     hardcode_minus_L_CXX=yes # Not in the search PATH,
9912                                 # but as the default
9913                                 # location of the library.
9914
9915     case $cc_basename in
9916     CC)
9917       # FIXME: insert proper C++ library support
9918       ld_shlibs_CXX=no
9919       ;;
9920     aCC)
9921       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'
9922       # Commands to make compiler produce verbose output that lists
9923       # what "hidden" libraries, object files and flags are used when
9924       # linking a shared library.
9925       #
9926       # There doesn't appear to be a way to prevent this compiler from
9927       # explicitly linking system object files so we need to strip them
9928       # from the output so that they don't get included in the library
9929       # dependencies.
9930       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'
9931       ;;
9932     *)
9933       if test "$GXX" = yes; then
9934         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'
9935       else
9936         # FIXME: insert proper C++ library support
9937         ld_shlibs_CXX=no
9938       fi
9939       ;;
9940     esac
9941     ;;
9942   hpux10*|hpux11*)
9943     if test $with_gnu_ld = no; then
9944       case "$host_cpu" in
9945       hppa*64*)
9946         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9947         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9948         hardcode_libdir_separator_CXX=:
9949         ;;
9950       ia64*)
9951         hardcode_libdir_flag_spec_CXX='-L$libdir'
9952         ;;
9953       *)
9954         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9955         hardcode_libdir_separator_CXX=:
9956         export_dynamic_flag_spec_CXX='${wl}-E'
9957         ;;
9958       esac
9959     fi
9960     case "$host_cpu" in
9961     hppa*64*)
9962       hardcode_direct_CXX=no
9963       hardcode_shlibpath_var_CXX=no
9964       ;;
9965     ia64*)
9966       hardcode_direct_CXX=no
9967       hardcode_shlibpath_var_CXX=no
9968       hardcode_minus_L_CXX=yes # Not in the search PATH,
9969                                               # but as the default
9970                                               # location of the library.
9971       ;;
9972     *)
9973       hardcode_direct_CXX=yes
9974       hardcode_minus_L_CXX=yes # Not in the search PATH,
9975                                               # but as the default
9976                                               # location of the library.
9977       ;;
9978     esac
9979
9980     case $cc_basename in
9981       CC)
9982         # FIXME: insert proper C++ library support
9983         ld_shlibs_CXX=no
9984         ;;
9985       aCC)
9986         case "$host_cpu" in
9987         hppa*64*|ia64*)
9988           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9989           ;;
9990         *)
9991           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9992           ;;
9993         esac
9994         # Commands to make compiler produce verbose output that lists
9995         # what "hidden" libraries, object files and flags are used when
9996         # linking a shared library.
9997         #
9998         # There doesn't appear to be a way to prevent this compiler from
9999         # explicitly linking system object files so we need to strip them
10000         # from the output so that they don't get included in the library
10001         # dependencies.
10002         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'
10003         ;;
10004       *)
10005         if test "$GXX" = yes; then
10006           if test $with_gnu_ld = no; then
10007             case "$host_cpu" in
10008             ia64*|hppa*64*)
10009               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10010               ;;
10011             *)
10012               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'
10013               ;;
10014             esac
10015           fi
10016         else
10017           # FIXME: insert proper C++ library support
10018           ld_shlibs_CXX=no
10019         fi
10020         ;;
10021     esac
10022     ;;
10023   irix5* | irix6*)
10024     case $cc_basename in
10025       CC)
10026         # SGI C++
10027         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'
10028
10029         # Archives containing C++ object files must be created using
10030         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10031         # necessary to make sure instantiated templates are included
10032         # in the archive.
10033         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10034         ;;
10035       *)
10036         if test "$GXX" = yes; then
10037           if test "$with_gnu_ld" = no; then
10038             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'
10039           else
10040             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'
10041           fi
10042         fi
10043         link_all_deplibs_CXX=yes
10044         ;;
10045     esac
10046     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10047     hardcode_libdir_separator_CXX=:
10048     ;;
10049   linux*)
10050     case $cc_basename in
10051       KCC)
10052         # Kuck and Associates, Inc. (KAI) C++ Compiler
10053
10054         # KCC will only create a shared library if the output file
10055         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10056         # to its proper name (with version) after linking.
10057         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'
10058         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'
10059         # Commands to make compiler produce verbose output that lists
10060         # what "hidden" libraries, object files and flags are used when
10061         # linking a shared library.
10062         #
10063         # There doesn't appear to be a way to prevent this compiler from
10064         # explicitly linking system object files so we need to strip them
10065         # from the output so that they don't get included in the library
10066         # dependencies.
10067         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'
10068
10069         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10070         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10071
10072         # Archives containing C++ object files must be created using
10073         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10074         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10075         ;;
10076       icpc)
10077         # Intel C++
10078         with_gnu_ld=yes
10079         archive_cmds_need_lc_CXX=no
10080         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10081         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'
10082         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10083         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10084         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10085         ;;
10086       cxx)
10087         # Compaq C++
10088         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10089         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'
10090
10091         runpath_var=LD_RUN_PATH
10092         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10093         hardcode_libdir_separator_CXX=:
10094
10095         # Commands to make compiler produce verbose output that lists
10096         # what "hidden" libraries, object files and flags are used when
10097         # linking a shared library.
10098         #
10099         # There doesn't appear to be a way to prevent this compiler from
10100         # explicitly linking system object files so we need to strip them
10101         # from the output so that they don't get included in the library
10102         # dependencies.
10103         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'
10104         ;;
10105     esac
10106     ;;
10107   lynxos*)
10108     # FIXME: insert proper C++ library support
10109     ld_shlibs_CXX=no
10110     ;;
10111   m88k*)
10112     # FIXME: insert proper C++ library support
10113     ld_shlibs_CXX=no
10114     ;;
10115   mvs*)
10116     case $cc_basename in
10117       cxx)
10118         # FIXME: insert proper C++ library support
10119         ld_shlibs_CXX=no
10120         ;;
10121       *)
10122         # FIXME: insert proper C++ library support
10123         ld_shlibs_CXX=no
10124         ;;
10125     esac
10126     ;;
10127   netbsd*)
10128     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10129       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10130       wlarc=
10131       hardcode_libdir_flag_spec_CXX='-R$libdir'
10132       hardcode_direct_CXX=yes
10133       hardcode_shlibpath_var_CXX=no
10134     fi
10135     # Workaround some broken pre-1.5 toolchains
10136     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10137     ;;
10138   osf3*)
10139     case $cc_basename in
10140       KCC)
10141         # Kuck and Associates, Inc. (KAI) C++ Compiler
10142
10143         # KCC will only create a shared library if the output file
10144         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10145         # to its proper name (with version) after linking.
10146         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'
10147
10148         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10149         hardcode_libdir_separator_CXX=:
10150
10151         # Archives containing C++ object files must be created using
10152         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10153         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10154
10155         ;;
10156       RCC)
10157         # Rational C++ 2.4.1
10158         # FIXME: insert proper C++ library support
10159         ld_shlibs_CXX=no
10160         ;;
10161       cxx)
10162         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10163         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'
10164
10165         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10166         hardcode_libdir_separator_CXX=:
10167
10168         # Commands to make compiler produce verbose output that lists
10169         # what "hidden" libraries, object files and flags are used when
10170         # linking a shared library.
10171         #
10172         # There doesn't appear to be a way to prevent this compiler from
10173         # explicitly linking system object files so we need to strip them
10174         # from the output so that they don't get included in the library
10175         # dependencies.
10176         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'
10177         ;;
10178       *)
10179         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10180           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10181           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'
10182
10183           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10184           hardcode_libdir_separator_CXX=:
10185
10186           # Commands to make compiler produce verbose output that lists
10187           # what "hidden" libraries, object files and flags are used when
10188           # linking a shared library.
10189           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10190
10191         else
10192           # FIXME: insert proper C++ library support
10193           ld_shlibs_CXX=no
10194         fi
10195         ;;
10196     esac
10197     ;;
10198   osf4* | osf5*)
10199     case $cc_basename in
10200       KCC)
10201         # Kuck and Associates, Inc. (KAI) C++ Compiler
10202
10203         # KCC will only create a shared library if the output file
10204         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10205         # to its proper name (with version) after linking.
10206         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'
10207
10208         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10209         hardcode_libdir_separator_CXX=:
10210
10211         # Archives containing C++ object files must be created using
10212         # the KAI C++ compiler.
10213         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10214         ;;
10215       RCC)
10216         # Rational C++ 2.4.1
10217         # FIXME: insert proper C++ library support
10218         ld_shlibs_CXX=no
10219         ;;
10220       cxx)
10221         allow_undefined_flag_CXX=' -expect_unresolved \*'
10222         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'
10223         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10224           echo "-hidden">> $lib.exp~
10225           $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~
10226           $rm $lib.exp'
10227
10228         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10229         hardcode_libdir_separator_CXX=:
10230
10231         # Commands to make compiler produce verbose output that lists
10232         # what "hidden" libraries, object files and flags are used when
10233         # linking a shared library.
10234         #
10235         # There doesn't appear to be a way to prevent this compiler from
10236         # explicitly linking system object files so we need to strip them
10237         # from the output so that they don't get included in the library
10238         # dependencies.
10239         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'
10240         ;;
10241       *)
10242         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10243           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10244          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'
10245
10246           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10247           hardcode_libdir_separator_CXX=:
10248
10249           # Commands to make compiler produce verbose output that lists
10250           # what "hidden" libraries, object files and flags are used when
10251           # linking a shared library.
10252           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10253
10254         else
10255           # FIXME: insert proper C++ library support
10256           ld_shlibs_CXX=no
10257         fi
10258         ;;
10259     esac
10260     ;;
10261   psos*)
10262     # FIXME: insert proper C++ library support
10263     ld_shlibs_CXX=no
10264     ;;
10265   sco*)
10266     archive_cmds_need_lc_CXX=no
10267     case $cc_basename in
10268       CC)
10269         # FIXME: insert proper C++ library support
10270         ld_shlibs_CXX=no
10271         ;;
10272       *)
10273         # FIXME: insert proper C++ library support
10274         ld_shlibs_CXX=no
10275         ;;
10276     esac
10277     ;;
10278   sunos4*)
10279     case $cc_basename in
10280       CC)
10281         # Sun C++ 4.x
10282         # FIXME: insert proper C++ library support
10283         ld_shlibs_CXX=no
10284         ;;
10285       lcc)
10286         # Lucid
10287         # FIXME: insert proper C++ library support
10288         ld_shlibs_CXX=no
10289         ;;
10290       *)
10291         # FIXME: insert proper C++ library support
10292         ld_shlibs_CXX=no
10293         ;;
10294     esac
10295     ;;
10296   solaris*)
10297     case $cc_basename in
10298       CC)
10299         # Sun C++ 4.2, 5.x and Centerline C++
10300         no_undefined_flag_CXX=' -zdefs'
10301         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10302         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10303         $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'
10304
10305         hardcode_libdir_flag_spec_CXX='-R$libdir'
10306         hardcode_shlibpath_var_CXX=no
10307         case $host_os in
10308           solaris2.0-5 | solaris2.0-5.*) ;;
10309           *)
10310             # The C++ compiler is used as linker so we must use $wl
10311             # flag to pass the commands to the underlying system
10312             # linker.
10313             # Supported since Solaris 2.6 (maybe 2.5.1?)
10314             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10315             ;;
10316         esac
10317         link_all_deplibs_CXX=yes
10318
10319         # Commands to make compiler produce verbose output that lists
10320         # what "hidden" libraries, object files and flags are used when
10321         # linking a shared library.
10322         #
10323         # There doesn't appear to be a way to prevent this compiler from
10324         # explicitly linking system object files so we need to strip them
10325         # from the output so that they don't get included in the library
10326         # dependencies.
10327         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'
10328
10329         # Archives containing C++ object files must be created using
10330         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10331         # necessary to make sure instantiated templates are included
10332         # in the archive.
10333         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10334         ;;
10335       gcx)
10336         # Green Hills C++ Compiler
10337         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10338
10339         # The C++ compiler must be used to create the archive.
10340         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10341         ;;
10342       *)
10343         # GNU C++ compiler with Solaris linker
10344         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10345           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10346           if $CC --version | grep -v '^2\.7' > /dev/null; then
10347             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10348             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10349                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10350
10351             # Commands to make compiler produce verbose output that lists
10352             # what "hidden" libraries, object files and flags are used when
10353             # linking a shared library.
10354             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10355           else
10356             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10357             # platform.
10358             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10359             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10360                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10361
10362             # Commands to make compiler produce verbose output that lists
10363             # what "hidden" libraries, object files and flags are used when
10364             # linking a shared library.
10365             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10366           fi
10367
10368           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10369         fi
10370         ;;
10371     esac
10372     ;;
10373   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10374     archive_cmds_need_lc_CXX=no
10375     ;;
10376   tandem*)
10377     case $cc_basename in
10378       NCC)
10379         # NonStop-UX NCC 3.20
10380         # FIXME: insert proper C++ library support
10381         ld_shlibs_CXX=no
10382         ;;
10383       *)
10384         # FIXME: insert proper C++ library support
10385         ld_shlibs_CXX=no
10386         ;;
10387     esac
10388     ;;
10389   vxworks*)
10390     # FIXME: insert proper C++ library support
10391     ld_shlibs_CXX=no
10392     ;;
10393   *)
10394     # FIXME: insert proper C++ library support
10395     ld_shlibs_CXX=no
10396     ;;
10397 esac
10398 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10399 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10400 test "$ld_shlibs_CXX" = no && can_build_shared=no
10401
10402 GCC_CXX="$GXX"
10403 LD_CXX="$LD"
10404
10405 ## CAVEAT EMPTOR:
10406 ## There is no encapsulation within the following macros, do not change
10407 ## the running order or otherwise move them around unless you know exactly
10408 ## what you are doing...
10409
10410 cat > conftest.$ac_ext <<EOF
10411 class Foo
10412 {
10413 public:
10414   Foo (void) { a = 0; }
10415 private:
10416   int a;
10417 };
10418 EOF
10419
10420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421   (eval $ac_compile) 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); }; then
10425   # Parse the compiler output and extract the necessary
10426   # objects, libraries and library flags.
10427
10428   # Sentinel used to keep track of whether or not we are before
10429   # the conftest object file.
10430   pre_test_object_deps_done=no
10431
10432   # The `*' in the case matches for architectures that use `case' in
10433   # $output_verbose_cmd can trigger glob expansion during the loop
10434   # eval without this substitution.
10435   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10436
10437   for p in `eval $output_verbose_link_cmd`; do
10438     case $p in
10439
10440     -L* | -R* | -l*)
10441        # Some compilers place space between "-{L,R}" and the path.
10442        # Remove the space.
10443        if test $p = "-L" \
10444           || test $p = "-R"; then
10445          prev=$p
10446          continue
10447        else
10448          prev=
10449        fi
10450
10451        if test "$pre_test_object_deps_done" = no; then
10452          case $p in
10453          -L* | -R*)
10454            # Internal compiler library paths should come after those
10455            # provided the user.  The postdeps already come after the
10456            # user supplied libs so there is no need to process them.
10457            if test -z "$compiler_lib_search_path_CXX"; then
10458              compiler_lib_search_path_CXX="${prev}${p}"
10459            else
10460              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10461            fi
10462            ;;
10463          # The "-l" case would never come before the object being
10464          # linked, so don't bother handling this case.
10465          esac
10466        else
10467          if test -z "$postdeps_CXX"; then
10468            postdeps_CXX="${prev}${p}"
10469          else
10470            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10471          fi
10472        fi
10473        ;;
10474
10475     *.$objext)
10476        # This assumes that the test object file only shows up
10477        # once in the compiler output.
10478        if test "$p" = "conftest.$objext"; then
10479          pre_test_object_deps_done=yes
10480          continue
10481        fi
10482
10483        if test "$pre_test_object_deps_done" = no; then
10484          if test -z "$predep_objects_CXX"; then
10485            predep_objects_CXX="$p"
10486          else
10487            predep_objects_CXX="$predep_objects_CXX $p"
10488          fi
10489        else
10490          if test -z "$postdep_objects_CXX"; then
10491            postdep_objects_CXX="$p"
10492          else
10493            postdep_objects_CXX="$postdep_objects_CXX $p"
10494          fi
10495        fi
10496        ;;
10497
10498     *) ;; # Ignore the rest.
10499
10500     esac
10501   done
10502
10503   # Clean up.
10504   rm -f a.out a.exe
10505 else
10506   echo "libtool.m4: error: problem compiling CXX test program"
10507 fi
10508
10509 $rm -f confest.$objext
10510
10511 case " $postdeps_CXX " in
10512 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10513 esac
10514
10515 lt_prog_compiler_wl_CXX=
10516 lt_prog_compiler_pic_CXX=
10517 lt_prog_compiler_static_CXX=
10518
10519 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10520 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10521
10522   # C++ specific cases for pic, static, wl, etc.
10523   if test "$GXX" = yes; then
10524     lt_prog_compiler_wl_CXX='-Wl,'
10525     lt_prog_compiler_static_CXX='-static'
10526
10527     case $host_os in
10528     aix*)
10529       # All AIX code is PIC.
10530       if test "$host_cpu" = ia64; then
10531         # AIX 5 now supports IA64 processor
10532         lt_prog_compiler_static_CXX='-Bstatic'
10533       fi
10534       ;;
10535     amigaos*)
10536       # FIXME: we need at least 68020 code to build shared libraries, but
10537       # adding the `-m68020' flag to GCC prevents building anything better,
10538       # like `-m68040'.
10539       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10540       ;;
10541     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10542       # PIC is the default for these OSes.
10543       ;;
10544     mingw* | os2* | pw32*)
10545       # This hack is so that the source file can tell whether it is being
10546       # built for inclusion in a dll (and should export symbols for example).
10547       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10548       ;;
10549     darwin* | rhapsody*)
10550       # PIC is the default on this platform
10551       # Common symbols not allowed in MH_DYLIB files
10552       lt_prog_compiler_pic_CXX='-fno-common'
10553       ;;
10554     *djgpp*)
10555       # DJGPP does not support shared libraries at all
10556       lt_prog_compiler_pic_CXX=
10557       ;;
10558     sysv4*MP*)
10559       if test -d /usr/nec; then
10560         lt_prog_compiler_pic_CXX=-Kconform_pic
10561       fi
10562       ;;
10563     hpux*)
10564       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10565       # not for PA HP-UX.
10566       case "$host_cpu" in
10567       hppa*64*|ia64*)
10568         ;;
10569       *)
10570         lt_prog_compiler_pic_CXX='-fPIC'
10571         ;;
10572       esac
10573       ;;
10574     *)
10575       lt_prog_compiler_pic_CXX='-fPIC'
10576       ;;
10577     esac
10578   else
10579     case $host_os in
10580       aix4* | aix5*)
10581         # All AIX code is PIC.
10582         if test "$host_cpu" = ia64; then
10583           # AIX 5 now supports IA64 processor
10584           lt_prog_compiler_static_CXX='-Bstatic'
10585         else
10586           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10587         fi
10588         ;;
10589       chorus*)
10590         case $cc_basename in
10591         cxch68)
10592           # Green Hills C++ Compiler
10593           # _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"
10594           ;;
10595         esac
10596         ;;
10597       dgux*)
10598         case $cc_basename in
10599           ec++)
10600             lt_prog_compiler_pic_CXX='-KPIC'
10601             ;;
10602           ghcx)
10603             # Green Hills C++ Compiler
10604             lt_prog_compiler_pic_CXX='-pic'
10605             ;;
10606           *)
10607             ;;
10608         esac
10609         ;;
10610       freebsd*)
10611         # FreeBSD uses GNU C++
10612         ;;
10613       hpux9* | hpux10* | hpux11*)
10614         case $cc_basename in
10615           CC)
10616             lt_prog_compiler_wl_CXX='-Wl,'
10617             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10618             if test "$host_cpu" != ia64; then
10619               lt_prog_compiler_pic_CXX='+Z'
10620             fi
10621             ;;
10622           aCC)
10623             lt_prog_compiler_wl_CXX='-Wl,'
10624             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10625             case "$host_cpu" in
10626             hppa*64*|ia64*)
10627               # +Z the default
10628               ;;
10629             *)
10630               lt_prog_compiler_pic_CXX='+Z'
10631               ;;
10632             esac
10633             ;;
10634           *)
10635             ;;
10636         esac
10637         ;;
10638       irix5* | irix6* | nonstopux*)
10639         case $cc_basename in
10640           CC)
10641             lt_prog_compiler_wl_CXX='-Wl,'
10642             lt_prog_compiler_static_CXX='-non_shared'
10643             # CC pic flag -KPIC is the default.
10644             ;;
10645           *)
10646             ;;
10647         esac
10648         ;;
10649       linux*)
10650         case $cc_basename in
10651           KCC)
10652             # KAI C++ Compiler
10653             lt_prog_compiler_wl_CXX='--backend -Wl,'
10654             lt_prog_compiler_pic_CXX='-fPIC'
10655             ;;
10656           icpc)
10657             # Intel C++
10658             lt_prog_compiler_wl_CXX='-Wl,'
10659             lt_prog_compiler_pic_CXX='-KPIC'
10660             lt_prog_compiler_static_CXX='-static'
10661             ;;
10662           cxx)
10663             # Compaq C++
10664             # Make sure the PIC flag is empty.  It appears that all Alpha
10665             # Linux and Compaq Tru64 Unix objects are PIC.
10666             lt_prog_compiler_pic_CXX=
10667             lt_prog_compiler_static_CXX='-non_shared'
10668             ;;
10669           *)
10670             ;;
10671         esac
10672         ;;
10673       lynxos*)
10674         ;;
10675       m88k*)
10676         ;;
10677       mvs*)
10678         case $cc_basename in
10679           cxx)
10680             lt_prog_compiler_pic_CXX='-W c,exportall'
10681             ;;
10682           *)
10683             ;;
10684         esac
10685         ;;
10686       netbsd*)
10687         ;;
10688       osf3* | osf4* | osf5*)
10689         case $cc_basename in
10690           KCC)
10691             lt_prog_compiler_wl_CXX='--backend -Wl,'
10692             ;;
10693           RCC)
10694             # Rational C++ 2.4.1
10695             lt_prog_compiler_pic_CXX='-pic'
10696             ;;
10697           cxx)
10698             # Digital/Compaq C++
10699             lt_prog_compiler_wl_CXX='-Wl,'
10700             # Make sure the PIC flag is empty.  It appears that all Alpha
10701             # Linux and Compaq Tru64 Unix objects are PIC.
10702             lt_prog_compiler_pic_CXX=
10703             lt_prog_compiler_static_CXX='-non_shared'
10704             ;;
10705           *)
10706             ;;
10707         esac
10708         ;;
10709       psos*)
10710         ;;
10711       sco*)
10712         case $cc_basename in
10713           CC)
10714             lt_prog_compiler_pic_CXX='-fPIC'
10715             ;;
10716           *)
10717             ;;
10718         esac
10719         ;;
10720       solaris*)
10721         case $cc_basename in
10722           CC)
10723             # Sun C++ 4.2, 5.x and Centerline C++
10724             lt_prog_compiler_pic_CXX='-KPIC'
10725             lt_prog_compiler_static_CXX='-Bstatic'
10726             lt_prog_compiler_wl_CXX='-Qoption ld '
10727             ;;
10728           gcx)
10729             # Green Hills C++ Compiler
10730             lt_prog_compiler_pic_CXX='-PIC'
10731             ;;
10732           *)
10733             ;;
10734         esac
10735         ;;
10736       sunos4*)
10737         case $cc_basename in
10738           CC)
10739             # Sun C++ 4.x
10740             lt_prog_compiler_pic_CXX='-pic'
10741             lt_prog_compiler_static_CXX='-Bstatic'
10742             ;;
10743           lcc)
10744             # Lucid
10745             lt_prog_compiler_pic_CXX='-pic'
10746             ;;
10747           *)
10748             ;;
10749         esac
10750         ;;
10751       tandem*)
10752         case $cc_basename in
10753           NCC)
10754             # NonStop-UX NCC 3.20
10755             lt_prog_compiler_pic_CXX='-KPIC'
10756             ;;
10757           *)
10758             ;;
10759         esac
10760         ;;
10761       unixware*)
10762         ;;
10763       vxworks*)
10764         ;;
10765       *)
10766         lt_prog_compiler_can_build_shared_CXX=no
10767         ;;
10768     esac
10769   fi
10770
10771 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10772 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10773
10774 #
10775 # Check to make sure the PIC flag actually works.
10776 #
10777 if test -n "$lt_prog_compiler_pic_CXX"; then
10778   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10780 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10781   echo $ECHO_N "(cached) $ECHO_C" >&6
10782 else
10783   lt_prog_compiler_pic_works_CXX=no
10784   ac_outfile=conftest.$ac_objext
10785    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10786    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10787    # Insert the option either (1) after the last *FLAGS variable, or
10788    # (2) before a word containing "conftest.", or (3) at the end.
10789    # Note that $ac_compile itself does not contain backslashes and begins
10790    # with a dollar sign (not a hyphen), so the echo should work correctly.
10791    # The option is referenced via a variable to avoid confusing sed.
10792    lt_compile=`echo "$ac_compile" | $SED \
10793    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10795    -e 's:$: $lt_compiler_flag:'`
10796    (eval echo "\"\$as_me:10796: $lt_compile\"" >&5)
10797    (eval "$lt_compile" 2>conftest.err)
10798    ac_status=$?
10799    cat conftest.err >&5
10800    echo "$as_me:10800: \$? = $ac_status" >&5
10801    if (exit $ac_status) && test -s "$ac_outfile"; then
10802      # The compiler can only warn and ignore the option if not recognized
10803      # So say no if there are warnings
10804      if test ! -s conftest.err; then
10805        lt_prog_compiler_pic_works_CXX=yes
10806      fi
10807    fi
10808    $rm conftest*
10809
10810 fi
10811 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10812 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10813
10814 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10815     case $lt_prog_compiler_pic_CXX in
10816      "" | " "*) ;;
10817      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10818      esac
10819 else
10820     lt_prog_compiler_pic_CXX=
10821      lt_prog_compiler_can_build_shared_CXX=no
10822 fi
10823
10824 fi
10825 case "$host_os" in
10826   # For platforms which do not support PIC, -DPIC is meaningless:
10827   *djgpp*)
10828     lt_prog_compiler_pic_CXX=
10829     ;;
10830   *)
10831     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10832     ;;
10833 esac
10834
10835 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10836 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10837 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10838   echo $ECHO_N "(cached) $ECHO_C" >&6
10839 else
10840   lt_cv_prog_compiler_c_o_CXX=no
10841    $rm -r conftest 2>/dev/null
10842    mkdir conftest
10843    cd conftest
10844    mkdir out
10845    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10846
10847    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10848    # that will create temporary files in the current directory regardless of
10849    # the output directory.  Thus, making CWD read-only will cause this test
10850    # to fail, enabling locking or at least warning the user not to do parallel
10851    # builds.
10852    chmod -w .
10853
10854    lt_compiler_flag="-o out/conftest2.$ac_objext"
10855    # Insert the option either (1) after the last *FLAGS variable, or
10856    # (2) before a word containing "conftest.", or (3) at the end.
10857    # Note that $ac_compile itself does not contain backslashes and begins
10858    # with a dollar sign (not a hyphen), so the echo should work correctly.
10859    lt_compile=`echo "$ac_compile" | $SED \
10860    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10861    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10862    -e 's:$: $lt_compiler_flag:'`
10863    (eval echo "\"\$as_me:10863: $lt_compile\"" >&5)
10864    (eval "$lt_compile" 2>out/conftest.err)
10865    ac_status=$?
10866    cat out/conftest.err >&5
10867    echo "$as_me:10867: \$? = $ac_status" >&5
10868    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10869    then
10870      # The compiler can only warn and ignore the option if not recognized
10871      # So say no if there are warnings
10872      if test ! -s out/conftest.err; then
10873        lt_cv_prog_compiler_c_o_CXX=yes
10874      fi
10875    fi
10876    chmod u+w .
10877    $rm conftest* out/*
10878    rmdir out
10879    cd ..
10880    rmdir conftest
10881    $rm conftest*
10882
10883 fi
10884 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10885 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10886
10887
10888 hard_links="nottested"
10889 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10890   # do not overwrite the value of need_locks provided by the user
10891   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10892 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10893   hard_links=yes
10894   $rm conftest*
10895   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10896   touch conftest.a
10897   ln conftest.a conftest.b 2>&5 || hard_links=no
10898   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10899   echo "$as_me:$LINENO: result: $hard_links" >&5
10900 echo "${ECHO_T}$hard_links" >&6
10901   if test "$hard_links" = no; then
10902     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10903 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10904     need_locks=warn
10905   fi
10906 else
10907   need_locks=no
10908 fi
10909
10910 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10911 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10912
10913   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10914   case $host_os in
10915   aix4* | aix5*)
10916     # If we're using GNU nm, then we don't want the "-C" option.
10917     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10918     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10919       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'
10920     else
10921       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'
10922     fi
10923     ;;
10924   pw32*)
10925     export_symbols_cmds_CXX="$ltdll_cmds"
10926   ;;
10927   cygwin* | mingw*)
10928     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10929   ;;
10930   *)
10931     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10932   ;;
10933   esac
10934
10935 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10936 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10937 test "$ld_shlibs_CXX" = no && can_build_shared=no
10938
10939 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10940 if test "$GCC" = yes; then
10941   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10942 fi
10943
10944 #
10945 # Do we need to explicitly link libc?
10946 #
10947 case "x$archive_cmds_need_lc_CXX" in
10948 x|xyes)
10949   # Assume -lc should be added
10950   archive_cmds_need_lc_CXX=yes
10951
10952   if test "$enable_shared" = yes && test "$GCC" = yes; then
10953     case $archive_cmds_CXX in
10954     *'~'*)
10955       # FIXME: we may have to deal with multi-command sequences.
10956       ;;
10957     '$CC '*)
10958       # Test whether the compiler implicitly links with -lc since on some
10959       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10960       # to ld, don't add -lc before -lgcc.
10961       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10962 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10963       $rm conftest*
10964       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10965
10966       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10967   (eval $ac_compile) 2>&5
10968   ac_status=$?
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); } 2>conftest.err; then
10971         soname=conftest
10972         lib=conftest
10973         libobjs=conftest.$ac_objext
10974         deplibs=
10975         wl=$lt_prog_compiler_wl_CXX
10976         compiler_flags=-v
10977         linker_flags=-v
10978         verstring=
10979         output_objdir=.
10980         libname=conftest
10981         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10982         allow_undefined_flag_CXX=
10983         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10984   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10985   ac_status=$?
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); }
10988         then
10989           archive_cmds_need_lc_CXX=no
10990         else
10991           archive_cmds_need_lc_CXX=yes
10992         fi
10993         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10994       else
10995         cat conftest.err 1>&5
10996       fi
10997       $rm conftest*
10998       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10999 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11000       ;;
11001     esac
11002   fi
11003   ;;
11004 esac
11005
11006 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11007 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11008 hardcode_action_CXX=
11009 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11010    test -n "$runpath_var CXX" || \
11011    test "X$hardcode_automatic_CXX"="Xyes" ; then
11012
11013   # We can hardcode non-existant directories.
11014   if test "$hardcode_direct_CXX" != no &&
11015      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11016      # have to relink, otherwise we might link with an installed library
11017      # when we should be linking with a yet-to-be-installed one
11018      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11019      test "$hardcode_minus_L_CXX" != no; then
11020     # Linking always hardcodes the temporary library directory.
11021     hardcode_action_CXX=relink
11022   else
11023     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11024     hardcode_action_CXX=immediate
11025   fi
11026 else
11027   # We cannot hardcode anything, or else we can only hardcode existing
11028   # directories.
11029   hardcode_action_CXX=unsupported
11030 fi
11031 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11032 echo "${ECHO_T}$hardcode_action_CXX" >&6
11033
11034 if test "$hardcode_action_CXX" = relink; then
11035   # Fast installation is not supported
11036   enable_fast_install=no
11037 elif test "$shlibpath_overrides_runpath" = yes ||
11038      test "$enable_shared" = no; then
11039   # Fast installation is not necessary
11040   enable_fast_install=needless
11041 fi
11042
11043 striplib=
11044 old_striplib=
11045 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11046 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11047 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11048   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11049   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11050   echo "$as_me:$LINENO: result: yes" >&5
11051 echo "${ECHO_T}yes" >&6
11052 else
11053 # FIXME - insert some real tests, host_os isn't really good enough
11054   case $host_os in
11055    darwin*)
11056        if test -n "$STRIP" ; then
11057          striplib="$STRIP -x"
11058          echo "$as_me:$LINENO: result: yes" >&5
11059 echo "${ECHO_T}yes" >&6
11060        else
11061   echo "$as_me:$LINENO: result: no" >&5
11062 echo "${ECHO_T}no" >&6
11063 fi
11064        ;;
11065    *)
11066   echo "$as_me:$LINENO: result: no" >&5
11067 echo "${ECHO_T}no" >&6
11068     ;;
11069   esac
11070 fi
11071
11072 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11073 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11074 library_names_spec=
11075 libname_spec='lib$name'
11076 soname_spec=
11077 shrext=".so"
11078 postinstall_cmds=
11079 postuninstall_cmds=
11080 finish_cmds=
11081 finish_eval=
11082 shlibpath_var=
11083 shlibpath_overrides_runpath=unknown
11084 version_type=none
11085 dynamic_linker="$host_os ld.so"
11086 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11087 if test "$GCC" = yes; then
11088   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11089   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11090     # if the path contains ";" then we assume it to be the separator
11091     # otherwise default to the standard path separator (i.e. ":") - it is
11092     # assumed that no part of a normal pathname contains ";" but that should
11093     # okay in the real world where ";" in dirpaths is itself problematic.
11094     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11095   else
11096     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11097   fi
11098 else
11099   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11100 fi
11101 need_lib_prefix=unknown
11102 hardcode_into_libs=no
11103
11104 # when you set need_version to no, make sure it does not cause -set_version
11105 # flags to be left without arguments
11106 need_version=unknown
11107
11108 case $host_os in
11109 aix3*)
11110   version_type=linux
11111   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11112   shlibpath_var=LIBPATH
11113
11114   # AIX 3 has no versioning support, so we append a major version to the name.
11115   soname_spec='${libname}${release}${shared_ext}$major'
11116   ;;
11117
11118 aix4* | aix5*)
11119   version_type=linux
11120   need_lib_prefix=no
11121   need_version=no
11122   hardcode_into_libs=yes
11123   if test "$host_cpu" = ia64; then
11124     # AIX 5 supports IA64
11125     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11126     shlibpath_var=LD_LIBRARY_PATH
11127   else
11128     # With GCC up to 2.95.x, collect2 would create an import file
11129     # for dependence libraries.  The import file would start with
11130     # the line `#! .'.  This would cause the generated library to
11131     # depend on `.', always an invalid library.  This was fixed in
11132     # development snapshots of GCC prior to 3.0.
11133     case $host_os in
11134       aix4 | aix4.[01] | aix4.[01].*)
11135       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11136            echo ' yes '
11137            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11138         :
11139       else
11140         can_build_shared=no
11141       fi
11142       ;;
11143     esac
11144     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11145     # soname into executable. Probably we can add versioning support to
11146     # collect2, so additional links can be useful in future.
11147     if test "$aix_use_runtimelinking" = yes; then
11148       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11149       # instead of lib<name>.a to let people know that these are not
11150       # typical AIX shared libraries.
11151       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152     else
11153       # We preserve .a as extension for shared libraries through AIX4.2
11154       # and later when we are not doing run time linking.
11155       library_names_spec='${libname}${release}.a $libname.a'
11156       soname_spec='${libname}${release}${shared_ext}$major'
11157     fi
11158     shlibpath_var=LIBPATH
11159   fi
11160   ;;
11161
11162 amigaos*)
11163   library_names_spec='$libname.ixlibrary $libname.a'
11164   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11165   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'
11166   ;;
11167
11168 beos*)
11169   library_names_spec='${libname}${shared_ext}'
11170   dynamic_linker="$host_os ld.so"
11171   shlibpath_var=LIBRARY_PATH
11172   ;;
11173
11174 bsdi4*)
11175   version_type=linux
11176   need_version=no
11177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178   soname_spec='${libname}${release}${shared_ext}$major'
11179   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11180   shlibpath_var=LD_LIBRARY_PATH
11181   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11182   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11183   # the default ld.so.conf also contains /usr/contrib/lib and
11184   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11185   # libtool to hard-code these into programs
11186   ;;
11187
11188 cygwin* | mingw* | pw32*)
11189   version_type=windows
11190   shrext=".dll"
11191   need_version=no
11192   need_lib_prefix=no
11193
11194   case $GCC,$host_os in
11195   yes,cygwin* | yes,mingw* | yes,pw32*)
11196     library_names_spec='$libname.dll.a'
11197     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11198     postinstall_cmds='base_file=`basename \${file}`~
11199       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11200       dldir=$destdir/`dirname \$dlpath`~
11201       test -d \$dldir || mkdir -p \$dldir~
11202       $install_prog $dir/$dlname \$dldir/$dlname'
11203     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11204       dlpath=$dir/\$dldll~
11205        $rm \$dlpath'
11206     shlibpath_overrides_runpath=yes
11207
11208     case $host_os in
11209     cygwin*)
11210       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11211       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11212       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11213       ;;
11214     mingw*)
11215       # MinGW DLLs use traditional 'lib' prefix
11216       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11217       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11218       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11219         # It is most probably a Windows format PATH printed by
11220         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11221         # path with ; separators, and with drive letters. We can handle the
11222         # drive letters (cygwin fileutils understands them), so leave them,
11223         # especially as we might pass files found there to a mingw objdump,
11224         # which wouldn't understand a cygwinified path. Ahh.
11225         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11226       else
11227         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11228       fi
11229       ;;
11230     pw32*)
11231       # pw32 DLLs use 'pw' prefix rather than 'lib'
11232       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11233       ;;
11234     esac
11235     ;;
11236
11237   *)
11238     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11239     ;;
11240   esac
11241   dynamic_linker='Win32 ld.exe'
11242   # FIXME: first we should search . and the directory the executable is in
11243   shlibpath_var=PATH
11244   ;;
11245
11246 darwin* | rhapsody*)
11247   dynamic_linker="$host_os dyld"
11248   version_type=darwin
11249   need_lib_prefix=no
11250   need_version=no
11251   # FIXME: Relying on posixy $() will cause problems for
11252   #        cross-compilation, but unfortunately the echo tests do not
11253   #        yet detect zsh echo's removal of \ escapes.
11254   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11255   soname_spec='${libname}${release}${major}$shared_ext'
11256   shlibpath_overrides_runpath=yes
11257   shlibpath_var=DYLD_LIBRARY_PATH
11258   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11259   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11260   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11261   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"`
11262   fi
11263   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11264   ;;
11265
11266 dgux*)
11267   version_type=linux
11268   need_lib_prefix=no
11269   need_version=no
11270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11271   soname_spec='${libname}${release}${shared_ext}$major'
11272   shlibpath_var=LD_LIBRARY_PATH
11273   ;;
11274
11275 freebsd1*)
11276   dynamic_linker=no
11277   ;;
11278
11279 freebsd*)
11280   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11281   version_type=freebsd-$objformat
11282   case $version_type in
11283     freebsd-elf*)
11284       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11285       need_version=no
11286       need_lib_prefix=no
11287       ;;
11288     freebsd-*)
11289       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11290       need_version=yes
11291       ;;
11292   esac
11293   shlibpath_var=LD_LIBRARY_PATH
11294   case $host_os in
11295   freebsd2*)
11296     shlibpath_overrides_runpath=yes
11297     ;;
11298   freebsd3.01* | freebsdelf3.01*)
11299     shlibpath_overrides_runpath=yes
11300     hardcode_into_libs=yes
11301     ;;
11302   *) # from 3.2 on
11303     shlibpath_overrides_runpath=no
11304     hardcode_into_libs=yes
11305     ;;
11306   esac
11307   ;;
11308
11309 gnu*)
11310   version_type=linux
11311   need_lib_prefix=no
11312   need_version=no
11313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11314   soname_spec='${libname}${release}${shared_ext}$major'
11315   shlibpath_var=LD_LIBRARY_PATH
11316   hardcode_into_libs=yes
11317   ;;
11318
11319 hpux9* | hpux10* | hpux11*)
11320   # Give a soname corresponding to the major version so that dld.sl refuses to
11321   # link against other versions.
11322   version_type=sunos
11323   need_lib_prefix=no
11324   need_version=no
11325   case "$host_cpu" in
11326   ia64*)
11327     shrext='.so'
11328     hardcode_into_libs=yes
11329     dynamic_linker="$host_os dld.so"
11330     shlibpath_var=LD_LIBRARY_PATH
11331     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333     soname_spec='${libname}${release}${shared_ext}$major'
11334     if test "X$HPUX_IA64_MODE" = X32; then
11335       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11336     else
11337       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11338     fi
11339     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11340     ;;
11341    hppa*64*)
11342      shrext='.sl'
11343      hardcode_into_libs=yes
11344      dynamic_linker="$host_os dld.sl"
11345      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11346      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11347      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11348      soname_spec='${libname}${release}${shared_ext}$major'
11349      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11350      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11351      ;;
11352    *)
11353     shrext='.sl'
11354     dynamic_linker="$host_os dld.sl"
11355     shlibpath_var=SHLIB_PATH
11356     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358     soname_spec='${libname}${release}${shared_ext}$major'
11359     ;;
11360   esac
11361   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11362   postinstall_cmds='chmod 555 $lib'
11363   ;;
11364
11365 irix5* | irix6* | nonstopux*)
11366   case $host_os in
11367     nonstopux*) version_type=nonstopux ;;
11368     *)
11369         if test "$lt_cv_prog_gnu_ld" = yes; then
11370                 version_type=linux
11371         else
11372                 version_type=irix
11373         fi ;;
11374   esac
11375   need_lib_prefix=no
11376   need_version=no
11377   soname_spec='${libname}${release}${shared_ext}$major'
11378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11379   case $host_os in
11380   irix5* | nonstopux*)
11381     libsuff= shlibsuff=
11382     ;;
11383   *)
11384     case $LD in # libtool.m4 will add one of these switches to LD
11385     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11386       libsuff= shlibsuff= libmagic=32-bit;;
11387     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11388       libsuff=32 shlibsuff=N32 libmagic=N32;;
11389     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11390       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11391     *) libsuff= shlibsuff= libmagic=never-match;;
11392     esac
11393     ;;
11394   esac
11395   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11396   shlibpath_overrides_runpath=no
11397   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11398   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11399   hardcode_into_libs=yes
11400   ;;
11401
11402 # No shared lib support for Linux oldld, aout, or coff.
11403 linux*oldld* | linux*aout* | linux*coff*)
11404   dynamic_linker=no
11405   ;;
11406
11407 # This must be Linux ELF.
11408 linux*)
11409   version_type=linux
11410   need_lib_prefix=no
11411   need_version=no
11412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413   soname_spec='${libname}${release}${shared_ext}$major'
11414   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11415   shlibpath_var=LD_LIBRARY_PATH
11416   shlibpath_overrides_runpath=no
11417   # This implies no fast_install, which is unacceptable.
11418   # Some rework will be needed to allow for fast_install
11419   # before this can be enabled.
11420   hardcode_into_libs=yes
11421
11422   # We used to test for /lib/ld.so.1 and disable shared libraries on
11423   # powerpc, because MkLinux only supported shared libraries with the
11424   # GNU dynamic linker.  Since this was broken with cross compilers,
11425   # most powerpc-linux boxes support dynamic linking these days and
11426   # people can always --disable-shared, the test was removed, and we
11427   # assume the GNU/Linux dynamic linker is in use.
11428   dynamic_linker='GNU/Linux ld.so'
11429   ;;
11430
11431 netbsd*)
11432   version_type=sunos
11433   need_lib_prefix=no
11434   need_version=no
11435   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11436     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11437     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11438     dynamic_linker='NetBSD (a.out) ld.so'
11439   else
11440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11441     soname_spec='${libname}${release}${shared_ext}$major'
11442     dynamic_linker='NetBSD ld.elf_so'
11443   fi
11444   shlibpath_var=LD_LIBRARY_PATH
11445   shlibpath_overrides_runpath=yes
11446   hardcode_into_libs=yes
11447   ;;
11448
11449 newsos6)
11450   version_type=linux
11451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452   shlibpath_var=LD_LIBRARY_PATH
11453   shlibpath_overrides_runpath=yes
11454   ;;
11455
11456 nto-qnx)
11457   version_type=linux
11458   need_lib_prefix=no
11459   need_version=no
11460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461   soname_spec='${libname}${release}${shared_ext}$major'
11462   shlibpath_var=LD_LIBRARY_PATH
11463   shlibpath_overrides_runpath=yes
11464   ;;
11465
11466 openbsd*)
11467   version_type=sunos
11468   need_lib_prefix=no
11469   need_version=no
11470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11471   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11474     case $host_os in
11475       openbsd2.[89] | openbsd2.[89].*)
11476         shlibpath_overrides_runpath=no
11477         ;;
11478       *)
11479         shlibpath_overrides_runpath=yes
11480         ;;
11481       esac
11482   else
11483     shlibpath_overrides_runpath=yes
11484   fi
11485   ;;
11486
11487 os2*)
11488   libname_spec='$name'
11489   shrext=".dll"
11490   need_lib_prefix=no
11491   library_names_spec='$libname${shared_ext} $libname.a'
11492   dynamic_linker='OS/2 ld.exe'
11493   shlibpath_var=LIBPATH
11494   ;;
11495
11496 osf3* | osf4* | osf5*)
11497   version_type=osf
11498   need_lib_prefix=no
11499   need_version=no
11500   soname_spec='${libname}${release}${shared_ext}$major'
11501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11502   shlibpath_var=LD_LIBRARY_PATH
11503   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11504   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11505   ;;
11506
11507 sco3.2v5*)
11508   version_type=osf
11509   soname_spec='${libname}${release}${shared_ext}$major'
11510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511   shlibpath_var=LD_LIBRARY_PATH
11512   ;;
11513
11514 solaris*)
11515   version_type=linux
11516   need_lib_prefix=no
11517   need_version=no
11518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519   soname_spec='${libname}${release}${shared_ext}$major'
11520   shlibpath_var=LD_LIBRARY_PATH
11521   shlibpath_overrides_runpath=yes
11522   hardcode_into_libs=yes
11523   # ldd complains unless libraries are executable
11524   postinstall_cmds='chmod +x $lib'
11525   ;;
11526
11527 sunos4*)
11528   version_type=sunos
11529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11530   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11531   shlibpath_var=LD_LIBRARY_PATH
11532   shlibpath_overrides_runpath=yes
11533   if test "$with_gnu_ld" = yes; then
11534     need_lib_prefix=no
11535   fi
11536   need_version=yes
11537   ;;
11538
11539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11540   version_type=linux
11541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542   soname_spec='${libname}${release}${shared_ext}$major'
11543   shlibpath_var=LD_LIBRARY_PATH
11544   case $host_vendor in
11545     sni)
11546       shlibpath_overrides_runpath=no
11547       need_lib_prefix=no
11548       export_dynamic_flag_spec='${wl}-Blargedynsym'
11549       runpath_var=LD_RUN_PATH
11550       ;;
11551     siemens)
11552       need_lib_prefix=no
11553       ;;
11554     motorola)
11555       need_lib_prefix=no
11556       need_version=no
11557       shlibpath_overrides_runpath=no
11558       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11559       ;;
11560   esac
11561   ;;
11562
11563 sysv4*MP*)
11564   if test -d /usr/nec ;then
11565     version_type=linux
11566     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11567     soname_spec='$libname${shared_ext}.$major'
11568     shlibpath_var=LD_LIBRARY_PATH
11569   fi
11570   ;;
11571
11572 uts4*)
11573   version_type=linux
11574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575   soname_spec='${libname}${release}${shared_ext}$major'
11576   shlibpath_var=LD_LIBRARY_PATH
11577   ;;
11578
11579 *)
11580   dynamic_linker=no
11581   ;;
11582 esac
11583 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11584 echo "${ECHO_T}$dynamic_linker" >&6
11585 test "$dynamic_linker" = no && can_build_shared=no
11586
11587 if test "x$enable_dlopen" != xyes; then
11588   enable_dlopen=unknown
11589   enable_dlopen_self=unknown
11590   enable_dlopen_self_static=unknown
11591 else
11592   lt_cv_dlopen=no
11593   lt_cv_dlopen_libs=
11594
11595   case $host_os in
11596   beos*)
11597     lt_cv_dlopen="load_add_on"
11598     lt_cv_dlopen_libs=
11599     lt_cv_dlopen_self=yes
11600     ;;
11601
11602   mingw* | pw32*)
11603     lt_cv_dlopen="LoadLibrary"
11604     lt_cv_dlopen_libs=
11605    ;;
11606
11607   cygwin*)
11608     lt_cv_dlopen="dlopen"
11609     lt_cv_dlopen_libs=
11610    ;;
11611
11612   darwin*)
11613   # if libdl is installed we need to link against it
11614     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11615 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11616 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11617   echo $ECHO_N "(cached) $ECHO_C" >&6
11618 else
11619   ac_check_lib_save_LIBS=$LIBS
11620 LIBS="-ldl  $LIBS"
11621 cat >conftest.$ac_ext <<_ACEOF
11622 #line $LINENO "configure"
11623 /* confdefs.h.  */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h.  */
11628
11629 /* Override any gcc2 internal prototype to avoid an error.  */
11630 #ifdef __cplusplus
11631 extern "C"
11632 #endif
11633 /* We use char because int might match the return type of a gcc2
11634    builtin and then its argument prototype would still apply.  */
11635 char dlopen ();
11636 int
11637 main ()
11638 {
11639 dlopen ();
11640   ;
11641   return 0;
11642 }
11643 _ACEOF
11644 rm -f conftest.$ac_objext conftest$ac_exeext
11645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11646   (eval $ac_link) 2>&5
11647   ac_status=$?
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); } &&
11650          { ac_try='test -s conftest$ac_exeext'
11651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652   (eval $ac_try) 2>&5
11653   ac_status=$?
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); }; }; then
11656   ac_cv_lib_dl_dlopen=yes
11657 else
11658   echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11660
11661 ac_cv_lib_dl_dlopen=no
11662 fi
11663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11664 LIBS=$ac_check_lib_save_LIBS
11665 fi
11666 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11667 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11668 if test $ac_cv_lib_dl_dlopen = yes; then
11669   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11670 else
11671
11672     lt_cv_dlopen="dyld"
11673     lt_cv_dlopen_libs=
11674     lt_cv_dlopen_self=yes
11675
11676 fi
11677
11678    ;;
11679
11680   *)
11681     echo "$as_me:$LINENO: checking for shl_load" >&5
11682 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11683 if test "${ac_cv_func_shl_load+set}" = set; then
11684   echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686   cat >conftest.$ac_ext <<_ACEOF
11687 #line $LINENO "configure"
11688 /* confdefs.h.  */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h.  */
11693 /* System header to define __stub macros and hopefully few prototypes,
11694     which can conflict with char shl_load (); below.
11695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11696     <limits.h> exists even on freestanding compilers.  */
11697 #ifdef __STDC__
11698 # include <limits.h>
11699 #else
11700 # include <assert.h>
11701 #endif
11702 /* Override any gcc2 internal prototype to avoid an error.  */
11703 #ifdef __cplusplus
11704 extern "C"
11705 {
11706 #endif
11707 /* We use char because int might match the return type of a gcc2
11708    builtin and then its argument prototype would still apply.  */
11709 char shl_load ();
11710 /* The GNU C library defines this for functions which it implements
11711     to always fail with ENOSYS.  Some functions are actually named
11712     something starting with __ and the normal name is an alias.  */
11713 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11714 choke me
11715 #else
11716 char (*f) () = shl_load;
11717 #endif
11718 #ifdef __cplusplus
11719 }
11720 #endif
11721
11722 int
11723 main ()
11724 {
11725 return f != shl_load;
11726   ;
11727   return 0;
11728 }
11729 _ACEOF
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11732   (eval $ac_link) 2>&5
11733   ac_status=$?
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); } &&
11736          { ac_try='test -s conftest$ac_exeext'
11737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738   (eval $ac_try) 2>&5
11739   ac_status=$?
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); }; }; then
11742   ac_cv_func_shl_load=yes
11743 else
11744   echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747 ac_cv_func_shl_load=no
11748 fi
11749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11750 fi
11751 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11752 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11753 if test $ac_cv_func_shl_load = yes; then
11754   lt_cv_dlopen="shl_load"
11755 else
11756   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11757 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11758 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11759   echo $ECHO_N "(cached) $ECHO_C" >&6
11760 else
11761   ac_check_lib_save_LIBS=$LIBS
11762 LIBS="-ldld  $LIBS"
11763 cat >conftest.$ac_ext <<_ACEOF
11764 #line $LINENO "configure"
11765 /* confdefs.h.  */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h.  */
11770
11771 /* Override any gcc2 internal prototype to avoid an error.  */
11772 #ifdef __cplusplus
11773 extern "C"
11774 #endif
11775 /* We use char because int might match the return type of a gcc2
11776    builtin and then its argument prototype would still apply.  */
11777 char shl_load ();
11778 int
11779 main ()
11780 {
11781 shl_load ();
11782   ;
11783   return 0;
11784 }
11785 _ACEOF
11786 rm -f conftest.$ac_objext conftest$ac_exeext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11788   (eval $ac_link) 2>&5
11789   ac_status=$?
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); } &&
11792          { ac_try='test -s conftest$ac_exeext'
11793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794   (eval $ac_try) 2>&5
11795   ac_status=$?
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); }; }; then
11798   ac_cv_lib_dld_shl_load=yes
11799 else
11800   echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11802
11803 ac_cv_lib_dld_shl_load=no
11804 fi
11805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11806 LIBS=$ac_check_lib_save_LIBS
11807 fi
11808 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11809 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11810 if test $ac_cv_lib_dld_shl_load = yes; then
11811   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11812 else
11813   echo "$as_me:$LINENO: checking for dlopen" >&5
11814 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11815 if test "${ac_cv_func_dlopen+set}" = set; then
11816   echo $ECHO_N "(cached) $ECHO_C" >&6
11817 else
11818   cat >conftest.$ac_ext <<_ACEOF
11819 #line $LINENO "configure"
11820 /* confdefs.h.  */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h.  */
11825 /* System header to define __stub macros and hopefully few prototypes,
11826     which can conflict with char dlopen (); below.
11827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11828     <limits.h> exists even on freestanding compilers.  */
11829 #ifdef __STDC__
11830 # include <limits.h>
11831 #else
11832 # include <assert.h>
11833 #endif
11834 /* Override any gcc2 internal prototype to avoid an error.  */
11835 #ifdef __cplusplus
11836 extern "C"
11837 {
11838 #endif
11839 /* We use char because int might match the return type of a gcc2
11840    builtin and then its argument prototype would still apply.  */
11841 char dlopen ();
11842 /* The GNU C library defines this for functions which it implements
11843     to always fail with ENOSYS.  Some functions are actually named
11844     something starting with __ and the normal name is an alias.  */
11845 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11846 choke me
11847 #else
11848 char (*f) () = dlopen;
11849 #endif
11850 #ifdef __cplusplus
11851 }
11852 #endif
11853
11854 int
11855 main ()
11856 {
11857 return f != dlopen;
11858   ;
11859   return 0;
11860 }
11861 _ACEOF
11862 rm -f conftest.$ac_objext conftest$ac_exeext
11863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11864   (eval $ac_link) 2>&5
11865   ac_status=$?
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); } &&
11868          { ac_try='test -s conftest$ac_exeext'
11869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870   (eval $ac_try) 2>&5
11871   ac_status=$?
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); }; }; then
11874   ac_cv_func_dlopen=yes
11875 else
11876   echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11878
11879 ac_cv_func_dlopen=no
11880 fi
11881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11882 fi
11883 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11884 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11885 if test $ac_cv_func_dlopen = yes; then
11886   lt_cv_dlopen="dlopen"
11887 else
11888   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11889 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11890 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11891   echo $ECHO_N "(cached) $ECHO_C" >&6
11892 else
11893   ac_check_lib_save_LIBS=$LIBS
11894 LIBS="-ldl  $LIBS"
11895 cat >conftest.$ac_ext <<_ACEOF
11896 #line $LINENO "configure"
11897 /* confdefs.h.  */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h.  */
11902
11903 /* Override any gcc2 internal prototype to avoid an error.  */
11904 #ifdef __cplusplus
11905 extern "C"
11906 #endif
11907 /* We use char because int might match the return type of a gcc2
11908    builtin and then its argument prototype would still apply.  */
11909 char dlopen ();
11910 int
11911 main ()
11912 {
11913 dlopen ();
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920   (eval $ac_link) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } &&
11924          { ac_try='test -s conftest$ac_exeext'
11925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926   (eval $ac_try) 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); }; }; then
11930   ac_cv_lib_dl_dlopen=yes
11931 else
11932   echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11934
11935 ac_cv_lib_dl_dlopen=no
11936 fi
11937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11938 LIBS=$ac_check_lib_save_LIBS
11939 fi
11940 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11941 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11942 if test $ac_cv_lib_dl_dlopen = yes; then
11943   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11944 else
11945   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11946 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11947 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11948   echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950   ac_check_lib_save_LIBS=$LIBS
11951 LIBS="-lsvld  $LIBS"
11952 cat >conftest.$ac_ext <<_ACEOF
11953 #line $LINENO "configure"
11954 /* confdefs.h.  */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h.  */
11959
11960 /* Override any gcc2 internal prototype to avoid an error.  */
11961 #ifdef __cplusplus
11962 extern "C"
11963 #endif
11964 /* We use char because int might match the return type of a gcc2
11965    builtin and then its argument prototype would still apply.  */
11966 char dlopen ();
11967 int
11968 main ()
11969 {
11970 dlopen ();
11971   ;
11972   return 0;
11973 }
11974 _ACEOF
11975 rm -f conftest.$ac_objext conftest$ac_exeext
11976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11977   (eval $ac_link) 2>&5
11978   ac_status=$?
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); } &&
11981          { ac_try='test -s conftest$ac_exeext'
11982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983   (eval $ac_try) 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); }; }; then
11987   ac_cv_lib_svld_dlopen=yes
11988 else
11989   echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11991
11992 ac_cv_lib_svld_dlopen=no
11993 fi
11994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11995 LIBS=$ac_check_lib_save_LIBS
11996 fi
11997 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11998 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11999 if test $ac_cv_lib_svld_dlopen = yes; then
12000   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12001 else
12002   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12003 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12004 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12005   echo $ECHO_N "(cached) $ECHO_C" >&6
12006 else
12007   ac_check_lib_save_LIBS=$LIBS
12008 LIBS="-ldld  $LIBS"
12009 cat >conftest.$ac_ext <<_ACEOF
12010 #line $LINENO "configure"
12011 /* confdefs.h.  */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h.  */
12016
12017 /* Override any gcc2 internal prototype to avoid an error.  */
12018 #ifdef __cplusplus
12019 extern "C"
12020 #endif
12021 /* We use char because int might match the return type of a gcc2
12022    builtin and then its argument prototype would still apply.  */
12023 char dld_link ();
12024 int
12025 main ()
12026 {
12027 dld_link ();
12028   ;
12029   return 0;
12030 }
12031 _ACEOF
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12034   (eval $ac_link) 2>&5
12035   ac_status=$?
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); } &&
12038          { ac_try='test -s conftest$ac_exeext'
12039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040   (eval $ac_try) 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); }; }; then
12044   ac_cv_lib_dld_dld_link=yes
12045 else
12046   echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12048
12049 ac_cv_lib_dld_dld_link=no
12050 fi
12051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12052 LIBS=$ac_check_lib_save_LIBS
12053 fi
12054 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12055 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12056 if test $ac_cv_lib_dld_dld_link = yes; then
12057   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12058 fi
12059
12060
12061 fi
12062
12063
12064 fi
12065
12066
12067 fi
12068
12069
12070 fi
12071
12072
12073 fi
12074
12075     ;;
12076   esac
12077
12078   if test "x$lt_cv_dlopen" != xno; then
12079     enable_dlopen=yes
12080   else
12081     enable_dlopen=no
12082   fi
12083
12084   case $lt_cv_dlopen in
12085   dlopen)
12086     save_CPPFLAGS="$CPPFLAGS"
12087     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12088
12089     save_LDFLAGS="$LDFLAGS"
12090     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12091
12092     save_LIBS="$LIBS"
12093     LIBS="$lt_cv_dlopen_libs $LIBS"
12094
12095     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12096 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12097 if test "${lt_cv_dlopen_self+set}" = set; then
12098   echo $ECHO_N "(cached) $ECHO_C" >&6
12099 else
12100           if test "$cross_compiling" = yes; then :
12101   lt_cv_dlopen_self=cross
12102 else
12103   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12104   lt_status=$lt_dlunknown
12105   cat > conftest.$ac_ext <<EOF
12106 #line 12106 "configure"
12107 #include "confdefs.h"
12108
12109 #if HAVE_DLFCN_H
12110 #include <dlfcn.h>
12111 #endif
12112
12113 #include <stdio.h>
12114
12115 #ifdef RTLD_GLOBAL
12116 #  define LT_DLGLOBAL           RTLD_GLOBAL
12117 #else
12118 #  ifdef DL_GLOBAL
12119 #    define LT_DLGLOBAL         DL_GLOBAL
12120 #  else
12121 #    define LT_DLGLOBAL         0
12122 #  endif
12123 #endif
12124
12125 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12126    find out it does not work in some platform. */
12127 #ifndef LT_DLLAZY_OR_NOW
12128 #  ifdef RTLD_LAZY
12129 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12130 #  else
12131 #    ifdef DL_LAZY
12132 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12133 #    else
12134 #      ifdef RTLD_NOW
12135 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12136 #      else
12137 #        ifdef DL_NOW
12138 #          define LT_DLLAZY_OR_NOW      DL_NOW
12139 #        else
12140 #          define LT_DLLAZY_OR_NOW      0
12141 #        endif
12142 #      endif
12143 #    endif
12144 #  endif
12145 #endif
12146
12147 #ifdef __cplusplus
12148 extern "C" void exit (int);
12149 #endif
12150
12151 void fnord() { int i=42;}
12152 int main ()
12153 {
12154   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12155   int status = $lt_dlunknown;
12156
12157   if (self)
12158     {
12159       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12160       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12161       /* dlclose (self); */
12162     }
12163
12164     exit (status);
12165 }
12166 EOF
12167   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12168   (eval $ac_link) 2>&5
12169   ac_status=$?
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12172     (./conftest; exit; ) 2>/dev/null
12173     lt_status=$?
12174     case x$lt_status in
12175       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12176       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12177       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12178     esac
12179   else :
12180     # compilation failed
12181     lt_cv_dlopen_self=no
12182   fi
12183 fi
12184 rm -fr conftest*
12185
12186
12187 fi
12188 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12189 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12190
12191     if test "x$lt_cv_dlopen_self" = xyes; then
12192       LDFLAGS="$LDFLAGS $link_static_flag"
12193       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12194 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12195 if test "${lt_cv_dlopen_self_static+set}" = set; then
12196   echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198           if test "$cross_compiling" = yes; then :
12199   lt_cv_dlopen_self_static=cross
12200 else
12201   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12202   lt_status=$lt_dlunknown
12203   cat > conftest.$ac_ext <<EOF
12204 #line 12204 "configure"
12205 #include "confdefs.h"
12206
12207 #if HAVE_DLFCN_H
12208 #include <dlfcn.h>
12209 #endif
12210
12211 #include <stdio.h>
12212
12213 #ifdef RTLD_GLOBAL
12214 #  define LT_DLGLOBAL           RTLD_GLOBAL
12215 #else
12216 #  ifdef DL_GLOBAL
12217 #    define LT_DLGLOBAL         DL_GLOBAL
12218 #  else
12219 #    define LT_DLGLOBAL         0
12220 #  endif
12221 #endif
12222
12223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12224    find out it does not work in some platform. */
12225 #ifndef LT_DLLAZY_OR_NOW
12226 #  ifdef RTLD_LAZY
12227 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12228 #  else
12229 #    ifdef DL_LAZY
12230 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12231 #    else
12232 #      ifdef RTLD_NOW
12233 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12234 #      else
12235 #        ifdef DL_NOW
12236 #          define LT_DLLAZY_OR_NOW      DL_NOW
12237 #        else
12238 #          define LT_DLLAZY_OR_NOW      0
12239 #        endif
12240 #      endif
12241 #    endif
12242 #  endif
12243 #endif
12244
12245 #ifdef __cplusplus
12246 extern "C" void exit (int);
12247 #endif
12248
12249 void fnord() { int i=42;}
12250 int main ()
12251 {
12252   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12253   int status = $lt_dlunknown;
12254
12255   if (self)
12256     {
12257       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12258       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12259       /* dlclose (self); */
12260     }
12261
12262     exit (status);
12263 }
12264 EOF
12265   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12266   (eval $ac_link) 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12270     (./conftest; exit; ) 2>/dev/null
12271     lt_status=$?
12272     case x$lt_status in
12273       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12274       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12275       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12276     esac
12277   else :
12278     # compilation failed
12279     lt_cv_dlopen_self_static=no
12280   fi
12281 fi
12282 rm -fr conftest*
12283
12284
12285 fi
12286 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12287 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12288     fi
12289
12290     CPPFLAGS="$save_CPPFLAGS"
12291     LDFLAGS="$save_LDFLAGS"
12292     LIBS="$save_LIBS"
12293     ;;
12294   esac
12295
12296   case $lt_cv_dlopen_self in
12297   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12298   *) enable_dlopen_self=unknown ;;
12299   esac
12300
12301   case $lt_cv_dlopen_self_static in
12302   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12303   *) enable_dlopen_self_static=unknown ;;
12304   esac
12305 fi
12306
12307
12308 # The else clause should only fire when bootstrapping the
12309 # libtool distribution, otherwise you forgot to ship ltmain.sh
12310 # with your package, and you will get complaints that there are
12311 # no rules to generate ltmain.sh.
12312 if test -f "$ltmain"; then
12313   # See if we are running on zsh, and set the options which allow our commands through
12314   # without removal of \ escapes.
12315   if test -n "${ZSH_VERSION+set}" ; then
12316     setopt NO_GLOB_SUBST
12317   fi
12318   # Now quote all the things that may contain metacharacters while being
12319   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12320   # variables and quote the copies for generation of the libtool script.
12321   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12322     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12323     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12324     deplibs_check_method reload_flag reload_cmds need_locks \
12325     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12326     lt_cv_sys_global_symbol_to_c_name_address \
12327     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12328     old_postinstall_cmds old_postuninstall_cmds \
12329     compiler_CXX \
12330     CC_CXX \
12331     LD_CXX \
12332     lt_prog_compiler_wl_CXX \
12333     lt_prog_compiler_pic_CXX \
12334     lt_prog_compiler_static_CXX \
12335     lt_prog_compiler_no_builtin_flag_CXX \
12336     export_dynamic_flag_spec_CXX \
12337     thread_safe_flag_spec_CXX \
12338     whole_archive_flag_spec_CXX \
12339     enable_shared_with_static_runtimes_CXX \
12340     old_archive_cmds_CXX \
12341     old_archive_from_new_cmds_CXX \
12342     predep_objects_CXX \
12343     postdep_objects_CXX \
12344     predeps_CXX \
12345     postdeps_CXX \
12346     compiler_lib_search_path_CXX \
12347     archive_cmds_CXX \
12348     archive_expsym_cmds_CXX \
12349     postinstall_cmds_CXX \
12350     postuninstall_cmds_CXX \
12351     old_archive_from_expsyms_cmds_CXX \
12352     allow_undefined_flag_CXX \
12353     no_undefined_flag_CXX \
12354     export_symbols_cmds_CXX \
12355     hardcode_libdir_flag_spec_CXX \
12356     hardcode_libdir_flag_spec_ld_CXX \
12357     hardcode_libdir_separator_CXX \
12358     hardcode_automatic_CXX \
12359     module_cmds_CXX \
12360     module_expsym_cmds_CXX \
12361     lt_cv_prog_compiler_c_o_CXX \
12362     exclude_expsyms_CXX \
12363     include_expsyms_CXX; do
12364
12365     case $var in
12366     old_archive_cmds_CXX | \
12367     old_archive_from_new_cmds_CXX | \
12368     archive_cmds_CXX | \
12369     archive_expsym_cmds_CXX | \
12370     module_cmds_CXX | \
12371     module_expsym_cmds_CXX | \
12372     old_archive_from_expsyms_cmds_CXX | \
12373     export_symbols_cmds_CXX | \
12374     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12375     postinstall_cmds | postuninstall_cmds | \
12376     old_postinstall_cmds | old_postuninstall_cmds | \
12377     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12378       # Double-quote double-evaled strings.
12379       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12380       ;;
12381     *)
12382       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12383       ;;
12384     esac
12385   done
12386
12387   case $lt_echo in
12388   *'\$0 --fallback-echo"')
12389     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12390     ;;
12391   esac
12392
12393 cfgfile="$ofile"
12394
12395   cat <<__EOF__ >> "$cfgfile"
12396 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12397
12398 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12399
12400 # Shell to use when invoking shell scripts.
12401 SHELL=$lt_SHELL
12402
12403 # Whether or not to build shared libraries.
12404 build_libtool_libs=$enable_shared
12405
12406 # Whether or not to build static libraries.
12407 build_old_libs=$enable_static
12408
12409 # Whether or not to add -lc for building shared libraries.
12410 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12411
12412 # Whether or not to disallow shared libs when runtime libs are static
12413 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12414
12415 # Whether or not to optimize for fast installation.
12416 fast_install=$enable_fast_install
12417
12418 # The host system.
12419 host_alias=$host_alias
12420 host=$host
12421
12422 # An echo program that does not interpret backslashes.
12423 echo=$lt_echo
12424
12425 # The archiver.
12426 AR=$lt_AR
12427 AR_FLAGS=$lt_AR_FLAGS
12428
12429 # A C compiler.
12430 LTCC=$lt_LTCC
12431
12432 # A language-specific compiler.
12433 CC=$lt_compiler_CXX
12434
12435 # Is the compiler the GNU C compiler?
12436 with_gcc=$GCC_CXX
12437
12438 # An ERE matcher.
12439 EGREP=$lt_EGREP
12440
12441 # The linker used to build libraries.
12442 LD=$lt_LD_CXX
12443
12444 # Whether we need hard or soft links.
12445 LN_S=$lt_LN_S
12446
12447 # A BSD-compatible nm program.
12448 NM=$lt_NM
12449
12450 # A symbol stripping program
12451 STRIP=$STRIP
12452
12453 # Used to examine libraries when file_magic_cmd begins "file"
12454 MAGIC_CMD=$MAGIC_CMD
12455
12456 # Used on cygwin: DLL creation program.
12457 DLLTOOL="$DLLTOOL"
12458
12459 # Used on cygwin: object dumper.
12460 OBJDUMP="$OBJDUMP"
12461
12462 # Used on cygwin: assembler.
12463 AS="$AS"
12464
12465 # The name of the directory that contains temporary libtool files.
12466 objdir=$objdir
12467
12468 # How to create reloadable object files.
12469 reload_flag=$lt_reload_flag
12470 reload_cmds=$lt_reload_cmds
12471
12472 # How to pass a linker flag through the compiler.
12473 wl=$lt_lt_prog_compiler_wl_CXX
12474
12475 # Object file suffix (normally "o").
12476 objext="$ac_objext"
12477
12478 # Old archive suffix (normally "a").
12479 libext="$libext"
12480
12481 # Shared library suffix (normally ".so").
12482 shrext='$shrext'
12483
12484 # Executable file suffix (normally "").
12485 exeext="$exeext"
12486
12487 # Additional compiler flags for building library objects.
12488 pic_flag=$lt_lt_prog_compiler_pic_CXX
12489 pic_mode=$pic_mode
12490
12491 # What is the maximum length of a command?
12492 max_cmd_len=$lt_cv_sys_max_cmd_len
12493
12494 # Does compiler simultaneously support -c and -o options?
12495 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12496
12497 # Must we lock files when doing compilation ?
12498 need_locks=$lt_need_locks
12499
12500 # Do we need the lib prefix for modules?
12501 need_lib_prefix=$need_lib_prefix
12502
12503 # Do we need a version for libraries?
12504 need_version=$need_version
12505
12506 # Whether dlopen is supported.
12507 dlopen_support=$enable_dlopen
12508
12509 # Whether dlopen of programs is supported.
12510 dlopen_self=$enable_dlopen_self
12511
12512 # Whether dlopen of statically linked programs is supported.
12513 dlopen_self_static=$enable_dlopen_self_static
12514
12515 # Compiler flag to prevent dynamic linking.
12516 link_static_flag=$lt_lt_prog_compiler_static_CXX
12517
12518 # Compiler flag to turn off builtin functions.
12519 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12520
12521 # Compiler flag to allow reflexive dlopens.
12522 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12523
12524 # Compiler flag to generate shared objects directly from archives.
12525 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12526
12527 # Compiler flag to generate thread-safe objects.
12528 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12529
12530 # Library versioning type.
12531 version_type=$version_type
12532
12533 # Format of library name prefix.
12534 libname_spec=$lt_libname_spec
12535
12536 # List of archive names.  First name is the real one, the rest are links.
12537 # The last name is the one that the linker finds with -lNAME.
12538 library_names_spec=$lt_library_names_spec
12539
12540 # The coded name of the library, if different from the real name.
12541 soname_spec=$lt_soname_spec
12542
12543 # Commands used to build and install an old-style archive.
12544 RANLIB=$lt_RANLIB
12545 old_archive_cmds=$lt_old_archive_cmds_CXX
12546 old_postinstall_cmds=$lt_old_postinstall_cmds
12547 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12548
12549 # Create an old-style archive from a shared archive.
12550 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12551
12552 # Create a temporary old-style archive to link instead of a shared archive.
12553 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12554
12555 # Commands used to build and install a shared archive.
12556 archive_cmds=$lt_archive_cmds_CXX
12557 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12558 postinstall_cmds=$lt_postinstall_cmds
12559 postuninstall_cmds=$lt_postuninstall_cmds
12560
12561 # Commands used to build a loadable module (assumed same as above if empty)
12562 module_cmds=$lt_module_cmds_CXX
12563 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12564
12565 # Commands to strip libraries.
12566 old_striplib=$lt_old_striplib
12567 striplib=$lt_striplib
12568
12569 # Dependencies to place before the objects being linked to create a
12570 # shared library.
12571 predep_objects=$lt_predep_objects_CXX
12572
12573 # Dependencies to place after the objects being linked to create a
12574 # shared library.
12575 postdep_objects=$lt_postdep_objects_CXX
12576
12577 # Dependencies to place before the objects being linked to create a
12578 # shared library.
12579 predeps=$lt_predeps_CXX
12580
12581 # Dependencies to place after the objects being linked to create a
12582 # shared library.
12583 postdeps=$lt_postdeps_CXX
12584
12585 # The library search path used internally by the compiler when linking
12586 # a shared library.
12587 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12588
12589 # Method to check whether dependent libraries are shared objects.
12590 deplibs_check_method=$lt_deplibs_check_method
12591
12592 # Command to use when deplibs_check_method == file_magic.
12593 file_magic_cmd=$lt_file_magic_cmd
12594
12595 # Flag that allows shared libraries with undefined symbols to be built.
12596 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12597
12598 # Flag that forces no undefined symbols.
12599 no_undefined_flag=$lt_no_undefined_flag_CXX
12600
12601 # Commands used to finish a libtool library installation in a directory.
12602 finish_cmds=$lt_finish_cmds
12603
12604 # Same as above, but a single script fragment to be evaled but not shown.
12605 finish_eval=$lt_finish_eval
12606
12607 # Take the output of nm and produce a listing of raw symbols and C names.
12608 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12609
12610 # Transform the output of nm in a proper C declaration
12611 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12612
12613 # Transform the output of nm in a C name address pair
12614 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12615
12616 # This is the shared library runtime path variable.
12617 runpath_var=$runpath_var
12618
12619 # This is the shared library path variable.
12620 shlibpath_var=$shlibpath_var
12621
12622 # Is shlibpath searched before the hard-coded library search path?
12623 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12624
12625 # How to hardcode a shared library path into an executable.
12626 hardcode_action=$hardcode_action_CXX
12627
12628 # Whether we should hardcode library paths into libraries.
12629 hardcode_into_libs=$hardcode_into_libs
12630
12631 # Flag to hardcode \$libdir into a binary during linking.
12632 # This must work even if \$libdir does not exist.
12633 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12634
12635 # If ld is used when linking, flag to hardcode \$libdir into
12636 # a binary during linking. This must work even if \$libdir does
12637 # not exist.
12638 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12639
12640 # Whether we need a single -rpath flag with a separated argument.
12641 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12642
12643 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12644 # resulting binary.
12645 hardcode_direct=$hardcode_direct_CXX
12646
12647 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12648 # resulting binary.
12649 hardcode_minus_L=$hardcode_minus_L_CXX
12650
12651 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12652 # the resulting binary.
12653 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12654
12655 # Set to yes if building a shared library automatically hardcodes DIR into the library
12656 # and all subsequent libraries and executables linked against it.
12657 hardcode_automatic=$hardcode_automatic_CXX
12658
12659 # Variables whose values should be saved in libtool wrapper scripts and
12660 # restored at relink time.
12661 variables_saved_for_relink="$variables_saved_for_relink"
12662
12663 # Whether libtool must link a program against all its dependency libraries.
12664 link_all_deplibs=$link_all_deplibs_CXX
12665
12666 # Compile-time system search path for libraries
12667 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12668
12669 # Run-time system search path for libraries
12670 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12671
12672 # Fix the shell variable \$srcfile for the compiler.
12673 fix_srcfile_path="$fix_srcfile_path_CXX"
12674
12675 # Set to yes if exported symbols are required.
12676 always_export_symbols=$always_export_symbols_CXX
12677
12678 # The commands to list exported symbols.
12679 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12680
12681 # The commands to extract the exported symbol list from a shared archive.
12682 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12683
12684 # Symbols that should not be listed in the preloaded symbols.
12685 exclude_expsyms=$lt_exclude_expsyms_CXX
12686
12687 # Symbols that must always be exported.
12688 include_expsyms=$lt_include_expsyms_CXX
12689
12690 # ### END LIBTOOL TAG CONFIG: $tagname
12691
12692 __EOF__
12693
12694
12695 else
12696   # If there is no Makefile yet, we rely on a make rule to execute
12697   # `config.status --recheck' to rerun these tests and create the
12698   # libtool script then.
12699   test -f Makefile && make "$ltmain"
12700 fi
12701
12702
12703 ac_ext=c
12704 ac_cpp='$CPP $CPPFLAGS'
12705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12708
12709 CC=$lt_save_CC
12710 LDCXX=$LD
12711 LD=$lt_save_LD
12712 GCC=$lt_save_GCC
12713 with_gnu_ldcxx=$with_gnu_ld
12714 with_gnu_ld=$lt_save_with_gnu_ld
12715 lt_cv_path_LDCXX=$lt_cv_path_LD
12716 lt_cv_path_LD=$lt_save_path_LD
12717 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12718 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12719
12720         else
12721           tagname=""
12722         fi
12723         ;;
12724
12725       F77)
12726         if test -n "$F77" && test "X$F77" != "Xno"; then
12727
12728 ac_ext=f
12729 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12730 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12731 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12732
12733
12734 archive_cmds_need_lc_F77=no
12735 allow_undefined_flag_F77=
12736 always_export_symbols_F77=no
12737 archive_expsym_cmds_F77=
12738 export_dynamic_flag_spec_F77=
12739 hardcode_direct_F77=no
12740 hardcode_libdir_flag_spec_F77=
12741 hardcode_libdir_flag_spec_ld_F77=
12742 hardcode_libdir_separator_F77=
12743 hardcode_minus_L_F77=no
12744 hardcode_automatic_F77=no
12745 module_cmds_F77=
12746 module_expsym_cmds_F77=
12747 link_all_deplibs_F77=unknown
12748 old_archive_cmds_F77=$old_archive_cmds
12749 no_undefined_flag_F77=
12750 whole_archive_flag_spec_F77=
12751 enable_shared_with_static_runtimes_F77=no
12752
12753 # Source file extension for f77 test sources.
12754 ac_ext=f
12755
12756 # Object file extension for compiled f77 test sources.
12757 objext=o
12758 objext_F77=$objext
12759
12760 # Code to be used in simple compile tests
12761 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12762
12763 # Code to be used in simple link tests
12764 lt_simple_link_test_code="      program t\n      end\n"
12765
12766 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12767
12768 # If no C compiler was specified, use CC.
12769 LTCC=${LTCC-"$CC"}
12770
12771 # Allow CC to be a program name with arguments.
12772 compiler=$CC
12773
12774
12775 # Allow CC to be a program name with arguments.
12776 lt_save_CC="$CC"
12777 CC=${F77-"f77"}
12778 compiler=$CC
12779 compiler_F77=$CC
12780 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12781
12782 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12783 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12784 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12785 echo "${ECHO_T}$can_build_shared" >&6
12786
12787 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12788 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12789 test "$can_build_shared" = "no" && enable_shared=no
12790
12791 # On AIX, shared libraries and static libraries use the same namespace, and
12792 # are all built from PIC.
12793 case "$host_os" in
12794 aix3*)
12795   test "$enable_shared" = yes && enable_static=no
12796   if test -n "$RANLIB"; then
12797     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12798     postinstall_cmds='$RANLIB $lib'
12799   fi
12800   ;;
12801 aix4*)
12802   test "$enable_shared" = yes && enable_static=no
12803   ;;
12804 esac
12805 echo "$as_me:$LINENO: result: $enable_shared" >&5
12806 echo "${ECHO_T}$enable_shared" >&6
12807
12808 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12809 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12810 # Make sure either enable_shared or enable_static is yes.
12811 test "$enable_shared" = yes || enable_static=yes
12812 echo "$as_me:$LINENO: result: $enable_static" >&5
12813 echo "${ECHO_T}$enable_static" >&6
12814
12815 test "$ld_shlibs_F77" = no && can_build_shared=no
12816
12817 GCC_F77="$G77"
12818 LD_F77="$LD"
12819
12820 lt_prog_compiler_wl_F77=
12821 lt_prog_compiler_pic_F77=
12822 lt_prog_compiler_static_F77=
12823
12824 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12825 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12826
12827   if test "$GCC" = yes; then
12828     lt_prog_compiler_wl_F77='-Wl,'
12829     lt_prog_compiler_static_F77='-static'
12830
12831     case $host_os in
12832       aix*)
12833       # All AIX code is PIC.
12834       if test "$host_cpu" = ia64; then
12835         # AIX 5 now supports IA64 processor
12836         lt_prog_compiler_static_F77='-Bstatic'
12837       fi
12838       ;;
12839
12840     amigaos*)
12841       # FIXME: we need at least 68020 code to build shared libraries, but
12842       # adding the `-m68020' flag to GCC prevents building anything better,
12843       # like `-m68040'.
12844       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12845       ;;
12846
12847     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12848       # PIC is the default for these OSes.
12849       ;;
12850
12851     mingw* | pw32* | os2*)
12852       # This hack is so that the source file can tell whether it is being
12853       # built for inclusion in a dll (and should export symbols for example).
12854       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12855       ;;
12856
12857     darwin* | rhapsody*)
12858       # PIC is the default on this platform
12859       # Common symbols not allowed in MH_DYLIB files
12860       lt_prog_compiler_pic_F77='-fno-common'
12861       ;;
12862
12863     msdosdjgpp*)
12864       # Just because we use GCC doesn't mean we suddenly get shared libraries
12865       # on systems that don't support them.
12866       lt_prog_compiler_can_build_shared_F77=no
12867       enable_shared=no
12868       ;;
12869
12870     sysv4*MP*)
12871       if test -d /usr/nec; then
12872         lt_prog_compiler_pic_F77=-Kconform_pic
12873       fi
12874       ;;
12875
12876     hpux*)
12877       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12878       # not for PA HP-UX.
12879       case "$host_cpu" in
12880       hppa*64*|ia64*)
12881         # +Z the default
12882         ;;
12883       *)
12884         lt_prog_compiler_pic_F77='-fPIC'
12885         ;;
12886       esac
12887       ;;
12888
12889     *)
12890       lt_prog_compiler_pic_F77='-fPIC'
12891       ;;
12892     esac
12893   else
12894     # PORTME Check for flag to pass linker flags through the system compiler.
12895     case $host_os in
12896     aix*)
12897       lt_prog_compiler_wl_F77='-Wl,'
12898       if test "$host_cpu" = ia64; then
12899         # AIX 5 now supports IA64 processor
12900         lt_prog_compiler_static_F77='-Bstatic'
12901       else
12902         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12903       fi
12904       ;;
12905
12906     mingw* | pw32* | os2*)
12907       # This hack is so that the source file can tell whether it is being
12908       # built for inclusion in a dll (and should export symbols for example).
12909       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12910       ;;
12911
12912     hpux9* | hpux10* | hpux11*)
12913       lt_prog_compiler_wl_F77='-Wl,'
12914       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12915       # not for PA HP-UX.
12916       case "$host_cpu" in
12917       hppa*64*|ia64*)
12918         # +Z the default
12919         ;;
12920       *)
12921         lt_prog_compiler_pic_F77='+Z'
12922         ;;
12923       esac
12924       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12925       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12926       ;;
12927
12928     irix5* | irix6* | nonstopux*)
12929       lt_prog_compiler_wl_F77='-Wl,'
12930       # PIC (with -KPIC) is the default.
12931       lt_prog_compiler_static_F77='-non_shared'
12932       ;;
12933
12934     newsos6)
12935       lt_prog_compiler_pic_F77='-KPIC'
12936       lt_prog_compiler_static_F77='-Bstatic'
12937       ;;
12938
12939     linux*)
12940       case $CC in
12941       icc|ecc)
12942         lt_prog_compiler_wl_F77='-Wl,'
12943         lt_prog_compiler_pic_F77='-KPIC'
12944         lt_prog_compiler_static_F77='-static'
12945         ;;
12946       ccc)
12947         lt_prog_compiler_wl_F77='-Wl,'
12948         # All Alpha code is PIC.
12949         lt_prog_compiler_static_F77='-non_shared'
12950         ;;
12951       esac
12952       ;;
12953
12954     osf3* | osf4* | osf5*)
12955       lt_prog_compiler_wl_F77='-Wl,'
12956       # All OSF/1 code is PIC.
12957       lt_prog_compiler_static_F77='-non_shared'
12958       ;;
12959
12960     sco3.2v5*)
12961       lt_prog_compiler_pic_F77='-Kpic'
12962       lt_prog_compiler_static_F77='-dn'
12963       ;;
12964
12965     solaris*)
12966       lt_prog_compiler_wl_F77='-Wl,'
12967       lt_prog_compiler_pic_F77='-KPIC'
12968       lt_prog_compiler_static_F77='-Bstatic'
12969       ;;
12970
12971     sunos4*)
12972       lt_prog_compiler_wl_F77='-Qoption ld '
12973       lt_prog_compiler_pic_F77='-PIC'
12974       lt_prog_compiler_static_F77='-Bstatic'
12975       ;;
12976
12977     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12978       lt_prog_compiler_wl_F77='-Wl,'
12979       lt_prog_compiler_pic_F77='-KPIC'
12980       lt_prog_compiler_static_F77='-Bstatic'
12981       ;;
12982
12983     sysv4*MP*)
12984       if test -d /usr/nec ;then
12985         lt_prog_compiler_pic_F77='-Kconform_pic'
12986         lt_prog_compiler_static_F77='-Bstatic'
12987       fi
12988       ;;
12989
12990     uts4*)
12991       lt_prog_compiler_pic_F77='-pic'
12992       lt_prog_compiler_static_F77='-Bstatic'
12993       ;;
12994
12995     *)
12996       lt_prog_compiler_can_build_shared_F77=no
12997       ;;
12998     esac
12999   fi
13000
13001 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13002 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13003
13004 #
13005 # Check to make sure the PIC flag actually works.
13006 #
13007 if test -n "$lt_prog_compiler_pic_F77"; then
13008   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13009 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13010 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13011   echo $ECHO_N "(cached) $ECHO_C" >&6
13012 else
13013   lt_prog_compiler_pic_works_F77=no
13014   ac_outfile=conftest.$ac_objext
13015    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13016    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13017    # Insert the option either (1) after the last *FLAGS variable, or
13018    # (2) before a word containing "conftest.", or (3) at the end.
13019    # Note that $ac_compile itself does not contain backslashes and begins
13020    # with a dollar sign (not a hyphen), so the echo should work correctly.
13021    # The option is referenced via a variable to avoid confusing sed.
13022    lt_compile=`echo "$ac_compile" | $SED \
13023    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13024    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13025    -e 's:$: $lt_compiler_flag:'`
13026    (eval echo "\"\$as_me:13026: $lt_compile\"" >&5)
13027    (eval "$lt_compile" 2>conftest.err)
13028    ac_status=$?
13029    cat conftest.err >&5
13030    echo "$as_me:13030: \$? = $ac_status" >&5
13031    if (exit $ac_status) && test -s "$ac_outfile"; then
13032      # The compiler can only warn and ignore the option if not recognized
13033      # So say no if there are warnings
13034      if test ! -s conftest.err; then
13035        lt_prog_compiler_pic_works_F77=yes
13036      fi
13037    fi
13038    $rm conftest*
13039
13040 fi
13041 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13042 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13043
13044 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13045     case $lt_prog_compiler_pic_F77 in
13046      "" | " "*) ;;
13047      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13048      esac
13049 else
13050     lt_prog_compiler_pic_F77=
13051      lt_prog_compiler_can_build_shared_F77=no
13052 fi
13053
13054 fi
13055 case "$host_os" in
13056   # For platforms which do not support PIC, -DPIC is meaningless:
13057   *djgpp*)
13058     lt_prog_compiler_pic_F77=
13059     ;;
13060   *)
13061     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13062     ;;
13063 esac
13064
13065 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13066 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13067 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13068   echo $ECHO_N "(cached) $ECHO_C" >&6
13069 else
13070   lt_cv_prog_compiler_c_o_F77=no
13071    $rm -r conftest 2>/dev/null
13072    mkdir conftest
13073    cd conftest
13074    mkdir out
13075    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13076
13077    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13078    # that will create temporary files in the current directory regardless of
13079    # the output directory.  Thus, making CWD read-only will cause this test
13080    # to fail, enabling locking or at least warning the user not to do parallel
13081    # builds.
13082    chmod -w .
13083
13084    lt_compiler_flag="-o out/conftest2.$ac_objext"
13085    # Insert the option either (1) after the last *FLAGS variable, or
13086    # (2) before a word containing "conftest.", or (3) at the end.
13087    # Note that $ac_compile itself does not contain backslashes and begins
13088    # with a dollar sign (not a hyphen), so the echo should work correctly.
13089    lt_compile=`echo "$ac_compile" | $SED \
13090    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13091    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13092    -e 's:$: $lt_compiler_flag:'`
13093    (eval echo "\"\$as_me:13093: $lt_compile\"" >&5)
13094    (eval "$lt_compile" 2>out/conftest.err)
13095    ac_status=$?
13096    cat out/conftest.err >&5
13097    echo "$as_me:13097: \$? = $ac_status" >&5
13098    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13099    then
13100      # The compiler can only warn and ignore the option if not recognized
13101      # So say no if there are warnings
13102      if test ! -s out/conftest.err; then
13103        lt_cv_prog_compiler_c_o_F77=yes
13104      fi
13105    fi
13106    chmod u+w .
13107    $rm conftest* out/*
13108    rmdir out
13109    cd ..
13110    rmdir conftest
13111    $rm conftest*
13112
13113 fi
13114 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13115 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13116
13117
13118 hard_links="nottested"
13119 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13120   # do not overwrite the value of need_locks provided by the user
13121   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13122 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13123   hard_links=yes
13124   $rm conftest*
13125   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13126   touch conftest.a
13127   ln conftest.a conftest.b 2>&5 || hard_links=no
13128   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13129   echo "$as_me:$LINENO: result: $hard_links" >&5
13130 echo "${ECHO_T}$hard_links" >&6
13131   if test "$hard_links" = no; then
13132     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13133 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13134     need_locks=warn
13135   fi
13136 else
13137   need_locks=no
13138 fi
13139
13140 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13141 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13142
13143   runpath_var=
13144   allow_undefined_flag_F77=
13145   enable_shared_with_static_runtimes_F77=no
13146   archive_cmds_F77=
13147   archive_expsym_cmds_F77=
13148   old_archive_From_new_cmds_F77=
13149   old_archive_from_expsyms_cmds_F77=
13150   export_dynamic_flag_spec_F77=
13151   whole_archive_flag_spec_F77=
13152   thread_safe_flag_spec_F77=
13153   hardcode_libdir_flag_spec_F77=
13154   hardcode_libdir_flag_spec_ld_F77=
13155   hardcode_libdir_separator_F77=
13156   hardcode_direct_F77=no
13157   hardcode_minus_L_F77=no
13158   hardcode_shlibpath_var_F77=unsupported
13159   link_all_deplibs_F77=unknown
13160   hardcode_automatic_F77=no
13161   module_cmds_F77=
13162   module_expsym_cmds_F77=
13163   always_export_symbols_F77=no
13164   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13165   # include_expsyms should be a list of space-separated symbols to be *always*
13166   # included in the symbol list
13167   include_expsyms_F77=
13168   # exclude_expsyms can be an extended regexp of symbols to exclude
13169   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13170   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13171   # as well as any symbol that contains `d'.
13172   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13173   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13174   # platforms (ab)use it in PIC code, but their linkers get confused if
13175   # the symbol is explicitly referenced.  Since portable code cannot
13176   # rely on this symbol name, it's probably fine to never include it in
13177   # preloaded symbol tables.
13178   extract_expsyms_cmds=
13179
13180   case $host_os in
13181   cygwin* | mingw* | pw32*)
13182     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13183     # When not using gcc, we currently assume that we are using
13184     # Microsoft Visual C++.
13185     if test "$GCC" != yes; then
13186       with_gnu_ld=no
13187     fi
13188     ;;
13189   openbsd*)
13190     with_gnu_ld=no
13191     ;;
13192   esac
13193
13194   ld_shlibs_F77=yes
13195   if test "$with_gnu_ld" = yes; then
13196     # If archive_cmds runs LD, not CC, wlarc should be empty
13197     wlarc='${wl}'
13198
13199     # See if GNU ld supports shared libraries.
13200     case $host_os in
13201     aix3* | aix4* | aix5*)
13202       # On AIX/PPC, the GNU linker is very broken
13203       if test "$host_cpu" != ia64; then
13204         ld_shlibs_F77=no
13205         cat <<EOF 1>&2
13206
13207 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13208 *** to be unable to reliably create shared libraries on AIX.
13209 *** Therefore, libtool is disabling shared libraries support.  If you
13210 *** really care for shared libraries, you may want to modify your PATH
13211 *** so that a non-GNU linker is found, and then restart.
13212
13213 EOF
13214       fi
13215       ;;
13216
13217     amigaos*)
13218       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)'
13219       hardcode_libdir_flag_spec_F77='-L$libdir'
13220       hardcode_minus_L_F77=yes
13221
13222       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13223       # that the semantics of dynamic libraries on AmigaOS, at least up
13224       # to version 4, is to share data among multiple programs linked
13225       # with the same dynamic library.  Since this doesn't match the
13226       # behavior of shared libraries on other platforms, we can't use
13227       # them.
13228       ld_shlibs_F77=no
13229       ;;
13230
13231     beos*)
13232       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13233         allow_undefined_flag_F77=unsupported
13234         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13235         # support --undefined.  This deserves some investigation.  FIXME
13236         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13237       else
13238         ld_shlibs_F77=no
13239       fi
13240       ;;
13241
13242     cygwin* | mingw* | pw32*)
13243       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13244       # as there is no search path for DLLs.
13245       hardcode_libdir_flag_spec_F77='-L$libdir'
13246       allow_undefined_flag_F77=unsupported
13247       always_export_symbols_F77=no
13248       enable_shared_with_static_runtimes_F77=yes
13249       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13250
13251       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13252         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13253         # If the export-symbols file already is a .def file (1st line
13254         # is EXPORTS), use it as is; otherwise, prepend...
13255         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13256           cp $export_symbols $output_objdir/$soname.def;
13257         else
13258           echo EXPORTS > $output_objdir/$soname.def;
13259           cat $export_symbols >> $output_objdir/$soname.def;
13260         fi~
13261         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13262       else
13263         ld_shlibs=no
13264       fi
13265       ;;
13266
13267     netbsd*)
13268       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13269         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13270         wlarc=
13271       else
13272         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13273         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13274       fi
13275       ;;
13276
13277     solaris* | sysv5*)
13278       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13279         ld_shlibs_F77=no
13280         cat <<EOF 1>&2
13281
13282 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13283 *** create shared libraries on Solaris systems.  Therefore, libtool
13284 *** is disabling shared libraries support.  We urge you to upgrade GNU
13285 *** binutils to release 2.9.1 or newer.  Another option is to modify
13286 *** your PATH or compiler configuration so that the native linker is
13287 *** used, and then restart.
13288
13289 EOF
13290       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13291         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13292         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13293       else
13294         ld_shlibs_F77=no
13295       fi
13296       ;;
13297
13298     sunos4*)
13299       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13300       wlarc=
13301       hardcode_direct_F77=yes
13302       hardcode_shlibpath_var_F77=no
13303       ;;
13304
13305     *)
13306       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13307         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13308         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13309       else
13310         ld_shlibs_F77=no
13311       fi
13312       ;;
13313     esac
13314
13315     if test "$ld_shlibs_F77" = yes; then
13316       runpath_var=LD_RUN_PATH
13317       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13318       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13319       # ancient GNU ld didn't support --whole-archive et. al.
13320       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13321         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13322       else
13323         whole_archive_flag_spec_F77=
13324       fi
13325     fi
13326   else
13327     # PORTME fill in a description of your system's linker (not GNU ld)
13328     case $host_os in
13329     aix3*)
13330       allow_undefined_flag_F77=unsupported
13331       always_export_symbols_F77=yes
13332       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'
13333       # Note: this linker hardcodes the directories in LIBPATH if there
13334       # are no directories specified by -L.
13335       hardcode_minus_L_F77=yes
13336       if test "$GCC" = yes && test -z "$link_static_flag"; then
13337         # Neither direct hardcoding nor static linking is supported with a
13338         # broken collect2.
13339         hardcode_direct_F77=unsupported
13340       fi
13341       ;;
13342
13343     aix4* | aix5*)
13344       if test "$host_cpu" = ia64; then
13345         # On IA64, the linker does run time linking by default, so we don't
13346         # have to do anything special.
13347         aix_use_runtimelinking=no
13348         exp_sym_flag='-Bexport'
13349         no_entry_flag=""
13350       else
13351         # If we're using GNU nm, then we don't want the "-C" option.
13352         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13353         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13354           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'
13355         else
13356           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'
13357         fi
13358         aix_use_runtimelinking=no
13359
13360         # Test if we are trying to use run time linking or normal
13361         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13362         # need to do runtime linking.
13363         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13364           for ld_flag in $LDFLAGS; do
13365           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13366             aix_use_runtimelinking=yes
13367             break
13368           fi
13369           done
13370         esac
13371
13372         exp_sym_flag='-bexport'
13373         no_entry_flag='-bnoentry'
13374       fi
13375
13376       # When large executables or shared objects are built, AIX ld can
13377       # have problems creating the table of contents.  If linking a library
13378       # or program results in "error TOC overflow" add -mminimal-toc to
13379       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13380       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13381
13382       archive_cmds_F77=''
13383       hardcode_direct_F77=yes
13384       hardcode_libdir_separator_F77=':'
13385       link_all_deplibs_F77=yes
13386
13387       if test "$GCC" = yes; then
13388         case $host_os in aix4.012|aix4.012.*)
13389         # We only want to do this on AIX 4.2 and lower, the check
13390         # below for broken collect2 doesn't work under 4.3+
13391           collect2name=`${CC} -print-prog-name=collect2`
13392           if test -f "$collect2name" && \
13393            strings "$collect2name" | grep resolve_lib_name >/dev/null
13394           then
13395           # We have reworked collect2
13396           hardcode_direct_F77=yes
13397           else
13398           # We have old collect2
13399           hardcode_direct_F77=unsupported
13400           # It fails to find uninstalled libraries when the uninstalled
13401           # path is not listed in the libpath.  Setting hardcode_minus_L
13402           # to unsupported forces relinking
13403           hardcode_minus_L_F77=yes
13404           hardcode_libdir_flag_spec_F77='-L$libdir'
13405           hardcode_libdir_separator_F77=
13406           fi
13407         esac
13408         shared_flag='-shared'
13409       else
13410         # not using gcc
13411         if test "$host_cpu" = ia64; then
13412         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13413         # chokes on -Wl,-G. The following line is correct:
13414           shared_flag='-G'
13415         else
13416         if test "$aix_use_runtimelinking" = yes; then
13417             shared_flag='${wl}-G'
13418           else
13419             shared_flag='${wl}-bM:SRE'
13420         fi
13421         fi
13422       fi
13423
13424       # It seems that -bexpall does not export symbols beginning with
13425       # underscore (_), so it is better to generate a list of symbols to export.
13426       always_export_symbols_F77=yes
13427       if test "$aix_use_runtimelinking" = yes; then
13428         # Warning - without using the other runtime loading flags (-brtl),
13429         # -berok will link without error, but may produce a broken library.
13430         allow_undefined_flag_F77='-berok'
13431        # Determine the default libpath from the value encoded in an empty executable.
13432        cat >conftest.$ac_ext <<_ACEOF
13433       program main
13434
13435       end
13436 _ACEOF
13437 rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13439   (eval $ac_link) 2>&5
13440   ac_status=$?
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); } &&
13443          { ac_try='test -s conftest$ac_exeext'
13444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445   (eval $ac_try) 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); }; }; then
13449
13450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13451 }'`
13452 # Check for a 64-bit object if we didn't find anything.
13453 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; }
13454 }'`; fi
13455 else
13456   echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459 fi
13460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13461 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13462
13463        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13464         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"
13465        else
13466         if test "$host_cpu" = ia64; then
13467           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13468           allow_undefined_flag_F77="-z nodefs"
13469           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"
13470         else
13471          # Determine the default libpath from the value encoded in an empty executable.
13472          cat >conftest.$ac_ext <<_ACEOF
13473       program main
13474
13475       end
13476 _ACEOF
13477 rm -f conftest.$ac_objext conftest$ac_exeext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13479   (eval $ac_link) 2>&5
13480   ac_status=$?
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); } &&
13483          { ac_try='test -s conftest$ac_exeext'
13484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485   (eval $ac_try) 2>&5
13486   ac_status=$?
13487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); }; }; then
13489
13490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13491 }'`
13492 # Check for a 64-bit object if we didn't find anything.
13493 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; }
13494 }'`; fi
13495 else
13496   echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13498
13499 fi
13500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13501 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13502
13503          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13504           # Warning - without using the other run time loading flags,
13505           # -berok will link without error, but may produce a broken library.
13506           no_undefined_flag_F77=' ${wl}-bernotok'
13507           allow_undefined_flag_F77=' ${wl}-berok'
13508           # -bexpall does not export symbols beginning with underscore (_)
13509           always_export_symbols_F77=yes
13510           # Exported symbols can be pulled into shared objects from archives
13511           whole_archive_flag_spec_F77=' '
13512           archive_cmds_need_lc_F77=yes
13513           # This is similar to how AIX traditionally builds it's shared libraries.
13514           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'
13515         fi
13516       fi
13517       ;;
13518
13519     amigaos*)
13520       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)'
13521       hardcode_libdir_flag_spec_F77='-L$libdir'
13522       hardcode_minus_L_F77=yes
13523       # see comment about different semantics on the GNU ld section
13524       ld_shlibs_F77=no
13525       ;;
13526
13527     bsdi4*)
13528       export_dynamic_flag_spec_F77=-rdynamic
13529       ;;
13530
13531     cygwin* | mingw* | pw32*)
13532       # When not using gcc, we currently assume that we are using
13533       # Microsoft Visual C++.
13534       # hardcode_libdir_flag_spec is actually meaningless, as there is
13535       # no search path for DLLs.
13536       hardcode_libdir_flag_spec_F77=' '
13537       allow_undefined_flag_F77=unsupported
13538       # Tell ltmain to make .lib files, not .a files.
13539       libext=lib
13540       # Tell ltmain to make .dll files, not .so files.
13541       shrext=".dll"
13542       # FIXME: Setting linknames here is a bad hack.
13543       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13544       # The linker will automatically build a .lib file if we build a DLL.
13545       old_archive_From_new_cmds_F77='true'
13546       # FIXME: Should let the user specify the lib program.
13547       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13548       fix_srcfile_path='`cygpath -w "$srcfile"`'
13549       enable_shared_with_static_runtimes_F77=yes
13550       ;;
13551
13552     darwin* | rhapsody*)
13553     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13554       archive_cmds_need_lc_F77=no
13555       case "$host_os" in
13556       rhapsody* | darwin1.[012])
13557         allow_undefined_flag_F77='-undefined suppress'
13558         ;;
13559       *) # Darwin 1.3 on
13560         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13561         ;;
13562       esac
13563       # FIXME: Relying on posixy $() will cause problems for
13564       #        cross-compilation, but unfortunately the echo tests do not
13565       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13566       #        `"' quotes if we put them in here... so don't!
13567         lt_int_apple_cc_single_mod=no
13568         output_verbose_link_cmd='echo'
13569         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13570           lt_int_apple_cc_single_mod=yes
13571         fi
13572         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13573           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13574         else
13575         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'
13576       fi
13577       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13578       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13579         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13580           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}'
13581         else
13582           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}'
13583         fi
13584           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}'
13585       hardcode_direct_F77=no
13586       hardcode_automatic_F77=yes
13587       hardcode_shlibpath_var_F77=unsupported
13588       whole_archive_flag_spec_F77='-all_load $convenience'
13589       link_all_deplibs_F77=yes
13590     fi
13591       ;;
13592
13593     dgux*)
13594       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13595       hardcode_libdir_flag_spec_F77='-L$libdir'
13596       hardcode_shlibpath_var_F77=no
13597       ;;
13598
13599     freebsd1*)
13600       ld_shlibs_F77=no
13601       ;;
13602
13603     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13604     # support.  Future versions do this automatically, but an explicit c++rt0.o
13605     # does not break anything, and helps significantly (at the cost of a little
13606     # extra space).
13607     freebsd2.2*)
13608       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13609       hardcode_libdir_flag_spec_F77='-R$libdir'
13610       hardcode_direct_F77=yes
13611       hardcode_shlibpath_var_F77=no
13612       ;;
13613
13614     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13615     freebsd2*)
13616       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13617       hardcode_direct_F77=yes
13618       hardcode_minus_L_F77=yes
13619       hardcode_shlibpath_var_F77=no
13620       ;;
13621
13622     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13623     freebsd*)
13624       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13625       hardcode_libdir_flag_spec_F77='-R$libdir'
13626       hardcode_direct_F77=yes
13627       hardcode_shlibpath_var_F77=no
13628       ;;
13629
13630     hpux9*)
13631       if test "$GCC" = yes; then
13632         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'
13633       else
13634         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'
13635       fi
13636       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13637       hardcode_libdir_separator_F77=:
13638       hardcode_direct_F77=yes
13639
13640       # hardcode_minus_L: Not really in the search PATH,
13641       # but as the default location of the library.
13642       hardcode_minus_L_F77=yes
13643       export_dynamic_flag_spec_F77='${wl}-E'
13644       ;;
13645
13646     hpux10* | hpux11*)
13647       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13648         case "$host_cpu" in
13649         hppa*64*|ia64*)
13650           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13651           ;;
13652         *)
13653           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13654           ;;
13655         esac
13656       else
13657         case "$host_cpu" in
13658         hppa*64*|ia64*)
13659           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13660           ;;
13661         *)
13662           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13663           ;;
13664         esac
13665       fi
13666       if test "$with_gnu_ld" = no; then
13667         case "$host_cpu" in
13668         hppa*64*)
13669           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13670           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13671           hardcode_libdir_separator_F77=:
13672           hardcode_direct_F77=no
13673           hardcode_shlibpath_var_F77=no
13674           ;;
13675         ia64*)
13676           hardcode_libdir_flag_spec_F77='-L$libdir'
13677           hardcode_direct_F77=no
13678           hardcode_shlibpath_var_F77=no
13679
13680           # hardcode_minus_L: Not really in the search PATH,
13681           # but as the default location of the library.
13682           hardcode_minus_L_F77=yes
13683           ;;
13684         *)
13685           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13686           hardcode_libdir_separator_F77=:
13687           hardcode_direct_F77=yes
13688           export_dynamic_flag_spec_F77='${wl}-E'
13689
13690           # hardcode_minus_L: Not really in the search PATH,
13691           # but as the default location of the library.
13692           hardcode_minus_L_F77=yes
13693           ;;
13694         esac
13695       fi
13696       ;;
13697
13698     irix5* | irix6* | nonstopux*)
13699       if test "$GCC" = yes; then
13700         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'
13701       else
13702         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'
13703         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13704       fi
13705       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13706       hardcode_libdir_separator_F77=:
13707       link_all_deplibs_F77=yes
13708       ;;
13709
13710     netbsd*)
13711       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13712         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13713       else
13714         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13715       fi
13716       hardcode_libdir_flag_spec_F77='-R$libdir'
13717       hardcode_direct_F77=yes
13718       hardcode_shlibpath_var_F77=no
13719       ;;
13720
13721     newsos6)
13722       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13723       hardcode_direct_F77=yes
13724       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13725       hardcode_libdir_separator_F77=:
13726       hardcode_shlibpath_var_F77=no
13727       ;;
13728
13729     openbsd*)
13730       hardcode_direct_F77=yes
13731       hardcode_shlibpath_var_F77=no
13732       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13733         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13734         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13735         export_dynamic_flag_spec_F77='${wl}-E'
13736       else
13737        case $host_os in
13738          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13739            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13740            hardcode_libdir_flag_spec_F77='-R$libdir'
13741            ;;
13742          *)
13743            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13744            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13745            ;;
13746        esac
13747       fi
13748       ;;
13749
13750     os2*)
13751       hardcode_libdir_flag_spec_F77='-L$libdir'
13752       hardcode_minus_L_F77=yes
13753       allow_undefined_flag_F77=unsupported
13754       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'
13755       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13756       ;;
13757
13758     osf3*)
13759       if test "$GCC" = yes; then
13760         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13761         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'
13762       else
13763         allow_undefined_flag_F77=' -expect_unresolved \*'
13764         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'
13765       fi
13766       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13767       hardcode_libdir_separator_F77=:
13768       ;;
13769
13770     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13771       if test "$GCC" = yes; then
13772         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13773         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'
13774         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13775       else
13776         allow_undefined_flag_F77=' -expect_unresolved \*'
13777         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'
13778         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~
13779         $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'
13780
13781         # Both c and cxx compiler support -rpath directly
13782         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13783       fi
13784       hardcode_libdir_separator_F77=:
13785       ;;
13786
13787     sco3.2v5*)
13788       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13789       hardcode_shlibpath_var_F77=no
13790       export_dynamic_flag_spec_F77='${wl}-Bexport'
13791       runpath_var=LD_RUN_PATH
13792       hardcode_runpath_var=yes
13793       ;;
13794
13795     solaris*)
13796       no_undefined_flag_F77=' -z text'
13797       if test "$GCC" = yes; then
13798         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13799         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13800           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13801       else
13802         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13803         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13804         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13805       fi
13806       hardcode_libdir_flag_spec_F77='-R$libdir'
13807       hardcode_shlibpath_var_F77=no
13808       case $host_os in
13809       solaris2.[0-5] | solaris2.[0-5].*) ;;
13810       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13811         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13812       esac
13813       link_all_deplibs_F77=yes
13814       ;;
13815
13816     sunos4*)
13817       if test "x$host_vendor" = xsequent; then
13818         # Use $CC to link under sequent, because it throws in some extra .o
13819         # files that make .init and .fini sections work.
13820         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13821       else
13822         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13823       fi
13824       hardcode_libdir_flag_spec_F77='-L$libdir'
13825       hardcode_direct_F77=yes
13826       hardcode_minus_L_F77=yes
13827       hardcode_shlibpath_var_F77=no
13828       ;;
13829
13830     sysv4)
13831       case $host_vendor in
13832         sni)
13833           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13834           hardcode_direct_F77=yes # is this really true???
13835         ;;
13836         siemens)
13837           ## LD is ld it makes a PLAMLIB
13838           ## CC just makes a GrossModule.
13839           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13840           reload_cmds_F77='$CC -r -o $output$reload_objs'
13841           hardcode_direct_F77=no
13842         ;;
13843         motorola)
13844           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13845           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13846         ;;
13847       esac
13848       runpath_var='LD_RUN_PATH'
13849       hardcode_shlibpath_var_F77=no
13850       ;;
13851
13852     sysv4.3*)
13853       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13854       hardcode_shlibpath_var_F77=no
13855       export_dynamic_flag_spec_F77='-Bexport'
13856       ;;
13857
13858     sysv4*MP*)
13859       if test -d /usr/nec; then
13860         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13861         hardcode_shlibpath_var_F77=no
13862         runpath_var=LD_RUN_PATH
13863         hardcode_runpath_var=yes
13864         ld_shlibs_F77=yes
13865       fi
13866       ;;
13867
13868     sysv4.2uw2*)
13869       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13870       hardcode_direct_F77=yes
13871       hardcode_minus_L_F77=no
13872       hardcode_shlibpath_var_F77=no
13873       hardcode_runpath_var=yes
13874       runpath_var=LD_RUN_PATH
13875       ;;
13876
13877    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13878       no_undefined_flag_F77='${wl}-z ${wl}text'
13879       if test "$GCC" = yes; then
13880         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13881       else
13882         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13883       fi
13884       runpath_var='LD_RUN_PATH'
13885       hardcode_shlibpath_var_F77=no
13886       ;;
13887
13888     sysv5*)
13889       no_undefined_flag_F77=' -z text'
13890       # $CC -shared without GNU ld will not create a library from C++
13891       # object files and a static libstdc++, better avoid it by now
13892       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13893       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13894                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13895       hardcode_libdir_flag_spec_F77=
13896       hardcode_shlibpath_var_F77=no
13897       runpath_var='LD_RUN_PATH'
13898       ;;
13899
13900     uts4*)
13901       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13902       hardcode_libdir_flag_spec_F77='-L$libdir'
13903       hardcode_shlibpath_var_F77=no
13904       ;;
13905
13906     *)
13907       ld_shlibs_F77=no
13908       ;;
13909     esac
13910   fi
13911
13912 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13913 echo "${ECHO_T}$ld_shlibs_F77" >&6
13914 test "$ld_shlibs_F77" = no && can_build_shared=no
13915
13916 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13917 if test "$GCC" = yes; then
13918   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13919 fi
13920
13921 #
13922 # Do we need to explicitly link libc?
13923 #
13924 case "x$archive_cmds_need_lc_F77" in
13925 x|xyes)
13926   # Assume -lc should be added
13927   archive_cmds_need_lc_F77=yes
13928
13929   if test "$enable_shared" = yes && test "$GCC" = yes; then
13930     case $archive_cmds_F77 in
13931     *'~'*)
13932       # FIXME: we may have to deal with multi-command sequences.
13933       ;;
13934     '$CC '*)
13935       # Test whether the compiler implicitly links with -lc since on some
13936       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13937       # to ld, don't add -lc before -lgcc.
13938       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13939 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13940       $rm conftest*
13941       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13942
13943       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13944   (eval $ac_compile) 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); } 2>conftest.err; then
13948         soname=conftest
13949         lib=conftest
13950         libobjs=conftest.$ac_objext
13951         deplibs=
13952         wl=$lt_prog_compiler_wl_F77
13953         compiler_flags=-v
13954         linker_flags=-v
13955         verstring=
13956         output_objdir=.
13957         libname=conftest
13958         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13959         allow_undefined_flag_F77=
13960         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13961   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); }
13965         then
13966           archive_cmds_need_lc_F77=no
13967         else
13968           archive_cmds_need_lc_F77=yes
13969         fi
13970         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13971       else
13972         cat conftest.err 1>&5
13973       fi
13974       $rm conftest*
13975       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13976 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13977       ;;
13978     esac
13979   fi
13980   ;;
13981 esac
13982
13983 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13984 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13985 hardcode_action_F77=
13986 if test -n "$hardcode_libdir_flag_spec_F77" || \
13987    test -n "$runpath_var F77" || \
13988    test "X$hardcode_automatic_F77"="Xyes" ; then
13989
13990   # We can hardcode non-existant directories.
13991   if test "$hardcode_direct_F77" != no &&
13992      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13993      # have to relink, otherwise we might link with an installed library
13994      # when we should be linking with a yet-to-be-installed one
13995      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13996      test "$hardcode_minus_L_F77" != no; then
13997     # Linking always hardcodes the temporary library directory.
13998     hardcode_action_F77=relink
13999   else
14000     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14001     hardcode_action_F77=immediate
14002   fi
14003 else
14004   # We cannot hardcode anything, or else we can only hardcode existing
14005   # directories.
14006   hardcode_action_F77=unsupported
14007 fi
14008 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14009 echo "${ECHO_T}$hardcode_action_F77" >&6
14010
14011 if test "$hardcode_action_F77" = relink; then
14012   # Fast installation is not supported
14013   enable_fast_install=no
14014 elif test "$shlibpath_overrides_runpath" = yes ||
14015      test "$enable_shared" = no; then
14016   # Fast installation is not necessary
14017   enable_fast_install=needless
14018 fi
14019
14020 striplib=
14021 old_striplib=
14022 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14023 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14024 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14025   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14026   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14027   echo "$as_me:$LINENO: result: yes" >&5
14028 echo "${ECHO_T}yes" >&6
14029 else
14030 # FIXME - insert some real tests, host_os isn't really good enough
14031   case $host_os in
14032    darwin*)
14033        if test -n "$STRIP" ; then
14034          striplib="$STRIP -x"
14035          echo "$as_me:$LINENO: result: yes" >&5
14036 echo "${ECHO_T}yes" >&6
14037        else
14038   echo "$as_me:$LINENO: result: no" >&5
14039 echo "${ECHO_T}no" >&6
14040 fi
14041        ;;
14042    *)
14043   echo "$as_me:$LINENO: result: no" >&5
14044 echo "${ECHO_T}no" >&6
14045     ;;
14046   esac
14047 fi
14048
14049 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14050 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14051 library_names_spec=
14052 libname_spec='lib$name'
14053 soname_spec=
14054 shrext=".so"
14055 postinstall_cmds=
14056 postuninstall_cmds=
14057 finish_cmds=
14058 finish_eval=
14059 shlibpath_var=
14060 shlibpath_overrides_runpath=unknown
14061 version_type=none
14062 dynamic_linker="$host_os ld.so"
14063 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14064 if test "$GCC" = yes; then
14065   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14066   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14067     # if the path contains ";" then we assume it to be the separator
14068     # otherwise default to the standard path separator (i.e. ":") - it is
14069     # assumed that no part of a normal pathname contains ";" but that should
14070     # okay in the real world where ";" in dirpaths is itself problematic.
14071     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14072   else
14073     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14074   fi
14075 else
14076   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14077 fi
14078 need_lib_prefix=unknown
14079 hardcode_into_libs=no
14080
14081 # when you set need_version to no, make sure it does not cause -set_version
14082 # flags to be left without arguments
14083 need_version=unknown
14084
14085 case $host_os in
14086 aix3*)
14087   version_type=linux
14088   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14089   shlibpath_var=LIBPATH
14090
14091   # AIX 3 has no versioning support, so we append a major version to the name.
14092   soname_spec='${libname}${release}${shared_ext}$major'
14093   ;;
14094
14095 aix4* | aix5*)
14096   version_type=linux
14097   need_lib_prefix=no
14098   need_version=no
14099   hardcode_into_libs=yes
14100   if test "$host_cpu" = ia64; then
14101     # AIX 5 supports IA64
14102     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14103     shlibpath_var=LD_LIBRARY_PATH
14104   else
14105     # With GCC up to 2.95.x, collect2 would create an import file
14106     # for dependence libraries.  The import file would start with
14107     # the line `#! .'.  This would cause the generated library to
14108     # depend on `.', always an invalid library.  This was fixed in
14109     # development snapshots of GCC prior to 3.0.
14110     case $host_os in
14111       aix4 | aix4.[01] | aix4.[01].*)
14112       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14113            echo ' yes '
14114            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14115         :
14116       else
14117         can_build_shared=no
14118       fi
14119       ;;
14120     esac
14121     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14122     # soname into executable. Probably we can add versioning support to
14123     # collect2, so additional links can be useful in future.
14124     if test "$aix_use_runtimelinking" = yes; then
14125       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14126       # instead of lib<name>.a to let people know that these are not
14127       # typical AIX shared libraries.
14128       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14129     else
14130       # We preserve .a as extension for shared libraries through AIX4.2
14131       # and later when we are not doing run time linking.
14132       library_names_spec='${libname}${release}.a $libname.a'
14133       soname_spec='${libname}${release}${shared_ext}$major'
14134     fi
14135     shlibpath_var=LIBPATH
14136   fi
14137   ;;
14138
14139 amigaos*)
14140   library_names_spec='$libname.ixlibrary $libname.a'
14141   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14142   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'
14143   ;;
14144
14145 beos*)
14146   library_names_spec='${libname}${shared_ext}'
14147   dynamic_linker="$host_os ld.so"
14148   shlibpath_var=LIBRARY_PATH
14149   ;;
14150
14151 bsdi4*)
14152   version_type=linux
14153   need_version=no
14154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14155   soname_spec='${libname}${release}${shared_ext}$major'
14156   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14157   shlibpath_var=LD_LIBRARY_PATH
14158   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14159   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14160   # the default ld.so.conf also contains /usr/contrib/lib and
14161   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14162   # libtool to hard-code these into programs
14163   ;;
14164
14165 cygwin* | mingw* | pw32*)
14166   version_type=windows
14167   shrext=".dll"
14168   need_version=no
14169   need_lib_prefix=no
14170
14171   case $GCC,$host_os in
14172   yes,cygwin* | yes,mingw* | yes,pw32*)
14173     library_names_spec='$libname.dll.a'
14174     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14175     postinstall_cmds='base_file=`basename \${file}`~
14176       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14177       dldir=$destdir/`dirname \$dlpath`~
14178       test -d \$dldir || mkdir -p \$dldir~
14179       $install_prog $dir/$dlname \$dldir/$dlname'
14180     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14181       dlpath=$dir/\$dldll~
14182        $rm \$dlpath'
14183     shlibpath_overrides_runpath=yes
14184
14185     case $host_os in
14186     cygwin*)
14187       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14188       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14189       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14190       ;;
14191     mingw*)
14192       # MinGW DLLs use traditional 'lib' prefix
14193       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14194       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14195       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14196         # It is most probably a Windows format PATH printed by
14197         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14198         # path with ; separators, and with drive letters. We can handle the
14199         # drive letters (cygwin fileutils understands them), so leave them,
14200         # especially as we might pass files found there to a mingw objdump,
14201         # which wouldn't understand a cygwinified path. Ahh.
14202         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14203       else
14204         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14205       fi
14206       ;;
14207     pw32*)
14208       # pw32 DLLs use 'pw' prefix rather than 'lib'
14209       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14210       ;;
14211     esac
14212     ;;
14213
14214   *)
14215     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14216     ;;
14217   esac
14218   dynamic_linker='Win32 ld.exe'
14219   # FIXME: first we should search . and the directory the executable is in
14220   shlibpath_var=PATH
14221   ;;
14222
14223 darwin* | rhapsody*)
14224   dynamic_linker="$host_os dyld"
14225   version_type=darwin
14226   need_lib_prefix=no
14227   need_version=no
14228   # FIXME: Relying on posixy $() will cause problems for
14229   #        cross-compilation, but unfortunately the echo tests do not
14230   #        yet detect zsh echo's removal of \ escapes.
14231   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14232   soname_spec='${libname}${release}${major}$shared_ext'
14233   shlibpath_overrides_runpath=yes
14234   shlibpath_var=DYLD_LIBRARY_PATH
14235   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14236   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14237   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14238   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"`
14239   fi
14240   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14241   ;;
14242
14243 dgux*)
14244   version_type=linux
14245   need_lib_prefix=no
14246   need_version=no
14247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14248   soname_spec='${libname}${release}${shared_ext}$major'
14249   shlibpath_var=LD_LIBRARY_PATH
14250   ;;
14251
14252 freebsd1*)
14253   dynamic_linker=no
14254   ;;
14255
14256 freebsd*)
14257   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14258   version_type=freebsd-$objformat
14259   case $version_type in
14260     freebsd-elf*)
14261       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14262       need_version=no
14263       need_lib_prefix=no
14264       ;;
14265     freebsd-*)
14266       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14267       need_version=yes
14268       ;;
14269   esac
14270   shlibpath_var=LD_LIBRARY_PATH
14271   case $host_os in
14272   freebsd2*)
14273     shlibpath_overrides_runpath=yes
14274     ;;
14275   freebsd3.01* | freebsdelf3.01*)
14276     shlibpath_overrides_runpath=yes
14277     hardcode_into_libs=yes
14278     ;;
14279   *) # from 3.2 on
14280     shlibpath_overrides_runpath=no
14281     hardcode_into_libs=yes
14282     ;;
14283   esac
14284   ;;
14285
14286 gnu*)
14287   version_type=linux
14288   need_lib_prefix=no
14289   need_version=no
14290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14291   soname_spec='${libname}${release}${shared_ext}$major'
14292   shlibpath_var=LD_LIBRARY_PATH
14293   hardcode_into_libs=yes
14294   ;;
14295
14296 hpux9* | hpux10* | hpux11*)
14297   # Give a soname corresponding to the major version so that dld.sl refuses to
14298   # link against other versions.
14299   version_type=sunos
14300   need_lib_prefix=no
14301   need_version=no
14302   case "$host_cpu" in
14303   ia64*)
14304     shrext='.so'
14305     hardcode_into_libs=yes
14306     dynamic_linker="$host_os dld.so"
14307     shlibpath_var=LD_LIBRARY_PATH
14308     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14310     soname_spec='${libname}${release}${shared_ext}$major'
14311     if test "X$HPUX_IA64_MODE" = X32; then
14312       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14313     else
14314       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14315     fi
14316     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14317     ;;
14318    hppa*64*)
14319      shrext='.sl'
14320      hardcode_into_libs=yes
14321      dynamic_linker="$host_os dld.sl"
14322      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14323      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14324      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14325      soname_spec='${libname}${release}${shared_ext}$major'
14326      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14327      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14328      ;;
14329    *)
14330     shrext='.sl'
14331     dynamic_linker="$host_os dld.sl"
14332     shlibpath_var=SHLIB_PATH
14333     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14335     soname_spec='${libname}${release}${shared_ext}$major'
14336     ;;
14337   esac
14338   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14339   postinstall_cmds='chmod 555 $lib'
14340   ;;
14341
14342 irix5* | irix6* | nonstopux*)
14343   case $host_os in
14344     nonstopux*) version_type=nonstopux ;;
14345     *)
14346         if test "$lt_cv_prog_gnu_ld" = yes; then
14347                 version_type=linux
14348         else
14349                 version_type=irix
14350         fi ;;
14351   esac
14352   need_lib_prefix=no
14353   need_version=no
14354   soname_spec='${libname}${release}${shared_ext}$major'
14355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14356   case $host_os in
14357   irix5* | nonstopux*)
14358     libsuff= shlibsuff=
14359     ;;
14360   *)
14361     case $LD in # libtool.m4 will add one of these switches to LD
14362     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14363       libsuff= shlibsuff= libmagic=32-bit;;
14364     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14365       libsuff=32 shlibsuff=N32 libmagic=N32;;
14366     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14367       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14368     *) libsuff= shlibsuff= libmagic=never-match;;
14369     esac
14370     ;;
14371   esac
14372   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14373   shlibpath_overrides_runpath=no
14374   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14375   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14376   hardcode_into_libs=yes
14377   ;;
14378
14379 # No shared lib support for Linux oldld, aout, or coff.
14380 linux*oldld* | linux*aout* | linux*coff*)
14381   dynamic_linker=no
14382   ;;
14383
14384 # This must be Linux ELF.
14385 linux*)
14386   version_type=linux
14387   need_lib_prefix=no
14388   need_version=no
14389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390   soname_spec='${libname}${release}${shared_ext}$major'
14391   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14392   shlibpath_var=LD_LIBRARY_PATH
14393   shlibpath_overrides_runpath=no
14394   # This implies no fast_install, which is unacceptable.
14395   # Some rework will be needed to allow for fast_install
14396   # before this can be enabled.
14397   hardcode_into_libs=yes
14398
14399   # We used to test for /lib/ld.so.1 and disable shared libraries on
14400   # powerpc, because MkLinux only supported shared libraries with the
14401   # GNU dynamic linker.  Since this was broken with cross compilers,
14402   # most powerpc-linux boxes support dynamic linking these days and
14403   # people can always --disable-shared, the test was removed, and we
14404   # assume the GNU/Linux dynamic linker is in use.
14405   dynamic_linker='GNU/Linux ld.so'
14406   ;;
14407
14408 netbsd*)
14409   version_type=sunos
14410   need_lib_prefix=no
14411   need_version=no
14412   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14413     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14414     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14415     dynamic_linker='NetBSD (a.out) ld.so'
14416   else
14417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14418     soname_spec='${libname}${release}${shared_ext}$major'
14419     dynamic_linker='NetBSD ld.elf_so'
14420   fi
14421   shlibpath_var=LD_LIBRARY_PATH
14422   shlibpath_overrides_runpath=yes
14423   hardcode_into_libs=yes
14424   ;;
14425
14426 newsos6)
14427   version_type=linux
14428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14429   shlibpath_var=LD_LIBRARY_PATH
14430   shlibpath_overrides_runpath=yes
14431   ;;
14432
14433 nto-qnx)
14434   version_type=linux
14435   need_lib_prefix=no
14436   need_version=no
14437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438   soname_spec='${libname}${release}${shared_ext}$major'
14439   shlibpath_var=LD_LIBRARY_PATH
14440   shlibpath_overrides_runpath=yes
14441   ;;
14442
14443 openbsd*)
14444   version_type=sunos
14445   need_lib_prefix=no
14446   need_version=no
14447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14448   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14449   shlibpath_var=LD_LIBRARY_PATH
14450   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14451     case $host_os in
14452       openbsd2.[89] | openbsd2.[89].*)
14453         shlibpath_overrides_runpath=no
14454         ;;
14455       *)
14456         shlibpath_overrides_runpath=yes
14457         ;;
14458       esac
14459   else
14460     shlibpath_overrides_runpath=yes
14461   fi
14462   ;;
14463
14464 os2*)
14465   libname_spec='$name'
14466   shrext=".dll"
14467   need_lib_prefix=no
14468   library_names_spec='$libname${shared_ext} $libname.a'
14469   dynamic_linker='OS/2 ld.exe'
14470   shlibpath_var=LIBPATH
14471   ;;
14472
14473 osf3* | osf4* | osf5*)
14474   version_type=osf
14475   need_lib_prefix=no
14476   need_version=no
14477   soname_spec='${libname}${release}${shared_ext}$major'
14478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14479   shlibpath_var=LD_LIBRARY_PATH
14480   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14481   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14482   ;;
14483
14484 sco3.2v5*)
14485   version_type=osf
14486   soname_spec='${libname}${release}${shared_ext}$major'
14487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488   shlibpath_var=LD_LIBRARY_PATH
14489   ;;
14490
14491 solaris*)
14492   version_type=linux
14493   need_lib_prefix=no
14494   need_version=no
14495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14496   soname_spec='${libname}${release}${shared_ext}$major'
14497   shlibpath_var=LD_LIBRARY_PATH
14498   shlibpath_overrides_runpath=yes
14499   hardcode_into_libs=yes
14500   # ldd complains unless libraries are executable
14501   postinstall_cmds='chmod +x $lib'
14502   ;;
14503
14504 sunos4*)
14505   version_type=sunos
14506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14507   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14508   shlibpath_var=LD_LIBRARY_PATH
14509   shlibpath_overrides_runpath=yes
14510   if test "$with_gnu_ld" = yes; then
14511     need_lib_prefix=no
14512   fi
14513   need_version=yes
14514   ;;
14515
14516 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14517   version_type=linux
14518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519   soname_spec='${libname}${release}${shared_ext}$major'
14520   shlibpath_var=LD_LIBRARY_PATH
14521   case $host_vendor in
14522     sni)
14523       shlibpath_overrides_runpath=no
14524       need_lib_prefix=no
14525       export_dynamic_flag_spec='${wl}-Blargedynsym'
14526       runpath_var=LD_RUN_PATH
14527       ;;
14528     siemens)
14529       need_lib_prefix=no
14530       ;;
14531     motorola)
14532       need_lib_prefix=no
14533       need_version=no
14534       shlibpath_overrides_runpath=no
14535       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14536       ;;
14537   esac
14538   ;;
14539
14540 sysv4*MP*)
14541   if test -d /usr/nec ;then
14542     version_type=linux
14543     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14544     soname_spec='$libname${shared_ext}.$major'
14545     shlibpath_var=LD_LIBRARY_PATH
14546   fi
14547   ;;
14548
14549 uts4*)
14550   version_type=linux
14551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14552   soname_spec='${libname}${release}${shared_ext}$major'
14553   shlibpath_var=LD_LIBRARY_PATH
14554   ;;
14555
14556 *)
14557   dynamic_linker=no
14558   ;;
14559 esac
14560 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14561 echo "${ECHO_T}$dynamic_linker" >&6
14562 test "$dynamic_linker" = no && can_build_shared=no
14563
14564
14565 # The else clause should only fire when bootstrapping the
14566 # libtool distribution, otherwise you forgot to ship ltmain.sh
14567 # with your package, and you will get complaints that there are
14568 # no rules to generate ltmain.sh.
14569 if test -f "$ltmain"; then
14570   # See if we are running on zsh, and set the options which allow our commands through
14571   # without removal of \ escapes.
14572   if test -n "${ZSH_VERSION+set}" ; then
14573     setopt NO_GLOB_SUBST
14574   fi
14575   # Now quote all the things that may contain metacharacters while being
14576   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14577   # variables and quote the copies for generation of the libtool script.
14578   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14579     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14580     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14581     deplibs_check_method reload_flag reload_cmds need_locks \
14582     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14583     lt_cv_sys_global_symbol_to_c_name_address \
14584     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14585     old_postinstall_cmds old_postuninstall_cmds \
14586     compiler_F77 \
14587     CC_F77 \
14588     LD_F77 \
14589     lt_prog_compiler_wl_F77 \
14590     lt_prog_compiler_pic_F77 \
14591     lt_prog_compiler_static_F77 \
14592     lt_prog_compiler_no_builtin_flag_F77 \
14593     export_dynamic_flag_spec_F77 \
14594     thread_safe_flag_spec_F77 \
14595     whole_archive_flag_spec_F77 \
14596     enable_shared_with_static_runtimes_F77 \
14597     old_archive_cmds_F77 \
14598     old_archive_from_new_cmds_F77 \
14599     predep_objects_F77 \
14600     postdep_objects_F77 \
14601     predeps_F77 \
14602     postdeps_F77 \
14603     compiler_lib_search_path_F77 \
14604     archive_cmds_F77 \
14605     archive_expsym_cmds_F77 \
14606     postinstall_cmds_F77 \
14607     postuninstall_cmds_F77 \
14608     old_archive_from_expsyms_cmds_F77 \
14609     allow_undefined_flag_F77 \
14610     no_undefined_flag_F77 \
14611     export_symbols_cmds_F77 \
14612     hardcode_libdir_flag_spec_F77 \
14613     hardcode_libdir_flag_spec_ld_F77 \
14614     hardcode_libdir_separator_F77 \
14615     hardcode_automatic_F77 \
14616     module_cmds_F77 \
14617     module_expsym_cmds_F77 \
14618     lt_cv_prog_compiler_c_o_F77 \
14619     exclude_expsyms_F77 \
14620     include_expsyms_F77; do
14621
14622     case $var in
14623     old_archive_cmds_F77 | \
14624     old_archive_from_new_cmds_F77 | \
14625     archive_cmds_F77 | \
14626     archive_expsym_cmds_F77 | \
14627     module_cmds_F77 | \
14628     module_expsym_cmds_F77 | \
14629     old_archive_from_expsyms_cmds_F77 | \
14630     export_symbols_cmds_F77 | \
14631     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14632     postinstall_cmds | postuninstall_cmds | \
14633     old_postinstall_cmds | old_postuninstall_cmds | \
14634     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14635       # Double-quote double-evaled strings.
14636       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14637       ;;
14638     *)
14639       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14640       ;;
14641     esac
14642   done
14643
14644   case $lt_echo in
14645   *'\$0 --fallback-echo"')
14646     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14647     ;;
14648   esac
14649
14650 cfgfile="$ofile"
14651
14652   cat <<__EOF__ >> "$cfgfile"
14653 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14654
14655 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14656
14657 # Shell to use when invoking shell scripts.
14658 SHELL=$lt_SHELL
14659
14660 # Whether or not to build shared libraries.
14661 build_libtool_libs=$enable_shared
14662
14663 # Whether or not to build static libraries.
14664 build_old_libs=$enable_static
14665
14666 # Whether or not to add -lc for building shared libraries.
14667 build_libtool_need_lc=$archive_cmds_need_lc_F77
14668
14669 # Whether or not to disallow shared libs when runtime libs are static
14670 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14671
14672 # Whether or not to optimize for fast installation.
14673 fast_install=$enable_fast_install
14674
14675 # The host system.
14676 host_alias=$host_alias
14677 host=$host
14678
14679 # An echo program that does not interpret backslashes.
14680 echo=$lt_echo
14681
14682 # The archiver.
14683 AR=$lt_AR
14684 AR_FLAGS=$lt_AR_FLAGS
14685
14686 # A C compiler.
14687 LTCC=$lt_LTCC
14688
14689 # A language-specific compiler.
14690 CC=$lt_compiler_F77
14691
14692 # Is the compiler the GNU C compiler?
14693 with_gcc=$GCC_F77
14694
14695 # An ERE matcher.
14696 EGREP=$lt_EGREP
14697
14698 # The linker used to build libraries.
14699 LD=$lt_LD_F77
14700
14701 # Whether we need hard or soft links.
14702 LN_S=$lt_LN_S
14703
14704 # A BSD-compatible nm program.
14705 NM=$lt_NM
14706
14707 # A symbol stripping program
14708 STRIP=$STRIP
14709
14710 # Used to examine libraries when file_magic_cmd begins "file"
14711 MAGIC_CMD=$MAGIC_CMD
14712
14713 # Used on cygwin: DLL creation program.
14714 DLLTOOL="$DLLTOOL"
14715
14716 # Used on cygwin: object dumper.
14717 OBJDUMP="$OBJDUMP"
14718
14719 # Used on cygwin: assembler.
14720 AS="$AS"
14721
14722 # The name of the directory that contains temporary libtool files.
14723 objdir=$objdir
14724
14725 # How to create reloadable object files.
14726 reload_flag=$lt_reload_flag
14727 reload_cmds=$lt_reload_cmds
14728
14729 # How to pass a linker flag through the compiler.
14730 wl=$lt_lt_prog_compiler_wl_F77
14731
14732 # Object file suffix (normally "o").
14733 objext="$ac_objext"
14734
14735 # Old archive suffix (normally "a").
14736 libext="$libext"
14737
14738 # Shared library suffix (normally ".so").
14739 shrext='$shrext'
14740
14741 # Executable file suffix (normally "").
14742 exeext="$exeext"
14743
14744 # Additional compiler flags for building library objects.
14745 pic_flag=$lt_lt_prog_compiler_pic_F77
14746 pic_mode=$pic_mode
14747
14748 # What is the maximum length of a command?
14749 max_cmd_len=$lt_cv_sys_max_cmd_len
14750
14751 # Does compiler simultaneously support -c and -o options?
14752 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14753
14754 # Must we lock files when doing compilation ?
14755 need_locks=$lt_need_locks
14756
14757 # Do we need the lib prefix for modules?
14758 need_lib_prefix=$need_lib_prefix
14759
14760 # Do we need a version for libraries?
14761 need_version=$need_version
14762
14763 # Whether dlopen is supported.
14764 dlopen_support=$enable_dlopen
14765
14766 # Whether dlopen of programs is supported.
14767 dlopen_self=$enable_dlopen_self
14768
14769 # Whether dlopen of statically linked programs is supported.
14770 dlopen_self_static=$enable_dlopen_self_static
14771
14772 # Compiler flag to prevent dynamic linking.
14773 link_static_flag=$lt_lt_prog_compiler_static_F77
14774
14775 # Compiler flag to turn off builtin functions.
14776 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14777
14778 # Compiler flag to allow reflexive dlopens.
14779 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14780
14781 # Compiler flag to generate shared objects directly from archives.
14782 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14783
14784 # Compiler flag to generate thread-safe objects.
14785 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14786
14787 # Library versioning type.
14788 version_type=$version_type
14789
14790 # Format of library name prefix.
14791 libname_spec=$lt_libname_spec
14792
14793 # List of archive names.  First name is the real one, the rest are links.
14794 # The last name is the one that the linker finds with -lNAME.
14795 library_names_spec=$lt_library_names_spec
14796
14797 # The coded name of the library, if different from the real name.
14798 soname_spec=$lt_soname_spec
14799
14800 # Commands used to build and install an old-style archive.
14801 RANLIB=$lt_RANLIB
14802 old_archive_cmds=$lt_old_archive_cmds_F77
14803 old_postinstall_cmds=$lt_old_postinstall_cmds
14804 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14805
14806 # Create an old-style archive from a shared archive.
14807 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14808
14809 # Create a temporary old-style archive to link instead of a shared archive.
14810 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14811
14812 # Commands used to build and install a shared archive.
14813 archive_cmds=$lt_archive_cmds_F77
14814 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14815 postinstall_cmds=$lt_postinstall_cmds
14816 postuninstall_cmds=$lt_postuninstall_cmds
14817
14818 # Commands used to build a loadable module (assumed same as above if empty)
14819 module_cmds=$lt_module_cmds_F77
14820 module_expsym_cmds=$lt_module_expsym_cmds_F77
14821
14822 # Commands to strip libraries.
14823 old_striplib=$lt_old_striplib
14824 striplib=$lt_striplib
14825
14826 # Dependencies to place before the objects being linked to create a
14827 # shared library.
14828 predep_objects=$lt_predep_objects_F77
14829
14830 # Dependencies to place after the objects being linked to create a
14831 # shared library.
14832 postdep_objects=$lt_postdep_objects_F77
14833
14834 # Dependencies to place before the objects being linked to create a
14835 # shared library.
14836 predeps=$lt_predeps_F77
14837
14838 # Dependencies to place after the objects being linked to create a
14839 # shared library.
14840 postdeps=$lt_postdeps_F77
14841
14842 # The library search path used internally by the compiler when linking
14843 # a shared library.
14844 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14845
14846 # Method to check whether dependent libraries are shared objects.
14847 deplibs_check_method=$lt_deplibs_check_method
14848
14849 # Command to use when deplibs_check_method == file_magic.
14850 file_magic_cmd=$lt_file_magic_cmd
14851
14852 # Flag that allows shared libraries with undefined symbols to be built.
14853 allow_undefined_flag=$lt_allow_undefined_flag_F77
14854
14855 # Flag that forces no undefined symbols.
14856 no_undefined_flag=$lt_no_undefined_flag_F77
14857
14858 # Commands used to finish a libtool library installation in a directory.
14859 finish_cmds=$lt_finish_cmds
14860
14861 # Same as above, but a single script fragment to be evaled but not shown.
14862 finish_eval=$lt_finish_eval
14863
14864 # Take the output of nm and produce a listing of raw symbols and C names.
14865 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14866
14867 # Transform the output of nm in a proper C declaration
14868 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14869
14870 # Transform the output of nm in a C name address pair
14871 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14872
14873 # This is the shared library runtime path variable.
14874 runpath_var=$runpath_var
14875
14876 # This is the shared library path variable.
14877 shlibpath_var=$shlibpath_var
14878
14879 # Is shlibpath searched before the hard-coded library search path?
14880 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14881
14882 # How to hardcode a shared library path into an executable.
14883 hardcode_action=$hardcode_action_F77
14884
14885 # Whether we should hardcode library paths into libraries.
14886 hardcode_into_libs=$hardcode_into_libs
14887
14888 # Flag to hardcode \$libdir into a binary during linking.
14889 # This must work even if \$libdir does not exist.
14890 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14891
14892 # If ld is used when linking, flag to hardcode \$libdir into
14893 # a binary during linking. This must work even if \$libdir does
14894 # not exist.
14895 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14896
14897 # Whether we need a single -rpath flag with a separated argument.
14898 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14899
14900 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14901 # resulting binary.
14902 hardcode_direct=$hardcode_direct_F77
14903
14904 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14905 # resulting binary.
14906 hardcode_minus_L=$hardcode_minus_L_F77
14907
14908 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14909 # the resulting binary.
14910 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14911
14912 # Set to yes if building a shared library automatically hardcodes DIR into the library
14913 # and all subsequent libraries and executables linked against it.
14914 hardcode_automatic=$hardcode_automatic_F77
14915
14916 # Variables whose values should be saved in libtool wrapper scripts and
14917 # restored at relink time.
14918 variables_saved_for_relink="$variables_saved_for_relink"
14919
14920 # Whether libtool must link a program against all its dependency libraries.
14921 link_all_deplibs=$link_all_deplibs_F77
14922
14923 # Compile-time system search path for libraries
14924 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14925
14926 # Run-time system search path for libraries
14927 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14928
14929 # Fix the shell variable \$srcfile for the compiler.
14930 fix_srcfile_path="$fix_srcfile_path_F77"
14931
14932 # Set to yes if exported symbols are required.
14933 always_export_symbols=$always_export_symbols_F77
14934
14935 # The commands to list exported symbols.
14936 export_symbols_cmds=$lt_export_symbols_cmds_F77
14937
14938 # The commands to extract the exported symbol list from a shared archive.
14939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14940
14941 # Symbols that should not be listed in the preloaded symbols.
14942 exclude_expsyms=$lt_exclude_expsyms_F77
14943
14944 # Symbols that must always be exported.
14945 include_expsyms=$lt_include_expsyms_F77
14946
14947 # ### END LIBTOOL TAG CONFIG: $tagname
14948
14949 __EOF__
14950
14951
14952 else
14953   # If there is no Makefile yet, we rely on a make rule to execute
14954   # `config.status --recheck' to rerun these tests and create the
14955   # libtool script then.
14956   test -f Makefile && make "$ltmain"
14957 fi
14958
14959
14960 ac_ext=c
14961 ac_cpp='$CPP $CPPFLAGS'
14962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14965
14966 CC="$lt_save_CC"
14967
14968         else
14969           tagname=""
14970         fi
14971         ;;
14972
14973       GCJ)
14974         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14975
14976
14977
14978 # Source file extension for Java test sources.
14979 ac_ext=java
14980
14981 # Object file extension for compiled Java test sources.
14982 objext=o
14983 objext_GCJ=$objext
14984
14985 # Code to be used in simple compile tests
14986 lt_simple_compile_test_code="class foo {}\n"
14987
14988 # Code to be used in simple link tests
14989 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14990
14991 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14992
14993 # If no C compiler was specified, use CC.
14994 LTCC=${LTCC-"$CC"}
14995
14996 # Allow CC to be a program name with arguments.
14997 compiler=$CC
14998
14999
15000 # Allow CC to be a program name with arguments.
15001 lt_save_CC="$CC"
15002 CC=${GCJ-"gcj"}
15003 compiler=$CC
15004 compiler_GCJ=$CC
15005
15006 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15007 archive_cmds_need_lc_GCJ=no
15008
15009 ## CAVEAT EMPTOR:
15010 ## There is no encapsulation within the following macros, do not change
15011 ## the running order or otherwise move them around unless you know exactly
15012 ## what you are doing...
15013
15014 lt_prog_compiler_no_builtin_flag_GCJ=
15015
15016 if test "$GCC" = yes; then
15017   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15018
15019   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15020 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15021 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15022   echo $ECHO_N "(cached) $ECHO_C" >&6
15023 else
15024   lt_cv_prog_compiler_rtti_exceptions=no
15025   ac_outfile=conftest.$ac_objext
15026    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15027    lt_compiler_flag="-fno-rtti -fno-exceptions"
15028    # Insert the option either (1) after the last *FLAGS variable, or
15029    # (2) before a word containing "conftest.", or (3) at the end.
15030    # Note that $ac_compile itself does not contain backslashes and begins
15031    # with a dollar sign (not a hyphen), so the echo should work correctly.
15032    # The option is referenced via a variable to avoid confusing sed.
15033    lt_compile=`echo "$ac_compile" | $SED \
15034    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15035    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15036    -e 's:$: $lt_compiler_flag:'`
15037    (eval echo "\"\$as_me:15037: $lt_compile\"" >&5)
15038    (eval "$lt_compile" 2>conftest.err)
15039    ac_status=$?
15040    cat conftest.err >&5
15041    echo "$as_me:15041: \$? = $ac_status" >&5
15042    if (exit $ac_status) && test -s "$ac_outfile"; then
15043      # The compiler can only warn and ignore the option if not recognized
15044      # So say no if there are warnings
15045      if test ! -s conftest.err; then
15046        lt_cv_prog_compiler_rtti_exceptions=yes
15047      fi
15048    fi
15049    $rm conftest*
15050
15051 fi
15052 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15053 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15054
15055 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15056     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15057 else
15058     :
15059 fi
15060
15061 fi
15062
15063 lt_prog_compiler_wl_GCJ=
15064 lt_prog_compiler_pic_GCJ=
15065 lt_prog_compiler_static_GCJ=
15066
15067 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15068 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15069
15070   if test "$GCC" = yes; then
15071     lt_prog_compiler_wl_GCJ='-Wl,'
15072     lt_prog_compiler_static_GCJ='-static'
15073
15074     case $host_os in
15075       aix*)
15076       # All AIX code is PIC.
15077       if test "$host_cpu" = ia64; then
15078         # AIX 5 now supports IA64 processor
15079         lt_prog_compiler_static_GCJ='-Bstatic'
15080       fi
15081       ;;
15082
15083     amigaos*)
15084       # FIXME: we need at least 68020 code to build shared libraries, but
15085       # adding the `-m68020' flag to GCC prevents building anything better,
15086       # like `-m68040'.
15087       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15088       ;;
15089
15090     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15091       # PIC is the default for these OSes.
15092       ;;
15093
15094     mingw* | pw32* | os2*)
15095       # This hack is so that the source file can tell whether it is being
15096       # built for inclusion in a dll (and should export symbols for example).
15097       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15098       ;;
15099
15100     darwin* | rhapsody*)
15101       # PIC is the default on this platform
15102       # Common symbols not allowed in MH_DYLIB files
15103       lt_prog_compiler_pic_GCJ='-fno-common'
15104       ;;
15105
15106     msdosdjgpp*)
15107       # Just because we use GCC doesn't mean we suddenly get shared libraries
15108       # on systems that don't support them.
15109       lt_prog_compiler_can_build_shared_GCJ=no
15110       enable_shared=no
15111       ;;
15112
15113     sysv4*MP*)
15114       if test -d /usr/nec; then
15115         lt_prog_compiler_pic_GCJ=-Kconform_pic
15116       fi
15117       ;;
15118
15119     hpux*)
15120       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15121       # not for PA HP-UX.
15122       case "$host_cpu" in
15123       hppa*64*|ia64*)
15124         # +Z the default
15125         ;;
15126       *)
15127         lt_prog_compiler_pic_GCJ='-fPIC'
15128         ;;
15129       esac
15130       ;;
15131
15132     *)
15133       lt_prog_compiler_pic_GCJ='-fPIC'
15134       ;;
15135     esac
15136   else
15137     # PORTME Check for flag to pass linker flags through the system compiler.
15138     case $host_os in
15139     aix*)
15140       lt_prog_compiler_wl_GCJ='-Wl,'
15141       if test "$host_cpu" = ia64; then
15142         # AIX 5 now supports IA64 processor
15143         lt_prog_compiler_static_GCJ='-Bstatic'
15144       else
15145         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15146       fi
15147       ;;
15148
15149     mingw* | pw32* | os2*)
15150       # This hack is so that the source file can tell whether it is being
15151       # built for inclusion in a dll (and should export symbols for example).
15152       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15153       ;;
15154
15155     hpux9* | hpux10* | hpux11*)
15156       lt_prog_compiler_wl_GCJ='-Wl,'
15157       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15158       # not for PA HP-UX.
15159       case "$host_cpu" in
15160       hppa*64*|ia64*)
15161         # +Z the default
15162         ;;
15163       *)
15164         lt_prog_compiler_pic_GCJ='+Z'
15165         ;;
15166       esac
15167       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15168       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15169       ;;
15170
15171     irix5* | irix6* | nonstopux*)
15172       lt_prog_compiler_wl_GCJ='-Wl,'
15173       # PIC (with -KPIC) is the default.
15174       lt_prog_compiler_static_GCJ='-non_shared'
15175       ;;
15176
15177     newsos6)
15178       lt_prog_compiler_pic_GCJ='-KPIC'
15179       lt_prog_compiler_static_GCJ='-Bstatic'
15180       ;;
15181
15182     linux*)
15183       case $CC in
15184       icc|ecc)
15185         lt_prog_compiler_wl_GCJ='-Wl,'
15186         lt_prog_compiler_pic_GCJ='-KPIC'
15187         lt_prog_compiler_static_GCJ='-static'
15188         ;;
15189       ccc)
15190         lt_prog_compiler_wl_GCJ='-Wl,'
15191         # All Alpha code is PIC.
15192         lt_prog_compiler_static_GCJ='-non_shared'
15193         ;;
15194       esac
15195       ;;
15196
15197     osf3* | osf4* | osf5*)
15198       lt_prog_compiler_wl_GCJ='-Wl,'
15199       # All OSF/1 code is PIC.
15200       lt_prog_compiler_static_GCJ='-non_shared'
15201       ;;
15202
15203     sco3.2v5*)
15204       lt_prog_compiler_pic_GCJ='-Kpic'
15205       lt_prog_compiler_static_GCJ='-dn'
15206       ;;
15207
15208     solaris*)
15209       lt_prog_compiler_wl_GCJ='-Wl,'
15210       lt_prog_compiler_pic_GCJ='-KPIC'
15211       lt_prog_compiler_static_GCJ='-Bstatic'
15212       ;;
15213
15214     sunos4*)
15215       lt_prog_compiler_wl_GCJ='-Qoption ld '
15216       lt_prog_compiler_pic_GCJ='-PIC'
15217       lt_prog_compiler_static_GCJ='-Bstatic'
15218       ;;
15219
15220     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15221       lt_prog_compiler_wl_GCJ='-Wl,'
15222       lt_prog_compiler_pic_GCJ='-KPIC'
15223       lt_prog_compiler_static_GCJ='-Bstatic'
15224       ;;
15225
15226     sysv4*MP*)
15227       if test -d /usr/nec ;then
15228         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15229         lt_prog_compiler_static_GCJ='-Bstatic'
15230       fi
15231       ;;
15232
15233     uts4*)
15234       lt_prog_compiler_pic_GCJ='-pic'
15235       lt_prog_compiler_static_GCJ='-Bstatic'
15236       ;;
15237
15238     *)
15239       lt_prog_compiler_can_build_shared_GCJ=no
15240       ;;
15241     esac
15242   fi
15243
15244 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15245 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15246
15247 #
15248 # Check to make sure the PIC flag actually works.
15249 #
15250 if test -n "$lt_prog_compiler_pic_GCJ"; then
15251   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15252 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15253 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15254   echo $ECHO_N "(cached) $ECHO_C" >&6
15255 else
15256   lt_prog_compiler_pic_works_GCJ=no
15257   ac_outfile=conftest.$ac_objext
15258    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15259    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15260    # Insert the option either (1) after the last *FLAGS variable, or
15261    # (2) before a word containing "conftest.", or (3) at the end.
15262    # Note that $ac_compile itself does not contain backslashes and begins
15263    # with a dollar sign (not a hyphen), so the echo should work correctly.
15264    # The option is referenced via a variable to avoid confusing sed.
15265    lt_compile=`echo "$ac_compile" | $SED \
15266    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15267    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15268    -e 's:$: $lt_compiler_flag:'`
15269    (eval echo "\"\$as_me:15269: $lt_compile\"" >&5)
15270    (eval "$lt_compile" 2>conftest.err)
15271    ac_status=$?
15272    cat conftest.err >&5
15273    echo "$as_me:15273: \$? = $ac_status" >&5
15274    if (exit $ac_status) && test -s "$ac_outfile"; then
15275      # The compiler can only warn and ignore the option if not recognized
15276      # So say no if there are warnings
15277      if test ! -s conftest.err; then
15278        lt_prog_compiler_pic_works_GCJ=yes
15279      fi
15280    fi
15281    $rm conftest*
15282
15283 fi
15284 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15285 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15286
15287 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15288     case $lt_prog_compiler_pic_GCJ in
15289      "" | " "*) ;;
15290      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15291      esac
15292 else
15293     lt_prog_compiler_pic_GCJ=
15294      lt_prog_compiler_can_build_shared_GCJ=no
15295 fi
15296
15297 fi
15298 case "$host_os" in
15299   # For platforms which do not support PIC, -DPIC is meaningless:
15300   *djgpp*)
15301     lt_prog_compiler_pic_GCJ=
15302     ;;
15303   *)
15304     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15305     ;;
15306 esac
15307
15308 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15309 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15310 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15311   echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313   lt_cv_prog_compiler_c_o_GCJ=no
15314    $rm -r conftest 2>/dev/null
15315    mkdir conftest
15316    cd conftest
15317    mkdir out
15318    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15319
15320    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15321    # that will create temporary files in the current directory regardless of
15322    # the output directory.  Thus, making CWD read-only will cause this test
15323    # to fail, enabling locking or at least warning the user not to do parallel
15324    # builds.
15325    chmod -w .
15326
15327    lt_compiler_flag="-o out/conftest2.$ac_objext"
15328    # Insert the option either (1) after the last *FLAGS variable, or
15329    # (2) before a word containing "conftest.", or (3) at the end.
15330    # Note that $ac_compile itself does not contain backslashes and begins
15331    # with a dollar sign (not a hyphen), so the echo should work correctly.
15332    lt_compile=`echo "$ac_compile" | $SED \
15333    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15334    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15335    -e 's:$: $lt_compiler_flag:'`
15336    (eval echo "\"\$as_me:15336: $lt_compile\"" >&5)
15337    (eval "$lt_compile" 2>out/conftest.err)
15338    ac_status=$?
15339    cat out/conftest.err >&5
15340    echo "$as_me:15340: \$? = $ac_status" >&5
15341    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15342    then
15343      # The compiler can only warn and ignore the option if not recognized
15344      # So say no if there are warnings
15345      if test ! -s out/conftest.err; then
15346        lt_cv_prog_compiler_c_o_GCJ=yes
15347      fi
15348    fi
15349    chmod u+w .
15350    $rm conftest* out/*
15351    rmdir out
15352    cd ..
15353    rmdir conftest
15354    $rm conftest*
15355
15356 fi
15357 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15358 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15359
15360
15361 hard_links="nottested"
15362 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15363   # do not overwrite the value of need_locks provided by the user
15364   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15365 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15366   hard_links=yes
15367   $rm conftest*
15368   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15369   touch conftest.a
15370   ln conftest.a conftest.b 2>&5 || hard_links=no
15371   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15372   echo "$as_me:$LINENO: result: $hard_links" >&5
15373 echo "${ECHO_T}$hard_links" >&6
15374   if test "$hard_links" = no; then
15375     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15376 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15377     need_locks=warn
15378   fi
15379 else
15380   need_locks=no
15381 fi
15382
15383 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15384 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15385
15386   runpath_var=
15387   allow_undefined_flag_GCJ=
15388   enable_shared_with_static_runtimes_GCJ=no
15389   archive_cmds_GCJ=
15390   archive_expsym_cmds_GCJ=
15391   old_archive_From_new_cmds_GCJ=
15392   old_archive_from_expsyms_cmds_GCJ=
15393   export_dynamic_flag_spec_GCJ=
15394   whole_archive_flag_spec_GCJ=
15395   thread_safe_flag_spec_GCJ=
15396   hardcode_libdir_flag_spec_GCJ=
15397   hardcode_libdir_flag_spec_ld_GCJ=
15398   hardcode_libdir_separator_GCJ=
15399   hardcode_direct_GCJ=no
15400   hardcode_minus_L_GCJ=no
15401   hardcode_shlibpath_var_GCJ=unsupported
15402   link_all_deplibs_GCJ=unknown
15403   hardcode_automatic_GCJ=no
15404   module_cmds_GCJ=
15405   module_expsym_cmds_GCJ=
15406   always_export_symbols_GCJ=no
15407   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15408   # include_expsyms should be a list of space-separated symbols to be *always*
15409   # included in the symbol list
15410   include_expsyms_GCJ=
15411   # exclude_expsyms can be an extended regexp of symbols to exclude
15412   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15413   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15414   # as well as any symbol that contains `d'.
15415   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15416   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15417   # platforms (ab)use it in PIC code, but their linkers get confused if
15418   # the symbol is explicitly referenced.  Since portable code cannot
15419   # rely on this symbol name, it's probably fine to never include it in
15420   # preloaded symbol tables.
15421   extract_expsyms_cmds=
15422
15423   case $host_os in
15424   cygwin* | mingw* | pw32*)
15425     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15426     # When not using gcc, we currently assume that we are using
15427     # Microsoft Visual C++.
15428     if test "$GCC" != yes; then
15429       with_gnu_ld=no
15430     fi
15431     ;;
15432   openbsd*)
15433     with_gnu_ld=no
15434     ;;
15435   esac
15436
15437   ld_shlibs_GCJ=yes
15438   if test "$with_gnu_ld" = yes; then
15439     # If archive_cmds runs LD, not CC, wlarc should be empty
15440     wlarc='${wl}'
15441
15442     # See if GNU ld supports shared libraries.
15443     case $host_os in
15444     aix3* | aix4* | aix5*)
15445       # On AIX/PPC, the GNU linker is very broken
15446       if test "$host_cpu" != ia64; then
15447         ld_shlibs_GCJ=no
15448         cat <<EOF 1>&2
15449
15450 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15451 *** to be unable to reliably create shared libraries on AIX.
15452 *** Therefore, libtool is disabling shared libraries support.  If you
15453 *** really care for shared libraries, you may want to modify your PATH
15454 *** so that a non-GNU linker is found, and then restart.
15455
15456 EOF
15457       fi
15458       ;;
15459
15460     amigaos*)
15461       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)'
15462       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15463       hardcode_minus_L_GCJ=yes
15464
15465       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15466       # that the semantics of dynamic libraries on AmigaOS, at least up
15467       # to version 4, is to share data among multiple programs linked
15468       # with the same dynamic library.  Since this doesn't match the
15469       # behavior of shared libraries on other platforms, we can't use
15470       # them.
15471       ld_shlibs_GCJ=no
15472       ;;
15473
15474     beos*)
15475       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15476         allow_undefined_flag_GCJ=unsupported
15477         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15478         # support --undefined.  This deserves some investigation.  FIXME
15479         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15480       else
15481         ld_shlibs_GCJ=no
15482       fi
15483       ;;
15484
15485     cygwin* | mingw* | pw32*)
15486       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15487       # as there is no search path for DLLs.
15488       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15489       allow_undefined_flag_GCJ=unsupported
15490       always_export_symbols_GCJ=no
15491       enable_shared_with_static_runtimes_GCJ=yes
15492       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15493
15494       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15495         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15496         # If the export-symbols file already is a .def file (1st line
15497         # is EXPORTS), use it as is; otherwise, prepend...
15498         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15499           cp $export_symbols $output_objdir/$soname.def;
15500         else
15501           echo EXPORTS > $output_objdir/$soname.def;
15502           cat $export_symbols >> $output_objdir/$soname.def;
15503         fi~
15504         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15505       else
15506         ld_shlibs=no
15507       fi
15508       ;;
15509
15510     netbsd*)
15511       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15512         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15513         wlarc=
15514       else
15515         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15516         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15517       fi
15518       ;;
15519
15520     solaris* | sysv5*)
15521       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15522         ld_shlibs_GCJ=no
15523         cat <<EOF 1>&2
15524
15525 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15526 *** create shared libraries on Solaris systems.  Therefore, libtool
15527 *** is disabling shared libraries support.  We urge you to upgrade GNU
15528 *** binutils to release 2.9.1 or newer.  Another option is to modify
15529 *** your PATH or compiler configuration so that the native linker is
15530 *** used, and then restart.
15531
15532 EOF
15533       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15534         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15535         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15536       else
15537         ld_shlibs_GCJ=no
15538       fi
15539       ;;
15540
15541     sunos4*)
15542       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15543       wlarc=
15544       hardcode_direct_GCJ=yes
15545       hardcode_shlibpath_var_GCJ=no
15546       ;;
15547
15548     *)
15549       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15550         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15551         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15552       else
15553         ld_shlibs_GCJ=no
15554       fi
15555       ;;
15556     esac
15557
15558     if test "$ld_shlibs_GCJ" = yes; then
15559       runpath_var=LD_RUN_PATH
15560       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15561       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15562       # ancient GNU ld didn't support --whole-archive et. al.
15563       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15564         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15565       else
15566         whole_archive_flag_spec_GCJ=
15567       fi
15568     fi
15569   else
15570     # PORTME fill in a description of your system's linker (not GNU ld)
15571     case $host_os in
15572     aix3*)
15573       allow_undefined_flag_GCJ=unsupported
15574       always_export_symbols_GCJ=yes
15575       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'
15576       # Note: this linker hardcodes the directories in LIBPATH if there
15577       # are no directories specified by -L.
15578       hardcode_minus_L_GCJ=yes
15579       if test "$GCC" = yes && test -z "$link_static_flag"; then
15580         # Neither direct hardcoding nor static linking is supported with a
15581         # broken collect2.
15582         hardcode_direct_GCJ=unsupported
15583       fi
15584       ;;
15585
15586     aix4* | aix5*)
15587       if test "$host_cpu" = ia64; then
15588         # On IA64, the linker does run time linking by default, so we don't
15589         # have to do anything special.
15590         aix_use_runtimelinking=no
15591         exp_sym_flag='-Bexport'
15592         no_entry_flag=""
15593       else
15594         # If we're using GNU nm, then we don't want the "-C" option.
15595         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15596         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15597           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'
15598         else
15599           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'
15600         fi
15601         aix_use_runtimelinking=no
15602
15603         # Test if we are trying to use run time linking or normal
15604         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15605         # need to do runtime linking.
15606         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15607           for ld_flag in $LDFLAGS; do
15608           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15609             aix_use_runtimelinking=yes
15610             break
15611           fi
15612           done
15613         esac
15614
15615         exp_sym_flag='-bexport'
15616         no_entry_flag='-bnoentry'
15617       fi
15618
15619       # When large executables or shared objects are built, AIX ld can
15620       # have problems creating the table of contents.  If linking a library
15621       # or program results in "error TOC overflow" add -mminimal-toc to
15622       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15623       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15624
15625       archive_cmds_GCJ=''
15626       hardcode_direct_GCJ=yes
15627       hardcode_libdir_separator_GCJ=':'
15628       link_all_deplibs_GCJ=yes
15629
15630       if test "$GCC" = yes; then
15631         case $host_os in aix4.012|aix4.012.*)
15632         # We only want to do this on AIX 4.2 and lower, the check
15633         # below for broken collect2 doesn't work under 4.3+
15634           collect2name=`${CC} -print-prog-name=collect2`
15635           if test -f "$collect2name" && \
15636            strings "$collect2name" | grep resolve_lib_name >/dev/null
15637           then
15638           # We have reworked collect2
15639           hardcode_direct_GCJ=yes
15640           else
15641           # We have old collect2
15642           hardcode_direct_GCJ=unsupported
15643           # It fails to find uninstalled libraries when the uninstalled
15644           # path is not listed in the libpath.  Setting hardcode_minus_L
15645           # to unsupported forces relinking
15646           hardcode_minus_L_GCJ=yes
15647           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15648           hardcode_libdir_separator_GCJ=
15649           fi
15650         esac
15651         shared_flag='-shared'
15652       else
15653         # not using gcc
15654         if test "$host_cpu" = ia64; then
15655         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15656         # chokes on -Wl,-G. The following line is correct:
15657           shared_flag='-G'
15658         else
15659         if test "$aix_use_runtimelinking" = yes; then
15660             shared_flag='${wl}-G'
15661           else
15662             shared_flag='${wl}-bM:SRE'
15663         fi
15664         fi
15665       fi
15666
15667       # It seems that -bexpall does not export symbols beginning with
15668       # underscore (_), so it is better to generate a list of symbols to export.
15669       always_export_symbols_GCJ=yes
15670       if test "$aix_use_runtimelinking" = yes; then
15671         # Warning - without using the other runtime loading flags (-brtl),
15672         # -berok will link without error, but may produce a broken library.
15673         allow_undefined_flag_GCJ='-berok'
15674        # Determine the default libpath from the value encoded in an empty executable.
15675        cat >conftest.$ac_ext <<_ACEOF
15676 #line $LINENO "configure"
15677 /* confdefs.h.  */
15678 _ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h.  */
15682
15683 int
15684 main ()
15685 {
15686
15687   ;
15688   return 0;
15689 }
15690 _ACEOF
15691 rm -f conftest.$ac_objext conftest$ac_exeext
15692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15693   (eval $ac_link) 2>&5
15694   ac_status=$?
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); } &&
15697          { ac_try='test -s conftest$ac_exeext'
15698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699   (eval $ac_try) 2>&5
15700   ac_status=$?
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); }; }; then
15703
15704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15705 }'`
15706 # Check for a 64-bit object if we didn't find anything.
15707 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; }
15708 }'`; fi
15709 else
15710   echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15712
15713 fi
15714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15716
15717        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15718         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"
15719        else
15720         if test "$host_cpu" = ia64; then
15721           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15722           allow_undefined_flag_GCJ="-z nodefs"
15723           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"
15724         else
15725          # Determine the default libpath from the value encoded in an empty executable.
15726          cat >conftest.$ac_ext <<_ACEOF
15727 #line $LINENO "configure"
15728 /* confdefs.h.  */
15729 _ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h.  */
15733
15734 int
15735 main ()
15736 {
15737
15738   ;
15739   return 0;
15740 }
15741 _ACEOF
15742 rm -f conftest.$ac_objext conftest$ac_exeext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15744   (eval $ac_link) 2>&5
15745   ac_status=$?
15746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747   (exit $ac_status); } &&
15748          { ac_try='test -s conftest$ac_exeext'
15749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750   (eval $ac_try) 2>&5
15751   ac_status=$?
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); }; }; then
15754
15755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15756 }'`
15757 # Check for a 64-bit object if we didn't find anything.
15758 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; }
15759 }'`; fi
15760 else
15761   echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15763
15764 fi
15765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15767
15768          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15769           # Warning - without using the other run time loading flags,
15770           # -berok will link without error, but may produce a broken library.
15771           no_undefined_flag_GCJ=' ${wl}-bernotok'
15772           allow_undefined_flag_GCJ=' ${wl}-berok'
15773           # -bexpall does not export symbols beginning with underscore (_)
15774           always_export_symbols_GCJ=yes
15775           # Exported symbols can be pulled into shared objects from archives
15776           whole_archive_flag_spec_GCJ=' '
15777           archive_cmds_need_lc_GCJ=yes
15778           # This is similar to how AIX traditionally builds it's shared libraries.
15779           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'
15780         fi
15781       fi
15782       ;;
15783
15784     amigaos*)
15785       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)'
15786       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15787       hardcode_minus_L_GCJ=yes
15788       # see comment about different semantics on the GNU ld section
15789       ld_shlibs_GCJ=no
15790       ;;
15791
15792     bsdi4*)
15793       export_dynamic_flag_spec_GCJ=-rdynamic
15794       ;;
15795
15796     cygwin* | mingw* | pw32*)
15797       # When not using gcc, we currently assume that we are using
15798       # Microsoft Visual C++.
15799       # hardcode_libdir_flag_spec is actually meaningless, as there is
15800       # no search path for DLLs.
15801       hardcode_libdir_flag_spec_GCJ=' '
15802       allow_undefined_flag_GCJ=unsupported
15803       # Tell ltmain to make .lib files, not .a files.
15804       libext=lib
15805       # Tell ltmain to make .dll files, not .so files.
15806       shrext=".dll"
15807       # FIXME: Setting linknames here is a bad hack.
15808       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15809       # The linker will automatically build a .lib file if we build a DLL.
15810       old_archive_From_new_cmds_GCJ='true'
15811       # FIXME: Should let the user specify the lib program.
15812       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15813       fix_srcfile_path='`cygpath -w "$srcfile"`'
15814       enable_shared_with_static_runtimes_GCJ=yes
15815       ;;
15816
15817     darwin* | rhapsody*)
15818     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15819       archive_cmds_need_lc_GCJ=no
15820       case "$host_os" in
15821       rhapsody* | darwin1.[012])
15822         allow_undefined_flag_GCJ='-undefined suppress'
15823         ;;
15824       *) # Darwin 1.3 on
15825         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15826         ;;
15827       esac
15828       # FIXME: Relying on posixy $() will cause problems for
15829       #        cross-compilation, but unfortunately the echo tests do not
15830       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15831       #        `"' quotes if we put them in here... so don't!
15832         lt_int_apple_cc_single_mod=no
15833         output_verbose_link_cmd='echo'
15834         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15835           lt_int_apple_cc_single_mod=yes
15836         fi
15837         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15838           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15839         else
15840         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'
15841       fi
15842       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15843       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15844         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15845           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}'
15846         else
15847           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}'
15848         fi
15849           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}'
15850       hardcode_direct_GCJ=no
15851       hardcode_automatic_GCJ=yes
15852       hardcode_shlibpath_var_GCJ=unsupported
15853       whole_archive_flag_spec_GCJ='-all_load $convenience'
15854       link_all_deplibs_GCJ=yes
15855     fi
15856       ;;
15857
15858     dgux*)
15859       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15860       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15861       hardcode_shlibpath_var_GCJ=no
15862       ;;
15863
15864     freebsd1*)
15865       ld_shlibs_GCJ=no
15866       ;;
15867
15868     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15869     # support.  Future versions do this automatically, but an explicit c++rt0.o
15870     # does not break anything, and helps significantly (at the cost of a little
15871     # extra space).
15872     freebsd2.2*)
15873       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15874       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15875       hardcode_direct_GCJ=yes
15876       hardcode_shlibpath_var_GCJ=no
15877       ;;
15878
15879     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15880     freebsd2*)
15881       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15882       hardcode_direct_GCJ=yes
15883       hardcode_minus_L_GCJ=yes
15884       hardcode_shlibpath_var_GCJ=no
15885       ;;
15886
15887     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15888     freebsd*)
15889       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15890       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15891       hardcode_direct_GCJ=yes
15892       hardcode_shlibpath_var_GCJ=no
15893       ;;
15894
15895     hpux9*)
15896       if test "$GCC" = yes; then
15897         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'
15898       else
15899         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'
15900       fi
15901       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15902       hardcode_libdir_separator_GCJ=:
15903       hardcode_direct_GCJ=yes
15904
15905       # hardcode_minus_L: Not really in the search PATH,
15906       # but as the default location of the library.
15907       hardcode_minus_L_GCJ=yes
15908       export_dynamic_flag_spec_GCJ='${wl}-E'
15909       ;;
15910
15911     hpux10* | hpux11*)
15912       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15913         case "$host_cpu" in
15914         hppa*64*|ia64*)
15915           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15916           ;;
15917         *)
15918           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15919           ;;
15920         esac
15921       else
15922         case "$host_cpu" in
15923         hppa*64*|ia64*)
15924           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15925           ;;
15926         *)
15927           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15928           ;;
15929         esac
15930       fi
15931       if test "$with_gnu_ld" = no; then
15932         case "$host_cpu" in
15933         hppa*64*)
15934           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15935           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15936           hardcode_libdir_separator_GCJ=:
15937           hardcode_direct_GCJ=no
15938           hardcode_shlibpath_var_GCJ=no
15939           ;;
15940         ia64*)
15941           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15942           hardcode_direct_GCJ=no
15943           hardcode_shlibpath_var_GCJ=no
15944
15945           # hardcode_minus_L: Not really in the search PATH,
15946           # but as the default location of the library.
15947           hardcode_minus_L_GCJ=yes
15948           ;;
15949         *)
15950           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15951           hardcode_libdir_separator_GCJ=:
15952           hardcode_direct_GCJ=yes
15953           export_dynamic_flag_spec_GCJ='${wl}-E'
15954
15955           # hardcode_minus_L: Not really in the search PATH,
15956           # but as the default location of the library.
15957           hardcode_minus_L_GCJ=yes
15958           ;;
15959         esac
15960       fi
15961       ;;
15962
15963     irix5* | irix6* | nonstopux*)
15964       if test "$GCC" = yes; then
15965         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'
15966       else
15967         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'
15968         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15969       fi
15970       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15971       hardcode_libdir_separator_GCJ=:
15972       link_all_deplibs_GCJ=yes
15973       ;;
15974
15975     netbsd*)
15976       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15977         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15978       else
15979         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15980       fi
15981       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15982       hardcode_direct_GCJ=yes
15983       hardcode_shlibpath_var_GCJ=no
15984       ;;
15985
15986     newsos6)
15987       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15988       hardcode_direct_GCJ=yes
15989       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15990       hardcode_libdir_separator_GCJ=:
15991       hardcode_shlibpath_var_GCJ=no
15992       ;;
15993
15994     openbsd*)
15995       hardcode_direct_GCJ=yes
15996       hardcode_shlibpath_var_GCJ=no
15997       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15998         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15999         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16000         export_dynamic_flag_spec_GCJ='${wl}-E'
16001       else
16002        case $host_os in
16003          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16004            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16005            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16006            ;;
16007          *)
16008            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16009            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16010            ;;
16011        esac
16012       fi
16013       ;;
16014
16015     os2*)
16016       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16017       hardcode_minus_L_GCJ=yes
16018       allow_undefined_flag_GCJ=unsupported
16019       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'
16020       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16021       ;;
16022
16023     osf3*)
16024       if test "$GCC" = yes; then
16025         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16026         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'
16027       else
16028         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16029         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'
16030       fi
16031       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16032       hardcode_libdir_separator_GCJ=:
16033       ;;
16034
16035     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16036       if test "$GCC" = yes; then
16037         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16038         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'
16039         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16040       else
16041         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16042         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'
16043         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~
16044         $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'
16045
16046         # Both c and cxx compiler support -rpath directly
16047         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16048       fi
16049       hardcode_libdir_separator_GCJ=:
16050       ;;
16051
16052     sco3.2v5*)
16053       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16054       hardcode_shlibpath_var_GCJ=no
16055       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16056       runpath_var=LD_RUN_PATH
16057       hardcode_runpath_var=yes
16058       ;;
16059
16060     solaris*)
16061       no_undefined_flag_GCJ=' -z text'
16062       if test "$GCC" = yes; then
16063         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16064         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16065           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16066       else
16067         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16068         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16069         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16070       fi
16071       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16072       hardcode_shlibpath_var_GCJ=no
16073       case $host_os in
16074       solaris2.[0-5] | solaris2.[0-5].*) ;;
16075       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16076         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16077       esac
16078       link_all_deplibs_GCJ=yes
16079       ;;
16080
16081     sunos4*)
16082       if test "x$host_vendor" = xsequent; then
16083         # Use $CC to link under sequent, because it throws in some extra .o
16084         # files that make .init and .fini sections work.
16085         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16086       else
16087         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16088       fi
16089       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16090       hardcode_direct_GCJ=yes
16091       hardcode_minus_L_GCJ=yes
16092       hardcode_shlibpath_var_GCJ=no
16093       ;;
16094
16095     sysv4)
16096       case $host_vendor in
16097         sni)
16098           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16099           hardcode_direct_GCJ=yes # is this really true???
16100         ;;
16101         siemens)
16102           ## LD is ld it makes a PLAMLIB
16103           ## CC just makes a GrossModule.
16104           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16105           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16106           hardcode_direct_GCJ=no
16107         ;;
16108         motorola)
16109           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16110           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16111         ;;
16112       esac
16113       runpath_var='LD_RUN_PATH'
16114       hardcode_shlibpath_var_GCJ=no
16115       ;;
16116
16117     sysv4.3*)
16118       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119       hardcode_shlibpath_var_GCJ=no
16120       export_dynamic_flag_spec_GCJ='-Bexport'
16121       ;;
16122
16123     sysv4*MP*)
16124       if test -d /usr/nec; then
16125         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16126         hardcode_shlibpath_var_GCJ=no
16127         runpath_var=LD_RUN_PATH
16128         hardcode_runpath_var=yes
16129         ld_shlibs_GCJ=yes
16130       fi
16131       ;;
16132
16133     sysv4.2uw2*)
16134       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16135       hardcode_direct_GCJ=yes
16136       hardcode_minus_L_GCJ=no
16137       hardcode_shlibpath_var_GCJ=no
16138       hardcode_runpath_var=yes
16139       runpath_var=LD_RUN_PATH
16140       ;;
16141
16142    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16143       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16144       if test "$GCC" = yes; then
16145         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16146       else
16147         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16148       fi
16149       runpath_var='LD_RUN_PATH'
16150       hardcode_shlibpath_var_GCJ=no
16151       ;;
16152
16153     sysv5*)
16154       no_undefined_flag_GCJ=' -z text'
16155       # $CC -shared without GNU ld will not create a library from C++
16156       # object files and a static libstdc++, better avoid it by now
16157       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16158       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16159                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16160       hardcode_libdir_flag_spec_GCJ=
16161       hardcode_shlibpath_var_GCJ=no
16162       runpath_var='LD_RUN_PATH'
16163       ;;
16164
16165     uts4*)
16166       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16167       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16168       hardcode_shlibpath_var_GCJ=no
16169       ;;
16170
16171     *)
16172       ld_shlibs_GCJ=no
16173       ;;
16174     esac
16175   fi
16176
16177 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16178 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16179 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16180
16181 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16182 if test "$GCC" = yes; then
16183   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16184 fi
16185
16186 #
16187 # Do we need to explicitly link libc?
16188 #
16189 case "x$archive_cmds_need_lc_GCJ" in
16190 x|xyes)
16191   # Assume -lc should be added
16192   archive_cmds_need_lc_GCJ=yes
16193
16194   if test "$enable_shared" = yes && test "$GCC" = yes; then
16195     case $archive_cmds_GCJ in
16196     *'~'*)
16197       # FIXME: we may have to deal with multi-command sequences.
16198       ;;
16199     '$CC '*)
16200       # Test whether the compiler implicitly links with -lc since on some
16201       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16202       # to ld, don't add -lc before -lgcc.
16203       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16204 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16205       $rm conftest*
16206       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16207
16208       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16209   (eval $ac_compile) 2>&5
16210   ac_status=$?
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); } 2>conftest.err; then
16213         soname=conftest
16214         lib=conftest
16215         libobjs=conftest.$ac_objext
16216         deplibs=
16217         wl=$lt_prog_compiler_wl_GCJ
16218         compiler_flags=-v
16219         linker_flags=-v
16220         verstring=
16221         output_objdir=.
16222         libname=conftest
16223         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16224         allow_undefined_flag_GCJ=
16225         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16226   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16227   ac_status=$?
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); }
16230         then
16231           archive_cmds_need_lc_GCJ=no
16232         else
16233           archive_cmds_need_lc_GCJ=yes
16234         fi
16235         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16236       else
16237         cat conftest.err 1>&5
16238       fi
16239       $rm conftest*
16240       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16241 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16242       ;;
16243     esac
16244   fi
16245   ;;
16246 esac
16247
16248 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16249 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16250 hardcode_action_GCJ=
16251 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16252    test -n "$runpath_var GCJ" || \
16253    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16254
16255   # We can hardcode non-existant directories.
16256   if test "$hardcode_direct_GCJ" != no &&
16257      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16258      # have to relink, otherwise we might link with an installed library
16259      # when we should be linking with a yet-to-be-installed one
16260      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16261      test "$hardcode_minus_L_GCJ" != no; then
16262     # Linking always hardcodes the temporary library directory.
16263     hardcode_action_GCJ=relink
16264   else
16265     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16266     hardcode_action_GCJ=immediate
16267   fi
16268 else
16269   # We cannot hardcode anything, or else we can only hardcode existing
16270   # directories.
16271   hardcode_action_GCJ=unsupported
16272 fi
16273 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16274 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16275
16276 if test "$hardcode_action_GCJ" = relink; then
16277   # Fast installation is not supported
16278   enable_fast_install=no
16279 elif test "$shlibpath_overrides_runpath" = yes ||
16280      test "$enable_shared" = no; then
16281   # Fast installation is not necessary
16282   enable_fast_install=needless
16283 fi
16284
16285 striplib=
16286 old_striplib=
16287 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16288 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16289 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16290   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16291   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16292   echo "$as_me:$LINENO: result: yes" >&5
16293 echo "${ECHO_T}yes" >&6
16294 else
16295 # FIXME - insert some real tests, host_os isn't really good enough
16296   case $host_os in
16297    darwin*)
16298        if test -n "$STRIP" ; then
16299          striplib="$STRIP -x"
16300          echo "$as_me:$LINENO: result: yes" >&5
16301 echo "${ECHO_T}yes" >&6
16302        else
16303   echo "$as_me:$LINENO: result: no" >&5
16304 echo "${ECHO_T}no" >&6
16305 fi
16306        ;;
16307    *)
16308   echo "$as_me:$LINENO: result: no" >&5
16309 echo "${ECHO_T}no" >&6
16310     ;;
16311   esac
16312 fi
16313
16314 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16315 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16316 library_names_spec=
16317 libname_spec='lib$name'
16318 soname_spec=
16319 shrext=".so"
16320 postinstall_cmds=
16321 postuninstall_cmds=
16322 finish_cmds=
16323 finish_eval=
16324 shlibpath_var=
16325 shlibpath_overrides_runpath=unknown
16326 version_type=none
16327 dynamic_linker="$host_os ld.so"
16328 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16329 if test "$GCC" = yes; then
16330   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16331   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16332     # if the path contains ";" then we assume it to be the separator
16333     # otherwise default to the standard path separator (i.e. ":") - it is
16334     # assumed that no part of a normal pathname contains ";" but that should
16335     # okay in the real world where ";" in dirpaths is itself problematic.
16336     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16337   else
16338     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16339   fi
16340 else
16341   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16342 fi
16343 need_lib_prefix=unknown
16344 hardcode_into_libs=no
16345
16346 # when you set need_version to no, make sure it does not cause -set_version
16347 # flags to be left without arguments
16348 need_version=unknown
16349
16350 case $host_os in
16351 aix3*)
16352   version_type=linux
16353   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16354   shlibpath_var=LIBPATH
16355
16356   # AIX 3 has no versioning support, so we append a major version to the name.
16357   soname_spec='${libname}${release}${shared_ext}$major'
16358   ;;
16359
16360 aix4* | aix5*)
16361   version_type=linux
16362   need_lib_prefix=no
16363   need_version=no
16364   hardcode_into_libs=yes
16365   if test "$host_cpu" = ia64; then
16366     # AIX 5 supports IA64
16367     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16368     shlibpath_var=LD_LIBRARY_PATH
16369   else
16370     # With GCC up to 2.95.x, collect2 would create an import file
16371     # for dependence libraries.  The import file would start with
16372     # the line `#! .'.  This would cause the generated library to
16373     # depend on `.', always an invalid library.  This was fixed in
16374     # development snapshots of GCC prior to 3.0.
16375     case $host_os in
16376       aix4 | aix4.[01] | aix4.[01].*)
16377       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16378            echo ' yes '
16379            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16380         :
16381       else
16382         can_build_shared=no
16383       fi
16384       ;;
16385     esac
16386     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16387     # soname into executable. Probably we can add versioning support to
16388     # collect2, so additional links can be useful in future.
16389     if test "$aix_use_runtimelinking" = yes; then
16390       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16391       # instead of lib<name>.a to let people know that these are not
16392       # typical AIX shared libraries.
16393       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16394     else
16395       # We preserve .a as extension for shared libraries through AIX4.2
16396       # and later when we are not doing run time linking.
16397       library_names_spec='${libname}${release}.a $libname.a'
16398       soname_spec='${libname}${release}${shared_ext}$major'
16399     fi
16400     shlibpath_var=LIBPATH
16401   fi
16402   ;;
16403
16404 amigaos*)
16405   library_names_spec='$libname.ixlibrary $libname.a'
16406   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16407   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'
16408   ;;
16409
16410 beos*)
16411   library_names_spec='${libname}${shared_ext}'
16412   dynamic_linker="$host_os ld.so"
16413   shlibpath_var=LIBRARY_PATH
16414   ;;
16415
16416 bsdi4*)
16417   version_type=linux
16418   need_version=no
16419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420   soname_spec='${libname}${release}${shared_ext}$major'
16421   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16422   shlibpath_var=LD_LIBRARY_PATH
16423   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16424   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16425   # the default ld.so.conf also contains /usr/contrib/lib and
16426   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16427   # libtool to hard-code these into programs
16428   ;;
16429
16430 cygwin* | mingw* | pw32*)
16431   version_type=windows
16432   shrext=".dll"
16433   need_version=no
16434   need_lib_prefix=no
16435
16436   case $GCC,$host_os in
16437   yes,cygwin* | yes,mingw* | yes,pw32*)
16438     library_names_spec='$libname.dll.a'
16439     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16440     postinstall_cmds='base_file=`basename \${file}`~
16441       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16442       dldir=$destdir/`dirname \$dlpath`~
16443       test -d \$dldir || mkdir -p \$dldir~
16444       $install_prog $dir/$dlname \$dldir/$dlname'
16445     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16446       dlpath=$dir/\$dldll~
16447        $rm \$dlpath'
16448     shlibpath_overrides_runpath=yes
16449
16450     case $host_os in
16451     cygwin*)
16452       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16453       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16454       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16455       ;;
16456     mingw*)
16457       # MinGW DLLs use traditional 'lib' prefix
16458       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16459       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16460       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16461         # It is most probably a Windows format PATH printed by
16462         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16463         # path with ; separators, and with drive letters. We can handle the
16464         # drive letters (cygwin fileutils understands them), so leave them,
16465         # especially as we might pass files found there to a mingw objdump,
16466         # which wouldn't understand a cygwinified path. Ahh.
16467         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16468       else
16469         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16470       fi
16471       ;;
16472     pw32*)
16473       # pw32 DLLs use 'pw' prefix rather than 'lib'
16474       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16475       ;;
16476     esac
16477     ;;
16478
16479   *)
16480     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16481     ;;
16482   esac
16483   dynamic_linker='Win32 ld.exe'
16484   # FIXME: first we should search . and the directory the executable is in
16485   shlibpath_var=PATH
16486   ;;
16487
16488 darwin* | rhapsody*)
16489   dynamic_linker="$host_os dyld"
16490   version_type=darwin
16491   need_lib_prefix=no
16492   need_version=no
16493   # FIXME: Relying on posixy $() will cause problems for
16494   #        cross-compilation, but unfortunately the echo tests do not
16495   #        yet detect zsh echo's removal of \ escapes.
16496   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16497   soname_spec='${libname}${release}${major}$shared_ext'
16498   shlibpath_overrides_runpath=yes
16499   shlibpath_var=DYLD_LIBRARY_PATH
16500   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16501   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16502   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16503   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"`
16504   fi
16505   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16506   ;;
16507
16508 dgux*)
16509   version_type=linux
16510   need_lib_prefix=no
16511   need_version=no
16512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16513   soname_spec='${libname}${release}${shared_ext}$major'
16514   shlibpath_var=LD_LIBRARY_PATH
16515   ;;
16516
16517 freebsd1*)
16518   dynamic_linker=no
16519   ;;
16520
16521 freebsd*)
16522   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16523   version_type=freebsd-$objformat
16524   case $version_type in
16525     freebsd-elf*)
16526       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16527       need_version=no
16528       need_lib_prefix=no
16529       ;;
16530     freebsd-*)
16531       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16532       need_version=yes
16533       ;;
16534   esac
16535   shlibpath_var=LD_LIBRARY_PATH
16536   case $host_os in
16537   freebsd2*)
16538     shlibpath_overrides_runpath=yes
16539     ;;
16540   freebsd3.01* | freebsdelf3.01*)
16541     shlibpath_overrides_runpath=yes
16542     hardcode_into_libs=yes
16543     ;;
16544   *) # from 3.2 on
16545     shlibpath_overrides_runpath=no
16546     hardcode_into_libs=yes
16547     ;;
16548   esac
16549   ;;
16550
16551 gnu*)
16552   version_type=linux
16553   need_lib_prefix=no
16554   need_version=no
16555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16556   soname_spec='${libname}${release}${shared_ext}$major'
16557   shlibpath_var=LD_LIBRARY_PATH
16558   hardcode_into_libs=yes
16559   ;;
16560
16561 hpux9* | hpux10* | hpux11*)
16562   # Give a soname corresponding to the major version so that dld.sl refuses to
16563   # link against other versions.
16564   version_type=sunos
16565   need_lib_prefix=no
16566   need_version=no
16567   case "$host_cpu" in
16568   ia64*)
16569     shrext='.so'
16570     hardcode_into_libs=yes
16571     dynamic_linker="$host_os dld.so"
16572     shlibpath_var=LD_LIBRARY_PATH
16573     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16575     soname_spec='${libname}${release}${shared_ext}$major'
16576     if test "X$HPUX_IA64_MODE" = X32; then
16577       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16578     else
16579       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16580     fi
16581     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16582     ;;
16583    hppa*64*)
16584      shrext='.sl'
16585      hardcode_into_libs=yes
16586      dynamic_linker="$host_os dld.sl"
16587      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16588      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16589      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16590      soname_spec='${libname}${release}${shared_ext}$major'
16591      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16592      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16593      ;;
16594    *)
16595     shrext='.sl'
16596     dynamic_linker="$host_os dld.sl"
16597     shlibpath_var=SHLIB_PATH
16598     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600     soname_spec='${libname}${release}${shared_ext}$major'
16601     ;;
16602   esac
16603   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16604   postinstall_cmds='chmod 555 $lib'
16605   ;;
16606
16607 irix5* | irix6* | nonstopux*)
16608   case $host_os in
16609     nonstopux*) version_type=nonstopux ;;
16610     *)
16611         if test "$lt_cv_prog_gnu_ld" = yes; then
16612                 version_type=linux
16613         else
16614                 version_type=irix
16615         fi ;;
16616   esac
16617   need_lib_prefix=no
16618   need_version=no
16619   soname_spec='${libname}${release}${shared_ext}$major'
16620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16621   case $host_os in
16622   irix5* | nonstopux*)
16623     libsuff= shlibsuff=
16624     ;;
16625   *)
16626     case $LD in # libtool.m4 will add one of these switches to LD
16627     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16628       libsuff= shlibsuff= libmagic=32-bit;;
16629     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16630       libsuff=32 shlibsuff=N32 libmagic=N32;;
16631     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16632       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16633     *) libsuff= shlibsuff= libmagic=never-match;;
16634     esac
16635     ;;
16636   esac
16637   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16638   shlibpath_overrides_runpath=no
16639   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16640   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16641   hardcode_into_libs=yes
16642   ;;
16643
16644 # No shared lib support for Linux oldld, aout, or coff.
16645 linux*oldld* | linux*aout* | linux*coff*)
16646   dynamic_linker=no
16647   ;;
16648
16649 # This must be Linux ELF.
16650 linux*)
16651   version_type=linux
16652   need_lib_prefix=no
16653   need_version=no
16654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16655   soname_spec='${libname}${release}${shared_ext}$major'
16656   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16657   shlibpath_var=LD_LIBRARY_PATH
16658   shlibpath_overrides_runpath=no
16659   # This implies no fast_install, which is unacceptable.
16660   # Some rework will be needed to allow for fast_install
16661   # before this can be enabled.
16662   hardcode_into_libs=yes
16663
16664   # We used to test for /lib/ld.so.1 and disable shared libraries on
16665   # powerpc, because MkLinux only supported shared libraries with the
16666   # GNU dynamic linker.  Since this was broken with cross compilers,
16667   # most powerpc-linux boxes support dynamic linking these days and
16668   # people can always --disable-shared, the test was removed, and we
16669   # assume the GNU/Linux dynamic linker is in use.
16670   dynamic_linker='GNU/Linux ld.so'
16671   ;;
16672
16673 netbsd*)
16674   version_type=sunos
16675   need_lib_prefix=no
16676   need_version=no
16677   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16678     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16679     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16680     dynamic_linker='NetBSD (a.out) ld.so'
16681   else
16682     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16683     soname_spec='${libname}${release}${shared_ext}$major'
16684     dynamic_linker='NetBSD ld.elf_so'
16685   fi
16686   shlibpath_var=LD_LIBRARY_PATH
16687   shlibpath_overrides_runpath=yes
16688   hardcode_into_libs=yes
16689   ;;
16690
16691 newsos6)
16692   version_type=linux
16693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694   shlibpath_var=LD_LIBRARY_PATH
16695   shlibpath_overrides_runpath=yes
16696   ;;
16697
16698 nto-qnx)
16699   version_type=linux
16700   need_lib_prefix=no
16701   need_version=no
16702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703   soname_spec='${libname}${release}${shared_ext}$major'
16704   shlibpath_var=LD_LIBRARY_PATH
16705   shlibpath_overrides_runpath=yes
16706   ;;
16707
16708 openbsd*)
16709   version_type=sunos
16710   need_lib_prefix=no
16711   need_version=no
16712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16713   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16714   shlibpath_var=LD_LIBRARY_PATH
16715   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16716     case $host_os in
16717       openbsd2.[89] | openbsd2.[89].*)
16718         shlibpath_overrides_runpath=no
16719         ;;
16720       *)
16721         shlibpath_overrides_runpath=yes
16722         ;;
16723       esac
16724   else
16725     shlibpath_overrides_runpath=yes
16726   fi
16727   ;;
16728
16729 os2*)
16730   libname_spec='$name'
16731   shrext=".dll"
16732   need_lib_prefix=no
16733   library_names_spec='$libname${shared_ext} $libname.a'
16734   dynamic_linker='OS/2 ld.exe'
16735   shlibpath_var=LIBPATH
16736   ;;
16737
16738 osf3* | osf4* | osf5*)
16739   version_type=osf
16740   need_lib_prefix=no
16741   need_version=no
16742   soname_spec='${libname}${release}${shared_ext}$major'
16743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16744   shlibpath_var=LD_LIBRARY_PATH
16745   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16746   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16747   ;;
16748
16749 sco3.2v5*)
16750   version_type=osf
16751   soname_spec='${libname}${release}${shared_ext}$major'
16752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753   shlibpath_var=LD_LIBRARY_PATH
16754   ;;
16755
16756 solaris*)
16757   version_type=linux
16758   need_lib_prefix=no
16759   need_version=no
16760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16761   soname_spec='${libname}${release}${shared_ext}$major'
16762   shlibpath_var=LD_LIBRARY_PATH
16763   shlibpath_overrides_runpath=yes
16764   hardcode_into_libs=yes
16765   # ldd complains unless libraries are executable
16766   postinstall_cmds='chmod +x $lib'
16767   ;;
16768
16769 sunos4*)
16770   version_type=sunos
16771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16772   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16773   shlibpath_var=LD_LIBRARY_PATH
16774   shlibpath_overrides_runpath=yes
16775   if test "$with_gnu_ld" = yes; then
16776     need_lib_prefix=no
16777   fi
16778   need_version=yes
16779   ;;
16780
16781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16782   version_type=linux
16783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16784   soname_spec='${libname}${release}${shared_ext}$major'
16785   shlibpath_var=LD_LIBRARY_PATH
16786   case $host_vendor in
16787     sni)
16788       shlibpath_overrides_runpath=no
16789       need_lib_prefix=no
16790       export_dynamic_flag_spec='${wl}-Blargedynsym'
16791       runpath_var=LD_RUN_PATH
16792       ;;
16793     siemens)
16794       need_lib_prefix=no
16795       ;;
16796     motorola)
16797       need_lib_prefix=no
16798       need_version=no
16799       shlibpath_overrides_runpath=no
16800       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16801       ;;
16802   esac
16803   ;;
16804
16805 sysv4*MP*)
16806   if test -d /usr/nec ;then
16807     version_type=linux
16808     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16809     soname_spec='$libname${shared_ext}.$major'
16810     shlibpath_var=LD_LIBRARY_PATH
16811   fi
16812   ;;
16813
16814 uts4*)
16815   version_type=linux
16816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16817   soname_spec='${libname}${release}${shared_ext}$major'
16818   shlibpath_var=LD_LIBRARY_PATH
16819   ;;
16820
16821 *)
16822   dynamic_linker=no
16823   ;;
16824 esac
16825 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16826 echo "${ECHO_T}$dynamic_linker" >&6
16827 test "$dynamic_linker" = no && can_build_shared=no
16828
16829 if test "x$enable_dlopen" != xyes; then
16830   enable_dlopen=unknown
16831   enable_dlopen_self=unknown
16832   enable_dlopen_self_static=unknown
16833 else
16834   lt_cv_dlopen=no
16835   lt_cv_dlopen_libs=
16836
16837   case $host_os in
16838   beos*)
16839     lt_cv_dlopen="load_add_on"
16840     lt_cv_dlopen_libs=
16841     lt_cv_dlopen_self=yes
16842     ;;
16843
16844   mingw* | pw32*)
16845     lt_cv_dlopen="LoadLibrary"
16846     lt_cv_dlopen_libs=
16847    ;;
16848
16849   cygwin*)
16850     lt_cv_dlopen="dlopen"
16851     lt_cv_dlopen_libs=
16852    ;;
16853
16854   darwin*)
16855   # if libdl is installed we need to link against it
16856     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16857 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16858 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16859   echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16861   ac_check_lib_save_LIBS=$LIBS
16862 LIBS="-ldl  $LIBS"
16863 cat >conftest.$ac_ext <<_ACEOF
16864 #line $LINENO "configure"
16865 /* confdefs.h.  */
16866 _ACEOF
16867 cat confdefs.h >>conftest.$ac_ext
16868 cat >>conftest.$ac_ext <<_ACEOF
16869 /* end confdefs.h.  */
16870
16871 /* Override any gcc2 internal prototype to avoid an error.  */
16872 #ifdef __cplusplus
16873 extern "C"
16874 #endif
16875 /* We use char because int might match the return type of a gcc2
16876    builtin and then its argument prototype would still apply.  */
16877 char dlopen ();
16878 int
16879 main ()
16880 {
16881 dlopen ();
16882   ;
16883   return 0;
16884 }
16885 _ACEOF
16886 rm -f conftest.$ac_objext conftest$ac_exeext
16887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16888   (eval $ac_link) 2>&5
16889   ac_status=$?
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); } &&
16892          { ac_try='test -s conftest$ac_exeext'
16893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894   (eval $ac_try) 2>&5
16895   ac_status=$?
16896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897   (exit $ac_status); }; }; then
16898   ac_cv_lib_dl_dlopen=yes
16899 else
16900   echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16902
16903 ac_cv_lib_dl_dlopen=no
16904 fi
16905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16906 LIBS=$ac_check_lib_save_LIBS
16907 fi
16908 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16909 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16910 if test $ac_cv_lib_dl_dlopen = yes; then
16911   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16912 else
16913
16914     lt_cv_dlopen="dyld"
16915     lt_cv_dlopen_libs=
16916     lt_cv_dlopen_self=yes
16917
16918 fi
16919
16920    ;;
16921
16922   *)
16923     echo "$as_me:$LINENO: checking for shl_load" >&5
16924 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16925 if test "${ac_cv_func_shl_load+set}" = set; then
16926   echo $ECHO_N "(cached) $ECHO_C" >&6
16927 else
16928   cat >conftest.$ac_ext <<_ACEOF
16929 #line $LINENO "configure"
16930 /* confdefs.h.  */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h.  */
16935 /* System header to define __stub macros and hopefully few prototypes,
16936     which can conflict with char shl_load (); below.
16937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16938     <limits.h> exists even on freestanding compilers.  */
16939 #ifdef __STDC__
16940 # include <limits.h>
16941 #else
16942 # include <assert.h>
16943 #endif
16944 /* Override any gcc2 internal prototype to avoid an error.  */
16945 #ifdef __cplusplus
16946 extern "C"
16947 {
16948 #endif
16949 /* We use char because int might match the return type of a gcc2
16950    builtin and then its argument prototype would still apply.  */
16951 char shl_load ();
16952 /* The GNU C library defines this for functions which it implements
16953     to always fail with ENOSYS.  Some functions are actually named
16954     something starting with __ and the normal name is an alias.  */
16955 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16956 choke me
16957 #else
16958 char (*f) () = shl_load;
16959 #endif
16960 #ifdef __cplusplus
16961 }
16962 #endif
16963
16964 int
16965 main ()
16966 {
16967 return f != shl_load;
16968   ;
16969   return 0;
16970 }
16971 _ACEOF
16972 rm -f conftest.$ac_objext conftest$ac_exeext
16973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16974   (eval $ac_link) 2>&5
16975   ac_status=$?
16976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977   (exit $ac_status); } &&
16978          { ac_try='test -s conftest$ac_exeext'
16979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980   (eval $ac_try) 2>&5
16981   ac_status=$?
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); }; }; then
16984   ac_cv_func_shl_load=yes
16985 else
16986   echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16988
16989 ac_cv_func_shl_load=no
16990 fi
16991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16992 fi
16993 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16994 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16995 if test $ac_cv_func_shl_load = yes; then
16996   lt_cv_dlopen="shl_load"
16997 else
16998   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16999 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17000 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17001   echo $ECHO_N "(cached) $ECHO_C" >&6
17002 else
17003   ac_check_lib_save_LIBS=$LIBS
17004 LIBS="-ldld  $LIBS"
17005 cat >conftest.$ac_ext <<_ACEOF
17006 #line $LINENO "configure"
17007 /* confdefs.h.  */
17008 _ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h.  */
17012
17013 /* Override any gcc2 internal prototype to avoid an error.  */
17014 #ifdef __cplusplus
17015 extern "C"
17016 #endif
17017 /* We use char because int might match the return type of a gcc2
17018    builtin and then its argument prototype would still apply.  */
17019 char shl_load ();
17020 int
17021 main ()
17022 {
17023 shl_load ();
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17030   (eval $ac_link) 2>&5
17031   ac_status=$?
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); } &&
17034          { ac_try='test -s conftest$ac_exeext'
17035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036   (eval $ac_try) 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); }; }; then
17040   ac_cv_lib_dld_shl_load=yes
17041 else
17042   echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045 ac_cv_lib_dld_shl_load=no
17046 fi
17047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17048 LIBS=$ac_check_lib_save_LIBS
17049 fi
17050 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17051 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17052 if test $ac_cv_lib_dld_shl_load = yes; then
17053   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17054 else
17055   echo "$as_me:$LINENO: checking for dlopen" >&5
17056 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17057 if test "${ac_cv_func_dlopen+set}" = set; then
17058   echo $ECHO_N "(cached) $ECHO_C" >&6
17059 else
17060   cat >conftest.$ac_ext <<_ACEOF
17061 #line $LINENO "configure"
17062 /* confdefs.h.  */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h.  */
17067 /* System header to define __stub macros and hopefully few prototypes,
17068     which can conflict with char dlopen (); below.
17069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17070     <limits.h> exists even on freestanding compilers.  */
17071 #ifdef __STDC__
17072 # include <limits.h>
17073 #else
17074 # include <assert.h>
17075 #endif
17076 /* Override any gcc2 internal prototype to avoid an error.  */
17077 #ifdef __cplusplus
17078 extern "C"
17079 {
17080 #endif
17081 /* We use char because int might match the return type of a gcc2
17082    builtin and then its argument prototype would still apply.  */
17083 char dlopen ();
17084 /* The GNU C library defines this for functions which it implements
17085     to always fail with ENOSYS.  Some functions are actually named
17086     something starting with __ and the normal name is an alias.  */
17087 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17088 choke me
17089 #else
17090 char (*f) () = dlopen;
17091 #endif
17092 #ifdef __cplusplus
17093 }
17094 #endif
17095
17096 int
17097 main ()
17098 {
17099 return f != dlopen;
17100   ;
17101   return 0;
17102 }
17103 _ACEOF
17104 rm -f conftest.$ac_objext conftest$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106   (eval $ac_link) 2>&5
17107   ac_status=$?
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); } &&
17110          { ac_try='test -s conftest$ac_exeext'
17111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112   (eval $ac_try) 2>&5
17113   ac_status=$?
17114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115   (exit $ac_status); }; }; then
17116   ac_cv_func_dlopen=yes
17117 else
17118   echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17120
17121 ac_cv_func_dlopen=no
17122 fi
17123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17124 fi
17125 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17126 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17127 if test $ac_cv_func_dlopen = yes; then
17128   lt_cv_dlopen="dlopen"
17129 else
17130   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17131 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17132 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17133   echo $ECHO_N "(cached) $ECHO_C" >&6
17134 else
17135   ac_check_lib_save_LIBS=$LIBS
17136 LIBS="-ldl  $LIBS"
17137 cat >conftest.$ac_ext <<_ACEOF
17138 #line $LINENO "configure"
17139 /* confdefs.h.  */
17140 _ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h.  */
17144
17145 /* Override any gcc2 internal prototype to avoid an error.  */
17146 #ifdef __cplusplus
17147 extern "C"
17148 #endif
17149 /* We use char because int might match the return type of a gcc2
17150    builtin and then its argument prototype would still apply.  */
17151 char dlopen ();
17152 int
17153 main ()
17154 {
17155 dlopen ();
17156   ;
17157   return 0;
17158 }
17159 _ACEOF
17160 rm -f conftest.$ac_objext conftest$ac_exeext
17161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17162   (eval $ac_link) 2>&5
17163   ac_status=$?
17164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165   (exit $ac_status); } &&
17166          { ac_try='test -s conftest$ac_exeext'
17167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168   (eval $ac_try) 2>&5
17169   ac_status=$?
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); }; }; then
17172   ac_cv_lib_dl_dlopen=yes
17173 else
17174   echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17176
17177 ac_cv_lib_dl_dlopen=no
17178 fi
17179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17180 LIBS=$ac_check_lib_save_LIBS
17181 fi
17182 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17183 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17184 if test $ac_cv_lib_dl_dlopen = yes; then
17185   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17186 else
17187   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17188 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17189 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17190   echo $ECHO_N "(cached) $ECHO_C" >&6
17191 else
17192   ac_check_lib_save_LIBS=$LIBS
17193 LIBS="-lsvld  $LIBS"
17194 cat >conftest.$ac_ext <<_ACEOF
17195 #line $LINENO "configure"
17196 /* confdefs.h.  */
17197 _ACEOF
17198 cat confdefs.h >>conftest.$ac_ext
17199 cat >>conftest.$ac_ext <<_ACEOF
17200 /* end confdefs.h.  */
17201
17202 /* Override any gcc2 internal prototype to avoid an error.  */
17203 #ifdef __cplusplus
17204 extern "C"
17205 #endif
17206 /* We use char because int might match the return type of a gcc2
17207    builtin and then its argument prototype would still apply.  */
17208 char dlopen ();
17209 int
17210 main ()
17211 {
17212 dlopen ();
17213   ;
17214   return 0;
17215 }
17216 _ACEOF
17217 rm -f conftest.$ac_objext conftest$ac_exeext
17218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17219   (eval $ac_link) 2>&5
17220   ac_status=$?
17221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222   (exit $ac_status); } &&
17223          { ac_try='test -s conftest$ac_exeext'
17224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225   (eval $ac_try) 2>&5
17226   ac_status=$?
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); }; }; then
17229   ac_cv_lib_svld_dlopen=yes
17230 else
17231   echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17233
17234 ac_cv_lib_svld_dlopen=no
17235 fi
17236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17237 LIBS=$ac_check_lib_save_LIBS
17238 fi
17239 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17240 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17241 if test $ac_cv_lib_svld_dlopen = yes; then
17242   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17243 else
17244   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17245 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17246 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17247   echo $ECHO_N "(cached) $ECHO_C" >&6
17248 else
17249   ac_check_lib_save_LIBS=$LIBS
17250 LIBS="-ldld  $LIBS"
17251 cat >conftest.$ac_ext <<_ACEOF
17252 #line $LINENO "configure"
17253 /* confdefs.h.  */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h.  */
17258
17259 /* Override any gcc2 internal prototype to avoid an error.  */
17260 #ifdef __cplusplus
17261 extern "C"
17262 #endif
17263 /* We use char because int might match the return type of a gcc2
17264    builtin and then its argument prototype would still apply.  */
17265 char dld_link ();
17266 int
17267 main ()
17268 {
17269 dld_link ();
17270   ;
17271   return 0;
17272 }
17273 _ACEOF
17274 rm -f conftest.$ac_objext conftest$ac_exeext
17275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17276   (eval $ac_link) 2>&5
17277   ac_status=$?
17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279   (exit $ac_status); } &&
17280          { ac_try='test -s conftest$ac_exeext'
17281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282   (eval $ac_try) 2>&5
17283   ac_status=$?
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); }; }; then
17286   ac_cv_lib_dld_dld_link=yes
17287 else
17288   echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17290
17291 ac_cv_lib_dld_dld_link=no
17292 fi
17293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17294 LIBS=$ac_check_lib_save_LIBS
17295 fi
17296 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17297 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17298 if test $ac_cv_lib_dld_dld_link = yes; then
17299   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17300 fi
17301
17302
17303 fi
17304
17305
17306 fi
17307
17308
17309 fi
17310
17311
17312 fi
17313
17314
17315 fi
17316
17317     ;;
17318   esac
17319
17320   if test "x$lt_cv_dlopen" != xno; then
17321     enable_dlopen=yes
17322   else
17323     enable_dlopen=no
17324   fi
17325
17326   case $lt_cv_dlopen in
17327   dlopen)
17328     save_CPPFLAGS="$CPPFLAGS"
17329     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17330
17331     save_LDFLAGS="$LDFLAGS"
17332     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17333
17334     save_LIBS="$LIBS"
17335     LIBS="$lt_cv_dlopen_libs $LIBS"
17336
17337     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17338 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17339 if test "${lt_cv_dlopen_self+set}" = set; then
17340   echo $ECHO_N "(cached) $ECHO_C" >&6
17341 else
17342           if test "$cross_compiling" = yes; then :
17343   lt_cv_dlopen_self=cross
17344 else
17345   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17346   lt_status=$lt_dlunknown
17347   cat > conftest.$ac_ext <<EOF
17348 #line 17348 "configure"
17349 #include "confdefs.h"
17350
17351 #if HAVE_DLFCN_H
17352 #include <dlfcn.h>
17353 #endif
17354
17355 #include <stdio.h>
17356
17357 #ifdef RTLD_GLOBAL
17358 #  define LT_DLGLOBAL           RTLD_GLOBAL
17359 #else
17360 #  ifdef DL_GLOBAL
17361 #    define LT_DLGLOBAL         DL_GLOBAL
17362 #  else
17363 #    define LT_DLGLOBAL         0
17364 #  endif
17365 #endif
17366
17367 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17368    find out it does not work in some platform. */
17369 #ifndef LT_DLLAZY_OR_NOW
17370 #  ifdef RTLD_LAZY
17371 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17372 #  else
17373 #    ifdef DL_LAZY
17374 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17375 #    else
17376 #      ifdef RTLD_NOW
17377 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17378 #      else
17379 #        ifdef DL_NOW
17380 #          define LT_DLLAZY_OR_NOW      DL_NOW
17381 #        else
17382 #          define LT_DLLAZY_OR_NOW      0
17383 #        endif
17384 #      endif
17385 #    endif
17386 #  endif
17387 #endif
17388
17389 #ifdef __cplusplus
17390 extern "C" void exit (int);
17391 #endif
17392
17393 void fnord() { int i=42;}
17394 int main ()
17395 {
17396   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17397   int status = $lt_dlunknown;
17398
17399   if (self)
17400     {
17401       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17402       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17403       /* dlclose (self); */
17404     }
17405
17406     exit (status);
17407 }
17408 EOF
17409   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17410   (eval $ac_link) 2>&5
17411   ac_status=$?
17412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17414     (./conftest; exit; ) 2>/dev/null
17415     lt_status=$?
17416     case x$lt_status in
17417       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17418       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17419       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17420     esac
17421   else :
17422     # compilation failed
17423     lt_cv_dlopen_self=no
17424   fi
17425 fi
17426 rm -fr conftest*
17427
17428
17429 fi
17430 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17431 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17432
17433     if test "x$lt_cv_dlopen_self" = xyes; then
17434       LDFLAGS="$LDFLAGS $link_static_flag"
17435       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17436 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17437 if test "${lt_cv_dlopen_self_static+set}" = set; then
17438   echo $ECHO_N "(cached) $ECHO_C" >&6
17439 else
17440           if test "$cross_compiling" = yes; then :
17441   lt_cv_dlopen_self_static=cross
17442 else
17443   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17444   lt_status=$lt_dlunknown
17445   cat > conftest.$ac_ext <<EOF
17446 #line 17446 "configure"
17447 #include "confdefs.h"
17448
17449 #if HAVE_DLFCN_H
17450 #include <dlfcn.h>
17451 #endif
17452
17453 #include <stdio.h>
17454
17455 #ifdef RTLD_GLOBAL
17456 #  define LT_DLGLOBAL           RTLD_GLOBAL
17457 #else
17458 #  ifdef DL_GLOBAL
17459 #    define LT_DLGLOBAL         DL_GLOBAL
17460 #  else
17461 #    define LT_DLGLOBAL         0
17462 #  endif
17463 #endif
17464
17465 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17466    find out it does not work in some platform. */
17467 #ifndef LT_DLLAZY_OR_NOW
17468 #  ifdef RTLD_LAZY
17469 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17470 #  else
17471 #    ifdef DL_LAZY
17472 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17473 #    else
17474 #      ifdef RTLD_NOW
17475 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17476 #      else
17477 #        ifdef DL_NOW
17478 #          define LT_DLLAZY_OR_NOW      DL_NOW
17479 #        else
17480 #          define LT_DLLAZY_OR_NOW      0
17481 #        endif
17482 #      endif
17483 #    endif
17484 #  endif
17485 #endif
17486
17487 #ifdef __cplusplus
17488 extern "C" void exit (int);
17489 #endif
17490
17491 void fnord() { int i=42;}
17492 int main ()
17493 {
17494   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17495   int status = $lt_dlunknown;
17496
17497   if (self)
17498     {
17499       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17500       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17501       /* dlclose (self); */
17502     }
17503
17504     exit (status);
17505 }
17506 EOF
17507   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17508   (eval $ac_link) 2>&5
17509   ac_status=$?
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17512     (./conftest; exit; ) 2>/dev/null
17513     lt_status=$?
17514     case x$lt_status in
17515       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17516       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17517       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17518     esac
17519   else :
17520     # compilation failed
17521     lt_cv_dlopen_self_static=no
17522   fi
17523 fi
17524 rm -fr conftest*
17525
17526
17527 fi
17528 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17529 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17530     fi
17531
17532     CPPFLAGS="$save_CPPFLAGS"
17533     LDFLAGS="$save_LDFLAGS"
17534     LIBS="$save_LIBS"
17535     ;;
17536   esac
17537
17538   case $lt_cv_dlopen_self in
17539   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17540   *) enable_dlopen_self=unknown ;;
17541   esac
17542
17543   case $lt_cv_dlopen_self_static in
17544   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17545   *) enable_dlopen_self_static=unknown ;;
17546   esac
17547 fi
17548
17549
17550 # The else clause should only fire when bootstrapping the
17551 # libtool distribution, otherwise you forgot to ship ltmain.sh
17552 # with your package, and you will get complaints that there are
17553 # no rules to generate ltmain.sh.
17554 if test -f "$ltmain"; then
17555   # See if we are running on zsh, and set the options which allow our commands through
17556   # without removal of \ escapes.
17557   if test -n "${ZSH_VERSION+set}" ; then
17558     setopt NO_GLOB_SUBST
17559   fi
17560   # Now quote all the things that may contain metacharacters while being
17561   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17562   # variables and quote the copies for generation of the libtool script.
17563   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17564     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17565     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17566     deplibs_check_method reload_flag reload_cmds need_locks \
17567     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17568     lt_cv_sys_global_symbol_to_c_name_address \
17569     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17570     old_postinstall_cmds old_postuninstall_cmds \
17571     compiler_GCJ \
17572     CC_GCJ \
17573     LD_GCJ \
17574     lt_prog_compiler_wl_GCJ \
17575     lt_prog_compiler_pic_GCJ \
17576     lt_prog_compiler_static_GCJ \
17577     lt_prog_compiler_no_builtin_flag_GCJ \
17578     export_dynamic_flag_spec_GCJ \
17579     thread_safe_flag_spec_GCJ \
17580     whole_archive_flag_spec_GCJ \
17581     enable_shared_with_static_runtimes_GCJ \
17582     old_archive_cmds_GCJ \
17583     old_archive_from_new_cmds_GCJ \
17584     predep_objects_GCJ \
17585     postdep_objects_GCJ \
17586     predeps_GCJ \
17587     postdeps_GCJ \
17588     compiler_lib_search_path_GCJ \
17589     archive_cmds_GCJ \
17590     archive_expsym_cmds_GCJ \
17591     postinstall_cmds_GCJ \
17592     postuninstall_cmds_GCJ \
17593     old_archive_from_expsyms_cmds_GCJ \
17594     allow_undefined_flag_GCJ \
17595     no_undefined_flag_GCJ \
17596     export_symbols_cmds_GCJ \
17597     hardcode_libdir_flag_spec_GCJ \
17598     hardcode_libdir_flag_spec_ld_GCJ \
17599     hardcode_libdir_separator_GCJ \
17600     hardcode_automatic_GCJ \
17601     module_cmds_GCJ \
17602     module_expsym_cmds_GCJ \
17603     lt_cv_prog_compiler_c_o_GCJ \
17604     exclude_expsyms_GCJ \
17605     include_expsyms_GCJ; do
17606
17607     case $var in
17608     old_archive_cmds_GCJ | \
17609     old_archive_from_new_cmds_GCJ | \
17610     archive_cmds_GCJ | \
17611     archive_expsym_cmds_GCJ | \
17612     module_cmds_GCJ | \
17613     module_expsym_cmds_GCJ | \
17614     old_archive_from_expsyms_cmds_GCJ | \
17615     export_symbols_cmds_GCJ | \
17616     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17617     postinstall_cmds | postuninstall_cmds | \
17618     old_postinstall_cmds | old_postuninstall_cmds | \
17619     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17620       # Double-quote double-evaled strings.
17621       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17622       ;;
17623     *)
17624       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17625       ;;
17626     esac
17627   done
17628
17629   case $lt_echo in
17630   *'\$0 --fallback-echo"')
17631     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17632     ;;
17633   esac
17634
17635 cfgfile="$ofile"
17636
17637   cat <<__EOF__ >> "$cfgfile"
17638 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17639
17640 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17641
17642 # Shell to use when invoking shell scripts.
17643 SHELL=$lt_SHELL
17644
17645 # Whether or not to build shared libraries.
17646 build_libtool_libs=$enable_shared
17647
17648 # Whether or not to build static libraries.
17649 build_old_libs=$enable_static
17650
17651 # Whether or not to add -lc for building shared libraries.
17652 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17653
17654 # Whether or not to disallow shared libs when runtime libs are static
17655 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17656
17657 # Whether or not to optimize for fast installation.
17658 fast_install=$enable_fast_install
17659
17660 # The host system.
17661 host_alias=$host_alias
17662 host=$host
17663
17664 # An echo program that does not interpret backslashes.
17665 echo=$lt_echo
17666
17667 # The archiver.
17668 AR=$lt_AR
17669 AR_FLAGS=$lt_AR_FLAGS
17670
17671 # A C compiler.
17672 LTCC=$lt_LTCC
17673
17674 # A language-specific compiler.
17675 CC=$lt_compiler_GCJ
17676
17677 # Is the compiler the GNU C compiler?
17678 with_gcc=$GCC_GCJ
17679
17680 # An ERE matcher.
17681 EGREP=$lt_EGREP
17682
17683 # The linker used to build libraries.
17684 LD=$lt_LD_GCJ
17685
17686 # Whether we need hard or soft links.
17687 LN_S=$lt_LN_S
17688
17689 # A BSD-compatible nm program.
17690 NM=$lt_NM
17691
17692 # A symbol stripping program
17693 STRIP=$STRIP
17694
17695 # Used to examine libraries when file_magic_cmd begins "file"
17696 MAGIC_CMD=$MAGIC_CMD
17697
17698 # Used on cygwin: DLL creation program.
17699 DLLTOOL="$DLLTOOL"
17700
17701 # Used on cygwin: object dumper.
17702 OBJDUMP="$OBJDUMP"
17703
17704 # Used on cygwin: assembler.
17705 AS="$AS"
17706
17707 # The name of the directory that contains temporary libtool files.
17708 objdir=$objdir
17709
17710 # How to create reloadable object files.
17711 reload_flag=$lt_reload_flag
17712 reload_cmds=$lt_reload_cmds
17713
17714 # How to pass a linker flag through the compiler.
17715 wl=$lt_lt_prog_compiler_wl_GCJ
17716
17717 # Object file suffix (normally "o").
17718 objext="$ac_objext"
17719
17720 # Old archive suffix (normally "a").
17721 libext="$libext"
17722
17723 # Shared library suffix (normally ".so").
17724 shrext='$shrext'
17725
17726 # Executable file suffix (normally "").
17727 exeext="$exeext"
17728
17729 # Additional compiler flags for building library objects.
17730 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17731 pic_mode=$pic_mode
17732
17733 # What is the maximum length of a command?
17734 max_cmd_len=$lt_cv_sys_max_cmd_len
17735
17736 # Does compiler simultaneously support -c and -o options?
17737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17738
17739 # Must we lock files when doing compilation ?
17740 need_locks=$lt_need_locks
17741
17742 # Do we need the lib prefix for modules?
17743 need_lib_prefix=$need_lib_prefix
17744
17745 # Do we need a version for libraries?
17746 need_version=$need_version
17747
17748 # Whether dlopen is supported.
17749 dlopen_support=$enable_dlopen
17750
17751 # Whether dlopen of programs is supported.
17752 dlopen_self=$enable_dlopen_self
17753
17754 # Whether dlopen of statically linked programs is supported.
17755 dlopen_self_static=$enable_dlopen_self_static
17756
17757 # Compiler flag to prevent dynamic linking.
17758 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17759
17760 # Compiler flag to turn off builtin functions.
17761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17762
17763 # Compiler flag to allow reflexive dlopens.
17764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17765
17766 # Compiler flag to generate shared objects directly from archives.
17767 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17768
17769 # Compiler flag to generate thread-safe objects.
17770 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17771
17772 # Library versioning type.
17773 version_type=$version_type
17774
17775 # Format of library name prefix.
17776 libname_spec=$lt_libname_spec
17777
17778 # List of archive names.  First name is the real one, the rest are links.
17779 # The last name is the one that the linker finds with -lNAME.
17780 library_names_spec=$lt_library_names_spec
17781
17782 # The coded name of the library, if different from the real name.
17783 soname_spec=$lt_soname_spec
17784
17785 # Commands used to build and install an old-style archive.
17786 RANLIB=$lt_RANLIB
17787 old_archive_cmds=$lt_old_archive_cmds_GCJ
17788 old_postinstall_cmds=$lt_old_postinstall_cmds
17789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17790
17791 # Create an old-style archive from a shared archive.
17792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17793
17794 # Create a temporary old-style archive to link instead of a shared archive.
17795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17796
17797 # Commands used to build and install a shared archive.
17798 archive_cmds=$lt_archive_cmds_GCJ
17799 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17800 postinstall_cmds=$lt_postinstall_cmds
17801 postuninstall_cmds=$lt_postuninstall_cmds
17802
17803 # Commands used to build a loadable module (assumed same as above if empty)
17804 module_cmds=$lt_module_cmds_GCJ
17805 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17806
17807 # Commands to strip libraries.
17808 old_striplib=$lt_old_striplib
17809 striplib=$lt_striplib
17810
17811 # Dependencies to place before the objects being linked to create a
17812 # shared library.
17813 predep_objects=$lt_predep_objects_GCJ
17814
17815 # Dependencies to place after the objects being linked to create a
17816 # shared library.
17817 postdep_objects=$lt_postdep_objects_GCJ
17818
17819 # Dependencies to place before the objects being linked to create a
17820 # shared library.
17821 predeps=$lt_predeps_GCJ
17822
17823 # Dependencies to place after the objects being linked to create a
17824 # shared library.
17825 postdeps=$lt_postdeps_GCJ
17826
17827 # The library search path used internally by the compiler when linking
17828 # a shared library.
17829 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17830
17831 # Method to check whether dependent libraries are shared objects.
17832 deplibs_check_method=$lt_deplibs_check_method
17833
17834 # Command to use when deplibs_check_method == file_magic.
17835 file_magic_cmd=$lt_file_magic_cmd
17836
17837 # Flag that allows shared libraries with undefined symbols to be built.
17838 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17839
17840 # Flag that forces no undefined symbols.
17841 no_undefined_flag=$lt_no_undefined_flag_GCJ
17842
17843 # Commands used to finish a libtool library installation in a directory.
17844 finish_cmds=$lt_finish_cmds
17845
17846 # Same as above, but a single script fragment to be evaled but not shown.
17847 finish_eval=$lt_finish_eval
17848
17849 # Take the output of nm and produce a listing of raw symbols and C names.
17850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17851
17852 # Transform the output of nm in a proper C declaration
17853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17854
17855 # Transform the output of nm in a C name address pair
17856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17857
17858 # This is the shared library runtime path variable.
17859 runpath_var=$runpath_var
17860
17861 # This is the shared library path variable.
17862 shlibpath_var=$shlibpath_var
17863
17864 # Is shlibpath searched before the hard-coded library search path?
17865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17866
17867 # How to hardcode a shared library path into an executable.
17868 hardcode_action=$hardcode_action_GCJ
17869
17870 # Whether we should hardcode library paths into libraries.
17871 hardcode_into_libs=$hardcode_into_libs
17872
17873 # Flag to hardcode \$libdir into a binary during linking.
17874 # This must work even if \$libdir does not exist.
17875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17876
17877 # If ld is used when linking, flag to hardcode \$libdir into
17878 # a binary during linking. This must work even if \$libdir does
17879 # not exist.
17880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17881
17882 # Whether we need a single -rpath flag with a separated argument.
17883 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17884
17885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17886 # resulting binary.
17887 hardcode_direct=$hardcode_direct_GCJ
17888
17889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17890 # resulting binary.
17891 hardcode_minus_L=$hardcode_minus_L_GCJ
17892
17893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17894 # the resulting binary.
17895 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17896
17897 # Set to yes if building a shared library automatically hardcodes DIR into the library
17898 # and all subsequent libraries and executables linked against it.
17899 hardcode_automatic=$hardcode_automatic_GCJ
17900
17901 # Variables whose values should be saved in libtool wrapper scripts and
17902 # restored at relink time.
17903 variables_saved_for_relink="$variables_saved_for_relink"
17904
17905 # Whether libtool must link a program against all its dependency libraries.
17906 link_all_deplibs=$link_all_deplibs_GCJ
17907
17908 # Compile-time system search path for libraries
17909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17910
17911 # Run-time system search path for libraries
17912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17913
17914 # Fix the shell variable \$srcfile for the compiler.
17915 fix_srcfile_path="$fix_srcfile_path_GCJ"
17916
17917 # Set to yes if exported symbols are required.
17918 always_export_symbols=$always_export_symbols_GCJ
17919
17920 # The commands to list exported symbols.
17921 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17922
17923 # The commands to extract the exported symbol list from a shared archive.
17924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17925
17926 # Symbols that should not be listed in the preloaded symbols.
17927 exclude_expsyms=$lt_exclude_expsyms_GCJ
17928
17929 # Symbols that must always be exported.
17930 include_expsyms=$lt_include_expsyms_GCJ
17931
17932 # ### END LIBTOOL TAG CONFIG: $tagname
17933
17934 __EOF__
17935
17936
17937 else
17938   # If there is no Makefile yet, we rely on a make rule to execute
17939   # `config.status --recheck' to rerun these tests and create the
17940   # libtool script then.
17941   test -f Makefile && make "$ltmain"
17942 fi
17943
17944
17945 ac_ext=c
17946 ac_cpp='$CPP $CPPFLAGS'
17947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17950
17951 CC="$lt_save_CC"
17952
17953         else
17954           tagname=""
17955         fi
17956         ;;
17957
17958       RC)
17959
17960
17961
17962 # Source file extension for RC test sources.
17963 ac_ext=rc
17964
17965 # Object file extension for compiled RC test sources.
17966 objext=o
17967 objext_RC=$objext
17968
17969 # Code to be used in simple compile tests
17970 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17971
17972 # Code to be used in simple link tests
17973 lt_simple_link_test_code="$lt_simple_compile_test_code"
17974
17975 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17976
17977 # If no C compiler was specified, use CC.
17978 LTCC=${LTCC-"$CC"}
17979
17980 # Allow CC to be a program name with arguments.
17981 compiler=$CC
17982
17983
17984 # Allow CC to be a program name with arguments.
17985 lt_save_CC="$CC"
17986 CC=${RC-"windres"}
17987 compiler=$CC
17988 compiler_RC=$CC
17989 lt_cv_prog_compiler_c_o_RC=yes
17990
17991 # The else clause should only fire when bootstrapping the
17992 # libtool distribution, otherwise you forgot to ship ltmain.sh
17993 # with your package, and you will get complaints that there are
17994 # no rules to generate ltmain.sh.
17995 if test -f "$ltmain"; then
17996   # See if we are running on zsh, and set the options which allow our commands through
17997   # without removal of \ escapes.
17998   if test -n "${ZSH_VERSION+set}" ; then
17999     setopt NO_GLOB_SUBST
18000   fi
18001   # Now quote all the things that may contain metacharacters while being
18002   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18003   # variables and quote the copies for generation of the libtool script.
18004   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18005     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18006     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18007     deplibs_check_method reload_flag reload_cmds need_locks \
18008     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18009     lt_cv_sys_global_symbol_to_c_name_address \
18010     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18011     old_postinstall_cmds old_postuninstall_cmds \
18012     compiler_RC \
18013     CC_RC \
18014     LD_RC \
18015     lt_prog_compiler_wl_RC \
18016     lt_prog_compiler_pic_RC \
18017     lt_prog_compiler_static_RC \
18018     lt_prog_compiler_no_builtin_flag_RC \
18019     export_dynamic_flag_spec_RC \
18020     thread_safe_flag_spec_RC \
18021     whole_archive_flag_spec_RC \
18022     enable_shared_with_static_runtimes_RC \
18023     old_archive_cmds_RC \
18024     old_archive_from_new_cmds_RC \
18025     predep_objects_RC \
18026     postdep_objects_RC \
18027     predeps_RC \
18028     postdeps_RC \
18029     compiler_lib_search_path_RC \
18030     archive_cmds_RC \
18031     archive_expsym_cmds_RC \
18032     postinstall_cmds_RC \
18033     postuninstall_cmds_RC \
18034     old_archive_from_expsyms_cmds_RC \
18035     allow_undefined_flag_RC \
18036     no_undefined_flag_RC \
18037     export_symbols_cmds_RC \
18038     hardcode_libdir_flag_spec_RC \
18039     hardcode_libdir_flag_spec_ld_RC \
18040     hardcode_libdir_separator_RC \
18041     hardcode_automatic_RC \
18042     module_cmds_RC \
18043     module_expsym_cmds_RC \
18044     lt_cv_prog_compiler_c_o_RC \
18045     exclude_expsyms_RC \
18046     include_expsyms_RC; do
18047
18048     case $var in
18049     old_archive_cmds_RC | \
18050     old_archive_from_new_cmds_RC | \
18051     archive_cmds_RC | \
18052     archive_expsym_cmds_RC | \
18053     module_cmds_RC | \
18054     module_expsym_cmds_RC | \
18055     old_archive_from_expsyms_cmds_RC | \
18056     export_symbols_cmds_RC | \
18057     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18058     postinstall_cmds | postuninstall_cmds | \
18059     old_postinstall_cmds | old_postuninstall_cmds | \
18060     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18061       # Double-quote double-evaled strings.
18062       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18063       ;;
18064     *)
18065       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18066       ;;
18067     esac
18068   done
18069
18070   case $lt_echo in
18071   *'\$0 --fallback-echo"')
18072     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18073     ;;
18074   esac
18075
18076 cfgfile="$ofile"
18077
18078   cat <<__EOF__ >> "$cfgfile"
18079 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18080
18081 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18082
18083 # Shell to use when invoking shell scripts.
18084 SHELL=$lt_SHELL
18085
18086 # Whether or not to build shared libraries.
18087 build_libtool_libs=$enable_shared
18088
18089 # Whether or not to build static libraries.
18090 build_old_libs=$enable_static
18091
18092 # Whether or not to add -lc for building shared libraries.
18093 build_libtool_need_lc=$archive_cmds_need_lc_RC
18094
18095 # Whether or not to disallow shared libs when runtime libs are static
18096 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18097
18098 # Whether or not to optimize for fast installation.
18099 fast_install=$enable_fast_install
18100
18101 # The host system.
18102 host_alias=$host_alias
18103 host=$host
18104
18105 # An echo program that does not interpret backslashes.
18106 echo=$lt_echo
18107
18108 # The archiver.
18109 AR=$lt_AR
18110 AR_FLAGS=$lt_AR_FLAGS
18111
18112 # A C compiler.
18113 LTCC=$lt_LTCC
18114
18115 # A language-specific compiler.
18116 CC=$lt_compiler_RC
18117
18118 # Is the compiler the GNU C compiler?
18119 with_gcc=$GCC_RC
18120
18121 # An ERE matcher.
18122 EGREP=$lt_EGREP
18123
18124 # The linker used to build libraries.
18125 LD=$lt_LD_RC
18126
18127 # Whether we need hard or soft links.
18128 LN_S=$lt_LN_S
18129
18130 # A BSD-compatible nm program.
18131 NM=$lt_NM
18132
18133 # A symbol stripping program
18134 STRIP=$STRIP
18135
18136 # Used to examine libraries when file_magic_cmd begins "file"
18137 MAGIC_CMD=$MAGIC_CMD
18138
18139 # Used on cygwin: DLL creation program.
18140 DLLTOOL="$DLLTOOL"
18141
18142 # Used on cygwin: object dumper.
18143 OBJDUMP="$OBJDUMP"
18144
18145 # Used on cygwin: assembler.
18146 AS="$AS"
18147
18148 # The name of the directory that contains temporary libtool files.
18149 objdir=$objdir
18150
18151 # How to create reloadable object files.
18152 reload_flag=$lt_reload_flag
18153 reload_cmds=$lt_reload_cmds
18154
18155 # How to pass a linker flag through the compiler.
18156 wl=$lt_lt_prog_compiler_wl_RC
18157
18158 # Object file suffix (normally "o").
18159 objext="$ac_objext"
18160
18161 # Old archive suffix (normally "a").
18162 libext="$libext"
18163
18164 # Shared library suffix (normally ".so").
18165 shrext='$shrext'
18166
18167 # Executable file suffix (normally "").
18168 exeext="$exeext"
18169
18170 # Additional compiler flags for building library objects.
18171 pic_flag=$lt_lt_prog_compiler_pic_RC
18172 pic_mode=$pic_mode
18173
18174 # What is the maximum length of a command?
18175 max_cmd_len=$lt_cv_sys_max_cmd_len
18176
18177 # Does compiler simultaneously support -c and -o options?
18178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18179
18180 # Must we lock files when doing compilation ?
18181 need_locks=$lt_need_locks
18182
18183 # Do we need the lib prefix for modules?
18184 need_lib_prefix=$need_lib_prefix
18185
18186 # Do we need a version for libraries?
18187 need_version=$need_version
18188
18189 # Whether dlopen is supported.
18190 dlopen_support=$enable_dlopen
18191
18192 # Whether dlopen of programs is supported.
18193 dlopen_self=$enable_dlopen_self
18194
18195 # Whether dlopen of statically linked programs is supported.
18196 dlopen_self_static=$enable_dlopen_self_static
18197
18198 # Compiler flag to prevent dynamic linking.
18199 link_static_flag=$lt_lt_prog_compiler_static_RC
18200
18201 # Compiler flag to turn off builtin functions.
18202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18203
18204 # Compiler flag to allow reflexive dlopens.
18205 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18206
18207 # Compiler flag to generate shared objects directly from archives.
18208 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18209
18210 # Compiler flag to generate thread-safe objects.
18211 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18212
18213 # Library versioning type.
18214 version_type=$version_type
18215
18216 # Format of library name prefix.
18217 libname_spec=$lt_libname_spec
18218
18219 # List of archive names.  First name is the real one, the rest are links.
18220 # The last name is the one that the linker finds with -lNAME.
18221 library_names_spec=$lt_library_names_spec
18222
18223 # The coded name of the library, if different from the real name.
18224 soname_spec=$lt_soname_spec
18225
18226 # Commands used to build and install an old-style archive.
18227 RANLIB=$lt_RANLIB
18228 old_archive_cmds=$lt_old_archive_cmds_RC
18229 old_postinstall_cmds=$lt_old_postinstall_cmds
18230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18231
18232 # Create an old-style archive from a shared archive.
18233 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18234
18235 # Create a temporary old-style archive to link instead of a shared archive.
18236 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18237
18238 # Commands used to build and install a shared archive.
18239 archive_cmds=$lt_archive_cmds_RC
18240 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18241 postinstall_cmds=$lt_postinstall_cmds
18242 postuninstall_cmds=$lt_postuninstall_cmds
18243
18244 # Commands used to build a loadable module (assumed same as above if empty)
18245 module_cmds=$lt_module_cmds_RC
18246 module_expsym_cmds=$lt_module_expsym_cmds_RC
18247
18248 # Commands to strip libraries.
18249 old_striplib=$lt_old_striplib
18250 striplib=$lt_striplib
18251
18252 # Dependencies to place before the objects being linked to create a
18253 # shared library.
18254 predep_objects=$lt_predep_objects_RC
18255
18256 # Dependencies to place after the objects being linked to create a
18257 # shared library.
18258 postdep_objects=$lt_postdep_objects_RC
18259
18260 # Dependencies to place before the objects being linked to create a
18261 # shared library.
18262 predeps=$lt_predeps_RC
18263
18264 # Dependencies to place after the objects being linked to create a
18265 # shared library.
18266 postdeps=$lt_postdeps_RC
18267
18268 # The library search path used internally by the compiler when linking
18269 # a shared library.
18270 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18271
18272 # Method to check whether dependent libraries are shared objects.
18273 deplibs_check_method=$lt_deplibs_check_method
18274
18275 # Command to use when deplibs_check_method == file_magic.
18276 file_magic_cmd=$lt_file_magic_cmd
18277
18278 # Flag that allows shared libraries with undefined symbols to be built.
18279 allow_undefined_flag=$lt_allow_undefined_flag_RC
18280
18281 # Flag that forces no undefined symbols.
18282 no_undefined_flag=$lt_no_undefined_flag_RC
18283
18284 # Commands used to finish a libtool library installation in a directory.
18285 finish_cmds=$lt_finish_cmds
18286
18287 # Same as above, but a single script fragment to be evaled but not shown.
18288 finish_eval=$lt_finish_eval
18289
18290 # Take the output of nm and produce a listing of raw symbols and C names.
18291 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18292
18293 # Transform the output of nm in a proper C declaration
18294 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18295
18296 # Transform the output of nm in a C name address pair
18297 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18298
18299 # This is the shared library runtime path variable.
18300 runpath_var=$runpath_var
18301
18302 # This is the shared library path variable.
18303 shlibpath_var=$shlibpath_var
18304
18305 # Is shlibpath searched before the hard-coded library search path?
18306 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18307
18308 # How to hardcode a shared library path into an executable.
18309 hardcode_action=$hardcode_action_RC
18310
18311 # Whether we should hardcode library paths into libraries.
18312 hardcode_into_libs=$hardcode_into_libs
18313
18314 # Flag to hardcode \$libdir into a binary during linking.
18315 # This must work even if \$libdir does not exist.
18316 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18317
18318 # If ld is used when linking, flag to hardcode \$libdir into
18319 # a binary during linking. This must work even if \$libdir does
18320 # not exist.
18321 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18322
18323 # Whether we need a single -rpath flag with a separated argument.
18324 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18325
18326 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18327 # resulting binary.
18328 hardcode_direct=$hardcode_direct_RC
18329
18330 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18331 # resulting binary.
18332 hardcode_minus_L=$hardcode_minus_L_RC
18333
18334 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18335 # the resulting binary.
18336 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18337
18338 # Set to yes if building a shared library automatically hardcodes DIR into the library
18339 # and all subsequent libraries and executables linked against it.
18340 hardcode_automatic=$hardcode_automatic_RC
18341
18342 # Variables whose values should be saved in libtool wrapper scripts and
18343 # restored at relink time.
18344 variables_saved_for_relink="$variables_saved_for_relink"
18345
18346 # Whether libtool must link a program against all its dependency libraries.
18347 link_all_deplibs=$link_all_deplibs_RC
18348
18349 # Compile-time system search path for libraries
18350 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18351
18352 # Run-time system search path for libraries
18353 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18354
18355 # Fix the shell variable \$srcfile for the compiler.
18356 fix_srcfile_path="$fix_srcfile_path_RC"
18357
18358 # Set to yes if exported symbols are required.
18359 always_export_symbols=$always_export_symbols_RC
18360
18361 # The commands to list exported symbols.
18362 export_symbols_cmds=$lt_export_symbols_cmds_RC
18363
18364 # The commands to extract the exported symbol list from a shared archive.
18365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18366
18367 # Symbols that should not be listed in the preloaded symbols.
18368 exclude_expsyms=$lt_exclude_expsyms_RC
18369
18370 # Symbols that must always be exported.
18371 include_expsyms=$lt_include_expsyms_RC
18372
18373 # ### END LIBTOOL TAG CONFIG: $tagname
18374
18375 __EOF__
18376
18377
18378 else
18379   # If there is no Makefile yet, we rely on a make rule to execute
18380   # `config.status --recheck' to rerun these tests and create the
18381   # libtool script then.
18382   test -f Makefile && make "$ltmain"
18383 fi
18384
18385
18386 ac_ext=c
18387 ac_cpp='$CPP $CPPFLAGS'
18388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18391
18392 CC="$lt_save_CC"
18393
18394         ;;
18395
18396       *)
18397         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18398 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18399    { (exit 1); exit 1; }; }
18400         ;;
18401       esac
18402
18403       # Append the new tag name to the list of available tags.
18404       if test -n "$tagname" ; then
18405       available_tags="$available_tags $tagname"
18406     fi
18407     fi
18408   done
18409   IFS="$lt_save_ifs"
18410
18411   # Now substitute the updated list of available tags.
18412   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18413     mv "${ofile}T" "$ofile"
18414     chmod +x "$ofile"
18415   else
18416     rm -f "${ofile}T"
18417     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18418 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18419    { (exit 1); exit 1; }; }
18420   fi
18421 fi
18422
18423
18424
18425 # This can be used to rebuild libtool when needed
18426 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18427
18428 # Always use our own libtool.
18429 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18430
18431 # Prevent multiple expansion
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453 # Extract the first word of "pwd", so it can be a program name with args.
18454 set dummy pwd; ac_word=$2
18455 echo "$as_me:$LINENO: checking for $ac_word" >&5
18456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18457 if test "${ac_cv_path_RPWD+set}" = set; then
18458   echo $ECHO_N "(cached) $ECHO_C" >&6
18459 else
18460   case $RPWD in
18461   [\\/]* | ?:[\\/]*)
18462   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18463   ;;
18464   *)
18465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18466 for as_dir in $PATH
18467 do
18468   IFS=$as_save_IFS
18469   test -z "$as_dir" && as_dir=.
18470   for ac_exec_ext in '' $ac_executable_extensions; do
18471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18472     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18474     break 2
18475   fi
18476 done
18477 done
18478
18479   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18480   ;;
18481 esac
18482 fi
18483 RPWD=$ac_cv_path_RPWD
18484
18485 if test -n "$RPWD"; then
18486   echo "$as_me:$LINENO: result: $RPWD" >&5
18487 echo "${ECHO_T}$RPWD" >&6
18488 else
18489   echo "$as_me:$LINENO: result: no" >&5
18490 echo "${ECHO_T}no" >&6
18491 fi
18492
18493 if test ${RPWD} = "false"
18494 then
18495         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18496 echo "$as_me: error: pwd required but not found" >&2;}
18497    { (exit 1); exit 1; }; }
18498 fi
18499
18500 # Extract the first word of "ar", so it can be a program name with args.
18501 set dummy ar; ac_word=$2
18502 echo "$as_me:$LINENO: checking for $ac_word" >&5
18503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18504 if test "${ac_cv_path_AR+set}" = set; then
18505   echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507   case $AR in
18508   [\\/]* | ?:[\\/]*)
18509   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18510   ;;
18511   *)
18512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18513 for as_dir in $PATH
18514 do
18515   IFS=$as_save_IFS
18516   test -z "$as_dir" && as_dir=.
18517   for ac_exec_ext in '' $ac_executable_extensions; do
18518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18519     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18521     break 2
18522   fi
18523 done
18524 done
18525
18526   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18527   ;;
18528 esac
18529 fi
18530 AR=$ac_cv_path_AR
18531
18532 if test -n "$AR"; then
18533   echo "$as_me:$LINENO: result: $AR" >&5
18534 echo "${ECHO_T}$AR" >&6
18535 else
18536   echo "$as_me:$LINENO: result: no" >&5
18537 echo "${ECHO_T}no" >&6
18538 fi
18539
18540 if test ${AR} = "false"
18541 then
18542         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18543 echo "$as_me: error: ar required but not found" >&2;}
18544    { (exit 1); exit 1; }; }
18545 fi
18546
18547 # Extract the first word of "sed", so it can be a program name with args.
18548 set dummy sed; ac_word=$2
18549 echo "$as_me:$LINENO: checking for $ac_word" >&5
18550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18551 if test "${ac_cv_path_SED+set}" = set; then
18552   echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554   case $SED in
18555   [\\/]* | ?:[\\/]*)
18556   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18557   ;;
18558   *)
18559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18560 for as_dir in $PATH
18561 do
18562   IFS=$as_save_IFS
18563   test -z "$as_dir" && as_dir=.
18564   for ac_exec_ext in '' $ac_executable_extensions; do
18565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18566     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18568     break 2
18569   fi
18570 done
18571 done
18572
18573   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18574   ;;
18575 esac
18576 fi
18577 SED=$ac_cv_path_SED
18578
18579 if test -n "$SED"; then
18580   echo "$as_me:$LINENO: result: $SED" >&5
18581 echo "${ECHO_T}$SED" >&6
18582 else
18583   echo "$as_me:$LINENO: result: no" >&5
18584 echo "${ECHO_T}no" >&6
18585 fi
18586
18587 if test ${SED} = "false"
18588 then
18589         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18590 echo "$as_me: error: sed required but not found" >&2;}
18591    { (exit 1); exit 1; }; }
18592 fi
18593
18594 # Extract the first word of "rm", so it can be a program name with args.
18595 set dummy rm; ac_word=$2
18596 echo "$as_me:$LINENO: checking for $ac_word" >&5
18597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18598 if test "${ac_cv_path_RM+set}" = set; then
18599   echo $ECHO_N "(cached) $ECHO_C" >&6
18600 else
18601   case $RM in
18602   [\\/]* | ?:[\\/]*)
18603   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18604   ;;
18605   *)
18606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18607 for as_dir in $PATH
18608 do
18609   IFS=$as_save_IFS
18610   test -z "$as_dir" && as_dir=.
18611   for ac_exec_ext in '' $ac_executable_extensions; do
18612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18613     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18615     break 2
18616   fi
18617 done
18618 done
18619
18620   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18621   ;;
18622 esac
18623 fi
18624 RM=$ac_cv_path_RM
18625
18626 if test -n "$RM"; then
18627   echo "$as_me:$LINENO: result: $RM" >&5
18628 echo "${ECHO_T}$RM" >&6
18629 else
18630   echo "$as_me:$LINENO: result: no" >&5
18631 echo "${ECHO_T}no" >&6
18632 fi
18633
18634 if test ${RM} = "false"
18635 then
18636         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18637 echo "$as_me: error: rm required but not found" >&2;}
18638    { (exit 1); exit 1; }; }
18639 fi
18640
18641 # Extract the first word of "echo", so it can be a program name with args.
18642 set dummy echo; ac_word=$2
18643 echo "$as_me:$LINENO: checking for $ac_word" >&5
18644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18645 if test "${ac_cv_path_ECHO+set}" = set; then
18646   echo $ECHO_N "(cached) $ECHO_C" >&6
18647 else
18648   case $ECHO in
18649   [\\/]* | ?:[\\/]*)
18650   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18651   ;;
18652   *)
18653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18654 for as_dir in $PATH
18655 do
18656   IFS=$as_save_IFS
18657   test -z "$as_dir" && as_dir=.
18658   for ac_exec_ext in '' $ac_executable_extensions; do
18659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18660     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18662     break 2
18663   fi
18664 done
18665 done
18666
18667   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18668   ;;
18669 esac
18670 fi
18671 ECHO=$ac_cv_path_ECHO
18672
18673 if test -n "$ECHO"; then
18674   echo "$as_me:$LINENO: result: $ECHO" >&5
18675 echo "${ECHO_T}$ECHO" >&6
18676 else
18677   echo "$as_me:$LINENO: result: no" >&5
18678 echo "${ECHO_T}no" >&6
18679 fi
18680
18681 if test ${ECHO} = "false"
18682 then
18683         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18684 echo "$as_me: error: echo required but not found" >&2;}
18685    { (exit 1); exit 1; }; }
18686 fi
18687
18688 # Extract the first word of "mkdir", so it can be a program name with args.
18689 set dummy mkdir; ac_word=$2
18690 echo "$as_me:$LINENO: checking for $ac_word" >&5
18691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18692 if test "${ac_cv_path_MKDIR+set}" = set; then
18693   echo $ECHO_N "(cached) $ECHO_C" >&6
18694 else
18695   case $MKDIR in
18696   [\\/]* | ?:[\\/]*)
18697   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18698   ;;
18699   *)
18700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18701 for as_dir in $PATH
18702 do
18703   IFS=$as_save_IFS
18704   test -z "$as_dir" && as_dir=.
18705   for ac_exec_ext in '' $ac_executable_extensions; do
18706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18707     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18709     break 2
18710   fi
18711 done
18712 done
18713
18714   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18715   ;;
18716 esac
18717 fi
18718 MKDIR=$ac_cv_path_MKDIR
18719
18720 if test -n "$MKDIR"; then
18721   echo "$as_me:$LINENO: result: $MKDIR" >&5
18722 echo "${ECHO_T}$MKDIR" >&6
18723 else
18724   echo "$as_me:$LINENO: result: no" >&5
18725 echo "${ECHO_T}no" >&6
18726 fi
18727
18728 if test ${MKDIR} = "false"
18729 then
18730         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18731 echo "$as_me: error: mkdir required but not found" >&2;}
18732    { (exit 1); exit 1; }; }
18733 fi
18734
18735 # Extract the first word of "date", so it can be a program name with args.
18736 set dummy date; ac_word=$2
18737 echo "$as_me:$LINENO: checking for $ac_word" >&5
18738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18739 if test "${ac_cv_path_DATE+set}" = set; then
18740   echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18742   case $DATE in
18743   [\\/]* | ?:[\\/]*)
18744   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18745   ;;
18746   *)
18747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18748 for as_dir in $PATH
18749 do
18750   IFS=$as_save_IFS
18751   test -z "$as_dir" && as_dir=.
18752   for ac_exec_ext in '' $ac_executable_extensions; do
18753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18754     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18756     break 2
18757   fi
18758 done
18759 done
18760
18761   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18762   ;;
18763 esac
18764 fi
18765 DATE=$ac_cv_path_DATE
18766
18767 if test -n "$DATE"; then
18768   echo "$as_me:$LINENO: result: $DATE" >&5
18769 echo "${ECHO_T}$DATE" >&6
18770 else
18771   echo "$as_me:$LINENO: result: no" >&5
18772 echo "${ECHO_T}no" >&6
18773 fi
18774
18775 if test ${DATE} = "false"
18776 then
18777         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18778 echo "$as_me: error: date required but not found" >&2;}
18779    { (exit 1); exit 1; }; }
18780 fi
18781
18782 # Extract the first word of "mv", so it can be a program name with args.
18783 set dummy mv; ac_word=$2
18784 echo "$as_me:$LINENO: checking for $ac_word" >&5
18785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18786 if test "${ac_cv_path_MV+set}" = set; then
18787   echo $ECHO_N "(cached) $ECHO_C" >&6
18788 else
18789   case $MV in
18790   [\\/]* | ?:[\\/]*)
18791   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18792   ;;
18793   *)
18794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18795 for as_dir in $PATH
18796 do
18797   IFS=$as_save_IFS
18798   test -z "$as_dir" && as_dir=.
18799   for ac_exec_ext in '' $ac_executable_extensions; do
18800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18801     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18803     break 2
18804   fi
18805 done
18806 done
18807
18808   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18809   ;;
18810 esac
18811 fi
18812 MV=$ac_cv_path_MV
18813
18814 if test -n "$MV"; then
18815   echo "$as_me:$LINENO: result: $MV" >&5
18816 echo "${ECHO_T}$MV" >&6
18817 else
18818   echo "$as_me:$LINENO: result: no" >&5
18819 echo "${ECHO_T}no" >&6
18820 fi
18821
18822 if test ${MV} = "false"
18823 then
18824         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18825 echo "$as_me: error: mv required but not found" >&2;}
18826    { (exit 1); exit 1; }; }
18827 fi
18828
18829 # Extract the first word of "dot", so it can be a program name with args.
18830 set dummy dot; ac_word=$2
18831 echo "$as_me:$LINENO: checking for $ac_word" >&5
18832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18833 if test "${ac_cv_path_DOT+set}" = set; then
18834   echo $ECHO_N "(cached) $ECHO_C" >&6
18835 else
18836   case $DOT in
18837   [\\/]* | ?:[\\/]*)
18838   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18839   ;;
18840   *)
18841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18842 for as_dir in $PATH
18843 do
18844   IFS=$as_save_IFS
18845   test -z "$as_dir" && as_dir=.
18846   for ac_exec_ext in '' $ac_executable_extensions; do
18847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18848     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18850     break 2
18851   fi
18852 done
18853 done
18854
18855   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18856   ;;
18857 esac
18858 fi
18859 DOT=$ac_cv_path_DOT
18860
18861 if test -n "$DOT"; then
18862   echo "$as_me:$LINENO: result: $DOT" >&5
18863 echo "${ECHO_T}$DOT" >&6
18864 else
18865   echo "$as_me:$LINENO: result: no" >&5
18866 echo "${ECHO_T}no" >&6
18867 fi
18868
18869
18870 # Extract the first word of "etags", so it can be a program name with args.
18871 set dummy etags; ac_word=$2
18872 echo "$as_me:$LINENO: checking for $ac_word" >&5
18873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18874 if test "${ac_cv_path_ETAGS+set}" = set; then
18875   echo $ECHO_N "(cached) $ECHO_C" >&6
18876 else
18877   case $ETAGS in
18878   [\\/]* | ?:[\\/]*)
18879   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18880   ;;
18881   *)
18882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18883 for as_dir in $PATH
18884 do
18885   IFS=$as_save_IFS
18886   test -z "$as_dir" && as_dir=.
18887   for ac_exec_ext in '' $ac_executable_extensions; do
18888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18889     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18891     break 2
18892   fi
18893 done
18894 done
18895
18896   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18897   ;;
18898 esac
18899 fi
18900 ETAGS=$ac_cv_path_ETAGS
18901
18902 if test -n "$ETAGS"; then
18903   echo "$as_me:$LINENO: result: $ETAGS" >&5
18904 echo "${ECHO_T}$ETAGS" >&6
18905 else
18906   echo "$as_me:$LINENO: result: no" >&5
18907 echo "${ECHO_T}no" >&6
18908 fi
18909
18910
18911 # Extract the first word of "python", so it can be a program name with args.
18912 set dummy python; ac_word=$2
18913 echo "$as_me:$LINENO: checking for $ac_word" >&5
18914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18915 if test "${ac_cv_path_PYTHON+set}" = set; then
18916   echo $ECHO_N "(cached) $ECHO_C" >&6
18917 else
18918   case $PYTHON in
18919   [\\/]* | ?:[\\/]*)
18920   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18921   ;;
18922   *)
18923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18924 for as_dir in $PATH
18925 do
18926   IFS=$as_save_IFS
18927   test -z "$as_dir" && as_dir=.
18928   for ac_exec_ext in '' $ac_executable_extensions; do
18929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18930     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18932     break 2
18933   fi
18934 done
18935 done
18936
18937   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18938   ;;
18939 esac
18940 fi
18941 PYTHON=$ac_cv_path_PYTHON
18942
18943 if test -n "$PYTHON"; then
18944   echo "$as_me:$LINENO: result: $PYTHON" >&5
18945 echo "${ECHO_T}$PYTHON" >&6
18946 else
18947   echo "$as_me:$LINENO: result: no" >&5
18948 echo "${ECHO_T}no" >&6
18949 fi
18950
18951 if test ${PYTHON} = "false"
18952 then
18953         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18954 echo "$as_me: WARNING: python required but not found" >&2;}
18955 fi
18956
18957 # Extract the first word of "qmtest", so it can be a program name with args.
18958 set dummy qmtest; ac_word=$2
18959 echo "$as_me:$LINENO: checking for $ac_word" >&5
18960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18961 if test "${ac_cv_path_QMTEST+set}" = set; then
18962   echo $ECHO_N "(cached) $ECHO_C" >&6
18963 else
18964   case $QMTEST in
18965   [\\/]* | ?:[\\/]*)
18966   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18967   ;;
18968   *)
18969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18970 for as_dir in $PATH
18971 do
18972   IFS=$as_save_IFS
18973   test -z "$as_dir" && as_dir=.
18974   for ac_exec_ext in '' $ac_executable_extensions; do
18975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18976     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18978     break 2
18979   fi
18980 done
18981 done
18982
18983   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
18984   ;;
18985 esac
18986 fi
18987 QMTEST=$ac_cv_path_QMTEST
18988
18989 if test -n "$QMTEST"; then
18990   echo "$as_me:$LINENO: result: $QMTEST" >&5
18991 echo "${ECHO_T}$QMTEST" >&6
18992 else
18993   echo "$as_me:$LINENO: result: no" >&5
18994 echo "${ECHO_T}no" >&6
18995 fi
18996
18997 if test ${QMTEST} = "false"
18998 then
18999         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19000 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19001 fi
19002
19003 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19004 pymajor=`echo $pyversion | cut -d. -f1`
19005 pyminor=`echo $pyversion | cut -d. -f2`
19006
19007 if test "$pymajor" -ge "2"
19008 then
19009         if test "$pymajor" -eq "2"
19010         then
19011                 if test "$pyminor" -lt "2"
19012                 then
19013                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19014 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19015    { (exit 1); exit 1; }; }
19016                 fi
19017         fi
19018 else
19019         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19020 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19021    { (exit 1); exit 1; }; }
19022 fi
19023
19024
19025
19026
19027
19028 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19029 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19030 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19031   echo $ECHO_N "(cached) $ECHO_C" >&6
19032 else
19033   ac_check_lib_save_LIBS=$LIBS
19034 LIBS="-lelf  $LIBS"
19035 cat >conftest.$ac_ext <<_ACEOF
19036 #line $LINENO "configure"
19037 /* confdefs.h.  */
19038 _ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h.  */
19042
19043 /* Override any gcc2 internal prototype to avoid an error.  */
19044 #ifdef __cplusplus
19045 extern "C"
19046 #endif
19047 /* We use char because int might match the return type of a gcc2
19048    builtin and then its argument prototype would still apply.  */
19049 char elf_begin ();
19050 int
19051 main ()
19052 {
19053 elf_begin ();
19054   ;
19055   return 0;
19056 }
19057 _ACEOF
19058 rm -f conftest.$ac_objext conftest$ac_exeext
19059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19060   (eval $ac_link) 2>&5
19061   ac_status=$?
19062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063   (exit $ac_status); } &&
19064          { ac_try='test -s conftest$ac_exeext'
19065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066   (eval $ac_try) 2>&5
19067   ac_status=$?
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); }; }; then
19070   ac_cv_lib_elf_elf_begin=yes
19071 else
19072   echo "$as_me: failed program was:" >&5
19073 sed 's/^/| /' conftest.$ac_ext >&5
19074
19075 ac_cv_lib_elf_elf_begin=no
19076 fi
19077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19078 LIBS=$ac_check_lib_save_LIBS
19079 fi
19080 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19081 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19082 if test $ac_cv_lib_elf_elf_begin = yes; then
19083   cat >>confdefs.h <<_ACEOF
19084 #define HAVE_LIBELF 1
19085 _ACEOF
19086
19087   LIBS="-lelf $LIBS"
19088
19089 fi
19090
19091
19092 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19093 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19094 if test "${ac_cv_search_dlopen+set}" = set; then
19095   echo $ECHO_N "(cached) $ECHO_C" >&6
19096 else
19097   ac_func_search_save_LIBS=$LIBS
19098 ac_cv_search_dlopen=no
19099 cat >conftest.$ac_ext <<_ACEOF
19100 #line $LINENO "configure"
19101 /* confdefs.h.  */
19102 _ACEOF
19103 cat confdefs.h >>conftest.$ac_ext
19104 cat >>conftest.$ac_ext <<_ACEOF
19105 /* end confdefs.h.  */
19106
19107 /* Override any gcc2 internal prototype to avoid an error.  */
19108 #ifdef __cplusplus
19109 extern "C"
19110 #endif
19111 /* We use char because int might match the return type of a gcc2
19112    builtin and then its argument prototype would still apply.  */
19113 char dlopen ();
19114 int
19115 main ()
19116 {
19117 dlopen ();
19118   ;
19119   return 0;
19120 }
19121 _ACEOF
19122 rm -f conftest.$ac_objext conftest$ac_exeext
19123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19124   (eval $ac_link) 2>&5
19125   ac_status=$?
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); } &&
19128          { ac_try='test -s conftest$ac_exeext'
19129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130   (eval $ac_try) 2>&5
19131   ac_status=$?
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); }; }; then
19134   ac_cv_search_dlopen="none required"
19135 else
19136   echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19138
19139 fi
19140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19141 if test "$ac_cv_search_dlopen" = no; then
19142   for ac_lib in dl; do
19143     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19144     cat >conftest.$ac_ext <<_ACEOF
19145 #line $LINENO "configure"
19146 /* confdefs.h.  */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h.  */
19151
19152 /* Override any gcc2 internal prototype to avoid an error.  */
19153 #ifdef __cplusplus
19154 extern "C"
19155 #endif
19156 /* We use char because int might match the return type of a gcc2
19157    builtin and then its argument prototype would still apply.  */
19158 char dlopen ();
19159 int
19160 main ()
19161 {
19162 dlopen ();
19163   ;
19164   return 0;
19165 }
19166 _ACEOF
19167 rm -f conftest.$ac_objext conftest$ac_exeext
19168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19169   (eval $ac_link) 2>&5
19170   ac_status=$?
19171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172   (exit $ac_status); } &&
19173          { ac_try='test -s conftest$ac_exeext'
19174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175   (eval $ac_try) 2>&5
19176   ac_status=$?
19177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178   (exit $ac_status); }; }; then
19179   ac_cv_search_dlopen="-l$ac_lib"
19180 break
19181 else
19182   echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19184
19185 fi
19186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19187   done
19188 fi
19189 LIBS=$ac_func_search_save_LIBS
19190 fi
19191 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19192 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19193 if test "$ac_cv_search_dlopen" != no; then
19194   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19195
19196 cat >>confdefs.h <<\_ACEOF
19197 #define HAVE_DLOPEN 1
19198 _ACEOF
19199
19200 else
19201   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19202 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19203 fi
19204
19205
19206 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19207 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19208 if test "${ac_cv_search_mallinfo+set}" = set; then
19209   echo $ECHO_N "(cached) $ECHO_C" >&6
19210 else
19211   ac_func_search_save_LIBS=$LIBS
19212 ac_cv_search_mallinfo=no
19213 cat >conftest.$ac_ext <<_ACEOF
19214 #line $LINENO "configure"
19215 /* confdefs.h.  */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h.  */
19220
19221 /* Override any gcc2 internal prototype to avoid an error.  */
19222 #ifdef __cplusplus
19223 extern "C"
19224 #endif
19225 /* We use char because int might match the return type of a gcc2
19226    builtin and then its argument prototype would still apply.  */
19227 char mallinfo ();
19228 int
19229 main ()
19230 {
19231 mallinfo ();
19232   ;
19233   return 0;
19234 }
19235 _ACEOF
19236 rm -f conftest.$ac_objext conftest$ac_exeext
19237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19238   (eval $ac_link) 2>&5
19239   ac_status=$?
19240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241   (exit $ac_status); } &&
19242          { ac_try='test -s conftest$ac_exeext'
19243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244   (eval $ac_try) 2>&5
19245   ac_status=$?
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); }; }; then
19248   ac_cv_search_mallinfo="none required"
19249 else
19250   echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19252
19253 fi
19254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19255 if test "$ac_cv_search_mallinfo" = no; then
19256   for ac_lib in malloc; do
19257     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19258     cat >conftest.$ac_ext <<_ACEOF
19259 #line $LINENO "configure"
19260 /* confdefs.h.  */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h.  */
19265
19266 /* Override any gcc2 internal prototype to avoid an error.  */
19267 #ifdef __cplusplus
19268 extern "C"
19269 #endif
19270 /* We use char because int might match the return type of a gcc2
19271    builtin and then its argument prototype would still apply.  */
19272 char mallinfo ();
19273 int
19274 main ()
19275 {
19276 mallinfo ();
19277   ;
19278   return 0;
19279 }
19280 _ACEOF
19281 rm -f conftest.$ac_objext conftest$ac_exeext
19282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19283   (eval $ac_link) 2>&5
19284   ac_status=$?
19285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); } &&
19287          { ac_try='test -s conftest$ac_exeext'
19288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289   (eval $ac_try) 2>&5
19290   ac_status=$?
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); }; }; then
19293   ac_cv_search_mallinfo="-l$ac_lib"
19294 break
19295 else
19296   echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19298
19299 fi
19300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19301   done
19302 fi
19303 LIBS=$ac_func_search_save_LIBS
19304 fi
19305 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19306 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19307 if test "$ac_cv_search_mallinfo" != no; then
19308   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19309
19310 cat >>confdefs.h <<\_ACEOF
19311 #define HAVE_MALLINFO 1
19312 _ACEOF
19313
19314 fi
19315
19316
19317
19318 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19319 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19320 if test "${ac_cv_header_stdc+set}" = set; then
19321   echo $ECHO_N "(cached) $ECHO_C" >&6
19322 else
19323   cat >conftest.$ac_ext <<_ACEOF
19324 #line $LINENO "configure"
19325 /* confdefs.h.  */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h.  */
19330 #include <stdlib.h>
19331 #include <stdarg.h>
19332 #include <string.h>
19333 #include <float.h>
19334
19335 int
19336 main ()
19337 {
19338
19339   ;
19340   return 0;
19341 }
19342 _ACEOF
19343 rm -f conftest.$ac_objext
19344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19345   (eval $ac_compile) 2>&5
19346   ac_status=$?
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); } &&
19349          { ac_try='test -s conftest.$ac_objext'
19350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351   (eval $ac_try) 2>&5
19352   ac_status=$?
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); }; }; then
19355   ac_cv_header_stdc=yes
19356 else
19357   echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19359
19360 ac_cv_header_stdc=no
19361 fi
19362 rm -f conftest.$ac_objext conftest.$ac_ext
19363
19364 if test $ac_cv_header_stdc = yes; then
19365   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19366   cat >conftest.$ac_ext <<_ACEOF
19367 #line $LINENO "configure"
19368 /* confdefs.h.  */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h.  */
19373 #include <string.h>
19374
19375 _ACEOF
19376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19377   $EGREP "memchr" >/dev/null 2>&1; then
19378   :
19379 else
19380   ac_cv_header_stdc=no
19381 fi
19382 rm -f conftest*
19383
19384 fi
19385
19386 if test $ac_cv_header_stdc = yes; then
19387   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19388   cat >conftest.$ac_ext <<_ACEOF
19389 #line $LINENO "configure"
19390 /* confdefs.h.  */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h.  */
19395 #include <stdlib.h>
19396
19397 _ACEOF
19398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19399   $EGREP "free" >/dev/null 2>&1; then
19400   :
19401 else
19402   ac_cv_header_stdc=no
19403 fi
19404 rm -f conftest*
19405
19406 fi
19407
19408 if test $ac_cv_header_stdc = yes; then
19409   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19410   if test "$cross_compiling" = yes; then
19411   :
19412 else
19413   cat >conftest.$ac_ext <<_ACEOF
19414 #line $LINENO "configure"
19415 /* confdefs.h.  */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h.  */
19420 #include <ctype.h>
19421 #if ((' ' & 0x0FF) == 0x020)
19422 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19423 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19424 #else
19425 # define ISLOWER(c) \
19426                    (('a' <= (c) && (c) <= 'i') \
19427                      || ('j' <= (c) && (c) <= 'r') \
19428                      || ('s' <= (c) && (c) <= 'z'))
19429 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19430 #endif
19431
19432 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19433 int
19434 main ()
19435 {
19436   int i;
19437   for (i = 0; i < 256; i++)
19438     if (XOR (islower (i), ISLOWER (i))
19439         || toupper (i) != TOUPPER (i))
19440       exit(2);
19441   exit (0);
19442 }
19443 _ACEOF
19444 rm -f conftest$ac_exeext
19445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19446   (eval $ac_link) 2>&5
19447   ac_status=$?
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451   (eval $ac_try) 2>&5
19452   ac_status=$?
19453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454   (exit $ac_status); }; }; then
19455   :
19456 else
19457   echo "$as_me: program exited with status $ac_status" >&5
19458 echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19460
19461 ( exit $ac_status )
19462 ac_cv_header_stdc=no
19463 fi
19464 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19465 fi
19466 fi
19467 fi
19468 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19469 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19470 if test $ac_cv_header_stdc = yes; then
19471
19472 cat >>confdefs.h <<\_ACEOF
19473 #define STDC_HEADERS 1
19474 _ACEOF
19475
19476 fi
19477
19478 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19479 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19480 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19481   echo $ECHO_N "(cached) $ECHO_C" >&6
19482 else
19483   cat >conftest.$ac_ext <<_ACEOF
19484 #line $LINENO "configure"
19485 /* confdefs.h.  */
19486 _ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h.  */
19490 #include <sys/types.h>
19491 #include <sys/wait.h>
19492 #ifndef WEXITSTATUS
19493 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19494 #endif
19495 #ifndef WIFEXITED
19496 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19497 #endif
19498
19499 int
19500 main ()
19501 {
19502   int s;
19503   wait (&s);
19504   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19505   ;
19506   return 0;
19507 }
19508 _ACEOF
19509 rm -f conftest.$ac_objext
19510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19511   (eval $ac_compile) 2>&5
19512   ac_status=$?
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); } &&
19515          { ac_try='test -s conftest.$ac_objext'
19516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517   (eval $ac_try) 2>&5
19518   ac_status=$?
19519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520   (exit $ac_status); }; }; then
19521   ac_cv_header_sys_wait_h=yes
19522 else
19523   echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526 ac_cv_header_sys_wait_h=no
19527 fi
19528 rm -f conftest.$ac_objext conftest.$ac_ext
19529 fi
19530 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19531 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19532 if test $ac_cv_header_sys_wait_h = yes; then
19533
19534 cat >>confdefs.h <<\_ACEOF
19535 #define HAVE_SYS_WAIT_H 1
19536 _ACEOF
19537
19538 fi
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19550 do
19551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19553   echo "$as_me:$LINENO: checking for $ac_header" >&5
19554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19556   echo $ECHO_N "(cached) $ECHO_C" >&6
19557 fi
19558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19560 else
19561   # Is the header compilable?
19562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19564 cat >conftest.$ac_ext <<_ACEOF
19565 #line $LINENO "configure"
19566 /* confdefs.h.  */
19567 _ACEOF
19568 cat confdefs.h >>conftest.$ac_ext
19569 cat >>conftest.$ac_ext <<_ACEOF
19570 /* end confdefs.h.  */
19571 $ac_includes_default
19572 #include <$ac_header>
19573 _ACEOF
19574 rm -f conftest.$ac_objext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576   (eval $ac_compile) 2>&5
19577   ac_status=$?
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); } &&
19580          { ac_try='test -s conftest.$ac_objext'
19581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582   (eval $ac_try) 2>&5
19583   ac_status=$?
19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); }; }; then
19586   ac_header_compiler=yes
19587 else
19588   echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19590
19591 ac_header_compiler=no
19592 fi
19593 rm -f conftest.$ac_objext conftest.$ac_ext
19594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19595 echo "${ECHO_T}$ac_header_compiler" >&6
19596
19597 # Is the header present?
19598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19600 cat >conftest.$ac_ext <<_ACEOF
19601 #line $LINENO "configure"
19602 /* confdefs.h.  */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h.  */
19607 #include <$ac_header>
19608 _ACEOF
19609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19610   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19611   ac_status=$?
19612   grep -v '^ *+' conftest.er1 >conftest.err
19613   rm -f conftest.er1
19614   cat conftest.err >&5
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); } >/dev/null; then
19617   if test -s conftest.err; then
19618     ac_cpp_err=$ac_c_preproc_warn_flag
19619   else
19620     ac_cpp_err=
19621   fi
19622 else
19623   ac_cpp_err=yes
19624 fi
19625 if test -z "$ac_cpp_err"; then
19626   ac_header_preproc=yes
19627 else
19628   echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19630
19631   ac_header_preproc=no
19632 fi
19633 rm -f conftest.err conftest.$ac_ext
19634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19635 echo "${ECHO_T}$ac_header_preproc" >&6
19636
19637 # So?  What about this header?
19638 case $ac_header_compiler:$ac_header_preproc in
19639   yes:no )
19640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19644     (
19645       cat <<\_ASBOX
19646 ## ------------------------------------ ##
19647 ## Report this to bug-autoconf@gnu.org. ##
19648 ## ------------------------------------ ##
19649 _ASBOX
19650     ) |
19651       sed "s/^/$as_me: WARNING:     /" >&2
19652     ;;
19653   no:yes )
19654     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19656     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19660     (
19661       cat <<\_ASBOX
19662 ## ------------------------------------ ##
19663 ## Report this to bug-autoconf@gnu.org. ##
19664 ## ------------------------------------ ##
19665 _ASBOX
19666     ) |
19667       sed "s/^/$as_me: WARNING:     /" >&2
19668     ;;
19669 esac
19670 echo "$as_me:$LINENO: checking for $ac_header" >&5
19671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19673   echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675   eval "$as_ac_Header=$ac_header_preproc"
19676 fi
19677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19679
19680 fi
19681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19682   cat >>confdefs.h <<_ACEOF
19683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19684 _ACEOF
19685
19686 fi
19687
19688 done
19689
19690
19691
19692
19693
19694
19695 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19696 do
19697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19699   echo "$as_me:$LINENO: checking for $ac_header" >&5
19700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19702   echo $ECHO_N "(cached) $ECHO_C" >&6
19703 fi
19704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19706 else
19707   # Is the header compilable?
19708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19710 cat >conftest.$ac_ext <<_ACEOF
19711 #line $LINENO "configure"
19712 /* confdefs.h.  */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h.  */
19717 $ac_includes_default
19718 #include <$ac_header>
19719 _ACEOF
19720 rm -f conftest.$ac_objext
19721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19722   (eval $ac_compile) 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); } &&
19726          { ac_try='test -s conftest.$ac_objext'
19727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728   (eval $ac_try) 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); }; }; then
19732   ac_header_compiler=yes
19733 else
19734   echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19736
19737 ac_header_compiler=no
19738 fi
19739 rm -f conftest.$ac_objext conftest.$ac_ext
19740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19741 echo "${ECHO_T}$ac_header_compiler" >&6
19742
19743 # Is the header present?
19744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19746 cat >conftest.$ac_ext <<_ACEOF
19747 #line $LINENO "configure"
19748 /* confdefs.h.  */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h.  */
19753 #include <$ac_header>
19754 _ACEOF
19755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19756   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19757   ac_status=$?
19758   grep -v '^ *+' conftest.er1 >conftest.err
19759   rm -f conftest.er1
19760   cat conftest.err >&5
19761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); } >/dev/null; then
19763   if test -s conftest.err; then
19764     ac_cpp_err=$ac_c_preproc_warn_flag
19765   else
19766     ac_cpp_err=
19767   fi
19768 else
19769   ac_cpp_err=yes
19770 fi
19771 if test -z "$ac_cpp_err"; then
19772   ac_header_preproc=yes
19773 else
19774   echo "$as_me: failed program was:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19776
19777   ac_header_preproc=no
19778 fi
19779 rm -f conftest.err conftest.$ac_ext
19780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19781 echo "${ECHO_T}$ac_header_preproc" >&6
19782
19783 # So?  What about this header?
19784 case $ac_header_compiler:$ac_header_preproc in
19785   yes:no )
19786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19790     (
19791       cat <<\_ASBOX
19792 ## ------------------------------------ ##
19793 ## Report this to bug-autoconf@gnu.org. ##
19794 ## ------------------------------------ ##
19795 _ASBOX
19796     ) |
19797       sed "s/^/$as_me: WARNING:     /" >&2
19798     ;;
19799   no:yes )
19800     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19802     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19806     (
19807       cat <<\_ASBOX
19808 ## ------------------------------------ ##
19809 ## Report this to bug-autoconf@gnu.org. ##
19810 ## ------------------------------------ ##
19811 _ASBOX
19812     ) |
19813       sed "s/^/$as_me: WARNING:     /" >&2
19814     ;;
19815 esac
19816 echo "$as_me:$LINENO: checking for $ac_header" >&5
19817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19819   echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821   eval "$as_ac_Header=$ac_header_preproc"
19822 fi
19823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19825
19826 fi
19827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19828   cat >>confdefs.h <<_ACEOF
19829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19830 _ACEOF
19831
19832 fi
19833
19834 done
19835
19836
19837
19838
19839 for ac_header in dlfcn.h link.h
19840 do
19841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19843   echo "$as_me:$LINENO: checking for $ac_header" >&5
19844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19846   echo $ECHO_N "(cached) $ECHO_C" >&6
19847 fi
19848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19850 else
19851   # Is the header compilable?
19852 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19854 cat >conftest.$ac_ext <<_ACEOF
19855 #line $LINENO "configure"
19856 /* confdefs.h.  */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h.  */
19861 $ac_includes_default
19862 #include <$ac_header>
19863 _ACEOF
19864 rm -f conftest.$ac_objext
19865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19866   (eval $ac_compile) 2>&5
19867   ac_status=$?
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); } &&
19870          { ac_try='test -s conftest.$ac_objext'
19871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872   (eval $ac_try) 2>&5
19873   ac_status=$?
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); }; }; then
19876   ac_header_compiler=yes
19877 else
19878   echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19880
19881 ac_header_compiler=no
19882 fi
19883 rm -f conftest.$ac_objext conftest.$ac_ext
19884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19885 echo "${ECHO_T}$ac_header_compiler" >&6
19886
19887 # Is the header present?
19888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19890 cat >conftest.$ac_ext <<_ACEOF
19891 #line $LINENO "configure"
19892 /* confdefs.h.  */
19893 _ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h.  */
19897 #include <$ac_header>
19898 _ACEOF
19899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19901   ac_status=$?
19902   grep -v '^ *+' conftest.er1 >conftest.err
19903   rm -f conftest.er1
19904   cat conftest.err >&5
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); } >/dev/null; then
19907   if test -s conftest.err; then
19908     ac_cpp_err=$ac_c_preproc_warn_flag
19909   else
19910     ac_cpp_err=
19911   fi
19912 else
19913   ac_cpp_err=yes
19914 fi
19915 if test -z "$ac_cpp_err"; then
19916   ac_header_preproc=yes
19917 else
19918   echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19920
19921   ac_header_preproc=no
19922 fi
19923 rm -f conftest.err conftest.$ac_ext
19924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19925 echo "${ECHO_T}$ac_header_preproc" >&6
19926
19927 # So?  What about this header?
19928 case $ac_header_compiler:$ac_header_preproc in
19929   yes:no )
19930     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19934     (
19935       cat <<\_ASBOX
19936 ## ------------------------------------ ##
19937 ## Report this to bug-autoconf@gnu.org. ##
19938 ## ------------------------------------ ##
19939 _ASBOX
19940     ) |
19941       sed "s/^/$as_me: WARNING:     /" >&2
19942     ;;
19943   no:yes )
19944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19946     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19950     (
19951       cat <<\_ASBOX
19952 ## ------------------------------------ ##
19953 ## Report this to bug-autoconf@gnu.org. ##
19954 ## ------------------------------------ ##
19955 _ASBOX
19956     ) |
19957       sed "s/^/$as_me: WARNING:     /" >&2
19958     ;;
19959 esac
19960 echo "$as_me:$LINENO: checking for $ac_header" >&5
19961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19963   echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965   eval "$as_ac_Header=$ac_header_preproc"
19966 fi
19967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19969
19970 fi
19971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19972   cat >>confdefs.h <<_ACEOF
19973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19974 _ACEOF
19975
19976 fi
19977
19978 done
19979
19980
19981
19982 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19983 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19984 if test "${ac_cv_c_const+set}" = set; then
19985   echo $ECHO_N "(cached) $ECHO_C" >&6
19986 else
19987   cat >conftest.$ac_ext <<_ACEOF
19988 #line $LINENO "configure"
19989 /* confdefs.h.  */
19990 _ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h.  */
19994
19995 int
19996 main ()
19997 {
19998 /* FIXME: Include the comments suggested by Paul. */
19999 #ifndef __cplusplus
20000   /* Ultrix mips cc rejects this.  */
20001   typedef int charset[2];
20002   const charset x;
20003   /* SunOS 4.1.1 cc rejects this.  */
20004   char const *const *ccp;
20005   char **p;
20006   /* NEC SVR4.0.2 mips cc rejects this.  */
20007   struct point {int x, y;};
20008   static struct point const zero = {0,0};
20009   /* AIX XL C 1.02.0.0 rejects this.
20010      It does not let you subtract one const X* pointer from another in
20011      an arm of an if-expression whose if-part is not a constant
20012      expression */
20013   const char *g = "string";
20014   ccp = &g + (g ? g-g : 0);
20015   /* HPUX 7.0 cc rejects these. */
20016   ++ccp;
20017   p = (char**) ccp;
20018   ccp = (char const *const *) p;
20019   { /* SCO 3.2v4 cc rejects this.  */
20020     char *t;
20021     char const *s = 0 ? (char *) 0 : (char const *) 0;
20022
20023     *t++ = 0;
20024   }
20025   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20026     int x[] = {25, 17};
20027     const int *foo = &x[0];
20028     ++foo;
20029   }
20030   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20031     typedef const int *iptr;
20032     iptr p = 0;
20033     ++p;
20034   }
20035   { /* AIX XL C 1.02.0.0 rejects this saying
20036        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20037     struct s { int j; const int *ap[3]; };
20038     struct s *b; b->j = 5;
20039   }
20040   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20041     const int foo = 10;
20042   }
20043 #endif
20044
20045   ;
20046   return 0;
20047 }
20048 _ACEOF
20049 rm -f conftest.$ac_objext
20050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20051   (eval $ac_compile) 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); } &&
20055          { ac_try='test -s conftest.$ac_objext'
20056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057   (eval $ac_try) 2>&5
20058   ac_status=$?
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); }; }; then
20061   ac_cv_c_const=yes
20062 else
20063   echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066 ac_cv_c_const=no
20067 fi
20068 rm -f conftest.$ac_objext conftest.$ac_ext
20069 fi
20070 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20071 echo "${ECHO_T}$ac_cv_c_const" >&6
20072 if test $ac_cv_c_const = no; then
20073
20074 cat >>confdefs.h <<\_ACEOF
20075 #define const
20076 _ACEOF
20077
20078 fi
20079
20080 echo "$as_me:$LINENO: checking for inline" >&5
20081 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20082 if test "${ac_cv_c_inline+set}" = set; then
20083   echo $ECHO_N "(cached) $ECHO_C" >&6
20084 else
20085   ac_cv_c_inline=no
20086 for ac_kw in inline __inline__ __inline; do
20087   cat >conftest.$ac_ext <<_ACEOF
20088 #line $LINENO "configure"
20089 /* confdefs.h.  */
20090 _ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h.  */
20094 #ifndef __cplusplus
20095 typedef int foo_t;
20096 static $ac_kw foo_t static_foo () {return 0; }
20097 $ac_kw foo_t foo () {return 0; }
20098 #endif
20099
20100 _ACEOF
20101 rm -f conftest.$ac_objext
20102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20103   (eval $ac_compile) 2>&5
20104   ac_status=$?
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   (exit $ac_status); } &&
20107          { ac_try='test -s conftest.$ac_objext'
20108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109   (eval $ac_try) 2>&5
20110   ac_status=$?
20111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); }; }; then
20113   ac_cv_c_inline=$ac_kw; break
20114 else
20115   echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20117
20118 fi
20119 rm -f conftest.$ac_objext conftest.$ac_ext
20120 done
20121
20122 fi
20123 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20124 echo "${ECHO_T}$ac_cv_c_inline" >&6
20125 case $ac_cv_c_inline in
20126   inline | yes) ;;
20127   no)
20128 cat >>confdefs.h <<\_ACEOF
20129 #define inline
20130 _ACEOF
20131  ;;
20132   *)  cat >>confdefs.h <<_ACEOF
20133 #define inline $ac_cv_c_inline
20134 _ACEOF
20135  ;;
20136 esac
20137
20138
20139 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20140 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20141 if test "${ac_cv_c_bigendian+set}" = set; then
20142   echo $ECHO_N "(cached) $ECHO_C" >&6
20143 else
20144   # See if sys/param.h defines the BYTE_ORDER macro.
20145 cat >conftest.$ac_ext <<_ACEOF
20146 #line $LINENO "configure"
20147 /* confdefs.h.  */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h.  */
20152 #include <sys/types.h>
20153 #include <sys/param.h>
20154
20155 int
20156 main ()
20157 {
20158 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20159  bogus endian macros
20160 #endif
20161
20162   ;
20163   return 0;
20164 }
20165 _ACEOF
20166 rm -f conftest.$ac_objext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20168   (eval $ac_compile) 2>&5
20169   ac_status=$?
20170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171   (exit $ac_status); } &&
20172          { ac_try='test -s conftest.$ac_objext'
20173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174   (eval $ac_try) 2>&5
20175   ac_status=$?
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); }; }; then
20178   # It does; now see whether it defined to BIG_ENDIAN or not.
20179 cat >conftest.$ac_ext <<_ACEOF
20180 #line $LINENO "configure"
20181 /* confdefs.h.  */
20182 _ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h.  */
20186 #include <sys/types.h>
20187 #include <sys/param.h>
20188
20189 int
20190 main ()
20191 {
20192 #if BYTE_ORDER != BIG_ENDIAN
20193  not big endian
20194 #endif
20195
20196   ;
20197   return 0;
20198 }
20199 _ACEOF
20200 rm -f conftest.$ac_objext
20201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20202   (eval $ac_compile) 2>&5
20203   ac_status=$?
20204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205   (exit $ac_status); } &&
20206          { ac_try='test -s conftest.$ac_objext'
20207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208   (eval $ac_try) 2>&5
20209   ac_status=$?
20210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211   (exit $ac_status); }; }; then
20212   ac_cv_c_bigendian=yes
20213 else
20214   echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20216
20217 ac_cv_c_bigendian=no
20218 fi
20219 rm -f conftest.$ac_objext conftest.$ac_ext
20220 else
20221   echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20223
20224 # It does not; compile a test program.
20225 if test "$cross_compiling" = yes; then
20226   # try to guess the endianness by grepping values into an object file
20227   ac_cv_c_bigendian=unknown
20228   cat >conftest.$ac_ext <<_ACEOF
20229 #line $LINENO "configure"
20230 /* confdefs.h.  */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h.  */
20235 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20236 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20237 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20238 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20239 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20240 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20241 int
20242 main ()
20243 {
20244  _ascii (); _ebcdic ();
20245   ;
20246   return 0;
20247 }
20248 _ACEOF
20249 rm -f conftest.$ac_objext
20250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20251   (eval $ac_compile) 2>&5
20252   ac_status=$?
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); } &&
20255          { ac_try='test -s conftest.$ac_objext'
20256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257   (eval $ac_try) 2>&5
20258   ac_status=$?
20259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260   (exit $ac_status); }; }; then
20261   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20262   ac_cv_c_bigendian=yes
20263 fi
20264 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20265   if test "$ac_cv_c_bigendian" = unknown; then
20266     ac_cv_c_bigendian=no
20267   else
20268     # finding both strings is unlikely to happen, but who knows?
20269     ac_cv_c_bigendian=unknown
20270   fi
20271 fi
20272 else
20273   echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20275
20276 fi
20277 rm -f conftest.$ac_objext conftest.$ac_ext
20278 else
20279   cat >conftest.$ac_ext <<_ACEOF
20280 #line $LINENO "configure"
20281 /* confdefs.h.  */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h.  */
20286 int
20287 main ()
20288 {
20289   /* Are we little or big endian?  From Harbison&Steele.  */
20290   union
20291   {
20292     long l;
20293     char c[sizeof (long)];
20294   } u;
20295   u.l = 1;
20296   exit (u.c[sizeof (long) - 1] == 1);
20297 }
20298 _ACEOF
20299 rm -f conftest$ac_exeext
20300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20301   (eval $ac_link) 2>&5
20302   ac_status=$?
20303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306   (eval $ac_try) 2>&5
20307   ac_status=$?
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); }; }; then
20310   ac_cv_c_bigendian=no
20311 else
20312   echo "$as_me: program exited with status $ac_status" >&5
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20315
20316 ( exit $ac_status )
20317 ac_cv_c_bigendian=yes
20318 fi
20319 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20320 fi
20321 fi
20322 rm -f conftest.$ac_objext conftest.$ac_ext
20323 fi
20324 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20325 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20326 case $ac_cv_c_bigendian in
20327   yes)
20328
20329 cat >>confdefs.h <<\_ACEOF
20330 #define ENDIAN_BIG
20331 _ACEOF
20332  ;;
20333   no)
20334
20335 cat >>confdefs.h <<\_ACEOF
20336 #define ENDIAN_LITTLE
20337 _ACEOF
20338  ;;
20339   *)
20340     { { echo "$as_me:$LINENO: error: unknown endianness
20341 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20342 echo "$as_me: error: unknown endianness
20343 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20344    { (exit 1); exit 1; }; } ;;
20345 esac
20346
20347
20348 echo "$as_me:$LINENO: checking for pid_t" >&5
20349 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20350 if test "${ac_cv_type_pid_t+set}" = set; then
20351   echo $ECHO_N "(cached) $ECHO_C" >&6
20352 else
20353   cat >conftest.$ac_ext <<_ACEOF
20354 #line $LINENO "configure"
20355 /* confdefs.h.  */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h.  */
20360 $ac_includes_default
20361 int
20362 main ()
20363 {
20364 if ((pid_t *) 0)
20365   return 0;
20366 if (sizeof (pid_t))
20367   return 0;
20368   ;
20369   return 0;
20370 }
20371 _ACEOF
20372 rm -f conftest.$ac_objext
20373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20374   (eval $ac_compile) 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); } &&
20378          { ac_try='test -s conftest.$ac_objext'
20379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380   (eval $ac_try) 2>&5
20381   ac_status=$?
20382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383   (exit $ac_status); }; }; then
20384   ac_cv_type_pid_t=yes
20385 else
20386   echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20388
20389 ac_cv_type_pid_t=no
20390 fi
20391 rm -f conftest.$ac_objext conftest.$ac_ext
20392 fi
20393 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20394 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20395 if test $ac_cv_type_pid_t = yes; then
20396   :
20397 else
20398
20399 cat >>confdefs.h <<_ACEOF
20400 #define pid_t int
20401 _ACEOF
20402
20403 fi
20404
20405 echo "$as_me:$LINENO: checking for size_t" >&5
20406 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20407 if test "${ac_cv_type_size_t+set}" = set; then
20408   echo $ECHO_N "(cached) $ECHO_C" >&6
20409 else
20410   cat >conftest.$ac_ext <<_ACEOF
20411 #line $LINENO "configure"
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417 $ac_includes_default
20418 int
20419 main ()
20420 {
20421 if ((size_t *) 0)
20422   return 0;
20423 if (sizeof (size_t))
20424   return 0;
20425   ;
20426   return 0;
20427 }
20428 _ACEOF
20429 rm -f conftest.$ac_objext
20430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20431   (eval $ac_compile) 2>&5
20432   ac_status=$?
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); } &&
20435          { ac_try='test -s conftest.$ac_objext'
20436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437   (eval $ac_try) 2>&5
20438   ac_status=$?
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); }; }; then
20441   ac_cv_type_size_t=yes
20442 else
20443   echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20445
20446 ac_cv_type_size_t=no
20447 fi
20448 rm -f conftest.$ac_objext conftest.$ac_ext
20449 fi
20450 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20451 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20452 if test $ac_cv_type_size_t = yes; then
20453   :
20454 else
20455
20456 cat >>confdefs.h <<_ACEOF
20457 #define size_t unsigned
20458 _ACEOF
20459
20460 fi
20461
20462 echo "$as_me:$LINENO: checking for int64_t" >&5
20463 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20464 if test "${ac_cv_type_int64_t+set}" = set; then
20465   echo $ECHO_N "(cached) $ECHO_C" >&6
20466 else
20467   cat >conftest.$ac_ext <<_ACEOF
20468 #line $LINENO "configure"
20469 /* confdefs.h.  */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h.  */
20474 $ac_includes_default
20475 int
20476 main ()
20477 {
20478 if ((int64_t *) 0)
20479   return 0;
20480 if (sizeof (int64_t))
20481   return 0;
20482   ;
20483   return 0;
20484 }
20485 _ACEOF
20486 rm -f conftest.$ac_objext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488   (eval $ac_compile) 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); } &&
20492          { ac_try='test -s conftest.$ac_objext'
20493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494   (eval $ac_try) 2>&5
20495   ac_status=$?
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); }; }; then
20498   ac_cv_type_int64_t=yes
20499 else
20500   echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20502
20503 ac_cv_type_int64_t=no
20504 fi
20505 rm -f conftest.$ac_objext conftest.$ac_ext
20506 fi
20507 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20508 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20509 if test $ac_cv_type_int64_t = yes; then
20510
20511 cat >>confdefs.h <<_ACEOF
20512 #define HAVE_INT64_T 1
20513 _ACEOF
20514
20515
20516 else
20517   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20518 echo "$as_me: error: Type int64_t required but not found" >&2;}
20519    { (exit 1); exit 1; }; }
20520 fi
20521
20522 echo "$as_me:$LINENO: checking for uint64_t" >&5
20523 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20524 if test "${ac_cv_type_uint64_t+set}" = set; then
20525   echo $ECHO_N "(cached) $ECHO_C" >&6
20526 else
20527   cat >conftest.$ac_ext <<_ACEOF
20528 #line $LINENO "configure"
20529 /* confdefs.h.  */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h.  */
20534 $ac_includes_default
20535 int
20536 main ()
20537 {
20538 if ((uint64_t *) 0)
20539   return 0;
20540 if (sizeof (uint64_t))
20541   return 0;
20542   ;
20543   return 0;
20544 }
20545 _ACEOF
20546 rm -f conftest.$ac_objext
20547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20548   (eval $ac_compile) 2>&5
20549   ac_status=$?
20550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551   (exit $ac_status); } &&
20552          { ac_try='test -s conftest.$ac_objext'
20553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554   (eval $ac_try) 2>&5
20555   ac_status=$?
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); }; }; then
20558   ac_cv_type_uint64_t=yes
20559 else
20560   echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20562
20563 ac_cv_type_uint64_t=no
20564 fi
20565 rm -f conftest.$ac_objext conftest.$ac_ext
20566 fi
20567 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20568 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20569 if test $ac_cv_type_uint64_t = yes; then
20570
20571 cat >>confdefs.h <<_ACEOF
20572 #define HAVE_UINT64_T 1
20573 _ACEOF
20574
20575
20576 else
20577   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20578 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20579    { (exit 1); exit 1; }; }
20580 fi
20581
20582 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20583 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20584 if test "${ac_cv_header_time+set}" = set; then
20585   echo $ECHO_N "(cached) $ECHO_C" >&6
20586 else
20587   cat >conftest.$ac_ext <<_ACEOF
20588 #line $LINENO "configure"
20589 /* confdefs.h.  */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h.  */
20594 #include <sys/types.h>
20595 #include <sys/time.h>
20596 #include <time.h>
20597
20598 int
20599 main ()
20600 {
20601 if ((struct tm *) 0)
20602 return 0;
20603   ;
20604   return 0;
20605 }
20606 _ACEOF
20607 rm -f conftest.$ac_objext
20608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20609   (eval $ac_compile) 2>&5
20610   ac_status=$?
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); } &&
20613          { ac_try='test -s conftest.$ac_objext'
20614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615   (eval $ac_try) 2>&5
20616   ac_status=$?
20617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618   (exit $ac_status); }; }; then
20619   ac_cv_header_time=yes
20620 else
20621   echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20623
20624 ac_cv_header_time=no
20625 fi
20626 rm -f conftest.$ac_objext conftest.$ac_ext
20627 fi
20628 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20629 echo "${ECHO_T}$ac_cv_header_time" >&6
20630 if test $ac_cv_header_time = yes; then
20631
20632 cat >>confdefs.h <<\_ACEOF
20633 #define TIME_WITH_SYS_TIME 1
20634 _ACEOF
20635
20636 fi
20637
20638 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20639 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20640 if test "${ac_cv_struct_tm+set}" = set; then
20641   echo $ECHO_N "(cached) $ECHO_C" >&6
20642 else
20643   cat >conftest.$ac_ext <<_ACEOF
20644 #line $LINENO "configure"
20645 /* confdefs.h.  */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h.  */
20650 #include <sys/types.h>
20651 #include <time.h>
20652
20653 int
20654 main ()
20655 {
20656 struct tm *tp; tp->tm_sec;
20657   ;
20658   return 0;
20659 }
20660 _ACEOF
20661 rm -f conftest.$ac_objext
20662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20663   (eval $ac_compile) 2>&5
20664   ac_status=$?
20665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666   (exit $ac_status); } &&
20667          { ac_try='test -s conftest.$ac_objext'
20668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669   (eval $ac_try) 2>&5
20670   ac_status=$?
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); }; }; then
20673   ac_cv_struct_tm=time.h
20674 else
20675   echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20677
20678 ac_cv_struct_tm=sys/time.h
20679 fi
20680 rm -f conftest.$ac_objext conftest.$ac_ext
20681 fi
20682 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20683 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20684 if test $ac_cv_struct_tm = sys/time.h; then
20685
20686 cat >>confdefs.h <<\_ACEOF
20687 #define TM_IN_SYS_TIME 1
20688 _ACEOF
20689
20690 fi
20691
20692
20693
20694
20695
20696         ac_ext=c
20697 ac_cpp='$CPP $CPPFLAGS'
20698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20701
20702         if test "$cross_compiling" = yes; then
20703   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20704 See \`config.log' for more details." >&5
20705 echo "$as_me: error: cannot run test program while cross compiling
20706 See \`config.log' for more details." >&2;}
20707    { (exit 1); exit 1; }; }
20708 else
20709   cat >conftest.$ac_ext <<_ACEOF
20710 #line $LINENO "configure"
20711 /* confdefs.h.  */
20712 _ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h.  */
20716 #include <stdio.h>
20717                                  #include <stdlib.h>
20718 int
20719 main ()
20720 {
20721
20722                                  volatile double A, B;
20723                                  char Buffer[100];
20724                                  A = 1;
20725                                  A /= 10.0;
20726                                  sprintf(Buffer, "%a", A);
20727                                  B = atof(Buffer);
20728                                  if (A != B)
20729                                                          return (1);
20730                                  if (A != 0x1.999999999999ap-4)
20731                                                          return (1);
20732                                  return (0);
20733   ;
20734   return 0;
20735 }
20736 _ACEOF
20737 rm -f conftest$ac_exeext
20738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20739   (eval $ac_link) 2>&5
20740   ac_status=$?
20741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744   (eval $ac_try) 2>&5
20745   ac_status=$?
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); }; }; then
20748   ac_c_printf_a=yes
20749 else
20750   echo "$as_me: program exited with status $ac_status" >&5
20751 echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20753
20754 ( exit $ac_status )
20755 ac_c_printf_a=no
20756 fi
20757 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20758 fi
20759         ac_ext=c
20760 ac_cpp='$CPP $CPPFLAGS'
20761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20764
20765         if test "$ac_c_printf_a" = "yes"; then
20766
20767 cat >>confdefs.h <<\_ACEOF
20768 #define HAVE_PRINTF_A 1
20769 _ACEOF
20770
20771         fi
20772
20773
20774 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20775 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20776 if test "${ac_cv_cxx_namespaces+set}" = set; then
20777   echo $ECHO_N "(cached) $ECHO_C" >&6
20778 else
20779
20780
20781  ac_ext=cc
20782 ac_cpp='$CXXCPP $CPPFLAGS'
20783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20786
20787  cat >conftest.$ac_ext <<_ACEOF
20788 #line $LINENO "configure"
20789 /* confdefs.h.  */
20790 _ACEOF
20791 cat confdefs.h >>conftest.$ac_ext
20792 cat >>conftest.$ac_ext <<_ACEOF
20793 /* end confdefs.h.  */
20794 namespace Outer { namespace Inner { int i = 0; }}
20795 int
20796 main ()
20797 {
20798 using namespace Outer::Inner; return i;
20799   ;
20800   return 0;
20801 }
20802 _ACEOF
20803 rm -f conftest.$ac_objext
20804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20805   (eval $ac_compile) 2>&5
20806   ac_status=$?
20807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808   (exit $ac_status); } &&
20809          { ac_try='test -s conftest.$ac_objext'
20810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811   (eval $ac_try) 2>&5
20812   ac_status=$?
20813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814   (exit $ac_status); }; }; then
20815   ac_cv_cxx_namespaces=yes
20816 else
20817   echo "$as_me: failed program was:" >&5
20818 sed 's/^/| /' conftest.$ac_ext >&5
20819
20820 ac_cv_cxx_namespaces=no
20821 fi
20822 rm -f conftest.$ac_objext conftest.$ac_ext
20823  ac_ext=c
20824 ac_cpp='$CPP $CPPFLAGS'
20825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20828
20829
20830 fi
20831 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20832 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20833 if test "$ac_cv_cxx_namespaces" = yes; then
20834
20835 cat >>confdefs.h <<\_ACEOF
20836 #define HAVE_NAMESPACES
20837 _ACEOF
20838
20839 fi
20840
20841 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20842 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20843 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20844   echo $ECHO_N "(cached) $ECHO_C" >&6
20845 else
20846
20847
20848
20849   ac_ext=cc
20850 ac_cpp='$CXXCPP $CPPFLAGS'
20851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20854
20855   cat >conftest.$ac_ext <<_ACEOF
20856 #line $LINENO "configure"
20857 /* confdefs.h.  */
20858 _ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h.  */
20862 #include <ext/hash_map>
20863 #ifdef HAVE_NAMESPACES
20864 using namespace std;
20865 #endif
20866 int
20867 main ()
20868 {
20869 hash_map<int, int> t; return 0;
20870   ;
20871   return 0;
20872 }
20873 _ACEOF
20874 rm -f conftest.$ac_objext
20875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20876   (eval $ac_compile) 2>&5
20877   ac_status=$?
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); } &&
20880          { ac_try='test -s conftest.$ac_objext'
20881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882   (eval $ac_try) 2>&5
20883   ac_status=$?
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); }; }; then
20886   ac_cv_cxx_have_ext_hash_map=std
20887 else
20888   echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20890
20891 ac_cv_cxx_have_ext_hash_map=no
20892 fi
20893 rm -f conftest.$ac_objext conftest.$ac_ext
20894   cat >conftest.$ac_ext <<_ACEOF
20895 #line $LINENO "configure"
20896 /* confdefs.h.  */
20897 _ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h.  */
20901 #include <ext/hash_map>
20902 #ifdef HAVE_NAMESPACES
20903 using namespace __gnu_cxx;
20904 #endif
20905 int
20906 main ()
20907 {
20908 hash_map<int, int> t; return 0;
20909   ;
20910   return 0;
20911 }
20912 _ACEOF
20913 rm -f conftest.$ac_objext
20914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20915   (eval $ac_compile) 2>&5
20916   ac_status=$?
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); } &&
20919          { ac_try='test -s conftest.$ac_objext'
20920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921   (eval $ac_try) 2>&5
20922   ac_status=$?
20923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); }; }; then
20925   ac_cv_cxx_have_ext_hash_map=gnu
20926 else
20927   echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930 ac_cv_cxx_have_ext_hash_map=no
20931 fi
20932 rm -f conftest.$ac_objext conftest.$ac_ext
20933   ac_ext=c
20934 ac_cpp='$CPP $CPPFLAGS'
20935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20938
20939
20940 fi
20941 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20942 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20943 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20944
20945 cat >>confdefs.h <<\_ACEOF
20946 #define HAVE_STD_EXT_HASH_MAP
20947 _ACEOF
20948
20949 fi
20950 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20951
20952 cat >>confdefs.h <<\_ACEOF
20953 #define HAVE_GNU_EXT_HASH_MAP
20954 _ACEOF
20955
20956 fi
20957
20958 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20959 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20960 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20961   echo $ECHO_N "(cached) $ECHO_C" >&6
20962 else
20963
20964
20965
20966   ac_ext=cc
20967 ac_cpp='$CXXCPP $CPPFLAGS'
20968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20971
20972   cat >conftest.$ac_ext <<_ACEOF
20973 #line $LINENO "configure"
20974 /* confdefs.h.  */
20975 _ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h.  */
20979 #include <ext/hash_set>
20980 #ifdef HAVE_NAMESPACES
20981 using namespace std;
20982 #endif
20983 int
20984 main ()
20985 {
20986 hash_set<int> t; return 0;
20987   ;
20988   return 0;
20989 }
20990 _ACEOF
20991 rm -f conftest.$ac_objext
20992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20993   (eval $ac_compile) 2>&5
20994   ac_status=$?
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); } &&
20997          { ac_try='test -s conftest.$ac_objext'
20998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999   (eval $ac_try) 2>&5
21000   ac_status=$?
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); }; }; then
21003   ac_cv_cxx_have_ext_hash_set=std
21004 else
21005   echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.$ac_ext >&5
21007
21008 ac_cv_cxx_have_ext_hash_set=no
21009 fi
21010 rm -f conftest.$ac_objext conftest.$ac_ext
21011   cat >conftest.$ac_ext <<_ACEOF
21012 #line $LINENO "configure"
21013 /* confdefs.h.  */
21014 _ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h.  */
21018 #include <ext/hash_set>
21019 #ifdef HAVE_NAMESPACES
21020 using namespace __gnu_cxx;
21021 #endif
21022 int
21023 main ()
21024 {
21025 hash_set<int> t; return 0;
21026   ;
21027   return 0;
21028 }
21029 _ACEOF
21030 rm -f conftest.$ac_objext
21031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21032   (eval $ac_compile) 2>&5
21033   ac_status=$?
21034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035   (exit $ac_status); } &&
21036          { ac_try='test -s conftest.$ac_objext'
21037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038   (eval $ac_try) 2>&5
21039   ac_status=$?
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); }; }; then
21042   ac_cv_cxx_have_ext_hash_set=gnu
21043 else
21044   echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21046
21047 ac_cv_cxx_have_ext_hash_set=no
21048 fi
21049 rm -f conftest.$ac_objext conftest.$ac_ext
21050   ac_ext=c
21051 ac_cpp='$CPP $CPPFLAGS'
21052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21055
21056
21057 fi
21058 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21059 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21060 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21061
21062 cat >>confdefs.h <<\_ACEOF
21063 #define HAVE_STD_EXT_HASH_SET
21064 _ACEOF
21065
21066 fi
21067 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21068
21069 cat >>confdefs.h <<\_ACEOF
21070 #define HAVE_GNU_EXT_HASH_SET
21071 _ACEOF
21072
21073 fi
21074
21075 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21076 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21077 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21078   echo $ECHO_N "(cached) $ECHO_C" >&6
21079 else
21080
21081
21082
21083   ac_ext=cc
21084 ac_cpp='$CXXCPP $CPPFLAGS'
21085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21088
21089   cat >conftest.$ac_ext <<_ACEOF
21090 #line $LINENO "configure"
21091 /* confdefs.h.  */
21092 _ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h.  */
21096 #include <ext/slist>
21097 #ifdef HAVE_NAMESPACES
21098 using namespace std;
21099 #endif
21100 int
21101 main ()
21102 {
21103 slist<int> s; return 0;
21104   ;
21105   return 0;
21106 }
21107 _ACEOF
21108 rm -f conftest.$ac_objext
21109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21110   (eval $ac_compile) 2>&5
21111   ac_status=$?
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); } &&
21114          { ac_try='test -s conftest.$ac_objext'
21115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116   (eval $ac_try) 2>&5
21117   ac_status=$?
21118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119   (exit $ac_status); }; }; then
21120   ac_cv_cxx_have_ext_slist=std
21121 else
21122   echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.$ac_ext >&5
21124
21125 ac_cv_cxx_have_ext_slist=no
21126 fi
21127 rm -f conftest.$ac_objext conftest.$ac_ext
21128   cat >conftest.$ac_ext <<_ACEOF
21129 #line $LINENO "configure"
21130 /* confdefs.h.  */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h.  */
21135 #include <ext/slist>
21136 #ifdef HAVE_NAMESPACES
21137 using namespace __gnu_cxx;
21138 #endif
21139 int
21140 main ()
21141 {
21142 slist<int> s; return 0;
21143   ;
21144   return 0;
21145 }
21146 _ACEOF
21147 rm -f conftest.$ac_objext
21148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21149   (eval $ac_compile) 2>&5
21150   ac_status=$?
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); } &&
21153          { ac_try='test -s conftest.$ac_objext'
21154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155   (eval $ac_try) 2>&5
21156   ac_status=$?
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); }; }; then
21159   ac_cv_cxx_have_ext_slist=gnu
21160 else
21161   echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21163
21164 ac_cv_cxx_have_ext_slist=no
21165 fi
21166 rm -f conftest.$ac_objext conftest.$ac_ext
21167
21168   ac_ext=c
21169 ac_cpp='$CPP $CPPFLAGS'
21170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21173
21174
21175 fi
21176 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21177 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21178 if test "$ac_cv_cxx_have_ext_slist" = std; then
21179
21180 cat >>confdefs.h <<\_ACEOF
21181 #define HAVE_EXT_SLIST std
21182 _ACEOF
21183
21184 fi
21185 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21186
21187 cat >>confdefs.h <<\_ACEOF
21188 #define HAVE_EXT_SLIST gnu
21189 _ACEOF
21190
21191 fi
21192
21193 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21194 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21195 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21196   echo $ECHO_N "(cached) $ECHO_C" >&6
21197 else
21198
21199
21200
21201   ac_ext=cc
21202 ac_cpp='$CXXCPP $CPPFLAGS'
21203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21206
21207   cat >conftest.$ac_ext <<_ACEOF
21208 #line $LINENO "configure"
21209 /* confdefs.h.  */
21210 _ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h.  */
21214 #include <iterator>
21215 #ifdef HAVE_NAMESPACES
21216 using namespace std;
21217 #endif
21218 int
21219 main ()
21220 {
21221 iterator<int,int,int> t; return 0;
21222   ;
21223   return 0;
21224 }
21225 _ACEOF
21226 rm -f conftest.$ac_objext
21227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21228   (eval $ac_compile) 2>&5
21229   ac_status=$?
21230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231   (exit $ac_status); } &&
21232          { ac_try='test -s conftest.$ac_objext'
21233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21234   (eval $ac_try) 2>&5
21235   ac_status=$?
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); }; }; then
21238   ac_cv_cxx_have_std_iterator=yes
21239 else
21240   echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21242
21243 ac_cv_cxx_have_std_iterator=no
21244 fi
21245 rm -f conftest.$ac_objext conftest.$ac_ext
21246   ac_ext=c
21247 ac_cpp='$CPP $CPPFLAGS'
21248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21251
21252
21253 fi
21254 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21255 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21256 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21257
21258 cat >>confdefs.h <<\_ACEOF
21259 #define HAVE_STD_ITERATOR
21260 _ACEOF
21261
21262 fi
21263
21264 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21265 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21266 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21267   echo $ECHO_N "(cached) $ECHO_C" >&6
21268 else
21269
21270
21271
21272   ac_ext=cc
21273 ac_cpp='$CXXCPP $CPPFLAGS'
21274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21277
21278   cat >conftest.$ac_ext <<_ACEOF
21279 #line $LINENO "configure"
21280 /* confdefs.h.  */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h.  */
21285 #include <iterator>
21286 #ifdef HAVE_NAMESPACES
21287 using namespace std;
21288 #endif
21289 int
21290 main ()
21291 {
21292 bidirectional_iterator<int,int> t; return 0;
21293   ;
21294   return 0;
21295 }
21296 _ACEOF
21297 rm -f conftest.$ac_objext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21299   (eval $ac_compile) 2>&5
21300   ac_status=$?
21301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302   (exit $ac_status); } &&
21303          { ac_try='test -s conftest.$ac_objext'
21304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305   (eval $ac_try) 2>&5
21306   ac_status=$?
21307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308   (exit $ac_status); }; }; then
21309   ac_cv_cxx_have_bi_iterator=yes
21310 else
21311   echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21313
21314 ac_cv_cxx_have_bi_iterator=no
21315 fi
21316 rm -f conftest.$ac_objext conftest.$ac_ext
21317   ac_ext=c
21318 ac_cpp='$CPP $CPPFLAGS'
21319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21322
21323
21324 fi
21325 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21326 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21327 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21328
21329 cat >>confdefs.h <<\_ACEOF
21330 #define HAVE_BI_ITERATOR
21331 _ACEOF
21332
21333 fi
21334
21335 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21336 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21337 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21338   echo $ECHO_N "(cached) $ECHO_C" >&6
21339 else
21340
21341
21342
21343   ac_ext=cc
21344 ac_cpp='$CXXCPP $CPPFLAGS'
21345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21348
21349   cat >conftest.$ac_ext <<_ACEOF
21350 #line $LINENO "configure"
21351 /* confdefs.h.  */
21352 _ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h.  */
21356 #include <iterator>
21357 #ifdef HAVE_NAMESPACES
21358 using namespace std;
21359 #endif
21360 int
21361 main ()
21362 {
21363 forward_iterator<int,int> t; return 0;
21364   ;
21365   return 0;
21366 }
21367 _ACEOF
21368 rm -f conftest.$ac_objext
21369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21370   (eval $ac_compile) 2>&5
21371   ac_status=$?
21372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373   (exit $ac_status); } &&
21374          { ac_try='test -s conftest.$ac_objext'
21375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376   (eval $ac_try) 2>&5
21377   ac_status=$?
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); }; }; then
21380   ac_cv_cxx_have_fwd_iterator=yes
21381 else
21382   echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21384
21385 ac_cv_cxx_have_fwd_iterator=no
21386 fi
21387 rm -f conftest.$ac_objext conftest.$ac_ext
21388   ac_ext=c
21389 ac_cpp='$CPP $CPPFLAGS'
21390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21393
21394
21395 fi
21396 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21397 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21398 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21399
21400 cat >>confdefs.h <<\_ACEOF
21401 #define HAVE_FWD_ITERATOR
21402 _ACEOF
21403
21404 fi
21405
21406
21407 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21408 # for constant arguments.  Useless!
21409 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21410 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21411 if test "${ac_cv_working_alloca_h+set}" = set; then
21412   echo $ECHO_N "(cached) $ECHO_C" >&6
21413 else
21414   cat >conftest.$ac_ext <<_ACEOF
21415 #line $LINENO "configure"
21416 /* confdefs.h.  */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h.  */
21421 #include <alloca.h>
21422 int
21423 main ()
21424 {
21425 char *p = (char *) alloca (2 * sizeof (int));
21426   ;
21427   return 0;
21428 }
21429 _ACEOF
21430 rm -f conftest.$ac_objext conftest$ac_exeext
21431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21432   (eval $ac_link) 2>&5
21433   ac_status=$?
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); } &&
21436          { ac_try='test -s conftest$ac_exeext'
21437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438   (eval $ac_try) 2>&5
21439   ac_status=$?
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); }; }; then
21442   ac_cv_working_alloca_h=yes
21443 else
21444   echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21446
21447 ac_cv_working_alloca_h=no
21448 fi
21449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21450 fi
21451 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21452 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21453 if test $ac_cv_working_alloca_h = yes; then
21454
21455 cat >>confdefs.h <<\_ACEOF
21456 #define HAVE_ALLOCA_H 1
21457 _ACEOF
21458
21459 fi
21460
21461 echo "$as_me:$LINENO: checking for alloca" >&5
21462 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21463 if test "${ac_cv_func_alloca_works+set}" = set; then
21464   echo $ECHO_N "(cached) $ECHO_C" >&6
21465 else
21466   cat >conftest.$ac_ext <<_ACEOF
21467 #line $LINENO "configure"
21468 /* confdefs.h.  */
21469 _ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h.  */
21473 #ifdef __GNUC__
21474 # define alloca __builtin_alloca
21475 #else
21476 # ifdef _MSC_VER
21477 #  include <malloc.h>
21478 #  define alloca _alloca
21479 # else
21480 #  if HAVE_ALLOCA_H
21481 #   include <alloca.h>
21482 #  else
21483 #   ifdef _AIX
21484  #pragma alloca
21485 #   else
21486 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21487 char *alloca ();
21488 #    endif
21489 #   endif
21490 #  endif
21491 # endif
21492 #endif
21493
21494 int
21495 main ()
21496 {
21497 char *p = (char *) alloca (1);
21498   ;
21499   return 0;
21500 }
21501 _ACEOF
21502 rm -f conftest.$ac_objext conftest$ac_exeext
21503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21504   (eval $ac_link) 2>&5
21505   ac_status=$?
21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507   (exit $ac_status); } &&
21508          { ac_try='test -s conftest$ac_exeext'
21509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510   (eval $ac_try) 2>&5
21511   ac_status=$?
21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513   (exit $ac_status); }; }; then
21514   ac_cv_func_alloca_works=yes
21515 else
21516   echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21518
21519 ac_cv_func_alloca_works=no
21520 fi
21521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21522 fi
21523 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21524 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21525
21526 if test $ac_cv_func_alloca_works = yes; then
21527
21528 cat >>confdefs.h <<\_ACEOF
21529 #define HAVE_ALLOCA 1
21530 _ACEOF
21531
21532 else
21533   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21534 # that cause trouble.  Some versions do not even contain alloca or
21535 # contain a buggy version.  If you still want to use their alloca,
21536 # use ar to extract alloca.o from them instead of compiling alloca.c.
21537
21538 ALLOCA=alloca.$ac_objext
21539
21540 cat >>confdefs.h <<\_ACEOF
21541 #define C_ALLOCA 1
21542 _ACEOF
21543
21544
21545 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21546 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21547 if test "${ac_cv_os_cray+set}" = set; then
21548   echo $ECHO_N "(cached) $ECHO_C" >&6
21549 else
21550   cat >conftest.$ac_ext <<_ACEOF
21551 #line $LINENO "configure"
21552 /* confdefs.h.  */
21553 _ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h.  */
21557 #if defined(CRAY) && ! defined(CRAY2)
21558 webecray
21559 #else
21560 wenotbecray
21561 #endif
21562
21563 _ACEOF
21564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21565   $EGREP "webecray" >/dev/null 2>&1; then
21566   ac_cv_os_cray=yes
21567 else
21568   ac_cv_os_cray=no
21569 fi
21570 rm -f conftest*
21571
21572 fi
21573 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21574 echo "${ECHO_T}$ac_cv_os_cray" >&6
21575 if test $ac_cv_os_cray = yes; then
21576   for ac_func in _getb67 GETB67 getb67; do
21577     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21578 echo "$as_me:$LINENO: checking for $ac_func" >&5
21579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21580 if eval "test \"\${$as_ac_var+set}\" = set"; then
21581   echo $ECHO_N "(cached) $ECHO_C" >&6
21582 else
21583   cat >conftest.$ac_ext <<_ACEOF
21584 #line $LINENO "configure"
21585 /* confdefs.h.  */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h.  */
21590 /* System header to define __stub macros and hopefully few prototypes,
21591     which can conflict with char $ac_func (); below.
21592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21593     <limits.h> exists even on freestanding compilers.  */
21594 #ifdef __STDC__
21595 # include <limits.h>
21596 #else
21597 # include <assert.h>
21598 #endif
21599 /* Override any gcc2 internal prototype to avoid an error.  */
21600 #ifdef __cplusplus
21601 extern "C"
21602 {
21603 #endif
21604 /* We use char because int might match the return type of a gcc2
21605    builtin and then its argument prototype would still apply.  */
21606 char $ac_func ();
21607 /* The GNU C library defines this for functions which it implements
21608     to always fail with ENOSYS.  Some functions are actually named
21609     something starting with __ and the normal name is an alias.  */
21610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21611 choke me
21612 #else
21613 char (*f) () = $ac_func;
21614 #endif
21615 #ifdef __cplusplus
21616 }
21617 #endif
21618
21619 int
21620 main ()
21621 {
21622 return f != $ac_func;
21623   ;
21624   return 0;
21625 }
21626 _ACEOF
21627 rm -f conftest.$ac_objext conftest$ac_exeext
21628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21629   (eval $ac_link) 2>&5
21630   ac_status=$?
21631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632   (exit $ac_status); } &&
21633          { ac_try='test -s conftest$ac_exeext'
21634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635   (eval $ac_try) 2>&5
21636   ac_status=$?
21637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638   (exit $ac_status); }; }; then
21639   eval "$as_ac_var=yes"
21640 else
21641   echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21643
21644 eval "$as_ac_var=no"
21645 fi
21646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21647 fi
21648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21650 if test `eval echo '${'$as_ac_var'}'` = yes; then
21651
21652 cat >>confdefs.h <<_ACEOF
21653 #define CRAY_STACKSEG_END $ac_func
21654 _ACEOF
21655
21656     break
21657 fi
21658
21659   done
21660 fi
21661
21662 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21663 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21664 if test "${ac_cv_c_stack_direction+set}" = set; then
21665   echo $ECHO_N "(cached) $ECHO_C" >&6
21666 else
21667   if test "$cross_compiling" = yes; then
21668   ac_cv_c_stack_direction=0
21669 else
21670   cat >conftest.$ac_ext <<_ACEOF
21671 #line $LINENO "configure"
21672 /* confdefs.h.  */
21673 _ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h.  */
21677 int
21678 find_stack_direction ()
21679 {
21680   static char *addr = 0;
21681   auto char dummy;
21682   if (addr == 0)
21683     {
21684       addr = &dummy;
21685       return find_stack_direction ();
21686     }
21687   else
21688     return (&dummy > addr) ? 1 : -1;
21689 }
21690
21691 int
21692 main ()
21693 {
21694   exit (find_stack_direction () < 0);
21695 }
21696 _ACEOF
21697 rm -f conftest$ac_exeext
21698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21699   (eval $ac_link) 2>&5
21700   ac_status=$?
21701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704   (eval $ac_try) 2>&5
21705   ac_status=$?
21706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707   (exit $ac_status); }; }; then
21708   ac_cv_c_stack_direction=1
21709 else
21710   echo "$as_me: program exited with status $ac_status" >&5
21711 echo "$as_me: failed program was:" >&5
21712 sed 's/^/| /' conftest.$ac_ext >&5
21713
21714 ( exit $ac_status )
21715 ac_cv_c_stack_direction=-1
21716 fi
21717 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21718 fi
21719 fi
21720 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21721 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21722
21723 cat >>confdefs.h <<_ACEOF
21724 #define STACK_DIRECTION $ac_cv_c_stack_direction
21725 _ACEOF
21726
21727
21728 fi
21729
21730 if test $ac_cv_c_compiler_gnu = yes; then
21731     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21732 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21733 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21734   echo $ECHO_N "(cached) $ECHO_C" >&6
21735 else
21736     ac_pattern="Autoconf.*'x'"
21737   cat >conftest.$ac_ext <<_ACEOF
21738 #line $LINENO "configure"
21739 /* confdefs.h.  */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h.  */
21744 #include <sgtty.h>
21745 Autoconf TIOCGETP
21746 _ACEOF
21747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21748   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21749   ac_cv_prog_gcc_traditional=yes
21750 else
21751   ac_cv_prog_gcc_traditional=no
21752 fi
21753 rm -f conftest*
21754
21755
21756   if test $ac_cv_prog_gcc_traditional = no; then
21757     cat >conftest.$ac_ext <<_ACEOF
21758 #line $LINENO "configure"
21759 /* confdefs.h.  */
21760 _ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h.  */
21764 #include <termio.h>
21765 Autoconf TCGETA
21766 _ACEOF
21767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21768   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21769   ac_cv_prog_gcc_traditional=yes
21770 fi
21771 rm -f conftest*
21772
21773   fi
21774 fi
21775 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21776 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21777   if test $ac_cv_prog_gcc_traditional = yes; then
21778     CC="$CC -traditional"
21779   fi
21780 fi
21781
21782 echo "$as_me:$LINENO: checking for working memcmp" >&5
21783 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21784 if test "${ac_cv_func_memcmp_working+set}" = set; then
21785   echo $ECHO_N "(cached) $ECHO_C" >&6
21786 else
21787   if test "$cross_compiling" = yes; then
21788   ac_cv_func_memcmp_working=no
21789 else
21790   cat >conftest.$ac_ext <<_ACEOF
21791 #line $LINENO "configure"
21792 /* confdefs.h.  */
21793 _ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h.  */
21797
21798 int
21799 main ()
21800 {
21801
21802   /* Some versions of memcmp are not 8-bit clean.  */
21803   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21804   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21805     exit (1);
21806
21807   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21808      or more and with at least one buffer not starting on a 4-byte boundary.
21809      William Lewis provided this test program.   */
21810   {
21811     char foo[21];
21812     char bar[21];
21813     int i;
21814     for (i = 0; i < 4; i++)
21815       {
21816         char *a = foo + i;
21817         char *b = bar + i;
21818         strcpy (a, "--------01111111");
21819         strcpy (b, "--------10000000");
21820         if (memcmp (a, b, 16) >= 0)
21821           exit (1);
21822       }
21823     exit (0);
21824   }
21825
21826   ;
21827   return 0;
21828 }
21829 _ACEOF
21830 rm -f conftest$ac_exeext
21831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21832   (eval $ac_link) 2>&5
21833   ac_status=$?
21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837   (eval $ac_try) 2>&5
21838   ac_status=$?
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); }; }; then
21841   ac_cv_func_memcmp_working=yes
21842 else
21843   echo "$as_me: program exited with status $ac_status" >&5
21844 echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21846
21847 ( exit $ac_status )
21848 ac_cv_func_memcmp_working=no
21849 fi
21850 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21851 fi
21852 fi
21853 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21854 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21855 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21856
21857
21858
21859 for ac_header in stdlib.h unistd.h
21860 do
21861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21863   echo "$as_me:$LINENO: checking for $ac_header" >&5
21864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21866   echo $ECHO_N "(cached) $ECHO_C" >&6
21867 fi
21868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21870 else
21871   # Is the header compilable?
21872 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21874 cat >conftest.$ac_ext <<_ACEOF
21875 #line $LINENO "configure"
21876 /* confdefs.h.  */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h.  */
21881 $ac_includes_default
21882 #include <$ac_header>
21883 _ACEOF
21884 rm -f conftest.$ac_objext
21885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21886   (eval $ac_compile) 2>&5
21887   ac_status=$?
21888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889   (exit $ac_status); } &&
21890          { ac_try='test -s conftest.$ac_objext'
21891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892   (eval $ac_try) 2>&5
21893   ac_status=$?
21894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895   (exit $ac_status); }; }; then
21896   ac_header_compiler=yes
21897 else
21898   echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901 ac_header_compiler=no
21902 fi
21903 rm -f conftest.$ac_objext conftest.$ac_ext
21904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21905 echo "${ECHO_T}$ac_header_compiler" >&6
21906
21907 # Is the header present?
21908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21910 cat >conftest.$ac_ext <<_ACEOF
21911 #line $LINENO "configure"
21912 /* confdefs.h.  */
21913 _ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h.  */
21917 #include <$ac_header>
21918 _ACEOF
21919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21921   ac_status=$?
21922   grep -v '^ *+' conftest.er1 >conftest.err
21923   rm -f conftest.er1
21924   cat conftest.err >&5
21925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926   (exit $ac_status); } >/dev/null; then
21927   if test -s conftest.err; then
21928     ac_cpp_err=$ac_c_preproc_warn_flag
21929   else
21930     ac_cpp_err=
21931   fi
21932 else
21933   ac_cpp_err=yes
21934 fi
21935 if test -z "$ac_cpp_err"; then
21936   ac_header_preproc=yes
21937 else
21938   echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21940
21941   ac_header_preproc=no
21942 fi
21943 rm -f conftest.err conftest.$ac_ext
21944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21945 echo "${ECHO_T}$ac_header_preproc" >&6
21946
21947 # So?  What about this header?
21948 case $ac_header_compiler:$ac_header_preproc in
21949   yes:no )
21950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21954     (
21955       cat <<\_ASBOX
21956 ## ------------------------------------ ##
21957 ## Report this to bug-autoconf@gnu.org. ##
21958 ## ------------------------------------ ##
21959 _ASBOX
21960     ) |
21961       sed "s/^/$as_me: WARNING:     /" >&2
21962     ;;
21963   no:yes )
21964     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21966     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21970     (
21971       cat <<\_ASBOX
21972 ## ------------------------------------ ##
21973 ## Report this to bug-autoconf@gnu.org. ##
21974 ## ------------------------------------ ##
21975 _ASBOX
21976     ) |
21977       sed "s/^/$as_me: WARNING:     /" >&2
21978     ;;
21979 esac
21980 echo "$as_me:$LINENO: checking for $ac_header" >&5
21981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21983   echo $ECHO_N "(cached) $ECHO_C" >&6
21984 else
21985   eval "$as_ac_Header=$ac_header_preproc"
21986 fi
21987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21989
21990 fi
21991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21992   cat >>confdefs.h <<_ACEOF
21993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21994 _ACEOF
21995
21996 fi
21997
21998 done
21999
22000
22001 for ac_func in getpagesize
22002 do
22003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22004 echo "$as_me:$LINENO: checking for $ac_func" >&5
22005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22006 if eval "test \"\${$as_ac_var+set}\" = set"; then
22007   echo $ECHO_N "(cached) $ECHO_C" >&6
22008 else
22009   cat >conftest.$ac_ext <<_ACEOF
22010 #line $LINENO "configure"
22011 /* confdefs.h.  */
22012 _ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h.  */
22016 /* System header to define __stub macros and hopefully few prototypes,
22017     which can conflict with char $ac_func (); below.
22018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22019     <limits.h> exists even on freestanding compilers.  */
22020 #ifdef __STDC__
22021 # include <limits.h>
22022 #else
22023 # include <assert.h>
22024 #endif
22025 /* Override any gcc2 internal prototype to avoid an error.  */
22026 #ifdef __cplusplus
22027 extern "C"
22028 {
22029 #endif
22030 /* We use char because int might match the return type of a gcc2
22031    builtin and then its argument prototype would still apply.  */
22032 char $ac_func ();
22033 /* The GNU C library defines this for functions which it implements
22034     to always fail with ENOSYS.  Some functions are actually named
22035     something starting with __ and the normal name is an alias.  */
22036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22037 choke me
22038 #else
22039 char (*f) () = $ac_func;
22040 #endif
22041 #ifdef __cplusplus
22042 }
22043 #endif
22044
22045 int
22046 main ()
22047 {
22048 return f != $ac_func;
22049   ;
22050   return 0;
22051 }
22052 _ACEOF
22053 rm -f conftest.$ac_objext conftest$ac_exeext
22054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22055   (eval $ac_link) 2>&5
22056   ac_status=$?
22057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058   (exit $ac_status); } &&
22059          { ac_try='test -s conftest$ac_exeext'
22060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22061   (eval $ac_try) 2>&5
22062   ac_status=$?
22063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064   (exit $ac_status); }; }; then
22065   eval "$as_ac_var=yes"
22066 else
22067   echo "$as_me: failed program was:" >&5
22068 sed 's/^/| /' conftest.$ac_ext >&5
22069
22070 eval "$as_ac_var=no"
22071 fi
22072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22073 fi
22074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22076 if test `eval echo '${'$as_ac_var'}'` = yes; then
22077   cat >>confdefs.h <<_ACEOF
22078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22079 _ACEOF
22080
22081 fi
22082 done
22083
22084 echo "$as_me:$LINENO: checking for working mmap" >&5
22085 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22086 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22087   echo $ECHO_N "(cached) $ECHO_C" >&6
22088 else
22089   if test "$cross_compiling" = yes; then
22090   ac_cv_func_mmap_fixed_mapped=no
22091 else
22092   cat >conftest.$ac_ext <<_ACEOF
22093 #line $LINENO "configure"
22094 /* confdefs.h.  */
22095 _ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h.  */
22099 $ac_includes_default
22100 /* malloc might have been renamed as rpl_malloc. */
22101 #undef malloc
22102
22103 /* Thanks to Mike Haertel and Jim Avera for this test.
22104    Here is a matrix of mmap possibilities:
22105         mmap private not fixed
22106         mmap private fixed at somewhere currently unmapped
22107         mmap private fixed at somewhere already mapped
22108         mmap shared not fixed
22109         mmap shared fixed at somewhere currently unmapped
22110         mmap shared fixed at somewhere already mapped
22111    For private mappings, we should verify that changes cannot be read()
22112    back from the file, nor mmap's back from the file at a different
22113    address.  (There have been systems where private was not correctly
22114    implemented like the infamous i386 svr4.0, and systems where the
22115    VM page cache was not coherent with the file system buffer cache
22116    like early versions of FreeBSD and possibly contemporary NetBSD.)
22117    For shared mappings, we should conversely verify that changes get
22118    propagated back to all the places they're supposed to be.
22119
22120    Grep wants private fixed already mapped.
22121    The main things grep needs to know about mmap are:
22122    * does it exist and is it safe to write into the mmap'd area
22123    * how to use it (BSD variants)  */
22124
22125 #include <fcntl.h>
22126 #include <sys/mman.h>
22127
22128 #if !STDC_HEADERS && !HAVE_STDLIB_H
22129 char *malloc ();
22130 #endif
22131
22132 /* This mess was copied from the GNU getpagesize.h.  */
22133 #if !HAVE_GETPAGESIZE
22134 /* Assume that all systems that can run configure have sys/param.h.  */
22135 # if !HAVE_SYS_PARAM_H
22136 #  define HAVE_SYS_PARAM_H 1
22137 # endif
22138
22139 # ifdef _SC_PAGESIZE
22140 #  define getpagesize() sysconf(_SC_PAGESIZE)
22141 # else /* no _SC_PAGESIZE */
22142 #  if HAVE_SYS_PARAM_H
22143 #   include <sys/param.h>
22144 #   ifdef EXEC_PAGESIZE
22145 #    define getpagesize() EXEC_PAGESIZE
22146 #   else /* no EXEC_PAGESIZE */
22147 #    ifdef NBPG
22148 #     define getpagesize() NBPG * CLSIZE
22149 #     ifndef CLSIZE
22150 #      define CLSIZE 1
22151 #     endif /* no CLSIZE */
22152 #    else /* no NBPG */
22153 #     ifdef NBPC
22154 #      define getpagesize() NBPC
22155 #     else /* no NBPC */
22156 #      ifdef PAGESIZE
22157 #       define getpagesize() PAGESIZE
22158 #      endif /* PAGESIZE */
22159 #     endif /* no NBPC */
22160 #    endif /* no NBPG */
22161 #   endif /* no EXEC_PAGESIZE */
22162 #  else /* no HAVE_SYS_PARAM_H */
22163 #   define getpagesize() 8192   /* punt totally */
22164 #  endif /* no HAVE_SYS_PARAM_H */
22165 # endif /* no _SC_PAGESIZE */
22166
22167 #endif /* no HAVE_GETPAGESIZE */
22168
22169 int
22170 main ()
22171 {
22172   char *data, *data2, *data3;
22173   int i, pagesize;
22174   int fd;
22175
22176   pagesize = getpagesize ();
22177
22178   /* First, make a file with some known garbage in it. */
22179   data = (char *) malloc (pagesize);
22180   if (!data)
22181     exit (1);
22182   for (i = 0; i < pagesize; ++i)
22183     *(data + i) = rand ();
22184   umask (0);
22185   fd = creat ("conftest.mmap", 0600);
22186   if (fd < 0)
22187     exit (1);
22188   if (write (fd, data, pagesize) != pagesize)
22189     exit (1);
22190   close (fd);
22191
22192   /* Next, try to mmap the file at a fixed address which already has
22193      something else allocated at it.  If we can, also make sure that
22194      we see the same garbage.  */
22195   fd = open ("conftest.mmap", O_RDWR);
22196   if (fd < 0)
22197     exit (1);
22198   data2 = (char *) malloc (2 * pagesize);
22199   if (!data2)
22200     exit (1);
22201   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22202   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22203                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22204     exit (1);
22205   for (i = 0; i < pagesize; ++i)
22206     if (*(data + i) != *(data2 + i))
22207       exit (1);
22208
22209   /* Finally, make sure that changes to the mapped area do not
22210      percolate back to the file as seen by read().  (This is a bug on
22211      some variants of i386 svr4.0.)  */
22212   for (i = 0; i < pagesize; ++i)
22213     *(data2 + i) = *(data2 + i) + 1;
22214   data3 = (char *) malloc (pagesize);
22215   if (!data3)
22216     exit (1);
22217   if (read (fd, data3, pagesize) != pagesize)
22218     exit (1);
22219   for (i = 0; i < pagesize; ++i)
22220     if (*(data + i) != *(data3 + i))
22221       exit (1);
22222   close (fd);
22223   exit (0);
22224 }
22225 _ACEOF
22226 rm -f conftest$ac_exeext
22227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22228   (eval $ac_link) 2>&5
22229   ac_status=$?
22230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233   (eval $ac_try) 2>&5
22234   ac_status=$?
22235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236   (exit $ac_status); }; }; then
22237   ac_cv_func_mmap_fixed_mapped=yes
22238 else
22239   echo "$as_me: program exited with status $ac_status" >&5
22240 echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22242
22243 ( exit $ac_status )
22244 ac_cv_func_mmap_fixed_mapped=no
22245 fi
22246 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22247 fi
22248 fi
22249 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22250 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22251 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22252
22253 cat >>confdefs.h <<\_ACEOF
22254 #define HAVE_MMAP 1
22255 _ACEOF
22256
22257 fi
22258 rm -f conftest.mmap
22259
22260 echo "$as_me:$LINENO: checking for mmap of files" >&5
22261 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22262 if test "${ac_cv_func_mmap_file+set}" = set; then
22263   echo $ECHO_N "(cached) $ECHO_C" >&6
22264 else
22265
22266
22267   ac_ext=c
22268 ac_cpp='$CPP $CPPFLAGS'
22269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22272
22273   if test "$cross_compiling" = yes; then
22274   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22275 See \`config.log' for more details." >&5
22276 echo "$as_me: error: cannot run test program while cross compiling
22277 See \`config.log' for more details." >&2;}
22278    { (exit 1); exit 1; }; }
22279 else
22280   cat >conftest.$ac_ext <<_ACEOF
22281 #line $LINENO "configure"
22282 /* confdefs.h.  */
22283 _ACEOF
22284 cat confdefs.h >>conftest.$ac_ext
22285 cat >>conftest.$ac_ext <<_ACEOF
22286 /* end confdefs.h.  */
22287
22288 #ifdef HAVE_SYS_TYPES_H
22289 #include <sys/types.h>
22290 #endif
22291
22292 #ifdef HAVE_SYS_MMAN_H
22293 #include <sys/mman.h>
22294 #endif
22295
22296 #ifdef HAVE_FCNTL_H
22297 #include <fcntl.h>
22298 #endif
22299
22300   int fd;
22301   int main () {
22302   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22303 _ACEOF
22304 rm -f conftest$ac_exeext
22305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22306   (eval $ac_link) 2>&5
22307   ac_status=$?
22308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22311   (eval $ac_try) 2>&5
22312   ac_status=$?
22313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314   (exit $ac_status); }; }; then
22315   ac_cv_func_mmap_file=yes
22316 else
22317   echo "$as_me: program exited with status $ac_status" >&5
22318 echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22320
22321 ( exit $ac_status )
22322 ac_cv_func_mmap_file=no
22323 fi
22324 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22325 fi
22326   ac_ext=c
22327 ac_cpp='$CPP $CPPFLAGS'
22328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22331
22332
22333 fi
22334 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22335 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22336 if test "$ac_cv_func_mmap_file" = yes; then
22337
22338 cat >>confdefs.h <<\_ACEOF
22339 #define HAVE_MMAP_FILE
22340 _ACEOF
22341
22342    MMAP_FILE=yes
22343
22344 fi
22345
22346 if test ${ac_cv_func_mmap_file} = "no"
22347 then
22348         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22349 echo "$as_me: error: mmap() of files required but not found" >&2;}
22350    { (exit 1); exit 1; }; }
22351 fi
22352 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22353 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22354 if test "${ac_cv_header_mmap_anon+set}" = set; then
22355   echo $ECHO_N "(cached) $ECHO_C" >&6
22356 else
22357
22358
22359   ac_ext=c
22360 ac_cpp='$CPP $CPPFLAGS'
22361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22364
22365   cat >conftest.$ac_ext <<_ACEOF
22366 #line $LINENO "configure"
22367 /* confdefs.h.  */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h.  */
22372 #include <sys/mman.h>
22373   #include <unistd.h>
22374   #include <fcntl.h>
22375 int
22376 main ()
22377 {
22378 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22379   ;
22380   return 0;
22381 }
22382 _ACEOF
22383 rm -f conftest.$ac_objext
22384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22385   (eval $ac_compile) 2>&5
22386   ac_status=$?
22387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388   (exit $ac_status); } &&
22389          { ac_try='test -s conftest.$ac_objext'
22390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391   (eval $ac_try) 2>&5
22392   ac_status=$?
22393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394   (exit $ac_status); }; }; then
22395   ac_cv_header_mmap_anon=yes
22396 else
22397   echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22399
22400 ac_cv_header_mmap_anon=no
22401 fi
22402 rm -f conftest.$ac_objext conftest.$ac_ext
22403   ac_ext=c
22404 ac_cpp='$CPP $CPPFLAGS'
22405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22408
22409
22410 fi
22411 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22412 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22413 if test "$ac_cv_header_mmap_anon" = yes; then
22414
22415 cat >>confdefs.h <<\_ACEOF
22416 #define HAVE_MMAP_ANONYMOUS
22417 _ACEOF
22418
22419 fi
22420
22421 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22422 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22423 if test "${ac_cv_type_signal+set}" = set; then
22424   echo $ECHO_N "(cached) $ECHO_C" >&6
22425 else
22426   cat >conftest.$ac_ext <<_ACEOF
22427 #line $LINENO "configure"
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433 #include <sys/types.h>
22434 #include <signal.h>
22435 #ifdef signal
22436 # undef signal
22437 #endif
22438 #ifdef __cplusplus
22439 extern "C" void (*signal (int, void (*)(int)))(int);
22440 #else
22441 void (*signal ()) ();
22442 #endif
22443
22444 int
22445 main ()
22446 {
22447 int i;
22448   ;
22449   return 0;
22450 }
22451 _ACEOF
22452 rm -f conftest.$ac_objext
22453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22454   (eval $ac_compile) 2>&5
22455   ac_status=$?
22456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); } &&
22458          { ac_try='test -s conftest.$ac_objext'
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_type_signal=void
22465 else
22466   echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22468
22469 ac_cv_type_signal=int
22470 fi
22471 rm -f conftest.$ac_objext conftest.$ac_ext
22472 fi
22473 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22474 echo "${ECHO_T}$ac_cv_type_signal" >&6
22475
22476 cat >>confdefs.h <<_ACEOF
22477 #define RETSIGTYPE $ac_cv_type_signal
22478 _ACEOF
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22493 do
22494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22495 echo "$as_me:$LINENO: checking for $ac_func" >&5
22496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22497 if eval "test \"\${$as_ac_var+set}\" = set"; then
22498   echo $ECHO_N "(cached) $ECHO_C" >&6
22499 else
22500   cat >conftest.$ac_ext <<_ACEOF
22501 #line $LINENO "configure"
22502 /* confdefs.h.  */
22503 _ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h.  */
22507 /* System header to define __stub macros and hopefully few prototypes,
22508     which can conflict with char $ac_func (); below.
22509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22510     <limits.h> exists even on freestanding compilers.  */
22511 #ifdef __STDC__
22512 # include <limits.h>
22513 #else
22514 # include <assert.h>
22515 #endif
22516 /* Override any gcc2 internal prototype to avoid an error.  */
22517 #ifdef __cplusplus
22518 extern "C"
22519 {
22520 #endif
22521 /* We use char because int might match the return type of a gcc2
22522    builtin and then its argument prototype would still apply.  */
22523 char $ac_func ();
22524 /* The GNU C library defines this for functions which it implements
22525     to always fail with ENOSYS.  Some functions are actually named
22526     something starting with __ and the normal name is an alias.  */
22527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22528 choke me
22529 #else
22530 char (*f) () = $ac_func;
22531 #endif
22532 #ifdef __cplusplus
22533 }
22534 #endif
22535
22536 int
22537 main ()
22538 {
22539 return f != $ac_func;
22540   ;
22541   return 0;
22542 }
22543 _ACEOF
22544 rm -f conftest.$ac_objext conftest$ac_exeext
22545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22546   (eval $ac_link) 2>&5
22547   ac_status=$?
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); } &&
22550          { ac_try='test -s conftest$ac_exeext'
22551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552   (eval $ac_try) 2>&5
22553   ac_status=$?
22554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555   (exit $ac_status); }; }; then
22556   eval "$as_ac_var=yes"
22557 else
22558   echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22560
22561 eval "$as_ac_var=no"
22562 fi
22563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22564 fi
22565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22567 if test `eval echo '${'$as_ac_var'}'` = yes; then
22568   cat >>confdefs.h <<_ACEOF
22569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22570 _ACEOF
22571
22572 fi
22573 done
22574
22575
22576
22577 echo "$as_me:$LINENO: checking for mmap" >&5
22578 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22579 if test "${ac_cv_func_mmap+set}" = set; then
22580   echo $ECHO_N "(cached) $ECHO_C" >&6
22581 else
22582   cat >conftest.$ac_ext <<_ACEOF
22583 #line $LINENO "configure"
22584 /* confdefs.h.  */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h.  */
22589 /* System header to define __stub macros and hopefully few prototypes,
22590     which can conflict with char mmap (); below.
22591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22592     <limits.h> exists even on freestanding compilers.  */
22593 #ifdef __STDC__
22594 # include <limits.h>
22595 #else
22596 # include <assert.h>
22597 #endif
22598 /* Override any gcc2 internal prototype to avoid an error.  */
22599 #ifdef __cplusplus
22600 extern "C"
22601 {
22602 #endif
22603 /* We use char because int might match the return type of a gcc2
22604    builtin and then its argument prototype would still apply.  */
22605 char mmap ();
22606 /* The GNU C library defines this for functions which it implements
22607     to always fail with ENOSYS.  Some functions are actually named
22608     something starting with __ and the normal name is an alias.  */
22609 #if defined (__stub_mmap) || defined (__stub___mmap)
22610 choke me
22611 #else
22612 char (*f) () = mmap;
22613 #endif
22614 #ifdef __cplusplus
22615 }
22616 #endif
22617
22618 int
22619 main ()
22620 {
22621 return f != mmap;
22622   ;
22623   return 0;
22624 }
22625 _ACEOF
22626 rm -f conftest.$ac_objext conftest$ac_exeext
22627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22628   (eval $ac_link) 2>&5
22629   ac_status=$?
22630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631   (exit $ac_status); } &&
22632          { ac_try='test -s conftest$ac_exeext'
22633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634   (eval $ac_try) 2>&5
22635   ac_status=$?
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); }; }; then
22638   ac_cv_func_mmap=yes
22639 else
22640   echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22642
22643 ac_cv_func_mmap=no
22644 fi
22645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22646 fi
22647 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22648 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22649 if test $ac_cv_func_mmap = yes; then
22650   :
22651 else
22652   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22653 echo "$as_me: error: Function mmap() required but not found" >&2;}
22654    { (exit 1); exit 1; }; }
22655 fi
22656
22657 echo "$as_me:$LINENO: checking for mprotect" >&5
22658 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22659 if test "${ac_cv_func_mprotect+set}" = set; then
22660   echo $ECHO_N "(cached) $ECHO_C" >&6
22661 else
22662   cat >conftest.$ac_ext <<_ACEOF
22663 #line $LINENO "configure"
22664 /* confdefs.h.  */
22665 _ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h.  */
22669 /* System header to define __stub macros and hopefully few prototypes,
22670     which can conflict with char mprotect (); below.
22671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22672     <limits.h> exists even on freestanding compilers.  */
22673 #ifdef __STDC__
22674 # include <limits.h>
22675 #else
22676 # include <assert.h>
22677 #endif
22678 /* Override any gcc2 internal prototype to avoid an error.  */
22679 #ifdef __cplusplus
22680 extern "C"
22681 {
22682 #endif
22683 /* We use char because int might match the return type of a gcc2
22684    builtin and then its argument prototype would still apply.  */
22685 char mprotect ();
22686 /* The GNU C library defines this for functions which it implements
22687     to always fail with ENOSYS.  Some functions are actually named
22688     something starting with __ and the normal name is an alias.  */
22689 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22690 choke me
22691 #else
22692 char (*f) () = mprotect;
22693 #endif
22694 #ifdef __cplusplus
22695 }
22696 #endif
22697
22698 int
22699 main ()
22700 {
22701 return f != mprotect;
22702   ;
22703   return 0;
22704 }
22705 _ACEOF
22706 rm -f conftest.$ac_objext conftest$ac_exeext
22707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22708   (eval $ac_link) 2>&5
22709   ac_status=$?
22710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711   (exit $ac_status); } &&
22712          { ac_try='test -s conftest$ac_exeext'
22713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714   (eval $ac_try) 2>&5
22715   ac_status=$?
22716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717   (exit $ac_status); }; }; then
22718   ac_cv_func_mprotect=yes
22719 else
22720   echo "$as_me: failed program was:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22722
22723 ac_cv_func_mprotect=no
22724 fi
22725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22726 fi
22727 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22728 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22729 if test $ac_cv_func_mprotect = yes; then
22730   :
22731 else
22732   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22733 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22734    { (exit 1); exit 1; }; }
22735 fi
22736
22737
22738
22739 # Check whether --enable-purify or --disable-purify was given.
22740 if test "${enable_purify+set}" = set; then
22741   enableval="$enable_purify"
22742
22743 else
22744   enableval="no"
22745 fi;
22746 if test ${enableval} = "no"
22747 then
22748         ENABLE_PURIFY=
22749
22750 else
22751         ENABLE_PURIFY=ENABLE_PURIFY=1
22752
22753 fi
22754
22755 # Check whether --enable-optimized or --disable-optimized was given.
22756 if test "${enable_optimized+set}" = set; then
22757   enableval="$enable_optimized"
22758
22759 else
22760   enableval=no
22761 fi;
22762 if test ${enableval} = "no"
22763 then
22764         ENABLE_OPTIMIZED=
22765
22766 else
22767         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22768
22769 fi
22770
22771 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22772 if test "${enable_spec2000+set}" = set; then
22773   enableval="$enable_spec2000"
22774
22775 else
22776   enableval=no
22777 fi;
22778 if test ${enableval} = "no"
22779 then
22780         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22781         then
22782                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22783
22784                 USE_SPEC=USE_SPEC=1
22785
22786         else
22787                 USE_SPEC=
22788
22789
22790         fi
22791 else
22792         if test ${enableval} = ""
22793         then
22794                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22795
22796         else
22797                 SPEC_ROOT=${enableval}
22798
22799         fi
22800         USE_SPEC=USE_SPEC=1
22801
22802 fi
22803
22804 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22805 if test "${enable_precompiled_bytecode+set}" = set; then
22806   enableval="$enable_precompiled_bytecode"
22807
22808 else
22809   enableval=no
22810 fi;
22811 if test ${enableval} = "no"
22812 then
22813         UPB=
22814
22815 else
22816         UPB=USE_PRECOMPILED_BYTECODE=1
22817
22818 fi
22819
22820
22821 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22822 if test "${enable_llc_diffs+set}" = set; then
22823   enableval="$enable_llc_diffs"
22824
22825 else
22826   enableval=yes
22827 fi;
22828 if test ${enableval} = "no"
22829 then
22830         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22831
22832 else
22833         DISABLE_LLC_DIFFS=
22834
22835 fi
22836
22837 # Check whether --enable-jit or --disable-jit was given.
22838 if test "${enable_jit+set}" = set; then
22839   enableval="$enable_jit"
22840
22841 else
22842   enableval=default
22843 fi;
22844
22845 if test ${enableval} = "no"
22846 then
22847         JIT=
22848
22849 else
22850         case $target in
22851                 *i*86*)
22852                         JIT=TARGET_HAS_JIT=1
22853
22854                         ;;
22855                 *sparc*)
22856                         JIT=TARGET_HAS_JIT=1
22857
22858                         ;;
22859                 *)
22860                         JIT=
22861
22862                         ;;
22863         esac
22864 fi
22865
22866
22867
22868 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22869 if test "${with_llvmgccdir+set}" = set; then
22870   withval="$with_llvmgccdir"
22871   LLVMGCCDIR=$withval
22872
22873 fi;
22874
22875
22876 # Check whether --with-bcrepos or --without-bcrepos was given.
22877 if test "${with_bcrepos+set}" = set; then
22878   withval="$with_bcrepos"
22879   BCR=$withval
22880
22881 else
22882   BCR=/home/vadve/lattner/LLVMPrograms
22883
22884 fi;
22885
22886
22887 # Check whether --with-papi or --without-papi was given.
22888 if test "${with_papi+set}" = set; then
22889   withval="$with_papi"
22890   PAPIDIR=$withval
22891
22892 else
22893   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22894
22895 fi;
22896
22897
22898 # Check whether --with-purify or --without-purify was given.
22899 if test "${with_purify+set}" = set; then
22900   withval="$with_purify"
22901   PURIFY=$withval
22902
22903 fi;
22904
22905
22906           ac_config_files="$ac_config_files Makefile.config"
22907 cat >confcache <<\_ACEOF
22908 # This file is a shell script that caches the results of configure
22909 # tests run on this system so they can be shared between configure
22910 # scripts and configure runs, see configure's option --config-cache.
22911 # It is not useful on other systems.  If it contains results you don't
22912 # want to keep, you may remove or edit it.
22913 #
22914 # config.status only pays attention to the cache file if you give it
22915 # the --recheck option to rerun configure.
22916 #
22917 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22918 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22919 # following values.
22920
22921 _ACEOF
22922
22923 # The following way of writing the cache mishandles newlines in values,
22924 # but we know of no workaround that is simple, portable, and efficient.
22925 # So, don't put newlines in cache variables' values.
22926 # Ultrix sh set writes to stderr and can't be redirected directly,
22927 # and sets the high bit in the cache file unless we assign to the vars.
22928 {
22929   (set) 2>&1 |
22930     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22931     *ac_space=\ *)
22932       # `set' does not quote correctly, so add quotes (double-quote
22933       # substitution turns \\\\ into \\, and sed turns \\ into \).
22934       sed -n \
22935         "s/'/'\\\\''/g;
22936           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22937       ;;
22938     *)
22939       # `set' quotes correctly as required by POSIX, so do not add quotes.
22940       sed -n \
22941         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22942       ;;
22943     esac;
22944 } |
22945   sed '
22946      t clear
22947      : clear
22948      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22949      t end
22950      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22951      : end' >>confcache
22952 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22953   if test -w $cache_file; then
22954     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22955     cat confcache >$cache_file
22956   else
22957     echo "not updating unwritable cache $cache_file"
22958   fi
22959 fi
22960 rm -f confcache
22961
22962 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22963 # Let make expand exec_prefix.
22964 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22965
22966 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22967 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22968 # trailing colons and then remove the whole line if VPATH becomes empty
22969 # (actually we leave an empty line to preserve line numbers).
22970 if test "x$srcdir" = x.; then
22971   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22972 s/:*\$(srcdir):*/:/;
22973 s/:*\${srcdir}:*/:/;
22974 s/:*@srcdir@:*/:/;
22975 s/^\([^=]*=[    ]*\):*/\1/;
22976 s/:*$//;
22977 s/^[^=]*=[      ]*$//;
22978 }'
22979 fi
22980
22981 DEFS=-DHAVE_CONFIG_H
22982
22983 ac_libobjs=
22984 ac_ltlibobjs=
22985 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22986   # 1. Remove the extension, and $U if already installed.
22987   ac_i=`echo "$ac_i" |
22988          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22989   # 2. Add them.
22990   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22991   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22992 done
22993 LIBOBJS=$ac_libobjs
22994
22995 LTLIBOBJS=$ac_ltlibobjs
22996
22997
22998
22999 : ${CONFIG_STATUS=./config.status}
23000 ac_clean_files_save=$ac_clean_files
23001 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23002 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23003 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23004 cat >$CONFIG_STATUS <<_ACEOF
23005 #! $SHELL
23006 # Generated by $as_me.
23007 # Run this file to recreate the current configuration.
23008 # Compiler output produced by configure, useful for debugging
23009 # configure, is in config.log if it exists.
23010
23011 debug=false
23012 ac_cs_recheck=false
23013 ac_cs_silent=false
23014 SHELL=\${CONFIG_SHELL-$SHELL}
23015 _ACEOF
23016
23017 cat >>$CONFIG_STATUS <<\_ACEOF
23018 ## --------------------- ##
23019 ## M4sh Initialization.  ##
23020 ## --------------------- ##
23021
23022 # Be Bourne compatible
23023 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23024   emulate sh
23025   NULLCMD=:
23026   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23027   # is contrary to our usage.  Disable this feature.
23028   alias -g '${1+"$@"}'='"$@"'
23029 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23030   set -o posix
23031 fi
23032
23033 # Support unset when possible.
23034 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23035   as_unset=unset
23036 else
23037   as_unset=false
23038 fi
23039
23040
23041 # Work around bugs in pre-3.0 UWIN ksh.
23042 $as_unset ENV MAIL MAILPATH
23043 PS1='$ '
23044 PS2='> '
23045 PS4='+ '
23046
23047 # NLS nuisances.
23048 for as_var in \
23049   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23050   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23051   LC_TELEPHONE LC_TIME
23052 do
23053   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23054     eval $as_var=C; export $as_var
23055   else
23056     $as_unset $as_var
23057   fi
23058 done
23059
23060 # Required to use basename.
23061 if expr a : '\(a\)' >/dev/null 2>&1; then
23062   as_expr=expr
23063 else
23064   as_expr=false
23065 fi
23066
23067 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23068   as_basename=basename
23069 else
23070   as_basename=false
23071 fi
23072
23073
23074 # Name of the executable.
23075 as_me=`$as_basename "$0" ||
23076 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23077          X"$0" : 'X\(//\)$' \| \
23078          X"$0" : 'X\(/\)$' \| \
23079          .     : '\(.\)' 2>/dev/null ||
23080 echo X/"$0" |
23081     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23082           /^X\/\(\/\/\)$/{ s//\1/; q; }
23083           /^X\/\(\/\).*/{ s//\1/; q; }
23084           s/.*/./; q'`
23085
23086
23087 # PATH needs CR, and LINENO needs CR and PATH.
23088 # Avoid depending upon Character Ranges.
23089 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23090 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23091 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23092 as_cr_digits='0123456789'
23093 as_cr_alnum=$as_cr_Letters$as_cr_digits
23094
23095 # The user is always right.
23096 if test "${PATH_SEPARATOR+set}" != set; then
23097   echo "#! /bin/sh" >conf$$.sh
23098   echo  "exit 0"   >>conf$$.sh
23099   chmod +x conf$$.sh
23100   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23101     PATH_SEPARATOR=';'
23102   else
23103     PATH_SEPARATOR=:
23104   fi
23105   rm -f conf$$.sh
23106 fi
23107
23108
23109   as_lineno_1=$LINENO
23110   as_lineno_2=$LINENO
23111   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23112   test "x$as_lineno_1" != "x$as_lineno_2" &&
23113   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23114   # Find who we are.  Look in the path if we contain no path at all
23115   # relative or not.
23116   case $0 in
23117     *[\\/]* ) as_myself=$0 ;;
23118     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23119 for as_dir in $PATH
23120 do
23121   IFS=$as_save_IFS
23122   test -z "$as_dir" && as_dir=.
23123   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23124 done
23125
23126        ;;
23127   esac
23128   # We did not find ourselves, most probably we were run as `sh COMMAND'
23129   # in which case we are not to be found in the path.
23130   if test "x$as_myself" = x; then
23131     as_myself=$0
23132   fi
23133   if test ! -f "$as_myself"; then
23134     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23135 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23136    { (exit 1); exit 1; }; }
23137   fi
23138   case $CONFIG_SHELL in
23139   '')
23140     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23141 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23142 do
23143   IFS=$as_save_IFS
23144   test -z "$as_dir" && as_dir=.
23145   for as_base in sh bash ksh sh5; do
23146          case $as_dir in
23147          /*)
23148            if ("$as_dir/$as_base" -c '
23149   as_lineno_1=$LINENO
23150   as_lineno_2=$LINENO
23151   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23152   test "x$as_lineno_1" != "x$as_lineno_2" &&
23153   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23154              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23155              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23156              CONFIG_SHELL=$as_dir/$as_base
23157              export CONFIG_SHELL
23158              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23159            fi;;
23160          esac
23161        done
23162 done
23163 ;;
23164   esac
23165
23166   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23167   # uniformly replaced by the line number.  The first 'sed' inserts a
23168   # line-number line before each line; the second 'sed' does the real
23169   # work.  The second script uses 'N' to pair each line-number line
23170   # with the numbered line, and appends trailing '-' during
23171   # substitution so that $LINENO is not a special case at line end.
23172   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23173   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23174   sed '=' <$as_myself |
23175     sed '
23176       N
23177       s,$,-,
23178       : loop
23179       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23180       t loop
23181       s,-$,,
23182       s,^['$as_cr_digits']*\n,,
23183     ' >$as_me.lineno &&
23184   chmod +x $as_me.lineno ||
23185     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23186 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23187    { (exit 1); exit 1; }; }
23188
23189   # Don't try to exec as it changes $[0], causing all sort of problems
23190   # (the dirname of $[0] is not the place where we might find the
23191   # original and so on.  Autoconf is especially sensible to this).
23192   . ./$as_me.lineno
23193   # Exit status is that of the last command.
23194   exit
23195 }
23196
23197
23198 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23199   *c*,-n*) ECHO_N= ECHO_C='
23200 ' ECHO_T='      ' ;;
23201   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23202   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23203 esac
23204
23205 if expr a : '\(a\)' >/dev/null 2>&1; then
23206   as_expr=expr
23207 else
23208   as_expr=false
23209 fi
23210
23211 rm -f conf$$ conf$$.exe conf$$.file
23212 echo >conf$$.file
23213 if ln -s conf$$.file conf$$ 2>/dev/null; then
23214   # We could just check for DJGPP; but this test a) works b) is more generic
23215   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23216   if test -f conf$$.exe; then
23217     # Don't use ln at all; we don't have any links
23218     as_ln_s='cp -p'
23219   else
23220     as_ln_s='ln -s'
23221   fi
23222 elif ln conf$$.file conf$$ 2>/dev/null; then
23223   as_ln_s=ln
23224 else
23225   as_ln_s='cp -p'
23226 fi
23227 rm -f conf$$ conf$$.exe conf$$.file
23228
23229 if mkdir -p . 2>/dev/null; then
23230   as_mkdir_p=:
23231 else
23232   as_mkdir_p=false
23233 fi
23234
23235 as_executable_p="test -f"
23236
23237 # Sed expression to map a string onto a valid CPP name.
23238 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23239
23240 # Sed expression to map a string onto a valid variable name.
23241 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23242
23243
23244 # IFS
23245 # We need space, tab and new line, in precisely that order.
23246 as_nl='
23247 '
23248 IFS="   $as_nl"
23249
23250 # CDPATH.
23251 $as_unset CDPATH
23252
23253 exec 6>&1
23254
23255 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23256 # report actual input values of CONFIG_FILES etc. instead of their
23257 # values after options handling.  Logging --version etc. is OK.
23258 exec 5>>config.log
23259 {
23260   echo
23261   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23262 ## Running $as_me. ##
23263 _ASBOX
23264 } >&5
23265 cat >&5 <<_CSEOF
23266
23267 This file was extended by [LLVM] $as_me [1.0], which was
23268 generated by GNU Autoconf 2.57.  Invocation command line was
23269
23270   CONFIG_FILES    = $CONFIG_FILES
23271   CONFIG_HEADERS  = $CONFIG_HEADERS
23272   CONFIG_LINKS    = $CONFIG_LINKS
23273   CONFIG_COMMANDS = $CONFIG_COMMANDS
23274   $ $0 $@
23275
23276 _CSEOF
23277 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23278 echo >&5
23279 _ACEOF
23280
23281 # Files that config.status was made for.
23282 if test -n "$ac_config_files"; then
23283   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23284 fi
23285
23286 if test -n "$ac_config_headers"; then
23287   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23288 fi
23289
23290 if test -n "$ac_config_links"; then
23291   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23292 fi
23293
23294 if test -n "$ac_config_commands"; then
23295   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23296 fi
23297
23298 cat >>$CONFIG_STATUS <<\_ACEOF
23299
23300 ac_cs_usage="\
23301 \`$as_me' instantiates files from templates according to the
23302 current configuration.
23303
23304 Usage: $0 [OPTIONS] [FILE]...
23305
23306   -h, --help       print this help, then exit
23307   -V, --version    print version number, then exit
23308   -q, --quiet      do not print progress messages
23309   -d, --debug      don't remove temporary files
23310       --recheck    update $as_me by reconfiguring in the same conditions
23311   --file=FILE[:TEMPLATE]
23312                    instantiate the configuration file FILE
23313   --header=FILE[:TEMPLATE]
23314                    instantiate the configuration header FILE
23315
23316 Configuration files:
23317 $config_files
23318
23319 Configuration headers:
23320 $config_headers
23321
23322 Configuration commands:
23323 $config_commands
23324
23325 Report bugs to <bug-autoconf@gnu.org>."
23326 _ACEOF
23327
23328 cat >>$CONFIG_STATUS <<_ACEOF
23329 ac_cs_version="\\
23330 [LLVM] config.status [1.0]
23331 configured by $0, generated by GNU Autoconf 2.57,
23332   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23333
23334 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23335 Free Software Foundation, Inc.
23336 This config.status script is free software; the Free Software Foundation
23337 gives unlimited permission to copy, distribute and modify it."
23338 srcdir=$srcdir
23339 INSTALL="$INSTALL"
23340 _ACEOF
23341
23342 cat >>$CONFIG_STATUS <<\_ACEOF
23343 # If no file are specified by the user, then we need to provide default
23344 # value.  By we need to know if files were specified by the user.
23345 ac_need_defaults=:
23346 while test $# != 0
23347 do
23348   case $1 in
23349   --*=*)
23350     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23351     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23352     ac_shift=:
23353     ;;
23354   -*)
23355     ac_option=$1
23356     ac_optarg=$2
23357     ac_shift=shift
23358     ;;
23359   *) # This is not an option, so the user has probably given explicit
23360      # arguments.
23361      ac_option=$1
23362      ac_need_defaults=false;;
23363   esac
23364
23365   case $ac_option in
23366   # Handling of the options.
23367 _ACEOF
23368 cat >>$CONFIG_STATUS <<\_ACEOF
23369   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23370     ac_cs_recheck=: ;;
23371   --version | --vers* | -V )
23372     echo "$ac_cs_version"; exit 0 ;;
23373   --he | --h)
23374     # Conflict between --help and --header
23375     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23376 Try \`$0 --help' for more information." >&5
23377 echo "$as_me: error: ambiguous option: $1
23378 Try \`$0 --help' for more information." >&2;}
23379    { (exit 1); exit 1; }; };;
23380   --help | --hel | -h )
23381     echo "$ac_cs_usage"; exit 0 ;;
23382   --debug | --d* | -d )
23383     debug=: ;;
23384   --file | --fil | --fi | --f )
23385     $ac_shift
23386     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23387     ac_need_defaults=false;;
23388   --header | --heade | --head | --hea )
23389     $ac_shift
23390     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23391     ac_need_defaults=false;;
23392   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23393   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23394     ac_cs_silent=: ;;
23395
23396   # This is an error.
23397   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23398 Try \`$0 --help' for more information." >&5
23399 echo "$as_me: error: unrecognized option: $1
23400 Try \`$0 --help' for more information." >&2;}
23401    { (exit 1); exit 1; }; } ;;
23402
23403   *) ac_config_targets="$ac_config_targets $1" ;;
23404
23405   esac
23406   shift
23407 done
23408
23409 ac_configure_extra_args=
23410
23411 if $ac_cs_silent; then
23412   exec 6>/dev/null
23413   ac_configure_extra_args="$ac_configure_extra_args --silent"
23414 fi
23415
23416 _ACEOF
23417 cat >>$CONFIG_STATUS <<_ACEOF
23418 if \$ac_cs_recheck; then
23419   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23420   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23421 fi
23422
23423 _ACEOF
23424
23425 cat >>$CONFIG_STATUS <<_ACEOF
23426 #
23427 # INIT-COMMANDS section.
23428 #
23429
23430 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23480 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23481 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23482 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23484 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23485 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23489 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23490 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23491 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23492 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23493 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23494 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23495 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23496 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23497 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23498 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23499 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23500 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23501 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23502 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23503 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
23504 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23505 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23506 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23507 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23508 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23509 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23510 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23511 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23512 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23513 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23514 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23515 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
23516 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23517 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23518 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23519 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23520 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23521 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23522 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23523 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23524 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23525 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23526 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23527 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23528 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23529 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23530 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23531 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23532 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23533 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23534 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23535 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23536 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23537 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23538 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23539 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23540 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23541 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23542 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23543 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23544 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23545 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23546 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23547 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23548 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23549 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23550 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23551 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23552 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23553 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23554 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23555 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23556 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23557 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23558 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23559 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23560 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23561 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23562 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23563 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23564 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23565 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23566 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23567 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23568 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23569 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23570 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23571 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23572 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23573 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23574 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23575 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23576 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23577 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23578 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23579 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23580 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23581 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23582 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23583 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23584 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23585 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23586 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23587 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23588 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23589 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23590 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23591 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23592 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23593 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23594 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23595 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23596 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23597 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23598
23599 _ACEOF
23600
23601
23602
23603 cat >>$CONFIG_STATUS <<\_ACEOF
23604 for ac_config_target in $ac_config_targets
23605 do
23606   case "$ac_config_target" in
23607   # Handling of arguments.
23608   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23609   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23610   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23611   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23612   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23613   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23614   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23615   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23616   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23617   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23618   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23619   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23620   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23621   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23622   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23623   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23624   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23625   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23626   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23627   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23628   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23629   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23630   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23631   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23632   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23633   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23634   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23635   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23636   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23637   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23638   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23639   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23640   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23641   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23642   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23643   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23644   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23645   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23646   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23647   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23648   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23649   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23650   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23651   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23652   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23653   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23654   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23655   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23656   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23657   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23658   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23659   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23660   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23661   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23662   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23663   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23664   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23665   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23666   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23667   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23668   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23669   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23670   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23671   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23672   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23673   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23674   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23675   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23676   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23677   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23678   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23679   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23680   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23681   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23682   "test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ;;
23683   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23684   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23685   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23686   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23687   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23688   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23689   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23690   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23691   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23692   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23693   "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
23694   "test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ;;
23695   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23696   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23697   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23698   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23699   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23700   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23701   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23702   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23703   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23704   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23705   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23706   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23707   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23708   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23709   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23710   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23711   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23712   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23713   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23714   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23715   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23716   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23717   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23718   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23719   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23720   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23721   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23722   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23723   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23724   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23725   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23726   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23727   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23728   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23729   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23730   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23731   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23732   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23733   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23734   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23735   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23736   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23737   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23738   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23739   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23740   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23741   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23742   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23743   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23744   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23745   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23746   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23747   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23748   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23749   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23750   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23751   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23752   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
23753   "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23754   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23755   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23756   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23757   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23758   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23759   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23760   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23761   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23762   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23763   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23764   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23765   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23766   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23767   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23768   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23769   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23770   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23771   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23772   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23773   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23774   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23775   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23776   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23777   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23778   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23779 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23780    { (exit 1); exit 1; }; };;
23781   esac
23782 done
23783
23784 # If the user did not use the arguments to specify the items to instantiate,
23785 # then the envvar interface is used.  Set only those that are not.
23786 # We use the long form for the default assignment because of an extremely
23787 # bizarre bug on SunOS 4.1.3.
23788 if $ac_need_defaults; then
23789   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23790   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23791   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23792 fi
23793
23794 # Have a temporary directory for convenience.  Make it in the build tree
23795 # simply because there is no reason to put it here, and in addition,
23796 # creating and moving files from /tmp can sometimes cause problems.
23797 # Create a temporary directory, and hook for its removal unless debugging.
23798 $debug ||
23799 {
23800   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23801   trap '{ (exit 1); exit 1; }' 1 2 13 15
23802 }
23803
23804 # Create a (secure) tmp directory for tmp files.
23805
23806 {
23807   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23808   test -n "$tmp" && test -d "$tmp"
23809 }  ||
23810 {
23811   tmp=./confstat$$-$RANDOM
23812   (umask 077 && mkdir $tmp)
23813 } ||
23814 {
23815    echo "$me: cannot create a temporary directory in ." >&2
23816    { (exit 1); exit 1; }
23817 }
23818
23819 _ACEOF
23820
23821 cat >>$CONFIG_STATUS <<_ACEOF
23822
23823 #
23824 # CONFIG_FILES section.
23825 #
23826
23827 # No need to generate the scripts if there are no CONFIG_FILES.
23828 # This happens for instance when ./config.status config.h
23829 if test -n "\$CONFIG_FILES"; then
23830   # Protect against being on the right side of a sed subst in config.status.
23831   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23832    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23833 s,@SHELL@,$SHELL,;t t
23834 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23835 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23836 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23837 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23838 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23839 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23840 s,@exec_prefix@,$exec_prefix,;t t
23841 s,@prefix@,$prefix,;t t
23842 s,@program_transform_name@,$program_transform_name,;t t
23843 s,@bindir@,$bindir,;t t
23844 s,@sbindir@,$sbindir,;t t
23845 s,@libexecdir@,$libexecdir,;t t
23846 s,@datadir@,$datadir,;t t
23847 s,@sysconfdir@,$sysconfdir,;t t
23848 s,@sharedstatedir@,$sharedstatedir,;t t
23849 s,@localstatedir@,$localstatedir,;t t
23850 s,@libdir@,$libdir,;t t
23851 s,@includedir@,$includedir,;t t
23852 s,@oldincludedir@,$oldincludedir,;t t
23853 s,@infodir@,$infodir,;t t
23854 s,@mandir@,$mandir,;t t
23855 s,@build_alias@,$build_alias,;t t
23856 s,@host_alias@,$host_alias,;t t
23857 s,@target_alias@,$target_alias,;t t
23858 s,@DEFS@,$DEFS,;t t
23859 s,@ECHO_C@,$ECHO_C,;t t
23860 s,@ECHO_N@,$ECHO_N,;t t
23861 s,@ECHO_T@,$ECHO_T,;t t
23862 s,@LIBS@,$LIBS,;t t
23863 s,@subdirs@,$subdirs,;t t
23864 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23865 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23866 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23867 s,@build@,$build,;t t
23868 s,@build_cpu@,$build_cpu,;t t
23869 s,@build_vendor@,$build_vendor,;t t
23870 s,@build_os@,$build_os,;t t
23871 s,@host@,$host,;t t
23872 s,@host_cpu@,$host_cpu,;t t
23873 s,@host_vendor@,$host_vendor,;t t
23874 s,@host_os@,$host_os,;t t
23875 s,@target@,$target,;t t
23876 s,@target_cpu@,$target_cpu,;t t
23877 s,@target_vendor@,$target_vendor,;t t
23878 s,@target_os@,$target_os,;t t
23879 s,@OS@,$OS,;t t
23880 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23881 s,@ARCH@,$ARCH,;t t
23882 s,@CXX@,$CXX,;t t
23883 s,@CXXFLAGS@,$CXXFLAGS,;t t
23884 s,@LDFLAGS@,$LDFLAGS,;t t
23885 s,@CPPFLAGS@,$CPPFLAGS,;t t
23886 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23887 s,@EXEEXT@,$EXEEXT,;t t
23888 s,@OBJEXT@,$OBJEXT,;t t
23889 s,@CC@,$CC,;t t
23890 s,@CFLAGS@,$CFLAGS,;t t
23891 s,@ac_ct_CC@,$ac_ct_CC,;t t
23892 s,@CPP@,$CPP,;t t
23893 s,@ifGNUmake@,$ifGNUmake,;t t
23894 s,@LEX@,$LEX,;t t
23895 s,@LEXLIB@,$LEXLIB,;t t
23896 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23897 s,@YACC@,$YACC,;t t
23898 s,@EGREP@,$EGREP,;t t
23899 s,@LN_S@,$LN_S,;t t
23900 s,@ECHO@,$ECHO,;t t
23901 s,@AR@,$AR,;t t
23902 s,@ac_ct_AR@,$ac_ct_AR,;t t
23903 s,@RANLIB@,$RANLIB,;t t
23904 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23905 s,@STRIP@,$STRIP,;t t
23906 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23907 s,@CXXCPP@,$CXXCPP,;t t
23908 s,@F77@,$F77,;t t
23909 s,@FFLAGS@,$FFLAGS,;t t
23910 s,@ac_ct_F77@,$ac_ct_F77,;t t
23911 s,@LIBTOOL@,$LIBTOOL,;t t
23912 s,@RPWD@,$RPWD,;t t
23913 s,@SED@,$SED,;t t
23914 s,@RM@,$RM,;t t
23915 s,@MKDIR@,$MKDIR,;t t
23916 s,@DATE@,$DATE,;t t
23917 s,@MV@,$MV,;t t
23918 s,@DOT@,$DOT,;t t
23919 s,@ETAGS@,$ETAGS,;t t
23920 s,@PYTHON@,$PYTHON,;t t
23921 s,@QMTEST@,$QMTEST,;t t
23922 s,@ALLOCA@,$ALLOCA,;t t
23923 s,@LIBOBJS@,$LIBOBJS,;t t
23924 s,@MMAP_FILE@,$MMAP_FILE,;t t
23925 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23926 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23927 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23928 s,@USE_SPEC@,$USE_SPEC,;t t
23929 s,@UPB@,$UPB,;t t
23930 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23931 s,@JIT@,$JIT,;t t
23932 s,@BCR@,$BCR,;t t
23933 s,@PAPIDIR@,$PAPIDIR,;t t
23934 s,@PURIFY@,$PURIFY,;t t
23935 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23936 CEOF
23937
23938 _ACEOF
23939
23940   cat >>$CONFIG_STATUS <<\_ACEOF
23941   # Split the substitutions into bite-sized pieces for seds with
23942   # small command number limits, like on Digital OSF/1 and HP-UX.
23943   ac_max_sed_lines=48
23944   ac_sed_frag=1 # Number of current file.
23945   ac_beg=1 # First line for current file.
23946   ac_end=$ac_max_sed_lines # Line after last line for current file.
23947   ac_more_lines=:
23948   ac_sed_cmds=
23949   while $ac_more_lines; do
23950     if test $ac_beg -gt 1; then
23951       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23952     else
23953       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23954     fi
23955     if test ! -s $tmp/subs.frag; then
23956       ac_more_lines=false
23957     else
23958       # The purpose of the label and of the branching condition is to
23959       # speed up the sed processing (if there are no `@' at all, there
23960       # is no need to browse any of the substitutions).
23961       # These are the two extra sed commands mentioned above.
23962       (echo ':t
23963   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23964       if test -z "$ac_sed_cmds"; then
23965         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23966       else
23967         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23968       fi
23969       ac_sed_frag=`expr $ac_sed_frag + 1`
23970       ac_beg=$ac_end
23971       ac_end=`expr $ac_end + $ac_max_sed_lines`
23972     fi
23973   done
23974   if test -z "$ac_sed_cmds"; then
23975     ac_sed_cmds=cat
23976   fi
23977 fi # test -n "$CONFIG_FILES"
23978
23979 _ACEOF
23980 cat >>$CONFIG_STATUS <<\_ACEOF
23981 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23982   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23983   case $ac_file in
23984   - | *:- | *:-:* ) # input from stdin
23985         cat >$tmp/stdin
23986         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23987         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23988   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23989         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23990   * )   ac_file_in=$ac_file.in ;;
23991   esac
23992
23993   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23994   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23996          X"$ac_file" : 'X\(//\)[^/]' \| \
23997          X"$ac_file" : 'X\(//\)$' \| \
23998          X"$ac_file" : 'X\(/\)' \| \
23999          .     : '\(.\)' 2>/dev/null ||
24000 echo X"$ac_file" |
24001     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24002           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24003           /^X\(\/\/\)$/{ s//\1/; q; }
24004           /^X\(\/\).*/{ s//\1/; q; }
24005           s/.*/./; q'`
24006   { if $as_mkdir_p; then
24007     mkdir -p "$ac_dir"
24008   else
24009     as_dir="$ac_dir"
24010     as_dirs=
24011     while test ! -d "$as_dir"; do
24012       as_dirs="$as_dir $as_dirs"
24013       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24015          X"$as_dir" : 'X\(//\)[^/]' \| \
24016          X"$as_dir" : 'X\(//\)$' \| \
24017          X"$as_dir" : 'X\(/\)' \| \
24018          .     : '\(.\)' 2>/dev/null ||
24019 echo X"$as_dir" |
24020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24021           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24022           /^X\(\/\/\)$/{ s//\1/; q; }
24023           /^X\(\/\).*/{ s//\1/; q; }
24024           s/.*/./; q'`
24025     done
24026     test ! -n "$as_dirs" || mkdir $as_dirs
24027   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24028 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24029    { (exit 1); exit 1; }; }; }
24030
24031   ac_builddir=.
24032
24033 if test "$ac_dir" != .; then
24034   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24035   # A "../" for each directory in $ac_dir_suffix.
24036   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24037 else
24038   ac_dir_suffix= ac_top_builddir=
24039 fi
24040
24041 case $srcdir in
24042   .)  # No --srcdir option.  We are building in place.
24043     ac_srcdir=.
24044     if test -z "$ac_top_builddir"; then
24045        ac_top_srcdir=.
24046     else
24047        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24048     fi ;;
24049   [\\/]* | ?:[\\/]* )  # Absolute path.
24050     ac_srcdir=$srcdir$ac_dir_suffix;
24051     ac_top_srcdir=$srcdir ;;
24052   *) # Relative path.
24053     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24054     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24055 esac
24056 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24057 # absolute.
24058 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24059 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24060 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24061 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24062
24063
24064   case $INSTALL in
24065   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24066   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24067   esac
24068
24069   if test x"$ac_file" != x-; then
24070     { echo "$as_me:$LINENO: creating $ac_file" >&5
24071 echo "$as_me: creating $ac_file" >&6;}
24072     rm -f "$ac_file"
24073   fi
24074   # Let's still pretend it is `configure' which instantiates (i.e., don't
24075   # use $as_me), people would be surprised to read:
24076   #    /* config.h.  Generated by config.status.  */
24077   if test x"$ac_file" = x-; then
24078     configure_input=
24079   else
24080     configure_input="$ac_file.  "
24081   fi
24082   configure_input=$configure_input"Generated from `echo $ac_file_in |
24083                                      sed 's,.*/,,'` by configure."
24084
24085   # First look for the input files in the build tree, otherwise in the
24086   # src tree.
24087   ac_file_inputs=`IFS=:
24088     for f in $ac_file_in; do
24089       case $f in
24090       -) echo $tmp/stdin ;;
24091       [\\/$]*)
24092          # Absolute (can't be DOS-style, as IFS=:)
24093          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24094 echo "$as_me: error: cannot find input file: $f" >&2;}
24095    { (exit 1); exit 1; }; }
24096          echo $f;;
24097       *) # Relative
24098          if test -f "$f"; then
24099            # Build tree
24100            echo $f
24101          elif test -f "$srcdir/$f"; then
24102            # Source tree
24103            echo $srcdir/$f
24104          else
24105            # /dev/null tree
24106            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24107 echo "$as_me: error: cannot find input file: $f" >&2;}
24108    { (exit 1); exit 1; }; }
24109          fi;;
24110       esac
24111     done` || { (exit 1); exit 1; }
24112 _ACEOF
24113 cat >>$CONFIG_STATUS <<_ACEOF
24114   sed "$ac_vpsub
24115 $extrasub
24116 _ACEOF
24117 cat >>$CONFIG_STATUS <<\_ACEOF
24118 :t
24119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24120 s,@configure_input@,$configure_input,;t t
24121 s,@srcdir@,$ac_srcdir,;t t
24122 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24123 s,@top_srcdir@,$ac_top_srcdir,;t t
24124 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24125 s,@builddir@,$ac_builddir,;t t
24126 s,@abs_builddir@,$ac_abs_builddir,;t t
24127 s,@top_builddir@,$ac_top_builddir,;t t
24128 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24129 s,@INSTALL@,$ac_INSTALL,;t t
24130 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24131   rm -f $tmp/stdin
24132   if test x"$ac_file" != x-; then
24133     mv $tmp/out $ac_file
24134   else
24135     cat $tmp/out
24136     rm -f $tmp/out
24137   fi
24138
24139 done
24140 _ACEOF
24141 cat >>$CONFIG_STATUS <<\_ACEOF
24142
24143 #
24144 # CONFIG_HEADER section.
24145 #
24146
24147 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24148 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24149 #
24150 # ac_d sets the value in "#define NAME VALUE" lines.
24151 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24152 ac_dB='[        ].*$,\1#\2'
24153 ac_dC=' '
24154 ac_dD=',;t'
24155 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24156 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24157 ac_uB='$,\1#\2define\3'
24158 ac_uC=' '
24159 ac_uD=',;t'
24160
24161 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24162   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24163   case $ac_file in
24164   - | *:- | *:-:* ) # input from stdin
24165         cat >$tmp/stdin
24166         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24167         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24168   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24169         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24170   * )   ac_file_in=$ac_file.in ;;
24171   esac
24172
24173   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24174 echo "$as_me: creating $ac_file" >&6;}
24175
24176   # First look for the input files in the build tree, otherwise in the
24177   # src tree.
24178   ac_file_inputs=`IFS=:
24179     for f in $ac_file_in; do
24180       case $f in
24181       -) echo $tmp/stdin ;;
24182       [\\/$]*)
24183          # Absolute (can't be DOS-style, as IFS=:)
24184          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24185 echo "$as_me: error: cannot find input file: $f" >&2;}
24186    { (exit 1); exit 1; }; }
24187          echo $f;;
24188       *) # Relative
24189          if test -f "$f"; then
24190            # Build tree
24191            echo $f
24192          elif test -f "$srcdir/$f"; then
24193            # Source tree
24194            echo $srcdir/$f
24195          else
24196            # /dev/null tree
24197            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24198 echo "$as_me: error: cannot find input file: $f" >&2;}
24199    { (exit 1); exit 1; }; }
24200          fi;;
24201       esac
24202     done` || { (exit 1); exit 1; }
24203   # Remove the trailing spaces.
24204   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24205
24206 _ACEOF
24207
24208 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24209 # `conftest.undefs', that substitutes the proper values into
24210 # config.h.in to produce config.h.  The first handles `#define'
24211 # templates, and the second `#undef' templates.
24212 # And first: Protect against being on the right side of a sed subst in
24213 # config.status.  Protect against being in an unquoted here document
24214 # in config.status.
24215 rm -f conftest.defines conftest.undefs
24216 # Using a here document instead of a string reduces the quoting nightmare.
24217 # Putting comments in sed scripts is not portable.
24218 #
24219 # `end' is used to avoid that the second main sed command (meant for
24220 # 0-ary CPP macros) applies to n-ary macro definitions.
24221 # See the Autoconf documentation for `clear'.
24222 cat >confdef2sed.sed <<\_ACEOF
24223 s/[\\&,]/\\&/g
24224 s,[\\$`],\\&,g
24225 t clear
24226 : clear
24227 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24228 t end
24229 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24230 : end
24231 _ACEOF
24232 # If some macros were called several times there might be several times
24233 # the same #defines, which is useless.  Nevertheless, we may not want to
24234 # sort them, since we want the *last* AC-DEFINE to be honored.
24235 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24236 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24237 rm -f confdef2sed.sed
24238
24239 # This sed command replaces #undef with comments.  This is necessary, for
24240 # example, in the case of _POSIX_SOURCE, which is predefined and required
24241 # on some systems where configure will not decide to define it.
24242 cat >>conftest.undefs <<\_ACEOF
24243 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24244 _ACEOF
24245
24246 # Break up conftest.defines because some shells have a limit on the size
24247 # of here documents, and old seds have small limits too (100 cmds).
24248 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24249 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24250 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24251 echo '  :' >>$CONFIG_STATUS
24252 rm -f conftest.tail
24253 while grep . conftest.defines >/dev/null
24254 do
24255   # Write a limited-size here document to $tmp/defines.sed.
24256   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24257   # Speed up: don't consider the non `#define' lines.
24258   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24259   # Work around the forget-to-reset-the-flag bug.
24260   echo 't clr' >>$CONFIG_STATUS
24261   echo ': clr' >>$CONFIG_STATUS
24262   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24263   echo 'CEOF
24264   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24265   rm -f $tmp/in
24266   mv $tmp/out $tmp/in
24267 ' >>$CONFIG_STATUS
24268   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24269   rm -f conftest.defines
24270   mv conftest.tail conftest.defines
24271 done
24272 rm -f conftest.defines
24273 echo '  fi # grep' >>$CONFIG_STATUS
24274 echo >>$CONFIG_STATUS
24275
24276 # Break up conftest.undefs because some shells have a limit on the size
24277 # of here documents, and old seds have small limits too (100 cmds).
24278 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24279 rm -f conftest.tail
24280 while grep . conftest.undefs >/dev/null
24281 do
24282   # Write a limited-size here document to $tmp/undefs.sed.
24283   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24284   # Speed up: don't consider the non `#undef'
24285   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24286   # Work around the forget-to-reset-the-flag bug.
24287   echo 't clr' >>$CONFIG_STATUS
24288   echo ': clr' >>$CONFIG_STATUS
24289   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24290   echo 'CEOF
24291   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24292   rm -f $tmp/in
24293   mv $tmp/out $tmp/in
24294 ' >>$CONFIG_STATUS
24295   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24296   rm -f conftest.undefs
24297   mv conftest.tail conftest.undefs
24298 done
24299 rm -f conftest.undefs
24300
24301 cat >>$CONFIG_STATUS <<\_ACEOF
24302   # Let's still pretend it is `configure' which instantiates (i.e., don't
24303   # use $as_me), people would be surprised to read:
24304   #    /* config.h.  Generated by config.status.  */
24305   if test x"$ac_file" = x-; then
24306     echo "/* Generated by configure.  */" >$tmp/config.h
24307   else
24308     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24309   fi
24310   cat $tmp/in >>$tmp/config.h
24311   rm -f $tmp/in
24312   if test x"$ac_file" != x-; then
24313     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24314       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24315 echo "$as_me: $ac_file is unchanged" >&6;}
24316     else
24317       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24319          X"$ac_file" : 'X\(//\)[^/]' \| \
24320          X"$ac_file" : 'X\(//\)$' \| \
24321          X"$ac_file" : 'X\(/\)' \| \
24322          .     : '\(.\)' 2>/dev/null ||
24323 echo X"$ac_file" |
24324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24325           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24326           /^X\(\/\/\)$/{ s//\1/; q; }
24327           /^X\(\/\).*/{ s//\1/; q; }
24328           s/.*/./; q'`
24329       { if $as_mkdir_p; then
24330     mkdir -p "$ac_dir"
24331   else
24332     as_dir="$ac_dir"
24333     as_dirs=
24334     while test ! -d "$as_dir"; do
24335       as_dirs="$as_dir $as_dirs"
24336       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24338          X"$as_dir" : 'X\(//\)[^/]' \| \
24339          X"$as_dir" : 'X\(//\)$' \| \
24340          X"$as_dir" : 'X\(/\)' \| \
24341          .     : '\(.\)' 2>/dev/null ||
24342 echo X"$as_dir" |
24343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24344           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24345           /^X\(\/\/\)$/{ s//\1/; q; }
24346           /^X\(\/\).*/{ s//\1/; q; }
24347           s/.*/./; q'`
24348     done
24349     test ! -n "$as_dirs" || mkdir $as_dirs
24350   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24351 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24352    { (exit 1); exit 1; }; }; }
24353
24354       rm -f $ac_file
24355       mv $tmp/config.h $ac_file
24356     fi
24357   else
24358     cat $tmp/config.h
24359     rm -f $tmp/config.h
24360   fi
24361 done
24362 _ACEOF
24363 cat >>$CONFIG_STATUS <<\_ACEOF
24364
24365 #
24366 # CONFIG_COMMANDS section.
24367 #
24368 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24369   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24370   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24371   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24372 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24373          X"$ac_dest" : 'X\(//\)[^/]' \| \
24374          X"$ac_dest" : 'X\(//\)$' \| \
24375          X"$ac_dest" : 'X\(/\)' \| \
24376          .     : '\(.\)' 2>/dev/null ||
24377 echo X"$ac_dest" |
24378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24379           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24380           /^X\(\/\/\)$/{ s//\1/; q; }
24381           /^X\(\/\).*/{ s//\1/; q; }
24382           s/.*/./; q'`
24383   ac_builddir=.
24384
24385 if test "$ac_dir" != .; then
24386   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24387   # A "../" for each directory in $ac_dir_suffix.
24388   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24389 else
24390   ac_dir_suffix= ac_top_builddir=
24391 fi
24392
24393 case $srcdir in
24394   .)  # No --srcdir option.  We are building in place.
24395     ac_srcdir=.
24396     if test -z "$ac_top_builddir"; then
24397        ac_top_srcdir=.
24398     else
24399        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24400     fi ;;
24401   [\\/]* | ?:[\\/]* )  # Absolute path.
24402     ac_srcdir=$srcdir$ac_dir_suffix;
24403     ac_top_srcdir=$srcdir ;;
24404   *) # Relative path.
24405     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24406     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24407 esac
24408 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24409 # absolute.
24410 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24411 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24412 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24413 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24414
24415
24416   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24417 echo "$as_me: executing $ac_dest commands" >&6;}
24418   case $ac_dest in
24419     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24420     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24421     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24422     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24423     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24424     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24425     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24426     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24427     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24428     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24429     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24430     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24431     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24432     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24433     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24434     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24435     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24436     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24437     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24438     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24439     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24440     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24441     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24442     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24443     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24444     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24445     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24446     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24447     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24448     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24449     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24450     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24451     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24452     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24453     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24454     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24455     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24456     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24457     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24458     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24459     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24460     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24461     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24462     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24463     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24464     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24465     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24466     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24467     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24468     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24469     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24470     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24471     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24472     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24473     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24474     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24475     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24476     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24477     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24478     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24479     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24480     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24481     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24482     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24483     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24484     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24485     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24486     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24487     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24488     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24489     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24490     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 ;;
24491     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 ;;
24492     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 ;;
24493     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 ;;
24494     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 ;;
24495     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 ;;
24496     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 ;;
24497     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 ;;
24498     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 ;;
24499     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 ;;
24500     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 ;;
24501     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 ;;
24502     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 ;;
24503     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 ;;
24504     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 ;;
24505     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 ;;
24506     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 ;;
24507     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 ;;
24508     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 ;;
24509     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24510     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24511     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24512     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24513     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 ;;
24514     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 ;;
24515     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 ;;
24516     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24517     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 ;;
24518     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 ;;
24519     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 ;;
24520     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 ;;
24521     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 ;;
24522     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 ;;
24523     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 ;;
24524     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 ;;
24525     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 ;;
24526     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 ;;
24527     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 ;;
24528     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 ;;
24529     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 ;;
24530     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 ;;
24531     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 ;;
24532     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 ;;
24533     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 ;;
24534     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 ;;
24535     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 ;;
24536     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 ;;
24537     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 ;;
24538     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 ;;
24539     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 ;;
24540     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 ;;
24541     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 ;;
24542     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 ;;
24543     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 ;;
24544     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 ;;
24545     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 ;;
24546     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 ;;
24547     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 ;;
24548     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 ;;
24549     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24550     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24551     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24552     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24553     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 ;;
24554     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 ;;
24555     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 ;;
24556     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 ;;
24557     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24558     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24559     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 ;;
24560     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24561     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 ;;
24562     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 ;;
24563     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 ;;
24564     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24565     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24566     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24567     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24568     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24569     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24570     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24571     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24572     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24573     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24574     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24575     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24576     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24577     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24578     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24579     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24580     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24581     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24582     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24583     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24584     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24585     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24586     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24587   esac
24588 done
24589 _ACEOF
24590
24591 cat >>$CONFIG_STATUS <<\_ACEOF
24592
24593 { (exit 0); exit 0; }
24594 _ACEOF
24595 chmod +x $CONFIG_STATUS
24596 ac_clean_files=$ac_clean_files_save
24597
24598
24599 # configure is writing to config.log, and then calls config.status.
24600 # config.status does its own redirection, appending to config.log.
24601 # Unfortunately, on DOS this fails, as config.log is still kept open
24602 # by configure, so config.status won't be able to write to it; its
24603 # output is simply discarded.  So we exec the FD to /dev/null,
24604 # effectively closing config.log, so it can be properly (re)opened and
24605 # appended to by config.status.  When coming back to configure, we
24606 # need to make the FD available again.
24607 if test "$no_create" != yes; then
24608   ac_cs_success=:
24609   ac_config_status_args=
24610   test "$silent" = yes &&
24611     ac_config_status_args="$ac_config_status_args --quiet"
24612   exec 5>/dev/null
24613   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24614   exec 5>>config.log
24615   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24616   # would make configure fail if this is the last instruction.
24617   $ac_cs_success || { (exit 1); exit 1; }
24618 fi
24619
24620 #
24621 # CONFIG_SUBDIRS section.
24622 #
24623 if test "$no_recursion" != yes; then
24624
24625   # Remove --cache-file and --srcdir arguments so they do not pile up.
24626   ac_sub_configure_args=
24627   ac_prev=
24628   for ac_arg in $ac_configure_args; do
24629     if test -n "$ac_prev"; then
24630       ac_prev=
24631       continue
24632     fi
24633     case $ac_arg in
24634     -cache-file | --cache-file | --cache-fil | --cache-fi \
24635     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24636       ac_prev=cache_file ;;
24637     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24638     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24639     | --c=*)
24640       ;;
24641     --config-cache | -C)
24642       ;;
24643     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24644       ac_prev=srcdir ;;
24645     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24646       ;;
24647     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24648       ac_prev=prefix ;;
24649     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24650       ;;
24651     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24652     esac
24653   done
24654
24655   # Always prepend --prefix to ensure using the same prefix
24656   # in subdir configurations.
24657   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24658
24659   ac_popdir=`pwd`
24660   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24661
24662     # Do not complain, so a configure script can configure whichever
24663     # parts of a large source tree are present.
24664     test -d $srcdir/$ac_dir || continue
24665
24666     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24667 echo "$as_me: configuring in $ac_dir" >&6;}
24668     { if $as_mkdir_p; then
24669     mkdir -p "$ac_dir"
24670   else
24671     as_dir="$ac_dir"
24672     as_dirs=
24673     while test ! -d "$as_dir"; do
24674       as_dirs="$as_dir $as_dirs"
24675       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24676 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24677          X"$as_dir" : 'X\(//\)[^/]' \| \
24678          X"$as_dir" : 'X\(//\)$' \| \
24679          X"$as_dir" : 'X\(/\)' \| \
24680          .     : '\(.\)' 2>/dev/null ||
24681 echo X"$as_dir" |
24682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24683           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24684           /^X\(\/\/\)$/{ s//\1/; q; }
24685           /^X\(\/\).*/{ s//\1/; q; }
24686           s/.*/./; q'`
24687     done
24688     test ! -n "$as_dirs" || mkdir $as_dirs
24689   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24690 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24691    { (exit 1); exit 1; }; }; }
24692
24693     ac_builddir=.
24694
24695 if test "$ac_dir" != .; then
24696   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24697   # A "../" for each directory in $ac_dir_suffix.
24698   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24699 else
24700   ac_dir_suffix= ac_top_builddir=
24701 fi
24702
24703 case $srcdir in
24704   .)  # No --srcdir option.  We are building in place.
24705     ac_srcdir=.
24706     if test -z "$ac_top_builddir"; then
24707        ac_top_srcdir=.
24708     else
24709        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24710     fi ;;
24711   [\\/]* | ?:[\\/]* )  # Absolute path.
24712     ac_srcdir=$srcdir$ac_dir_suffix;
24713     ac_top_srcdir=$srcdir ;;
24714   *) # Relative path.
24715     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24716     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24717 esac
24718 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24719 # absolute.
24720 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24721 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24722 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24723 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24724
24725
24726     cd $ac_dir
24727
24728     # Check for guested configure; otherwise get Cygnus style configure.
24729     if test -f $ac_srcdir/configure.gnu; then
24730       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24731     elif test -f $ac_srcdir/configure; then
24732       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24733     elif test -f $ac_srcdir/configure.in; then
24734       ac_sub_configure=$ac_configure
24735     else
24736       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24737 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24738       ac_sub_configure=
24739     fi
24740
24741     # The recursion is here.
24742     if test -n "$ac_sub_configure"; then
24743       # Make the cache file name correct relative to the subdirectory.
24744       case $cache_file in
24745       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24746       *) # Relative path.
24747         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24748       esac
24749
24750       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24751 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24752       # The eval makes quoting arguments work.
24753       eval $ac_sub_configure $ac_sub_configure_args \
24754            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24755         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24756 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24757    { (exit 1); exit 1; }; }
24758     fi
24759
24760     cd $ac_popdir
24761   done
24762 fi
24763