blob: 6271d4b81e8bc57531cdf3df521054f489b69796 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell0c38eaf2003-09-10 15:17:25 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
John Criswell7a73b802003-06-30 21:59:07 +00004#
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.
John Criswell0c38eaf2003-09-10 15:17:25 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if 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+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for 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
45do
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
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo 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.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if 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
99fi
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
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
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
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
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
154done
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
189case `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= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if 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
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_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.
232as_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.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if 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
296fi
297
298if 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 :
302else
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
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 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
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
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
382fi
383fi
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.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${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.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
425PACKAGE_VERSION='[1.0]'
426PACKAGE_STRING='[LLVM] [1.0]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
John Criswell7ec78aa2003-10-16 01:49:00 +0000429ac_subdirs_all="$ac_subdirs_all projects/sample"
John Criswell12399a12003-09-30 15:55:44 +0000430ac_subdirs_all="$ac_subdirs_all projects/reopt"
John Criswell559a6c12003-09-30 16:31:48 +0000431ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000432# Factoring default headers for most tests.
433ac_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
469ac_unique_file=""Makefile.config.in""
John Criswell55126592003-10-07 21:57:39 +0000470ac_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'
John Criswell0c38eaf2003-09-10 15:17:25 +0000471ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000472
473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
476# The variables have the same names as the options, with
477# dashes changed to underlines.
478cache_file=/dev/null
479exec_prefix=NONE
480no_create=
481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
489verbose=
490x_includes=NONE
491x_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.
498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
511ac_prev=
512for ac_option
513do
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
785Try \`$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
808done
809
810if 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; }; }
814fi
815
816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
818do
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
825done
826
827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
830do
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
837done
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.
842build=$build_alias
843host=$host_alias
844target=$target_alias
845
846# FIXME: To remove some day.
847if 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
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
862
863# Find the source files, if location was not specified.
864if 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 ||
873echo 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
883else
884 ac_srcdir_defaulted=no
885fi
886if 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
894fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000895(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; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CXX_set=${CXX+set}
912ac_env_CXX_value=$CXX
913ac_cv_env_CXX_set=${CXX+set}
914ac_cv_env_CXX_value=$CXX
915ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_env_CXXFLAGS_value=$CXXFLAGS
917ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CC_set=${CC+set}
928ac_env_CC_value=$CC
929ac_cv_env_CC_set=${CC+set}
930ac_cv_env_CC_value=$CC
931ac_env_CFLAGS_set=${CFLAGS+set}
932ac_env_CFLAGS_value=$CFLAGS
933ac_cv_env_CFLAGS_set=${CFLAGS+set}
934ac_cv_env_CFLAGS_value=$CFLAGS
935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
943ac_env_F77_set=${F77+set}
944ac_env_F77_value=$F77
945ac_cv_env_F77_set=${F77+set}
946ac_cv_env_F77_value=$F77
947ac_env_FFLAGS_set=${FFLAGS+set}
948ac_env_FFLAGS_value=$FFLAGS
949ac_cv_env_FFLAGS_set=${FFLAGS+set}
950ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000951
952#
953# Report the --help message.
954#
955if 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
961Usage: $0 [OPTION]... [VAR=VALUE]...
962
963To assign environment variables (e.g., CC, CFLAGS...), specify them as
964VAR=VALUE. See below for descriptions of some of the useful variables.
965
966Defaults for the options are specified in brackets.
967
968Configuration:
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
982Installation 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
988By default, \`make install' will install all the files in
989\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
990an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991for instance \`--prefix=\$HOME'.
992
993For better control, use the options below.
994
995Fine 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
1012System 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
1017fi
1018
1019if 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
1025Optional Features:
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001028 --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]
John Criswell7a73b802003-06-30 21:59:07 +00001034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001036 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswell55126592003-10-07 21:57:39 +00001037 --enable-spec Compile SPEC 2000 benchmarks (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001038 --enable-precompiled_bytecode
1039 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001040 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001041 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001042
1043Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001046 --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]
John Criswell7a73b802003-06-30 21:59:07 +00001051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-bcrepos Location of Bytecode Repository
1053 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001054 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001055
1056Some 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
John Criswell47fdd832003-07-14 16:52:07 +00001066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073Report bugs to <llvmbugs@cs.uiuc.edu>.
1074_ACEOF
1075fi
1076
1077if 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
1084if 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'`
1088else
1089 ac_dir_suffix= ac_top_builddir=
1090fi
1091
1092case $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 ;;
1106esac
1107# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108# absolute.
1109ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001110ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001111ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112ac_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
1131fi
1132
1133test -n "$ac_init_help" && exit 0
1134if $ac_init_version; then
1135 cat <<\_ACEOF
1136[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001137generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001138
1139Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140Free Software Foundation, Inc.
1141This configure script is free software; the Free Software Foundation
1142gives unlimited permission to copy, distribute and modify it.
1143_ACEOF
1144 exit 0
1145fi
1146exec 5>config.log
1147cat >&5 <<_ACEOF
1148This file contains any messages produced by compilers while
1149running configure, to aid debugging if configure makes a mistake.
1150
1151It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001152generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 $ $0 $@
1155
1156_ACEOF
1157{
1158cat <<_ASUNAME
1159## --------- ##
1160## Platform. ##
1161## --------- ##
1162
1163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167uname -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`
1175hostinfo = `(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
1182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183for as_dir in $PATH
1184do
1185 IFS=$as_save_IFS
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1188done
1189
1190} >&5
1191
1192cat >&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.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001205# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001206# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001207ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001208ac_configure_args0=
1209ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001210ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001211ac_must_keep_next=false
1212for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001213do
John Criswell0c38eaf2003-09-10 15:17:25 +00001214 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
John Criswell7a73b802003-06-30 21:59:07 +00001249done
John Criswell0c38eaf2003-09-10 15:17:25 +00001250$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; }
John Criswell7a73b802003-06-30 21:59:07 +00001252
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.
1258trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1260 {
1261 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001262
John Criswell7a73b802003-06-30 21:59:07 +00001263 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
John Criswell0c38eaf2003-09-10 15:17:25 +00001285
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
John Criswell7a73b802003-06-30 21:59:07 +00001314 if test -s confdefs.h; then
1315 cat <<\_ASBOX
1316## ----------- ##
1317## confdefs.h. ##
1318## ----------- ##
1319_ASBOX
1320 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001321 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001322 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
1332for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334done
1335ac_signal=0
1336
1337# confdefs.h avoids OS command line length limits that DEFS can exceed.
1338rm -rf conftest* confdefs.h
1339# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340echo >confdefs.h
1341
1342# Predefined preprocessor variables.
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_NAME "$PACKAGE_NAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_VERSION "$PACKAGE_VERSION"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_STRING "$PACKAGE_STRING"
1361_ACEOF
1362
1363
1364cat >>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.
1371if 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
1377fi
1378for 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
1381echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1383 . "$ac_site_file"
1384 fi
1385done
1386
1387if 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
1392echo "$as_me: loading cache $cache_file" >&6;}
1393 case $cache_file in
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1396 esac
1397 fi
1398else
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400echo "$as_me: creating cache $cache_file" >&6;}
1401 >$cache_file
1402fi
1403
1404# Check that the precious variables saved in the cache have kept the same
1405# value.
1406ac_cache_corrupted=false
1407for 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
1416echo "$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
1420echo "$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
1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1428echo "$as_me: former value: $ac_old_val" >&2;}
1429 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1430echo "$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
1446done
1447if $ac_cache_corrupted; then
1448 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449echo "$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
1451echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452 { (exit 1); exit 1; }; }
1453fi
1454
1455ac_ext=c
1456ac_cpp='$CPP $CPPFLAGS'
1457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459ac_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
John Criswell0c38eaf2003-09-10 15:17:25 +00001487
John Criswell7a73b802003-06-30 21:59:07 +00001488ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001489for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001490 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
1503done
1504if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001507 { (exit 1); exit 1; }; }
1508fi
1509ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
John Criswell392aaa32003-07-22 19:18:09 +00001513
John Criswell1b824322003-09-15 17:19:42 +00001514if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001515then
John Criswell1b824322003-09-15 17:19:42 +00001516 if test -f ${srcdir}/include/Config/config.h
1517 then
1518 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001519echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001521 fi
John Criswell93e1c722003-09-15 17:04:06 +00001522fi
1523
John Criswell7ec78aa2003-10-16 01:49:00 +00001524if test -d ${srcdir}/projects/sample
1525then
1526
1527
1528subdirs="$subdirs projects/sample"
1529
1530fi
1531
John Criswell12399a12003-09-30 15:55:44 +00001532if test -d ${srcdir}/projects/reopt
1533then
1534
1535
1536subdirs="$subdirs projects/reopt"
1537
1538fi
1539
John Criswell559a6c12003-09-30 16:31:48 +00001540if test -d ${srcdir}/projects/poolalloc
1541then
1542
1543
1544subdirs="$subdirs projects/poolalloc"
1545
1546fi
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswell0c38eaf2003-09-10 15:17:25 +00001556 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001557
1558
John Criswell0c38eaf2003-09-10 15:17:25 +00001559 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell0c38eaf2003-09-10 15:17:25 +00001568 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
Brian Gaekec45be042003-10-07 06:01:34 +00001616 ac_config_commands="$ac_config_commands lib/Support/Makefile"
1617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001629
1630
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001641
1642
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001647
1648
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001650
1651
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001653
1654
John Criswell0c38eaf2003-09-10 15:17:25 +00001655 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001656
1657
John Criswell0c38eaf2003-09-10 15:17:25 +00001658 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001659
1660
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001662
1663
John Criswell613758d2003-09-11 18:03:50 +00001664 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
John Criswell0c38eaf2003-09-10 15:17:25 +00001676 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001677
1678
John Criswell613758d2003-09-11 18:03:50 +00001679 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswell613758d2003-09-11 18:03:50 +00001685 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
John Criswell0c38eaf2003-09-10 15:17:25 +00001691 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001692
1693
John Criswell0c38eaf2003-09-10 15:17:25 +00001694 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001695
1696
John Criswell759c3ed2003-10-28 19:21:11 +00001697 ac_config_commands="$ac_config_commands runtime/libprofile/Makefile"
1698
1699
John Criswell0c38eaf2003-09-10 15:17:25 +00001700 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
John Criswell0c38eaf2003-09-10 15:17:25 +00001703 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001704
1705
John Criswellf424d742003-10-07 21:13:47 +00001706 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1707
1708
1709 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001710
1711
John Criswell0c38eaf2003-09-10 15:17:25 +00001712 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001713
1714
John Criswell0c38eaf2003-09-10 15:17:25 +00001715 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001716
1717
John Criswell0c38eaf2003-09-10 15:17:25 +00001718 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001719
1720
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001722
1723
John Criswell0c38eaf2003-09-10 15:17:25 +00001724 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001725
1726
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001728
1729
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001731
1732
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001734
1735
John Criswell0c38eaf2003-09-10 15:17:25 +00001736 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001737
1738
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001740
1741
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001743
1744
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001746
1747
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001749
1750
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001752
1753
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001755
1756
John Criswell0c38eaf2003-09-10 15:17:25 +00001757 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001758
1759
John Criswell0c38eaf2003-09-10 15:17:25 +00001760 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001761
1762
John Criswell0c38eaf2003-09-10 15:17:25 +00001763 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001764
1765
John Criswell613758d2003-09-11 18:03:50 +00001766 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1767
1768
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001770
1771
John Criswell5ab73462003-10-09 15:44:28 +00001772 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1773
1774
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001776
1777
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001779
1780
John Criswell0c38eaf2003-09-10 15:17:25 +00001781 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001782
1783
John Criswell0c38eaf2003-09-10 15:17:25 +00001784 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001785
1786
John Criswell0c38eaf2003-09-10 15:17:25 +00001787 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001788
1789
John Criswell0c38eaf2003-09-10 15:17:25 +00001790 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001791
1792
John Criswell0c38eaf2003-09-10 15:17:25 +00001793 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001794
1795
John Criswell0c38eaf2003-09-10 15:17:25 +00001796 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001797
1798
John Criswell0c38eaf2003-09-10 15:17:25 +00001799 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001800
1801
John Criswell0c38eaf2003-09-10 15:17:25 +00001802 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001803
1804
John Criswell987e49c2003-10-10 01:11:54 +00001805 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/252.eon/Makefile"
1806
1807
1808 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile"
1809
1810
John Criswell0c38eaf2003-09-10 15:17:25 +00001811 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001812
1813
John Criswell0c38eaf2003-09-10 15:17:25 +00001814 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001815
1816
John Criswell0c38eaf2003-09-10 15:17:25 +00001817 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001818
1819
John Criswell0c38eaf2003-09-10 15:17:25 +00001820 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001821
1822
John Criswell0c38eaf2003-09-10 15:17:25 +00001823 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001824
1825
John Criswell0c38eaf2003-09-10 15:17:25 +00001826 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001827
1828
John Criswell0c38eaf2003-09-10 15:17:25 +00001829 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001830
1831
John Criswell48e3cb92003-09-12 16:31:43 +00001832 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001833
1834
John Criswell48e3cb92003-09-12 16:31:43 +00001835 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001836
1837
John Criswell39e83892003-09-12 16:36:17 +00001838 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1839
1840
1841 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1842
1843
John Criswell48e3cb92003-09-12 16:31:43 +00001844 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001845
1846
John Criswell48e3cb92003-09-12 16:31:43 +00001847 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001848
1849
John Criswell48e3cb92003-09-12 16:31:43 +00001850 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001851
1852
John Criswell48e3cb92003-09-12 16:31:43 +00001853 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001854
1855
John Criswell48e3cb92003-09-12 16:31:43 +00001856 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001857
1858
John Criswell48e3cb92003-09-12 16:31:43 +00001859 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001860
1861
John Criswell48e3cb92003-09-12 16:31:43 +00001862 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001863
1864
John Criswell48e3cb92003-09-12 16:31:43 +00001865 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001866
1867
John Criswell48e3cb92003-09-12 16:31:43 +00001868 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001869
1870
John Criswell48e3cb92003-09-12 16:31:43 +00001871 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001872
1873
John Criswell48e3cb92003-09-12 16:31:43 +00001874 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001875
1876
John Criswell48e3cb92003-09-12 16:31:43 +00001877 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001878
1879
John Criswell48e3cb92003-09-12 16:31:43 +00001880 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001881
1882
John Criswell48e3cb92003-09-12 16:31:43 +00001883 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001884
1885
John Criswell48e3cb92003-09-12 16:31:43 +00001886 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001887
1888
John Criswell48e3cb92003-09-12 16:31:43 +00001889 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001890
1891
John Criswell48e3cb92003-09-12 16:31:43 +00001892 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001893
1894
John Criswell48e3cb92003-09-12 16:31:43 +00001895 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001896
1897
John Criswell48e3cb92003-09-12 16:31:43 +00001898 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001899
1900
John Criswell48e3cb92003-09-12 16:31:43 +00001901 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001902
1903
John Criswell48e3cb92003-09-12 16:31:43 +00001904 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001905
1906
John Criswell48e3cb92003-09-12 16:31:43 +00001907 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1908
1909
1910 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1911
1912
1913 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001914
1915
John Criswell39e83892003-09-12 16:36:17 +00001916 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001917
1918
John Criswell48e3cb92003-09-12 16:31:43 +00001919 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001920
1921
John Criswell48e3cb92003-09-12 16:31:43 +00001922 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001923
1924
John Criswell48e3cb92003-09-12 16:31:43 +00001925 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001926
1927
John Criswell48e3cb92003-09-12 16:31:43 +00001928 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001929
1930
John Criswell48e3cb92003-09-12 16:31:43 +00001931 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001932
1933
John Criswell48e3cb92003-09-12 16:31:43 +00001934 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001935
1936
John Criswell48e3cb92003-09-12 16:31:43 +00001937 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001938
1939
John Criswell48e3cb92003-09-12 16:31:43 +00001940 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001941
1942
John Criswell0c38eaf2003-09-10 15:17:25 +00001943 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001944
1945
John Criswell0c38eaf2003-09-10 15:17:25 +00001946 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001947
1948
John Criswellffaaf3b2003-09-10 18:38:44 +00001949 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1950
1951
1952 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1953
1954
1955 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1956
1957
1958 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1959
1960
1961 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1962
1963
1964 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1965
1966
John Criswell0c38eaf2003-09-10 15:17:25 +00001967 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001968
1969
John Criswell0c38eaf2003-09-10 15:17:25 +00001970 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001971
1972
John Criswell0afe8252003-09-11 20:53:48 +00001973 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1974
1975
John Criswell67181ca2003-09-26 14:53:17 +00001976 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1977
1978
John Criswell68886d42003-09-26 19:51:42 +00001979 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++/Makefile"
1983
1984
John Criswellc66bbd52003-09-29 21:35:32 +00001985 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1986
1987
John Criswell0c38eaf2003-09-10 15:17:25 +00001988 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001989
1990
John Criswell0c38eaf2003-09-10 15:17:25 +00001991 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001992
1993
John Criswell0c38eaf2003-09-10 15:17:25 +00001994 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001995
1996
John Criswell0c38eaf2003-09-10 15:17:25 +00001997 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001998
1999
John Criswell0c38eaf2003-09-10 15:17:25 +00002000 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002001
2002
John Criswell0c38eaf2003-09-10 15:17:25 +00002003 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002004
2005
John Criswell0c38eaf2003-09-10 15:17:25 +00002006 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002007
2008
John Criswell0c38eaf2003-09-10 15:17:25 +00002009 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002010
2011
John Criswellddb7b4e2003-09-16 15:54:19 +00002012 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002013
2014
Chris Lattnerebd70302003-09-13 03:29:53 +00002015 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2016
2017
John Criswellddb7b4e2003-09-16 15:54:19 +00002018 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2019
2020
John Criswell0c38eaf2003-09-10 15:17:25 +00002021 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002022
2023
John Criswellddb7b4e2003-09-16 15:54:19 +00002024 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2025
2026
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00002027 ac_config_commands="$ac_config_commands tools/llvm-nm/Makefile"
2028
2029
John Criswell759c3ed2003-10-28 19:21:11 +00002030 ac_config_commands="$ac_config_commands tools/llvm-prof/Makefile"
2031
2032
John Criswellddb7b4e2003-09-16 15:54:19 +00002033 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2034
2035
Brian Gaekec45be042003-10-07 06:01:34 +00002036 ac_config_commands="$ac_config_commands utils/Makefile"
2037
2038
2039 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2040
2041
2042 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2043
2044
2045 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2046
2047
John Criswell0c38eaf2003-09-10 15:17:25 +00002048 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002049
2050
John Criswell0c38eaf2003-09-10 15:17:25 +00002051 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002052
2053
John Criswell0c38eaf2003-09-10 15:17:25 +00002054 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002055
2056
John Criswell0c38eaf2003-09-10 15:17:25 +00002057 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002058
2059
John Criswell0c38eaf2003-09-10 15:17:25 +00002060 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002061
2062
John Criswell392aaa32003-07-22 19:18:09 +00002063
2064
John Criswell7a73b802003-06-30 21:59:07 +00002065# Find a good install program. We prefer a C program (faster),
2066# so one script is as good as another. But avoid the broken or
2067# incompatible versions:
2068# SysV /etc/install, /usr/sbin/install
2069# SunOS /usr/etc/install
2070# IRIX /sbin/install
2071# AIX /bin/install
2072# AmigaOS /C/install, which installs bootblocks on floppy discs
2073# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2074# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2075# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2076# ./install, which can be erroneously created by make from ./install.sh.
2077echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2078echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2079if test -z "$INSTALL"; then
2080if test "${ac_cv_path_install+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084for as_dir in $PATH
2085do
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 # Account for people who put trailing slashes in PATH elements.
2089case $as_dir/ in
2090 ./ | .// | /cC/* | \
2091 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2092 /usr/ucb/* ) ;;
2093 *)
2094 # OSF1 and SCO ODT 3.0 have their own names for install.
2095 # Don't use installbsd from OSF since it installs stuff as root
2096 # by default.
2097 for ac_prog in ginstall scoinst install; do
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2100 if test $ac_prog = install &&
2101 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2102 # AIX install. It has an incompatible calling convention.
2103 :
2104 elif test $ac_prog = install &&
2105 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2106 # program-specific install script used by HP pwplus--don't use.
2107 :
2108 else
2109 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2110 break 3
2111 fi
2112 fi
2113 done
2114 done
2115 ;;
2116esac
2117done
2118
2119
2120fi
2121 if test "${ac_cv_path_install+set}" = set; then
2122 INSTALL=$ac_cv_path_install
2123 else
2124 # As a last resort, use the slow shell script. We don't cache a
2125 # path for INSTALL within a source directory, because that will
2126 # break other packages using the cache if that directory is
2127 # removed, or if the path is relative.
2128 INSTALL=$ac_install_sh
2129 fi
2130fi
2131echo "$as_me:$LINENO: result: $INSTALL" >&5
2132echo "${ECHO_T}$INSTALL" >&6
2133
2134# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2135# It thinks the first close brace ends the variable substitution.
2136test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2137
2138test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2139
2140test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2141
2142
2143# Make sure we can run config.sub.
2144$ac_config_sub sun4 >/dev/null 2>&1 ||
2145 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2146echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2147 { (exit 1); exit 1; }; }
2148
2149echo "$as_me:$LINENO: checking build system type" >&5
2150echo $ECHO_N "checking build system type... $ECHO_C" >&6
2151if test "${ac_cv_build+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153else
2154 ac_cv_build_alias=$build_alias
2155test -z "$ac_cv_build_alias" &&
2156 ac_cv_build_alias=`$ac_config_guess`
2157test -z "$ac_cv_build_alias" &&
2158 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2160 { (exit 1); exit 1; }; }
2161ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2162 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2163echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2164 { (exit 1); exit 1; }; }
2165
2166fi
2167echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168echo "${ECHO_T}$ac_cv_build" >&6
2169build=$ac_cv_build
2170build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2171build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2172build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2173
2174
2175echo "$as_me:$LINENO: checking host system type" >&5
2176echo $ECHO_N "checking host system type... $ECHO_C" >&6
2177if test "${ac_cv_host+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180 ac_cv_host_alias=$host_alias
2181test -z "$ac_cv_host_alias" &&
2182 ac_cv_host_alias=$ac_cv_build_alias
2183ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2184 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2185echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2186 { (exit 1); exit 1; }; }
2187
2188fi
2189echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2190echo "${ECHO_T}$ac_cv_host" >&6
2191host=$ac_cv_host
2192host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2193host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2194host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2195
2196
2197echo "$as_me:$LINENO: checking target system type" >&5
2198echo $ECHO_N "checking target system type... $ECHO_C" >&6
2199if test "${ac_cv_target+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201else
2202 ac_cv_target_alias=$target_alias
2203test "x$ac_cv_target_alias" = "x" &&
2204 ac_cv_target_alias=$ac_cv_host_alias
2205ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2206 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2207echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2208 { (exit 1); exit 1; }; }
2209
2210fi
2211echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2212echo "${ECHO_T}$ac_cv_target" >&6
2213target=$ac_cv_target
2214target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2215target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2216target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2217
2218
2219# The aliases save the names the user supplied, while $host etc.
2220# will get canonicalized.
2221test -n "$target_alias" &&
2222 test "$program_prefix$program_suffix$program_transform_name" = \
2223 NONENONEs,x,x, &&
2224 program_prefix=${target_alias}-
2225
2226case $build in
2227 *i*86*) OS=Linux
2228
John Criswellf02dbf02003-07-22 20:07:49 +00002229 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002230
2231 ;;
2232
2233 *sparc*) OS=SunOS
2234
2235 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2236
2237 ;;
2238
2239 *) OS=Unknown
2240
2241 ;;
2242esac
2243
2244case $target in
2245 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2246
2247 ;;
2248esac
2249
John Criswell76595452003-07-01 22:07:39 +00002250case $target in
2251 *i*86*) ARCH=x86
2252
2253 ;;
2254 *sparc*solaris*) ARCH=Sparc
2255
2256 ;;
2257esac
2258
John Criswell7a73b802003-06-30 21:59:07 +00002259
2260ac_ext=cc
2261ac_cpp='$CXXCPP $CPPFLAGS'
2262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2265if test -n "$ac_tool_prefix"; then
2266 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2267 do
2268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2269set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2270echo "$as_me:$LINENO: checking for $ac_word" >&5
2271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272if test "${ac_cv_prog_CXX+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2274else
2275 if test -n "$CXX"; then
2276 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2277else
2278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279for as_dir in $PATH
2280do
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 break 2
2288 fi
2289done
2290done
2291
2292fi
2293fi
2294CXX=$ac_cv_prog_CXX
2295if test -n "$CXX"; then
2296 echo "$as_me:$LINENO: result: $CXX" >&5
2297echo "${ECHO_T}$CXX" >&6
2298else
2299 echo "$as_me:$LINENO: result: no" >&5
2300echo "${ECHO_T}no" >&6
2301fi
2302
2303 test -n "$CXX" && break
2304 done
2305fi
2306if test -z "$CXX"; then
2307 ac_ct_CXX=$CXX
2308 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2309do
2310 # Extract the first word of "$ac_prog", so it can be a program name with args.
2311set dummy $ac_prog; ac_word=$2
2312echo "$as_me:$LINENO: checking for $ac_word" >&5
2313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316else
2317 if test -n "$ac_ct_CXX"; then
2318 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2319else
2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321for as_dir in $PATH
2322do
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327 ac_cv_prog_ac_ct_CXX="$ac_prog"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 break 2
2330 fi
2331done
2332done
2333
2334fi
2335fi
2336ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2337if test -n "$ac_ct_CXX"; then
2338 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2339echo "${ECHO_T}$ac_ct_CXX" >&6
2340else
2341 echo "$as_me:$LINENO: result: no" >&5
2342echo "${ECHO_T}no" >&6
2343fi
2344
2345 test -n "$ac_ct_CXX" && break
2346done
2347test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2348
2349 CXX=$ac_ct_CXX
2350fi
2351
2352
2353# Provide some information about the compiler.
2354echo "$as_me:$LINENO:" \
2355 "checking for C++ compiler version" >&5
2356ac_compiler=`set X $ac_compile; echo $2`
2357{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2358 (eval $ac_compiler --version </dev/null >&5) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }
2362{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2363 (eval $ac_compiler -v </dev/null >&5) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }
2367{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2368 (eval $ac_compiler -V </dev/null >&5) 2>&5
2369 ac_status=$?
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2372
2373cat >conftest.$ac_ext <<_ACEOF
2374#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002375/* confdefs.h. */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
2379/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002380
John Criswell7a73b802003-06-30 21:59:07 +00002381int
2382main ()
2383{
2384
2385 ;
2386 return 0;
2387}
2388_ACEOF
2389ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002390ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002391# Try to create an executable without -o first, disregard a.out.
2392# It will help us diagnose broken compilers, and finding out an intuition
2393# of exeext.
2394echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2395echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2396ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2397if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2398 (eval $ac_link_default) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; then
2402 # Find the output, starting from the most likely. This scheme is
2403# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2404# resort.
2405
2406# Be careful to initialize this variable, since it used to be cached.
2407# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2408ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002409# b.out is created by i960 compilers.
2410for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2411do
2412 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002413 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2415 ;;
2416 conftest.$ac_ext )
2417 # This is the source file.
2418 ;;
2419 [ab].out )
2420 # We found the default executable, but exeext='' is most
2421 # certainly right.
2422 break;;
2423 *.* )
2424 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2425 # FIXME: I believe we export ac_cv_exeext for Libtool,
2426 # but it would be cool to find out if it's true. Does anybody
2427 # maintain Libtool? --akim.
2428 export ac_cv_exeext
2429 break;;
2430 * )
2431 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002432 esac
2433done
2434else
2435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2439See \`config.log' for more details." >&5
2440echo "$as_me: error: C++ compiler cannot create executables
2441See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002442 { (exit 77); exit 77; }; }
2443fi
2444
2445ac_exeext=$ac_cv_exeext
2446echo "$as_me:$LINENO: result: $ac_file" >&5
2447echo "${ECHO_T}$ac_file" >&6
2448
2449# Check the compiler produces executables we can run. If not, either
2450# the compiler is broken, or we cross compile.
2451echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2452echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2453# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2454# If not cross compiling, check that we can run a simple program.
2455if test "$cross_compiling" != yes; then
2456 if { ac_try='./$ac_file'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2462 cross_compiling=no
2463 else
2464 if test "$cross_compiling" = maybe; then
2465 cross_compiling=yes
2466 else
2467 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002468If you meant to cross compile, use \`--host'.
2469See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002470echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002471If you meant to cross compile, use \`--host'.
2472See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002473 { (exit 1); exit 1; }; }
2474 fi
2475 fi
2476fi
2477echo "$as_me:$LINENO: result: yes" >&5
2478echo "${ECHO_T}yes" >&6
2479
John Criswell0c38eaf2003-09-10 15:17:25 +00002480rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002481ac_clean_files=$ac_clean_files_save
2482# Check the compiler produces executables we can run. If not, either
2483# the compiler is broken, or we cross compile.
2484echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2485echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2486echo "$as_me:$LINENO: result: $cross_compiling" >&5
2487echo "${ECHO_T}$cross_compiling" >&6
2488
2489echo "$as_me:$LINENO: checking for suffix of executables" >&5
2490echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2492 (eval $ac_link) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; then
2496 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2497# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2498# work properly (i.e., refer to `conftest.exe'), while it won't with
2499# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002500for ac_file in conftest.exe conftest conftest.*; do
2501 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002502 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002504 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2505 export ac_cv_exeext
2506 break;;
2507 * ) break;;
2508 esac
2509done
2510else
John Criswell0c38eaf2003-09-10 15:17:25 +00002511 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2512See \`config.log' for more details." >&5
2513echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2514See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002515 { (exit 1); exit 1; }; }
2516fi
2517
2518rm -f conftest$ac_cv_exeext
2519echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2520echo "${ECHO_T}$ac_cv_exeext" >&6
2521
2522rm -f conftest.$ac_ext
2523EXEEXT=$ac_cv_exeext
2524ac_exeext=$EXEEXT
2525echo "$as_me:$LINENO: checking for suffix of object files" >&5
2526echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2527if test "${ac_cv_objext+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530 cat >conftest.$ac_ext <<_ACEOF
2531#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002532/* confdefs.h. */
2533_ACEOF
2534cat confdefs.h >>conftest.$ac_ext
2535cat >>conftest.$ac_ext <<_ACEOF
2536/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002537
John Criswell7a73b802003-06-30 21:59:07 +00002538int
2539main ()
2540{
2541
2542 ;
2543 return 0;
2544}
2545_ACEOF
2546rm -f conftest.o conftest.obj
2547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; then
2552 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2553 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2556 break;;
2557 esac
2558done
2559else
2560 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002561sed 's/^/| /' conftest.$ac_ext >&5
2562
2563{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2564See \`config.log' for more details." >&5
2565echo "$as_me: error: cannot compute suffix of object files: cannot compile
2566See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002567 { (exit 1); exit 1; }; }
2568fi
2569
2570rm -f conftest.$ac_cv_objext conftest.$ac_ext
2571fi
2572echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2573echo "${ECHO_T}$ac_cv_objext" >&6
2574OBJEXT=$ac_cv_objext
2575ac_objext=$OBJEXT
2576echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2577echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2578if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580else
2581 cat >conftest.$ac_ext <<_ACEOF
2582#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002583/* confdefs.h. */
2584_ACEOF
2585cat confdefs.h >>conftest.$ac_ext
2586cat >>conftest.$ac_ext <<_ACEOF
2587/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002588
John Criswell7a73b802003-06-30 21:59:07 +00002589int
2590main ()
2591{
2592#ifndef __GNUC__
2593 choke me
2594#endif
2595
2596 ;
2597 return 0;
2598}
2599_ACEOF
2600rm -f conftest.$ac_objext
2601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -s conftest.$ac_objext'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 (eval $ac_try) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; }; then
2612 ac_compiler_gnu=yes
2613else
2614 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002615sed 's/^/| /' conftest.$ac_ext >&5
2616
John Criswell7a73b802003-06-30 21:59:07 +00002617ac_compiler_gnu=no
2618fi
2619rm -f conftest.$ac_objext conftest.$ac_ext
2620ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2621
2622fi
2623echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2624echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2625GXX=`test $ac_compiler_gnu = yes && echo yes`
2626ac_test_CXXFLAGS=${CXXFLAGS+set}
2627ac_save_CXXFLAGS=$CXXFLAGS
2628CXXFLAGS="-g"
2629echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2630echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2631if test "${ac_cv_prog_cxx_g+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2633else
2634 cat >conftest.$ac_ext <<_ACEOF
2635#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002636/* confdefs.h. */
2637_ACEOF
2638cat confdefs.h >>conftest.$ac_ext
2639cat >>conftest.$ac_ext <<_ACEOF
2640/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002641
John Criswell7a73b802003-06-30 21:59:07 +00002642int
2643main ()
2644{
2645
2646 ;
2647 return 0;
2648}
2649_ACEOF
2650rm -f conftest.$ac_objext
2651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2662 ac_cv_prog_cxx_g=yes
2663else
2664 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002665sed 's/^/| /' conftest.$ac_ext >&5
2666
John Criswell7a73b802003-06-30 21:59:07 +00002667ac_cv_prog_cxx_g=no
2668fi
2669rm -f conftest.$ac_objext conftest.$ac_ext
2670fi
2671echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2672echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2673if test "$ac_test_CXXFLAGS" = set; then
2674 CXXFLAGS=$ac_save_CXXFLAGS
2675elif test $ac_cv_prog_cxx_g = yes; then
2676 if test "$GXX" = yes; then
2677 CXXFLAGS="-g -O2"
2678 else
2679 CXXFLAGS="-g"
2680 fi
2681else
2682 if test "$GXX" = yes; then
2683 CXXFLAGS="-O2"
2684 else
2685 CXXFLAGS=
2686 fi
2687fi
2688for ac_declaration in \
2689 ''\
2690 '#include <stdlib.h>' \
2691 'extern "C" void std::exit (int) throw (); using std::exit;' \
2692 'extern "C" void std::exit (int); using std::exit;' \
2693 'extern "C" void exit (int) throw ();' \
2694 'extern "C" void exit (int);' \
2695 'void exit (int);'
2696do
2697 cat >conftest.$ac_ext <<_ACEOF
2698#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002699/* confdefs.h. */
2700_ACEOF
2701cat confdefs.h >>conftest.$ac_ext
2702cat >>conftest.$ac_ext <<_ACEOF
2703/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002704#include <stdlib.h>
2705$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002706int
2707main ()
2708{
2709exit (42);
2710 ;
2711 return 0;
2712}
2713_ACEOF
2714rm -f conftest.$ac_objext
2715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -s conftest.$ac_objext'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 (eval $ac_try) 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2726 :
2727else
2728 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002729sed 's/^/| /' conftest.$ac_ext >&5
2730
John Criswell7a73b802003-06-30 21:59:07 +00002731continue
2732fi
2733rm -f conftest.$ac_objext conftest.$ac_ext
2734 cat >conftest.$ac_ext <<_ACEOF
2735#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002736/* confdefs.h. */
2737_ACEOF
2738cat confdefs.h >>conftest.$ac_ext
2739cat >>conftest.$ac_ext <<_ACEOF
2740/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002741$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002742int
2743main ()
2744{
2745exit (42);
2746 ;
2747 return 0;
2748}
2749_ACEOF
2750rm -f conftest.$ac_objext
2751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752 (eval $ac_compile) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 (eval $ac_try) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 break
2763else
2764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002765sed 's/^/| /' conftest.$ac_ext >&5
2766
John Criswell7a73b802003-06-30 21:59:07 +00002767fi
2768rm -f conftest.$ac_objext conftest.$ac_ext
2769done
2770rm -f conftest*
2771if test -n "$ac_declaration"; then
2772 echo '#ifdef __cplusplus' >>confdefs.h
2773 echo $ac_declaration >>confdefs.h
2774 echo '#endif' >>confdefs.h
2775fi
2776
2777ac_ext=c
2778ac_cpp='$CPP $CPPFLAGS'
2779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782
2783ac_ext=c
2784ac_cpp='$CPP $CPPFLAGS'
2785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788if test -n "$ac_tool_prefix"; then
2789 for ac_prog in gcc
2790 do
2791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2792set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2793echo "$as_me:$LINENO: checking for $ac_word" >&5
2794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2795if test "${ac_cv_prog_CC+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797else
2798 if test -n "$CC"; then
2799 ac_cv_prog_CC="$CC" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812done
2813done
2814
2815fi
2816fi
2817CC=$ac_cv_prog_CC
2818if test -n "$CC"; then
2819 echo "$as_me:$LINENO: result: $CC" >&5
2820echo "${ECHO_T}$CC" >&6
2821else
2822 echo "$as_me:$LINENO: result: no" >&5
2823echo "${ECHO_T}no" >&6
2824fi
2825
2826 test -n "$CC" && break
2827 done
2828fi
2829if test -z "$CC"; then
2830 ac_ct_CC=$CC
2831 for ac_prog in gcc
2832do
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834set dummy $ac_prog; ac_word=$2
2835echo "$as_me:$LINENO: checking for $ac_word" >&5
2836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839else
2840 if test -n "$ac_ct_CC"; then
2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_ac_ct_CC="$ac_prog"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854done
2855done
2856
2857fi
2858fi
2859ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860if test -n "$ac_ct_CC"; then
2861 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2862echo "${ECHO_T}$ac_ct_CC" >&6
2863else
2864 echo "$as_me:$LINENO: result: no" >&5
2865echo "${ECHO_T}no" >&6
2866fi
2867
2868 test -n "$ac_ct_CC" && break
2869done
2870
2871 CC=$ac_ct_CC
2872fi
2873
2874
John Criswell0c38eaf2003-09-10 15:17:25 +00002875test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2876See \`config.log' for more details." >&5
2877echo "$as_me: error: no acceptable C compiler found in \$PATH
2878See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002879 { (exit 1); exit 1; }; }
2880
2881# Provide some information about the compiler.
2882echo "$as_me:$LINENO:" \
2883 "checking for C compiler version" >&5
2884ac_compiler=`set X $ac_compile; echo $2`
2885{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2886 (eval $ac_compiler --version </dev/null >&5) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }
2890{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2891 (eval $ac_compiler -v </dev/null >&5) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }
2895{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2896 (eval $ac_compiler -V </dev/null >&5) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }
2900
2901echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2902echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2903if test "${ac_cv_c_compiler_gnu+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905else
2906 cat >conftest.$ac_ext <<_ACEOF
2907#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002908/* confdefs.h. */
2909_ACEOF
2910cat confdefs.h >>conftest.$ac_ext
2911cat >>conftest.$ac_ext <<_ACEOF
2912/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002913
John Criswell7a73b802003-06-30 21:59:07 +00002914int
2915main ()
2916{
2917#ifndef __GNUC__
2918 choke me
2919#endif
2920
2921 ;
2922 return 0;
2923}
2924_ACEOF
2925rm -f conftest.$ac_objext
2926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try='test -s conftest.$ac_objext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_compiler_gnu=yes
2938else
2939 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002940sed 's/^/| /' conftest.$ac_ext >&5
2941
John Criswell7a73b802003-06-30 21:59:07 +00002942ac_compiler_gnu=no
2943fi
2944rm -f conftest.$ac_objext conftest.$ac_ext
2945ac_cv_c_compiler_gnu=$ac_compiler_gnu
2946
2947fi
2948echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2949echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2950GCC=`test $ac_compiler_gnu = yes && echo yes`
2951ac_test_CFLAGS=${CFLAGS+set}
2952ac_save_CFLAGS=$CFLAGS
2953CFLAGS="-g"
2954echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2955echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2956if test "${ac_cv_prog_cc_g+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958else
2959 cat >conftest.$ac_ext <<_ACEOF
2960#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002961/* confdefs.h. */
2962_ACEOF
2963cat confdefs.h >>conftest.$ac_ext
2964cat >>conftest.$ac_ext <<_ACEOF
2965/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002966
John Criswell7a73b802003-06-30 21:59:07 +00002967int
2968main ()
2969{
2970
2971 ;
2972 return 0;
2973}
2974_ACEOF
2975rm -f conftest.$ac_objext
2976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977 (eval $ac_compile) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 ac_cv_prog_cc_g=yes
2988else
2989 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002990sed 's/^/| /' conftest.$ac_ext >&5
2991
John Criswell7a73b802003-06-30 21:59:07 +00002992ac_cv_prog_cc_g=no
2993fi
2994rm -f conftest.$ac_objext conftest.$ac_ext
2995fi
2996echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2997echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2998if test "$ac_test_CFLAGS" = set; then
2999 CFLAGS=$ac_save_CFLAGS
3000elif test $ac_cv_prog_cc_g = yes; then
3001 if test "$GCC" = yes; then
3002 CFLAGS="-g -O2"
3003 else
3004 CFLAGS="-g"
3005 fi
3006else
3007 if test "$GCC" = yes; then
3008 CFLAGS="-O2"
3009 else
3010 CFLAGS=
3011 fi
3012fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003013echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3014echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3015if test "${ac_cv_prog_cc_stdc+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017else
3018 ac_cv_prog_cc_stdc=no
3019ac_save_CC=$CC
3020cat >conftest.$ac_ext <<_ACEOF
3021#line $LINENO "configure"
3022/* confdefs.h. */
3023_ACEOF
3024cat confdefs.h >>conftest.$ac_ext
3025cat >>conftest.$ac_ext <<_ACEOF
3026/* end confdefs.h. */
3027#include <stdarg.h>
3028#include <stdio.h>
3029#include <sys/types.h>
3030#include <sys/stat.h>
3031/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3032struct buf { int x; };
3033FILE * (*rcsopen) (struct buf *, struct stat *, int);
3034static char *e (p, i)
3035 char **p;
3036 int i;
3037{
3038 return p[i];
3039}
3040static char *f (char * (*g) (char **, int), char **p, ...)
3041{
3042 char *s;
3043 va_list v;
3044 va_start (v,p);
3045 s = g (p, va_arg (v,int));
3046 va_end (v);
3047 return s;
3048}
3049int test (int i, double x);
3050struct s1 {int (*f) (int a);};
3051struct s2 {int (*f) (double a);};
3052int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3053int argc;
3054char **argv;
3055int
3056main ()
3057{
3058return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3059 ;
3060 return 0;
3061}
3062_ACEOF
3063# Don't try gcc -ansi; that turns off useful extensions and
3064# breaks some systems' header files.
3065# AIX -qlanglvl=ansi
3066# Ultrix and OSF/1 -std1
3067# HP-UX 10.20 and later -Ae
3068# HP-UX older versions -Aa -D_HPUX_SOURCE
3069# SVR4 -Xc -D__EXTENSIONS__
3070for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3071do
3072 CC="$ac_save_CC $ac_arg"
3073 rm -f conftest.$ac_objext
3074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075 (eval $ac_compile) 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } &&
3079 { ac_try='test -s conftest.$ac_objext'
3080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081 (eval $ac_try) 2>&5
3082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
3085 ac_cv_prog_cc_stdc=$ac_arg
3086break
3087else
3088 echo "$as_me: failed program was:" >&5
3089sed 's/^/| /' conftest.$ac_ext >&5
3090
3091fi
3092rm -f conftest.$ac_objext
3093done
3094rm -f conftest.$ac_ext conftest.$ac_objext
3095CC=$ac_save_CC
3096
3097fi
3098
3099case "x$ac_cv_prog_cc_stdc" in
3100 x|xno)
3101 echo "$as_me:$LINENO: result: none needed" >&5
3102echo "${ECHO_T}none needed" >&6 ;;
3103 *)
3104 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3105echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3106 CC="$CC $ac_cv_prog_cc_stdc" ;;
3107esac
3108
John Criswell7a73b802003-06-30 21:59:07 +00003109# Some people use a C++ compiler to compile C. Since we use `exit',
3110# in C++ we need to declare it. In case someone uses the same compiler
3111# for both compiling C and C++ we need to have the C++ compiler decide
3112# the declaration of exit, since it's the most demanding environment.
3113cat >conftest.$ac_ext <<_ACEOF
3114#ifndef __cplusplus
3115 choke me
3116#endif
3117_ACEOF
3118rm -f conftest.$ac_objext
3119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3120 (eval $ac_compile) 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } &&
3124 { ac_try='test -s conftest.$ac_objext'
3125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126 (eval $ac_try) 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3130 for ac_declaration in \
3131 ''\
3132 '#include <stdlib.h>' \
3133 'extern "C" void std::exit (int) throw (); using std::exit;' \
3134 'extern "C" void std::exit (int); using std::exit;' \
3135 'extern "C" void exit (int) throw ();' \
3136 'extern "C" void exit (int);' \
3137 'void exit (int);'
3138do
3139 cat >conftest.$ac_ext <<_ACEOF
3140#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
3145/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003146#include <stdlib.h>
3147$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003148int
3149main ()
3150{
3151exit (42);
3152 ;
3153 return 0;
3154}
3155_ACEOF
3156rm -f conftest.$ac_objext
3157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 (eval $ac_try) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3168 :
3169else
3170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003171sed 's/^/| /' conftest.$ac_ext >&5
3172
John Criswell7a73b802003-06-30 21:59:07 +00003173continue
3174fi
3175rm -f conftest.$ac_objext conftest.$ac_ext
3176 cat >conftest.$ac_ext <<_ACEOF
3177#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003178/* confdefs.h. */
3179_ACEOF
3180cat confdefs.h >>conftest.$ac_ext
3181cat >>conftest.$ac_ext <<_ACEOF
3182/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003183$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003184int
3185main ()
3186{
3187exit (42);
3188 ;
3189 return 0;
3190}
3191_ACEOF
3192rm -f conftest.$ac_objext
3193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3194 (eval $ac_compile) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 (eval $ac_try) 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3204 break
3205else
3206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003207sed 's/^/| /' conftest.$ac_ext >&5
3208
John Criswell7a73b802003-06-30 21:59:07 +00003209fi
3210rm -f conftest.$ac_objext conftest.$ac_ext
3211done
3212rm -f conftest*
3213if test -n "$ac_declaration"; then
3214 echo '#ifdef __cplusplus' >>confdefs.h
3215 echo $ac_declaration >>confdefs.h
3216 echo '#endif' >>confdefs.h
3217fi
3218
3219else
3220 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003221sed 's/^/| /' conftest.$ac_ext >&5
3222
John Criswell7a73b802003-06-30 21:59:07 +00003223fi
3224rm -f conftest.$ac_objext conftest.$ac_ext
3225ac_ext=c
3226ac_cpp='$CPP $CPPFLAGS'
3227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230
3231ac_ext=c
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3237echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3238# On Suns, sometimes $CPP names a directory.
3239if test -n "$CPP" && test -d "$CPP"; then
3240 CPP=
3241fi
3242if test -z "$CPP"; then
3243 if test "${ac_cv_prog_CPP+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245else
3246 # Double quotes because CPP needs to be expanded
3247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248 do
3249 ac_preproc_ok=false
3250for ac_c_preproc_warn_flag in '' yes
3251do
3252 # Use a header file that comes with gcc, so configuring glibc
3253 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003256 # On the NeXT, cc -E runs the code through the compiler's parser,
3257 # not just through cpp. "Syntax error" is here to catch this case.
3258 cat >conftest.$ac_ext <<_ACEOF
3259#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003260/* confdefs.h. */
3261_ACEOF
3262cat confdefs.h >>conftest.$ac_ext
3263cat >>conftest.$ac_ext <<_ACEOF
3264/* end confdefs.h. */
3265#ifdef __STDC__
3266# include <limits.h>
3267#else
3268# include <assert.h>
3269#endif
John Criswell7a73b802003-06-30 21:59:07 +00003270 Syntax error
3271_ACEOF
3272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3274 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003275 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } >/dev/null; then
3280 if test -s conftest.err; then
3281 ac_cpp_err=$ac_c_preproc_warn_flag
3282 else
3283 ac_cpp_err=
3284 fi
3285else
3286 ac_cpp_err=yes
3287fi
3288if test -z "$ac_cpp_err"; then
3289 :
3290else
3291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003292sed 's/^/| /' conftest.$ac_ext >&5
3293
John Criswell7a73b802003-06-30 21:59:07 +00003294 # Broken: fails on valid input.
3295continue
3296fi
3297rm -f conftest.err conftest.$ac_ext
3298
3299 # OK, works on sane cases. Now check whether non-existent headers
3300 # can be detected and how.
3301 cat >conftest.$ac_ext <<_ACEOF
3302#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003303/* confdefs.h. */
3304_ACEOF
3305cat confdefs.h >>conftest.$ac_ext
3306cat >>conftest.$ac_ext <<_ACEOF
3307/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003308#include <ac_nonexistent.h>
3309_ACEOF
3310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3312 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003313 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } >/dev/null; then
3318 if test -s conftest.err; then
3319 ac_cpp_err=$ac_c_preproc_warn_flag
3320 else
3321 ac_cpp_err=
3322 fi
3323else
3324 ac_cpp_err=yes
3325fi
3326if test -z "$ac_cpp_err"; then
3327 # Broken: success on invalid input.
3328continue
3329else
3330 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003331sed 's/^/| /' conftest.$ac_ext >&5
3332
John Criswell7a73b802003-06-30 21:59:07 +00003333 # Passes both tests.
3334ac_preproc_ok=:
3335break
3336fi
3337rm -f conftest.err conftest.$ac_ext
3338
3339done
3340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3341rm -f conftest.err conftest.$ac_ext
3342if $ac_preproc_ok; then
3343 break
3344fi
3345
3346 done
3347 ac_cv_prog_CPP=$CPP
3348
3349fi
3350 CPP=$ac_cv_prog_CPP
3351else
3352 ac_cv_prog_CPP=$CPP
3353fi
3354echo "$as_me:$LINENO: result: $CPP" >&5
3355echo "${ECHO_T}$CPP" >&6
3356ac_preproc_ok=false
3357for ac_c_preproc_warn_flag in '' yes
3358do
3359 # Use a header file that comes with gcc, so configuring glibc
3360 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003363 # On the NeXT, cc -E runs the code through the compiler's parser,
3364 # not just through cpp. "Syntax error" is here to catch this case.
3365 cat >conftest.$ac_ext <<_ACEOF
3366#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003367/* confdefs.h. */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h. */
3372#ifdef __STDC__
3373# include <limits.h>
3374#else
3375# include <assert.h>
3376#endif
John Criswell7a73b802003-06-30 21:59:07 +00003377 Syntax error
3378_ACEOF
3379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3381 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003382 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } >/dev/null; then
3387 if test -s conftest.err; then
3388 ac_cpp_err=$ac_c_preproc_warn_flag
3389 else
3390 ac_cpp_err=
3391 fi
3392else
3393 ac_cpp_err=yes
3394fi
3395if test -z "$ac_cpp_err"; then
3396 :
3397else
3398 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003399sed 's/^/| /' conftest.$ac_ext >&5
3400
John Criswell7a73b802003-06-30 21:59:07 +00003401 # Broken: fails on valid input.
3402continue
3403fi
3404rm -f conftest.err conftest.$ac_ext
3405
3406 # OK, works on sane cases. Now check whether non-existent headers
3407 # can be detected and how.
3408 cat >conftest.$ac_ext <<_ACEOF
3409#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003415#include <ac_nonexistent.h>
3416_ACEOF
3417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3419 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003420 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } >/dev/null; then
3425 if test -s conftest.err; then
3426 ac_cpp_err=$ac_c_preproc_warn_flag
3427 else
3428 ac_cpp_err=
3429 fi
3430else
3431 ac_cpp_err=yes
3432fi
3433if test -z "$ac_cpp_err"; then
3434 # Broken: success on invalid input.
3435continue
3436else
3437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003438sed 's/^/| /' conftest.$ac_ext >&5
3439
John Criswell7a73b802003-06-30 21:59:07 +00003440 # Passes both tests.
3441ac_preproc_ok=:
3442break
3443fi
3444rm -f conftest.err conftest.$ac_ext
3445
3446done
3447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448rm -f conftest.err conftest.$ac_ext
3449if $ac_preproc_ok; then
3450 :
3451else
John Criswell0c38eaf2003-09-10 15:17:25 +00003452 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3453See \`config.log' for more details." >&5
3454echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3455See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003456 { (exit 1); exit 1; }; }
3457fi
3458
3459ac_ext=c
3460ac_cpp='$CPP $CPPFLAGS'
3461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464
3465
3466if test "$GCC" != "yes"
3467then
3468 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3469echo "$as_me: error: gcc required but not found" >&2;}
3470 { (exit 1); exit 1; }; }
3471fi
3472
3473if test "$GXX" != "yes"
3474then
3475 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3476echo "$as_me: error: g++ required but not found" >&2;}
3477 { (exit 1); exit 1; }; }
3478fi
3479
John Criswellde00db22003-08-25 16:49:54 +00003480gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3481if test "$gccmajor" -lt "3"
3482then
3483 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3484echo "$as_me: error: gcc 3.x required" >&2;}
3485 { (exit 1); exit 1; }; }
3486fi
3487
John Criswell7a73b802003-06-30 21:59:07 +00003488 echo "$as_me:$LINENO: checking for GNU make" >&5
3489echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3490if test "${_cv_gnu_make_command+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492else
3493 _cv_gnu_make_command='' ;
3494 for a in "$MAKE" make gmake gnumake ; do
3495 if test -z "$a" ; then continue ; fi ;
3496 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3497 _cv_gnu_make_command=$a ;
3498 break;
3499 fi
3500 done ;
3501
3502fi
3503echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3504echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3505 if test "x$_cv_gnu_make_command" != "x" ; then
3506 ifGNUmake='' ;
3507 else
3508 ifGNUmake='#' ;
3509 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3510echo "${ECHO_T}\"Not found\"" >&6;
3511 fi
3512
3513
3514if test -z "$_cv_gnu_make_command"
3515then
3516 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3517echo "$as_me: error: GNU Make required but not found" >&2;}
3518 { (exit 1); exit 1; }; }
3519fi
3520
3521
3522echo "$as_me:$LINENO: checking " >&5
3523echo $ECHO_N "checking ... $ECHO_C" >&6
3524if test "${ac_cv_has_flex+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527 for ac_prog in flex lex
3528do
3529 # Extract the first word of "$ac_prog", so it can be a program name with args.
3530set dummy $ac_prog; ac_word=$2
3531echo "$as_me:$LINENO: checking for $ac_word" >&5
3532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533if test "${ac_cv_prog_LEX+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535else
3536 if test -n "$LEX"; then
3537 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3538else
3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540for as_dir in $PATH
3541do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_LEX="$ac_prog"
3547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550done
3551done
3552
3553fi
3554fi
3555LEX=$ac_cv_prog_LEX
3556if test -n "$LEX"; then
3557 echo "$as_me:$LINENO: result: $LEX" >&5
3558echo "${ECHO_T}$LEX" >&6
3559else
3560 echo "$as_me:$LINENO: result: no" >&5
3561echo "${ECHO_T}no" >&6
3562fi
3563
3564 test -n "$LEX" && break
3565done
3566test -n "$LEX" || LEX=":"
3567
3568if test -z "$LEXLIB"
3569then
3570 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3571echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3572if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574else
3575 ac_check_lib_save_LIBS=$LIBS
3576LIBS="-lfl $LIBS"
3577cat >conftest.$ac_ext <<_ACEOF
3578#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003579/* confdefs.h. */
3580_ACEOF
3581cat confdefs.h >>conftest.$ac_ext
3582cat >>conftest.$ac_ext <<_ACEOF
3583/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003584
3585/* Override any gcc2 internal prototype to avoid an error. */
3586#ifdef __cplusplus
3587extern "C"
3588#endif
3589/* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3591char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003592int
3593main ()
3594{
3595yywrap ();
3596 ;
3597 return 0;
3598}
3599_ACEOF
3600rm -f conftest.$ac_objext conftest$ac_exeext
3601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3602 (eval $ac_link) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } &&
3606 { ac_try='test -s conftest$ac_exeext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3612 ac_cv_lib_fl_yywrap=yes
3613else
3614 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003615sed 's/^/| /' conftest.$ac_ext >&5
3616
John Criswell7a73b802003-06-30 21:59:07 +00003617ac_cv_lib_fl_yywrap=no
3618fi
3619rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3620LIBS=$ac_check_lib_save_LIBS
3621fi
3622echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3623echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3624if test $ac_cv_lib_fl_yywrap = yes; then
3625 LEXLIB="-lfl"
3626else
3627 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3628echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3629if test "${ac_cv_lib_l_yywrap+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3631else
3632 ac_check_lib_save_LIBS=$LIBS
3633LIBS="-ll $LIBS"
3634cat >conftest.$ac_ext <<_ACEOF
3635#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003636/* confdefs.h. */
3637_ACEOF
3638cat confdefs.h >>conftest.$ac_ext
3639cat >>conftest.$ac_ext <<_ACEOF
3640/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003641
3642/* Override any gcc2 internal prototype to avoid an error. */
3643#ifdef __cplusplus
3644extern "C"
3645#endif
3646/* We use char because int might match the return type of a gcc2
3647 builtin and then its argument prototype would still apply. */
3648char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003649int
3650main ()
3651{
3652yywrap ();
3653 ;
3654 return 0;
3655}
3656_ACEOF
3657rm -f conftest.$ac_objext conftest$ac_exeext
3658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3659 (eval $ac_link) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try='test -s conftest$ac_exeext'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 ac_cv_lib_l_yywrap=yes
3670else
3671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003672sed 's/^/| /' conftest.$ac_ext >&5
3673
John Criswell7a73b802003-06-30 21:59:07 +00003674ac_cv_lib_l_yywrap=no
3675fi
3676rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3677LIBS=$ac_check_lib_save_LIBS
3678fi
3679echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3680echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3681if test $ac_cv_lib_l_yywrap = yes; then
3682 LEXLIB="-ll"
3683fi
3684
3685fi
3686
3687fi
3688
3689if test "x$LEX" != "x:"; then
3690 echo "$as_me:$LINENO: checking lex output file root" >&5
3691echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3692if test "${ac_cv_prog_lex_root+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
3695 # The minimal lex program is just a single line: %%. But some broken lexes
3696# (Solaris, I think it was) want two %% lines, so accommodate them.
3697cat >conftest.l <<_ACEOF
3698%%
3699%%
3700_ACEOF
3701{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3702 (eval $LEX conftest.l) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }
3706if test -f lex.yy.c; then
3707 ac_cv_prog_lex_root=lex.yy
3708elif test -f lexyy.c; then
3709 ac_cv_prog_lex_root=lexyy
3710else
3711 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3712echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3713 { (exit 1); exit 1; }; }
3714fi
3715fi
3716echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3717echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3718rm -f conftest.l
3719LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3720
3721echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3722echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3723if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725else
3726 # POSIX says lex can declare yytext either as a pointer or an array; the
3727# default is implementation-dependent. Figure out which it is, since
3728# not all implementations provide the %pointer and %array declarations.
3729ac_cv_prog_lex_yytext_pointer=no
3730echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3731ac_save_LIBS=$LIBS
3732LIBS="$LIBS $LEXLIB"
3733cat >conftest.$ac_ext <<_ACEOF
3734`cat $LEX_OUTPUT_ROOT.c`
3735_ACEOF
3736rm -f conftest.$ac_objext conftest$ac_exeext
3737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3738 (eval $ac_link) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -s conftest$ac_exeext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 (eval $ac_try) 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_prog_lex_yytext_pointer=yes
3749else
3750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003751sed 's/^/| /' conftest.$ac_ext >&5
3752
John Criswell7a73b802003-06-30 21:59:07 +00003753fi
3754rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3755LIBS=$ac_save_LIBS
3756rm -f "${LEX_OUTPUT_ROOT}.c"
3757
3758fi
3759echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3760echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3761if test $ac_cv_prog_lex_yytext_pointer = yes; then
3762
3763cat >>confdefs.h <<\_ACEOF
3764#define YYTEXT_POINTER 1
3765_ACEOF
3766
3767fi
3768
3769fi
3770
3771fi
3772echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3773echo "${ECHO_T}$ac_cv_has_flex" >&6
3774if test "$LEX" != "flex"; then
3775 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3776echo "$as_me: error: flex not found but required" >&2;}
3777 { (exit 1); exit 1; }; }
3778fi
3779
3780echo "$as_me:$LINENO: checking " >&5
3781echo $ECHO_N "checking ... $ECHO_C" >&6
3782if test "${ac_cv_has_bison+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
3785 for ac_prog in 'bison -y' byacc
3786do
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788set dummy $ac_prog; ac_word=$2
3789echo "$as_me:$LINENO: checking for $ac_word" >&5
3790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3791if test "${ac_cv_prog_YACC+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 if test -n "$YACC"; then
3795 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3796else
3797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH
3799do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804 ac_cv_prog_YACC="$ac_prog"
3805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808done
3809done
3810
3811fi
3812fi
3813YACC=$ac_cv_prog_YACC
3814if test -n "$YACC"; then
3815 echo "$as_me:$LINENO: result: $YACC" >&5
3816echo "${ECHO_T}$YACC" >&6
3817else
3818 echo "$as_me:$LINENO: result: no" >&5
3819echo "${ECHO_T}no" >&6
3820fi
3821
3822 test -n "$YACC" && break
3823done
3824test -n "$YACC" || YACC="yacc"
3825
3826
3827fi
3828echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3829echo "${ECHO_T}$ac_cv_has_bison" >&6
3830if test "$YACC" != "bison -y"; then
3831 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3832echo "$as_me: error: bison not found but required" >&2;}
3833 { (exit 1); exit 1; }; }
3834else
3835 YACC=bison
3836
3837fi
3838
3839
3840# Check whether --enable-shared or --disable-shared was given.
3841if test "${enable_shared+set}" = set; then
3842 enableval="$enable_shared"
3843 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003844 case $enableval in
3845 yes) enable_shared=yes ;;
3846 no) enable_shared=no ;;
3847 *)
3848 enable_shared=no
3849 # Look at the argument we got. We use all the common list separators.
3850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3851 for pkg in $enableval; do
3852 IFS="$lt_save_ifs"
3853 if test "X$pkg" = "X$p"; then
3854 enable_shared=yes
3855 fi
3856 done
3857 IFS="$lt_save_ifs"
3858 ;;
3859 esac
John Criswell7a73b802003-06-30 21:59:07 +00003860else
3861 enable_shared=yes
3862fi;
John Criswell47fdd832003-07-14 16:52:07 +00003863
John Criswell7a73b802003-06-30 21:59:07 +00003864# Check whether --enable-static or --disable-static was given.
3865if test "${enable_static+set}" = set; then
3866 enableval="$enable_static"
3867 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003868 case $enableval in
3869 yes) enable_static=yes ;;
3870 no) enable_static=no ;;
3871 *)
3872 enable_static=no
3873 # Look at the argument we got. We use all the common list separators.
3874 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3875 for pkg in $enableval; do
3876 IFS="$lt_save_ifs"
3877 if test "X$pkg" = "X$p"; then
3878 enable_static=yes
3879 fi
3880 done
3881 IFS="$lt_save_ifs"
3882 ;;
3883 esac
John Criswell7a73b802003-06-30 21:59:07 +00003884else
3885 enable_static=yes
3886fi;
John Criswell47fdd832003-07-14 16:52:07 +00003887
John Criswell7a73b802003-06-30 21:59:07 +00003888# Check whether --enable-fast-install or --disable-fast-install was given.
3889if test "${enable_fast_install+set}" = set; then
3890 enableval="$enable_fast_install"
3891 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003892 case $enableval in
3893 yes) enable_fast_install=yes ;;
3894 no) enable_fast_install=no ;;
3895 *)
3896 enable_fast_install=no
3897 # Look at the argument we got. We use all the common list separators.
3898 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3899 for pkg in $enableval; do
3900 IFS="$lt_save_ifs"
3901 if test "X$pkg" = "X$p"; then
3902 enable_fast_install=yes
3903 fi
3904 done
3905 IFS="$lt_save_ifs"
3906 ;;
3907 esac
John Criswell7a73b802003-06-30 21:59:07 +00003908else
3909 enable_fast_install=yes
3910fi;
John Criswell47fdd832003-07-14 16:52:07 +00003911
3912echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3913echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3914if test "${lt_cv_path_SED+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917 # Loop through the user's path and test for sed and gsed.
3918# Then use that list of sed's as ones to test for truncation.
3919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920for as_dir in $PATH
3921do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for lt_ac_prog in sed gsed; do
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3927 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3928 fi
3929 done
3930 done
3931done
3932lt_ac_max=0
3933lt_ac_count=0
3934# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3935# along with /bin/sed that truncates output.
3936for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3937 test ! -f $lt_ac_sed && break
3938 cat /dev/null > conftest.in
3939 lt_ac_count=0
3940 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3941 # Check for GNU sed and select it if it is found.
3942 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3943 lt_cv_path_SED=$lt_ac_sed
3944 break
3945 fi
3946 while true; do
3947 cat conftest.in conftest.in >conftest.tmp
3948 mv conftest.tmp conftest.in
3949 cp conftest.in conftest.nl
3950 echo >>conftest.nl
3951 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3952 cmp -s conftest.out conftest.nl || break
3953 # 10000 chars as input seems more than enough
3954 test $lt_ac_count -gt 10 && break
3955 lt_ac_count=`expr $lt_ac_count + 1`
3956 if test $lt_ac_count -gt $lt_ac_max; then
3957 lt_ac_max=$lt_ac_count
3958 lt_cv_path_SED=$lt_ac_sed
3959 fi
3960 done
3961done
3962SED=$lt_cv_path_SED
3963
John Criswell7a73b802003-06-30 21:59:07 +00003964fi
3965
John Criswell47fdd832003-07-14 16:52:07 +00003966echo "$as_me:$LINENO: result: $SED" >&5
3967echo "${ECHO_T}$SED" >&6
3968
3969echo "$as_me:$LINENO: checking for egrep" >&5
3970echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3971if test "${ac_cv_prog_egrep+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3975 then ac_cv_prog_egrep='grep -E'
3976 else ac_cv_prog_egrep='egrep'
3977 fi
3978fi
3979echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3980echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3981 EGREP=$ac_cv_prog_egrep
3982
3983
John Criswell7a73b802003-06-30 21:59:07 +00003984
3985# Check whether --with-gnu-ld or --without-gnu-ld was given.
3986if test "${with_gnu_ld+set}" = set; then
3987 withval="$with_gnu_ld"
3988 test "$withval" = no || with_gnu_ld=yes
3989else
3990 with_gnu_ld=no
3991fi;
3992ac_prog=ld
3993if test "$GCC" = yes; then
3994 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003995 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3996echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003997 case $host in
3998 *-*-mingw*)
3999 # gcc leaves a trailing carriage return which upsets mingw
4000 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4001 *)
4002 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4003 esac
4004 case $ac_prog in
4005 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004006 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004007 re_direlt='/[^/][^/]*/\.\./'
4008 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004009 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004010 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004011 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004012 done
4013 test -z "$LD" && LD="$ac_prog"
4014 ;;
4015 "")
4016 # If it fails, then pretend we aren't using GCC.
4017 ac_prog=ld
4018 ;;
4019 *)
4020 # If it is relative, then search for the first ld in PATH.
4021 with_gnu_ld=unknown
4022 ;;
4023 esac
4024elif test "$with_gnu_ld" = yes; then
4025 echo "$as_me:$LINENO: checking for GNU ld" >&5
4026echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4027else
4028 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4029echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4030fi
4031if test "${lt_cv_path_LD+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033else
4034 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004036 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004037 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004038 test -z "$ac_dir" && ac_dir=.
4039 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4040 lt_cv_path_LD="$ac_dir/$ac_prog"
4041 # Check to see if the program is GNU ld. I'd rather use --version,
4042 # but apparently some GNU ld's only accept -v.
4043 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004044 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4045 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004046 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004047 ;;
4048 *)
John Criswell7a73b802003-06-30 21:59:07 +00004049 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004050 ;;
4051 esac
John Criswell7a73b802003-06-30 21:59:07 +00004052 fi
4053 done
John Criswell47fdd832003-07-14 16:52:07 +00004054 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004055else
4056 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4057fi
4058fi
4059
4060LD="$lt_cv_path_LD"
4061if test -n "$LD"; then
4062 echo "$as_me:$LINENO: result: $LD" >&5
4063echo "${ECHO_T}$LD" >&6
4064else
4065 echo "$as_me:$LINENO: result: no" >&5
4066echo "${ECHO_T}no" >&6
4067fi
4068test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4069echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4070 { (exit 1); exit 1; }; }
4071echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4072echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4073if test "${lt_cv_prog_gnu_ld+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004077case `"$LD" -v 2>&1 </dev/null` in
4078*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004079 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004080 ;;
4081*)
John Criswell7a73b802003-06-30 21:59:07 +00004082 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004083 ;;
4084esac
John Criswell7a73b802003-06-30 21:59:07 +00004085fi
4086echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4087echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4088with_gnu_ld=$lt_cv_prog_gnu_ld
4089
4090
4091echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4092echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4093if test "${lt_cv_ld_reload_flag+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096 lt_cv_ld_reload_flag='-r'
4097fi
4098echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4099echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4100reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004101case $reload_flag in
4102"" | " "*) ;;
4103*) reload_flag=" $reload_flag" ;;
4104esac
4105reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004106
4107echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4108echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4109if test "${lt_cv_path_NM+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111else
4112 if test -n "$NM"; then
4113 # Let the user override the test.
4114 lt_cv_path_NM="$NM"
4115else
John Criswell47fdd832003-07-14 16:52:07 +00004116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004117 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004118 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004119 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004120 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4121 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004122 # Check to see if the nm accepts a BSD-compat flag.
4123 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4124 # nm: unknown option "B" ignored
4125 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004126 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4127 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004128 lt_cv_path_NM="$tmp_nm -B"
4129 break
John Criswell47fdd832003-07-14 16:52:07 +00004130 ;;
4131 *)
4132 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4133 */dev/null*)
4134 lt_cv_path_NM="$tmp_nm -p"
4135 break
4136 ;;
4137 *)
4138 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4139 continue # so that we can try to find one that supports BSD flags
4140 ;;
4141 esac
4142 esac
John Criswell7a73b802003-06-30 21:59:07 +00004143 fi
4144 done
John Criswell47fdd832003-07-14 16:52:07 +00004145 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004146 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4147fi
4148fi
John Criswell47fdd832003-07-14 16:52:07 +00004149echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4150echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004151NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004152
4153echo "$as_me:$LINENO: checking whether ln -s works" >&5
4154echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4155LN_S=$as_ln_s
4156if test "$LN_S" = "ln -s"; then
4157 echo "$as_me:$LINENO: result: yes" >&5
4158echo "${ECHO_T}yes" >&6
4159else
4160 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4161echo "${ECHO_T}no, using $LN_S" >&6
4162fi
4163
John Criswell47fdd832003-07-14 16:52:07 +00004164echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4165echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004166if test "${lt_cv_deplibs_check_method+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168else
4169 lt_cv_file_magic_cmd='$MAGIC_CMD'
4170lt_cv_file_magic_test_file=
4171lt_cv_deplibs_check_method='unknown'
4172# Need to set the preceding variable on all platforms that support
4173# interlibrary dependencies.
4174# 'none' -- dependencies not supported.
4175# `unknown' -- same as none, but documents that we really don't know.
4176# 'pass_all' -- all dependencies passed with no checks.
4177# 'test_compile' -- check by making test program.
4178# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004179# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004180# If you have `file' or equivalent on your system and you're not sure
4181# whether `pass_all' will *always* work, you probably want this one.
4182
4183case $host_os in
4184aix4* | aix5*)
4185 lt_cv_deplibs_check_method=pass_all
4186 ;;
4187
4188beos*)
4189 lt_cv_deplibs_check_method=pass_all
4190 ;;
4191
4192bsdi4*)
4193 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4194 lt_cv_file_magic_cmd='/usr/bin/file -L'
4195 lt_cv_file_magic_test_file=/shlib/libc.so
4196 ;;
4197
4198cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004199 # win32_libid is a shell function defined in ltmain.sh
4200 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4201 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004202 ;;
4203
4204darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004205 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004206 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4207 lt_cv_file_magic_cmd='/usr/bin/file -L'
4208 case "$host_os" in
4209 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004210 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004211 ;;
4212 *) # Darwin 1.3 on
4213 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4214 ;;
4215 esac
John Criswell47fdd832003-07-14 16:52:07 +00004216 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004217 ;;
4218
4219freebsd*)
4220 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4221 case $host_cpu in
4222 i*86 )
4223 # Not sure whether the presence of OpenBSD here was a mistake.
4224 # Let's accept both of them until this is cleared up.
4225 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4226 lt_cv_file_magic_cmd=/usr/bin/file
4227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4228 ;;
4229 esac
4230 else
4231 lt_cv_deplibs_check_method=pass_all
4232 fi
4233 ;;
4234
4235gnu*)
4236 lt_cv_deplibs_check_method=pass_all
4237 ;;
4238
John Criswell47fdd832003-07-14 16:52:07 +00004239hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004240 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004241 case "$host_cpu" in
4242 ia64*)
4243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4244 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4245 ;;
4246 hppa*64*)
4247 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]'
4248 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4249 ;;
4250 *)
4251 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4252 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4253 ;;
4254 esac
John Criswell7a73b802003-06-30 21:59:07 +00004255 ;;
4256
John Criswell47fdd832003-07-14 16:52:07 +00004257irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004258 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004259 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004260 # this will be overridden with pass_all, but let us keep it just in case
4261 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4262 ;;
4263 *)
4264 case $LD in
4265 *-32|*"-32 ") libmagic=32-bit;;
4266 *-n32|*"-n32 ") libmagic=N32;;
4267 *-64|*"-64 ") libmagic=64-bit;;
4268 *) libmagic=never-match;;
4269 esac
4270 # this will be overridden with pass_all, but let us keep it just in case
4271 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4272 ;;
4273 esac
4274 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4275 lt_cv_deplibs_check_method=pass_all
4276 ;;
4277
4278# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004279linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004280 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004281 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004282 lt_cv_deplibs_check_method=pass_all ;;
4283 *)
4284 # glibc up to 2.1.1 does not perform some relocations on ARM
4285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4286 esac
4287 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4288 ;;
4289
4290netbsd*)
4291 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004293 else
John Criswell47fdd832003-07-14 16:52:07 +00004294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004295 fi
4296 ;;
4297
4298newos6*)
4299 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4300 lt_cv_file_magic_cmd=/usr/bin/file
4301 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4302 ;;
4303
John Criswell47fdd832003-07-14 16:52:07 +00004304nto-qnx)
4305 lt_cv_deplibs_check_method=unknown
4306 ;;
4307
John Criswell7a73b802003-06-30 21:59:07 +00004308openbsd*)
4309 lt_cv_file_magic_cmd=/usr/bin/file
4310 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4311 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4313 else
4314 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4315 fi
4316 ;;
4317
4318osf3* | osf4* | osf5*)
4319 # this will be overridden with pass_all, but let us keep it just in case
4320 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4321 lt_cv_file_magic_test_file=/shlib/libc.so
4322 lt_cv_deplibs_check_method=pass_all
4323 ;;
4324
4325sco3.2v5*)
4326 lt_cv_deplibs_check_method=pass_all
4327 ;;
4328
4329solaris*)
4330 lt_cv_deplibs_check_method=pass_all
4331 lt_cv_file_magic_test_file=/lib/libc.so
4332 ;;
4333
John Criswell7a73b802003-06-30 21:59:07 +00004334sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4335 case $host_vendor in
4336 motorola)
4337 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]'
4338 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4339 ;;
4340 ncr)
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343 sequent)
4344 lt_cv_file_magic_cmd='/bin/file'
4345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4346 ;;
4347 sni)
4348 lt_cv_file_magic_cmd='/bin/file'
4349 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4350 lt_cv_file_magic_test_file=/lib/libc.so
4351 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004352 siemens)
4353 lt_cv_deplibs_check_method=pass_all
4354 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004355 esac
4356 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004357
4358sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4359 lt_cv_deplibs_check_method=pass_all
4360 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004361esac
4362
4363fi
4364echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4365echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4366file_magic_cmd=$lt_cv_file_magic_cmd
4367deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004368test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004369
4370
4371
4372
John Criswell47fdd832003-07-14 16:52:07 +00004373# If no C compiler was specified, use CC.
4374LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004375
John Criswell47fdd832003-07-14 16:52:07 +00004376# Allow CC to be a program name with arguments.
4377compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004378
John Criswell47fdd832003-07-14 16:52:07 +00004379# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4380if test "${enable_libtool_lock+set}" = set; then
4381 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004382
John Criswell47fdd832003-07-14 16:52:07 +00004383fi;
4384test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004385
John Criswell47fdd832003-07-14 16:52:07 +00004386# Some flags need to be propagated to the compiler or linker for good
4387# libtool support.
4388case $host in
4389ia64-*-hpux*)
4390 # Find out which ABI we are using.
4391 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004397 case `/usr/bin/file conftest.$ac_objext` in
4398 *ELF-32*)
4399 HPUX_IA64_MODE="32"
4400 ;;
4401 *ELF-64*)
4402 HPUX_IA64_MODE="64"
4403 ;;
4404 esac
4405 fi
4406 rm -rf conftest*
4407 ;;
4408*-*-irix6*)
4409 # Find out which ABI we are using.
John Criswell759c3ed2003-10-28 19:21:11 +00004410 echo '#line 4410 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004415 (exit $ac_status); }; then
4416 if test "$lt_cv_prog_gnu_ld" = yes; then
4417 case `/usr/bin/file conftest.$ac_objext` in
4418 *32-bit*)
4419 LD="${LD-ld} -melf32bsmip"
4420 ;;
4421 *N32*)
4422 LD="${LD-ld} -melf32bmipn32"
4423 ;;
4424 *64-bit*)
4425 LD="${LD-ld} -melf64bmip"
4426 ;;
4427 esac
4428 else
4429 case `/usr/bin/file conftest.$ac_objext` in
4430 *32-bit*)
4431 LD="${LD-ld} -32"
4432 ;;
4433 *N32*)
4434 LD="${LD-ld} -n32"
4435 ;;
4436 *64-bit*)
4437 LD="${LD-ld} -64"
4438 ;;
4439 esac
4440 fi
4441 fi
4442 rm -rf conftest*
4443 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004444
John Criswell47fdd832003-07-14 16:52:07 +00004445x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4446 # Find out which ABI we are using.
4447 echo 'int i;' > conftest.$ac_ext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449 (eval $ac_compile) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; then
4453 case "`/usr/bin/file conftest.o`" in
4454 *32-bit*)
4455 case $host in
4456 x86_64-*linux*)
4457 LD="${LD-ld} -m elf_i386"
4458 ;;
4459 ppc64-*linux*)
4460 LD="${LD-ld} -m elf32ppclinux"
4461 ;;
4462 s390x-*linux*)
4463 LD="${LD-ld} -m elf_s390"
4464 ;;
4465 sparc64-*linux*)
4466 LD="${LD-ld} -m elf32_sparc"
4467 ;;
4468 esac
4469 ;;
4470 *64-bit*)
4471 case $host in
4472 x86_64-*linux*)
4473 LD="${LD-ld} -m elf_x86_64"
4474 ;;
4475 ppc*-*linux*|powerpc*-*linux*)
4476 LD="${LD-ld} -m elf64ppc"
4477 ;;
4478 s390*-*linux*)
4479 LD="${LD-ld} -m elf64_s390"
4480 ;;
4481 sparc*-*linux*)
4482 LD="${LD-ld} -m elf64_sparc"
4483 ;;
4484 esac
4485 ;;
4486 esac
4487 fi
4488 rm -rf conftest*
4489 ;;
4490
4491*-*-sco3.2v5*)
4492 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4493 SAVE_CFLAGS="$CFLAGS"
4494 CFLAGS="$CFLAGS -belf"
4495 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4496echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4497if test "${lt_cv_cc_needs_belf+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499else
4500 ac_ext=c
4501ac_cpp='$CPP $CPPFLAGS'
4502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505
4506 cat >conftest.$ac_ext <<_ACEOF
4507#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004508/* confdefs.h. */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004513
John Criswell47fdd832003-07-14 16:52:07 +00004514int
4515main ()
John Criswell7a73b802003-06-30 21:59:07 +00004516{
John Criswell7a73b802003-06-30 21:59:07 +00004517
John Criswell47fdd832003-07-14 16:52:07 +00004518 ;
4519 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004520}
John Criswell47fdd832003-07-14 16:52:07 +00004521_ACEOF
4522rm -f conftest.$ac_objext conftest$ac_exeext
4523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004524 (eval $ac_link) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004527 (exit $ac_status); } &&
4528 { ac_try='test -s conftest$ac_exeext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004535else
John Criswell47fdd832003-07-14 16:52:07 +00004536 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004537sed 's/^/| /' conftest.$ac_ext >&5
4538
John Criswell47fdd832003-07-14 16:52:07 +00004539lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004540fi
John Criswell47fdd832003-07-14 16:52:07 +00004541rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4542 ac_ext=c
4543ac_cpp='$CPP $CPPFLAGS'
4544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
John Criswell7a73b802003-06-30 21:59:07 +00004548fi
John Criswell47fdd832003-07-14 16:52:07 +00004549echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4550echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4551 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4552 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4553 CFLAGS="$SAVE_CFLAGS"
4554 fi
4555 ;;
4556
4557esac
4558
4559need_locks="$enable_libtool_lock"
4560
John Criswell7a73b802003-06-30 21:59:07 +00004561
4562
4563echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4564echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4565if test "${ac_cv_header_stdc+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567else
4568 cat >conftest.$ac_ext <<_ACEOF
4569#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004570/* confdefs.h. */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
4574/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004575#include <stdlib.h>
4576#include <stdarg.h>
4577#include <string.h>
4578#include <float.h>
4579
John Criswell0c38eaf2003-09-10 15:17:25 +00004580int
4581main ()
4582{
4583
4584 ;
4585 return 0;
4586}
John Criswell7a73b802003-06-30 21:59:07 +00004587_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004588rm -f conftest.$ac_objext
4589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004591 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004593 (exit $ac_status); } &&
4594 { ac_try='test -s conftest.$ac_objext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004600 ac_cv_header_stdc=yes
4601else
4602 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004603sed 's/^/| /' conftest.$ac_ext >&5
4604
4605ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004606fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004607rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004608
4609if test $ac_cv_header_stdc = yes; then
4610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4611 cat >conftest.$ac_ext <<_ACEOF
4612#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004613/* confdefs.h. */
4614_ACEOF
4615cat confdefs.h >>conftest.$ac_ext
4616cat >>conftest.$ac_ext <<_ACEOF
4617/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004618#include <string.h>
4619
4620_ACEOF
4621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004622 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004623 :
4624else
4625 ac_cv_header_stdc=no
4626fi
4627rm -f conftest*
4628
4629fi
4630
4631if test $ac_cv_header_stdc = yes; then
4632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4633 cat >conftest.$ac_ext <<_ACEOF
4634#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004635/* confdefs.h. */
4636_ACEOF
4637cat confdefs.h >>conftest.$ac_ext
4638cat >>conftest.$ac_ext <<_ACEOF
4639/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004640#include <stdlib.h>
4641
4642_ACEOF
4643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004644 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004645 :
4646else
4647 ac_cv_header_stdc=no
4648fi
4649rm -f conftest*
4650
4651fi
4652
4653if test $ac_cv_header_stdc = yes; then
4654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4655 if test "$cross_compiling" = yes; then
4656 :
4657else
4658 cat >conftest.$ac_ext <<_ACEOF
4659#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004660/* confdefs.h. */
4661_ACEOF
4662cat confdefs.h >>conftest.$ac_ext
4663cat >>conftest.$ac_ext <<_ACEOF
4664/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004665#include <ctype.h>
4666#if ((' ' & 0x0FF) == 0x020)
4667# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4668# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4669#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004670# define ISLOWER(c) \
4671 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004672 || ('j' <= (c) && (c) <= 'r') \
4673 || ('s' <= (c) && (c) <= 'z'))
4674# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4675#endif
4676
4677#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4678int
4679main ()
4680{
4681 int i;
4682 for (i = 0; i < 256; i++)
4683 if (XOR (islower (i), ISLOWER (i))
4684 || toupper (i) != TOUPPER (i))
4685 exit(2);
4686 exit (0);
4687}
4688_ACEOF
4689rm -f conftest$ac_exeext
4690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691 (eval $ac_link) 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 :
4701else
4702 echo "$as_me: program exited with status $ac_status" >&5
4703echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004704sed 's/^/| /' conftest.$ac_ext >&5
4705
John Criswell7a73b802003-06-30 21:59:07 +00004706( exit $ac_status )
4707ac_cv_header_stdc=no
4708fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004709rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004710fi
4711fi
4712fi
4713echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4714echo "${ECHO_T}$ac_cv_header_stdc" >&6
4715if test $ac_cv_header_stdc = yes; then
4716
4717cat >>confdefs.h <<\_ACEOF
4718#define STDC_HEADERS 1
4719_ACEOF
4720
4721fi
4722
4723# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4734 inttypes.h stdint.h unistd.h
4735do
4736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4737echo "$as_me:$LINENO: checking for $ac_header" >&5
4738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4739if eval "test \"\${$as_ac_Header+set}\" = set"; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741else
4742 cat >conftest.$ac_ext <<_ACEOF
4743#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004744/* confdefs.h. */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004749$ac_includes_default
4750
4751#include <$ac_header>
4752_ACEOF
4753rm -f conftest.$ac_objext
4754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4755 (eval $ac_compile) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -s conftest.$ac_objext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 (eval $ac_try) 2>&5
4762 ac_status=$?
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 eval "$as_ac_Header=yes"
4766else
4767 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004768sed 's/^/| /' conftest.$ac_ext >&5
4769
John Criswell7a73b802003-06-30 21:59:07 +00004770eval "$as_ac_Header=no"
4771fi
4772rm -f conftest.$ac_objext conftest.$ac_ext
4773fi
4774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4776if test `eval echo '${'$as_ac_Header'}'` = yes; then
4777 cat >>confdefs.h <<_ACEOF
4778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4779_ACEOF
4780
4781fi
4782
4783done
4784
4785
4786
4787for ac_header in dlfcn.h
4788do
4789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4790if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791 echo "$as_me:$LINENO: checking for $ac_header" >&5
4792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4793if eval "test \"\${$as_ac_Header+set}\" = set"; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795fi
4796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4798else
4799 # Is the header compilable?
4800echo "$as_me:$LINENO: checking $ac_header usability" >&5
4801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4802cat >conftest.$ac_ext <<_ACEOF
4803#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004804/* confdefs.h. */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
4808/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004809$ac_includes_default
4810#include <$ac_header>
4811_ACEOF
4812rm -f conftest.$ac_objext
4813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814 (eval $ac_compile) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_header_compiler=yes
4825else
4826 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004827sed 's/^/| /' conftest.$ac_ext >&5
4828
John Criswell7a73b802003-06-30 21:59:07 +00004829ac_header_compiler=no
4830fi
4831rm -f conftest.$ac_objext conftest.$ac_ext
4832echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4833echo "${ECHO_T}$ac_header_compiler" >&6
4834
4835# Is the header present?
4836echo "$as_me:$LINENO: checking $ac_header presence" >&5
4837echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4838cat >conftest.$ac_ext <<_ACEOF
4839#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004840/* confdefs.h. */
4841_ACEOF
4842cat confdefs.h >>conftest.$ac_ext
4843cat >>conftest.$ac_ext <<_ACEOF
4844/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004845#include <$ac_header>
4846_ACEOF
4847if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4849 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004850 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } >/dev/null; then
4855 if test -s conftest.err; then
4856 ac_cpp_err=$ac_c_preproc_warn_flag
4857 else
4858 ac_cpp_err=
4859 fi
4860else
4861 ac_cpp_err=yes
4862fi
4863if test -z "$ac_cpp_err"; then
4864 ac_header_preproc=yes
4865else
4866 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004867sed 's/^/| /' conftest.$ac_ext >&5
4868
John Criswell7a73b802003-06-30 21:59:07 +00004869 ac_header_preproc=no
4870fi
4871rm -f conftest.err conftest.$ac_ext
4872echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4873echo "${ECHO_T}$ac_header_preproc" >&6
4874
4875# So? What about this header?
4876case $ac_header_compiler:$ac_header_preproc in
4877 yes:no )
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4879echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4882 (
4883 cat <<\_ASBOX
4884## ------------------------------------ ##
4885## Report this to bug-autoconf@gnu.org. ##
4886## ------------------------------------ ##
4887_ASBOX
4888 ) |
4889 sed "s/^/$as_me: WARNING: /" >&2
4890 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004891 no:yes )
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4898 (
4899 cat <<\_ASBOX
4900## ------------------------------------ ##
4901## Report this to bug-autoconf@gnu.org. ##
4902## ------------------------------------ ##
4903_ASBOX
4904 ) |
4905 sed "s/^/$as_me: WARNING: /" >&2
4906 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004907esac
4908echo "$as_me:$LINENO: checking for $ac_header" >&5
4909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4910if eval "test \"\${$as_ac_Header+set}\" = set"; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912else
4913 eval "$as_ac_Header=$ac_header_preproc"
4914fi
4915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4917
4918fi
4919if test `eval echo '${'$as_ac_Header'}'` = yes; then
4920 cat >>confdefs.h <<_ACEOF
4921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4922_ACEOF
4923
4924fi
4925
4926done
4927
John Criswell47fdd832003-07-14 16:52:07 +00004928ac_ext=cc
4929ac_cpp='$CXXCPP $CPPFLAGS'
4930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4933echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4934echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4935if test -z "$CXXCPP"; then
4936 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004937 echo $ECHO_N "(cached) $ECHO_C" >&6
4938else
John Criswell47fdd832003-07-14 16:52:07 +00004939 # Double quotes because CXXCPP needs to be expanded
4940 for CXXCPP in "$CXX -E" "/lib/cpp"
4941 do
4942 ac_preproc_ok=false
4943for ac_cxx_preproc_warn_flag in '' yes
4944do
4945 # Use a header file that comes with gcc, so configuring glibc
4946 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4948 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004949 # On the NeXT, cc -E runs the code through the compiler's parser,
4950 # not just through cpp. "Syntax error" is here to catch this case.
4951 cat >conftest.$ac_ext <<_ACEOF
4952#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004953/* confdefs.h. */
4954_ACEOF
4955cat confdefs.h >>conftest.$ac_ext
4956cat >>conftest.$ac_ext <<_ACEOF
4957/* end confdefs.h. */
4958#ifdef __STDC__
4959# include <limits.h>
4960#else
4961# include <assert.h>
4962#endif
John Criswell47fdd832003-07-14 16:52:07 +00004963 Syntax error
4964_ACEOF
4965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4967 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004968 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } >/dev/null; then
4973 if test -s conftest.err; then
4974 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004975 else
John Criswell47fdd832003-07-14 16:52:07 +00004976 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004977 fi
John Criswell47fdd832003-07-14 16:52:07 +00004978else
4979 ac_cpp_err=yes
4980fi
4981if test -z "$ac_cpp_err"; then
4982 :
4983else
4984 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004985sed 's/^/| /' conftest.$ac_ext >&5
4986
John Criswell47fdd832003-07-14 16:52:07 +00004987 # Broken: fails on valid input.
4988continue
4989fi
4990rm -f conftest.err conftest.$ac_ext
4991
4992 # OK, works on sane cases. Now check whether non-existent headers
4993 # can be detected and how.
4994 cat >conftest.$ac_ext <<_ACEOF
4995#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004996/* confdefs.h. */
4997_ACEOF
4998cat confdefs.h >>conftest.$ac_ext
4999cat >>conftest.$ac_ext <<_ACEOF
5000/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005001#include <ac_nonexistent.h>
5002_ACEOF
5003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5005 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005006 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } >/dev/null; then
5011 if test -s conftest.err; then
5012 ac_cpp_err=$ac_cxx_preproc_warn_flag
5013 else
5014 ac_cpp_err=
5015 fi
5016else
5017 ac_cpp_err=yes
5018fi
5019if test -z "$ac_cpp_err"; then
5020 # Broken: success on invalid input.
5021continue
5022else
5023 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005024sed 's/^/| /' conftest.$ac_ext >&5
5025
John Criswell47fdd832003-07-14 16:52:07 +00005026 # Passes both tests.
5027ac_preproc_ok=:
5028break
5029fi
5030rm -f conftest.err conftest.$ac_ext
5031
5032done
5033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5034rm -f conftest.err conftest.$ac_ext
5035if $ac_preproc_ok; then
5036 break
John Criswell7a73b802003-06-30 21:59:07 +00005037fi
5038
John Criswell47fdd832003-07-14 16:52:07 +00005039 done
5040 ac_cv_prog_CXXCPP=$CXXCPP
5041
5042fi
5043 CXXCPP=$ac_cv_prog_CXXCPP
5044else
5045 ac_cv_prog_CXXCPP=$CXXCPP
5046fi
5047echo "$as_me:$LINENO: result: $CXXCPP" >&5
5048echo "${ECHO_T}$CXXCPP" >&6
5049ac_preproc_ok=false
5050for ac_cxx_preproc_warn_flag in '' yes
5051do
5052 # Use a header file that comes with gcc, so configuring glibc
5053 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005056 # On the NeXT, cc -E runs the code through the compiler's parser,
5057 # not just through cpp. "Syntax error" is here to catch this case.
5058 cat >conftest.$ac_ext <<_ACEOF
5059#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005060/* confdefs.h. */
5061_ACEOF
5062cat confdefs.h >>conftest.$ac_ext
5063cat >>conftest.$ac_ext <<_ACEOF
5064/* end confdefs.h. */
5065#ifdef __STDC__
5066# include <limits.h>
5067#else
5068# include <assert.h>
5069#endif
John Criswell47fdd832003-07-14 16:52:07 +00005070 Syntax error
5071_ACEOF
5072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5074 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005075 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null; then
5080 if test -s conftest.err; then
5081 ac_cpp_err=$ac_cxx_preproc_warn_flag
5082 else
5083 ac_cpp_err=
5084 fi
5085else
5086 ac_cpp_err=yes
5087fi
5088if test -z "$ac_cpp_err"; then
5089 :
5090else
5091 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005092sed 's/^/| /' conftest.$ac_ext >&5
5093
John Criswell47fdd832003-07-14 16:52:07 +00005094 # Broken: fails on valid input.
5095continue
5096fi
5097rm -f conftest.err conftest.$ac_ext
5098
5099 # OK, works on sane cases. Now check whether non-existent headers
5100 # can be detected and how.
5101 cat >conftest.$ac_ext <<_ACEOF
5102#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005103/* confdefs.h. */
5104_ACEOF
5105cat confdefs.h >>conftest.$ac_ext
5106cat >>conftest.$ac_ext <<_ACEOF
5107/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005108#include <ac_nonexistent.h>
5109_ACEOF
5110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005113 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null; then
5118 if test -s conftest.err; then
5119 ac_cpp_err=$ac_cxx_preproc_warn_flag
5120 else
5121 ac_cpp_err=
5122 fi
5123else
5124 ac_cpp_err=yes
5125fi
5126if test -z "$ac_cpp_err"; then
5127 # Broken: success on invalid input.
5128continue
5129else
5130 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005131sed 's/^/| /' conftest.$ac_ext >&5
5132
John Criswell47fdd832003-07-14 16:52:07 +00005133 # Passes both tests.
5134ac_preproc_ok=:
5135break
5136fi
5137rm -f conftest.err conftest.$ac_ext
5138
5139done
5140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141rm -f conftest.err conftest.$ac_ext
5142if $ac_preproc_ok; then
5143 :
5144else
John Criswell0c38eaf2003-09-10 15:17:25 +00005145 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5146See \`config.log' for more details." >&5
5147echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5148See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005149 { (exit 1); exit 1; }; }
5150fi
5151
5152ac_ext=cc
5153ac_cpp='$CXXCPP $CPPFLAGS'
5154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5157
5158
5159ac_ext=f
5160ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5161ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5162ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5163if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005164 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
John Criswell47fdd832003-07-14 16:52:07 +00005165 do
5166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5167set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5168echo "$as_me:$LINENO: checking for $ac_word" >&5
5169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5170if test "${ac_cv_prog_F77+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
5173 if test -n "$F77"; then
5174 ac_cv_prog_F77="$F77" # Let the user override the test.
5175else
5176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177for as_dir in $PATH
5178do
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5186 fi
5187done
5188done
5189
5190fi
5191fi
5192F77=$ac_cv_prog_F77
5193if test -n "$F77"; then
5194 echo "$as_me:$LINENO: result: $F77" >&5
5195echo "${ECHO_T}$F77" >&6
5196else
5197 echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
5199fi
5200
5201 test -n "$F77" && break
5202 done
5203fi
5204if test -z "$F77"; then
5205 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005206 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
John Criswell47fdd832003-07-14 16:52:07 +00005207do
5208 # Extract the first word of "$ac_prog", so it can be a program name with args.
5209set dummy $ac_prog; ac_word=$2
5210echo "$as_me:$LINENO: checking for $ac_word" >&5
5211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214else
5215 if test -n "$ac_ct_F77"; then
5216 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5217else
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_ac_ct_F77="$ac_prog"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229done
5230done
5231
5232fi
5233fi
5234ac_ct_F77=$ac_cv_prog_ac_ct_F77
5235if test -n "$ac_ct_F77"; then
5236 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5237echo "${ECHO_T}$ac_ct_F77" >&6
5238else
5239 echo "$as_me:$LINENO: result: no" >&5
5240echo "${ECHO_T}no" >&6
5241fi
5242
5243 test -n "$ac_ct_F77" && break
5244done
5245
5246 F77=$ac_ct_F77
5247fi
5248
5249
5250# Provide some information about the compiler.
John Criswell759c3ed2003-10-28 19:21:11 +00005251echo "$as_me:5251:" \
John Criswell47fdd832003-07-14 16:52:07 +00005252 "checking for Fortran 77 compiler version" >&5
5253ac_compiler=`set X $ac_compile; echo $2`
5254{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5255 (eval $ac_compiler --version </dev/null >&5) 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }
5259{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5260 (eval $ac_compiler -v </dev/null >&5) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }
5264{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5265 (eval $ac_compiler -V </dev/null >&5) 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }
5269
5270# If we don't use `.F' as extension, the preprocessor is not run on the
5271# input file.
5272ac_save_ext=$ac_ext
5273ac_ext=F
5274echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5275echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5276if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278else
5279 cat >conftest.$ac_ext <<_ACEOF
5280 program main
5281#ifndef __GNUC__
5282 choke me
5283#endif
5284
5285 end
5286_ACEOF
5287rm -f conftest.$ac_objext
5288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5289 (eval $ac_compile) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -s conftest.$ac_objext'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 (eval $ac_try) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 ac_compiler_gnu=yes
5300else
5301 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005302sed 's/^/| /' conftest.$ac_ext >&5
5303
John Criswell47fdd832003-07-14 16:52:07 +00005304ac_compiler_gnu=no
5305fi
5306rm -f conftest.$ac_objext conftest.$ac_ext
5307ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5308
5309fi
5310echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5311echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5312ac_ext=$ac_save_ext
5313G77=`test $ac_compiler_gnu = yes && echo yes`
5314ac_test_FFLAGS=${FFLAGS+set}
5315ac_save_FFLAGS=$FFLAGS
5316FFLAGS=
5317echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5318echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5319if test "${ac_cv_prog_f77_g+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321else
5322 FFLAGS=-g
5323cat >conftest.$ac_ext <<_ACEOF
5324 program main
5325
5326 end
5327_ACEOF
5328rm -f conftest.$ac_objext
5329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5330 (eval $ac_compile) 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -s conftest.$ac_objext'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 (eval $ac_try) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
5340 ac_cv_prog_f77_g=yes
5341else
5342 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005343sed 's/^/| /' conftest.$ac_ext >&5
5344
John Criswell47fdd832003-07-14 16:52:07 +00005345ac_cv_prog_f77_g=no
5346fi
5347rm -f conftest.$ac_objext conftest.$ac_ext
5348
5349fi
5350echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5351echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5352if test "$ac_test_FFLAGS" = set; then
5353 FFLAGS=$ac_save_FFLAGS
5354elif test $ac_cv_prog_f77_g = yes; then
5355 if test "$G77" = yes; then
5356 FFLAGS="-g -O2"
5357 else
5358 FFLAGS="-g"
5359 fi
5360else
5361 if test "$G77" = yes; then
5362 FFLAGS="-O2"
5363 else
5364 FFLAGS=
5365 fi
5366fi
5367ac_ext=c
5368ac_cpp='$CPP $CPPFLAGS'
5369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371ac_compiler_gnu=$ac_cv_c_compiler_gnu
5372
5373
5374
5375# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5376
5377# find the maximum length of command line arguments
5378echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5379echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5380if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382else
5383 i=0
5384 testring="ABCD"
5385
5386 case $build_os in
5387 msdosdjgpp*)
5388 # On DJGPP, this test can blow up pretty badly due to problems in libc
5389 # (any single argument exceeding 2000 bytes causes a buffer overrun
5390 # during glob expansion). Even if it were fixed, the result of this
5391 # check would be larger than it should be.
5392 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5393 ;;
5394
5395 gnu*)
5396 # Under GNU Hurd, this test is not required because there is
5397 # no limit to the length of command line arguments.
5398 # Libtool will interpret -1 as no limit whatsoever
5399 lt_cv_sys_max_cmd_len=-1;
5400 ;;
5401
5402 cygwin* | mingw*)
5403 # On Win9x/ME, this test blows up -- it succeeds, but takes
5404 # about 5 minutes as the teststring grows exponentially.
5405 # Worse, since 9x/ME are not pre-emptively multitasking,
5406 # you end up with a "frozen" computer, even though with patience
5407 # the test eventually succeeds (with a max line length of 256k).
5408 # Instead, let's just punt: use the minimum linelength reported by
5409 # all of the supported platforms: 8192 (on NT/2K/XP).
5410 lt_cv_sys_max_cmd_len=8192;
5411 ;;
5412
5413 *)
5414 # If test is not a shell built-in, we'll probably end up computing a
5415 # maximum length that is only half of the actual maximum length, but
5416 # we can't tell.
5417 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5418 = "XX$testring") >/dev/null 2>&1 &&
5419 new_result=`expr "X$testring" : ".*" 2>&1` &&
5420 lt_cv_sys_max_cmd_len=$new_result &&
5421 test $i != 17 # 1/2 MB should be enough
5422 do
5423 i=`expr $i + 1`
5424 testring=$testring$testring
5425 done
5426 testring=
5427 # Add a significant safety factor because C++ compilers can tack on massive
5428 # amounts of additional arguments before passing them to the linker.
5429 # It appears as though 1/2 is a usable value.
5430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5431 ;;
5432 esac
5433
5434fi
5435
5436if test -n $lt_cv_sys_max_cmd_len ; then
5437 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5438echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5439else
5440 echo "$as_me:$LINENO: result: none" >&5
5441echo "${ECHO_T}none" >&6
5442fi
5443
5444
5445
5446
5447# Check for command to grab the raw symbol name followed by C symbol from nm.
5448echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5449echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5450if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5452else
5453
5454# These are sane defaults that work on at least a few old systems.
5455# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5456
5457# Character class describing NM global symbol codes.
5458symcode='[BCDEGRST]'
5459
5460# Regexp to match symbols that can be accessed directly from C.
5461sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5462
5463# Transform the above into a raw symbol and a C symbol.
5464symxfrm='\1 \2\3 \3'
5465
5466# Transform an extracted symbol line into a proper C declaration
5467lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5468
5469# Transform an extracted symbol line into symbol name and symbol address
5470lt_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'"
5471
5472# Define system-specific variables.
5473case $host_os in
5474aix*)
5475 symcode='[BCDT]'
5476 ;;
5477cygwin* | mingw* | pw32*)
5478 symcode='[ABCDGISTW]'
5479 ;;
5480hpux*) # Its linker distinguishes data from code symbols
5481 if test "$host_cpu" = ia64; then
5482 symcode='[ABCDEGRST]'
5483 fi
5484 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5485 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'"
5486 ;;
5487irix* | nonstopux*)
5488 symcode='[BCDEGRST]'
5489 ;;
5490osf*)
5491 symcode='[BCDEGQRST]'
5492 ;;
5493solaris* | sysv5*)
5494 symcode='[BDT]'
5495 ;;
5496sysv4)
5497 symcode='[DFNSTU]'
5498 ;;
5499esac
5500
5501# Handle CRLF in mingw tool chain
5502opt_cr=
5503case $build_os in
5504mingw*)
5505 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5506 ;;
5507esac
5508
5509# If we're using GNU nm, then use its standard symbol codes.
5510case `$NM -V 2>&1` in
5511*GNU* | *'with BFD'*)
5512 symcode='[ABCDGISTW]' ;;
5513esac
5514
5515# Try without a prefix undercore, then with it.
5516for ac_symprfx in "" "_"; do
5517
5518 # Write the raw and C identifiers.
5519 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5520
5521 # Check to see that the pipe works correctly.
5522 pipe_works=no
5523
5524 rm -f conftest*
5525 cat > conftest.$ac_ext <<EOF
5526#ifdef __cplusplus
5527extern "C" {
5528#endif
5529char nm_test_var;
5530void nm_test_func(){}
5531#ifdef __cplusplus
5532}
5533#endif
5534int main(){nm_test_var='a';nm_test_func();return(0);}
5535EOF
5536
5537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5538 (eval $ac_compile) 2>&5
5539 ac_status=$?
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; then
5542 # Now try to grab the symbols.
5543 nlist=conftest.nm
5544 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5545 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && test -s "$nlist"; then
5549 # Try sorting and uniquifying the output.
5550 if sort "$nlist" | uniq > "$nlist"T; then
5551 mv -f "$nlist"T "$nlist"
5552 else
5553 rm -f "$nlist"T
5554 fi
5555
5556 # Make sure that we snagged all the symbols we need.
5557 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5558 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5559 cat <<EOF > conftest.$ac_ext
5560#ifdef __cplusplus
5561extern "C" {
5562#endif
5563
5564EOF
5565 # Now generate the symbol file.
5566 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5567
5568 cat <<EOF >> conftest.$ac_ext
5569#if defined (__STDC__) && __STDC__
5570# define lt_ptr_t void *
5571#else
5572# define lt_ptr_t char *
5573# define const
5574#endif
5575
5576/* The mapping between symbol names and symbols. */
5577const struct {
5578 const char *name;
5579 lt_ptr_t address;
5580}
5581lt_preloaded_symbols[] =
5582{
5583EOF
5584 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5585 cat <<\EOF >> conftest.$ac_ext
5586 {0, (lt_ptr_t) 0}
5587};
5588
5589#ifdef __cplusplus
5590}
5591#endif
5592EOF
5593 # Now try linking the two files.
5594 mv conftest.$ac_objext conftstm.$ac_objext
5595 lt_save_LIBS="$LIBS"
5596 lt_save_CFLAGS="$CFLAGS"
5597 LIBS="conftstm.$ac_objext"
5598 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5604 pipe_works=yes
5605 fi
5606 LIBS="$lt_save_LIBS"
5607 CFLAGS="$lt_save_CFLAGS"
5608 else
5609 echo "cannot find nm_test_func in $nlist" >&5
5610 fi
5611 else
5612 echo "cannot find nm_test_var in $nlist" >&5
5613 fi
5614 else
5615 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5616 fi
5617 else
5618 echo "$progname: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5620 fi
5621 rm -f conftest* conftst*
5622
5623 # Do not use the global_symbol_pipe unless it works.
5624 if test "$pipe_works" = yes; then
5625 break
5626 else
5627 lt_cv_sys_global_symbol_pipe=
5628 fi
5629done
5630
5631fi
5632
5633if test -z "$lt_cv_sys_global_symbol_pipe"; then
5634 lt_cv_sys_global_symbol_to_cdecl=
5635fi
5636if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5637 echo "$as_me:$LINENO: result: failed" >&5
5638echo "${ECHO_T}failed" >&6
5639else
5640 echo "$as_me:$LINENO: result: ok" >&5
5641echo "${ECHO_T}ok" >&6
5642fi
5643
5644echo "$as_me:$LINENO: checking for objdir" >&5
5645echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5646if test "${lt_cv_objdir+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648else
5649 rm -f .libs 2>/dev/null
5650mkdir .libs 2>/dev/null
5651if test -d .libs; then
5652 lt_cv_objdir=.libs
5653else
5654 # MS-DOS does not allow filenames that begin with a dot.
5655 lt_cv_objdir=_libs
5656fi
5657rmdir .libs 2>/dev/null
5658fi
5659echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5660echo "${ECHO_T}$lt_cv_objdir" >&6
5661objdir=$lt_cv_objdir
5662
5663
5664
5665
5666
5667case $host_os in
5668aix3*)
5669 # AIX sometimes has problems with the GCC collect2 program. For some
5670 # reason, if we set the COLLECT_NAMES environment variable, the problems
5671 # vanish in a puff of smoke.
5672 if test "X${COLLECT_NAMES+set}" != Xset; then
5673 COLLECT_NAMES=
5674 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005675 fi
5676 ;;
5677esac
5678
John Criswell47fdd832003-07-14 16:52:07 +00005679# Sed substitution that helps us do robust quoting. It backslashifies
5680# metacharacters that are still active within double-quoted strings.
5681Xsed='sed -e s/^X//'
5682sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5683
5684# Same as above, but do not quote variable references.
5685double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5686
5687# Sed substitution to delay expansion of an escaped shell variable in a
5688# double_quote_subst'ed string.
5689delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5690
5691# Sed substitution to avoid accidental globbing in evaled expressions
5692no_glob_subst='s/\*/\\\*/g'
5693
5694# Constants:
5695rm="rm -f"
5696
5697# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005698default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005699can_build_shared=yes
5700
5701# All known linkers require a `.a' archive for static linking (except M$VC,
5702# which needs '.lib').
5703libext=a
5704ltmain="$ac_aux_dir/ltmain.sh"
5705ofile="$default_ofile"
5706with_gnu_ld="$lt_cv_prog_gnu_ld"
5707
5708if test -n "$ac_tool_prefix"; then
5709 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5710set dummy ${ac_tool_prefix}ar; ac_word=$2
5711echo "$as_me:$LINENO: checking for $ac_word" >&5
5712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5713if test "${ac_cv_prog_AR+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716 if test -n "$AR"; then
5717 ac_cv_prog_AR="$AR" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_AR="${ac_tool_prefix}ar"
5727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5729 fi
5730done
5731done
5732
5733fi
5734fi
5735AR=$ac_cv_prog_AR
5736if test -n "$AR"; then
5737 echo "$as_me:$LINENO: result: $AR" >&5
5738echo "${ECHO_T}$AR" >&6
5739else
5740 echo "$as_me:$LINENO: result: no" >&5
5741echo "${ECHO_T}no" >&6
5742fi
5743
5744fi
5745if test -z "$ac_cv_prog_AR"; then
5746 ac_ct_AR=$AR
5747 # Extract the first word of "ar", so it can be a program name with args.
5748set dummy ar; ac_word=$2
5749echo "$as_me:$LINENO: checking for $ac_word" >&5
5750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5751if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753else
5754 if test -n "$ac_ct_AR"; then
5755 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5756else
5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758for as_dir in $PATH
5759do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764 ac_cv_prog_ac_ct_AR="ar"
5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5767 fi
5768done
5769done
5770
5771 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5772fi
5773fi
5774ac_ct_AR=$ac_cv_prog_ac_ct_AR
5775if test -n "$ac_ct_AR"; then
5776 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5777echo "${ECHO_T}$ac_ct_AR" >&6
5778else
5779 echo "$as_me:$LINENO: result: no" >&5
5780echo "${ECHO_T}no" >&6
5781fi
5782
5783 AR=$ac_ct_AR
5784else
5785 AR="$ac_cv_prog_AR"
5786fi
5787
John Criswell7a73b802003-06-30 21:59:07 +00005788if test -n "$ac_tool_prefix"; then
5789 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5790set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5791echo "$as_me:$LINENO: checking for $ac_word" >&5
5792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5793if test "${ac_cv_prog_RANLIB+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795else
5796 if test -n "$RANLIB"; then
5797 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5798else
5799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH
5801do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810done
5811done
5812
5813fi
5814fi
5815RANLIB=$ac_cv_prog_RANLIB
5816if test -n "$RANLIB"; then
5817 echo "$as_me:$LINENO: result: $RANLIB" >&5
5818echo "${ECHO_T}$RANLIB" >&6
5819else
5820 echo "$as_me:$LINENO: result: no" >&5
5821echo "${ECHO_T}no" >&6
5822fi
5823
5824fi
5825if test -z "$ac_cv_prog_RANLIB"; then
5826 ac_ct_RANLIB=$RANLIB
5827 # Extract the first word of "ranlib", so it can be a program name with args.
5828set dummy ranlib; ac_word=$2
5829echo "$as_me:$LINENO: checking for $ac_word" >&5
5830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5831if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833else
5834 if test -n "$ac_ct_RANLIB"; then
5835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5836else
5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838for as_dir in $PATH
5839do
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5844 ac_cv_prog_ac_ct_RANLIB="ranlib"
5845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 break 2
5847 fi
5848done
5849done
5850
5851 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5852fi
5853fi
5854ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5855if test -n "$ac_ct_RANLIB"; then
5856 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5857echo "${ECHO_T}$ac_ct_RANLIB" >&6
5858else
5859 echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6
5861fi
5862
5863 RANLIB=$ac_ct_RANLIB
5864else
5865 RANLIB="$ac_cv_prog_RANLIB"
5866fi
5867
5868if test -n "$ac_tool_prefix"; then
5869 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5870set dummy ${ac_tool_prefix}strip; ac_word=$2
5871echo "$as_me:$LINENO: checking for $ac_word" >&5
5872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5873if test "${ac_cv_prog_STRIP+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876 if test -n "$STRIP"; then
5877 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5878else
5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880for as_dir in $PATH
5881do
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 break 2
5889 fi
5890done
5891done
5892
5893fi
5894fi
5895STRIP=$ac_cv_prog_STRIP
5896if test -n "$STRIP"; then
5897 echo "$as_me:$LINENO: result: $STRIP" >&5
5898echo "${ECHO_T}$STRIP" >&6
5899else
5900 echo "$as_me:$LINENO: result: no" >&5
5901echo "${ECHO_T}no" >&6
5902fi
5903
5904fi
5905if test -z "$ac_cv_prog_STRIP"; then
5906 ac_ct_STRIP=$STRIP
5907 # Extract the first word of "strip", so it can be a program name with args.
5908set dummy strip; ac_word=$2
5909echo "$as_me:$LINENO: checking for $ac_word" >&5
5910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5911if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913else
5914 if test -n "$ac_ct_STRIP"; then
5915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5916else
5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918for as_dir in $PATH
5919do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924 ac_cv_prog_ac_ct_STRIP="strip"
5925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928done
5929done
5930
5931 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5932fi
5933fi
5934ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5935if test -n "$ac_ct_STRIP"; then
5936 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5937echo "${ECHO_T}$ac_ct_STRIP" >&6
5938else
5939 echo "$as_me:$LINENO: result: no" >&5
5940echo "${ECHO_T}no" >&6
5941fi
5942
5943 STRIP=$ac_ct_STRIP
5944else
5945 STRIP="$ac_cv_prog_STRIP"
5946fi
5947
5948
John Criswell7a73b802003-06-30 21:59:07 +00005949old_CC="$CC"
5950old_CFLAGS="$CFLAGS"
5951
5952# Set sane defaults for various variables
5953test -z "$AR" && AR=ar
5954test -z "$AR_FLAGS" && AR_FLAGS=cru
5955test -z "$AS" && AS=as
5956test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005957test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005958test -z "$DLLTOOL" && DLLTOOL=dlltool
5959test -z "$LD" && LD=ld
5960test -z "$LN_S" && LN_S="ln -s"
5961test -z "$MAGIC_CMD" && MAGIC_CMD=file
5962test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005963test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005964test -z "$OBJDUMP" && OBJDUMP=objdump
5965test -z "$RANLIB" && RANLIB=:
5966test -z "$STRIP" && STRIP=:
5967test -z "$ac_objext" && ac_objext=o
5968
John Criswell7a73b802003-06-30 21:59:07 +00005969# Determine commands to create old-style static archives.
5970old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5971old_postinstall_cmds='chmod 644 $oldlib'
5972old_postuninstall_cmds=
5973
5974if test -n "$RANLIB"; then
5975 case $host_os in
5976 openbsd*)
5977 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5978 ;;
5979 *)
5980 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5981 ;;
5982 esac
5983 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5984fi
5985
John Criswell47fdd832003-07-14 16:52:07 +00005986# Only perform the check for file, if the check method requires it
5987case $deplibs_check_method in
5988file_magic*)
5989 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5990 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5991echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5992if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005994else
John Criswell47fdd832003-07-14 16:52:07 +00005995 case $MAGIC_CMD in
5996[\\/*] | ?:[\\/]*)
5997 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5998 ;;
5999*)
6000 lt_save_MAGIC_CMD="$MAGIC_CMD"
6001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6002 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6003 for ac_dir in $ac_dummy; do
6004 IFS="$lt_save_ifs"
6005 test -z "$ac_dir" && ac_dir=.
6006 if test -f $ac_dir/${ac_tool_prefix}file; then
6007 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6008 if test -n "$file_magic_test_file"; then
6009 case $deplibs_check_method in
6010 "file_magic "*)
6011 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6013 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6014 $EGREP "$file_magic_regex" > /dev/null; then
6015 :
6016 else
6017 cat <<EOF 1>&2
6018
6019*** Warning: the command libtool uses to detect shared libraries,
6020*** $file_magic_cmd, produces output that libtool cannot recognize.
6021*** The result is that libtool may fail to recognize shared libraries
6022*** as such. This will affect the creation of libtool libraries that
6023*** depend on shared libraries, but programs linked with such libtool
6024*** libraries will work regardless of this problem. Nevertheless, you
6025*** may want to report the problem to your system manager and/or to
6026*** bug-libtool@gnu.org
6027
6028EOF
6029 fi ;;
6030 esac
6031 fi
6032 break
6033 fi
6034 done
6035 IFS="$lt_save_ifs"
6036 MAGIC_CMD="$lt_save_MAGIC_CMD"
6037 ;;
6038esac
John Criswell7a73b802003-06-30 21:59:07 +00006039fi
John Criswell7a73b802003-06-30 21:59:07 +00006040
John Criswell47fdd832003-07-14 16:52:07 +00006041MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6042if test -n "$MAGIC_CMD"; then
6043 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6044echo "${ECHO_T}$MAGIC_CMD" >&6
6045else
6046 echo "$as_me:$LINENO: result: no" >&5
6047echo "${ECHO_T}no" >&6
6048fi
John Criswell7a73b802003-06-30 21:59:07 +00006049
John Criswell47fdd832003-07-14 16:52:07 +00006050if test -z "$lt_cv_path_MAGIC_CMD"; then
6051 if test -n "$ac_tool_prefix"; then
6052 echo "$as_me:$LINENO: checking for file" >&5
6053echo $ECHO_N "checking for file... $ECHO_C" >&6
6054if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056else
6057 case $MAGIC_CMD in
6058[\\/*] | ?:[\\/]*)
6059 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6060 ;;
6061*)
6062 lt_save_MAGIC_CMD="$MAGIC_CMD"
6063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6064 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6065 for ac_dir in $ac_dummy; do
6066 IFS="$lt_save_ifs"
6067 test -z "$ac_dir" && ac_dir=.
6068 if test -f $ac_dir/file; then
6069 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6070 if test -n "$file_magic_test_file"; then
6071 case $deplibs_check_method in
6072 "file_magic "*)
6073 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6074 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6075 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6076 $EGREP "$file_magic_regex" > /dev/null; then
6077 :
6078 else
6079 cat <<EOF 1>&2
6080
6081*** Warning: the command libtool uses to detect shared libraries,
6082*** $file_magic_cmd, produces output that libtool cannot recognize.
6083*** The result is that libtool may fail to recognize shared libraries
6084*** as such. This will affect the creation of libtool libraries that
6085*** depend on shared libraries, but programs linked with such libtool
6086*** libraries will work regardless of this problem. Nevertheless, you
6087*** may want to report the problem to your system manager and/or to
6088*** bug-libtool@gnu.org
6089
6090EOF
6091 fi ;;
6092 esac
6093 fi
6094 break
6095 fi
6096 done
6097 IFS="$lt_save_ifs"
6098 MAGIC_CMD="$lt_save_MAGIC_CMD"
6099 ;;
6100esac
6101fi
6102
6103MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6104if test -n "$MAGIC_CMD"; then
6105 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6106echo "${ECHO_T}$MAGIC_CMD" >&6
6107else
6108 echo "$as_me:$LINENO: result: no" >&5
6109echo "${ECHO_T}no" >&6
6110fi
6111
6112 else
6113 MAGIC_CMD=:
6114 fi
6115fi
6116
6117 fi
6118 ;;
6119esac
6120
6121enable_dlopen=no
6122enable_win32_dll=no
6123
6124# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6125if test "${enable_libtool_lock+set}" = set; then
6126 enableval="$enable_libtool_lock"
6127
6128fi;
6129test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6130
John Criswell7a73b802003-06-30 21:59:07 +00006131
6132# Check whether --with-pic or --without-pic was given.
6133if test "${with_pic+set}" = set; then
6134 withval="$with_pic"
6135 pic_mode="$withval"
6136else
6137 pic_mode=default
6138fi;
6139test -z "$pic_mode" && pic_mode=default
6140
John Criswell47fdd832003-07-14 16:52:07 +00006141# Use C for the default configuration in the libtool script
6142tagname=
6143lt_save_CC="$CC"
6144ac_ext=c
6145ac_cpp='$CPP $CPPFLAGS'
6146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148ac_compiler_gnu=$ac_cv_c_compiler_gnu
6149
6150
6151# Source file extension for C test sources.
6152ac_ext=c
6153
6154# Object file extension for compiled C test sources.
6155objext=o
6156objext=$objext
6157
6158# Code to be used in simple compile tests
6159lt_simple_compile_test_code="int some_variable = 0;\n"
6160
6161# Code to be used in simple link tests
6162lt_simple_link_test_code='int main(){return(0);}\n'
6163
6164
6165# If no C compiler was specified, use CC.
6166LTCC=${LTCC-"$CC"}
6167
6168# Allow CC to be a program name with arguments.
6169compiler=$CC
6170
6171
6172#
6173# Check for any special shared library compilation flags.
6174#
6175lt_prog_cc_shlib=
6176if test "$GCC" = no; then
6177 case $host_os in
6178 sco3.2v5*)
6179 lt_prog_cc_shlib='-belf'
6180 ;;
6181 esac
6182fi
6183if test -n "$lt_prog_cc_shlib"; then
6184 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6185echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6186 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6187 else
6188 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6189echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6190 lt_cv_prog_cc_can_build_shared=no
6191 fi
6192fi
6193
6194
6195#
6196# Check to make sure the static flag actually works.
6197#
6198echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6199echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6200if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
John Criswell47fdd832003-07-14 16:52:07 +00006203 lt_prog_compiler_static_works=no
6204 save_LDFLAGS="$LDFLAGS"
6205 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6206 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6207 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6208 # The compiler can only warn and ignore the option if not recognized
6209 # So say no if there are warnings
6210 if test -s conftest.err; then
6211 # Append any errors to the config.log.
6212 cat conftest.err 1>&5
6213 else
6214 lt_prog_compiler_static_works=yes
6215 fi
6216 fi
6217 $rm conftest*
6218 LDFLAGS="$save_LDFLAGS"
6219
6220fi
6221echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6222echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6223
6224if test x"$lt_prog_compiler_static_works" = xyes; then
6225 :
6226else
6227 lt_prog_compiler_static=
6228fi
6229
6230
6231
6232## CAVEAT EMPTOR:
6233## There is no encapsulation within the following macros, do not change
6234## the running order or otherwise move them around unless you know exactly
6235## what you are doing...
6236
6237lt_prog_compiler_no_builtin_flag=
6238
6239if test "$GCC" = yes; then
6240 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6241
6242 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6243echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6244if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246else
6247 lt_cv_prog_compiler_rtti_exceptions=no
6248 ac_outfile=conftest.$ac_objext
6249 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6250 lt_compiler_flag="-fno-rtti -fno-exceptions"
6251 # Insert the option either (1) after the last *FLAGS variable, or
6252 # (2) before a word containing "conftest.", or (3) at the end.
6253 # Note that $ac_compile itself does not contain backslashes and begins
6254 # with a dollar sign (not a hyphen), so the echo should work correctly.
6255 # The option is referenced via a variable to avoid confusing sed.
6256 lt_compile=`echo "$ac_compile" | $SED \
6257 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6259 -e 's:$: $lt_compiler_flag:'`
John Criswell759c3ed2003-10-28 19:21:11 +00006260 (eval echo "\"\$as_me:6260: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006261 (eval "$lt_compile" 2>conftest.err)
6262 ac_status=$?
6263 cat conftest.err >&5
John Criswell759c3ed2003-10-28 19:21:11 +00006264 echo "$as_me:6264: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006265 if (exit $ac_status) && test -s "$ac_outfile"; then
6266 # The compiler can only warn and ignore the option if not recognized
6267 # So say no if there are warnings
6268 if test ! -s conftest.err; then
6269 lt_cv_prog_compiler_rtti_exceptions=yes
6270 fi
6271 fi
6272 $rm conftest*
6273
6274fi
6275echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6276echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6277
6278if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6279 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6280else
6281 :
6282fi
6283
6284fi
6285
6286lt_prog_compiler_wl=
6287lt_prog_compiler_pic=
6288lt_prog_compiler_static=
6289
6290echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6291echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006292
6293 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006294 lt_prog_compiler_wl='-Wl,'
6295 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006296
6297 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006298 aix*)
6299 # All AIX code is PIC.
6300 if test "$host_cpu" = ia64; then
6301 # AIX 5 now supports IA64 processor
6302 lt_prog_compiler_static='-Bstatic'
6303 fi
John Criswell7a73b802003-06-30 21:59:07 +00006304 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006305
John Criswell7a73b802003-06-30 21:59:07 +00006306 amigaos*)
6307 # FIXME: we need at least 68020 code to build shared libraries, but
6308 # adding the `-m68020' flag to GCC prevents building anything better,
6309 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006310 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006311 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006312
6313 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006314 # PIC is the default for these OSes.
6315 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006316
6317 mingw* | pw32* | os2*)
6318 # This hack is so that the source file can tell whether it is being
6319 # built for inclusion in a dll (and should export symbols for example).
6320 lt_prog_compiler_pic='-DDLL_EXPORT'
6321 ;;
6322
John Criswell7a73b802003-06-30 21:59:07 +00006323 darwin* | rhapsody*)
6324 # PIC is the default on this platform
6325 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006326 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006327 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006328
6329 msdosdjgpp*)
6330 # Just because we use GCC doesn't mean we suddenly get shared libraries
6331 # on systems that don't support them.
6332 lt_prog_compiler_can_build_shared=no
6333 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006334 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006335
John Criswell7a73b802003-06-30 21:59:07 +00006336 sysv4*MP*)
6337 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006338 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006339 fi
6340 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006341
6342 hpux*)
6343 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6344 # not for PA HP-UX.
6345 case "$host_cpu" in
6346 hppa*64*|ia64*)
6347 # +Z the default
6348 ;;
6349 *)
6350 lt_prog_compiler_pic='-fPIC'
6351 ;;
6352 esac
6353 ;;
6354
John Criswell7a73b802003-06-30 21:59:07 +00006355 *)
John Criswell47fdd832003-07-14 16:52:07 +00006356 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006357 ;;
6358 esac
6359 else
John Criswell47fdd832003-07-14 16:52:07 +00006360 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006361 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006362 aix*)
6363 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006364 if test "$host_cpu" = ia64; then
6365 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006366 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006367 else
John Criswell47fdd832003-07-14 16:52:07 +00006368 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006369 fi
6370 ;;
6371
John Criswell47fdd832003-07-14 16:52:07 +00006372 mingw* | pw32* | os2*)
6373 # This hack is so that the source file can tell whether it is being
6374 # built for inclusion in a dll (and should export symbols for example).
6375 lt_prog_compiler_pic='-DDLL_EXPORT'
6376 ;;
6377
John Criswell7a73b802003-06-30 21:59:07 +00006378 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006379 lt_prog_compiler_wl='-Wl,'
6380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6381 # not for PA HP-UX.
6382 case "$host_cpu" in
6383 hppa*64*|ia64*)
6384 # +Z the default
6385 ;;
6386 *)
6387 lt_prog_compiler_pic='+Z'
6388 ;;
6389 esac
6390 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6391 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006392 ;;
6393
John Criswell47fdd832003-07-14 16:52:07 +00006394 irix5* | irix6* | nonstopux*)
6395 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006396 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006397 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006398 ;;
6399
6400 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006401 lt_prog_compiler_pic='-KPIC'
6402 lt_prog_compiler_static='-Bstatic'
6403 ;;
6404
6405 linux*)
6406 case $CC in
6407 icc|ecc)
6408 lt_prog_compiler_wl='-Wl,'
6409 lt_prog_compiler_pic='-KPIC'
6410 lt_prog_compiler_static='-static'
6411 ;;
6412 ccc)
6413 lt_prog_compiler_wl='-Wl,'
6414 # All Alpha code is PIC.
6415 lt_prog_compiler_static='-non_shared'
6416 ;;
6417 esac
John Criswell7a73b802003-06-30 21:59:07 +00006418 ;;
6419
6420 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006421 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006422 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006423 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006424 ;;
6425
6426 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006427 lt_prog_compiler_pic='-Kpic'
6428 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006429 ;;
6430
6431 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006432 lt_prog_compiler_wl='-Wl,'
6433 lt_prog_compiler_pic='-KPIC'
6434 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006435 ;;
6436
6437 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006438 lt_prog_compiler_wl='-Qoption ld '
6439 lt_prog_compiler_pic='-PIC'
6440 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006441 ;;
6442
6443 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006444 lt_prog_compiler_wl='-Wl,'
6445 lt_prog_compiler_pic='-KPIC'
6446 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006447 ;;
6448
6449 sysv4*MP*)
6450 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006451 lt_prog_compiler_pic='-Kconform_pic'
6452 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006453 fi
6454 ;;
6455
John Criswell47fdd832003-07-14 16:52:07 +00006456 uts4*)
6457 lt_prog_compiler_pic='-pic'
6458 lt_prog_compiler_static='-Bstatic'
6459 ;;
6460
John Criswell7a73b802003-06-30 21:59:07 +00006461 *)
John Criswell47fdd832003-07-14 16:52:07 +00006462 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006463 ;;
6464 esac
6465 fi
6466
John Criswell47fdd832003-07-14 16:52:07 +00006467echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6468echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006469
John Criswell47fdd832003-07-14 16:52:07 +00006470#
6471# Check to make sure the PIC flag actually works.
6472#
6473if test -n "$lt_prog_compiler_pic"; then
6474 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6475echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6476if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478else
John Criswell47fdd832003-07-14 16:52:07 +00006479 lt_prog_compiler_pic_works=no
6480 ac_outfile=conftest.$ac_objext
6481 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6482 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6483 # Insert the option either (1) after the last *FLAGS variable, or
6484 # (2) before a word containing "conftest.", or (3) at the end.
6485 # Note that $ac_compile itself does not contain backslashes and begins
6486 # with a dollar sign (not a hyphen), so the echo should work correctly.
6487 # The option is referenced via a variable to avoid confusing sed.
6488 lt_compile=`echo "$ac_compile" | $SED \
6489 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6491 -e 's:$: $lt_compiler_flag:'`
John Criswell759c3ed2003-10-28 19:21:11 +00006492 (eval echo "\"\$as_me:6492: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006493 (eval "$lt_compile" 2>conftest.err)
6494 ac_status=$?
6495 cat conftest.err >&5
John Criswell759c3ed2003-10-28 19:21:11 +00006496 echo "$as_me:6496: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006497 if (exit $ac_status) && test -s "$ac_outfile"; then
6498 # The compiler can only warn and ignore the option if not recognized
6499 # So say no if there are warnings
6500 if test ! -s conftest.err; then
6501 lt_prog_compiler_pic_works=yes
6502 fi
6503 fi
6504 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006505
John Criswell47fdd832003-07-14 16:52:07 +00006506fi
6507echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6508echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006509
John Criswell47fdd832003-07-14 16:52:07 +00006510if test x"$lt_prog_compiler_pic_works" = xyes; then
6511 case $lt_prog_compiler_pic in
6512 "" | " "*) ;;
6513 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6514 esac
John Criswell7a73b802003-06-30 21:59:07 +00006515else
John Criswell47fdd832003-07-14 16:52:07 +00006516 lt_prog_compiler_pic=
6517 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006518fi
6519
John Criswell7a73b802003-06-30 21:59:07 +00006520fi
John Criswell47fdd832003-07-14 16:52:07 +00006521case "$host_os" in
6522 # For platforms which do not support PIC, -DPIC is meaningless:
6523 *djgpp*)
6524 lt_prog_compiler_pic=
6525 ;;
6526 *)
6527 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6528 ;;
6529esac
John Criswell7a73b802003-06-30 21:59:07 +00006530
John Criswell7a73b802003-06-30 21:59:07 +00006531echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6532echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006533if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535else
John Criswell47fdd832003-07-14 16:52:07 +00006536 lt_cv_prog_compiler_c_o=no
6537 $rm -r conftest 2>/dev/null
6538 mkdir conftest
6539 cd conftest
6540 mkdir out
6541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006542
John Criswell47fdd832003-07-14 16:52:07 +00006543 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6544 # that will create temporary files in the current directory regardless of
6545 # the output directory. Thus, making CWD read-only will cause this test
6546 # to fail, enabling locking or at least warning the user not to do parallel
6547 # builds.
6548 chmod -w .
6549
6550 lt_compiler_flag="-o out/conftest2.$ac_objext"
6551 # Insert the option either (1) after the last *FLAGS variable, or
6552 # (2) before a word containing "conftest.", or (3) at the end.
6553 # Note that $ac_compile itself does not contain backslashes and begins
6554 # with a dollar sign (not a hyphen), so the echo should work correctly.
6555 lt_compile=`echo "$ac_compile" | $SED \
6556 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6558 -e 's:$: $lt_compiler_flag:'`
John Criswell759c3ed2003-10-28 19:21:11 +00006559 (eval echo "\"\$as_me:6559: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006560 (eval "$lt_compile" 2>out/conftest.err)
6561 ac_status=$?
6562 cat out/conftest.err >&5
John Criswell759c3ed2003-10-28 19:21:11 +00006563 echo "$as_me:6563: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6565 then
6566 # The compiler can only warn and ignore the option if not recognized
6567 # So say no if there are warnings
6568 if test ! -s out/conftest.err; then
6569 lt_cv_prog_compiler_c_o=yes
6570 fi
6571 fi
6572 chmod u+w .
6573 $rm conftest* out/*
6574 rmdir out
6575 cd ..
6576 rmdir conftest
6577 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006578
6579fi
John Criswell47fdd832003-07-14 16:52:07 +00006580echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6581echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006582
John Criswell7a73b802003-06-30 21:59:07 +00006583
John Criswell7a73b802003-06-30 21:59:07 +00006584hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006585if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006586 # do not overwrite the value of need_locks provided by the user
6587 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6588echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6589 hard_links=yes
6590 $rm conftest*
6591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6592 touch conftest.a
6593 ln conftest.a conftest.b 2>&5 || hard_links=no
6594 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6595 echo "$as_me:$LINENO: result: $hard_links" >&5
6596echo "${ECHO_T}$hard_links" >&6
6597 if test "$hard_links" = no; then
6598 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6599echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6600 need_locks=warn
6601 fi
6602else
6603 need_locks=no
6604fi
John Criswell7a73b802003-06-30 21:59:07 +00006605
John Criswell47fdd832003-07-14 16:52:07 +00006606echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6607echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6608
6609 runpath_var=
6610 allow_undefined_flag=
6611 enable_shared_with_static_runtimes=no
6612 archive_cmds=
6613 archive_expsym_cmds=
6614 old_archive_From_new_cmds=
6615 old_archive_from_expsyms_cmds=
6616 export_dynamic_flag_spec=
6617 whole_archive_flag_spec=
6618 thread_safe_flag_spec=
6619 hardcode_libdir_flag_spec=
6620 hardcode_libdir_flag_spec_ld=
6621 hardcode_libdir_separator=
6622 hardcode_direct=no
6623 hardcode_minus_L=no
6624 hardcode_shlibpath_var=unsupported
6625 link_all_deplibs=unknown
6626 hardcode_automatic=no
6627 module_cmds=
6628 module_expsym_cmds=
6629 always_export_symbols=no
6630 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6631 # include_expsyms should be a list of space-separated symbols to be *always*
6632 # included in the symbol list
6633 include_expsyms=
6634 # exclude_expsyms can be an extended regexp of symbols to exclude
6635 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6636 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6637 # as well as any symbol that contains `d'.
6638 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6639 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6640 # platforms (ab)use it in PIC code, but their linkers get confused if
6641 # the symbol is explicitly referenced. Since portable code cannot
6642 # rely on this symbol name, it's probably fine to never include it in
6643 # preloaded symbol tables.
6644 extract_expsyms_cmds=
6645
6646 case $host_os in
6647 cygwin* | mingw* | pw32*)
6648 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6649 # When not using gcc, we currently assume that we are using
6650 # Microsoft Visual C++.
6651 if test "$GCC" != yes; then
6652 with_gnu_ld=no
6653 fi
6654 ;;
6655 openbsd*)
6656 with_gnu_ld=no
6657 ;;
6658 esac
6659
6660 ld_shlibs=yes
6661 if test "$with_gnu_ld" = yes; then
6662 # If archive_cmds runs LD, not CC, wlarc should be empty
6663 wlarc='${wl}'
6664
6665 # See if GNU ld supports shared libraries.
6666 case $host_os in
6667 aix3* | aix4* | aix5*)
6668 # On AIX/PPC, the GNU linker is very broken
6669 if test "$host_cpu" != ia64; then
6670 ld_shlibs=no
6671 cat <<EOF 1>&2
6672
6673*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6674*** to be unable to reliably create shared libraries on AIX.
6675*** Therefore, libtool is disabling shared libraries support. If you
6676*** really care for shared libraries, you may want to modify your PATH
6677*** so that a non-GNU linker is found, and then restart.
6678
6679EOF
6680 fi
6681 ;;
6682
6683 amigaos*)
6684 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)'
6685 hardcode_libdir_flag_spec='-L$libdir'
6686 hardcode_minus_L=yes
6687
6688 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6689 # that the semantics of dynamic libraries on AmigaOS, at least up
6690 # to version 4, is to share data among multiple programs linked
6691 # with the same dynamic library. Since this doesn't match the
6692 # behavior of shared libraries on other platforms, we can't use
6693 # them.
6694 ld_shlibs=no
6695 ;;
6696
6697 beos*)
6698 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6699 allow_undefined_flag=unsupported
6700 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6701 # support --undefined. This deserves some investigation. FIXME
6702 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6703 else
6704 ld_shlibs=no
6705 fi
6706 ;;
6707
6708 cygwin* | mingw* | pw32*)
6709 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6710 # as there is no search path for DLLs.
6711 hardcode_libdir_flag_spec='-L$libdir'
6712 allow_undefined_flag=unsupported
6713 always_export_symbols=no
6714 enable_shared_with_static_runtimes=yes
6715 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6716
6717 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6719 # If the export-symbols file already is a .def file (1st line
6720 # is EXPORTS), use it as is; otherwise, prepend...
6721 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6722 cp $export_symbols $output_objdir/$soname.def;
6723 else
6724 echo EXPORTS > $output_objdir/$soname.def;
6725 cat $export_symbols >> $output_objdir/$soname.def;
6726 fi~
6727 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6728 else
6729 ld_shlibs=no
6730 fi
6731 ;;
6732
6733 netbsd*)
6734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6735 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6736 wlarc=
6737 else
6738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6740 fi
6741 ;;
6742
6743 solaris* | sysv5*)
6744 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6745 ld_shlibs=no
6746 cat <<EOF 1>&2
6747
6748*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6749*** create shared libraries on Solaris systems. Therefore, libtool
6750*** is disabling shared libraries support. We urge you to upgrade GNU
6751*** binutils to release 2.9.1 or newer. Another option is to modify
6752*** your PATH or compiler configuration so that the native linker is
6753*** used, and then restart.
6754
6755EOF
6756 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6759 else
6760 ld_shlibs=no
6761 fi
6762 ;;
6763
6764 sunos4*)
6765 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6766 wlarc=
6767 hardcode_direct=yes
6768 hardcode_shlibpath_var=no
6769 ;;
6770
6771 *)
6772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6774 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6775 else
6776 ld_shlibs=no
6777 fi
6778 ;;
6779 esac
6780
6781 if test "$ld_shlibs" = yes; then
6782 runpath_var=LD_RUN_PATH
6783 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6784 export_dynamic_flag_spec='${wl}--export-dynamic'
6785 # ancient GNU ld didn't support --whole-archive et. al.
6786 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6787 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6788 else
6789 whole_archive_flag_spec=
6790 fi
6791 fi
6792 else
6793 # PORTME fill in a description of your system's linker (not GNU ld)
6794 case $host_os in
6795 aix3*)
6796 allow_undefined_flag=unsupported
6797 always_export_symbols=yes
6798 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'
6799 # Note: this linker hardcodes the directories in LIBPATH if there
6800 # are no directories specified by -L.
6801 hardcode_minus_L=yes
6802 if test "$GCC" = yes && test -z "$link_static_flag"; then
6803 # Neither direct hardcoding nor static linking is supported with a
6804 # broken collect2.
6805 hardcode_direct=unsupported
6806 fi
6807 ;;
6808
6809 aix4* | aix5*)
6810 if test "$host_cpu" = ia64; then
6811 # On IA64, the linker does run time linking by default, so we don't
6812 # have to do anything special.
6813 aix_use_runtimelinking=no
6814 exp_sym_flag='-Bexport'
6815 no_entry_flag=""
6816 else
6817 # If we're using GNU nm, then we don't want the "-C" option.
6818 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6819 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6820 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'
6821 else
6822 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'
6823 fi
6824 aix_use_runtimelinking=no
6825
6826 # Test if we are trying to use run time linking or normal
6827 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6828 # need to do runtime linking.
6829 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6830 for ld_flag in $LDFLAGS; do
6831 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6832 aix_use_runtimelinking=yes
6833 break
6834 fi
6835 done
6836 esac
6837
6838 exp_sym_flag='-bexport'
6839 no_entry_flag='-bnoentry'
6840 fi
6841
6842 # When large executables or shared objects are built, AIX ld can
6843 # have problems creating the table of contents. If linking a library
6844 # or program results in "error TOC overflow" add -mminimal-toc to
6845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6847
6848 archive_cmds=''
6849 hardcode_direct=yes
6850 hardcode_libdir_separator=':'
6851 link_all_deplibs=yes
6852
6853 if test "$GCC" = yes; then
6854 case $host_os in aix4.012|aix4.012.*)
6855 # We only want to do this on AIX 4.2 and lower, the check
6856 # below for broken collect2 doesn't work under 4.3+
6857 collect2name=`${CC} -print-prog-name=collect2`
6858 if test -f "$collect2name" && \
6859 strings "$collect2name" | grep resolve_lib_name >/dev/null
6860 then
6861 # We have reworked collect2
6862 hardcode_direct=yes
6863 else
6864 # We have old collect2
6865 hardcode_direct=unsupported
6866 # It fails to find uninstalled libraries when the uninstalled
6867 # path is not listed in the libpath. Setting hardcode_minus_L
6868 # to unsupported forces relinking
6869 hardcode_minus_L=yes
6870 hardcode_libdir_flag_spec='-L$libdir'
6871 hardcode_libdir_separator=
6872 fi
6873 esac
6874 shared_flag='-shared'
6875 else
6876 # not using gcc
6877 if test "$host_cpu" = ia64; then
6878 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6879 # chokes on -Wl,-G. The following line is correct:
6880 shared_flag='-G'
6881 else
6882 if test "$aix_use_runtimelinking" = yes; then
6883 shared_flag='${wl}-G'
6884 else
6885 shared_flag='${wl}-bM:SRE'
6886 fi
6887 fi
6888 fi
6889
6890 # It seems that -bexpall does not export symbols beginning with
6891 # underscore (_), so it is better to generate a list of symbols to export.
6892 always_export_symbols=yes
6893 if test "$aix_use_runtimelinking" = yes; then
6894 # Warning - without using the other runtime loading flags (-brtl),
6895 # -berok will link without error, but may produce a broken library.
6896 allow_undefined_flag='-berok'
6897 # Determine the default libpath from the value encoded in an empty executable.
6898 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006899#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006900/* confdefs.h. */
6901_ACEOF
6902cat confdefs.h >>conftest.$ac_ext
6903cat >>conftest.$ac_ext <<_ACEOF
6904/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006905
John Criswell7a73b802003-06-30 21:59:07 +00006906int
6907main ()
6908{
John Criswell47fdd832003-07-14 16:52:07 +00006909
John Criswell7a73b802003-06-30 21:59:07 +00006910 ;
6911 return 0;
6912}
6913_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006914rm -f conftest.$ac_objext conftest$ac_exeext
6915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006920 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 (eval $ac_try) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006926
John Criswell47fdd832003-07-14 16:52:07 +00006927aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6928}'`
6929# Check for a 64-bit object if we didn't find anything.
6930if 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; }
6931}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006932else
6933 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006934sed 's/^/| /' conftest.$ac_ext >&5
6935
John Criswell7a73b802003-06-30 21:59:07 +00006936fi
John Criswell47fdd832003-07-14 16:52:07 +00006937rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6938if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006939
John Criswell47fdd832003-07-14 16:52:07 +00006940 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6941 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"
6942 else
6943 if test "$host_cpu" = ia64; then
6944 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6945 allow_undefined_flag="-z nodefs"
6946 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"
6947 else
6948 # Determine the default libpath from the value encoded in an empty executable.
6949 cat >conftest.$ac_ext <<_ACEOF
6950#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006951/* confdefs.h. */
6952_ACEOF
6953cat confdefs.h >>conftest.$ac_ext
6954cat >>conftest.$ac_ext <<_ACEOF
6955/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006956
John Criswell47fdd832003-07-14 16:52:07 +00006957int
6958main ()
6959{
John Criswell7a73b802003-06-30 21:59:07 +00006960
John Criswell47fdd832003-07-14 16:52:07 +00006961 ;
6962 return 0;
6963}
6964_ACEOF
6965rm -f conftest.$ac_objext conftest$ac_exeext
6966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6967 (eval $ac_link) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } &&
6971 { ac_try='test -s conftest$ac_exeext'
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 (eval $ac_try) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006977
John Criswell47fdd832003-07-14 16:52:07 +00006978aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6979}'`
6980# Check for a 64-bit object if we didn't find anything.
6981if 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; }
6982}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006983else
John Criswell47fdd832003-07-14 16:52:07 +00006984 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006985sed 's/^/| /' conftest.$ac_ext >&5
6986
John Criswell47fdd832003-07-14 16:52:07 +00006987fi
6988rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6989if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006990
John Criswell47fdd832003-07-14 16:52:07 +00006991 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6992 # Warning - without using the other run time loading flags,
6993 # -berok will link without error, but may produce a broken library.
6994 no_undefined_flag=' ${wl}-bernotok'
6995 allow_undefined_flag=' ${wl}-berok'
6996 # -bexpall does not export symbols beginning with underscore (_)
6997 always_export_symbols=yes
6998 # Exported symbols can be pulled into shared objects from archives
6999 whole_archive_flag_spec=' '
7000 archive_cmds_need_lc=yes
7001 # This is similar to how AIX traditionally builds it's shared libraries.
7002 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'
John Criswell7a73b802003-06-30 21:59:07 +00007003 fi
7004 fi
John Criswell7a73b802003-06-30 21:59:07 +00007005 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007006
7007 amigaos*)
7008 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)'
7009 hardcode_libdir_flag_spec='-L$libdir'
7010 hardcode_minus_L=yes
7011 # see comment about different semantics on the GNU ld section
7012 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007013 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007014
John Criswell47fdd832003-07-14 16:52:07 +00007015 bsdi4*)
7016 export_dynamic_flag_spec=-rdynamic
7017 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007018
John Criswell47fdd832003-07-14 16:52:07 +00007019 cygwin* | mingw* | pw32*)
7020 # When not using gcc, we currently assume that we are using
7021 # Microsoft Visual C++.
7022 # hardcode_libdir_flag_spec is actually meaningless, as there is
7023 # no search path for DLLs.
7024 hardcode_libdir_flag_spec=' '
7025 allow_undefined_flag=unsupported
7026 # Tell ltmain to make .lib files, not .a files.
7027 libext=lib
7028 # Tell ltmain to make .dll files, not .so files.
7029 shrext=".dll"
7030 # FIXME: Setting linknames here is a bad hack.
7031 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7032 # The linker will automatically build a .lib file if we build a DLL.
7033 old_archive_From_new_cmds='true'
7034 # FIXME: Should let the user specify the lib program.
7035 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7036 fix_srcfile_path='`cygpath -w "$srcfile"`'
7037 enable_shared_with_static_runtimes=yes
7038 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007039
John Criswell47fdd832003-07-14 16:52:07 +00007040 darwin* | rhapsody*)
7041 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7042 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007043 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007044 rhapsody* | darwin1.[012])
7045 allow_undefined_flag='-undefined suppress'
7046 ;;
7047 *) # Darwin 1.3 on
7048 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007049 ;;
7050 esac
John Criswell47fdd832003-07-14 16:52:07 +00007051 # FIXME: Relying on posixy $() will cause problems for
7052 # cross-compilation, but unfortunately the echo tests do not
7053 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7054 # `"' quotes if we put them in here... so don't!
7055 lt_int_apple_cc_single_mod=no
7056 output_verbose_link_cmd='echo'
7057 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7058 lt_int_apple_cc_single_mod=yes
7059 fi
7060 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7061 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7062 else
7063 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'
7064 fi
7065 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7066 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7067 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7068 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}'
7069 else
7070 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}'
7071 fi
7072 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}'
7073 hardcode_direct=no
7074 hardcode_automatic=yes
7075 hardcode_shlibpath_var=unsupported
7076 whole_archive_flag_spec='-all_load $convenience'
7077 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007078 fi
John Criswell47fdd832003-07-14 16:52:07 +00007079 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007080
John Criswell47fdd832003-07-14 16:52:07 +00007081 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007083 hardcode_libdir_flag_spec='-L$libdir'
7084 hardcode_shlibpath_var=no
7085 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007086
John Criswell47fdd832003-07-14 16:52:07 +00007087 freebsd1*)
7088 ld_shlibs=no
7089 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007090
John Criswell47fdd832003-07-14 16:52:07 +00007091 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7092 # support. Future versions do this automatically, but an explicit c++rt0.o
7093 # does not break anything, and helps significantly (at the cost of a little
7094 # extra space).
7095 freebsd2.2*)
7096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7097 hardcode_libdir_flag_spec='-R$libdir'
7098 hardcode_direct=yes
7099 hardcode_shlibpath_var=no
7100 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007101
John Criswell47fdd832003-07-14 16:52:07 +00007102 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7103 freebsd2*)
7104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7105 hardcode_direct=yes
7106 hardcode_minus_L=yes
7107 hardcode_shlibpath_var=no
7108 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007109
John Criswell47fdd832003-07-14 16:52:07 +00007110 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7111 freebsd*)
7112 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7113 hardcode_libdir_flag_spec='-R$libdir'
7114 hardcode_direct=yes
7115 hardcode_shlibpath_var=no
7116 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007117
John Criswell47fdd832003-07-14 16:52:07 +00007118 hpux9*)
7119 if test "$GCC" = yes; then
7120 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'
7121 else
7122 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'
7123 fi
7124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7125 hardcode_libdir_separator=:
7126 hardcode_direct=yes
7127
7128 # hardcode_minus_L: Not really in the search PATH,
7129 # but as the default location of the library.
7130 hardcode_minus_L=yes
7131 export_dynamic_flag_spec='${wl}-E'
7132 ;;
7133
7134 hpux10* | hpux11*)
7135 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7136 case "$host_cpu" in
7137 hppa*64*|ia64*)
7138 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7139 ;;
7140 *)
7141 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7142 ;;
7143 esac
7144 else
7145 case "$host_cpu" in
7146 hppa*64*|ia64*)
7147 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7148 ;;
7149 *)
7150 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7151 ;;
7152 esac
7153 fi
7154 if test "$with_gnu_ld" = no; then
7155 case "$host_cpu" in
7156 hppa*64*)
7157 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7158 hardcode_libdir_flag_spec_ld='+b $libdir'
7159 hardcode_libdir_separator=:
7160 hardcode_direct=no
7161 hardcode_shlibpath_var=no
7162 ;;
7163 ia64*)
7164 hardcode_libdir_flag_spec='-L$libdir'
7165 hardcode_direct=no
7166 hardcode_shlibpath_var=no
7167
7168 # hardcode_minus_L: Not really in the search PATH,
7169 # but as the default location of the library.
7170 hardcode_minus_L=yes
7171 ;;
7172 *)
7173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7174 hardcode_libdir_separator=:
7175 hardcode_direct=yes
7176 export_dynamic_flag_spec='${wl}-E'
7177
7178 # hardcode_minus_L: Not really in the search PATH,
7179 # but as the default location of the library.
7180 hardcode_minus_L=yes
7181 ;;
7182 esac
7183 fi
7184 ;;
7185
7186 irix5* | irix6* | nonstopux*)
7187 if test "$GCC" = yes; then
7188 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'
7189 else
7190 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'
7191 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7192 fi
7193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7194 hardcode_libdir_separator=:
7195 link_all_deplibs=yes
7196 ;;
7197
7198 netbsd*)
7199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7201 else
7202 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7203 fi
7204 hardcode_libdir_flag_spec='-R$libdir'
7205 hardcode_direct=yes
7206 hardcode_shlibpath_var=no
7207 ;;
7208
7209 newsos6)
7210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7211 hardcode_direct=yes
7212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7213 hardcode_libdir_separator=:
7214 hardcode_shlibpath_var=no
7215 ;;
7216
7217 openbsd*)
7218 hardcode_direct=yes
7219 hardcode_shlibpath_var=no
7220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7221 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7222 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7223 export_dynamic_flag_spec='${wl}-E'
7224 else
7225 case $host_os in
7226 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7227 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7228 hardcode_libdir_flag_spec='-R$libdir'
7229 ;;
7230 *)
7231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7233 ;;
7234 esac
7235 fi
7236 ;;
7237
7238 os2*)
7239 hardcode_libdir_flag_spec='-L$libdir'
7240 hardcode_minus_L=yes
7241 allow_undefined_flag=unsupported
7242 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'
7243 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7244 ;;
7245
7246 osf3*)
7247 if test "$GCC" = yes; then
7248 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7249 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'
7250 else
7251 allow_undefined_flag=' -expect_unresolved \*'
7252 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'
7253 fi
7254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7255 hardcode_libdir_separator=:
7256 ;;
7257
7258 osf4* | osf5*) # as osf3* with the addition of -msym flag
7259 if test "$GCC" = yes; then
7260 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7261 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'
7262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7263 else
7264 allow_undefined_flag=' -expect_unresolved \*'
7265 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'
7266 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7267 $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'
7268
7269 # Both c and cxx compiler support -rpath directly
7270 hardcode_libdir_flag_spec='-rpath $libdir'
7271 fi
7272 hardcode_libdir_separator=:
7273 ;;
7274
7275 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7277 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007278 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007279 runpath_var=LD_RUN_PATH
7280 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007281 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007282
John Criswell47fdd832003-07-14 16:52:07 +00007283 solaris*)
7284 no_undefined_flag=' -z text'
7285 if test "$GCC" = yes; then
7286 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7287 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7288 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7289 else
7290 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7291 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7292 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7293 fi
7294 hardcode_libdir_flag_spec='-R$libdir'
7295 hardcode_shlibpath_var=no
7296 case $host_os in
7297 solaris2.[0-5] | solaris2.[0-5].*) ;;
7298 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7299 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7300 esac
7301 link_all_deplibs=yes
7302 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007303
John Criswell47fdd832003-07-14 16:52:07 +00007304 sunos4*)
7305 if test "x$host_vendor" = xsequent; then
7306 # Use $CC to link under sequent, because it throws in some extra .o
7307 # files that make .init and .fini sections work.
7308 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7309 else
7310 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7311 fi
7312 hardcode_libdir_flag_spec='-L$libdir'
7313 hardcode_direct=yes
7314 hardcode_minus_L=yes
7315 hardcode_shlibpath_var=no
7316 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007317
John Criswell47fdd832003-07-14 16:52:07 +00007318 sysv4)
7319 case $host_vendor in
7320 sni)
7321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7322 hardcode_direct=yes # is this really true???
7323 ;;
7324 siemens)
7325 ## LD is ld it makes a PLAMLIB
7326 ## CC just makes a GrossModule.
7327 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7328 reload_cmds='$CC -r -o $output$reload_objs'
7329 hardcode_direct=no
7330 ;;
7331 motorola)
7332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7333 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7334 ;;
7335 esac
7336 runpath_var='LD_RUN_PATH'
7337 hardcode_shlibpath_var=no
7338 ;;
7339
7340 sysv4.3*)
7341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342 hardcode_shlibpath_var=no
7343 export_dynamic_flag_spec='-Bexport'
7344 ;;
7345
7346 sysv4*MP*)
7347 if test -d /usr/nec; then
7348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7349 hardcode_shlibpath_var=no
7350 runpath_var=LD_RUN_PATH
7351 hardcode_runpath_var=yes
7352 ld_shlibs=yes
7353 fi
7354 ;;
7355
7356 sysv4.2uw2*)
7357 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7358 hardcode_direct=yes
7359 hardcode_minus_L=no
7360 hardcode_shlibpath_var=no
7361 hardcode_runpath_var=yes
7362 runpath_var=LD_RUN_PATH
7363 ;;
7364
7365 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7366 no_undefined_flag='${wl}-z ${wl}text'
7367 if test "$GCC" = yes; then
7368 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7369 else
7370 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7371 fi
7372 runpath_var='LD_RUN_PATH'
7373 hardcode_shlibpath_var=no
7374 ;;
7375
7376 sysv5*)
7377 no_undefined_flag=' -z text'
7378 # $CC -shared without GNU ld will not create a library from C++
7379 # object files and a static libstdc++, better avoid it by now
7380 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7381 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7382 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7383 hardcode_libdir_flag_spec=
7384 hardcode_shlibpath_var=no
7385 runpath_var='LD_RUN_PATH'
7386 ;;
7387
7388 uts4*)
7389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7390 hardcode_libdir_flag_spec='-L$libdir'
7391 hardcode_shlibpath_var=no
7392 ;;
7393
7394 *)
7395 ld_shlibs=no
7396 ;;
7397 esac
7398 fi
7399
John Criswell7a73b802003-06-30 21:59:07 +00007400echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7401echo "${ECHO_T}$ld_shlibs" >&6
7402test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007403
John Criswell47fdd832003-07-14 16:52:07 +00007404variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7405if test "$GCC" = yes; then
7406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7407fi
7408
7409#
7410# Do we need to explicitly link libc?
7411#
7412case "x$archive_cmds_need_lc" in
7413x|xyes)
7414 # Assume -lc should be added
7415 archive_cmds_need_lc=yes
7416
7417 if test "$enable_shared" = yes && test "$GCC" = yes; then
7418 case $archive_cmds in
7419 *'~'*)
7420 # FIXME: we may have to deal with multi-command sequences.
7421 ;;
7422 '$CC '*)
7423 # Test whether the compiler implicitly links with -lc since on some
7424 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7425 # to ld, don't add -lc before -lgcc.
7426 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7427echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7428 $rm conftest*
7429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7430
7431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7432 (eval $ac_compile) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); } 2>conftest.err; then
7436 soname=conftest
7437 lib=conftest
7438 libobjs=conftest.$ac_objext
7439 deplibs=
7440 wl=$lt_prog_compiler_wl
7441 compiler_flags=-v
7442 linker_flags=-v
7443 verstring=
7444 output_objdir=.
7445 libname=conftest
7446 lt_save_allow_undefined_flag=$allow_undefined_flag
7447 allow_undefined_flag=
7448 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7449 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7450 ac_status=$?
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }
7453 then
7454 archive_cmds_need_lc=no
7455 else
7456 archive_cmds_need_lc=yes
7457 fi
7458 allow_undefined_flag=$lt_save_allow_undefined_flag
7459 else
7460 cat conftest.err 1>&5
7461 fi
7462 $rm conftest*
7463 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7464echo "${ECHO_T}$archive_cmds_need_lc" >&6
7465 ;;
7466 esac
7467 fi
7468 ;;
7469esac
7470
John Criswell7a73b802003-06-30 21:59:07 +00007471echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7472echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7473hardcode_action=
7474if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007475 test -n "$runpath_var " || \
7476 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007477
7478 # We can hardcode non-existant directories.
7479 if test "$hardcode_direct" != no &&
7480 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7481 # have to relink, otherwise we might link with an installed library
7482 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007483 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007484 test "$hardcode_minus_L" != no; then
7485 # Linking always hardcodes the temporary library directory.
7486 hardcode_action=relink
7487 else
7488 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7489 hardcode_action=immediate
7490 fi
7491else
7492 # We cannot hardcode anything, or else we can only hardcode existing
7493 # directories.
7494 hardcode_action=unsupported
7495fi
7496echo "$as_me:$LINENO: result: $hardcode_action" >&5
7497echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007498
John Criswell47fdd832003-07-14 16:52:07 +00007499if test "$hardcode_action" = relink; then
7500 # Fast installation is not supported
7501 enable_fast_install=no
7502elif test "$shlibpath_overrides_runpath" = yes ||
7503 test "$enable_shared" = no; then
7504 # Fast installation is not necessary
7505 enable_fast_install=needless
7506fi
7507
John Criswell7a73b802003-06-30 21:59:07 +00007508striplib=
7509old_striplib=
7510echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7511echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7512if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7513 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7514 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7515 echo "$as_me:$LINENO: result: yes" >&5
7516echo "${ECHO_T}yes" >&6
7517else
John Criswell47fdd832003-07-14 16:52:07 +00007518# FIXME - insert some real tests, host_os isn't really good enough
7519 case $host_os in
7520 darwin*)
7521 if test -n "$STRIP" ; then
7522 striplib="$STRIP -x"
7523 echo "$as_me:$LINENO: result: yes" >&5
7524echo "${ECHO_T}yes" >&6
7525 else
John Criswell7a73b802003-06-30 21:59:07 +00007526 echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6
7528fi
John Criswell47fdd832003-07-14 16:52:07 +00007529 ;;
7530 *)
7531 echo "$as_me:$LINENO: result: no" >&5
7532echo "${ECHO_T}no" >&6
7533 ;;
7534 esac
7535fi
John Criswell7a73b802003-06-30 21:59:07 +00007536
John Criswell7a73b802003-06-30 21:59:07 +00007537echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7538echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7539library_names_spec=
7540libname_spec='lib$name'
7541soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007542shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007543postinstall_cmds=
7544postuninstall_cmds=
7545finish_cmds=
7546finish_eval=
7547shlibpath_var=
7548shlibpath_overrides_runpath=unknown
7549version_type=none
7550dynamic_linker="$host_os ld.so"
7551sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007552if test "$GCC" = yes; then
7553 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7554 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7555 # if the path contains ";" then we assume it to be the separator
7556 # otherwise default to the standard path separator (i.e. ":") - it is
7557 # assumed that no part of a normal pathname contains ";" but that should
7558 # okay in the real world where ";" in dirpaths is itself problematic.
7559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7560 else
7561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7562 fi
7563else
7564 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7565fi
7566need_lib_prefix=unknown
7567hardcode_into_libs=no
7568
7569# when you set need_version to no, make sure it does not cause -set_version
7570# flags to be left without arguments
7571need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007572
7573case $host_os in
7574aix3*)
7575 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007577 shlibpath_var=LIBPATH
7578
John Criswell47fdd832003-07-14 16:52:07 +00007579 # AIX 3 has no versioning support, so we append a major version to the name.
7580 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007581 ;;
7582
7583aix4* | aix5*)
7584 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007585 need_lib_prefix=no
7586 need_version=no
7587 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007588 if test "$host_cpu" = ia64; then
7589 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007590 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007591 shlibpath_var=LD_LIBRARY_PATH
7592 else
7593 # With GCC up to 2.95.x, collect2 would create an import file
7594 # for dependence libraries. The import file would start with
7595 # the line `#! .'. This would cause the generated library to
7596 # depend on `.', always an invalid library. This was fixed in
7597 # development snapshots of GCC prior to 3.0.
7598 case $host_os in
7599 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7601 echo ' yes '
7602 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7603 :
7604 else
7605 can_build_shared=no
7606 fi
7607 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007608 esac
John Criswell47fdd832003-07-14 16:52:07 +00007609 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7610 # soname into executable. Probably we can add versioning support to
7611 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007612 if test "$aix_use_runtimelinking" = yes; then
7613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7614 # instead of lib<name>.a to let people know that these are not
7615 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007617 else
7618 # We preserve .a as extension for shared libraries through AIX4.2
7619 # and later when we are not doing run time linking.
7620 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007621 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007622 fi
7623 shlibpath_var=LIBPATH
7624 fi
7625 ;;
7626
7627amigaos*)
7628 library_names_spec='$libname.ixlibrary $libname.a'
7629 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7630 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'
7631 ;;
7632
7633beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007634 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007635 dynamic_linker="$host_os ld.so"
7636 shlibpath_var=LIBRARY_PATH
7637 ;;
7638
7639bsdi4*)
7640 version_type=linux
7641 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7643 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007644 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7645 shlibpath_var=LD_LIBRARY_PATH
7646 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7647 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007648 # the default ld.so.conf also contains /usr/contrib/lib and
7649 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7650 # libtool to hard-code these into programs
7651 ;;
7652
7653cygwin* | mingw* | pw32*)
7654 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007655 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007656 need_version=no
7657 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007658
John Criswell7a73b802003-06-30 21:59:07 +00007659 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007660 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007661 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007662 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7663 postinstall_cmds='base_file=`basename \${file}`~
7664 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007665 dldir=$destdir/`dirname \$dlpath`~
7666 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007667 $install_prog $dir/$dlname \$dldir/$dlname'
7668 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007669 dlpath=$dir/\$dldll~
7670 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007671 shlibpath_overrides_runpath=yes
7672
7673 case $host_os in
7674 cygwin*)
7675 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7676 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7677 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7678 ;;
7679 mingw*)
7680 # MinGW DLLs use traditional 'lib' prefix
7681 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7682 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7683 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7684 # It is most probably a Windows format PATH printed by
7685 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7686 # path with ; separators, and with drive letters. We can handle the
7687 # drive letters (cygwin fileutils understands them), so leave them,
7688 # especially as we might pass files found there to a mingw objdump,
7689 # which wouldn't understand a cygwinified path. Ahh.
7690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7691 else
7692 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7693 fi
7694 ;;
7695 pw32*)
7696 # pw32 DLLs use 'pw' prefix rather than 'lib'
7697 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7698 ;;
7699 esac
John Criswell7a73b802003-06-30 21:59:07 +00007700 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007701
John Criswell7a73b802003-06-30 21:59:07 +00007702 *)
John Criswell47fdd832003-07-14 16:52:07 +00007703 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007704 ;;
7705 esac
7706 dynamic_linker='Win32 ld.exe'
7707 # FIXME: first we should search . and the directory the executable is in
7708 shlibpath_var=PATH
7709 ;;
7710
7711darwin* | rhapsody*)
7712 dynamic_linker="$host_os dyld"
7713 version_type=darwin
7714 need_lib_prefix=no
7715 need_version=no
7716 # FIXME: Relying on posixy $() will cause problems for
7717 # cross-compilation, but unfortunately the echo tests do not
7718 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007719 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7720 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007721 shlibpath_overrides_runpath=yes
7722 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007723 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7724 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7725 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7726 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"`
7727 fi
7728 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7729 ;;
7730
7731dgux*)
7732 version_type=linux
7733 need_lib_prefix=no
7734 need_version=no
7735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7736 soname_spec='${libname}${release}${shared_ext}$major'
7737 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007738 ;;
7739
7740freebsd1*)
7741 dynamic_linker=no
7742 ;;
7743
7744freebsd*)
7745 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7746 version_type=freebsd-$objformat
7747 case $version_type in
7748 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007750 need_version=no
7751 need_lib_prefix=no
7752 ;;
7753 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007754 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007755 need_version=yes
7756 ;;
7757 esac
7758 shlibpath_var=LD_LIBRARY_PATH
7759 case $host_os in
7760 freebsd2*)
7761 shlibpath_overrides_runpath=yes
7762 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007763 freebsd3.01* | freebsdelf3.01*)
7764 shlibpath_overrides_runpath=yes
7765 hardcode_into_libs=yes
7766 ;;
7767 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007768 shlibpath_overrides_runpath=no
7769 hardcode_into_libs=yes
7770 ;;
7771 esac
7772 ;;
7773
7774gnu*)
7775 version_type=linux
7776 need_lib_prefix=no
7777 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7779 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007780 shlibpath_var=LD_LIBRARY_PATH
7781 hardcode_into_libs=yes
7782 ;;
7783
7784hpux9* | hpux10* | hpux11*)
7785 # Give a soname corresponding to the major version so that dld.sl refuses to
7786 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007787 version_type=sunos
7788 need_lib_prefix=no
7789 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007790 case "$host_cpu" in
7791 ia64*)
7792 shrext='.so'
7793 hardcode_into_libs=yes
7794 dynamic_linker="$host_os dld.so"
7795 shlibpath_var=LD_LIBRARY_PATH
7796 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7798 soname_spec='${libname}${release}${shared_ext}$major'
7799 if test "X$HPUX_IA64_MODE" = X32; then
7800 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7801 else
7802 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7803 fi
7804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7805 ;;
7806 hppa*64*)
7807 shrext='.sl'
7808 hardcode_into_libs=yes
7809 dynamic_linker="$host_os dld.sl"
7810 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7811 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7813 soname_spec='${libname}${release}${shared_ext}$major'
7814 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7816 ;;
7817 *)
7818 shrext='.sl'
7819 dynamic_linker="$host_os dld.sl"
7820 shlibpath_var=SHLIB_PATH
7821 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7823 soname_spec='${libname}${release}${shared_ext}$major'
7824 ;;
7825 esac
John Criswell7a73b802003-06-30 21:59:07 +00007826 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7827 postinstall_cmds='chmod 555 $lib'
7828 ;;
7829
John Criswell47fdd832003-07-14 16:52:07 +00007830irix5* | irix6* | nonstopux*)
7831 case $host_os in
7832 nonstopux*) version_type=nonstopux ;;
7833 *)
7834 if test "$lt_cv_prog_gnu_ld" = yes; then
7835 version_type=linux
7836 else
7837 version_type=irix
7838 fi ;;
7839 esac
John Criswell7a73b802003-06-30 21:59:07 +00007840 need_lib_prefix=no
7841 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007842 soname_spec='${libname}${release}${shared_ext}$major'
7843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007844 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007845 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007846 libsuff= shlibsuff=
7847 ;;
7848 *)
7849 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007850 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7851 libsuff= shlibsuff= libmagic=32-bit;;
7852 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7853 libsuff=32 shlibsuff=N32 libmagic=N32;;
7854 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7855 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007856 *) libsuff= shlibsuff= libmagic=never-match;;
7857 esac
7858 ;;
7859 esac
7860 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7861 shlibpath_overrides_runpath=no
7862 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7863 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007864 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007865 ;;
7866
7867# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007868linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007869 dynamic_linker=no
7870 ;;
7871
7872# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007873linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007874 version_type=linux
7875 need_lib_prefix=no
7876 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7878 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7880 shlibpath_var=LD_LIBRARY_PATH
7881 shlibpath_overrides_runpath=no
7882 # This implies no fast_install, which is unacceptable.
7883 # Some rework will be needed to allow for fast_install
7884 # before this can be enabled.
7885 hardcode_into_libs=yes
7886
7887 # We used to test for /lib/ld.so.1 and disable shared libraries on
7888 # powerpc, because MkLinux only supported shared libraries with the
7889 # GNU dynamic linker. Since this was broken with cross compilers,
7890 # most powerpc-linux boxes support dynamic linking these days and
7891 # people can always --disable-shared, the test was removed, and we
7892 # assume the GNU/Linux dynamic linker is in use.
7893 dynamic_linker='GNU/Linux ld.so'
7894 ;;
7895
7896netbsd*)
7897 version_type=sunos
7898 need_lib_prefix=no
7899 need_version=no
7900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7903 dynamic_linker='NetBSD (a.out) ld.so'
7904 else
John Criswell47fdd832003-07-14 16:52:07 +00007905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7906 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007907 dynamic_linker='NetBSD ld.elf_so'
7908 fi
7909 shlibpath_var=LD_LIBRARY_PATH
7910 shlibpath_overrides_runpath=yes
7911 hardcode_into_libs=yes
7912 ;;
7913
7914newsos6)
7915 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7917 shlibpath_var=LD_LIBRARY_PATH
7918 shlibpath_overrides_runpath=yes
7919 ;;
7920
7921nto-qnx)
7922 version_type=linux
7923 need_lib_prefix=no
7924 need_version=no
7925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7926 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007927 shlibpath_var=LD_LIBRARY_PATH
7928 shlibpath_overrides_runpath=yes
7929 ;;
7930
7931openbsd*)
7932 version_type=sunos
7933 need_lib_prefix=no
7934 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7937 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007938 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
John Criswell47fdd832003-07-14 16:52:07 +00007939 case $host_os in
7940 openbsd2.[89] | openbsd2.[89].*)
7941 shlibpath_overrides_runpath=no
7942 ;;
7943 *)
7944 shlibpath_overrides_runpath=yes
7945 ;;
7946 esac
John Criswell7a73b802003-06-30 21:59:07 +00007947 else
7948 shlibpath_overrides_runpath=yes
7949 fi
John Criswell7a73b802003-06-30 21:59:07 +00007950 ;;
7951
7952os2*)
7953 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007954 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007955 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007956 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007957 dynamic_linker='OS/2 ld.exe'
7958 shlibpath_var=LIBPATH
7959 ;;
7960
7961osf3* | osf4* | osf5*)
7962 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007963 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007964 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007965 soname_spec='${libname}${release}${shared_ext}$major'
7966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007967 shlibpath_var=LD_LIBRARY_PATH
7968 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7969 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7970 ;;
7971
7972sco3.2v5*)
7973 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007974 soname_spec='${libname}${release}${shared_ext}$major'
7975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007976 shlibpath_var=LD_LIBRARY_PATH
7977 ;;
7978
7979solaris*)
7980 version_type=linux
7981 need_lib_prefix=no
7982 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7984 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007985 shlibpath_var=LD_LIBRARY_PATH
7986 shlibpath_overrides_runpath=yes
7987 hardcode_into_libs=yes
7988 # ldd complains unless libraries are executable
7989 postinstall_cmds='chmod +x $lib'
7990 ;;
7991
7992sunos4*)
7993 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007995 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7996 shlibpath_var=LD_LIBRARY_PATH
7997 shlibpath_overrides_runpath=yes
7998 if test "$with_gnu_ld" = yes; then
7999 need_lib_prefix=no
8000 fi
8001 need_version=yes
8002 ;;
8003
8004sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8005 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8007 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008008 shlibpath_var=LD_LIBRARY_PATH
8009 case $host_vendor in
8010 sni)
8011 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008012 need_lib_prefix=no
8013 export_dynamic_flag_spec='${wl}-Blargedynsym'
8014 runpath_var=LD_RUN_PATH
8015 ;;
8016 siemens)
8017 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008018 ;;
8019 motorola)
8020 need_lib_prefix=no
8021 need_version=no
8022 shlibpath_overrides_runpath=no
8023 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8024 ;;
8025 esac
8026 ;;
8027
John Criswell7a73b802003-06-30 21:59:07 +00008028sysv4*MP*)
8029 if test -d /usr/nec ;then
8030 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008031 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8032 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008033 shlibpath_var=LD_LIBRARY_PATH
8034 fi
8035 ;;
8036
John Criswell47fdd832003-07-14 16:52:07 +00008037uts4*)
8038 version_type=linux
8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8040 soname_spec='${libname}${release}${shared_ext}$major'
8041 shlibpath_var=LD_LIBRARY_PATH
8042 ;;
8043
John Criswell7a73b802003-06-30 21:59:07 +00008044*)
8045 dynamic_linker=no
8046 ;;
8047esac
8048echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8049echo "${ECHO_T}$dynamic_linker" >&6
8050test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008051
8052if test "x$enable_dlopen" != xyes; then
8053 enable_dlopen=unknown
8054 enable_dlopen_self=unknown
8055 enable_dlopen_self_static=unknown
8056else
8057 lt_cv_dlopen=no
8058 lt_cv_dlopen_libs=
8059
8060 case $host_os in
8061 beos*)
8062 lt_cv_dlopen="load_add_on"
8063 lt_cv_dlopen_libs=
8064 lt_cv_dlopen_self=yes
8065 ;;
8066
John Criswell47fdd832003-07-14 16:52:07 +00008067 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008068 lt_cv_dlopen="LoadLibrary"
8069 lt_cv_dlopen_libs=
8070 ;;
8071
John Criswell47fdd832003-07-14 16:52:07 +00008072 cygwin*)
8073 lt_cv_dlopen="dlopen"
8074 lt_cv_dlopen_libs=
8075 ;;
8076
8077 darwin*)
8078 # if libdl is installed we need to link against it
8079 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8080echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8081if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8083else
8084 ac_check_lib_save_LIBS=$LIBS
8085LIBS="-ldl $LIBS"
8086cat >conftest.$ac_ext <<_ACEOF
8087#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008088/* confdefs.h. */
8089_ACEOF
8090cat confdefs.h >>conftest.$ac_ext
8091cat >>conftest.$ac_ext <<_ACEOF
8092/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008093
8094/* Override any gcc2 internal prototype to avoid an error. */
8095#ifdef __cplusplus
8096extern "C"
8097#endif
8098/* We use char because int might match the return type of a gcc2
8099 builtin and then its argument prototype would still apply. */
8100char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008101int
8102main ()
8103{
8104dlopen ();
8105 ;
8106 return 0;
8107}
8108_ACEOF
8109rm -f conftest.$ac_objext conftest$ac_exeext
8110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8111 (eval $ac_link) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } &&
8115 { ac_try='test -s conftest$ac_exeext'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 (eval $ac_try) 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 ac_cv_lib_dl_dlopen=yes
8122else
8123 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008124sed 's/^/| /' conftest.$ac_ext >&5
8125
John Criswell47fdd832003-07-14 16:52:07 +00008126ac_cv_lib_dl_dlopen=no
8127fi
8128rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8129LIBS=$ac_check_lib_save_LIBS
8130fi
8131echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8132echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8133if test $ac_cv_lib_dl_dlopen = yes; then
8134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8135else
8136
8137 lt_cv_dlopen="dyld"
8138 lt_cv_dlopen_libs=
8139 lt_cv_dlopen_self=yes
8140
8141fi
8142
8143 ;;
8144
John Criswell7a73b802003-06-30 21:59:07 +00008145 *)
8146 echo "$as_me:$LINENO: checking for shl_load" >&5
8147echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8148if test "${ac_cv_func_shl_load+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8150else
8151 cat >conftest.$ac_ext <<_ACEOF
8152#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008153/* confdefs.h. */
8154_ACEOF
8155cat confdefs.h >>conftest.$ac_ext
8156cat >>conftest.$ac_ext <<_ACEOF
8157/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008158/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008159 which can conflict with char shl_load (); below.
8160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8161 <limits.h> exists even on freestanding compilers. */
8162#ifdef __STDC__
8163# include <limits.h>
8164#else
8165# include <assert.h>
8166#endif
John Criswell7a73b802003-06-30 21:59:07 +00008167/* Override any gcc2 internal prototype to avoid an error. */
8168#ifdef __cplusplus
8169extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008170{
John Criswell7a73b802003-06-30 21:59:07 +00008171#endif
8172/* We use char because int might match the return type of a gcc2
8173 builtin and then its argument prototype would still apply. */
8174char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008175/* The GNU C library defines this for functions which it implements
8176 to always fail with ENOSYS. Some functions are actually named
8177 something starting with __ and the normal name is an alias. */
8178#if defined (__stub_shl_load) || defined (__stub___shl_load)
8179choke me
8180#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008181char (*f) () = shl_load;
8182#endif
8183#ifdef __cplusplus
8184}
John Criswell7a73b802003-06-30 21:59:07 +00008185#endif
8186
John Criswell0c38eaf2003-09-10 15:17:25 +00008187int
8188main ()
8189{
8190return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008191 ;
8192 return 0;
8193}
8194_ACEOF
8195rm -f conftest.$ac_objext conftest$ac_exeext
8196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197 (eval $ac_link) 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } &&
8201 { ac_try='test -s conftest$ac_exeext'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 (eval $ac_try) 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
8207 ac_cv_func_shl_load=yes
8208else
8209 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008210sed 's/^/| /' conftest.$ac_ext >&5
8211
John Criswell7a73b802003-06-30 21:59:07 +00008212ac_cv_func_shl_load=no
8213fi
8214rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8215fi
8216echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8217echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8218if test $ac_cv_func_shl_load = yes; then
8219 lt_cv_dlopen="shl_load"
8220else
8221 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8222echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8223if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8225else
8226 ac_check_lib_save_LIBS=$LIBS
8227LIBS="-ldld $LIBS"
8228cat >conftest.$ac_ext <<_ACEOF
8229#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008230/* confdefs.h. */
8231_ACEOF
8232cat confdefs.h >>conftest.$ac_ext
8233cat >>conftest.$ac_ext <<_ACEOF
8234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008235
8236/* Override any gcc2 internal prototype to avoid an error. */
8237#ifdef __cplusplus
8238extern "C"
8239#endif
8240/* We use char because int might match the return type of a gcc2
8241 builtin and then its argument prototype would still apply. */
8242char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008243int
8244main ()
8245{
8246shl_load ();
8247 ;
8248 return 0;
8249}
8250_ACEOF
8251rm -f conftest.$ac_objext conftest$ac_exeext
8252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 ac_cv_lib_dld_shl_load=yes
8264else
8265 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008266sed 's/^/| /' conftest.$ac_ext >&5
8267
John Criswell7a73b802003-06-30 21:59:07 +00008268ac_cv_lib_dld_shl_load=no
8269fi
8270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8271LIBS=$ac_check_lib_save_LIBS
8272fi
8273echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8274echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8275if test $ac_cv_lib_dld_shl_load = yes; then
8276 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8277else
8278 echo "$as_me:$LINENO: checking for dlopen" >&5
8279echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8280if test "${ac_cv_func_dlopen+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8282else
8283 cat >conftest.$ac_ext <<_ACEOF
8284#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008285/* confdefs.h. */
8286_ACEOF
8287cat confdefs.h >>conftest.$ac_ext
8288cat >>conftest.$ac_ext <<_ACEOF
8289/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008290/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008291 which can conflict with char dlopen (); below.
8292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8293 <limits.h> exists even on freestanding compilers. */
8294#ifdef __STDC__
8295# include <limits.h>
8296#else
8297# include <assert.h>
8298#endif
John Criswell7a73b802003-06-30 21:59:07 +00008299/* Override any gcc2 internal prototype to avoid an error. */
8300#ifdef __cplusplus
8301extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008302{
John Criswell7a73b802003-06-30 21:59:07 +00008303#endif
8304/* We use char because int might match the return type of a gcc2
8305 builtin and then its argument prototype would still apply. */
8306char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008307/* The GNU C library defines this for functions which it implements
8308 to always fail with ENOSYS. Some functions are actually named
8309 something starting with __ and the normal name is an alias. */
8310#if defined (__stub_dlopen) || defined (__stub___dlopen)
8311choke me
8312#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008313char (*f) () = dlopen;
8314#endif
8315#ifdef __cplusplus
8316}
John Criswell7a73b802003-06-30 21:59:07 +00008317#endif
8318
John Criswell0c38eaf2003-09-10 15:17:25 +00008319int
8320main ()
8321{
8322return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008323 ;
8324 return 0;
8325}
8326_ACEOF
8327rm -f conftest.$ac_objext conftest$ac_exeext
8328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8329 (eval $ac_link) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_func_dlopen=yes
8340else
8341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008342sed 's/^/| /' conftest.$ac_ext >&5
8343
John Criswell7a73b802003-06-30 21:59:07 +00008344ac_cv_func_dlopen=no
8345fi
8346rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8347fi
8348echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8349echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8350if test $ac_cv_func_dlopen = yes; then
8351 lt_cv_dlopen="dlopen"
8352else
8353 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8354echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8355if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357else
8358 ac_check_lib_save_LIBS=$LIBS
8359LIBS="-ldl $LIBS"
8360cat >conftest.$ac_ext <<_ACEOF
8361#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008362/* confdefs.h. */
8363_ACEOF
8364cat confdefs.h >>conftest.$ac_ext
8365cat >>conftest.$ac_ext <<_ACEOF
8366/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008367
8368/* Override any gcc2 internal prototype to avoid an error. */
8369#ifdef __cplusplus
8370extern "C"
8371#endif
8372/* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8374char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008375int
8376main ()
8377{
8378dlopen ();
8379 ;
8380 return 0;
8381}
8382_ACEOF
8383rm -f conftest.$ac_objext conftest$ac_exeext
8384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385 (eval $ac_link) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } &&
8389 { ac_try='test -s conftest$ac_exeext'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 (eval $ac_try) 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 ac_cv_lib_dl_dlopen=yes
8396else
8397 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008398sed 's/^/| /' conftest.$ac_ext >&5
8399
John Criswell7a73b802003-06-30 21:59:07 +00008400ac_cv_lib_dl_dlopen=no
8401fi
8402rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8403LIBS=$ac_check_lib_save_LIBS
8404fi
8405echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8406echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8407if test $ac_cv_lib_dl_dlopen = yes; then
8408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8409else
8410 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8411echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8412if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414else
8415 ac_check_lib_save_LIBS=$LIBS
8416LIBS="-lsvld $LIBS"
8417cat >conftest.$ac_ext <<_ACEOF
8418#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008419/* confdefs.h. */
8420_ACEOF
8421cat confdefs.h >>conftest.$ac_ext
8422cat >>conftest.$ac_ext <<_ACEOF
8423/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008424
8425/* Override any gcc2 internal prototype to avoid an error. */
8426#ifdef __cplusplus
8427extern "C"
8428#endif
8429/* We use char because int might match the return type of a gcc2
8430 builtin and then its argument prototype would still apply. */
8431char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008432int
8433main ()
8434{
8435dlopen ();
8436 ;
8437 return 0;
8438}
8439_ACEOF
8440rm -f conftest.$ac_objext conftest$ac_exeext
8441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8442 (eval $ac_link) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -s conftest$ac_exeext'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 (eval $ac_try) 2>&5
8449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8452 ac_cv_lib_svld_dlopen=yes
8453else
8454 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008455sed 's/^/| /' conftest.$ac_ext >&5
8456
John Criswell7a73b802003-06-30 21:59:07 +00008457ac_cv_lib_svld_dlopen=no
8458fi
8459rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8460LIBS=$ac_check_lib_save_LIBS
8461fi
8462echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8463echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8464if test $ac_cv_lib_svld_dlopen = yes; then
8465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8466else
8467 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8468echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8469if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8471else
8472 ac_check_lib_save_LIBS=$LIBS
8473LIBS="-ldld $LIBS"
8474cat >conftest.$ac_ext <<_ACEOF
8475#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008476/* confdefs.h. */
8477_ACEOF
8478cat confdefs.h >>conftest.$ac_ext
8479cat >>conftest.$ac_ext <<_ACEOF
8480/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008481
8482/* Override any gcc2 internal prototype to avoid an error. */
8483#ifdef __cplusplus
8484extern "C"
8485#endif
8486/* We use char because int might match the return type of a gcc2
8487 builtin and then its argument prototype would still apply. */
8488char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008489int
8490main ()
8491{
8492dld_link ();
8493 ;
8494 return 0;
8495}
8496_ACEOF
8497rm -f conftest.$ac_objext conftest$ac_exeext
8498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499 (eval $ac_link) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_lib_dld_dld_link=yes
8510else
8511 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008512sed 's/^/| /' conftest.$ac_ext >&5
8513
John Criswell7a73b802003-06-30 21:59:07 +00008514ac_cv_lib_dld_dld_link=no
8515fi
8516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8517LIBS=$ac_check_lib_save_LIBS
8518fi
8519echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8520echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8521if test $ac_cv_lib_dld_dld_link = yes; then
8522 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8523fi
8524
8525
8526fi
8527
8528
8529fi
8530
8531
8532fi
8533
8534
8535fi
8536
8537
8538fi
8539
8540 ;;
8541 esac
8542
8543 if test "x$lt_cv_dlopen" != xno; then
8544 enable_dlopen=yes
8545 else
8546 enable_dlopen=no
8547 fi
8548
8549 case $lt_cv_dlopen in
8550 dlopen)
8551 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008552 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008553
8554 save_LDFLAGS="$LDFLAGS"
8555 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8556
8557 save_LIBS="$LIBS"
8558 LIBS="$lt_cv_dlopen_libs $LIBS"
8559
8560 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8561echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8562if test "${lt_cv_dlopen_self+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564else
8565 if test "$cross_compiling" = yes; then :
8566 lt_cv_dlopen_self=cross
8567else
John Criswell47fdd832003-07-14 16:52:07 +00008568 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008569 lt_status=$lt_dlunknown
8570 cat > conftest.$ac_ext <<EOF
John Criswell759c3ed2003-10-28 19:21:11 +00008571#line 8571 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008572#include "confdefs.h"
8573
8574#if HAVE_DLFCN_H
8575#include <dlfcn.h>
8576#endif
8577
8578#include <stdio.h>
8579
8580#ifdef RTLD_GLOBAL
8581# define LT_DLGLOBAL RTLD_GLOBAL
8582#else
8583# ifdef DL_GLOBAL
8584# define LT_DLGLOBAL DL_GLOBAL
8585# else
8586# define LT_DLGLOBAL 0
8587# endif
8588#endif
8589
8590/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8591 find out it does not work in some platform. */
8592#ifndef LT_DLLAZY_OR_NOW
8593# ifdef RTLD_LAZY
8594# define LT_DLLAZY_OR_NOW RTLD_LAZY
8595# else
8596# ifdef DL_LAZY
8597# define LT_DLLAZY_OR_NOW DL_LAZY
8598# else
8599# ifdef RTLD_NOW
8600# define LT_DLLAZY_OR_NOW RTLD_NOW
8601# else
8602# ifdef DL_NOW
8603# define LT_DLLAZY_OR_NOW DL_NOW
8604# else
8605# define LT_DLLAZY_OR_NOW 0
8606# endif
8607# endif
8608# endif
8609# endif
8610#endif
8611
8612#ifdef __cplusplus
8613extern "C" void exit (int);
8614#endif
8615
8616void fnord() { int i=42;}
8617int main ()
8618{
8619 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8620 int status = $lt_dlunknown;
8621
8622 if (self)
8623 {
8624 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8625 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8626 /* dlclose (self); */
8627 }
8628
8629 exit (status);
8630}
8631EOF
8632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633 (eval $ac_link) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8637 (./conftest; exit; ) 2>/dev/null
8638 lt_status=$?
8639 case x$lt_status in
8640 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8641 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8642 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8643 esac
8644 else :
8645 # compilation failed
8646 lt_cv_dlopen_self=no
8647 fi
8648fi
8649rm -fr conftest*
8650
8651
8652fi
8653echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8654echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8655
8656 if test "x$lt_cv_dlopen_self" = xyes; then
8657 LDFLAGS="$LDFLAGS $link_static_flag"
8658 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8659echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8660if test "${lt_cv_dlopen_self_static+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662else
8663 if test "$cross_compiling" = yes; then :
8664 lt_cv_dlopen_self_static=cross
8665else
John Criswell47fdd832003-07-14 16:52:07 +00008666 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008667 lt_status=$lt_dlunknown
8668 cat > conftest.$ac_ext <<EOF
John Criswell759c3ed2003-10-28 19:21:11 +00008669#line 8669 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008670#include "confdefs.h"
8671
8672#if HAVE_DLFCN_H
8673#include <dlfcn.h>
8674#endif
8675
8676#include <stdio.h>
8677
8678#ifdef RTLD_GLOBAL
8679# define LT_DLGLOBAL RTLD_GLOBAL
8680#else
8681# ifdef DL_GLOBAL
8682# define LT_DLGLOBAL DL_GLOBAL
8683# else
8684# define LT_DLGLOBAL 0
8685# endif
8686#endif
8687
8688/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8689 find out it does not work in some platform. */
8690#ifndef LT_DLLAZY_OR_NOW
8691# ifdef RTLD_LAZY
8692# define LT_DLLAZY_OR_NOW RTLD_LAZY
8693# else
8694# ifdef DL_LAZY
8695# define LT_DLLAZY_OR_NOW DL_LAZY
8696# else
8697# ifdef RTLD_NOW
8698# define LT_DLLAZY_OR_NOW RTLD_NOW
8699# else
8700# ifdef DL_NOW
8701# define LT_DLLAZY_OR_NOW DL_NOW
8702# else
8703# define LT_DLLAZY_OR_NOW 0
8704# endif
8705# endif
8706# endif
8707# endif
8708#endif
8709
8710#ifdef __cplusplus
8711extern "C" void exit (int);
8712#endif
8713
8714void fnord() { int i=42;}
8715int main ()
8716{
8717 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8718 int status = $lt_dlunknown;
8719
8720 if (self)
8721 {
8722 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8723 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8724 /* dlclose (self); */
8725 }
8726
8727 exit (status);
8728}
8729EOF
8730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8731 (eval $ac_link) 2>&5
8732 ac_status=$?
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8735 (./conftest; exit; ) 2>/dev/null
8736 lt_status=$?
8737 case x$lt_status in
8738 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8739 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8740 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8741 esac
8742 else :
8743 # compilation failed
8744 lt_cv_dlopen_self_static=no
8745 fi
8746fi
8747rm -fr conftest*
8748
8749
8750fi
8751echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8752echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8753 fi
8754
8755 CPPFLAGS="$save_CPPFLAGS"
8756 LDFLAGS="$save_LDFLAGS"
8757 LIBS="$save_LIBS"
8758 ;;
8759 esac
8760
8761 case $lt_cv_dlopen_self in
8762 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8763 *) enable_dlopen_self=unknown ;;
8764 esac
8765
8766 case $lt_cv_dlopen_self_static in
8767 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8768 *) enable_dlopen_self_static=unknown ;;
8769 esac
8770fi
8771
8772
John Criswell47fdd832003-07-14 16:52:07 +00008773# Report which librarie types wil actually be built
8774echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8775echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8776echo "$as_me:$LINENO: result: $can_build_shared" >&5
8777echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008778
John Criswell47fdd832003-07-14 16:52:07 +00008779echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8780echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8781test "$can_build_shared" = "no" && enable_shared=no
8782
8783# On AIX, shared libraries and static libraries use the same namespace, and
8784# are all built from PIC.
8785case "$host_os" in
8786aix3*)
8787 test "$enable_shared" = yes && enable_static=no
8788 if test -n "$RANLIB"; then
8789 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8790 postinstall_cmds='$RANLIB $lib'
8791 fi
8792 ;;
8793
8794aix4*)
8795 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8796 test "$enable_shared" = yes && enable_static=no
8797 fi
8798 ;;
8799 darwin* | rhapsody*)
8800 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8801 archive_cmds_need_lc=no
8802 case "$host_os" in
8803 rhapsody* | darwin1.[012])
8804 allow_undefined_flag='-undefined suppress'
8805 ;;
8806 *) # Darwin 1.3 on
8807 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8808 ;;
8809 esac
8810 # FIXME: Relying on posixy $() will cause problems for
8811 # cross-compilation, but unfortunately the echo tests do not
8812 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8813 # `"' quotes if we put them in here... so don't!
8814 output_verbose_link_cmd='echo'
8815 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8816 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8817 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8818 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}'
8819 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}'
8820 hardcode_direct=no
8821 hardcode_automatic=yes
8822 hardcode_shlibpath_var=unsupported
8823 whole_archive_flag_spec='-all_load $convenience'
8824 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008825 fi
John Criswell7a73b802003-06-30 21:59:07 +00008826 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008827esac
8828echo "$as_me:$LINENO: result: $enable_shared" >&5
8829echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008830
John Criswell47fdd832003-07-14 16:52:07 +00008831echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8832echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8833# Make sure either enable_shared or enable_static is yes.
8834test "$enable_shared" = yes || enable_static=yes
8835echo "$as_me:$LINENO: result: $enable_static" >&5
8836echo "${ECHO_T}$enable_static" >&6
8837
8838# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008839# libtool distribution, otherwise you forgot to ship ltmain.sh
8840# with your package, and you will get complaints that there are
8841# no rules to generate ltmain.sh.
8842if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008843 # See if we are running on zsh, and set the options which allow our commands through
8844 # without removal of \ escapes.
8845 if test -n "${ZSH_VERSION+set}" ; then
8846 setopt NO_GLOB_SUBST
8847 fi
John Criswell7a73b802003-06-30 21:59:07 +00008848 # Now quote all the things that may contain metacharacters while being
8849 # careful not to overquote the AC_SUBSTed values. We take copies of the
8850 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008851 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8852 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8853 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8854 deplibs_check_method reload_flag reload_cmds need_locks \
8855 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8856 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008857 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008858 old_postinstall_cmds old_postuninstall_cmds \
8859 compiler \
8860 CC \
8861 LD \
8862 lt_prog_compiler_wl \
8863 lt_prog_compiler_pic \
8864 lt_prog_compiler_static \
8865 lt_prog_compiler_no_builtin_flag \
8866 export_dynamic_flag_spec \
8867 thread_safe_flag_spec \
8868 whole_archive_flag_spec \
8869 enable_shared_with_static_runtimes \
8870 old_archive_cmds \
8871 old_archive_from_new_cmds \
8872 predep_objects \
8873 postdep_objects \
8874 predeps \
8875 postdeps \
8876 compiler_lib_search_path \
8877 archive_cmds \
8878 archive_expsym_cmds \
8879 postinstall_cmds \
8880 postuninstall_cmds \
8881 old_archive_from_expsyms_cmds \
8882 allow_undefined_flag \
8883 no_undefined_flag \
8884 export_symbols_cmds \
8885 hardcode_libdir_flag_spec \
8886 hardcode_libdir_flag_spec_ld \
8887 hardcode_libdir_separator \
8888 hardcode_automatic \
8889 module_cmds \
8890 module_expsym_cmds \
8891 lt_cv_prog_compiler_c_o \
8892 exclude_expsyms \
8893 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008894
8895 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008896 old_archive_cmds | \
8897 old_archive_from_new_cmds | \
8898 archive_cmds | \
8899 archive_expsym_cmds | \
8900 module_cmds | \
8901 module_expsym_cmds | \
8902 old_archive_from_expsyms_cmds | \
8903 export_symbols_cmds | \
8904 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008905 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008906 old_postinstall_cmds | old_postuninstall_cmds | \
8907 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008908 # Double-quote double-evaled strings.
8909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8910 ;;
8911 *)
8912 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8913 ;;
8914 esac
8915 done
8916
John Criswell47fdd832003-07-14 16:52:07 +00008917 case $lt_echo in
8918 *'\$0 --fallback-echo"')
8919 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8920 ;;
8921 esac
8922
8923cfgfile="${ofile}T"
8924 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8925 $rm -f "$cfgfile"
8926 { echo "$as_me:$LINENO: creating $ofile" >&5
8927echo "$as_me: creating $ofile" >&6;}
8928
8929 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008930#! $SHELL
8931
John Criswell47fdd832003-07-14 16:52:07 +00008932# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008933# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8934# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8935#
John Criswell47fdd832003-07-14 16:52:07 +00008936# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8937# Free Software Foundation, Inc.
8938#
8939# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008940# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8941#
8942# This program is free software; you can redistribute it and/or modify
8943# it under the terms of the GNU General Public License as published by
8944# the Free Software Foundation; either version 2 of the License, or
8945# (at your option) any later version.
8946#
8947# This program is distributed in the hope that it will be useful, but
8948# WITHOUT ANY WARRANTY; without even the implied warranty of
8949# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8950# General Public License for more details.
8951#
8952# You should have received a copy of the GNU General Public License
8953# along with this program; if not, write to the Free Software
8954# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8955#
8956# As a special exception to the GNU General Public License, if you
8957# distribute this file as part of a program that contains a
8958# configuration script generated by Autoconf, you may include it under
8959# the same distribution terms that you use for the rest of that program.
8960
John Criswell47fdd832003-07-14 16:52:07 +00008961# A sed program that does not truncate output.
8962SED=$lt_SED
8963
John Criswell7a73b802003-06-30 21:59:07 +00008964# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008965Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008966
8967# The HP-UX ksh and POSIX shell print the target directory to stdout
8968# if CDPATH is set.
8969if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8970
John Criswell47fdd832003-07-14 16:52:07 +00008971# The names of the tagged configurations supported by this script.
8972available_tags=
8973
John Criswell7a73b802003-06-30 21:59:07 +00008974# ### BEGIN LIBTOOL CONFIG
8975
8976# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8977
8978# Shell to use when invoking shell scripts.
8979SHELL=$lt_SHELL
8980
8981# Whether or not to build shared libraries.
8982build_libtool_libs=$enable_shared
8983
8984# Whether or not to build static libraries.
8985build_old_libs=$enable_static
8986
8987# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008988build_libtool_need_lc=$archive_cmds_need_lc
8989
8990# Whether or not to disallow shared libs when runtime libs are static
8991allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008992
8993# Whether or not to optimize for fast installation.
8994fast_install=$enable_fast_install
8995
8996# The host system.
8997host_alias=$host_alias
8998host=$host
8999
9000# An echo program that does not interpret backslashes.
9001echo=$lt_echo
9002
9003# The archiver.
9004AR=$lt_AR
9005AR_FLAGS=$lt_AR_FLAGS
9006
John Criswell47fdd832003-07-14 16:52:07 +00009007# A C compiler.
9008LTCC=$lt_LTCC
9009
9010# A language-specific compiler.
9011CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009012
9013# Is the compiler the GNU C compiler?
9014with_gcc=$GCC
9015
John Criswell47fdd832003-07-14 16:52:07 +00009016# An ERE matcher.
9017EGREP=$lt_EGREP
9018
John Criswell7a73b802003-06-30 21:59:07 +00009019# The linker used to build libraries.
9020LD=$lt_LD
9021
9022# Whether we need hard or soft links.
9023LN_S=$lt_LN_S
9024
9025# A BSD-compatible nm program.
9026NM=$lt_NM
9027
9028# A symbol stripping program
9029STRIP=$STRIP
9030
9031# Used to examine libraries when file_magic_cmd begins "file"
9032MAGIC_CMD=$MAGIC_CMD
9033
9034# Used on cygwin: DLL creation program.
9035DLLTOOL="$DLLTOOL"
9036
9037# Used on cygwin: object dumper.
9038OBJDUMP="$OBJDUMP"
9039
9040# Used on cygwin: assembler.
9041AS="$AS"
9042
9043# The name of the directory that contains temporary libtool files.
9044objdir=$objdir
9045
9046# How to create reloadable object files.
9047reload_flag=$lt_reload_flag
9048reload_cmds=$lt_reload_cmds
9049
9050# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009051wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009052
9053# Object file suffix (normally "o").
9054objext="$ac_objext"
9055
9056# Old archive suffix (normally "a").
9057libext="$libext"
9058
John Criswell47fdd832003-07-14 16:52:07 +00009059# Shared library suffix (normally ".so").
9060shrext='$shrext'
9061
John Criswell7a73b802003-06-30 21:59:07 +00009062# Executable file suffix (normally "").
9063exeext="$exeext"
9064
9065# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009066pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009067pic_mode=$pic_mode
9068
John Criswell47fdd832003-07-14 16:52:07 +00009069# What is the maximum length of a command?
9070max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009071
John Criswell47fdd832003-07-14 16:52:07 +00009072# Does compiler simultaneously support -c and -o options?
9073compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009074
9075# Must we lock files when doing compilation ?
9076need_locks=$lt_need_locks
9077
9078# Do we need the lib prefix for modules?
9079need_lib_prefix=$need_lib_prefix
9080
9081# Do we need a version for libraries?
9082need_version=$need_version
9083
9084# Whether dlopen is supported.
9085dlopen_support=$enable_dlopen
9086
9087# Whether dlopen of programs is supported.
9088dlopen_self=$enable_dlopen_self
9089
9090# Whether dlopen of statically linked programs is supported.
9091dlopen_self_static=$enable_dlopen_self_static
9092
9093# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009094link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009095
9096# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009097no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009098
9099# Compiler flag to allow reflexive dlopens.
9100export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9101
9102# Compiler flag to generate shared objects directly from archives.
9103whole_archive_flag_spec=$lt_whole_archive_flag_spec
9104
9105# Compiler flag to generate thread-safe objects.
9106thread_safe_flag_spec=$lt_thread_safe_flag_spec
9107
9108# Library versioning type.
9109version_type=$version_type
9110
9111# Format of library name prefix.
9112libname_spec=$lt_libname_spec
9113
9114# List of archive names. First name is the real one, the rest are links.
9115# The last name is the one that the linker finds with -lNAME.
9116library_names_spec=$lt_library_names_spec
9117
9118# The coded name of the library, if different from the real name.
9119soname_spec=$lt_soname_spec
9120
9121# Commands used to build and install an old-style archive.
9122RANLIB=$lt_RANLIB
9123old_archive_cmds=$lt_old_archive_cmds
9124old_postinstall_cmds=$lt_old_postinstall_cmds
9125old_postuninstall_cmds=$lt_old_postuninstall_cmds
9126
9127# Create an old-style archive from a shared archive.
9128old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9129
9130# Create a temporary old-style archive to link instead of a shared archive.
9131old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9132
9133# Commands used to build and install a shared archive.
9134archive_cmds=$lt_archive_cmds
9135archive_expsym_cmds=$lt_archive_expsym_cmds
9136postinstall_cmds=$lt_postinstall_cmds
9137postuninstall_cmds=$lt_postuninstall_cmds
9138
John Criswell47fdd832003-07-14 16:52:07 +00009139# Commands used to build a loadable module (assumed same as above if empty)
9140module_cmds=$lt_module_cmds
9141module_expsym_cmds=$lt_module_expsym_cmds
9142
John Criswell7a73b802003-06-30 21:59:07 +00009143# Commands to strip libraries.
9144old_striplib=$lt_old_striplib
9145striplib=$lt_striplib
9146
John Criswell47fdd832003-07-14 16:52:07 +00009147# Dependencies to place before the objects being linked to create a
9148# shared library.
9149predep_objects=$lt_predep_objects
9150
9151# Dependencies to place after the objects being linked to create a
9152# shared library.
9153postdep_objects=$lt_postdep_objects
9154
9155# Dependencies to place before the objects being linked to create a
9156# shared library.
9157predeps=$lt_predeps
9158
9159# Dependencies to place after the objects being linked to create a
9160# shared library.
9161postdeps=$lt_postdeps
9162
9163# The library search path used internally by the compiler when linking
9164# a shared library.
9165compiler_lib_search_path=$lt_compiler_lib_search_path
9166
John Criswell7a73b802003-06-30 21:59:07 +00009167# Method to check whether dependent libraries are shared objects.
9168deplibs_check_method=$lt_deplibs_check_method
9169
9170# Command to use when deplibs_check_method == file_magic.
9171file_magic_cmd=$lt_file_magic_cmd
9172
9173# Flag that allows shared libraries with undefined symbols to be built.
9174allow_undefined_flag=$lt_allow_undefined_flag
9175
9176# Flag that forces no undefined symbols.
9177no_undefined_flag=$lt_no_undefined_flag
9178
9179# Commands used to finish a libtool library installation in a directory.
9180finish_cmds=$lt_finish_cmds
9181
9182# Same as above, but a single script fragment to be evaled but not shown.
9183finish_eval=$lt_finish_eval
9184
9185# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009186global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009187
9188# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009189global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009190
9191# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009192global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009193
9194# This is the shared library runtime path variable.
9195runpath_var=$runpath_var
9196
9197# This is the shared library path variable.
9198shlibpath_var=$shlibpath_var
9199
9200# Is shlibpath searched before the hard-coded library search path?
9201shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9202
9203# How to hardcode a shared library path into an executable.
9204hardcode_action=$hardcode_action
9205
9206# Whether we should hardcode library paths into libraries.
9207hardcode_into_libs=$hardcode_into_libs
9208
9209# Flag to hardcode \$libdir into a binary during linking.
9210# This must work even if \$libdir does not exist.
9211hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9212
John Criswell47fdd832003-07-14 16:52:07 +00009213# If ld is used when linking, flag to hardcode \$libdir into
9214# a binary during linking. This must work even if \$libdir does
9215# not exist.
9216hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9217
John Criswell7a73b802003-06-30 21:59:07 +00009218# Whether we need a single -rpath flag with a separated argument.
9219hardcode_libdir_separator=$lt_hardcode_libdir_separator
9220
John Criswell47fdd832003-07-14 16:52:07 +00009221# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009222# resulting binary.
9223hardcode_direct=$hardcode_direct
9224
9225# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9226# resulting binary.
9227hardcode_minus_L=$hardcode_minus_L
9228
9229# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9230# the resulting binary.
9231hardcode_shlibpath_var=$hardcode_shlibpath_var
9232
John Criswell47fdd832003-07-14 16:52:07 +00009233# Set to yes if building a shared library automatically hardcodes DIR into the library
9234# and all subsequent libraries and executables linked against it.
9235hardcode_automatic=$hardcode_automatic
9236
John Criswell7a73b802003-06-30 21:59:07 +00009237# Variables whose values should be saved in libtool wrapper scripts and
9238# restored at relink time.
9239variables_saved_for_relink="$variables_saved_for_relink"
9240
9241# Whether libtool must link a program against all its dependency libraries.
9242link_all_deplibs=$link_all_deplibs
9243
9244# Compile-time system search path for libraries
9245sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9246
9247# Run-time system search path for libraries
9248sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9249
9250# Fix the shell variable \$srcfile for the compiler.
9251fix_srcfile_path="$fix_srcfile_path"
9252
9253# Set to yes if exported symbols are required.
9254always_export_symbols=$always_export_symbols
9255
9256# The commands to list exported symbols.
9257export_symbols_cmds=$lt_export_symbols_cmds
9258
9259# The commands to extract the exported symbol list from a shared archive.
9260extract_expsyms_cmds=$lt_extract_expsyms_cmds
9261
9262# Symbols that should not be listed in the preloaded symbols.
9263exclude_expsyms=$lt_exclude_expsyms
9264
9265# Symbols that must always be exported.
9266include_expsyms=$lt_include_expsyms
9267
9268# ### END LIBTOOL CONFIG
9269
9270__EOF__
9271
John Criswell47fdd832003-07-14 16:52:07 +00009272
John Criswell7a73b802003-06-30 21:59:07 +00009273 case $host_os in
9274 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009275 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009276
9277# AIX sometimes has problems with the GCC collect2 program. For some
9278# reason, if we set the COLLECT_NAMES environment variable, the problems
9279# vanish in a puff of smoke.
9280if test "X${COLLECT_NAMES+set}" != Xset; then
9281 COLLECT_NAMES=
9282 export COLLECT_NAMES
9283fi
9284EOF
9285 ;;
9286 esac
9287
John Criswell7a73b802003-06-30 21:59:07 +00009288 # We use sed instead of cat because bash on DJGPP gets confused if
9289 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9290 # text mode, it properly converts lines to CR/LF. This bash problem
9291 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009292 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009293
John Criswell47fdd832003-07-14 16:52:07 +00009294 mv -f "$cfgfile" "$ofile" || \
9295 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009296 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009297
9298else
9299 # If there is no Makefile yet, we rely on a make rule to execute
9300 # `config.status --recheck' to rerun these tests and create the
9301 # libtool script then.
9302 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009303fi
John Criswell7a73b802003-06-30 21:59:07 +00009304
9305
John Criswell47fdd832003-07-14 16:52:07 +00009306ac_ext=c
9307ac_cpp='$CPP $CPPFLAGS'
9308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9310ac_compiler_gnu=$ac_cv_c_compiler_gnu
9311
9312CC="$lt_save_CC"
9313
9314
9315# Check whether --with-tags or --without-tags was given.
9316if test "${with_tags+set}" = set; then
9317 withval="$with_tags"
9318 tagnames="$withval"
9319fi;
9320
9321if test -f "$ltmain" && test -n "$tagnames"; then
9322 if test ! -f "${ofile}"; then
9323 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9324echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9325 fi
9326
9327 if test -z "$LTCC"; then
9328 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9329 if test -z "$LTCC"; then
9330 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9331echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9332 else
9333 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9334echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9335 fi
9336 fi
9337
9338 # Extract list of available tagged configurations in $ofile.
9339 # Note that this assumes the entire list is on one line.
9340 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9341
9342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9343 for tagname in $tagnames; do
9344 IFS="$lt_save_ifs"
9345 # Check whether tagname contains only valid characters
9346 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9347 "") ;;
9348 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9349echo "$as_me: error: invalid tag name: $tagname" >&2;}
9350 { (exit 1); exit 1; }; }
9351 ;;
9352 esac
9353
9354 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9355 then
9356 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9357echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9358 { (exit 1); exit 1; }; }
9359 fi
9360
9361 # Update the list of available tags.
9362 if test -n "$tagname"; then
9363 echo appending configuration tag \"$tagname\" to $ofile
9364
9365 case $tagname in
9366 CXX)
9367 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9368 ac_ext=cc
9369ac_cpp='$CXXCPP $CPPFLAGS'
9370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9373
9374
9375
9376
9377archive_cmds_need_lc_CXX=no
9378allow_undefined_flag_CXX=
9379always_export_symbols_CXX=no
9380archive_expsym_cmds_CXX=
9381export_dynamic_flag_spec_CXX=
9382hardcode_direct_CXX=no
9383hardcode_libdir_flag_spec_CXX=
9384hardcode_libdir_flag_spec_ld_CXX=
9385hardcode_libdir_separator_CXX=
9386hardcode_minus_L_CXX=no
9387hardcode_automatic_CXX=no
9388module_cmds_CXX=
9389module_expsym_cmds_CXX=
9390link_all_deplibs_CXX=unknown
9391old_archive_cmds_CXX=$old_archive_cmds
9392no_undefined_flag_CXX=
9393whole_archive_flag_spec_CXX=
9394enable_shared_with_static_runtimes_CXX=no
9395
9396# Dependencies to place before and after the object being linked:
9397predep_objects_CXX=
9398postdep_objects_CXX=
9399predeps_CXX=
9400postdeps_CXX=
9401compiler_lib_search_path_CXX=
9402
9403# Source file extension for C++ test sources.
9404ac_ext=cc
9405
9406# Object file extension for compiled C++ test sources.
9407objext=o
9408objext_CXX=$objext
9409
9410# Code to be used in simple compile tests
9411lt_simple_compile_test_code="int some_variable = 0;\n"
9412
9413# Code to be used in simple link tests
9414lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9415
9416# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9417
9418# If no C compiler was specified, use CC.
9419LTCC=${LTCC-"$CC"}
9420
9421# Allow CC to be a program name with arguments.
9422compiler=$CC
9423
9424
9425# Allow CC to be a program name with arguments.
9426lt_save_CC=$CC
9427lt_save_LD=$LD
9428lt_save_GCC=$GCC
9429GCC=$GXX
9430lt_save_with_gnu_ld=$with_gnu_ld
9431lt_save_path_LD=$lt_cv_path_LD
9432if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9433 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9434else
9435 unset lt_cv_prog_gnu_ld
9436fi
9437if test -n "${lt_cv_path_LDCXX+set}"; then
9438 lt_cv_path_LD=$lt_cv_path_LDCXX
9439else
9440 unset lt_cv_path_LD
9441fi
9442test -z "${LDCXX+set}" || LD=$LDCXX
9443CC=${CXX-"c++"}
9444compiler=$CC
9445compiler_CXX=$CC
9446cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9447
9448# We don't want -fno-exception wen compiling C++ code, so set the
9449# no_builtin_flag separately
9450if test "$GXX" = yes; then
9451 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9452else
9453 lt_prog_compiler_no_builtin_flag_CXX=
9454fi
9455
9456if test "$GXX" = yes; then
9457 # Set up default GNU C++ configuration
9458
9459
9460# Check whether --with-gnu-ld or --without-gnu-ld was given.
9461if test "${with_gnu_ld+set}" = set; then
9462 withval="$with_gnu_ld"
9463 test "$withval" = no || with_gnu_ld=yes
9464else
9465 with_gnu_ld=no
9466fi;
9467ac_prog=ld
9468if test "$GCC" = yes; then
9469 # Check if gcc -print-prog-name=ld gives a path.
9470 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9471echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9472 case $host in
9473 *-*-mingw*)
9474 # gcc leaves a trailing carriage return which upsets mingw
9475 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9476 *)
9477 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9478 esac
9479 case $ac_prog in
9480 # Accept absolute paths.
9481 [\\/]* | ?:[\\/]*)
9482 re_direlt='/[^/][^/]*/\.\./'
9483 # Canonicalize the path of ld
9484 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9485 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9486 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9487 done
9488 test -z "$LD" && LD="$ac_prog"
9489 ;;
9490 "")
9491 # If it fails, then pretend we aren't using GCC.
9492 ac_prog=ld
9493 ;;
9494 *)
9495 # If it is relative, then search for the first ld in PATH.
9496 with_gnu_ld=unknown
9497 ;;
9498 esac
9499elif test "$with_gnu_ld" = yes; then
9500 echo "$as_me:$LINENO: checking for GNU ld" >&5
9501echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9502else
9503 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9504echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9505fi
9506if test "${lt_cv_path_LD+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508else
9509 if test -z "$LD"; then
9510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9511 for ac_dir in $PATH; do
9512 IFS="$lt_save_ifs"
9513 test -z "$ac_dir" && ac_dir=.
9514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9515 lt_cv_path_LD="$ac_dir/$ac_prog"
9516 # Check to see if the program is GNU ld. I'd rather use --version,
9517 # but apparently some GNU ld's only accept -v.
9518 # Break only if it was the GNU/non-GNU ld that we prefer.
9519 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9520 *GNU* | *'with BFD'*)
9521 test "$with_gnu_ld" != no && break
9522 ;;
9523 *)
9524 test "$with_gnu_ld" != yes && break
9525 ;;
9526 esac
9527 fi
9528 done
9529 IFS="$lt_save_ifs"
9530else
9531 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9532fi
9533fi
9534
9535LD="$lt_cv_path_LD"
9536if test -n "$LD"; then
9537 echo "$as_me:$LINENO: result: $LD" >&5
9538echo "${ECHO_T}$LD" >&6
9539else
9540 echo "$as_me:$LINENO: result: no" >&5
9541echo "${ECHO_T}no" >&6
9542fi
9543test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9544echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9545 { (exit 1); exit 1; }; }
9546echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9547echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9548if test "${lt_cv_prog_gnu_ld+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550else
9551 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9552case `"$LD" -v 2>&1 </dev/null` in
9553*GNU* | *'with BFD'*)
9554 lt_cv_prog_gnu_ld=yes
9555 ;;
9556*)
9557 lt_cv_prog_gnu_ld=no
9558 ;;
9559esac
9560fi
9561echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9562echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9563with_gnu_ld=$lt_cv_prog_gnu_ld
9564
9565
9566
9567 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9568 # archiving commands below assume that GNU ld is being used.
9569 if test "$with_gnu_ld" = yes; then
9570 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9571 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'
9572
9573 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9574 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9575
9576 # If archive_cmds runs LD, not CC, wlarc should be empty
9577 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9578 # investigate it a little bit more. (MM)
9579 wlarc='${wl}'
9580
9581 # ancient GNU ld didn't support --whole-archive et. al.
9582 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9583 grep 'no-whole-archive' > /dev/null; then
9584 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9585 else
9586 whole_archive_flag_spec_CXX=
9587 fi
9588 else
9589 with_gnu_ld=no
9590 wlarc=
9591
9592 # A generic and very simple default shared library creation
9593 # command for GNU C++ for the case where it uses the native
9594 # linker, instead of GNU ld. If possible, this setting should
9595 # overridden to take advantage of the native linker features on
9596 # the platform it is being used on.
9597 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9598 fi
9599
9600 # Commands to make compiler produce verbose output that lists
9601 # what "hidden" libraries, object files and flags are used when
9602 # linking a shared library.
9603 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9604
9605else
9606 GXX=no
9607 with_gnu_ld=no
9608 wlarc=
9609fi
9610
9611# PORTME: fill in a description of your system's C++ link characteristics
9612echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9613echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9614ld_shlibs_CXX=yes
9615case $host_os in
9616 aix3*)
9617 # FIXME: insert proper C++ library support
9618 ld_shlibs_CXX=no
9619 ;;
9620 aix4* | aix5*)
9621 if test "$host_cpu" = ia64; then
9622 # On IA64, the linker does run time linking by default, so we don't
9623 # have to do anything special.
9624 aix_use_runtimelinking=no
9625 exp_sym_flag='-Bexport'
9626 no_entry_flag=""
9627 else
9628 aix_use_runtimelinking=no
9629
9630 # Test if we are trying to use run time linking or normal
9631 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9632 # need to do runtime linking.
9633 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9634 for ld_flag in $LDFLAGS; do
9635 case $ld_flag in
9636 *-brtl*)
9637 aix_use_runtimelinking=yes
9638 break
9639 ;;
9640 esac
9641 done
9642 esac
9643
9644 exp_sym_flag='-bexport'
9645 no_entry_flag='-bnoentry'
9646 fi
9647
9648 # When large executables or shared objects are built, AIX ld can
9649 # have problems creating the table of contents. If linking a library
9650 # or program results in "error TOC overflow" add -mminimal-toc to
9651 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9652 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9653
9654 archive_cmds_CXX=''
9655 hardcode_direct_CXX=yes
9656 hardcode_libdir_separator_CXX=':'
9657 link_all_deplibs_CXX=yes
9658
9659 if test "$GXX" = yes; then
9660 case $host_os in aix4.012|aix4.012.*)
9661 # We only want to do this on AIX 4.2 and lower, the check
9662 # below for broken collect2 doesn't work under 4.3+
9663 collect2name=`${CC} -print-prog-name=collect2`
9664 if test -f "$collect2name" && \
9665 strings "$collect2name" | grep resolve_lib_name >/dev/null
9666 then
9667 # We have reworked collect2
9668 hardcode_direct_CXX=yes
9669 else
9670 # We have old collect2
9671 hardcode_direct_CXX=unsupported
9672 # It fails to find uninstalled libraries when the uninstalled
9673 # path is not listed in the libpath. Setting hardcode_minus_L
9674 # to unsupported forces relinking
9675 hardcode_minus_L_CXX=yes
9676 hardcode_libdir_flag_spec_CXX='-L$libdir'
9677 hardcode_libdir_separator_CXX=
9678 fi
9679 esac
9680 shared_flag='-shared'
9681 else
9682 # not using gcc
9683 if test "$host_cpu" = ia64; then
9684 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9685 # chokes on -Wl,-G. The following line is correct:
9686 shared_flag='-G'
9687 else
9688 if test "$aix_use_runtimelinking" = yes; then
9689 shared_flag='${wl}-G'
9690 else
9691 shared_flag='${wl}-bM:SRE'
9692 fi
9693 fi
9694 fi
9695
9696 # It seems that -bexpall does not export symbols beginning with
9697 # underscore (_), so it is better to generate a list of symbols to export.
9698 always_export_symbols_CXX=yes
9699 if test "$aix_use_runtimelinking" = yes; then
9700 # Warning - without using the other runtime loading flags (-brtl),
9701 # -berok will link without error, but may produce a broken library.
9702 allow_undefined_flag_CXX='-berok'
9703 # Determine the default libpath from the value encoded in an empty executable.
9704 cat >conftest.$ac_ext <<_ACEOF
9705#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009706/* confdefs.h. */
9707_ACEOF
9708cat confdefs.h >>conftest.$ac_ext
9709cat >>conftest.$ac_ext <<_ACEOF
9710/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009711
John Criswell47fdd832003-07-14 16:52:07 +00009712int
9713main ()
9714{
9715
9716 ;
9717 return 0;
9718}
9719_ACEOF
9720rm -f conftest.$ac_objext conftest$ac_exeext
9721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9722 (eval $ac_link) 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 (eval $ac_try) 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732
9733aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9734}'`
9735# Check for a 64-bit object if we didn't find anything.
9736if 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; }
9737}'`; fi
9738else
9739 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009740sed 's/^/| /' conftest.$ac_ext >&5
9741
John Criswell47fdd832003-07-14 16:52:07 +00009742fi
9743rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9744if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9745
9746 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9747
9748 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"
9749 else
9750 if test "$host_cpu" = ia64; then
9751 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9752 allow_undefined_flag_CXX="-z nodefs"
9753 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"
9754 else
9755 # Determine the default libpath from the value encoded in an empty executable.
9756 cat >conftest.$ac_ext <<_ACEOF
9757#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009758/* confdefs.h. */
9759_ACEOF
9760cat confdefs.h >>conftest.$ac_ext
9761cat >>conftest.$ac_ext <<_ACEOF
9762/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009763
John Criswell47fdd832003-07-14 16:52:07 +00009764int
9765main ()
9766{
9767
9768 ;
9769 return 0;
9770}
9771_ACEOF
9772rm -f conftest.$ac_objext conftest$ac_exeext
9773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774 (eval $ac_link) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784
9785aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9786}'`
9787# Check for a 64-bit object if we didn't find anything.
9788if 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; }
9789}'`; fi
9790else
9791 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009792sed 's/^/| /' conftest.$ac_ext >&5
9793
John Criswell47fdd832003-07-14 16:52:07 +00009794fi
9795rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9796if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9797
9798 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9799 # Warning - without using the other run time loading flags,
9800 # -berok will link without error, but may produce a broken library.
9801 no_undefined_flag_CXX=' ${wl}-bernotok'
9802 allow_undefined_flag_CXX=' ${wl}-berok'
9803 # -bexpall does not export symbols beginning with underscore (_)
9804 always_export_symbols_CXX=yes
9805 # Exported symbols can be pulled into shared objects from archives
9806 whole_archive_flag_spec_CXX=' '
9807 archive_cmds_need_lc_CXX=yes
9808 # This is similar to how AIX traditionally builds it's shared libraries.
9809 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'
9810 fi
9811 fi
9812 ;;
9813 chorus*)
9814 case $cc_basename in
9815 *)
9816 # FIXME: insert proper C++ library support
9817 ld_shlibs_CXX=no
9818 ;;
9819 esac
9820 ;;
9821
9822 cygwin* | mingw* | pw32*)
9823 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9824 # as there is no search path for DLLs.
9825 hardcode_libdir_flag_spec_CXX='-L$libdir'
9826 allow_undefined_flag_CXX=unsupported
9827 always_export_symbols_CXX=no
9828 enable_shared_with_static_runtimes_CXX=yes
9829
9830 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9831 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'
9832 # If the export-symbols file already is a .def file (1st line
9833 # is EXPORTS), use it as is; otherwise, prepend...
9834 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9835 cp $export_symbols $output_objdir/$soname.def;
9836 else
9837 echo EXPORTS > $output_objdir/$soname.def;
9838 cat $export_symbols >> $output_objdir/$soname.def;
9839 fi~
9840 $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'
9841 else
9842 ld_shlibs_CXX=no
9843 fi
9844 ;;
9845
9846 darwin* | rhapsody*)
9847 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9848 archive_cmds_need_lc_CXX=no
9849 case "$host_os" in
9850 rhapsody* | darwin1.[012])
9851 allow_undefined_flag_CXX='-undefined suppress'
9852 ;;
9853 *) # Darwin 1.3 on
9854 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9855 ;;
9856 esac
9857 lt_int_apple_cc_single_mod=no
9858 output_verbose_link_cmd='echo'
9859 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9860 lt_int_apple_cc_single_mod=yes
9861 fi
9862 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9863 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9864 else
9865 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'
9866 fi
9867 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9868
9869 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9870 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9871 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}'
9872 else
9873 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}'
9874 fi
9875 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}'
9876 hardcode_direct_CXX=no
9877 hardcode_automatic_CXX=yes
9878 hardcode_shlibpath_var_CXX=unsupported
9879 whole_archive_flag_spec_CXX='-all_load $convenience'
9880 link_all_deplibs_CXX=yes
9881 fi
9882 ;;
9883
9884 dgux*)
9885 case $cc_basename in
9886 ec++)
9887 # FIXME: insert proper C++ library support
9888 ld_shlibs_CXX=no
9889 ;;
9890 ghcx)
9891 # Green Hills C++ Compiler
9892 # FIXME: insert proper C++ library support
9893 ld_shlibs_CXX=no
9894 ;;
9895 *)
9896 # FIXME: insert proper C++ library support
9897 ld_shlibs_CXX=no
9898 ;;
9899 esac
9900 ;;
9901 freebsd12*)
9902 # C++ shared libraries reported to be fairly broken before switch to ELF
9903 ld_shlibs_CXX=no
9904 ;;
9905 freebsd-elf*)
9906 archive_cmds_need_lc_CXX=no
9907 ;;
9908 freebsd*)
9909 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9910 # conventions
9911 ld_shlibs_CXX=yes
9912 ;;
9913 gnu*)
9914 ;;
9915 hpux9*)
9916 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9917 hardcode_libdir_separator_CXX=:
9918 export_dynamic_flag_spec_CXX='${wl}-E'
9919 hardcode_direct_CXX=yes
9920 hardcode_minus_L_CXX=yes # Not in the search PATH,
9921 # but as the default
9922 # location of the library.
9923
9924 case $cc_basename in
9925 CC)
9926 # FIXME: insert proper C++ library support
9927 ld_shlibs_CXX=no
9928 ;;
9929 aCC)
9930 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'
9931 # Commands to make compiler produce verbose output that lists
9932 # what "hidden" libraries, object files and flags are used when
9933 # linking a shared library.
9934 #
9935 # There doesn't appear to be a way to prevent this compiler from
9936 # explicitly linking system object files so we need to strip them
9937 # from the output so that they don't get included in the library
9938 # dependencies.
9939 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'
9940 ;;
9941 *)
9942 if test "$GXX" = yes; then
9943 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'
9944 else
9945 # FIXME: insert proper C++ library support
9946 ld_shlibs_CXX=no
9947 fi
9948 ;;
9949 esac
9950 ;;
9951 hpux10*|hpux11*)
9952 if test $with_gnu_ld = no; then
9953 case "$host_cpu" in
9954 hppa*64*)
9955 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9956 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9957 hardcode_libdir_separator_CXX=:
9958 ;;
9959 ia64*)
9960 hardcode_libdir_flag_spec_CXX='-L$libdir'
9961 ;;
9962 *)
9963 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9964 hardcode_libdir_separator_CXX=:
9965 export_dynamic_flag_spec_CXX='${wl}-E'
9966 ;;
9967 esac
9968 fi
9969 case "$host_cpu" in
9970 hppa*64*)
9971 hardcode_direct_CXX=no
9972 hardcode_shlibpath_var_CXX=no
9973 ;;
9974 ia64*)
9975 hardcode_direct_CXX=no
9976 hardcode_shlibpath_var_CXX=no
9977 hardcode_minus_L_CXX=yes # Not in the search PATH,
9978 # but as the default
9979 # location of the library.
9980 ;;
9981 *)
9982 hardcode_direct_CXX=yes
9983 hardcode_minus_L_CXX=yes # Not in the search PATH,
9984 # but as the default
9985 # location of the library.
9986 ;;
9987 esac
9988
9989 case $cc_basename in
9990 CC)
9991 # FIXME: insert proper C++ library support
9992 ld_shlibs_CXX=no
9993 ;;
9994 aCC)
9995 case "$host_cpu" in
9996 hppa*64*|ia64*)
9997 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9998 ;;
9999 *)
10000 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10001 ;;
10002 esac
10003 # Commands to make compiler produce verbose output that lists
10004 # what "hidden" libraries, object files and flags are used when
10005 # linking a shared library.
10006 #
10007 # There doesn't appear to be a way to prevent this compiler from
10008 # explicitly linking system object files so we need to strip them
10009 # from the output so that they don't get included in the library
10010 # dependencies.
10011 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'
10012 ;;
10013 *)
10014 if test "$GXX" = yes; then
10015 if test $with_gnu_ld = no; then
10016 case "$host_cpu" in
10017 ia64*|hppa*64*)
10018 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10019 ;;
10020 *)
10021 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'
10022 ;;
10023 esac
10024 fi
10025 else
10026 # FIXME: insert proper C++ library support
10027 ld_shlibs_CXX=no
10028 fi
10029 ;;
10030 esac
10031 ;;
10032 irix5* | irix6*)
10033 case $cc_basename in
10034 CC)
10035 # SGI C++
10036 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'
10037
10038 # Archives containing C++ object files must be created using
10039 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10040 # necessary to make sure instantiated templates are included
10041 # in the archive.
10042 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10043 ;;
10044 *)
10045 if test "$GXX" = yes; then
10046 if test "$with_gnu_ld" = no; then
10047 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'
10048 else
10049 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'
10050 fi
10051 fi
10052 link_all_deplibs_CXX=yes
10053 ;;
10054 esac
10055 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10056 hardcode_libdir_separator_CXX=:
10057 ;;
10058 linux*)
10059 case $cc_basename in
10060 KCC)
10061 # Kuck and Associates, Inc. (KAI) C++ Compiler
10062
10063 # KCC will only create a shared library if the output file
10064 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10065 # to its proper name (with version) after linking.
10066 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'
10067 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'
10068 # Commands to make compiler produce verbose output that lists
10069 # what "hidden" libraries, object files and flags are used when
10070 # linking a shared library.
10071 #
10072 # There doesn't appear to be a way to prevent this compiler from
10073 # explicitly linking system object files so we need to strip them
10074 # from the output so that they don't get included in the library
10075 # dependencies.
10076 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'
10077
10078 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10079 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10080
10081 # Archives containing C++ object files must be created using
10082 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10083 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10084 ;;
10085 icpc)
10086 # Intel C++
10087 with_gnu_ld=yes
10088 archive_cmds_need_lc_CXX=no
10089 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10090 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10091 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10092 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10093 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10094 ;;
10095 cxx)
10096 # Compaq C++
10097 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10098 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'
10099
10100 runpath_var=LD_RUN_PATH
10101 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10102 hardcode_libdir_separator_CXX=:
10103
10104 # Commands to make compiler produce verbose output that lists
10105 # what "hidden" libraries, object files and flags are used when
10106 # linking a shared library.
10107 #
10108 # There doesn't appear to be a way to prevent this compiler from
10109 # explicitly linking system object files so we need to strip them
10110 # from the output so that they don't get included in the library
10111 # dependencies.
10112 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'
10113 ;;
10114 esac
10115 ;;
10116 lynxos*)
10117 # FIXME: insert proper C++ library support
10118 ld_shlibs_CXX=no
10119 ;;
10120 m88k*)
10121 # FIXME: insert proper C++ library support
10122 ld_shlibs_CXX=no
10123 ;;
10124 mvs*)
10125 case $cc_basename in
10126 cxx)
10127 # FIXME: insert proper C++ library support
10128 ld_shlibs_CXX=no
10129 ;;
10130 *)
10131 # FIXME: insert proper C++ library support
10132 ld_shlibs_CXX=no
10133 ;;
10134 esac
10135 ;;
10136 netbsd*)
10137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10138 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10139 wlarc=
10140 hardcode_libdir_flag_spec_CXX='-R$libdir'
10141 hardcode_direct_CXX=yes
10142 hardcode_shlibpath_var_CXX=no
10143 fi
10144 # Workaround some broken pre-1.5 toolchains
10145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10146 ;;
10147 osf3*)
10148 case $cc_basename in
10149 KCC)
10150 # Kuck and Associates, Inc. (KAI) C++ Compiler
10151
10152 # KCC will only create a shared library if the output file
10153 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10154 # to its proper name (with version) after linking.
10155 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'
10156
10157 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10158 hardcode_libdir_separator_CXX=:
10159
10160 # Archives containing C++ object files must be created using
10161 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10162 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10163
10164 ;;
10165 RCC)
10166 # Rational C++ 2.4.1
10167 # FIXME: insert proper C++ library support
10168 ld_shlibs_CXX=no
10169 ;;
10170 cxx)
10171 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10172 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'
10173
10174 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10175 hardcode_libdir_separator_CXX=:
10176
10177 # Commands to make compiler produce verbose output that lists
10178 # what "hidden" libraries, object files and flags are used when
10179 # linking a shared library.
10180 #
10181 # There doesn't appear to be a way to prevent this compiler from
10182 # explicitly linking system object files so we need to strip them
10183 # from the output so that they don't get included in the library
10184 # dependencies.
10185 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'
10186 ;;
10187 *)
10188 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10189 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10190 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'
10191
10192 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10193 hardcode_libdir_separator_CXX=:
10194
10195 # Commands to make compiler produce verbose output that lists
10196 # what "hidden" libraries, object files and flags are used when
10197 # linking a shared library.
10198 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10199
10200 else
10201 # FIXME: insert proper C++ library support
10202 ld_shlibs_CXX=no
10203 fi
10204 ;;
10205 esac
10206 ;;
10207 osf4* | osf5*)
10208 case $cc_basename in
10209 KCC)
10210 # Kuck and Associates, Inc. (KAI) C++ Compiler
10211
10212 # KCC will only create a shared library if the output file
10213 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10214 # to its proper name (with version) after linking.
10215 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'
10216
10217 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10218 hardcode_libdir_separator_CXX=:
10219
10220 # Archives containing C++ object files must be created using
10221 # the KAI C++ compiler.
10222 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10223 ;;
10224 RCC)
10225 # Rational C++ 2.4.1
10226 # FIXME: insert proper C++ library support
10227 ld_shlibs_CXX=no
10228 ;;
10229 cxx)
10230 allow_undefined_flag_CXX=' -expect_unresolved \*'
10231 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'
10232 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10233 echo "-hidden">> $lib.exp~
10234 $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~
10235 $rm $lib.exp'
10236
10237 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10238 hardcode_libdir_separator_CXX=:
10239
10240 # Commands to make compiler produce verbose output that lists
10241 # what "hidden" libraries, object files and flags are used when
10242 # linking a shared library.
10243 #
10244 # There doesn't appear to be a way to prevent this compiler from
10245 # explicitly linking system object files so we need to strip them
10246 # from the output so that they don't get included in the library
10247 # dependencies.
10248 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'
10249 ;;
10250 *)
10251 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10252 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10253 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'
10254
10255 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10256 hardcode_libdir_separator_CXX=:
10257
10258 # Commands to make compiler produce verbose output that lists
10259 # what "hidden" libraries, object files and flags are used when
10260 # linking a shared library.
10261 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10262
10263 else
10264 # FIXME: insert proper C++ library support
10265 ld_shlibs_CXX=no
10266 fi
10267 ;;
10268 esac
10269 ;;
10270 psos*)
10271 # FIXME: insert proper C++ library support
10272 ld_shlibs_CXX=no
10273 ;;
10274 sco*)
10275 archive_cmds_need_lc_CXX=no
10276 case $cc_basename in
10277 CC)
10278 # FIXME: insert proper C++ library support
10279 ld_shlibs_CXX=no
10280 ;;
10281 *)
10282 # FIXME: insert proper C++ library support
10283 ld_shlibs_CXX=no
10284 ;;
10285 esac
10286 ;;
10287 sunos4*)
10288 case $cc_basename in
10289 CC)
10290 # Sun C++ 4.x
10291 # FIXME: insert proper C++ library support
10292 ld_shlibs_CXX=no
10293 ;;
10294 lcc)
10295 # Lucid
10296 # FIXME: insert proper C++ library support
10297 ld_shlibs_CXX=no
10298 ;;
10299 *)
10300 # FIXME: insert proper C++ library support
10301 ld_shlibs_CXX=no
10302 ;;
10303 esac
10304 ;;
10305 solaris*)
10306 case $cc_basename in
10307 CC)
10308 # Sun C++ 4.2, 5.x and Centerline C++
10309 no_undefined_flag_CXX=' -zdefs'
10310 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10311 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10312 $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'
10313
10314 hardcode_libdir_flag_spec_CXX='-R$libdir'
10315 hardcode_shlibpath_var_CXX=no
10316 case $host_os in
10317 solaris2.0-5 | solaris2.0-5.*) ;;
10318 *)
10319 # The C++ compiler is used as linker so we must use $wl
10320 # flag to pass the commands to the underlying system
10321 # linker.
10322 # Supported since Solaris 2.6 (maybe 2.5.1?)
10323 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10324 ;;
10325 esac
10326 link_all_deplibs_CXX=yes
10327
10328 # Commands to make compiler produce verbose output that lists
10329 # what "hidden" libraries, object files and flags are used when
10330 # linking a shared library.
10331 #
10332 # There doesn't appear to be a way to prevent this compiler from
10333 # explicitly linking system object files so we need to strip them
10334 # from the output so that they don't get included in the library
10335 # dependencies.
10336 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'
10337
10338 # Archives containing C++ object files must be created using
10339 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10340 # necessary to make sure instantiated templates are included
10341 # in the archive.
10342 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10343 ;;
10344 gcx)
10345 # Green Hills C++ Compiler
10346 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10347
10348 # The C++ compiler must be used to create the archive.
10349 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10350 ;;
10351 *)
10352 # GNU C++ compiler with Solaris linker
10353 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10354 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10355 if $CC --version | grep -v '^2\.7' > /dev/null; then
10356 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10357 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10358 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10359
10360 # Commands to make compiler produce verbose output that lists
10361 # what "hidden" libraries, object files and flags are used when
10362 # linking a shared library.
10363 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10364 else
10365 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10366 # platform.
10367 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10368 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10369 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10370
10371 # Commands to make compiler produce verbose output that lists
10372 # what "hidden" libraries, object files and flags are used when
10373 # linking a shared library.
10374 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10375 fi
10376
10377 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10378 fi
10379 ;;
10380 esac
10381 ;;
10382 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10383 archive_cmds_need_lc_CXX=no
10384 ;;
10385 tandem*)
10386 case $cc_basename in
10387 NCC)
10388 # NonStop-UX NCC 3.20
10389 # FIXME: insert proper C++ library support
10390 ld_shlibs_CXX=no
10391 ;;
10392 *)
10393 # FIXME: insert proper C++ library support
10394 ld_shlibs_CXX=no
10395 ;;
10396 esac
10397 ;;
10398 vxworks*)
10399 # FIXME: insert proper C++ library support
10400 ld_shlibs_CXX=no
10401 ;;
10402 *)
10403 # FIXME: insert proper C++ library support
10404 ld_shlibs_CXX=no
10405 ;;
10406esac
10407echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10408echo "${ECHO_T}$ld_shlibs_CXX" >&6
10409test "$ld_shlibs_CXX" = no && can_build_shared=no
10410
10411GCC_CXX="$GXX"
10412LD_CXX="$LD"
10413
10414## CAVEAT EMPTOR:
10415## There is no encapsulation within the following macros, do not change
10416## the running order or otherwise move them around unless you know exactly
10417## what you are doing...
10418
10419cat > conftest.$ac_ext <<EOF
10420class Foo
10421{
10422public:
10423 Foo (void) { a = 0; }
10424private:
10425 int a;
10426};
10427EOF
10428
10429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10430 (eval $ac_compile) 2>&5
10431 ac_status=$?
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; then
10434 # Parse the compiler output and extract the necessary
10435 # objects, libraries and library flags.
10436
10437 # Sentinel used to keep track of whether or not we are before
10438 # the conftest object file.
10439 pre_test_object_deps_done=no
10440
10441 # The `*' in the case matches for architectures that use `case' in
10442 # $output_verbose_cmd can trigger glob expansion during the loop
10443 # eval without this substitution.
10444 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10445
10446 for p in `eval $output_verbose_link_cmd`; do
10447 case $p in
10448
10449 -L* | -R* | -l*)
10450 # Some compilers place space between "-{L,R}" and the path.
10451 # Remove the space.
10452 if test $p = "-L" \
10453 || test $p = "-R"; then
10454 prev=$p
10455 continue
10456 else
10457 prev=
10458 fi
10459
10460 if test "$pre_test_object_deps_done" = no; then
10461 case $p in
10462 -L* | -R*)
10463 # Internal compiler library paths should come after those
10464 # provided the user. The postdeps already come after the
10465 # user supplied libs so there is no need to process them.
10466 if test -z "$compiler_lib_search_path_CXX"; then
10467 compiler_lib_search_path_CXX="${prev}${p}"
10468 else
10469 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10470 fi
10471 ;;
10472 # The "-l" case would never come before the object being
10473 # linked, so don't bother handling this case.
10474 esac
10475 else
10476 if test -z "$postdeps_CXX"; then
10477 postdeps_CXX="${prev}${p}"
10478 else
10479 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10480 fi
10481 fi
10482 ;;
10483
10484 *.$objext)
10485 # This assumes that the test object file only shows up
10486 # once in the compiler output.
10487 if test "$p" = "conftest.$objext"; then
10488 pre_test_object_deps_done=yes
10489 continue
10490 fi
10491
10492 if test "$pre_test_object_deps_done" = no; then
10493 if test -z "$predep_objects_CXX"; then
10494 predep_objects_CXX="$p"
10495 else
10496 predep_objects_CXX="$predep_objects_CXX $p"
10497 fi
10498 else
10499 if test -z "$postdep_objects_CXX"; then
10500 postdep_objects_CXX="$p"
10501 else
10502 postdep_objects_CXX="$postdep_objects_CXX $p"
10503 fi
10504 fi
10505 ;;
10506
10507 *) ;; # Ignore the rest.
10508
10509 esac
10510 done
10511
10512 # Clean up.
10513 rm -f a.out a.exe
10514else
10515 echo "libtool.m4: error: problem compiling CXX test program"
10516fi
10517
10518$rm -f confest.$objext
10519
10520case " $postdeps_CXX " in
10521*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10522esac
10523
10524lt_prog_compiler_wl_CXX=
10525lt_prog_compiler_pic_CXX=
10526lt_prog_compiler_static_CXX=
10527
10528echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10529echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10530
10531 # C++ specific cases for pic, static, wl, etc.
10532 if test "$GXX" = yes; then
10533 lt_prog_compiler_wl_CXX='-Wl,'
10534 lt_prog_compiler_static_CXX='-static'
10535
10536 case $host_os in
10537 aix*)
10538 # All AIX code is PIC.
10539 if test "$host_cpu" = ia64; then
10540 # AIX 5 now supports IA64 processor
10541 lt_prog_compiler_static_CXX='-Bstatic'
10542 fi
10543 ;;
10544 amigaos*)
10545 # FIXME: we need at least 68020 code to build shared libraries, but
10546 # adding the `-m68020' flag to GCC prevents building anything better,
10547 # like `-m68040'.
10548 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10549 ;;
10550 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10551 # PIC is the default for these OSes.
10552 ;;
10553 mingw* | os2* | pw32*)
10554 # This hack is so that the source file can tell whether it is being
10555 # built for inclusion in a dll (and should export symbols for example).
10556 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10557 ;;
10558 darwin* | rhapsody*)
10559 # PIC is the default on this platform
10560 # Common symbols not allowed in MH_DYLIB files
10561 lt_prog_compiler_pic_CXX='-fno-common'
10562 ;;
10563 *djgpp*)
10564 # DJGPP does not support shared libraries at all
10565 lt_prog_compiler_pic_CXX=
10566 ;;
10567 sysv4*MP*)
10568 if test -d /usr/nec; then
10569 lt_prog_compiler_pic_CXX=-Kconform_pic
10570 fi
10571 ;;
10572 hpux*)
10573 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10574 # not for PA HP-UX.
10575 case "$host_cpu" in
10576 hppa*64*|ia64*)
10577 ;;
10578 *)
10579 lt_prog_compiler_pic_CXX='-fPIC'
10580 ;;
10581 esac
10582 ;;
10583 *)
10584 lt_prog_compiler_pic_CXX='-fPIC'
10585 ;;
10586 esac
10587 else
10588 case $host_os in
10589 aix4* | aix5*)
10590 # All AIX code is PIC.
10591 if test "$host_cpu" = ia64; then
10592 # AIX 5 now supports IA64 processor
10593 lt_prog_compiler_static_CXX='-Bstatic'
10594 else
10595 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10596 fi
10597 ;;
10598 chorus*)
10599 case $cc_basename in
10600 cxch68)
10601 # Green Hills C++ Compiler
10602 # _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"
10603 ;;
10604 esac
10605 ;;
10606 dgux*)
10607 case $cc_basename in
10608 ec++)
10609 lt_prog_compiler_pic_CXX='-KPIC'
10610 ;;
10611 ghcx)
10612 # Green Hills C++ Compiler
10613 lt_prog_compiler_pic_CXX='-pic'
10614 ;;
10615 *)
10616 ;;
10617 esac
10618 ;;
10619 freebsd*)
10620 # FreeBSD uses GNU C++
10621 ;;
10622 hpux9* | hpux10* | hpux11*)
10623 case $cc_basename in
10624 CC)
10625 lt_prog_compiler_wl_CXX='-Wl,'
10626 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10627 if test "$host_cpu" != ia64; then
10628 lt_prog_compiler_pic_CXX='+Z'
10629 fi
10630 ;;
10631 aCC)
10632 lt_prog_compiler_wl_CXX='-Wl,'
10633 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10634 case "$host_cpu" in
10635 hppa*64*|ia64*)
10636 # +Z the default
10637 ;;
10638 *)
10639 lt_prog_compiler_pic_CXX='+Z'
10640 ;;
10641 esac
10642 ;;
10643 *)
10644 ;;
10645 esac
10646 ;;
10647 irix5* | irix6* | nonstopux*)
10648 case $cc_basename in
10649 CC)
10650 lt_prog_compiler_wl_CXX='-Wl,'
10651 lt_prog_compiler_static_CXX='-non_shared'
10652 # CC pic flag -KPIC is the default.
10653 ;;
10654 *)
10655 ;;
10656 esac
10657 ;;
10658 linux*)
10659 case $cc_basename in
10660 KCC)
10661 # KAI C++ Compiler
10662 lt_prog_compiler_wl_CXX='--backend -Wl,'
10663 lt_prog_compiler_pic_CXX='-fPIC'
10664 ;;
10665 icpc)
10666 # Intel C++
10667 lt_prog_compiler_wl_CXX='-Wl,'
10668 lt_prog_compiler_pic_CXX='-KPIC'
10669 lt_prog_compiler_static_CXX='-static'
10670 ;;
10671 cxx)
10672 # Compaq C++
10673 # Make sure the PIC flag is empty. It appears that all Alpha
10674 # Linux and Compaq Tru64 Unix objects are PIC.
10675 lt_prog_compiler_pic_CXX=
10676 lt_prog_compiler_static_CXX='-non_shared'
10677 ;;
10678 *)
10679 ;;
10680 esac
10681 ;;
10682 lynxos*)
10683 ;;
10684 m88k*)
10685 ;;
10686 mvs*)
10687 case $cc_basename in
10688 cxx)
10689 lt_prog_compiler_pic_CXX='-W c,exportall'
10690 ;;
10691 *)
10692 ;;
10693 esac
10694 ;;
10695 netbsd*)
10696 ;;
10697 osf3* | osf4* | osf5*)
10698 case $cc_basename in
10699 KCC)
10700 lt_prog_compiler_wl_CXX='--backend -Wl,'
10701 ;;
10702 RCC)
10703 # Rational C++ 2.4.1
10704 lt_prog_compiler_pic_CXX='-pic'
10705 ;;
10706 cxx)
10707 # Digital/Compaq C++
10708 lt_prog_compiler_wl_CXX='-Wl,'
10709 # Make sure the PIC flag is empty. It appears that all Alpha
10710 # Linux and Compaq Tru64 Unix objects are PIC.
10711 lt_prog_compiler_pic_CXX=
10712 lt_prog_compiler_static_CXX='-non_shared'
10713 ;;
10714 *)
10715 ;;
10716 esac
10717 ;;
10718 psos*)
10719 ;;
10720 sco*)
10721 case $cc_basename in
10722 CC)
10723 lt_prog_compiler_pic_CXX='-fPIC'
10724 ;;
10725 *)
10726 ;;
10727 esac
10728 ;;
10729 solaris*)
10730 case $cc_basename in
10731 CC)
10732 # Sun C++ 4.2, 5.x and Centerline C++
10733 lt_prog_compiler_pic_CXX='-KPIC'
10734 lt_prog_compiler_static_CXX='-Bstatic'
10735 lt_prog_compiler_wl_CXX='-Qoption ld '
10736 ;;
10737 gcx)
10738 # Green Hills C++ Compiler
10739 lt_prog_compiler_pic_CXX='-PIC'
10740 ;;
10741 *)
10742 ;;
10743 esac
10744 ;;
10745 sunos4*)
10746 case $cc_basename in
10747 CC)
10748 # Sun C++ 4.x
10749 lt_prog_compiler_pic_CXX='-pic'
10750 lt_prog_compiler_static_CXX='-Bstatic'
10751 ;;
10752 lcc)
10753 # Lucid
10754 lt_prog_compiler_pic_CXX='-pic'
10755 ;;
10756 *)
10757 ;;
10758 esac
10759 ;;
10760 tandem*)
10761 case $cc_basename in
10762 NCC)
10763 # NonStop-UX NCC 3.20
10764 lt_prog_compiler_pic_CXX='-KPIC'
10765 ;;
10766 *)
10767 ;;
10768 esac
10769 ;;
10770 unixware*)
10771 ;;
10772 vxworks*)
10773 ;;
10774 *)
10775 lt_prog_compiler_can_build_shared_CXX=no
10776 ;;
10777 esac
10778 fi
10779
10780echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10781echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10782
10783#
10784# Check to make sure the PIC flag actually works.
10785#
10786if test -n "$lt_prog_compiler_pic_CXX"; then
10787 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10788echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10789if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791else
10792 lt_prog_compiler_pic_works_CXX=no
10793 ac_outfile=conftest.$ac_objext
10794 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10795 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10796 # Insert the option either (1) after the last *FLAGS variable, or
10797 # (2) before a word containing "conftest.", or (3) at the end.
10798 # Note that $ac_compile itself does not contain backslashes and begins
10799 # with a dollar sign (not a hyphen), so the echo should work correctly.
10800 # The option is referenced via a variable to avoid confusing sed.
10801 lt_compile=`echo "$ac_compile" | $SED \
10802 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10804 -e 's:$: $lt_compiler_flag:'`
John Criswell759c3ed2003-10-28 19:21:11 +000010805 (eval echo "\"\$as_me:10805: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010806 (eval "$lt_compile" 2>conftest.err)
10807 ac_status=$?
10808 cat conftest.err >&5
John Criswell759c3ed2003-10-28 19:21:11 +000010809 echo "$as_me:10809: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010810 if (exit $ac_status) && test -s "$ac_outfile"; then
10811 # The compiler can only warn and ignore the option if not recognized
10812 # So say no if there are warnings
10813 if test ! -s conftest.err; then
10814 lt_prog_compiler_pic_works_CXX=yes
10815 fi
10816 fi
10817 $rm conftest*
10818
10819fi
10820echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10821echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10822
10823if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10824 case $lt_prog_compiler_pic_CXX in
10825 "" | " "*) ;;
10826 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10827 esac
10828else
10829 lt_prog_compiler_pic_CXX=
10830 lt_prog_compiler_can_build_shared_CXX=no
10831fi
10832
10833fi
10834case "$host_os" in
10835 # For platforms which do not support PIC, -DPIC is meaningless:
10836 *djgpp*)
10837 lt_prog_compiler_pic_CXX=
10838 ;;
10839 *)
10840 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10841 ;;
10842esac
10843
10844echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10845echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10846if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10848else
10849 lt_cv_prog_compiler_c_o_CXX=no
10850 $rm -r conftest 2>/dev/null
10851 mkdir conftest
10852 cd conftest
10853 mkdir out
10854 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10855
10856 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10857 # that will create temporary files in the current directory regardless of
10858 # the output directory. Thus, making CWD read-only will cause this test
10859 # to fail, enabling locking or at least warning the user not to do parallel
10860 # builds.
10861 chmod -w .
10862
10863 lt_compiler_flag="-o out/conftest2.$ac_objext"
10864 # Insert the option either (1) after the last *FLAGS variable, or
10865 # (2) before a word containing "conftest.", or (3) at the end.
10866 # Note that $ac_compile itself does not contain backslashes and begins
10867 # with a dollar sign (not a hyphen), so the echo should work correctly.
10868 lt_compile=`echo "$ac_compile" | $SED \
10869 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10871 -e 's:$: $lt_compiler_flag:'`
John Criswell759c3ed2003-10-28 19:21:11 +000010872 (eval echo "\"\$as_me:10872: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010873 (eval "$lt_compile" 2>out/conftest.err)
10874 ac_status=$?
10875 cat out/conftest.err >&5
John Criswell759c3ed2003-10-28 19:21:11 +000010876 echo "$as_me:10876: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010877 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10878 then
10879 # The compiler can only warn and ignore the option if not recognized
10880 # So say no if there are warnings
10881 if test ! -s out/conftest.err; then
10882 lt_cv_prog_compiler_c_o_CXX=yes
10883 fi
10884 fi
10885 chmod u+w .
10886 $rm conftest* out/*
10887 rmdir out
10888 cd ..
10889 rmdir conftest
10890 $rm conftest*
10891
10892fi
10893echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10894echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10895
10896
10897hard_links="nottested"
10898if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10899 # do not overwrite the value of need_locks provided by the user
10900 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10901echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10902 hard_links=yes
10903 $rm conftest*
10904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10905 touch conftest.a
10906 ln conftest.a conftest.b 2>&5 || hard_links=no
10907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10908 echo "$as_me:$LINENO: result: $hard_links" >&5
10909echo "${ECHO_T}$hard_links" >&6
10910 if test "$hard_links" = no; then
10911 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10912echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10913 need_locks=warn
10914 fi
10915else
10916 need_locks=no
10917fi
10918
10919echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10920echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10921
10922 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10923 case $host_os in
10924 aix4* | aix5*)
10925 # If we're using GNU nm, then we don't want the "-C" option.
10926 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10927 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10928 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'
10929 else
10930 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'
10931 fi
10932 ;;
10933 pw32*)
10934 export_symbols_cmds_CXX="$ltdll_cmds"
10935 ;;
10936 cygwin* | mingw*)
10937 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10938 ;;
10939 *)
10940 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10941 ;;
10942 esac
10943
10944echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10945echo "${ECHO_T}$ld_shlibs_CXX" >&6
10946test "$ld_shlibs_CXX" = no && can_build_shared=no
10947
10948variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10949if test "$GCC" = yes; then
10950 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10951fi
10952
10953#
10954# Do we need to explicitly link libc?
10955#
10956case "x$archive_cmds_need_lc_CXX" in
10957x|xyes)
10958 # Assume -lc should be added
10959 archive_cmds_need_lc_CXX=yes
10960
10961 if test "$enable_shared" = yes && test "$GCC" = yes; then
10962 case $archive_cmds_CXX in
10963 *'~'*)
10964 # FIXME: we may have to deal with multi-command sequences.
10965 ;;
10966 '$CC '*)
10967 # Test whether the compiler implicitly links with -lc since on some
10968 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10969 # to ld, don't add -lc before -lgcc.
10970 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10971echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10972 $rm conftest*
10973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10974
10975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10976 (eval $ac_compile) 2>&5
10977 ac_status=$?
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } 2>conftest.err; then
10980 soname=conftest
10981 lib=conftest
10982 libobjs=conftest.$ac_objext
10983 deplibs=
10984 wl=$lt_prog_compiler_wl_CXX
10985 compiler_flags=-v
10986 linker_flags=-v
10987 verstring=
10988 output_objdir=.
10989 libname=conftest
10990 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10991 allow_undefined_flag_CXX=
10992 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10993 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }
10997 then
10998 archive_cmds_need_lc_CXX=no
10999 else
11000 archive_cmds_need_lc_CXX=yes
11001 fi
11002 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11003 else
11004 cat conftest.err 1>&5
11005 fi
11006 $rm conftest*
11007 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11008echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11009 ;;
11010 esac
11011 fi
11012 ;;
11013esac
11014
11015echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11016echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11017hardcode_action_CXX=
11018if test -n "$hardcode_libdir_flag_spec_CXX" || \
11019 test -n "$runpath_var CXX" || \
11020 test "X$hardcode_automatic_CXX"="Xyes" ; then
11021
11022 # We can hardcode non-existant directories.
11023 if test "$hardcode_direct_CXX" != no &&
11024 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11025 # have to relink, otherwise we might link with an installed library
11026 # when we should be linking with a yet-to-be-installed one
11027 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11028 test "$hardcode_minus_L_CXX" != no; then
11029 # Linking always hardcodes the temporary library directory.
11030 hardcode_action_CXX=relink
11031 else
11032 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11033 hardcode_action_CXX=immediate
11034 fi
11035else
11036 # We cannot hardcode anything, or else we can only hardcode existing
11037 # directories.
11038 hardcode_action_CXX=unsupported
11039fi
11040echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11041echo "${ECHO_T}$hardcode_action_CXX" >&6
11042
11043if test "$hardcode_action_CXX" = relink; then
11044 # Fast installation is not supported
11045 enable_fast_install=no
11046elif test "$shlibpath_overrides_runpath" = yes ||
11047 test "$enable_shared" = no; then
11048 # Fast installation is not necessary
11049 enable_fast_install=needless
11050fi
11051
11052striplib=
11053old_striplib=
11054echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11055echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11056if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11057 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11058 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11059 echo "$as_me:$LINENO: result: yes" >&5
11060echo "${ECHO_T}yes" >&6
11061else
11062# FIXME - insert some real tests, host_os isn't really good enough
11063 case $host_os in
11064 darwin*)
11065 if test -n "$STRIP" ; then
11066 striplib="$STRIP -x"
11067 echo "$as_me:$LINENO: result: yes" >&5
11068echo "${ECHO_T}yes" >&6
11069 else
11070 echo "$as_me:$LINENO: result: no" >&5
11071echo "${ECHO_T}no" >&6
11072fi
11073 ;;
11074 *)
11075 echo "$as_me:$LINENO: result: no" >&5
11076echo "${ECHO_T}no" >&6
11077 ;;
11078 esac
11079fi
11080
11081echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11082echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11083library_names_spec=
11084libname_spec='lib$name'
11085soname_spec=
11086shrext=".so"
11087postinstall_cmds=
11088postuninstall_cmds=
11089finish_cmds=
11090finish_eval=
11091shlibpath_var=
11092shlibpath_overrides_runpath=unknown
11093version_type=none
11094dynamic_linker="$host_os ld.so"
11095sys_lib_dlsearch_path_spec="/lib /usr/lib"
11096if test "$GCC" = yes; then
11097 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11098 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11099 # if the path contains ";" then we assume it to be the separator
11100 # otherwise default to the standard path separator (i.e. ":") - it is
11101 # assumed that no part of a normal pathname contains ";" but that should
11102 # okay in the real world where ";" in dirpaths is itself problematic.
11103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11104 else
11105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11106 fi
11107else
11108 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11109fi
11110need_lib_prefix=unknown
11111hardcode_into_libs=no
11112
11113# when you set need_version to no, make sure it does not cause -set_version
11114# flags to be left without arguments
11115need_version=unknown
11116
11117case $host_os in
11118aix3*)
11119 version_type=linux
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11121 shlibpath_var=LIBPATH
11122
11123 # AIX 3 has no versioning support, so we append a major version to the name.
11124 soname_spec='${libname}${release}${shared_ext}$major'
11125 ;;
11126
11127aix4* | aix5*)
11128 version_type=linux
11129 need_lib_prefix=no
11130 need_version=no
11131 hardcode_into_libs=yes
11132 if test "$host_cpu" = ia64; then
11133 # AIX 5 supports IA64
11134 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 else
11137 # With GCC up to 2.95.x, collect2 would create an import file
11138 # for dependence libraries. The import file would start with
11139 # the line `#! .'. This would cause the generated library to
11140 # depend on `.', always an invalid library. This was fixed in
11141 # development snapshots of GCC prior to 3.0.
11142 case $host_os in
11143 aix4 | aix4.[01] | aix4.[01].*)
11144 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11145 echo ' yes '
11146 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11147 :
11148 else
11149 can_build_shared=no
11150 fi
11151 ;;
11152 esac
11153 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11154 # soname into executable. Probably we can add versioning support to
11155 # collect2, so additional links can be useful in future.
11156 if test "$aix_use_runtimelinking" = yes; then
11157 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11158 # instead of lib<name>.a to let people know that these are not
11159 # typical AIX shared libraries.
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 else
11162 # We preserve .a as extension for shared libraries through AIX4.2
11163 # and later when we are not doing run time linking.
11164 library_names_spec='${libname}${release}.a $libname.a'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 fi
11167 shlibpath_var=LIBPATH
11168 fi
11169 ;;
11170
11171amigaos*)
11172 library_names_spec='$libname.ixlibrary $libname.a'
11173 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11174 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'
11175 ;;
11176
11177beos*)
11178 library_names_spec='${libname}${shared_ext}'
11179 dynamic_linker="$host_os ld.so"
11180 shlibpath_var=LIBRARY_PATH
11181 ;;
11182
11183bsdi4*)
11184 version_type=linux
11185 need_version=no
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11189 shlibpath_var=LD_LIBRARY_PATH
11190 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11191 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11192 # the default ld.so.conf also contains /usr/contrib/lib and
11193 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11194 # libtool to hard-code these into programs
11195 ;;
11196
11197cygwin* | mingw* | pw32*)
11198 version_type=windows
11199 shrext=".dll"
11200 need_version=no
11201 need_lib_prefix=no
11202
11203 case $GCC,$host_os in
11204 yes,cygwin* | yes,mingw* | yes,pw32*)
11205 library_names_spec='$libname.dll.a'
11206 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11207 postinstall_cmds='base_file=`basename \${file}`~
11208 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11209 dldir=$destdir/`dirname \$dlpath`~
11210 test -d \$dldir || mkdir -p \$dldir~
11211 $install_prog $dir/$dlname \$dldir/$dlname'
11212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11213 dlpath=$dir/\$dldll~
11214 $rm \$dlpath'
11215 shlibpath_overrides_runpath=yes
11216
11217 case $host_os in
11218 cygwin*)
11219 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11221 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11222 ;;
11223 mingw*)
11224 # MinGW DLLs use traditional 'lib' prefix
11225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11227 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11228 # It is most probably a Windows format PATH printed by
11229 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11230 # path with ; separators, and with drive letters. We can handle the
11231 # drive letters (cygwin fileutils understands them), so leave them,
11232 # especially as we might pass files found there to a mingw objdump,
11233 # which wouldn't understand a cygwinified path. Ahh.
11234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11235 else
11236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11237 fi
11238 ;;
11239 pw32*)
11240 # pw32 DLLs use 'pw' prefix rather than 'lib'
11241 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11242 ;;
11243 esac
11244 ;;
11245
11246 *)
11247 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11248 ;;
11249 esac
11250 dynamic_linker='Win32 ld.exe'
11251 # FIXME: first we should search . and the directory the executable is in
11252 shlibpath_var=PATH
11253 ;;
11254
11255darwin* | rhapsody*)
11256 dynamic_linker="$host_os dyld"
11257 version_type=darwin
11258 need_lib_prefix=no
11259 need_version=no
11260 # FIXME: Relying on posixy $() will cause problems for
11261 # cross-compilation, but unfortunately the echo tests do not
11262 # yet detect zsh echo's removal of \ escapes.
11263 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11264 soname_spec='${libname}${release}${major}$shared_ext'
11265 shlibpath_overrides_runpath=yes
11266 shlibpath_var=DYLD_LIBRARY_PATH
11267 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11268 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11269 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11270 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"`
11271 fi
11272 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11273 ;;
11274
11275dgux*)
11276 version_type=linux
11277 need_lib_prefix=no
11278 need_version=no
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11280 soname_spec='${libname}${release}${shared_ext}$major'
11281 shlibpath_var=LD_LIBRARY_PATH
11282 ;;
11283
11284freebsd1*)
11285 dynamic_linker=no
11286 ;;
11287
11288freebsd*)
11289 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11290 version_type=freebsd-$objformat
11291 case $version_type in
11292 freebsd-elf*)
11293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11294 need_version=no
11295 need_lib_prefix=no
11296 ;;
11297 freebsd-*)
11298 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11299 need_version=yes
11300 ;;
11301 esac
11302 shlibpath_var=LD_LIBRARY_PATH
11303 case $host_os in
11304 freebsd2*)
11305 shlibpath_overrides_runpath=yes
11306 ;;
11307 freebsd3.01* | freebsdelf3.01*)
11308 shlibpath_overrides_runpath=yes
11309 hardcode_into_libs=yes
11310 ;;
11311 *) # from 3.2 on
11312 shlibpath_overrides_runpath=no
11313 hardcode_into_libs=yes
11314 ;;
11315 esac
11316 ;;
11317
11318gnu*)
11319 version_type=linux
11320 need_lib_prefix=no
11321 need_version=no
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11323 soname_spec='${libname}${release}${shared_ext}$major'
11324 shlibpath_var=LD_LIBRARY_PATH
11325 hardcode_into_libs=yes
11326 ;;
11327
11328hpux9* | hpux10* | hpux11*)
11329 # Give a soname corresponding to the major version so that dld.sl refuses to
11330 # link against other versions.
11331 version_type=sunos
11332 need_lib_prefix=no
11333 need_version=no
11334 case "$host_cpu" in
11335 ia64*)
11336 shrext='.so'
11337 hardcode_into_libs=yes
11338 dynamic_linker="$host_os dld.so"
11339 shlibpath_var=LD_LIBRARY_PATH
11340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342 soname_spec='${libname}${release}${shared_ext}$major'
11343 if test "X$HPUX_IA64_MODE" = X32; then
11344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11345 else
11346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11347 fi
11348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11349 ;;
11350 hppa*64*)
11351 shrext='.sl'
11352 hardcode_into_libs=yes
11353 dynamic_linker="$host_os dld.sl"
11354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11360 ;;
11361 *)
11362 shrext='.sl'
11363 dynamic_linker="$host_os dld.sl"
11364 shlibpath_var=SHLIB_PATH
11365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367 soname_spec='${libname}${release}${shared_ext}$major'
11368 ;;
11369 esac
11370 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11371 postinstall_cmds='chmod 555 $lib'
11372 ;;
11373
11374irix5* | irix6* | nonstopux*)
11375 case $host_os in
11376 nonstopux*) version_type=nonstopux ;;
11377 *)
11378 if test "$lt_cv_prog_gnu_ld" = yes; then
11379 version_type=linux
11380 else
11381 version_type=irix
11382 fi ;;
11383 esac
11384 need_lib_prefix=no
11385 need_version=no
11386 soname_spec='${libname}${release}${shared_ext}$major'
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11388 case $host_os in
11389 irix5* | nonstopux*)
11390 libsuff= shlibsuff=
11391 ;;
11392 *)
11393 case $LD in # libtool.m4 will add one of these switches to LD
11394 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11395 libsuff= shlibsuff= libmagic=32-bit;;
11396 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11397 libsuff=32 shlibsuff=N32 libmagic=N32;;
11398 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11399 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11400 *) libsuff= shlibsuff= libmagic=never-match;;
11401 esac
11402 ;;
11403 esac
11404 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11405 shlibpath_overrides_runpath=no
11406 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11407 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11408 hardcode_into_libs=yes
11409 ;;
11410
11411# No shared lib support for Linux oldld, aout, or coff.
11412linux*oldld* | linux*aout* | linux*coff*)
11413 dynamic_linker=no
11414 ;;
11415
11416# This must be Linux ELF.
11417linux*)
11418 version_type=linux
11419 need_lib_prefix=no
11420 need_version=no
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422 soname_spec='${libname}${release}${shared_ext}$major'
11423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 shlibpath_overrides_runpath=no
11426 # This implies no fast_install, which is unacceptable.
11427 # Some rework will be needed to allow for fast_install
11428 # before this can be enabled.
11429 hardcode_into_libs=yes
11430
11431 # We used to test for /lib/ld.so.1 and disable shared libraries on
11432 # powerpc, because MkLinux only supported shared libraries with the
11433 # GNU dynamic linker. Since this was broken with cross compilers,
11434 # most powerpc-linux boxes support dynamic linking these days and
11435 # people can always --disable-shared, the test was removed, and we
11436 # assume the GNU/Linux dynamic linker is in use.
11437 dynamic_linker='GNU/Linux ld.so'
11438 ;;
11439
11440netbsd*)
11441 version_type=sunos
11442 need_lib_prefix=no
11443 need_version=no
11444 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11447 dynamic_linker='NetBSD (a.out) ld.so'
11448 else
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11450 soname_spec='${libname}${release}${shared_ext}$major'
11451 dynamic_linker='NetBSD ld.elf_so'
11452 fi
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=yes
11455 hardcode_into_libs=yes
11456 ;;
11457
11458newsos6)
11459 version_type=linux
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 shlibpath_var=LD_LIBRARY_PATH
11462 shlibpath_overrides_runpath=yes
11463 ;;
11464
11465nto-qnx)
11466 version_type=linux
11467 need_lib_prefix=no
11468 need_version=no
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11470 soname_spec='${libname}${release}${shared_ext}$major'
11471 shlibpath_var=LD_LIBRARY_PATH
11472 shlibpath_overrides_runpath=yes
11473 ;;
11474
11475openbsd*)
11476 version_type=sunos
11477 need_lib_prefix=no
11478 need_version=no
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11483 case $host_os in
11484 openbsd2.[89] | openbsd2.[89].*)
11485 shlibpath_overrides_runpath=no
11486 ;;
11487 *)
11488 shlibpath_overrides_runpath=yes
11489 ;;
11490 esac
11491 else
11492 shlibpath_overrides_runpath=yes
11493 fi
11494 ;;
11495
11496os2*)
11497 libname_spec='$name'
11498 shrext=".dll"
11499 need_lib_prefix=no
11500 library_names_spec='$libname${shared_ext} $libname.a'
11501 dynamic_linker='OS/2 ld.exe'
11502 shlibpath_var=LIBPATH
11503 ;;
11504
11505osf3* | osf4* | osf5*)
11506 version_type=osf
11507 need_lib_prefix=no
11508 need_version=no
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 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11513 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11514 ;;
11515
11516sco3.2v5*)
11517 version_type=osf
11518 soname_spec='${libname}${release}${shared_ext}$major'
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 ;;
11522
11523solaris*)
11524 version_type=linux
11525 need_lib_prefix=no
11526 need_version=no
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528 soname_spec='${libname}${release}${shared_ext}$major'
11529 shlibpath_var=LD_LIBRARY_PATH
11530 shlibpath_overrides_runpath=yes
11531 hardcode_into_libs=yes
11532 # ldd complains unless libraries are executable
11533 postinstall_cmds='chmod +x $lib'
11534 ;;
11535
11536sunos4*)
11537 version_type=sunos
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11539 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 shlibpath_overrides_runpath=yes
11542 if test "$with_gnu_ld" = yes; then
11543 need_lib_prefix=no
11544 fi
11545 need_version=yes
11546 ;;
11547
11548sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11549 version_type=linux
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551 soname_spec='${libname}${release}${shared_ext}$major'
11552 shlibpath_var=LD_LIBRARY_PATH
11553 case $host_vendor in
11554 sni)
11555 shlibpath_overrides_runpath=no
11556 need_lib_prefix=no
11557 export_dynamic_flag_spec='${wl}-Blargedynsym'
11558 runpath_var=LD_RUN_PATH
11559 ;;
11560 siemens)
11561 need_lib_prefix=no
11562 ;;
11563 motorola)
11564 need_lib_prefix=no
11565 need_version=no
11566 shlibpath_overrides_runpath=no
11567 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11568 ;;
11569 esac
11570 ;;
11571
11572sysv4*MP*)
11573 if test -d /usr/nec ;then
11574 version_type=linux
11575 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11576 soname_spec='$libname${shared_ext}.$major'
11577 shlibpath_var=LD_LIBRARY_PATH
11578 fi
11579 ;;
11580
11581uts4*)
11582 version_type=linux
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11584 soname_spec='${libname}${release}${shared_ext}$major'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 ;;
11587
11588*)
11589 dynamic_linker=no
11590 ;;
11591esac
11592echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11593echo "${ECHO_T}$dynamic_linker" >&6
11594test "$dynamic_linker" = no && can_build_shared=no
11595
11596if test "x$enable_dlopen" != xyes; then
11597 enable_dlopen=unknown
11598 enable_dlopen_self=unknown
11599 enable_dlopen_self_static=unknown
11600else
11601 lt_cv_dlopen=no
11602 lt_cv_dlopen_libs=
11603
11604 case $host_os in
11605 beos*)
11606 lt_cv_dlopen="load_add_on"
11607 lt_cv_dlopen_libs=
11608 lt_cv_dlopen_self=yes
11609 ;;
11610
11611 mingw* | pw32*)
11612 lt_cv_dlopen="LoadLibrary"
11613 lt_cv_dlopen_libs=
11614 ;;
11615
11616 cygwin*)
11617 lt_cv_dlopen="dlopen"
11618 lt_cv_dlopen_libs=
11619 ;;
11620
11621 darwin*)
11622 # if libdl is installed we need to link against it
11623 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11624echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11625if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11627else
11628 ac_check_lib_save_LIBS=$LIBS
11629LIBS="-ldl $LIBS"
11630cat >conftest.$ac_ext <<_ACEOF
11631#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011632/* confdefs.h. */
11633_ACEOF
11634cat confdefs.h >>conftest.$ac_ext
11635cat >>conftest.$ac_ext <<_ACEOF
11636/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011637
11638/* Override any gcc2 internal prototype to avoid an error. */
11639#ifdef __cplusplus
11640extern "C"
11641#endif
11642/* We use char because int might match the return type of a gcc2
11643 builtin and then its argument prototype would still apply. */
11644char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011645int
11646main ()
11647{
11648dlopen ();
11649 ;
11650 return 0;
11651}
11652_ACEOF
11653rm -f conftest.$ac_objext conftest$ac_exeext
11654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655 (eval $ac_link) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -s conftest$ac_exeext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 ac_cv_lib_dl_dlopen=yes
11666else
11667 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011668sed 's/^/| /' conftest.$ac_ext >&5
11669
John Criswell47fdd832003-07-14 16:52:07 +000011670ac_cv_lib_dl_dlopen=no
11671fi
11672rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11673LIBS=$ac_check_lib_save_LIBS
11674fi
11675echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11676echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11677if test $ac_cv_lib_dl_dlopen = yes; then
11678 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11679else
11680
11681 lt_cv_dlopen="dyld"
11682 lt_cv_dlopen_libs=
11683 lt_cv_dlopen_self=yes
11684
11685fi
11686
11687 ;;
11688
11689 *)
11690 echo "$as_me:$LINENO: checking for shl_load" >&5
11691echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11692if test "${ac_cv_func_shl_load+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694else
11695 cat >conftest.$ac_ext <<_ACEOF
11696#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011697/* confdefs.h. */
11698_ACEOF
11699cat confdefs.h >>conftest.$ac_ext
11700cat >>conftest.$ac_ext <<_ACEOF
11701/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011702/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011703 which can conflict with char shl_load (); below.
11704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11705 <limits.h> exists even on freestanding compilers. */
11706#ifdef __STDC__
11707# include <limits.h>
11708#else
11709# include <assert.h>
11710#endif
John Criswell47fdd832003-07-14 16:52:07 +000011711/* Override any gcc2 internal prototype to avoid an error. */
11712#ifdef __cplusplus
11713extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011714{
John Criswell47fdd832003-07-14 16:52:07 +000011715#endif
11716/* We use char because int might match the return type of a gcc2
11717 builtin and then its argument prototype would still apply. */
11718char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011719/* The GNU C library defines this for functions which it implements
11720 to always fail with ENOSYS. Some functions are actually named
11721 something starting with __ and the normal name is an alias. */
11722#if defined (__stub_shl_load) || defined (__stub___shl_load)
11723choke me
11724#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011725char (*f) () = shl_load;
11726#endif
11727#ifdef __cplusplus
11728}
John Criswell47fdd832003-07-14 16:52:07 +000011729#endif
11730
John Criswell0c38eaf2003-09-10 15:17:25 +000011731int
11732main ()
11733{
11734return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011735 ;
11736 return 0;
11737}
11738_ACEOF
11739rm -f conftest.$ac_objext conftest$ac_exeext
11740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11741 (eval $ac_link) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
11745 { ac_try='test -s conftest$ac_exeext'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 ac_cv_func_shl_load=yes
11752else
11753 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011754sed 's/^/| /' conftest.$ac_ext >&5
11755
John Criswell47fdd832003-07-14 16:52:07 +000011756ac_cv_func_shl_load=no
11757fi
11758rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11759fi
11760echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11761echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11762if test $ac_cv_func_shl_load = yes; then
11763 lt_cv_dlopen="shl_load"
11764else
11765 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11766echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11767if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769else
11770 ac_check_lib_save_LIBS=$LIBS
11771LIBS="-ldld $LIBS"
11772cat >conftest.$ac_ext <<_ACEOF
11773#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011774/* confdefs.h. */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011779
11780/* Override any gcc2 internal prototype to avoid an error. */
11781#ifdef __cplusplus
11782extern "C"
11783#endif
11784/* We use char because int might match the return type of a gcc2
11785 builtin and then its argument prototype would still apply. */
11786char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011787int
11788main ()
11789{
11790shl_load ();
11791 ;
11792 return 0;
11793}
11794_ACEOF
11795rm -f conftest.$ac_objext conftest$ac_exeext
11796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11797 (eval $ac_link) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); } &&
11801 { ac_try='test -s conftest$ac_exeext'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 ac_cv_lib_dld_shl_load=yes
11808else
11809 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011810sed 's/^/| /' conftest.$ac_ext >&5
11811
John Criswell47fdd832003-07-14 16:52:07 +000011812ac_cv_lib_dld_shl_load=no
11813fi
11814rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11815LIBS=$ac_check_lib_save_LIBS
11816fi
11817echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11818echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11819if test $ac_cv_lib_dld_shl_load = yes; then
11820 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11821else
11822 echo "$as_me:$LINENO: checking for dlopen" >&5
11823echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11824if test "${ac_cv_func_dlopen+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826else
11827 cat >conftest.$ac_ext <<_ACEOF
11828#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011829/* confdefs.h. */
11830_ACEOF
11831cat confdefs.h >>conftest.$ac_ext
11832cat >>conftest.$ac_ext <<_ACEOF
11833/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011834/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011835 which can conflict with char dlopen (); below.
11836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11837 <limits.h> exists even on freestanding compilers. */
11838#ifdef __STDC__
11839# include <limits.h>
11840#else
11841# include <assert.h>
11842#endif
John Criswell47fdd832003-07-14 16:52:07 +000011843/* Override any gcc2 internal prototype to avoid an error. */
11844#ifdef __cplusplus
11845extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011846{
John Criswell47fdd832003-07-14 16:52:07 +000011847#endif
11848/* We use char because int might match the return type of a gcc2
11849 builtin and then its argument prototype would still apply. */
11850char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011851/* The GNU C library defines this for functions which it implements
11852 to always fail with ENOSYS. Some functions are actually named
11853 something starting with __ and the normal name is an alias. */
11854#if defined (__stub_dlopen) || defined (__stub___dlopen)
11855choke me
11856#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011857char (*f) () = dlopen;
11858#endif
11859#ifdef __cplusplus
11860}
John Criswell47fdd832003-07-14 16:52:07 +000011861#endif
11862
John Criswell0c38eaf2003-09-10 15:17:25 +000011863int
11864main ()
11865{
11866return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011867 ;
11868 return 0;
11869}
11870_ACEOF
11871rm -f conftest.$ac_objext conftest$ac_exeext
11872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11873 (eval $ac_link) 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -s conftest$ac_exeext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 ac_cv_func_dlopen=yes
11884else
11885 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011886sed 's/^/| /' conftest.$ac_ext >&5
11887
John Criswell47fdd832003-07-14 16:52:07 +000011888ac_cv_func_dlopen=no
11889fi
11890rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11891fi
11892echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11893echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11894if test $ac_cv_func_dlopen = yes; then
11895 lt_cv_dlopen="dlopen"
11896else
11897 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11898echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11899if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901else
11902 ac_check_lib_save_LIBS=$LIBS
11903LIBS="-ldl $LIBS"
11904cat >conftest.$ac_ext <<_ACEOF
11905#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011906/* confdefs.h. */
11907_ACEOF
11908cat confdefs.h >>conftest.$ac_ext
11909cat >>conftest.$ac_ext <<_ACEOF
11910/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011911
11912/* Override any gcc2 internal prototype to avoid an error. */
11913#ifdef __cplusplus
11914extern "C"
11915#endif
11916/* We use char because int might match the return type of a gcc2
11917 builtin and then its argument prototype would still apply. */
11918char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011919int
11920main ()
11921{
11922dlopen ();
11923 ;
11924 return 0;
11925}
11926_ACEOF
11927rm -f conftest.$ac_objext conftest$ac_exeext
11928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929 (eval $ac_link) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -s conftest$ac_exeext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 ac_cv_lib_dl_dlopen=yes
11940else
11941 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011942sed 's/^/| /' conftest.$ac_ext >&5
11943
John Criswell47fdd832003-07-14 16:52:07 +000011944ac_cv_lib_dl_dlopen=no
11945fi
11946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11947LIBS=$ac_check_lib_save_LIBS
11948fi
11949echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11950echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11951if test $ac_cv_lib_dl_dlopen = yes; then
11952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11953else
11954 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11955echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11956if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11958else
11959 ac_check_lib_save_LIBS=$LIBS
11960LIBS="-lsvld $LIBS"
11961cat >conftest.$ac_ext <<_ACEOF
11962#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011963/* confdefs.h. */
11964_ACEOF
11965cat confdefs.h >>conftest.$ac_ext
11966cat >>conftest.$ac_ext <<_ACEOF
11967/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011968
11969/* Override any gcc2 internal prototype to avoid an error. */
11970#ifdef __cplusplus
11971extern "C"
11972#endif
11973/* We use char because int might match the return type of a gcc2
11974 builtin and then its argument prototype would still apply. */
11975char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011976int
11977main ()
11978{
11979dlopen ();
11980 ;
11981 return 0;
11982}
11983_ACEOF
11984rm -f conftest.$ac_objext conftest$ac_exeext
11985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11986 (eval $ac_link) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } &&
11990 { ac_try='test -s conftest$ac_exeext'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11993 ac_status=$?
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; }; then
11996 ac_cv_lib_svld_dlopen=yes
11997else
11998 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011999sed 's/^/| /' conftest.$ac_ext >&5
12000
John Criswell47fdd832003-07-14 16:52:07 +000012001ac_cv_lib_svld_dlopen=no
12002fi
12003rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12004LIBS=$ac_check_lib_save_LIBS
12005fi
12006echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12007echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12008if test $ac_cv_lib_svld_dlopen = yes; then
12009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12010else
12011 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12012echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12013if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015else
12016 ac_check_lib_save_LIBS=$LIBS
12017LIBS="-ldld $LIBS"
12018cat >conftest.$ac_ext <<_ACEOF
12019#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012020/* confdefs.h. */
12021_ACEOF
12022cat confdefs.h >>conftest.$ac_ext
12023cat >>conftest.$ac_ext <<_ACEOF
12024/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012025
12026/* Override any gcc2 internal prototype to avoid an error. */
12027#ifdef __cplusplus
12028extern "C"
12029#endif
12030/* We use char because int might match the return type of a gcc2
12031 builtin and then its argument prototype would still apply. */
12032char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012033int
12034main ()
12035{
12036dld_link ();
12037 ;
12038 return 0;
12039}
12040_ACEOF
12041rm -f conftest.$ac_objext conftest$ac_exeext
12042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12043 (eval $ac_link) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try='test -s conftest$ac_exeext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 ac_cv_lib_dld_dld_link=yes
12054else
12055 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012056sed 's/^/| /' conftest.$ac_ext >&5
12057
John Criswell47fdd832003-07-14 16:52:07 +000012058ac_cv_lib_dld_dld_link=no
12059fi
12060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12061LIBS=$ac_check_lib_save_LIBS
12062fi
12063echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12064echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12065if test $ac_cv_lib_dld_dld_link = yes; then
12066 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12067fi
12068
12069
12070fi
12071
12072
12073fi
12074
12075
12076fi
12077
12078
12079fi
12080
12081
12082fi
12083
12084 ;;
12085 esac
12086
12087 if test "x$lt_cv_dlopen" != xno; then
12088 enable_dlopen=yes
12089 else
12090 enable_dlopen=no
12091 fi
12092
12093 case $lt_cv_dlopen in
12094 dlopen)
12095 save_CPPFLAGS="$CPPFLAGS"
12096 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12097
12098 save_LDFLAGS="$LDFLAGS"
12099 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12100
12101 save_LIBS="$LIBS"
12102 LIBS="$lt_cv_dlopen_libs $LIBS"
12103
12104 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12105echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12106if test "${lt_cv_dlopen_self+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108else
12109 if test "$cross_compiling" = yes; then :
12110 lt_cv_dlopen_self=cross
12111else
12112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12113 lt_status=$lt_dlunknown
12114 cat > conftest.$ac_ext <<EOF
John Criswell759c3ed2003-10-28 19:21:11 +000012115#line 12115 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012116#include "confdefs.h"
12117
12118#if HAVE_DLFCN_H
12119#include <dlfcn.h>
12120#endif
12121
12122#include <stdio.h>
12123
12124#ifdef RTLD_GLOBAL
12125# define LT_DLGLOBAL RTLD_GLOBAL
12126#else
12127# ifdef DL_GLOBAL
12128# define LT_DLGLOBAL DL_GLOBAL
12129# else
12130# define LT_DLGLOBAL 0
12131# endif
12132#endif
12133
12134/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12135 find out it does not work in some platform. */
12136#ifndef LT_DLLAZY_OR_NOW
12137# ifdef RTLD_LAZY
12138# define LT_DLLAZY_OR_NOW RTLD_LAZY
12139# else
12140# ifdef DL_LAZY
12141# define LT_DLLAZY_OR_NOW DL_LAZY
12142# else
12143# ifdef RTLD_NOW
12144# define LT_DLLAZY_OR_NOW RTLD_NOW
12145# else
12146# ifdef DL_NOW
12147# define LT_DLLAZY_OR_NOW DL_NOW
12148# else
12149# define LT_DLLAZY_OR_NOW 0
12150# endif
12151# endif
12152# endif
12153# endif
12154#endif
12155
12156#ifdef __cplusplus
12157extern "C" void exit (int);
12158#endif
12159
12160void fnord() { int i=42;}
12161int main ()
12162{
12163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12164 int status = $lt_dlunknown;
12165
12166 if (self)
12167 {
12168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12169 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12170 /* dlclose (self); */
12171 }
12172
12173 exit (status);
12174}
12175EOF
12176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12177 (eval $ac_link) 2>&5
12178 ac_status=$?
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12181 (./conftest; exit; ) 2>/dev/null
12182 lt_status=$?
12183 case x$lt_status in
12184 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12185 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12186 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12187 esac
12188 else :
12189 # compilation failed
12190 lt_cv_dlopen_self=no
12191 fi
12192fi
12193rm -fr conftest*
12194
12195
12196fi
12197echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12198echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12199
12200 if test "x$lt_cv_dlopen_self" = xyes; then
12201 LDFLAGS="$LDFLAGS $link_static_flag"
12202 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12203echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12204if test "${lt_cv_dlopen_self_static+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206else
12207 if test "$cross_compiling" = yes; then :
12208 lt_cv_dlopen_self_static=cross
12209else
12210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12211 lt_status=$lt_dlunknown
12212 cat > conftest.$ac_ext <<EOF
John Criswell759c3ed2003-10-28 19:21:11 +000012213#line 12213 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012214#include "confdefs.h"
12215
12216#if HAVE_DLFCN_H
12217#include <dlfcn.h>
12218#endif
12219
12220#include <stdio.h>
12221
12222#ifdef RTLD_GLOBAL
12223# define LT_DLGLOBAL RTLD_GLOBAL
12224#else
12225# ifdef DL_GLOBAL
12226# define LT_DLGLOBAL DL_GLOBAL
12227# else
12228# define LT_DLGLOBAL 0
12229# endif
12230#endif
12231
12232/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12233 find out it does not work in some platform. */
12234#ifndef LT_DLLAZY_OR_NOW
12235# ifdef RTLD_LAZY
12236# define LT_DLLAZY_OR_NOW RTLD_LAZY
12237# else
12238# ifdef DL_LAZY
12239# define LT_DLLAZY_OR_NOW DL_LAZY
12240# else
12241# ifdef RTLD_NOW
12242# define LT_DLLAZY_OR_NOW RTLD_NOW
12243# else
12244# ifdef DL_NOW
12245# define LT_DLLAZY_OR_NOW DL_NOW
12246# else
12247# define LT_DLLAZY_OR_NOW 0
12248# endif
12249# endif
12250# endif
12251# endif
12252#endif
12253
12254#ifdef __cplusplus
12255extern "C" void exit (int);
12256#endif
12257
12258void fnord() { int i=42;}
12259int main ()
12260{
12261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12262 int status = $lt_dlunknown;
12263
12264 if (self)
12265 {
12266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12267 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12268 /* dlclose (self); */
12269 }
12270
12271 exit (status);
12272}
12273EOF
12274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12275 (eval $ac_link) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12279 (./conftest; exit; ) 2>/dev/null
12280 lt_status=$?
12281 case x$lt_status in
12282 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12283 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12284 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12285 esac
12286 else :
12287 # compilation failed
12288 lt_cv_dlopen_self_static=no
12289 fi
12290fi
12291rm -fr conftest*
12292
12293
12294fi
12295echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12296echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12297 fi
12298
12299 CPPFLAGS="$save_CPPFLAGS"
12300 LDFLAGS="$save_LDFLAGS"
12301 LIBS="$save_LIBS"
12302 ;;
12303 esac
12304
12305 case $lt_cv_dlopen_self in
12306 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12307 *) enable_dlopen_self=unknown ;;
12308 esac
12309
12310 case $lt_cv_dlopen_self_static in
12311 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12312 *) enable_dlopen_self_static=unknown ;;
12313 esac
12314fi
12315
12316
12317# The else clause should only fire when bootstrapping the
12318# libtool distribution, otherwise you forgot to ship ltmain.sh
12319# with your package, and you will get complaints that there are
12320# no rules to generate ltmain.sh.
12321if test -f "$ltmain"; then
12322 # See if we are running on zsh, and set the options which allow our commands through
12323 # without removal of \ escapes.
12324 if test -n "${ZSH_VERSION+set}" ; then
12325 setopt NO_GLOB_SUBST
12326 fi
12327 # Now quote all the things that may contain metacharacters while being
12328 # careful not to overquote the AC_SUBSTed values. We take copies of the
12329 # variables and quote the copies for generation of the libtool script.
12330 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12331 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12332 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12333 deplibs_check_method reload_flag reload_cmds need_locks \
12334 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12335 lt_cv_sys_global_symbol_to_c_name_address \
12336 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12337 old_postinstall_cmds old_postuninstall_cmds \
12338 compiler_CXX \
12339 CC_CXX \
12340 LD_CXX \
12341 lt_prog_compiler_wl_CXX \
12342 lt_prog_compiler_pic_CXX \
12343 lt_prog_compiler_static_CXX \
12344 lt_prog_compiler_no_builtin_flag_CXX \
12345 export_dynamic_flag_spec_CXX \
12346 thread_safe_flag_spec_CXX \
12347 whole_archive_flag_spec_CXX \
12348 enable_shared_with_static_runtimes_CXX \
12349 old_archive_cmds_CXX \
12350 old_archive_from_new_cmds_CXX \
12351 predep_objects_CXX \
12352 postdep_objects_CXX \
12353 predeps_CXX \
12354 postdeps_CXX \
12355 compiler_lib_search_path_CXX \
12356 archive_cmds_CXX \
12357 archive_expsym_cmds_CXX \
12358 postinstall_cmds_CXX \
12359 postuninstall_cmds_CXX \
12360 old_archive_from_expsyms_cmds_CXX \
12361 allow_undefined_flag_CXX \
12362 no_undefined_flag_CXX \
12363 export_symbols_cmds_CXX \
12364 hardcode_libdir_flag_spec_CXX \
12365 hardcode_libdir_flag_spec_ld_CXX \
12366 hardcode_libdir_separator_CXX \
12367 hardcode_automatic_CXX \
12368 module_cmds_CXX \
12369 module_expsym_cmds_CXX \
12370 lt_cv_prog_compiler_c_o_CXX \
12371 exclude_expsyms_CXX \
12372 include_expsyms_CXX; do
12373
12374 case $var in
12375 old_archive_cmds_CXX | \
12376 old_archive_from_new_cmds_CXX | \
12377 archive_cmds_CXX | \
12378 archive_expsym_cmds_CXX | \
12379 module_cmds_CXX | \
12380 module_expsym_cmds_CXX | \
12381 old_archive_from_expsyms_cmds_CXX | \
12382 export_symbols_cmds_CXX | \
12383 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12384 postinstall_cmds | postuninstall_cmds | \
12385 old_postinstall_cmds | old_postuninstall_cmds | \
12386 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12387 # Double-quote double-evaled strings.
12388 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12389 ;;
12390 *)
12391 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12392 ;;
12393 esac
12394 done
12395
12396 case $lt_echo in
12397 *'\$0 --fallback-echo"')
12398 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12399 ;;
12400 esac
12401
12402cfgfile="$ofile"
12403
12404 cat <<__EOF__ >> "$cfgfile"
12405# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12406
12407# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12408
12409# Shell to use when invoking shell scripts.
12410SHELL=$lt_SHELL
12411
12412# Whether or not to build shared libraries.
12413build_libtool_libs=$enable_shared
12414
12415# Whether or not to build static libraries.
12416build_old_libs=$enable_static
12417
12418# Whether or not to add -lc for building shared libraries.
12419build_libtool_need_lc=$archive_cmds_need_lc_CXX
12420
12421# Whether or not to disallow shared libs when runtime libs are static
12422allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12423
12424# Whether or not to optimize for fast installation.
12425fast_install=$enable_fast_install
12426
12427# The host system.
12428host_alias=$host_alias
12429host=$host
12430
12431# An echo program that does not interpret backslashes.
12432echo=$lt_echo
12433
12434# The archiver.
12435AR=$lt_AR
12436AR_FLAGS=$lt_AR_FLAGS
12437
12438# A C compiler.
12439LTCC=$lt_LTCC
12440
12441# A language-specific compiler.
12442CC=$lt_compiler_CXX
12443
12444# Is the compiler the GNU C compiler?
12445with_gcc=$GCC_CXX
12446
12447# An ERE matcher.
12448EGREP=$lt_EGREP
12449
12450# The linker used to build libraries.
12451LD=$lt_LD_CXX
12452
12453# Whether we need hard or soft links.
12454LN_S=$lt_LN_S
12455
12456# A BSD-compatible nm program.
12457NM=$lt_NM
12458
12459# A symbol stripping program
12460STRIP=$STRIP
12461
12462# Used to examine libraries when file_magic_cmd begins "file"
12463MAGIC_CMD=$MAGIC_CMD
12464
12465# Used on cygwin: DLL creation program.
12466DLLTOOL="$DLLTOOL"
12467
12468# Used on cygwin: object dumper.
12469OBJDUMP="$OBJDUMP"
12470
12471# Used on cygwin: assembler.
12472AS="$AS"
12473
12474# The name of the directory that contains temporary libtool files.
12475objdir=$objdir
12476
12477# How to create reloadable object files.
12478reload_flag=$lt_reload_flag
12479reload_cmds=$lt_reload_cmds
12480
12481# How to pass a linker flag through the compiler.
12482wl=$lt_lt_prog_compiler_wl_CXX
12483
12484# Object file suffix (normally "o").
12485objext="$ac_objext"
12486
12487# Old archive suffix (normally "a").
12488libext="$libext"
12489
12490# Shared library suffix (normally ".so").
12491shrext='$shrext'
12492
12493# Executable file suffix (normally "").
12494exeext="$exeext"
12495
12496# Additional compiler flags for building library objects.
12497pic_flag=$lt_lt_prog_compiler_pic_CXX
12498pic_mode=$pic_mode
12499
12500# What is the maximum length of a command?
12501max_cmd_len=$lt_cv_sys_max_cmd_len
12502
12503# Does compiler simultaneously support -c and -o options?
12504compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12505
12506# Must we lock files when doing compilation ?
12507need_locks=$lt_need_locks
12508
12509# Do we need the lib prefix for modules?
12510need_lib_prefix=$need_lib_prefix
12511
12512# Do we need a version for libraries?
12513need_version=$need_version
12514
12515# Whether dlopen is supported.
12516dlopen_support=$enable_dlopen
12517
12518# Whether dlopen of programs is supported.
12519dlopen_self=$enable_dlopen_self
12520
12521# Whether dlopen of statically linked programs is supported.
12522dlopen_self_static=$enable_dlopen_self_static
12523
12524# Compiler flag to prevent dynamic linking.
12525link_static_flag=$lt_lt_prog_compiler_static_CXX
12526
12527# Compiler flag to turn off builtin functions.
12528no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12529
12530# Compiler flag to allow reflexive dlopens.
12531export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12532
12533# Compiler flag to generate shared objects directly from archives.
12534whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12535
12536# Compiler flag to generate thread-safe objects.
12537thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12538
12539# Library versioning type.
12540version_type=$version_type
12541
12542# Format of library name prefix.
12543libname_spec=$lt_libname_spec
12544
12545# List of archive names. First name is the real one, the rest are links.
12546# The last name is the one that the linker finds with -lNAME.
12547library_names_spec=$lt_library_names_spec
12548
12549# The coded name of the library, if different from the real name.
12550soname_spec=$lt_soname_spec
12551
12552# Commands used to build and install an old-style archive.
12553RANLIB=$lt_RANLIB
12554old_archive_cmds=$lt_old_archive_cmds_CXX
12555old_postinstall_cmds=$lt_old_postinstall_cmds
12556old_postuninstall_cmds=$lt_old_postuninstall_cmds
12557
12558# Create an old-style archive from a shared archive.
12559old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12560
12561# Create a temporary old-style archive to link instead of a shared archive.
12562old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12563
12564# Commands used to build and install a shared archive.
12565archive_cmds=$lt_archive_cmds_CXX
12566archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12567postinstall_cmds=$lt_postinstall_cmds
12568postuninstall_cmds=$lt_postuninstall_cmds
12569
12570# Commands used to build a loadable module (assumed same as above if empty)
12571module_cmds=$lt_module_cmds_CXX
12572module_expsym_cmds=$lt_module_expsym_cmds_CXX
12573
12574# Commands to strip libraries.
12575old_striplib=$lt_old_striplib
12576striplib=$lt_striplib
12577
12578# Dependencies to place before the objects being linked to create a
12579# shared library.
12580predep_objects=$lt_predep_objects_CXX
12581
12582# Dependencies to place after the objects being linked to create a
12583# shared library.
12584postdep_objects=$lt_postdep_objects_CXX
12585
12586# Dependencies to place before the objects being linked to create a
12587# shared library.
12588predeps=$lt_predeps_CXX
12589
12590# Dependencies to place after the objects being linked to create a
12591# shared library.
12592postdeps=$lt_postdeps_CXX
12593
12594# The library search path used internally by the compiler when linking
12595# a shared library.
12596compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12597
12598# Method to check whether dependent libraries are shared objects.
12599deplibs_check_method=$lt_deplibs_check_method
12600
12601# Command to use when deplibs_check_method == file_magic.
12602file_magic_cmd=$lt_file_magic_cmd
12603
12604# Flag that allows shared libraries with undefined symbols to be built.
12605allow_undefined_flag=$lt_allow_undefined_flag_CXX
12606
12607# Flag that forces no undefined symbols.
12608no_undefined_flag=$lt_no_undefined_flag_CXX
12609
12610# Commands used to finish a libtool library installation in a directory.
12611finish_cmds=$lt_finish_cmds
12612
12613# Same as above, but a single script fragment to be evaled but not shown.
12614finish_eval=$lt_finish_eval
12615
12616# Take the output of nm and produce a listing of raw symbols and C names.
12617global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12618
12619# Transform the output of nm in a proper C declaration
12620global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12621
12622# Transform the output of nm in a C name address pair
12623global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12624
12625# This is the shared library runtime path variable.
12626runpath_var=$runpath_var
12627
12628# This is the shared library path variable.
12629shlibpath_var=$shlibpath_var
12630
12631# Is shlibpath searched before the hard-coded library search path?
12632shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12633
12634# How to hardcode a shared library path into an executable.
12635hardcode_action=$hardcode_action_CXX
12636
12637# Whether we should hardcode library paths into libraries.
12638hardcode_into_libs=$hardcode_into_libs
12639
12640# Flag to hardcode \$libdir into a binary during linking.
12641# This must work even if \$libdir does not exist.
12642hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12643
12644# If ld is used when linking, flag to hardcode \$libdir into
12645# a binary during linking. This must work even if \$libdir does
12646# not exist.
12647hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12648
12649# Whether we need a single -rpath flag with a separated argument.
12650hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12651
12652# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12653# resulting binary.
12654hardcode_direct=$hardcode_direct_CXX
12655
12656# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12657# resulting binary.
12658hardcode_minus_L=$hardcode_minus_L_CXX
12659
12660# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12661# the resulting binary.
12662hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12663
12664# Set to yes if building a shared library automatically hardcodes DIR into the library
12665# and all subsequent libraries and executables linked against it.
12666hardcode_automatic=$hardcode_automatic_CXX
12667
12668# Variables whose values should be saved in libtool wrapper scripts and
12669# restored at relink time.
12670variables_saved_for_relink="$variables_saved_for_relink"
12671
12672# Whether libtool must link a program against all its dependency libraries.
12673link_all_deplibs=$link_all_deplibs_CXX
12674
12675# Compile-time system search path for libraries
12676sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12677
12678# Run-time system search path for libraries
12679sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12680
12681# Fix the shell variable \$srcfile for the compiler.
12682fix_srcfile_path="$fix_srcfile_path_CXX"
12683
12684# Set to yes if exported symbols are required.
12685always_export_symbols=$always_export_symbols_CXX
12686
12687# The commands to list exported symbols.
12688export_symbols_cmds=$lt_export_symbols_cmds_CXX
12689
12690# The commands to extract the exported symbol list from a shared archive.
12691extract_expsyms_cmds=$lt_extract_expsyms_cmds
12692
12693# Symbols that should not be listed in the preloaded symbols.
12694exclude_expsyms=$lt_exclude_expsyms_CXX
12695
12696# Symbols that must always be exported.
12697include_expsyms=$lt_include_expsyms_CXX
12698
12699# ### END LIBTOOL TAG CONFIG: $tagname
12700
12701__EOF__
12702
12703
12704else
12705 # If there is no Makefile yet, we rely on a make rule to execute
12706 # `config.status --recheck' to rerun these tests and create the
12707 # libtool script then.
12708 test -f Makefile && make "$ltmain"
12709fi
12710
12711
12712ac_ext=c
12713ac_cpp='$CPP $CPPFLAGS'
12714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716ac_compiler_gnu=$ac_cv_c_compiler_gnu
12717
12718CC=$lt_save_CC
12719LDCXX=$LD
12720LD=$lt_save_LD
12721GCC=$lt_save_GCC
12722with_gnu_ldcxx=$with_gnu_ld
12723with_gnu_ld=$lt_save_with_gnu_ld
12724lt_cv_path_LDCXX=$lt_cv_path_LD
12725lt_cv_path_LD=$lt_save_path_LD
12726lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12727lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12728
12729 else
12730 tagname=""
12731 fi
12732 ;;
12733
12734 F77)
12735 if test -n "$F77" && test "X$F77" != "Xno"; then
12736
12737ac_ext=f
12738ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12739ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12740ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12741
12742
12743archive_cmds_need_lc_F77=no
12744allow_undefined_flag_F77=
12745always_export_symbols_F77=no
12746archive_expsym_cmds_F77=
12747export_dynamic_flag_spec_F77=
12748hardcode_direct_F77=no
12749hardcode_libdir_flag_spec_F77=
12750hardcode_libdir_flag_spec_ld_F77=
12751hardcode_libdir_separator_F77=
12752hardcode_minus_L_F77=no
12753hardcode_automatic_F77=no
12754module_cmds_F77=
12755module_expsym_cmds_F77=
12756link_all_deplibs_F77=unknown
12757old_archive_cmds_F77=$old_archive_cmds
12758no_undefined_flag_F77=
12759whole_archive_flag_spec_F77=
12760enable_shared_with_static_runtimes_F77=no
12761
12762# Source file extension for f77 test sources.
12763ac_ext=f
12764
12765# Object file extension for compiled f77 test sources.
12766objext=o
12767objext_F77=$objext
12768
12769# Code to be used in simple compile tests
12770lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12771
12772# Code to be used in simple link tests
12773lt_simple_link_test_code=" program t\n end\n"
12774
12775# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12776
12777# If no C compiler was specified, use CC.
12778LTCC=${LTCC-"$CC"}
12779
12780# Allow CC to be a program name with arguments.
12781compiler=$CC
12782
12783
12784# Allow CC to be a program name with arguments.
12785lt_save_CC="$CC"
12786CC=${F77-"f77"}
12787compiler=$CC
12788compiler_F77=$CC
12789cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12790
12791echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12792echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12793echo "$as_me:$LINENO: result: $can_build_shared" >&5
12794echo "${ECHO_T}$can_build_shared" >&6
12795
12796echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12797echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12798test "$can_build_shared" = "no" && enable_shared=no
12799
12800# On AIX, shared libraries and static libraries use the same namespace, and
12801# are all built from PIC.
12802case "$host_os" in
12803aix3*)
12804 test "$enable_shared" = yes && enable_static=no
12805 if test -n "$RANLIB"; then
12806 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12807 postinstall_cmds='$RANLIB $lib'
12808 fi
12809 ;;
12810aix4*)
12811 test "$enable_shared" = yes && enable_static=no
12812 ;;
12813esac
12814echo "$as_me:$LINENO: result: $enable_shared" >&5
12815echo "${ECHO_T}$enable_shared" >&6
12816
12817echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12818echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12819# Make sure either enable_shared or enable_static is yes.
12820test "$enable_shared" = yes || enable_static=yes
12821echo "$as_me:$LINENO: result: $enable_static" >&5
12822echo "${ECHO_T}$enable_static" >&6
12823
12824test "$ld_shlibs_F77" = no && can_build_shared=no
12825
12826GCC_F77="$G77"
12827LD_F77="$LD"
12828
12829lt_prog_compiler_wl_F77=
12830lt_prog_compiler_pic_F77=
12831lt_prog_compiler_static_F77=
12832
12833echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12834echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12835
12836 if test "$GCC" = yes; then
12837 lt_prog_compiler_wl_F77='-Wl,'
12838 lt_prog_compiler_static_F77='-static'
12839
12840 case $host_os in
12841 aix*)
12842 # All AIX code is PIC.
12843 if test "$host_cpu" = ia64; then
12844 # AIX 5 now supports IA64 processor
12845 lt_prog_compiler_static_F77='-Bstatic'
12846 fi
12847 ;;
12848
12849 amigaos*)
12850 # FIXME: we need at least 68020 code to build shared libraries, but
12851 # adding the `-m68020' flag to GCC prevents building anything better,
12852 # like `-m68040'.
12853 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12854 ;;
12855
12856 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12857 # PIC is the default for these OSes.
12858 ;;
12859
12860 mingw* | pw32* | os2*)
12861 # This hack is so that the source file can tell whether it is being
12862 # built for inclusion in a dll (and should export symbols for example).
12863 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12864 ;;
12865
12866 darwin* | rhapsody*)
12867 # PIC is the default on this platform
12868 # Common symbols not allowed in MH_DYLIB files
12869 lt_prog_compiler_pic_F77='-fno-common'
12870 ;;
12871
12872 msdosdjgpp*)
12873 # Just because we use GCC doesn't mean we suddenly get shared libraries
12874 # on systems that don't support them.
12875 lt_prog_compiler_can_build_shared_F77=no
12876 enable_shared=no
12877 ;;
12878
12879 sysv4*MP*)
12880 if test -d /usr/nec; then
12881 lt_prog_compiler_pic_F77=-Kconform_pic
12882 fi
12883 ;;
12884
12885 hpux*)
12886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12887 # not for PA HP-UX.
12888 case "$host_cpu" in
12889 hppa*64*|ia64*)
12890 # +Z the default
12891 ;;
12892 *)
12893 lt_prog_compiler_pic_F77='-fPIC'
12894 ;;
12895 esac
12896 ;;
12897
12898 *)
12899 lt_prog_compiler_pic_F77='-fPIC'
12900 ;;
12901 esac
12902 else
12903 # PORTME Check for flag to pass linker flags through the system compiler.
12904 case $host_os in
12905 aix*)
12906 lt_prog_compiler_wl_F77='-Wl,'
12907 if test "$host_cpu" = ia64; then
12908 # AIX 5 now supports IA64 processor
12909 lt_prog_compiler_static_F77='-Bstatic'
12910 else
12911 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12912 fi
12913 ;;
12914
12915 mingw* | pw32* | os2*)
12916 # This hack is so that the source file can tell whether it is being
12917 # built for inclusion in a dll (and should export symbols for example).
12918 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12919 ;;
12920
12921 hpux9* | hpux10* | hpux11*)
12922 lt_prog_compiler_wl_F77='-Wl,'
12923 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12924 # not for PA HP-UX.
12925 case "$host_cpu" in
12926 hppa*64*|ia64*)
12927 # +Z the default
12928 ;;
12929 *)
12930 lt_prog_compiler_pic_F77='+Z'
12931 ;;
12932 esac
12933 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12934 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12935 ;;
12936
12937 irix5* | irix6* | nonstopux*)
12938 lt_prog_compiler_wl_F77='-Wl,'
12939 # PIC (with -KPIC) is the default.
12940 lt_prog_compiler_static_F77='-non_shared'
12941 ;;
12942
12943 newsos6)
12944 lt_prog_compiler_pic_F77='-KPIC'
12945 lt_prog_compiler_static_F77='-Bstatic'
12946 ;;
12947
12948 linux*)
12949 case $CC in
12950 icc|ecc)
12951 lt_prog_compiler_wl_F77='-Wl,'
12952 lt_prog_compiler_pic_F77='-KPIC'
12953 lt_prog_compiler_static_F77='-static'
12954 ;;
12955 ccc)
12956 lt_prog_compiler_wl_F77='-Wl,'
12957 # All Alpha code is PIC.
12958 lt_prog_compiler_static_F77='-non_shared'
12959 ;;
12960 esac
12961 ;;
12962
12963 osf3* | osf4* | osf5*)
12964 lt_prog_compiler_wl_F77='-Wl,'
12965 # All OSF/1 code is PIC.
12966 lt_prog_compiler_static_F77='-non_shared'
12967 ;;
12968
12969 sco3.2v5*)
12970 lt_prog_compiler_pic_F77='-Kpic'
12971 lt_prog_compiler_static_F77='-dn'
12972 ;;
12973
12974 solaris*)
12975 lt_prog_compiler_wl_F77='-Wl,'
12976 lt_prog_compiler_pic_F77='-KPIC'
12977 lt_prog_compiler_static_F77='-Bstatic'
12978 ;;
12979
12980 sunos4*)
12981 lt_prog_compiler_wl_F77='-Qoption ld '
12982 lt_prog_compiler_pic_F77='-PIC'
12983 lt_prog_compiler_static_F77='-Bstatic'
12984 ;;
12985
12986 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12987 lt_prog_compiler_wl_F77='-Wl,'
12988 lt_prog_compiler_pic_F77='-KPIC'
12989 lt_prog_compiler_static_F77='-Bstatic'
12990 ;;
12991
12992 sysv4*MP*)
12993 if test -d /usr/nec ;then
12994 lt_prog_compiler_pic_F77='-Kconform_pic'
12995 lt_prog_compiler_static_F77='-Bstatic'
12996 fi
12997 ;;
12998
12999 uts4*)
13000 lt_prog_compiler_pic_F77='-pic'
13001 lt_prog_compiler_static_F77='-Bstatic'
13002 ;;
13003
13004 *)
13005 lt_prog_compiler_can_build_shared_F77=no
13006 ;;
13007 esac
13008 fi
13009
13010echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13011echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13012
13013#
13014# Check to make sure the PIC flag actually works.
13015#
13016if test -n "$lt_prog_compiler_pic_F77"; then
13017 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13018echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13019if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021else
13022 lt_prog_compiler_pic_works_F77=no
13023 ac_outfile=conftest.$ac_objext
13024 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13025 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13026 # Insert the option either (1) after the last *FLAGS variable, or
13027 # (2) before a word containing "conftest.", or (3) at the end.
13028 # Note that $ac_compile itself does not contain backslashes and begins
13029 # with a dollar sign (not a hyphen), so the echo should work correctly.
13030 # The option is referenced via a variable to avoid confusing sed.
13031 lt_compile=`echo "$ac_compile" | $SED \
13032 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13034 -e 's:$: $lt_compiler_flag:'`
John Criswell759c3ed2003-10-28 19:21:11 +000013035 (eval echo "\"\$as_me:13035: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013036 (eval "$lt_compile" 2>conftest.err)
13037 ac_status=$?
13038 cat conftest.err >&5
John Criswell759c3ed2003-10-28 19:21:11 +000013039 echo "$as_me:13039: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013040 if (exit $ac_status) && test -s "$ac_outfile"; then
13041 # The compiler can only warn and ignore the option if not recognized
13042 # So say no if there are warnings
13043 if test ! -s conftest.err; then
13044 lt_prog_compiler_pic_works_F77=yes
13045 fi
13046 fi
13047 $rm conftest*
13048
13049fi
13050echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13051echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13052
13053if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13054 case $lt_prog_compiler_pic_F77 in
13055 "" | " "*) ;;
13056 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13057 esac
13058else
13059 lt_prog_compiler_pic_F77=
13060 lt_prog_compiler_can_build_shared_F77=no
13061fi
13062
13063fi
13064case "$host_os" in
13065 # For platforms which do not support PIC, -DPIC is meaningless:
13066 *djgpp*)
13067 lt_prog_compiler_pic_F77=
13068 ;;
13069 *)
13070 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13071 ;;
13072esac
13073
13074echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13075echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13076if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13078else
13079 lt_cv_prog_compiler_c_o_F77=no
13080 $rm -r conftest 2>/dev/null
13081 mkdir conftest
13082 cd conftest
13083 mkdir out
13084 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13085
13086 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13087 # that will create temporary files in the current directory regardless of
13088 # the output directory. Thus, making CWD read-only will cause this test
13089 # to fail, enabling locking or at least warning the user not to do parallel
13090 # builds.
13091 chmod -w .
13092
13093 lt_compiler_flag="-o out/conftest2.$ac_objext"
13094 # Insert the option either (1) after the last *FLAGS variable, or
13095 # (2) before a word containing "conftest.", or (3) at the end.
13096 # Note that $ac_compile itself does not contain backslashes and begins
13097 # with a dollar sign (not a hyphen), so the echo should work correctly.
13098 lt_compile=`echo "$ac_compile" | $SED \
13099 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13101 -e 's:$: $lt_compiler_flag:'`
John Criswell759c3ed2003-10-28 19:21:11 +000013102 (eval echo "\"\$as_me:13102: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013103 (eval "$lt_compile" 2>out/conftest.err)
13104 ac_status=$?
13105 cat out/conftest.err >&5
John Criswell759c3ed2003-10-28 19:21:11 +000013106 echo "$as_me:13106: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013107 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13108 then
13109 # The compiler can only warn and ignore the option if not recognized
13110 # So say no if there are warnings
13111 if test ! -s out/conftest.err; then
13112 lt_cv_prog_compiler_c_o_F77=yes
13113 fi
13114 fi
13115 chmod u+w .
13116 $rm conftest* out/*
13117 rmdir out
13118 cd ..
13119 rmdir conftest
13120 $rm conftest*
13121
13122fi
13123echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13124echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13125
13126
13127hard_links="nottested"
13128if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13129 # do not overwrite the value of need_locks provided by the user
13130 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13131echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13132 hard_links=yes
13133 $rm conftest*
13134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13135 touch conftest.a
13136 ln conftest.a conftest.b 2>&5 || hard_links=no
13137 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13138 echo "$as_me:$LINENO: result: $hard_links" >&5
13139echo "${ECHO_T}$hard_links" >&6
13140 if test "$hard_links" = no; then
13141 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13142echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13143 need_locks=warn
13144 fi
13145else
13146 need_locks=no
13147fi
13148
13149echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13150echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13151
13152 runpath_var=
13153 allow_undefined_flag_F77=
13154 enable_shared_with_static_runtimes_F77=no
13155 archive_cmds_F77=
13156 archive_expsym_cmds_F77=
13157 old_archive_From_new_cmds_F77=
13158 old_archive_from_expsyms_cmds_F77=
13159 export_dynamic_flag_spec_F77=
13160 whole_archive_flag_spec_F77=
13161 thread_safe_flag_spec_F77=
13162 hardcode_libdir_flag_spec_F77=
13163 hardcode_libdir_flag_spec_ld_F77=
13164 hardcode_libdir_separator_F77=
13165 hardcode_direct_F77=no
13166 hardcode_minus_L_F77=no
13167 hardcode_shlibpath_var_F77=unsupported
13168 link_all_deplibs_F77=unknown
13169 hardcode_automatic_F77=no
13170 module_cmds_F77=
13171 module_expsym_cmds_F77=
13172 always_export_symbols_F77=no
13173 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13174 # include_expsyms should be a list of space-separated symbols to be *always*
13175 # included in the symbol list
13176 include_expsyms_F77=
13177 # exclude_expsyms can be an extended regexp of symbols to exclude
13178 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13179 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13180 # as well as any symbol that contains `d'.
13181 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13182 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13183 # platforms (ab)use it in PIC code, but their linkers get confused if
13184 # the symbol is explicitly referenced. Since portable code cannot
13185 # rely on this symbol name, it's probably fine to never include it in
13186 # preloaded symbol tables.
13187 extract_expsyms_cmds=
13188
13189 case $host_os in
13190 cygwin* | mingw* | pw32*)
13191 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13192 # When not using gcc, we currently assume that we are using
13193 # Microsoft Visual C++.
13194 if test "$GCC" != yes; then
13195 with_gnu_ld=no
13196 fi
13197 ;;
13198 openbsd*)
13199 with_gnu_ld=no
13200 ;;
13201 esac
13202
13203 ld_shlibs_F77=yes
13204 if test "$with_gnu_ld" = yes; then
13205 # If archive_cmds runs LD, not CC, wlarc should be empty
13206 wlarc='${wl}'
13207
13208 # See if GNU ld supports shared libraries.
13209 case $host_os in
13210 aix3* | aix4* | aix5*)
13211 # On AIX/PPC, the GNU linker is very broken
13212 if test "$host_cpu" != ia64; then
13213 ld_shlibs_F77=no
13214 cat <<EOF 1>&2
13215
13216*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13217*** to be unable to reliably create shared libraries on AIX.
13218*** Therefore, libtool is disabling shared libraries support. If you
13219*** really care for shared libraries, you may want to modify your PATH
13220*** so that a non-GNU linker is found, and then restart.
13221
13222EOF
13223 fi
13224 ;;
13225
13226 amigaos*)
13227 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)'
13228 hardcode_libdir_flag_spec_F77='-L$libdir'
13229 hardcode_minus_L_F77=yes
13230
13231 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13232 # that the semantics of dynamic libraries on AmigaOS, at least up
13233 # to version 4, is to share data among multiple programs linked
13234 # with the same dynamic library. Since this doesn't match the
13235 # behavior of shared libraries on other platforms, we can't use
13236 # them.
13237 ld_shlibs_F77=no
13238 ;;
13239
13240 beos*)
13241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13242 allow_undefined_flag_F77=unsupported
13243 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13244 # support --undefined. This deserves some investigation. FIXME
13245 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13246 else
13247 ld_shlibs_F77=no
13248 fi
13249 ;;
13250
13251 cygwin* | mingw* | pw32*)
13252 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13253 # as there is no search path for DLLs.
13254 hardcode_libdir_flag_spec_F77='-L$libdir'
13255 allow_undefined_flag_F77=unsupported
13256 always_export_symbols_F77=no
13257 enable_shared_with_static_runtimes_F77=yes
13258 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13259
13260 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13261 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13262 # If the export-symbols file already is a .def file (1st line
13263 # is EXPORTS), use it as is; otherwise, prepend...
13264 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13265 cp $export_symbols $output_objdir/$soname.def;
13266 else
13267 echo EXPORTS > $output_objdir/$soname.def;
13268 cat $export_symbols >> $output_objdir/$soname.def;
13269 fi~
13270 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13271 else
13272 ld_shlibs=no
13273 fi
13274 ;;
13275
13276 netbsd*)
13277 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13278 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13279 wlarc=
13280 else
13281 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13282 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13283 fi
13284 ;;
13285
13286 solaris* | sysv5*)
13287 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13288 ld_shlibs_F77=no
13289 cat <<EOF 1>&2
13290
13291*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13292*** create shared libraries on Solaris systems. Therefore, libtool
13293*** is disabling shared libraries support. We urge you to upgrade GNU
13294*** binutils to release 2.9.1 or newer. Another option is to modify
13295*** your PATH or compiler configuration so that the native linker is
13296*** used, and then restart.
13297
13298EOF
13299 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13300 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13301 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13302 else
13303 ld_shlibs_F77=no
13304 fi
13305 ;;
13306
13307 sunos4*)
13308 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13309 wlarc=
13310 hardcode_direct_F77=yes
13311 hardcode_shlibpath_var_F77=no
13312 ;;
13313
13314 *)
13315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13316 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13317 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13318 else
13319 ld_shlibs_F77=no
13320 fi
13321 ;;
13322 esac
13323
13324 if test "$ld_shlibs_F77" = yes; then
13325 runpath_var=LD_RUN_PATH
13326 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13327 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13328 # ancient GNU ld didn't support --whole-archive et. al.
13329 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13330 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13331 else
13332 whole_archive_flag_spec_F77=
13333 fi
13334 fi
13335 else
13336 # PORTME fill in a description of your system's linker (not GNU ld)
13337 case $host_os in
13338 aix3*)
13339 allow_undefined_flag_F77=unsupported
13340 always_export_symbols_F77=yes
13341 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'
13342 # Note: this linker hardcodes the directories in LIBPATH if there
13343 # are no directories specified by -L.
13344 hardcode_minus_L_F77=yes
13345 if test "$GCC" = yes && test -z "$link_static_flag"; then
13346 # Neither direct hardcoding nor static linking is supported with a
13347 # broken collect2.
13348 hardcode_direct_F77=unsupported
13349 fi
13350 ;;
13351
13352 aix4* | aix5*)
13353 if test "$host_cpu" = ia64; then
13354 # On IA64, the linker does run time linking by default, so we don't
13355 # have to do anything special.
13356 aix_use_runtimelinking=no
13357 exp_sym_flag='-Bexport'
13358 no_entry_flag=""
13359 else
13360 # If we're using GNU nm, then we don't want the "-C" option.
13361 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13362 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13363 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'
13364 else
13365 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'
13366 fi
13367 aix_use_runtimelinking=no
13368
13369 # Test if we are trying to use run time linking or normal
13370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13371 # need to do runtime linking.
13372 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13373 for ld_flag in $LDFLAGS; do
13374 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13375 aix_use_runtimelinking=yes
13376 break
13377 fi
13378 done
13379 esac
13380
13381 exp_sym_flag='-bexport'
13382 no_entry_flag='-bnoentry'
13383 fi
13384
13385 # When large executables or shared objects are built, AIX ld can
13386 # have problems creating the table of contents. If linking a library
13387 # or program results in "error TOC overflow" add -mminimal-toc to
13388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13390
13391 archive_cmds_F77=''
13392 hardcode_direct_F77=yes
13393 hardcode_libdir_separator_F77=':'
13394 link_all_deplibs_F77=yes
13395
13396 if test "$GCC" = yes; then
13397 case $host_os in aix4.012|aix4.012.*)
13398 # We only want to do this on AIX 4.2 and lower, the check
13399 # below for broken collect2 doesn't work under 4.3+
13400 collect2name=`${CC} -print-prog-name=collect2`
13401 if test -f "$collect2name" && \
13402 strings "$collect2name" | grep resolve_lib_name >/dev/null
13403 then
13404 # We have reworked collect2
13405 hardcode_direct_F77=yes
13406 else
13407 # We have old collect2
13408 hardcode_direct_F77=unsupported
13409 # It fails to find uninstalled libraries when the uninstalled
13410 # path is not listed in the libpath. Setting hardcode_minus_L
13411 # to unsupported forces relinking
13412 hardcode_minus_L_F77=yes
13413 hardcode_libdir_flag_spec_F77='-L$libdir'
13414 hardcode_libdir_separator_F77=
13415 fi
13416 esac
13417 shared_flag='-shared'
13418 else
13419 # not using gcc
13420 if test "$host_cpu" = ia64; then
13421 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13422 # chokes on -Wl,-G. The following line is correct:
13423 shared_flag='-G'
13424 else
13425 if test "$aix_use_runtimelinking" = yes; then
13426 shared_flag='${wl}-G'
13427 else
13428 shared_flag='${wl}-bM:SRE'
13429 fi
13430 fi
13431 fi
13432
13433 # It seems that -bexpall does not export symbols beginning with
13434 # underscore (_), so it is better to generate a list of symbols to export.
13435 always_export_symbols_F77=yes
13436 if test "$aix_use_runtimelinking" = yes; then
13437 # Warning - without using the other runtime loading flags (-brtl),
13438 # -berok will link without error, but may produce a broken library.
13439 allow_undefined_flag_F77='-berok'
13440 # Determine the default libpath from the value encoded in an empty executable.
13441 cat >conftest.$ac_ext <<_ACEOF
13442 program main
13443
13444 end
13445_ACEOF
13446rm -f conftest.$ac_objext conftest$ac_exeext
13447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448 (eval $ac_link) 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
13452 { ac_try='test -s conftest$ac_exeext'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13455 ac_status=$?
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; }; then
13458
13459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13460}'`
13461# Check for a 64-bit object if we didn't find anything.
13462if 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; }
13463}'`; fi
13464else
13465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013466sed 's/^/| /' conftest.$ac_ext >&5
13467
John Criswell47fdd832003-07-14 16:52:07 +000013468fi
13469rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13470if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13471
13472 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13473 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"
13474 else
13475 if test "$host_cpu" = ia64; then
13476 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13477 allow_undefined_flag_F77="-z nodefs"
13478 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"
13479 else
13480 # Determine the default libpath from the value encoded in an empty executable.
13481 cat >conftest.$ac_ext <<_ACEOF
13482 program main
13483
13484 end
13485_ACEOF
13486rm -f conftest.$ac_objext conftest$ac_exeext
13487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13488 (eval $ac_link) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -s conftest$ac_exeext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498
13499aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13500}'`
13501# Check for a 64-bit object if we didn't find anything.
13502if 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; }
13503}'`; fi
13504else
13505 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013506sed 's/^/| /' conftest.$ac_ext >&5
13507
John Criswell47fdd832003-07-14 16:52:07 +000013508fi
13509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13510if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13511
13512 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13513 # Warning - without using the other run time loading flags,
13514 # -berok will link without error, but may produce a broken library.
13515 no_undefined_flag_F77=' ${wl}-bernotok'
13516 allow_undefined_flag_F77=' ${wl}-berok'
13517 # -bexpall does not export symbols beginning with underscore (_)
13518 always_export_symbols_F77=yes
13519 # Exported symbols can be pulled into shared objects from archives
13520 whole_archive_flag_spec_F77=' '
13521 archive_cmds_need_lc_F77=yes
13522 # This is similar to how AIX traditionally builds it's shared libraries.
13523 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'
13524 fi
13525 fi
13526 ;;
13527
13528 amigaos*)
13529 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)'
13530 hardcode_libdir_flag_spec_F77='-L$libdir'
13531 hardcode_minus_L_F77=yes
13532 # see comment about different semantics on the GNU ld section
13533 ld_shlibs_F77=no
13534 ;;
13535
13536 bsdi4*)
13537 export_dynamic_flag_spec_F77=-rdynamic
13538 ;;
13539
13540 cygwin* | mingw* | pw32*)
13541 # When not using gcc, we currently assume that we are using
13542 # Microsoft Visual C++.
13543 # hardcode_libdir_flag_spec is actually meaningless, as there is
13544 # no search path for DLLs.
13545 hardcode_libdir_flag_spec_F77=' '
13546 allow_undefined_flag_F77=unsupported
13547 # Tell ltmain to make .lib files, not .a files.
13548 libext=lib
13549 # Tell ltmain to make .dll files, not .so files.
13550 shrext=".dll"
13551 # FIXME: Setting linknames here is a bad hack.
13552 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13553 # The linker will automatically build a .lib file if we build a DLL.
13554 old_archive_From_new_cmds_F77='true'
13555 # FIXME: Should let the user specify the lib program.
13556 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13557 fix_srcfile_path='`cygpath -w "$srcfile"`'
13558 enable_shared_with_static_runtimes_F77=yes
13559 ;;
13560
13561 darwin* | rhapsody*)
13562 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13563 archive_cmds_need_lc_F77=no
13564 case "$host_os" in
13565 rhapsody* | darwin1.[012])
13566 allow_undefined_flag_F77='-undefined suppress'
13567 ;;
13568 *) # Darwin 1.3 on
13569 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13570 ;;
13571 esac
13572 # FIXME: Relying on posixy $() will cause problems for
13573 # cross-compilation, but unfortunately the echo tests do not
13574 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13575 # `"' quotes if we put them in here... so don't!
13576 lt_int_apple_cc_single_mod=no
13577 output_verbose_link_cmd='echo'
13578 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13579 lt_int_apple_cc_single_mod=yes
13580 fi
13581 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13582 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13583 else
13584 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'
13585 fi
13586 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13587 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13588 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13589 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}'
13590 else
13591 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}'
13592 fi
13593 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}'
13594 hardcode_direct_F77=no
13595 hardcode_automatic_F77=yes
13596 hardcode_shlibpath_var_F77=unsupported
13597 whole_archive_flag_spec_F77='-all_load $convenience'
13598 link_all_deplibs_F77=yes
13599 fi
13600 ;;
13601
13602 dgux*)
13603 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13604 hardcode_libdir_flag_spec_F77='-L$libdir'
13605 hardcode_shlibpath_var_F77=no
13606 ;;
13607
13608 freebsd1*)
13609 ld_shlibs_F77=no
13610 ;;
13611
13612 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13613 # support. Future versions do this automatically, but an explicit c++rt0.o
13614 # does not break anything, and helps significantly (at the cost of a little
13615 # extra space).
13616 freebsd2.2*)
13617 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13618 hardcode_libdir_flag_spec_F77='-R$libdir'
13619 hardcode_direct_F77=yes
13620 hardcode_shlibpath_var_F77=no
13621 ;;
13622
13623 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13624 freebsd2*)
13625 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13626 hardcode_direct_F77=yes
13627 hardcode_minus_L_F77=yes
13628 hardcode_shlibpath_var_F77=no
13629 ;;
13630
13631 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13632 freebsd*)
13633 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13634 hardcode_libdir_flag_spec_F77='-R$libdir'
13635 hardcode_direct_F77=yes
13636 hardcode_shlibpath_var_F77=no
13637 ;;
13638
13639 hpux9*)
13640 if test "$GCC" = yes; then
13641 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'
13642 else
13643 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'
13644 fi
13645 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13646 hardcode_libdir_separator_F77=:
13647 hardcode_direct_F77=yes
13648
13649 # hardcode_minus_L: Not really in the search PATH,
13650 # but as the default location of the library.
13651 hardcode_minus_L_F77=yes
13652 export_dynamic_flag_spec_F77='${wl}-E'
13653 ;;
13654
13655 hpux10* | hpux11*)
13656 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13657 case "$host_cpu" in
13658 hppa*64*|ia64*)
13659 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13660 ;;
13661 *)
13662 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13663 ;;
13664 esac
13665 else
13666 case "$host_cpu" in
13667 hppa*64*|ia64*)
13668 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13669 ;;
13670 *)
13671 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13672 ;;
13673 esac
13674 fi
13675 if test "$with_gnu_ld" = no; then
13676 case "$host_cpu" in
13677 hppa*64*)
13678 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13679 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13680 hardcode_libdir_separator_F77=:
13681 hardcode_direct_F77=no
13682 hardcode_shlibpath_var_F77=no
13683 ;;
13684 ia64*)
13685 hardcode_libdir_flag_spec_F77='-L$libdir'
13686 hardcode_direct_F77=no
13687 hardcode_shlibpath_var_F77=no
13688
13689 # hardcode_minus_L: Not really in the search PATH,
13690 # but as the default location of the library.
13691 hardcode_minus_L_F77=yes
13692 ;;
13693 *)
13694 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13695 hardcode_libdir_separator_F77=:
13696 hardcode_direct_F77=yes
13697 export_dynamic_flag_spec_F77='${wl}-E'
13698
13699 # hardcode_minus_L: Not really in the search PATH,
13700 # but as the default location of the library.
13701 hardcode_minus_L_F77=yes
13702 ;;
13703 esac
13704 fi
13705 ;;
13706
13707 irix5* | irix6* | nonstopux*)
13708 if test "$GCC" = yes; then
13709 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'
13710 else
13711 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'
13712 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13713 fi
13714 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13715 hardcode_libdir_separator_F77=:
13716 link_all_deplibs_F77=yes
13717 ;;
13718
13719 netbsd*)
13720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13721 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13722 else
13723 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13724 fi
13725 hardcode_libdir_flag_spec_F77='-R$libdir'
13726 hardcode_direct_F77=yes
13727 hardcode_shlibpath_var_F77=no
13728 ;;
13729
13730 newsos6)
13731 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13732 hardcode_direct_F77=yes
13733 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13734 hardcode_libdir_separator_F77=:
13735 hardcode_shlibpath_var_F77=no
13736 ;;
13737
13738 openbsd*)
13739 hardcode_direct_F77=yes
13740 hardcode_shlibpath_var_F77=no
13741 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13742 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13743 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13744 export_dynamic_flag_spec_F77='${wl}-E'
13745 else
13746 case $host_os in
13747 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13748 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13749 hardcode_libdir_flag_spec_F77='-R$libdir'
13750 ;;
13751 *)
13752 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13753 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13754 ;;
13755 esac
13756 fi
13757 ;;
13758
13759 os2*)
13760 hardcode_libdir_flag_spec_F77='-L$libdir'
13761 hardcode_minus_L_F77=yes
13762 allow_undefined_flag_F77=unsupported
13763 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'
13764 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13765 ;;
13766
13767 osf3*)
13768 if test "$GCC" = yes; then
13769 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13770 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'
13771 else
13772 allow_undefined_flag_F77=' -expect_unresolved \*'
13773 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'
13774 fi
13775 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13776 hardcode_libdir_separator_F77=:
13777 ;;
13778
13779 osf4* | osf5*) # as osf3* with the addition of -msym flag
13780 if test "$GCC" = yes; then
13781 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13782 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'
13783 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13784 else
13785 allow_undefined_flag_F77=' -expect_unresolved \*'
13786 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'
13787 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~
13788 $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'
13789
13790 # Both c and cxx compiler support -rpath directly
13791 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13792 fi
13793 hardcode_libdir_separator_F77=:
13794 ;;
13795
13796 sco3.2v5*)
13797 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13798 hardcode_shlibpath_var_F77=no
13799 export_dynamic_flag_spec_F77='${wl}-Bexport'
13800 runpath_var=LD_RUN_PATH
13801 hardcode_runpath_var=yes
13802 ;;
13803
13804 solaris*)
13805 no_undefined_flag_F77=' -z text'
13806 if test "$GCC" = yes; then
13807 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13808 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13809 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13810 else
13811 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13812 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13813 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13814 fi
13815 hardcode_libdir_flag_spec_F77='-R$libdir'
13816 hardcode_shlibpath_var_F77=no
13817 case $host_os in
13818 solaris2.[0-5] | solaris2.[0-5].*) ;;
13819 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13820 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13821 esac
13822 link_all_deplibs_F77=yes
13823 ;;
13824
13825 sunos4*)
13826 if test "x$host_vendor" = xsequent; then
13827 # Use $CC to link under sequent, because it throws in some extra .o
13828 # files that make .init and .fini sections work.
13829 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13830 else
13831 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13832 fi
13833 hardcode_libdir_flag_spec_F77='-L$libdir'
13834 hardcode_direct_F77=yes
13835 hardcode_minus_L_F77=yes
13836 hardcode_shlibpath_var_F77=no
13837 ;;
13838
13839 sysv4)
13840 case $host_vendor in
13841 sni)
13842 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13843 hardcode_direct_F77=yes # is this really true???
13844 ;;
13845 siemens)
13846 ## LD is ld it makes a PLAMLIB
13847 ## CC just makes a GrossModule.
13848 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13849 reload_cmds_F77='$CC -r -o $output$reload_objs'
13850 hardcode_direct_F77=no
13851 ;;
13852 motorola)
13853 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13854 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13855 ;;
13856 esac
13857 runpath_var='LD_RUN_PATH'
13858 hardcode_shlibpath_var_F77=no
13859 ;;
13860
13861 sysv4.3*)
13862 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13863 hardcode_shlibpath_var_F77=no
13864 export_dynamic_flag_spec_F77='-Bexport'
13865 ;;
13866
13867 sysv4*MP*)
13868 if test -d /usr/nec; then
13869 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13870 hardcode_shlibpath_var_F77=no
13871 runpath_var=LD_RUN_PATH
13872 hardcode_runpath_var=yes
13873 ld_shlibs_F77=yes
13874 fi
13875 ;;
13876
13877 sysv4.2uw2*)
13878 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13879 hardcode_direct_F77=yes
13880 hardcode_minus_L_F77=no
13881 hardcode_shlibpath_var_F77=no
13882 hardcode_runpath_var=yes
13883 runpath_var=LD_RUN_PATH
13884 ;;
13885
13886 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13887 no_undefined_flag_F77='${wl}-z ${wl}text'
13888 if test "$GCC" = yes; then
13889 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13890 else
13891 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13892 fi
13893 runpath_var='LD_RUN_PATH'
13894 hardcode_shlibpath_var_F77=no
13895 ;;
13896
13897 sysv5*)
13898 no_undefined_flag_F77=' -z text'
13899 # $CC -shared without GNU ld will not create a library from C++
13900 # object files and a static libstdc++, better avoid it by now
13901 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13902 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13903 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13904 hardcode_libdir_flag_spec_F77=
13905 hardcode_shlibpath_var_F77=no
13906 runpath_var='LD_RUN_PATH'
13907 ;;
13908
13909 uts4*)
13910 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13911 hardcode_libdir_flag_spec_F77='-L$libdir'
13912 hardcode_shlibpath_var_F77=no
13913 ;;
13914
13915 *)
13916 ld_shlibs_F77=no
13917 ;;
13918 esac
13919 fi
13920
13921echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13922echo "${ECHO_T}$ld_shlibs_F77" >&6
13923test "$ld_shlibs_F77" = no && can_build_shared=no
13924
13925variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13926if test "$GCC" = yes; then
13927 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13928fi
13929
13930#
13931# Do we need to explicitly link libc?
13932#
13933case "x$archive_cmds_need_lc_F77" in
13934x|xyes)
13935 # Assume -lc should be added
13936 archive_cmds_need_lc_F77=yes
13937
13938 if test "$enable_shared" = yes && test "$GCC" = yes; then
13939 case $archive_cmds_F77 in
13940 *'~'*)
13941 # FIXME: we may have to deal with multi-command sequences.
13942 ;;
13943 '$CC '*)
13944 # Test whether the compiler implicitly links with -lc since on some
13945 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13946 # to ld, don't add -lc before -lgcc.
13947 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13948echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13949 $rm conftest*
13950 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13951
13952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13953 (eval $ac_compile) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } 2>conftest.err; then
13957 soname=conftest
13958 lib=conftest
13959 libobjs=conftest.$ac_objext
13960 deplibs=
13961 wl=$lt_prog_compiler_wl_F77
13962 compiler_flags=-v
13963 linker_flags=-v
13964 verstring=
13965 output_objdir=.
13966 libname=conftest
13967 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13968 allow_undefined_flag_F77=
13969 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13970 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }
13974 then
13975 archive_cmds_need_lc_F77=no
13976 else
13977 archive_cmds_need_lc_F77=yes
13978 fi
13979 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13980 else
13981 cat conftest.err 1>&5
13982 fi
13983 $rm conftest*
13984 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13985echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13986 ;;
13987 esac
13988 fi
13989 ;;
13990esac
13991
13992echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13993echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13994hardcode_action_F77=
13995if test -n "$hardcode_libdir_flag_spec_F77" || \
13996 test -n "$runpath_var F77" || \
13997 test "X$hardcode_automatic_F77"="Xyes" ; then
13998
13999 # We can hardcode non-existant directories.
14000 if test "$hardcode_direct_F77" != no &&
14001 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14002 # have to relink, otherwise we might link with an installed library
14003 # when we should be linking with a yet-to-be-installed one
14004 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14005 test "$hardcode_minus_L_F77" != no; then
14006 # Linking always hardcodes the temporary library directory.
14007 hardcode_action_F77=relink
14008 else
14009 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14010 hardcode_action_F77=immediate
14011 fi
14012else
14013 # We cannot hardcode anything, or else we can only hardcode existing
14014 # directories.
14015 hardcode_action_F77=unsupported
14016fi
14017echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14018echo "${ECHO_T}$hardcode_action_F77" >&6
14019
14020if test "$hardcode_action_F77" = relink; then
14021 # Fast installation is not supported
14022 enable_fast_install=no
14023elif test "$shlibpath_overrides_runpath" = yes ||
14024 test "$enable_shared" = no; then
14025 # Fast installation is not necessary
14026 enable_fast_install=needless
14027fi
14028
14029striplib=
14030old_striplib=
14031echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14032echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14033if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14034 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14035 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14036 echo "$as_me:$LINENO: result: yes" >&5
14037echo "${ECHO_T}yes" >&6
14038else
14039# FIXME - insert some real tests, host_os isn't really good enough
14040 case $host_os in
14041 darwin*)
14042 if test -n "$STRIP" ; then
14043 striplib="$STRIP -x"
14044 echo "$as_me:$LINENO: result: yes" >&5
14045echo "${ECHO_T}yes" >&6
14046 else
14047 echo "$as_me:$LINENO: result: no" >&5
14048echo "${ECHO_T}no" >&6
14049fi
14050 ;;
14051 *)
14052 echo "$as_me:$LINENO: result: no" >&5
14053echo "${ECHO_T}no" >&6
14054 ;;
14055 esac
14056fi
14057
14058echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14059echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14060library_names_spec=
14061libname_spec='lib$name'
14062soname_spec=
14063shrext=".so"
14064postinstall_cmds=
14065postuninstall_cmds=
14066finish_cmds=
14067finish_eval=
14068shlibpath_var=
14069shlibpath_overrides_runpath=unknown
14070version_type=none
14071dynamic_linker="$host_os ld.so"
14072sys_lib_dlsearch_path_spec="/lib /usr/lib"
14073if test "$GCC" = yes; then
14074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14075 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14076 # if the path contains ";" then we assume it to be the separator
14077 # otherwise default to the standard path separator (i.e. ":") - it is
14078 # assumed that no part of a normal pathname contains ";" but that should
14079 # okay in the real world where ";" in dirpaths is itself problematic.
14080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14081 else
14082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14083 fi
14084else
14085 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14086fi
14087need_lib_prefix=unknown
14088hardcode_into_libs=no
14089
14090# when you set need_version to no, make sure it does not cause -set_version
14091# flags to be left without arguments
14092need_version=unknown
14093
14094case $host_os in
14095aix3*)
14096 version_type=linux
14097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14098 shlibpath_var=LIBPATH
14099
14100 # AIX 3 has no versioning support, so we append a major version to the name.
14101 soname_spec='${libname}${release}${shared_ext}$major'
14102 ;;
14103
14104aix4* | aix5*)
14105 version_type=linux
14106 need_lib_prefix=no
14107 need_version=no
14108 hardcode_into_libs=yes
14109 if test "$host_cpu" = ia64; then
14110 # AIX 5 supports IA64
14111 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14112 shlibpath_var=LD_LIBRARY_PATH
14113 else
14114 # With GCC up to 2.95.x, collect2 would create an import file
14115 # for dependence libraries. The import file would start with
14116 # the line `#! .'. This would cause the generated library to
14117 # depend on `.', always an invalid library. This was fixed in
14118 # development snapshots of GCC prior to 3.0.
14119 case $host_os in
14120 aix4 | aix4.[01] | aix4.[01].*)
14121 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14122 echo ' yes '
14123 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14124 :
14125 else
14126 can_build_shared=no
14127 fi
14128 ;;
14129 esac
14130 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14131 # soname into executable. Probably we can add versioning support to
14132 # collect2, so additional links can be useful in future.
14133 if test "$aix_use_runtimelinking" = yes; then
14134 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14135 # instead of lib<name>.a to let people know that these are not
14136 # typical AIX shared libraries.
14137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138 else
14139 # We preserve .a as extension for shared libraries through AIX4.2
14140 # and later when we are not doing run time linking.
14141 library_names_spec='${libname}${release}.a $libname.a'
14142 soname_spec='${libname}${release}${shared_ext}$major'
14143 fi
14144 shlibpath_var=LIBPATH
14145 fi
14146 ;;
14147
14148amigaos*)
14149 library_names_spec='$libname.ixlibrary $libname.a'
14150 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14151 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'
14152 ;;
14153
14154beos*)
14155 library_names_spec='${libname}${shared_ext}'
14156 dynamic_linker="$host_os ld.so"
14157 shlibpath_var=LIBRARY_PATH
14158 ;;
14159
14160bsdi4*)
14161 version_type=linux
14162 need_version=no
14163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14164 soname_spec='${libname}${release}${shared_ext}$major'
14165 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14166 shlibpath_var=LD_LIBRARY_PATH
14167 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14168 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14169 # the default ld.so.conf also contains /usr/contrib/lib and
14170 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14171 # libtool to hard-code these into programs
14172 ;;
14173
14174cygwin* | mingw* | pw32*)
14175 version_type=windows
14176 shrext=".dll"
14177 need_version=no
14178 need_lib_prefix=no
14179
14180 case $GCC,$host_os in
14181 yes,cygwin* | yes,mingw* | yes,pw32*)
14182 library_names_spec='$libname.dll.a'
14183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14184 postinstall_cmds='base_file=`basename \${file}`~
14185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14186 dldir=$destdir/`dirname \$dlpath`~
14187 test -d \$dldir || mkdir -p \$dldir~
14188 $install_prog $dir/$dlname \$dldir/$dlname'
14189 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14190 dlpath=$dir/\$dldll~
14191 $rm \$dlpath'
14192 shlibpath_overrides_runpath=yes
14193
14194 case $host_os in
14195 cygwin*)
14196 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14197 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14198 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14199 ;;
14200 mingw*)
14201 # MinGW DLLs use traditional 'lib' prefix
14202 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14203 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14204 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14205 # It is most probably a Windows format PATH printed by
14206 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14207 # path with ; separators, and with drive letters. We can handle the
14208 # drive letters (cygwin fileutils understands them), so leave them,
14209 # especially as we might pass files found there to a mingw objdump,
14210 # which wouldn't understand a cygwinified path. Ahh.
14211 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14212 else
14213 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14214 fi
14215 ;;
14216 pw32*)
14217 # pw32 DLLs use 'pw' prefix rather than 'lib'
14218 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14219 ;;
14220 esac
14221 ;;
14222
14223 *)
14224 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14225 ;;
14226 esac
14227 dynamic_linker='Win32 ld.exe'
14228 # FIXME: first we should search . and the directory the executable is in
14229 shlibpath_var=PATH
14230 ;;
14231
14232darwin* | rhapsody*)
14233 dynamic_linker="$host_os dyld"
14234 version_type=darwin
14235 need_lib_prefix=no
14236 need_version=no
14237 # FIXME: Relying on posixy $() will cause problems for
14238 # cross-compilation, but unfortunately the echo tests do not
14239 # yet detect zsh echo's removal of \ escapes.
14240 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14241 soname_spec='${libname}${release}${major}$shared_ext'
14242 shlibpath_overrides_runpath=yes
14243 shlibpath_var=DYLD_LIBRARY_PATH
14244 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14245 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14246 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14247 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"`
14248 fi
14249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14250 ;;
14251
14252dgux*)
14253 version_type=linux
14254 need_lib_prefix=no
14255 need_version=no
14256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14257 soname_spec='${libname}${release}${shared_ext}$major'
14258 shlibpath_var=LD_LIBRARY_PATH
14259 ;;
14260
14261freebsd1*)
14262 dynamic_linker=no
14263 ;;
14264
14265freebsd*)
14266 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14267 version_type=freebsd-$objformat
14268 case $version_type in
14269 freebsd-elf*)
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14271 need_version=no
14272 need_lib_prefix=no
14273 ;;
14274 freebsd-*)
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14276 need_version=yes
14277 ;;
14278 esac
14279 shlibpath_var=LD_LIBRARY_PATH
14280 case $host_os in
14281 freebsd2*)
14282 shlibpath_overrides_runpath=yes
14283 ;;
14284 freebsd3.01* | freebsdelf3.01*)
14285 shlibpath_overrides_runpath=yes
14286 hardcode_into_libs=yes
14287 ;;
14288 *) # from 3.2 on
14289 shlibpath_overrides_runpath=no
14290 hardcode_into_libs=yes
14291 ;;
14292 esac
14293 ;;
14294
14295gnu*)
14296 version_type=linux
14297 need_lib_prefix=no
14298 need_version=no
14299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14300 soname_spec='${libname}${release}${shared_ext}$major'
14301 shlibpath_var=LD_LIBRARY_PATH
14302 hardcode_into_libs=yes
14303 ;;
14304
14305hpux9* | hpux10* | hpux11*)
14306 # Give a soname corresponding to the major version so that dld.sl refuses to
14307 # link against other versions.
14308 version_type=sunos
14309 need_lib_prefix=no
14310 need_version=no
14311 case "$host_cpu" in
14312 ia64*)
14313 shrext='.so'
14314 hardcode_into_libs=yes
14315 dynamic_linker="$host_os dld.so"
14316 shlibpath_var=LD_LIBRARY_PATH
14317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14319 soname_spec='${libname}${release}${shared_ext}$major'
14320 if test "X$HPUX_IA64_MODE" = X32; then
14321 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14322 else
14323 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14324 fi
14325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14326 ;;
14327 hppa*64*)
14328 shrext='.sl'
14329 hardcode_into_libs=yes
14330 dynamic_linker="$host_os dld.sl"
14331 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14334 soname_spec='${libname}${release}${shared_ext}$major'
14335 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14337 ;;
14338 *)
14339 shrext='.sl'
14340 dynamic_linker="$host_os dld.sl"
14341 shlibpath_var=SHLIB_PATH
14342 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14344 soname_spec='${libname}${release}${shared_ext}$major'
14345 ;;
14346 esac
14347 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14348 postinstall_cmds='chmod 555 $lib'
14349 ;;
14350
14351irix5* | irix6* | nonstopux*)
14352 case $host_os in
14353 nonstopux*) version_type=nonstopux ;;
14354 *)
14355 if test "$lt_cv_prog_gnu_ld" = yes; then
14356 version_type=linux
14357 else
14358 version_type=irix
14359 fi ;;
14360 esac
14361 need_lib_prefix=no
14362 need_version=no
14363 soname_spec='${libname}${release}${shared_ext}$major'
14364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14365 case $host_os in
14366 irix5* | nonstopux*)
14367 libsuff= shlibsuff=
14368 ;;
14369 *)
14370 case $LD in # libtool.m4 will add one of these switches to LD
14371 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14372 libsuff= shlibsuff= libmagic=32-bit;;
14373 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14374 libsuff=32 shlibsuff=N32 libmagic=N32;;
14375 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14376 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14377 *) libsuff= shlibsuff= libmagic=never-match;;
14378 esac
14379 ;;
14380 esac
14381 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14382 shlibpath_overrides_runpath=no
14383 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14384 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14385 hardcode_into_libs=yes
14386 ;;
14387
14388# No shared lib support for Linux oldld, aout, or coff.
14389linux*oldld* | linux*aout* | linux*coff*)
14390 dynamic_linker=no
14391 ;;
14392
14393# This must be Linux ELF.
14394linux*)
14395 version_type=linux
14396 need_lib_prefix=no
14397 need_version=no
14398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14399 soname_spec='${libname}${release}${shared_ext}$major'
14400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14401 shlibpath_var=LD_LIBRARY_PATH
14402 shlibpath_overrides_runpath=no
14403 # This implies no fast_install, which is unacceptable.
14404 # Some rework will be needed to allow for fast_install
14405 # before this can be enabled.
14406 hardcode_into_libs=yes
14407
14408 # We used to test for /lib/ld.so.1 and disable shared libraries on
14409 # powerpc, because MkLinux only supported shared libraries with the
14410 # GNU dynamic linker. Since this was broken with cross compilers,
14411 # most powerpc-linux boxes support dynamic linking these days and
14412 # people can always --disable-shared, the test was removed, and we
14413 # assume the GNU/Linux dynamic linker is in use.
14414 dynamic_linker='GNU/Linux ld.so'
14415 ;;
14416
14417netbsd*)
14418 version_type=sunos
14419 need_lib_prefix=no
14420 need_version=no
14421 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14424 dynamic_linker='NetBSD (a.out) ld.so'
14425 else
14426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14427 soname_spec='${libname}${release}${shared_ext}$major'
14428 dynamic_linker='NetBSD ld.elf_so'
14429 fi
14430 shlibpath_var=LD_LIBRARY_PATH
14431 shlibpath_overrides_runpath=yes
14432 hardcode_into_libs=yes
14433 ;;
14434
14435newsos6)
14436 version_type=linux
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438 shlibpath_var=LD_LIBRARY_PATH
14439 shlibpath_overrides_runpath=yes
14440 ;;
14441
14442nto-qnx)
14443 version_type=linux
14444 need_lib_prefix=no
14445 need_version=no
14446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14447 soname_spec='${libname}${release}${shared_ext}$major'
14448 shlibpath_var=LD_LIBRARY_PATH
14449 shlibpath_overrides_runpath=yes
14450 ;;
14451
14452openbsd*)
14453 version_type=sunos
14454 need_lib_prefix=no
14455 need_version=no
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14458 shlibpath_var=LD_LIBRARY_PATH
14459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14460 case $host_os in
14461 openbsd2.[89] | openbsd2.[89].*)
14462 shlibpath_overrides_runpath=no
14463 ;;
14464 *)
14465 shlibpath_overrides_runpath=yes
14466 ;;
14467 esac
14468 else
14469 shlibpath_overrides_runpath=yes
14470 fi
14471 ;;
14472
14473os2*)
14474 libname_spec='$name'
14475 shrext=".dll"
14476 need_lib_prefix=no
14477 library_names_spec='$libname${shared_ext} $libname.a'
14478 dynamic_linker='OS/2 ld.exe'
14479 shlibpath_var=LIBPATH
14480 ;;
14481
14482osf3* | osf4* | osf5*)
14483 version_type=osf
14484 need_lib_prefix=no
14485 need_version=no
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 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14490 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14491 ;;
14492
14493sco3.2v5*)
14494 version_type=osf
14495 soname_spec='${libname}${release}${shared_ext}$major'
14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497 shlibpath_var=LD_LIBRARY_PATH
14498 ;;
14499
14500solaris*)
14501 version_type=linux
14502 need_lib_prefix=no
14503 need_version=no
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 shlibpath_var=LD_LIBRARY_PATH
14507 shlibpath_overrides_runpath=yes
14508 hardcode_into_libs=yes
14509 # ldd complains unless libraries are executable
14510 postinstall_cmds='chmod +x $lib'
14511 ;;
14512
14513sunos4*)
14514 version_type=sunos
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14516 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 shlibpath_overrides_runpath=yes
14519 if test "$with_gnu_ld" = yes; then
14520 need_lib_prefix=no
14521 fi
14522 need_version=yes
14523 ;;
14524
14525sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14526 version_type=linux
14527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528 soname_spec='${libname}${release}${shared_ext}$major'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 case $host_vendor in
14531 sni)
14532 shlibpath_overrides_runpath=no
14533 need_lib_prefix=no
14534 export_dynamic_flag_spec='${wl}-Blargedynsym'
14535 runpath_var=LD_RUN_PATH
14536 ;;
14537 siemens)
14538 need_lib_prefix=no
14539 ;;
14540 motorola)
14541 need_lib_prefix=no
14542 need_version=no
14543 shlibpath_overrides_runpath=no
14544 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14545 ;;
14546 esac
14547 ;;
14548
14549sysv4*MP*)
14550 if test -d /usr/nec ;then
14551 version_type=linux
14552 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14553 soname_spec='$libname${shared_ext}.$major'
14554 shlibpath_var=LD_LIBRARY_PATH
14555 fi
14556 ;;
14557
14558uts4*)
14559 version_type=linux
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14561 soname_spec='${libname}${release}${shared_ext}$major'
14562 shlibpath_var=LD_LIBRARY_PATH
14563 ;;
14564
14565*)
14566 dynamic_linker=no
14567 ;;
14568esac
14569echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14570echo "${ECHO_T}$dynamic_linker" >&6
14571test "$dynamic_linker" = no && can_build_shared=no
14572
14573
14574# The else clause should only fire when bootstrapping the
14575# libtool distribution, otherwise you forgot to ship ltmain.sh
14576# with your package, and you will get complaints that there are
14577# no rules to generate ltmain.sh.
14578if test -f "$ltmain"; then
14579 # See if we are running on zsh, and set the options which allow our commands through
14580 # without removal of \ escapes.
14581 if test -n "${ZSH_VERSION+set}" ; then
14582 setopt NO_GLOB_SUBST
14583 fi
14584 # Now quote all the things that may contain metacharacters while being
14585 # careful not to overquote the AC_SUBSTed values. We take copies of the
14586 # variables and quote the copies for generation of the libtool script.
14587 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14588 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14589 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14590 deplibs_check_method reload_flag reload_cmds need_locks \
14591 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14592 lt_cv_sys_global_symbol_to_c_name_address \
14593 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14594 old_postinstall_cmds old_postuninstall_cmds \
14595 compiler_F77 \
14596 CC_F77 \
14597 LD_F77 \
14598 lt_prog_compiler_wl_F77 \
14599 lt_prog_compiler_pic_F77 \
14600 lt_prog_compiler_static_F77 \
14601 lt_prog_compiler_no_builtin_flag_F77 \
14602 export_dynamic_flag_spec_F77 \
14603 thread_safe_flag_spec_F77 \
14604 whole_archive_flag_spec_F77 \
14605 enable_shared_with_static_runtimes_F77 \
14606 old_archive_cmds_F77 \
14607 old_archive_from_new_cmds_F77 \
14608 predep_objects_F77 \
14609 postdep_objects_F77 \
14610 predeps_F77 \
14611 postdeps_F77 \
14612 compiler_lib_search_path_F77 \
14613 archive_cmds_F77 \
14614 archive_expsym_cmds_F77 \
14615 postinstall_cmds_F77 \
14616 postuninstall_cmds_F77 \
14617 old_archive_from_expsyms_cmds_F77 \
14618 allow_undefined_flag_F77 \
14619 no_undefined_flag_F77 \
14620 export_symbols_cmds_F77 \
14621 hardcode_libdir_flag_spec_F77 \
14622 hardcode_libdir_flag_spec_ld_F77 \
14623 hardcode_libdir_separator_F77 \
14624 hardcode_automatic_F77 \
14625 module_cmds_F77 \
14626 module_expsym_cmds_F77 \
14627 lt_cv_prog_compiler_c_o_F77 \
14628 exclude_expsyms_F77 \
14629 include_expsyms_F77; do
14630
14631 case $var in
14632 old_archive_cmds_F77 | \
14633 old_archive_from_new_cmds_F77 | \
14634 archive_cmds_F77 | \
14635 archive_expsym_cmds_F77 | \
14636 module_cmds_F77 | \
14637 module_expsym_cmds_F77 | \
14638 old_archive_from_expsyms_cmds_F77 | \
14639 export_symbols_cmds_F77 | \
14640 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14641 postinstall_cmds | postuninstall_cmds | \
14642 old_postinstall_cmds | old_postuninstall_cmds | \
14643 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14644 # Double-quote double-evaled strings.
14645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14646 ;;
14647 *)
14648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14649 ;;
14650 esac
14651 done
14652
14653 case $lt_echo in
14654 *'\$0 --fallback-echo"')
14655 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14656 ;;
14657 esac
14658
14659cfgfile="$ofile"
14660
14661 cat <<__EOF__ >> "$cfgfile"
14662# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14663
14664# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14665
14666# Shell to use when invoking shell scripts.
14667SHELL=$lt_SHELL
14668
14669# Whether or not to build shared libraries.
14670build_libtool_libs=$enable_shared
14671
14672# Whether or not to build static libraries.
14673build_old_libs=$enable_static
14674
14675# Whether or not to add -lc for building shared libraries.
14676build_libtool_need_lc=$archive_cmds_need_lc_F77
14677
14678# Whether or not to disallow shared libs when runtime libs are static
14679allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14680
14681# Whether or not to optimize for fast installation.
14682fast_install=$enable_fast_install
14683
14684# The host system.
14685host_alias=$host_alias
14686host=$host
14687
14688# An echo program that does not interpret backslashes.
14689echo=$lt_echo
14690
14691# The archiver.
14692AR=$lt_AR
14693AR_FLAGS=$lt_AR_FLAGS
14694
14695# A C compiler.
14696LTCC=$lt_LTCC
14697
14698# A language-specific compiler.
14699CC=$lt_compiler_F77
14700
14701# Is the compiler the GNU C compiler?
14702with_gcc=$GCC_F77
14703
14704# An ERE matcher.
14705EGREP=$lt_EGREP
14706
14707# The linker used to build libraries.
14708LD=$lt_LD_F77
14709
14710# Whether we need hard or soft links.
14711LN_S=$lt_LN_S
14712
14713# A BSD-compatible nm program.
14714NM=$lt_NM
14715
14716# A symbol stripping program
14717STRIP=$STRIP
14718
14719# Used to examine libraries when file_magic_cmd begins "file"
14720MAGIC_CMD=$MAGIC_CMD
14721
14722# Used on cygwin: DLL creation program.
14723DLLTOOL="$DLLTOOL"
14724
14725# Used on cygwin: object dumper.
14726OBJDUMP="$OBJDUMP"
14727
14728# Used on cygwin: assembler.
14729AS="$AS"
14730
14731# The name of the directory that contains temporary libtool files.
14732objdir=$objdir
14733
14734# How to create reloadable object files.
14735reload_flag=$lt_reload_flag
14736reload_cmds=$lt_reload_cmds
14737
14738# How to pass a linker flag through the compiler.
14739wl=$lt_lt_prog_compiler_wl_F77
14740
14741# Object file suffix (normally "o").
14742objext="$ac_objext"
14743
14744# Old archive suffix (normally "a").
14745libext="$libext"
14746
14747# Shared library suffix (normally ".so").
14748shrext='$shrext'
14749
14750# Executable file suffix (normally "").
14751exeext="$exeext"
14752
14753# Additional compiler flags for building library objects.
14754pic_flag=$lt_lt_prog_compiler_pic_F77
14755pic_mode=$pic_mode
14756
14757# What is the maximum length of a command?
14758max_cmd_len=$lt_cv_sys_max_cmd_len
14759
14760# Does compiler simultaneously support -c and -o options?
14761compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14762
14763# Must we lock files when doing compilation ?
14764need_locks=$lt_need_locks
14765
14766# Do we need the lib prefix for modules?
14767need_lib_prefix=$need_lib_prefix
14768
14769# Do we need a version for libraries?
14770need_version=$need_version
14771
14772# Whether dlopen is supported.
14773dlopen_support=$enable_dlopen
14774
14775# Whether dlopen of programs is supported.
14776dlopen_self=$enable_dlopen_self
14777
14778# Whether dlopen of statically linked programs is supported.
14779dlopen_self_static=$enable_dlopen_self_static
14780
14781# Compiler flag to prevent dynamic linking.
14782link_static_flag=$lt_lt_prog_compiler_static_F77
14783
14784# Compiler flag to turn off builtin functions.
14785no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14786
14787# Compiler flag to allow reflexive dlopens.
14788export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14789
14790# Compiler flag to generate shared objects directly from archives.
14791whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14792
14793# Compiler flag to generate thread-safe objects.
14794thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14795
14796# Library versioning type.
14797version_type=$version_type
14798
14799# Format of library name prefix.
14800libname_spec=$lt_libname_spec
14801
14802# List of archive names. First name is the real one, the rest are links.
14803# The last name is the one that the linker finds with -lNAME.
14804library_names_spec=$lt_library_names_spec
14805
14806# The coded name of the library, if different from the real name.
14807soname_spec=$lt_soname_spec
14808
14809# Commands used to build and install an old-style archive.
14810RANLIB=$lt_RANLIB
14811old_archive_cmds=$lt_old_archive_cmds_F77
14812old_postinstall_cmds=$lt_old_postinstall_cmds
14813old_postuninstall_cmds=$lt_old_postuninstall_cmds
14814
14815# Create an old-style archive from a shared archive.
14816old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14817
14818# Create a temporary old-style archive to link instead of a shared archive.
14819old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14820
14821# Commands used to build and install a shared archive.
14822archive_cmds=$lt_archive_cmds_F77
14823archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14824postinstall_cmds=$lt_postinstall_cmds
14825postuninstall_cmds=$lt_postuninstall_cmds
14826
14827# Commands used to build a loadable module (assumed same as above if empty)
14828module_cmds=$lt_module_cmds_F77
14829module_expsym_cmds=$lt_module_expsym_cmds_F77
14830
14831# Commands to strip libraries.
14832old_striplib=$lt_old_striplib
14833striplib=$lt_striplib
14834
14835# Dependencies to place before the objects being linked to create a
14836# shared library.
14837predep_objects=$lt_predep_objects_F77
14838
14839# Dependencies to place after the objects being linked to create a
14840# shared library.
14841postdep_objects=$lt_postdep_objects_F77
14842
14843# Dependencies to place before the objects being linked to create a
14844# shared library.
14845predeps=$lt_predeps_F77
14846
14847# Dependencies to place after the objects being linked to create a
14848# shared library.
14849postdeps=$lt_postdeps_F77
14850
14851# The library search path used internally by the compiler when linking
14852# a shared library.
14853compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14854
14855# Method to check whether dependent libraries are shared objects.
14856deplibs_check_method=$lt_deplibs_check_method
14857
14858# Command to use when deplibs_check_method == file_magic.
14859file_magic_cmd=$lt_file_magic_cmd
14860
14861# Flag that allows shared libraries with undefined symbols to be built.
14862allow_undefined_flag=$lt_allow_undefined_flag_F77
14863
14864# Flag that forces no undefined symbols.
14865no_undefined_flag=$lt_no_undefined_flag_F77
14866
14867# Commands used to finish a libtool library installation in a directory.
14868finish_cmds=$lt_finish_cmds
14869
14870# Same as above, but a single script fragment to be evaled but not shown.
14871finish_eval=$lt_finish_eval
14872
14873# Take the output of nm and produce a listing of raw symbols and C names.
14874global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14875
14876# Transform the output of nm in a proper C declaration
14877global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14878
14879# Transform the output of nm in a C name address pair
14880global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14881
14882# This is the shared library runtime path variable.
14883runpath_var=$runpath_var
14884
14885# This is the shared library path variable.
14886shlibpath_var=$shlibpath_var
14887
14888# Is shlibpath searched before the hard-coded library search path?
14889shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14890
14891# How to hardcode a shared library path into an executable.
14892hardcode_action=$hardcode_action_F77
14893
14894# Whether we should hardcode library paths into libraries.
14895hardcode_into_libs=$hardcode_into_libs
14896
14897# Flag to hardcode \$libdir into a binary during linking.
14898# This must work even if \$libdir does not exist.
14899hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14900
14901# If ld is used when linking, flag to hardcode \$libdir into
14902# a binary during linking. This must work even if \$libdir does
14903# not exist.
14904hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14905
14906# Whether we need a single -rpath flag with a separated argument.
14907hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14908
14909# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14910# resulting binary.
14911hardcode_direct=$hardcode_direct_F77
14912
14913# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14914# resulting binary.
14915hardcode_minus_L=$hardcode_minus_L_F77
14916
14917# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14918# the resulting binary.
14919hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14920
14921# Set to yes if building a shared library automatically hardcodes DIR into the library
14922# and all subsequent libraries and executables linked against it.
14923hardcode_automatic=$hardcode_automatic_F77
14924
14925# Variables whose values should be saved in libtool wrapper scripts and
14926# restored at relink time.
14927variables_saved_for_relink="$variables_saved_for_relink"
14928
14929# Whether libtool must link a program against all its dependency libraries.
14930link_all_deplibs=$link_all_deplibs_F77
14931
14932# Compile-time system search path for libraries
14933sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14934
14935# Run-time system search path for libraries
14936sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14937
14938# Fix the shell variable \$srcfile for the compiler.
14939fix_srcfile_path="$fix_srcfile_path_F77"
14940
14941# Set to yes if exported symbols are required.
14942always_export_symbols=$always_export_symbols_F77
14943
14944# The commands to list exported symbols.
14945export_symbols_cmds=$lt_export_symbols_cmds_F77
14946
14947# The commands to extract the exported symbol list from a shared archive.
14948extract_expsyms_cmds=$lt_extract_expsyms_cmds
14949
14950# Symbols that should not be listed in the preloaded symbols.
14951exclude_expsyms=$lt_exclude_expsyms_F77
14952
14953# Symbols that must always be exported.
14954include_expsyms=$lt_include_expsyms_F77
14955
14956# ### END LIBTOOL TAG CONFIG: $tagname
14957
14958__EOF__
14959
14960
14961else
14962 # If there is no Makefile yet, we rely on a make rule to execute
14963 # `config.status --recheck' to rerun these tests and create the
14964 # libtool script then.
14965 test -f Makefile && make "$ltmain"
14966fi
14967
14968
14969ac_ext=c
14970ac_cpp='$CPP $CPPFLAGS'
14971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14973ac_compiler_gnu=$ac_cv_c_compiler_gnu
14974
14975CC="$lt_save_CC"
14976
14977 else
14978 tagname=""
14979 fi
14980 ;;
14981
14982 GCJ)
14983 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14984
14985
14986
14987# Source file extension for Java test sources.
14988ac_ext=java
14989
14990# Object file extension for compiled Java test sources.
14991objext=o
14992objext_GCJ=$objext
14993
14994# Code to be used in simple compile tests
14995lt_simple_compile_test_code="class foo {}\n"
14996
14997# Code to be used in simple link tests
14998lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14999
15000# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15001
15002# If no C compiler was specified, use CC.
15003LTCC=${LTCC-"$CC"}
15004
15005# Allow CC to be a program name with arguments.
15006compiler=$CC
15007
15008
15009# Allow CC to be a program name with arguments.
15010lt_save_CC="$CC"
15011CC=${GCJ-"gcj"}
15012compiler=$CC
15013compiler_GCJ=$CC
15014
15015# GCJ did not exist at the time GCC didn't implicitly link libc in.
15016archive_cmds_need_lc_GCJ=no
15017
15018## CAVEAT EMPTOR:
15019## There is no encapsulation within the following macros, do not change
15020## the running order or otherwise move them around unless you know exactly
15021## what you are doing...
15022
15023lt_prog_compiler_no_builtin_flag_GCJ=
15024
15025if test "$GCC" = yes; then
15026 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15027
15028 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15029echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15030if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15032else
15033 lt_cv_prog_compiler_rtti_exceptions=no
15034 ac_outfile=conftest.$ac_objext
15035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15036 lt_compiler_flag="-fno-rtti -fno-exceptions"
15037 # Insert the option either (1) after the last *FLAGS variable, or
15038 # (2) before a word containing "conftest.", or (3) at the end.
15039 # Note that $ac_compile itself does not contain backslashes and begins
15040 # with a dollar sign (not a hyphen), so the echo should work correctly.
15041 # The option is referenced via a variable to avoid confusing sed.
15042 lt_compile=`echo "$ac_compile" | $SED \
15043 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15045 -e 's:$: $lt_compiler_flag:'`
John Criswell759c3ed2003-10-28 19:21:11 +000015046 (eval echo "\"\$as_me:15046: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015047 (eval "$lt_compile" 2>conftest.err)
15048 ac_status=$?
15049 cat conftest.err >&5
John Criswell759c3ed2003-10-28 19:21:11 +000015050 echo "$as_me:15050: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015051 if (exit $ac_status) && test -s "$ac_outfile"; then
15052 # The compiler can only warn and ignore the option if not recognized
15053 # So say no if there are warnings
15054 if test ! -s conftest.err; then
15055 lt_cv_prog_compiler_rtti_exceptions=yes
15056 fi
15057 fi
15058 $rm conftest*
15059
15060fi
15061echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15062echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15063
15064if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15065 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15066else
15067 :
15068fi
15069
15070fi
15071
15072lt_prog_compiler_wl_GCJ=
15073lt_prog_compiler_pic_GCJ=
15074lt_prog_compiler_static_GCJ=
15075
15076echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15077echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15078
15079 if test "$GCC" = yes; then
15080 lt_prog_compiler_wl_GCJ='-Wl,'
15081 lt_prog_compiler_static_GCJ='-static'
15082
15083 case $host_os in
15084 aix*)
15085 # All AIX code is PIC.
15086 if test "$host_cpu" = ia64; then
15087 # AIX 5 now supports IA64 processor
15088 lt_prog_compiler_static_GCJ='-Bstatic'
15089 fi
15090 ;;
15091
15092 amigaos*)
15093 # FIXME: we need at least 68020 code to build shared libraries, but
15094 # adding the `-m68020' flag to GCC prevents building anything better,
15095 # like `-m68040'.
15096 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15097 ;;
15098
15099 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15100 # PIC is the default for these OSes.
15101 ;;
15102
15103 mingw* | pw32* | os2*)
15104 # This hack is so that the source file can tell whether it is being
15105 # built for inclusion in a dll (and should export symbols for example).
15106 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15107 ;;
15108
15109 darwin* | rhapsody*)
15110 # PIC is the default on this platform
15111 # Common symbols not allowed in MH_DYLIB files
15112 lt_prog_compiler_pic_GCJ='-fno-common'
15113 ;;
15114
15115 msdosdjgpp*)
15116 # Just because we use GCC doesn't mean we suddenly get shared libraries
15117 # on systems that don't support them.
15118 lt_prog_compiler_can_build_shared_GCJ=no
15119 enable_shared=no
15120 ;;
15121
15122 sysv4*MP*)
15123 if test -d /usr/nec; then
15124 lt_prog_compiler_pic_GCJ=-Kconform_pic
15125 fi
15126 ;;
15127
15128 hpux*)
15129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15130 # not for PA HP-UX.
15131 case "$host_cpu" in
15132 hppa*64*|ia64*)
15133 # +Z the default
15134 ;;
15135 *)
15136 lt_prog_compiler_pic_GCJ='-fPIC'
15137 ;;
15138 esac
15139 ;;
15140
15141 *)
15142 lt_prog_compiler_pic_GCJ='-fPIC'
15143 ;;
15144 esac
15145 else
15146 # PORTME Check for flag to pass linker flags through the system compiler.
15147 case $host_os in
15148 aix*)
15149 lt_prog_compiler_wl_GCJ='-Wl,'
15150 if test "$host_cpu" = ia64; then
15151 # AIX 5 now supports IA64 processor
15152 lt_prog_compiler_static_GCJ='-Bstatic'
15153 else
15154 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15155 fi
15156 ;;
15157
15158 mingw* | pw32* | os2*)
15159 # This hack is so that the source file can tell whether it is being
15160 # built for inclusion in a dll (and should export symbols for example).
15161 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15162 ;;
15163
15164 hpux9* | hpux10* | hpux11*)
15165 lt_prog_compiler_wl_GCJ='-Wl,'
15166 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15167 # not for PA HP-UX.
15168 case "$host_cpu" in
15169 hppa*64*|ia64*)
15170 # +Z the default
15171 ;;
15172 *)
15173 lt_prog_compiler_pic_GCJ='+Z'
15174 ;;
15175 esac
15176 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15177 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15178 ;;
15179
15180 irix5* | irix6* | nonstopux*)
15181 lt_prog_compiler_wl_GCJ='-Wl,'
15182 # PIC (with -KPIC) is the default.
15183 lt_prog_compiler_static_GCJ='-non_shared'
15184 ;;
15185
15186 newsos6)
15187 lt_prog_compiler_pic_GCJ='-KPIC'
15188 lt_prog_compiler_static_GCJ='-Bstatic'
15189 ;;
15190
15191 linux*)
15192 case $CC in
15193 icc|ecc)
15194 lt_prog_compiler_wl_GCJ='-Wl,'
15195 lt_prog_compiler_pic_GCJ='-KPIC'
15196 lt_prog_compiler_static_GCJ='-static'
15197 ;;
15198 ccc)
15199 lt_prog_compiler_wl_GCJ='-Wl,'
15200 # All Alpha code is PIC.
15201 lt_prog_compiler_static_GCJ='-non_shared'
15202 ;;
15203 esac
15204 ;;
15205
15206 osf3* | osf4* | osf5*)
15207 lt_prog_compiler_wl_GCJ='-Wl,'
15208 # All OSF/1 code is PIC.
15209 lt_prog_compiler_static_GCJ='-non_shared'
15210 ;;
15211
15212 sco3.2v5*)
15213 lt_prog_compiler_pic_GCJ='-Kpic'
15214 lt_prog_compiler_static_GCJ='-dn'
15215 ;;
15216
15217 solaris*)
15218 lt_prog_compiler_wl_GCJ='-Wl,'
15219 lt_prog_compiler_pic_GCJ='-KPIC'
15220 lt_prog_compiler_static_GCJ='-Bstatic'
15221 ;;
15222
15223 sunos4*)
15224 lt_prog_compiler_wl_GCJ='-Qoption ld '
15225 lt_prog_compiler_pic_GCJ='-PIC'
15226 lt_prog_compiler_static_GCJ='-Bstatic'
15227 ;;
15228
15229 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15230 lt_prog_compiler_wl_GCJ='-Wl,'
15231 lt_prog_compiler_pic_GCJ='-KPIC'
15232 lt_prog_compiler_static_GCJ='-Bstatic'
15233 ;;
15234
15235 sysv4*MP*)
15236 if test -d /usr/nec ;then
15237 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15238 lt_prog_compiler_static_GCJ='-Bstatic'
15239 fi
15240 ;;
15241
15242 uts4*)
15243 lt_prog_compiler_pic_GCJ='-pic'
15244 lt_prog_compiler_static_GCJ='-Bstatic'
15245 ;;
15246
15247 *)
15248 lt_prog_compiler_can_build_shared_GCJ=no
15249 ;;
15250 esac
15251 fi
15252
15253echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15254echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15255
15256#
15257# Check to make sure the PIC flag actually works.
15258#
15259if test -n "$lt_prog_compiler_pic_GCJ"; then
15260 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15261echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15262if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15264else
15265 lt_prog_compiler_pic_works_GCJ=no
15266 ac_outfile=conftest.$ac_objext
15267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15268 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15269 # Insert the option either (1) after the last *FLAGS variable, or
15270 # (2) before a word containing "conftest.", or (3) at the end.
15271 # Note that $ac_compile itself does not contain backslashes and begins
15272 # with a dollar sign (not a hyphen), so the echo should work correctly.
15273 # The option is referenced via a variable to avoid confusing sed.
15274 lt_compile=`echo "$ac_compile" | $SED \
15275 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15277 -e 's:$: $lt_compiler_flag:'`
John Criswell759c3ed2003-10-28 19:21:11 +000015278 (eval echo "\"\$as_me:15278: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015279 (eval "$lt_compile" 2>conftest.err)
15280 ac_status=$?
15281 cat conftest.err >&5
John Criswell759c3ed2003-10-28 19:21:11 +000015282 echo "$as_me:15282: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015283 if (exit $ac_status) && test -s "$ac_outfile"; then
15284 # The compiler can only warn and ignore the option if not recognized
15285 # So say no if there are warnings
15286 if test ! -s conftest.err; then
15287 lt_prog_compiler_pic_works_GCJ=yes
15288 fi
15289 fi
15290 $rm conftest*
15291
15292fi
15293echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15294echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15295
15296if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15297 case $lt_prog_compiler_pic_GCJ in
15298 "" | " "*) ;;
15299 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15300 esac
15301else
15302 lt_prog_compiler_pic_GCJ=
15303 lt_prog_compiler_can_build_shared_GCJ=no
15304fi
15305
15306fi
15307case "$host_os" in
15308 # For platforms which do not support PIC, -DPIC is meaningless:
15309 *djgpp*)
15310 lt_prog_compiler_pic_GCJ=
15311 ;;
15312 *)
15313 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15314 ;;
15315esac
15316
15317echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15318echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15319if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15321else
15322 lt_cv_prog_compiler_c_o_GCJ=no
15323 $rm -r conftest 2>/dev/null
15324 mkdir conftest
15325 cd conftest
15326 mkdir out
15327 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15328
15329 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15330 # that will create temporary files in the current directory regardless of
15331 # the output directory. Thus, making CWD read-only will cause this test
15332 # to fail, enabling locking or at least warning the user not to do parallel
15333 # builds.
15334 chmod -w .
15335
15336 lt_compiler_flag="-o out/conftest2.$ac_objext"
15337 # Insert the option either (1) after the last *FLAGS variable, or
15338 # (2) before a word containing "conftest.", or (3) at the end.
15339 # Note that $ac_compile itself does not contain backslashes and begins
15340 # with a dollar sign (not a hyphen), so the echo should work correctly.
15341 lt_compile=`echo "$ac_compile" | $SED \
15342 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15344 -e 's:$: $lt_compiler_flag:'`
John Criswell759c3ed2003-10-28 19:21:11 +000015345 (eval echo "\"\$as_me:15345: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015346 (eval "$lt_compile" 2>out/conftest.err)
15347 ac_status=$?
15348 cat out/conftest.err >&5
John Criswell759c3ed2003-10-28 19:21:11 +000015349 echo "$as_me:15349: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015350 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15351 then
15352 # The compiler can only warn and ignore the option if not recognized
15353 # So say no if there are warnings
15354 if test ! -s out/conftest.err; then
15355 lt_cv_prog_compiler_c_o_GCJ=yes
15356 fi
15357 fi
15358 chmod u+w .
15359 $rm conftest* out/*
15360 rmdir out
15361 cd ..
15362 rmdir conftest
15363 $rm conftest*
15364
15365fi
15366echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15367echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15368
15369
15370hard_links="nottested"
15371if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15372 # do not overwrite the value of need_locks provided by the user
15373 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15374echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15375 hard_links=yes
15376 $rm conftest*
15377 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15378 touch conftest.a
15379 ln conftest.a conftest.b 2>&5 || hard_links=no
15380 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15381 echo "$as_me:$LINENO: result: $hard_links" >&5
15382echo "${ECHO_T}$hard_links" >&6
15383 if test "$hard_links" = no; then
15384 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15385echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15386 need_locks=warn
15387 fi
15388else
15389 need_locks=no
15390fi
15391
15392echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15393echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15394
15395 runpath_var=
15396 allow_undefined_flag_GCJ=
15397 enable_shared_with_static_runtimes_GCJ=no
15398 archive_cmds_GCJ=
15399 archive_expsym_cmds_GCJ=
15400 old_archive_From_new_cmds_GCJ=
15401 old_archive_from_expsyms_cmds_GCJ=
15402 export_dynamic_flag_spec_GCJ=
15403 whole_archive_flag_spec_GCJ=
15404 thread_safe_flag_spec_GCJ=
15405 hardcode_libdir_flag_spec_GCJ=
15406 hardcode_libdir_flag_spec_ld_GCJ=
15407 hardcode_libdir_separator_GCJ=
15408 hardcode_direct_GCJ=no
15409 hardcode_minus_L_GCJ=no
15410 hardcode_shlibpath_var_GCJ=unsupported
15411 link_all_deplibs_GCJ=unknown
15412 hardcode_automatic_GCJ=no
15413 module_cmds_GCJ=
15414 module_expsym_cmds_GCJ=
15415 always_export_symbols_GCJ=no
15416 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15417 # include_expsyms should be a list of space-separated symbols to be *always*
15418 # included in the symbol list
15419 include_expsyms_GCJ=
15420 # exclude_expsyms can be an extended regexp of symbols to exclude
15421 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15422 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15423 # as well as any symbol that contains `d'.
15424 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15425 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15426 # platforms (ab)use it in PIC code, but their linkers get confused if
15427 # the symbol is explicitly referenced. Since portable code cannot
15428 # rely on this symbol name, it's probably fine to never include it in
15429 # preloaded symbol tables.
15430 extract_expsyms_cmds=
15431
15432 case $host_os in
15433 cygwin* | mingw* | pw32*)
15434 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15435 # When not using gcc, we currently assume that we are using
15436 # Microsoft Visual C++.
15437 if test "$GCC" != yes; then
15438 with_gnu_ld=no
15439 fi
15440 ;;
15441 openbsd*)
15442 with_gnu_ld=no
15443 ;;
15444 esac
15445
15446 ld_shlibs_GCJ=yes
15447 if test "$with_gnu_ld" = yes; then
15448 # If archive_cmds runs LD, not CC, wlarc should be empty
15449 wlarc='${wl}'
15450
15451 # See if GNU ld supports shared libraries.
15452 case $host_os in
15453 aix3* | aix4* | aix5*)
15454 # On AIX/PPC, the GNU linker is very broken
15455 if test "$host_cpu" != ia64; then
15456 ld_shlibs_GCJ=no
15457 cat <<EOF 1>&2
15458
15459*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15460*** to be unable to reliably create shared libraries on AIX.
15461*** Therefore, libtool is disabling shared libraries support. If you
15462*** really care for shared libraries, you may want to modify your PATH
15463*** so that a non-GNU linker is found, and then restart.
15464
15465EOF
15466 fi
15467 ;;
15468
15469 amigaos*)
15470 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)'
15471 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15472 hardcode_minus_L_GCJ=yes
15473
15474 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15475 # that the semantics of dynamic libraries on AmigaOS, at least up
15476 # to version 4, is to share data among multiple programs linked
15477 # with the same dynamic library. Since this doesn't match the
15478 # behavior of shared libraries on other platforms, we can't use
15479 # them.
15480 ld_shlibs_GCJ=no
15481 ;;
15482
15483 beos*)
15484 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15485 allow_undefined_flag_GCJ=unsupported
15486 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15487 # support --undefined. This deserves some investigation. FIXME
15488 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15489 else
15490 ld_shlibs_GCJ=no
15491 fi
15492 ;;
15493
15494 cygwin* | mingw* | pw32*)
15495 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15496 # as there is no search path for DLLs.
15497 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15498 allow_undefined_flag_GCJ=unsupported
15499 always_export_symbols_GCJ=no
15500 enable_shared_with_static_runtimes_GCJ=yes
15501 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15502
15503 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15504 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15505 # If the export-symbols file already is a .def file (1st line
15506 # is EXPORTS), use it as is; otherwise, prepend...
15507 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15508 cp $export_symbols $output_objdir/$soname.def;
15509 else
15510 echo EXPORTS > $output_objdir/$soname.def;
15511 cat $export_symbols >> $output_objdir/$soname.def;
15512 fi~
15513 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15514 else
15515 ld_shlibs=no
15516 fi
15517 ;;
15518
15519 netbsd*)
15520 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15521 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15522 wlarc=
15523 else
15524 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15525 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15526 fi
15527 ;;
15528
15529 solaris* | sysv5*)
15530 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15531 ld_shlibs_GCJ=no
15532 cat <<EOF 1>&2
15533
15534*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15535*** create shared libraries on Solaris systems. Therefore, libtool
15536*** is disabling shared libraries support. We urge you to upgrade GNU
15537*** binutils to release 2.9.1 or newer. Another option is to modify
15538*** your PATH or compiler configuration so that the native linker is
15539*** used, and then restart.
15540
15541EOF
15542 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15543 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15544 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15545 else
15546 ld_shlibs_GCJ=no
15547 fi
15548 ;;
15549
15550 sunos4*)
15551 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15552 wlarc=
15553 hardcode_direct_GCJ=yes
15554 hardcode_shlibpath_var_GCJ=no
15555 ;;
15556
15557 *)
15558 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15559 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15560 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15561 else
15562 ld_shlibs_GCJ=no
15563 fi
15564 ;;
15565 esac
15566
15567 if test "$ld_shlibs_GCJ" = yes; then
15568 runpath_var=LD_RUN_PATH
15569 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15570 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15571 # ancient GNU ld didn't support --whole-archive et. al.
15572 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15573 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15574 else
15575 whole_archive_flag_spec_GCJ=
15576 fi
15577 fi
15578 else
15579 # PORTME fill in a description of your system's linker (not GNU ld)
15580 case $host_os in
15581 aix3*)
15582 allow_undefined_flag_GCJ=unsupported
15583 always_export_symbols_GCJ=yes
15584 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'
15585 # Note: this linker hardcodes the directories in LIBPATH if there
15586 # are no directories specified by -L.
15587 hardcode_minus_L_GCJ=yes
15588 if test "$GCC" = yes && test -z "$link_static_flag"; then
15589 # Neither direct hardcoding nor static linking is supported with a
15590 # broken collect2.
15591 hardcode_direct_GCJ=unsupported
15592 fi
15593 ;;
15594
15595 aix4* | aix5*)
15596 if test "$host_cpu" = ia64; then
15597 # On IA64, the linker does run time linking by default, so we don't
15598 # have to do anything special.
15599 aix_use_runtimelinking=no
15600 exp_sym_flag='-Bexport'
15601 no_entry_flag=""
15602 else
15603 # If we're using GNU nm, then we don't want the "-C" option.
15604 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15605 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15606 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'
15607 else
15608 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'
15609 fi
15610 aix_use_runtimelinking=no
15611
15612 # Test if we are trying to use run time linking or normal
15613 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15614 # need to do runtime linking.
15615 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15616 for ld_flag in $LDFLAGS; do
15617 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15618 aix_use_runtimelinking=yes
15619 break
15620 fi
15621 done
15622 esac
15623
15624 exp_sym_flag='-bexport'
15625 no_entry_flag='-bnoentry'
15626 fi
15627
15628 # When large executables or shared objects are built, AIX ld can
15629 # have problems creating the table of contents. If linking a library
15630 # or program results in "error TOC overflow" add -mminimal-toc to
15631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15633
15634 archive_cmds_GCJ=''
15635 hardcode_direct_GCJ=yes
15636 hardcode_libdir_separator_GCJ=':'
15637 link_all_deplibs_GCJ=yes
15638
15639 if test "$GCC" = yes; then
15640 case $host_os in aix4.012|aix4.012.*)
15641 # We only want to do this on AIX 4.2 and lower, the check
15642 # below for broken collect2 doesn't work under 4.3+
15643 collect2name=`${CC} -print-prog-name=collect2`
15644 if test -f "$collect2name" && \
15645 strings "$collect2name" | grep resolve_lib_name >/dev/null
15646 then
15647 # We have reworked collect2
15648 hardcode_direct_GCJ=yes
15649 else
15650 # We have old collect2
15651 hardcode_direct_GCJ=unsupported
15652 # It fails to find uninstalled libraries when the uninstalled
15653 # path is not listed in the libpath. Setting hardcode_minus_L
15654 # to unsupported forces relinking
15655 hardcode_minus_L_GCJ=yes
15656 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15657 hardcode_libdir_separator_GCJ=
15658 fi
15659 esac
15660 shared_flag='-shared'
15661 else
15662 # not using gcc
15663 if test "$host_cpu" = ia64; then
15664 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15665 # chokes on -Wl,-G. The following line is correct:
15666 shared_flag='-G'
15667 else
15668 if test "$aix_use_runtimelinking" = yes; then
15669 shared_flag='${wl}-G'
15670 else
15671 shared_flag='${wl}-bM:SRE'
15672 fi
15673 fi
15674 fi
15675
15676 # It seems that -bexpall does not export symbols beginning with
15677 # underscore (_), so it is better to generate a list of symbols to export.
15678 always_export_symbols_GCJ=yes
15679 if test "$aix_use_runtimelinking" = yes; then
15680 # Warning - without using the other runtime loading flags (-brtl),
15681 # -berok will link without error, but may produce a broken library.
15682 allow_undefined_flag_GCJ='-berok'
15683 # Determine the default libpath from the value encoded in an empty executable.
15684 cat >conftest.$ac_ext <<_ACEOF
15685#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015686/* confdefs.h. */
15687_ACEOF
15688cat confdefs.h >>conftest.$ac_ext
15689cat >>conftest.$ac_ext <<_ACEOF
15690/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015691
John Criswell47fdd832003-07-14 16:52:07 +000015692int
15693main ()
15694{
15695
15696 ;
15697 return 0;
15698}
15699_ACEOF
15700rm -f conftest.$ac_objext conftest$ac_exeext
15701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15702 (eval $ac_link) 2>&5
15703 ac_status=$?
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } &&
15706 { ac_try='test -s conftest$ac_exeext'
15707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; }; then
15712
15713aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15714}'`
15715# Check for a 64-bit object if we didn't find anything.
15716if 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; }
15717}'`; fi
15718else
15719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015720sed 's/^/| /' conftest.$ac_ext >&5
15721
John Criswell47fdd832003-07-14 16:52:07 +000015722fi
15723rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15724if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15725
15726 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15727 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"
15728 else
15729 if test "$host_cpu" = ia64; then
15730 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15731 allow_undefined_flag_GCJ="-z nodefs"
15732 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"
15733 else
15734 # Determine the default libpath from the value encoded in an empty executable.
15735 cat >conftest.$ac_ext <<_ACEOF
15736#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015737/* confdefs.h. */
15738_ACEOF
15739cat confdefs.h >>conftest.$ac_ext
15740cat >>conftest.$ac_ext <<_ACEOF
15741/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015742
John Criswell47fdd832003-07-14 16:52:07 +000015743int
15744main ()
15745{
15746
15747 ;
15748 return 0;
15749}
15750_ACEOF
15751rm -f conftest.$ac_objext conftest$ac_exeext
15752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15753 (eval $ac_link) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } &&
15757 { ac_try='test -s conftest$ac_exeext'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
15763
15764aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15765}'`
15766# Check for a 64-bit object if we didn't find anything.
15767if 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; }
15768}'`; fi
15769else
15770 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015771sed 's/^/| /' conftest.$ac_ext >&5
15772
John Criswell47fdd832003-07-14 16:52:07 +000015773fi
15774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15775if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15776
15777 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15778 # Warning - without using the other run time loading flags,
15779 # -berok will link without error, but may produce a broken library.
15780 no_undefined_flag_GCJ=' ${wl}-bernotok'
15781 allow_undefined_flag_GCJ=' ${wl}-berok'
15782 # -bexpall does not export symbols beginning with underscore (_)
15783 always_export_symbols_GCJ=yes
15784 # Exported symbols can be pulled into shared objects from archives
15785 whole_archive_flag_spec_GCJ=' '
15786 archive_cmds_need_lc_GCJ=yes
15787 # This is similar to how AIX traditionally builds it's shared libraries.
15788 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'
15789 fi
15790 fi
15791 ;;
15792
15793 amigaos*)
15794 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)'
15795 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15796 hardcode_minus_L_GCJ=yes
15797 # see comment about different semantics on the GNU ld section
15798 ld_shlibs_GCJ=no
15799 ;;
15800
15801 bsdi4*)
15802 export_dynamic_flag_spec_GCJ=-rdynamic
15803 ;;
15804
15805 cygwin* | mingw* | pw32*)
15806 # When not using gcc, we currently assume that we are using
15807 # Microsoft Visual C++.
15808 # hardcode_libdir_flag_spec is actually meaningless, as there is
15809 # no search path for DLLs.
15810 hardcode_libdir_flag_spec_GCJ=' '
15811 allow_undefined_flag_GCJ=unsupported
15812 # Tell ltmain to make .lib files, not .a files.
15813 libext=lib
15814 # Tell ltmain to make .dll files, not .so files.
15815 shrext=".dll"
15816 # FIXME: Setting linknames here is a bad hack.
15817 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15818 # The linker will automatically build a .lib file if we build a DLL.
15819 old_archive_From_new_cmds_GCJ='true'
15820 # FIXME: Should let the user specify the lib program.
15821 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15822 fix_srcfile_path='`cygpath -w "$srcfile"`'
15823 enable_shared_with_static_runtimes_GCJ=yes
15824 ;;
15825
15826 darwin* | rhapsody*)
15827 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15828 archive_cmds_need_lc_GCJ=no
15829 case "$host_os" in
15830 rhapsody* | darwin1.[012])
15831 allow_undefined_flag_GCJ='-undefined suppress'
15832 ;;
15833 *) # Darwin 1.3 on
15834 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15835 ;;
15836 esac
15837 # FIXME: Relying on posixy $() will cause problems for
15838 # cross-compilation, but unfortunately the echo tests do not
15839 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15840 # `"' quotes if we put them in here... so don't!
15841 lt_int_apple_cc_single_mod=no
15842 output_verbose_link_cmd='echo'
15843 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15844 lt_int_apple_cc_single_mod=yes
15845 fi
15846 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15847 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15848 else
15849 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'
15850 fi
15851 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15852 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15853 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15854 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}'
15855 else
15856 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}'
15857 fi
15858 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}'
15859 hardcode_direct_GCJ=no
15860 hardcode_automatic_GCJ=yes
15861 hardcode_shlibpath_var_GCJ=unsupported
15862 whole_archive_flag_spec_GCJ='-all_load $convenience'
15863 link_all_deplibs_GCJ=yes
15864 fi
15865 ;;
15866
15867 dgux*)
15868 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15869 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15870 hardcode_shlibpath_var_GCJ=no
15871 ;;
15872
15873 freebsd1*)
15874 ld_shlibs_GCJ=no
15875 ;;
15876
15877 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15878 # support. Future versions do this automatically, but an explicit c++rt0.o
15879 # does not break anything, and helps significantly (at the cost of a little
15880 # extra space).
15881 freebsd2.2*)
15882 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15883 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15884 hardcode_direct_GCJ=yes
15885 hardcode_shlibpath_var_GCJ=no
15886 ;;
15887
15888 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15889 freebsd2*)
15890 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15891 hardcode_direct_GCJ=yes
15892 hardcode_minus_L_GCJ=yes
15893 hardcode_shlibpath_var_GCJ=no
15894 ;;
15895
15896 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15897 freebsd*)
15898 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15899 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15900 hardcode_direct_GCJ=yes
15901 hardcode_shlibpath_var_GCJ=no
15902 ;;
15903
15904 hpux9*)
15905 if test "$GCC" = yes; then
15906 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'
15907 else
15908 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'
15909 fi
15910 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15911 hardcode_libdir_separator_GCJ=:
15912 hardcode_direct_GCJ=yes
15913
15914 # hardcode_minus_L: Not really in the search PATH,
15915 # but as the default location of the library.
15916 hardcode_minus_L_GCJ=yes
15917 export_dynamic_flag_spec_GCJ='${wl}-E'
15918 ;;
15919
15920 hpux10* | hpux11*)
15921 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15922 case "$host_cpu" in
15923 hppa*64*|ia64*)
15924 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15925 ;;
15926 *)
15927 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15928 ;;
15929 esac
15930 else
15931 case "$host_cpu" in
15932 hppa*64*|ia64*)
15933 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15934 ;;
15935 *)
15936 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15937 ;;
15938 esac
15939 fi
15940 if test "$with_gnu_ld" = no; then
15941 case "$host_cpu" in
15942 hppa*64*)
15943 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15944 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15945 hardcode_libdir_separator_GCJ=:
15946 hardcode_direct_GCJ=no
15947 hardcode_shlibpath_var_GCJ=no
15948 ;;
15949 ia64*)
15950 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15951 hardcode_direct_GCJ=no
15952 hardcode_shlibpath_var_GCJ=no
15953
15954 # hardcode_minus_L: Not really in the search PATH,
15955 # but as the default location of the library.
15956 hardcode_minus_L_GCJ=yes
15957 ;;
15958 *)
15959 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15960 hardcode_libdir_separator_GCJ=:
15961 hardcode_direct_GCJ=yes
15962 export_dynamic_flag_spec_GCJ='${wl}-E'
15963
15964 # hardcode_minus_L: Not really in the search PATH,
15965 # but as the default location of the library.
15966 hardcode_minus_L_GCJ=yes
15967 ;;
15968 esac
15969 fi
15970 ;;
15971
15972 irix5* | irix6* | nonstopux*)
15973 if test "$GCC" = yes; then
15974 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'
15975 else
15976 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'
15977 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15978 fi
15979 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15980 hardcode_libdir_separator_GCJ=:
15981 link_all_deplibs_GCJ=yes
15982 ;;
15983
15984 netbsd*)
15985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15986 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15987 else
15988 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15989 fi
15990 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15991 hardcode_direct_GCJ=yes
15992 hardcode_shlibpath_var_GCJ=no
15993 ;;
15994
15995 newsos6)
15996 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15997 hardcode_direct_GCJ=yes
15998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15999 hardcode_libdir_separator_GCJ=:
16000 hardcode_shlibpath_var_GCJ=no
16001 ;;
16002
16003 openbsd*)
16004 hardcode_direct_GCJ=yes
16005 hardcode_shlibpath_var_GCJ=no
16006 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16007 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16009 export_dynamic_flag_spec_GCJ='${wl}-E'
16010 else
16011 case $host_os in
16012 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16013 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16014 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16015 ;;
16016 *)
16017 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16018 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16019 ;;
16020 esac
16021 fi
16022 ;;
16023
16024 os2*)
16025 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16026 hardcode_minus_L_GCJ=yes
16027 allow_undefined_flag_GCJ=unsupported
16028 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'
16029 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16030 ;;
16031
16032 osf3*)
16033 if test "$GCC" = yes; then
16034 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16035 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'
16036 else
16037 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16038 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'
16039 fi
16040 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16041 hardcode_libdir_separator_GCJ=:
16042 ;;
16043
16044 osf4* | osf5*) # as osf3* with the addition of -msym flag
16045 if test "$GCC" = yes; then
16046 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16047 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'
16048 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16049 else
16050 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16051 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'
16052 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~
16053 $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'
16054
16055 # Both c and cxx compiler support -rpath directly
16056 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16057 fi
16058 hardcode_libdir_separator_GCJ=:
16059 ;;
16060
16061 sco3.2v5*)
16062 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16063 hardcode_shlibpath_var_GCJ=no
16064 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16065 runpath_var=LD_RUN_PATH
16066 hardcode_runpath_var=yes
16067 ;;
16068
16069 solaris*)
16070 no_undefined_flag_GCJ=' -z text'
16071 if test "$GCC" = yes; then
16072 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16073 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16074 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16075 else
16076 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16078 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16079 fi
16080 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16081 hardcode_shlibpath_var_GCJ=no
16082 case $host_os in
16083 solaris2.[0-5] | solaris2.[0-5].*) ;;
16084 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16085 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16086 esac
16087 link_all_deplibs_GCJ=yes
16088 ;;
16089
16090 sunos4*)
16091 if test "x$host_vendor" = xsequent; then
16092 # Use $CC to link under sequent, because it throws in some extra .o
16093 # files that make .init and .fini sections work.
16094 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16095 else
16096 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16097 fi
16098 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16099 hardcode_direct_GCJ=yes
16100 hardcode_minus_L_GCJ=yes
16101 hardcode_shlibpath_var_GCJ=no
16102 ;;
16103
16104 sysv4)
16105 case $host_vendor in
16106 sni)
16107 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16108 hardcode_direct_GCJ=yes # is this really true???
16109 ;;
16110 siemens)
16111 ## LD is ld it makes a PLAMLIB
16112 ## CC just makes a GrossModule.
16113 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16114 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16115 hardcode_direct_GCJ=no
16116 ;;
16117 motorola)
16118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16120 ;;
16121 esac
16122 runpath_var='LD_RUN_PATH'
16123 hardcode_shlibpath_var_GCJ=no
16124 ;;
16125
16126 sysv4.3*)
16127 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128 hardcode_shlibpath_var_GCJ=no
16129 export_dynamic_flag_spec_GCJ='-Bexport'
16130 ;;
16131
16132 sysv4*MP*)
16133 if test -d /usr/nec; then
16134 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_shlibpath_var_GCJ=no
16136 runpath_var=LD_RUN_PATH
16137 hardcode_runpath_var=yes
16138 ld_shlibs_GCJ=yes
16139 fi
16140 ;;
16141
16142 sysv4.2uw2*)
16143 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16144 hardcode_direct_GCJ=yes
16145 hardcode_minus_L_GCJ=no
16146 hardcode_shlibpath_var_GCJ=no
16147 hardcode_runpath_var=yes
16148 runpath_var=LD_RUN_PATH
16149 ;;
16150
16151 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16152 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16153 if test "$GCC" = yes; then
16154 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16155 else
16156 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16157 fi
16158 runpath_var='LD_RUN_PATH'
16159 hardcode_shlibpath_var_GCJ=no
16160 ;;
16161
16162 sysv5*)
16163 no_undefined_flag_GCJ=' -z text'
16164 # $CC -shared without GNU ld will not create a library from C++
16165 # object files and a static libstdc++, better avoid it by now
16166 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16167 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16168 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16169 hardcode_libdir_flag_spec_GCJ=
16170 hardcode_shlibpath_var_GCJ=no
16171 runpath_var='LD_RUN_PATH'
16172 ;;
16173
16174 uts4*)
16175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16176 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16177 hardcode_shlibpath_var_GCJ=no
16178 ;;
16179
16180 *)
16181 ld_shlibs_GCJ=no
16182 ;;
16183 esac
16184 fi
16185
16186echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16187echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16188test "$ld_shlibs_GCJ" = no && can_build_shared=no
16189
16190variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16191if test "$GCC" = yes; then
16192 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16193fi
16194
16195#
16196# Do we need to explicitly link libc?
16197#
16198case "x$archive_cmds_need_lc_GCJ" in
16199x|xyes)
16200 # Assume -lc should be added
16201 archive_cmds_need_lc_GCJ=yes
16202
16203 if test "$enable_shared" = yes && test "$GCC" = yes; then
16204 case $archive_cmds_GCJ in
16205 *'~'*)
16206 # FIXME: we may have to deal with multi-command sequences.
16207 ;;
16208 '$CC '*)
16209 # Test whether the compiler implicitly links with -lc since on some
16210 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16211 # to ld, don't add -lc before -lgcc.
16212 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16213echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16214 $rm conftest*
16215 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16216
16217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16218 (eval $ac_compile) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); } 2>conftest.err; then
16222 soname=conftest
16223 lib=conftest
16224 libobjs=conftest.$ac_objext
16225 deplibs=
16226 wl=$lt_prog_compiler_wl_GCJ
16227 compiler_flags=-v
16228 linker_flags=-v
16229 verstring=
16230 output_objdir=.
16231 libname=conftest
16232 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16233 allow_undefined_flag_GCJ=
16234 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16235 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }
16239 then
16240 archive_cmds_need_lc_GCJ=no
16241 else
16242 archive_cmds_need_lc_GCJ=yes
16243 fi
16244 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16245 else
16246 cat conftest.err 1>&5
16247 fi
16248 $rm conftest*
16249 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16250echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16251 ;;
16252 esac
16253 fi
16254 ;;
16255esac
16256
16257echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16258echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16259hardcode_action_GCJ=
16260if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16261 test -n "$runpath_var GCJ" || \
16262 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16263
16264 # We can hardcode non-existant directories.
16265 if test "$hardcode_direct_GCJ" != no &&
16266 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16267 # have to relink, otherwise we might link with an installed library
16268 # when we should be linking with a yet-to-be-installed one
16269 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16270 test "$hardcode_minus_L_GCJ" != no; then
16271 # Linking always hardcodes the temporary library directory.
16272 hardcode_action_GCJ=relink
16273 else
16274 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16275 hardcode_action_GCJ=immediate
16276 fi
16277else
16278 # We cannot hardcode anything, or else we can only hardcode existing
16279 # directories.
16280 hardcode_action_GCJ=unsupported
16281fi
16282echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16283echo "${ECHO_T}$hardcode_action_GCJ" >&6
16284
16285if test "$hardcode_action_GCJ" = relink; then
16286 # Fast installation is not supported
16287 enable_fast_install=no
16288elif test "$shlibpath_overrides_runpath" = yes ||
16289 test "$enable_shared" = no; then
16290 # Fast installation is not necessary
16291 enable_fast_install=needless
16292fi
16293
16294striplib=
16295old_striplib=
16296echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16297echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16298if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16299 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16300 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16301 echo "$as_me:$LINENO: result: yes" >&5
16302echo "${ECHO_T}yes" >&6
16303else
16304# FIXME - insert some real tests, host_os isn't really good enough
16305 case $host_os in
16306 darwin*)
16307 if test -n "$STRIP" ; then
16308 striplib="$STRIP -x"
16309 echo "$as_me:$LINENO: result: yes" >&5
16310echo "${ECHO_T}yes" >&6
16311 else
16312 echo "$as_me:$LINENO: result: no" >&5
16313echo "${ECHO_T}no" >&6
16314fi
16315 ;;
16316 *)
16317 echo "$as_me:$LINENO: result: no" >&5
16318echo "${ECHO_T}no" >&6
16319 ;;
16320 esac
16321fi
16322
16323echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16324echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16325library_names_spec=
16326libname_spec='lib$name'
16327soname_spec=
16328shrext=".so"
16329postinstall_cmds=
16330postuninstall_cmds=
16331finish_cmds=
16332finish_eval=
16333shlibpath_var=
16334shlibpath_overrides_runpath=unknown
16335version_type=none
16336dynamic_linker="$host_os ld.so"
16337sys_lib_dlsearch_path_spec="/lib /usr/lib"
16338if test "$GCC" = yes; then
16339 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16340 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16341 # if the path contains ";" then we assume it to be the separator
16342 # otherwise default to the standard path separator (i.e. ":") - it is
16343 # assumed that no part of a normal pathname contains ";" but that should
16344 # okay in the real world where ";" in dirpaths is itself problematic.
16345 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16346 else
16347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16348 fi
16349else
16350 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16351fi
16352need_lib_prefix=unknown
16353hardcode_into_libs=no
16354
16355# when you set need_version to no, make sure it does not cause -set_version
16356# flags to be left without arguments
16357need_version=unknown
16358
16359case $host_os in
16360aix3*)
16361 version_type=linux
16362 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16363 shlibpath_var=LIBPATH
16364
16365 # AIX 3 has no versioning support, so we append a major version to the name.
16366 soname_spec='${libname}${release}${shared_ext}$major'
16367 ;;
16368
16369aix4* | aix5*)
16370 version_type=linux
16371 need_lib_prefix=no
16372 need_version=no
16373 hardcode_into_libs=yes
16374 if test "$host_cpu" = ia64; then
16375 # AIX 5 supports IA64
16376 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16377 shlibpath_var=LD_LIBRARY_PATH
16378 else
16379 # With GCC up to 2.95.x, collect2 would create an import file
16380 # for dependence libraries. The import file would start with
16381 # the line `#! .'. This would cause the generated library to
16382 # depend on `.', always an invalid library. This was fixed in
16383 # development snapshots of GCC prior to 3.0.
16384 case $host_os in
16385 aix4 | aix4.[01] | aix4.[01].*)
16386 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16387 echo ' yes '
16388 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16389 :
16390 else
16391 can_build_shared=no
16392 fi
16393 ;;
16394 esac
16395 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16396 # soname into executable. Probably we can add versioning support to
16397 # collect2, so additional links can be useful in future.
16398 if test "$aix_use_runtimelinking" = yes; then
16399 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16400 # instead of lib<name>.a to let people know that these are not
16401 # typical AIX shared libraries.
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403 else
16404 # We preserve .a as extension for shared libraries through AIX4.2
16405 # and later when we are not doing run time linking.
16406 library_names_spec='${libname}${release}.a $libname.a'
16407 soname_spec='${libname}${release}${shared_ext}$major'
16408 fi
16409 shlibpath_var=LIBPATH
16410 fi
16411 ;;
16412
16413amigaos*)
16414 library_names_spec='$libname.ixlibrary $libname.a'
16415 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16416 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'
16417 ;;
16418
16419beos*)
16420 library_names_spec='${libname}${shared_ext}'
16421 dynamic_linker="$host_os ld.so"
16422 shlibpath_var=LIBRARY_PATH
16423 ;;
16424
16425bsdi4*)
16426 version_type=linux
16427 need_version=no
16428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16429 soname_spec='${libname}${release}${shared_ext}$major'
16430 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16431 shlibpath_var=LD_LIBRARY_PATH
16432 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16433 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16434 # the default ld.so.conf also contains /usr/contrib/lib and
16435 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16436 # libtool to hard-code these into programs
16437 ;;
16438
16439cygwin* | mingw* | pw32*)
16440 version_type=windows
16441 shrext=".dll"
16442 need_version=no
16443 need_lib_prefix=no
16444
16445 case $GCC,$host_os in
16446 yes,cygwin* | yes,mingw* | yes,pw32*)
16447 library_names_spec='$libname.dll.a'
16448 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16449 postinstall_cmds='base_file=`basename \${file}`~
16450 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16451 dldir=$destdir/`dirname \$dlpath`~
16452 test -d \$dldir || mkdir -p \$dldir~
16453 $install_prog $dir/$dlname \$dldir/$dlname'
16454 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16455 dlpath=$dir/\$dldll~
16456 $rm \$dlpath'
16457 shlibpath_overrides_runpath=yes
16458
16459 case $host_os in
16460 cygwin*)
16461 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16462 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16463 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16464 ;;
16465 mingw*)
16466 # MinGW DLLs use traditional 'lib' prefix
16467 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16468 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16469 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16470 # It is most probably a Windows format PATH printed by
16471 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16472 # path with ; separators, and with drive letters. We can handle the
16473 # drive letters (cygwin fileutils understands them), so leave them,
16474 # especially as we might pass files found there to a mingw objdump,
16475 # which wouldn't understand a cygwinified path. Ahh.
16476 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16477 else
16478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16479 fi
16480 ;;
16481 pw32*)
16482 # pw32 DLLs use 'pw' prefix rather than 'lib'
16483 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16484 ;;
16485 esac
16486 ;;
16487
16488 *)
16489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16490 ;;
16491 esac
16492 dynamic_linker='Win32 ld.exe'
16493 # FIXME: first we should search . and the directory the executable is in
16494 shlibpath_var=PATH
16495 ;;
16496
16497darwin* | rhapsody*)
16498 dynamic_linker="$host_os dyld"
16499 version_type=darwin
16500 need_lib_prefix=no
16501 need_version=no
16502 # FIXME: Relying on posixy $() will cause problems for
16503 # cross-compilation, but unfortunately the echo tests do not
16504 # yet detect zsh echo's removal of \ escapes.
16505 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16506 soname_spec='${libname}${release}${major}$shared_ext'
16507 shlibpath_overrides_runpath=yes
16508 shlibpath_var=DYLD_LIBRARY_PATH
16509 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16510 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16511 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16512 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"`
16513 fi
16514 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16515 ;;
16516
16517dgux*)
16518 version_type=linux
16519 need_lib_prefix=no
16520 need_version=no
16521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16522 soname_spec='${libname}${release}${shared_ext}$major'
16523 shlibpath_var=LD_LIBRARY_PATH
16524 ;;
16525
16526freebsd1*)
16527 dynamic_linker=no
16528 ;;
16529
16530freebsd*)
16531 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16532 version_type=freebsd-$objformat
16533 case $version_type in
16534 freebsd-elf*)
16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16536 need_version=no
16537 need_lib_prefix=no
16538 ;;
16539 freebsd-*)
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16541 need_version=yes
16542 ;;
16543 esac
16544 shlibpath_var=LD_LIBRARY_PATH
16545 case $host_os in
16546 freebsd2*)
16547 shlibpath_overrides_runpath=yes
16548 ;;
16549 freebsd3.01* | freebsdelf3.01*)
16550 shlibpath_overrides_runpath=yes
16551 hardcode_into_libs=yes
16552 ;;
16553 *) # from 3.2 on
16554 shlibpath_overrides_runpath=no
16555 hardcode_into_libs=yes
16556 ;;
16557 esac
16558 ;;
16559
16560gnu*)
16561 version_type=linux
16562 need_lib_prefix=no
16563 need_version=no
16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 shlibpath_var=LD_LIBRARY_PATH
16567 hardcode_into_libs=yes
16568 ;;
16569
16570hpux9* | hpux10* | hpux11*)
16571 # Give a soname corresponding to the major version so that dld.sl refuses to
16572 # link against other versions.
16573 version_type=sunos
16574 need_lib_prefix=no
16575 need_version=no
16576 case "$host_cpu" in
16577 ia64*)
16578 shrext='.so'
16579 hardcode_into_libs=yes
16580 dynamic_linker="$host_os dld.so"
16581 shlibpath_var=LD_LIBRARY_PATH
16582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16584 soname_spec='${libname}${release}${shared_ext}$major'
16585 if test "X$HPUX_IA64_MODE" = X32; then
16586 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16587 else
16588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16589 fi
16590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16591 ;;
16592 hppa*64*)
16593 shrext='.sl'
16594 hardcode_into_libs=yes
16595 dynamic_linker="$host_os dld.sl"
16596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16599 soname_spec='${libname}${release}${shared_ext}$major'
16600 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16602 ;;
16603 *)
16604 shrext='.sl'
16605 dynamic_linker="$host_os dld.sl"
16606 shlibpath_var=SHLIB_PATH
16607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16609 soname_spec='${libname}${release}${shared_ext}$major'
16610 ;;
16611 esac
16612 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16613 postinstall_cmds='chmod 555 $lib'
16614 ;;
16615
16616irix5* | irix6* | nonstopux*)
16617 case $host_os in
16618 nonstopux*) version_type=nonstopux ;;
16619 *)
16620 if test "$lt_cv_prog_gnu_ld" = yes; then
16621 version_type=linux
16622 else
16623 version_type=irix
16624 fi ;;
16625 esac
16626 need_lib_prefix=no
16627 need_version=no
16628 soname_spec='${libname}${release}${shared_ext}$major'
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16630 case $host_os in
16631 irix5* | nonstopux*)
16632 libsuff= shlibsuff=
16633 ;;
16634 *)
16635 case $LD in # libtool.m4 will add one of these switches to LD
16636 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16637 libsuff= shlibsuff= libmagic=32-bit;;
16638 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16639 libsuff=32 shlibsuff=N32 libmagic=N32;;
16640 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16641 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16642 *) libsuff= shlibsuff= libmagic=never-match;;
16643 esac
16644 ;;
16645 esac
16646 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16647 shlibpath_overrides_runpath=no
16648 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16649 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16650 hardcode_into_libs=yes
16651 ;;
16652
16653# No shared lib support for Linux oldld, aout, or coff.
16654linux*oldld* | linux*aout* | linux*coff*)
16655 dynamic_linker=no
16656 ;;
16657
16658# This must be Linux ELF.
16659linux*)
16660 version_type=linux
16661 need_lib_prefix=no
16662 need_version=no
16663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16664 soname_spec='${libname}${release}${shared_ext}$major'
16665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16666 shlibpath_var=LD_LIBRARY_PATH
16667 shlibpath_overrides_runpath=no
16668 # This implies no fast_install, which is unacceptable.
16669 # Some rework will be needed to allow for fast_install
16670 # before this can be enabled.
16671 hardcode_into_libs=yes
16672
16673 # We used to test for /lib/ld.so.1 and disable shared libraries on
16674 # powerpc, because MkLinux only supported shared libraries with the
16675 # GNU dynamic linker. Since this was broken with cross compilers,
16676 # most powerpc-linux boxes support dynamic linking these days and
16677 # people can always --disable-shared, the test was removed, and we
16678 # assume the GNU/Linux dynamic linker is in use.
16679 dynamic_linker='GNU/Linux ld.so'
16680 ;;
16681
16682netbsd*)
16683 version_type=sunos
16684 need_lib_prefix=no
16685 need_version=no
16686 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16689 dynamic_linker='NetBSD (a.out) ld.so'
16690 else
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16692 soname_spec='${libname}${release}${shared_ext}$major'
16693 dynamic_linker='NetBSD ld.elf_so'
16694 fi
16695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=yes
16697 hardcode_into_libs=yes
16698 ;;
16699
16700newsos6)
16701 version_type=linux
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703 shlibpath_var=LD_LIBRARY_PATH
16704 shlibpath_overrides_runpath=yes
16705 ;;
16706
16707nto-qnx)
16708 version_type=linux
16709 need_lib_prefix=no
16710 need_version=no
16711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712 soname_spec='${libname}${release}${shared_ext}$major'
16713 shlibpath_var=LD_LIBRARY_PATH
16714 shlibpath_overrides_runpath=yes
16715 ;;
16716
16717openbsd*)
16718 version_type=sunos
16719 need_lib_prefix=no
16720 need_version=no
16721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16723 shlibpath_var=LD_LIBRARY_PATH
16724 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16725 case $host_os in
16726 openbsd2.[89] | openbsd2.[89].*)
16727 shlibpath_overrides_runpath=no
16728 ;;
16729 *)
16730 shlibpath_overrides_runpath=yes
16731 ;;
16732 esac
16733 else
16734 shlibpath_overrides_runpath=yes
16735 fi
16736 ;;
16737
16738os2*)
16739 libname_spec='$name'
16740 shrext=".dll"
16741 need_lib_prefix=no
16742 library_names_spec='$libname${shared_ext} $libname.a'
16743 dynamic_linker='OS/2 ld.exe'
16744 shlibpath_var=LIBPATH
16745 ;;
16746
16747osf3* | osf4* | osf5*)
16748 version_type=osf
16749 need_lib_prefix=no
16750 need_version=no
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 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16755 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16756 ;;
16757
16758sco3.2v5*)
16759 version_type=osf
16760 soname_spec='${libname}${release}${shared_ext}$major'
16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762 shlibpath_var=LD_LIBRARY_PATH
16763 ;;
16764
16765solaris*)
16766 version_type=linux
16767 need_lib_prefix=no
16768 need_version=no
16769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16770 soname_spec='${libname}${release}${shared_ext}$major'
16771 shlibpath_var=LD_LIBRARY_PATH
16772 shlibpath_overrides_runpath=yes
16773 hardcode_into_libs=yes
16774 # ldd complains unless libraries are executable
16775 postinstall_cmds='chmod +x $lib'
16776 ;;
16777
16778sunos4*)
16779 version_type=sunos
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16781 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16782 shlibpath_var=LD_LIBRARY_PATH
16783 shlibpath_overrides_runpath=yes
16784 if test "$with_gnu_ld" = yes; then
16785 need_lib_prefix=no
16786 fi
16787 need_version=yes
16788 ;;
16789
16790sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16791 version_type=linux
16792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16793 soname_spec='${libname}${release}${shared_ext}$major'
16794 shlibpath_var=LD_LIBRARY_PATH
16795 case $host_vendor in
16796 sni)
16797 shlibpath_overrides_runpath=no
16798 need_lib_prefix=no
16799 export_dynamic_flag_spec='${wl}-Blargedynsym'
16800 runpath_var=LD_RUN_PATH
16801 ;;
16802 siemens)
16803 need_lib_prefix=no
16804 ;;
16805 motorola)
16806 need_lib_prefix=no
16807 need_version=no
16808 shlibpath_overrides_runpath=no
16809 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16810 ;;
16811 esac
16812 ;;
16813
16814sysv4*MP*)
16815 if test -d /usr/nec ;then
16816 version_type=linux
16817 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16818 soname_spec='$libname${shared_ext}.$major'
16819 shlibpath_var=LD_LIBRARY_PATH
16820 fi
16821 ;;
16822
16823uts4*)
16824 version_type=linux
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16826 soname_spec='${libname}${release}${shared_ext}$major'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 ;;
16829
16830*)
16831 dynamic_linker=no
16832 ;;
16833esac
16834echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16835echo "${ECHO_T}$dynamic_linker" >&6
16836test "$dynamic_linker" = no && can_build_shared=no
16837
16838if test "x$enable_dlopen" != xyes; then
16839 enable_dlopen=unknown
16840 enable_dlopen_self=unknown
16841 enable_dlopen_self_static=unknown
16842else
16843 lt_cv_dlopen=no
16844 lt_cv_dlopen_libs=
16845
16846 case $host_os in
16847 beos*)
16848 lt_cv_dlopen="load_add_on"
16849 lt_cv_dlopen_libs=
16850 lt_cv_dlopen_self=yes
16851 ;;
16852
16853 mingw* | pw32*)
16854 lt_cv_dlopen="LoadLibrary"
16855 lt_cv_dlopen_libs=
16856 ;;
16857
16858 cygwin*)
16859 lt_cv_dlopen="dlopen"
16860 lt_cv_dlopen_libs=
16861 ;;
16862
16863 darwin*)
16864 # if libdl is installed we need to link against it
16865 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16866echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16867if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16868 echo $ECHO_N "(cached) $ECHO_C" >&6
16869else
16870 ac_check_lib_save_LIBS=$LIBS
16871LIBS="-ldl $LIBS"
16872cat >conftest.$ac_ext <<_ACEOF
16873#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016874/* confdefs.h. */
16875_ACEOF
16876cat confdefs.h >>conftest.$ac_ext
16877cat >>conftest.$ac_ext <<_ACEOF
16878/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016879
16880/* Override any gcc2 internal prototype to avoid an error. */
16881#ifdef __cplusplus
16882extern "C"
16883#endif
16884/* We use char because int might match the return type of a gcc2
16885 builtin and then its argument prototype would still apply. */
16886char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016887int
16888main ()
16889{
16890dlopen ();
16891 ;
16892 return 0;
16893}
16894_ACEOF
16895rm -f conftest.$ac_objext conftest$ac_exeext
16896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16897 (eval $ac_link) 2>&5
16898 ac_status=$?
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try='test -s conftest$ac_exeext'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 ac_cv_lib_dl_dlopen=yes
16908else
16909 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016910sed 's/^/| /' conftest.$ac_ext >&5
16911
John Criswell47fdd832003-07-14 16:52:07 +000016912ac_cv_lib_dl_dlopen=no
16913fi
16914rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16915LIBS=$ac_check_lib_save_LIBS
16916fi
16917echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16918echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16919if test $ac_cv_lib_dl_dlopen = yes; then
16920 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16921else
16922
16923 lt_cv_dlopen="dyld"
16924 lt_cv_dlopen_libs=
16925 lt_cv_dlopen_self=yes
16926
16927fi
16928
16929 ;;
16930
16931 *)
16932 echo "$as_me:$LINENO: checking for shl_load" >&5
16933echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16934if test "${ac_cv_func_shl_load+set}" = set; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16936else
16937 cat >conftest.$ac_ext <<_ACEOF
16938#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016939/* confdefs.h. */
16940_ACEOF
16941cat confdefs.h >>conftest.$ac_ext
16942cat >>conftest.$ac_ext <<_ACEOF
16943/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016944/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016945 which can conflict with char shl_load (); below.
16946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16947 <limits.h> exists even on freestanding compilers. */
16948#ifdef __STDC__
16949# include <limits.h>
16950#else
16951# include <assert.h>
16952#endif
John Criswell47fdd832003-07-14 16:52:07 +000016953/* Override any gcc2 internal prototype to avoid an error. */
16954#ifdef __cplusplus
16955extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016956{
John Criswell47fdd832003-07-14 16:52:07 +000016957#endif
16958/* We use char because int might match the return type of a gcc2
16959 builtin and then its argument prototype would still apply. */
16960char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016961/* The GNU C library defines this for functions which it implements
16962 to always fail with ENOSYS. Some functions are actually named
16963 something starting with __ and the normal name is an alias. */
16964#if defined (__stub_shl_load) || defined (__stub___shl_load)
16965choke me
16966#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016967char (*f) () = shl_load;
16968#endif
16969#ifdef __cplusplus
16970}
John Criswell47fdd832003-07-14 16:52:07 +000016971#endif
16972
John Criswell0c38eaf2003-09-10 15:17:25 +000016973int
16974main ()
16975{
16976return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016977 ;
16978 return 0;
16979}
16980_ACEOF
16981rm -f conftest.$ac_objext conftest$ac_exeext
16982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16983 (eval $ac_link) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -s conftest$ac_exeext'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
16993 ac_cv_func_shl_load=yes
16994else
16995 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016996sed 's/^/| /' conftest.$ac_ext >&5
16997
John Criswell47fdd832003-07-14 16:52:07 +000016998ac_cv_func_shl_load=no
16999fi
17000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17001fi
17002echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17003echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17004if test $ac_cv_func_shl_load = yes; then
17005 lt_cv_dlopen="shl_load"
17006else
17007 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17008echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17009if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17011else
17012 ac_check_lib_save_LIBS=$LIBS
17013LIBS="-ldld $LIBS"
17014cat >conftest.$ac_ext <<_ACEOF
17015#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017016/* confdefs.h. */
17017_ACEOF
17018cat confdefs.h >>conftest.$ac_ext
17019cat >>conftest.$ac_ext <<_ACEOF
17020/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017021
17022/* Override any gcc2 internal prototype to avoid an error. */
17023#ifdef __cplusplus
17024extern "C"
17025#endif
17026/* We use char because int might match the return type of a gcc2
17027 builtin and then its argument prototype would still apply. */
17028char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017029int
17030main ()
17031{
17032shl_load ();
17033 ;
17034 return 0;
17035}
17036_ACEOF
17037rm -f conftest.$ac_objext conftest$ac_exeext
17038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17039 (eval $ac_link) 2>&5
17040 ac_status=$?
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } &&
17043 { ac_try='test -s conftest$ac_exeext'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17049 ac_cv_lib_dld_shl_load=yes
17050else
17051 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017052sed 's/^/| /' conftest.$ac_ext >&5
17053
John Criswell47fdd832003-07-14 16:52:07 +000017054ac_cv_lib_dld_shl_load=no
17055fi
17056rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17057LIBS=$ac_check_lib_save_LIBS
17058fi
17059echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17060echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17061if test $ac_cv_lib_dld_shl_load = yes; then
17062 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17063else
17064 echo "$as_me:$LINENO: checking for dlopen" >&5
17065echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17066if test "${ac_cv_func_dlopen+set}" = set; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17068else
17069 cat >conftest.$ac_ext <<_ACEOF
17070#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017071/* confdefs.h. */
17072_ACEOF
17073cat confdefs.h >>conftest.$ac_ext
17074cat >>conftest.$ac_ext <<_ACEOF
17075/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017076/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017077 which can conflict with char dlopen (); below.
17078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17079 <limits.h> exists even on freestanding compilers. */
17080#ifdef __STDC__
17081# include <limits.h>
17082#else
17083# include <assert.h>
17084#endif
John Criswell47fdd832003-07-14 16:52:07 +000017085/* Override any gcc2 internal prototype to avoid an error. */
17086#ifdef __cplusplus
17087extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017088{
John Criswell47fdd832003-07-14 16:52:07 +000017089#endif
17090/* We use char because int might match the return type of a gcc2
17091 builtin and then its argument prototype would still apply. */
17092char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017093/* The GNU C library defines this for functions which it implements
17094 to always fail with ENOSYS. Some functions are actually named
17095 something starting with __ and the normal name is an alias. */
17096#if defined (__stub_dlopen) || defined (__stub___dlopen)
17097choke me
17098#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017099char (*f) () = dlopen;
17100#endif
17101#ifdef __cplusplus
17102}
John Criswell47fdd832003-07-14 16:52:07 +000017103#endif
17104
John Criswell0c38eaf2003-09-10 15:17:25 +000017105int
17106main ()
17107{
17108return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017109 ;
17110 return 0;
17111}
17112_ACEOF
17113rm -f conftest.$ac_objext conftest$ac_exeext
17114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17115 (eval $ac_link) 2>&5
17116 ac_status=$?
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } &&
17119 { ac_try='test -s conftest$ac_exeext'
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17125 ac_cv_func_dlopen=yes
17126else
17127 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017128sed 's/^/| /' conftest.$ac_ext >&5
17129
John Criswell47fdd832003-07-14 16:52:07 +000017130ac_cv_func_dlopen=no
17131fi
17132rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17133fi
17134echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17135echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17136if test $ac_cv_func_dlopen = yes; then
17137 lt_cv_dlopen="dlopen"
17138else
17139 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17140echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17141if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17143else
17144 ac_check_lib_save_LIBS=$LIBS
17145LIBS="-ldl $LIBS"
17146cat >conftest.$ac_ext <<_ACEOF
17147#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017148/* confdefs.h. */
17149_ACEOF
17150cat confdefs.h >>conftest.$ac_ext
17151cat >>conftest.$ac_ext <<_ACEOF
17152/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017153
17154/* Override any gcc2 internal prototype to avoid an error. */
17155#ifdef __cplusplus
17156extern "C"
17157#endif
17158/* We use char because int might match the return type of a gcc2
17159 builtin and then its argument prototype would still apply. */
17160char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017161int
17162main ()
17163{
17164dlopen ();
17165 ;
17166 return 0;
17167}
17168_ACEOF
17169rm -f conftest.$ac_objext conftest$ac_exeext
17170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17171 (eval $ac_link) 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } &&
17175 { ac_try='test -s conftest$ac_exeext'
17176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177 (eval $ac_try) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; }; then
17181 ac_cv_lib_dl_dlopen=yes
17182else
17183 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017184sed 's/^/| /' conftest.$ac_ext >&5
17185
John Criswell47fdd832003-07-14 16:52:07 +000017186ac_cv_lib_dl_dlopen=no
17187fi
17188rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17189LIBS=$ac_check_lib_save_LIBS
17190fi
17191echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17192echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17193if test $ac_cv_lib_dl_dlopen = yes; then
17194 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17195else
17196 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17197echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17198if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17200else
17201 ac_check_lib_save_LIBS=$LIBS
17202LIBS="-lsvld $LIBS"
17203cat >conftest.$ac_ext <<_ACEOF
17204#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017205/* confdefs.h. */
17206_ACEOF
17207cat confdefs.h >>conftest.$ac_ext
17208cat >>conftest.$ac_ext <<_ACEOF
17209/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017210
17211/* Override any gcc2 internal prototype to avoid an error. */
17212#ifdef __cplusplus
17213extern "C"
17214#endif
17215/* We use char because int might match the return type of a gcc2
17216 builtin and then its argument prototype would still apply. */
17217char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017218int
17219main ()
17220{
17221dlopen ();
17222 ;
17223 return 0;
17224}
17225_ACEOF
17226rm -f conftest.$ac_objext conftest$ac_exeext
17227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17228 (eval $ac_link) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try='test -s conftest$ac_exeext'
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 ac_cv_lib_svld_dlopen=yes
17239else
17240 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017241sed 's/^/| /' conftest.$ac_ext >&5
17242
John Criswell47fdd832003-07-14 16:52:07 +000017243ac_cv_lib_svld_dlopen=no
17244fi
17245rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17246LIBS=$ac_check_lib_save_LIBS
17247fi
17248echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17249echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17250if test $ac_cv_lib_svld_dlopen = yes; then
17251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17252else
17253 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17254echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17255if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17256 echo $ECHO_N "(cached) $ECHO_C" >&6
17257else
17258 ac_check_lib_save_LIBS=$LIBS
17259LIBS="-ldld $LIBS"
17260cat >conftest.$ac_ext <<_ACEOF
17261#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017262/* confdefs.h. */
17263_ACEOF
17264cat confdefs.h >>conftest.$ac_ext
17265cat >>conftest.$ac_ext <<_ACEOF
17266/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017267
17268/* Override any gcc2 internal prototype to avoid an error. */
17269#ifdef __cplusplus
17270extern "C"
17271#endif
17272/* We use char because int might match the return type of a gcc2
17273 builtin and then its argument prototype would still apply. */
17274char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017275int
17276main ()
17277{
17278dld_link ();
17279 ;
17280 return 0;
17281}
17282_ACEOF
17283rm -f conftest.$ac_objext conftest$ac_exeext
17284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17285 (eval $ac_link) 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
17289 { ac_try='test -s conftest$ac_exeext'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; }; then
17295 ac_cv_lib_dld_dld_link=yes
17296else
17297 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017298sed 's/^/| /' conftest.$ac_ext >&5
17299
John Criswell47fdd832003-07-14 16:52:07 +000017300ac_cv_lib_dld_dld_link=no
17301fi
17302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17303LIBS=$ac_check_lib_save_LIBS
17304fi
17305echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17306echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17307if test $ac_cv_lib_dld_dld_link = yes; then
17308 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17309fi
17310
17311
17312fi
17313
17314
17315fi
17316
17317
17318fi
17319
17320
17321fi
17322
17323
17324fi
17325
17326 ;;
17327 esac
17328
17329 if test "x$lt_cv_dlopen" != xno; then
17330 enable_dlopen=yes
17331 else
17332 enable_dlopen=no
17333 fi
17334
17335 case $lt_cv_dlopen in
17336 dlopen)
17337 save_CPPFLAGS="$CPPFLAGS"
17338 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17339
17340 save_LDFLAGS="$LDFLAGS"
17341 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17342
17343 save_LIBS="$LIBS"
17344 LIBS="$lt_cv_dlopen_libs $LIBS"
17345
17346 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17347echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17348if test "${lt_cv_dlopen_self+set}" = set; then
17349 echo $ECHO_N "(cached) $ECHO_C" >&6
17350else
17351 if test "$cross_compiling" = yes; then :
17352 lt_cv_dlopen_self=cross
17353else
17354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17355 lt_status=$lt_dlunknown
17356 cat > conftest.$ac_ext <<EOF
John Criswell759c3ed2003-10-28 19:21:11 +000017357#line 17357 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017358#include "confdefs.h"
17359
17360#if HAVE_DLFCN_H
17361#include <dlfcn.h>
17362#endif
17363
17364#include <stdio.h>
17365
17366#ifdef RTLD_GLOBAL
17367# define LT_DLGLOBAL RTLD_GLOBAL
17368#else
17369# ifdef DL_GLOBAL
17370# define LT_DLGLOBAL DL_GLOBAL
17371# else
17372# define LT_DLGLOBAL 0
17373# endif
17374#endif
17375
17376/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17377 find out it does not work in some platform. */
17378#ifndef LT_DLLAZY_OR_NOW
17379# ifdef RTLD_LAZY
17380# define LT_DLLAZY_OR_NOW RTLD_LAZY
17381# else
17382# ifdef DL_LAZY
17383# define LT_DLLAZY_OR_NOW DL_LAZY
17384# else
17385# ifdef RTLD_NOW
17386# define LT_DLLAZY_OR_NOW RTLD_NOW
17387# else
17388# ifdef DL_NOW
17389# define LT_DLLAZY_OR_NOW DL_NOW
17390# else
17391# define LT_DLLAZY_OR_NOW 0
17392# endif
17393# endif
17394# endif
17395# endif
17396#endif
17397
17398#ifdef __cplusplus
17399extern "C" void exit (int);
17400#endif
17401
17402void fnord() { int i=42;}
17403int main ()
17404{
17405 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17406 int status = $lt_dlunknown;
17407
17408 if (self)
17409 {
17410 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17411 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17412 /* dlclose (self); */
17413 }
17414
17415 exit (status);
17416}
17417EOF
17418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17419 (eval $ac_link) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17423 (./conftest; exit; ) 2>/dev/null
17424 lt_status=$?
17425 case x$lt_status in
17426 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17427 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17428 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17429 esac
17430 else :
17431 # compilation failed
17432 lt_cv_dlopen_self=no
17433 fi
17434fi
17435rm -fr conftest*
17436
17437
17438fi
17439echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17440echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17441
17442 if test "x$lt_cv_dlopen_self" = xyes; then
17443 LDFLAGS="$LDFLAGS $link_static_flag"
17444 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17445echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17446if test "${lt_cv_dlopen_self_static+set}" = set; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17448else
17449 if test "$cross_compiling" = yes; then :
17450 lt_cv_dlopen_self_static=cross
17451else
17452 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17453 lt_status=$lt_dlunknown
17454 cat > conftest.$ac_ext <<EOF
John Criswell759c3ed2003-10-28 19:21:11 +000017455#line 17455 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017456#include "confdefs.h"
17457
17458#if HAVE_DLFCN_H
17459#include <dlfcn.h>
17460#endif
17461
17462#include <stdio.h>
17463
17464#ifdef RTLD_GLOBAL
17465# define LT_DLGLOBAL RTLD_GLOBAL
17466#else
17467# ifdef DL_GLOBAL
17468# define LT_DLGLOBAL DL_GLOBAL
17469# else
17470# define LT_DLGLOBAL 0
17471# endif
17472#endif
17473
17474/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17475 find out it does not work in some platform. */
17476#ifndef LT_DLLAZY_OR_NOW
17477# ifdef RTLD_LAZY
17478# define LT_DLLAZY_OR_NOW RTLD_LAZY
17479# else
17480# ifdef DL_LAZY
17481# define LT_DLLAZY_OR_NOW DL_LAZY
17482# else
17483# ifdef RTLD_NOW
17484# define LT_DLLAZY_OR_NOW RTLD_NOW
17485# else
17486# ifdef DL_NOW
17487# define LT_DLLAZY_OR_NOW DL_NOW
17488# else
17489# define LT_DLLAZY_OR_NOW 0
17490# endif
17491# endif
17492# endif
17493# endif
17494#endif
17495
17496#ifdef __cplusplus
17497extern "C" void exit (int);
17498#endif
17499
17500void fnord() { int i=42;}
17501int main ()
17502{
17503 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17504 int status = $lt_dlunknown;
17505
17506 if (self)
17507 {
17508 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17509 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17510 /* dlclose (self); */
17511 }
17512
17513 exit (status);
17514}
17515EOF
17516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17517 (eval $ac_link) 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17521 (./conftest; exit; ) 2>/dev/null
17522 lt_status=$?
17523 case x$lt_status in
17524 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17525 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17526 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17527 esac
17528 else :
17529 # compilation failed
17530 lt_cv_dlopen_self_static=no
17531 fi
17532fi
17533rm -fr conftest*
17534
17535
17536fi
17537echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17538echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17539 fi
17540
17541 CPPFLAGS="$save_CPPFLAGS"
17542 LDFLAGS="$save_LDFLAGS"
17543 LIBS="$save_LIBS"
17544 ;;
17545 esac
17546
17547 case $lt_cv_dlopen_self in
17548 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17549 *) enable_dlopen_self=unknown ;;
17550 esac
17551
17552 case $lt_cv_dlopen_self_static in
17553 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17554 *) enable_dlopen_self_static=unknown ;;
17555 esac
17556fi
17557
17558
17559# The else clause should only fire when bootstrapping the
17560# libtool distribution, otherwise you forgot to ship ltmain.sh
17561# with your package, and you will get complaints that there are
17562# no rules to generate ltmain.sh.
17563if test -f "$ltmain"; then
17564 # See if we are running on zsh, and set the options which allow our commands through
17565 # without removal of \ escapes.
17566 if test -n "${ZSH_VERSION+set}" ; then
17567 setopt NO_GLOB_SUBST
17568 fi
17569 # Now quote all the things that may contain metacharacters while being
17570 # careful not to overquote the AC_SUBSTed values. We take copies of the
17571 # variables and quote the copies for generation of the libtool script.
17572 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17573 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17574 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17575 deplibs_check_method reload_flag reload_cmds need_locks \
17576 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17577 lt_cv_sys_global_symbol_to_c_name_address \
17578 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17579 old_postinstall_cmds old_postuninstall_cmds \
17580 compiler_GCJ \
17581 CC_GCJ \
17582 LD_GCJ \
17583 lt_prog_compiler_wl_GCJ \
17584 lt_prog_compiler_pic_GCJ \
17585 lt_prog_compiler_static_GCJ \
17586 lt_prog_compiler_no_builtin_flag_GCJ \
17587 export_dynamic_flag_spec_GCJ \
17588 thread_safe_flag_spec_GCJ \
17589 whole_archive_flag_spec_GCJ \
17590 enable_shared_with_static_runtimes_GCJ \
17591 old_archive_cmds_GCJ \
17592 old_archive_from_new_cmds_GCJ \
17593 predep_objects_GCJ \
17594 postdep_objects_GCJ \
17595 predeps_GCJ \
17596 postdeps_GCJ \
17597 compiler_lib_search_path_GCJ \
17598 archive_cmds_GCJ \
17599 archive_expsym_cmds_GCJ \
17600 postinstall_cmds_GCJ \
17601 postuninstall_cmds_GCJ \
17602 old_archive_from_expsyms_cmds_GCJ \
17603 allow_undefined_flag_GCJ \
17604 no_undefined_flag_GCJ \
17605 export_symbols_cmds_GCJ \
17606 hardcode_libdir_flag_spec_GCJ \
17607 hardcode_libdir_flag_spec_ld_GCJ \
17608 hardcode_libdir_separator_GCJ \
17609 hardcode_automatic_GCJ \
17610 module_cmds_GCJ \
17611 module_expsym_cmds_GCJ \
17612 lt_cv_prog_compiler_c_o_GCJ \
17613 exclude_expsyms_GCJ \
17614 include_expsyms_GCJ; do
17615
17616 case $var in
17617 old_archive_cmds_GCJ | \
17618 old_archive_from_new_cmds_GCJ | \
17619 archive_cmds_GCJ | \
17620 archive_expsym_cmds_GCJ | \
17621 module_cmds_GCJ | \
17622 module_expsym_cmds_GCJ | \
17623 old_archive_from_expsyms_cmds_GCJ | \
17624 export_symbols_cmds_GCJ | \
17625 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17626 postinstall_cmds | postuninstall_cmds | \
17627 old_postinstall_cmds | old_postuninstall_cmds | \
17628 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17629 # Double-quote double-evaled strings.
17630 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17631 ;;
17632 *)
17633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17634 ;;
17635 esac
17636 done
17637
17638 case $lt_echo in
17639 *'\$0 --fallback-echo"')
17640 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17641 ;;
17642 esac
17643
17644cfgfile="$ofile"
17645
17646 cat <<__EOF__ >> "$cfgfile"
17647# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17648
17649# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17650
17651# Shell to use when invoking shell scripts.
17652SHELL=$lt_SHELL
17653
17654# Whether or not to build shared libraries.
17655build_libtool_libs=$enable_shared
17656
17657# Whether or not to build static libraries.
17658build_old_libs=$enable_static
17659
17660# Whether or not to add -lc for building shared libraries.
17661build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17662
17663# Whether or not to disallow shared libs when runtime libs are static
17664allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17665
17666# Whether or not to optimize for fast installation.
17667fast_install=$enable_fast_install
17668
17669# The host system.
17670host_alias=$host_alias
17671host=$host
17672
17673# An echo program that does not interpret backslashes.
17674echo=$lt_echo
17675
17676# The archiver.
17677AR=$lt_AR
17678AR_FLAGS=$lt_AR_FLAGS
17679
17680# A C compiler.
17681LTCC=$lt_LTCC
17682
17683# A language-specific compiler.
17684CC=$lt_compiler_GCJ
17685
17686# Is the compiler the GNU C compiler?
17687with_gcc=$GCC_GCJ
17688
17689# An ERE matcher.
17690EGREP=$lt_EGREP
17691
17692# The linker used to build libraries.
17693LD=$lt_LD_GCJ
17694
17695# Whether we need hard or soft links.
17696LN_S=$lt_LN_S
17697
17698# A BSD-compatible nm program.
17699NM=$lt_NM
17700
17701# A symbol stripping program
17702STRIP=$STRIP
17703
17704# Used to examine libraries when file_magic_cmd begins "file"
17705MAGIC_CMD=$MAGIC_CMD
17706
17707# Used on cygwin: DLL creation program.
17708DLLTOOL="$DLLTOOL"
17709
17710# Used on cygwin: object dumper.
17711OBJDUMP="$OBJDUMP"
17712
17713# Used on cygwin: assembler.
17714AS="$AS"
17715
17716# The name of the directory that contains temporary libtool files.
17717objdir=$objdir
17718
17719# How to create reloadable object files.
17720reload_flag=$lt_reload_flag
17721reload_cmds=$lt_reload_cmds
17722
17723# How to pass a linker flag through the compiler.
17724wl=$lt_lt_prog_compiler_wl_GCJ
17725
17726# Object file suffix (normally "o").
17727objext="$ac_objext"
17728
17729# Old archive suffix (normally "a").
17730libext="$libext"
17731
17732# Shared library suffix (normally ".so").
17733shrext='$shrext'
17734
17735# Executable file suffix (normally "").
17736exeext="$exeext"
17737
17738# Additional compiler flags for building library objects.
17739pic_flag=$lt_lt_prog_compiler_pic_GCJ
17740pic_mode=$pic_mode
17741
17742# What is the maximum length of a command?
17743max_cmd_len=$lt_cv_sys_max_cmd_len
17744
17745# Does compiler simultaneously support -c and -o options?
17746compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17747
17748# Must we lock files when doing compilation ?
17749need_locks=$lt_need_locks
17750
17751# Do we need the lib prefix for modules?
17752need_lib_prefix=$need_lib_prefix
17753
17754# Do we need a version for libraries?
17755need_version=$need_version
17756
17757# Whether dlopen is supported.
17758dlopen_support=$enable_dlopen
17759
17760# Whether dlopen of programs is supported.
17761dlopen_self=$enable_dlopen_self
17762
17763# Whether dlopen of statically linked programs is supported.
17764dlopen_self_static=$enable_dlopen_self_static
17765
17766# Compiler flag to prevent dynamic linking.
17767link_static_flag=$lt_lt_prog_compiler_static_GCJ
17768
17769# Compiler flag to turn off builtin functions.
17770no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17771
17772# Compiler flag to allow reflexive dlopens.
17773export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17774
17775# Compiler flag to generate shared objects directly from archives.
17776whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17777
17778# Compiler flag to generate thread-safe objects.
17779thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17780
17781# Library versioning type.
17782version_type=$version_type
17783
17784# Format of library name prefix.
17785libname_spec=$lt_libname_spec
17786
17787# List of archive names. First name is the real one, the rest are links.
17788# The last name is the one that the linker finds with -lNAME.
17789library_names_spec=$lt_library_names_spec
17790
17791# The coded name of the library, if different from the real name.
17792soname_spec=$lt_soname_spec
17793
17794# Commands used to build and install an old-style archive.
17795RANLIB=$lt_RANLIB
17796old_archive_cmds=$lt_old_archive_cmds_GCJ
17797old_postinstall_cmds=$lt_old_postinstall_cmds
17798old_postuninstall_cmds=$lt_old_postuninstall_cmds
17799
17800# Create an old-style archive from a shared archive.
17801old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17802
17803# Create a temporary old-style archive to link instead of a shared archive.
17804old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17805
17806# Commands used to build and install a shared archive.
17807archive_cmds=$lt_archive_cmds_GCJ
17808archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17809postinstall_cmds=$lt_postinstall_cmds
17810postuninstall_cmds=$lt_postuninstall_cmds
17811
17812# Commands used to build a loadable module (assumed same as above if empty)
17813module_cmds=$lt_module_cmds_GCJ
17814module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17815
17816# Commands to strip libraries.
17817old_striplib=$lt_old_striplib
17818striplib=$lt_striplib
17819
17820# Dependencies to place before the objects being linked to create a
17821# shared library.
17822predep_objects=$lt_predep_objects_GCJ
17823
17824# Dependencies to place after the objects being linked to create a
17825# shared library.
17826postdep_objects=$lt_postdep_objects_GCJ
17827
17828# Dependencies to place before the objects being linked to create a
17829# shared library.
17830predeps=$lt_predeps_GCJ
17831
17832# Dependencies to place after the objects being linked to create a
17833# shared library.
17834postdeps=$lt_postdeps_GCJ
17835
17836# The library search path used internally by the compiler when linking
17837# a shared library.
17838compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17839
17840# Method to check whether dependent libraries are shared objects.
17841deplibs_check_method=$lt_deplibs_check_method
17842
17843# Command to use when deplibs_check_method == file_magic.
17844file_magic_cmd=$lt_file_magic_cmd
17845
17846# Flag that allows shared libraries with undefined symbols to be built.
17847allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17848
17849# Flag that forces no undefined symbols.
17850no_undefined_flag=$lt_no_undefined_flag_GCJ
17851
17852# Commands used to finish a libtool library installation in a directory.
17853finish_cmds=$lt_finish_cmds
17854
17855# Same as above, but a single script fragment to be evaled but not shown.
17856finish_eval=$lt_finish_eval
17857
17858# Take the output of nm and produce a listing of raw symbols and C names.
17859global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17860
17861# Transform the output of nm in a proper C declaration
17862global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17863
17864# Transform the output of nm in a C name address pair
17865global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17866
17867# This is the shared library runtime path variable.
17868runpath_var=$runpath_var
17869
17870# This is the shared library path variable.
17871shlibpath_var=$shlibpath_var
17872
17873# Is shlibpath searched before the hard-coded library search path?
17874shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17875
17876# How to hardcode a shared library path into an executable.
17877hardcode_action=$hardcode_action_GCJ
17878
17879# Whether we should hardcode library paths into libraries.
17880hardcode_into_libs=$hardcode_into_libs
17881
17882# Flag to hardcode \$libdir into a binary during linking.
17883# This must work even if \$libdir does not exist.
17884hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17885
17886# If ld is used when linking, flag to hardcode \$libdir into
17887# a binary during linking. This must work even if \$libdir does
17888# not exist.
17889hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17890
17891# Whether we need a single -rpath flag with a separated argument.
17892hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17893
17894# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17895# resulting binary.
17896hardcode_direct=$hardcode_direct_GCJ
17897
17898# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17899# resulting binary.
17900hardcode_minus_L=$hardcode_minus_L_GCJ
17901
17902# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17903# the resulting binary.
17904hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17905
17906# Set to yes if building a shared library automatically hardcodes DIR into the library
17907# and all subsequent libraries and executables linked against it.
17908hardcode_automatic=$hardcode_automatic_GCJ
17909
17910# Variables whose values should be saved in libtool wrapper scripts and
17911# restored at relink time.
17912variables_saved_for_relink="$variables_saved_for_relink"
17913
17914# Whether libtool must link a program against all its dependency libraries.
17915link_all_deplibs=$link_all_deplibs_GCJ
17916
17917# Compile-time system search path for libraries
17918sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17919
17920# Run-time system search path for libraries
17921sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17922
17923# Fix the shell variable \$srcfile for the compiler.
17924fix_srcfile_path="$fix_srcfile_path_GCJ"
17925
17926# Set to yes if exported symbols are required.
17927always_export_symbols=$always_export_symbols_GCJ
17928
17929# The commands to list exported symbols.
17930export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17931
17932# The commands to extract the exported symbol list from a shared archive.
17933extract_expsyms_cmds=$lt_extract_expsyms_cmds
17934
17935# Symbols that should not be listed in the preloaded symbols.
17936exclude_expsyms=$lt_exclude_expsyms_GCJ
17937
17938# Symbols that must always be exported.
17939include_expsyms=$lt_include_expsyms_GCJ
17940
17941# ### END LIBTOOL TAG CONFIG: $tagname
17942
17943__EOF__
17944
17945
17946else
17947 # If there is no Makefile yet, we rely on a make rule to execute
17948 # `config.status --recheck' to rerun these tests and create the
17949 # libtool script then.
17950 test -f Makefile && make "$ltmain"
17951fi
17952
17953
17954ac_ext=c
17955ac_cpp='$CPP $CPPFLAGS'
17956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17958ac_compiler_gnu=$ac_cv_c_compiler_gnu
17959
17960CC="$lt_save_CC"
17961
17962 else
17963 tagname=""
17964 fi
17965 ;;
17966
17967 RC)
17968
17969
17970
17971# Source file extension for RC test sources.
17972ac_ext=rc
17973
17974# Object file extension for compiled RC test sources.
17975objext=o
17976objext_RC=$objext
17977
17978# Code to be used in simple compile tests
17979lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17980
17981# Code to be used in simple link tests
17982lt_simple_link_test_code="$lt_simple_compile_test_code"
17983
17984# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17985
17986# If no C compiler was specified, use CC.
17987LTCC=${LTCC-"$CC"}
17988
17989# Allow CC to be a program name with arguments.
17990compiler=$CC
17991
17992
17993# Allow CC to be a program name with arguments.
17994lt_save_CC="$CC"
17995CC=${RC-"windres"}
17996compiler=$CC
17997compiler_RC=$CC
17998lt_cv_prog_compiler_c_o_RC=yes
17999
18000# The else clause should only fire when bootstrapping the
18001# libtool distribution, otherwise you forgot to ship ltmain.sh
18002# with your package, and you will get complaints that there are
18003# no rules to generate ltmain.sh.
18004if test -f "$ltmain"; then
18005 # See if we are running on zsh, and set the options which allow our commands through
18006 # without removal of \ escapes.
18007 if test -n "${ZSH_VERSION+set}" ; then
18008 setopt NO_GLOB_SUBST
18009 fi
18010 # Now quote all the things that may contain metacharacters while being
18011 # careful not to overquote the AC_SUBSTed values. We take copies of the
18012 # variables and quote the copies for generation of the libtool script.
18013 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18014 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18015 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18016 deplibs_check_method reload_flag reload_cmds need_locks \
18017 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18018 lt_cv_sys_global_symbol_to_c_name_address \
18019 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18020 old_postinstall_cmds old_postuninstall_cmds \
18021 compiler_RC \
18022 CC_RC \
18023 LD_RC \
18024 lt_prog_compiler_wl_RC \
18025 lt_prog_compiler_pic_RC \
18026 lt_prog_compiler_static_RC \
18027 lt_prog_compiler_no_builtin_flag_RC \
18028 export_dynamic_flag_spec_RC \
18029 thread_safe_flag_spec_RC \
18030 whole_archive_flag_spec_RC \
18031 enable_shared_with_static_runtimes_RC \
18032 old_archive_cmds_RC \
18033 old_archive_from_new_cmds_RC \
18034 predep_objects_RC \
18035 postdep_objects_RC \
18036 predeps_RC \
18037 postdeps_RC \
18038 compiler_lib_search_path_RC \
18039 archive_cmds_RC \
18040 archive_expsym_cmds_RC \
18041 postinstall_cmds_RC \
18042 postuninstall_cmds_RC \
18043 old_archive_from_expsyms_cmds_RC \
18044 allow_undefined_flag_RC \
18045 no_undefined_flag_RC \
18046 export_symbols_cmds_RC \
18047 hardcode_libdir_flag_spec_RC \
18048 hardcode_libdir_flag_spec_ld_RC \
18049 hardcode_libdir_separator_RC \
18050 hardcode_automatic_RC \
18051 module_cmds_RC \
18052 module_expsym_cmds_RC \
18053 lt_cv_prog_compiler_c_o_RC \
18054 exclude_expsyms_RC \
18055 include_expsyms_RC; do
18056
18057 case $var in
18058 old_archive_cmds_RC | \
18059 old_archive_from_new_cmds_RC | \
18060 archive_cmds_RC | \
18061 archive_expsym_cmds_RC | \
18062 module_cmds_RC | \
18063 module_expsym_cmds_RC | \
18064 old_archive_from_expsyms_cmds_RC | \
18065 export_symbols_cmds_RC | \
18066 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18067 postinstall_cmds | postuninstall_cmds | \
18068 old_postinstall_cmds | old_postuninstall_cmds | \
18069 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18070 # Double-quote double-evaled strings.
18071 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18072 ;;
18073 *)
18074 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18075 ;;
18076 esac
18077 done
18078
18079 case $lt_echo in
18080 *'\$0 --fallback-echo"')
18081 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18082 ;;
18083 esac
18084
18085cfgfile="$ofile"
18086
18087 cat <<__EOF__ >> "$cfgfile"
18088# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18089
18090# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18091
18092# Shell to use when invoking shell scripts.
18093SHELL=$lt_SHELL
18094
18095# Whether or not to build shared libraries.
18096build_libtool_libs=$enable_shared
18097
18098# Whether or not to build static libraries.
18099build_old_libs=$enable_static
18100
18101# Whether or not to add -lc for building shared libraries.
18102build_libtool_need_lc=$archive_cmds_need_lc_RC
18103
18104# Whether or not to disallow shared libs when runtime libs are static
18105allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18106
18107# Whether or not to optimize for fast installation.
18108fast_install=$enable_fast_install
18109
18110# The host system.
18111host_alias=$host_alias
18112host=$host
18113
18114# An echo program that does not interpret backslashes.
18115echo=$lt_echo
18116
18117# The archiver.
18118AR=$lt_AR
18119AR_FLAGS=$lt_AR_FLAGS
18120
18121# A C compiler.
18122LTCC=$lt_LTCC
18123
18124# A language-specific compiler.
18125CC=$lt_compiler_RC
18126
18127# Is the compiler the GNU C compiler?
18128with_gcc=$GCC_RC
18129
18130# An ERE matcher.
18131EGREP=$lt_EGREP
18132
18133# The linker used to build libraries.
18134LD=$lt_LD_RC
18135
18136# Whether we need hard or soft links.
18137LN_S=$lt_LN_S
18138
18139# A BSD-compatible nm program.
18140NM=$lt_NM
18141
18142# A symbol stripping program
18143STRIP=$STRIP
18144
18145# Used to examine libraries when file_magic_cmd begins "file"
18146MAGIC_CMD=$MAGIC_CMD
18147
18148# Used on cygwin: DLL creation program.
18149DLLTOOL="$DLLTOOL"
18150
18151# Used on cygwin: object dumper.
18152OBJDUMP="$OBJDUMP"
18153
18154# Used on cygwin: assembler.
18155AS="$AS"
18156
18157# The name of the directory that contains temporary libtool files.
18158objdir=$objdir
18159
18160# How to create reloadable object files.
18161reload_flag=$lt_reload_flag
18162reload_cmds=$lt_reload_cmds
18163
18164# How to pass a linker flag through the compiler.
18165wl=$lt_lt_prog_compiler_wl_RC
18166
18167# Object file suffix (normally "o").
18168objext="$ac_objext"
18169
18170# Old archive suffix (normally "a").
18171libext="$libext"
18172
18173# Shared library suffix (normally ".so").
18174shrext='$shrext'
18175
18176# Executable file suffix (normally "").
18177exeext="$exeext"
18178
18179# Additional compiler flags for building library objects.
18180pic_flag=$lt_lt_prog_compiler_pic_RC
18181pic_mode=$pic_mode
18182
18183# What is the maximum length of a command?
18184max_cmd_len=$lt_cv_sys_max_cmd_len
18185
18186# Does compiler simultaneously support -c and -o options?
18187compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18188
18189# Must we lock files when doing compilation ?
18190need_locks=$lt_need_locks
18191
18192# Do we need the lib prefix for modules?
18193need_lib_prefix=$need_lib_prefix
18194
18195# Do we need a version for libraries?
18196need_version=$need_version
18197
18198# Whether dlopen is supported.
18199dlopen_support=$enable_dlopen
18200
18201# Whether dlopen of programs is supported.
18202dlopen_self=$enable_dlopen_self
18203
18204# Whether dlopen of statically linked programs is supported.
18205dlopen_self_static=$enable_dlopen_self_static
18206
18207# Compiler flag to prevent dynamic linking.
18208link_static_flag=$lt_lt_prog_compiler_static_RC
18209
18210# Compiler flag to turn off builtin functions.
18211no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18212
18213# Compiler flag to allow reflexive dlopens.
18214export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18215
18216# Compiler flag to generate shared objects directly from archives.
18217whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18218
18219# Compiler flag to generate thread-safe objects.
18220thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18221
18222# Library versioning type.
18223version_type=$version_type
18224
18225# Format of library name prefix.
18226libname_spec=$lt_libname_spec
18227
18228# List of archive names. First name is the real one, the rest are links.
18229# The last name is the one that the linker finds with -lNAME.
18230library_names_spec=$lt_library_names_spec
18231
18232# The coded name of the library, if different from the real name.
18233soname_spec=$lt_soname_spec
18234
18235# Commands used to build and install an old-style archive.
18236RANLIB=$lt_RANLIB
18237old_archive_cmds=$lt_old_archive_cmds_RC
18238old_postinstall_cmds=$lt_old_postinstall_cmds
18239old_postuninstall_cmds=$lt_old_postuninstall_cmds
18240
18241# Create an old-style archive from a shared archive.
18242old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18243
18244# Create a temporary old-style archive to link instead of a shared archive.
18245old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18246
18247# Commands used to build and install a shared archive.
18248archive_cmds=$lt_archive_cmds_RC
18249archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18250postinstall_cmds=$lt_postinstall_cmds
18251postuninstall_cmds=$lt_postuninstall_cmds
18252
18253# Commands used to build a loadable module (assumed same as above if empty)
18254module_cmds=$lt_module_cmds_RC
18255module_expsym_cmds=$lt_module_expsym_cmds_RC
18256
18257# Commands to strip libraries.
18258old_striplib=$lt_old_striplib
18259striplib=$lt_striplib
18260
18261# Dependencies to place before the objects being linked to create a
18262# shared library.
18263predep_objects=$lt_predep_objects_RC
18264
18265# Dependencies to place after the objects being linked to create a
18266# shared library.
18267postdep_objects=$lt_postdep_objects_RC
18268
18269# Dependencies to place before the objects being linked to create a
18270# shared library.
18271predeps=$lt_predeps_RC
18272
18273# Dependencies to place after the objects being linked to create a
18274# shared library.
18275postdeps=$lt_postdeps_RC
18276
18277# The library search path used internally by the compiler when linking
18278# a shared library.
18279compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18280
18281# Method to check whether dependent libraries are shared objects.
18282deplibs_check_method=$lt_deplibs_check_method
18283
18284# Command to use when deplibs_check_method == file_magic.
18285file_magic_cmd=$lt_file_magic_cmd
18286
18287# Flag that allows shared libraries with undefined symbols to be built.
18288allow_undefined_flag=$lt_allow_undefined_flag_RC
18289
18290# Flag that forces no undefined symbols.
18291no_undefined_flag=$lt_no_undefined_flag_RC
18292
18293# Commands used to finish a libtool library installation in a directory.
18294finish_cmds=$lt_finish_cmds
18295
18296# Same as above, but a single script fragment to be evaled but not shown.
18297finish_eval=$lt_finish_eval
18298
18299# Take the output of nm and produce a listing of raw symbols and C names.
18300global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18301
18302# Transform the output of nm in a proper C declaration
18303global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18304
18305# Transform the output of nm in a C name address pair
18306global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18307
18308# This is the shared library runtime path variable.
18309runpath_var=$runpath_var
18310
18311# This is the shared library path variable.
18312shlibpath_var=$shlibpath_var
18313
18314# Is shlibpath searched before the hard-coded library search path?
18315shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18316
18317# How to hardcode a shared library path into an executable.
18318hardcode_action=$hardcode_action_RC
18319
18320# Whether we should hardcode library paths into libraries.
18321hardcode_into_libs=$hardcode_into_libs
18322
18323# Flag to hardcode \$libdir into a binary during linking.
18324# This must work even if \$libdir does not exist.
18325hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18326
18327# If ld is used when linking, flag to hardcode \$libdir into
18328# a binary during linking. This must work even if \$libdir does
18329# not exist.
18330hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18331
18332# Whether we need a single -rpath flag with a separated argument.
18333hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18334
18335# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18336# resulting binary.
18337hardcode_direct=$hardcode_direct_RC
18338
18339# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18340# resulting binary.
18341hardcode_minus_L=$hardcode_minus_L_RC
18342
18343# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18344# the resulting binary.
18345hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18346
18347# Set to yes if building a shared library automatically hardcodes DIR into the library
18348# and all subsequent libraries and executables linked against it.
18349hardcode_automatic=$hardcode_automatic_RC
18350
18351# Variables whose values should be saved in libtool wrapper scripts and
18352# restored at relink time.
18353variables_saved_for_relink="$variables_saved_for_relink"
18354
18355# Whether libtool must link a program against all its dependency libraries.
18356link_all_deplibs=$link_all_deplibs_RC
18357
18358# Compile-time system search path for libraries
18359sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18360
18361# Run-time system search path for libraries
18362sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18363
18364# Fix the shell variable \$srcfile for the compiler.
18365fix_srcfile_path="$fix_srcfile_path_RC"
18366
18367# Set to yes if exported symbols are required.
18368always_export_symbols=$always_export_symbols_RC
18369
18370# The commands to list exported symbols.
18371export_symbols_cmds=$lt_export_symbols_cmds_RC
18372
18373# The commands to extract the exported symbol list from a shared archive.
18374extract_expsyms_cmds=$lt_extract_expsyms_cmds
18375
18376# Symbols that should not be listed in the preloaded symbols.
18377exclude_expsyms=$lt_exclude_expsyms_RC
18378
18379# Symbols that must always be exported.
18380include_expsyms=$lt_include_expsyms_RC
18381
18382# ### END LIBTOOL TAG CONFIG: $tagname
18383
18384__EOF__
18385
18386
18387else
18388 # If there is no Makefile yet, we rely on a make rule to execute
18389 # `config.status --recheck' to rerun these tests and create the
18390 # libtool script then.
18391 test -f Makefile && make "$ltmain"
18392fi
18393
18394
18395ac_ext=c
18396ac_cpp='$CPP $CPPFLAGS'
18397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18399ac_compiler_gnu=$ac_cv_c_compiler_gnu
18400
18401CC="$lt_save_CC"
18402
18403 ;;
18404
18405 *)
18406 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18407echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18408 { (exit 1); exit 1; }; }
18409 ;;
18410 esac
18411
18412 # Append the new tag name to the list of available tags.
18413 if test -n "$tagname" ; then
18414 available_tags="$available_tags $tagname"
18415 fi
18416 fi
18417 done
18418 IFS="$lt_save_ifs"
18419
18420 # Now substitute the updated list of available tags.
18421 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18422 mv "${ofile}T" "$ofile"
18423 chmod +x "$ofile"
18424 else
18425 rm -f "${ofile}T"
18426 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18427echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18428 { (exit 1); exit 1; }; }
18429 fi
18430fi
John Criswell7a73b802003-06-30 21:59:07 +000018431
18432
18433
18434# This can be used to rebuild libtool when needed
18435LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18436
18437# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018438LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018439
18440# Prevent multiple expansion
18441
18442
18443
John Criswell47fdd832003-07-14 16:52:07 +000018444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
John Criswellde00db22003-08-25 16:49:54 +000018462# Extract the first word of "pwd", so it can be a program name with args.
18463set dummy pwd; ac_word=$2
18464echo "$as_me:$LINENO: checking for $ac_word" >&5
18465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18466if test "${ac_cv_path_RPWD+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18468else
18469 case $RPWD in
18470 [\\/]* | ?:[\\/]*)
18471 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18472 ;;
18473 *)
18474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18475for as_dir in $PATH
18476do
18477 IFS=$as_save_IFS
18478 test -z "$as_dir" && as_dir=.
18479 for ac_exec_ext in '' $ac_executable_extensions; do
18480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18481 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18483 break 2
18484 fi
18485done
18486done
18487
John Criswell39827c82003-09-23 15:28:52 +000018488 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018489 ;;
18490esac
18491fi
18492RPWD=$ac_cv_path_RPWD
18493
18494if test -n "$RPWD"; then
18495 echo "$as_me:$LINENO: result: $RPWD" >&5
18496echo "${ECHO_T}$RPWD" >&6
18497else
18498 echo "$as_me:$LINENO: result: no" >&5
18499echo "${ECHO_T}no" >&6
18500fi
18501
John Criswell39827c82003-09-23 15:28:52 +000018502if test ${RPWD} = "false"
18503then
18504 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18505echo "$as_me: error: pwd required but not found" >&2;}
18506 { (exit 1); exit 1; }; }
18507fi
18508
John Criswell7a73b802003-06-30 21:59:07 +000018509# Extract the first word of "ar", so it can be a program name with args.
18510set dummy ar; ac_word=$2
18511echo "$as_me:$LINENO: checking for $ac_word" >&5
18512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18513if test "${ac_cv_path_AR+set}" = set; then
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
18515else
18516 case $AR in
18517 [\\/]* | ?:[\\/]*)
18518 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18519 ;;
18520 *)
18521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18522for as_dir in $PATH
18523do
18524 IFS=$as_save_IFS
18525 test -z "$as_dir" && as_dir=.
18526 for ac_exec_ext in '' $ac_executable_extensions; do
18527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18528 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18530 break 2
18531 fi
18532done
18533done
18534
John Criswell39827c82003-09-23 15:28:52 +000018535 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018536 ;;
18537esac
18538fi
18539AR=$ac_cv_path_AR
18540
18541if test -n "$AR"; then
18542 echo "$as_me:$LINENO: result: $AR" >&5
18543echo "${ECHO_T}$AR" >&6
18544else
18545 echo "$as_me:$LINENO: result: no" >&5
18546echo "${ECHO_T}no" >&6
18547fi
18548
John Criswell39827c82003-09-23 15:28:52 +000018549if test ${AR} = "false"
18550then
18551 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18552echo "$as_me: error: ar required but not found" >&2;}
18553 { (exit 1); exit 1; }; }
18554fi
18555
John Criswell7a73b802003-06-30 21:59:07 +000018556# Extract the first word of "sed", so it can be a program name with args.
18557set dummy sed; ac_word=$2
18558echo "$as_me:$LINENO: checking for $ac_word" >&5
18559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18560if test "${ac_cv_path_SED+set}" = set; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18562else
18563 case $SED in
18564 [\\/]* | ?:[\\/]*)
18565 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18566 ;;
18567 *)
18568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18569for as_dir in $PATH
18570do
18571 IFS=$as_save_IFS
18572 test -z "$as_dir" && as_dir=.
18573 for ac_exec_ext in '' $ac_executable_extensions; do
18574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18575 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18577 break 2
18578 fi
18579done
18580done
18581
John Criswell39827c82003-09-23 15:28:52 +000018582 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018583 ;;
18584esac
18585fi
18586SED=$ac_cv_path_SED
18587
18588if test -n "$SED"; then
18589 echo "$as_me:$LINENO: result: $SED" >&5
18590echo "${ECHO_T}$SED" >&6
18591else
18592 echo "$as_me:$LINENO: result: no" >&5
18593echo "${ECHO_T}no" >&6
18594fi
18595
John Criswell39827c82003-09-23 15:28:52 +000018596if test ${SED} = "false"
18597then
18598 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18599echo "$as_me: error: sed required but not found" >&2;}
18600 { (exit 1); exit 1; }; }
18601fi
18602
John Criswell7a73b802003-06-30 21:59:07 +000018603# Extract the first word of "rm", so it can be a program name with args.
18604set dummy rm; ac_word=$2
18605echo "$as_me:$LINENO: checking for $ac_word" >&5
18606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18607if test "${ac_cv_path_RM+set}" = set; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18609else
18610 case $RM in
18611 [\\/]* | ?:[\\/]*)
18612 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18613 ;;
18614 *)
18615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616for as_dir in $PATH
18617do
18618 IFS=$as_save_IFS
18619 test -z "$as_dir" && as_dir=.
18620 for ac_exec_ext in '' $ac_executable_extensions; do
18621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18622 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18624 break 2
18625 fi
18626done
18627done
18628
John Criswell39827c82003-09-23 15:28:52 +000018629 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018630 ;;
18631esac
18632fi
18633RM=$ac_cv_path_RM
18634
18635if test -n "$RM"; then
18636 echo "$as_me:$LINENO: result: $RM" >&5
18637echo "${ECHO_T}$RM" >&6
18638else
18639 echo "$as_me:$LINENO: result: no" >&5
18640echo "${ECHO_T}no" >&6
18641fi
18642
John Criswell39827c82003-09-23 15:28:52 +000018643if test ${RM} = "false"
18644then
18645 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18646echo "$as_me: error: rm required but not found" >&2;}
18647 { (exit 1); exit 1; }; }
18648fi
18649
John Criswell7a73b802003-06-30 21:59:07 +000018650# Extract the first word of "echo", so it can be a program name with args.
18651set dummy echo; ac_word=$2
18652echo "$as_me:$LINENO: checking for $ac_word" >&5
18653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18654if test "${ac_cv_path_ECHO+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18656else
18657 case $ECHO in
18658 [\\/]* | ?:[\\/]*)
18659 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18660 ;;
18661 *)
18662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18663for as_dir in $PATH
18664do
18665 IFS=$as_save_IFS
18666 test -z "$as_dir" && as_dir=.
18667 for ac_exec_ext in '' $ac_executable_extensions; do
18668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18669 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18671 break 2
18672 fi
18673done
18674done
18675
John Criswell39827c82003-09-23 15:28:52 +000018676 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018677 ;;
18678esac
18679fi
18680ECHO=$ac_cv_path_ECHO
18681
18682if test -n "$ECHO"; then
18683 echo "$as_me:$LINENO: result: $ECHO" >&5
18684echo "${ECHO_T}$ECHO" >&6
18685else
18686 echo "$as_me:$LINENO: result: no" >&5
18687echo "${ECHO_T}no" >&6
18688fi
18689
John Criswell39827c82003-09-23 15:28:52 +000018690if test ${ECHO} = "false"
18691then
18692 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18693echo "$as_me: error: echo required but not found" >&2;}
18694 { (exit 1); exit 1; }; }
18695fi
18696
John Criswell7a73b802003-06-30 21:59:07 +000018697# Extract the first word of "mkdir", so it can be a program name with args.
18698set dummy mkdir; ac_word=$2
18699echo "$as_me:$LINENO: checking for $ac_word" >&5
18700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18701if test "${ac_cv_path_MKDIR+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18703else
18704 case $MKDIR in
18705 [\\/]* | ?:[\\/]*)
18706 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18707 ;;
18708 *)
18709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18710for as_dir in $PATH
18711do
18712 IFS=$as_save_IFS
18713 test -z "$as_dir" && as_dir=.
18714 for ac_exec_ext in '' $ac_executable_extensions; do
18715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18716 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18718 break 2
18719 fi
18720done
18721done
18722
John Criswell39827c82003-09-23 15:28:52 +000018723 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018724 ;;
18725esac
18726fi
18727MKDIR=$ac_cv_path_MKDIR
18728
18729if test -n "$MKDIR"; then
18730 echo "$as_me:$LINENO: result: $MKDIR" >&5
18731echo "${ECHO_T}$MKDIR" >&6
18732else
18733 echo "$as_me:$LINENO: result: no" >&5
18734echo "${ECHO_T}no" >&6
18735fi
18736
John Criswell39827c82003-09-23 15:28:52 +000018737if test ${MKDIR} = "false"
18738then
18739 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18740echo "$as_me: error: mkdir required but not found" >&2;}
18741 { (exit 1); exit 1; }; }
18742fi
18743
John Criswell7a73b802003-06-30 21:59:07 +000018744# Extract the first word of "date", so it can be a program name with args.
18745set dummy date; ac_word=$2
18746echo "$as_me:$LINENO: checking for $ac_word" >&5
18747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18748if test "${ac_cv_path_DATE+set}" = set; then
18749 echo $ECHO_N "(cached) $ECHO_C" >&6
18750else
18751 case $DATE in
18752 [\\/]* | ?:[\\/]*)
18753 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18754 ;;
18755 *)
18756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18757for as_dir in $PATH
18758do
18759 IFS=$as_save_IFS
18760 test -z "$as_dir" && as_dir=.
18761 for ac_exec_ext in '' $ac_executable_extensions; do
18762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18763 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18765 break 2
18766 fi
18767done
18768done
18769
John Criswell39827c82003-09-23 15:28:52 +000018770 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018771 ;;
18772esac
18773fi
18774DATE=$ac_cv_path_DATE
18775
18776if test -n "$DATE"; then
18777 echo "$as_me:$LINENO: result: $DATE" >&5
18778echo "${ECHO_T}$DATE" >&6
18779else
18780 echo "$as_me:$LINENO: result: no" >&5
18781echo "${ECHO_T}no" >&6
18782fi
18783
John Criswell39827c82003-09-23 15:28:52 +000018784if test ${DATE} = "false"
18785then
18786 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18787echo "$as_me: error: date required but not found" >&2;}
18788 { (exit 1); exit 1; }; }
18789fi
18790
John Criswell7a73b802003-06-30 21:59:07 +000018791# Extract the first word of "mv", so it can be a program name with args.
18792set dummy mv; ac_word=$2
18793echo "$as_me:$LINENO: checking for $ac_word" >&5
18794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18795if test "${ac_cv_path_MV+set}" = set; then
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18797else
18798 case $MV in
18799 [\\/]* | ?:[\\/]*)
18800 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18801 ;;
18802 *)
18803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18804for as_dir in $PATH
18805do
18806 IFS=$as_save_IFS
18807 test -z "$as_dir" && as_dir=.
18808 for ac_exec_ext in '' $ac_executable_extensions; do
18809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18810 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18812 break 2
18813 fi
18814done
18815done
18816
John Criswell39827c82003-09-23 15:28:52 +000018817 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018818 ;;
18819esac
18820fi
18821MV=$ac_cv_path_MV
18822
18823if test -n "$MV"; then
18824 echo "$as_me:$LINENO: result: $MV" >&5
18825echo "${ECHO_T}$MV" >&6
18826else
18827 echo "$as_me:$LINENO: result: no" >&5
18828echo "${ECHO_T}no" >&6
18829fi
18830
John Criswell39827c82003-09-23 15:28:52 +000018831if test ${MV} = "false"
18832then
18833 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18834echo "$as_me: error: mv required but not found" >&2;}
18835 { (exit 1); exit 1; }; }
18836fi
18837
John Criswell7a73b802003-06-30 21:59:07 +000018838# Extract the first word of "dot", so it can be a program name with args.
18839set dummy dot; ac_word=$2
18840echo "$as_me:$LINENO: checking for $ac_word" >&5
18841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18842if test "${ac_cv_path_DOT+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18844else
18845 case $DOT in
18846 [\\/]* | ?:[\\/]*)
18847 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18848 ;;
18849 *)
18850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18851for as_dir in $PATH
18852do
18853 IFS=$as_save_IFS
18854 test -z "$as_dir" && as_dir=.
18855 for ac_exec_ext in '' $ac_executable_extensions; do
18856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18857 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18859 break 2
18860 fi
18861done
18862done
18863
John Criswell39827c82003-09-23 15:28:52 +000018864 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018865 ;;
18866esac
18867fi
18868DOT=$ac_cv_path_DOT
18869
18870if test -n "$DOT"; then
18871 echo "$as_me:$LINENO: result: $DOT" >&5
18872echo "${ECHO_T}$DOT" >&6
18873else
18874 echo "$as_me:$LINENO: result: no" >&5
18875echo "${ECHO_T}no" >&6
18876fi
18877
John Criswell39827c82003-09-23 15:28:52 +000018878
John Criswell7a73b802003-06-30 21:59:07 +000018879# Extract the first word of "etags", so it can be a program name with args.
18880set dummy etags; ac_word=$2
18881echo "$as_me:$LINENO: checking for $ac_word" >&5
18882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18883if test "${ac_cv_path_ETAGS+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
18885else
18886 case $ETAGS in
18887 [\\/]* | ?:[\\/]*)
18888 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18889 ;;
18890 *)
18891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892for as_dir in $PATH
18893do
18894 IFS=$as_save_IFS
18895 test -z "$as_dir" && as_dir=.
18896 for ac_exec_ext in '' $ac_executable_extensions; do
18897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18898 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18900 break 2
18901 fi
18902done
18903done
18904
John Criswell39827c82003-09-23 15:28:52 +000018905 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018906 ;;
18907esac
18908fi
18909ETAGS=$ac_cv_path_ETAGS
18910
18911if test -n "$ETAGS"; then
18912 echo "$as_me:$LINENO: result: $ETAGS" >&5
18913echo "${ECHO_T}$ETAGS" >&6
18914else
18915 echo "$as_me:$LINENO: result: no" >&5
18916echo "${ECHO_T}no" >&6
18917fi
18918
John Criswell39827c82003-09-23 15:28:52 +000018919
John Criswellde00db22003-08-25 16:49:54 +000018920# Extract the first word of "python", so it can be a program name with args.
18921set dummy python; ac_word=$2
18922echo "$as_me:$LINENO: checking for $ac_word" >&5
18923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18924if test "${ac_cv_path_PYTHON+set}" = set; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18926else
18927 case $PYTHON in
18928 [\\/]* | ?:[\\/]*)
18929 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18930 ;;
18931 *)
18932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18933for as_dir in $PATH
18934do
18935 IFS=$as_save_IFS
18936 test -z "$as_dir" && as_dir=.
18937 for ac_exec_ext in '' $ac_executable_extensions; do
18938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18939 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18941 break 2
18942 fi
18943done
18944done
18945
John Criswell39827c82003-09-23 15:28:52 +000018946 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018947 ;;
18948esac
18949fi
18950PYTHON=$ac_cv_path_PYTHON
18951
18952if test -n "$PYTHON"; then
18953 echo "$as_me:$LINENO: result: $PYTHON" >&5
18954echo "${ECHO_T}$PYTHON" >&6
18955else
18956 echo "$as_me:$LINENO: result: no" >&5
18957echo "${ECHO_T}no" >&6
18958fi
18959
John Criswell39827c82003-09-23 15:28:52 +000018960if test ${PYTHON} = "false"
18961then
John Criswell61095982003-09-23 20:46:32 +000018962 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18963echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018964fi
18965
John Criswellde00db22003-08-25 16:49:54 +000018966# Extract the first word of "qmtest", so it can be a program name with args.
18967set dummy qmtest; ac_word=$2
18968echo "$as_me:$LINENO: checking for $ac_word" >&5
18969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18970if test "${ac_cv_path_QMTEST+set}" = set; then
18971 echo $ECHO_N "(cached) $ECHO_C" >&6
18972else
18973 case $QMTEST in
18974 [\\/]* | ?:[\\/]*)
18975 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18976 ;;
18977 *)
18978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18979for as_dir in $PATH
18980do
18981 IFS=$as_save_IFS
18982 test -z "$as_dir" && as_dir=.
18983 for ac_exec_ext in '' $ac_executable_extensions; do
18984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18985 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18987 break 2
18988 fi
18989done
18990done
18991
John Criswell39827c82003-09-23 15:28:52 +000018992 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000018993 ;;
18994esac
18995fi
18996QMTEST=$ac_cv_path_QMTEST
18997
18998if test -n "$QMTEST"; then
18999 echo "$as_me:$LINENO: result: $QMTEST" >&5
19000echo "${ECHO_T}$QMTEST" >&6
19001else
19002 echo "$as_me:$LINENO: result: no" >&5
19003echo "${ECHO_T}no" >&6
19004fi
19005
John Criswell39827c82003-09-23 15:28:52 +000019006if test ${QMTEST} = "false"
19007then
John Criswell61095982003-09-23 20:46:32 +000019008 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19009echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019010fi
John Criswellde00db22003-08-25 16:49:54 +000019011
19012pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19013pymajor=`echo $pyversion | cut -d. -f1`
19014pyminor=`echo $pyversion | cut -d. -f2`
19015
19016if test "$pymajor" -ge "2"
19017then
19018 if test "$pymajor" -eq "2"
19019 then
19020 if test "$pyminor" -lt "2"
19021 then
19022 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19023echo "$as_me: error: Python 2.2 or greater required" >&2;}
19024 { (exit 1); exit 1; }; }
19025 fi
19026 fi
19027else
19028 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19029echo "$as_me: error: Python 2.2 or greater required" >&2;}
19030 { (exit 1); exit 1; }; }
19031fi
John Criswell7a73b802003-06-30 21:59:07 +000019032
19033
19034
19035
19036
19037echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19038echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19039if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19041else
19042 ac_check_lib_save_LIBS=$LIBS
19043LIBS="-lelf $LIBS"
19044cat >conftest.$ac_ext <<_ACEOF
19045#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019046/* confdefs.h. */
19047_ACEOF
19048cat confdefs.h >>conftest.$ac_ext
19049cat >>conftest.$ac_ext <<_ACEOF
19050/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019051
19052/* Override any gcc2 internal prototype to avoid an error. */
19053#ifdef __cplusplus
19054extern "C"
19055#endif
19056/* We use char because int might match the return type of a gcc2
19057 builtin and then its argument prototype would still apply. */
19058char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019059int
19060main ()
19061{
19062elf_begin ();
19063 ;
19064 return 0;
19065}
19066_ACEOF
19067rm -f conftest.$ac_objext conftest$ac_exeext
19068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19069 (eval $ac_link) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } &&
19073 { ac_try='test -s conftest$ac_exeext'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_lib_elf_elf_begin=yes
19080else
19081 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019082sed 's/^/| /' conftest.$ac_ext >&5
19083
John Criswell7a73b802003-06-30 21:59:07 +000019084ac_cv_lib_elf_elf_begin=no
19085fi
19086rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19087LIBS=$ac_check_lib_save_LIBS
19088fi
19089echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19090echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19091if test $ac_cv_lib_elf_elf_begin = yes; then
19092 cat >>confdefs.h <<_ACEOF
19093#define HAVE_LIBELF 1
19094_ACEOF
19095
19096 LIBS="-lelf $LIBS"
19097
19098fi
19099
19100
19101echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19102echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19103if test "${ac_cv_search_dlopen+set}" = set; then
19104 echo $ECHO_N "(cached) $ECHO_C" >&6
19105else
19106 ac_func_search_save_LIBS=$LIBS
19107ac_cv_search_dlopen=no
19108cat >conftest.$ac_ext <<_ACEOF
19109#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019110/* confdefs.h. */
19111_ACEOF
19112cat confdefs.h >>conftest.$ac_ext
19113cat >>conftest.$ac_ext <<_ACEOF
19114/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019115
19116/* Override any gcc2 internal prototype to avoid an error. */
19117#ifdef __cplusplus
19118extern "C"
19119#endif
19120/* We use char because int might match the return type of a gcc2
19121 builtin and then its argument prototype would still apply. */
19122char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019123int
19124main ()
19125{
19126dlopen ();
19127 ;
19128 return 0;
19129}
19130_ACEOF
19131rm -f conftest.$ac_objext conftest$ac_exeext
19132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19133 (eval $ac_link) 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } &&
19137 { ac_try='test -s conftest$ac_exeext'
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; }; then
19143 ac_cv_search_dlopen="none required"
19144else
19145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019146sed 's/^/| /' conftest.$ac_ext >&5
19147
John Criswell7a73b802003-06-30 21:59:07 +000019148fi
19149rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19150if test "$ac_cv_search_dlopen" = no; then
19151 for ac_lib in dl; do
19152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19153 cat >conftest.$ac_ext <<_ACEOF
19154#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019155/* confdefs.h. */
19156_ACEOF
19157cat confdefs.h >>conftest.$ac_ext
19158cat >>conftest.$ac_ext <<_ACEOF
19159/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019160
19161/* Override any gcc2 internal prototype to avoid an error. */
19162#ifdef __cplusplus
19163extern "C"
19164#endif
19165/* We use char because int might match the return type of a gcc2
19166 builtin and then its argument prototype would still apply. */
19167char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019168int
19169main ()
19170{
19171dlopen ();
19172 ;
19173 return 0;
19174}
19175_ACEOF
19176rm -f conftest.$ac_objext conftest$ac_exeext
19177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19178 (eval $ac_link) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } &&
19182 { ac_try='test -s conftest$ac_exeext'
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; }; then
19188 ac_cv_search_dlopen="-l$ac_lib"
19189break
19190else
19191 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019192sed 's/^/| /' conftest.$ac_ext >&5
19193
John Criswell7a73b802003-06-30 21:59:07 +000019194fi
19195rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19196 done
19197fi
19198LIBS=$ac_func_search_save_LIBS
19199fi
19200echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19201echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19202if test "$ac_cv_search_dlopen" != no; then
19203 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019204
19205cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019206#define HAVE_DLOPEN 1
19207_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019208
19209else
Brian Gaekec45be042003-10-07 06:01:34 +000019210 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19211echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019212fi
19213
19214
19215echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19216echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19217if test "${ac_cv_search_mallinfo+set}" = set; then
19218 echo $ECHO_N "(cached) $ECHO_C" >&6
19219else
19220 ac_func_search_save_LIBS=$LIBS
19221ac_cv_search_mallinfo=no
19222cat >conftest.$ac_ext <<_ACEOF
19223#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019224/* confdefs.h. */
19225_ACEOF
19226cat confdefs.h >>conftest.$ac_ext
19227cat >>conftest.$ac_ext <<_ACEOF
19228/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019229
19230/* Override any gcc2 internal prototype to avoid an error. */
19231#ifdef __cplusplus
19232extern "C"
19233#endif
19234/* We use char because int might match the return type of a gcc2
19235 builtin and then its argument prototype would still apply. */
19236char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019237int
19238main ()
19239{
19240mallinfo ();
19241 ;
19242 return 0;
19243}
19244_ACEOF
19245rm -f conftest.$ac_objext conftest$ac_exeext
19246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19247 (eval $ac_link) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } &&
19251 { ac_try='test -s conftest$ac_exeext'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 ac_cv_search_mallinfo="none required"
19258else
19259 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019260sed 's/^/| /' conftest.$ac_ext >&5
19261
John Criswell7a73b802003-06-30 21:59:07 +000019262fi
19263rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19264if test "$ac_cv_search_mallinfo" = no; then
19265 for ac_lib in malloc; do
19266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19267 cat >conftest.$ac_ext <<_ACEOF
19268#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019269/* confdefs.h. */
19270_ACEOF
19271cat confdefs.h >>conftest.$ac_ext
19272cat >>conftest.$ac_ext <<_ACEOF
19273/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019274
19275/* Override any gcc2 internal prototype to avoid an error. */
19276#ifdef __cplusplus
19277extern "C"
19278#endif
19279/* We use char because int might match the return type of a gcc2
19280 builtin and then its argument prototype would still apply. */
19281char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019282int
19283main ()
19284{
19285mallinfo ();
19286 ;
19287 return 0;
19288}
19289_ACEOF
19290rm -f conftest.$ac_objext conftest$ac_exeext
19291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292 (eval $ac_link) 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } &&
19296 { ac_try='test -s conftest$ac_exeext'
19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298 (eval $ac_try) 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; }; then
19302 ac_cv_search_mallinfo="-l$ac_lib"
19303break
19304else
19305 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019306sed 's/^/| /' conftest.$ac_ext >&5
19307
John Criswell7a73b802003-06-30 21:59:07 +000019308fi
19309rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19310 done
19311fi
19312LIBS=$ac_func_search_save_LIBS
19313fi
19314echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19315echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19316if test "$ac_cv_search_mallinfo" != no; then
19317 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019318
19319cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019320#define HAVE_MALLINFO 1
19321_ACEOF
19322
19323fi
19324
19325
19326
19327echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19328echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19329if test "${ac_cv_header_stdc+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19331else
19332 cat >conftest.$ac_ext <<_ACEOF
19333#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019334/* confdefs.h. */
19335_ACEOF
19336cat confdefs.h >>conftest.$ac_ext
19337cat >>conftest.$ac_ext <<_ACEOF
19338/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019339#include <stdlib.h>
19340#include <stdarg.h>
19341#include <string.h>
19342#include <float.h>
19343
John Criswell0c38eaf2003-09-10 15:17:25 +000019344int
19345main ()
19346{
19347
19348 ;
19349 return 0;
19350}
John Criswell7a73b802003-06-30 21:59:07 +000019351_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019352rm -f conftest.$ac_objext
19353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19354 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019355 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019357 (exit $ac_status); } &&
19358 { ac_try='test -s conftest.$ac_objext'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019364 ac_cv_header_stdc=yes
19365else
19366 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019367sed 's/^/| /' conftest.$ac_ext >&5
19368
19369ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019370fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019371rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019372
19373if test $ac_cv_header_stdc = yes; then
19374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19375 cat >conftest.$ac_ext <<_ACEOF
19376#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019377/* confdefs.h. */
19378_ACEOF
19379cat confdefs.h >>conftest.$ac_ext
19380cat >>conftest.$ac_ext <<_ACEOF
19381/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019382#include <string.h>
19383
19384_ACEOF
19385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019386 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019387 :
19388else
19389 ac_cv_header_stdc=no
19390fi
19391rm -f conftest*
19392
19393fi
19394
19395if test $ac_cv_header_stdc = yes; then
19396 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19397 cat >conftest.$ac_ext <<_ACEOF
19398#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
19403/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019404#include <stdlib.h>
19405
19406_ACEOF
19407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019408 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019409 :
19410else
19411 ac_cv_header_stdc=no
19412fi
19413rm -f conftest*
19414
19415fi
19416
19417if test $ac_cv_header_stdc = yes; then
19418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19419 if test "$cross_compiling" = yes; then
19420 :
19421else
19422 cat >conftest.$ac_ext <<_ACEOF
19423#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019424/* confdefs.h. */
19425_ACEOF
19426cat confdefs.h >>conftest.$ac_ext
19427cat >>conftest.$ac_ext <<_ACEOF
19428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019429#include <ctype.h>
19430#if ((' ' & 0x0FF) == 0x020)
19431# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19432# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19433#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019434# define ISLOWER(c) \
19435 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019436 || ('j' <= (c) && (c) <= 'r') \
19437 || ('s' <= (c) && (c) <= 'z'))
19438# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19439#endif
19440
19441#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19442int
19443main ()
19444{
19445 int i;
19446 for (i = 0; i < 256; i++)
19447 if (XOR (islower (i), ISLOWER (i))
19448 || toupper (i) != TOUPPER (i))
19449 exit(2);
19450 exit (0);
19451}
19452_ACEOF
19453rm -f conftest$ac_exeext
19454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19455 (eval $ac_link) 2>&5
19456 ac_status=$?
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 :
19465else
19466 echo "$as_me: program exited with status $ac_status" >&5
19467echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019468sed 's/^/| /' conftest.$ac_ext >&5
19469
John Criswell7a73b802003-06-30 21:59:07 +000019470( exit $ac_status )
19471ac_cv_header_stdc=no
19472fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019473rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019474fi
19475fi
19476fi
19477echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19478echo "${ECHO_T}$ac_cv_header_stdc" >&6
19479if test $ac_cv_header_stdc = yes; then
19480
19481cat >>confdefs.h <<\_ACEOF
19482#define STDC_HEADERS 1
19483_ACEOF
19484
19485fi
19486
19487echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19488echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19489if test "${ac_cv_header_sys_wait_h+set}" = set; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
19491else
19492 cat >conftest.$ac_ext <<_ACEOF
19493#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019494/* confdefs.h. */
19495_ACEOF
19496cat confdefs.h >>conftest.$ac_ext
19497cat >>conftest.$ac_ext <<_ACEOF
19498/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019499#include <sys/types.h>
19500#include <sys/wait.h>
19501#ifndef WEXITSTATUS
19502# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19503#endif
19504#ifndef WIFEXITED
19505# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19506#endif
19507
John Criswell7a73b802003-06-30 21:59:07 +000019508int
19509main ()
19510{
19511 int s;
19512 wait (&s);
19513 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19514 ;
19515 return 0;
19516}
19517_ACEOF
19518rm -f conftest.$ac_objext
19519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19520 (eval $ac_compile) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } &&
19524 { ac_try='test -s conftest.$ac_objext'
19525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526 (eval $ac_try) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
19530 ac_cv_header_sys_wait_h=yes
19531else
19532 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019533sed 's/^/| /' conftest.$ac_ext >&5
19534
John Criswell7a73b802003-06-30 21:59:07 +000019535ac_cv_header_sys_wait_h=no
19536fi
19537rm -f conftest.$ac_objext conftest.$ac_ext
19538fi
19539echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19540echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19541if test $ac_cv_header_sys_wait_h = yes; then
19542
19543cat >>confdefs.h <<\_ACEOF
19544#define HAVE_SYS_WAIT_H 1
19545_ACEOF
19546
19547fi
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19559do
19560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19561if eval "test \"\${$as_ac_Header+set}\" = set"; then
19562 echo "$as_me:$LINENO: checking for $ac_header" >&5
19563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19564if eval "test \"\${$as_ac_Header+set}\" = set"; then
19565 echo $ECHO_N "(cached) $ECHO_C" >&6
19566fi
19567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19569else
19570 # Is the header compilable?
19571echo "$as_me:$LINENO: checking $ac_header usability" >&5
19572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19573cat >conftest.$ac_ext <<_ACEOF
19574#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019575/* confdefs.h. */
19576_ACEOF
19577cat confdefs.h >>conftest.$ac_ext
19578cat >>conftest.$ac_ext <<_ACEOF
19579/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019580$ac_includes_default
19581#include <$ac_header>
19582_ACEOF
19583rm -f conftest.$ac_objext
19584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19585 (eval $ac_compile) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } &&
19589 { ac_try='test -s conftest.$ac_objext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595 ac_header_compiler=yes
19596else
19597 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019598sed 's/^/| /' conftest.$ac_ext >&5
19599
John Criswell7a73b802003-06-30 21:59:07 +000019600ac_header_compiler=no
19601fi
19602rm -f conftest.$ac_objext conftest.$ac_ext
19603echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19604echo "${ECHO_T}$ac_header_compiler" >&6
19605
19606# Is the header present?
19607echo "$as_me:$LINENO: checking $ac_header presence" >&5
19608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19609cat >conftest.$ac_ext <<_ACEOF
19610#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019611/* confdefs.h. */
19612_ACEOF
19613cat confdefs.h >>conftest.$ac_ext
19614cat >>conftest.$ac_ext <<_ACEOF
19615/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019616#include <$ac_header>
19617_ACEOF
19618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19620 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019621 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019622 rm -f conftest.er1
19623 cat conftest.err >&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); } >/dev/null; then
19626 if test -s conftest.err; then
19627 ac_cpp_err=$ac_c_preproc_warn_flag
19628 else
19629 ac_cpp_err=
19630 fi
19631else
19632 ac_cpp_err=yes
19633fi
19634if test -z "$ac_cpp_err"; then
19635 ac_header_preproc=yes
19636else
19637 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019638sed 's/^/| /' conftest.$ac_ext >&5
19639
John Criswell7a73b802003-06-30 21:59:07 +000019640 ac_header_preproc=no
19641fi
19642rm -f conftest.err conftest.$ac_ext
19643echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19644echo "${ECHO_T}$ac_header_preproc" >&6
19645
19646# So? What about this header?
19647case $ac_header_compiler:$ac_header_preproc in
19648 yes:no )
19649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19650echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019652echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19653 (
19654 cat <<\_ASBOX
19655## ------------------------------------ ##
19656## Report this to bug-autoconf@gnu.org. ##
19657## ------------------------------------ ##
19658_ASBOX
19659 ) |
19660 sed "s/^/$as_me: WARNING: /" >&2
19661 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019662 no:yes )
19663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19664echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19666echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19669 (
19670 cat <<\_ASBOX
19671## ------------------------------------ ##
19672## Report this to bug-autoconf@gnu.org. ##
19673## ------------------------------------ ##
19674_ASBOX
19675 ) |
19676 sed "s/^/$as_me: WARNING: /" >&2
19677 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019678esac
19679echo "$as_me:$LINENO: checking for $ac_header" >&5
19680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19681if eval "test \"\${$as_ac_Header+set}\" = set"; then
19682 echo $ECHO_N "(cached) $ECHO_C" >&6
19683else
19684 eval "$as_ac_Header=$ac_header_preproc"
19685fi
19686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19688
19689fi
19690if test `eval echo '${'$as_ac_Header'}'` = yes; then
19691 cat >>confdefs.h <<_ACEOF
19692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19693_ACEOF
19694
19695fi
19696
19697done
19698
19699
19700
19701
19702
John Criswelle8a63eb2003-10-23 19:16:12 +000019703for ac_header in malloc.h sys/mman.h sys/resource.h
John Criswell7a73b802003-06-30 21:59:07 +000019704do
19705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19706if eval "test \"\${$as_ac_Header+set}\" = set"; then
19707 echo "$as_me:$LINENO: checking for $ac_header" >&5
19708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19709if eval "test \"\${$as_ac_Header+set}\" = set"; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19711fi
19712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19714else
19715 # Is the header compilable?
19716echo "$as_me:$LINENO: checking $ac_header usability" >&5
19717echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19718cat >conftest.$ac_ext <<_ACEOF
19719#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019720/* confdefs.h. */
19721_ACEOF
19722cat confdefs.h >>conftest.$ac_ext
19723cat >>conftest.$ac_ext <<_ACEOF
19724/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019725$ac_includes_default
19726#include <$ac_header>
19727_ACEOF
19728rm -f conftest.$ac_objext
19729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19730 (eval $ac_compile) 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } &&
19734 { ac_try='test -s conftest.$ac_objext'
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; }; then
19740 ac_header_compiler=yes
19741else
19742 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019743sed 's/^/| /' conftest.$ac_ext >&5
19744
John Criswell7a73b802003-06-30 21:59:07 +000019745ac_header_compiler=no
19746fi
19747rm -f conftest.$ac_objext conftest.$ac_ext
19748echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19749echo "${ECHO_T}$ac_header_compiler" >&6
19750
19751# Is the header present?
19752echo "$as_me:$LINENO: checking $ac_header presence" >&5
19753echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19754cat >conftest.$ac_ext <<_ACEOF
19755#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019756/* confdefs.h. */
19757_ACEOF
19758cat confdefs.h >>conftest.$ac_ext
19759cat >>conftest.$ac_ext <<_ACEOF
19760/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019761#include <$ac_header>
19762_ACEOF
19763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19765 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019766 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019767 rm -f conftest.er1
19768 cat conftest.err >&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } >/dev/null; then
19771 if test -s conftest.err; then
19772 ac_cpp_err=$ac_c_preproc_warn_flag
19773 else
19774 ac_cpp_err=
19775 fi
19776else
19777 ac_cpp_err=yes
19778fi
19779if test -z "$ac_cpp_err"; then
19780 ac_header_preproc=yes
19781else
19782 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019783sed 's/^/| /' conftest.$ac_ext >&5
19784
John Criswell7a73b802003-06-30 21:59:07 +000019785 ac_header_preproc=no
19786fi
19787rm -f conftest.err conftest.$ac_ext
19788echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19789echo "${ECHO_T}$ac_header_preproc" >&6
19790
19791# So? What about this header?
19792case $ac_header_compiler:$ac_header_preproc in
19793 yes:no )
19794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019797echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19798 (
19799 cat <<\_ASBOX
19800## ------------------------------------ ##
19801## Report this to bug-autoconf@gnu.org. ##
19802## ------------------------------------ ##
19803_ASBOX
19804 ) |
19805 sed "s/^/$as_me: WARNING: /" >&2
19806 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019807 no:yes )
19808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19809echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19811echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19814 (
19815 cat <<\_ASBOX
19816## ------------------------------------ ##
19817## Report this to bug-autoconf@gnu.org. ##
19818## ------------------------------------ ##
19819_ASBOX
19820 ) |
19821 sed "s/^/$as_me: WARNING: /" >&2
19822 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019823esac
19824echo "$as_me:$LINENO: checking for $ac_header" >&5
19825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19826if eval "test \"\${$as_ac_Header+set}\" = set"; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19828else
19829 eval "$as_ac_Header=$ac_header_preproc"
19830fi
19831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19833
19834fi
19835if test `eval echo '${'$as_ac_Header'}'` = yes; then
19836 cat >>confdefs.h <<_ACEOF
19837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19838_ACEOF
19839
19840fi
19841
19842done
19843
19844
19845
19846
19847for ac_header in dlfcn.h link.h
19848do
19849as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19850if eval "test \"\${$as_ac_Header+set}\" = set"; then
19851 echo "$as_me:$LINENO: checking for $ac_header" >&5
19852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19853if eval "test \"\${$as_ac_Header+set}\" = set"; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19855fi
19856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19857echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19858else
19859 # Is the header compilable?
19860echo "$as_me:$LINENO: checking $ac_header usability" >&5
19861echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19862cat >conftest.$ac_ext <<_ACEOF
19863#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019864/* confdefs.h. */
19865_ACEOF
19866cat confdefs.h >>conftest.$ac_ext
19867cat >>conftest.$ac_ext <<_ACEOF
19868/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019869$ac_includes_default
19870#include <$ac_header>
19871_ACEOF
19872rm -f conftest.$ac_objext
19873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19874 (eval $ac_compile) 2>&5
19875 ac_status=$?
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } &&
19878 { ac_try='test -s conftest.$ac_objext'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 ac_header_compiler=yes
19885else
19886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019887sed 's/^/| /' conftest.$ac_ext >&5
19888
John Criswell7a73b802003-06-30 21:59:07 +000019889ac_header_compiler=no
19890fi
19891rm -f conftest.$ac_objext conftest.$ac_ext
19892echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19893echo "${ECHO_T}$ac_header_compiler" >&6
19894
19895# Is the header present?
19896echo "$as_me:$LINENO: checking $ac_header presence" >&5
19897echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19898cat >conftest.$ac_ext <<_ACEOF
19899#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019900/* confdefs.h. */
19901_ACEOF
19902cat confdefs.h >>conftest.$ac_ext
19903cat >>conftest.$ac_ext <<_ACEOF
19904/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019905#include <$ac_header>
19906_ACEOF
19907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19909 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019910 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019911 rm -f conftest.er1
19912 cat conftest.err >&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } >/dev/null; then
19915 if test -s conftest.err; then
19916 ac_cpp_err=$ac_c_preproc_warn_flag
19917 else
19918 ac_cpp_err=
19919 fi
19920else
19921 ac_cpp_err=yes
19922fi
19923if test -z "$ac_cpp_err"; then
19924 ac_header_preproc=yes
19925else
19926 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019927sed 's/^/| /' conftest.$ac_ext >&5
19928
John Criswell7a73b802003-06-30 21:59:07 +000019929 ac_header_preproc=no
19930fi
19931rm -f conftest.err conftest.$ac_ext
19932echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19933echo "${ECHO_T}$ac_header_preproc" >&6
19934
19935# So? What about this header?
19936case $ac_header_compiler:$ac_header_preproc in
19937 yes:no )
19938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19939echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019941echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19942 (
19943 cat <<\_ASBOX
19944## ------------------------------------ ##
19945## Report this to bug-autoconf@gnu.org. ##
19946## ------------------------------------ ##
19947_ASBOX
19948 ) |
19949 sed "s/^/$as_me: WARNING: /" >&2
19950 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019951 no:yes )
19952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19955echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019957echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19958 (
19959 cat <<\_ASBOX
19960## ------------------------------------ ##
19961## Report this to bug-autoconf@gnu.org. ##
19962## ------------------------------------ ##
19963_ASBOX
19964 ) |
19965 sed "s/^/$as_me: WARNING: /" >&2
19966 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019967esac
19968echo "$as_me:$LINENO: checking for $ac_header" >&5
19969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19970if eval "test \"\${$as_ac_Header+set}\" = set"; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19972else
19973 eval "$as_ac_Header=$ac_header_preproc"
19974fi
19975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19977
19978fi
19979if test `eval echo '${'$as_ac_Header'}'` = yes; then
19980 cat >>confdefs.h <<_ACEOF
19981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19982_ACEOF
19983
19984fi
19985
19986done
19987
19988
19989
John Criswell7a73b802003-06-30 21:59:07 +000019990echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19991echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19992if test "${ac_cv_c_const+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19994else
19995 cat >conftest.$ac_ext <<_ACEOF
19996#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019997/* confdefs.h. */
19998_ACEOF
19999cat confdefs.h >>conftest.$ac_ext
20000cat >>conftest.$ac_ext <<_ACEOF
20001/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020002
John Criswell7a73b802003-06-30 21:59:07 +000020003int
20004main ()
20005{
20006/* FIXME: Include the comments suggested by Paul. */
20007#ifndef __cplusplus
20008 /* Ultrix mips cc rejects this. */
20009 typedef int charset[2];
20010 const charset x;
20011 /* SunOS 4.1.1 cc rejects this. */
20012 char const *const *ccp;
20013 char **p;
20014 /* NEC SVR4.0.2 mips cc rejects this. */
20015 struct point {int x, y;};
20016 static struct point const zero = {0,0};
20017 /* AIX XL C 1.02.0.0 rejects this.
20018 It does not let you subtract one const X* pointer from another in
20019 an arm of an if-expression whose if-part is not a constant
20020 expression */
20021 const char *g = "string";
20022 ccp = &g + (g ? g-g : 0);
20023 /* HPUX 7.0 cc rejects these. */
20024 ++ccp;
20025 p = (char**) ccp;
20026 ccp = (char const *const *) p;
20027 { /* SCO 3.2v4 cc rejects this. */
20028 char *t;
20029 char const *s = 0 ? (char *) 0 : (char const *) 0;
20030
20031 *t++ = 0;
20032 }
20033 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20034 int x[] = {25, 17};
20035 const int *foo = &x[0];
20036 ++foo;
20037 }
20038 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20039 typedef const int *iptr;
20040 iptr p = 0;
20041 ++p;
20042 }
20043 { /* AIX XL C 1.02.0.0 rejects this saying
20044 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20045 struct s { int j; const int *ap[3]; };
20046 struct s *b; b->j = 5;
20047 }
20048 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20049 const int foo = 10;
20050 }
20051#endif
20052
20053 ;
20054 return 0;
20055}
20056_ACEOF
20057rm -f conftest.$ac_objext
20058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20059 (eval $ac_compile) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); } &&
20063 { ac_try='test -s conftest.$ac_objext'
20064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20065 (eval $ac_try) 2>&5
20066 ac_status=$?
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; }; then
20069 ac_cv_c_const=yes
20070else
20071 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020072sed 's/^/| /' conftest.$ac_ext >&5
20073
John Criswell7a73b802003-06-30 21:59:07 +000020074ac_cv_c_const=no
20075fi
20076rm -f conftest.$ac_objext conftest.$ac_ext
20077fi
20078echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20079echo "${ECHO_T}$ac_cv_c_const" >&6
20080if test $ac_cv_c_const = no; then
20081
20082cat >>confdefs.h <<\_ACEOF
20083#define const
20084_ACEOF
20085
20086fi
20087
20088echo "$as_me:$LINENO: checking for inline" >&5
20089echo $ECHO_N "checking for inline... $ECHO_C" >&6
20090if test "${ac_cv_c_inline+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092else
20093 ac_cv_c_inline=no
20094for ac_kw in inline __inline__ __inline; do
20095 cat >conftest.$ac_ext <<_ACEOF
20096#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020097/* confdefs.h. */
20098_ACEOF
20099cat confdefs.h >>conftest.$ac_ext
20100cat >>conftest.$ac_ext <<_ACEOF
20101/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020102#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020103typedef int foo_t;
20104static $ac_kw foo_t static_foo () {return 0; }
20105$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020106#endif
20107
20108_ACEOF
20109rm -f conftest.$ac_objext
20110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20111 (eval $ac_compile) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } &&
20115 { ac_try='test -s conftest.$ac_objext'
20116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117 (eval $ac_try) 2>&5
20118 ac_status=$?
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; }; then
20121 ac_cv_c_inline=$ac_kw; break
20122else
20123 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020124sed 's/^/| /' conftest.$ac_ext >&5
20125
John Criswell7a73b802003-06-30 21:59:07 +000020126fi
20127rm -f conftest.$ac_objext conftest.$ac_ext
20128done
20129
20130fi
20131echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20132echo "${ECHO_T}$ac_cv_c_inline" >&6
20133case $ac_cv_c_inline in
20134 inline | yes) ;;
20135 no)
20136cat >>confdefs.h <<\_ACEOF
20137#define inline
20138_ACEOF
20139 ;;
20140 *) cat >>confdefs.h <<_ACEOF
20141#define inline $ac_cv_c_inline
20142_ACEOF
20143 ;;
20144esac
20145
20146
20147echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20148echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20149if test "${ac_cv_c_bigendian+set}" = set; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20151else
20152 # See if sys/param.h defines the BYTE_ORDER macro.
20153cat >conftest.$ac_ext <<_ACEOF
20154#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020155/* confdefs.h. */
20156_ACEOF
20157cat confdefs.h >>conftest.$ac_ext
20158cat >>conftest.$ac_ext <<_ACEOF
20159/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020160#include <sys/types.h>
20161#include <sys/param.h>
20162
John Criswell7a73b802003-06-30 21:59:07 +000020163int
20164main ()
20165{
20166#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20167 bogus endian macros
20168#endif
20169
20170 ;
20171 return 0;
20172}
20173_ACEOF
20174rm -f conftest.$ac_objext
20175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20176 (eval $ac_compile) 2>&5
20177 ac_status=$?
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } &&
20180 { ac_try='test -s conftest.$ac_objext'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; }; then
20186 # It does; now see whether it defined to BIG_ENDIAN or not.
20187cat >conftest.$ac_ext <<_ACEOF
20188#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020189/* confdefs.h. */
20190_ACEOF
20191cat confdefs.h >>conftest.$ac_ext
20192cat >>conftest.$ac_ext <<_ACEOF
20193/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020194#include <sys/types.h>
20195#include <sys/param.h>
20196
John Criswell7a73b802003-06-30 21:59:07 +000020197int
20198main ()
20199{
20200#if BYTE_ORDER != BIG_ENDIAN
20201 not big endian
20202#endif
20203
20204 ;
20205 return 0;
20206}
20207_ACEOF
20208rm -f conftest.$ac_objext
20209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20210 (eval $ac_compile) 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } &&
20214 { ac_try='test -s conftest.$ac_objext'
20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216 (eval $ac_try) 2>&5
20217 ac_status=$?
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; }; then
20220 ac_cv_c_bigendian=yes
20221else
20222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020223sed 's/^/| /' conftest.$ac_ext >&5
20224
John Criswell7a73b802003-06-30 21:59:07 +000020225ac_cv_c_bigendian=no
20226fi
20227rm -f conftest.$ac_objext conftest.$ac_ext
20228else
20229 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020230sed 's/^/| /' conftest.$ac_ext >&5
20231
John Criswell7a73b802003-06-30 21:59:07 +000020232# It does not; compile a test program.
20233if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020234 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020235 ac_cv_c_bigendian=unknown
20236 cat >conftest.$ac_ext <<_ACEOF
20237#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020238/* confdefs.h. */
20239_ACEOF
20240cat confdefs.h >>conftest.$ac_ext
20241cat >>conftest.$ac_ext <<_ACEOF
20242/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020243short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20244short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20245void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20246short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20247short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20248void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020249int
20250main ()
20251{
20252 _ascii (); _ebcdic ();
20253 ;
20254 return 0;
20255}
20256_ACEOF
20257rm -f conftest.$ac_objext
20258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20259 (eval $ac_compile) 2>&5
20260 ac_status=$?
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } &&
20263 { ac_try='test -s conftest.$ac_objext'
20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265 (eval $ac_try) 2>&5
20266 ac_status=$?
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020269 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020270 ac_cv_c_bigendian=yes
20271fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020272if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020273 if test "$ac_cv_c_bigendian" = unknown; then
20274 ac_cv_c_bigendian=no
20275 else
20276 # finding both strings is unlikely to happen, but who knows?
20277 ac_cv_c_bigendian=unknown
20278 fi
20279fi
20280else
20281 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020282sed 's/^/| /' conftest.$ac_ext >&5
20283
John Criswell7a73b802003-06-30 21:59:07 +000020284fi
20285rm -f conftest.$ac_objext conftest.$ac_ext
20286else
20287 cat >conftest.$ac_ext <<_ACEOF
20288#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020289/* confdefs.h. */
20290_ACEOF
20291cat confdefs.h >>conftest.$ac_ext
20292cat >>conftest.$ac_ext <<_ACEOF
20293/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020294int
20295main ()
20296{
20297 /* Are we little or big endian? From Harbison&Steele. */
20298 union
20299 {
20300 long l;
20301 char c[sizeof (long)];
20302 } u;
20303 u.l = 1;
20304 exit (u.c[sizeof (long) - 1] == 1);
20305}
20306_ACEOF
20307rm -f conftest$ac_exeext
20308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20309 (eval $ac_link) 2>&5
20310 ac_status=$?
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314 (eval $ac_try) 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; }; then
20318 ac_cv_c_bigendian=no
20319else
20320 echo "$as_me: program exited with status $ac_status" >&5
20321echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020322sed 's/^/| /' conftest.$ac_ext >&5
20323
John Criswell7a73b802003-06-30 21:59:07 +000020324( exit $ac_status )
20325ac_cv_c_bigendian=yes
20326fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020327rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020328fi
20329fi
20330rm -f conftest.$ac_objext conftest.$ac_ext
20331fi
20332echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20333echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20334case $ac_cv_c_bigendian in
20335 yes)
John Criswell5ab73462003-10-09 15:44:28 +000020336
20337cat >>confdefs.h <<\_ACEOF
20338#define ENDIAN_BIG
John Criswell7a73b802003-06-30 21:59:07 +000020339_ACEOF
20340 ;;
20341 no)
John Criswell5ab73462003-10-09 15:44:28 +000020342
20343cat >>confdefs.h <<\_ACEOF
20344#define ENDIAN_LITTLE
John Criswell7a73b802003-06-30 21:59:07 +000020345_ACEOF
20346 ;;
20347 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020348 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020349presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020350echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020351presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20352 { (exit 1); exit 1; }; } ;;
20353esac
20354
20355
20356echo "$as_me:$LINENO: checking for pid_t" >&5
20357echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20358if test "${ac_cv_type_pid_t+set}" = set; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20360else
20361 cat >conftest.$ac_ext <<_ACEOF
20362#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020363/* confdefs.h. */
20364_ACEOF
20365cat confdefs.h >>conftest.$ac_ext
20366cat >>conftest.$ac_ext <<_ACEOF
20367/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020368$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020369int
20370main ()
20371{
20372if ((pid_t *) 0)
20373 return 0;
20374if (sizeof (pid_t))
20375 return 0;
20376 ;
20377 return 0;
20378}
20379_ACEOF
20380rm -f conftest.$ac_objext
20381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20382 (eval $ac_compile) 2>&5
20383 ac_status=$?
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } &&
20386 { ac_try='test -s conftest.$ac_objext'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 ac_cv_type_pid_t=yes
20393else
20394 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020395sed 's/^/| /' conftest.$ac_ext >&5
20396
John Criswell7a73b802003-06-30 21:59:07 +000020397ac_cv_type_pid_t=no
20398fi
20399rm -f conftest.$ac_objext conftest.$ac_ext
20400fi
20401echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20402echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20403if test $ac_cv_type_pid_t = yes; then
20404 :
20405else
20406
20407cat >>confdefs.h <<_ACEOF
20408#define pid_t int
20409_ACEOF
20410
20411fi
20412
20413echo "$as_me:$LINENO: checking for size_t" >&5
20414echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20415if test "${ac_cv_type_size_t+set}" = set; then
20416 echo $ECHO_N "(cached) $ECHO_C" >&6
20417else
20418 cat >conftest.$ac_ext <<_ACEOF
20419#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020420/* confdefs.h. */
20421_ACEOF
20422cat confdefs.h >>conftest.$ac_ext
20423cat >>conftest.$ac_ext <<_ACEOF
20424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020425$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020426int
20427main ()
20428{
20429if ((size_t *) 0)
20430 return 0;
20431if (sizeof (size_t))
20432 return 0;
20433 ;
20434 return 0;
20435}
20436_ACEOF
20437rm -f conftest.$ac_objext
20438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20439 (eval $ac_compile) 2>&5
20440 ac_status=$?
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } &&
20443 { ac_try='test -s conftest.$ac_objext'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20446 ac_status=$?
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; }; then
20449 ac_cv_type_size_t=yes
20450else
20451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020452sed 's/^/| /' conftest.$ac_ext >&5
20453
John Criswell7a73b802003-06-30 21:59:07 +000020454ac_cv_type_size_t=no
20455fi
20456rm -f conftest.$ac_objext conftest.$ac_ext
20457fi
20458echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20459echo "${ECHO_T}$ac_cv_type_size_t" >&6
20460if test $ac_cv_type_size_t = yes; then
20461 :
20462else
20463
20464cat >>confdefs.h <<_ACEOF
20465#define size_t unsigned
20466_ACEOF
20467
20468fi
20469
20470echo "$as_me:$LINENO: checking for int64_t" >&5
20471echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20472if test "${ac_cv_type_int64_t+set}" = set; then
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
20474else
20475 cat >conftest.$ac_ext <<_ACEOF
20476#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020477/* confdefs.h. */
20478_ACEOF
20479cat confdefs.h >>conftest.$ac_ext
20480cat >>conftest.$ac_ext <<_ACEOF
20481/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020482$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020483int
20484main ()
20485{
20486if ((int64_t *) 0)
20487 return 0;
20488if (sizeof (int64_t))
20489 return 0;
20490 ;
20491 return 0;
20492}
20493_ACEOF
20494rm -f conftest.$ac_objext
20495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20496 (eval $ac_compile) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } &&
20500 { ac_try='test -s conftest.$ac_objext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506 ac_cv_type_int64_t=yes
20507else
20508 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020509sed 's/^/| /' conftest.$ac_ext >&5
20510
John Criswell7a73b802003-06-30 21:59:07 +000020511ac_cv_type_int64_t=no
20512fi
20513rm -f conftest.$ac_objext conftest.$ac_ext
20514fi
20515echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20516echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20517if test $ac_cv_type_int64_t = yes; then
20518
20519cat >>confdefs.h <<_ACEOF
20520#define HAVE_INT64_T 1
20521_ACEOF
20522
20523
20524else
20525 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20526echo "$as_me: error: Type int64_t required but not found" >&2;}
20527 { (exit 1); exit 1; }; }
20528fi
20529
20530echo "$as_me:$LINENO: checking for uint64_t" >&5
20531echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20532if test "${ac_cv_type_uint64_t+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20534else
20535 cat >conftest.$ac_ext <<_ACEOF
20536#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020537/* confdefs.h. */
20538_ACEOF
20539cat confdefs.h >>conftest.$ac_ext
20540cat >>conftest.$ac_ext <<_ACEOF
20541/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020542$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020543int
20544main ()
20545{
20546if ((uint64_t *) 0)
20547 return 0;
20548if (sizeof (uint64_t))
20549 return 0;
20550 ;
20551 return 0;
20552}
20553_ACEOF
20554rm -f conftest.$ac_objext
20555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20556 (eval $ac_compile) 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
20560 { ac_try='test -s conftest.$ac_objext'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20563 ac_status=$?
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; }; then
20566 ac_cv_type_uint64_t=yes
20567else
20568 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020569sed 's/^/| /' conftest.$ac_ext >&5
20570
John Criswell7a73b802003-06-30 21:59:07 +000020571ac_cv_type_uint64_t=no
20572fi
20573rm -f conftest.$ac_objext conftest.$ac_ext
20574fi
20575echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20576echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20577if test $ac_cv_type_uint64_t = yes; then
20578
20579cat >>confdefs.h <<_ACEOF
20580#define HAVE_UINT64_T 1
20581_ACEOF
20582
20583
20584else
20585 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20586echo "$as_me: error: Type uint64_t required but not found" >&2;}
20587 { (exit 1); exit 1; }; }
20588fi
20589
20590echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20591echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20592if test "${ac_cv_header_time+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20594else
20595 cat >conftest.$ac_ext <<_ACEOF
20596#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020597/* confdefs.h. */
20598_ACEOF
20599cat confdefs.h >>conftest.$ac_ext
20600cat >>conftest.$ac_ext <<_ACEOF
20601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020602#include <sys/types.h>
20603#include <sys/time.h>
20604#include <time.h>
20605
John Criswell7a73b802003-06-30 21:59:07 +000020606int
20607main ()
20608{
20609if ((struct tm *) 0)
20610return 0;
20611 ;
20612 return 0;
20613}
20614_ACEOF
20615rm -f conftest.$ac_objext
20616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617 (eval $ac_compile) 2>&5
20618 ac_status=$?
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } &&
20621 { ac_try='test -s conftest.$ac_objext'
20622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623 (eval $ac_try) 2>&5
20624 ac_status=$?
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; }; then
20627 ac_cv_header_time=yes
20628else
20629 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020630sed 's/^/| /' conftest.$ac_ext >&5
20631
John Criswell7a73b802003-06-30 21:59:07 +000020632ac_cv_header_time=no
20633fi
20634rm -f conftest.$ac_objext conftest.$ac_ext
20635fi
20636echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20637echo "${ECHO_T}$ac_cv_header_time" >&6
20638if test $ac_cv_header_time = yes; then
20639
20640cat >>confdefs.h <<\_ACEOF
20641#define TIME_WITH_SYS_TIME 1
20642_ACEOF
20643
20644fi
20645
20646echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20647echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20648if test "${ac_cv_struct_tm+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20650else
20651 cat >conftest.$ac_ext <<_ACEOF
20652#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020653/* confdefs.h. */
20654_ACEOF
20655cat confdefs.h >>conftest.$ac_ext
20656cat >>conftest.$ac_ext <<_ACEOF
20657/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020658#include <sys/types.h>
20659#include <time.h>
20660
John Criswell7a73b802003-06-30 21:59:07 +000020661int
20662main ()
20663{
20664struct tm *tp; tp->tm_sec;
20665 ;
20666 return 0;
20667}
20668_ACEOF
20669rm -f conftest.$ac_objext
20670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20671 (eval $ac_compile) 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } &&
20675 { ac_try='test -s conftest.$ac_objext'
20676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677 (eval $ac_try) 2>&5
20678 ac_status=$?
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); }; }; then
20681 ac_cv_struct_tm=time.h
20682else
20683 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020684sed 's/^/| /' conftest.$ac_ext >&5
20685
John Criswell7a73b802003-06-30 21:59:07 +000020686ac_cv_struct_tm=sys/time.h
20687fi
20688rm -f conftest.$ac_objext conftest.$ac_ext
20689fi
20690echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20691echo "${ECHO_T}$ac_cv_struct_tm" >&6
20692if test $ac_cv_struct_tm = sys/time.h; then
20693
20694cat >>confdefs.h <<\_ACEOF
20695#define TM_IN_SYS_TIME 1
20696_ACEOF
20697
20698fi
20699
20700
John Criswella0137d32003-10-13 16:22:01 +000020701
20702
20703
20704 ac_ext=c
20705ac_cpp='$CPP $CPPFLAGS'
20706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20708ac_compiler_gnu=$ac_cv_c_compiler_gnu
20709
20710 if test "$cross_compiling" = yes; then
20711 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20712See \`config.log' for more details." >&5
20713echo "$as_me: error: cannot run test program while cross compiling
20714See \`config.log' for more details." >&2;}
20715 { (exit 1); exit 1; }; }
20716else
20717 cat >conftest.$ac_ext <<_ACEOF
20718#line $LINENO "configure"
20719/* confdefs.h. */
20720_ACEOF
20721cat confdefs.h >>conftest.$ac_ext
20722cat >>conftest.$ac_ext <<_ACEOF
20723/* end confdefs.h. */
20724#include <stdio.h>
20725 #include <stdlib.h>
20726int
20727main ()
20728{
20729
20730 volatile double A, B;
20731 char Buffer[100];
20732 A = 1;
20733 A /= 10.0;
20734 sprintf(Buffer, "%a", A);
20735 B = atof(Buffer);
20736 if (A != B)
20737 return (1);
20738 if (A != 0x1.999999999999ap-4)
20739 return (1);
20740 return (0);
20741 ;
20742 return 0;
20743}
20744_ACEOF
20745rm -f conftest$ac_exeext
20746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20747 (eval $ac_link) 2>&5
20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752 (eval $ac_try) 2>&5
20753 ac_status=$?
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; }; then
20756 ac_c_printf_a=yes
20757else
20758 echo "$as_me: program exited with status $ac_status" >&5
20759echo "$as_me: failed program was:" >&5
20760sed 's/^/| /' conftest.$ac_ext >&5
20761
20762( exit $ac_status )
20763ac_c_printf_a=no
20764fi
20765rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20766fi
20767 ac_ext=c
20768ac_cpp='$CPP $CPPFLAGS'
20769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20771ac_compiler_gnu=$ac_cv_c_compiler_gnu
20772
20773 if test "$ac_c_printf_a" = "yes"; then
20774
20775cat >>confdefs.h <<\_ACEOF
20776#define HAVE_PRINTF_A 1
20777_ACEOF
20778
20779 fi
20780
20781
John Criswell7a73b802003-06-30 21:59:07 +000020782echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20783echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20784if test "${ac_cv_cxx_namespaces+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20786else
20787
20788
20789 ac_ext=cc
20790ac_cpp='$CXXCPP $CPPFLAGS'
20791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20794
20795 cat >conftest.$ac_ext <<_ACEOF
20796#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020797/* confdefs.h. */
20798_ACEOF
20799cat confdefs.h >>conftest.$ac_ext
20800cat >>conftest.$ac_ext <<_ACEOF
20801/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020802namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020803int
20804main ()
20805{
20806using namespace Outer::Inner; return i;
20807 ;
20808 return 0;
20809}
20810_ACEOF
20811rm -f conftest.$ac_objext
20812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20813 (eval $ac_compile) 2>&5
20814 ac_status=$?
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } &&
20817 { ac_try='test -s conftest.$ac_objext'
20818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819 (eval $ac_try) 2>&5
20820 ac_status=$?
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; }; then
20823 ac_cv_cxx_namespaces=yes
20824else
20825 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020826sed 's/^/| /' conftest.$ac_ext >&5
20827
John Criswell7a73b802003-06-30 21:59:07 +000020828ac_cv_cxx_namespaces=no
20829fi
20830rm -f conftest.$ac_objext conftest.$ac_ext
20831 ac_ext=c
20832ac_cpp='$CPP $CPPFLAGS'
20833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20835ac_compiler_gnu=$ac_cv_c_compiler_gnu
20836
20837
20838fi
20839echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20840echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20841if test "$ac_cv_cxx_namespaces" = yes; then
20842
20843cat >>confdefs.h <<\_ACEOF
20844#define HAVE_NAMESPACES
20845_ACEOF
20846
20847fi
20848
20849echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20850echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20851if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20853else
20854
20855
20856
20857 ac_ext=cc
20858ac_cpp='$CXXCPP $CPPFLAGS'
20859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20862
20863 cat >conftest.$ac_ext <<_ACEOF
20864#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020865/* confdefs.h. */
20866_ACEOF
20867cat confdefs.h >>conftest.$ac_ext
20868cat >>conftest.$ac_ext <<_ACEOF
20869/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020870#include <ext/hash_map>
20871#ifdef HAVE_NAMESPACES
20872using namespace std;
20873#endif
John Criswell7a73b802003-06-30 21:59:07 +000020874int
20875main ()
20876{
20877hash_map<int, int> t; return 0;
20878 ;
20879 return 0;
20880}
20881_ACEOF
20882rm -f conftest.$ac_objext
20883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20884 (eval $ac_compile) 2>&5
20885 ac_status=$?
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); } &&
20888 { ac_try='test -s conftest.$ac_objext'
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20891 ac_status=$?
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; }; then
20894 ac_cv_cxx_have_ext_hash_map=std
20895else
20896 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020897sed 's/^/| /' conftest.$ac_ext >&5
20898
John Criswell7a73b802003-06-30 21:59:07 +000020899ac_cv_cxx_have_ext_hash_map=no
20900fi
20901rm -f conftest.$ac_objext conftest.$ac_ext
20902 cat >conftest.$ac_ext <<_ACEOF
20903#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020904/* confdefs.h. */
20905_ACEOF
20906cat confdefs.h >>conftest.$ac_ext
20907cat >>conftest.$ac_ext <<_ACEOF
20908/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020909#include <ext/hash_map>
20910#ifdef HAVE_NAMESPACES
20911using namespace __gnu_cxx;
20912#endif
John Criswell7a73b802003-06-30 21:59:07 +000020913int
20914main ()
20915{
20916hash_map<int, int> t; return 0;
20917 ;
20918 return 0;
20919}
20920_ACEOF
20921rm -f conftest.$ac_objext
20922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20923 (eval $ac_compile) 2>&5
20924 ac_status=$?
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } &&
20927 { ac_try='test -s conftest.$ac_objext'
20928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20929 (eval $ac_try) 2>&5
20930 ac_status=$?
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; }; then
20933 ac_cv_cxx_have_ext_hash_map=gnu
20934else
20935 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020936sed 's/^/| /' conftest.$ac_ext >&5
20937
John Criswell7a73b802003-06-30 21:59:07 +000020938ac_cv_cxx_have_ext_hash_map=no
20939fi
20940rm -f conftest.$ac_objext conftest.$ac_ext
20941 ac_ext=c
20942ac_cpp='$CPP $CPPFLAGS'
20943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20945ac_compiler_gnu=$ac_cv_c_compiler_gnu
20946
20947
20948fi
20949echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20950echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20951if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20952
20953cat >>confdefs.h <<\_ACEOF
20954#define HAVE_STD_EXT_HASH_MAP
20955_ACEOF
20956
20957fi
20958if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20959
20960cat >>confdefs.h <<\_ACEOF
20961#define HAVE_GNU_EXT_HASH_MAP
20962_ACEOF
20963
20964fi
20965
20966echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20967echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20968if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20970else
20971
20972
20973
20974 ac_ext=cc
20975ac_cpp='$CXXCPP $CPPFLAGS'
20976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20979
20980 cat >conftest.$ac_ext <<_ACEOF
20981#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020982/* confdefs.h. */
20983_ACEOF
20984cat confdefs.h >>conftest.$ac_ext
20985cat >>conftest.$ac_ext <<_ACEOF
20986/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020987#include <ext/hash_set>
20988#ifdef HAVE_NAMESPACES
20989using namespace std;
20990#endif
John Criswell7a73b802003-06-30 21:59:07 +000020991int
20992main ()
20993{
20994hash_set<int> t; return 0;
20995 ;
20996 return 0;
20997}
20998_ACEOF
20999rm -f conftest.$ac_objext
21000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21001 (eval $ac_compile) 2>&5
21002 ac_status=$?
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } &&
21005 { ac_try='test -s conftest.$ac_objext'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21008 ac_status=$?
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; }; then
21011 ac_cv_cxx_have_ext_hash_set=std
21012else
21013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021014sed 's/^/| /' conftest.$ac_ext >&5
21015
John Criswell7a73b802003-06-30 21:59:07 +000021016ac_cv_cxx_have_ext_hash_set=no
21017fi
21018rm -f conftest.$ac_objext conftest.$ac_ext
21019 cat >conftest.$ac_ext <<_ACEOF
21020#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021021/* confdefs.h. */
21022_ACEOF
21023cat confdefs.h >>conftest.$ac_ext
21024cat >>conftest.$ac_ext <<_ACEOF
21025/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021026#include <ext/hash_set>
21027#ifdef HAVE_NAMESPACES
21028using namespace __gnu_cxx;
21029#endif
John Criswell7a73b802003-06-30 21:59:07 +000021030int
21031main ()
21032{
21033hash_set<int> t; return 0;
21034 ;
21035 return 0;
21036}
21037_ACEOF
21038rm -f conftest.$ac_objext
21039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21040 (eval $ac_compile) 2>&5
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } &&
21044 { ac_try='test -s conftest.$ac_objext'
21045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21046 (eval $ac_try) 2>&5
21047 ac_status=$?
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); }; }; then
21050 ac_cv_cxx_have_ext_hash_set=gnu
21051else
21052 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021053sed 's/^/| /' conftest.$ac_ext >&5
21054
John Criswell7a73b802003-06-30 21:59:07 +000021055ac_cv_cxx_have_ext_hash_set=no
21056fi
21057rm -f conftest.$ac_objext conftest.$ac_ext
21058 ac_ext=c
21059ac_cpp='$CPP $CPPFLAGS'
21060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21062ac_compiler_gnu=$ac_cv_c_compiler_gnu
21063
21064
21065fi
21066echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21067echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21068if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21069
21070cat >>confdefs.h <<\_ACEOF
21071#define HAVE_STD_EXT_HASH_SET
21072_ACEOF
21073
21074fi
21075if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21076
21077cat >>confdefs.h <<\_ACEOF
21078#define HAVE_GNU_EXT_HASH_SET
21079_ACEOF
21080
21081fi
21082
21083echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21084echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21085if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21087else
21088
21089
21090
21091 ac_ext=cc
21092ac_cpp='$CXXCPP $CPPFLAGS'
21093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21096
21097 cat >conftest.$ac_ext <<_ACEOF
21098#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021099/* confdefs.h. */
21100_ACEOF
21101cat confdefs.h >>conftest.$ac_ext
21102cat >>conftest.$ac_ext <<_ACEOF
21103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021104#include <ext/slist>
21105#ifdef HAVE_NAMESPACES
21106using namespace std;
21107#endif
John Criswell7a73b802003-06-30 21:59:07 +000021108int
21109main ()
21110{
21111slist<int> s; return 0;
21112 ;
21113 return 0;
21114}
21115_ACEOF
21116rm -f conftest.$ac_objext
21117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21118 (eval $ac_compile) 2>&5
21119 ac_status=$?
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } &&
21122 { ac_try='test -s conftest.$ac_objext'
21123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124 (eval $ac_try) 2>&5
21125 ac_status=$?
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21128 ac_cv_cxx_have_ext_slist=std
21129else
21130 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021131sed 's/^/| /' conftest.$ac_ext >&5
21132
John Criswell7a73b802003-06-30 21:59:07 +000021133ac_cv_cxx_have_ext_slist=no
21134fi
21135rm -f conftest.$ac_objext conftest.$ac_ext
21136 cat >conftest.$ac_ext <<_ACEOF
21137#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021138/* confdefs.h. */
21139_ACEOF
21140cat confdefs.h >>conftest.$ac_ext
21141cat >>conftest.$ac_ext <<_ACEOF
21142/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021143#include <ext/slist>
21144#ifdef HAVE_NAMESPACES
21145using namespace __gnu_cxx;
21146#endif
John Criswell7a73b802003-06-30 21:59:07 +000021147int
21148main ()
21149{
21150slist<int> s; return 0;
21151 ;
21152 return 0;
21153}
21154_ACEOF
21155rm -f conftest.$ac_objext
21156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21157 (eval $ac_compile) 2>&5
21158 ac_status=$?
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } &&
21161 { ac_try='test -s conftest.$ac_objext'
21162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21163 (eval $ac_try) 2>&5
21164 ac_status=$?
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; }; then
21167 ac_cv_cxx_have_ext_slist=gnu
21168else
21169 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021170sed 's/^/| /' conftest.$ac_ext >&5
21171
John Criswell7a73b802003-06-30 21:59:07 +000021172ac_cv_cxx_have_ext_slist=no
21173fi
21174rm -f conftest.$ac_objext conftest.$ac_ext
21175
21176 ac_ext=c
21177ac_cpp='$CPP $CPPFLAGS'
21178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21180ac_compiler_gnu=$ac_cv_c_compiler_gnu
21181
21182
21183fi
21184echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21185echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21186if test "$ac_cv_cxx_have_ext_slist" = std; then
21187
21188cat >>confdefs.h <<\_ACEOF
21189#define HAVE_EXT_SLIST std
21190_ACEOF
21191
21192fi
21193if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21194
21195cat >>confdefs.h <<\_ACEOF
21196#define HAVE_EXT_SLIST gnu
21197_ACEOF
21198
21199fi
21200
21201echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21202echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21203if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21205else
21206
21207
21208
21209 ac_ext=cc
21210ac_cpp='$CXXCPP $CPPFLAGS'
21211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21214
21215 cat >conftest.$ac_ext <<_ACEOF
21216#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021217/* confdefs.h. */
21218_ACEOF
21219cat confdefs.h >>conftest.$ac_ext
21220cat >>conftest.$ac_ext <<_ACEOF
21221/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021222#include <iterator>
21223#ifdef HAVE_NAMESPACES
21224using namespace std;
21225#endif
John Criswell7a73b802003-06-30 21:59:07 +000021226int
21227main ()
21228{
21229iterator<int,int,int> t; return 0;
21230 ;
21231 return 0;
21232}
21233_ACEOF
21234rm -f conftest.$ac_objext
21235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21236 (eval $ac_compile) 2>&5
21237 ac_status=$?
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } &&
21240 { ac_try='test -s conftest.$ac_objext'
21241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242 (eval $ac_try) 2>&5
21243 ac_status=$?
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); }; }; then
21246 ac_cv_cxx_have_std_iterator=yes
21247else
21248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021249sed 's/^/| /' conftest.$ac_ext >&5
21250
John Criswell7a73b802003-06-30 21:59:07 +000021251ac_cv_cxx_have_std_iterator=no
21252fi
21253rm -f conftest.$ac_objext conftest.$ac_ext
21254 ac_ext=c
21255ac_cpp='$CPP $CPPFLAGS'
21256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21258ac_compiler_gnu=$ac_cv_c_compiler_gnu
21259
21260
21261fi
21262echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21263echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21264if test "$ac_cv_cxx_have_std_iterator" = yes; then
21265
21266cat >>confdefs.h <<\_ACEOF
21267#define HAVE_STD_ITERATOR
21268_ACEOF
21269
21270fi
21271
21272echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21273echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21274if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21276else
21277
21278
21279
21280 ac_ext=cc
21281ac_cpp='$CXXCPP $CPPFLAGS'
21282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21285
21286 cat >conftest.$ac_ext <<_ACEOF
21287#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021288/* confdefs.h. */
21289_ACEOF
21290cat confdefs.h >>conftest.$ac_ext
21291cat >>conftest.$ac_ext <<_ACEOF
21292/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021293#include <iterator>
21294#ifdef HAVE_NAMESPACES
21295using namespace std;
21296#endif
John Criswell7a73b802003-06-30 21:59:07 +000021297int
21298main ()
21299{
John Criswellc78022e2003-07-29 19:11:58 +000021300bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021301 ;
21302 return 0;
21303}
21304_ACEOF
21305rm -f conftest.$ac_objext
21306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21307 (eval $ac_compile) 2>&5
21308 ac_status=$?
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } &&
21311 { ac_try='test -s conftest.$ac_objext'
21312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; }; then
21317 ac_cv_cxx_have_bi_iterator=yes
21318else
21319 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021320sed 's/^/| /' conftest.$ac_ext >&5
21321
John Criswell7a73b802003-06-30 21:59:07 +000021322ac_cv_cxx_have_bi_iterator=no
21323fi
21324rm -f conftest.$ac_objext conftest.$ac_ext
21325 ac_ext=c
21326ac_cpp='$CPP $CPPFLAGS'
21327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21329ac_compiler_gnu=$ac_cv_c_compiler_gnu
21330
21331
21332fi
21333echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21334echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21335if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21336
21337cat >>confdefs.h <<\_ACEOF
21338#define HAVE_BI_ITERATOR
21339_ACEOF
21340
21341fi
21342
21343echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21344echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21345if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21347else
21348
21349
21350
21351 ac_ext=cc
21352ac_cpp='$CXXCPP $CPPFLAGS'
21353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21356
21357 cat >conftest.$ac_ext <<_ACEOF
21358#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021359/* confdefs.h. */
21360_ACEOF
21361cat confdefs.h >>conftest.$ac_ext
21362cat >>conftest.$ac_ext <<_ACEOF
21363/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021364#include <iterator>
21365#ifdef HAVE_NAMESPACES
21366using namespace std;
21367#endif
John Criswell7a73b802003-06-30 21:59:07 +000021368int
21369main ()
21370{
John Criswellc78022e2003-07-29 19:11:58 +000021371forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021372 ;
21373 return 0;
21374}
21375_ACEOF
21376rm -f conftest.$ac_objext
21377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21378 (eval $ac_compile) 2>&5
21379 ac_status=$?
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); } &&
21382 { ac_try='test -s conftest.$ac_objext'
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21385 ac_status=$?
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; }; then
21388 ac_cv_cxx_have_fwd_iterator=yes
21389else
21390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021391sed 's/^/| /' conftest.$ac_ext >&5
21392
John Criswell7a73b802003-06-30 21:59:07 +000021393ac_cv_cxx_have_fwd_iterator=no
21394fi
21395rm -f conftest.$ac_objext conftest.$ac_ext
21396 ac_ext=c
21397ac_cpp='$CPP $CPPFLAGS'
21398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21400ac_compiler_gnu=$ac_cv_c_compiler_gnu
21401
21402
21403fi
21404echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21405echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21406if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21407
21408cat >>confdefs.h <<\_ACEOF
21409#define HAVE_FWD_ITERATOR
21410_ACEOF
21411
21412fi
21413
21414
21415# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21416# for constant arguments. Useless!
21417echo "$as_me:$LINENO: checking for working alloca.h" >&5
21418echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21419if test "${ac_cv_working_alloca_h+set}" = set; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
21421else
21422 cat >conftest.$ac_ext <<_ACEOF
21423#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021424/* confdefs.h. */
21425_ACEOF
21426cat confdefs.h >>conftest.$ac_ext
21427cat >>conftest.$ac_ext <<_ACEOF
21428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021429#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021430int
21431main ()
21432{
21433char *p = (char *) alloca (2 * sizeof (int));
21434 ;
21435 return 0;
21436}
21437_ACEOF
21438rm -f conftest.$ac_objext conftest$ac_exeext
21439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21440 (eval $ac_link) 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); } &&
21444 { ac_try='test -s conftest$ac_exeext'
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
21450 ac_cv_working_alloca_h=yes
21451else
21452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021453sed 's/^/| /' conftest.$ac_ext >&5
21454
John Criswell7a73b802003-06-30 21:59:07 +000021455ac_cv_working_alloca_h=no
21456fi
21457rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21458fi
21459echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21460echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21461if test $ac_cv_working_alloca_h = yes; then
21462
21463cat >>confdefs.h <<\_ACEOF
21464#define HAVE_ALLOCA_H 1
21465_ACEOF
21466
21467fi
21468
21469echo "$as_me:$LINENO: checking for alloca" >&5
21470echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21471if test "${ac_cv_func_alloca_works+set}" = set; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21473else
21474 cat >conftest.$ac_ext <<_ACEOF
21475#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021476/* confdefs.h. */
21477_ACEOF
21478cat confdefs.h >>conftest.$ac_ext
21479cat >>conftest.$ac_ext <<_ACEOF
21480/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021481#ifdef __GNUC__
21482# define alloca __builtin_alloca
21483#else
21484# ifdef _MSC_VER
21485# include <malloc.h>
21486# define alloca _alloca
21487# else
21488# if HAVE_ALLOCA_H
21489# include <alloca.h>
21490# else
21491# ifdef _AIX
21492 #pragma alloca
21493# else
21494# ifndef alloca /* predefined by HP cc +Olibcalls */
21495char *alloca ();
21496# endif
21497# endif
21498# endif
21499# endif
21500#endif
21501
John Criswell7a73b802003-06-30 21:59:07 +000021502int
21503main ()
21504{
21505char *p = (char *) alloca (1);
21506 ;
21507 return 0;
21508}
21509_ACEOF
21510rm -f conftest.$ac_objext conftest$ac_exeext
21511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21512 (eval $ac_link) 2>&5
21513 ac_status=$?
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); } &&
21516 { ac_try='test -s conftest$ac_exeext'
21517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21518 (eval $ac_try) 2>&5
21519 ac_status=$?
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); }; }; then
21522 ac_cv_func_alloca_works=yes
21523else
21524 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021525sed 's/^/| /' conftest.$ac_ext >&5
21526
John Criswell7a73b802003-06-30 21:59:07 +000021527ac_cv_func_alloca_works=no
21528fi
21529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21530fi
21531echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21532echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21533
21534if test $ac_cv_func_alloca_works = yes; then
21535
21536cat >>confdefs.h <<\_ACEOF
21537#define HAVE_ALLOCA 1
21538_ACEOF
21539
21540else
21541 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21542# that cause trouble. Some versions do not even contain alloca or
21543# contain a buggy version. If you still want to use their alloca,
21544# use ar to extract alloca.o from them instead of compiling alloca.c.
21545
21546ALLOCA=alloca.$ac_objext
21547
21548cat >>confdefs.h <<\_ACEOF
21549#define C_ALLOCA 1
21550_ACEOF
21551
21552
21553echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21554echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21555if test "${ac_cv_os_cray+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21557else
21558 cat >conftest.$ac_ext <<_ACEOF
21559#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021560/* confdefs.h. */
21561_ACEOF
21562cat confdefs.h >>conftest.$ac_ext
21563cat >>conftest.$ac_ext <<_ACEOF
21564/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021565#if defined(CRAY) && ! defined(CRAY2)
21566webecray
21567#else
21568wenotbecray
21569#endif
21570
21571_ACEOF
21572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021573 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021574 ac_cv_os_cray=yes
21575else
21576 ac_cv_os_cray=no
21577fi
21578rm -f conftest*
21579
21580fi
21581echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21582echo "${ECHO_T}$ac_cv_os_cray" >&6
21583if test $ac_cv_os_cray = yes; then
21584 for ac_func in _getb67 GETB67 getb67; do
21585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21586echo "$as_me:$LINENO: checking for $ac_func" >&5
21587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21588if eval "test \"\${$as_ac_var+set}\" = set"; then
21589 echo $ECHO_N "(cached) $ECHO_C" >&6
21590else
21591 cat >conftest.$ac_ext <<_ACEOF
21592#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021593/* confdefs.h. */
21594_ACEOF
21595cat confdefs.h >>conftest.$ac_ext
21596cat >>conftest.$ac_ext <<_ACEOF
21597/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021598/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021599 which can conflict with char $ac_func (); below.
21600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21601 <limits.h> exists even on freestanding compilers. */
21602#ifdef __STDC__
21603# include <limits.h>
21604#else
21605# include <assert.h>
21606#endif
John Criswell7a73b802003-06-30 21:59:07 +000021607/* Override any gcc2 internal prototype to avoid an error. */
21608#ifdef __cplusplus
21609extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021610{
John Criswell7a73b802003-06-30 21:59:07 +000021611#endif
21612/* We use char because int might match the return type of a gcc2
21613 builtin and then its argument prototype would still apply. */
21614char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021615/* The GNU C library defines this for functions which it implements
21616 to always fail with ENOSYS. Some functions are actually named
21617 something starting with __ and the normal name is an alias. */
21618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21619choke me
21620#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021621char (*f) () = $ac_func;
21622#endif
21623#ifdef __cplusplus
21624}
John Criswell7a73b802003-06-30 21:59:07 +000021625#endif
21626
John Criswell0c38eaf2003-09-10 15:17:25 +000021627int
21628main ()
21629{
21630return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021631 ;
21632 return 0;
21633}
21634_ACEOF
21635rm -f conftest.$ac_objext conftest$ac_exeext
21636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21637 (eval $ac_link) 2>&5
21638 ac_status=$?
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } &&
21641 { ac_try='test -s conftest$ac_exeext'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21644 ac_status=$?
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; }; then
21647 eval "$as_ac_var=yes"
21648else
21649 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021650sed 's/^/| /' conftest.$ac_ext >&5
21651
John Criswell7a73b802003-06-30 21:59:07 +000021652eval "$as_ac_var=no"
21653fi
21654rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21655fi
21656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21657echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21658if test `eval echo '${'$as_ac_var'}'` = yes; then
21659
21660cat >>confdefs.h <<_ACEOF
21661#define CRAY_STACKSEG_END $ac_func
21662_ACEOF
21663
21664 break
21665fi
21666
21667 done
21668fi
21669
21670echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21671echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21672if test "${ac_cv_c_stack_direction+set}" = set; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21674else
21675 if test "$cross_compiling" = yes; then
21676 ac_cv_c_stack_direction=0
21677else
21678 cat >conftest.$ac_ext <<_ACEOF
21679#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021680/* confdefs.h. */
21681_ACEOF
21682cat confdefs.h >>conftest.$ac_ext
21683cat >>conftest.$ac_ext <<_ACEOF
21684/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021685int
21686find_stack_direction ()
21687{
21688 static char *addr = 0;
21689 auto char dummy;
21690 if (addr == 0)
21691 {
21692 addr = &dummy;
21693 return find_stack_direction ();
21694 }
21695 else
21696 return (&dummy > addr) ? 1 : -1;
21697}
21698
21699int
21700main ()
21701{
21702 exit (find_stack_direction () < 0);
21703}
21704_ACEOF
21705rm -f conftest$ac_exeext
21706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21707 (eval $ac_link) 2>&5
21708 ac_status=$?
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712 (eval $ac_try) 2>&5
21713 ac_status=$?
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; }; then
21716 ac_cv_c_stack_direction=1
21717else
21718 echo "$as_me: program exited with status $ac_status" >&5
21719echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021720sed 's/^/| /' conftest.$ac_ext >&5
21721
John Criswell7a73b802003-06-30 21:59:07 +000021722( exit $ac_status )
21723ac_cv_c_stack_direction=-1
21724fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021725rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021726fi
21727fi
21728echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21729echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21730
21731cat >>confdefs.h <<_ACEOF
21732#define STACK_DIRECTION $ac_cv_c_stack_direction
21733_ACEOF
21734
21735
21736fi
21737
21738if test $ac_cv_c_compiler_gnu = yes; then
21739 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21740echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21741if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21742 echo $ECHO_N "(cached) $ECHO_C" >&6
21743else
21744 ac_pattern="Autoconf.*'x'"
21745 cat >conftest.$ac_ext <<_ACEOF
21746#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021747/* confdefs.h. */
21748_ACEOF
21749cat confdefs.h >>conftest.$ac_ext
21750cat >>conftest.$ac_ext <<_ACEOF
21751/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021752#include <sgtty.h>
21753Autoconf TIOCGETP
21754_ACEOF
21755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021756 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021757 ac_cv_prog_gcc_traditional=yes
21758else
21759 ac_cv_prog_gcc_traditional=no
21760fi
21761rm -f conftest*
21762
21763
21764 if test $ac_cv_prog_gcc_traditional = no; then
21765 cat >conftest.$ac_ext <<_ACEOF
21766#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021767/* confdefs.h. */
21768_ACEOF
21769cat confdefs.h >>conftest.$ac_ext
21770cat >>conftest.$ac_ext <<_ACEOF
21771/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021772#include <termio.h>
21773Autoconf TCGETA
21774_ACEOF
21775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021776 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021777 ac_cv_prog_gcc_traditional=yes
21778fi
21779rm -f conftest*
21780
21781 fi
21782fi
21783echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21784echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21785 if test $ac_cv_prog_gcc_traditional = yes; then
21786 CC="$CC -traditional"
21787 fi
21788fi
21789
21790echo "$as_me:$LINENO: checking for working memcmp" >&5
21791echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21792if test "${ac_cv_func_memcmp_working+set}" = set; then
21793 echo $ECHO_N "(cached) $ECHO_C" >&6
21794else
21795 if test "$cross_compiling" = yes; then
21796 ac_cv_func_memcmp_working=no
21797else
21798 cat >conftest.$ac_ext <<_ACEOF
21799#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021800/* confdefs.h. */
21801_ACEOF
21802cat confdefs.h >>conftest.$ac_ext
21803cat >>conftest.$ac_ext <<_ACEOF
21804/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021805
John Criswell7a73b802003-06-30 21:59:07 +000021806int
21807main ()
21808{
21809
21810 /* Some versions of memcmp are not 8-bit clean. */
21811 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21812 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21813 exit (1);
21814
21815 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21816 or more and with at least one buffer not starting on a 4-byte boundary.
21817 William Lewis provided this test program. */
21818 {
21819 char foo[21];
21820 char bar[21];
21821 int i;
21822 for (i = 0; i < 4; i++)
21823 {
21824 char *a = foo + i;
21825 char *b = bar + i;
21826 strcpy (a, "--------01111111");
21827 strcpy (b, "--------10000000");
21828 if (memcmp (a, b, 16) >= 0)
21829 exit (1);
21830 }
21831 exit (0);
21832 }
21833
21834 ;
21835 return 0;
21836}
21837_ACEOF
21838rm -f conftest$ac_exeext
21839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21840 (eval $ac_link) 2>&5
21841 ac_status=$?
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21846 ac_status=$?
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; }; then
21849 ac_cv_func_memcmp_working=yes
21850else
21851 echo "$as_me: program exited with status $ac_status" >&5
21852echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021853sed 's/^/| /' conftest.$ac_ext >&5
21854
John Criswell7a73b802003-06-30 21:59:07 +000021855( exit $ac_status )
21856ac_cv_func_memcmp_working=no
21857fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021858rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021859fi
21860fi
21861echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21862echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21863test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21864
21865
21866
21867for ac_header in stdlib.h unistd.h
21868do
21869as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21870if eval "test \"\${$as_ac_Header+set}\" = set"; then
21871 echo "$as_me:$LINENO: checking for $ac_header" >&5
21872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21873if eval "test \"\${$as_ac_Header+set}\" = set"; then
21874 echo $ECHO_N "(cached) $ECHO_C" >&6
21875fi
21876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21877echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21878else
21879 # Is the header compilable?
21880echo "$as_me:$LINENO: checking $ac_header usability" >&5
21881echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21882cat >conftest.$ac_ext <<_ACEOF
21883#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021884/* confdefs.h. */
21885_ACEOF
21886cat confdefs.h >>conftest.$ac_ext
21887cat >>conftest.$ac_ext <<_ACEOF
21888/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021889$ac_includes_default
21890#include <$ac_header>
21891_ACEOF
21892rm -f conftest.$ac_objext
21893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21894 (eval $ac_compile) 2>&5
21895 ac_status=$?
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); } &&
21898 { ac_try='test -s conftest.$ac_objext'
21899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21900 (eval $ac_try) 2>&5
21901 ac_status=$?
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); }; }; then
21904 ac_header_compiler=yes
21905else
21906 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021907sed 's/^/| /' conftest.$ac_ext >&5
21908
John Criswell7a73b802003-06-30 21:59:07 +000021909ac_header_compiler=no
21910fi
21911rm -f conftest.$ac_objext conftest.$ac_ext
21912echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21913echo "${ECHO_T}$ac_header_compiler" >&6
21914
21915# Is the header present?
21916echo "$as_me:$LINENO: checking $ac_header presence" >&5
21917echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21918cat >conftest.$ac_ext <<_ACEOF
21919#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021920/* confdefs.h. */
21921_ACEOF
21922cat confdefs.h >>conftest.$ac_ext
21923cat >>conftest.$ac_ext <<_ACEOF
21924/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021925#include <$ac_header>
21926_ACEOF
21927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21929 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021930 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021931 rm -f conftest.er1
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } >/dev/null; then
21935 if test -s conftest.err; then
21936 ac_cpp_err=$ac_c_preproc_warn_flag
21937 else
21938 ac_cpp_err=
21939 fi
21940else
21941 ac_cpp_err=yes
21942fi
21943if test -z "$ac_cpp_err"; then
21944 ac_header_preproc=yes
21945else
21946 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021947sed 's/^/| /' conftest.$ac_ext >&5
21948
John Criswell7a73b802003-06-30 21:59:07 +000021949 ac_header_preproc=no
21950fi
21951rm -f conftest.err conftest.$ac_ext
21952echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21953echo "${ECHO_T}$ac_header_preproc" >&6
21954
21955# So? What about this header?
21956case $ac_header_compiler:$ac_header_preproc in
21957 yes:no )
21958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21962 (
21963 cat <<\_ASBOX
21964## ------------------------------------ ##
21965## Report this to bug-autoconf@gnu.org. ##
21966## ------------------------------------ ##
21967_ASBOX
21968 ) |
21969 sed "s/^/$as_me: WARNING: /" >&2
21970 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021971 no:yes )
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021977echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21978 (
21979 cat <<\_ASBOX
21980## ------------------------------------ ##
21981## Report this to bug-autoconf@gnu.org. ##
21982## ------------------------------------ ##
21983_ASBOX
21984 ) |
21985 sed "s/^/$as_me: WARNING: /" >&2
21986 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021987esac
21988echo "$as_me:$LINENO: checking for $ac_header" >&5
21989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21990if eval "test \"\${$as_ac_Header+set}\" = set"; then
21991 echo $ECHO_N "(cached) $ECHO_C" >&6
21992else
21993 eval "$as_ac_Header=$ac_header_preproc"
21994fi
21995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21997
21998fi
21999if test `eval echo '${'$as_ac_Header'}'` = yes; then
22000 cat >>confdefs.h <<_ACEOF
22001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22002_ACEOF
22003
22004fi
22005
22006done
22007
22008
22009for ac_func in getpagesize
22010do
22011as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22012echo "$as_me:$LINENO: checking for $ac_func" >&5
22013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22014if eval "test \"\${$as_ac_var+set}\" = set"; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22016else
22017 cat >conftest.$ac_ext <<_ACEOF
22018#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022019/* confdefs.h. */
22020_ACEOF
22021cat confdefs.h >>conftest.$ac_ext
22022cat >>conftest.$ac_ext <<_ACEOF
22023/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022024/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022025 which can conflict with char $ac_func (); below.
22026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22027 <limits.h> exists even on freestanding compilers. */
22028#ifdef __STDC__
22029# include <limits.h>
22030#else
22031# include <assert.h>
22032#endif
John Criswell7a73b802003-06-30 21:59:07 +000022033/* Override any gcc2 internal prototype to avoid an error. */
22034#ifdef __cplusplus
22035extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022036{
John Criswell7a73b802003-06-30 21:59:07 +000022037#endif
22038/* We use char because int might match the return type of a gcc2
22039 builtin and then its argument prototype would still apply. */
22040char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022041/* The GNU C library defines this for functions which it implements
22042 to always fail with ENOSYS. Some functions are actually named
22043 something starting with __ and the normal name is an alias. */
22044#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22045choke me
22046#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022047char (*f) () = $ac_func;
22048#endif
22049#ifdef __cplusplus
22050}
John Criswell7a73b802003-06-30 21:59:07 +000022051#endif
22052
John Criswell0c38eaf2003-09-10 15:17:25 +000022053int
22054main ()
22055{
22056return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022057 ;
22058 return 0;
22059}
22060_ACEOF
22061rm -f conftest.$ac_objext conftest$ac_exeext
22062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22063 (eval $ac_link) 2>&5
22064 ac_status=$?
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } &&
22067 { ac_try='test -s conftest$ac_exeext'
22068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22069 (eval $ac_try) 2>&5
22070 ac_status=$?
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }; }; then
22073 eval "$as_ac_var=yes"
22074else
22075 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022076sed 's/^/| /' conftest.$ac_ext >&5
22077
John Criswell7a73b802003-06-30 21:59:07 +000022078eval "$as_ac_var=no"
22079fi
22080rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22081fi
22082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22083echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22084if test `eval echo '${'$as_ac_var'}'` = yes; then
22085 cat >>confdefs.h <<_ACEOF
22086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22087_ACEOF
22088
22089fi
22090done
22091
22092echo "$as_me:$LINENO: checking for working mmap" >&5
22093echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22094if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22096else
22097 if test "$cross_compiling" = yes; then
22098 ac_cv_func_mmap_fixed_mapped=no
22099else
22100 cat >conftest.$ac_ext <<_ACEOF
22101#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022102/* confdefs.h. */
22103_ACEOF
22104cat confdefs.h >>conftest.$ac_ext
22105cat >>conftest.$ac_ext <<_ACEOF
22106/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022107$ac_includes_default
22108/* malloc might have been renamed as rpl_malloc. */
22109#undef malloc
22110
22111/* Thanks to Mike Haertel and Jim Avera for this test.
22112 Here is a matrix of mmap possibilities:
22113 mmap private not fixed
22114 mmap private fixed at somewhere currently unmapped
22115 mmap private fixed at somewhere already mapped
22116 mmap shared not fixed
22117 mmap shared fixed at somewhere currently unmapped
22118 mmap shared fixed at somewhere already mapped
22119 For private mappings, we should verify that changes cannot be read()
22120 back from the file, nor mmap's back from the file at a different
22121 address. (There have been systems where private was not correctly
22122 implemented like the infamous i386 svr4.0, and systems where the
22123 VM page cache was not coherent with the file system buffer cache
22124 like early versions of FreeBSD and possibly contemporary NetBSD.)
22125 For shared mappings, we should conversely verify that changes get
22126 propagated back to all the places they're supposed to be.
22127
22128 Grep wants private fixed already mapped.
22129 The main things grep needs to know about mmap are:
22130 * does it exist and is it safe to write into the mmap'd area
22131 * how to use it (BSD variants) */
22132
22133#include <fcntl.h>
22134#include <sys/mman.h>
22135
22136#if !STDC_HEADERS && !HAVE_STDLIB_H
22137char *malloc ();
22138#endif
22139
22140/* This mess was copied from the GNU getpagesize.h. */
22141#if !HAVE_GETPAGESIZE
22142/* Assume that all systems that can run configure have sys/param.h. */
22143# if !HAVE_SYS_PARAM_H
22144# define HAVE_SYS_PARAM_H 1
22145# endif
22146
22147# ifdef _SC_PAGESIZE
22148# define getpagesize() sysconf(_SC_PAGESIZE)
22149# else /* no _SC_PAGESIZE */
22150# if HAVE_SYS_PARAM_H
22151# include <sys/param.h>
22152# ifdef EXEC_PAGESIZE
22153# define getpagesize() EXEC_PAGESIZE
22154# else /* no EXEC_PAGESIZE */
22155# ifdef NBPG
22156# define getpagesize() NBPG * CLSIZE
22157# ifndef CLSIZE
22158# define CLSIZE 1
22159# endif /* no CLSIZE */
22160# else /* no NBPG */
22161# ifdef NBPC
22162# define getpagesize() NBPC
22163# else /* no NBPC */
22164# ifdef PAGESIZE
22165# define getpagesize() PAGESIZE
22166# endif /* PAGESIZE */
22167# endif /* no NBPC */
22168# endif /* no NBPG */
22169# endif /* no EXEC_PAGESIZE */
22170# else /* no HAVE_SYS_PARAM_H */
22171# define getpagesize() 8192 /* punt totally */
22172# endif /* no HAVE_SYS_PARAM_H */
22173# endif /* no _SC_PAGESIZE */
22174
22175#endif /* no HAVE_GETPAGESIZE */
22176
22177int
22178main ()
22179{
22180 char *data, *data2, *data3;
22181 int i, pagesize;
22182 int fd;
22183
22184 pagesize = getpagesize ();
22185
22186 /* First, make a file with some known garbage in it. */
22187 data = (char *) malloc (pagesize);
22188 if (!data)
22189 exit (1);
22190 for (i = 0; i < pagesize; ++i)
22191 *(data + i) = rand ();
22192 umask (0);
22193 fd = creat ("conftest.mmap", 0600);
22194 if (fd < 0)
22195 exit (1);
22196 if (write (fd, data, pagesize) != pagesize)
22197 exit (1);
22198 close (fd);
22199
22200 /* Next, try to mmap the file at a fixed address which already has
22201 something else allocated at it. If we can, also make sure that
22202 we see the same garbage. */
22203 fd = open ("conftest.mmap", O_RDWR);
22204 if (fd < 0)
22205 exit (1);
22206 data2 = (char *) malloc (2 * pagesize);
22207 if (!data2)
22208 exit (1);
22209 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22210 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22211 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22212 exit (1);
22213 for (i = 0; i < pagesize; ++i)
22214 if (*(data + i) != *(data2 + i))
22215 exit (1);
22216
22217 /* Finally, make sure that changes to the mapped area do not
22218 percolate back to the file as seen by read(). (This is a bug on
22219 some variants of i386 svr4.0.) */
22220 for (i = 0; i < pagesize; ++i)
22221 *(data2 + i) = *(data2 + i) + 1;
22222 data3 = (char *) malloc (pagesize);
22223 if (!data3)
22224 exit (1);
22225 if (read (fd, data3, pagesize) != pagesize)
22226 exit (1);
22227 for (i = 0; i < pagesize; ++i)
22228 if (*(data + i) != *(data3 + i))
22229 exit (1);
22230 close (fd);
22231 exit (0);
22232}
22233_ACEOF
22234rm -f conftest$ac_exeext
22235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22236 (eval $ac_link) 2>&5
22237 ac_status=$?
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22241 (eval $ac_try) 2>&5
22242 ac_status=$?
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); }; }; then
22245 ac_cv_func_mmap_fixed_mapped=yes
22246else
22247 echo "$as_me: program exited with status $ac_status" >&5
22248echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022249sed 's/^/| /' conftest.$ac_ext >&5
22250
John Criswell7a73b802003-06-30 21:59:07 +000022251( exit $ac_status )
22252ac_cv_func_mmap_fixed_mapped=no
22253fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022254rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022255fi
22256fi
22257echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22258echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22259if test $ac_cv_func_mmap_fixed_mapped = yes; then
22260
22261cat >>confdefs.h <<\_ACEOF
22262#define HAVE_MMAP 1
22263_ACEOF
22264
22265fi
22266rm -f conftest.mmap
22267
22268echo "$as_me:$LINENO: checking for mmap of files" >&5
22269echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22270if test "${ac_cv_func_mmap_file+set}" = set; then
22271 echo $ECHO_N "(cached) $ECHO_C" >&6
22272else
22273
22274
22275 ac_ext=c
22276ac_cpp='$CPP $CPPFLAGS'
22277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22279ac_compiler_gnu=$ac_cv_c_compiler_gnu
22280
22281 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022282 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22283See \`config.log' for more details." >&5
22284echo "$as_me: error: cannot run test program while cross compiling
22285See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022286 { (exit 1); exit 1; }; }
22287else
22288 cat >conftest.$ac_ext <<_ACEOF
22289#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022290/* confdefs.h. */
22291_ACEOF
22292cat confdefs.h >>conftest.$ac_ext
22293cat >>conftest.$ac_ext <<_ACEOF
22294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022295
John Criswell7a73b802003-06-30 21:59:07 +000022296#ifdef HAVE_SYS_TYPES_H
22297#include <sys/types.h>
22298#endif
22299
John Criswell5ab73462003-10-09 15:44:28 +000022300#ifdef HAVE_SYS_MMAN_H
22301#include <sys/mman.h>
22302#endif
22303
John Criswell7a73b802003-06-30 21:59:07 +000022304#ifdef HAVE_FCNTL_H
22305#include <fcntl.h>
22306#endif
22307
22308 int fd;
22309 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022310 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
John Criswell7a73b802003-06-30 21:59:07 +000022311_ACEOF
22312rm -f conftest$ac_exeext
22313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22314 (eval $ac_link) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22319 (eval $ac_try) 2>&5
22320 ac_status=$?
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); }; }; then
22323 ac_cv_func_mmap_file=yes
22324else
22325 echo "$as_me: program exited with status $ac_status" >&5
22326echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022327sed 's/^/| /' conftest.$ac_ext >&5
22328
John Criswell7a73b802003-06-30 21:59:07 +000022329( exit $ac_status )
22330ac_cv_func_mmap_file=no
22331fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022332rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022333fi
22334 ac_ext=c
22335ac_cpp='$CPP $CPPFLAGS'
22336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22338ac_compiler_gnu=$ac_cv_c_compiler_gnu
22339
22340
22341fi
22342echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22343echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22344if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022345
22346cat >>confdefs.h <<\_ACEOF
22347#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000022348_ACEOF
22349
22350 MMAP_FILE=yes
22351
22352fi
22353
22354if test ${ac_cv_func_mmap_file} = "no"
22355then
22356 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22357echo "$as_me: error: mmap() of files required but not found" >&2;}
22358 { (exit 1); exit 1; }; }
22359fi
22360echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22361echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22362if test "${ac_cv_header_mmap_anon+set}" = set; then
22363 echo $ECHO_N "(cached) $ECHO_C" >&6
22364else
22365
22366
22367 ac_ext=c
22368ac_cpp='$CPP $CPPFLAGS'
22369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22371ac_compiler_gnu=$ac_cv_c_compiler_gnu
22372
22373 cat >conftest.$ac_ext <<_ACEOF
22374#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022375/* confdefs.h. */
22376_ACEOF
22377cat confdefs.h >>conftest.$ac_ext
22378cat >>conftest.$ac_ext <<_ACEOF
22379/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022380#include <sys/mman.h>
22381 #include <unistd.h>
22382 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022383int
22384main ()
22385{
22386mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22387 ;
22388 return 0;
22389}
22390_ACEOF
22391rm -f conftest.$ac_objext
22392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22393 (eval $ac_compile) 2>&5
22394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); } &&
22397 { ac_try='test -s conftest.$ac_objext'
22398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399 (eval $ac_try) 2>&5
22400 ac_status=$?
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; }; then
22403 ac_cv_header_mmap_anon=yes
22404else
22405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022406sed 's/^/| /' conftest.$ac_ext >&5
22407
John Criswell7a73b802003-06-30 21:59:07 +000022408ac_cv_header_mmap_anon=no
22409fi
22410rm -f conftest.$ac_objext conftest.$ac_ext
22411 ac_ext=c
22412ac_cpp='$CPP $CPPFLAGS'
22413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22415ac_compiler_gnu=$ac_cv_c_compiler_gnu
22416
22417
22418fi
22419echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22420echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22421if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022422
22423cat >>confdefs.h <<\_ACEOF
22424#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000022425_ACEOF
22426
22427fi
22428
22429echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22430echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22431if test "${ac_cv_type_signal+set}" = set; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22433else
22434 cat >conftest.$ac_ext <<_ACEOF
22435#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022436/* confdefs.h. */
22437_ACEOF
22438cat confdefs.h >>conftest.$ac_ext
22439cat >>conftest.$ac_ext <<_ACEOF
22440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022441#include <sys/types.h>
22442#include <signal.h>
22443#ifdef signal
22444# undef signal
22445#endif
22446#ifdef __cplusplus
22447extern "C" void (*signal (int, void (*)(int)))(int);
22448#else
22449void (*signal ()) ();
22450#endif
22451
John Criswell7a73b802003-06-30 21:59:07 +000022452int
22453main ()
22454{
22455int i;
22456 ;
22457 return 0;
22458}
22459_ACEOF
22460rm -f conftest.$ac_objext
22461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22462 (eval $ac_compile) 2>&5
22463 ac_status=$?
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } &&
22466 { ac_try='test -s conftest.$ac_objext'
22467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22468 (eval $ac_try) 2>&5
22469 ac_status=$?
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); }; }; then
22472 ac_cv_type_signal=void
22473else
22474 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022475sed 's/^/| /' conftest.$ac_ext >&5
22476
John Criswell7a73b802003-06-30 21:59:07 +000022477ac_cv_type_signal=int
22478fi
22479rm -f conftest.$ac_objext conftest.$ac_ext
22480fi
22481echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22482echo "${ECHO_T}$ac_cv_type_signal" >&6
22483
22484cat >>confdefs.h <<_ACEOF
22485#define RETSIGTYPE $ac_cv_type_signal
22486_ACEOF
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
Brian Gaekec45be042003-10-07 06:01:34 +000022498
22499
John Criswella0137d32003-10-13 16:22:01 +000022500for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
John Criswell7a73b802003-06-30 21:59:07 +000022501do
22502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22503echo "$as_me:$LINENO: checking for $ac_func" >&5
22504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22505if eval "test \"\${$as_ac_var+set}\" = set"; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22507else
22508 cat >conftest.$ac_ext <<_ACEOF
22509#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022510/* confdefs.h. */
22511_ACEOF
22512cat confdefs.h >>conftest.$ac_ext
22513cat >>conftest.$ac_ext <<_ACEOF
22514/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022515/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022516 which can conflict with char $ac_func (); below.
22517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22518 <limits.h> exists even on freestanding compilers. */
22519#ifdef __STDC__
22520# include <limits.h>
22521#else
22522# include <assert.h>
22523#endif
John Criswell7a73b802003-06-30 21:59:07 +000022524/* Override any gcc2 internal prototype to avoid an error. */
22525#ifdef __cplusplus
22526extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022527{
John Criswell7a73b802003-06-30 21:59:07 +000022528#endif
22529/* We use char because int might match the return type of a gcc2
22530 builtin and then its argument prototype would still apply. */
22531char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022532/* The GNU C library defines this for functions which it implements
22533 to always fail with ENOSYS. Some functions are actually named
22534 something starting with __ and the normal name is an alias. */
22535#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22536choke me
22537#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022538char (*f) () = $ac_func;
22539#endif
22540#ifdef __cplusplus
22541}
John Criswell7a73b802003-06-30 21:59:07 +000022542#endif
22543
John Criswell0c38eaf2003-09-10 15:17:25 +000022544int
22545main ()
22546{
22547return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022548 ;
22549 return 0;
22550}
22551_ACEOF
22552rm -f conftest.$ac_objext conftest$ac_exeext
22553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22554 (eval $ac_link) 2>&5
22555 ac_status=$?
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } &&
22558 { ac_try='test -s conftest$ac_exeext'
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; }; then
22564 eval "$as_ac_var=yes"
22565else
22566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022567sed 's/^/| /' conftest.$ac_ext >&5
22568
John Criswell7a73b802003-06-30 21:59:07 +000022569eval "$as_ac_var=no"
22570fi
22571rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22572fi
22573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22574echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22575if test `eval echo '${'$as_ac_var'}'` = yes; then
22576 cat >>confdefs.h <<_ACEOF
22577#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22578_ACEOF
22579
22580fi
22581done
22582
22583
22584
22585echo "$as_me:$LINENO: checking for mmap" >&5
22586echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22587if test "${ac_cv_func_mmap+set}" = set; then
22588 echo $ECHO_N "(cached) $ECHO_C" >&6
22589else
22590 cat >conftest.$ac_ext <<_ACEOF
22591#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022592/* confdefs.h. */
22593_ACEOF
22594cat confdefs.h >>conftest.$ac_ext
22595cat >>conftest.$ac_ext <<_ACEOF
22596/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022597/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022598 which can conflict with char mmap (); below.
22599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22600 <limits.h> exists even on freestanding compilers. */
22601#ifdef __STDC__
22602# include <limits.h>
22603#else
22604# include <assert.h>
22605#endif
John Criswell7a73b802003-06-30 21:59:07 +000022606/* Override any gcc2 internal prototype to avoid an error. */
22607#ifdef __cplusplus
22608extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022609{
John Criswell7a73b802003-06-30 21:59:07 +000022610#endif
22611/* We use char because int might match the return type of a gcc2
22612 builtin and then its argument prototype would still apply. */
22613char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022614/* The GNU C library defines this for functions which it implements
22615 to always fail with ENOSYS. Some functions are actually named
22616 something starting with __ and the normal name is an alias. */
22617#if defined (__stub_mmap) || defined (__stub___mmap)
22618choke me
22619#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022620char (*f) () = mmap;
22621#endif
22622#ifdef __cplusplus
22623}
John Criswell7a73b802003-06-30 21:59:07 +000022624#endif
22625
John Criswell0c38eaf2003-09-10 15:17:25 +000022626int
22627main ()
22628{
22629return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022630 ;
22631 return 0;
22632}
22633_ACEOF
22634rm -f conftest.$ac_objext conftest$ac_exeext
22635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22636 (eval $ac_link) 2>&5
22637 ac_status=$?
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); } &&
22640 { ac_try='test -s conftest$ac_exeext'
22641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642 (eval $ac_try) 2>&5
22643 ac_status=$?
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); }; }; then
22646 ac_cv_func_mmap=yes
22647else
22648 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022649sed 's/^/| /' conftest.$ac_ext >&5
22650
John Criswell7a73b802003-06-30 21:59:07 +000022651ac_cv_func_mmap=no
22652fi
22653rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22654fi
22655echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22656echo "${ECHO_T}$ac_cv_func_mmap" >&6
22657if test $ac_cv_func_mmap = yes; then
22658 :
22659else
22660 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22661echo "$as_me: error: Function mmap() required but not found" >&2;}
22662 { (exit 1); exit 1; }; }
22663fi
22664
22665echo "$as_me:$LINENO: checking for mprotect" >&5
22666echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22667if test "${ac_cv_func_mprotect+set}" = set; then
22668 echo $ECHO_N "(cached) $ECHO_C" >&6
22669else
22670 cat >conftest.$ac_ext <<_ACEOF
22671#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022672/* confdefs.h. */
22673_ACEOF
22674cat confdefs.h >>conftest.$ac_ext
22675cat >>conftest.$ac_ext <<_ACEOF
22676/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022677/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022678 which can conflict with char mprotect (); below.
22679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22680 <limits.h> exists even on freestanding compilers. */
22681#ifdef __STDC__
22682# include <limits.h>
22683#else
22684# include <assert.h>
22685#endif
John Criswell7a73b802003-06-30 21:59:07 +000022686/* Override any gcc2 internal prototype to avoid an error. */
22687#ifdef __cplusplus
22688extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022689{
John Criswell7a73b802003-06-30 21:59:07 +000022690#endif
22691/* We use char because int might match the return type of a gcc2
22692 builtin and then its argument prototype would still apply. */
22693char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022694/* The GNU C library defines this for functions which it implements
22695 to always fail with ENOSYS. Some functions are actually named
22696 something starting with __ and the normal name is an alias. */
22697#if defined (__stub_mprotect) || defined (__stub___mprotect)
22698choke me
22699#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022700char (*f) () = mprotect;
22701#endif
22702#ifdef __cplusplus
22703}
John Criswell7a73b802003-06-30 21:59:07 +000022704#endif
22705
John Criswell0c38eaf2003-09-10 15:17:25 +000022706int
22707main ()
22708{
22709return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022710 ;
22711 return 0;
22712}
22713_ACEOF
22714rm -f conftest.$ac_objext conftest$ac_exeext
22715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22716 (eval $ac_link) 2>&5
22717 ac_status=$?
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); } &&
22720 { ac_try='test -s conftest$ac_exeext'
22721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22722 (eval $ac_try) 2>&5
22723 ac_status=$?
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); }; }; then
22726 ac_cv_func_mprotect=yes
22727else
22728 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022729sed 's/^/| /' conftest.$ac_ext >&5
22730
John Criswell7a73b802003-06-30 21:59:07 +000022731ac_cv_func_mprotect=no
22732fi
22733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22734fi
22735echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22736echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22737if test $ac_cv_func_mprotect = yes; then
22738 :
22739else
22740 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22741echo "$as_me: error: Function mprotect() required but not found" >&2;}
22742 { (exit 1); exit 1; }; }
22743fi
22744
22745
John Criswellb13092b2003-07-22 21:00:24 +000022746
John Criswell7a73b802003-06-30 21:59:07 +000022747# Check whether --enable-purify or --disable-purify was given.
22748if test "${enable_purify+set}" = set; then
22749 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022750
22751else
John Criswellb13092b2003-07-22 21:00:24 +000022752 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022753fi;
John Criswellb13092b2003-07-22 21:00:24 +000022754if test ${enableval} = "no"
22755then
22756 ENABLE_PURIFY=
22757
22758else
22759 ENABLE_PURIFY=ENABLE_PURIFY=1
22760
22761fi
22762
John Criswell7a73b802003-06-30 21:59:07 +000022763# Check whether --enable-optimized or --disable-optimized was given.
22764if test "${enable_optimized+set}" = set; then
22765 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022766
22767else
John Criswellb13092b2003-07-22 21:00:24 +000022768 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022769fi;
John Criswellb13092b2003-07-22 21:00:24 +000022770if test ${enableval} = "no"
22771then
22772 ENABLE_OPTIMIZED=
22773
22774else
22775 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22776
22777fi
22778
John Criswell55126592003-10-07 21:57:39 +000022779# Check whether --enable-spec2000 or --disable-spec2000 was given.
22780if test "${enable_spec2000+set}" = set; then
22781 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000022782
22783else
John Criswellb13092b2003-07-22 21:00:24 +000022784 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022785fi;
John Criswellb13092b2003-07-22 21:00:24 +000022786if test ${enableval} = "no"
22787then
John Criswell55126592003-10-07 21:57:39 +000022788 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22789 then
22790 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000022791
John Criswell55126592003-10-07 21:57:39 +000022792 USE_SPEC=USE_SPEC=1
22793
22794 else
22795 USE_SPEC=
22796
22797
22798 fi
John Criswellb13092b2003-07-22 21:00:24 +000022799else
John Criswell55126592003-10-07 21:57:39 +000022800 if test ${enableval} = ""
22801 then
22802 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22803
22804 else
22805 SPEC_ROOT=${enableval}
22806
22807 fi
John Criswellb13092b2003-07-22 21:00:24 +000022808 USE_SPEC=USE_SPEC=1
22809
22810fi
22811
John Criswell7a73b802003-06-30 21:59:07 +000022812# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22813if test "${enable_precompiled_bytecode+set}" = set; then
22814 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022815
22816else
John Criswellb13092b2003-07-22 21:00:24 +000022817 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022818fi;
John Criswellb13092b2003-07-22 21:00:24 +000022819if test ${enableval} = "no"
22820then
22821 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022822
John Criswellb13092b2003-07-22 21:00:24 +000022823else
22824 UPB=USE_PRECOMPILED_BYTECODE=1
22825
22826fi
John Criswellf02dbf02003-07-22 20:07:49 +000022827
22828
22829# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22830if test "${enable_llc_diffs+set}" = set; then
22831 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022832
22833else
John Criswellb13092b2003-07-22 21:00:24 +000022834 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022835fi;
John Criswellb13092b2003-07-22 21:00:24 +000022836if test ${enableval} = "no"
22837then
22838 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022839
John Criswellb13092b2003-07-22 21:00:24 +000022840else
22841 DISABLE_LLC_DIFFS=
22842
22843fi
22844
22845# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022846if test "${enable_jit+set}" = set; then
22847 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022848
22849else
John Criswellc78022e2003-07-29 19:11:58 +000022850 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022851fi;
John Criswellb13092b2003-07-22 21:00:24 +000022852
22853if test ${enableval} = "no"
22854then
22855 JIT=
22856
22857else
John Criswellc78022e2003-07-29 19:11:58 +000022858 case $target in
22859 *i*86*)
22860 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022861
John Criswellc78022e2003-07-29 19:11:58 +000022862 ;;
22863 *sparc*)
22864 JIT=TARGET_HAS_JIT=1
22865
22866 ;;
22867 *)
22868 JIT=
22869
22870 ;;
22871 esac
John Criswellb13092b2003-07-22 21:00:24 +000022872fi
John Criswell7a73b802003-06-30 21:59:07 +000022873
22874
John Criswellc78022e2003-07-29 19:11:58 +000022875
John Criswell7a73b802003-06-30 21:59:07 +000022876# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22877if test "${with_llvmgccdir+set}" = set; then
22878 withval="$with_llvmgccdir"
22879 LLVMGCCDIR=$withval
22880
22881fi;
22882
John Criswellc78022e2003-07-29 19:11:58 +000022883
John Criswell7a73b802003-06-30 21:59:07 +000022884# Check whether --with-bcrepos or --without-bcrepos was given.
22885if test "${with_bcrepos+set}" = set; then
22886 withval="$with_bcrepos"
22887 BCR=$withval
22888
22889else
22890 BCR=/home/vadve/lattner/LLVMPrograms
22891
22892fi;
22893
John Criswellc78022e2003-07-29 19:11:58 +000022894
John Criswell7a73b802003-06-30 21:59:07 +000022895# Check whether --with-papi or --without-papi was given.
22896if test "${with_papi+set}" = set; then
22897 withval="$with_papi"
22898 PAPIDIR=$withval
22899
22900else
John Criswellde00db22003-08-25 16:49:54 +000022901 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022902
22903fi;
22904
John Criswell7a73b802003-06-30 21:59:07 +000022905
22906# Check whether --with-purify or --without-purify was given.
22907if test "${with_purify+set}" = set; then
22908 withval="$with_purify"
22909 PURIFY=$withval
22910
22911fi;
22912
John Criswellde00db22003-08-25 16:49:54 +000022913
John Criswell0c38eaf2003-09-10 15:17:25 +000022914 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022915cat >confcache <<\_ACEOF
22916# This file is a shell script that caches the results of configure
22917# tests run on this system so they can be shared between configure
22918# scripts and configure runs, see configure's option --config-cache.
22919# It is not useful on other systems. If it contains results you don't
22920# want to keep, you may remove or edit it.
22921#
22922# config.status only pays attention to the cache file if you give it
22923# the --recheck option to rerun configure.
22924#
John Criswell0c38eaf2003-09-10 15:17:25 +000022925# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022926# loading this file, other *unset* `ac_cv_foo' will be assigned the
22927# following values.
22928
22929_ACEOF
22930
22931# The following way of writing the cache mishandles newlines in values,
22932# but we know of no workaround that is simple, portable, and efficient.
22933# So, don't put newlines in cache variables' values.
22934# Ultrix sh set writes to stderr and can't be redirected directly,
22935# and sets the high bit in the cache file unless we assign to the vars.
22936{
22937 (set) 2>&1 |
22938 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22939 *ac_space=\ *)
22940 # `set' does not quote correctly, so add quotes (double-quote
22941 # substitution turns \\\\ into \\, and sed turns \\ into \).
22942 sed -n \
22943 "s/'/'\\\\''/g;
22944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22945 ;;
22946 *)
22947 # `set' quotes correctly as required by POSIX, so do not add quotes.
22948 sed -n \
22949 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22950 ;;
22951 esac;
22952} |
22953 sed '
22954 t clear
22955 : clear
22956 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22957 t end
22958 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22959 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022960if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022961 if test -w $cache_file; then
22962 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22963 cat confcache >$cache_file
22964 else
22965 echo "not updating unwritable cache $cache_file"
22966 fi
22967fi
22968rm -f confcache
22969
22970test "x$prefix" = xNONE && prefix=$ac_default_prefix
22971# Let make expand exec_prefix.
22972test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22973
22974# VPATH may cause trouble with some makes, so we remove $(srcdir),
22975# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22976# trailing colons and then remove the whole line if VPATH becomes empty
22977# (actually we leave an empty line to preserve line numbers).
22978if test "x$srcdir" = x.; then
22979 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22980s/:*\$(srcdir):*/:/;
22981s/:*\${srcdir}:*/:/;
22982s/:*@srcdir@:*/:/;
22983s/^\([^=]*=[ ]*\):*/\1/;
22984s/:*$//;
22985s/^[^=]*=[ ]*$//;
22986}'
22987fi
22988
22989DEFS=-DHAVE_CONFIG_H
22990
John Criswell0c38eaf2003-09-10 15:17:25 +000022991ac_libobjs=
22992ac_ltlibobjs=
22993for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22994 # 1. Remove the extension, and $U if already installed.
22995 ac_i=`echo "$ac_i" |
22996 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22997 # 2. Add them.
22998 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22999 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23000done
23001LIBOBJS=$ac_libobjs
23002
23003LTLIBOBJS=$ac_ltlibobjs
23004
23005
John Criswell7a73b802003-06-30 21:59:07 +000023006
23007: ${CONFIG_STATUS=./config.status}
23008ac_clean_files_save=$ac_clean_files
23009ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23010{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23011echo "$as_me: creating $CONFIG_STATUS" >&6;}
23012cat >$CONFIG_STATUS <<_ACEOF
23013#! $SHELL
23014# Generated by $as_me.
23015# Run this file to recreate the current configuration.
23016# Compiler output produced by configure, useful for debugging
23017# configure, is in config.log if it exists.
23018
23019debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023020ac_cs_recheck=false
23021ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023022SHELL=\${CONFIG_SHELL-$SHELL}
23023_ACEOF
23024
23025cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023026## --------------------- ##
23027## M4sh Initialization. ##
23028## --------------------- ##
23029
23030# Be Bourne compatible
23031if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23032 emulate sh
23033 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023034 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23035 # is contrary to our usage. Disable this feature.
23036 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023037elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23038 set -o posix
23039fi
23040
John Criswell7a73b802003-06-30 21:59:07 +000023041# Support unset when possible.
23042if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23043 as_unset=unset
23044else
23045 as_unset=false
23046fi
23047
John Criswell0c38eaf2003-09-10 15:17:25 +000023048
23049# Work around bugs in pre-3.0 UWIN ksh.
23050$as_unset ENV MAIL MAILPATH
23051PS1='$ '
23052PS2='> '
23053PS4='+ '
23054
23055# NLS nuisances.
23056for as_var in \
23057 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23058 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23059 LC_TELEPHONE LC_TIME
23060do
23061 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23062 eval $as_var=C; export $as_var
23063 else
23064 $as_unset $as_var
23065 fi
23066done
23067
23068# Required to use basename.
23069if expr a : '\(a\)' >/dev/null 2>&1; then
23070 as_expr=expr
23071else
23072 as_expr=false
23073fi
23074
23075if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23076 as_basename=basename
23077else
23078 as_basename=false
23079fi
John Criswell7a73b802003-06-30 21:59:07 +000023080
23081
23082# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023083as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023084$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23085 X"$0" : 'X\(//\)$' \| \
23086 X"$0" : 'X\(/\)$' \| \
23087 . : '\(.\)' 2>/dev/null ||
23088echo X/"$0" |
23089 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23090 /^X\/\(\/\/\)$/{ s//\1/; q; }
23091 /^X\/\(\/\).*/{ s//\1/; q; }
23092 s/.*/./; q'`
23093
John Criswell0c38eaf2003-09-10 15:17:25 +000023094
John Criswell7a73b802003-06-30 21:59:07 +000023095# PATH needs CR, and LINENO needs CR and PATH.
23096# Avoid depending upon Character Ranges.
23097as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23098as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23099as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23100as_cr_digits='0123456789'
23101as_cr_alnum=$as_cr_Letters$as_cr_digits
23102
23103# The user is always right.
23104if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023105 echo "#! /bin/sh" >conf$$.sh
23106 echo "exit 0" >>conf$$.sh
23107 chmod +x conf$$.sh
23108 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023109 PATH_SEPARATOR=';'
23110 else
23111 PATH_SEPARATOR=:
23112 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023113 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023114fi
23115
23116
23117 as_lineno_1=$LINENO
23118 as_lineno_2=$LINENO
23119 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23120 test "x$as_lineno_1" != "x$as_lineno_2" &&
23121 test "x$as_lineno_3" = "x$as_lineno_2" || {
23122 # Find who we are. Look in the path if we contain no path at all
23123 # relative or not.
23124 case $0 in
23125 *[\\/]* ) as_myself=$0 ;;
23126 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23127for as_dir in $PATH
23128do
23129 IFS=$as_save_IFS
23130 test -z "$as_dir" && as_dir=.
23131 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23132done
23133
23134 ;;
23135 esac
23136 # We did not find ourselves, most probably we were run as `sh COMMAND'
23137 # in which case we are not to be found in the path.
23138 if test "x$as_myself" = x; then
23139 as_myself=$0
23140 fi
23141 if test ! -f "$as_myself"; then
23142 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23143echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23144 { (exit 1); exit 1; }; }
23145 fi
23146 case $CONFIG_SHELL in
23147 '')
23148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23149for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23150do
23151 IFS=$as_save_IFS
23152 test -z "$as_dir" && as_dir=.
23153 for as_base in sh bash ksh sh5; do
23154 case $as_dir in
23155 /*)
23156 if ("$as_dir/$as_base" -c '
23157 as_lineno_1=$LINENO
23158 as_lineno_2=$LINENO
23159 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23160 test "x$as_lineno_1" != "x$as_lineno_2" &&
23161 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023162 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23163 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023164 CONFIG_SHELL=$as_dir/$as_base
23165 export CONFIG_SHELL
23166 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23167 fi;;
23168 esac
23169 done
23170done
23171;;
23172 esac
23173
23174 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23175 # uniformly replaced by the line number. The first 'sed' inserts a
23176 # line-number line before each line; the second 'sed' does the real
23177 # work. The second script uses 'N' to pair each line-number line
23178 # with the numbered line, and appends trailing '-' during
23179 # substitution so that $LINENO is not a special case at line end.
23180 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23181 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23182 sed '=' <$as_myself |
23183 sed '
23184 N
23185 s,$,-,
23186 : loop
23187 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23188 t loop
23189 s,-$,,
23190 s,^['$as_cr_digits']*\n,,
23191 ' >$as_me.lineno &&
23192 chmod +x $as_me.lineno ||
23193 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23194echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23195 { (exit 1); exit 1; }; }
23196
23197 # Don't try to exec as it changes $[0], causing all sort of problems
23198 # (the dirname of $[0] is not the place where we might find the
23199 # original and so on. Autoconf is especially sensible to this).
23200 . ./$as_me.lineno
23201 # Exit status is that of the last command.
23202 exit
23203}
23204
23205
23206case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23207 *c*,-n*) ECHO_N= ECHO_C='
23208' ECHO_T=' ' ;;
23209 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23210 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23211esac
23212
23213if expr a : '\(a\)' >/dev/null 2>&1; then
23214 as_expr=expr
23215else
23216 as_expr=false
23217fi
23218
23219rm -f conf$$ conf$$.exe conf$$.file
23220echo >conf$$.file
23221if ln -s conf$$.file conf$$ 2>/dev/null; then
23222 # We could just check for DJGPP; but this test a) works b) is more generic
23223 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23224 if test -f conf$$.exe; then
23225 # Don't use ln at all; we don't have any links
23226 as_ln_s='cp -p'
23227 else
23228 as_ln_s='ln -s'
23229 fi
23230elif ln conf$$.file conf$$ 2>/dev/null; then
23231 as_ln_s=ln
23232else
23233 as_ln_s='cp -p'
23234fi
23235rm -f conf$$ conf$$.exe conf$$.file
23236
John Criswell0c38eaf2003-09-10 15:17:25 +000023237if mkdir -p . 2>/dev/null; then
23238 as_mkdir_p=:
23239else
23240 as_mkdir_p=false
23241fi
23242
John Criswell7a73b802003-06-30 21:59:07 +000023243as_executable_p="test -f"
23244
23245# Sed expression to map a string onto a valid CPP name.
23246as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23247
23248# Sed expression to map a string onto a valid variable name.
23249as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23250
23251
23252# IFS
23253# We need space, tab and new line, in precisely that order.
23254as_nl='
23255'
23256IFS=" $as_nl"
23257
23258# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023259$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023260
23261exec 6>&1
23262
23263# Open the log real soon, to keep \$[0] and so on meaningful, and to
23264# report actual input values of CONFIG_FILES etc. instead of their
23265# values after options handling. Logging --version etc. is OK.
23266exec 5>>config.log
23267{
23268 echo
23269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23270## Running $as_me. ##
23271_ASBOX
23272} >&5
23273cat >&5 <<_CSEOF
23274
23275This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023276generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023277
23278 CONFIG_FILES = $CONFIG_FILES
23279 CONFIG_HEADERS = $CONFIG_HEADERS
23280 CONFIG_LINKS = $CONFIG_LINKS
23281 CONFIG_COMMANDS = $CONFIG_COMMANDS
23282 $ $0 $@
23283
23284_CSEOF
23285echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23286echo >&5
23287_ACEOF
23288
23289# Files that config.status was made for.
23290if test -n "$ac_config_files"; then
23291 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23292fi
23293
23294if test -n "$ac_config_headers"; then
23295 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23296fi
23297
23298if test -n "$ac_config_links"; then
23299 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23300fi
23301
23302if test -n "$ac_config_commands"; then
23303 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23304fi
23305
23306cat >>$CONFIG_STATUS <<\_ACEOF
23307
23308ac_cs_usage="\
23309\`$as_me' instantiates files from templates according to the
23310current configuration.
23311
23312Usage: $0 [OPTIONS] [FILE]...
23313
23314 -h, --help print this help, then exit
23315 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023316 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023317 -d, --debug don't remove temporary files
23318 --recheck update $as_me by reconfiguring in the same conditions
23319 --file=FILE[:TEMPLATE]
23320 instantiate the configuration file FILE
23321 --header=FILE[:TEMPLATE]
23322 instantiate the configuration header FILE
23323
23324Configuration files:
23325$config_files
23326
23327Configuration headers:
23328$config_headers
23329
John Criswellc764fbc2003-09-06 15:17:13 +000023330Configuration commands:
23331$config_commands
23332
John Criswell7a73b802003-06-30 21:59:07 +000023333Report bugs to <bug-autoconf@gnu.org>."
23334_ACEOF
23335
23336cat >>$CONFIG_STATUS <<_ACEOF
23337ac_cs_version="\\
23338[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023339configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023340 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23341
23342Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23343Free Software Foundation, Inc.
23344This config.status script is free software; the Free Software Foundation
23345gives unlimited permission to copy, distribute and modify it."
23346srcdir=$srcdir
23347INSTALL="$INSTALL"
23348_ACEOF
23349
23350cat >>$CONFIG_STATUS <<\_ACEOF
23351# If no file are specified by the user, then we need to provide default
23352# value. By we need to know if files were specified by the user.
23353ac_need_defaults=:
23354while test $# != 0
23355do
23356 case $1 in
23357 --*=*)
23358 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23359 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023360 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023361 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023362 -*)
23363 ac_option=$1
23364 ac_optarg=$2
23365 ac_shift=shift
23366 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023367 *) # This is not an option, so the user has probably given explicit
23368 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023369 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023370 ac_need_defaults=false;;
23371 esac
23372
John Criswell0c38eaf2003-09-10 15:17:25 +000023373 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023374 # Handling of the options.
23375_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023376cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023377 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23378 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023379 --version | --vers* | -V )
23380 echo "$ac_cs_version"; exit 0 ;;
23381 --he | --h)
23382 # Conflict between --help and --header
23383 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23384Try \`$0 --help' for more information." >&5
23385echo "$as_me: error: ambiguous option: $1
23386Try \`$0 --help' for more information." >&2;}
23387 { (exit 1); exit 1; }; };;
23388 --help | --hel | -h )
23389 echo "$ac_cs_usage"; exit 0 ;;
23390 --debug | --d* | -d )
23391 debug=: ;;
23392 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023393 $ac_shift
23394 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023395 ac_need_defaults=false;;
23396 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023397 $ac_shift
23398 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023399 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23401 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23402 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023403
23404 # This is an error.
23405 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23406Try \`$0 --help' for more information." >&5
23407echo "$as_me: error: unrecognized option: $1
23408Try \`$0 --help' for more information." >&2;}
23409 { (exit 1); exit 1; }; } ;;
23410
23411 *) ac_config_targets="$ac_config_targets $1" ;;
23412
23413 esac
23414 shift
23415done
23416
John Criswell0c38eaf2003-09-10 15:17:25 +000023417ac_configure_extra_args=
23418
23419if $ac_cs_silent; then
23420 exec 6>/dev/null
23421 ac_configure_extra_args="$ac_configure_extra_args --silent"
23422fi
23423
23424_ACEOF
23425cat >>$CONFIG_STATUS <<_ACEOF
23426if \$ac_cs_recheck; then
23427 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23428 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23429fi
23430
John Criswell7a73b802003-06-30 21:59:07 +000023431_ACEOF
23432
John Criswellc764fbc2003-09-06 15:17:13 +000023433cat >>$CONFIG_STATUS <<_ACEOF
23434#
23435# INIT-COMMANDS section.
23436#
John Criswell7a73b802003-06-30 21:59:07 +000023437
John Criswellc764fbc2003-09-06 15:17:13 +000023438${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23440${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23441${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023455${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023460${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023461${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23466${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23468${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23471${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23474${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23475${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023476${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023477${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23480${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023481${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023482${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023483${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023485${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23486${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
John Criswell759c3ed2003-10-28 19:21:11 +000023487${srcdir}/autoconf/mkinstalldirs `dirname runtime/libprofile/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023488${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023490${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023511${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
John Criswell5ab73462003-10-09 15:44:28 +000023512${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023513${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23514${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23515${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23516${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23517${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23518${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23519${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23520${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23521${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23522${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
John Criswell987e49c2003-10-10 01:11:54 +000023523${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23524${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023525${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23526${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23527${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23528${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23529${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23530${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023532${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23533${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023534${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23535${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023536${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23537${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23538${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23539${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23540${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23541${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23542${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23543${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23544${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23545${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23546${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23547${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23548${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23549${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23550${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23551${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23552${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23553${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23554${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23555${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23556${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23557${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23558${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23559${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023560${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023561${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23562${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23563${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23564${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23565${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23566${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023567${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023568${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023569${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23570${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023571${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23572${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23573${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23574${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23575${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23576${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023577${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023578${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023579${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023580${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023581${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23582${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023583${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023584${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23585${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023586${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023587${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23588${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23589${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023590${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023591${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023592${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023593${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023594${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023595${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023596${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000023597${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-nm/Makefile`
John Criswell759c3ed2003-10-28 19:21:11 +000023598${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-prof/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023599${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023600${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23601${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23602${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23603${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023604${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023605${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23606${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23607${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23608${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23609
23610_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023611
23612
23613
23614cat >>$CONFIG_STATUS <<\_ACEOF
23615for ac_config_target in $ac_config_targets
23616do
23617 case "$ac_config_target" in
23618 # Handling of arguments.
23619 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023620 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23621 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23622 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23623 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23624 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23625 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23626 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23627 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23628 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23629 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23630 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23631 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23632 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23633 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23634 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23635 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23636 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023637 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23638 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23639 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23640 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23641 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023642 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023643 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23644 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23645 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23646 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23647 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23648 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23649 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23650 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23651 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23652 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23653 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23654 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23655 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23656 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23657 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023658 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023659 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23660 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23661 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23662 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023663 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023664 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023665 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23666 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023667 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23668 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
John Criswell759c3ed2003-10-28 19:21:11 +000023669 "runtime/libprofile/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libprofile/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023670 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23671 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023672 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23673 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023674 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23675 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23676 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23677 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23678 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23679 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23680 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23681 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23682 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23683 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23684 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23685 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23686 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23687 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23688 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23689 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23690 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23691 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023692 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023693 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
John Criswell5ab73462003-10-09 15:44:28 +000023694 "test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023695 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23696 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23697 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23698 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23699 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23700 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23701 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23702 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23703 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23704 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
John Criswell987e49c2003-10-10 01:11:54 +000023705 "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
23706 "test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023707 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23708 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23709 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23710 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23711 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23712 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23713 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023714 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23715 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023716 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23717 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023718 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23719 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23720 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23721 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23722 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23723 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23724 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23725 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23726 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23727 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23728 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23729 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23730 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23731 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23732 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23733 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23734 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23735 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23736 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23737 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23738 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23739 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23740 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23741 "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023742 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023743 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23744 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23745 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23746 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23747 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23748 "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023749 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023750 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023751 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23752 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023753 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23754 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23755 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23756 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23757 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23758 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023759 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023760 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023761 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023762 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023763 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23764 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000023765 "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023766 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23767 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023768 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023769 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23770 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23771 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023772 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023773 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023774 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023775 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023776 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023777 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023778 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000023779 "tools/llvm-nm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-nm/Makefile" ;;
John Criswell759c3ed2003-10-28 19:21:11 +000023780 "tools/llvm-prof/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-prof/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023781 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023782 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23783 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23784 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23785 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023786 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023787 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23788 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23789 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23790 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023791 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23792 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23793echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23794 { (exit 1); exit 1; }; };;
23795 esac
23796done
23797
23798# If the user did not use the arguments to specify the items to instantiate,
23799# then the envvar interface is used. Set only those that are not.
23800# We use the long form for the default assignment because of an extremely
23801# bizarre bug on SunOS 4.1.3.
23802if $ac_need_defaults; then
23803 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23804 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023805 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023806fi
23807
John Criswell0c38eaf2003-09-10 15:17:25 +000023808# Have a temporary directory for convenience. Make it in the build tree
23809# simply because there is no reason to put it here, and in addition,
23810# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023811# Create a temporary directory, and hook for its removal unless debugging.
23812$debug ||
23813{
23814 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23815 trap '{ (exit 1); exit 1; }' 1 2 13 15
23816}
23817
23818# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023819
John Criswell7a73b802003-06-30 21:59:07 +000023820{
John Criswell0c38eaf2003-09-10 15:17:25 +000023821 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023822 test -n "$tmp" && test -d "$tmp"
23823} ||
23824{
John Criswell0c38eaf2003-09-10 15:17:25 +000023825 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023826 (umask 077 && mkdir $tmp)
23827} ||
23828{
John Criswell0c38eaf2003-09-10 15:17:25 +000023829 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023830 { (exit 1); exit 1; }
23831}
23832
23833_ACEOF
23834
23835cat >>$CONFIG_STATUS <<_ACEOF
23836
23837#
23838# CONFIG_FILES section.
23839#
23840
23841# No need to generate the scripts if there are no CONFIG_FILES.
23842# This happens for instance when ./config.status config.h
23843if test -n "\$CONFIG_FILES"; then
23844 # Protect against being on the right side of a sed subst in config.status.
23845 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23846 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23847s,@SHELL@,$SHELL,;t t
23848s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23849s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23850s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23851s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23852s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23853s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23854s,@exec_prefix@,$exec_prefix,;t t
23855s,@prefix@,$prefix,;t t
23856s,@program_transform_name@,$program_transform_name,;t t
23857s,@bindir@,$bindir,;t t
23858s,@sbindir@,$sbindir,;t t
23859s,@libexecdir@,$libexecdir,;t t
23860s,@datadir@,$datadir,;t t
23861s,@sysconfdir@,$sysconfdir,;t t
23862s,@sharedstatedir@,$sharedstatedir,;t t
23863s,@localstatedir@,$localstatedir,;t t
23864s,@libdir@,$libdir,;t t
23865s,@includedir@,$includedir,;t t
23866s,@oldincludedir@,$oldincludedir,;t t
23867s,@infodir@,$infodir,;t t
23868s,@mandir@,$mandir,;t t
23869s,@build_alias@,$build_alias,;t t
23870s,@host_alias@,$host_alias,;t t
23871s,@target_alias@,$target_alias,;t t
23872s,@DEFS@,$DEFS,;t t
23873s,@ECHO_C@,$ECHO_C,;t t
23874s,@ECHO_N@,$ECHO_N,;t t
23875s,@ECHO_T@,$ECHO_T,;t t
23876s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023877s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023878s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23879s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23880s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23881s,@build@,$build,;t t
23882s,@build_cpu@,$build_cpu,;t t
23883s,@build_vendor@,$build_vendor,;t t
23884s,@build_os@,$build_os,;t t
23885s,@host@,$host,;t t
23886s,@host_cpu@,$host_cpu,;t t
23887s,@host_vendor@,$host_vendor,;t t
23888s,@host_os@,$host_os,;t t
23889s,@target@,$target,;t t
23890s,@target_cpu@,$target_cpu,;t t
23891s,@target_vendor@,$target_vendor,;t t
23892s,@target_os@,$target_os,;t t
23893s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023894s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023895s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023896s,@CXX@,$CXX,;t t
23897s,@CXXFLAGS@,$CXXFLAGS,;t t
23898s,@LDFLAGS@,$LDFLAGS,;t t
23899s,@CPPFLAGS@,$CPPFLAGS,;t t
23900s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23901s,@EXEEXT@,$EXEEXT,;t t
23902s,@OBJEXT@,$OBJEXT,;t t
23903s,@CC@,$CC,;t t
23904s,@CFLAGS@,$CFLAGS,;t t
23905s,@ac_ct_CC@,$ac_ct_CC,;t t
23906s,@CPP@,$CPP,;t t
23907s,@ifGNUmake@,$ifGNUmake,;t t
23908s,@LEX@,$LEX,;t t
23909s,@LEXLIB@,$LEXLIB,;t t
23910s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23911s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023912s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023913s,@LN_S@,$LN_S,;t t
23914s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023915s,@AR@,$AR,;t t
23916s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023917s,@RANLIB@,$RANLIB,;t t
23918s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23919s,@STRIP@,$STRIP,;t t
23920s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023921s,@CXXCPP@,$CXXCPP,;t t
23922s,@F77@,$F77,;t t
23923s,@FFLAGS@,$FFLAGS,;t t
23924s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023925s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023926s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023927s,@SED@,$SED,;t t
23928s,@RM@,$RM,;t t
23929s,@MKDIR@,$MKDIR,;t t
23930s,@DATE@,$DATE,;t t
23931s,@MV@,$MV,;t t
23932s,@DOT@,$DOT,;t t
23933s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000023934s,@PYTHON@,$PYTHON,;t t
23935s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023936s,@ALLOCA@,$ALLOCA,;t t
23937s,@LIBOBJS@,$LIBOBJS,;t t
23938s,@MMAP_FILE@,$MMAP_FILE,;t t
23939s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023940s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000023941s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023942s,@USE_SPEC@,$USE_SPEC,;t t
23943s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023944s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023945s,@JIT@,$JIT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023946s,@BCR@,$BCR,;t t
23947s,@PAPIDIR@,$PAPIDIR,;t t
John Criswellce2141f2003-10-02 19:02:30 +000023948s,@PURIFY@,$PURIFY,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023949s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023950CEOF
23951
23952_ACEOF
23953
23954 cat >>$CONFIG_STATUS <<\_ACEOF
23955 # Split the substitutions into bite-sized pieces for seds with
23956 # small command number limits, like on Digital OSF/1 and HP-UX.
23957 ac_max_sed_lines=48
23958 ac_sed_frag=1 # Number of current file.
23959 ac_beg=1 # First line for current file.
23960 ac_end=$ac_max_sed_lines # Line after last line for current file.
23961 ac_more_lines=:
23962 ac_sed_cmds=
23963 while $ac_more_lines; do
23964 if test $ac_beg -gt 1; then
23965 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23966 else
23967 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23968 fi
23969 if test ! -s $tmp/subs.frag; then
23970 ac_more_lines=false
23971 else
23972 # The purpose of the label and of the branching condition is to
23973 # speed up the sed processing (if there are no `@' at all, there
23974 # is no need to browse any of the substitutions).
23975 # These are the two extra sed commands mentioned above.
23976 (echo ':t
23977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23978 if test -z "$ac_sed_cmds"; then
23979 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23980 else
23981 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23982 fi
23983 ac_sed_frag=`expr $ac_sed_frag + 1`
23984 ac_beg=$ac_end
23985 ac_end=`expr $ac_end + $ac_max_sed_lines`
23986 fi
23987 done
23988 if test -z "$ac_sed_cmds"; then
23989 ac_sed_cmds=cat
23990 fi
23991fi # test -n "$CONFIG_FILES"
23992
23993_ACEOF
23994cat >>$CONFIG_STATUS <<\_ACEOF
23995for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23996 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23997 case $ac_file in
23998 - | *:- | *:-:* ) # input from stdin
23999 cat >$tmp/stdin
24000 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24002 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24004 * ) ac_file_in=$ac_file.in ;;
24005 esac
24006
24007 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24008 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24009$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24010 X"$ac_file" : 'X\(//\)[^/]' \| \
24011 X"$ac_file" : 'X\(//\)$' \| \
24012 X"$ac_file" : 'X\(/\)' \| \
24013 . : '\(.\)' 2>/dev/null ||
24014echo X"$ac_file" |
24015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24016 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24017 /^X\(\/\/\)$/{ s//\1/; q; }
24018 /^X\(\/\).*/{ s//\1/; q; }
24019 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024020 { if $as_mkdir_p; then
24021 mkdir -p "$ac_dir"
24022 else
24023 as_dir="$ac_dir"
24024 as_dirs=
24025 while test ! -d "$as_dir"; do
24026 as_dirs="$as_dir $as_dirs"
24027 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24028$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24029 X"$as_dir" : 'X\(//\)[^/]' \| \
24030 X"$as_dir" : 'X\(//\)$' \| \
24031 X"$as_dir" : 'X\(/\)' \| \
24032 . : '\(.\)' 2>/dev/null ||
24033echo X"$as_dir" |
24034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24036 /^X\(\/\/\)$/{ s//\1/; q; }
24037 /^X\(\/\).*/{ s//\1/; q; }
24038 s/.*/./; q'`
24039 done
24040 test ! -n "$as_dirs" || mkdir $as_dirs
24041 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24042echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24043 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024044
24045 ac_builddir=.
24046
24047if test "$ac_dir" != .; then
24048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24049 # A "../" for each directory in $ac_dir_suffix.
24050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24051else
24052 ac_dir_suffix= ac_top_builddir=
24053fi
24054
24055case $srcdir in
24056 .) # No --srcdir option. We are building in place.
24057 ac_srcdir=.
24058 if test -z "$ac_top_builddir"; then
24059 ac_top_srcdir=.
24060 else
24061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24062 fi ;;
24063 [\\/]* | ?:[\\/]* ) # Absolute path.
24064 ac_srcdir=$srcdir$ac_dir_suffix;
24065 ac_top_srcdir=$srcdir ;;
24066 *) # Relative path.
24067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24069esac
24070# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24071# absolute.
24072ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024073ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024074ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24075ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24076
24077
24078 case $INSTALL in
24079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24080 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24081 esac
24082
24083 if test x"$ac_file" != x-; then
24084 { echo "$as_me:$LINENO: creating $ac_file" >&5
24085echo "$as_me: creating $ac_file" >&6;}
24086 rm -f "$ac_file"
24087 fi
24088 # Let's still pretend it is `configure' which instantiates (i.e., don't
24089 # use $as_me), people would be surprised to read:
24090 # /* config.h. Generated by config.status. */
24091 if test x"$ac_file" = x-; then
24092 configure_input=
24093 else
24094 configure_input="$ac_file. "
24095 fi
24096 configure_input=$configure_input"Generated from `echo $ac_file_in |
24097 sed 's,.*/,,'` by configure."
24098
24099 # First look for the input files in the build tree, otherwise in the
24100 # src tree.
24101 ac_file_inputs=`IFS=:
24102 for f in $ac_file_in; do
24103 case $f in
24104 -) echo $tmp/stdin ;;
24105 [\\/$]*)
24106 # Absolute (can't be DOS-style, as IFS=:)
24107 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24108echo "$as_me: error: cannot find input file: $f" >&2;}
24109 { (exit 1); exit 1; }; }
24110 echo $f;;
24111 *) # Relative
24112 if test -f "$f"; then
24113 # Build tree
24114 echo $f
24115 elif test -f "$srcdir/$f"; then
24116 # Source tree
24117 echo $srcdir/$f
24118 else
24119 # /dev/null tree
24120 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24121echo "$as_me: error: cannot find input file: $f" >&2;}
24122 { (exit 1); exit 1; }; }
24123 fi;;
24124 esac
24125 done` || { (exit 1); exit 1; }
24126_ACEOF
24127cat >>$CONFIG_STATUS <<_ACEOF
24128 sed "$ac_vpsub
24129$extrasub
24130_ACEOF
24131cat >>$CONFIG_STATUS <<\_ACEOF
24132:t
24133/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24134s,@configure_input@,$configure_input,;t t
24135s,@srcdir@,$ac_srcdir,;t t
24136s,@abs_srcdir@,$ac_abs_srcdir,;t t
24137s,@top_srcdir@,$ac_top_srcdir,;t t
24138s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24139s,@builddir@,$ac_builddir,;t t
24140s,@abs_builddir@,$ac_abs_builddir,;t t
24141s,@top_builddir@,$ac_top_builddir,;t t
24142s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24143s,@INSTALL@,$ac_INSTALL,;t t
24144" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24145 rm -f $tmp/stdin
24146 if test x"$ac_file" != x-; then
24147 mv $tmp/out $ac_file
24148 else
24149 cat $tmp/out
24150 rm -f $tmp/out
24151 fi
24152
24153done
24154_ACEOF
24155cat >>$CONFIG_STATUS <<\_ACEOF
24156
24157#
24158# CONFIG_HEADER section.
24159#
24160
24161# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24162# NAME is the cpp macro being defined and VALUE is the value it is being given.
24163#
24164# ac_d sets the value in "#define NAME VALUE" lines.
24165ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24166ac_dB='[ ].*$,\1#\2'
24167ac_dC=' '
24168ac_dD=',;t'
24169# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24170ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24171ac_uB='$,\1#\2define\3'
24172ac_uC=' '
24173ac_uD=',;t'
24174
24175for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24176 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24177 case $ac_file in
24178 - | *:- | *:-:* ) # input from stdin
24179 cat >$tmp/stdin
24180 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24182 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24183 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24184 * ) ac_file_in=$ac_file.in ;;
24185 esac
24186
24187 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24188echo "$as_me: creating $ac_file" >&6;}
24189
24190 # First look for the input files in the build tree, otherwise in the
24191 # src tree.
24192 ac_file_inputs=`IFS=:
24193 for f in $ac_file_in; do
24194 case $f in
24195 -) echo $tmp/stdin ;;
24196 [\\/$]*)
24197 # Absolute (can't be DOS-style, as IFS=:)
24198 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24199echo "$as_me: error: cannot find input file: $f" >&2;}
24200 { (exit 1); exit 1; }; }
24201 echo $f;;
24202 *) # Relative
24203 if test -f "$f"; then
24204 # Build tree
24205 echo $f
24206 elif test -f "$srcdir/$f"; then
24207 # Source tree
24208 echo $srcdir/$f
24209 else
24210 # /dev/null tree
24211 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24212echo "$as_me: error: cannot find input file: $f" >&2;}
24213 { (exit 1); exit 1; }; }
24214 fi;;
24215 esac
24216 done` || { (exit 1); exit 1; }
24217 # Remove the trailing spaces.
24218 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24219
24220_ACEOF
24221
24222# Transform confdefs.h into two sed scripts, `conftest.defines' and
24223# `conftest.undefs', that substitutes the proper values into
24224# config.h.in to produce config.h. The first handles `#define'
24225# templates, and the second `#undef' templates.
24226# And first: Protect against being on the right side of a sed subst in
24227# config.status. Protect against being in an unquoted here document
24228# in config.status.
24229rm -f conftest.defines conftest.undefs
24230# Using a here document instead of a string reduces the quoting nightmare.
24231# Putting comments in sed scripts is not portable.
24232#
24233# `end' is used to avoid that the second main sed command (meant for
24234# 0-ary CPP macros) applies to n-ary macro definitions.
24235# See the Autoconf documentation for `clear'.
24236cat >confdef2sed.sed <<\_ACEOF
24237s/[\\&,]/\\&/g
24238s,[\\$`],\\&,g
24239t clear
24240: clear
24241s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24242t end
24243s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24244: end
24245_ACEOF
24246# If some macros were called several times there might be several times
24247# the same #defines, which is useless. Nevertheless, we may not want to
24248# sort them, since we want the *last* AC-DEFINE to be honored.
24249uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24250sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24251rm -f confdef2sed.sed
24252
24253# This sed command replaces #undef with comments. This is necessary, for
24254# example, in the case of _POSIX_SOURCE, which is predefined and required
24255# on some systems where configure will not decide to define it.
24256cat >>conftest.undefs <<\_ACEOF
24257s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24258_ACEOF
24259
24260# Break up conftest.defines because some shells have a limit on the size
24261# of here documents, and old seds have small limits too (100 cmds).
24262echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024263echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024264echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24265echo ' :' >>$CONFIG_STATUS
24266rm -f conftest.tail
24267while grep . conftest.defines >/dev/null
24268do
24269 # Write a limited-size here document to $tmp/defines.sed.
24270 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24271 # Speed up: don't consider the non `#define' lines.
24272 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24273 # Work around the forget-to-reset-the-flag bug.
24274 echo 't clr' >>$CONFIG_STATUS
24275 echo ': clr' >>$CONFIG_STATUS
24276 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24277 echo 'CEOF
24278 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24279 rm -f $tmp/in
24280 mv $tmp/out $tmp/in
24281' >>$CONFIG_STATUS
24282 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24283 rm -f conftest.defines
24284 mv conftest.tail conftest.defines
24285done
24286rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024287echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024288echo >>$CONFIG_STATUS
24289
24290# Break up conftest.undefs because some shells have a limit on the size
24291# of here documents, and old seds have small limits too (100 cmds).
24292echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24293rm -f conftest.tail
24294while grep . conftest.undefs >/dev/null
24295do
24296 # Write a limited-size here document to $tmp/undefs.sed.
24297 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24298 # Speed up: don't consider the non `#undef'
24299 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24300 # Work around the forget-to-reset-the-flag bug.
24301 echo 't clr' >>$CONFIG_STATUS
24302 echo ': clr' >>$CONFIG_STATUS
24303 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24304 echo 'CEOF
24305 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24306 rm -f $tmp/in
24307 mv $tmp/out $tmp/in
24308' >>$CONFIG_STATUS
24309 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24310 rm -f conftest.undefs
24311 mv conftest.tail conftest.undefs
24312done
24313rm -f conftest.undefs
24314
24315cat >>$CONFIG_STATUS <<\_ACEOF
24316 # Let's still pretend it is `configure' which instantiates (i.e., don't
24317 # use $as_me), people would be surprised to read:
24318 # /* config.h. Generated by config.status. */
24319 if test x"$ac_file" = x-; then
24320 echo "/* Generated by configure. */" >$tmp/config.h
24321 else
24322 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24323 fi
24324 cat $tmp/in >>$tmp/config.h
24325 rm -f $tmp/in
24326 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024327 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024328 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24329echo "$as_me: $ac_file is unchanged" >&6;}
24330 else
24331 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24332$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24333 X"$ac_file" : 'X\(//\)[^/]' \| \
24334 X"$ac_file" : 'X\(//\)$' \| \
24335 X"$ac_file" : 'X\(/\)' \| \
24336 . : '\(.\)' 2>/dev/null ||
24337echo X"$ac_file" |
24338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24339 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24340 /^X\(\/\/\)$/{ s//\1/; q; }
24341 /^X\(\/\).*/{ s//\1/; q; }
24342 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024343 { if $as_mkdir_p; then
24344 mkdir -p "$ac_dir"
24345 else
24346 as_dir="$ac_dir"
24347 as_dirs=
24348 while test ! -d "$as_dir"; do
24349 as_dirs="$as_dir $as_dirs"
24350 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24352 X"$as_dir" : 'X\(//\)[^/]' \| \
24353 X"$as_dir" : 'X\(//\)$' \| \
24354 X"$as_dir" : 'X\(/\)' \| \
24355 . : '\(.\)' 2>/dev/null ||
24356echo X"$as_dir" |
24357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24358 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24359 /^X\(\/\/\)$/{ s//\1/; q; }
24360 /^X\(\/\).*/{ s//\1/; q; }
24361 s/.*/./; q'`
24362 done
24363 test ! -n "$as_dirs" || mkdir $as_dirs
24364 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24365echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24366 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024367
24368 rm -f $ac_file
24369 mv $tmp/config.h $ac_file
24370 fi
24371 else
24372 cat $tmp/config.h
24373 rm -f $tmp/config.h
24374 fi
24375done
24376_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024377cat >>$CONFIG_STATUS <<\_ACEOF
24378
24379#
24380# CONFIG_COMMANDS section.
24381#
24382for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24383 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24384 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24385 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24386$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24387 X"$ac_dest" : 'X\(//\)[^/]' \| \
24388 X"$ac_dest" : 'X\(//\)$' \| \
24389 X"$ac_dest" : 'X\(/\)' \| \
24390 . : '\(.\)' 2>/dev/null ||
24391echo X"$ac_dest" |
24392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24394 /^X\(\/\/\)$/{ s//\1/; q; }
24395 /^X\(\/\).*/{ s//\1/; q; }
24396 s/.*/./; q'`
24397 ac_builddir=.
24398
24399if test "$ac_dir" != .; then
24400 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24401 # A "../" for each directory in $ac_dir_suffix.
24402 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24403else
24404 ac_dir_suffix= ac_top_builddir=
24405fi
24406
24407case $srcdir in
24408 .) # No --srcdir option. We are building in place.
24409 ac_srcdir=.
24410 if test -z "$ac_top_builddir"; then
24411 ac_top_srcdir=.
24412 else
24413 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24414 fi ;;
24415 [\\/]* | ?:[\\/]* ) # Absolute path.
24416 ac_srcdir=$srcdir$ac_dir_suffix;
24417 ac_top_srcdir=$srcdir ;;
24418 *) # Relative path.
24419 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24420 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24421esac
24422# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24423# absolute.
24424ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024425ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024426ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24427ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24428
24429
24430 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24431echo "$as_me: executing $ac_dest commands" >&6;}
24432 case $ac_dest in
24433 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24434 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24435 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24436 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24437 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24438 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24439 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24440 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24441 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24442 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24443 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24444 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24445 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24446 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24447 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24448 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24449 lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024450 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24451 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24452 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24453 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24454 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024455 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024456 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24457 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24458 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24459 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24460 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24461 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24462 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24463 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24464 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24465 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24466 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24467 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24468 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24469 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24470 runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024471 runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024472 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24473 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24474 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24475 runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024476 runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024477 runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024478 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24479 runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024480 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24481 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
John Criswell759c3ed2003-10-28 19:21:11 +000024482 runtime/libprofile/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libprofile/Makefile runtime/libprofile/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024483 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24484 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000024485 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24486 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024487 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24488 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24489 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24490 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24491 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24492 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24493 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24494 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24495 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24496 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24497 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24498 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24499 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24500 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24501 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24502 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24503 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24504 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024505 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 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024506 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 ;;
John Criswell5ab73462003-10-09 15:44:28 +000024507 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 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024508 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 ;;
24509 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 ;;
24510 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 ;;
24511 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 ;;
24512 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 ;;
24513 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 ;;
24514 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 ;;
24515 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 ;;
24516 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 ;;
24517 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 ;;
John Criswell987e49c2003-10-10 01:11:54 +000024518 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 ;;
24519 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 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024520 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 ;;
24521 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 ;;
24522 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 ;;
24523 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 ;;
24524 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24525 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24526 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024527 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24528 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 ;;
John Criswell39e83892003-09-12 16:36:17 +000024529 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 ;;
24530 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 ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024531 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24532 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 ;;
24533 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 ;;
24534 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 ;;
24535 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 ;;
24536 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 ;;
24537 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 ;;
24538 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 ;;
24539 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 ;;
24540 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 ;;
24541 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 ;;
24542 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 ;;
24543 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 ;;
24544 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 ;;
24545 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 ;;
24546 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 ;;
24547 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 ;;
24548 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 ;;
24549 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 ;;
24550 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 ;;
24551 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 ;;
24552 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 ;;
24553 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 ;;
24554 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 ;;
John Criswell39e83892003-09-12 16:36:17 +000024555 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 ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024556 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 ;;
24557 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 ;;
24558 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 ;;
24559 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 ;;
24560 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 ;;
24561 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 ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024562 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 ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024563 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 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024564 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24565 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000024566 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24567 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24568 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 ;;
24569 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 ;;
24570 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 ;;
24571 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 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024572 test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024573 test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
John Criswell0afe8252003-09-11 20:53:48 +000024574 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 ;;
John Criswell67181ca2003-09-26 14:53:17 +000024575 test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
John Criswell68886d42003-09-26 19:51:42 +000024576 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 ;;
24577 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 ;;
John Criswellc66bbd52003-09-29 21:35:32 +000024578 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 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024579 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24580 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024581 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024582 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24583 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24584 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024585 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024586 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024587 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024588 tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024589 tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024590 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024591 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000024592 tools/llvm-nm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-nm/Makefile tools/llvm-nm/Makefile ;;
John Criswell759c3ed2003-10-28 19:21:11 +000024593 tools/llvm-prof/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-prof/Makefile tools/llvm-prof/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024594 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024595 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24596 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24597 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24598 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024599 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024600 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24601 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24602 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24603 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24604 esac
24605done
24606_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024607
24608cat >>$CONFIG_STATUS <<\_ACEOF
24609
24610{ (exit 0); exit 0; }
24611_ACEOF
24612chmod +x $CONFIG_STATUS
24613ac_clean_files=$ac_clean_files_save
24614
24615
24616# configure is writing to config.log, and then calls config.status.
24617# config.status does its own redirection, appending to config.log.
24618# Unfortunately, on DOS this fails, as config.log is still kept open
24619# by configure, so config.status won't be able to write to it; its
24620# output is simply discarded. So we exec the FD to /dev/null,
24621# effectively closing config.log, so it can be properly (re)opened and
24622# appended to by config.status. When coming back to configure, we
24623# need to make the FD available again.
24624if test "$no_create" != yes; then
24625 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024626 ac_config_status_args=
24627 test "$silent" = yes &&
24628 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024629 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024630 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024631 exec 5>>config.log
24632 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24633 # would make configure fail if this is the last instruction.
24634 $ac_cs_success || { (exit 1); exit 1; }
24635fi
24636
John Criswell12399a12003-09-30 15:55:44 +000024637#
24638# CONFIG_SUBDIRS section.
24639#
24640if test "$no_recursion" != yes; then
24641
24642 # Remove --cache-file and --srcdir arguments so they do not pile up.
24643 ac_sub_configure_args=
24644 ac_prev=
24645 for ac_arg in $ac_configure_args; do
24646 if test -n "$ac_prev"; then
24647 ac_prev=
24648 continue
24649 fi
24650 case $ac_arg in
24651 -cache-file | --cache-file | --cache-fil | --cache-fi \
24652 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24653 ac_prev=cache_file ;;
24654 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24655 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24656 | --c=*)
24657 ;;
24658 --config-cache | -C)
24659 ;;
24660 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24661 ac_prev=srcdir ;;
24662 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24663 ;;
24664 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24665 ac_prev=prefix ;;
24666 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24667 ;;
24668 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24669 esac
24670 done
24671
24672 # Always prepend --prefix to ensure using the same prefix
24673 # in subdir configurations.
24674 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24675
24676 ac_popdir=`pwd`
24677 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24678
24679 # Do not complain, so a configure script can configure whichever
24680 # parts of a large source tree are present.
24681 test -d $srcdir/$ac_dir || continue
24682
24683 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24684echo "$as_me: configuring in $ac_dir" >&6;}
24685 { if $as_mkdir_p; then
24686 mkdir -p "$ac_dir"
24687 else
24688 as_dir="$ac_dir"
24689 as_dirs=
24690 while test ! -d "$as_dir"; do
24691 as_dirs="$as_dir $as_dirs"
24692 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24693$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24694 X"$as_dir" : 'X\(//\)[^/]' \| \
24695 X"$as_dir" : 'X\(//\)$' \| \
24696 X"$as_dir" : 'X\(/\)' \| \
24697 . : '\(.\)' 2>/dev/null ||
24698echo X"$as_dir" |
24699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24701 /^X\(\/\/\)$/{ s//\1/; q; }
24702 /^X\(\/\).*/{ s//\1/; q; }
24703 s/.*/./; q'`
24704 done
24705 test ! -n "$as_dirs" || mkdir $as_dirs
24706 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24707echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24708 { (exit 1); exit 1; }; }; }
24709
24710 ac_builddir=.
24711
24712if test "$ac_dir" != .; then
24713 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24714 # A "../" for each directory in $ac_dir_suffix.
24715 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24716else
24717 ac_dir_suffix= ac_top_builddir=
24718fi
24719
24720case $srcdir in
24721 .) # No --srcdir option. We are building in place.
24722 ac_srcdir=.
24723 if test -z "$ac_top_builddir"; then
24724 ac_top_srcdir=.
24725 else
24726 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24727 fi ;;
24728 [\\/]* | ?:[\\/]* ) # Absolute path.
24729 ac_srcdir=$srcdir$ac_dir_suffix;
24730 ac_top_srcdir=$srcdir ;;
24731 *) # Relative path.
24732 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24733 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24734esac
24735# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24736# absolute.
24737ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24738ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24739ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24740ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24741
24742
24743 cd $ac_dir
24744
24745 # Check for guested configure; otherwise get Cygnus style configure.
24746 if test -f $ac_srcdir/configure.gnu; then
24747 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24748 elif test -f $ac_srcdir/configure; then
24749 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24750 elif test -f $ac_srcdir/configure.in; then
24751 ac_sub_configure=$ac_configure
24752 else
24753 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24754echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24755 ac_sub_configure=
24756 fi
24757
24758 # The recursion is here.
24759 if test -n "$ac_sub_configure"; then
24760 # Make the cache file name correct relative to the subdirectory.
24761 case $cache_file in
24762 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24763 *) # Relative path.
24764 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24765 esac
24766
24767 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24768echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24769 # The eval makes quoting arguments work.
24770 eval $ac_sub_configure $ac_sub_configure_args \
24771 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24772 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24773echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24774 { (exit 1); exit 1; }; }
24775 fi
24776
24777 cd $ac_popdir
24778 done
24779fi
24780