blob: 5ba46b484379bcd2aa3c617a0dbd8bee2f2ff4e8 [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
Misha Brukman811ce9f2003-11-12 22:16:51 +00001850 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/Makefile"
1851
1852
1853 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile"
1854
1855
1856 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1857
1858
1859 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1860
1861
1862 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1863
1864
1865 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1866
1867
1868 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1869
1870
1871 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1872
1873
1874 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1875
1876
1877 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1878
1879
1880 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1881
1882
1883 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1884
1885
1886 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1887
1888
1889 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1890
1891
1892 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1893
1894
John Criswell48e3cb92003-09-12 16:31:43 +00001895 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/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/McCat/01-qbsort/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/McCat/03-testtrie/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/McCat/04-bisect/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/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001908
1909
John Criswell48e3cb92003-09-12 16:31:43 +00001910 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001911
1912
John Criswell48e3cb92003-09-12 16:31:43 +00001913 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001914
1915
John Criswell48e3cb92003-09-12 16:31:43 +00001916 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/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/McCat/15-trie/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/McCat/17-bintr/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/McCat/18-imp/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/Olden/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/Olden/bh/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/Olden/bisort/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/Olden/em3d/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/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001941
1942
John Criswell48e3cb92003-09-12 16:31:43 +00001943 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001944
1945
John Criswell48e3cb92003-09-12 16:31:43 +00001946 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001947
1948
John Criswell48e3cb92003-09-12 16:31:43 +00001949 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001950
1951
John Criswell48e3cb92003-09-12 16:31:43 +00001952 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1953
1954
1955 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1956
1957
1958 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001959
1960
John Criswell39e83892003-09-12 16:36:17 +00001961 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001962
1963
John Criswell48e3cb92003-09-12 16:31:43 +00001964 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001965
1966
John Criswell48e3cb92003-09-12 16:31:43 +00001967 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001968
1969
John Criswell48e3cb92003-09-12 16:31:43 +00001970 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001971
1972
John Criswell48e3cb92003-09-12 16:31:43 +00001973 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001974
1975
John Criswell48e3cb92003-09-12 16:31:43 +00001976 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001977
1978
John Criswell48e3cb92003-09-12 16:31:43 +00001979 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001980
1981
John Criswell48e3cb92003-09-12 16:31:43 +00001982 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001983
1984
John Criswell48e3cb92003-09-12 16:31:43 +00001985 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001986
1987
John Criswell0c38eaf2003-09-10 15:17:25 +00001988 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001989
1990
John Criswell0c38eaf2003-09-10 15:17:25 +00001991 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001992
1993
John Criswellffaaf3b2003-09-10 18:38:44 +00001994 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1995
1996
1997 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1998
1999
2000 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
2001
2002
2003 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
2004
2005
2006 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
2007
2008
2009 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
2010
2011
John Criswell0c38eaf2003-09-10 15:17:25 +00002012 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002013
2014
John Criswell0c38eaf2003-09-10 15:17:25 +00002015 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002016
2017
John Criswell0afe8252003-09-11 20:53:48 +00002018 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
2019
2020
John Criswell67181ca2003-09-26 14:53:17 +00002021 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
2022
2023
John Criswell68886d42003-09-26 19:51:42 +00002024 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
2025
2026
2027 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
2028
2029
John Criswellc66bbd52003-09-29 21:35:32 +00002030 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
2031
2032
John Criswell0c38eaf2003-09-10 15:17:25 +00002033 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002034
2035
John Criswell0c38eaf2003-09-10 15:17:25 +00002036 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002037
2038
John Criswell0c38eaf2003-09-10 15:17:25 +00002039 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002040
2041
John Criswell0c38eaf2003-09-10 15:17:25 +00002042 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002043
2044
John Criswell0c38eaf2003-09-10 15:17:25 +00002045 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002046
2047
John Criswell0c38eaf2003-09-10 15:17:25 +00002048 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002049
2050
John Criswell0c38eaf2003-09-10 15:17:25 +00002051 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002052
2053
John Criswell0c38eaf2003-09-10 15:17:25 +00002054 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002055
2056
John Criswellddb7b4e2003-09-16 15:54:19 +00002057 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002058
2059
Chris Lattnerebd70302003-09-13 03:29:53 +00002060 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2061
2062
John Criswellddb7b4e2003-09-16 15:54:19 +00002063 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2064
2065
John Criswell0c38eaf2003-09-10 15:17:25 +00002066 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002067
2068
John Criswellddb7b4e2003-09-16 15:54:19 +00002069 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2070
2071
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00002072 ac_config_commands="$ac_config_commands tools/llvm-nm/Makefile"
2073
2074
John Criswell759c3ed2003-10-28 19:21:11 +00002075 ac_config_commands="$ac_config_commands tools/llvm-prof/Makefile"
2076
2077
John Criswellddb7b4e2003-09-16 15:54:19 +00002078 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2079
2080
Brian Gaekec45be042003-10-07 06:01:34 +00002081 ac_config_commands="$ac_config_commands utils/Makefile"
2082
2083
2084 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2085
2086
2087 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2088
2089
2090 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2091
2092
John Criswell0c38eaf2003-09-10 15:17:25 +00002093 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002094
2095
John Criswell0c38eaf2003-09-10 15:17:25 +00002096 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002097
2098
John Criswell0c38eaf2003-09-10 15:17:25 +00002099 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002100
2101
John Criswell0c38eaf2003-09-10 15:17:25 +00002102 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002103
2104
John Criswell0c38eaf2003-09-10 15:17:25 +00002105 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002106
2107
John Criswell392aaa32003-07-22 19:18:09 +00002108
2109
John Criswell7a73b802003-06-30 21:59:07 +00002110# Find a good install program. We prefer a C program (faster),
2111# so one script is as good as another. But avoid the broken or
2112# incompatible versions:
2113# SysV /etc/install, /usr/sbin/install
2114# SunOS /usr/etc/install
2115# IRIX /sbin/install
2116# AIX /bin/install
2117# AmigaOS /C/install, which installs bootblocks on floppy discs
2118# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2119# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2120# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2121# ./install, which can be erroneously created by make from ./install.sh.
2122echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2123echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2124if test -z "$INSTALL"; then
2125if test "${ac_cv_path_install+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129for as_dir in $PATH
2130do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 # Account for people who put trailing slashes in PATH elements.
2134case $as_dir/ in
2135 ./ | .// | /cC/* | \
2136 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2137 /usr/ucb/* ) ;;
2138 *)
2139 # OSF1 and SCO ODT 3.0 have their own names for install.
2140 # Don't use installbsd from OSF since it installs stuff as root
2141 # by default.
2142 for ac_prog in ginstall scoinst install; do
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2145 if test $ac_prog = install &&
2146 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2147 # AIX install. It has an incompatible calling convention.
2148 :
2149 elif test $ac_prog = install &&
2150 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2151 # program-specific install script used by HP pwplus--don't use.
2152 :
2153 else
2154 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2155 break 3
2156 fi
2157 fi
2158 done
2159 done
2160 ;;
2161esac
2162done
2163
2164
2165fi
2166 if test "${ac_cv_path_install+set}" = set; then
2167 INSTALL=$ac_cv_path_install
2168 else
2169 # As a last resort, use the slow shell script. We don't cache a
2170 # path for INSTALL within a source directory, because that will
2171 # break other packages using the cache if that directory is
2172 # removed, or if the path is relative.
2173 INSTALL=$ac_install_sh
2174 fi
2175fi
2176echo "$as_me:$LINENO: result: $INSTALL" >&5
2177echo "${ECHO_T}$INSTALL" >&6
2178
2179# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2180# It thinks the first close brace ends the variable substitution.
2181test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2182
2183test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2184
2185test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2186
2187
2188# Make sure we can run config.sub.
2189$ac_config_sub sun4 >/dev/null 2>&1 ||
2190 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2191echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2192 { (exit 1); exit 1; }; }
2193
2194echo "$as_me:$LINENO: checking build system type" >&5
2195echo $ECHO_N "checking build system type... $ECHO_C" >&6
2196if test "${ac_cv_build+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
2199 ac_cv_build_alias=$build_alias
2200test -z "$ac_cv_build_alias" &&
2201 ac_cv_build_alias=`$ac_config_guess`
2202test -z "$ac_cv_build_alias" &&
2203 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2204echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2205 { (exit 1); exit 1; }; }
2206ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2207 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2208echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2209 { (exit 1); exit 1; }; }
2210
2211fi
2212echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2213echo "${ECHO_T}$ac_cv_build" >&6
2214build=$ac_cv_build
2215build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2216build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2217build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2218
2219
2220echo "$as_me:$LINENO: checking host system type" >&5
2221echo $ECHO_N "checking host system type... $ECHO_C" >&6
2222if test "${ac_cv_host+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
2225 ac_cv_host_alias=$host_alias
2226test -z "$ac_cv_host_alias" &&
2227 ac_cv_host_alias=$ac_cv_build_alias
2228ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2229 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2230echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2231 { (exit 1); exit 1; }; }
2232
2233fi
2234echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2235echo "${ECHO_T}$ac_cv_host" >&6
2236host=$ac_cv_host
2237host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2238host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2239host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2240
2241
2242echo "$as_me:$LINENO: checking target system type" >&5
2243echo $ECHO_N "checking target system type... $ECHO_C" >&6
2244if test "${ac_cv_target+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246else
2247 ac_cv_target_alias=$target_alias
2248test "x$ac_cv_target_alias" = "x" &&
2249 ac_cv_target_alias=$ac_cv_host_alias
2250ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2251 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2252echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2253 { (exit 1); exit 1; }; }
2254
2255fi
2256echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2257echo "${ECHO_T}$ac_cv_target" >&6
2258target=$ac_cv_target
2259target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2260target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2261target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2262
2263
2264# The aliases save the names the user supplied, while $host etc.
2265# will get canonicalized.
2266test -n "$target_alias" &&
2267 test "$program_prefix$program_suffix$program_transform_name" = \
2268 NONENONEs,x,x, &&
2269 program_prefix=${target_alias}-
2270
2271case $build in
2272 *i*86*) OS=Linux
2273
Brian Gaekef3b24102003-11-16 18:38:14 +00002274 if test -d /home/vadve/lattner/local/x86/llvm-gcc
2275 then
2276 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002277
Brian Gaekef3b24102003-11-16 18:38:14 +00002278 fi
John Criswell7a73b802003-06-30 21:59:07 +00002279 ;;
2280
2281 *sparc*) OS=SunOS
2282
Brian Gaekef3b24102003-11-16 18:38:14 +00002283 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
2284 then
2285 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002286
Brian Gaekef3b24102003-11-16 18:38:14 +00002287 fi
John Criswell7a73b802003-06-30 21:59:07 +00002288 ;;
2289
2290 *) OS=Unknown
2291
2292 ;;
2293esac
2294
2295case $target in
2296 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2297
2298 ;;
2299esac
2300
John Criswell76595452003-07-01 22:07:39 +00002301case $target in
2302 *i*86*) ARCH=x86
2303
2304 ;;
2305 *sparc*solaris*) ARCH=Sparc
2306
2307 ;;
2308esac
2309
John Criswell7a73b802003-06-30 21:59:07 +00002310
2311ac_ext=cc
2312ac_cpp='$CXXCPP $CPPFLAGS'
2313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2316if test -n "$ac_tool_prefix"; then
2317 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2318 do
2319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2320set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2321echo "$as_me:$LINENO: checking for $ac_word" >&5
2322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323if test "${ac_cv_prog_CXX+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325else
2326 if test -n "$CXX"; then
2327 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2328else
2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330for as_dir in $PATH
2331do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2339 fi
2340done
2341done
2342
2343fi
2344fi
2345CXX=$ac_cv_prog_CXX
2346if test -n "$CXX"; then
2347 echo "$as_me:$LINENO: result: $CXX" >&5
2348echo "${ECHO_T}$CXX" >&6
2349else
2350 echo "$as_me:$LINENO: result: no" >&5
2351echo "${ECHO_T}no" >&6
2352fi
2353
2354 test -n "$CXX" && break
2355 done
2356fi
2357if test -z "$CXX"; then
2358 ac_ct_CXX=$CXX
2359 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2360do
2361 # Extract the first word of "$ac_prog", so it can be a program name with args.
2362set dummy $ac_prog; ac_word=$2
2363echo "$as_me:$LINENO: checking for $ac_word" >&5
2364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368 if test -n "$ac_ct_CXX"; then
2369 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2370else
2371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372for as_dir in $PATH
2373do
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 ac_cv_prog_ac_ct_CXX="$ac_prog"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 break 2
2381 fi
2382done
2383done
2384
2385fi
2386fi
2387ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2388if test -n "$ac_ct_CXX"; then
2389 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2390echo "${ECHO_T}$ac_ct_CXX" >&6
2391else
2392 echo "$as_me:$LINENO: result: no" >&5
2393echo "${ECHO_T}no" >&6
2394fi
2395
2396 test -n "$ac_ct_CXX" && break
2397done
2398test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2399
2400 CXX=$ac_ct_CXX
2401fi
2402
2403
2404# Provide some information about the compiler.
2405echo "$as_me:$LINENO:" \
2406 "checking for C++ compiler version" >&5
2407ac_compiler=`set X $ac_compile; echo $2`
2408{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2409 (eval $ac_compiler --version </dev/null >&5) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }
2413{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2414 (eval $ac_compiler -v </dev/null >&5) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }
2418{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2419 (eval $ac_compiler -V </dev/null >&5) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }
2423
2424cat >conftest.$ac_ext <<_ACEOF
2425#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002426/* confdefs.h. */
2427_ACEOF
2428cat confdefs.h >>conftest.$ac_ext
2429cat >>conftest.$ac_ext <<_ACEOF
2430/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002431
John Criswell7a73b802003-06-30 21:59:07 +00002432int
2433main ()
2434{
2435
2436 ;
2437 return 0;
2438}
2439_ACEOF
2440ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002441ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002442# Try to create an executable without -o first, disregard a.out.
2443# It will help us diagnose broken compilers, and finding out an intuition
2444# of exeext.
2445echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2446echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2447ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2448if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2449 (eval $ac_link_default) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; then
2453 # Find the output, starting from the most likely. This scheme is
2454# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2455# resort.
2456
2457# Be careful to initialize this variable, since it used to be cached.
2458# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2459ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002460# b.out is created by i960 compilers.
2461for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2462do
2463 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002464 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2466 ;;
2467 conftest.$ac_ext )
2468 # This is the source file.
2469 ;;
2470 [ab].out )
2471 # We found the default executable, but exeext='' is most
2472 # certainly right.
2473 break;;
2474 *.* )
2475 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2476 # FIXME: I believe we export ac_cv_exeext for Libtool,
2477 # but it would be cool to find out if it's true. Does anybody
2478 # maintain Libtool? --akim.
2479 export ac_cv_exeext
2480 break;;
2481 * )
2482 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002483 esac
2484done
2485else
2486 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002487sed 's/^/| /' conftest.$ac_ext >&5
2488
2489{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2490See \`config.log' for more details." >&5
2491echo "$as_me: error: C++ compiler cannot create executables
2492See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002493 { (exit 77); exit 77; }; }
2494fi
2495
2496ac_exeext=$ac_cv_exeext
2497echo "$as_me:$LINENO: result: $ac_file" >&5
2498echo "${ECHO_T}$ac_file" >&6
2499
2500# Check the compiler produces executables we can run. If not, either
2501# the compiler is broken, or we cross compile.
2502echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2503echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2504# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2505# If not cross compiling, check that we can run a simple program.
2506if test "$cross_compiling" != yes; then
2507 if { ac_try='./$ac_file'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 cross_compiling=no
2514 else
2515 if test "$cross_compiling" = maybe; then
2516 cross_compiling=yes
2517 else
2518 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002519If you meant to cross compile, use \`--host'.
2520See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002521echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002522If you meant to cross compile, use \`--host'.
2523See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002524 { (exit 1); exit 1; }; }
2525 fi
2526 fi
2527fi
2528echo "$as_me:$LINENO: result: yes" >&5
2529echo "${ECHO_T}yes" >&6
2530
John Criswell0c38eaf2003-09-10 15:17:25 +00002531rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002532ac_clean_files=$ac_clean_files_save
2533# Check the compiler produces executables we can run. If not, either
2534# the compiler is broken, or we cross compile.
2535echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2536echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2537echo "$as_me:$LINENO: result: $cross_compiling" >&5
2538echo "${ECHO_T}$cross_compiling" >&6
2539
2540echo "$as_me:$LINENO: checking for suffix of executables" >&5
2541echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2543 (eval $ac_link) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; then
2547 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2548# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2549# work properly (i.e., refer to `conftest.exe'), while it won't with
2550# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002551for ac_file in conftest.exe conftest conftest.*; do
2552 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002553 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002555 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2556 export ac_cv_exeext
2557 break;;
2558 * ) break;;
2559 esac
2560done
2561else
John Criswell0c38eaf2003-09-10 15:17:25 +00002562 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2563See \`config.log' for more details." >&5
2564echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2565See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002566 { (exit 1); exit 1; }; }
2567fi
2568
2569rm -f conftest$ac_cv_exeext
2570echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2571echo "${ECHO_T}$ac_cv_exeext" >&6
2572
2573rm -f conftest.$ac_ext
2574EXEEXT=$ac_cv_exeext
2575ac_exeext=$EXEEXT
2576echo "$as_me:$LINENO: checking for suffix of object files" >&5
2577echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2578if test "${ac_cv_objext+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
2593 ;
2594 return 0;
2595}
2596_ACEOF
2597rm -f conftest.o conftest.obj
2598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; then
2603 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2604 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002606 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2607 break;;
2608 esac
2609done
2610else
2611 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002612sed 's/^/| /' conftest.$ac_ext >&5
2613
2614{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2615See \`config.log' for more details." >&5
2616echo "$as_me: error: cannot compute suffix of object files: cannot compile
2617See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002618 { (exit 1); exit 1; }; }
2619fi
2620
2621rm -f conftest.$ac_cv_objext conftest.$ac_ext
2622fi
2623echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2624echo "${ECHO_T}$ac_cv_objext" >&6
2625OBJEXT=$ac_cv_objext
2626ac_objext=$OBJEXT
2627echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2628echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2629if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631else
2632 cat >conftest.$ac_ext <<_ACEOF
2633#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002634/* confdefs.h. */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
2638/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002639
John Criswell7a73b802003-06-30 21:59:07 +00002640int
2641main ()
2642{
2643#ifndef __GNUC__
2644 choke me
2645#endif
2646
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651rm -f conftest.$ac_objext
2652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 ac_compiler_gnu=yes
2664else
2665 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002666sed 's/^/| /' conftest.$ac_ext >&5
2667
John Criswell7a73b802003-06-30 21:59:07 +00002668ac_compiler_gnu=no
2669fi
2670rm -f conftest.$ac_objext conftest.$ac_ext
2671ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2672
2673fi
2674echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2675echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2676GXX=`test $ac_compiler_gnu = yes && echo yes`
2677ac_test_CXXFLAGS=${CXXFLAGS+set}
2678ac_save_CXXFLAGS=$CXXFLAGS
2679CXXFLAGS="-g"
2680echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2681echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2682if test "${ac_cv_prog_cxx_g+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684else
2685 cat >conftest.$ac_ext <<_ACEOF
2686#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002687/* confdefs.h. */
2688_ACEOF
2689cat confdefs.h >>conftest.$ac_ext
2690cat >>conftest.$ac_ext <<_ACEOF
2691/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002692
John Criswell7a73b802003-06-30 21:59:07 +00002693int
2694main ()
2695{
2696
2697 ;
2698 return 0;
2699}
2700_ACEOF
2701rm -f conftest.$ac_objext
2702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703 (eval $ac_compile) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -s conftest.$ac_objext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 ac_cv_prog_cxx_g=yes
2714else
2715 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002716sed 's/^/| /' conftest.$ac_ext >&5
2717
John Criswell7a73b802003-06-30 21:59:07 +00002718ac_cv_prog_cxx_g=no
2719fi
2720rm -f conftest.$ac_objext conftest.$ac_ext
2721fi
2722echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2723echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2724if test "$ac_test_CXXFLAGS" = set; then
2725 CXXFLAGS=$ac_save_CXXFLAGS
2726elif test $ac_cv_prog_cxx_g = yes; then
2727 if test "$GXX" = yes; then
2728 CXXFLAGS="-g -O2"
2729 else
2730 CXXFLAGS="-g"
2731 fi
2732else
2733 if test "$GXX" = yes; then
2734 CXXFLAGS="-O2"
2735 else
2736 CXXFLAGS=
2737 fi
2738fi
2739for ac_declaration in \
2740 ''\
2741 '#include <stdlib.h>' \
2742 'extern "C" void std::exit (int) throw (); using std::exit;' \
2743 'extern "C" void std::exit (int); using std::exit;' \
2744 'extern "C" void exit (int) throw ();' \
2745 'extern "C" void exit (int);' \
2746 'void exit (int);'
2747do
2748 cat >conftest.$ac_ext <<_ACEOF
2749#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002750/* confdefs.h. */
2751_ACEOF
2752cat confdefs.h >>conftest.$ac_ext
2753cat >>conftest.$ac_ext <<_ACEOF
2754/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002755#include <stdlib.h>
2756$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002757int
2758main ()
2759{
2760exit (42);
2761 ;
2762 return 0;
2763}
2764_ACEOF
2765rm -f conftest.$ac_objext
2766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -s conftest.$ac_objext'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 :
2778else
2779 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002780sed 's/^/| /' conftest.$ac_ext >&5
2781
John Criswell7a73b802003-06-30 21:59:07 +00002782continue
2783fi
2784rm -f conftest.$ac_objext conftest.$ac_ext
2785 cat >conftest.$ac_ext <<_ACEOF
2786#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002787/* confdefs.h. */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
2791/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002792$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002793int
2794main ()
2795{
2796exit (42);
2797 ;
2798 return 0;
2799}
2800_ACEOF
2801rm -f conftest.$ac_objext
2802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2803 (eval $ac_compile) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 { ac_try='test -s conftest.$ac_objext'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 (eval $ac_try) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
2813 break
2814else
2815 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002816sed 's/^/| /' conftest.$ac_ext >&5
2817
John Criswell7a73b802003-06-30 21:59:07 +00002818fi
2819rm -f conftest.$ac_objext conftest.$ac_ext
2820done
2821rm -f conftest*
2822if test -n "$ac_declaration"; then
2823 echo '#ifdef __cplusplus' >>confdefs.h
2824 echo $ac_declaration >>confdefs.h
2825 echo '#endif' >>confdefs.h
2826fi
2827
2828ac_ext=c
2829ac_cpp='$CPP $CPPFLAGS'
2830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833
2834ac_ext=c
2835ac_cpp='$CPP $CPPFLAGS'
2836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839if test -n "$ac_tool_prefix"; then
2840 for ac_prog in gcc
2841 do
2842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2843set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2844echo "$as_me:$LINENO: checking for $ac_word" >&5
2845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846if test "${ac_cv_prog_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848else
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863done
2864done
2865
2866fi
2867fi
2868CC=$ac_cv_prog_CC
2869if test -n "$CC"; then
2870 echo "$as_me:$LINENO: result: $CC" >&5
2871echo "${ECHO_T}$CC" >&6
2872else
2873 echo "$as_me:$LINENO: result: no" >&5
2874echo "${ECHO_T}no" >&6
2875fi
2876
2877 test -n "$CC" && break
2878 done
2879fi
2880if test -z "$CC"; then
2881 ac_ct_CC=$CC
2882 for ac_prog in gcc
2883do
2884 # Extract the first word of "$ac_prog", so it can be a program name with args.
2885set dummy $ac_prog; ac_word=$2
2886echo "$as_me:$LINENO: checking for $ac_word" >&5
2887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890else
2891 if test -n "$ac_ct_CC"; then
2892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_ac_ct_CC="$ac_prog"
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905done
2906done
2907
2908fi
2909fi
2910ac_ct_CC=$ac_cv_prog_ac_ct_CC
2911if test -n "$ac_ct_CC"; then
2912 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2913echo "${ECHO_T}$ac_ct_CC" >&6
2914else
2915 echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6
2917fi
2918
2919 test -n "$ac_ct_CC" && break
2920done
2921
2922 CC=$ac_ct_CC
2923fi
2924
2925
John Criswell0c38eaf2003-09-10 15:17:25 +00002926test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2927See \`config.log' for more details." >&5
2928echo "$as_me: error: no acceptable C compiler found in \$PATH
2929See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002930 { (exit 1); exit 1; }; }
2931
2932# Provide some information about the compiler.
2933echo "$as_me:$LINENO:" \
2934 "checking for C compiler version" >&5
2935ac_compiler=`set X $ac_compile; echo $2`
2936{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2937 (eval $ac_compiler --version </dev/null >&5) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }
2941{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2942 (eval $ac_compiler -v </dev/null >&5) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }
2946{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2947 (eval $ac_compiler -V </dev/null >&5) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }
2951
2952echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2953echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2954if test "${ac_cv_c_compiler_gnu+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956else
2957 cat >conftest.$ac_ext <<_ACEOF
2958#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002959/* confdefs.h. */
2960_ACEOF
2961cat confdefs.h >>conftest.$ac_ext
2962cat >>conftest.$ac_ext <<_ACEOF
2963/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002964
John Criswell7a73b802003-06-30 21:59:07 +00002965int
2966main ()
2967{
2968#ifndef __GNUC__
2969 choke me
2970#endif
2971
2972 ;
2973 return 0;
2974}
2975_ACEOF
2976rm -f conftest.$ac_objext
2977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978 (eval $ac_compile) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -s conftest.$ac_objext'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 (eval $ac_try) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2988 ac_compiler_gnu=yes
2989else
2990 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002991sed 's/^/| /' conftest.$ac_ext >&5
2992
John Criswell7a73b802003-06-30 21:59:07 +00002993ac_compiler_gnu=no
2994fi
2995rm -f conftest.$ac_objext conftest.$ac_ext
2996ac_cv_c_compiler_gnu=$ac_compiler_gnu
2997
2998fi
2999echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3000echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3001GCC=`test $ac_compiler_gnu = yes && echo yes`
3002ac_test_CFLAGS=${CFLAGS+set}
3003ac_save_CFLAGS=$CFLAGS
3004CFLAGS="-g"
3005echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3006echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3007if test "${ac_cv_prog_cc_g+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009else
3010 cat >conftest.$ac_ext <<_ACEOF
3011#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003012/* confdefs.h. */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003017
John Criswell7a73b802003-06-30 21:59:07 +00003018int
3019main ()
3020{
3021
3022 ;
3023 return 0;
3024}
3025_ACEOF
3026rm -f conftest.$ac_objext
3027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028 (eval $ac_compile) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -s conftest.$ac_objext'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 (eval $ac_try) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3038 ac_cv_prog_cc_g=yes
3039else
3040 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003041sed 's/^/| /' conftest.$ac_ext >&5
3042
John Criswell7a73b802003-06-30 21:59:07 +00003043ac_cv_prog_cc_g=no
3044fi
3045rm -f conftest.$ac_objext conftest.$ac_ext
3046fi
3047echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3048echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3049if test "$ac_test_CFLAGS" = set; then
3050 CFLAGS=$ac_save_CFLAGS
3051elif test $ac_cv_prog_cc_g = yes; then
3052 if test "$GCC" = yes; then
3053 CFLAGS="-g -O2"
3054 else
3055 CFLAGS="-g"
3056 fi
3057else
3058 if test "$GCC" = yes; then
3059 CFLAGS="-O2"
3060 else
3061 CFLAGS=
3062 fi
3063fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003064echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3065echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3066if test "${ac_cv_prog_cc_stdc+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068else
3069 ac_cv_prog_cc_stdc=no
3070ac_save_CC=$CC
3071cat >conftest.$ac_ext <<_ACEOF
3072#line $LINENO "configure"
3073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
3078#include <stdarg.h>
3079#include <stdio.h>
3080#include <sys/types.h>
3081#include <sys/stat.h>
3082/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3083struct buf { int x; };
3084FILE * (*rcsopen) (struct buf *, struct stat *, int);
3085static char *e (p, i)
3086 char **p;
3087 int i;
3088{
3089 return p[i];
3090}
3091static char *f (char * (*g) (char **, int), char **p, ...)
3092{
3093 char *s;
3094 va_list v;
3095 va_start (v,p);
3096 s = g (p, va_arg (v,int));
3097 va_end (v);
3098 return s;
3099}
3100int test (int i, double x);
3101struct s1 {int (*f) (int a);};
3102struct s2 {int (*f) (double a);};
3103int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3104int argc;
3105char **argv;
3106int
3107main ()
3108{
3109return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3110 ;
3111 return 0;
3112}
3113_ACEOF
3114# Don't try gcc -ansi; that turns off useful extensions and
3115# breaks some systems' header files.
3116# AIX -qlanglvl=ansi
3117# Ultrix and OSF/1 -std1
3118# HP-UX 10.20 and later -Ae
3119# HP-UX older versions -Aa -D_HPUX_SOURCE
3120# SVR4 -Xc -D__EXTENSIONS__
3121for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3122do
3123 CC="$ac_save_CC $ac_arg"
3124 rm -f conftest.$ac_objext
3125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3126 (eval $ac_compile) 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -s conftest.$ac_objext'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132 (eval $ac_try) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; }; then
3136 ac_cv_prog_cc_stdc=$ac_arg
3137break
3138else
3139 echo "$as_me: failed program was:" >&5
3140sed 's/^/| /' conftest.$ac_ext >&5
3141
3142fi
3143rm -f conftest.$ac_objext
3144done
3145rm -f conftest.$ac_ext conftest.$ac_objext
3146CC=$ac_save_CC
3147
3148fi
3149
3150case "x$ac_cv_prog_cc_stdc" in
3151 x|xno)
3152 echo "$as_me:$LINENO: result: none needed" >&5
3153echo "${ECHO_T}none needed" >&6 ;;
3154 *)
3155 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3156echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3157 CC="$CC $ac_cv_prog_cc_stdc" ;;
3158esac
3159
John Criswell7a73b802003-06-30 21:59:07 +00003160# Some people use a C++ compiler to compile C. Since we use `exit',
3161# in C++ we need to declare it. In case someone uses the same compiler
3162# for both compiling C and C++ we need to have the C++ compiler decide
3163# the declaration of exit, since it's the most demanding environment.
3164cat >conftest.$ac_ext <<_ACEOF
3165#ifndef __cplusplus
3166 choke me
3167#endif
3168_ACEOF
3169rm -f conftest.$ac_objext
3170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 for ac_declaration in \
3182 ''\
3183 '#include <stdlib.h>' \
3184 'extern "C" void std::exit (int) throw (); using std::exit;' \
3185 'extern "C" void std::exit (int); using std::exit;' \
3186 'extern "C" void exit (int) throw ();' \
3187 'extern "C" void exit (int);' \
3188 'void exit (int);'
3189do
3190 cat >conftest.$ac_ext <<_ACEOF
3191#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003192/* confdefs.h. */
3193_ACEOF
3194cat confdefs.h >>conftest.$ac_ext
3195cat >>conftest.$ac_ext <<_ACEOF
3196/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003197#include <stdlib.h>
3198$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003199int
3200main ()
3201{
3202exit (42);
3203 ;
3204 return 0;
3205}
3206_ACEOF
3207rm -f conftest.$ac_objext
3208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209 (eval $ac_compile) 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } &&
3213 { ac_try='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 (eval $ac_try) 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 :
3220else
3221 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003222sed 's/^/| /' conftest.$ac_ext >&5
3223
John Criswell7a73b802003-06-30 21:59:07 +00003224continue
3225fi
3226rm -f conftest.$ac_objext conftest.$ac_ext
3227 cat >conftest.$ac_ext <<_ACEOF
3228#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003229/* confdefs.h. */
3230_ACEOF
3231cat confdefs.h >>conftest.$ac_ext
3232cat >>conftest.$ac_ext <<_ACEOF
3233/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003234$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003235int
3236main ()
3237{
3238exit (42);
3239 ;
3240 return 0;
3241}
3242_ACEOF
3243rm -f conftest.$ac_objext
3244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245 (eval $ac_compile) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 break
3256else
3257 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003258sed 's/^/| /' conftest.$ac_ext >&5
3259
John Criswell7a73b802003-06-30 21:59:07 +00003260fi
3261rm -f conftest.$ac_objext conftest.$ac_ext
3262done
3263rm -f conftest*
3264if test -n "$ac_declaration"; then
3265 echo '#ifdef __cplusplus' >>confdefs.h
3266 echo $ac_declaration >>confdefs.h
3267 echo '#endif' >>confdefs.h
3268fi
3269
3270else
3271 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003272sed 's/^/| /' conftest.$ac_ext >&5
3273
John Criswell7a73b802003-06-30 21:59:07 +00003274fi
3275rm -f conftest.$ac_objext conftest.$ac_ext
3276ac_ext=c
3277ac_cpp='$CPP $CPPFLAGS'
3278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281
3282ac_ext=c
3283ac_cpp='$CPP $CPPFLAGS'
3284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3286ac_compiler_gnu=$ac_cv_c_compiler_gnu
3287echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3288echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3289# On Suns, sometimes $CPP names a directory.
3290if test -n "$CPP" && test -d "$CPP"; then
3291 CPP=
3292fi
3293if test -z "$CPP"; then
3294 if test "${ac_cv_prog_CPP+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
3297 # Double quotes because CPP needs to be expanded
3298 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3299 do
3300 ac_preproc_ok=false
3301for ac_c_preproc_warn_flag in '' yes
3302do
3303 # Use a header file that comes with gcc, so configuring glibc
3304 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3306 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003307 # On the NeXT, cc -E runs the code through the compiler's parser,
3308 # not just through cpp. "Syntax error" is here to catch this case.
3309 cat >conftest.$ac_ext <<_ACEOF
3310#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003311/* confdefs.h. */
3312_ACEOF
3313cat confdefs.h >>conftest.$ac_ext
3314cat >>conftest.$ac_ext <<_ACEOF
3315/* end confdefs.h. */
3316#ifdef __STDC__
3317# include <limits.h>
3318#else
3319# include <assert.h>
3320#endif
John Criswell7a73b802003-06-30 21:59:07 +00003321 Syntax error
3322_ACEOF
3323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3325 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003326 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } >/dev/null; then
3331 if test -s conftest.err; then
3332 ac_cpp_err=$ac_c_preproc_warn_flag
3333 else
3334 ac_cpp_err=
3335 fi
3336else
3337 ac_cpp_err=yes
3338fi
3339if test -z "$ac_cpp_err"; then
3340 :
3341else
3342 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003343sed 's/^/| /' conftest.$ac_ext >&5
3344
John Criswell7a73b802003-06-30 21:59:07 +00003345 # Broken: fails on valid input.
3346continue
3347fi
3348rm -f conftest.err conftest.$ac_ext
3349
3350 # OK, works on sane cases. Now check whether non-existent headers
3351 # can be detected and how.
3352 cat >conftest.$ac_ext <<_ACEOF
3353#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003354/* confdefs.h. */
3355_ACEOF
3356cat confdefs.h >>conftest.$ac_ext
3357cat >>conftest.$ac_ext <<_ACEOF
3358/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003359#include <ac_nonexistent.h>
3360_ACEOF
3361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3363 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003364 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } >/dev/null; then
3369 if test -s conftest.err; then
3370 ac_cpp_err=$ac_c_preproc_warn_flag
3371 else
3372 ac_cpp_err=
3373 fi
3374else
3375 ac_cpp_err=yes
3376fi
3377if test -z "$ac_cpp_err"; then
3378 # Broken: success on invalid input.
3379continue
3380else
3381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003382sed 's/^/| /' conftest.$ac_ext >&5
3383
John Criswell7a73b802003-06-30 21:59:07 +00003384 # Passes both tests.
3385ac_preproc_ok=:
3386break
3387fi
3388rm -f conftest.err conftest.$ac_ext
3389
3390done
3391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3392rm -f conftest.err conftest.$ac_ext
3393if $ac_preproc_ok; then
3394 break
3395fi
3396
3397 done
3398 ac_cv_prog_CPP=$CPP
3399
3400fi
3401 CPP=$ac_cv_prog_CPP
3402else
3403 ac_cv_prog_CPP=$CPP
3404fi
3405echo "$as_me:$LINENO: result: $CPP" >&5
3406echo "${ECHO_T}$CPP" >&6
3407ac_preproc_ok=false
3408for ac_c_preproc_warn_flag in '' yes
3409do
3410 # Use a header file that comes with gcc, so configuring glibc
3411 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003414 # On the NeXT, cc -E runs the code through the compiler's parser,
3415 # not just through cpp. "Syntax error" is here to catch this case.
3416 cat >conftest.$ac_ext <<_ACEOF
3417#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003418/* confdefs.h. */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h. */
3423#ifdef __STDC__
3424# include <limits.h>
3425#else
3426# include <assert.h>
3427#endif
John Criswell7a73b802003-06-30 21:59:07 +00003428 Syntax error
3429_ACEOF
3430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3432 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003433 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } >/dev/null; then
3438 if test -s conftest.err; then
3439 ac_cpp_err=$ac_c_preproc_warn_flag
3440 else
3441 ac_cpp_err=
3442 fi
3443else
3444 ac_cpp_err=yes
3445fi
3446if test -z "$ac_cpp_err"; then
3447 :
3448else
3449 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003450sed 's/^/| /' conftest.$ac_ext >&5
3451
John Criswell7a73b802003-06-30 21:59:07 +00003452 # Broken: fails on valid input.
3453continue
3454fi
3455rm -f conftest.err conftest.$ac_ext
3456
3457 # OK, works on sane cases. Now check whether non-existent headers
3458 # can be detected and how.
3459 cat >conftest.$ac_ext <<_ACEOF
3460#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003466#include <ac_nonexistent.h>
3467_ACEOF
3468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3470 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003471 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003472 rm -f conftest.er1
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } >/dev/null; then
3476 if test -s conftest.err; then
3477 ac_cpp_err=$ac_c_preproc_warn_flag
3478 else
3479 ac_cpp_err=
3480 fi
3481else
3482 ac_cpp_err=yes
3483fi
3484if test -z "$ac_cpp_err"; then
3485 # Broken: success on invalid input.
3486continue
3487else
3488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003489sed 's/^/| /' conftest.$ac_ext >&5
3490
John Criswell7a73b802003-06-30 21:59:07 +00003491 # Passes both tests.
3492ac_preproc_ok=:
3493break
3494fi
3495rm -f conftest.err conftest.$ac_ext
3496
3497done
3498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3499rm -f conftest.err conftest.$ac_ext
3500if $ac_preproc_ok; then
3501 :
3502else
John Criswell0c38eaf2003-09-10 15:17:25 +00003503 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3504See \`config.log' for more details." >&5
3505echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3506See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003507 { (exit 1); exit 1; }; }
3508fi
3509
3510ac_ext=c
3511ac_cpp='$CPP $CPPFLAGS'
3512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515
3516
3517if test "$GCC" != "yes"
3518then
3519 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3520echo "$as_me: error: gcc required but not found" >&2;}
3521 { (exit 1); exit 1; }; }
3522fi
3523
3524if test "$GXX" != "yes"
3525then
3526 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3527echo "$as_me: error: g++ required but not found" >&2;}
3528 { (exit 1); exit 1; }; }
3529fi
3530
John Criswellde00db22003-08-25 16:49:54 +00003531gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3532if test "$gccmajor" -lt "3"
3533then
3534 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3535echo "$as_me: error: gcc 3.x required" >&2;}
3536 { (exit 1); exit 1; }; }
3537fi
3538
John Criswell7a73b802003-06-30 21:59:07 +00003539 echo "$as_me:$LINENO: checking for GNU make" >&5
3540echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3541if test "${_cv_gnu_make_command+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544 _cv_gnu_make_command='' ;
3545 for a in "$MAKE" make gmake gnumake ; do
3546 if test -z "$a" ; then continue ; fi ;
3547 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3548 _cv_gnu_make_command=$a ;
3549 break;
3550 fi
3551 done ;
3552
3553fi
3554echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3555echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3556 if test "x$_cv_gnu_make_command" != "x" ; then
3557 ifGNUmake='' ;
3558 else
3559 ifGNUmake='#' ;
3560 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3561echo "${ECHO_T}\"Not found\"" >&6;
3562 fi
3563
3564
3565if test -z "$_cv_gnu_make_command"
3566then
3567 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3568echo "$as_me: error: GNU Make required but not found" >&2;}
3569 { (exit 1); exit 1; }; }
3570fi
3571
3572
3573echo "$as_me:$LINENO: checking " >&5
3574echo $ECHO_N "checking ... $ECHO_C" >&6
3575if test "${ac_cv_has_flex+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577else
3578 for ac_prog in flex lex
3579do
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581set dummy $ac_prog; ac_word=$2
3582echo "$as_me:$LINENO: checking for $ac_word" >&5
3583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584if test "${ac_cv_prog_LEX+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586else
3587 if test -n "$LEX"; then
3588 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3589else
3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_LEX="$ac_prog"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3600 fi
3601done
3602done
3603
3604fi
3605fi
3606LEX=$ac_cv_prog_LEX
3607if test -n "$LEX"; then
3608 echo "$as_me:$LINENO: result: $LEX" >&5
3609echo "${ECHO_T}$LEX" >&6
3610else
3611 echo "$as_me:$LINENO: result: no" >&5
3612echo "${ECHO_T}no" >&6
3613fi
3614
3615 test -n "$LEX" && break
3616done
3617test -n "$LEX" || LEX=":"
3618
3619if test -z "$LEXLIB"
3620then
3621 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3622echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3623if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626 ac_check_lib_save_LIBS=$LIBS
3627LIBS="-lfl $LIBS"
3628cat >conftest.$ac_ext <<_ACEOF
3629#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003630/* confdefs.h. */
3631_ACEOF
3632cat confdefs.h >>conftest.$ac_ext
3633cat >>conftest.$ac_ext <<_ACEOF
3634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003635
3636/* Override any gcc2 internal prototype to avoid an error. */
3637#ifdef __cplusplus
3638extern "C"
3639#endif
3640/* We use char because int might match the return type of a gcc2
3641 builtin and then its argument prototype would still apply. */
3642char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003643int
3644main ()
3645{
3646yywrap ();
3647 ;
3648 return 0;
3649}
3650_ACEOF
3651rm -f conftest.$ac_objext conftest$ac_exeext
3652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653 (eval $ac_link) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -s conftest$ac_exeext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 ac_cv_lib_fl_yywrap=yes
3664else
3665 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003666sed 's/^/| /' conftest.$ac_ext >&5
3667
John Criswell7a73b802003-06-30 21:59:07 +00003668ac_cv_lib_fl_yywrap=no
3669fi
3670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3671LIBS=$ac_check_lib_save_LIBS
3672fi
3673echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3674echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3675if test $ac_cv_lib_fl_yywrap = yes; then
3676 LEXLIB="-lfl"
3677else
3678 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3679echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3680if test "${ac_cv_lib_l_yywrap+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682else
3683 ac_check_lib_save_LIBS=$LIBS
3684LIBS="-ll $LIBS"
3685cat >conftest.$ac_ext <<_ACEOF
3686#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003687/* confdefs.h. */
3688_ACEOF
3689cat confdefs.h >>conftest.$ac_ext
3690cat >>conftest.$ac_ext <<_ACEOF
3691/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003692
3693/* Override any gcc2 internal prototype to avoid an error. */
3694#ifdef __cplusplus
3695extern "C"
3696#endif
3697/* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3699char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003700int
3701main ()
3702{
3703yywrap ();
3704 ;
3705 return 0;
3706}
3707_ACEOF
3708rm -f conftest.$ac_objext conftest$ac_exeext
3709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710 (eval $ac_link) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -s conftest$ac_exeext'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 ac_cv_lib_l_yywrap=yes
3721else
3722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003723sed 's/^/| /' conftest.$ac_ext >&5
3724
John Criswell7a73b802003-06-30 21:59:07 +00003725ac_cv_lib_l_yywrap=no
3726fi
3727rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3728LIBS=$ac_check_lib_save_LIBS
3729fi
3730echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3731echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3732if test $ac_cv_lib_l_yywrap = yes; then
3733 LEXLIB="-ll"
3734fi
3735
3736fi
3737
3738fi
3739
3740if test "x$LEX" != "x:"; then
3741 echo "$as_me:$LINENO: checking lex output file root" >&5
3742echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3743if test "${ac_cv_prog_lex_root+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745else
3746 # The minimal lex program is just a single line: %%. But some broken lexes
3747# (Solaris, I think it was) want two %% lines, so accommodate them.
3748cat >conftest.l <<_ACEOF
3749%%
3750%%
3751_ACEOF
3752{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3753 (eval $LEX conftest.l) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }
3757if test -f lex.yy.c; then
3758 ac_cv_prog_lex_root=lex.yy
3759elif test -f lexyy.c; then
3760 ac_cv_prog_lex_root=lexyy
3761else
3762 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3763echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3764 { (exit 1); exit 1; }; }
3765fi
3766fi
3767echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3768echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3769rm -f conftest.l
3770LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3771
3772echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3773echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3774if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777 # POSIX says lex can declare yytext either as a pointer or an array; the
3778# default is implementation-dependent. Figure out which it is, since
3779# not all implementations provide the %pointer and %array declarations.
3780ac_cv_prog_lex_yytext_pointer=no
3781echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3782ac_save_LIBS=$LIBS
3783LIBS="$LIBS $LEXLIB"
3784cat >conftest.$ac_ext <<_ACEOF
3785`cat $LEX_OUTPUT_ROOT.c`
3786_ACEOF
3787rm -f conftest.$ac_objext conftest$ac_exeext
3788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3789 (eval $ac_link) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -s conftest$ac_exeext'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 ac_cv_prog_lex_yytext_pointer=yes
3800else
3801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003802sed 's/^/| /' conftest.$ac_ext >&5
3803
John Criswell7a73b802003-06-30 21:59:07 +00003804fi
3805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3806LIBS=$ac_save_LIBS
3807rm -f "${LEX_OUTPUT_ROOT}.c"
3808
3809fi
3810echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3811echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3812if test $ac_cv_prog_lex_yytext_pointer = yes; then
3813
3814cat >>confdefs.h <<\_ACEOF
3815#define YYTEXT_POINTER 1
3816_ACEOF
3817
3818fi
3819
3820fi
3821
3822fi
3823echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3824echo "${ECHO_T}$ac_cv_has_flex" >&6
3825if test "$LEX" != "flex"; then
3826 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3827echo "$as_me: error: flex not found but required" >&2;}
3828 { (exit 1); exit 1; }; }
3829fi
3830
3831echo "$as_me:$LINENO: checking " >&5
3832echo $ECHO_N "checking ... $ECHO_C" >&6
3833if test "${ac_cv_has_bison+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3835else
3836 for ac_prog in 'bison -y' byacc
3837do
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839set dummy $ac_prog; ac_word=$2
3840echo "$as_me:$LINENO: checking for $ac_word" >&5
3841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842if test "${ac_cv_prog_YACC+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3844else
3845 if test -n "$YACC"; then
3846 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3847else
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
3850do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_YACC="$ac_prog"
3856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3858 fi
3859done
3860done
3861
3862fi
3863fi
3864YACC=$ac_cv_prog_YACC
3865if test -n "$YACC"; then
3866 echo "$as_me:$LINENO: result: $YACC" >&5
3867echo "${ECHO_T}$YACC" >&6
3868else
3869 echo "$as_me:$LINENO: result: no" >&5
3870echo "${ECHO_T}no" >&6
3871fi
3872
3873 test -n "$YACC" && break
3874done
3875test -n "$YACC" || YACC="yacc"
3876
3877
3878fi
3879echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3880echo "${ECHO_T}$ac_cv_has_bison" >&6
3881if test "$YACC" != "bison -y"; then
3882 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3883echo "$as_me: error: bison not found but required" >&2;}
3884 { (exit 1); exit 1; }; }
3885else
3886 YACC=bison
3887
3888fi
3889
3890
3891# Check whether --enable-shared or --disable-shared was given.
3892if test "${enable_shared+set}" = set; then
3893 enableval="$enable_shared"
3894 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003895 case $enableval in
3896 yes) enable_shared=yes ;;
3897 no) enable_shared=no ;;
3898 *)
3899 enable_shared=no
3900 # Look at the argument we got. We use all the common list separators.
3901 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3902 for pkg in $enableval; do
3903 IFS="$lt_save_ifs"
3904 if test "X$pkg" = "X$p"; then
3905 enable_shared=yes
3906 fi
3907 done
3908 IFS="$lt_save_ifs"
3909 ;;
3910 esac
John Criswell7a73b802003-06-30 21:59:07 +00003911else
3912 enable_shared=yes
3913fi;
John Criswell47fdd832003-07-14 16:52:07 +00003914
John Criswell7a73b802003-06-30 21:59:07 +00003915# Check whether --enable-static or --disable-static was given.
3916if test "${enable_static+set}" = set; then
3917 enableval="$enable_static"
3918 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003919 case $enableval in
3920 yes) enable_static=yes ;;
3921 no) enable_static=no ;;
3922 *)
3923 enable_static=no
3924 # Look at the argument we got. We use all the common list separators.
3925 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3926 for pkg in $enableval; do
3927 IFS="$lt_save_ifs"
3928 if test "X$pkg" = "X$p"; then
3929 enable_static=yes
3930 fi
3931 done
3932 IFS="$lt_save_ifs"
3933 ;;
3934 esac
John Criswell7a73b802003-06-30 21:59:07 +00003935else
3936 enable_static=yes
3937fi;
John Criswell47fdd832003-07-14 16:52:07 +00003938
John Criswell7a73b802003-06-30 21:59:07 +00003939# Check whether --enable-fast-install or --disable-fast-install was given.
3940if test "${enable_fast_install+set}" = set; then
3941 enableval="$enable_fast_install"
3942 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003943 case $enableval in
3944 yes) enable_fast_install=yes ;;
3945 no) enable_fast_install=no ;;
3946 *)
3947 enable_fast_install=no
3948 # Look at the argument we got. We use all the common list separators.
3949 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3950 for pkg in $enableval; do
3951 IFS="$lt_save_ifs"
3952 if test "X$pkg" = "X$p"; then
3953 enable_fast_install=yes
3954 fi
3955 done
3956 IFS="$lt_save_ifs"
3957 ;;
3958 esac
John Criswell7a73b802003-06-30 21:59:07 +00003959else
3960 enable_fast_install=yes
3961fi;
John Criswell47fdd832003-07-14 16:52:07 +00003962
3963echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3964echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3965if test "${lt_cv_path_SED+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967else
3968 # Loop through the user's path and test for sed and gsed.
3969# Then use that list of sed's as ones to test for truncation.
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH
3972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for lt_ac_prog in sed gsed; do
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3978 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3979 fi
3980 done
3981 done
3982done
3983lt_ac_max=0
3984lt_ac_count=0
3985# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3986# along with /bin/sed that truncates output.
3987for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3988 test ! -f $lt_ac_sed && break
3989 cat /dev/null > conftest.in
3990 lt_ac_count=0
3991 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3992 # Check for GNU sed and select it if it is found.
3993 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3994 lt_cv_path_SED=$lt_ac_sed
3995 break
3996 fi
3997 while true; do
3998 cat conftest.in conftest.in >conftest.tmp
3999 mv conftest.tmp conftest.in
4000 cp conftest.in conftest.nl
4001 echo >>conftest.nl
4002 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4003 cmp -s conftest.out conftest.nl || break
4004 # 10000 chars as input seems more than enough
4005 test $lt_ac_count -gt 10 && break
4006 lt_ac_count=`expr $lt_ac_count + 1`
4007 if test $lt_ac_count -gt $lt_ac_max; then
4008 lt_ac_max=$lt_ac_count
4009 lt_cv_path_SED=$lt_ac_sed
4010 fi
4011 done
4012done
4013SED=$lt_cv_path_SED
4014
John Criswell7a73b802003-06-30 21:59:07 +00004015fi
4016
John Criswell47fdd832003-07-14 16:52:07 +00004017echo "$as_me:$LINENO: result: $SED" >&5
4018echo "${ECHO_T}$SED" >&6
4019
4020echo "$as_me:$LINENO: checking for egrep" >&5
4021echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4022if test "${ac_cv_prog_egrep+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4026 then ac_cv_prog_egrep='grep -E'
4027 else ac_cv_prog_egrep='egrep'
4028 fi
4029fi
4030echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4031echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4032 EGREP=$ac_cv_prog_egrep
4033
4034
John Criswell7a73b802003-06-30 21:59:07 +00004035
4036# Check whether --with-gnu-ld or --without-gnu-ld was given.
4037if test "${with_gnu_ld+set}" = set; then
4038 withval="$with_gnu_ld"
4039 test "$withval" = no || with_gnu_ld=yes
4040else
4041 with_gnu_ld=no
4042fi;
4043ac_prog=ld
4044if test "$GCC" = yes; then
4045 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00004046 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4047echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004048 case $host in
4049 *-*-mingw*)
4050 # gcc leaves a trailing carriage return which upsets mingw
4051 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4052 *)
4053 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4054 esac
4055 case $ac_prog in
4056 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004057 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004058 re_direlt='/[^/][^/]*/\.\./'
4059 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004060 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004061 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004062 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004063 done
4064 test -z "$LD" && LD="$ac_prog"
4065 ;;
4066 "")
4067 # If it fails, then pretend we aren't using GCC.
4068 ac_prog=ld
4069 ;;
4070 *)
4071 # If it is relative, then search for the first ld in PATH.
4072 with_gnu_ld=unknown
4073 ;;
4074 esac
4075elif test "$with_gnu_ld" = yes; then
4076 echo "$as_me:$LINENO: checking for GNU ld" >&5
4077echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4078else
4079 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4080echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4081fi
4082if test "${lt_cv_path_LD+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084else
4085 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004087 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004088 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004089 test -z "$ac_dir" && ac_dir=.
4090 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4091 lt_cv_path_LD="$ac_dir/$ac_prog"
4092 # Check to see if the program is GNU ld. I'd rather use --version,
4093 # but apparently some GNU ld's only accept -v.
4094 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004095 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4096 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004097 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004098 ;;
4099 *)
John Criswell7a73b802003-06-30 21:59:07 +00004100 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004101 ;;
4102 esac
John Criswell7a73b802003-06-30 21:59:07 +00004103 fi
4104 done
John Criswell47fdd832003-07-14 16:52:07 +00004105 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004106else
4107 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4108fi
4109fi
4110
4111LD="$lt_cv_path_LD"
4112if test -n "$LD"; then
4113 echo "$as_me:$LINENO: result: $LD" >&5
4114echo "${ECHO_T}$LD" >&6
4115else
4116 echo "$as_me:$LINENO: result: no" >&5
4117echo "${ECHO_T}no" >&6
4118fi
4119test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4120echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4121 { (exit 1); exit 1; }; }
4122echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4123echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4124if test "${lt_cv_prog_gnu_ld+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126else
4127 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004128case `"$LD" -v 2>&1 </dev/null` in
4129*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004130 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004131 ;;
4132*)
John Criswell7a73b802003-06-30 21:59:07 +00004133 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004134 ;;
4135esac
John Criswell7a73b802003-06-30 21:59:07 +00004136fi
4137echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4138echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4139with_gnu_ld=$lt_cv_prog_gnu_ld
4140
4141
4142echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4143echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4144if test "${lt_cv_ld_reload_flag+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146else
4147 lt_cv_ld_reload_flag='-r'
4148fi
4149echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4150echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4151reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004152case $reload_flag in
4153"" | " "*) ;;
4154*) reload_flag=" $reload_flag" ;;
4155esac
4156reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004157
4158echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4159echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4160if test "${lt_cv_path_NM+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163 if test -n "$NM"; then
4164 # Let the user override the test.
4165 lt_cv_path_NM="$NM"
4166else
John Criswell47fdd832003-07-14 16:52:07 +00004167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004168 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004169 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004170 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004171 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4172 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004173 # Check to see if the nm accepts a BSD-compat flag.
4174 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4175 # nm: unknown option "B" ignored
4176 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004177 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4178 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004179 lt_cv_path_NM="$tmp_nm -B"
4180 break
John Criswell47fdd832003-07-14 16:52:07 +00004181 ;;
4182 *)
4183 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4184 */dev/null*)
4185 lt_cv_path_NM="$tmp_nm -p"
4186 break
4187 ;;
4188 *)
4189 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4190 continue # so that we can try to find one that supports BSD flags
4191 ;;
4192 esac
4193 esac
John Criswell7a73b802003-06-30 21:59:07 +00004194 fi
4195 done
John Criswell47fdd832003-07-14 16:52:07 +00004196 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004197 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4198fi
4199fi
John Criswell47fdd832003-07-14 16:52:07 +00004200echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4201echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004202NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004203
4204echo "$as_me:$LINENO: checking whether ln -s works" >&5
4205echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4206LN_S=$as_ln_s
4207if test "$LN_S" = "ln -s"; then
4208 echo "$as_me:$LINENO: result: yes" >&5
4209echo "${ECHO_T}yes" >&6
4210else
4211 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4212echo "${ECHO_T}no, using $LN_S" >&6
4213fi
4214
John Criswell47fdd832003-07-14 16:52:07 +00004215echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4216echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004217if test "${lt_cv_deplibs_check_method+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219else
4220 lt_cv_file_magic_cmd='$MAGIC_CMD'
4221lt_cv_file_magic_test_file=
4222lt_cv_deplibs_check_method='unknown'
4223# Need to set the preceding variable on all platforms that support
4224# interlibrary dependencies.
4225# 'none' -- dependencies not supported.
4226# `unknown' -- same as none, but documents that we really don't know.
4227# 'pass_all' -- all dependencies passed with no checks.
4228# 'test_compile' -- check by making test program.
4229# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004230# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004231# If you have `file' or equivalent on your system and you're not sure
4232# whether `pass_all' will *always* work, you probably want this one.
4233
4234case $host_os in
4235aix4* | aix5*)
4236 lt_cv_deplibs_check_method=pass_all
4237 ;;
4238
4239beos*)
4240 lt_cv_deplibs_check_method=pass_all
4241 ;;
4242
4243bsdi4*)
4244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4245 lt_cv_file_magic_cmd='/usr/bin/file -L'
4246 lt_cv_file_magic_test_file=/shlib/libc.so
4247 ;;
4248
4249cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004250 # win32_libid is a shell function defined in ltmain.sh
4251 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4252 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004253 ;;
4254
4255darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004256 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004257 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4258 lt_cv_file_magic_cmd='/usr/bin/file -L'
4259 case "$host_os" in
4260 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004261 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004262 ;;
4263 *) # Darwin 1.3 on
4264 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4265 ;;
4266 esac
John Criswell47fdd832003-07-14 16:52:07 +00004267 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004268 ;;
4269
4270freebsd*)
4271 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4272 case $host_cpu in
4273 i*86 )
4274 # Not sure whether the presence of OpenBSD here was a mistake.
4275 # Let's accept both of them until this is cleared up.
4276 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4277 lt_cv_file_magic_cmd=/usr/bin/file
4278 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4279 ;;
4280 esac
4281 else
4282 lt_cv_deplibs_check_method=pass_all
4283 fi
4284 ;;
4285
4286gnu*)
4287 lt_cv_deplibs_check_method=pass_all
4288 ;;
4289
John Criswell47fdd832003-07-14 16:52:07 +00004290hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004291 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004292 case "$host_cpu" in
4293 ia64*)
4294 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4295 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4296 ;;
4297 hppa*64*)
4298 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]'
4299 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4300 ;;
4301 *)
4302 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4303 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4304 ;;
4305 esac
John Criswell7a73b802003-06-30 21:59:07 +00004306 ;;
4307
John Criswell47fdd832003-07-14 16:52:07 +00004308irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004309 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004310 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004311 # this will be overridden with pass_all, but let us keep it just in case
4312 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4313 ;;
4314 *)
4315 case $LD in
4316 *-32|*"-32 ") libmagic=32-bit;;
4317 *-n32|*"-n32 ") libmagic=N32;;
4318 *-64|*"-64 ") libmagic=64-bit;;
4319 *) libmagic=never-match;;
4320 esac
4321 # this will be overridden with pass_all, but let us keep it just in case
4322 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4323 ;;
4324 esac
4325 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4326 lt_cv_deplibs_check_method=pass_all
4327 ;;
4328
4329# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004330linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004331 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004332 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004333 lt_cv_deplibs_check_method=pass_all ;;
4334 *)
4335 # glibc up to 2.1.1 does not perform some relocations on ARM
4336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4337 esac
4338 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4339 ;;
4340
4341netbsd*)
4342 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004344 else
John Criswell47fdd832003-07-14 16:52:07 +00004345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004346 fi
4347 ;;
4348
4349newos6*)
4350 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4351 lt_cv_file_magic_cmd=/usr/bin/file
4352 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4353 ;;
4354
John Criswell47fdd832003-07-14 16:52:07 +00004355nto-qnx)
4356 lt_cv_deplibs_check_method=unknown
4357 ;;
4358
John Criswell7a73b802003-06-30 21:59:07 +00004359openbsd*)
4360 lt_cv_file_magic_cmd=/usr/bin/file
4361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4364 else
4365 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4366 fi
4367 ;;
4368
4369osf3* | osf4* | osf5*)
4370 # this will be overridden with pass_all, but let us keep it just in case
4371 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4372 lt_cv_file_magic_test_file=/shlib/libc.so
4373 lt_cv_deplibs_check_method=pass_all
4374 ;;
4375
4376sco3.2v5*)
4377 lt_cv_deplibs_check_method=pass_all
4378 ;;
4379
4380solaris*)
4381 lt_cv_deplibs_check_method=pass_all
4382 lt_cv_file_magic_test_file=/lib/libc.so
4383 ;;
4384
John Criswell7a73b802003-06-30 21:59:07 +00004385sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4386 case $host_vendor in
4387 motorola)
4388 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]'
4389 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4390 ;;
4391 ncr)
4392 lt_cv_deplibs_check_method=pass_all
4393 ;;
4394 sequent)
4395 lt_cv_file_magic_cmd='/bin/file'
4396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4397 ;;
4398 sni)
4399 lt_cv_file_magic_cmd='/bin/file'
4400 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4401 lt_cv_file_magic_test_file=/lib/libc.so
4402 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004403 siemens)
4404 lt_cv_deplibs_check_method=pass_all
4405 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004406 esac
4407 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004408
4409sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4410 lt_cv_deplibs_check_method=pass_all
4411 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004412esac
4413
4414fi
4415echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4416echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4417file_magic_cmd=$lt_cv_file_magic_cmd
4418deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004419test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004420
4421
4422
4423
John Criswell47fdd832003-07-14 16:52:07 +00004424# If no C compiler was specified, use CC.
4425LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004426
John Criswell47fdd832003-07-14 16:52:07 +00004427# Allow CC to be a program name with arguments.
4428compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004429
John Criswell47fdd832003-07-14 16:52:07 +00004430# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4431if test "${enable_libtool_lock+set}" = set; then
4432 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004433
John Criswell47fdd832003-07-14 16:52:07 +00004434fi;
4435test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004436
John Criswell47fdd832003-07-14 16:52:07 +00004437# Some flags need to be propagated to the compiler or linker for good
4438# libtool support.
4439case $host in
4440ia64-*-hpux*)
4441 # Find out which ABI we are using.
4442 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004448 case `/usr/bin/file conftest.$ac_objext` in
4449 *ELF-32*)
4450 HPUX_IA64_MODE="32"
4451 ;;
4452 *ELF-64*)
4453 HPUX_IA64_MODE="64"
4454 ;;
4455 esac
4456 fi
4457 rm -rf conftest*
4458 ;;
4459*-*-irix6*)
4460 # Find out which ABI we are using.
Brian Gaekef3b24102003-11-16 18:38:14 +00004461 echo '#line 4461 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004466 (exit $ac_status); }; then
4467 if test "$lt_cv_prog_gnu_ld" = yes; then
4468 case `/usr/bin/file conftest.$ac_objext` in
4469 *32-bit*)
4470 LD="${LD-ld} -melf32bsmip"
4471 ;;
4472 *N32*)
4473 LD="${LD-ld} -melf32bmipn32"
4474 ;;
4475 *64-bit*)
4476 LD="${LD-ld} -melf64bmip"
4477 ;;
4478 esac
4479 else
4480 case `/usr/bin/file conftest.$ac_objext` in
4481 *32-bit*)
4482 LD="${LD-ld} -32"
4483 ;;
4484 *N32*)
4485 LD="${LD-ld} -n32"
4486 ;;
4487 *64-bit*)
4488 LD="${LD-ld} -64"
4489 ;;
4490 esac
4491 fi
4492 fi
4493 rm -rf conftest*
4494 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004495
John Criswell47fdd832003-07-14 16:52:07 +00004496x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4497 # Find out which ABI we are using.
4498 echo 'int i;' > conftest.$ac_ext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500 (eval $ac_compile) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; then
4504 case "`/usr/bin/file conftest.o`" in
4505 *32-bit*)
4506 case $host in
4507 x86_64-*linux*)
4508 LD="${LD-ld} -m elf_i386"
4509 ;;
4510 ppc64-*linux*)
4511 LD="${LD-ld} -m elf32ppclinux"
4512 ;;
4513 s390x-*linux*)
4514 LD="${LD-ld} -m elf_s390"
4515 ;;
4516 sparc64-*linux*)
4517 LD="${LD-ld} -m elf32_sparc"
4518 ;;
4519 esac
4520 ;;
4521 *64-bit*)
4522 case $host in
4523 x86_64-*linux*)
4524 LD="${LD-ld} -m elf_x86_64"
4525 ;;
4526 ppc*-*linux*|powerpc*-*linux*)
4527 LD="${LD-ld} -m elf64ppc"
4528 ;;
4529 s390*-*linux*)
4530 LD="${LD-ld} -m elf64_s390"
4531 ;;
4532 sparc*-*linux*)
4533 LD="${LD-ld} -m elf64_sparc"
4534 ;;
4535 esac
4536 ;;
4537 esac
4538 fi
4539 rm -rf conftest*
4540 ;;
4541
4542*-*-sco3.2v5*)
4543 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4544 SAVE_CFLAGS="$CFLAGS"
4545 CFLAGS="$CFLAGS -belf"
4546 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4547echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4548if test "${lt_cv_cc_needs_belf+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550else
4551 ac_ext=c
4552ac_cpp='$CPP $CPPFLAGS'
4553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556
4557 cat >conftest.$ac_ext <<_ACEOF
4558#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004559/* confdefs.h. */
4560_ACEOF
4561cat confdefs.h >>conftest.$ac_ext
4562cat >>conftest.$ac_ext <<_ACEOF
4563/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004564
John Criswell47fdd832003-07-14 16:52:07 +00004565int
4566main ()
John Criswell7a73b802003-06-30 21:59:07 +00004567{
John Criswell7a73b802003-06-30 21:59:07 +00004568
John Criswell47fdd832003-07-14 16:52:07 +00004569 ;
4570 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004571}
John Criswell47fdd832003-07-14 16:52:07 +00004572_ACEOF
4573rm -f conftest.$ac_objext conftest$ac_exeext
4574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004575 (eval $ac_link) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004578 (exit $ac_status); } &&
4579 { ac_try='test -s conftest$ac_exeext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004586else
John Criswell47fdd832003-07-14 16:52:07 +00004587 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004588sed 's/^/| /' conftest.$ac_ext >&5
4589
John Criswell47fdd832003-07-14 16:52:07 +00004590lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004591fi
John Criswell47fdd832003-07-14 16:52:07 +00004592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4593 ac_ext=c
4594ac_cpp='$CPP $CPPFLAGS'
4595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598
John Criswell7a73b802003-06-30 21:59:07 +00004599fi
John Criswell47fdd832003-07-14 16:52:07 +00004600echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4601echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4602 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4603 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4604 CFLAGS="$SAVE_CFLAGS"
4605 fi
4606 ;;
4607
4608esac
4609
4610need_locks="$enable_libtool_lock"
4611
John Criswell7a73b802003-06-30 21:59:07 +00004612
4613
4614echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4615echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4616if test "${ac_cv_header_stdc+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618else
4619 cat >conftest.$ac_ext <<_ACEOF
4620#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004621/* confdefs.h. */
4622_ACEOF
4623cat confdefs.h >>conftest.$ac_ext
4624cat >>conftest.$ac_ext <<_ACEOF
4625/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004626#include <stdlib.h>
4627#include <stdarg.h>
4628#include <string.h>
4629#include <float.h>
4630
John Criswell0c38eaf2003-09-10 15:17:25 +00004631int
4632main ()
4633{
4634
4635 ;
4636 return 0;
4637}
John Criswell7a73b802003-06-30 21:59:07 +00004638_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004639rm -f conftest.$ac_objext
4640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004642 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004644 (exit $ac_status); } &&
4645 { ac_try='test -s conftest.$ac_objext'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004651 ac_cv_header_stdc=yes
4652else
4653 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004654sed 's/^/| /' conftest.$ac_ext >&5
4655
4656ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004657fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004658rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004659
4660if test $ac_cv_header_stdc = yes; then
4661 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4662 cat >conftest.$ac_ext <<_ACEOF
4663#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004664/* confdefs.h. */
4665_ACEOF
4666cat confdefs.h >>conftest.$ac_ext
4667cat >>conftest.$ac_ext <<_ACEOF
4668/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004669#include <string.h>
4670
4671_ACEOF
4672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004673 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004674 :
4675else
4676 ac_cv_header_stdc=no
4677fi
4678rm -f conftest*
4679
4680fi
4681
4682if test $ac_cv_header_stdc = yes; then
4683 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4684 cat >conftest.$ac_ext <<_ACEOF
4685#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004686/* confdefs.h. */
4687_ACEOF
4688cat confdefs.h >>conftest.$ac_ext
4689cat >>conftest.$ac_ext <<_ACEOF
4690/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004691#include <stdlib.h>
4692
4693_ACEOF
4694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004695 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004696 :
4697else
4698 ac_cv_header_stdc=no
4699fi
4700rm -f conftest*
4701
4702fi
4703
4704if test $ac_cv_header_stdc = yes; then
4705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4706 if test "$cross_compiling" = yes; then
4707 :
4708else
4709 cat >conftest.$ac_ext <<_ACEOF
4710#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004711/* confdefs.h. */
4712_ACEOF
4713cat confdefs.h >>conftest.$ac_ext
4714cat >>conftest.$ac_ext <<_ACEOF
4715/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004716#include <ctype.h>
4717#if ((' ' & 0x0FF) == 0x020)
4718# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4719# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4720#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004721# define ISLOWER(c) \
4722 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004723 || ('j' <= (c) && (c) <= 'r') \
4724 || ('s' <= (c) && (c) <= 'z'))
4725# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4726#endif
4727
4728#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4729int
4730main ()
4731{
4732 int i;
4733 for (i = 0; i < 256; i++)
4734 if (XOR (islower (i), ISLOWER (i))
4735 || toupper (i) != TOUPPER (i))
4736 exit(2);
4737 exit (0);
4738}
4739_ACEOF
4740rm -f conftest$ac_exeext
4741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4742 (eval $ac_link) 2>&5
4743 ac_status=$?
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 (eval $ac_try) 2>&5
4748 ac_status=$?
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4751 :
4752else
4753 echo "$as_me: program exited with status $ac_status" >&5
4754echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004755sed 's/^/| /' conftest.$ac_ext >&5
4756
John Criswell7a73b802003-06-30 21:59:07 +00004757( exit $ac_status )
4758ac_cv_header_stdc=no
4759fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004760rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004761fi
4762fi
4763fi
4764echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4765echo "${ECHO_T}$ac_cv_header_stdc" >&6
4766if test $ac_cv_header_stdc = yes; then
4767
4768cat >>confdefs.h <<\_ACEOF
4769#define STDC_HEADERS 1
4770_ACEOF
4771
4772fi
4773
4774# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4785 inttypes.h stdint.h unistd.h
4786do
4787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4788echo "$as_me:$LINENO: checking for $ac_header" >&5
4789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4790if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792else
4793 cat >conftest.$ac_ext <<_ACEOF
4794#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004795/* confdefs.h. */
4796_ACEOF
4797cat confdefs.h >>conftest.$ac_ext
4798cat >>conftest.$ac_ext <<_ACEOF
4799/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004800$ac_includes_default
4801
4802#include <$ac_header>
4803_ACEOF
4804rm -f conftest.$ac_objext
4805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } &&
4810 { ac_try='test -s conftest.$ac_objext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 eval "$as_ac_Header=yes"
4817else
4818 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004819sed 's/^/| /' conftest.$ac_ext >&5
4820
John Criswell7a73b802003-06-30 21:59:07 +00004821eval "$as_ac_Header=no"
4822fi
4823rm -f conftest.$ac_objext conftest.$ac_ext
4824fi
4825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4827if test `eval echo '${'$as_ac_Header'}'` = yes; then
4828 cat >>confdefs.h <<_ACEOF
4829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4830_ACEOF
4831
4832fi
4833
4834done
4835
4836
4837
4838for ac_header in dlfcn.h
4839do
4840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4841if eval "test \"\${$as_ac_Header+set}\" = set"; then
4842 echo "$as_me:$LINENO: checking for $ac_header" >&5
4843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4844if eval "test \"\${$as_ac_Header+set}\" = set"; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846fi
4847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4848echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4849else
4850 # Is the header compilable?
4851echo "$as_me:$LINENO: checking $ac_header usability" >&5
4852echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4853cat >conftest.$ac_ext <<_ACEOF
4854#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004855/* confdefs.h. */
4856_ACEOF
4857cat confdefs.h >>conftest.$ac_ext
4858cat >>conftest.$ac_ext <<_ACEOF
4859/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004860$ac_includes_default
4861#include <$ac_header>
4862_ACEOF
4863rm -f conftest.$ac_objext
4864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4865 (eval $ac_compile) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try='test -s conftest.$ac_objext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 ac_header_compiler=yes
4876else
4877 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004878sed 's/^/| /' conftest.$ac_ext >&5
4879
John Criswell7a73b802003-06-30 21:59:07 +00004880ac_header_compiler=no
4881fi
4882rm -f conftest.$ac_objext conftest.$ac_ext
4883echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4884echo "${ECHO_T}$ac_header_compiler" >&6
4885
4886# Is the header present?
4887echo "$as_me:$LINENO: checking $ac_header presence" >&5
4888echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4889cat >conftest.$ac_ext <<_ACEOF
4890#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004896#include <$ac_header>
4897_ACEOF
4898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4900 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004901 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } >/dev/null; then
4906 if test -s conftest.err; then
4907 ac_cpp_err=$ac_c_preproc_warn_flag
4908 else
4909 ac_cpp_err=
4910 fi
4911else
4912 ac_cpp_err=yes
4913fi
4914if test -z "$ac_cpp_err"; then
4915 ac_header_preproc=yes
4916else
4917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004918sed 's/^/| /' conftest.$ac_ext >&5
4919
John Criswell7a73b802003-06-30 21:59:07 +00004920 ac_header_preproc=no
4921fi
4922rm -f conftest.err conftest.$ac_ext
4923echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4924echo "${ECHO_T}$ac_header_preproc" >&6
4925
4926# So? What about this header?
4927case $ac_header_compiler:$ac_header_preproc in
4928 yes:no )
4929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4930echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004932echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4933 (
4934 cat <<\_ASBOX
4935## ------------------------------------ ##
4936## Report this to bug-autoconf@gnu.org. ##
4937## ------------------------------------ ##
4938_ASBOX
4939 ) |
4940 sed "s/^/$as_me: WARNING: /" >&2
4941 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004942 no:yes )
4943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4944echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4946echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004948echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4949 (
4950 cat <<\_ASBOX
4951## ------------------------------------ ##
4952## Report this to bug-autoconf@gnu.org. ##
4953## ------------------------------------ ##
4954_ASBOX
4955 ) |
4956 sed "s/^/$as_me: WARNING: /" >&2
4957 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004958esac
4959echo "$as_me:$LINENO: checking for $ac_header" >&5
4960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4961if eval "test \"\${$as_ac_Header+set}\" = set"; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963else
4964 eval "$as_ac_Header=$ac_header_preproc"
4965fi
4966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4968
4969fi
4970if test `eval echo '${'$as_ac_Header'}'` = yes; then
4971 cat >>confdefs.h <<_ACEOF
4972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4973_ACEOF
4974
4975fi
4976
4977done
4978
John Criswell47fdd832003-07-14 16:52:07 +00004979ac_ext=cc
4980ac_cpp='$CXXCPP $CPPFLAGS'
4981ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4982ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4983ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4984echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4985echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4986if test -z "$CXXCPP"; then
4987 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
John Criswell47fdd832003-07-14 16:52:07 +00004990 # Double quotes because CXXCPP needs to be expanded
4991 for CXXCPP in "$CXX -E" "/lib/cpp"
4992 do
4993 ac_preproc_ok=false
4994for ac_cxx_preproc_warn_flag in '' yes
4995do
4996 # Use a header file that comes with gcc, so configuring glibc
4997 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4999 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005000 # On the NeXT, cc -E runs the code through the compiler's parser,
5001 # not just through cpp. "Syntax error" is here to catch this case.
5002 cat >conftest.$ac_ext <<_ACEOF
5003#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005004/* confdefs.h. */
5005_ACEOF
5006cat confdefs.h >>conftest.$ac_ext
5007cat >>conftest.$ac_ext <<_ACEOF
5008/* end confdefs.h. */
5009#ifdef __STDC__
5010# include <limits.h>
5011#else
5012# include <assert.h>
5013#endif
John Criswell47fdd832003-07-14 16:52:07 +00005014 Syntax error
5015_ACEOF
5016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5018 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005019 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } >/dev/null; then
5024 if test -s conftest.err; then
5025 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00005026 else
John Criswell47fdd832003-07-14 16:52:07 +00005027 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00005028 fi
John Criswell47fdd832003-07-14 16:52:07 +00005029else
5030 ac_cpp_err=yes
5031fi
5032if test -z "$ac_cpp_err"; then
5033 :
5034else
5035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005036sed 's/^/| /' conftest.$ac_ext >&5
5037
John Criswell47fdd832003-07-14 16:52:07 +00005038 # Broken: fails on valid input.
5039continue
5040fi
5041rm -f conftest.err conftest.$ac_ext
5042
5043 # OK, works on sane cases. Now check whether non-existent headers
5044 # can be detected and how.
5045 cat >conftest.$ac_ext <<_ACEOF
5046#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005047/* confdefs.h. */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005052#include <ac_nonexistent.h>
5053_ACEOF
5054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5056 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005057 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } >/dev/null; then
5062 if test -s conftest.err; then
5063 ac_cpp_err=$ac_cxx_preproc_warn_flag
5064 else
5065 ac_cpp_err=
5066 fi
5067else
5068 ac_cpp_err=yes
5069fi
5070if test -z "$ac_cpp_err"; then
5071 # Broken: success on invalid input.
5072continue
5073else
5074 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005075sed 's/^/| /' conftest.$ac_ext >&5
5076
John Criswell47fdd832003-07-14 16:52:07 +00005077 # Passes both tests.
5078ac_preproc_ok=:
5079break
5080fi
5081rm -f conftest.err conftest.$ac_ext
5082
5083done
5084# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5085rm -f conftest.err conftest.$ac_ext
5086if $ac_preproc_ok; then
5087 break
John Criswell7a73b802003-06-30 21:59:07 +00005088fi
5089
John Criswell47fdd832003-07-14 16:52:07 +00005090 done
5091 ac_cv_prog_CXXCPP=$CXXCPP
5092
5093fi
5094 CXXCPP=$ac_cv_prog_CXXCPP
5095else
5096 ac_cv_prog_CXXCPP=$CXXCPP
5097fi
5098echo "$as_me:$LINENO: result: $CXXCPP" >&5
5099echo "${ECHO_T}$CXXCPP" >&6
5100ac_preproc_ok=false
5101for ac_cxx_preproc_warn_flag in '' yes
5102do
5103 # Use a header file that comes with gcc, so configuring glibc
5104 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005107 # On the NeXT, cc -E runs the code through the compiler's parser,
5108 # not just through cpp. "Syntax error" is here to catch this case.
5109 cat >conftest.$ac_ext <<_ACEOF
5110#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005111/* confdefs.h. */
5112_ACEOF
5113cat confdefs.h >>conftest.$ac_ext
5114cat >>conftest.$ac_ext <<_ACEOF
5115/* end confdefs.h. */
5116#ifdef __STDC__
5117# include <limits.h>
5118#else
5119# include <assert.h>
5120#endif
John Criswell47fdd832003-07-14 16:52:07 +00005121 Syntax error
5122_ACEOF
5123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5125 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005126 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } >/dev/null; then
5131 if test -s conftest.err; then
5132 ac_cpp_err=$ac_cxx_preproc_warn_flag
5133 else
5134 ac_cpp_err=
5135 fi
5136else
5137 ac_cpp_err=yes
5138fi
5139if test -z "$ac_cpp_err"; then
5140 :
5141else
5142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005143sed 's/^/| /' conftest.$ac_ext >&5
5144
John Criswell47fdd832003-07-14 16:52:07 +00005145 # Broken: fails on valid input.
5146continue
5147fi
5148rm -f conftest.err conftest.$ac_ext
5149
5150 # OK, works on sane cases. Now check whether non-existent headers
5151 # can be detected and how.
5152 cat >conftest.$ac_ext <<_ACEOF
5153#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005154/* confdefs.h. */
5155_ACEOF
5156cat confdefs.h >>conftest.$ac_ext
5157cat >>conftest.$ac_ext <<_ACEOF
5158/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005159#include <ac_nonexistent.h>
5160_ACEOF
5161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5163 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005164 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005165 rm -f conftest.er1
5166 cat conftest.err >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } >/dev/null; then
5169 if test -s conftest.err; then
5170 ac_cpp_err=$ac_cxx_preproc_warn_flag
5171 else
5172 ac_cpp_err=
5173 fi
5174else
5175 ac_cpp_err=yes
5176fi
5177if test -z "$ac_cpp_err"; then
5178 # Broken: success on invalid input.
5179continue
5180else
5181 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005182sed 's/^/| /' conftest.$ac_ext >&5
5183
John Criswell47fdd832003-07-14 16:52:07 +00005184 # Passes both tests.
5185ac_preproc_ok=:
5186break
5187fi
5188rm -f conftest.err conftest.$ac_ext
5189
5190done
5191# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5192rm -f conftest.err conftest.$ac_ext
5193if $ac_preproc_ok; then
5194 :
5195else
John Criswell0c38eaf2003-09-10 15:17:25 +00005196 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5197See \`config.log' for more details." >&5
5198echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5199See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005200 { (exit 1); exit 1; }; }
5201fi
5202
5203ac_ext=cc
5204ac_cpp='$CXXCPP $CPPFLAGS'
5205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5208
5209
5210ac_ext=f
5211ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5212ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5214if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005215 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 +00005216 do
5217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5219echo "$as_me:$LINENO: checking for $ac_word" >&5
5220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5221if test "${ac_cv_prog_F77+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223else
5224 if test -n "$F77"; then
5225 ac_cv_prog_F77="$F77" # Let the user override the test.
5226else
5227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228for as_dir in $PATH
5229do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238done
5239done
5240
5241fi
5242fi
5243F77=$ac_cv_prog_F77
5244if test -n "$F77"; then
5245 echo "$as_me:$LINENO: result: $F77" >&5
5246echo "${ECHO_T}$F77" >&6
5247else
5248 echo "$as_me:$LINENO: result: no" >&5
5249echo "${ECHO_T}no" >&6
5250fi
5251
5252 test -n "$F77" && break
5253 done
5254fi
5255if test -z "$F77"; then
5256 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005257 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 +00005258do
5259 # Extract the first word of "$ac_prog", so it can be a program name with args.
5260set dummy $ac_prog; ac_word=$2
5261echo "$as_me:$LINENO: checking for $ac_word" >&5
5262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265else
5266 if test -n "$ac_ct_F77"; then
5267 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5268else
5269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270for as_dir in $PATH
5271do
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276 ac_cv_prog_ac_ct_F77="$ac_prog"
5277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5279 fi
5280done
5281done
5282
5283fi
5284fi
5285ac_ct_F77=$ac_cv_prog_ac_ct_F77
5286if test -n "$ac_ct_F77"; then
5287 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5288echo "${ECHO_T}$ac_ct_F77" >&6
5289else
5290 echo "$as_me:$LINENO: result: no" >&5
5291echo "${ECHO_T}no" >&6
5292fi
5293
5294 test -n "$ac_ct_F77" && break
5295done
5296
5297 F77=$ac_ct_F77
5298fi
5299
5300
5301# Provide some information about the compiler.
Brian Gaekef3b24102003-11-16 18:38:14 +00005302echo "$as_me:5302:" \
John Criswell47fdd832003-07-14 16:52:07 +00005303 "checking for Fortran 77 compiler version" >&5
5304ac_compiler=`set X $ac_compile; echo $2`
5305{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5306 (eval $ac_compiler --version </dev/null >&5) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }
5310{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5311 (eval $ac_compiler -v </dev/null >&5) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }
5315{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5316 (eval $ac_compiler -V </dev/null >&5) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }
5320
5321# If we don't use `.F' as extension, the preprocessor is not run on the
5322# input file.
5323ac_save_ext=$ac_ext
5324ac_ext=F
5325echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5326echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5327if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329else
5330 cat >conftest.$ac_ext <<_ACEOF
5331 program main
5332#ifndef __GNUC__
5333 choke me
5334#endif
5335
5336 end
5337_ACEOF
5338rm -f conftest.$ac_objext
5339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340 (eval $ac_compile) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try='test -s conftest.$ac_objext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 ac_compiler_gnu=yes
5351else
5352 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005353sed 's/^/| /' conftest.$ac_ext >&5
5354
John Criswell47fdd832003-07-14 16:52:07 +00005355ac_compiler_gnu=no
5356fi
5357rm -f conftest.$ac_objext conftest.$ac_ext
5358ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5359
5360fi
5361echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5362echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5363ac_ext=$ac_save_ext
5364G77=`test $ac_compiler_gnu = yes && echo yes`
5365ac_test_FFLAGS=${FFLAGS+set}
5366ac_save_FFLAGS=$FFLAGS
5367FFLAGS=
5368echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5369echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5370if test "${ac_cv_prog_f77_g+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372else
5373 FFLAGS=-g
5374cat >conftest.$ac_ext <<_ACEOF
5375 program main
5376
5377 end
5378_ACEOF
5379rm -f conftest.$ac_objext
5380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381 (eval $ac_compile) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 (eval $ac_try) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 ac_cv_prog_f77_g=yes
5392else
5393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005394sed 's/^/| /' conftest.$ac_ext >&5
5395
John Criswell47fdd832003-07-14 16:52:07 +00005396ac_cv_prog_f77_g=no
5397fi
5398rm -f conftest.$ac_objext conftest.$ac_ext
5399
5400fi
5401echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5402echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5403if test "$ac_test_FFLAGS" = set; then
5404 FFLAGS=$ac_save_FFLAGS
5405elif test $ac_cv_prog_f77_g = yes; then
5406 if test "$G77" = yes; then
5407 FFLAGS="-g -O2"
5408 else
5409 FFLAGS="-g"
5410 fi
5411else
5412 if test "$G77" = yes; then
5413 FFLAGS="-O2"
5414 else
5415 FFLAGS=
5416 fi
5417fi
5418ac_ext=c
5419ac_cpp='$CPP $CPPFLAGS'
5420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422ac_compiler_gnu=$ac_cv_c_compiler_gnu
5423
5424
5425
5426# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5427
5428# find the maximum length of command line arguments
5429echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5430echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5431if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5433else
5434 i=0
5435 testring="ABCD"
5436
5437 case $build_os in
5438 msdosdjgpp*)
5439 # On DJGPP, this test can blow up pretty badly due to problems in libc
5440 # (any single argument exceeding 2000 bytes causes a buffer overrun
5441 # during glob expansion). Even if it were fixed, the result of this
5442 # check would be larger than it should be.
5443 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5444 ;;
5445
5446 gnu*)
5447 # Under GNU Hurd, this test is not required because there is
5448 # no limit to the length of command line arguments.
5449 # Libtool will interpret -1 as no limit whatsoever
5450 lt_cv_sys_max_cmd_len=-1;
5451 ;;
5452
5453 cygwin* | mingw*)
5454 # On Win9x/ME, this test blows up -- it succeeds, but takes
5455 # about 5 minutes as the teststring grows exponentially.
5456 # Worse, since 9x/ME are not pre-emptively multitasking,
5457 # you end up with a "frozen" computer, even though with patience
5458 # the test eventually succeeds (with a max line length of 256k).
5459 # Instead, let's just punt: use the minimum linelength reported by
5460 # all of the supported platforms: 8192 (on NT/2K/XP).
5461 lt_cv_sys_max_cmd_len=8192;
5462 ;;
5463
5464 *)
5465 # If test is not a shell built-in, we'll probably end up computing a
5466 # maximum length that is only half of the actual maximum length, but
5467 # we can't tell.
5468 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5469 = "XX$testring") >/dev/null 2>&1 &&
5470 new_result=`expr "X$testring" : ".*" 2>&1` &&
5471 lt_cv_sys_max_cmd_len=$new_result &&
5472 test $i != 17 # 1/2 MB should be enough
5473 do
5474 i=`expr $i + 1`
5475 testring=$testring$testring
5476 done
5477 testring=
5478 # Add a significant safety factor because C++ compilers can tack on massive
5479 # amounts of additional arguments before passing them to the linker.
5480 # It appears as though 1/2 is a usable value.
5481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5482 ;;
5483 esac
5484
5485fi
5486
5487if test -n $lt_cv_sys_max_cmd_len ; then
5488 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5489echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5490else
5491 echo "$as_me:$LINENO: result: none" >&5
5492echo "${ECHO_T}none" >&6
5493fi
5494
5495
5496
5497
5498# Check for command to grab the raw symbol name followed by C symbol from nm.
5499echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5500echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5501if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504
5505# These are sane defaults that work on at least a few old systems.
5506# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5507
5508# Character class describing NM global symbol codes.
5509symcode='[BCDEGRST]'
5510
5511# Regexp to match symbols that can be accessed directly from C.
5512sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5513
5514# Transform the above into a raw symbol and a C symbol.
5515symxfrm='\1 \2\3 \3'
5516
5517# Transform an extracted symbol line into a proper C declaration
5518lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5519
5520# Transform an extracted symbol line into symbol name and symbol address
5521lt_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'"
5522
5523# Define system-specific variables.
5524case $host_os in
5525aix*)
5526 symcode='[BCDT]'
5527 ;;
5528cygwin* | mingw* | pw32*)
5529 symcode='[ABCDGISTW]'
5530 ;;
5531hpux*) # Its linker distinguishes data from code symbols
5532 if test "$host_cpu" = ia64; then
5533 symcode='[ABCDEGRST]'
5534 fi
5535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5536 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'"
5537 ;;
5538irix* | nonstopux*)
5539 symcode='[BCDEGRST]'
5540 ;;
5541osf*)
5542 symcode='[BCDEGQRST]'
5543 ;;
5544solaris* | sysv5*)
5545 symcode='[BDT]'
5546 ;;
5547sysv4)
5548 symcode='[DFNSTU]'
5549 ;;
5550esac
5551
5552# Handle CRLF in mingw tool chain
5553opt_cr=
5554case $build_os in
5555mingw*)
5556 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5557 ;;
5558esac
5559
5560# If we're using GNU nm, then use its standard symbol codes.
5561case `$NM -V 2>&1` in
5562*GNU* | *'with BFD'*)
5563 symcode='[ABCDGISTW]' ;;
5564esac
5565
5566# Try without a prefix undercore, then with it.
5567for ac_symprfx in "" "_"; do
5568
5569 # Write the raw and C identifiers.
5570 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5571
5572 # Check to see that the pipe works correctly.
5573 pipe_works=no
5574
5575 rm -f conftest*
5576 cat > conftest.$ac_ext <<EOF
5577#ifdef __cplusplus
5578extern "C" {
5579#endif
5580char nm_test_var;
5581void nm_test_func(){}
5582#ifdef __cplusplus
5583}
5584#endif
5585int main(){nm_test_var='a';nm_test_func();return(0);}
5586EOF
5587
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; then
5593 # Now try to grab the symbols.
5594 nlist=conftest.nm
5595 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5596 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && test -s "$nlist"; then
5600 # Try sorting and uniquifying the output.
5601 if sort "$nlist" | uniq > "$nlist"T; then
5602 mv -f "$nlist"T "$nlist"
5603 else
5604 rm -f "$nlist"T
5605 fi
5606
5607 # Make sure that we snagged all the symbols we need.
5608 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5609 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5610 cat <<EOF > conftest.$ac_ext
5611#ifdef __cplusplus
5612extern "C" {
5613#endif
5614
5615EOF
5616 # Now generate the symbol file.
5617 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5618
5619 cat <<EOF >> conftest.$ac_ext
5620#if defined (__STDC__) && __STDC__
5621# define lt_ptr_t void *
5622#else
5623# define lt_ptr_t char *
5624# define const
5625#endif
5626
5627/* The mapping between symbol names and symbols. */
5628const struct {
5629 const char *name;
5630 lt_ptr_t address;
5631}
5632lt_preloaded_symbols[] =
5633{
5634EOF
5635 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5636 cat <<\EOF >> conftest.$ac_ext
5637 {0, (lt_ptr_t) 0}
5638};
5639
5640#ifdef __cplusplus
5641}
5642#endif
5643EOF
5644 # Now try linking the two files.
5645 mv conftest.$ac_objext conftstm.$ac_objext
5646 lt_save_LIBS="$LIBS"
5647 lt_save_CFLAGS="$CFLAGS"
5648 LIBS="conftstm.$ac_objext"
5649 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651 (eval $ac_link) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5655 pipe_works=yes
5656 fi
5657 LIBS="$lt_save_LIBS"
5658 CFLAGS="$lt_save_CFLAGS"
5659 else
5660 echo "cannot find nm_test_func in $nlist" >&5
5661 fi
5662 else
5663 echo "cannot find nm_test_var in $nlist" >&5
5664 fi
5665 else
5666 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5667 fi
5668 else
5669 echo "$progname: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5671 fi
5672 rm -f conftest* conftst*
5673
5674 # Do not use the global_symbol_pipe unless it works.
5675 if test "$pipe_works" = yes; then
5676 break
5677 else
5678 lt_cv_sys_global_symbol_pipe=
5679 fi
5680done
5681
5682fi
5683
5684if test -z "$lt_cv_sys_global_symbol_pipe"; then
5685 lt_cv_sys_global_symbol_to_cdecl=
5686fi
5687if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5688 echo "$as_me:$LINENO: result: failed" >&5
5689echo "${ECHO_T}failed" >&6
5690else
5691 echo "$as_me:$LINENO: result: ok" >&5
5692echo "${ECHO_T}ok" >&6
5693fi
5694
5695echo "$as_me:$LINENO: checking for objdir" >&5
5696echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5697if test "${lt_cv_objdir+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700 rm -f .libs 2>/dev/null
5701mkdir .libs 2>/dev/null
5702if test -d .libs; then
5703 lt_cv_objdir=.libs
5704else
5705 # MS-DOS does not allow filenames that begin with a dot.
5706 lt_cv_objdir=_libs
5707fi
5708rmdir .libs 2>/dev/null
5709fi
5710echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5711echo "${ECHO_T}$lt_cv_objdir" >&6
5712objdir=$lt_cv_objdir
5713
5714
5715
5716
5717
5718case $host_os in
5719aix3*)
5720 # AIX sometimes has problems with the GCC collect2 program. For some
5721 # reason, if we set the COLLECT_NAMES environment variable, the problems
5722 # vanish in a puff of smoke.
5723 if test "X${COLLECT_NAMES+set}" != Xset; then
5724 COLLECT_NAMES=
5725 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005726 fi
5727 ;;
5728esac
5729
John Criswell47fdd832003-07-14 16:52:07 +00005730# Sed substitution that helps us do robust quoting. It backslashifies
5731# metacharacters that are still active within double-quoted strings.
5732Xsed='sed -e s/^X//'
5733sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5734
5735# Same as above, but do not quote variable references.
5736double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5737
5738# Sed substitution to delay expansion of an escaped shell variable in a
5739# double_quote_subst'ed string.
5740delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5741
5742# Sed substitution to avoid accidental globbing in evaled expressions
5743no_glob_subst='s/\*/\\\*/g'
5744
5745# Constants:
5746rm="rm -f"
5747
5748# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005749default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005750can_build_shared=yes
5751
5752# All known linkers require a `.a' archive for static linking (except M$VC,
5753# which needs '.lib').
5754libext=a
5755ltmain="$ac_aux_dir/ltmain.sh"
5756ofile="$default_ofile"
5757with_gnu_ld="$lt_cv_prog_gnu_ld"
5758
5759if test -n "$ac_tool_prefix"; then
5760 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5761set dummy ${ac_tool_prefix}ar; ac_word=$2
5762echo "$as_me:$LINENO: checking for $ac_word" >&5
5763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5764if test "${ac_cv_prog_AR+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767 if test -n "$AR"; then
5768 ac_cv_prog_AR="$AR" # Let the user override the test.
5769else
5770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771for as_dir in $PATH
5772do
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_AR="${ac_tool_prefix}ar"
5778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 break 2
5780 fi
5781done
5782done
5783
5784fi
5785fi
5786AR=$ac_cv_prog_AR
5787if test -n "$AR"; then
5788 echo "$as_me:$LINENO: result: $AR" >&5
5789echo "${ECHO_T}$AR" >&6
5790else
5791 echo "$as_me:$LINENO: result: no" >&5
5792echo "${ECHO_T}no" >&6
5793fi
5794
5795fi
5796if test -z "$ac_cv_prog_AR"; then
5797 ac_ct_AR=$AR
5798 # Extract the first word of "ar", so it can be a program name with args.
5799set dummy ar; ac_word=$2
5800echo "$as_me:$LINENO: checking for $ac_word" >&5
5801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5802if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804else
5805 if test -n "$ac_ct_AR"; then
5806 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5807else
5808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809for as_dir in $PATH
5810do
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815 ac_cv_prog_ac_ct_AR="ar"
5816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 break 2
5818 fi
5819done
5820done
5821
5822 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5823fi
5824fi
5825ac_ct_AR=$ac_cv_prog_ac_ct_AR
5826if test -n "$ac_ct_AR"; then
5827 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5828echo "${ECHO_T}$ac_ct_AR" >&6
5829else
5830 echo "$as_me:$LINENO: result: no" >&5
5831echo "${ECHO_T}no" >&6
5832fi
5833
5834 AR=$ac_ct_AR
5835else
5836 AR="$ac_cv_prog_AR"
5837fi
5838
John Criswell7a73b802003-06-30 21:59:07 +00005839if test -n "$ac_tool_prefix"; then
5840 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5841set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5842echo "$as_me:$LINENO: checking for $ac_word" >&5
5843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5844if test "${ac_cv_prog_RANLIB+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846else
5847 if test -n "$RANLIB"; then
5848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861done
5862done
5863
5864fi
5865fi
5866RANLIB=$ac_cv_prog_RANLIB
5867if test -n "$RANLIB"; then
5868 echo "$as_me:$LINENO: result: $RANLIB" >&5
5869echo "${ECHO_T}$RANLIB" >&6
5870else
5871 echo "$as_me:$LINENO: result: no" >&5
5872echo "${ECHO_T}no" >&6
5873fi
5874
5875fi
5876if test -z "$ac_cv_prog_RANLIB"; then
5877 ac_ct_RANLIB=$RANLIB
5878 # Extract the first word of "ranlib", so it can be a program name with args.
5879set dummy ranlib; ac_word=$2
5880echo "$as_me:$LINENO: checking for $ac_word" >&5
5881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5882if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884else
5885 if test -n "$ac_ct_RANLIB"; then
5886 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5887else
5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_ac_ct_RANLIB="ranlib"
5896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5898 fi
5899done
5900done
5901
5902 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5903fi
5904fi
5905ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5906if test -n "$ac_ct_RANLIB"; then
5907 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5908echo "${ECHO_T}$ac_ct_RANLIB" >&6
5909else
5910 echo "$as_me:$LINENO: result: no" >&5
5911echo "${ECHO_T}no" >&6
5912fi
5913
5914 RANLIB=$ac_ct_RANLIB
5915else
5916 RANLIB="$ac_cv_prog_RANLIB"
5917fi
5918
5919if test -n "$ac_tool_prefix"; then
5920 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5921set dummy ${ac_tool_prefix}strip; ac_word=$2
5922echo "$as_me:$LINENO: checking for $ac_word" >&5
5923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5924if test "${ac_cv_prog_STRIP+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926else
5927 if test -n "$STRIP"; then
5928 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5929else
5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941done
5942done
5943
5944fi
5945fi
5946STRIP=$ac_cv_prog_STRIP
5947if test -n "$STRIP"; then
5948 echo "$as_me:$LINENO: result: $STRIP" >&5
5949echo "${ECHO_T}$STRIP" >&6
5950else
5951 echo "$as_me:$LINENO: result: no" >&5
5952echo "${ECHO_T}no" >&6
5953fi
5954
5955fi
5956if test -z "$ac_cv_prog_STRIP"; then
5957 ac_ct_STRIP=$STRIP
5958 # Extract the first word of "strip", so it can be a program name with args.
5959set dummy strip; ac_word=$2
5960echo "$as_me:$LINENO: checking for $ac_word" >&5
5961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5962if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5964else
5965 if test -n "$ac_ct_STRIP"; then
5966 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5967else
5968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969for as_dir in $PATH
5970do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975 ac_cv_prog_ac_ct_STRIP="strip"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979done
5980done
5981
5982 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5983fi
5984fi
5985ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5986if test -n "$ac_ct_STRIP"; then
5987 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5988echo "${ECHO_T}$ac_ct_STRIP" >&6
5989else
5990 echo "$as_me:$LINENO: result: no" >&5
5991echo "${ECHO_T}no" >&6
5992fi
5993
5994 STRIP=$ac_ct_STRIP
5995else
5996 STRIP="$ac_cv_prog_STRIP"
5997fi
5998
5999
John Criswell7a73b802003-06-30 21:59:07 +00006000old_CC="$CC"
6001old_CFLAGS="$CFLAGS"
6002
6003# Set sane defaults for various variables
6004test -z "$AR" && AR=ar
6005test -z "$AR_FLAGS" && AR_FLAGS=cru
6006test -z "$AS" && AS=as
6007test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00006008test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00006009test -z "$DLLTOOL" && DLLTOOL=dlltool
6010test -z "$LD" && LD=ld
6011test -z "$LN_S" && LN_S="ln -s"
6012test -z "$MAGIC_CMD" && MAGIC_CMD=file
6013test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00006014test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00006015test -z "$OBJDUMP" && OBJDUMP=objdump
6016test -z "$RANLIB" && RANLIB=:
6017test -z "$STRIP" && STRIP=:
6018test -z "$ac_objext" && ac_objext=o
6019
John Criswell7a73b802003-06-30 21:59:07 +00006020# Determine commands to create old-style static archives.
6021old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6022old_postinstall_cmds='chmod 644 $oldlib'
6023old_postuninstall_cmds=
6024
6025if test -n "$RANLIB"; then
6026 case $host_os in
6027 openbsd*)
6028 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6029 ;;
6030 *)
6031 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6032 ;;
6033 esac
6034 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6035fi
6036
John Criswell47fdd832003-07-14 16:52:07 +00006037# Only perform the check for file, if the check method requires it
6038case $deplibs_check_method in
6039file_magic*)
6040 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6041 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6042echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6043if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006045else
John Criswell47fdd832003-07-14 16:52:07 +00006046 case $MAGIC_CMD in
6047[\\/*] | ?:[\\/]*)
6048 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6049 ;;
6050*)
6051 lt_save_MAGIC_CMD="$MAGIC_CMD"
6052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6053 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6054 for ac_dir in $ac_dummy; do
6055 IFS="$lt_save_ifs"
6056 test -z "$ac_dir" && ac_dir=.
6057 if test -f $ac_dir/${ac_tool_prefix}file; then
6058 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6059 if test -n "$file_magic_test_file"; then
6060 case $deplibs_check_method in
6061 "file_magic "*)
6062 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6064 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6065 $EGREP "$file_magic_regex" > /dev/null; then
6066 :
6067 else
6068 cat <<EOF 1>&2
6069
6070*** Warning: the command libtool uses to detect shared libraries,
6071*** $file_magic_cmd, produces output that libtool cannot recognize.
6072*** The result is that libtool may fail to recognize shared libraries
6073*** as such. This will affect the creation of libtool libraries that
6074*** depend on shared libraries, but programs linked with such libtool
6075*** libraries will work regardless of this problem. Nevertheless, you
6076*** may want to report the problem to your system manager and/or to
6077*** bug-libtool@gnu.org
6078
6079EOF
6080 fi ;;
6081 esac
6082 fi
6083 break
6084 fi
6085 done
6086 IFS="$lt_save_ifs"
6087 MAGIC_CMD="$lt_save_MAGIC_CMD"
6088 ;;
6089esac
John Criswell7a73b802003-06-30 21:59:07 +00006090fi
John Criswell7a73b802003-06-30 21:59:07 +00006091
John Criswell47fdd832003-07-14 16:52:07 +00006092MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6093if test -n "$MAGIC_CMD"; then
6094 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6095echo "${ECHO_T}$MAGIC_CMD" >&6
6096else
6097 echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6
6099fi
John Criswell7a73b802003-06-30 21:59:07 +00006100
John Criswell47fdd832003-07-14 16:52:07 +00006101if test -z "$lt_cv_path_MAGIC_CMD"; then
6102 if test -n "$ac_tool_prefix"; then
6103 echo "$as_me:$LINENO: checking for file" >&5
6104echo $ECHO_N "checking for file... $ECHO_C" >&6
6105if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6107else
6108 case $MAGIC_CMD in
6109[\\/*] | ?:[\\/]*)
6110 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6111 ;;
6112*)
6113 lt_save_MAGIC_CMD="$MAGIC_CMD"
6114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6115 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6116 for ac_dir in $ac_dummy; do
6117 IFS="$lt_save_ifs"
6118 test -z "$ac_dir" && ac_dir=.
6119 if test -f $ac_dir/file; then
6120 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6121 if test -n "$file_magic_test_file"; then
6122 case $deplibs_check_method in
6123 "file_magic "*)
6124 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6127 $EGREP "$file_magic_regex" > /dev/null; then
6128 :
6129 else
6130 cat <<EOF 1>&2
6131
6132*** Warning: the command libtool uses to detect shared libraries,
6133*** $file_magic_cmd, produces output that libtool cannot recognize.
6134*** The result is that libtool may fail to recognize shared libraries
6135*** as such. This will affect the creation of libtool libraries that
6136*** depend on shared libraries, but programs linked with such libtool
6137*** libraries will work regardless of this problem. Nevertheless, you
6138*** may want to report the problem to your system manager and/or to
6139*** bug-libtool@gnu.org
6140
6141EOF
6142 fi ;;
6143 esac
6144 fi
6145 break
6146 fi
6147 done
6148 IFS="$lt_save_ifs"
6149 MAGIC_CMD="$lt_save_MAGIC_CMD"
6150 ;;
6151esac
6152fi
6153
6154MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6155if test -n "$MAGIC_CMD"; then
6156 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6157echo "${ECHO_T}$MAGIC_CMD" >&6
6158else
6159 echo "$as_me:$LINENO: result: no" >&5
6160echo "${ECHO_T}no" >&6
6161fi
6162
6163 else
6164 MAGIC_CMD=:
6165 fi
6166fi
6167
6168 fi
6169 ;;
6170esac
6171
6172enable_dlopen=no
6173enable_win32_dll=no
6174
6175# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6176if test "${enable_libtool_lock+set}" = set; then
6177 enableval="$enable_libtool_lock"
6178
6179fi;
6180test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6181
John Criswell7a73b802003-06-30 21:59:07 +00006182
6183# Check whether --with-pic or --without-pic was given.
6184if test "${with_pic+set}" = set; then
6185 withval="$with_pic"
6186 pic_mode="$withval"
6187else
6188 pic_mode=default
6189fi;
6190test -z "$pic_mode" && pic_mode=default
6191
John Criswell47fdd832003-07-14 16:52:07 +00006192# Use C for the default configuration in the libtool script
6193tagname=
6194lt_save_CC="$CC"
6195ac_ext=c
6196ac_cpp='$CPP $CPPFLAGS'
6197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199ac_compiler_gnu=$ac_cv_c_compiler_gnu
6200
6201
6202# Source file extension for C test sources.
6203ac_ext=c
6204
6205# Object file extension for compiled C test sources.
6206objext=o
6207objext=$objext
6208
6209# Code to be used in simple compile tests
6210lt_simple_compile_test_code="int some_variable = 0;\n"
6211
6212# Code to be used in simple link tests
6213lt_simple_link_test_code='int main(){return(0);}\n'
6214
6215
6216# If no C compiler was specified, use CC.
6217LTCC=${LTCC-"$CC"}
6218
6219# Allow CC to be a program name with arguments.
6220compiler=$CC
6221
6222
6223#
6224# Check for any special shared library compilation flags.
6225#
6226lt_prog_cc_shlib=
6227if test "$GCC" = no; then
6228 case $host_os in
6229 sco3.2v5*)
6230 lt_prog_cc_shlib='-belf'
6231 ;;
6232 esac
6233fi
6234if test -n "$lt_prog_cc_shlib"; then
6235 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6236echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6237 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6238 else
6239 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6240echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6241 lt_cv_prog_cc_can_build_shared=no
6242 fi
6243fi
6244
6245
6246#
6247# Check to make sure the static flag actually works.
6248#
6249echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6250echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6251if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253else
John Criswell47fdd832003-07-14 16:52:07 +00006254 lt_prog_compiler_static_works=no
6255 save_LDFLAGS="$LDFLAGS"
6256 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6257 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6258 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6259 # The compiler can only warn and ignore the option if not recognized
6260 # So say no if there are warnings
6261 if test -s conftest.err; then
6262 # Append any errors to the config.log.
6263 cat conftest.err 1>&5
6264 else
6265 lt_prog_compiler_static_works=yes
6266 fi
6267 fi
6268 $rm conftest*
6269 LDFLAGS="$save_LDFLAGS"
6270
6271fi
6272echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6273echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6274
6275if test x"$lt_prog_compiler_static_works" = xyes; then
6276 :
6277else
6278 lt_prog_compiler_static=
6279fi
6280
6281
6282
6283## CAVEAT EMPTOR:
6284## There is no encapsulation within the following macros, do not change
6285## the running order or otherwise move them around unless you know exactly
6286## what you are doing...
6287
6288lt_prog_compiler_no_builtin_flag=
6289
6290if test "$GCC" = yes; then
6291 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6292
6293 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6294echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6295if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6297else
6298 lt_cv_prog_compiler_rtti_exceptions=no
6299 ac_outfile=conftest.$ac_objext
6300 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6301 lt_compiler_flag="-fno-rtti -fno-exceptions"
6302 # Insert the option either (1) after the last *FLAGS variable, or
6303 # (2) before a word containing "conftest.", or (3) at the end.
6304 # Note that $ac_compile itself does not contain backslashes and begins
6305 # with a dollar sign (not a hyphen), so the echo should work correctly.
6306 # The option is referenced via a variable to avoid confusing sed.
6307 lt_compile=`echo "$ac_compile" | $SED \
6308 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6310 -e 's:$: $lt_compiler_flag:'`
Brian Gaekef3b24102003-11-16 18:38:14 +00006311 (eval echo "\"\$as_me:6311: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006312 (eval "$lt_compile" 2>conftest.err)
6313 ac_status=$?
6314 cat conftest.err >&5
Brian Gaekef3b24102003-11-16 18:38:14 +00006315 echo "$as_me:6315: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006316 if (exit $ac_status) && test -s "$ac_outfile"; then
6317 # The compiler can only warn and ignore the option if not recognized
6318 # So say no if there are warnings
6319 if test ! -s conftest.err; then
6320 lt_cv_prog_compiler_rtti_exceptions=yes
6321 fi
6322 fi
6323 $rm conftest*
6324
6325fi
6326echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6327echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6328
6329if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6330 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6331else
6332 :
6333fi
6334
6335fi
6336
6337lt_prog_compiler_wl=
6338lt_prog_compiler_pic=
6339lt_prog_compiler_static=
6340
6341echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6342echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006343
6344 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006345 lt_prog_compiler_wl='-Wl,'
6346 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006347
6348 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006349 aix*)
6350 # All AIX code is PIC.
6351 if test "$host_cpu" = ia64; then
6352 # AIX 5 now supports IA64 processor
6353 lt_prog_compiler_static='-Bstatic'
6354 fi
John Criswell7a73b802003-06-30 21:59:07 +00006355 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006356
John Criswell7a73b802003-06-30 21:59:07 +00006357 amigaos*)
6358 # FIXME: we need at least 68020 code to build shared libraries, but
6359 # adding the `-m68020' flag to GCC prevents building anything better,
6360 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006361 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006362 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006363
6364 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006365 # PIC is the default for these OSes.
6366 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006367
6368 mingw* | pw32* | os2*)
6369 # This hack is so that the source file can tell whether it is being
6370 # built for inclusion in a dll (and should export symbols for example).
6371 lt_prog_compiler_pic='-DDLL_EXPORT'
6372 ;;
6373
John Criswell7a73b802003-06-30 21:59:07 +00006374 darwin* | rhapsody*)
6375 # PIC is the default on this platform
6376 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006377 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006378 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006379
6380 msdosdjgpp*)
6381 # Just because we use GCC doesn't mean we suddenly get shared libraries
6382 # on systems that don't support them.
6383 lt_prog_compiler_can_build_shared=no
6384 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006385 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006386
John Criswell7a73b802003-06-30 21:59:07 +00006387 sysv4*MP*)
6388 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006389 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006390 fi
6391 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006392
6393 hpux*)
6394 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6395 # not for PA HP-UX.
6396 case "$host_cpu" in
6397 hppa*64*|ia64*)
6398 # +Z the default
6399 ;;
6400 *)
6401 lt_prog_compiler_pic='-fPIC'
6402 ;;
6403 esac
6404 ;;
6405
John Criswell7a73b802003-06-30 21:59:07 +00006406 *)
John Criswell47fdd832003-07-14 16:52:07 +00006407 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006408 ;;
6409 esac
6410 else
John Criswell47fdd832003-07-14 16:52:07 +00006411 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006412 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006413 aix*)
6414 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006415 if test "$host_cpu" = ia64; then
6416 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006417 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006418 else
John Criswell47fdd832003-07-14 16:52:07 +00006419 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006420 fi
6421 ;;
6422
John Criswell47fdd832003-07-14 16:52:07 +00006423 mingw* | pw32* | os2*)
6424 # This hack is so that the source file can tell whether it is being
6425 # built for inclusion in a dll (and should export symbols for example).
6426 lt_prog_compiler_pic='-DDLL_EXPORT'
6427 ;;
6428
John Criswell7a73b802003-06-30 21:59:07 +00006429 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006430 lt_prog_compiler_wl='-Wl,'
6431 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6432 # not for PA HP-UX.
6433 case "$host_cpu" in
6434 hppa*64*|ia64*)
6435 # +Z the default
6436 ;;
6437 *)
6438 lt_prog_compiler_pic='+Z'
6439 ;;
6440 esac
6441 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6442 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006443 ;;
6444
John Criswell47fdd832003-07-14 16:52:07 +00006445 irix5* | irix6* | nonstopux*)
6446 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006447 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006448 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006449 ;;
6450
6451 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006452 lt_prog_compiler_pic='-KPIC'
6453 lt_prog_compiler_static='-Bstatic'
6454 ;;
6455
6456 linux*)
6457 case $CC in
6458 icc|ecc)
6459 lt_prog_compiler_wl='-Wl,'
6460 lt_prog_compiler_pic='-KPIC'
6461 lt_prog_compiler_static='-static'
6462 ;;
6463 ccc)
6464 lt_prog_compiler_wl='-Wl,'
6465 # All Alpha code is PIC.
6466 lt_prog_compiler_static='-non_shared'
6467 ;;
6468 esac
John Criswell7a73b802003-06-30 21:59:07 +00006469 ;;
6470
6471 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006472 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006473 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006474 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006475 ;;
6476
6477 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006478 lt_prog_compiler_pic='-Kpic'
6479 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006480 ;;
6481
6482 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006483 lt_prog_compiler_wl='-Wl,'
6484 lt_prog_compiler_pic='-KPIC'
6485 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006486 ;;
6487
6488 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006489 lt_prog_compiler_wl='-Qoption ld '
6490 lt_prog_compiler_pic='-PIC'
6491 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006492 ;;
6493
6494 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006495 lt_prog_compiler_wl='-Wl,'
6496 lt_prog_compiler_pic='-KPIC'
6497 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006498 ;;
6499
6500 sysv4*MP*)
6501 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006502 lt_prog_compiler_pic='-Kconform_pic'
6503 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006504 fi
6505 ;;
6506
John Criswell47fdd832003-07-14 16:52:07 +00006507 uts4*)
6508 lt_prog_compiler_pic='-pic'
6509 lt_prog_compiler_static='-Bstatic'
6510 ;;
6511
John Criswell7a73b802003-06-30 21:59:07 +00006512 *)
John Criswell47fdd832003-07-14 16:52:07 +00006513 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006514 ;;
6515 esac
6516 fi
6517
John Criswell47fdd832003-07-14 16:52:07 +00006518echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6519echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006520
John Criswell47fdd832003-07-14 16:52:07 +00006521#
6522# Check to make sure the PIC flag actually works.
6523#
6524if test -n "$lt_prog_compiler_pic"; then
6525 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6526echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6527if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529else
John Criswell47fdd832003-07-14 16:52:07 +00006530 lt_prog_compiler_pic_works=no
6531 ac_outfile=conftest.$ac_objext
6532 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6533 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6534 # Insert the option either (1) after the last *FLAGS variable, or
6535 # (2) before a word containing "conftest.", or (3) at the end.
6536 # Note that $ac_compile itself does not contain backslashes and begins
6537 # with a dollar sign (not a hyphen), so the echo should work correctly.
6538 # The option is referenced via a variable to avoid confusing sed.
6539 lt_compile=`echo "$ac_compile" | $SED \
6540 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6542 -e 's:$: $lt_compiler_flag:'`
Brian Gaekef3b24102003-11-16 18:38:14 +00006543 (eval echo "\"\$as_me:6543: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006544 (eval "$lt_compile" 2>conftest.err)
6545 ac_status=$?
6546 cat conftest.err >&5
Brian Gaekef3b24102003-11-16 18:38:14 +00006547 echo "$as_me:6547: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006548 if (exit $ac_status) && test -s "$ac_outfile"; then
6549 # The compiler can only warn and ignore the option if not recognized
6550 # So say no if there are warnings
6551 if test ! -s conftest.err; then
6552 lt_prog_compiler_pic_works=yes
6553 fi
6554 fi
6555 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006556
John Criswell47fdd832003-07-14 16:52:07 +00006557fi
6558echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6559echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006560
John Criswell47fdd832003-07-14 16:52:07 +00006561if test x"$lt_prog_compiler_pic_works" = xyes; then
6562 case $lt_prog_compiler_pic in
6563 "" | " "*) ;;
6564 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6565 esac
John Criswell7a73b802003-06-30 21:59:07 +00006566else
John Criswell47fdd832003-07-14 16:52:07 +00006567 lt_prog_compiler_pic=
6568 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006569fi
6570
John Criswell7a73b802003-06-30 21:59:07 +00006571fi
John Criswell47fdd832003-07-14 16:52:07 +00006572case "$host_os" in
6573 # For platforms which do not support PIC, -DPIC is meaningless:
6574 *djgpp*)
6575 lt_prog_compiler_pic=
6576 ;;
6577 *)
6578 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6579 ;;
6580esac
John Criswell7a73b802003-06-30 21:59:07 +00006581
John Criswell7a73b802003-06-30 21:59:07 +00006582echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6583echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006584if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
John Criswell47fdd832003-07-14 16:52:07 +00006587 lt_cv_prog_compiler_c_o=no
6588 $rm -r conftest 2>/dev/null
6589 mkdir conftest
6590 cd conftest
6591 mkdir out
6592 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006593
John Criswell47fdd832003-07-14 16:52:07 +00006594 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6595 # that will create temporary files in the current directory regardless of
6596 # the output directory. Thus, making CWD read-only will cause this test
6597 # to fail, enabling locking or at least warning the user not to do parallel
6598 # builds.
6599 chmod -w .
6600
6601 lt_compiler_flag="-o out/conftest2.$ac_objext"
6602 # Insert the option either (1) after the last *FLAGS variable, or
6603 # (2) before a word containing "conftest.", or (3) at the end.
6604 # Note that $ac_compile itself does not contain backslashes and begins
6605 # with a dollar sign (not a hyphen), so the echo should work correctly.
6606 lt_compile=`echo "$ac_compile" | $SED \
6607 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6609 -e 's:$: $lt_compiler_flag:'`
Brian Gaekef3b24102003-11-16 18:38:14 +00006610 (eval echo "\"\$as_me:6610: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006611 (eval "$lt_compile" 2>out/conftest.err)
6612 ac_status=$?
6613 cat out/conftest.err >&5
Brian Gaekef3b24102003-11-16 18:38:14 +00006614 echo "$as_me:6614: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6616 then
6617 # The compiler can only warn and ignore the option if not recognized
6618 # So say no if there are warnings
6619 if test ! -s out/conftest.err; then
6620 lt_cv_prog_compiler_c_o=yes
6621 fi
6622 fi
6623 chmod u+w .
6624 $rm conftest* out/*
6625 rmdir out
6626 cd ..
6627 rmdir conftest
6628 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006629
6630fi
John Criswell47fdd832003-07-14 16:52:07 +00006631echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6632echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006633
John Criswell7a73b802003-06-30 21:59:07 +00006634
John Criswell7a73b802003-06-30 21:59:07 +00006635hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006636if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006637 # do not overwrite the value of need_locks provided by the user
6638 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6639echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6640 hard_links=yes
6641 $rm conftest*
6642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6643 touch conftest.a
6644 ln conftest.a conftest.b 2>&5 || hard_links=no
6645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6646 echo "$as_me:$LINENO: result: $hard_links" >&5
6647echo "${ECHO_T}$hard_links" >&6
6648 if test "$hard_links" = no; then
6649 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6650echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6651 need_locks=warn
6652 fi
6653else
6654 need_locks=no
6655fi
John Criswell7a73b802003-06-30 21:59:07 +00006656
John Criswell47fdd832003-07-14 16:52:07 +00006657echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6658echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6659
6660 runpath_var=
6661 allow_undefined_flag=
6662 enable_shared_with_static_runtimes=no
6663 archive_cmds=
6664 archive_expsym_cmds=
6665 old_archive_From_new_cmds=
6666 old_archive_from_expsyms_cmds=
6667 export_dynamic_flag_spec=
6668 whole_archive_flag_spec=
6669 thread_safe_flag_spec=
6670 hardcode_libdir_flag_spec=
6671 hardcode_libdir_flag_spec_ld=
6672 hardcode_libdir_separator=
6673 hardcode_direct=no
6674 hardcode_minus_L=no
6675 hardcode_shlibpath_var=unsupported
6676 link_all_deplibs=unknown
6677 hardcode_automatic=no
6678 module_cmds=
6679 module_expsym_cmds=
6680 always_export_symbols=no
6681 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6682 # include_expsyms should be a list of space-separated symbols to be *always*
6683 # included in the symbol list
6684 include_expsyms=
6685 # exclude_expsyms can be an extended regexp of symbols to exclude
6686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6688 # as well as any symbol that contains `d'.
6689 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6691 # platforms (ab)use it in PIC code, but their linkers get confused if
6692 # the symbol is explicitly referenced. Since portable code cannot
6693 # rely on this symbol name, it's probably fine to never include it in
6694 # preloaded symbol tables.
6695 extract_expsyms_cmds=
6696
6697 case $host_os in
6698 cygwin* | mingw* | pw32*)
6699 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6700 # When not using gcc, we currently assume that we are using
6701 # Microsoft Visual C++.
6702 if test "$GCC" != yes; then
6703 with_gnu_ld=no
6704 fi
6705 ;;
6706 openbsd*)
6707 with_gnu_ld=no
6708 ;;
6709 esac
6710
6711 ld_shlibs=yes
6712 if test "$with_gnu_ld" = yes; then
6713 # If archive_cmds runs LD, not CC, wlarc should be empty
6714 wlarc='${wl}'
6715
6716 # See if GNU ld supports shared libraries.
6717 case $host_os in
6718 aix3* | aix4* | aix5*)
6719 # On AIX/PPC, the GNU linker is very broken
6720 if test "$host_cpu" != ia64; then
6721 ld_shlibs=no
6722 cat <<EOF 1>&2
6723
6724*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6725*** to be unable to reliably create shared libraries on AIX.
6726*** Therefore, libtool is disabling shared libraries support. If you
6727*** really care for shared libraries, you may want to modify your PATH
6728*** so that a non-GNU linker is found, and then restart.
6729
6730EOF
6731 fi
6732 ;;
6733
6734 amigaos*)
6735 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)'
6736 hardcode_libdir_flag_spec='-L$libdir'
6737 hardcode_minus_L=yes
6738
6739 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6740 # that the semantics of dynamic libraries on AmigaOS, at least up
6741 # to version 4, is to share data among multiple programs linked
6742 # with the same dynamic library. Since this doesn't match the
6743 # behavior of shared libraries on other platforms, we can't use
6744 # them.
6745 ld_shlibs=no
6746 ;;
6747
6748 beos*)
6749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6750 allow_undefined_flag=unsupported
6751 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6752 # support --undefined. This deserves some investigation. FIXME
6753 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6754 else
6755 ld_shlibs=no
6756 fi
6757 ;;
6758
6759 cygwin* | mingw* | pw32*)
6760 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6761 # as there is no search path for DLLs.
6762 hardcode_libdir_flag_spec='-L$libdir'
6763 allow_undefined_flag=unsupported
6764 always_export_symbols=no
6765 enable_shared_with_static_runtimes=yes
6766 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6767
6768 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6770 # If the export-symbols file already is a .def file (1st line
6771 # is EXPORTS), use it as is; otherwise, prepend...
6772 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6773 cp $export_symbols $output_objdir/$soname.def;
6774 else
6775 echo EXPORTS > $output_objdir/$soname.def;
6776 cat $export_symbols >> $output_objdir/$soname.def;
6777 fi~
6778 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6779 else
6780 ld_shlibs=no
6781 fi
6782 ;;
6783
6784 netbsd*)
6785 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6786 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6787 wlarc=
6788 else
6789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6791 fi
6792 ;;
6793
6794 solaris* | sysv5*)
6795 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6796 ld_shlibs=no
6797 cat <<EOF 1>&2
6798
6799*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6800*** create shared libraries on Solaris systems. Therefore, libtool
6801*** is disabling shared libraries support. We urge you to upgrade GNU
6802*** binutils to release 2.9.1 or newer. Another option is to modify
6803*** your PATH or compiler configuration so that the native linker is
6804*** used, and then restart.
6805
6806EOF
6807 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6809 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6810 else
6811 ld_shlibs=no
6812 fi
6813 ;;
6814
6815 sunos4*)
6816 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6817 wlarc=
6818 hardcode_direct=yes
6819 hardcode_shlibpath_var=no
6820 ;;
6821
6822 *)
6823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6825 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6826 else
6827 ld_shlibs=no
6828 fi
6829 ;;
6830 esac
6831
6832 if test "$ld_shlibs" = yes; then
6833 runpath_var=LD_RUN_PATH
6834 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6835 export_dynamic_flag_spec='${wl}--export-dynamic'
6836 # ancient GNU ld didn't support --whole-archive et. al.
6837 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6838 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6839 else
6840 whole_archive_flag_spec=
6841 fi
6842 fi
6843 else
6844 # PORTME fill in a description of your system's linker (not GNU ld)
6845 case $host_os in
6846 aix3*)
6847 allow_undefined_flag=unsupported
6848 always_export_symbols=yes
6849 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'
6850 # Note: this linker hardcodes the directories in LIBPATH if there
6851 # are no directories specified by -L.
6852 hardcode_minus_L=yes
6853 if test "$GCC" = yes && test -z "$link_static_flag"; then
6854 # Neither direct hardcoding nor static linking is supported with a
6855 # broken collect2.
6856 hardcode_direct=unsupported
6857 fi
6858 ;;
6859
6860 aix4* | aix5*)
6861 if test "$host_cpu" = ia64; then
6862 # On IA64, the linker does run time linking by default, so we don't
6863 # have to do anything special.
6864 aix_use_runtimelinking=no
6865 exp_sym_flag='-Bexport'
6866 no_entry_flag=""
6867 else
6868 # If we're using GNU nm, then we don't want the "-C" option.
6869 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6870 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6871 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'
6872 else
6873 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'
6874 fi
6875 aix_use_runtimelinking=no
6876
6877 # Test if we are trying to use run time linking or normal
6878 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6879 # need to do runtime linking.
6880 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6881 for ld_flag in $LDFLAGS; do
6882 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6883 aix_use_runtimelinking=yes
6884 break
6885 fi
6886 done
6887 esac
6888
6889 exp_sym_flag='-bexport'
6890 no_entry_flag='-bnoentry'
6891 fi
6892
6893 # When large executables or shared objects are built, AIX ld can
6894 # have problems creating the table of contents. If linking a library
6895 # or program results in "error TOC overflow" add -mminimal-toc to
6896 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6897 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6898
6899 archive_cmds=''
6900 hardcode_direct=yes
6901 hardcode_libdir_separator=':'
6902 link_all_deplibs=yes
6903
6904 if test "$GCC" = yes; then
6905 case $host_os in aix4.012|aix4.012.*)
6906 # We only want to do this on AIX 4.2 and lower, the check
6907 # below for broken collect2 doesn't work under 4.3+
6908 collect2name=`${CC} -print-prog-name=collect2`
6909 if test -f "$collect2name" && \
6910 strings "$collect2name" | grep resolve_lib_name >/dev/null
6911 then
6912 # We have reworked collect2
6913 hardcode_direct=yes
6914 else
6915 # We have old collect2
6916 hardcode_direct=unsupported
6917 # It fails to find uninstalled libraries when the uninstalled
6918 # path is not listed in the libpath. Setting hardcode_minus_L
6919 # to unsupported forces relinking
6920 hardcode_minus_L=yes
6921 hardcode_libdir_flag_spec='-L$libdir'
6922 hardcode_libdir_separator=
6923 fi
6924 esac
6925 shared_flag='-shared'
6926 else
6927 # not using gcc
6928 if test "$host_cpu" = ia64; then
6929 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6930 # chokes on -Wl,-G. The following line is correct:
6931 shared_flag='-G'
6932 else
6933 if test "$aix_use_runtimelinking" = yes; then
6934 shared_flag='${wl}-G'
6935 else
6936 shared_flag='${wl}-bM:SRE'
6937 fi
6938 fi
6939 fi
6940
6941 # It seems that -bexpall does not export symbols beginning with
6942 # underscore (_), so it is better to generate a list of symbols to export.
6943 always_export_symbols=yes
6944 if test "$aix_use_runtimelinking" = yes; then
6945 # Warning - without using the other runtime loading flags (-brtl),
6946 # -berok will link without error, but may produce a broken library.
6947 allow_undefined_flag='-berok'
6948 # Determine the default libpath from the value encoded in an empty executable.
6949 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006950#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 Criswell7a73b802003-06-30 21:59:07 +00006957int
6958main ()
6959{
John Criswell47fdd832003-07-14 16:52:07 +00006960
John Criswell7a73b802003-06-30 21:59:07 +00006961 ;
6962 return 0;
6963}
6964_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006965rm -f conftest.$ac_objext conftest$ac_exeext
6966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6967 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006971 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006972 { (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
6984 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006985sed 's/^/| /' conftest.$ac_ext >&5
6986
John Criswell7a73b802003-06-30 21:59:07 +00006987fi
John Criswell47fdd832003-07-14 16:52:07 +00006988rm -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 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"
6993 else
6994 if test "$host_cpu" = ia64; then
6995 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6996 allow_undefined_flag="-z nodefs"
6997 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"
6998 else
6999 # Determine the default libpath from the value encoded in an empty executable.
7000 cat >conftest.$ac_ext <<_ACEOF
7001#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007002/* confdefs.h. */
7003_ACEOF
7004cat confdefs.h >>conftest.$ac_ext
7005cat >>conftest.$ac_ext <<_ACEOF
7006/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007007
John Criswell47fdd832003-07-14 16:52:07 +00007008int
7009main ()
7010{
John Criswell7a73b802003-06-30 21:59:07 +00007011
John Criswell47fdd832003-07-14 16:52:07 +00007012 ;
7013 return 0;
7014}
7015_ACEOF
7016rm -f conftest.$ac_objext conftest$ac_exeext
7017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018 (eval $ac_link) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -s conftest$ac_exeext'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00007028
John Criswell47fdd832003-07-14 16:52:07 +00007029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7030}'`
7031# Check for a 64-bit object if we didn't find anything.
7032if 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; }
7033}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00007034else
John Criswell47fdd832003-07-14 16:52:07 +00007035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007036sed 's/^/| /' conftest.$ac_ext >&5
7037
John Criswell47fdd832003-07-14 16:52:07 +00007038fi
7039rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7040if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007041
John Criswell47fdd832003-07-14 16:52:07 +00007042 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7043 # Warning - without using the other run time loading flags,
7044 # -berok will link without error, but may produce a broken library.
7045 no_undefined_flag=' ${wl}-bernotok'
7046 allow_undefined_flag=' ${wl}-berok'
7047 # -bexpall does not export symbols beginning with underscore (_)
7048 always_export_symbols=yes
7049 # Exported symbols can be pulled into shared objects from archives
7050 whole_archive_flag_spec=' '
7051 archive_cmds_need_lc=yes
7052 # This is similar to how AIX traditionally builds it's shared libraries.
7053 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 +00007054 fi
7055 fi
John Criswell7a73b802003-06-30 21:59:07 +00007056 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007057
7058 amigaos*)
7059 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)'
7060 hardcode_libdir_flag_spec='-L$libdir'
7061 hardcode_minus_L=yes
7062 # see comment about different semantics on the GNU ld section
7063 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007064 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007065
John Criswell47fdd832003-07-14 16:52:07 +00007066 bsdi4*)
7067 export_dynamic_flag_spec=-rdynamic
7068 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007069
John Criswell47fdd832003-07-14 16:52:07 +00007070 cygwin* | mingw* | pw32*)
7071 # When not using gcc, we currently assume that we are using
7072 # Microsoft Visual C++.
7073 # hardcode_libdir_flag_spec is actually meaningless, as there is
7074 # no search path for DLLs.
7075 hardcode_libdir_flag_spec=' '
7076 allow_undefined_flag=unsupported
7077 # Tell ltmain to make .lib files, not .a files.
7078 libext=lib
7079 # Tell ltmain to make .dll files, not .so files.
7080 shrext=".dll"
7081 # FIXME: Setting linknames here is a bad hack.
7082 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7083 # The linker will automatically build a .lib file if we build a DLL.
7084 old_archive_From_new_cmds='true'
7085 # FIXME: Should let the user specify the lib program.
7086 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7087 fix_srcfile_path='`cygpath -w "$srcfile"`'
7088 enable_shared_with_static_runtimes=yes
7089 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007090
John Criswell47fdd832003-07-14 16:52:07 +00007091 darwin* | rhapsody*)
7092 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7093 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007094 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007095 rhapsody* | darwin1.[012])
7096 allow_undefined_flag='-undefined suppress'
7097 ;;
7098 *) # Darwin 1.3 on
7099 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007100 ;;
7101 esac
John Criswell47fdd832003-07-14 16:52:07 +00007102 # FIXME: Relying on posixy $() will cause problems for
7103 # cross-compilation, but unfortunately the echo tests do not
7104 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7105 # `"' quotes if we put them in here... so don't!
7106 lt_int_apple_cc_single_mod=no
7107 output_verbose_link_cmd='echo'
7108 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7109 lt_int_apple_cc_single_mod=yes
7110 fi
7111 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7112 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7113 else
7114 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'
7115 fi
7116 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7117 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7118 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7119 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}'
7120 else
7121 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}'
7122 fi
7123 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}'
7124 hardcode_direct=no
7125 hardcode_automatic=yes
7126 hardcode_shlibpath_var=unsupported
7127 whole_archive_flag_spec='-all_load $convenience'
7128 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007129 fi
John Criswell47fdd832003-07-14 16:52:07 +00007130 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007131
John Criswell47fdd832003-07-14 16:52:07 +00007132 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007134 hardcode_libdir_flag_spec='-L$libdir'
7135 hardcode_shlibpath_var=no
7136 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007137
John Criswell47fdd832003-07-14 16:52:07 +00007138 freebsd1*)
7139 ld_shlibs=no
7140 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007141
John Criswell47fdd832003-07-14 16:52:07 +00007142 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7143 # support. Future versions do this automatically, but an explicit c++rt0.o
7144 # does not break anything, and helps significantly (at the cost of a little
7145 # extra space).
7146 freebsd2.2*)
7147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7148 hardcode_libdir_flag_spec='-R$libdir'
7149 hardcode_direct=yes
7150 hardcode_shlibpath_var=no
7151 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007152
John Criswell47fdd832003-07-14 16:52:07 +00007153 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7154 freebsd2*)
7155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7156 hardcode_direct=yes
7157 hardcode_minus_L=yes
7158 hardcode_shlibpath_var=no
7159 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007160
John Criswell47fdd832003-07-14 16:52:07 +00007161 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7162 freebsd*)
7163 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7164 hardcode_libdir_flag_spec='-R$libdir'
7165 hardcode_direct=yes
7166 hardcode_shlibpath_var=no
7167 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007168
John Criswell47fdd832003-07-14 16:52:07 +00007169 hpux9*)
7170 if test "$GCC" = yes; then
7171 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'
7172 else
7173 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'
7174 fi
7175 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7176 hardcode_libdir_separator=:
7177 hardcode_direct=yes
7178
7179 # hardcode_minus_L: Not really in the search PATH,
7180 # but as the default location of the library.
7181 hardcode_minus_L=yes
7182 export_dynamic_flag_spec='${wl}-E'
7183 ;;
7184
7185 hpux10* | hpux11*)
7186 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7187 case "$host_cpu" in
7188 hppa*64*|ia64*)
7189 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7190 ;;
7191 *)
7192 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7193 ;;
7194 esac
7195 else
7196 case "$host_cpu" in
7197 hppa*64*|ia64*)
7198 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7199 ;;
7200 *)
7201 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7202 ;;
7203 esac
7204 fi
7205 if test "$with_gnu_ld" = no; then
7206 case "$host_cpu" in
7207 hppa*64*)
7208 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7209 hardcode_libdir_flag_spec_ld='+b $libdir'
7210 hardcode_libdir_separator=:
7211 hardcode_direct=no
7212 hardcode_shlibpath_var=no
7213 ;;
7214 ia64*)
7215 hardcode_libdir_flag_spec='-L$libdir'
7216 hardcode_direct=no
7217 hardcode_shlibpath_var=no
7218
7219 # hardcode_minus_L: Not really in the search PATH,
7220 # but as the default location of the library.
7221 hardcode_minus_L=yes
7222 ;;
7223 *)
7224 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7225 hardcode_libdir_separator=:
7226 hardcode_direct=yes
7227 export_dynamic_flag_spec='${wl}-E'
7228
7229 # hardcode_minus_L: Not really in the search PATH,
7230 # but as the default location of the library.
7231 hardcode_minus_L=yes
7232 ;;
7233 esac
7234 fi
7235 ;;
7236
7237 irix5* | irix6* | nonstopux*)
7238 if test "$GCC" = yes; then
7239 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'
7240 else
7241 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'
7242 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7243 fi
7244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7245 hardcode_libdir_separator=:
7246 link_all_deplibs=yes
7247 ;;
7248
7249 netbsd*)
7250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7252 else
7253 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7254 fi
7255 hardcode_libdir_flag_spec='-R$libdir'
7256 hardcode_direct=yes
7257 hardcode_shlibpath_var=no
7258 ;;
7259
7260 newsos6)
7261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7262 hardcode_direct=yes
7263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7264 hardcode_libdir_separator=:
7265 hardcode_shlibpath_var=no
7266 ;;
7267
7268 openbsd*)
7269 hardcode_direct=yes
7270 hardcode_shlibpath_var=no
7271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7272 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7273 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7274 export_dynamic_flag_spec='${wl}-E'
7275 else
7276 case $host_os in
7277 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7278 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7279 hardcode_libdir_flag_spec='-R$libdir'
7280 ;;
7281 *)
7282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7283 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7284 ;;
7285 esac
7286 fi
7287 ;;
7288
7289 os2*)
7290 hardcode_libdir_flag_spec='-L$libdir'
7291 hardcode_minus_L=yes
7292 allow_undefined_flag=unsupported
7293 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'
7294 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7295 ;;
7296
7297 osf3*)
7298 if test "$GCC" = yes; then
7299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7300 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'
7301 else
7302 allow_undefined_flag=' -expect_unresolved \*'
7303 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'
7304 fi
7305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7306 hardcode_libdir_separator=:
7307 ;;
7308
7309 osf4* | osf5*) # as osf3* with the addition of -msym flag
7310 if test "$GCC" = yes; then
7311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7312 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'
7313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7314 else
7315 allow_undefined_flag=' -expect_unresolved \*'
7316 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'
7317 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7318 $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'
7319
7320 # Both c and cxx compiler support -rpath directly
7321 hardcode_libdir_flag_spec='-rpath $libdir'
7322 fi
7323 hardcode_libdir_separator=:
7324 ;;
7325
7326 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7328 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007329 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007330 runpath_var=LD_RUN_PATH
7331 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007332 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007333
John Criswell47fdd832003-07-14 16:52:07 +00007334 solaris*)
7335 no_undefined_flag=' -z text'
7336 if test "$GCC" = yes; then
7337 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7338 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7339 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7340 else
7341 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7343 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7344 fi
7345 hardcode_libdir_flag_spec='-R$libdir'
7346 hardcode_shlibpath_var=no
7347 case $host_os in
7348 solaris2.[0-5] | solaris2.[0-5].*) ;;
7349 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7350 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7351 esac
7352 link_all_deplibs=yes
7353 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007354
John Criswell47fdd832003-07-14 16:52:07 +00007355 sunos4*)
7356 if test "x$host_vendor" = xsequent; then
7357 # Use $CC to link under sequent, because it throws in some extra .o
7358 # files that make .init and .fini sections work.
7359 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7360 else
7361 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7362 fi
7363 hardcode_libdir_flag_spec='-L$libdir'
7364 hardcode_direct=yes
7365 hardcode_minus_L=yes
7366 hardcode_shlibpath_var=no
7367 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007368
John Criswell47fdd832003-07-14 16:52:07 +00007369 sysv4)
7370 case $host_vendor in
7371 sni)
7372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7373 hardcode_direct=yes # is this really true???
7374 ;;
7375 siemens)
7376 ## LD is ld it makes a PLAMLIB
7377 ## CC just makes a GrossModule.
7378 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7379 reload_cmds='$CC -r -o $output$reload_objs'
7380 hardcode_direct=no
7381 ;;
7382 motorola)
7383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7384 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7385 ;;
7386 esac
7387 runpath_var='LD_RUN_PATH'
7388 hardcode_shlibpath_var=no
7389 ;;
7390
7391 sysv4.3*)
7392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7393 hardcode_shlibpath_var=no
7394 export_dynamic_flag_spec='-Bexport'
7395 ;;
7396
7397 sysv4*MP*)
7398 if test -d /usr/nec; then
7399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400 hardcode_shlibpath_var=no
7401 runpath_var=LD_RUN_PATH
7402 hardcode_runpath_var=yes
7403 ld_shlibs=yes
7404 fi
7405 ;;
7406
7407 sysv4.2uw2*)
7408 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7409 hardcode_direct=yes
7410 hardcode_minus_L=no
7411 hardcode_shlibpath_var=no
7412 hardcode_runpath_var=yes
7413 runpath_var=LD_RUN_PATH
7414 ;;
7415
7416 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7417 no_undefined_flag='${wl}-z ${wl}text'
7418 if test "$GCC" = yes; then
7419 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7420 else
7421 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7422 fi
7423 runpath_var='LD_RUN_PATH'
7424 hardcode_shlibpath_var=no
7425 ;;
7426
7427 sysv5*)
7428 no_undefined_flag=' -z text'
7429 # $CC -shared without GNU ld will not create a library from C++
7430 # object files and a static libstdc++, better avoid it by now
7431 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7432 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7433 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7434 hardcode_libdir_flag_spec=
7435 hardcode_shlibpath_var=no
7436 runpath_var='LD_RUN_PATH'
7437 ;;
7438
7439 uts4*)
7440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7441 hardcode_libdir_flag_spec='-L$libdir'
7442 hardcode_shlibpath_var=no
7443 ;;
7444
7445 *)
7446 ld_shlibs=no
7447 ;;
7448 esac
7449 fi
7450
John Criswell7a73b802003-06-30 21:59:07 +00007451echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7452echo "${ECHO_T}$ld_shlibs" >&6
7453test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007454
John Criswell47fdd832003-07-14 16:52:07 +00007455variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7456if test "$GCC" = yes; then
7457 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7458fi
7459
7460#
7461# Do we need to explicitly link libc?
7462#
7463case "x$archive_cmds_need_lc" in
7464x|xyes)
7465 # Assume -lc should be added
7466 archive_cmds_need_lc=yes
7467
7468 if test "$enable_shared" = yes && test "$GCC" = yes; then
7469 case $archive_cmds in
7470 *'~'*)
7471 # FIXME: we may have to deal with multi-command sequences.
7472 ;;
7473 '$CC '*)
7474 # Test whether the compiler implicitly links with -lc since on some
7475 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7476 # to ld, don't add -lc before -lgcc.
7477 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7478echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7479 $rm conftest*
7480 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7481
7482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483 (eval $ac_compile) 2>&5
7484 ac_status=$?
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } 2>conftest.err; then
7487 soname=conftest
7488 lib=conftest
7489 libobjs=conftest.$ac_objext
7490 deplibs=
7491 wl=$lt_prog_compiler_wl
7492 compiler_flags=-v
7493 linker_flags=-v
7494 verstring=
7495 output_objdir=.
7496 libname=conftest
7497 lt_save_allow_undefined_flag=$allow_undefined_flag
7498 allow_undefined_flag=
7499 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7500 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7501 ac_status=$?
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }
7504 then
7505 archive_cmds_need_lc=no
7506 else
7507 archive_cmds_need_lc=yes
7508 fi
7509 allow_undefined_flag=$lt_save_allow_undefined_flag
7510 else
7511 cat conftest.err 1>&5
7512 fi
7513 $rm conftest*
7514 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7515echo "${ECHO_T}$archive_cmds_need_lc" >&6
7516 ;;
7517 esac
7518 fi
7519 ;;
7520esac
7521
John Criswell7a73b802003-06-30 21:59:07 +00007522echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7523echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7524hardcode_action=
7525if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007526 test -n "$runpath_var " || \
7527 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007528
7529 # We can hardcode non-existant directories.
7530 if test "$hardcode_direct" != no &&
7531 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7532 # have to relink, otherwise we might link with an installed library
7533 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007534 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007535 test "$hardcode_minus_L" != no; then
7536 # Linking always hardcodes the temporary library directory.
7537 hardcode_action=relink
7538 else
7539 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7540 hardcode_action=immediate
7541 fi
7542else
7543 # We cannot hardcode anything, or else we can only hardcode existing
7544 # directories.
7545 hardcode_action=unsupported
7546fi
7547echo "$as_me:$LINENO: result: $hardcode_action" >&5
7548echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007549
John Criswell47fdd832003-07-14 16:52:07 +00007550if test "$hardcode_action" = relink; then
7551 # Fast installation is not supported
7552 enable_fast_install=no
7553elif test "$shlibpath_overrides_runpath" = yes ||
7554 test "$enable_shared" = no; then
7555 # Fast installation is not necessary
7556 enable_fast_install=needless
7557fi
7558
John Criswell7a73b802003-06-30 21:59:07 +00007559striplib=
7560old_striplib=
7561echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7562echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7563if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7564 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7565 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7566 echo "$as_me:$LINENO: result: yes" >&5
7567echo "${ECHO_T}yes" >&6
7568else
John Criswell47fdd832003-07-14 16:52:07 +00007569# FIXME - insert some real tests, host_os isn't really good enough
7570 case $host_os in
7571 darwin*)
7572 if test -n "$STRIP" ; then
7573 striplib="$STRIP -x"
7574 echo "$as_me:$LINENO: result: yes" >&5
7575echo "${ECHO_T}yes" >&6
7576 else
John Criswell7a73b802003-06-30 21:59:07 +00007577 echo "$as_me:$LINENO: result: no" >&5
7578echo "${ECHO_T}no" >&6
7579fi
John Criswell47fdd832003-07-14 16:52:07 +00007580 ;;
7581 *)
7582 echo "$as_me:$LINENO: result: no" >&5
7583echo "${ECHO_T}no" >&6
7584 ;;
7585 esac
7586fi
John Criswell7a73b802003-06-30 21:59:07 +00007587
John Criswell7a73b802003-06-30 21:59:07 +00007588echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7589echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7590library_names_spec=
7591libname_spec='lib$name'
7592soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007593shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007594postinstall_cmds=
7595postuninstall_cmds=
7596finish_cmds=
7597finish_eval=
7598shlibpath_var=
7599shlibpath_overrides_runpath=unknown
7600version_type=none
7601dynamic_linker="$host_os ld.so"
7602sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007603if test "$GCC" = yes; then
7604 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7605 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7606 # if the path contains ";" then we assume it to be the separator
7607 # otherwise default to the standard path separator (i.e. ":") - it is
7608 # assumed that no part of a normal pathname contains ";" but that should
7609 # okay in the real world where ";" in dirpaths is itself problematic.
7610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7611 else
7612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7613 fi
7614else
7615 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7616fi
7617need_lib_prefix=unknown
7618hardcode_into_libs=no
7619
7620# when you set need_version to no, make sure it does not cause -set_version
7621# flags to be left without arguments
7622need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007623
7624case $host_os in
7625aix3*)
7626 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007627 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007628 shlibpath_var=LIBPATH
7629
John Criswell47fdd832003-07-14 16:52:07 +00007630 # AIX 3 has no versioning support, so we append a major version to the name.
7631 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007632 ;;
7633
7634aix4* | aix5*)
7635 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007636 need_lib_prefix=no
7637 need_version=no
7638 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007639 if test "$host_cpu" = ia64; then
7640 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007641 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007642 shlibpath_var=LD_LIBRARY_PATH
7643 else
7644 # With GCC up to 2.95.x, collect2 would create an import file
7645 # for dependence libraries. The import file would start with
7646 # the line `#! .'. This would cause the generated library to
7647 # depend on `.', always an invalid library. This was fixed in
7648 # development snapshots of GCC prior to 3.0.
7649 case $host_os in
7650 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007651 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7652 echo ' yes '
7653 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7654 :
7655 else
7656 can_build_shared=no
7657 fi
7658 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007659 esac
John Criswell47fdd832003-07-14 16:52:07 +00007660 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7661 # soname into executable. Probably we can add versioning support to
7662 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007663 if test "$aix_use_runtimelinking" = yes; then
7664 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7665 # instead of lib<name>.a to let people know that these are not
7666 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007668 else
7669 # We preserve .a as extension for shared libraries through AIX4.2
7670 # and later when we are not doing run time linking.
7671 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007672 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007673 fi
7674 shlibpath_var=LIBPATH
7675 fi
7676 ;;
7677
7678amigaos*)
7679 library_names_spec='$libname.ixlibrary $libname.a'
7680 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7681 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'
7682 ;;
7683
7684beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007685 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007686 dynamic_linker="$host_os ld.so"
7687 shlibpath_var=LIBRARY_PATH
7688 ;;
7689
7690bsdi4*)
7691 version_type=linux
7692 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7694 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007695 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7696 shlibpath_var=LD_LIBRARY_PATH
7697 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7698 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007699 # the default ld.so.conf also contains /usr/contrib/lib and
7700 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7701 # libtool to hard-code these into programs
7702 ;;
7703
7704cygwin* | mingw* | pw32*)
7705 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007706 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007707 need_version=no
7708 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007709
John Criswell7a73b802003-06-30 21:59:07 +00007710 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007711 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007712 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7714 postinstall_cmds='base_file=`basename \${file}`~
7715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007716 dldir=$destdir/`dirname \$dlpath`~
7717 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007718 $install_prog $dir/$dlname \$dldir/$dlname'
7719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007720 dlpath=$dir/\$dldll~
7721 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007722 shlibpath_overrides_runpath=yes
7723
7724 case $host_os in
7725 cygwin*)
7726 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7727 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7728 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7729 ;;
7730 mingw*)
7731 # MinGW DLLs use traditional 'lib' prefix
7732 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7733 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7734 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7735 # It is most probably a Windows format PATH printed by
7736 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7737 # path with ; separators, and with drive letters. We can handle the
7738 # drive letters (cygwin fileutils understands them), so leave them,
7739 # especially as we might pass files found there to a mingw objdump,
7740 # which wouldn't understand a cygwinified path. Ahh.
7741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7742 else
7743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7744 fi
7745 ;;
7746 pw32*)
7747 # pw32 DLLs use 'pw' prefix rather than 'lib'
7748 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7749 ;;
7750 esac
John Criswell7a73b802003-06-30 21:59:07 +00007751 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007752
John Criswell7a73b802003-06-30 21:59:07 +00007753 *)
John Criswell47fdd832003-07-14 16:52:07 +00007754 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007755 ;;
7756 esac
7757 dynamic_linker='Win32 ld.exe'
7758 # FIXME: first we should search . and the directory the executable is in
7759 shlibpath_var=PATH
7760 ;;
7761
7762darwin* | rhapsody*)
7763 dynamic_linker="$host_os dyld"
7764 version_type=darwin
7765 need_lib_prefix=no
7766 need_version=no
7767 # FIXME: Relying on posixy $() will cause problems for
7768 # cross-compilation, but unfortunately the echo tests do not
7769 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007770 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7771 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007772 shlibpath_overrides_runpath=yes
7773 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007774 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7775 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7776 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7777 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"`
7778 fi
7779 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7780 ;;
7781
7782dgux*)
7783 version_type=linux
7784 need_lib_prefix=no
7785 need_version=no
7786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7787 soname_spec='${libname}${release}${shared_ext}$major'
7788 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007789 ;;
7790
7791freebsd1*)
7792 dynamic_linker=no
7793 ;;
7794
7795freebsd*)
7796 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7797 version_type=freebsd-$objformat
7798 case $version_type in
7799 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007801 need_version=no
7802 need_lib_prefix=no
7803 ;;
7804 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007806 need_version=yes
7807 ;;
7808 esac
7809 shlibpath_var=LD_LIBRARY_PATH
7810 case $host_os in
7811 freebsd2*)
7812 shlibpath_overrides_runpath=yes
7813 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007814 freebsd3.01* | freebsdelf3.01*)
7815 shlibpath_overrides_runpath=yes
7816 hardcode_into_libs=yes
7817 ;;
7818 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007819 shlibpath_overrides_runpath=no
7820 hardcode_into_libs=yes
7821 ;;
7822 esac
7823 ;;
7824
7825gnu*)
7826 version_type=linux
7827 need_lib_prefix=no
7828 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7830 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007831 shlibpath_var=LD_LIBRARY_PATH
7832 hardcode_into_libs=yes
7833 ;;
7834
7835hpux9* | hpux10* | hpux11*)
7836 # Give a soname corresponding to the major version so that dld.sl refuses to
7837 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007838 version_type=sunos
7839 need_lib_prefix=no
7840 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007841 case "$host_cpu" in
7842 ia64*)
7843 shrext='.so'
7844 hardcode_into_libs=yes
7845 dynamic_linker="$host_os dld.so"
7846 shlibpath_var=LD_LIBRARY_PATH
7847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7849 soname_spec='${libname}${release}${shared_ext}$major'
7850 if test "X$HPUX_IA64_MODE" = X32; then
7851 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7852 else
7853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7854 fi
7855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7856 ;;
7857 hppa*64*)
7858 shrext='.sl'
7859 hardcode_into_libs=yes
7860 dynamic_linker="$host_os dld.sl"
7861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7864 soname_spec='${libname}${release}${shared_ext}$major'
7865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7867 ;;
7868 *)
7869 shrext='.sl'
7870 dynamic_linker="$host_os dld.sl"
7871 shlibpath_var=SHLIB_PATH
7872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7874 soname_spec='${libname}${release}${shared_ext}$major'
7875 ;;
7876 esac
John Criswell7a73b802003-06-30 21:59:07 +00007877 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7878 postinstall_cmds='chmod 555 $lib'
7879 ;;
7880
John Criswell47fdd832003-07-14 16:52:07 +00007881irix5* | irix6* | nonstopux*)
7882 case $host_os in
7883 nonstopux*) version_type=nonstopux ;;
7884 *)
7885 if test "$lt_cv_prog_gnu_ld" = yes; then
7886 version_type=linux
7887 else
7888 version_type=irix
7889 fi ;;
7890 esac
John Criswell7a73b802003-06-30 21:59:07 +00007891 need_lib_prefix=no
7892 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007893 soname_spec='${libname}${release}${shared_ext}$major'
7894 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 +00007895 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007896 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007897 libsuff= shlibsuff=
7898 ;;
7899 *)
7900 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007901 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7902 libsuff= shlibsuff= libmagic=32-bit;;
7903 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7904 libsuff=32 shlibsuff=N32 libmagic=N32;;
7905 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7906 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007907 *) libsuff= shlibsuff= libmagic=never-match;;
7908 esac
7909 ;;
7910 esac
7911 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7912 shlibpath_overrides_runpath=no
7913 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7914 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007915 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007916 ;;
7917
7918# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007919linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007920 dynamic_linker=no
7921 ;;
7922
7923# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007924linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007925 version_type=linux
7926 need_lib_prefix=no
7927 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7929 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7931 shlibpath_var=LD_LIBRARY_PATH
7932 shlibpath_overrides_runpath=no
7933 # This implies no fast_install, which is unacceptable.
7934 # Some rework will be needed to allow for fast_install
7935 # before this can be enabled.
7936 hardcode_into_libs=yes
7937
7938 # We used to test for /lib/ld.so.1 and disable shared libraries on
7939 # powerpc, because MkLinux only supported shared libraries with the
7940 # GNU dynamic linker. Since this was broken with cross compilers,
7941 # most powerpc-linux boxes support dynamic linking these days and
7942 # people can always --disable-shared, the test was removed, and we
7943 # assume the GNU/Linux dynamic linker is in use.
7944 dynamic_linker='GNU/Linux ld.so'
7945 ;;
7946
7947netbsd*)
7948 version_type=sunos
7949 need_lib_prefix=no
7950 need_version=no
7951 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7954 dynamic_linker='NetBSD (a.out) ld.so'
7955 else
John Criswell47fdd832003-07-14 16:52:07 +00007956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7957 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007958 dynamic_linker='NetBSD ld.elf_so'
7959 fi
7960 shlibpath_var=LD_LIBRARY_PATH
7961 shlibpath_overrides_runpath=yes
7962 hardcode_into_libs=yes
7963 ;;
7964
7965newsos6)
7966 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7968 shlibpath_var=LD_LIBRARY_PATH
7969 shlibpath_overrides_runpath=yes
7970 ;;
7971
7972nto-qnx)
7973 version_type=linux
7974 need_lib_prefix=no
7975 need_version=no
7976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7977 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007978 shlibpath_var=LD_LIBRARY_PATH
7979 shlibpath_overrides_runpath=yes
7980 ;;
7981
7982openbsd*)
7983 version_type=sunos
7984 need_lib_prefix=no
7985 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7988 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007989 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 +00007990 case $host_os in
7991 openbsd2.[89] | openbsd2.[89].*)
7992 shlibpath_overrides_runpath=no
7993 ;;
7994 *)
7995 shlibpath_overrides_runpath=yes
7996 ;;
7997 esac
John Criswell7a73b802003-06-30 21:59:07 +00007998 else
7999 shlibpath_overrides_runpath=yes
8000 fi
John Criswell7a73b802003-06-30 21:59:07 +00008001 ;;
8002
8003os2*)
8004 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00008005 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00008006 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00008007 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00008008 dynamic_linker='OS/2 ld.exe'
8009 shlibpath_var=LIBPATH
8010 ;;
8011
8012osf3* | osf4* | osf5*)
8013 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00008014 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008015 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008016 soname_spec='${libname}${release}${shared_ext}$major'
8017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008018 shlibpath_var=LD_LIBRARY_PATH
8019 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8020 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8021 ;;
8022
8023sco3.2v5*)
8024 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00008025 soname_spec='${libname}${release}${shared_ext}$major'
8026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008027 shlibpath_var=LD_LIBRARY_PATH
8028 ;;
8029
8030solaris*)
8031 version_type=linux
8032 need_lib_prefix=no
8033 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8035 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008036 shlibpath_var=LD_LIBRARY_PATH
8037 shlibpath_overrides_runpath=yes
8038 hardcode_into_libs=yes
8039 # ldd complains unless libraries are executable
8040 postinstall_cmds='chmod +x $lib'
8041 ;;
8042
8043sunos4*)
8044 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00008045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008046 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8047 shlibpath_var=LD_LIBRARY_PATH
8048 shlibpath_overrides_runpath=yes
8049 if test "$with_gnu_ld" = yes; then
8050 need_lib_prefix=no
8051 fi
8052 need_version=yes
8053 ;;
8054
8055sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8056 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8058 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008059 shlibpath_var=LD_LIBRARY_PATH
8060 case $host_vendor in
8061 sni)
8062 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008063 need_lib_prefix=no
8064 export_dynamic_flag_spec='${wl}-Blargedynsym'
8065 runpath_var=LD_RUN_PATH
8066 ;;
8067 siemens)
8068 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008069 ;;
8070 motorola)
8071 need_lib_prefix=no
8072 need_version=no
8073 shlibpath_overrides_runpath=no
8074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8075 ;;
8076 esac
8077 ;;
8078
John Criswell7a73b802003-06-30 21:59:07 +00008079sysv4*MP*)
8080 if test -d /usr/nec ;then
8081 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008082 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8083 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008084 shlibpath_var=LD_LIBRARY_PATH
8085 fi
8086 ;;
8087
John Criswell47fdd832003-07-14 16:52:07 +00008088uts4*)
8089 version_type=linux
8090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8091 soname_spec='${libname}${release}${shared_ext}$major'
8092 shlibpath_var=LD_LIBRARY_PATH
8093 ;;
8094
John Criswell7a73b802003-06-30 21:59:07 +00008095*)
8096 dynamic_linker=no
8097 ;;
8098esac
8099echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8100echo "${ECHO_T}$dynamic_linker" >&6
8101test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008102
8103if test "x$enable_dlopen" != xyes; then
8104 enable_dlopen=unknown
8105 enable_dlopen_self=unknown
8106 enable_dlopen_self_static=unknown
8107else
8108 lt_cv_dlopen=no
8109 lt_cv_dlopen_libs=
8110
8111 case $host_os in
8112 beos*)
8113 lt_cv_dlopen="load_add_on"
8114 lt_cv_dlopen_libs=
8115 lt_cv_dlopen_self=yes
8116 ;;
8117
John Criswell47fdd832003-07-14 16:52:07 +00008118 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008119 lt_cv_dlopen="LoadLibrary"
8120 lt_cv_dlopen_libs=
8121 ;;
8122
John Criswell47fdd832003-07-14 16:52:07 +00008123 cygwin*)
8124 lt_cv_dlopen="dlopen"
8125 lt_cv_dlopen_libs=
8126 ;;
8127
8128 darwin*)
8129 # if libdl is installed we need to link against it
8130 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8131echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8132if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134else
8135 ac_check_lib_save_LIBS=$LIBS
8136LIBS="-ldl $LIBS"
8137cat >conftest.$ac_ext <<_ACEOF
8138#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008139/* confdefs.h. */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
8143/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008144
8145/* Override any gcc2 internal prototype to avoid an error. */
8146#ifdef __cplusplus
8147extern "C"
8148#endif
8149/* We use char because int might match the return type of a gcc2
8150 builtin and then its argument prototype would still apply. */
8151char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008152int
8153main ()
8154{
8155dlopen ();
8156 ;
8157 return 0;
8158}
8159_ACEOF
8160rm -f conftest.$ac_objext conftest$ac_exeext
8161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162 (eval $ac_link) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -s conftest$ac_exeext'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 (eval $ac_try) 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 ac_cv_lib_dl_dlopen=yes
8173else
8174 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008175sed 's/^/| /' conftest.$ac_ext >&5
8176
John Criswell47fdd832003-07-14 16:52:07 +00008177ac_cv_lib_dl_dlopen=no
8178fi
8179rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8180LIBS=$ac_check_lib_save_LIBS
8181fi
8182echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8183echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8184if test $ac_cv_lib_dl_dlopen = yes; then
8185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8186else
8187
8188 lt_cv_dlopen="dyld"
8189 lt_cv_dlopen_libs=
8190 lt_cv_dlopen_self=yes
8191
8192fi
8193
8194 ;;
8195
John Criswell7a73b802003-06-30 21:59:07 +00008196 *)
8197 echo "$as_me:$LINENO: checking for shl_load" >&5
8198echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8199if test "${ac_cv_func_shl_load+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201else
8202 cat >conftest.$ac_ext <<_ACEOF
8203#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008204/* confdefs.h. */
8205_ACEOF
8206cat confdefs.h >>conftest.$ac_ext
8207cat >>conftest.$ac_ext <<_ACEOF
8208/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008209/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008210 which can conflict with char shl_load (); below.
8211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8212 <limits.h> exists even on freestanding compilers. */
8213#ifdef __STDC__
8214# include <limits.h>
8215#else
8216# include <assert.h>
8217#endif
John Criswell7a73b802003-06-30 21:59:07 +00008218/* Override any gcc2 internal prototype to avoid an error. */
8219#ifdef __cplusplus
8220extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008221{
John Criswell7a73b802003-06-30 21:59:07 +00008222#endif
8223/* We use char because int might match the return type of a gcc2
8224 builtin and then its argument prototype would still apply. */
8225char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008226/* The GNU C library defines this for functions which it implements
8227 to always fail with ENOSYS. Some functions are actually named
8228 something starting with __ and the normal name is an alias. */
8229#if defined (__stub_shl_load) || defined (__stub___shl_load)
8230choke me
8231#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008232char (*f) () = shl_load;
8233#endif
8234#ifdef __cplusplus
8235}
John Criswell7a73b802003-06-30 21:59:07 +00008236#endif
8237
John Criswell0c38eaf2003-09-10 15:17:25 +00008238int
8239main ()
8240{
8241return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008242 ;
8243 return 0;
8244}
8245_ACEOF
8246rm -f conftest.$ac_objext conftest$ac_exeext
8247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8248 (eval $ac_link) 2>&5
8249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -s conftest$ac_exeext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 ac_cv_func_shl_load=yes
8259else
8260 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008261sed 's/^/| /' conftest.$ac_ext >&5
8262
John Criswell7a73b802003-06-30 21:59:07 +00008263ac_cv_func_shl_load=no
8264fi
8265rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8266fi
8267echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8268echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8269if test $ac_cv_func_shl_load = yes; then
8270 lt_cv_dlopen="shl_load"
8271else
8272 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8273echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8274if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276else
8277 ac_check_lib_save_LIBS=$LIBS
8278LIBS="-ldld $LIBS"
8279cat >conftest.$ac_ext <<_ACEOF
8280#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008281/* confdefs.h. */
8282_ACEOF
8283cat confdefs.h >>conftest.$ac_ext
8284cat >>conftest.$ac_ext <<_ACEOF
8285/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008286
8287/* Override any gcc2 internal prototype to avoid an error. */
8288#ifdef __cplusplus
8289extern "C"
8290#endif
8291/* We use char because int might match the return type of a gcc2
8292 builtin and then its argument prototype would still apply. */
8293char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008294int
8295main ()
8296{
8297shl_load ();
8298 ;
8299 return 0;
8300}
8301_ACEOF
8302rm -f conftest.$ac_objext conftest$ac_exeext
8303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304 (eval $ac_link) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try='test -s conftest$ac_exeext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 (eval $ac_try) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_cv_lib_dld_shl_load=yes
8315else
8316 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008317sed 's/^/| /' conftest.$ac_ext >&5
8318
John Criswell7a73b802003-06-30 21:59:07 +00008319ac_cv_lib_dld_shl_load=no
8320fi
8321rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8322LIBS=$ac_check_lib_save_LIBS
8323fi
8324echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8325echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8326if test $ac_cv_lib_dld_shl_load = yes; then
8327 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8328else
8329 echo "$as_me:$LINENO: checking for dlopen" >&5
8330echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8331if test "${ac_cv_func_dlopen+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8333else
8334 cat >conftest.$ac_ext <<_ACEOF
8335#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008336/* confdefs.h. */
8337_ACEOF
8338cat confdefs.h >>conftest.$ac_ext
8339cat >>conftest.$ac_ext <<_ACEOF
8340/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008341/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008342 which can conflict with char dlopen (); below.
8343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8344 <limits.h> exists even on freestanding compilers. */
8345#ifdef __STDC__
8346# include <limits.h>
8347#else
8348# include <assert.h>
8349#endif
John Criswell7a73b802003-06-30 21:59:07 +00008350/* Override any gcc2 internal prototype to avoid an error. */
8351#ifdef __cplusplus
8352extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008353{
John Criswell7a73b802003-06-30 21:59:07 +00008354#endif
8355/* We use char because int might match the return type of a gcc2
8356 builtin and then its argument prototype would still apply. */
8357char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008358/* The GNU C library defines this for functions which it implements
8359 to always fail with ENOSYS. Some functions are actually named
8360 something starting with __ and the normal name is an alias. */
8361#if defined (__stub_dlopen) || defined (__stub___dlopen)
8362choke me
8363#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008364char (*f) () = dlopen;
8365#endif
8366#ifdef __cplusplus
8367}
John Criswell7a73b802003-06-30 21:59:07 +00008368#endif
8369
John Criswell0c38eaf2003-09-10 15:17:25 +00008370int
8371main ()
8372{
8373return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008374 ;
8375 return 0;
8376}
8377_ACEOF
8378rm -f conftest.$ac_objext conftest$ac_exeext
8379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8380 (eval $ac_link) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -s conftest$ac_exeext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 (eval $ac_try) 2>&5
8387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 ac_cv_func_dlopen=yes
8391else
8392 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008393sed 's/^/| /' conftest.$ac_ext >&5
8394
John Criswell7a73b802003-06-30 21:59:07 +00008395ac_cv_func_dlopen=no
8396fi
8397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8398fi
8399echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8400echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8401if test $ac_cv_func_dlopen = yes; then
8402 lt_cv_dlopen="dlopen"
8403else
8404 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8405echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8406if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408else
8409 ac_check_lib_save_LIBS=$LIBS
8410LIBS="-ldl $LIBS"
8411cat >conftest.$ac_ext <<_ACEOF
8412#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008413/* confdefs.h. */
8414_ACEOF
8415cat confdefs.h >>conftest.$ac_ext
8416cat >>conftest.$ac_ext <<_ACEOF
8417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008418
8419/* Override any gcc2 internal prototype to avoid an error. */
8420#ifdef __cplusplus
8421extern "C"
8422#endif
8423/* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8425char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008426int
8427main ()
8428{
8429dlopen ();
8430 ;
8431 return 0;
8432}
8433_ACEOF
8434rm -f conftest.$ac_objext conftest$ac_exeext
8435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8436 (eval $ac_link) 2>&5
8437 ac_status=$?
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -s conftest$ac_exeext'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 (eval $ac_try) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446 ac_cv_lib_dl_dlopen=yes
8447else
8448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008449sed 's/^/| /' conftest.$ac_ext >&5
8450
John Criswell7a73b802003-06-30 21:59:07 +00008451ac_cv_lib_dl_dlopen=no
8452fi
8453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8454LIBS=$ac_check_lib_save_LIBS
8455fi
8456echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8457echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8458if test $ac_cv_lib_dl_dlopen = yes; then
8459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8460else
8461 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8462echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8463if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8465else
8466 ac_check_lib_save_LIBS=$LIBS
8467LIBS="-lsvld $LIBS"
8468cat >conftest.$ac_ext <<_ACEOF
8469#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008470/* confdefs.h. */
8471_ACEOF
8472cat confdefs.h >>conftest.$ac_ext
8473cat >>conftest.$ac_ext <<_ACEOF
8474/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008475
8476/* Override any gcc2 internal prototype to avoid an error. */
8477#ifdef __cplusplus
8478extern "C"
8479#endif
8480/* We use char because int might match the return type of a gcc2
8481 builtin and then its argument prototype would still apply. */
8482char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008483int
8484main ()
8485{
8486dlopen ();
8487 ;
8488 return 0;
8489}
8490_ACEOF
8491rm -f conftest.$ac_objext conftest$ac_exeext
8492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8493 (eval $ac_link) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -s conftest$ac_exeext'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 ac_cv_lib_svld_dlopen=yes
8504else
8505 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008506sed 's/^/| /' conftest.$ac_ext >&5
8507
John Criswell7a73b802003-06-30 21:59:07 +00008508ac_cv_lib_svld_dlopen=no
8509fi
8510rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8511LIBS=$ac_check_lib_save_LIBS
8512fi
8513echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8514echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8515if test $ac_cv_lib_svld_dlopen = yes; then
8516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8517else
8518 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8519echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8520if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8522else
8523 ac_check_lib_save_LIBS=$LIBS
8524LIBS="-ldld $LIBS"
8525cat >conftest.$ac_ext <<_ACEOF
8526#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008527/* confdefs.h. */
8528_ACEOF
8529cat confdefs.h >>conftest.$ac_ext
8530cat >>conftest.$ac_ext <<_ACEOF
8531/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008532
8533/* Override any gcc2 internal prototype to avoid an error. */
8534#ifdef __cplusplus
8535extern "C"
8536#endif
8537/* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8539char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008540int
8541main ()
8542{
8543dld_link ();
8544 ;
8545 return 0;
8546}
8547_ACEOF
8548rm -f conftest.$ac_objext conftest$ac_exeext
8549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -s conftest$ac_exeext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_cv_lib_dld_dld_link=yes
8561else
8562 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008563sed 's/^/| /' conftest.$ac_ext >&5
8564
John Criswell7a73b802003-06-30 21:59:07 +00008565ac_cv_lib_dld_dld_link=no
8566fi
8567rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8568LIBS=$ac_check_lib_save_LIBS
8569fi
8570echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8571echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8572if test $ac_cv_lib_dld_dld_link = yes; then
8573 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8574fi
8575
8576
8577fi
8578
8579
8580fi
8581
8582
8583fi
8584
8585
8586fi
8587
8588
8589fi
8590
8591 ;;
8592 esac
8593
8594 if test "x$lt_cv_dlopen" != xno; then
8595 enable_dlopen=yes
8596 else
8597 enable_dlopen=no
8598 fi
8599
8600 case $lt_cv_dlopen in
8601 dlopen)
8602 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008603 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008604
8605 save_LDFLAGS="$LDFLAGS"
8606 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8607
8608 save_LIBS="$LIBS"
8609 LIBS="$lt_cv_dlopen_libs $LIBS"
8610
8611 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8612echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8613if test "${lt_cv_dlopen_self+set}" = set; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8615else
8616 if test "$cross_compiling" = yes; then :
8617 lt_cv_dlopen_self=cross
8618else
John Criswell47fdd832003-07-14 16:52:07 +00008619 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008620 lt_status=$lt_dlunknown
8621 cat > conftest.$ac_ext <<EOF
Brian Gaekef3b24102003-11-16 18:38:14 +00008622#line 8622 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008623#include "confdefs.h"
8624
8625#if HAVE_DLFCN_H
8626#include <dlfcn.h>
8627#endif
8628
8629#include <stdio.h>
8630
8631#ifdef RTLD_GLOBAL
8632# define LT_DLGLOBAL RTLD_GLOBAL
8633#else
8634# ifdef DL_GLOBAL
8635# define LT_DLGLOBAL DL_GLOBAL
8636# else
8637# define LT_DLGLOBAL 0
8638# endif
8639#endif
8640
8641/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8642 find out it does not work in some platform. */
8643#ifndef LT_DLLAZY_OR_NOW
8644# ifdef RTLD_LAZY
8645# define LT_DLLAZY_OR_NOW RTLD_LAZY
8646# else
8647# ifdef DL_LAZY
8648# define LT_DLLAZY_OR_NOW DL_LAZY
8649# else
8650# ifdef RTLD_NOW
8651# define LT_DLLAZY_OR_NOW RTLD_NOW
8652# else
8653# ifdef DL_NOW
8654# define LT_DLLAZY_OR_NOW DL_NOW
8655# else
8656# define LT_DLLAZY_OR_NOW 0
8657# endif
8658# endif
8659# endif
8660# endif
8661#endif
8662
8663#ifdef __cplusplus
8664extern "C" void exit (int);
8665#endif
8666
8667void fnord() { int i=42;}
8668int main ()
8669{
8670 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8671 int status = $lt_dlunknown;
8672
8673 if (self)
8674 {
8675 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8676 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8677 /* dlclose (self); */
8678 }
8679
8680 exit (status);
8681}
8682EOF
8683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8684 (eval $ac_link) 2>&5
8685 ac_status=$?
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8688 (./conftest; exit; ) 2>/dev/null
8689 lt_status=$?
8690 case x$lt_status in
8691 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8692 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8693 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8694 esac
8695 else :
8696 # compilation failed
8697 lt_cv_dlopen_self=no
8698 fi
8699fi
8700rm -fr conftest*
8701
8702
8703fi
8704echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8705echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8706
8707 if test "x$lt_cv_dlopen_self" = xyes; then
8708 LDFLAGS="$LDFLAGS $link_static_flag"
8709 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8710echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8711if test "${lt_cv_dlopen_self_static+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713else
8714 if test "$cross_compiling" = yes; then :
8715 lt_cv_dlopen_self_static=cross
8716else
John Criswell47fdd832003-07-14 16:52:07 +00008717 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008718 lt_status=$lt_dlunknown
8719 cat > conftest.$ac_ext <<EOF
Brian Gaekef3b24102003-11-16 18:38:14 +00008720#line 8720 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008721#include "confdefs.h"
8722
8723#if HAVE_DLFCN_H
8724#include <dlfcn.h>
8725#endif
8726
8727#include <stdio.h>
8728
8729#ifdef RTLD_GLOBAL
8730# define LT_DLGLOBAL RTLD_GLOBAL
8731#else
8732# ifdef DL_GLOBAL
8733# define LT_DLGLOBAL DL_GLOBAL
8734# else
8735# define LT_DLGLOBAL 0
8736# endif
8737#endif
8738
8739/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8740 find out it does not work in some platform. */
8741#ifndef LT_DLLAZY_OR_NOW
8742# ifdef RTLD_LAZY
8743# define LT_DLLAZY_OR_NOW RTLD_LAZY
8744# else
8745# ifdef DL_LAZY
8746# define LT_DLLAZY_OR_NOW DL_LAZY
8747# else
8748# ifdef RTLD_NOW
8749# define LT_DLLAZY_OR_NOW RTLD_NOW
8750# else
8751# ifdef DL_NOW
8752# define LT_DLLAZY_OR_NOW DL_NOW
8753# else
8754# define LT_DLLAZY_OR_NOW 0
8755# endif
8756# endif
8757# endif
8758# endif
8759#endif
8760
8761#ifdef __cplusplus
8762extern "C" void exit (int);
8763#endif
8764
8765void fnord() { int i=42;}
8766int main ()
8767{
8768 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8769 int status = $lt_dlunknown;
8770
8771 if (self)
8772 {
8773 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8774 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8775 /* dlclose (self); */
8776 }
8777
8778 exit (status);
8779}
8780EOF
8781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8782 (eval $ac_link) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8786 (./conftest; exit; ) 2>/dev/null
8787 lt_status=$?
8788 case x$lt_status in
8789 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8790 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8791 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8792 esac
8793 else :
8794 # compilation failed
8795 lt_cv_dlopen_self_static=no
8796 fi
8797fi
8798rm -fr conftest*
8799
8800
8801fi
8802echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8803echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8804 fi
8805
8806 CPPFLAGS="$save_CPPFLAGS"
8807 LDFLAGS="$save_LDFLAGS"
8808 LIBS="$save_LIBS"
8809 ;;
8810 esac
8811
8812 case $lt_cv_dlopen_self in
8813 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8814 *) enable_dlopen_self=unknown ;;
8815 esac
8816
8817 case $lt_cv_dlopen_self_static in
8818 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8819 *) enable_dlopen_self_static=unknown ;;
8820 esac
8821fi
8822
8823
John Criswell47fdd832003-07-14 16:52:07 +00008824# Report which librarie types wil actually be built
8825echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8826echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8827echo "$as_me:$LINENO: result: $can_build_shared" >&5
8828echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008829
John Criswell47fdd832003-07-14 16:52:07 +00008830echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8831echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8832test "$can_build_shared" = "no" && enable_shared=no
8833
8834# On AIX, shared libraries and static libraries use the same namespace, and
8835# are all built from PIC.
8836case "$host_os" in
8837aix3*)
8838 test "$enable_shared" = yes && enable_static=no
8839 if test -n "$RANLIB"; then
8840 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8841 postinstall_cmds='$RANLIB $lib'
8842 fi
8843 ;;
8844
8845aix4*)
8846 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8847 test "$enable_shared" = yes && enable_static=no
8848 fi
8849 ;;
8850 darwin* | rhapsody*)
8851 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8852 archive_cmds_need_lc=no
8853 case "$host_os" in
8854 rhapsody* | darwin1.[012])
8855 allow_undefined_flag='-undefined suppress'
8856 ;;
8857 *) # Darwin 1.3 on
8858 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8859 ;;
8860 esac
8861 # FIXME: Relying on posixy $() will cause problems for
8862 # cross-compilation, but unfortunately the echo tests do not
8863 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8864 # `"' quotes if we put them in here... so don't!
8865 output_verbose_link_cmd='echo'
8866 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8867 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8868 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8869 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}'
8870 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}'
8871 hardcode_direct=no
8872 hardcode_automatic=yes
8873 hardcode_shlibpath_var=unsupported
8874 whole_archive_flag_spec='-all_load $convenience'
8875 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008876 fi
John Criswell7a73b802003-06-30 21:59:07 +00008877 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008878esac
8879echo "$as_me:$LINENO: result: $enable_shared" >&5
8880echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008881
John Criswell47fdd832003-07-14 16:52:07 +00008882echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8883echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8884# Make sure either enable_shared or enable_static is yes.
8885test "$enable_shared" = yes || enable_static=yes
8886echo "$as_me:$LINENO: result: $enable_static" >&5
8887echo "${ECHO_T}$enable_static" >&6
8888
8889# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008890# libtool distribution, otherwise you forgot to ship ltmain.sh
8891# with your package, and you will get complaints that there are
8892# no rules to generate ltmain.sh.
8893if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008894 # See if we are running on zsh, and set the options which allow our commands through
8895 # without removal of \ escapes.
8896 if test -n "${ZSH_VERSION+set}" ; then
8897 setopt NO_GLOB_SUBST
8898 fi
John Criswell7a73b802003-06-30 21:59:07 +00008899 # Now quote all the things that may contain metacharacters while being
8900 # careful not to overquote the AC_SUBSTed values. We take copies of the
8901 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008902 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8903 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8904 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8905 deplibs_check_method reload_flag reload_cmds need_locks \
8906 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8907 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008908 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008909 old_postinstall_cmds old_postuninstall_cmds \
8910 compiler \
8911 CC \
8912 LD \
8913 lt_prog_compiler_wl \
8914 lt_prog_compiler_pic \
8915 lt_prog_compiler_static \
8916 lt_prog_compiler_no_builtin_flag \
8917 export_dynamic_flag_spec \
8918 thread_safe_flag_spec \
8919 whole_archive_flag_spec \
8920 enable_shared_with_static_runtimes \
8921 old_archive_cmds \
8922 old_archive_from_new_cmds \
8923 predep_objects \
8924 postdep_objects \
8925 predeps \
8926 postdeps \
8927 compiler_lib_search_path \
8928 archive_cmds \
8929 archive_expsym_cmds \
8930 postinstall_cmds \
8931 postuninstall_cmds \
8932 old_archive_from_expsyms_cmds \
8933 allow_undefined_flag \
8934 no_undefined_flag \
8935 export_symbols_cmds \
8936 hardcode_libdir_flag_spec \
8937 hardcode_libdir_flag_spec_ld \
8938 hardcode_libdir_separator \
8939 hardcode_automatic \
8940 module_cmds \
8941 module_expsym_cmds \
8942 lt_cv_prog_compiler_c_o \
8943 exclude_expsyms \
8944 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008945
8946 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008947 old_archive_cmds | \
8948 old_archive_from_new_cmds | \
8949 archive_cmds | \
8950 archive_expsym_cmds | \
8951 module_cmds | \
8952 module_expsym_cmds | \
8953 old_archive_from_expsyms_cmds | \
8954 export_symbols_cmds | \
8955 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008956 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008957 old_postinstall_cmds | old_postuninstall_cmds | \
8958 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008959 # Double-quote double-evaled strings.
8960 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8961 ;;
8962 *)
8963 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8964 ;;
8965 esac
8966 done
8967
John Criswell47fdd832003-07-14 16:52:07 +00008968 case $lt_echo in
8969 *'\$0 --fallback-echo"')
8970 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8971 ;;
8972 esac
8973
8974cfgfile="${ofile}T"
8975 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8976 $rm -f "$cfgfile"
8977 { echo "$as_me:$LINENO: creating $ofile" >&5
8978echo "$as_me: creating $ofile" >&6;}
8979
8980 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008981#! $SHELL
8982
John Criswell47fdd832003-07-14 16:52:07 +00008983# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008984# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8985# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8986#
John Criswell47fdd832003-07-14 16:52:07 +00008987# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8988# Free Software Foundation, Inc.
8989#
8990# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008991# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8992#
8993# This program is free software; you can redistribute it and/or modify
8994# it under the terms of the GNU General Public License as published by
8995# the Free Software Foundation; either version 2 of the License, or
8996# (at your option) any later version.
8997#
8998# This program is distributed in the hope that it will be useful, but
8999# WITHOUT ANY WARRANTY; without even the implied warranty of
9000# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9001# General Public License for more details.
9002#
9003# You should have received a copy of the GNU General Public License
9004# along with this program; if not, write to the Free Software
9005# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9006#
9007# As a special exception to the GNU General Public License, if you
9008# distribute this file as part of a program that contains a
9009# configuration script generated by Autoconf, you may include it under
9010# the same distribution terms that you use for the rest of that program.
9011
John Criswell47fdd832003-07-14 16:52:07 +00009012# A sed program that does not truncate output.
9013SED=$lt_SED
9014
John Criswell7a73b802003-06-30 21:59:07 +00009015# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00009016Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00009017
9018# The HP-UX ksh and POSIX shell print the target directory to stdout
9019# if CDPATH is set.
9020if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9021
John Criswell47fdd832003-07-14 16:52:07 +00009022# The names of the tagged configurations supported by this script.
9023available_tags=
9024
John Criswell7a73b802003-06-30 21:59:07 +00009025# ### BEGIN LIBTOOL CONFIG
9026
9027# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9028
9029# Shell to use when invoking shell scripts.
9030SHELL=$lt_SHELL
9031
9032# Whether or not to build shared libraries.
9033build_libtool_libs=$enable_shared
9034
9035# Whether or not to build static libraries.
9036build_old_libs=$enable_static
9037
9038# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00009039build_libtool_need_lc=$archive_cmds_need_lc
9040
9041# Whether or not to disallow shared libs when runtime libs are static
9042allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00009043
9044# Whether or not to optimize for fast installation.
9045fast_install=$enable_fast_install
9046
9047# The host system.
9048host_alias=$host_alias
9049host=$host
9050
9051# An echo program that does not interpret backslashes.
9052echo=$lt_echo
9053
9054# The archiver.
9055AR=$lt_AR
9056AR_FLAGS=$lt_AR_FLAGS
9057
John Criswell47fdd832003-07-14 16:52:07 +00009058# A C compiler.
9059LTCC=$lt_LTCC
9060
9061# A language-specific compiler.
9062CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009063
9064# Is the compiler the GNU C compiler?
9065with_gcc=$GCC
9066
John Criswell47fdd832003-07-14 16:52:07 +00009067# An ERE matcher.
9068EGREP=$lt_EGREP
9069
John Criswell7a73b802003-06-30 21:59:07 +00009070# The linker used to build libraries.
9071LD=$lt_LD
9072
9073# Whether we need hard or soft links.
9074LN_S=$lt_LN_S
9075
9076# A BSD-compatible nm program.
9077NM=$lt_NM
9078
9079# A symbol stripping program
9080STRIP=$STRIP
9081
9082# Used to examine libraries when file_magic_cmd begins "file"
9083MAGIC_CMD=$MAGIC_CMD
9084
9085# Used on cygwin: DLL creation program.
9086DLLTOOL="$DLLTOOL"
9087
9088# Used on cygwin: object dumper.
9089OBJDUMP="$OBJDUMP"
9090
9091# Used on cygwin: assembler.
9092AS="$AS"
9093
9094# The name of the directory that contains temporary libtool files.
9095objdir=$objdir
9096
9097# How to create reloadable object files.
9098reload_flag=$lt_reload_flag
9099reload_cmds=$lt_reload_cmds
9100
9101# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009102wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009103
9104# Object file suffix (normally "o").
9105objext="$ac_objext"
9106
9107# Old archive suffix (normally "a").
9108libext="$libext"
9109
John Criswell47fdd832003-07-14 16:52:07 +00009110# Shared library suffix (normally ".so").
9111shrext='$shrext'
9112
John Criswell7a73b802003-06-30 21:59:07 +00009113# Executable file suffix (normally "").
9114exeext="$exeext"
9115
9116# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009117pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009118pic_mode=$pic_mode
9119
John Criswell47fdd832003-07-14 16:52:07 +00009120# What is the maximum length of a command?
9121max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009122
John Criswell47fdd832003-07-14 16:52:07 +00009123# Does compiler simultaneously support -c and -o options?
9124compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009125
9126# Must we lock files when doing compilation ?
9127need_locks=$lt_need_locks
9128
9129# Do we need the lib prefix for modules?
9130need_lib_prefix=$need_lib_prefix
9131
9132# Do we need a version for libraries?
9133need_version=$need_version
9134
9135# Whether dlopen is supported.
9136dlopen_support=$enable_dlopen
9137
9138# Whether dlopen of programs is supported.
9139dlopen_self=$enable_dlopen_self
9140
9141# Whether dlopen of statically linked programs is supported.
9142dlopen_self_static=$enable_dlopen_self_static
9143
9144# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009145link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009146
9147# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009148no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009149
9150# Compiler flag to allow reflexive dlopens.
9151export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9152
9153# Compiler flag to generate shared objects directly from archives.
9154whole_archive_flag_spec=$lt_whole_archive_flag_spec
9155
9156# Compiler flag to generate thread-safe objects.
9157thread_safe_flag_spec=$lt_thread_safe_flag_spec
9158
9159# Library versioning type.
9160version_type=$version_type
9161
9162# Format of library name prefix.
9163libname_spec=$lt_libname_spec
9164
9165# List of archive names. First name is the real one, the rest are links.
9166# The last name is the one that the linker finds with -lNAME.
9167library_names_spec=$lt_library_names_spec
9168
9169# The coded name of the library, if different from the real name.
9170soname_spec=$lt_soname_spec
9171
9172# Commands used to build and install an old-style archive.
9173RANLIB=$lt_RANLIB
9174old_archive_cmds=$lt_old_archive_cmds
9175old_postinstall_cmds=$lt_old_postinstall_cmds
9176old_postuninstall_cmds=$lt_old_postuninstall_cmds
9177
9178# Create an old-style archive from a shared archive.
9179old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9180
9181# Create a temporary old-style archive to link instead of a shared archive.
9182old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9183
9184# Commands used to build and install a shared archive.
9185archive_cmds=$lt_archive_cmds
9186archive_expsym_cmds=$lt_archive_expsym_cmds
9187postinstall_cmds=$lt_postinstall_cmds
9188postuninstall_cmds=$lt_postuninstall_cmds
9189
John Criswell47fdd832003-07-14 16:52:07 +00009190# Commands used to build a loadable module (assumed same as above if empty)
9191module_cmds=$lt_module_cmds
9192module_expsym_cmds=$lt_module_expsym_cmds
9193
John Criswell7a73b802003-06-30 21:59:07 +00009194# Commands to strip libraries.
9195old_striplib=$lt_old_striplib
9196striplib=$lt_striplib
9197
John Criswell47fdd832003-07-14 16:52:07 +00009198# Dependencies to place before the objects being linked to create a
9199# shared library.
9200predep_objects=$lt_predep_objects
9201
9202# Dependencies to place after the objects being linked to create a
9203# shared library.
9204postdep_objects=$lt_postdep_objects
9205
9206# Dependencies to place before the objects being linked to create a
9207# shared library.
9208predeps=$lt_predeps
9209
9210# Dependencies to place after the objects being linked to create a
9211# shared library.
9212postdeps=$lt_postdeps
9213
9214# The library search path used internally by the compiler when linking
9215# a shared library.
9216compiler_lib_search_path=$lt_compiler_lib_search_path
9217
John Criswell7a73b802003-06-30 21:59:07 +00009218# Method to check whether dependent libraries are shared objects.
9219deplibs_check_method=$lt_deplibs_check_method
9220
9221# Command to use when deplibs_check_method == file_magic.
9222file_magic_cmd=$lt_file_magic_cmd
9223
9224# Flag that allows shared libraries with undefined symbols to be built.
9225allow_undefined_flag=$lt_allow_undefined_flag
9226
9227# Flag that forces no undefined symbols.
9228no_undefined_flag=$lt_no_undefined_flag
9229
9230# Commands used to finish a libtool library installation in a directory.
9231finish_cmds=$lt_finish_cmds
9232
9233# Same as above, but a single script fragment to be evaled but not shown.
9234finish_eval=$lt_finish_eval
9235
9236# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009237global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009238
9239# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009240global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009241
9242# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009243global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009244
9245# This is the shared library runtime path variable.
9246runpath_var=$runpath_var
9247
9248# This is the shared library path variable.
9249shlibpath_var=$shlibpath_var
9250
9251# Is shlibpath searched before the hard-coded library search path?
9252shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9253
9254# How to hardcode a shared library path into an executable.
9255hardcode_action=$hardcode_action
9256
9257# Whether we should hardcode library paths into libraries.
9258hardcode_into_libs=$hardcode_into_libs
9259
9260# Flag to hardcode \$libdir into a binary during linking.
9261# This must work even if \$libdir does not exist.
9262hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9263
John Criswell47fdd832003-07-14 16:52:07 +00009264# If ld is used when linking, flag to hardcode \$libdir into
9265# a binary during linking. This must work even if \$libdir does
9266# not exist.
9267hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9268
John Criswell7a73b802003-06-30 21:59:07 +00009269# Whether we need a single -rpath flag with a separated argument.
9270hardcode_libdir_separator=$lt_hardcode_libdir_separator
9271
John Criswell47fdd832003-07-14 16:52:07 +00009272# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009273# resulting binary.
9274hardcode_direct=$hardcode_direct
9275
9276# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9277# resulting binary.
9278hardcode_minus_L=$hardcode_minus_L
9279
9280# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9281# the resulting binary.
9282hardcode_shlibpath_var=$hardcode_shlibpath_var
9283
John Criswell47fdd832003-07-14 16:52:07 +00009284# Set to yes if building a shared library automatically hardcodes DIR into the library
9285# and all subsequent libraries and executables linked against it.
9286hardcode_automatic=$hardcode_automatic
9287
John Criswell7a73b802003-06-30 21:59:07 +00009288# Variables whose values should be saved in libtool wrapper scripts and
9289# restored at relink time.
9290variables_saved_for_relink="$variables_saved_for_relink"
9291
9292# Whether libtool must link a program against all its dependency libraries.
9293link_all_deplibs=$link_all_deplibs
9294
9295# Compile-time system search path for libraries
9296sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9297
9298# Run-time system search path for libraries
9299sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9300
9301# Fix the shell variable \$srcfile for the compiler.
9302fix_srcfile_path="$fix_srcfile_path"
9303
9304# Set to yes if exported symbols are required.
9305always_export_symbols=$always_export_symbols
9306
9307# The commands to list exported symbols.
9308export_symbols_cmds=$lt_export_symbols_cmds
9309
9310# The commands to extract the exported symbol list from a shared archive.
9311extract_expsyms_cmds=$lt_extract_expsyms_cmds
9312
9313# Symbols that should not be listed in the preloaded symbols.
9314exclude_expsyms=$lt_exclude_expsyms
9315
9316# Symbols that must always be exported.
9317include_expsyms=$lt_include_expsyms
9318
9319# ### END LIBTOOL CONFIG
9320
9321__EOF__
9322
John Criswell47fdd832003-07-14 16:52:07 +00009323
John Criswell7a73b802003-06-30 21:59:07 +00009324 case $host_os in
9325 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009326 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009327
9328# AIX sometimes has problems with the GCC collect2 program. For some
9329# reason, if we set the COLLECT_NAMES environment variable, the problems
9330# vanish in a puff of smoke.
9331if test "X${COLLECT_NAMES+set}" != Xset; then
9332 COLLECT_NAMES=
9333 export COLLECT_NAMES
9334fi
9335EOF
9336 ;;
9337 esac
9338
John Criswell7a73b802003-06-30 21:59:07 +00009339 # We use sed instead of cat because bash on DJGPP gets confused if
9340 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9341 # text mode, it properly converts lines to CR/LF. This bash problem
9342 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009343 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009344
John Criswell47fdd832003-07-14 16:52:07 +00009345 mv -f "$cfgfile" "$ofile" || \
9346 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009347 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009348
9349else
9350 # If there is no Makefile yet, we rely on a make rule to execute
9351 # `config.status --recheck' to rerun these tests and create the
9352 # libtool script then.
9353 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009354fi
John Criswell7a73b802003-06-30 21:59:07 +00009355
9356
John Criswell47fdd832003-07-14 16:52:07 +00009357ac_ext=c
9358ac_cpp='$CPP $CPPFLAGS'
9359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9361ac_compiler_gnu=$ac_cv_c_compiler_gnu
9362
9363CC="$lt_save_CC"
9364
9365
9366# Check whether --with-tags or --without-tags was given.
9367if test "${with_tags+set}" = set; then
9368 withval="$with_tags"
9369 tagnames="$withval"
9370fi;
9371
9372if test -f "$ltmain" && test -n "$tagnames"; then
9373 if test ! -f "${ofile}"; then
9374 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9375echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9376 fi
9377
9378 if test -z "$LTCC"; then
9379 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9380 if test -z "$LTCC"; then
9381 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9382echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9383 else
9384 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9385echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9386 fi
9387 fi
9388
9389 # Extract list of available tagged configurations in $ofile.
9390 # Note that this assumes the entire list is on one line.
9391 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9392
9393 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9394 for tagname in $tagnames; do
9395 IFS="$lt_save_ifs"
9396 # Check whether tagname contains only valid characters
9397 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9398 "") ;;
9399 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9400echo "$as_me: error: invalid tag name: $tagname" >&2;}
9401 { (exit 1); exit 1; }; }
9402 ;;
9403 esac
9404
9405 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9406 then
9407 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9408echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9409 { (exit 1); exit 1; }; }
9410 fi
9411
9412 # Update the list of available tags.
9413 if test -n "$tagname"; then
9414 echo appending configuration tag \"$tagname\" to $ofile
9415
9416 case $tagname in
9417 CXX)
9418 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9419 ac_ext=cc
9420ac_cpp='$CXXCPP $CPPFLAGS'
9421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9424
9425
9426
9427
9428archive_cmds_need_lc_CXX=no
9429allow_undefined_flag_CXX=
9430always_export_symbols_CXX=no
9431archive_expsym_cmds_CXX=
9432export_dynamic_flag_spec_CXX=
9433hardcode_direct_CXX=no
9434hardcode_libdir_flag_spec_CXX=
9435hardcode_libdir_flag_spec_ld_CXX=
9436hardcode_libdir_separator_CXX=
9437hardcode_minus_L_CXX=no
9438hardcode_automatic_CXX=no
9439module_cmds_CXX=
9440module_expsym_cmds_CXX=
9441link_all_deplibs_CXX=unknown
9442old_archive_cmds_CXX=$old_archive_cmds
9443no_undefined_flag_CXX=
9444whole_archive_flag_spec_CXX=
9445enable_shared_with_static_runtimes_CXX=no
9446
9447# Dependencies to place before and after the object being linked:
9448predep_objects_CXX=
9449postdep_objects_CXX=
9450predeps_CXX=
9451postdeps_CXX=
9452compiler_lib_search_path_CXX=
9453
9454# Source file extension for C++ test sources.
9455ac_ext=cc
9456
9457# Object file extension for compiled C++ test sources.
9458objext=o
9459objext_CXX=$objext
9460
9461# Code to be used in simple compile tests
9462lt_simple_compile_test_code="int some_variable = 0;\n"
9463
9464# Code to be used in simple link tests
9465lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9466
9467# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9468
9469# If no C compiler was specified, use CC.
9470LTCC=${LTCC-"$CC"}
9471
9472# Allow CC to be a program name with arguments.
9473compiler=$CC
9474
9475
9476# Allow CC to be a program name with arguments.
9477lt_save_CC=$CC
9478lt_save_LD=$LD
9479lt_save_GCC=$GCC
9480GCC=$GXX
9481lt_save_with_gnu_ld=$with_gnu_ld
9482lt_save_path_LD=$lt_cv_path_LD
9483if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9484 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9485else
9486 unset lt_cv_prog_gnu_ld
9487fi
9488if test -n "${lt_cv_path_LDCXX+set}"; then
9489 lt_cv_path_LD=$lt_cv_path_LDCXX
9490else
9491 unset lt_cv_path_LD
9492fi
9493test -z "${LDCXX+set}" || LD=$LDCXX
9494CC=${CXX-"c++"}
9495compiler=$CC
9496compiler_CXX=$CC
9497cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9498
9499# We don't want -fno-exception wen compiling C++ code, so set the
9500# no_builtin_flag separately
9501if test "$GXX" = yes; then
9502 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9503else
9504 lt_prog_compiler_no_builtin_flag_CXX=
9505fi
9506
9507if test "$GXX" = yes; then
9508 # Set up default GNU C++ configuration
9509
9510
9511# Check whether --with-gnu-ld or --without-gnu-ld was given.
9512if test "${with_gnu_ld+set}" = set; then
9513 withval="$with_gnu_ld"
9514 test "$withval" = no || with_gnu_ld=yes
9515else
9516 with_gnu_ld=no
9517fi;
9518ac_prog=ld
9519if test "$GCC" = yes; then
9520 # Check if gcc -print-prog-name=ld gives a path.
9521 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9522echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9523 case $host in
9524 *-*-mingw*)
9525 # gcc leaves a trailing carriage return which upsets mingw
9526 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9527 *)
9528 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9529 esac
9530 case $ac_prog in
9531 # Accept absolute paths.
9532 [\\/]* | ?:[\\/]*)
9533 re_direlt='/[^/][^/]*/\.\./'
9534 # Canonicalize the path of ld
9535 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9536 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9537 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9538 done
9539 test -z "$LD" && LD="$ac_prog"
9540 ;;
9541 "")
9542 # If it fails, then pretend we aren't using GCC.
9543 ac_prog=ld
9544 ;;
9545 *)
9546 # If it is relative, then search for the first ld in PATH.
9547 with_gnu_ld=unknown
9548 ;;
9549 esac
9550elif test "$with_gnu_ld" = yes; then
9551 echo "$as_me:$LINENO: checking for GNU ld" >&5
9552echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9553else
9554 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9555echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9556fi
9557if test "${lt_cv_path_LD+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9559else
9560 if test -z "$LD"; then
9561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9562 for ac_dir in $PATH; do
9563 IFS="$lt_save_ifs"
9564 test -z "$ac_dir" && ac_dir=.
9565 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9566 lt_cv_path_LD="$ac_dir/$ac_prog"
9567 # Check to see if the program is GNU ld. I'd rather use --version,
9568 # but apparently some GNU ld's only accept -v.
9569 # Break only if it was the GNU/non-GNU ld that we prefer.
9570 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9571 *GNU* | *'with BFD'*)
9572 test "$with_gnu_ld" != no && break
9573 ;;
9574 *)
9575 test "$with_gnu_ld" != yes && break
9576 ;;
9577 esac
9578 fi
9579 done
9580 IFS="$lt_save_ifs"
9581else
9582 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9583fi
9584fi
9585
9586LD="$lt_cv_path_LD"
9587if test -n "$LD"; then
9588 echo "$as_me:$LINENO: result: $LD" >&5
9589echo "${ECHO_T}$LD" >&6
9590else
9591 echo "$as_me:$LINENO: result: no" >&5
9592echo "${ECHO_T}no" >&6
9593fi
9594test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9595echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9596 { (exit 1); exit 1; }; }
9597echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9598echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9599if test "${lt_cv_prog_gnu_ld+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9601else
9602 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9603case `"$LD" -v 2>&1 </dev/null` in
9604*GNU* | *'with BFD'*)
9605 lt_cv_prog_gnu_ld=yes
9606 ;;
9607*)
9608 lt_cv_prog_gnu_ld=no
9609 ;;
9610esac
9611fi
9612echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9613echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9614with_gnu_ld=$lt_cv_prog_gnu_ld
9615
9616
9617
9618 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9619 # archiving commands below assume that GNU ld is being used.
9620 if test "$with_gnu_ld" = yes; then
9621 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9622 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'
9623
9624 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9625 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9626
9627 # If archive_cmds runs LD, not CC, wlarc should be empty
9628 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9629 # investigate it a little bit more. (MM)
9630 wlarc='${wl}'
9631
9632 # ancient GNU ld didn't support --whole-archive et. al.
9633 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9634 grep 'no-whole-archive' > /dev/null; then
9635 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9636 else
9637 whole_archive_flag_spec_CXX=
9638 fi
9639 else
9640 with_gnu_ld=no
9641 wlarc=
9642
9643 # A generic and very simple default shared library creation
9644 # command for GNU C++ for the case where it uses the native
9645 # linker, instead of GNU ld. If possible, this setting should
9646 # overridden to take advantage of the native linker features on
9647 # the platform it is being used on.
9648 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9649 fi
9650
9651 # Commands to make compiler produce verbose output that lists
9652 # what "hidden" libraries, object files and flags are used when
9653 # linking a shared library.
9654 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9655
9656else
9657 GXX=no
9658 with_gnu_ld=no
9659 wlarc=
9660fi
9661
9662# PORTME: fill in a description of your system's C++ link characteristics
9663echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9664echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9665ld_shlibs_CXX=yes
9666case $host_os in
9667 aix3*)
9668 # FIXME: insert proper C++ library support
9669 ld_shlibs_CXX=no
9670 ;;
9671 aix4* | aix5*)
9672 if test "$host_cpu" = ia64; then
9673 # On IA64, the linker does run time linking by default, so we don't
9674 # have to do anything special.
9675 aix_use_runtimelinking=no
9676 exp_sym_flag='-Bexport'
9677 no_entry_flag=""
9678 else
9679 aix_use_runtimelinking=no
9680
9681 # Test if we are trying to use run time linking or normal
9682 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9683 # need to do runtime linking.
9684 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9685 for ld_flag in $LDFLAGS; do
9686 case $ld_flag in
9687 *-brtl*)
9688 aix_use_runtimelinking=yes
9689 break
9690 ;;
9691 esac
9692 done
9693 esac
9694
9695 exp_sym_flag='-bexport'
9696 no_entry_flag='-bnoentry'
9697 fi
9698
9699 # When large executables or shared objects are built, AIX ld can
9700 # have problems creating the table of contents. If linking a library
9701 # or program results in "error TOC overflow" add -mminimal-toc to
9702 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9703 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9704
9705 archive_cmds_CXX=''
9706 hardcode_direct_CXX=yes
9707 hardcode_libdir_separator_CXX=':'
9708 link_all_deplibs_CXX=yes
9709
9710 if test "$GXX" = yes; then
9711 case $host_os in aix4.012|aix4.012.*)
9712 # We only want to do this on AIX 4.2 and lower, the check
9713 # below for broken collect2 doesn't work under 4.3+
9714 collect2name=`${CC} -print-prog-name=collect2`
9715 if test -f "$collect2name" && \
9716 strings "$collect2name" | grep resolve_lib_name >/dev/null
9717 then
9718 # We have reworked collect2
9719 hardcode_direct_CXX=yes
9720 else
9721 # We have old collect2
9722 hardcode_direct_CXX=unsupported
9723 # It fails to find uninstalled libraries when the uninstalled
9724 # path is not listed in the libpath. Setting hardcode_minus_L
9725 # to unsupported forces relinking
9726 hardcode_minus_L_CXX=yes
9727 hardcode_libdir_flag_spec_CXX='-L$libdir'
9728 hardcode_libdir_separator_CXX=
9729 fi
9730 esac
9731 shared_flag='-shared'
9732 else
9733 # not using gcc
9734 if test "$host_cpu" = ia64; then
9735 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9736 # chokes on -Wl,-G. The following line is correct:
9737 shared_flag='-G'
9738 else
9739 if test "$aix_use_runtimelinking" = yes; then
9740 shared_flag='${wl}-G'
9741 else
9742 shared_flag='${wl}-bM:SRE'
9743 fi
9744 fi
9745 fi
9746
9747 # It seems that -bexpall does not export symbols beginning with
9748 # underscore (_), so it is better to generate a list of symbols to export.
9749 always_export_symbols_CXX=yes
9750 if test "$aix_use_runtimelinking" = yes; then
9751 # Warning - without using the other runtime loading flags (-brtl),
9752 # -berok will link without error, but may produce a broken library.
9753 allow_undefined_flag_CXX='-berok'
9754 # Determine the default libpath from the value encoded in an empty executable.
9755 cat >conftest.$ac_ext <<_ACEOF
9756#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009757/* confdefs.h. */
9758_ACEOF
9759cat confdefs.h >>conftest.$ac_ext
9760cat >>conftest.$ac_ext <<_ACEOF
9761/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009762
John Criswell47fdd832003-07-14 16:52:07 +00009763int
9764main ()
9765{
9766
9767 ;
9768 return 0;
9769}
9770_ACEOF
9771rm -f conftest.$ac_objext conftest$ac_exeext
9772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773 (eval $ac_link) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } &&
9777 { ac_try='test -s conftest$ac_exeext'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
9783
9784aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9785}'`
9786# Check for a 64-bit object if we didn't find anything.
9787if 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; }
9788}'`; fi
9789else
9790 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009791sed 's/^/| /' conftest.$ac_ext >&5
9792
John Criswell47fdd832003-07-14 16:52:07 +00009793fi
9794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9795if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9796
9797 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9798
9799 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"
9800 else
9801 if test "$host_cpu" = ia64; then
9802 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9803 allow_undefined_flag_CXX="-z nodefs"
9804 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"
9805 else
9806 # Determine the default libpath from the value encoded in an empty executable.
9807 cat >conftest.$ac_ext <<_ACEOF
9808#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009809/* confdefs.h. */
9810_ACEOF
9811cat confdefs.h >>conftest.$ac_ext
9812cat >>conftest.$ac_ext <<_ACEOF
9813/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009814
John Criswell47fdd832003-07-14 16:52:07 +00009815int
9816main ()
9817{
9818
9819 ;
9820 return 0;
9821}
9822_ACEOF
9823rm -f conftest.$ac_objext conftest$ac_exeext
9824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825 (eval $ac_link) 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -s conftest$ac_exeext'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; }; then
9835
9836aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9837}'`
9838# Check for a 64-bit object if we didn't find anything.
9839if 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; }
9840}'`; fi
9841else
9842 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009843sed 's/^/| /' conftest.$ac_ext >&5
9844
John Criswell47fdd832003-07-14 16:52:07 +00009845fi
9846rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9847if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9848
9849 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9850 # Warning - without using the other run time loading flags,
9851 # -berok will link without error, but may produce a broken library.
9852 no_undefined_flag_CXX=' ${wl}-bernotok'
9853 allow_undefined_flag_CXX=' ${wl}-berok'
9854 # -bexpall does not export symbols beginning with underscore (_)
9855 always_export_symbols_CXX=yes
9856 # Exported symbols can be pulled into shared objects from archives
9857 whole_archive_flag_spec_CXX=' '
9858 archive_cmds_need_lc_CXX=yes
9859 # This is similar to how AIX traditionally builds it's shared libraries.
9860 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'
9861 fi
9862 fi
9863 ;;
9864 chorus*)
9865 case $cc_basename in
9866 *)
9867 # FIXME: insert proper C++ library support
9868 ld_shlibs_CXX=no
9869 ;;
9870 esac
9871 ;;
9872
9873 cygwin* | mingw* | pw32*)
9874 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9875 # as there is no search path for DLLs.
9876 hardcode_libdir_flag_spec_CXX='-L$libdir'
9877 allow_undefined_flag_CXX=unsupported
9878 always_export_symbols_CXX=no
9879 enable_shared_with_static_runtimes_CXX=yes
9880
9881 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9882 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'
9883 # If the export-symbols file already is a .def file (1st line
9884 # is EXPORTS), use it as is; otherwise, prepend...
9885 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9886 cp $export_symbols $output_objdir/$soname.def;
9887 else
9888 echo EXPORTS > $output_objdir/$soname.def;
9889 cat $export_symbols >> $output_objdir/$soname.def;
9890 fi~
9891 $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'
9892 else
9893 ld_shlibs_CXX=no
9894 fi
9895 ;;
9896
9897 darwin* | rhapsody*)
9898 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9899 archive_cmds_need_lc_CXX=no
9900 case "$host_os" in
9901 rhapsody* | darwin1.[012])
9902 allow_undefined_flag_CXX='-undefined suppress'
9903 ;;
9904 *) # Darwin 1.3 on
9905 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9906 ;;
9907 esac
9908 lt_int_apple_cc_single_mod=no
9909 output_verbose_link_cmd='echo'
9910 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9911 lt_int_apple_cc_single_mod=yes
9912 fi
9913 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9914 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9915 else
9916 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'
9917 fi
9918 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9919
9920 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9921 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9922 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}'
9923 else
9924 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}'
9925 fi
9926 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}'
9927 hardcode_direct_CXX=no
9928 hardcode_automatic_CXX=yes
9929 hardcode_shlibpath_var_CXX=unsupported
9930 whole_archive_flag_spec_CXX='-all_load $convenience'
9931 link_all_deplibs_CXX=yes
9932 fi
9933 ;;
9934
9935 dgux*)
9936 case $cc_basename in
9937 ec++)
9938 # FIXME: insert proper C++ library support
9939 ld_shlibs_CXX=no
9940 ;;
9941 ghcx)
9942 # Green Hills C++ Compiler
9943 # FIXME: insert proper C++ library support
9944 ld_shlibs_CXX=no
9945 ;;
9946 *)
9947 # FIXME: insert proper C++ library support
9948 ld_shlibs_CXX=no
9949 ;;
9950 esac
9951 ;;
9952 freebsd12*)
9953 # C++ shared libraries reported to be fairly broken before switch to ELF
9954 ld_shlibs_CXX=no
9955 ;;
9956 freebsd-elf*)
9957 archive_cmds_need_lc_CXX=no
9958 ;;
9959 freebsd*)
9960 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9961 # conventions
9962 ld_shlibs_CXX=yes
9963 ;;
9964 gnu*)
9965 ;;
9966 hpux9*)
9967 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9968 hardcode_libdir_separator_CXX=:
9969 export_dynamic_flag_spec_CXX='${wl}-E'
9970 hardcode_direct_CXX=yes
9971 hardcode_minus_L_CXX=yes # Not in the search PATH,
9972 # but as the default
9973 # location of the library.
9974
9975 case $cc_basename in
9976 CC)
9977 # FIXME: insert proper C++ library support
9978 ld_shlibs_CXX=no
9979 ;;
9980 aCC)
9981 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'
9982 # Commands to make compiler produce verbose output that lists
9983 # what "hidden" libraries, object files and flags are used when
9984 # linking a shared library.
9985 #
9986 # There doesn't appear to be a way to prevent this compiler from
9987 # explicitly linking system object files so we need to strip them
9988 # from the output so that they don't get included in the library
9989 # dependencies.
9990 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'
9991 ;;
9992 *)
9993 if test "$GXX" = yes; then
9994 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'
9995 else
9996 # FIXME: insert proper C++ library support
9997 ld_shlibs_CXX=no
9998 fi
9999 ;;
10000 esac
10001 ;;
10002 hpux10*|hpux11*)
10003 if test $with_gnu_ld = no; then
10004 case "$host_cpu" in
10005 hppa*64*)
10006 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10007 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10008 hardcode_libdir_separator_CXX=:
10009 ;;
10010 ia64*)
10011 hardcode_libdir_flag_spec_CXX='-L$libdir'
10012 ;;
10013 *)
10014 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10015 hardcode_libdir_separator_CXX=:
10016 export_dynamic_flag_spec_CXX='${wl}-E'
10017 ;;
10018 esac
10019 fi
10020 case "$host_cpu" in
10021 hppa*64*)
10022 hardcode_direct_CXX=no
10023 hardcode_shlibpath_var_CXX=no
10024 ;;
10025 ia64*)
10026 hardcode_direct_CXX=no
10027 hardcode_shlibpath_var_CXX=no
10028 hardcode_minus_L_CXX=yes # Not in the search PATH,
10029 # but as the default
10030 # location of the library.
10031 ;;
10032 *)
10033 hardcode_direct_CXX=yes
10034 hardcode_minus_L_CXX=yes # Not in the search PATH,
10035 # but as the default
10036 # location of the library.
10037 ;;
10038 esac
10039
10040 case $cc_basename in
10041 CC)
10042 # FIXME: insert proper C++ library support
10043 ld_shlibs_CXX=no
10044 ;;
10045 aCC)
10046 case "$host_cpu" in
10047 hppa*64*|ia64*)
10048 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10049 ;;
10050 *)
10051 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10052 ;;
10053 esac
10054 # Commands to make compiler produce verbose output that lists
10055 # what "hidden" libraries, object files and flags are used when
10056 # linking a shared library.
10057 #
10058 # There doesn't appear to be a way to prevent this compiler from
10059 # explicitly linking system object files so we need to strip them
10060 # from the output so that they don't get included in the library
10061 # dependencies.
10062 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'
10063 ;;
10064 *)
10065 if test "$GXX" = yes; then
10066 if test $with_gnu_ld = no; then
10067 case "$host_cpu" in
10068 ia64*|hppa*64*)
10069 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10070 ;;
10071 *)
10072 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'
10073 ;;
10074 esac
10075 fi
10076 else
10077 # FIXME: insert proper C++ library support
10078 ld_shlibs_CXX=no
10079 fi
10080 ;;
10081 esac
10082 ;;
10083 irix5* | irix6*)
10084 case $cc_basename in
10085 CC)
10086 # SGI C++
10087 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'
10088
10089 # Archives containing C++ object files must be created using
10090 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10091 # necessary to make sure instantiated templates are included
10092 # in the archive.
10093 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10094 ;;
10095 *)
10096 if test "$GXX" = yes; then
10097 if test "$with_gnu_ld" = no; then
10098 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'
10099 else
10100 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'
10101 fi
10102 fi
10103 link_all_deplibs_CXX=yes
10104 ;;
10105 esac
10106 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10107 hardcode_libdir_separator_CXX=:
10108 ;;
10109 linux*)
10110 case $cc_basename in
10111 KCC)
10112 # Kuck and Associates, Inc. (KAI) C++ Compiler
10113
10114 # KCC will only create a shared library if the output file
10115 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10116 # to its proper name (with version) after linking.
10117 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'
10118 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'
10119 # Commands to make compiler produce verbose output that lists
10120 # what "hidden" libraries, object files and flags are used when
10121 # linking a shared library.
10122 #
10123 # There doesn't appear to be a way to prevent this compiler from
10124 # explicitly linking system object files so we need to strip them
10125 # from the output so that they don't get included in the library
10126 # dependencies.
10127 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'
10128
10129 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10130 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10131
10132 # Archives containing C++ object files must be created using
10133 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10134 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10135 ;;
10136 icpc)
10137 # Intel C++
10138 with_gnu_ld=yes
10139 archive_cmds_need_lc_CXX=no
10140 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10141 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'
10142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10143 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10144 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10145 ;;
10146 cxx)
10147 # Compaq C++
10148 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10149 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'
10150
10151 runpath_var=LD_RUN_PATH
10152 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10153 hardcode_libdir_separator_CXX=:
10154
10155 # Commands to make compiler produce verbose output that lists
10156 # what "hidden" libraries, object files and flags are used when
10157 # linking a shared library.
10158 #
10159 # There doesn't appear to be a way to prevent this compiler from
10160 # explicitly linking system object files so we need to strip them
10161 # from the output so that they don't get included in the library
10162 # dependencies.
10163 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'
10164 ;;
10165 esac
10166 ;;
10167 lynxos*)
10168 # FIXME: insert proper C++ library support
10169 ld_shlibs_CXX=no
10170 ;;
10171 m88k*)
10172 # FIXME: insert proper C++ library support
10173 ld_shlibs_CXX=no
10174 ;;
10175 mvs*)
10176 case $cc_basename in
10177 cxx)
10178 # FIXME: insert proper C++ library support
10179 ld_shlibs_CXX=no
10180 ;;
10181 *)
10182 # FIXME: insert proper C++ library support
10183 ld_shlibs_CXX=no
10184 ;;
10185 esac
10186 ;;
10187 netbsd*)
10188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10189 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10190 wlarc=
10191 hardcode_libdir_flag_spec_CXX='-R$libdir'
10192 hardcode_direct_CXX=yes
10193 hardcode_shlibpath_var_CXX=no
10194 fi
10195 # Workaround some broken pre-1.5 toolchains
10196 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10197 ;;
10198 osf3*)
10199 case $cc_basename in
10200 KCC)
10201 # Kuck and Associates, Inc. (KAI) C++ Compiler
10202
10203 # KCC will only create a shared library if the output file
10204 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10205 # to its proper name (with version) after linking.
10206 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10207
10208 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10209 hardcode_libdir_separator_CXX=:
10210
10211 # Archives containing C++ object files must be created using
10212 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10213 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10214
10215 ;;
10216 RCC)
10217 # Rational C++ 2.4.1
10218 # FIXME: insert proper C++ library support
10219 ld_shlibs_CXX=no
10220 ;;
10221 cxx)
10222 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10223 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'
10224
10225 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10226 hardcode_libdir_separator_CXX=:
10227
10228 # Commands to make compiler produce verbose output that lists
10229 # what "hidden" libraries, object files and flags are used when
10230 # linking a shared library.
10231 #
10232 # There doesn't appear to be a way to prevent this compiler from
10233 # explicitly linking system object files so we need to strip them
10234 # from the output so that they don't get included in the library
10235 # dependencies.
10236 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'
10237 ;;
10238 *)
10239 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10240 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10241 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'
10242
10243 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10244 hardcode_libdir_separator_CXX=:
10245
10246 # Commands to make compiler produce verbose output that lists
10247 # what "hidden" libraries, object files and flags are used when
10248 # linking a shared library.
10249 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10250
10251 else
10252 # FIXME: insert proper C++ library support
10253 ld_shlibs_CXX=no
10254 fi
10255 ;;
10256 esac
10257 ;;
10258 osf4* | osf5*)
10259 case $cc_basename in
10260 KCC)
10261 # Kuck and Associates, Inc. (KAI) C++ Compiler
10262
10263 # KCC will only create a shared library if the output file
10264 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10265 # to its proper name (with version) after linking.
10266 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'
10267
10268 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10269 hardcode_libdir_separator_CXX=:
10270
10271 # Archives containing C++ object files must be created using
10272 # the KAI C++ compiler.
10273 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10274 ;;
10275 RCC)
10276 # Rational C++ 2.4.1
10277 # FIXME: insert proper C++ library support
10278 ld_shlibs_CXX=no
10279 ;;
10280 cxx)
10281 allow_undefined_flag_CXX=' -expect_unresolved \*'
10282 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'
10283 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10284 echo "-hidden">> $lib.exp~
10285 $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~
10286 $rm $lib.exp'
10287
10288 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10289 hardcode_libdir_separator_CXX=:
10290
10291 # Commands to make compiler produce verbose output that lists
10292 # what "hidden" libraries, object files and flags are used when
10293 # linking a shared library.
10294 #
10295 # There doesn't appear to be a way to prevent this compiler from
10296 # explicitly linking system object files so we need to strip them
10297 # from the output so that they don't get included in the library
10298 # dependencies.
10299 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'
10300 ;;
10301 *)
10302 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10303 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10304 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'
10305
10306 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10307 hardcode_libdir_separator_CXX=:
10308
10309 # Commands to make compiler produce verbose output that lists
10310 # what "hidden" libraries, object files and flags are used when
10311 # linking a shared library.
10312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10313
10314 else
10315 # FIXME: insert proper C++ library support
10316 ld_shlibs_CXX=no
10317 fi
10318 ;;
10319 esac
10320 ;;
10321 psos*)
10322 # FIXME: insert proper C++ library support
10323 ld_shlibs_CXX=no
10324 ;;
10325 sco*)
10326 archive_cmds_need_lc_CXX=no
10327 case $cc_basename in
10328 CC)
10329 # FIXME: insert proper C++ library support
10330 ld_shlibs_CXX=no
10331 ;;
10332 *)
10333 # FIXME: insert proper C++ library support
10334 ld_shlibs_CXX=no
10335 ;;
10336 esac
10337 ;;
10338 sunos4*)
10339 case $cc_basename in
10340 CC)
10341 # Sun C++ 4.x
10342 # FIXME: insert proper C++ library support
10343 ld_shlibs_CXX=no
10344 ;;
10345 lcc)
10346 # Lucid
10347 # FIXME: insert proper C++ library support
10348 ld_shlibs_CXX=no
10349 ;;
10350 *)
10351 # FIXME: insert proper C++ library support
10352 ld_shlibs_CXX=no
10353 ;;
10354 esac
10355 ;;
10356 solaris*)
10357 case $cc_basename in
10358 CC)
10359 # Sun C++ 4.2, 5.x and Centerline C++
10360 no_undefined_flag_CXX=' -zdefs'
10361 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10362 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10363 $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'
10364
10365 hardcode_libdir_flag_spec_CXX='-R$libdir'
10366 hardcode_shlibpath_var_CXX=no
10367 case $host_os in
10368 solaris2.0-5 | solaris2.0-5.*) ;;
10369 *)
10370 # The C++ compiler is used as linker so we must use $wl
10371 # flag to pass the commands to the underlying system
10372 # linker.
10373 # Supported since Solaris 2.6 (maybe 2.5.1?)
10374 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10375 ;;
10376 esac
10377 link_all_deplibs_CXX=yes
10378
10379 # Commands to make compiler produce verbose output that lists
10380 # what "hidden" libraries, object files and flags are used when
10381 # linking a shared library.
10382 #
10383 # There doesn't appear to be a way to prevent this compiler from
10384 # explicitly linking system object files so we need to strip them
10385 # from the output so that they don't get included in the library
10386 # dependencies.
10387 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'
10388
10389 # Archives containing C++ object files must be created using
10390 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10391 # necessary to make sure instantiated templates are included
10392 # in the archive.
10393 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10394 ;;
10395 gcx)
10396 # Green Hills C++ Compiler
10397 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10398
10399 # The C++ compiler must be used to create the archive.
10400 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10401 ;;
10402 *)
10403 # GNU C++ compiler with Solaris linker
10404 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10405 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10406 if $CC --version | grep -v '^2\.7' > /dev/null; then
10407 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10408 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10409 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10410
10411 # Commands to make compiler produce verbose output that lists
10412 # what "hidden" libraries, object files and flags are used when
10413 # linking a shared library.
10414 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10415 else
10416 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10417 # platform.
10418 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10419 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10420 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10421
10422 # Commands to make compiler produce verbose output that lists
10423 # what "hidden" libraries, object files and flags are used when
10424 # linking a shared library.
10425 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10426 fi
10427
10428 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10429 fi
10430 ;;
10431 esac
10432 ;;
10433 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10434 archive_cmds_need_lc_CXX=no
10435 ;;
10436 tandem*)
10437 case $cc_basename in
10438 NCC)
10439 # NonStop-UX NCC 3.20
10440 # FIXME: insert proper C++ library support
10441 ld_shlibs_CXX=no
10442 ;;
10443 *)
10444 # FIXME: insert proper C++ library support
10445 ld_shlibs_CXX=no
10446 ;;
10447 esac
10448 ;;
10449 vxworks*)
10450 # FIXME: insert proper C++ library support
10451 ld_shlibs_CXX=no
10452 ;;
10453 *)
10454 # FIXME: insert proper C++ library support
10455 ld_shlibs_CXX=no
10456 ;;
10457esac
10458echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10459echo "${ECHO_T}$ld_shlibs_CXX" >&6
10460test "$ld_shlibs_CXX" = no && can_build_shared=no
10461
10462GCC_CXX="$GXX"
10463LD_CXX="$LD"
10464
10465## CAVEAT EMPTOR:
10466## There is no encapsulation within the following macros, do not change
10467## the running order or otherwise move them around unless you know exactly
10468## what you are doing...
10469
10470cat > conftest.$ac_ext <<EOF
10471class Foo
10472{
10473public:
10474 Foo (void) { a = 0; }
10475private:
10476 int a;
10477};
10478EOF
10479
10480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10481 (eval $ac_compile) 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; then
10485 # Parse the compiler output and extract the necessary
10486 # objects, libraries and library flags.
10487
10488 # Sentinel used to keep track of whether or not we are before
10489 # the conftest object file.
10490 pre_test_object_deps_done=no
10491
10492 # The `*' in the case matches for architectures that use `case' in
10493 # $output_verbose_cmd can trigger glob expansion during the loop
10494 # eval without this substitution.
10495 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10496
10497 for p in `eval $output_verbose_link_cmd`; do
10498 case $p in
10499
10500 -L* | -R* | -l*)
10501 # Some compilers place space between "-{L,R}" and the path.
10502 # Remove the space.
10503 if test $p = "-L" \
10504 || test $p = "-R"; then
10505 prev=$p
10506 continue
10507 else
10508 prev=
10509 fi
10510
10511 if test "$pre_test_object_deps_done" = no; then
10512 case $p in
10513 -L* | -R*)
10514 # Internal compiler library paths should come after those
10515 # provided the user. The postdeps already come after the
10516 # user supplied libs so there is no need to process them.
10517 if test -z "$compiler_lib_search_path_CXX"; then
10518 compiler_lib_search_path_CXX="${prev}${p}"
10519 else
10520 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10521 fi
10522 ;;
10523 # The "-l" case would never come before the object being
10524 # linked, so don't bother handling this case.
10525 esac
10526 else
10527 if test -z "$postdeps_CXX"; then
10528 postdeps_CXX="${prev}${p}"
10529 else
10530 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10531 fi
10532 fi
10533 ;;
10534
10535 *.$objext)
10536 # This assumes that the test object file only shows up
10537 # once in the compiler output.
10538 if test "$p" = "conftest.$objext"; then
10539 pre_test_object_deps_done=yes
10540 continue
10541 fi
10542
10543 if test "$pre_test_object_deps_done" = no; then
10544 if test -z "$predep_objects_CXX"; then
10545 predep_objects_CXX="$p"
10546 else
10547 predep_objects_CXX="$predep_objects_CXX $p"
10548 fi
10549 else
10550 if test -z "$postdep_objects_CXX"; then
10551 postdep_objects_CXX="$p"
10552 else
10553 postdep_objects_CXX="$postdep_objects_CXX $p"
10554 fi
10555 fi
10556 ;;
10557
10558 *) ;; # Ignore the rest.
10559
10560 esac
10561 done
10562
10563 # Clean up.
10564 rm -f a.out a.exe
10565else
10566 echo "libtool.m4: error: problem compiling CXX test program"
10567fi
10568
10569$rm -f confest.$objext
10570
10571case " $postdeps_CXX " in
10572*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10573esac
10574
10575lt_prog_compiler_wl_CXX=
10576lt_prog_compiler_pic_CXX=
10577lt_prog_compiler_static_CXX=
10578
10579echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10580echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10581
10582 # C++ specific cases for pic, static, wl, etc.
10583 if test "$GXX" = yes; then
10584 lt_prog_compiler_wl_CXX='-Wl,'
10585 lt_prog_compiler_static_CXX='-static'
10586
10587 case $host_os in
10588 aix*)
10589 # All AIX code is PIC.
10590 if test "$host_cpu" = ia64; then
10591 # AIX 5 now supports IA64 processor
10592 lt_prog_compiler_static_CXX='-Bstatic'
10593 fi
10594 ;;
10595 amigaos*)
10596 # FIXME: we need at least 68020 code to build shared libraries, but
10597 # adding the `-m68020' flag to GCC prevents building anything better,
10598 # like `-m68040'.
10599 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10600 ;;
10601 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10602 # PIC is the default for these OSes.
10603 ;;
10604 mingw* | os2* | pw32*)
10605 # This hack is so that the source file can tell whether it is being
10606 # built for inclusion in a dll (and should export symbols for example).
10607 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10608 ;;
10609 darwin* | rhapsody*)
10610 # PIC is the default on this platform
10611 # Common symbols not allowed in MH_DYLIB files
10612 lt_prog_compiler_pic_CXX='-fno-common'
10613 ;;
10614 *djgpp*)
10615 # DJGPP does not support shared libraries at all
10616 lt_prog_compiler_pic_CXX=
10617 ;;
10618 sysv4*MP*)
10619 if test -d /usr/nec; then
10620 lt_prog_compiler_pic_CXX=-Kconform_pic
10621 fi
10622 ;;
10623 hpux*)
10624 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10625 # not for PA HP-UX.
10626 case "$host_cpu" in
10627 hppa*64*|ia64*)
10628 ;;
10629 *)
10630 lt_prog_compiler_pic_CXX='-fPIC'
10631 ;;
10632 esac
10633 ;;
10634 *)
10635 lt_prog_compiler_pic_CXX='-fPIC'
10636 ;;
10637 esac
10638 else
10639 case $host_os in
10640 aix4* | aix5*)
10641 # All AIX code is PIC.
10642 if test "$host_cpu" = ia64; then
10643 # AIX 5 now supports IA64 processor
10644 lt_prog_compiler_static_CXX='-Bstatic'
10645 else
10646 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10647 fi
10648 ;;
10649 chorus*)
10650 case $cc_basename in
10651 cxch68)
10652 # Green Hills C++ Compiler
10653 # _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"
10654 ;;
10655 esac
10656 ;;
10657 dgux*)
10658 case $cc_basename in
10659 ec++)
10660 lt_prog_compiler_pic_CXX='-KPIC'
10661 ;;
10662 ghcx)
10663 # Green Hills C++ Compiler
10664 lt_prog_compiler_pic_CXX='-pic'
10665 ;;
10666 *)
10667 ;;
10668 esac
10669 ;;
10670 freebsd*)
10671 # FreeBSD uses GNU C++
10672 ;;
10673 hpux9* | hpux10* | hpux11*)
10674 case $cc_basename in
10675 CC)
10676 lt_prog_compiler_wl_CXX='-Wl,'
10677 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10678 if test "$host_cpu" != ia64; then
10679 lt_prog_compiler_pic_CXX='+Z'
10680 fi
10681 ;;
10682 aCC)
10683 lt_prog_compiler_wl_CXX='-Wl,'
10684 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10685 case "$host_cpu" in
10686 hppa*64*|ia64*)
10687 # +Z the default
10688 ;;
10689 *)
10690 lt_prog_compiler_pic_CXX='+Z'
10691 ;;
10692 esac
10693 ;;
10694 *)
10695 ;;
10696 esac
10697 ;;
10698 irix5* | irix6* | nonstopux*)
10699 case $cc_basename in
10700 CC)
10701 lt_prog_compiler_wl_CXX='-Wl,'
10702 lt_prog_compiler_static_CXX='-non_shared'
10703 # CC pic flag -KPIC is the default.
10704 ;;
10705 *)
10706 ;;
10707 esac
10708 ;;
10709 linux*)
10710 case $cc_basename in
10711 KCC)
10712 # KAI C++ Compiler
10713 lt_prog_compiler_wl_CXX='--backend -Wl,'
10714 lt_prog_compiler_pic_CXX='-fPIC'
10715 ;;
10716 icpc)
10717 # Intel C++
10718 lt_prog_compiler_wl_CXX='-Wl,'
10719 lt_prog_compiler_pic_CXX='-KPIC'
10720 lt_prog_compiler_static_CXX='-static'
10721 ;;
10722 cxx)
10723 # Compaq C++
10724 # Make sure the PIC flag is empty. It appears that all Alpha
10725 # Linux and Compaq Tru64 Unix objects are PIC.
10726 lt_prog_compiler_pic_CXX=
10727 lt_prog_compiler_static_CXX='-non_shared'
10728 ;;
10729 *)
10730 ;;
10731 esac
10732 ;;
10733 lynxos*)
10734 ;;
10735 m88k*)
10736 ;;
10737 mvs*)
10738 case $cc_basename in
10739 cxx)
10740 lt_prog_compiler_pic_CXX='-W c,exportall'
10741 ;;
10742 *)
10743 ;;
10744 esac
10745 ;;
10746 netbsd*)
10747 ;;
10748 osf3* | osf4* | osf5*)
10749 case $cc_basename in
10750 KCC)
10751 lt_prog_compiler_wl_CXX='--backend -Wl,'
10752 ;;
10753 RCC)
10754 # Rational C++ 2.4.1
10755 lt_prog_compiler_pic_CXX='-pic'
10756 ;;
10757 cxx)
10758 # Digital/Compaq C++
10759 lt_prog_compiler_wl_CXX='-Wl,'
10760 # Make sure the PIC flag is empty. It appears that all Alpha
10761 # Linux and Compaq Tru64 Unix objects are PIC.
10762 lt_prog_compiler_pic_CXX=
10763 lt_prog_compiler_static_CXX='-non_shared'
10764 ;;
10765 *)
10766 ;;
10767 esac
10768 ;;
10769 psos*)
10770 ;;
10771 sco*)
10772 case $cc_basename in
10773 CC)
10774 lt_prog_compiler_pic_CXX='-fPIC'
10775 ;;
10776 *)
10777 ;;
10778 esac
10779 ;;
10780 solaris*)
10781 case $cc_basename in
10782 CC)
10783 # Sun C++ 4.2, 5.x and Centerline C++
10784 lt_prog_compiler_pic_CXX='-KPIC'
10785 lt_prog_compiler_static_CXX='-Bstatic'
10786 lt_prog_compiler_wl_CXX='-Qoption ld '
10787 ;;
10788 gcx)
10789 # Green Hills C++ Compiler
10790 lt_prog_compiler_pic_CXX='-PIC'
10791 ;;
10792 *)
10793 ;;
10794 esac
10795 ;;
10796 sunos4*)
10797 case $cc_basename in
10798 CC)
10799 # Sun C++ 4.x
10800 lt_prog_compiler_pic_CXX='-pic'
10801 lt_prog_compiler_static_CXX='-Bstatic'
10802 ;;
10803 lcc)
10804 # Lucid
10805 lt_prog_compiler_pic_CXX='-pic'
10806 ;;
10807 *)
10808 ;;
10809 esac
10810 ;;
10811 tandem*)
10812 case $cc_basename in
10813 NCC)
10814 # NonStop-UX NCC 3.20
10815 lt_prog_compiler_pic_CXX='-KPIC'
10816 ;;
10817 *)
10818 ;;
10819 esac
10820 ;;
10821 unixware*)
10822 ;;
10823 vxworks*)
10824 ;;
10825 *)
10826 lt_prog_compiler_can_build_shared_CXX=no
10827 ;;
10828 esac
10829 fi
10830
10831echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10832echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10833
10834#
10835# Check to make sure the PIC flag actually works.
10836#
10837if test -n "$lt_prog_compiler_pic_CXX"; then
10838 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10839echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10840if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10842else
10843 lt_prog_compiler_pic_works_CXX=no
10844 ac_outfile=conftest.$ac_objext
10845 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10846 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10847 # Insert the option either (1) after the last *FLAGS variable, or
10848 # (2) before a word containing "conftest.", or (3) at the end.
10849 # Note that $ac_compile itself does not contain backslashes and begins
10850 # with a dollar sign (not a hyphen), so the echo should work correctly.
10851 # The option is referenced via a variable to avoid confusing sed.
10852 lt_compile=`echo "$ac_compile" | $SED \
10853 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10855 -e 's:$: $lt_compiler_flag:'`
Brian Gaekef3b24102003-11-16 18:38:14 +000010856 (eval echo "\"\$as_me:10856: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010857 (eval "$lt_compile" 2>conftest.err)
10858 ac_status=$?
10859 cat conftest.err >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000010860 echo "$as_me:10860: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010861 if (exit $ac_status) && test -s "$ac_outfile"; then
10862 # The compiler can only warn and ignore the option if not recognized
10863 # So say no if there are warnings
10864 if test ! -s conftest.err; then
10865 lt_prog_compiler_pic_works_CXX=yes
10866 fi
10867 fi
10868 $rm conftest*
10869
10870fi
10871echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10872echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10873
10874if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10875 case $lt_prog_compiler_pic_CXX in
10876 "" | " "*) ;;
10877 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10878 esac
10879else
10880 lt_prog_compiler_pic_CXX=
10881 lt_prog_compiler_can_build_shared_CXX=no
10882fi
10883
10884fi
10885case "$host_os" in
10886 # For platforms which do not support PIC, -DPIC is meaningless:
10887 *djgpp*)
10888 lt_prog_compiler_pic_CXX=
10889 ;;
10890 *)
10891 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10892 ;;
10893esac
10894
10895echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10896echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10897if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10899else
10900 lt_cv_prog_compiler_c_o_CXX=no
10901 $rm -r conftest 2>/dev/null
10902 mkdir conftest
10903 cd conftest
10904 mkdir out
10905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10906
10907 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10908 # that will create temporary files in the current directory regardless of
10909 # the output directory. Thus, making CWD read-only will cause this test
10910 # to fail, enabling locking or at least warning the user not to do parallel
10911 # builds.
10912 chmod -w .
10913
10914 lt_compiler_flag="-o out/conftest2.$ac_objext"
10915 # Insert the option either (1) after the last *FLAGS variable, or
10916 # (2) before a word containing "conftest.", or (3) at the end.
10917 # Note that $ac_compile itself does not contain backslashes and begins
10918 # with a dollar sign (not a hyphen), so the echo should work correctly.
10919 lt_compile=`echo "$ac_compile" | $SED \
10920 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10922 -e 's:$: $lt_compiler_flag:'`
Brian Gaekef3b24102003-11-16 18:38:14 +000010923 (eval echo "\"\$as_me:10923: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010924 (eval "$lt_compile" 2>out/conftest.err)
10925 ac_status=$?
10926 cat out/conftest.err >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000010927 echo "$as_me:10927: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10929 then
10930 # The compiler can only warn and ignore the option if not recognized
10931 # So say no if there are warnings
10932 if test ! -s out/conftest.err; then
10933 lt_cv_prog_compiler_c_o_CXX=yes
10934 fi
10935 fi
10936 chmod u+w .
10937 $rm conftest* out/*
10938 rmdir out
10939 cd ..
10940 rmdir conftest
10941 $rm conftest*
10942
10943fi
10944echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10945echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10946
10947
10948hard_links="nottested"
10949if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10950 # do not overwrite the value of need_locks provided by the user
10951 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10952echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10953 hard_links=yes
10954 $rm conftest*
10955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10956 touch conftest.a
10957 ln conftest.a conftest.b 2>&5 || hard_links=no
10958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10959 echo "$as_me:$LINENO: result: $hard_links" >&5
10960echo "${ECHO_T}$hard_links" >&6
10961 if test "$hard_links" = no; then
10962 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10963echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10964 need_locks=warn
10965 fi
10966else
10967 need_locks=no
10968fi
10969
10970echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10971echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10972
10973 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10974 case $host_os in
10975 aix4* | aix5*)
10976 # If we're using GNU nm, then we don't want the "-C" option.
10977 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10978 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10979 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'
10980 else
10981 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'
10982 fi
10983 ;;
10984 pw32*)
10985 export_symbols_cmds_CXX="$ltdll_cmds"
10986 ;;
10987 cygwin* | mingw*)
10988 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10989 ;;
10990 *)
10991 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10992 ;;
10993 esac
10994
10995echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10996echo "${ECHO_T}$ld_shlibs_CXX" >&6
10997test "$ld_shlibs_CXX" = no && can_build_shared=no
10998
10999variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11000if test "$GCC" = yes; then
11001 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11002fi
11003
11004#
11005# Do we need to explicitly link libc?
11006#
11007case "x$archive_cmds_need_lc_CXX" in
11008x|xyes)
11009 # Assume -lc should be added
11010 archive_cmds_need_lc_CXX=yes
11011
11012 if test "$enable_shared" = yes && test "$GCC" = yes; then
11013 case $archive_cmds_CXX in
11014 *'~'*)
11015 # FIXME: we may have to deal with multi-command sequences.
11016 ;;
11017 '$CC '*)
11018 # Test whether the compiler implicitly links with -lc since on some
11019 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11020 # to ld, don't add -lc before -lgcc.
11021 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11022echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11023 $rm conftest*
11024 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11025
11026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11027 (eval $ac_compile) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } 2>conftest.err; then
11031 soname=conftest
11032 lib=conftest
11033 libobjs=conftest.$ac_objext
11034 deplibs=
11035 wl=$lt_prog_compiler_wl_CXX
11036 compiler_flags=-v
11037 linker_flags=-v
11038 verstring=
11039 output_objdir=.
11040 libname=conftest
11041 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11042 allow_undefined_flag_CXX=
11043 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11044 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }
11048 then
11049 archive_cmds_need_lc_CXX=no
11050 else
11051 archive_cmds_need_lc_CXX=yes
11052 fi
11053 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11054 else
11055 cat conftest.err 1>&5
11056 fi
11057 $rm conftest*
11058 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11059echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11060 ;;
11061 esac
11062 fi
11063 ;;
11064esac
11065
11066echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11067echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11068hardcode_action_CXX=
11069if test -n "$hardcode_libdir_flag_spec_CXX" || \
11070 test -n "$runpath_var CXX" || \
11071 test "X$hardcode_automatic_CXX"="Xyes" ; then
11072
11073 # We can hardcode non-existant directories.
11074 if test "$hardcode_direct_CXX" != no &&
11075 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11076 # have to relink, otherwise we might link with an installed library
11077 # when we should be linking with a yet-to-be-installed one
11078 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11079 test "$hardcode_minus_L_CXX" != no; then
11080 # Linking always hardcodes the temporary library directory.
11081 hardcode_action_CXX=relink
11082 else
11083 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11084 hardcode_action_CXX=immediate
11085 fi
11086else
11087 # We cannot hardcode anything, or else we can only hardcode existing
11088 # directories.
11089 hardcode_action_CXX=unsupported
11090fi
11091echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11092echo "${ECHO_T}$hardcode_action_CXX" >&6
11093
11094if test "$hardcode_action_CXX" = relink; then
11095 # Fast installation is not supported
11096 enable_fast_install=no
11097elif test "$shlibpath_overrides_runpath" = yes ||
11098 test "$enable_shared" = no; then
11099 # Fast installation is not necessary
11100 enable_fast_install=needless
11101fi
11102
11103striplib=
11104old_striplib=
11105echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11106echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11107if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11108 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11109 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11110 echo "$as_me:$LINENO: result: yes" >&5
11111echo "${ECHO_T}yes" >&6
11112else
11113# FIXME - insert some real tests, host_os isn't really good enough
11114 case $host_os in
11115 darwin*)
11116 if test -n "$STRIP" ; then
11117 striplib="$STRIP -x"
11118 echo "$as_me:$LINENO: result: yes" >&5
11119echo "${ECHO_T}yes" >&6
11120 else
11121 echo "$as_me:$LINENO: result: no" >&5
11122echo "${ECHO_T}no" >&6
11123fi
11124 ;;
11125 *)
11126 echo "$as_me:$LINENO: result: no" >&5
11127echo "${ECHO_T}no" >&6
11128 ;;
11129 esac
11130fi
11131
11132echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11133echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11134library_names_spec=
11135libname_spec='lib$name'
11136soname_spec=
11137shrext=".so"
11138postinstall_cmds=
11139postuninstall_cmds=
11140finish_cmds=
11141finish_eval=
11142shlibpath_var=
11143shlibpath_overrides_runpath=unknown
11144version_type=none
11145dynamic_linker="$host_os ld.so"
11146sys_lib_dlsearch_path_spec="/lib /usr/lib"
11147if test "$GCC" = yes; then
11148 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11149 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11150 # if the path contains ";" then we assume it to be the separator
11151 # otherwise default to the standard path separator (i.e. ":") - it is
11152 # assumed that no part of a normal pathname contains ";" but that should
11153 # okay in the real world where ";" in dirpaths is itself problematic.
11154 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11155 else
11156 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11157 fi
11158else
11159 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11160fi
11161need_lib_prefix=unknown
11162hardcode_into_libs=no
11163
11164# when you set need_version to no, make sure it does not cause -set_version
11165# flags to be left without arguments
11166need_version=unknown
11167
11168case $host_os in
11169aix3*)
11170 version_type=linux
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11172 shlibpath_var=LIBPATH
11173
11174 # AIX 3 has no versioning support, so we append a major version to the name.
11175 soname_spec='${libname}${release}${shared_ext}$major'
11176 ;;
11177
11178aix4* | aix5*)
11179 version_type=linux
11180 need_lib_prefix=no
11181 need_version=no
11182 hardcode_into_libs=yes
11183 if test "$host_cpu" = ia64; then
11184 # AIX 5 supports IA64
11185 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 else
11188 # With GCC up to 2.95.x, collect2 would create an import file
11189 # for dependence libraries. The import file would start with
11190 # the line `#! .'. This would cause the generated library to
11191 # depend on `.', always an invalid library. This was fixed in
11192 # development snapshots of GCC prior to 3.0.
11193 case $host_os in
11194 aix4 | aix4.[01] | aix4.[01].*)
11195 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11196 echo ' yes '
11197 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11198 :
11199 else
11200 can_build_shared=no
11201 fi
11202 ;;
11203 esac
11204 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11205 # soname into executable. Probably we can add versioning support to
11206 # collect2, so additional links can be useful in future.
11207 if test "$aix_use_runtimelinking" = yes; then
11208 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11209 # instead of lib<name>.a to let people know that these are not
11210 # typical AIX shared libraries.
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11212 else
11213 # We preserve .a as extension for shared libraries through AIX4.2
11214 # and later when we are not doing run time linking.
11215 library_names_spec='${libname}${release}.a $libname.a'
11216 soname_spec='${libname}${release}${shared_ext}$major'
11217 fi
11218 shlibpath_var=LIBPATH
11219 fi
11220 ;;
11221
11222amigaos*)
11223 library_names_spec='$libname.ixlibrary $libname.a'
11224 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11225 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'
11226 ;;
11227
11228beos*)
11229 library_names_spec='${libname}${shared_ext}'
11230 dynamic_linker="$host_os ld.so"
11231 shlibpath_var=LIBRARY_PATH
11232 ;;
11233
11234bsdi4*)
11235 version_type=linux
11236 need_version=no
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11238 soname_spec='${libname}${release}${shared_ext}$major'
11239 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11240 shlibpath_var=LD_LIBRARY_PATH
11241 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11242 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11243 # the default ld.so.conf also contains /usr/contrib/lib and
11244 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11245 # libtool to hard-code these into programs
11246 ;;
11247
11248cygwin* | mingw* | pw32*)
11249 version_type=windows
11250 shrext=".dll"
11251 need_version=no
11252 need_lib_prefix=no
11253
11254 case $GCC,$host_os in
11255 yes,cygwin* | yes,mingw* | yes,pw32*)
11256 library_names_spec='$libname.dll.a'
11257 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11258 postinstall_cmds='base_file=`basename \${file}`~
11259 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11260 dldir=$destdir/`dirname \$dlpath`~
11261 test -d \$dldir || mkdir -p \$dldir~
11262 $install_prog $dir/$dlname \$dldir/$dlname'
11263 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11264 dlpath=$dir/\$dldll~
11265 $rm \$dlpath'
11266 shlibpath_overrides_runpath=yes
11267
11268 case $host_os in
11269 cygwin*)
11270 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11271 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11272 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11273 ;;
11274 mingw*)
11275 # MinGW DLLs use traditional 'lib' prefix
11276 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11277 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11278 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11279 # It is most probably a Windows format PATH printed by
11280 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11281 # path with ; separators, and with drive letters. We can handle the
11282 # drive letters (cygwin fileutils understands them), so leave them,
11283 # especially as we might pass files found there to a mingw objdump,
11284 # which wouldn't understand a cygwinified path. Ahh.
11285 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11286 else
11287 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11288 fi
11289 ;;
11290 pw32*)
11291 # pw32 DLLs use 'pw' prefix rather than 'lib'
11292 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11293 ;;
11294 esac
11295 ;;
11296
11297 *)
11298 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11299 ;;
11300 esac
11301 dynamic_linker='Win32 ld.exe'
11302 # FIXME: first we should search . and the directory the executable is in
11303 shlibpath_var=PATH
11304 ;;
11305
11306darwin* | rhapsody*)
11307 dynamic_linker="$host_os dyld"
11308 version_type=darwin
11309 need_lib_prefix=no
11310 need_version=no
11311 # FIXME: Relying on posixy $() will cause problems for
11312 # cross-compilation, but unfortunately the echo tests do not
11313 # yet detect zsh echo's removal of \ escapes.
11314 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11315 soname_spec='${libname}${release}${major}$shared_ext'
11316 shlibpath_overrides_runpath=yes
11317 shlibpath_var=DYLD_LIBRARY_PATH
11318 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11319 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11320 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11321 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"`
11322 fi
11323 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11324 ;;
11325
11326dgux*)
11327 version_type=linux
11328 need_lib_prefix=no
11329 need_version=no
11330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11331 soname_spec='${libname}${release}${shared_ext}$major'
11332 shlibpath_var=LD_LIBRARY_PATH
11333 ;;
11334
11335freebsd1*)
11336 dynamic_linker=no
11337 ;;
11338
11339freebsd*)
11340 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11341 version_type=freebsd-$objformat
11342 case $version_type in
11343 freebsd-elf*)
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11345 need_version=no
11346 need_lib_prefix=no
11347 ;;
11348 freebsd-*)
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11350 need_version=yes
11351 ;;
11352 esac
11353 shlibpath_var=LD_LIBRARY_PATH
11354 case $host_os in
11355 freebsd2*)
11356 shlibpath_overrides_runpath=yes
11357 ;;
11358 freebsd3.01* | freebsdelf3.01*)
11359 shlibpath_overrides_runpath=yes
11360 hardcode_into_libs=yes
11361 ;;
11362 *) # from 3.2 on
11363 shlibpath_overrides_runpath=no
11364 hardcode_into_libs=yes
11365 ;;
11366 esac
11367 ;;
11368
11369gnu*)
11370 version_type=linux
11371 need_lib_prefix=no
11372 need_version=no
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11374 soname_spec='${libname}${release}${shared_ext}$major'
11375 shlibpath_var=LD_LIBRARY_PATH
11376 hardcode_into_libs=yes
11377 ;;
11378
11379hpux9* | hpux10* | hpux11*)
11380 # Give a soname corresponding to the major version so that dld.sl refuses to
11381 # link against other versions.
11382 version_type=sunos
11383 need_lib_prefix=no
11384 need_version=no
11385 case "$host_cpu" in
11386 ia64*)
11387 shrext='.so'
11388 hardcode_into_libs=yes
11389 dynamic_linker="$host_os dld.so"
11390 shlibpath_var=LD_LIBRARY_PATH
11391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11393 soname_spec='${libname}${release}${shared_ext}$major'
11394 if test "X$HPUX_IA64_MODE" = X32; then
11395 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11396 else
11397 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11398 fi
11399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11400 ;;
11401 hppa*64*)
11402 shrext='.sl'
11403 hardcode_into_libs=yes
11404 dynamic_linker="$host_os dld.sl"
11405 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11411 ;;
11412 *)
11413 shrext='.sl'
11414 dynamic_linker="$host_os dld.sl"
11415 shlibpath_var=SHLIB_PATH
11416 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 ;;
11420 esac
11421 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11422 postinstall_cmds='chmod 555 $lib'
11423 ;;
11424
11425irix5* | irix6* | nonstopux*)
11426 case $host_os in
11427 nonstopux*) version_type=nonstopux ;;
11428 *)
11429 if test "$lt_cv_prog_gnu_ld" = yes; then
11430 version_type=linux
11431 else
11432 version_type=irix
11433 fi ;;
11434 esac
11435 need_lib_prefix=no
11436 need_version=no
11437 soname_spec='${libname}${release}${shared_ext}$major'
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11439 case $host_os in
11440 irix5* | nonstopux*)
11441 libsuff= shlibsuff=
11442 ;;
11443 *)
11444 case $LD in # libtool.m4 will add one of these switches to LD
11445 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11446 libsuff= shlibsuff= libmagic=32-bit;;
11447 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11448 libsuff=32 shlibsuff=N32 libmagic=N32;;
11449 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11450 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11451 *) libsuff= shlibsuff= libmagic=never-match;;
11452 esac
11453 ;;
11454 esac
11455 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11456 shlibpath_overrides_runpath=no
11457 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11458 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11459 hardcode_into_libs=yes
11460 ;;
11461
11462# No shared lib support for Linux oldld, aout, or coff.
11463linux*oldld* | linux*aout* | linux*coff*)
11464 dynamic_linker=no
11465 ;;
11466
11467# This must be Linux ELF.
11468linux*)
11469 version_type=linux
11470 need_lib_prefix=no
11471 need_version=no
11472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11473 soname_spec='${libname}${release}${shared_ext}$major'
11474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11475 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=no
11477 # This implies no fast_install, which is unacceptable.
11478 # Some rework will be needed to allow for fast_install
11479 # before this can be enabled.
11480 hardcode_into_libs=yes
11481
11482 # We used to test for /lib/ld.so.1 and disable shared libraries on
11483 # powerpc, because MkLinux only supported shared libraries with the
11484 # GNU dynamic linker. Since this was broken with cross compilers,
11485 # most powerpc-linux boxes support dynamic linking these days and
11486 # people can always --disable-shared, the test was removed, and we
11487 # assume the GNU/Linux dynamic linker is in use.
11488 dynamic_linker='GNU/Linux ld.so'
11489 ;;
11490
11491netbsd*)
11492 version_type=sunos
11493 need_lib_prefix=no
11494 need_version=no
11495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11498 dynamic_linker='NetBSD (a.out) ld.so'
11499 else
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11501 soname_spec='${libname}${release}${shared_ext}$major'
11502 dynamic_linker='NetBSD ld.elf_so'
11503 fi
11504 shlibpath_var=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath=yes
11506 hardcode_into_libs=yes
11507 ;;
11508
11509newsos6)
11510 version_type=linux
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 shlibpath_overrides_runpath=yes
11514 ;;
11515
11516nto-qnx)
11517 version_type=linux
11518 need_lib_prefix=no
11519 need_version=no
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 shlibpath_overrides_runpath=yes
11524 ;;
11525
11526openbsd*)
11527 version_type=sunos
11528 need_lib_prefix=no
11529 need_version=no
11530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11534 case $host_os in
11535 openbsd2.[89] | openbsd2.[89].*)
11536 shlibpath_overrides_runpath=no
11537 ;;
11538 *)
11539 shlibpath_overrides_runpath=yes
11540 ;;
11541 esac
11542 else
11543 shlibpath_overrides_runpath=yes
11544 fi
11545 ;;
11546
11547os2*)
11548 libname_spec='$name'
11549 shrext=".dll"
11550 need_lib_prefix=no
11551 library_names_spec='$libname${shared_ext} $libname.a'
11552 dynamic_linker='OS/2 ld.exe'
11553 shlibpath_var=LIBPATH
11554 ;;
11555
11556osf3* | osf4* | osf5*)
11557 version_type=osf
11558 need_lib_prefix=no
11559 need_version=no
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562 shlibpath_var=LD_LIBRARY_PATH
11563 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11564 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11565 ;;
11566
11567sco3.2v5*)
11568 version_type=osf
11569 soname_spec='${libname}${release}${shared_ext}$major'
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 ;;
11573
11574solaris*)
11575 version_type=linux
11576 need_lib_prefix=no
11577 need_version=no
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579 soname_spec='${libname}${release}${shared_ext}$major'
11580 shlibpath_var=LD_LIBRARY_PATH
11581 shlibpath_overrides_runpath=yes
11582 hardcode_into_libs=yes
11583 # ldd complains unless libraries are executable
11584 postinstall_cmds='chmod +x $lib'
11585 ;;
11586
11587sunos4*)
11588 version_type=sunos
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11590 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 shlibpath_overrides_runpath=yes
11593 if test "$with_gnu_ld" = yes; then
11594 need_lib_prefix=no
11595 fi
11596 need_version=yes
11597 ;;
11598
11599sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11600 version_type=linux
11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11602 soname_spec='${libname}${release}${shared_ext}$major'
11603 shlibpath_var=LD_LIBRARY_PATH
11604 case $host_vendor in
11605 sni)
11606 shlibpath_overrides_runpath=no
11607 need_lib_prefix=no
11608 export_dynamic_flag_spec='${wl}-Blargedynsym'
11609 runpath_var=LD_RUN_PATH
11610 ;;
11611 siemens)
11612 need_lib_prefix=no
11613 ;;
11614 motorola)
11615 need_lib_prefix=no
11616 need_version=no
11617 shlibpath_overrides_runpath=no
11618 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11619 ;;
11620 esac
11621 ;;
11622
11623sysv4*MP*)
11624 if test -d /usr/nec ;then
11625 version_type=linux
11626 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11627 soname_spec='$libname${shared_ext}.$major'
11628 shlibpath_var=LD_LIBRARY_PATH
11629 fi
11630 ;;
11631
11632uts4*)
11633 version_type=linux
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 ;;
11638
11639*)
11640 dynamic_linker=no
11641 ;;
11642esac
11643echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11644echo "${ECHO_T}$dynamic_linker" >&6
11645test "$dynamic_linker" = no && can_build_shared=no
11646
11647if test "x$enable_dlopen" != xyes; then
11648 enable_dlopen=unknown
11649 enable_dlopen_self=unknown
11650 enable_dlopen_self_static=unknown
11651else
11652 lt_cv_dlopen=no
11653 lt_cv_dlopen_libs=
11654
11655 case $host_os in
11656 beos*)
11657 lt_cv_dlopen="load_add_on"
11658 lt_cv_dlopen_libs=
11659 lt_cv_dlopen_self=yes
11660 ;;
11661
11662 mingw* | pw32*)
11663 lt_cv_dlopen="LoadLibrary"
11664 lt_cv_dlopen_libs=
11665 ;;
11666
11667 cygwin*)
11668 lt_cv_dlopen="dlopen"
11669 lt_cv_dlopen_libs=
11670 ;;
11671
11672 darwin*)
11673 # if libdl is installed we need to link against it
11674 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11675echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11676if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678else
11679 ac_check_lib_save_LIBS=$LIBS
11680LIBS="-ldl $LIBS"
11681cat >conftest.$ac_ext <<_ACEOF
11682#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011683/* confdefs.h. */
11684_ACEOF
11685cat confdefs.h >>conftest.$ac_ext
11686cat >>conftest.$ac_ext <<_ACEOF
11687/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011688
11689/* Override any gcc2 internal prototype to avoid an error. */
11690#ifdef __cplusplus
11691extern "C"
11692#endif
11693/* We use char because int might match the return type of a gcc2
11694 builtin and then its argument prototype would still apply. */
11695char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011696int
11697main ()
11698{
11699dlopen ();
11700 ;
11701 return 0;
11702}
11703_ACEOF
11704rm -f conftest.$ac_objext conftest$ac_exeext
11705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11706 (eval $ac_link) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -s conftest$ac_exeext'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11716 ac_cv_lib_dl_dlopen=yes
11717else
11718 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011719sed 's/^/| /' conftest.$ac_ext >&5
11720
John Criswell47fdd832003-07-14 16:52:07 +000011721ac_cv_lib_dl_dlopen=no
11722fi
11723rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11724LIBS=$ac_check_lib_save_LIBS
11725fi
11726echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11727echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11728if test $ac_cv_lib_dl_dlopen = yes; then
11729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11730else
11731
11732 lt_cv_dlopen="dyld"
11733 lt_cv_dlopen_libs=
11734 lt_cv_dlopen_self=yes
11735
11736fi
11737
11738 ;;
11739
11740 *)
11741 echo "$as_me:$LINENO: checking for shl_load" >&5
11742echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11743if test "${ac_cv_func_shl_load+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745else
11746 cat >conftest.$ac_ext <<_ACEOF
11747#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011748/* confdefs.h. */
11749_ACEOF
11750cat confdefs.h >>conftest.$ac_ext
11751cat >>conftest.$ac_ext <<_ACEOF
11752/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011753/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011754 which can conflict with char shl_load (); below.
11755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756 <limits.h> exists even on freestanding compilers. */
11757#ifdef __STDC__
11758# include <limits.h>
11759#else
11760# include <assert.h>
11761#endif
John Criswell47fdd832003-07-14 16:52:07 +000011762/* Override any gcc2 internal prototype to avoid an error. */
11763#ifdef __cplusplus
11764extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011765{
John Criswell47fdd832003-07-14 16:52:07 +000011766#endif
11767/* We use char because int might match the return type of a gcc2
11768 builtin and then its argument prototype would still apply. */
11769char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011770/* The GNU C library defines this for functions which it implements
11771 to always fail with ENOSYS. Some functions are actually named
11772 something starting with __ and the normal name is an alias. */
11773#if defined (__stub_shl_load) || defined (__stub___shl_load)
11774choke me
11775#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011776char (*f) () = shl_load;
11777#endif
11778#ifdef __cplusplus
11779}
John Criswell47fdd832003-07-14 16:52:07 +000011780#endif
11781
John Criswell0c38eaf2003-09-10 15:17:25 +000011782int
11783main ()
11784{
11785return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011786 ;
11787 return 0;
11788}
11789_ACEOF
11790rm -f conftest.$ac_objext conftest$ac_exeext
11791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11792 (eval $ac_link) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -s conftest$ac_exeext'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 ac_cv_func_shl_load=yes
11803else
11804 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011805sed 's/^/| /' conftest.$ac_ext >&5
11806
John Criswell47fdd832003-07-14 16:52:07 +000011807ac_cv_func_shl_load=no
11808fi
11809rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11810fi
11811echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11812echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11813if test $ac_cv_func_shl_load = yes; then
11814 lt_cv_dlopen="shl_load"
11815else
11816 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11817echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11818if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820else
11821 ac_check_lib_save_LIBS=$LIBS
11822LIBS="-ldld $LIBS"
11823cat >conftest.$ac_ext <<_ACEOF
11824#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011825/* confdefs.h. */
11826_ACEOF
11827cat confdefs.h >>conftest.$ac_ext
11828cat >>conftest.$ac_ext <<_ACEOF
11829/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011830
11831/* Override any gcc2 internal prototype to avoid an error. */
11832#ifdef __cplusplus
11833extern "C"
11834#endif
11835/* We use char because int might match the return type of a gcc2
11836 builtin and then its argument prototype would still apply. */
11837char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011838int
11839main ()
11840{
11841shl_load ();
11842 ;
11843 return 0;
11844}
11845_ACEOF
11846rm -f conftest.$ac_objext conftest$ac_exeext
11847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11848 (eval $ac_link) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } &&
11852 { ac_try='test -s conftest$ac_exeext'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11858 ac_cv_lib_dld_shl_load=yes
11859else
11860 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011861sed 's/^/| /' conftest.$ac_ext >&5
11862
John Criswell47fdd832003-07-14 16:52:07 +000011863ac_cv_lib_dld_shl_load=no
11864fi
11865rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11866LIBS=$ac_check_lib_save_LIBS
11867fi
11868echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11869echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11870if test $ac_cv_lib_dld_shl_load = yes; then
11871 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11872else
11873 echo "$as_me:$LINENO: checking for dlopen" >&5
11874echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11875if test "${ac_cv_func_dlopen+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877else
11878 cat >conftest.$ac_ext <<_ACEOF
11879#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011880/* confdefs.h. */
11881_ACEOF
11882cat confdefs.h >>conftest.$ac_ext
11883cat >>conftest.$ac_ext <<_ACEOF
11884/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011885/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011886 which can conflict with char dlopen (); below.
11887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11888 <limits.h> exists even on freestanding compilers. */
11889#ifdef __STDC__
11890# include <limits.h>
11891#else
11892# include <assert.h>
11893#endif
John Criswell47fdd832003-07-14 16:52:07 +000011894/* Override any gcc2 internal prototype to avoid an error. */
11895#ifdef __cplusplus
11896extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011897{
John Criswell47fdd832003-07-14 16:52:07 +000011898#endif
11899/* We use char because int might match the return type of a gcc2
11900 builtin and then its argument prototype would still apply. */
11901char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011902/* The GNU C library defines this for functions which it implements
11903 to always fail with ENOSYS. Some functions are actually named
11904 something starting with __ and the normal name is an alias. */
11905#if defined (__stub_dlopen) || defined (__stub___dlopen)
11906choke me
11907#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011908char (*f) () = dlopen;
11909#endif
11910#ifdef __cplusplus
11911}
John Criswell47fdd832003-07-14 16:52:07 +000011912#endif
11913
John Criswell0c38eaf2003-09-10 15:17:25 +000011914int
11915main ()
11916{
11917return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011918 ;
11919 return 0;
11920}
11921_ACEOF
11922rm -f conftest.$ac_objext conftest$ac_exeext
11923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924 (eval $ac_link) 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 ac_cv_func_dlopen=yes
11935else
11936 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011937sed 's/^/| /' conftest.$ac_ext >&5
11938
John Criswell47fdd832003-07-14 16:52:07 +000011939ac_cv_func_dlopen=no
11940fi
11941rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11942fi
11943echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11944echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11945if test $ac_cv_func_dlopen = yes; then
11946 lt_cv_dlopen="dlopen"
11947else
11948 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11949echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11950if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
11953 ac_check_lib_save_LIBS=$LIBS
11954LIBS="-ldl $LIBS"
11955cat >conftest.$ac_ext <<_ACEOF
11956#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011957/* confdefs.h. */
11958_ACEOF
11959cat confdefs.h >>conftest.$ac_ext
11960cat >>conftest.$ac_ext <<_ACEOF
11961/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011962
11963/* Override any gcc2 internal prototype to avoid an error. */
11964#ifdef __cplusplus
11965extern "C"
11966#endif
11967/* We use char because int might match the return type of a gcc2
11968 builtin and then its argument prototype would still apply. */
11969char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011970int
11971main ()
11972{
11973dlopen ();
11974 ;
11975 return 0;
11976}
11977_ACEOF
11978rm -f conftest.$ac_objext conftest$ac_exeext
11979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11980 (eval $ac_link) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } &&
11984 { ac_try='test -s conftest$ac_exeext'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; }; then
11990 ac_cv_lib_dl_dlopen=yes
11991else
11992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011993sed 's/^/| /' conftest.$ac_ext >&5
11994
John Criswell47fdd832003-07-14 16:52:07 +000011995ac_cv_lib_dl_dlopen=no
11996fi
11997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11998LIBS=$ac_check_lib_save_LIBS
11999fi
12000echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12001echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12002if test $ac_cv_lib_dl_dlopen = yes; then
12003 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12004else
12005 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12006echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12007if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009else
12010 ac_check_lib_save_LIBS=$LIBS
12011LIBS="-lsvld $LIBS"
12012cat >conftest.$ac_ext <<_ACEOF
12013#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012014/* confdefs.h. */
12015_ACEOF
12016cat confdefs.h >>conftest.$ac_ext
12017cat >>conftest.$ac_ext <<_ACEOF
12018/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012019
12020/* Override any gcc2 internal prototype to avoid an error. */
12021#ifdef __cplusplus
12022extern "C"
12023#endif
12024/* We use char because int might match the return type of a gcc2
12025 builtin and then its argument prototype would still apply. */
12026char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012027int
12028main ()
12029{
12030dlopen ();
12031 ;
12032 return 0;
12033}
12034_ACEOF
12035rm -f conftest.$ac_objext conftest$ac_exeext
12036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037 (eval $ac_link) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -s conftest$ac_exeext'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_cv_lib_svld_dlopen=yes
12048else
12049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012050sed 's/^/| /' conftest.$ac_ext >&5
12051
John Criswell47fdd832003-07-14 16:52:07 +000012052ac_cv_lib_svld_dlopen=no
12053fi
12054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12055LIBS=$ac_check_lib_save_LIBS
12056fi
12057echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12058echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12059if test $ac_cv_lib_svld_dlopen = yes; then
12060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12061else
12062 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12063echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12064if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066else
12067 ac_check_lib_save_LIBS=$LIBS
12068LIBS="-ldld $LIBS"
12069cat >conftest.$ac_ext <<_ACEOF
12070#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012071/* confdefs.h. */
12072_ACEOF
12073cat confdefs.h >>conftest.$ac_ext
12074cat >>conftest.$ac_ext <<_ACEOF
12075/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012076
12077/* Override any gcc2 internal prototype to avoid an error. */
12078#ifdef __cplusplus
12079extern "C"
12080#endif
12081/* We use char because int might match the return type of a gcc2
12082 builtin and then its argument prototype would still apply. */
12083char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012084int
12085main ()
12086{
12087dld_link ();
12088 ;
12089 return 0;
12090}
12091_ACEOF
12092rm -f conftest.$ac_objext conftest$ac_exeext
12093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12094 (eval $ac_link) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -s conftest$ac_exeext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_cv_lib_dld_dld_link=yes
12105else
12106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012107sed 's/^/| /' conftest.$ac_ext >&5
12108
John Criswell47fdd832003-07-14 16:52:07 +000012109ac_cv_lib_dld_dld_link=no
12110fi
12111rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12112LIBS=$ac_check_lib_save_LIBS
12113fi
12114echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12115echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12116if test $ac_cv_lib_dld_dld_link = yes; then
12117 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12118fi
12119
12120
12121fi
12122
12123
12124fi
12125
12126
12127fi
12128
12129
12130fi
12131
12132
12133fi
12134
12135 ;;
12136 esac
12137
12138 if test "x$lt_cv_dlopen" != xno; then
12139 enable_dlopen=yes
12140 else
12141 enable_dlopen=no
12142 fi
12143
12144 case $lt_cv_dlopen in
12145 dlopen)
12146 save_CPPFLAGS="$CPPFLAGS"
12147 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12148
12149 save_LDFLAGS="$LDFLAGS"
12150 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12151
12152 save_LIBS="$LIBS"
12153 LIBS="$lt_cv_dlopen_libs $LIBS"
12154
12155 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12156echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12157if test "${lt_cv_dlopen_self+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12159else
12160 if test "$cross_compiling" = yes; then :
12161 lt_cv_dlopen_self=cross
12162else
12163 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12164 lt_status=$lt_dlunknown
12165 cat > conftest.$ac_ext <<EOF
Brian Gaekef3b24102003-11-16 18:38:14 +000012166#line 12166 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012167#include "confdefs.h"
12168
12169#if HAVE_DLFCN_H
12170#include <dlfcn.h>
12171#endif
12172
12173#include <stdio.h>
12174
12175#ifdef RTLD_GLOBAL
12176# define LT_DLGLOBAL RTLD_GLOBAL
12177#else
12178# ifdef DL_GLOBAL
12179# define LT_DLGLOBAL DL_GLOBAL
12180# else
12181# define LT_DLGLOBAL 0
12182# endif
12183#endif
12184
12185/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12186 find out it does not work in some platform. */
12187#ifndef LT_DLLAZY_OR_NOW
12188# ifdef RTLD_LAZY
12189# define LT_DLLAZY_OR_NOW RTLD_LAZY
12190# else
12191# ifdef DL_LAZY
12192# define LT_DLLAZY_OR_NOW DL_LAZY
12193# else
12194# ifdef RTLD_NOW
12195# define LT_DLLAZY_OR_NOW RTLD_NOW
12196# else
12197# ifdef DL_NOW
12198# define LT_DLLAZY_OR_NOW DL_NOW
12199# else
12200# define LT_DLLAZY_OR_NOW 0
12201# endif
12202# endif
12203# endif
12204# endif
12205#endif
12206
12207#ifdef __cplusplus
12208extern "C" void exit (int);
12209#endif
12210
12211void fnord() { int i=42;}
12212int main ()
12213{
12214 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12215 int status = $lt_dlunknown;
12216
12217 if (self)
12218 {
12219 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12220 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12221 /* dlclose (self); */
12222 }
12223
12224 exit (status);
12225}
12226EOF
12227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12228 (eval $ac_link) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12232 (./conftest; exit; ) 2>/dev/null
12233 lt_status=$?
12234 case x$lt_status in
12235 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12236 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12237 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12238 esac
12239 else :
12240 # compilation failed
12241 lt_cv_dlopen_self=no
12242 fi
12243fi
12244rm -fr conftest*
12245
12246
12247fi
12248echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12249echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12250
12251 if test "x$lt_cv_dlopen_self" = xyes; then
12252 LDFLAGS="$LDFLAGS $link_static_flag"
12253 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12254echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12255if test "${lt_cv_dlopen_self_static+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12257else
12258 if test "$cross_compiling" = yes; then :
12259 lt_cv_dlopen_self_static=cross
12260else
12261 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12262 lt_status=$lt_dlunknown
12263 cat > conftest.$ac_ext <<EOF
Brian Gaekef3b24102003-11-16 18:38:14 +000012264#line 12264 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012265#include "confdefs.h"
12266
12267#if HAVE_DLFCN_H
12268#include <dlfcn.h>
12269#endif
12270
12271#include <stdio.h>
12272
12273#ifdef RTLD_GLOBAL
12274# define LT_DLGLOBAL RTLD_GLOBAL
12275#else
12276# ifdef DL_GLOBAL
12277# define LT_DLGLOBAL DL_GLOBAL
12278# else
12279# define LT_DLGLOBAL 0
12280# endif
12281#endif
12282
12283/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12284 find out it does not work in some platform. */
12285#ifndef LT_DLLAZY_OR_NOW
12286# ifdef RTLD_LAZY
12287# define LT_DLLAZY_OR_NOW RTLD_LAZY
12288# else
12289# ifdef DL_LAZY
12290# define LT_DLLAZY_OR_NOW DL_LAZY
12291# else
12292# ifdef RTLD_NOW
12293# define LT_DLLAZY_OR_NOW RTLD_NOW
12294# else
12295# ifdef DL_NOW
12296# define LT_DLLAZY_OR_NOW DL_NOW
12297# else
12298# define LT_DLLAZY_OR_NOW 0
12299# endif
12300# endif
12301# endif
12302# endif
12303#endif
12304
12305#ifdef __cplusplus
12306extern "C" void exit (int);
12307#endif
12308
12309void fnord() { int i=42;}
12310int main ()
12311{
12312 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12313 int status = $lt_dlunknown;
12314
12315 if (self)
12316 {
12317 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12318 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12319 /* dlclose (self); */
12320 }
12321
12322 exit (status);
12323}
12324EOF
12325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12326 (eval $ac_link) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12330 (./conftest; exit; ) 2>/dev/null
12331 lt_status=$?
12332 case x$lt_status in
12333 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12334 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12335 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12336 esac
12337 else :
12338 # compilation failed
12339 lt_cv_dlopen_self_static=no
12340 fi
12341fi
12342rm -fr conftest*
12343
12344
12345fi
12346echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12347echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12348 fi
12349
12350 CPPFLAGS="$save_CPPFLAGS"
12351 LDFLAGS="$save_LDFLAGS"
12352 LIBS="$save_LIBS"
12353 ;;
12354 esac
12355
12356 case $lt_cv_dlopen_self in
12357 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12358 *) enable_dlopen_self=unknown ;;
12359 esac
12360
12361 case $lt_cv_dlopen_self_static in
12362 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12363 *) enable_dlopen_self_static=unknown ;;
12364 esac
12365fi
12366
12367
12368# The else clause should only fire when bootstrapping the
12369# libtool distribution, otherwise you forgot to ship ltmain.sh
12370# with your package, and you will get complaints that there are
12371# no rules to generate ltmain.sh.
12372if test -f "$ltmain"; then
12373 # See if we are running on zsh, and set the options which allow our commands through
12374 # without removal of \ escapes.
12375 if test -n "${ZSH_VERSION+set}" ; then
12376 setopt NO_GLOB_SUBST
12377 fi
12378 # Now quote all the things that may contain metacharacters while being
12379 # careful not to overquote the AC_SUBSTed values. We take copies of the
12380 # variables and quote the copies for generation of the libtool script.
12381 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12382 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12383 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12384 deplibs_check_method reload_flag reload_cmds need_locks \
12385 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12386 lt_cv_sys_global_symbol_to_c_name_address \
12387 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12388 old_postinstall_cmds old_postuninstall_cmds \
12389 compiler_CXX \
12390 CC_CXX \
12391 LD_CXX \
12392 lt_prog_compiler_wl_CXX \
12393 lt_prog_compiler_pic_CXX \
12394 lt_prog_compiler_static_CXX \
12395 lt_prog_compiler_no_builtin_flag_CXX \
12396 export_dynamic_flag_spec_CXX \
12397 thread_safe_flag_spec_CXX \
12398 whole_archive_flag_spec_CXX \
12399 enable_shared_with_static_runtimes_CXX \
12400 old_archive_cmds_CXX \
12401 old_archive_from_new_cmds_CXX \
12402 predep_objects_CXX \
12403 postdep_objects_CXX \
12404 predeps_CXX \
12405 postdeps_CXX \
12406 compiler_lib_search_path_CXX \
12407 archive_cmds_CXX \
12408 archive_expsym_cmds_CXX \
12409 postinstall_cmds_CXX \
12410 postuninstall_cmds_CXX \
12411 old_archive_from_expsyms_cmds_CXX \
12412 allow_undefined_flag_CXX \
12413 no_undefined_flag_CXX \
12414 export_symbols_cmds_CXX \
12415 hardcode_libdir_flag_spec_CXX \
12416 hardcode_libdir_flag_spec_ld_CXX \
12417 hardcode_libdir_separator_CXX \
12418 hardcode_automatic_CXX \
12419 module_cmds_CXX \
12420 module_expsym_cmds_CXX \
12421 lt_cv_prog_compiler_c_o_CXX \
12422 exclude_expsyms_CXX \
12423 include_expsyms_CXX; do
12424
12425 case $var in
12426 old_archive_cmds_CXX | \
12427 old_archive_from_new_cmds_CXX | \
12428 archive_cmds_CXX | \
12429 archive_expsym_cmds_CXX | \
12430 module_cmds_CXX | \
12431 module_expsym_cmds_CXX | \
12432 old_archive_from_expsyms_cmds_CXX | \
12433 export_symbols_cmds_CXX | \
12434 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12435 postinstall_cmds | postuninstall_cmds | \
12436 old_postinstall_cmds | old_postuninstall_cmds | \
12437 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12438 # Double-quote double-evaled strings.
12439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12440 ;;
12441 *)
12442 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12443 ;;
12444 esac
12445 done
12446
12447 case $lt_echo in
12448 *'\$0 --fallback-echo"')
12449 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12450 ;;
12451 esac
12452
12453cfgfile="$ofile"
12454
12455 cat <<__EOF__ >> "$cfgfile"
12456# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12457
12458# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12459
12460# Shell to use when invoking shell scripts.
12461SHELL=$lt_SHELL
12462
12463# Whether or not to build shared libraries.
12464build_libtool_libs=$enable_shared
12465
12466# Whether or not to build static libraries.
12467build_old_libs=$enable_static
12468
12469# Whether or not to add -lc for building shared libraries.
12470build_libtool_need_lc=$archive_cmds_need_lc_CXX
12471
12472# Whether or not to disallow shared libs when runtime libs are static
12473allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12474
12475# Whether or not to optimize for fast installation.
12476fast_install=$enable_fast_install
12477
12478# The host system.
12479host_alias=$host_alias
12480host=$host
12481
12482# An echo program that does not interpret backslashes.
12483echo=$lt_echo
12484
12485# The archiver.
12486AR=$lt_AR
12487AR_FLAGS=$lt_AR_FLAGS
12488
12489# A C compiler.
12490LTCC=$lt_LTCC
12491
12492# A language-specific compiler.
12493CC=$lt_compiler_CXX
12494
12495# Is the compiler the GNU C compiler?
12496with_gcc=$GCC_CXX
12497
12498# An ERE matcher.
12499EGREP=$lt_EGREP
12500
12501# The linker used to build libraries.
12502LD=$lt_LD_CXX
12503
12504# Whether we need hard or soft links.
12505LN_S=$lt_LN_S
12506
12507# A BSD-compatible nm program.
12508NM=$lt_NM
12509
12510# A symbol stripping program
12511STRIP=$STRIP
12512
12513# Used to examine libraries when file_magic_cmd begins "file"
12514MAGIC_CMD=$MAGIC_CMD
12515
12516# Used on cygwin: DLL creation program.
12517DLLTOOL="$DLLTOOL"
12518
12519# Used on cygwin: object dumper.
12520OBJDUMP="$OBJDUMP"
12521
12522# Used on cygwin: assembler.
12523AS="$AS"
12524
12525# The name of the directory that contains temporary libtool files.
12526objdir=$objdir
12527
12528# How to create reloadable object files.
12529reload_flag=$lt_reload_flag
12530reload_cmds=$lt_reload_cmds
12531
12532# How to pass a linker flag through the compiler.
12533wl=$lt_lt_prog_compiler_wl_CXX
12534
12535# Object file suffix (normally "o").
12536objext="$ac_objext"
12537
12538# Old archive suffix (normally "a").
12539libext="$libext"
12540
12541# Shared library suffix (normally ".so").
12542shrext='$shrext'
12543
12544# Executable file suffix (normally "").
12545exeext="$exeext"
12546
12547# Additional compiler flags for building library objects.
12548pic_flag=$lt_lt_prog_compiler_pic_CXX
12549pic_mode=$pic_mode
12550
12551# What is the maximum length of a command?
12552max_cmd_len=$lt_cv_sys_max_cmd_len
12553
12554# Does compiler simultaneously support -c and -o options?
12555compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12556
12557# Must we lock files when doing compilation ?
12558need_locks=$lt_need_locks
12559
12560# Do we need the lib prefix for modules?
12561need_lib_prefix=$need_lib_prefix
12562
12563# Do we need a version for libraries?
12564need_version=$need_version
12565
12566# Whether dlopen is supported.
12567dlopen_support=$enable_dlopen
12568
12569# Whether dlopen of programs is supported.
12570dlopen_self=$enable_dlopen_self
12571
12572# Whether dlopen of statically linked programs is supported.
12573dlopen_self_static=$enable_dlopen_self_static
12574
12575# Compiler flag to prevent dynamic linking.
12576link_static_flag=$lt_lt_prog_compiler_static_CXX
12577
12578# Compiler flag to turn off builtin functions.
12579no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12580
12581# Compiler flag to allow reflexive dlopens.
12582export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12583
12584# Compiler flag to generate shared objects directly from archives.
12585whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12586
12587# Compiler flag to generate thread-safe objects.
12588thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12589
12590# Library versioning type.
12591version_type=$version_type
12592
12593# Format of library name prefix.
12594libname_spec=$lt_libname_spec
12595
12596# List of archive names. First name is the real one, the rest are links.
12597# The last name is the one that the linker finds with -lNAME.
12598library_names_spec=$lt_library_names_spec
12599
12600# The coded name of the library, if different from the real name.
12601soname_spec=$lt_soname_spec
12602
12603# Commands used to build and install an old-style archive.
12604RANLIB=$lt_RANLIB
12605old_archive_cmds=$lt_old_archive_cmds_CXX
12606old_postinstall_cmds=$lt_old_postinstall_cmds
12607old_postuninstall_cmds=$lt_old_postuninstall_cmds
12608
12609# Create an old-style archive from a shared archive.
12610old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12611
12612# Create a temporary old-style archive to link instead of a shared archive.
12613old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12614
12615# Commands used to build and install a shared archive.
12616archive_cmds=$lt_archive_cmds_CXX
12617archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12618postinstall_cmds=$lt_postinstall_cmds
12619postuninstall_cmds=$lt_postuninstall_cmds
12620
12621# Commands used to build a loadable module (assumed same as above if empty)
12622module_cmds=$lt_module_cmds_CXX
12623module_expsym_cmds=$lt_module_expsym_cmds_CXX
12624
12625# Commands to strip libraries.
12626old_striplib=$lt_old_striplib
12627striplib=$lt_striplib
12628
12629# Dependencies to place before the objects being linked to create a
12630# shared library.
12631predep_objects=$lt_predep_objects_CXX
12632
12633# Dependencies to place after the objects being linked to create a
12634# shared library.
12635postdep_objects=$lt_postdep_objects_CXX
12636
12637# Dependencies to place before the objects being linked to create a
12638# shared library.
12639predeps=$lt_predeps_CXX
12640
12641# Dependencies to place after the objects being linked to create a
12642# shared library.
12643postdeps=$lt_postdeps_CXX
12644
12645# The library search path used internally by the compiler when linking
12646# a shared library.
12647compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12648
12649# Method to check whether dependent libraries are shared objects.
12650deplibs_check_method=$lt_deplibs_check_method
12651
12652# Command to use when deplibs_check_method == file_magic.
12653file_magic_cmd=$lt_file_magic_cmd
12654
12655# Flag that allows shared libraries with undefined symbols to be built.
12656allow_undefined_flag=$lt_allow_undefined_flag_CXX
12657
12658# Flag that forces no undefined symbols.
12659no_undefined_flag=$lt_no_undefined_flag_CXX
12660
12661# Commands used to finish a libtool library installation in a directory.
12662finish_cmds=$lt_finish_cmds
12663
12664# Same as above, but a single script fragment to be evaled but not shown.
12665finish_eval=$lt_finish_eval
12666
12667# Take the output of nm and produce a listing of raw symbols and C names.
12668global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12669
12670# Transform the output of nm in a proper C declaration
12671global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12672
12673# Transform the output of nm in a C name address pair
12674global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12675
12676# This is the shared library runtime path variable.
12677runpath_var=$runpath_var
12678
12679# This is the shared library path variable.
12680shlibpath_var=$shlibpath_var
12681
12682# Is shlibpath searched before the hard-coded library search path?
12683shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12684
12685# How to hardcode a shared library path into an executable.
12686hardcode_action=$hardcode_action_CXX
12687
12688# Whether we should hardcode library paths into libraries.
12689hardcode_into_libs=$hardcode_into_libs
12690
12691# Flag to hardcode \$libdir into a binary during linking.
12692# This must work even if \$libdir does not exist.
12693hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12694
12695# If ld is used when linking, flag to hardcode \$libdir into
12696# a binary during linking. This must work even if \$libdir does
12697# not exist.
12698hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12699
12700# Whether we need a single -rpath flag with a separated argument.
12701hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12702
12703# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12704# resulting binary.
12705hardcode_direct=$hardcode_direct_CXX
12706
12707# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12708# resulting binary.
12709hardcode_minus_L=$hardcode_minus_L_CXX
12710
12711# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12712# the resulting binary.
12713hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12714
12715# Set to yes if building a shared library automatically hardcodes DIR into the library
12716# and all subsequent libraries and executables linked against it.
12717hardcode_automatic=$hardcode_automatic_CXX
12718
12719# Variables whose values should be saved in libtool wrapper scripts and
12720# restored at relink time.
12721variables_saved_for_relink="$variables_saved_for_relink"
12722
12723# Whether libtool must link a program against all its dependency libraries.
12724link_all_deplibs=$link_all_deplibs_CXX
12725
12726# Compile-time system search path for libraries
12727sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12728
12729# Run-time system search path for libraries
12730sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12731
12732# Fix the shell variable \$srcfile for the compiler.
12733fix_srcfile_path="$fix_srcfile_path_CXX"
12734
12735# Set to yes if exported symbols are required.
12736always_export_symbols=$always_export_symbols_CXX
12737
12738# The commands to list exported symbols.
12739export_symbols_cmds=$lt_export_symbols_cmds_CXX
12740
12741# The commands to extract the exported symbol list from a shared archive.
12742extract_expsyms_cmds=$lt_extract_expsyms_cmds
12743
12744# Symbols that should not be listed in the preloaded symbols.
12745exclude_expsyms=$lt_exclude_expsyms_CXX
12746
12747# Symbols that must always be exported.
12748include_expsyms=$lt_include_expsyms_CXX
12749
12750# ### END LIBTOOL TAG CONFIG: $tagname
12751
12752__EOF__
12753
12754
12755else
12756 # If there is no Makefile yet, we rely on a make rule to execute
12757 # `config.status --recheck' to rerun these tests and create the
12758 # libtool script then.
12759 test -f Makefile && make "$ltmain"
12760fi
12761
12762
12763ac_ext=c
12764ac_cpp='$CPP $CPPFLAGS'
12765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767ac_compiler_gnu=$ac_cv_c_compiler_gnu
12768
12769CC=$lt_save_CC
12770LDCXX=$LD
12771LD=$lt_save_LD
12772GCC=$lt_save_GCC
12773with_gnu_ldcxx=$with_gnu_ld
12774with_gnu_ld=$lt_save_with_gnu_ld
12775lt_cv_path_LDCXX=$lt_cv_path_LD
12776lt_cv_path_LD=$lt_save_path_LD
12777lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12778lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12779
12780 else
12781 tagname=""
12782 fi
12783 ;;
12784
12785 F77)
12786 if test -n "$F77" && test "X$F77" != "Xno"; then
12787
12788ac_ext=f
12789ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12790ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12791ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12792
12793
12794archive_cmds_need_lc_F77=no
12795allow_undefined_flag_F77=
12796always_export_symbols_F77=no
12797archive_expsym_cmds_F77=
12798export_dynamic_flag_spec_F77=
12799hardcode_direct_F77=no
12800hardcode_libdir_flag_spec_F77=
12801hardcode_libdir_flag_spec_ld_F77=
12802hardcode_libdir_separator_F77=
12803hardcode_minus_L_F77=no
12804hardcode_automatic_F77=no
12805module_cmds_F77=
12806module_expsym_cmds_F77=
12807link_all_deplibs_F77=unknown
12808old_archive_cmds_F77=$old_archive_cmds
12809no_undefined_flag_F77=
12810whole_archive_flag_spec_F77=
12811enable_shared_with_static_runtimes_F77=no
12812
12813# Source file extension for f77 test sources.
12814ac_ext=f
12815
12816# Object file extension for compiled f77 test sources.
12817objext=o
12818objext_F77=$objext
12819
12820# Code to be used in simple compile tests
12821lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12822
12823# Code to be used in simple link tests
12824lt_simple_link_test_code=" program t\n end\n"
12825
12826# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12827
12828# If no C compiler was specified, use CC.
12829LTCC=${LTCC-"$CC"}
12830
12831# Allow CC to be a program name with arguments.
12832compiler=$CC
12833
12834
12835# Allow CC to be a program name with arguments.
12836lt_save_CC="$CC"
12837CC=${F77-"f77"}
12838compiler=$CC
12839compiler_F77=$CC
12840cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12841
12842echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12843echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12844echo "$as_me:$LINENO: result: $can_build_shared" >&5
12845echo "${ECHO_T}$can_build_shared" >&6
12846
12847echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12848echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12849test "$can_build_shared" = "no" && enable_shared=no
12850
12851# On AIX, shared libraries and static libraries use the same namespace, and
12852# are all built from PIC.
12853case "$host_os" in
12854aix3*)
12855 test "$enable_shared" = yes && enable_static=no
12856 if test -n "$RANLIB"; then
12857 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12858 postinstall_cmds='$RANLIB $lib'
12859 fi
12860 ;;
12861aix4*)
12862 test "$enable_shared" = yes && enable_static=no
12863 ;;
12864esac
12865echo "$as_me:$LINENO: result: $enable_shared" >&5
12866echo "${ECHO_T}$enable_shared" >&6
12867
12868echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12869echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12870# Make sure either enable_shared or enable_static is yes.
12871test "$enable_shared" = yes || enable_static=yes
12872echo "$as_me:$LINENO: result: $enable_static" >&5
12873echo "${ECHO_T}$enable_static" >&6
12874
12875test "$ld_shlibs_F77" = no && can_build_shared=no
12876
12877GCC_F77="$G77"
12878LD_F77="$LD"
12879
12880lt_prog_compiler_wl_F77=
12881lt_prog_compiler_pic_F77=
12882lt_prog_compiler_static_F77=
12883
12884echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12885echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12886
12887 if test "$GCC" = yes; then
12888 lt_prog_compiler_wl_F77='-Wl,'
12889 lt_prog_compiler_static_F77='-static'
12890
12891 case $host_os in
12892 aix*)
12893 # All AIX code is PIC.
12894 if test "$host_cpu" = ia64; then
12895 # AIX 5 now supports IA64 processor
12896 lt_prog_compiler_static_F77='-Bstatic'
12897 fi
12898 ;;
12899
12900 amigaos*)
12901 # FIXME: we need at least 68020 code to build shared libraries, but
12902 # adding the `-m68020' flag to GCC prevents building anything better,
12903 # like `-m68040'.
12904 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12905 ;;
12906
12907 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12908 # PIC is the default for these OSes.
12909 ;;
12910
12911 mingw* | pw32* | os2*)
12912 # This hack is so that the source file can tell whether it is being
12913 # built for inclusion in a dll (and should export symbols for example).
12914 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12915 ;;
12916
12917 darwin* | rhapsody*)
12918 # PIC is the default on this platform
12919 # Common symbols not allowed in MH_DYLIB files
12920 lt_prog_compiler_pic_F77='-fno-common'
12921 ;;
12922
12923 msdosdjgpp*)
12924 # Just because we use GCC doesn't mean we suddenly get shared libraries
12925 # on systems that don't support them.
12926 lt_prog_compiler_can_build_shared_F77=no
12927 enable_shared=no
12928 ;;
12929
12930 sysv4*MP*)
12931 if test -d /usr/nec; then
12932 lt_prog_compiler_pic_F77=-Kconform_pic
12933 fi
12934 ;;
12935
12936 hpux*)
12937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12938 # not for PA HP-UX.
12939 case "$host_cpu" in
12940 hppa*64*|ia64*)
12941 # +Z the default
12942 ;;
12943 *)
12944 lt_prog_compiler_pic_F77='-fPIC'
12945 ;;
12946 esac
12947 ;;
12948
12949 *)
12950 lt_prog_compiler_pic_F77='-fPIC'
12951 ;;
12952 esac
12953 else
12954 # PORTME Check for flag to pass linker flags through the system compiler.
12955 case $host_os in
12956 aix*)
12957 lt_prog_compiler_wl_F77='-Wl,'
12958 if test "$host_cpu" = ia64; then
12959 # AIX 5 now supports IA64 processor
12960 lt_prog_compiler_static_F77='-Bstatic'
12961 else
12962 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12963 fi
12964 ;;
12965
12966 mingw* | pw32* | os2*)
12967 # This hack is so that the source file can tell whether it is being
12968 # built for inclusion in a dll (and should export symbols for example).
12969 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12970 ;;
12971
12972 hpux9* | hpux10* | hpux11*)
12973 lt_prog_compiler_wl_F77='-Wl,'
12974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12975 # not for PA HP-UX.
12976 case "$host_cpu" in
12977 hppa*64*|ia64*)
12978 # +Z the default
12979 ;;
12980 *)
12981 lt_prog_compiler_pic_F77='+Z'
12982 ;;
12983 esac
12984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12985 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12986 ;;
12987
12988 irix5* | irix6* | nonstopux*)
12989 lt_prog_compiler_wl_F77='-Wl,'
12990 # PIC (with -KPIC) is the default.
12991 lt_prog_compiler_static_F77='-non_shared'
12992 ;;
12993
12994 newsos6)
12995 lt_prog_compiler_pic_F77='-KPIC'
12996 lt_prog_compiler_static_F77='-Bstatic'
12997 ;;
12998
12999 linux*)
13000 case $CC in
13001 icc|ecc)
13002 lt_prog_compiler_wl_F77='-Wl,'
13003 lt_prog_compiler_pic_F77='-KPIC'
13004 lt_prog_compiler_static_F77='-static'
13005 ;;
13006 ccc)
13007 lt_prog_compiler_wl_F77='-Wl,'
13008 # All Alpha code is PIC.
13009 lt_prog_compiler_static_F77='-non_shared'
13010 ;;
13011 esac
13012 ;;
13013
13014 osf3* | osf4* | osf5*)
13015 lt_prog_compiler_wl_F77='-Wl,'
13016 # All OSF/1 code is PIC.
13017 lt_prog_compiler_static_F77='-non_shared'
13018 ;;
13019
13020 sco3.2v5*)
13021 lt_prog_compiler_pic_F77='-Kpic'
13022 lt_prog_compiler_static_F77='-dn'
13023 ;;
13024
13025 solaris*)
13026 lt_prog_compiler_wl_F77='-Wl,'
13027 lt_prog_compiler_pic_F77='-KPIC'
13028 lt_prog_compiler_static_F77='-Bstatic'
13029 ;;
13030
13031 sunos4*)
13032 lt_prog_compiler_wl_F77='-Qoption ld '
13033 lt_prog_compiler_pic_F77='-PIC'
13034 lt_prog_compiler_static_F77='-Bstatic'
13035 ;;
13036
13037 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13038 lt_prog_compiler_wl_F77='-Wl,'
13039 lt_prog_compiler_pic_F77='-KPIC'
13040 lt_prog_compiler_static_F77='-Bstatic'
13041 ;;
13042
13043 sysv4*MP*)
13044 if test -d /usr/nec ;then
13045 lt_prog_compiler_pic_F77='-Kconform_pic'
13046 lt_prog_compiler_static_F77='-Bstatic'
13047 fi
13048 ;;
13049
13050 uts4*)
13051 lt_prog_compiler_pic_F77='-pic'
13052 lt_prog_compiler_static_F77='-Bstatic'
13053 ;;
13054
13055 *)
13056 lt_prog_compiler_can_build_shared_F77=no
13057 ;;
13058 esac
13059 fi
13060
13061echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13062echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13063
13064#
13065# Check to make sure the PIC flag actually works.
13066#
13067if test -n "$lt_prog_compiler_pic_F77"; then
13068 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13069echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13070if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13072else
13073 lt_prog_compiler_pic_works_F77=no
13074 ac_outfile=conftest.$ac_objext
13075 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13076 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13077 # Insert the option either (1) after the last *FLAGS variable, or
13078 # (2) before a word containing "conftest.", or (3) at the end.
13079 # Note that $ac_compile itself does not contain backslashes and begins
13080 # with a dollar sign (not a hyphen), so the echo should work correctly.
13081 # The option is referenced via a variable to avoid confusing sed.
13082 lt_compile=`echo "$ac_compile" | $SED \
13083 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13085 -e 's:$: $lt_compiler_flag:'`
Brian Gaekef3b24102003-11-16 18:38:14 +000013086 (eval echo "\"\$as_me:13086: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013087 (eval "$lt_compile" 2>conftest.err)
13088 ac_status=$?
13089 cat conftest.err >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000013090 echo "$as_me:13090: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013091 if (exit $ac_status) && test -s "$ac_outfile"; then
13092 # The compiler can only warn and ignore the option if not recognized
13093 # So say no if there are warnings
13094 if test ! -s conftest.err; then
13095 lt_prog_compiler_pic_works_F77=yes
13096 fi
13097 fi
13098 $rm conftest*
13099
13100fi
13101echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13102echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13103
13104if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13105 case $lt_prog_compiler_pic_F77 in
13106 "" | " "*) ;;
13107 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13108 esac
13109else
13110 lt_prog_compiler_pic_F77=
13111 lt_prog_compiler_can_build_shared_F77=no
13112fi
13113
13114fi
13115case "$host_os" in
13116 # For platforms which do not support PIC, -DPIC is meaningless:
13117 *djgpp*)
13118 lt_prog_compiler_pic_F77=
13119 ;;
13120 *)
13121 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13122 ;;
13123esac
13124
13125echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13126echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13127if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13129else
13130 lt_cv_prog_compiler_c_o_F77=no
13131 $rm -r conftest 2>/dev/null
13132 mkdir conftest
13133 cd conftest
13134 mkdir out
13135 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13136
13137 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13138 # that will create temporary files in the current directory regardless of
13139 # the output directory. Thus, making CWD read-only will cause this test
13140 # to fail, enabling locking or at least warning the user not to do parallel
13141 # builds.
13142 chmod -w .
13143
13144 lt_compiler_flag="-o out/conftest2.$ac_objext"
13145 # Insert the option either (1) after the last *FLAGS variable, or
13146 # (2) before a word containing "conftest.", or (3) at the end.
13147 # Note that $ac_compile itself does not contain backslashes and begins
13148 # with a dollar sign (not a hyphen), so the echo should work correctly.
13149 lt_compile=`echo "$ac_compile" | $SED \
13150 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13152 -e 's:$: $lt_compiler_flag:'`
Brian Gaekef3b24102003-11-16 18:38:14 +000013153 (eval echo "\"\$as_me:13153: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013154 (eval "$lt_compile" 2>out/conftest.err)
13155 ac_status=$?
13156 cat out/conftest.err >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000013157 echo "$as_me:13157: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13159 then
13160 # The compiler can only warn and ignore the option if not recognized
13161 # So say no if there are warnings
13162 if test ! -s out/conftest.err; then
13163 lt_cv_prog_compiler_c_o_F77=yes
13164 fi
13165 fi
13166 chmod u+w .
13167 $rm conftest* out/*
13168 rmdir out
13169 cd ..
13170 rmdir conftest
13171 $rm conftest*
13172
13173fi
13174echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13175echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13176
13177
13178hard_links="nottested"
13179if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13180 # do not overwrite the value of need_locks provided by the user
13181 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13182echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13183 hard_links=yes
13184 $rm conftest*
13185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13186 touch conftest.a
13187 ln conftest.a conftest.b 2>&5 || hard_links=no
13188 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13189 echo "$as_me:$LINENO: result: $hard_links" >&5
13190echo "${ECHO_T}$hard_links" >&6
13191 if test "$hard_links" = no; then
13192 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13193echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13194 need_locks=warn
13195 fi
13196else
13197 need_locks=no
13198fi
13199
13200echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13201echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13202
13203 runpath_var=
13204 allow_undefined_flag_F77=
13205 enable_shared_with_static_runtimes_F77=no
13206 archive_cmds_F77=
13207 archive_expsym_cmds_F77=
13208 old_archive_From_new_cmds_F77=
13209 old_archive_from_expsyms_cmds_F77=
13210 export_dynamic_flag_spec_F77=
13211 whole_archive_flag_spec_F77=
13212 thread_safe_flag_spec_F77=
13213 hardcode_libdir_flag_spec_F77=
13214 hardcode_libdir_flag_spec_ld_F77=
13215 hardcode_libdir_separator_F77=
13216 hardcode_direct_F77=no
13217 hardcode_minus_L_F77=no
13218 hardcode_shlibpath_var_F77=unsupported
13219 link_all_deplibs_F77=unknown
13220 hardcode_automatic_F77=no
13221 module_cmds_F77=
13222 module_expsym_cmds_F77=
13223 always_export_symbols_F77=no
13224 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13225 # include_expsyms should be a list of space-separated symbols to be *always*
13226 # included in the symbol list
13227 include_expsyms_F77=
13228 # exclude_expsyms can be an extended regexp of symbols to exclude
13229 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13230 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13231 # as well as any symbol that contains `d'.
13232 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13233 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13234 # platforms (ab)use it in PIC code, but their linkers get confused if
13235 # the symbol is explicitly referenced. Since portable code cannot
13236 # rely on this symbol name, it's probably fine to never include it in
13237 # preloaded symbol tables.
13238 extract_expsyms_cmds=
13239
13240 case $host_os in
13241 cygwin* | mingw* | pw32*)
13242 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13243 # When not using gcc, we currently assume that we are using
13244 # Microsoft Visual C++.
13245 if test "$GCC" != yes; then
13246 with_gnu_ld=no
13247 fi
13248 ;;
13249 openbsd*)
13250 with_gnu_ld=no
13251 ;;
13252 esac
13253
13254 ld_shlibs_F77=yes
13255 if test "$with_gnu_ld" = yes; then
13256 # If archive_cmds runs LD, not CC, wlarc should be empty
13257 wlarc='${wl}'
13258
13259 # See if GNU ld supports shared libraries.
13260 case $host_os in
13261 aix3* | aix4* | aix5*)
13262 # On AIX/PPC, the GNU linker is very broken
13263 if test "$host_cpu" != ia64; then
13264 ld_shlibs_F77=no
13265 cat <<EOF 1>&2
13266
13267*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13268*** to be unable to reliably create shared libraries on AIX.
13269*** Therefore, libtool is disabling shared libraries support. If you
13270*** really care for shared libraries, you may want to modify your PATH
13271*** so that a non-GNU linker is found, and then restart.
13272
13273EOF
13274 fi
13275 ;;
13276
13277 amigaos*)
13278 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)'
13279 hardcode_libdir_flag_spec_F77='-L$libdir'
13280 hardcode_minus_L_F77=yes
13281
13282 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13283 # that the semantics of dynamic libraries on AmigaOS, at least up
13284 # to version 4, is to share data among multiple programs linked
13285 # with the same dynamic library. Since this doesn't match the
13286 # behavior of shared libraries on other platforms, we can't use
13287 # them.
13288 ld_shlibs_F77=no
13289 ;;
13290
13291 beos*)
13292 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13293 allow_undefined_flag_F77=unsupported
13294 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13295 # support --undefined. This deserves some investigation. FIXME
13296 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13297 else
13298 ld_shlibs_F77=no
13299 fi
13300 ;;
13301
13302 cygwin* | mingw* | pw32*)
13303 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13304 # as there is no search path for DLLs.
13305 hardcode_libdir_flag_spec_F77='-L$libdir'
13306 allow_undefined_flag_F77=unsupported
13307 always_export_symbols_F77=no
13308 enable_shared_with_static_runtimes_F77=yes
13309 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13310
13311 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13312 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13313 # If the export-symbols file already is a .def file (1st line
13314 # is EXPORTS), use it as is; otherwise, prepend...
13315 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13316 cp $export_symbols $output_objdir/$soname.def;
13317 else
13318 echo EXPORTS > $output_objdir/$soname.def;
13319 cat $export_symbols >> $output_objdir/$soname.def;
13320 fi~
13321 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13322 else
13323 ld_shlibs=no
13324 fi
13325 ;;
13326
13327 netbsd*)
13328 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13329 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13330 wlarc=
13331 else
13332 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13333 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13334 fi
13335 ;;
13336
13337 solaris* | sysv5*)
13338 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13339 ld_shlibs_F77=no
13340 cat <<EOF 1>&2
13341
13342*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13343*** create shared libraries on Solaris systems. Therefore, libtool
13344*** is disabling shared libraries support. We urge you to upgrade GNU
13345*** binutils to release 2.9.1 or newer. Another option is to modify
13346*** your PATH or compiler configuration so that the native linker is
13347*** used, and then restart.
13348
13349EOF
13350 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13351 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13352 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13353 else
13354 ld_shlibs_F77=no
13355 fi
13356 ;;
13357
13358 sunos4*)
13359 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13360 wlarc=
13361 hardcode_direct_F77=yes
13362 hardcode_shlibpath_var_F77=no
13363 ;;
13364
13365 *)
13366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13367 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13368 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13369 else
13370 ld_shlibs_F77=no
13371 fi
13372 ;;
13373 esac
13374
13375 if test "$ld_shlibs_F77" = yes; then
13376 runpath_var=LD_RUN_PATH
13377 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13378 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13379 # ancient GNU ld didn't support --whole-archive et. al.
13380 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13381 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13382 else
13383 whole_archive_flag_spec_F77=
13384 fi
13385 fi
13386 else
13387 # PORTME fill in a description of your system's linker (not GNU ld)
13388 case $host_os in
13389 aix3*)
13390 allow_undefined_flag_F77=unsupported
13391 always_export_symbols_F77=yes
13392 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'
13393 # Note: this linker hardcodes the directories in LIBPATH if there
13394 # are no directories specified by -L.
13395 hardcode_minus_L_F77=yes
13396 if test "$GCC" = yes && test -z "$link_static_flag"; then
13397 # Neither direct hardcoding nor static linking is supported with a
13398 # broken collect2.
13399 hardcode_direct_F77=unsupported
13400 fi
13401 ;;
13402
13403 aix4* | aix5*)
13404 if test "$host_cpu" = ia64; then
13405 # On IA64, the linker does run time linking by default, so we don't
13406 # have to do anything special.
13407 aix_use_runtimelinking=no
13408 exp_sym_flag='-Bexport'
13409 no_entry_flag=""
13410 else
13411 # If we're using GNU nm, then we don't want the "-C" option.
13412 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13413 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13414 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'
13415 else
13416 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'
13417 fi
13418 aix_use_runtimelinking=no
13419
13420 # Test if we are trying to use run time linking or normal
13421 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13422 # need to do runtime linking.
13423 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13424 for ld_flag in $LDFLAGS; do
13425 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13426 aix_use_runtimelinking=yes
13427 break
13428 fi
13429 done
13430 esac
13431
13432 exp_sym_flag='-bexport'
13433 no_entry_flag='-bnoentry'
13434 fi
13435
13436 # When large executables or shared objects are built, AIX ld can
13437 # have problems creating the table of contents. If linking a library
13438 # or program results in "error TOC overflow" add -mminimal-toc to
13439 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13440 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13441
13442 archive_cmds_F77=''
13443 hardcode_direct_F77=yes
13444 hardcode_libdir_separator_F77=':'
13445 link_all_deplibs_F77=yes
13446
13447 if test "$GCC" = yes; then
13448 case $host_os in aix4.012|aix4.012.*)
13449 # We only want to do this on AIX 4.2 and lower, the check
13450 # below for broken collect2 doesn't work under 4.3+
13451 collect2name=`${CC} -print-prog-name=collect2`
13452 if test -f "$collect2name" && \
13453 strings "$collect2name" | grep resolve_lib_name >/dev/null
13454 then
13455 # We have reworked collect2
13456 hardcode_direct_F77=yes
13457 else
13458 # We have old collect2
13459 hardcode_direct_F77=unsupported
13460 # It fails to find uninstalled libraries when the uninstalled
13461 # path is not listed in the libpath. Setting hardcode_minus_L
13462 # to unsupported forces relinking
13463 hardcode_minus_L_F77=yes
13464 hardcode_libdir_flag_spec_F77='-L$libdir'
13465 hardcode_libdir_separator_F77=
13466 fi
13467 esac
13468 shared_flag='-shared'
13469 else
13470 # not using gcc
13471 if test "$host_cpu" = ia64; then
13472 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13473 # chokes on -Wl,-G. The following line is correct:
13474 shared_flag='-G'
13475 else
13476 if test "$aix_use_runtimelinking" = yes; then
13477 shared_flag='${wl}-G'
13478 else
13479 shared_flag='${wl}-bM:SRE'
13480 fi
13481 fi
13482 fi
13483
13484 # It seems that -bexpall does not export symbols beginning with
13485 # underscore (_), so it is better to generate a list of symbols to export.
13486 always_export_symbols_F77=yes
13487 if test "$aix_use_runtimelinking" = yes; then
13488 # Warning - without using the other runtime loading flags (-brtl),
13489 # -berok will link without error, but may produce a broken library.
13490 allow_undefined_flag_F77='-berok'
13491 # Determine the default libpath from the value encoded in an empty executable.
13492 cat >conftest.$ac_ext <<_ACEOF
13493 program main
13494
13495 end
13496_ACEOF
13497rm -f conftest.$ac_objext conftest$ac_exeext
13498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13499 (eval $ac_link) 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try='test -s conftest$ac_exeext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509
13510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13511}'`
13512# Check for a 64-bit object if we didn't find anything.
13513if 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; }
13514}'`; fi
13515else
13516 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013517sed 's/^/| /' conftest.$ac_ext >&5
13518
John Criswell47fdd832003-07-14 16:52:07 +000013519fi
13520rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13521if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13522
13523 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13524 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"
13525 else
13526 if test "$host_cpu" = ia64; then
13527 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13528 allow_undefined_flag_F77="-z nodefs"
13529 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"
13530 else
13531 # Determine the default libpath from the value encoded in an empty executable.
13532 cat >conftest.$ac_ext <<_ACEOF
13533 program main
13534
13535 end
13536_ACEOF
13537rm -f conftest.$ac_objext conftest$ac_exeext
13538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13539 (eval $ac_link) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } &&
13543 { ac_try='test -s conftest$ac_exeext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549
13550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13551}'`
13552# Check for a 64-bit object if we didn't find anything.
13553if 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; }
13554}'`; fi
13555else
13556 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013557sed 's/^/| /' conftest.$ac_ext >&5
13558
John Criswell47fdd832003-07-14 16:52:07 +000013559fi
13560rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13561if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13562
13563 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13564 # Warning - without using the other run time loading flags,
13565 # -berok will link without error, but may produce a broken library.
13566 no_undefined_flag_F77=' ${wl}-bernotok'
13567 allow_undefined_flag_F77=' ${wl}-berok'
13568 # -bexpall does not export symbols beginning with underscore (_)
13569 always_export_symbols_F77=yes
13570 # Exported symbols can be pulled into shared objects from archives
13571 whole_archive_flag_spec_F77=' '
13572 archive_cmds_need_lc_F77=yes
13573 # This is similar to how AIX traditionally builds it's shared libraries.
13574 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'
13575 fi
13576 fi
13577 ;;
13578
13579 amigaos*)
13580 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)'
13581 hardcode_libdir_flag_spec_F77='-L$libdir'
13582 hardcode_minus_L_F77=yes
13583 # see comment about different semantics on the GNU ld section
13584 ld_shlibs_F77=no
13585 ;;
13586
13587 bsdi4*)
13588 export_dynamic_flag_spec_F77=-rdynamic
13589 ;;
13590
13591 cygwin* | mingw* | pw32*)
13592 # When not using gcc, we currently assume that we are using
13593 # Microsoft Visual C++.
13594 # hardcode_libdir_flag_spec is actually meaningless, as there is
13595 # no search path for DLLs.
13596 hardcode_libdir_flag_spec_F77=' '
13597 allow_undefined_flag_F77=unsupported
13598 # Tell ltmain to make .lib files, not .a files.
13599 libext=lib
13600 # Tell ltmain to make .dll files, not .so files.
13601 shrext=".dll"
13602 # FIXME: Setting linknames here is a bad hack.
13603 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13604 # The linker will automatically build a .lib file if we build a DLL.
13605 old_archive_From_new_cmds_F77='true'
13606 # FIXME: Should let the user specify the lib program.
13607 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13608 fix_srcfile_path='`cygpath -w "$srcfile"`'
13609 enable_shared_with_static_runtimes_F77=yes
13610 ;;
13611
13612 darwin* | rhapsody*)
13613 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13614 archive_cmds_need_lc_F77=no
13615 case "$host_os" in
13616 rhapsody* | darwin1.[012])
13617 allow_undefined_flag_F77='-undefined suppress'
13618 ;;
13619 *) # Darwin 1.3 on
13620 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13621 ;;
13622 esac
13623 # FIXME: Relying on posixy $() will cause problems for
13624 # cross-compilation, but unfortunately the echo tests do not
13625 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13626 # `"' quotes if we put them in here... so don't!
13627 lt_int_apple_cc_single_mod=no
13628 output_verbose_link_cmd='echo'
13629 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13630 lt_int_apple_cc_single_mod=yes
13631 fi
13632 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13633 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13634 else
13635 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'
13636 fi
13637 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13638 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13639 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13640 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}'
13641 else
13642 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}'
13643 fi
13644 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}'
13645 hardcode_direct_F77=no
13646 hardcode_automatic_F77=yes
13647 hardcode_shlibpath_var_F77=unsupported
13648 whole_archive_flag_spec_F77='-all_load $convenience'
13649 link_all_deplibs_F77=yes
13650 fi
13651 ;;
13652
13653 dgux*)
13654 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13655 hardcode_libdir_flag_spec_F77='-L$libdir'
13656 hardcode_shlibpath_var_F77=no
13657 ;;
13658
13659 freebsd1*)
13660 ld_shlibs_F77=no
13661 ;;
13662
13663 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13664 # support. Future versions do this automatically, but an explicit c++rt0.o
13665 # does not break anything, and helps significantly (at the cost of a little
13666 # extra space).
13667 freebsd2.2*)
13668 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13669 hardcode_libdir_flag_spec_F77='-R$libdir'
13670 hardcode_direct_F77=yes
13671 hardcode_shlibpath_var_F77=no
13672 ;;
13673
13674 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13675 freebsd2*)
13676 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13677 hardcode_direct_F77=yes
13678 hardcode_minus_L_F77=yes
13679 hardcode_shlibpath_var_F77=no
13680 ;;
13681
13682 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13683 freebsd*)
13684 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13685 hardcode_libdir_flag_spec_F77='-R$libdir'
13686 hardcode_direct_F77=yes
13687 hardcode_shlibpath_var_F77=no
13688 ;;
13689
13690 hpux9*)
13691 if test "$GCC" = yes; then
13692 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'
13693 else
13694 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'
13695 fi
13696 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13697 hardcode_libdir_separator_F77=:
13698 hardcode_direct_F77=yes
13699
13700 # hardcode_minus_L: Not really in the search PATH,
13701 # but as the default location of the library.
13702 hardcode_minus_L_F77=yes
13703 export_dynamic_flag_spec_F77='${wl}-E'
13704 ;;
13705
13706 hpux10* | hpux11*)
13707 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13708 case "$host_cpu" in
13709 hppa*64*|ia64*)
13710 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13711 ;;
13712 *)
13713 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13714 ;;
13715 esac
13716 else
13717 case "$host_cpu" in
13718 hppa*64*|ia64*)
13719 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13720 ;;
13721 *)
13722 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13723 ;;
13724 esac
13725 fi
13726 if test "$with_gnu_ld" = no; then
13727 case "$host_cpu" in
13728 hppa*64*)
13729 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13730 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13731 hardcode_libdir_separator_F77=:
13732 hardcode_direct_F77=no
13733 hardcode_shlibpath_var_F77=no
13734 ;;
13735 ia64*)
13736 hardcode_libdir_flag_spec_F77='-L$libdir'
13737 hardcode_direct_F77=no
13738 hardcode_shlibpath_var_F77=no
13739
13740 # hardcode_minus_L: Not really in the search PATH,
13741 # but as the default location of the library.
13742 hardcode_minus_L_F77=yes
13743 ;;
13744 *)
13745 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13746 hardcode_libdir_separator_F77=:
13747 hardcode_direct_F77=yes
13748 export_dynamic_flag_spec_F77='${wl}-E'
13749
13750 # hardcode_minus_L: Not really in the search PATH,
13751 # but as the default location of the library.
13752 hardcode_minus_L_F77=yes
13753 ;;
13754 esac
13755 fi
13756 ;;
13757
13758 irix5* | irix6* | nonstopux*)
13759 if test "$GCC" = yes; then
13760 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'
13761 else
13762 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'
13763 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13764 fi
13765 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13766 hardcode_libdir_separator_F77=:
13767 link_all_deplibs_F77=yes
13768 ;;
13769
13770 netbsd*)
13771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13772 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13773 else
13774 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13775 fi
13776 hardcode_libdir_flag_spec_F77='-R$libdir'
13777 hardcode_direct_F77=yes
13778 hardcode_shlibpath_var_F77=no
13779 ;;
13780
13781 newsos6)
13782 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13783 hardcode_direct_F77=yes
13784 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13785 hardcode_libdir_separator_F77=:
13786 hardcode_shlibpath_var_F77=no
13787 ;;
13788
13789 openbsd*)
13790 hardcode_direct_F77=yes
13791 hardcode_shlibpath_var_F77=no
13792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13793 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13794 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13795 export_dynamic_flag_spec_F77='${wl}-E'
13796 else
13797 case $host_os in
13798 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13799 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13800 hardcode_libdir_flag_spec_F77='-R$libdir'
13801 ;;
13802 *)
13803 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13804 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13805 ;;
13806 esac
13807 fi
13808 ;;
13809
13810 os2*)
13811 hardcode_libdir_flag_spec_F77='-L$libdir'
13812 hardcode_minus_L_F77=yes
13813 allow_undefined_flag_F77=unsupported
13814 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'
13815 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13816 ;;
13817
13818 osf3*)
13819 if test "$GCC" = yes; then
13820 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13821 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'
13822 else
13823 allow_undefined_flag_F77=' -expect_unresolved \*'
13824 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'
13825 fi
13826 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13827 hardcode_libdir_separator_F77=:
13828 ;;
13829
13830 osf4* | osf5*) # as osf3* with the addition of -msym flag
13831 if test "$GCC" = yes; then
13832 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13833 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'
13834 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13835 else
13836 allow_undefined_flag_F77=' -expect_unresolved \*'
13837 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'
13838 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~
13839 $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'
13840
13841 # Both c and cxx compiler support -rpath directly
13842 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13843 fi
13844 hardcode_libdir_separator_F77=:
13845 ;;
13846
13847 sco3.2v5*)
13848 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13849 hardcode_shlibpath_var_F77=no
13850 export_dynamic_flag_spec_F77='${wl}-Bexport'
13851 runpath_var=LD_RUN_PATH
13852 hardcode_runpath_var=yes
13853 ;;
13854
13855 solaris*)
13856 no_undefined_flag_F77=' -z text'
13857 if test "$GCC" = yes; then
13858 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13859 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13860 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13861 else
13862 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13863 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13864 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13865 fi
13866 hardcode_libdir_flag_spec_F77='-R$libdir'
13867 hardcode_shlibpath_var_F77=no
13868 case $host_os in
13869 solaris2.[0-5] | solaris2.[0-5].*) ;;
13870 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13871 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13872 esac
13873 link_all_deplibs_F77=yes
13874 ;;
13875
13876 sunos4*)
13877 if test "x$host_vendor" = xsequent; then
13878 # Use $CC to link under sequent, because it throws in some extra .o
13879 # files that make .init and .fini sections work.
13880 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13881 else
13882 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13883 fi
13884 hardcode_libdir_flag_spec_F77='-L$libdir'
13885 hardcode_direct_F77=yes
13886 hardcode_minus_L_F77=yes
13887 hardcode_shlibpath_var_F77=no
13888 ;;
13889
13890 sysv4)
13891 case $host_vendor in
13892 sni)
13893 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13894 hardcode_direct_F77=yes # is this really true???
13895 ;;
13896 siemens)
13897 ## LD is ld it makes a PLAMLIB
13898 ## CC just makes a GrossModule.
13899 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13900 reload_cmds_F77='$CC -r -o $output$reload_objs'
13901 hardcode_direct_F77=no
13902 ;;
13903 motorola)
13904 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13905 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13906 ;;
13907 esac
13908 runpath_var='LD_RUN_PATH'
13909 hardcode_shlibpath_var_F77=no
13910 ;;
13911
13912 sysv4.3*)
13913 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13914 hardcode_shlibpath_var_F77=no
13915 export_dynamic_flag_spec_F77='-Bexport'
13916 ;;
13917
13918 sysv4*MP*)
13919 if test -d /usr/nec; then
13920 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13921 hardcode_shlibpath_var_F77=no
13922 runpath_var=LD_RUN_PATH
13923 hardcode_runpath_var=yes
13924 ld_shlibs_F77=yes
13925 fi
13926 ;;
13927
13928 sysv4.2uw2*)
13929 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13930 hardcode_direct_F77=yes
13931 hardcode_minus_L_F77=no
13932 hardcode_shlibpath_var_F77=no
13933 hardcode_runpath_var=yes
13934 runpath_var=LD_RUN_PATH
13935 ;;
13936
13937 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13938 no_undefined_flag_F77='${wl}-z ${wl}text'
13939 if test "$GCC" = yes; then
13940 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13941 else
13942 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13943 fi
13944 runpath_var='LD_RUN_PATH'
13945 hardcode_shlibpath_var_F77=no
13946 ;;
13947
13948 sysv5*)
13949 no_undefined_flag_F77=' -z text'
13950 # $CC -shared without GNU ld will not create a library from C++
13951 # object files and a static libstdc++, better avoid it by now
13952 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13953 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13954 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13955 hardcode_libdir_flag_spec_F77=
13956 hardcode_shlibpath_var_F77=no
13957 runpath_var='LD_RUN_PATH'
13958 ;;
13959
13960 uts4*)
13961 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13962 hardcode_libdir_flag_spec_F77='-L$libdir'
13963 hardcode_shlibpath_var_F77=no
13964 ;;
13965
13966 *)
13967 ld_shlibs_F77=no
13968 ;;
13969 esac
13970 fi
13971
13972echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13973echo "${ECHO_T}$ld_shlibs_F77" >&6
13974test "$ld_shlibs_F77" = no && can_build_shared=no
13975
13976variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13977if test "$GCC" = yes; then
13978 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13979fi
13980
13981#
13982# Do we need to explicitly link libc?
13983#
13984case "x$archive_cmds_need_lc_F77" in
13985x|xyes)
13986 # Assume -lc should be added
13987 archive_cmds_need_lc_F77=yes
13988
13989 if test "$enable_shared" = yes && test "$GCC" = yes; then
13990 case $archive_cmds_F77 in
13991 *'~'*)
13992 # FIXME: we may have to deal with multi-command sequences.
13993 ;;
13994 '$CC '*)
13995 # Test whether the compiler implicitly links with -lc since on some
13996 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13997 # to ld, don't add -lc before -lgcc.
13998 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13999echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14000 $rm conftest*
14001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14002
14003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14004 (eval $ac_compile) 2>&5
14005 ac_status=$?
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } 2>conftest.err; then
14008 soname=conftest
14009 lib=conftest
14010 libobjs=conftest.$ac_objext
14011 deplibs=
14012 wl=$lt_prog_compiler_wl_F77
14013 compiler_flags=-v
14014 linker_flags=-v
14015 verstring=
14016 output_objdir=.
14017 libname=conftest
14018 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14019 allow_undefined_flag_F77=
14020 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14021 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }
14025 then
14026 archive_cmds_need_lc_F77=no
14027 else
14028 archive_cmds_need_lc_F77=yes
14029 fi
14030 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14031 else
14032 cat conftest.err 1>&5
14033 fi
14034 $rm conftest*
14035 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14036echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14037 ;;
14038 esac
14039 fi
14040 ;;
14041esac
14042
14043echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14044echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14045hardcode_action_F77=
14046if test -n "$hardcode_libdir_flag_spec_F77" || \
14047 test -n "$runpath_var F77" || \
14048 test "X$hardcode_automatic_F77"="Xyes" ; then
14049
14050 # We can hardcode non-existant directories.
14051 if test "$hardcode_direct_F77" != no &&
14052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14053 # have to relink, otherwise we might link with an installed library
14054 # when we should be linking with a yet-to-be-installed one
14055 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14056 test "$hardcode_minus_L_F77" != no; then
14057 # Linking always hardcodes the temporary library directory.
14058 hardcode_action_F77=relink
14059 else
14060 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14061 hardcode_action_F77=immediate
14062 fi
14063else
14064 # We cannot hardcode anything, or else we can only hardcode existing
14065 # directories.
14066 hardcode_action_F77=unsupported
14067fi
14068echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14069echo "${ECHO_T}$hardcode_action_F77" >&6
14070
14071if test "$hardcode_action_F77" = relink; then
14072 # Fast installation is not supported
14073 enable_fast_install=no
14074elif test "$shlibpath_overrides_runpath" = yes ||
14075 test "$enable_shared" = no; then
14076 # Fast installation is not necessary
14077 enable_fast_install=needless
14078fi
14079
14080striplib=
14081old_striplib=
14082echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14083echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14084if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14085 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14086 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14087 echo "$as_me:$LINENO: result: yes" >&5
14088echo "${ECHO_T}yes" >&6
14089else
14090# FIXME - insert some real tests, host_os isn't really good enough
14091 case $host_os in
14092 darwin*)
14093 if test -n "$STRIP" ; then
14094 striplib="$STRIP -x"
14095 echo "$as_me:$LINENO: result: yes" >&5
14096echo "${ECHO_T}yes" >&6
14097 else
14098 echo "$as_me:$LINENO: result: no" >&5
14099echo "${ECHO_T}no" >&6
14100fi
14101 ;;
14102 *)
14103 echo "$as_me:$LINENO: result: no" >&5
14104echo "${ECHO_T}no" >&6
14105 ;;
14106 esac
14107fi
14108
14109echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14110echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14111library_names_spec=
14112libname_spec='lib$name'
14113soname_spec=
14114shrext=".so"
14115postinstall_cmds=
14116postuninstall_cmds=
14117finish_cmds=
14118finish_eval=
14119shlibpath_var=
14120shlibpath_overrides_runpath=unknown
14121version_type=none
14122dynamic_linker="$host_os ld.so"
14123sys_lib_dlsearch_path_spec="/lib /usr/lib"
14124if test "$GCC" = yes; then
14125 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14126 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14127 # if the path contains ";" then we assume it to be the separator
14128 # otherwise default to the standard path separator (i.e. ":") - it is
14129 # assumed that no part of a normal pathname contains ";" but that should
14130 # okay in the real world where ";" in dirpaths is itself problematic.
14131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14132 else
14133 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14134 fi
14135else
14136 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14137fi
14138need_lib_prefix=unknown
14139hardcode_into_libs=no
14140
14141# when you set need_version to no, make sure it does not cause -set_version
14142# flags to be left without arguments
14143need_version=unknown
14144
14145case $host_os in
14146aix3*)
14147 version_type=linux
14148 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14149 shlibpath_var=LIBPATH
14150
14151 # AIX 3 has no versioning support, so we append a major version to the name.
14152 soname_spec='${libname}${release}${shared_ext}$major'
14153 ;;
14154
14155aix4* | aix5*)
14156 version_type=linux
14157 need_lib_prefix=no
14158 need_version=no
14159 hardcode_into_libs=yes
14160 if test "$host_cpu" = ia64; then
14161 # AIX 5 supports IA64
14162 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14163 shlibpath_var=LD_LIBRARY_PATH
14164 else
14165 # With GCC up to 2.95.x, collect2 would create an import file
14166 # for dependence libraries. The import file would start with
14167 # the line `#! .'. This would cause the generated library to
14168 # depend on `.', always an invalid library. This was fixed in
14169 # development snapshots of GCC prior to 3.0.
14170 case $host_os in
14171 aix4 | aix4.[01] | aix4.[01].*)
14172 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14173 echo ' yes '
14174 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14175 :
14176 else
14177 can_build_shared=no
14178 fi
14179 ;;
14180 esac
14181 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14182 # soname into executable. Probably we can add versioning support to
14183 # collect2, so additional links can be useful in future.
14184 if test "$aix_use_runtimelinking" = yes; then
14185 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14186 # instead of lib<name>.a to let people know that these are not
14187 # typical AIX shared libraries.
14188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14189 else
14190 # We preserve .a as extension for shared libraries through AIX4.2
14191 # and later when we are not doing run time linking.
14192 library_names_spec='${libname}${release}.a $libname.a'
14193 soname_spec='${libname}${release}${shared_ext}$major'
14194 fi
14195 shlibpath_var=LIBPATH
14196 fi
14197 ;;
14198
14199amigaos*)
14200 library_names_spec='$libname.ixlibrary $libname.a'
14201 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14202 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'
14203 ;;
14204
14205beos*)
14206 library_names_spec='${libname}${shared_ext}'
14207 dynamic_linker="$host_os ld.so"
14208 shlibpath_var=LIBRARY_PATH
14209 ;;
14210
14211bsdi4*)
14212 version_type=linux
14213 need_version=no
14214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14215 soname_spec='${libname}${release}${shared_ext}$major'
14216 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14217 shlibpath_var=LD_LIBRARY_PATH
14218 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14219 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14220 # the default ld.so.conf also contains /usr/contrib/lib and
14221 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14222 # libtool to hard-code these into programs
14223 ;;
14224
14225cygwin* | mingw* | pw32*)
14226 version_type=windows
14227 shrext=".dll"
14228 need_version=no
14229 need_lib_prefix=no
14230
14231 case $GCC,$host_os in
14232 yes,cygwin* | yes,mingw* | yes,pw32*)
14233 library_names_spec='$libname.dll.a'
14234 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14235 postinstall_cmds='base_file=`basename \${file}`~
14236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14237 dldir=$destdir/`dirname \$dlpath`~
14238 test -d \$dldir || mkdir -p \$dldir~
14239 $install_prog $dir/$dlname \$dldir/$dlname'
14240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14241 dlpath=$dir/\$dldll~
14242 $rm \$dlpath'
14243 shlibpath_overrides_runpath=yes
14244
14245 case $host_os in
14246 cygwin*)
14247 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14248 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14249 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14250 ;;
14251 mingw*)
14252 # MinGW DLLs use traditional 'lib' prefix
14253 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14254 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14255 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14256 # It is most probably a Windows format PATH printed by
14257 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14258 # path with ; separators, and with drive letters. We can handle the
14259 # drive letters (cygwin fileutils understands them), so leave them,
14260 # especially as we might pass files found there to a mingw objdump,
14261 # which wouldn't understand a cygwinified path. Ahh.
14262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14263 else
14264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14265 fi
14266 ;;
14267 pw32*)
14268 # pw32 DLLs use 'pw' prefix rather than 'lib'
14269 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14270 ;;
14271 esac
14272 ;;
14273
14274 *)
14275 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14276 ;;
14277 esac
14278 dynamic_linker='Win32 ld.exe'
14279 # FIXME: first we should search . and the directory the executable is in
14280 shlibpath_var=PATH
14281 ;;
14282
14283darwin* | rhapsody*)
14284 dynamic_linker="$host_os dyld"
14285 version_type=darwin
14286 need_lib_prefix=no
14287 need_version=no
14288 # FIXME: Relying on posixy $() will cause problems for
14289 # cross-compilation, but unfortunately the echo tests do not
14290 # yet detect zsh echo's removal of \ escapes.
14291 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14292 soname_spec='${libname}${release}${major}$shared_ext'
14293 shlibpath_overrides_runpath=yes
14294 shlibpath_var=DYLD_LIBRARY_PATH
14295 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14296 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14297 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14298 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"`
14299 fi
14300 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14301 ;;
14302
14303dgux*)
14304 version_type=linux
14305 need_lib_prefix=no
14306 need_version=no
14307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14308 soname_spec='${libname}${release}${shared_ext}$major'
14309 shlibpath_var=LD_LIBRARY_PATH
14310 ;;
14311
14312freebsd1*)
14313 dynamic_linker=no
14314 ;;
14315
14316freebsd*)
14317 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14318 version_type=freebsd-$objformat
14319 case $version_type in
14320 freebsd-elf*)
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14322 need_version=no
14323 need_lib_prefix=no
14324 ;;
14325 freebsd-*)
14326 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14327 need_version=yes
14328 ;;
14329 esac
14330 shlibpath_var=LD_LIBRARY_PATH
14331 case $host_os in
14332 freebsd2*)
14333 shlibpath_overrides_runpath=yes
14334 ;;
14335 freebsd3.01* | freebsdelf3.01*)
14336 shlibpath_overrides_runpath=yes
14337 hardcode_into_libs=yes
14338 ;;
14339 *) # from 3.2 on
14340 shlibpath_overrides_runpath=no
14341 hardcode_into_libs=yes
14342 ;;
14343 esac
14344 ;;
14345
14346gnu*)
14347 version_type=linux
14348 need_lib_prefix=no
14349 need_version=no
14350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14351 soname_spec='${libname}${release}${shared_ext}$major'
14352 shlibpath_var=LD_LIBRARY_PATH
14353 hardcode_into_libs=yes
14354 ;;
14355
14356hpux9* | hpux10* | hpux11*)
14357 # Give a soname corresponding to the major version so that dld.sl refuses to
14358 # link against other versions.
14359 version_type=sunos
14360 need_lib_prefix=no
14361 need_version=no
14362 case "$host_cpu" in
14363 ia64*)
14364 shrext='.so'
14365 hardcode_into_libs=yes
14366 dynamic_linker="$host_os dld.so"
14367 shlibpath_var=LD_LIBRARY_PATH
14368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14370 soname_spec='${libname}${release}${shared_ext}$major'
14371 if test "X$HPUX_IA64_MODE" = X32; then
14372 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14373 else
14374 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14375 fi
14376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14377 ;;
14378 hppa*64*)
14379 shrext='.sl'
14380 hardcode_into_libs=yes
14381 dynamic_linker="$host_os dld.sl"
14382 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14385 soname_spec='${libname}${release}${shared_ext}$major'
14386 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14388 ;;
14389 *)
14390 shrext='.sl'
14391 dynamic_linker="$host_os dld.sl"
14392 shlibpath_var=SHLIB_PATH
14393 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14395 soname_spec='${libname}${release}${shared_ext}$major'
14396 ;;
14397 esac
14398 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14399 postinstall_cmds='chmod 555 $lib'
14400 ;;
14401
14402irix5* | irix6* | nonstopux*)
14403 case $host_os in
14404 nonstopux*) version_type=nonstopux ;;
14405 *)
14406 if test "$lt_cv_prog_gnu_ld" = yes; then
14407 version_type=linux
14408 else
14409 version_type=irix
14410 fi ;;
14411 esac
14412 need_lib_prefix=no
14413 need_version=no
14414 soname_spec='${libname}${release}${shared_ext}$major'
14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14416 case $host_os in
14417 irix5* | nonstopux*)
14418 libsuff= shlibsuff=
14419 ;;
14420 *)
14421 case $LD in # libtool.m4 will add one of these switches to LD
14422 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14423 libsuff= shlibsuff= libmagic=32-bit;;
14424 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14425 libsuff=32 shlibsuff=N32 libmagic=N32;;
14426 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14427 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14428 *) libsuff= shlibsuff= libmagic=never-match;;
14429 esac
14430 ;;
14431 esac
14432 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14433 shlibpath_overrides_runpath=no
14434 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14435 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14436 hardcode_into_libs=yes
14437 ;;
14438
14439# No shared lib support for Linux oldld, aout, or coff.
14440linux*oldld* | linux*aout* | linux*coff*)
14441 dynamic_linker=no
14442 ;;
14443
14444# This must be Linux ELF.
14445linux*)
14446 version_type=linux
14447 need_lib_prefix=no
14448 need_version=no
14449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14450 soname_spec='${libname}${release}${shared_ext}$major'
14451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14452 shlibpath_var=LD_LIBRARY_PATH
14453 shlibpath_overrides_runpath=no
14454 # This implies no fast_install, which is unacceptable.
14455 # Some rework will be needed to allow for fast_install
14456 # before this can be enabled.
14457 hardcode_into_libs=yes
14458
14459 # We used to test for /lib/ld.so.1 and disable shared libraries on
14460 # powerpc, because MkLinux only supported shared libraries with the
14461 # GNU dynamic linker. Since this was broken with cross compilers,
14462 # most powerpc-linux boxes support dynamic linking these days and
14463 # people can always --disable-shared, the test was removed, and we
14464 # assume the GNU/Linux dynamic linker is in use.
14465 dynamic_linker='GNU/Linux ld.so'
14466 ;;
14467
14468netbsd*)
14469 version_type=sunos
14470 need_lib_prefix=no
14471 need_version=no
14472 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14475 dynamic_linker='NetBSD (a.out) ld.so'
14476 else
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 dynamic_linker='NetBSD ld.elf_so'
14480 fi
14481 shlibpath_var=LD_LIBRARY_PATH
14482 shlibpath_overrides_runpath=yes
14483 hardcode_into_libs=yes
14484 ;;
14485
14486newsos6)
14487 version_type=linux
14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 shlibpath_overrides_runpath=yes
14491 ;;
14492
14493nto-qnx)
14494 version_type=linux
14495 need_lib_prefix=no
14496 need_version=no
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498 soname_spec='${libname}${release}${shared_ext}$major'
14499 shlibpath_var=LD_LIBRARY_PATH
14500 shlibpath_overrides_runpath=yes
14501 ;;
14502
14503openbsd*)
14504 version_type=sunos
14505 need_lib_prefix=no
14506 need_version=no
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14509 shlibpath_var=LD_LIBRARY_PATH
14510 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14511 case $host_os in
14512 openbsd2.[89] | openbsd2.[89].*)
14513 shlibpath_overrides_runpath=no
14514 ;;
14515 *)
14516 shlibpath_overrides_runpath=yes
14517 ;;
14518 esac
14519 else
14520 shlibpath_overrides_runpath=yes
14521 fi
14522 ;;
14523
14524os2*)
14525 libname_spec='$name'
14526 shrext=".dll"
14527 need_lib_prefix=no
14528 library_names_spec='$libname${shared_ext} $libname.a'
14529 dynamic_linker='OS/2 ld.exe'
14530 shlibpath_var=LIBPATH
14531 ;;
14532
14533osf3* | osf4* | osf5*)
14534 version_type=osf
14535 need_lib_prefix=no
14536 need_version=no
14537 soname_spec='${libname}${release}${shared_ext}$major'
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539 shlibpath_var=LD_LIBRARY_PATH
14540 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14541 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14542 ;;
14543
14544sco3.2v5*)
14545 version_type=osf
14546 soname_spec='${libname}${release}${shared_ext}$major'
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548 shlibpath_var=LD_LIBRARY_PATH
14549 ;;
14550
14551solaris*)
14552 version_type=linux
14553 need_lib_prefix=no
14554 need_version=no
14555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14556 soname_spec='${libname}${release}${shared_ext}$major'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 shlibpath_overrides_runpath=yes
14559 hardcode_into_libs=yes
14560 # ldd complains unless libraries are executable
14561 postinstall_cmds='chmod +x $lib'
14562 ;;
14563
14564sunos4*)
14565 version_type=sunos
14566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14567 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14568 shlibpath_var=LD_LIBRARY_PATH
14569 shlibpath_overrides_runpath=yes
14570 if test "$with_gnu_ld" = yes; then
14571 need_lib_prefix=no
14572 fi
14573 need_version=yes
14574 ;;
14575
14576sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14577 version_type=linux
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 shlibpath_var=LD_LIBRARY_PATH
14581 case $host_vendor in
14582 sni)
14583 shlibpath_overrides_runpath=no
14584 need_lib_prefix=no
14585 export_dynamic_flag_spec='${wl}-Blargedynsym'
14586 runpath_var=LD_RUN_PATH
14587 ;;
14588 siemens)
14589 need_lib_prefix=no
14590 ;;
14591 motorola)
14592 need_lib_prefix=no
14593 need_version=no
14594 shlibpath_overrides_runpath=no
14595 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14596 ;;
14597 esac
14598 ;;
14599
14600sysv4*MP*)
14601 if test -d /usr/nec ;then
14602 version_type=linux
14603 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14604 soname_spec='$libname${shared_ext}.$major'
14605 shlibpath_var=LD_LIBRARY_PATH
14606 fi
14607 ;;
14608
14609uts4*)
14610 version_type=linux
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14612 soname_spec='${libname}${release}${shared_ext}$major'
14613 shlibpath_var=LD_LIBRARY_PATH
14614 ;;
14615
14616*)
14617 dynamic_linker=no
14618 ;;
14619esac
14620echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14621echo "${ECHO_T}$dynamic_linker" >&6
14622test "$dynamic_linker" = no && can_build_shared=no
14623
14624
14625# The else clause should only fire when bootstrapping the
14626# libtool distribution, otherwise you forgot to ship ltmain.sh
14627# with your package, and you will get complaints that there are
14628# no rules to generate ltmain.sh.
14629if test -f "$ltmain"; then
14630 # See if we are running on zsh, and set the options which allow our commands through
14631 # without removal of \ escapes.
14632 if test -n "${ZSH_VERSION+set}" ; then
14633 setopt NO_GLOB_SUBST
14634 fi
14635 # Now quote all the things that may contain metacharacters while being
14636 # careful not to overquote the AC_SUBSTed values. We take copies of the
14637 # variables and quote the copies for generation of the libtool script.
14638 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14639 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14640 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14641 deplibs_check_method reload_flag reload_cmds need_locks \
14642 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14643 lt_cv_sys_global_symbol_to_c_name_address \
14644 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14645 old_postinstall_cmds old_postuninstall_cmds \
14646 compiler_F77 \
14647 CC_F77 \
14648 LD_F77 \
14649 lt_prog_compiler_wl_F77 \
14650 lt_prog_compiler_pic_F77 \
14651 lt_prog_compiler_static_F77 \
14652 lt_prog_compiler_no_builtin_flag_F77 \
14653 export_dynamic_flag_spec_F77 \
14654 thread_safe_flag_spec_F77 \
14655 whole_archive_flag_spec_F77 \
14656 enable_shared_with_static_runtimes_F77 \
14657 old_archive_cmds_F77 \
14658 old_archive_from_new_cmds_F77 \
14659 predep_objects_F77 \
14660 postdep_objects_F77 \
14661 predeps_F77 \
14662 postdeps_F77 \
14663 compiler_lib_search_path_F77 \
14664 archive_cmds_F77 \
14665 archive_expsym_cmds_F77 \
14666 postinstall_cmds_F77 \
14667 postuninstall_cmds_F77 \
14668 old_archive_from_expsyms_cmds_F77 \
14669 allow_undefined_flag_F77 \
14670 no_undefined_flag_F77 \
14671 export_symbols_cmds_F77 \
14672 hardcode_libdir_flag_spec_F77 \
14673 hardcode_libdir_flag_spec_ld_F77 \
14674 hardcode_libdir_separator_F77 \
14675 hardcode_automatic_F77 \
14676 module_cmds_F77 \
14677 module_expsym_cmds_F77 \
14678 lt_cv_prog_compiler_c_o_F77 \
14679 exclude_expsyms_F77 \
14680 include_expsyms_F77; do
14681
14682 case $var in
14683 old_archive_cmds_F77 | \
14684 old_archive_from_new_cmds_F77 | \
14685 archive_cmds_F77 | \
14686 archive_expsym_cmds_F77 | \
14687 module_cmds_F77 | \
14688 module_expsym_cmds_F77 | \
14689 old_archive_from_expsyms_cmds_F77 | \
14690 export_symbols_cmds_F77 | \
14691 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14692 postinstall_cmds | postuninstall_cmds | \
14693 old_postinstall_cmds | old_postuninstall_cmds | \
14694 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14695 # Double-quote double-evaled strings.
14696 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14697 ;;
14698 *)
14699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14700 ;;
14701 esac
14702 done
14703
14704 case $lt_echo in
14705 *'\$0 --fallback-echo"')
14706 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14707 ;;
14708 esac
14709
14710cfgfile="$ofile"
14711
14712 cat <<__EOF__ >> "$cfgfile"
14713# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14714
14715# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14716
14717# Shell to use when invoking shell scripts.
14718SHELL=$lt_SHELL
14719
14720# Whether or not to build shared libraries.
14721build_libtool_libs=$enable_shared
14722
14723# Whether or not to build static libraries.
14724build_old_libs=$enable_static
14725
14726# Whether or not to add -lc for building shared libraries.
14727build_libtool_need_lc=$archive_cmds_need_lc_F77
14728
14729# Whether or not to disallow shared libs when runtime libs are static
14730allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14731
14732# Whether or not to optimize for fast installation.
14733fast_install=$enable_fast_install
14734
14735# The host system.
14736host_alias=$host_alias
14737host=$host
14738
14739# An echo program that does not interpret backslashes.
14740echo=$lt_echo
14741
14742# The archiver.
14743AR=$lt_AR
14744AR_FLAGS=$lt_AR_FLAGS
14745
14746# A C compiler.
14747LTCC=$lt_LTCC
14748
14749# A language-specific compiler.
14750CC=$lt_compiler_F77
14751
14752# Is the compiler the GNU C compiler?
14753with_gcc=$GCC_F77
14754
14755# An ERE matcher.
14756EGREP=$lt_EGREP
14757
14758# The linker used to build libraries.
14759LD=$lt_LD_F77
14760
14761# Whether we need hard or soft links.
14762LN_S=$lt_LN_S
14763
14764# A BSD-compatible nm program.
14765NM=$lt_NM
14766
14767# A symbol stripping program
14768STRIP=$STRIP
14769
14770# Used to examine libraries when file_magic_cmd begins "file"
14771MAGIC_CMD=$MAGIC_CMD
14772
14773# Used on cygwin: DLL creation program.
14774DLLTOOL="$DLLTOOL"
14775
14776# Used on cygwin: object dumper.
14777OBJDUMP="$OBJDUMP"
14778
14779# Used on cygwin: assembler.
14780AS="$AS"
14781
14782# The name of the directory that contains temporary libtool files.
14783objdir=$objdir
14784
14785# How to create reloadable object files.
14786reload_flag=$lt_reload_flag
14787reload_cmds=$lt_reload_cmds
14788
14789# How to pass a linker flag through the compiler.
14790wl=$lt_lt_prog_compiler_wl_F77
14791
14792# Object file suffix (normally "o").
14793objext="$ac_objext"
14794
14795# Old archive suffix (normally "a").
14796libext="$libext"
14797
14798# Shared library suffix (normally ".so").
14799shrext='$shrext'
14800
14801# Executable file suffix (normally "").
14802exeext="$exeext"
14803
14804# Additional compiler flags for building library objects.
14805pic_flag=$lt_lt_prog_compiler_pic_F77
14806pic_mode=$pic_mode
14807
14808# What is the maximum length of a command?
14809max_cmd_len=$lt_cv_sys_max_cmd_len
14810
14811# Does compiler simultaneously support -c and -o options?
14812compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14813
14814# Must we lock files when doing compilation ?
14815need_locks=$lt_need_locks
14816
14817# Do we need the lib prefix for modules?
14818need_lib_prefix=$need_lib_prefix
14819
14820# Do we need a version for libraries?
14821need_version=$need_version
14822
14823# Whether dlopen is supported.
14824dlopen_support=$enable_dlopen
14825
14826# Whether dlopen of programs is supported.
14827dlopen_self=$enable_dlopen_self
14828
14829# Whether dlopen of statically linked programs is supported.
14830dlopen_self_static=$enable_dlopen_self_static
14831
14832# Compiler flag to prevent dynamic linking.
14833link_static_flag=$lt_lt_prog_compiler_static_F77
14834
14835# Compiler flag to turn off builtin functions.
14836no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14837
14838# Compiler flag to allow reflexive dlopens.
14839export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14840
14841# Compiler flag to generate shared objects directly from archives.
14842whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14843
14844# Compiler flag to generate thread-safe objects.
14845thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14846
14847# Library versioning type.
14848version_type=$version_type
14849
14850# Format of library name prefix.
14851libname_spec=$lt_libname_spec
14852
14853# List of archive names. First name is the real one, the rest are links.
14854# The last name is the one that the linker finds with -lNAME.
14855library_names_spec=$lt_library_names_spec
14856
14857# The coded name of the library, if different from the real name.
14858soname_spec=$lt_soname_spec
14859
14860# Commands used to build and install an old-style archive.
14861RANLIB=$lt_RANLIB
14862old_archive_cmds=$lt_old_archive_cmds_F77
14863old_postinstall_cmds=$lt_old_postinstall_cmds
14864old_postuninstall_cmds=$lt_old_postuninstall_cmds
14865
14866# Create an old-style archive from a shared archive.
14867old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14868
14869# Create a temporary old-style archive to link instead of a shared archive.
14870old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14871
14872# Commands used to build and install a shared archive.
14873archive_cmds=$lt_archive_cmds_F77
14874archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14875postinstall_cmds=$lt_postinstall_cmds
14876postuninstall_cmds=$lt_postuninstall_cmds
14877
14878# Commands used to build a loadable module (assumed same as above if empty)
14879module_cmds=$lt_module_cmds_F77
14880module_expsym_cmds=$lt_module_expsym_cmds_F77
14881
14882# Commands to strip libraries.
14883old_striplib=$lt_old_striplib
14884striplib=$lt_striplib
14885
14886# Dependencies to place before the objects being linked to create a
14887# shared library.
14888predep_objects=$lt_predep_objects_F77
14889
14890# Dependencies to place after the objects being linked to create a
14891# shared library.
14892postdep_objects=$lt_postdep_objects_F77
14893
14894# Dependencies to place before the objects being linked to create a
14895# shared library.
14896predeps=$lt_predeps_F77
14897
14898# Dependencies to place after the objects being linked to create a
14899# shared library.
14900postdeps=$lt_postdeps_F77
14901
14902# The library search path used internally by the compiler when linking
14903# a shared library.
14904compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14905
14906# Method to check whether dependent libraries are shared objects.
14907deplibs_check_method=$lt_deplibs_check_method
14908
14909# Command to use when deplibs_check_method == file_magic.
14910file_magic_cmd=$lt_file_magic_cmd
14911
14912# Flag that allows shared libraries with undefined symbols to be built.
14913allow_undefined_flag=$lt_allow_undefined_flag_F77
14914
14915# Flag that forces no undefined symbols.
14916no_undefined_flag=$lt_no_undefined_flag_F77
14917
14918# Commands used to finish a libtool library installation in a directory.
14919finish_cmds=$lt_finish_cmds
14920
14921# Same as above, but a single script fragment to be evaled but not shown.
14922finish_eval=$lt_finish_eval
14923
14924# Take the output of nm and produce a listing of raw symbols and C names.
14925global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14926
14927# Transform the output of nm in a proper C declaration
14928global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14929
14930# Transform the output of nm in a C name address pair
14931global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14932
14933# This is the shared library runtime path variable.
14934runpath_var=$runpath_var
14935
14936# This is the shared library path variable.
14937shlibpath_var=$shlibpath_var
14938
14939# Is shlibpath searched before the hard-coded library search path?
14940shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14941
14942# How to hardcode a shared library path into an executable.
14943hardcode_action=$hardcode_action_F77
14944
14945# Whether we should hardcode library paths into libraries.
14946hardcode_into_libs=$hardcode_into_libs
14947
14948# Flag to hardcode \$libdir into a binary during linking.
14949# This must work even if \$libdir does not exist.
14950hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14951
14952# If ld is used when linking, flag to hardcode \$libdir into
14953# a binary during linking. This must work even if \$libdir does
14954# not exist.
14955hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14956
14957# Whether we need a single -rpath flag with a separated argument.
14958hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14959
14960# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14961# resulting binary.
14962hardcode_direct=$hardcode_direct_F77
14963
14964# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14965# resulting binary.
14966hardcode_minus_L=$hardcode_minus_L_F77
14967
14968# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14969# the resulting binary.
14970hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14971
14972# Set to yes if building a shared library automatically hardcodes DIR into the library
14973# and all subsequent libraries and executables linked against it.
14974hardcode_automatic=$hardcode_automatic_F77
14975
14976# Variables whose values should be saved in libtool wrapper scripts and
14977# restored at relink time.
14978variables_saved_for_relink="$variables_saved_for_relink"
14979
14980# Whether libtool must link a program against all its dependency libraries.
14981link_all_deplibs=$link_all_deplibs_F77
14982
14983# Compile-time system search path for libraries
14984sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14985
14986# Run-time system search path for libraries
14987sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14988
14989# Fix the shell variable \$srcfile for the compiler.
14990fix_srcfile_path="$fix_srcfile_path_F77"
14991
14992# Set to yes if exported symbols are required.
14993always_export_symbols=$always_export_symbols_F77
14994
14995# The commands to list exported symbols.
14996export_symbols_cmds=$lt_export_symbols_cmds_F77
14997
14998# The commands to extract the exported symbol list from a shared archive.
14999extract_expsyms_cmds=$lt_extract_expsyms_cmds
15000
15001# Symbols that should not be listed in the preloaded symbols.
15002exclude_expsyms=$lt_exclude_expsyms_F77
15003
15004# Symbols that must always be exported.
15005include_expsyms=$lt_include_expsyms_F77
15006
15007# ### END LIBTOOL TAG CONFIG: $tagname
15008
15009__EOF__
15010
15011
15012else
15013 # If there is no Makefile yet, we rely on a make rule to execute
15014 # `config.status --recheck' to rerun these tests and create the
15015 # libtool script then.
15016 test -f Makefile && make "$ltmain"
15017fi
15018
15019
15020ac_ext=c
15021ac_cpp='$CPP $CPPFLAGS'
15022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15024ac_compiler_gnu=$ac_cv_c_compiler_gnu
15025
15026CC="$lt_save_CC"
15027
15028 else
15029 tagname=""
15030 fi
15031 ;;
15032
15033 GCJ)
15034 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15035
15036
15037
15038# Source file extension for Java test sources.
15039ac_ext=java
15040
15041# Object file extension for compiled Java test sources.
15042objext=o
15043objext_GCJ=$objext
15044
15045# Code to be used in simple compile tests
15046lt_simple_compile_test_code="class foo {}\n"
15047
15048# Code to be used in simple link tests
15049lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15050
15051# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15052
15053# If no C compiler was specified, use CC.
15054LTCC=${LTCC-"$CC"}
15055
15056# Allow CC to be a program name with arguments.
15057compiler=$CC
15058
15059
15060# Allow CC to be a program name with arguments.
15061lt_save_CC="$CC"
15062CC=${GCJ-"gcj"}
15063compiler=$CC
15064compiler_GCJ=$CC
15065
15066# GCJ did not exist at the time GCC didn't implicitly link libc in.
15067archive_cmds_need_lc_GCJ=no
15068
15069## CAVEAT EMPTOR:
15070## There is no encapsulation within the following macros, do not change
15071## the running order or otherwise move them around unless you know exactly
15072## what you are doing...
15073
15074lt_prog_compiler_no_builtin_flag_GCJ=
15075
15076if test "$GCC" = yes; then
15077 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15078
15079 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15080echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15081if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15083else
15084 lt_cv_prog_compiler_rtti_exceptions=no
15085 ac_outfile=conftest.$ac_objext
15086 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15087 lt_compiler_flag="-fno-rtti -fno-exceptions"
15088 # Insert the option either (1) after the last *FLAGS variable, or
15089 # (2) before a word containing "conftest.", or (3) at the end.
15090 # Note that $ac_compile itself does not contain backslashes and begins
15091 # with a dollar sign (not a hyphen), so the echo should work correctly.
15092 # The option is referenced via a variable to avoid confusing sed.
15093 lt_compile=`echo "$ac_compile" | $SED \
15094 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15096 -e 's:$: $lt_compiler_flag:'`
Brian Gaekef3b24102003-11-16 18:38:14 +000015097 (eval echo "\"\$as_me:15097: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015098 (eval "$lt_compile" 2>conftest.err)
15099 ac_status=$?
15100 cat conftest.err >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000015101 echo "$as_me:15101: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015102 if (exit $ac_status) && test -s "$ac_outfile"; then
15103 # The compiler can only warn and ignore the option if not recognized
15104 # So say no if there are warnings
15105 if test ! -s conftest.err; then
15106 lt_cv_prog_compiler_rtti_exceptions=yes
15107 fi
15108 fi
15109 $rm conftest*
15110
15111fi
15112echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15113echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15114
15115if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15116 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15117else
15118 :
15119fi
15120
15121fi
15122
15123lt_prog_compiler_wl_GCJ=
15124lt_prog_compiler_pic_GCJ=
15125lt_prog_compiler_static_GCJ=
15126
15127echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15128echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15129
15130 if test "$GCC" = yes; then
15131 lt_prog_compiler_wl_GCJ='-Wl,'
15132 lt_prog_compiler_static_GCJ='-static'
15133
15134 case $host_os in
15135 aix*)
15136 # All AIX code is PIC.
15137 if test "$host_cpu" = ia64; then
15138 # AIX 5 now supports IA64 processor
15139 lt_prog_compiler_static_GCJ='-Bstatic'
15140 fi
15141 ;;
15142
15143 amigaos*)
15144 # FIXME: we need at least 68020 code to build shared libraries, but
15145 # adding the `-m68020' flag to GCC prevents building anything better,
15146 # like `-m68040'.
15147 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15148 ;;
15149
15150 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15151 # PIC is the default for these OSes.
15152 ;;
15153
15154 mingw* | pw32* | os2*)
15155 # This hack is so that the source file can tell whether it is being
15156 # built for inclusion in a dll (and should export symbols for example).
15157 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15158 ;;
15159
15160 darwin* | rhapsody*)
15161 # PIC is the default on this platform
15162 # Common symbols not allowed in MH_DYLIB files
15163 lt_prog_compiler_pic_GCJ='-fno-common'
15164 ;;
15165
15166 msdosdjgpp*)
15167 # Just because we use GCC doesn't mean we suddenly get shared libraries
15168 # on systems that don't support them.
15169 lt_prog_compiler_can_build_shared_GCJ=no
15170 enable_shared=no
15171 ;;
15172
15173 sysv4*MP*)
15174 if test -d /usr/nec; then
15175 lt_prog_compiler_pic_GCJ=-Kconform_pic
15176 fi
15177 ;;
15178
15179 hpux*)
15180 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15181 # not for PA HP-UX.
15182 case "$host_cpu" in
15183 hppa*64*|ia64*)
15184 # +Z the default
15185 ;;
15186 *)
15187 lt_prog_compiler_pic_GCJ='-fPIC'
15188 ;;
15189 esac
15190 ;;
15191
15192 *)
15193 lt_prog_compiler_pic_GCJ='-fPIC'
15194 ;;
15195 esac
15196 else
15197 # PORTME Check for flag to pass linker flags through the system compiler.
15198 case $host_os in
15199 aix*)
15200 lt_prog_compiler_wl_GCJ='-Wl,'
15201 if test "$host_cpu" = ia64; then
15202 # AIX 5 now supports IA64 processor
15203 lt_prog_compiler_static_GCJ='-Bstatic'
15204 else
15205 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15206 fi
15207 ;;
15208
15209 mingw* | pw32* | os2*)
15210 # This hack is so that the source file can tell whether it is being
15211 # built for inclusion in a dll (and should export symbols for example).
15212 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15213 ;;
15214
15215 hpux9* | hpux10* | hpux11*)
15216 lt_prog_compiler_wl_GCJ='-Wl,'
15217 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15218 # not for PA HP-UX.
15219 case "$host_cpu" in
15220 hppa*64*|ia64*)
15221 # +Z the default
15222 ;;
15223 *)
15224 lt_prog_compiler_pic_GCJ='+Z'
15225 ;;
15226 esac
15227 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15228 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15229 ;;
15230
15231 irix5* | irix6* | nonstopux*)
15232 lt_prog_compiler_wl_GCJ='-Wl,'
15233 # PIC (with -KPIC) is the default.
15234 lt_prog_compiler_static_GCJ='-non_shared'
15235 ;;
15236
15237 newsos6)
15238 lt_prog_compiler_pic_GCJ='-KPIC'
15239 lt_prog_compiler_static_GCJ='-Bstatic'
15240 ;;
15241
15242 linux*)
15243 case $CC in
15244 icc|ecc)
15245 lt_prog_compiler_wl_GCJ='-Wl,'
15246 lt_prog_compiler_pic_GCJ='-KPIC'
15247 lt_prog_compiler_static_GCJ='-static'
15248 ;;
15249 ccc)
15250 lt_prog_compiler_wl_GCJ='-Wl,'
15251 # All Alpha code is PIC.
15252 lt_prog_compiler_static_GCJ='-non_shared'
15253 ;;
15254 esac
15255 ;;
15256
15257 osf3* | osf4* | osf5*)
15258 lt_prog_compiler_wl_GCJ='-Wl,'
15259 # All OSF/1 code is PIC.
15260 lt_prog_compiler_static_GCJ='-non_shared'
15261 ;;
15262
15263 sco3.2v5*)
15264 lt_prog_compiler_pic_GCJ='-Kpic'
15265 lt_prog_compiler_static_GCJ='-dn'
15266 ;;
15267
15268 solaris*)
15269 lt_prog_compiler_wl_GCJ='-Wl,'
15270 lt_prog_compiler_pic_GCJ='-KPIC'
15271 lt_prog_compiler_static_GCJ='-Bstatic'
15272 ;;
15273
15274 sunos4*)
15275 lt_prog_compiler_wl_GCJ='-Qoption ld '
15276 lt_prog_compiler_pic_GCJ='-PIC'
15277 lt_prog_compiler_static_GCJ='-Bstatic'
15278 ;;
15279
15280 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15281 lt_prog_compiler_wl_GCJ='-Wl,'
15282 lt_prog_compiler_pic_GCJ='-KPIC'
15283 lt_prog_compiler_static_GCJ='-Bstatic'
15284 ;;
15285
15286 sysv4*MP*)
15287 if test -d /usr/nec ;then
15288 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15289 lt_prog_compiler_static_GCJ='-Bstatic'
15290 fi
15291 ;;
15292
15293 uts4*)
15294 lt_prog_compiler_pic_GCJ='-pic'
15295 lt_prog_compiler_static_GCJ='-Bstatic'
15296 ;;
15297
15298 *)
15299 lt_prog_compiler_can_build_shared_GCJ=no
15300 ;;
15301 esac
15302 fi
15303
15304echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15305echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15306
15307#
15308# Check to make sure the PIC flag actually works.
15309#
15310if test -n "$lt_prog_compiler_pic_GCJ"; then
15311 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15312echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15313if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315else
15316 lt_prog_compiler_pic_works_GCJ=no
15317 ac_outfile=conftest.$ac_objext
15318 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15319 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15320 # Insert the option either (1) after the last *FLAGS variable, or
15321 # (2) before a word containing "conftest.", or (3) at the end.
15322 # Note that $ac_compile itself does not contain backslashes and begins
15323 # with a dollar sign (not a hyphen), so the echo should work correctly.
15324 # The option is referenced via a variable to avoid confusing sed.
15325 lt_compile=`echo "$ac_compile" | $SED \
15326 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15328 -e 's:$: $lt_compiler_flag:'`
Brian Gaekef3b24102003-11-16 18:38:14 +000015329 (eval echo "\"\$as_me:15329: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015330 (eval "$lt_compile" 2>conftest.err)
15331 ac_status=$?
15332 cat conftest.err >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000015333 echo "$as_me:15333: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015334 if (exit $ac_status) && test -s "$ac_outfile"; then
15335 # The compiler can only warn and ignore the option if not recognized
15336 # So say no if there are warnings
15337 if test ! -s conftest.err; then
15338 lt_prog_compiler_pic_works_GCJ=yes
15339 fi
15340 fi
15341 $rm conftest*
15342
15343fi
15344echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15345echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15346
15347if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15348 case $lt_prog_compiler_pic_GCJ in
15349 "" | " "*) ;;
15350 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15351 esac
15352else
15353 lt_prog_compiler_pic_GCJ=
15354 lt_prog_compiler_can_build_shared_GCJ=no
15355fi
15356
15357fi
15358case "$host_os" in
15359 # For platforms which do not support PIC, -DPIC is meaningless:
15360 *djgpp*)
15361 lt_prog_compiler_pic_GCJ=
15362 ;;
15363 *)
15364 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15365 ;;
15366esac
15367
15368echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15369echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15370if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15372else
15373 lt_cv_prog_compiler_c_o_GCJ=no
15374 $rm -r conftest 2>/dev/null
15375 mkdir conftest
15376 cd conftest
15377 mkdir out
15378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15379
15380 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15381 # that will create temporary files in the current directory regardless of
15382 # the output directory. Thus, making CWD read-only will cause this test
15383 # to fail, enabling locking or at least warning the user not to do parallel
15384 # builds.
15385 chmod -w .
15386
15387 lt_compiler_flag="-o out/conftest2.$ac_objext"
15388 # Insert the option either (1) after the last *FLAGS variable, or
15389 # (2) before a word containing "conftest.", or (3) at the end.
15390 # Note that $ac_compile itself does not contain backslashes and begins
15391 # with a dollar sign (not a hyphen), so the echo should work correctly.
15392 lt_compile=`echo "$ac_compile" | $SED \
15393 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15395 -e 's:$: $lt_compiler_flag:'`
Brian Gaekef3b24102003-11-16 18:38:14 +000015396 (eval echo "\"\$as_me:15396: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015397 (eval "$lt_compile" 2>out/conftest.err)
15398 ac_status=$?
15399 cat out/conftest.err >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000015400 echo "$as_me:15400: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15402 then
15403 # The compiler can only warn and ignore the option if not recognized
15404 # So say no if there are warnings
15405 if test ! -s out/conftest.err; then
15406 lt_cv_prog_compiler_c_o_GCJ=yes
15407 fi
15408 fi
15409 chmod u+w .
15410 $rm conftest* out/*
15411 rmdir out
15412 cd ..
15413 rmdir conftest
15414 $rm conftest*
15415
15416fi
15417echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15418echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15419
15420
15421hard_links="nottested"
15422if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15423 # do not overwrite the value of need_locks provided by the user
15424 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15425echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15426 hard_links=yes
15427 $rm conftest*
15428 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15429 touch conftest.a
15430 ln conftest.a conftest.b 2>&5 || hard_links=no
15431 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15432 echo "$as_me:$LINENO: result: $hard_links" >&5
15433echo "${ECHO_T}$hard_links" >&6
15434 if test "$hard_links" = no; then
15435 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15436echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15437 need_locks=warn
15438 fi
15439else
15440 need_locks=no
15441fi
15442
15443echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15444echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15445
15446 runpath_var=
15447 allow_undefined_flag_GCJ=
15448 enable_shared_with_static_runtimes_GCJ=no
15449 archive_cmds_GCJ=
15450 archive_expsym_cmds_GCJ=
15451 old_archive_From_new_cmds_GCJ=
15452 old_archive_from_expsyms_cmds_GCJ=
15453 export_dynamic_flag_spec_GCJ=
15454 whole_archive_flag_spec_GCJ=
15455 thread_safe_flag_spec_GCJ=
15456 hardcode_libdir_flag_spec_GCJ=
15457 hardcode_libdir_flag_spec_ld_GCJ=
15458 hardcode_libdir_separator_GCJ=
15459 hardcode_direct_GCJ=no
15460 hardcode_minus_L_GCJ=no
15461 hardcode_shlibpath_var_GCJ=unsupported
15462 link_all_deplibs_GCJ=unknown
15463 hardcode_automatic_GCJ=no
15464 module_cmds_GCJ=
15465 module_expsym_cmds_GCJ=
15466 always_export_symbols_GCJ=no
15467 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15468 # include_expsyms should be a list of space-separated symbols to be *always*
15469 # included in the symbol list
15470 include_expsyms_GCJ=
15471 # exclude_expsyms can be an extended regexp of symbols to exclude
15472 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15473 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15474 # as well as any symbol that contains `d'.
15475 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15476 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15477 # platforms (ab)use it in PIC code, but their linkers get confused if
15478 # the symbol is explicitly referenced. Since portable code cannot
15479 # rely on this symbol name, it's probably fine to never include it in
15480 # preloaded symbol tables.
15481 extract_expsyms_cmds=
15482
15483 case $host_os in
15484 cygwin* | mingw* | pw32*)
15485 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15486 # When not using gcc, we currently assume that we are using
15487 # Microsoft Visual C++.
15488 if test "$GCC" != yes; then
15489 with_gnu_ld=no
15490 fi
15491 ;;
15492 openbsd*)
15493 with_gnu_ld=no
15494 ;;
15495 esac
15496
15497 ld_shlibs_GCJ=yes
15498 if test "$with_gnu_ld" = yes; then
15499 # If archive_cmds runs LD, not CC, wlarc should be empty
15500 wlarc='${wl}'
15501
15502 # See if GNU ld supports shared libraries.
15503 case $host_os in
15504 aix3* | aix4* | aix5*)
15505 # On AIX/PPC, the GNU linker is very broken
15506 if test "$host_cpu" != ia64; then
15507 ld_shlibs_GCJ=no
15508 cat <<EOF 1>&2
15509
15510*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15511*** to be unable to reliably create shared libraries on AIX.
15512*** Therefore, libtool is disabling shared libraries support. If you
15513*** really care for shared libraries, you may want to modify your PATH
15514*** so that a non-GNU linker is found, and then restart.
15515
15516EOF
15517 fi
15518 ;;
15519
15520 amigaos*)
15521 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)'
15522 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15523 hardcode_minus_L_GCJ=yes
15524
15525 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15526 # that the semantics of dynamic libraries on AmigaOS, at least up
15527 # to version 4, is to share data among multiple programs linked
15528 # with the same dynamic library. Since this doesn't match the
15529 # behavior of shared libraries on other platforms, we can't use
15530 # them.
15531 ld_shlibs_GCJ=no
15532 ;;
15533
15534 beos*)
15535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15536 allow_undefined_flag_GCJ=unsupported
15537 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15538 # support --undefined. This deserves some investigation. FIXME
15539 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15540 else
15541 ld_shlibs_GCJ=no
15542 fi
15543 ;;
15544
15545 cygwin* | mingw* | pw32*)
15546 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15547 # as there is no search path for DLLs.
15548 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15549 allow_undefined_flag_GCJ=unsupported
15550 always_export_symbols_GCJ=no
15551 enable_shared_with_static_runtimes_GCJ=yes
15552 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15553
15554 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15555 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15556 # If the export-symbols file already is a .def file (1st line
15557 # is EXPORTS), use it as is; otherwise, prepend...
15558 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15559 cp $export_symbols $output_objdir/$soname.def;
15560 else
15561 echo EXPORTS > $output_objdir/$soname.def;
15562 cat $export_symbols >> $output_objdir/$soname.def;
15563 fi~
15564 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15565 else
15566 ld_shlibs=no
15567 fi
15568 ;;
15569
15570 netbsd*)
15571 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15572 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15573 wlarc=
15574 else
15575 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15576 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15577 fi
15578 ;;
15579
15580 solaris* | sysv5*)
15581 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15582 ld_shlibs_GCJ=no
15583 cat <<EOF 1>&2
15584
15585*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15586*** create shared libraries on Solaris systems. Therefore, libtool
15587*** is disabling shared libraries support. We urge you to upgrade GNU
15588*** binutils to release 2.9.1 or newer. Another option is to modify
15589*** your PATH or compiler configuration so that the native linker is
15590*** used, and then restart.
15591
15592EOF
15593 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15594 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15595 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15596 else
15597 ld_shlibs_GCJ=no
15598 fi
15599 ;;
15600
15601 sunos4*)
15602 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15603 wlarc=
15604 hardcode_direct_GCJ=yes
15605 hardcode_shlibpath_var_GCJ=no
15606 ;;
15607
15608 *)
15609 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15610 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15611 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15612 else
15613 ld_shlibs_GCJ=no
15614 fi
15615 ;;
15616 esac
15617
15618 if test "$ld_shlibs_GCJ" = yes; then
15619 runpath_var=LD_RUN_PATH
15620 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15621 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15622 # ancient GNU ld didn't support --whole-archive et. al.
15623 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15624 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15625 else
15626 whole_archive_flag_spec_GCJ=
15627 fi
15628 fi
15629 else
15630 # PORTME fill in a description of your system's linker (not GNU ld)
15631 case $host_os in
15632 aix3*)
15633 allow_undefined_flag_GCJ=unsupported
15634 always_export_symbols_GCJ=yes
15635 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'
15636 # Note: this linker hardcodes the directories in LIBPATH if there
15637 # are no directories specified by -L.
15638 hardcode_minus_L_GCJ=yes
15639 if test "$GCC" = yes && test -z "$link_static_flag"; then
15640 # Neither direct hardcoding nor static linking is supported with a
15641 # broken collect2.
15642 hardcode_direct_GCJ=unsupported
15643 fi
15644 ;;
15645
15646 aix4* | aix5*)
15647 if test "$host_cpu" = ia64; then
15648 # On IA64, the linker does run time linking by default, so we don't
15649 # have to do anything special.
15650 aix_use_runtimelinking=no
15651 exp_sym_flag='-Bexport'
15652 no_entry_flag=""
15653 else
15654 # If we're using GNU nm, then we don't want the "-C" option.
15655 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15656 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15657 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'
15658 else
15659 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'
15660 fi
15661 aix_use_runtimelinking=no
15662
15663 # Test if we are trying to use run time linking or normal
15664 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15665 # need to do runtime linking.
15666 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15667 for ld_flag in $LDFLAGS; do
15668 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15669 aix_use_runtimelinking=yes
15670 break
15671 fi
15672 done
15673 esac
15674
15675 exp_sym_flag='-bexport'
15676 no_entry_flag='-bnoentry'
15677 fi
15678
15679 # When large executables or shared objects are built, AIX ld can
15680 # have problems creating the table of contents. If linking a library
15681 # or program results in "error TOC overflow" add -mminimal-toc to
15682 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15683 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15684
15685 archive_cmds_GCJ=''
15686 hardcode_direct_GCJ=yes
15687 hardcode_libdir_separator_GCJ=':'
15688 link_all_deplibs_GCJ=yes
15689
15690 if test "$GCC" = yes; then
15691 case $host_os in aix4.012|aix4.012.*)
15692 # We only want to do this on AIX 4.2 and lower, the check
15693 # below for broken collect2 doesn't work under 4.3+
15694 collect2name=`${CC} -print-prog-name=collect2`
15695 if test -f "$collect2name" && \
15696 strings "$collect2name" | grep resolve_lib_name >/dev/null
15697 then
15698 # We have reworked collect2
15699 hardcode_direct_GCJ=yes
15700 else
15701 # We have old collect2
15702 hardcode_direct_GCJ=unsupported
15703 # It fails to find uninstalled libraries when the uninstalled
15704 # path is not listed in the libpath. Setting hardcode_minus_L
15705 # to unsupported forces relinking
15706 hardcode_minus_L_GCJ=yes
15707 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15708 hardcode_libdir_separator_GCJ=
15709 fi
15710 esac
15711 shared_flag='-shared'
15712 else
15713 # not using gcc
15714 if test "$host_cpu" = ia64; then
15715 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15716 # chokes on -Wl,-G. The following line is correct:
15717 shared_flag='-G'
15718 else
15719 if test "$aix_use_runtimelinking" = yes; then
15720 shared_flag='${wl}-G'
15721 else
15722 shared_flag='${wl}-bM:SRE'
15723 fi
15724 fi
15725 fi
15726
15727 # It seems that -bexpall does not export symbols beginning with
15728 # underscore (_), so it is better to generate a list of symbols to export.
15729 always_export_symbols_GCJ=yes
15730 if test "$aix_use_runtimelinking" = yes; then
15731 # Warning - without using the other runtime loading flags (-brtl),
15732 # -berok will link without error, but may produce a broken library.
15733 allow_undefined_flag_GCJ='-berok'
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 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"
15779 else
15780 if test "$host_cpu" = ia64; then
15781 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15782 allow_undefined_flag_GCJ="-z nodefs"
15783 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"
15784 else
15785 # Determine the default libpath from the value encoded in an empty executable.
15786 cat >conftest.$ac_ext <<_ACEOF
15787#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015788/* confdefs.h. */
15789_ACEOF
15790cat confdefs.h >>conftest.$ac_ext
15791cat >>conftest.$ac_ext <<_ACEOF
15792/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015793
John Criswell47fdd832003-07-14 16:52:07 +000015794int
15795main ()
15796{
15797
15798 ;
15799 return 0;
15800}
15801_ACEOF
15802rm -f conftest.$ac_objext conftest$ac_exeext
15803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15804 (eval $ac_link) 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } &&
15808 { ac_try='test -s conftest$ac_exeext'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814
15815aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15816}'`
15817# Check for a 64-bit object if we didn't find anything.
15818if 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; }
15819}'`; fi
15820else
15821 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015822sed 's/^/| /' conftest.$ac_ext >&5
15823
John Criswell47fdd832003-07-14 16:52:07 +000015824fi
15825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15826if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15827
15828 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15829 # Warning - without using the other run time loading flags,
15830 # -berok will link without error, but may produce a broken library.
15831 no_undefined_flag_GCJ=' ${wl}-bernotok'
15832 allow_undefined_flag_GCJ=' ${wl}-berok'
15833 # -bexpall does not export symbols beginning with underscore (_)
15834 always_export_symbols_GCJ=yes
15835 # Exported symbols can be pulled into shared objects from archives
15836 whole_archive_flag_spec_GCJ=' '
15837 archive_cmds_need_lc_GCJ=yes
15838 # This is similar to how AIX traditionally builds it's shared libraries.
15839 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'
15840 fi
15841 fi
15842 ;;
15843
15844 amigaos*)
15845 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)'
15846 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15847 hardcode_minus_L_GCJ=yes
15848 # see comment about different semantics on the GNU ld section
15849 ld_shlibs_GCJ=no
15850 ;;
15851
15852 bsdi4*)
15853 export_dynamic_flag_spec_GCJ=-rdynamic
15854 ;;
15855
15856 cygwin* | mingw* | pw32*)
15857 # When not using gcc, we currently assume that we are using
15858 # Microsoft Visual C++.
15859 # hardcode_libdir_flag_spec is actually meaningless, as there is
15860 # no search path for DLLs.
15861 hardcode_libdir_flag_spec_GCJ=' '
15862 allow_undefined_flag_GCJ=unsupported
15863 # Tell ltmain to make .lib files, not .a files.
15864 libext=lib
15865 # Tell ltmain to make .dll files, not .so files.
15866 shrext=".dll"
15867 # FIXME: Setting linknames here is a bad hack.
15868 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15869 # The linker will automatically build a .lib file if we build a DLL.
15870 old_archive_From_new_cmds_GCJ='true'
15871 # FIXME: Should let the user specify the lib program.
15872 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15873 fix_srcfile_path='`cygpath -w "$srcfile"`'
15874 enable_shared_with_static_runtimes_GCJ=yes
15875 ;;
15876
15877 darwin* | rhapsody*)
15878 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15879 archive_cmds_need_lc_GCJ=no
15880 case "$host_os" in
15881 rhapsody* | darwin1.[012])
15882 allow_undefined_flag_GCJ='-undefined suppress'
15883 ;;
15884 *) # Darwin 1.3 on
15885 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15886 ;;
15887 esac
15888 # FIXME: Relying on posixy $() will cause problems for
15889 # cross-compilation, but unfortunately the echo tests do not
15890 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15891 # `"' quotes if we put them in here... so don't!
15892 lt_int_apple_cc_single_mod=no
15893 output_verbose_link_cmd='echo'
15894 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15895 lt_int_apple_cc_single_mod=yes
15896 fi
15897 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15898 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15899 else
15900 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'
15901 fi
15902 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15903 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15904 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15905 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}'
15906 else
15907 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}'
15908 fi
15909 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}'
15910 hardcode_direct_GCJ=no
15911 hardcode_automatic_GCJ=yes
15912 hardcode_shlibpath_var_GCJ=unsupported
15913 whole_archive_flag_spec_GCJ='-all_load $convenience'
15914 link_all_deplibs_GCJ=yes
15915 fi
15916 ;;
15917
15918 dgux*)
15919 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15920 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15921 hardcode_shlibpath_var_GCJ=no
15922 ;;
15923
15924 freebsd1*)
15925 ld_shlibs_GCJ=no
15926 ;;
15927
15928 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15929 # support. Future versions do this automatically, but an explicit c++rt0.o
15930 # does not break anything, and helps significantly (at the cost of a little
15931 # extra space).
15932 freebsd2.2*)
15933 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15934 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15935 hardcode_direct_GCJ=yes
15936 hardcode_shlibpath_var_GCJ=no
15937 ;;
15938
15939 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15940 freebsd2*)
15941 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15942 hardcode_direct_GCJ=yes
15943 hardcode_minus_L_GCJ=yes
15944 hardcode_shlibpath_var_GCJ=no
15945 ;;
15946
15947 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15948 freebsd*)
15949 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15950 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15951 hardcode_direct_GCJ=yes
15952 hardcode_shlibpath_var_GCJ=no
15953 ;;
15954
15955 hpux9*)
15956 if test "$GCC" = yes; then
15957 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'
15958 else
15959 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'
15960 fi
15961 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15962 hardcode_libdir_separator_GCJ=:
15963 hardcode_direct_GCJ=yes
15964
15965 # hardcode_minus_L: Not really in the search PATH,
15966 # but as the default location of the library.
15967 hardcode_minus_L_GCJ=yes
15968 export_dynamic_flag_spec_GCJ='${wl}-E'
15969 ;;
15970
15971 hpux10* | hpux11*)
15972 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15973 case "$host_cpu" in
15974 hppa*64*|ia64*)
15975 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15976 ;;
15977 *)
15978 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15979 ;;
15980 esac
15981 else
15982 case "$host_cpu" in
15983 hppa*64*|ia64*)
15984 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15985 ;;
15986 *)
15987 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15988 ;;
15989 esac
15990 fi
15991 if test "$with_gnu_ld" = no; then
15992 case "$host_cpu" in
15993 hppa*64*)
15994 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15995 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15996 hardcode_libdir_separator_GCJ=:
15997 hardcode_direct_GCJ=no
15998 hardcode_shlibpath_var_GCJ=no
15999 ;;
16000 ia64*)
16001 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16002 hardcode_direct_GCJ=no
16003 hardcode_shlibpath_var_GCJ=no
16004
16005 # hardcode_minus_L: Not really in the search PATH,
16006 # but as the default location of the library.
16007 hardcode_minus_L_GCJ=yes
16008 ;;
16009 *)
16010 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16011 hardcode_libdir_separator_GCJ=:
16012 hardcode_direct_GCJ=yes
16013 export_dynamic_flag_spec_GCJ='${wl}-E'
16014
16015 # hardcode_minus_L: Not really in the search PATH,
16016 # but as the default location of the library.
16017 hardcode_minus_L_GCJ=yes
16018 ;;
16019 esac
16020 fi
16021 ;;
16022
16023 irix5* | irix6* | nonstopux*)
16024 if test "$GCC" = yes; then
16025 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'
16026 else
16027 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'
16028 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16029 fi
16030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16031 hardcode_libdir_separator_GCJ=:
16032 link_all_deplibs_GCJ=yes
16033 ;;
16034
16035 netbsd*)
16036 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16037 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16038 else
16039 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16040 fi
16041 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16042 hardcode_direct_GCJ=yes
16043 hardcode_shlibpath_var_GCJ=no
16044 ;;
16045
16046 newsos6)
16047 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16048 hardcode_direct_GCJ=yes
16049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16050 hardcode_libdir_separator_GCJ=:
16051 hardcode_shlibpath_var_GCJ=no
16052 ;;
16053
16054 openbsd*)
16055 hardcode_direct_GCJ=yes
16056 hardcode_shlibpath_var_GCJ=no
16057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16058 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16059 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16060 export_dynamic_flag_spec_GCJ='${wl}-E'
16061 else
16062 case $host_os in
16063 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16064 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16065 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16066 ;;
16067 *)
16068 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16069 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16070 ;;
16071 esac
16072 fi
16073 ;;
16074
16075 os2*)
16076 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16077 hardcode_minus_L_GCJ=yes
16078 allow_undefined_flag_GCJ=unsupported
16079 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'
16080 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16081 ;;
16082
16083 osf3*)
16084 if test "$GCC" = yes; then
16085 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16086 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'
16087 else
16088 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16089 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'
16090 fi
16091 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16092 hardcode_libdir_separator_GCJ=:
16093 ;;
16094
16095 osf4* | osf5*) # as osf3* with the addition of -msym flag
16096 if test "$GCC" = yes; then
16097 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16098 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'
16099 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16100 else
16101 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16102 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'
16103 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~
16104 $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'
16105
16106 # Both c and cxx compiler support -rpath directly
16107 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16108 fi
16109 hardcode_libdir_separator_GCJ=:
16110 ;;
16111
16112 sco3.2v5*)
16113 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16114 hardcode_shlibpath_var_GCJ=no
16115 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16116 runpath_var=LD_RUN_PATH
16117 hardcode_runpath_var=yes
16118 ;;
16119
16120 solaris*)
16121 no_undefined_flag_GCJ=' -z text'
16122 if test "$GCC" = yes; then
16123 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16124 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16125 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16126 else
16127 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16129 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16130 fi
16131 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16132 hardcode_shlibpath_var_GCJ=no
16133 case $host_os in
16134 solaris2.[0-5] | solaris2.[0-5].*) ;;
16135 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16136 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16137 esac
16138 link_all_deplibs_GCJ=yes
16139 ;;
16140
16141 sunos4*)
16142 if test "x$host_vendor" = xsequent; then
16143 # Use $CC to link under sequent, because it throws in some extra .o
16144 # files that make .init and .fini sections work.
16145 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16146 else
16147 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16148 fi
16149 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16150 hardcode_direct_GCJ=yes
16151 hardcode_minus_L_GCJ=yes
16152 hardcode_shlibpath_var_GCJ=no
16153 ;;
16154
16155 sysv4)
16156 case $host_vendor in
16157 sni)
16158 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16159 hardcode_direct_GCJ=yes # is this really true???
16160 ;;
16161 siemens)
16162 ## LD is ld it makes a PLAMLIB
16163 ## CC just makes a GrossModule.
16164 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16165 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16166 hardcode_direct_GCJ=no
16167 ;;
16168 motorola)
16169 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16170 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16171 ;;
16172 esac
16173 runpath_var='LD_RUN_PATH'
16174 hardcode_shlibpath_var_GCJ=no
16175 ;;
16176
16177 sysv4.3*)
16178 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16179 hardcode_shlibpath_var_GCJ=no
16180 export_dynamic_flag_spec_GCJ='-Bexport'
16181 ;;
16182
16183 sysv4*MP*)
16184 if test -d /usr/nec; then
16185 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16186 hardcode_shlibpath_var_GCJ=no
16187 runpath_var=LD_RUN_PATH
16188 hardcode_runpath_var=yes
16189 ld_shlibs_GCJ=yes
16190 fi
16191 ;;
16192
16193 sysv4.2uw2*)
16194 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16195 hardcode_direct_GCJ=yes
16196 hardcode_minus_L_GCJ=no
16197 hardcode_shlibpath_var_GCJ=no
16198 hardcode_runpath_var=yes
16199 runpath_var=LD_RUN_PATH
16200 ;;
16201
16202 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16203 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16204 if test "$GCC" = yes; then
16205 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16206 else
16207 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16208 fi
16209 runpath_var='LD_RUN_PATH'
16210 hardcode_shlibpath_var_GCJ=no
16211 ;;
16212
16213 sysv5*)
16214 no_undefined_flag_GCJ=' -z text'
16215 # $CC -shared without GNU ld will not create a library from C++
16216 # object files and a static libstdc++, better avoid it by now
16217 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16218 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16219 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16220 hardcode_libdir_flag_spec_GCJ=
16221 hardcode_shlibpath_var_GCJ=no
16222 runpath_var='LD_RUN_PATH'
16223 ;;
16224
16225 uts4*)
16226 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16227 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16228 hardcode_shlibpath_var_GCJ=no
16229 ;;
16230
16231 *)
16232 ld_shlibs_GCJ=no
16233 ;;
16234 esac
16235 fi
16236
16237echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16238echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16239test "$ld_shlibs_GCJ" = no && can_build_shared=no
16240
16241variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16242if test "$GCC" = yes; then
16243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16244fi
16245
16246#
16247# Do we need to explicitly link libc?
16248#
16249case "x$archive_cmds_need_lc_GCJ" in
16250x|xyes)
16251 # Assume -lc should be added
16252 archive_cmds_need_lc_GCJ=yes
16253
16254 if test "$enable_shared" = yes && test "$GCC" = yes; then
16255 case $archive_cmds_GCJ in
16256 *'~'*)
16257 # FIXME: we may have to deal with multi-command sequences.
16258 ;;
16259 '$CC '*)
16260 # Test whether the compiler implicitly links with -lc since on some
16261 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16262 # to ld, don't add -lc before -lgcc.
16263 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16264echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16265 $rm conftest*
16266 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16267
16268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16269 (eval $ac_compile) 2>&5
16270 ac_status=$?
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } 2>conftest.err; then
16273 soname=conftest
16274 lib=conftest
16275 libobjs=conftest.$ac_objext
16276 deplibs=
16277 wl=$lt_prog_compiler_wl_GCJ
16278 compiler_flags=-v
16279 linker_flags=-v
16280 verstring=
16281 output_objdir=.
16282 libname=conftest
16283 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16284 allow_undefined_flag_GCJ=
16285 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16286 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }
16290 then
16291 archive_cmds_need_lc_GCJ=no
16292 else
16293 archive_cmds_need_lc_GCJ=yes
16294 fi
16295 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16296 else
16297 cat conftest.err 1>&5
16298 fi
16299 $rm conftest*
16300 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16301echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16302 ;;
16303 esac
16304 fi
16305 ;;
16306esac
16307
16308echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16309echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16310hardcode_action_GCJ=
16311if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16312 test -n "$runpath_var GCJ" || \
16313 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16314
16315 # We can hardcode non-existant directories.
16316 if test "$hardcode_direct_GCJ" != no &&
16317 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16318 # have to relink, otherwise we might link with an installed library
16319 # when we should be linking with a yet-to-be-installed one
16320 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16321 test "$hardcode_minus_L_GCJ" != no; then
16322 # Linking always hardcodes the temporary library directory.
16323 hardcode_action_GCJ=relink
16324 else
16325 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16326 hardcode_action_GCJ=immediate
16327 fi
16328else
16329 # We cannot hardcode anything, or else we can only hardcode existing
16330 # directories.
16331 hardcode_action_GCJ=unsupported
16332fi
16333echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16334echo "${ECHO_T}$hardcode_action_GCJ" >&6
16335
16336if test "$hardcode_action_GCJ" = relink; then
16337 # Fast installation is not supported
16338 enable_fast_install=no
16339elif test "$shlibpath_overrides_runpath" = yes ||
16340 test "$enable_shared" = no; then
16341 # Fast installation is not necessary
16342 enable_fast_install=needless
16343fi
16344
16345striplib=
16346old_striplib=
16347echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16348echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16349if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16350 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16351 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16352 echo "$as_me:$LINENO: result: yes" >&5
16353echo "${ECHO_T}yes" >&6
16354else
16355# FIXME - insert some real tests, host_os isn't really good enough
16356 case $host_os in
16357 darwin*)
16358 if test -n "$STRIP" ; then
16359 striplib="$STRIP -x"
16360 echo "$as_me:$LINENO: result: yes" >&5
16361echo "${ECHO_T}yes" >&6
16362 else
16363 echo "$as_me:$LINENO: result: no" >&5
16364echo "${ECHO_T}no" >&6
16365fi
16366 ;;
16367 *)
16368 echo "$as_me:$LINENO: result: no" >&5
16369echo "${ECHO_T}no" >&6
16370 ;;
16371 esac
16372fi
16373
16374echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16375echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16376library_names_spec=
16377libname_spec='lib$name'
16378soname_spec=
16379shrext=".so"
16380postinstall_cmds=
16381postuninstall_cmds=
16382finish_cmds=
16383finish_eval=
16384shlibpath_var=
16385shlibpath_overrides_runpath=unknown
16386version_type=none
16387dynamic_linker="$host_os ld.so"
16388sys_lib_dlsearch_path_spec="/lib /usr/lib"
16389if test "$GCC" = yes; then
16390 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16391 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16392 # if the path contains ";" then we assume it to be the separator
16393 # otherwise default to the standard path separator (i.e. ":") - it is
16394 # assumed that no part of a normal pathname contains ";" but that should
16395 # okay in the real world where ";" in dirpaths is itself problematic.
16396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16397 else
16398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16399 fi
16400else
16401 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16402fi
16403need_lib_prefix=unknown
16404hardcode_into_libs=no
16405
16406# when you set need_version to no, make sure it does not cause -set_version
16407# flags to be left without arguments
16408need_version=unknown
16409
16410case $host_os in
16411aix3*)
16412 version_type=linux
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16414 shlibpath_var=LIBPATH
16415
16416 # AIX 3 has no versioning support, so we append a major version to the name.
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 ;;
16419
16420aix4* | aix5*)
16421 version_type=linux
16422 need_lib_prefix=no
16423 need_version=no
16424 hardcode_into_libs=yes
16425 if test "$host_cpu" = ia64; then
16426 # AIX 5 supports IA64
16427 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16428 shlibpath_var=LD_LIBRARY_PATH
16429 else
16430 # With GCC up to 2.95.x, collect2 would create an import file
16431 # for dependence libraries. The import file would start with
16432 # the line `#! .'. This would cause the generated library to
16433 # depend on `.', always an invalid library. This was fixed in
16434 # development snapshots of GCC prior to 3.0.
16435 case $host_os in
16436 aix4 | aix4.[01] | aix4.[01].*)
16437 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16438 echo ' yes '
16439 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16440 :
16441 else
16442 can_build_shared=no
16443 fi
16444 ;;
16445 esac
16446 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16447 # soname into executable. Probably we can add versioning support to
16448 # collect2, so additional links can be useful in future.
16449 if test "$aix_use_runtimelinking" = yes; then
16450 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16451 # instead of lib<name>.a to let people know that these are not
16452 # typical AIX shared libraries.
16453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16454 else
16455 # We preserve .a as extension for shared libraries through AIX4.2
16456 # and later when we are not doing run time linking.
16457 library_names_spec='${libname}${release}.a $libname.a'
16458 soname_spec='${libname}${release}${shared_ext}$major'
16459 fi
16460 shlibpath_var=LIBPATH
16461 fi
16462 ;;
16463
16464amigaos*)
16465 library_names_spec='$libname.ixlibrary $libname.a'
16466 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16467 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'
16468 ;;
16469
16470beos*)
16471 library_names_spec='${libname}${shared_ext}'
16472 dynamic_linker="$host_os ld.so"
16473 shlibpath_var=LIBRARY_PATH
16474 ;;
16475
16476bsdi4*)
16477 version_type=linux
16478 need_version=no
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480 soname_spec='${libname}${release}${shared_ext}$major'
16481 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16482 shlibpath_var=LD_LIBRARY_PATH
16483 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16484 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16485 # the default ld.so.conf also contains /usr/contrib/lib and
16486 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16487 # libtool to hard-code these into programs
16488 ;;
16489
16490cygwin* | mingw* | pw32*)
16491 version_type=windows
16492 shrext=".dll"
16493 need_version=no
16494 need_lib_prefix=no
16495
16496 case $GCC,$host_os in
16497 yes,cygwin* | yes,mingw* | yes,pw32*)
16498 library_names_spec='$libname.dll.a'
16499 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16500 postinstall_cmds='base_file=`basename \${file}`~
16501 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16502 dldir=$destdir/`dirname \$dlpath`~
16503 test -d \$dldir || mkdir -p \$dldir~
16504 $install_prog $dir/$dlname \$dldir/$dlname'
16505 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16506 dlpath=$dir/\$dldll~
16507 $rm \$dlpath'
16508 shlibpath_overrides_runpath=yes
16509
16510 case $host_os in
16511 cygwin*)
16512 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16513 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16514 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16515 ;;
16516 mingw*)
16517 # MinGW DLLs use traditional 'lib' prefix
16518 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16519 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16520 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16521 # It is most probably a Windows format PATH printed by
16522 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16523 # path with ; separators, and with drive letters. We can handle the
16524 # drive letters (cygwin fileutils understands them), so leave them,
16525 # especially as we might pass files found there to a mingw objdump,
16526 # which wouldn't understand a cygwinified path. Ahh.
16527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16528 else
16529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16530 fi
16531 ;;
16532 pw32*)
16533 # pw32 DLLs use 'pw' prefix rather than 'lib'
16534 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16535 ;;
16536 esac
16537 ;;
16538
16539 *)
16540 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16541 ;;
16542 esac
16543 dynamic_linker='Win32 ld.exe'
16544 # FIXME: first we should search . and the directory the executable is in
16545 shlibpath_var=PATH
16546 ;;
16547
16548darwin* | rhapsody*)
16549 dynamic_linker="$host_os dyld"
16550 version_type=darwin
16551 need_lib_prefix=no
16552 need_version=no
16553 # FIXME: Relying on posixy $() will cause problems for
16554 # cross-compilation, but unfortunately the echo tests do not
16555 # yet detect zsh echo's removal of \ escapes.
16556 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16557 soname_spec='${libname}${release}${major}$shared_ext'
16558 shlibpath_overrides_runpath=yes
16559 shlibpath_var=DYLD_LIBRARY_PATH
16560 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16561 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16562 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16563 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"`
16564 fi
16565 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16566 ;;
16567
16568dgux*)
16569 version_type=linux
16570 need_lib_prefix=no
16571 need_version=no
16572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16573 soname_spec='${libname}${release}${shared_ext}$major'
16574 shlibpath_var=LD_LIBRARY_PATH
16575 ;;
16576
16577freebsd1*)
16578 dynamic_linker=no
16579 ;;
16580
16581freebsd*)
16582 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16583 version_type=freebsd-$objformat
16584 case $version_type in
16585 freebsd-elf*)
16586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16587 need_version=no
16588 need_lib_prefix=no
16589 ;;
16590 freebsd-*)
16591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16592 need_version=yes
16593 ;;
16594 esac
16595 shlibpath_var=LD_LIBRARY_PATH
16596 case $host_os in
16597 freebsd2*)
16598 shlibpath_overrides_runpath=yes
16599 ;;
16600 freebsd3.01* | freebsdelf3.01*)
16601 shlibpath_overrides_runpath=yes
16602 hardcode_into_libs=yes
16603 ;;
16604 *) # from 3.2 on
16605 shlibpath_overrides_runpath=no
16606 hardcode_into_libs=yes
16607 ;;
16608 esac
16609 ;;
16610
16611gnu*)
16612 version_type=linux
16613 need_lib_prefix=no
16614 need_version=no
16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16616 soname_spec='${libname}${release}${shared_ext}$major'
16617 shlibpath_var=LD_LIBRARY_PATH
16618 hardcode_into_libs=yes
16619 ;;
16620
16621hpux9* | hpux10* | hpux11*)
16622 # Give a soname corresponding to the major version so that dld.sl refuses to
16623 # link against other versions.
16624 version_type=sunos
16625 need_lib_prefix=no
16626 need_version=no
16627 case "$host_cpu" in
16628 ia64*)
16629 shrext='.so'
16630 hardcode_into_libs=yes
16631 dynamic_linker="$host_os dld.so"
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16635 soname_spec='${libname}${release}${shared_ext}$major'
16636 if test "X$HPUX_IA64_MODE" = X32; then
16637 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16638 else
16639 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16640 fi
16641 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16642 ;;
16643 hppa*64*)
16644 shrext='.sl'
16645 hardcode_into_libs=yes
16646 dynamic_linker="$host_os dld.sl"
16647 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16648 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16650 soname_spec='${libname}${release}${shared_ext}$major'
16651 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16652 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16653 ;;
16654 *)
16655 shrext='.sl'
16656 dynamic_linker="$host_os dld.sl"
16657 shlibpath_var=SHLIB_PATH
16658 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660 soname_spec='${libname}${release}${shared_ext}$major'
16661 ;;
16662 esac
16663 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16664 postinstall_cmds='chmod 555 $lib'
16665 ;;
16666
16667irix5* | irix6* | nonstopux*)
16668 case $host_os in
16669 nonstopux*) version_type=nonstopux ;;
16670 *)
16671 if test "$lt_cv_prog_gnu_ld" = yes; then
16672 version_type=linux
16673 else
16674 version_type=irix
16675 fi ;;
16676 esac
16677 need_lib_prefix=no
16678 need_version=no
16679 soname_spec='${libname}${release}${shared_ext}$major'
16680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16681 case $host_os in
16682 irix5* | nonstopux*)
16683 libsuff= shlibsuff=
16684 ;;
16685 *)
16686 case $LD in # libtool.m4 will add one of these switches to LD
16687 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16688 libsuff= shlibsuff= libmagic=32-bit;;
16689 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16690 libsuff=32 shlibsuff=N32 libmagic=N32;;
16691 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16692 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16693 *) libsuff= shlibsuff= libmagic=never-match;;
16694 esac
16695 ;;
16696 esac
16697 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16698 shlibpath_overrides_runpath=no
16699 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16700 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16701 hardcode_into_libs=yes
16702 ;;
16703
16704# No shared lib support for Linux oldld, aout, or coff.
16705linux*oldld* | linux*aout* | linux*coff*)
16706 dynamic_linker=no
16707 ;;
16708
16709# This must be Linux ELF.
16710linux*)
16711 version_type=linux
16712 need_lib_prefix=no
16713 need_version=no
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715 soname_spec='${libname}${release}${shared_ext}$major'
16716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16717 shlibpath_var=LD_LIBRARY_PATH
16718 shlibpath_overrides_runpath=no
16719 # This implies no fast_install, which is unacceptable.
16720 # Some rework will be needed to allow for fast_install
16721 # before this can be enabled.
16722 hardcode_into_libs=yes
16723
16724 # We used to test for /lib/ld.so.1 and disable shared libraries on
16725 # powerpc, because MkLinux only supported shared libraries with the
16726 # GNU dynamic linker. Since this was broken with cross compilers,
16727 # most powerpc-linux boxes support dynamic linking these days and
16728 # people can always --disable-shared, the test was removed, and we
16729 # assume the GNU/Linux dynamic linker is in use.
16730 dynamic_linker='GNU/Linux ld.so'
16731 ;;
16732
16733netbsd*)
16734 version_type=sunos
16735 need_lib_prefix=no
16736 need_version=no
16737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16740 dynamic_linker='NetBSD (a.out) ld.so'
16741 else
16742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16743 soname_spec='${libname}${release}${shared_ext}$major'
16744 dynamic_linker='NetBSD ld.elf_so'
16745 fi
16746 shlibpath_var=LD_LIBRARY_PATH
16747 shlibpath_overrides_runpath=yes
16748 hardcode_into_libs=yes
16749 ;;
16750
16751newsos6)
16752 version_type=linux
16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754 shlibpath_var=LD_LIBRARY_PATH
16755 shlibpath_overrides_runpath=yes
16756 ;;
16757
16758nto-qnx)
16759 version_type=linux
16760 need_lib_prefix=no
16761 need_version=no
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16763 soname_spec='${libname}${release}${shared_ext}$major'
16764 shlibpath_var=LD_LIBRARY_PATH
16765 shlibpath_overrides_runpath=yes
16766 ;;
16767
16768openbsd*)
16769 version_type=sunos
16770 need_lib_prefix=no
16771 need_version=no
16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16774 shlibpath_var=LD_LIBRARY_PATH
16775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16776 case $host_os in
16777 openbsd2.[89] | openbsd2.[89].*)
16778 shlibpath_overrides_runpath=no
16779 ;;
16780 *)
16781 shlibpath_overrides_runpath=yes
16782 ;;
16783 esac
16784 else
16785 shlibpath_overrides_runpath=yes
16786 fi
16787 ;;
16788
16789os2*)
16790 libname_spec='$name'
16791 shrext=".dll"
16792 need_lib_prefix=no
16793 library_names_spec='$libname${shared_ext} $libname.a'
16794 dynamic_linker='OS/2 ld.exe'
16795 shlibpath_var=LIBPATH
16796 ;;
16797
16798osf3* | osf4* | osf5*)
16799 version_type=osf
16800 need_lib_prefix=no
16801 need_version=no
16802 soname_spec='${libname}${release}${shared_ext}$major'
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16806 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16807 ;;
16808
16809sco3.2v5*)
16810 version_type=osf
16811 soname_spec='${libname}${release}${shared_ext}$major'
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813 shlibpath_var=LD_LIBRARY_PATH
16814 ;;
16815
16816solaris*)
16817 version_type=linux
16818 need_lib_prefix=no
16819 need_version=no
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821 soname_spec='${libname}${release}${shared_ext}$major'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 shlibpath_overrides_runpath=yes
16824 hardcode_into_libs=yes
16825 # ldd complains unless libraries are executable
16826 postinstall_cmds='chmod +x $lib'
16827 ;;
16828
16829sunos4*)
16830 version_type=sunos
16831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16832 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16833 shlibpath_var=LD_LIBRARY_PATH
16834 shlibpath_overrides_runpath=yes
16835 if test "$with_gnu_ld" = yes; then
16836 need_lib_prefix=no
16837 fi
16838 need_version=yes
16839 ;;
16840
16841sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16842 version_type=linux
16843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844 soname_spec='${libname}${release}${shared_ext}$major'
16845 shlibpath_var=LD_LIBRARY_PATH
16846 case $host_vendor in
16847 sni)
16848 shlibpath_overrides_runpath=no
16849 need_lib_prefix=no
16850 export_dynamic_flag_spec='${wl}-Blargedynsym'
16851 runpath_var=LD_RUN_PATH
16852 ;;
16853 siemens)
16854 need_lib_prefix=no
16855 ;;
16856 motorola)
16857 need_lib_prefix=no
16858 need_version=no
16859 shlibpath_overrides_runpath=no
16860 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16861 ;;
16862 esac
16863 ;;
16864
16865sysv4*MP*)
16866 if test -d /usr/nec ;then
16867 version_type=linux
16868 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16869 soname_spec='$libname${shared_ext}.$major'
16870 shlibpath_var=LD_LIBRARY_PATH
16871 fi
16872 ;;
16873
16874uts4*)
16875 version_type=linux
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877 soname_spec='${libname}${release}${shared_ext}$major'
16878 shlibpath_var=LD_LIBRARY_PATH
16879 ;;
16880
16881*)
16882 dynamic_linker=no
16883 ;;
16884esac
16885echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16886echo "${ECHO_T}$dynamic_linker" >&6
16887test "$dynamic_linker" = no && can_build_shared=no
16888
16889if test "x$enable_dlopen" != xyes; then
16890 enable_dlopen=unknown
16891 enable_dlopen_self=unknown
16892 enable_dlopen_self_static=unknown
16893else
16894 lt_cv_dlopen=no
16895 lt_cv_dlopen_libs=
16896
16897 case $host_os in
16898 beos*)
16899 lt_cv_dlopen="load_add_on"
16900 lt_cv_dlopen_libs=
16901 lt_cv_dlopen_self=yes
16902 ;;
16903
16904 mingw* | pw32*)
16905 lt_cv_dlopen="LoadLibrary"
16906 lt_cv_dlopen_libs=
16907 ;;
16908
16909 cygwin*)
16910 lt_cv_dlopen="dlopen"
16911 lt_cv_dlopen_libs=
16912 ;;
16913
16914 darwin*)
16915 # if libdl is installed we need to link against it
16916 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16917echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16918if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16919 echo $ECHO_N "(cached) $ECHO_C" >&6
16920else
16921 ac_check_lib_save_LIBS=$LIBS
16922LIBS="-ldl $LIBS"
16923cat >conftest.$ac_ext <<_ACEOF
16924#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016925/* confdefs.h. */
16926_ACEOF
16927cat confdefs.h >>conftest.$ac_ext
16928cat >>conftest.$ac_ext <<_ACEOF
16929/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016930
16931/* Override any gcc2 internal prototype to avoid an error. */
16932#ifdef __cplusplus
16933extern "C"
16934#endif
16935/* We use char because int might match the return type of a gcc2
16936 builtin and then its argument prototype would still apply. */
16937char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016938int
16939main ()
16940{
16941dlopen ();
16942 ;
16943 return 0;
16944}
16945_ACEOF
16946rm -f conftest.$ac_objext conftest$ac_exeext
16947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16948 (eval $ac_link) 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } &&
16952 { ac_try='test -s conftest$ac_exeext'
16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16955 ac_status=$?
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; }; then
16958 ac_cv_lib_dl_dlopen=yes
16959else
16960 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016961sed 's/^/| /' conftest.$ac_ext >&5
16962
John Criswell47fdd832003-07-14 16:52:07 +000016963ac_cv_lib_dl_dlopen=no
16964fi
16965rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16966LIBS=$ac_check_lib_save_LIBS
16967fi
16968echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16969echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16970if test $ac_cv_lib_dl_dlopen = yes; then
16971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16972else
16973
16974 lt_cv_dlopen="dyld"
16975 lt_cv_dlopen_libs=
16976 lt_cv_dlopen_self=yes
16977
16978fi
16979
16980 ;;
16981
16982 *)
16983 echo "$as_me:$LINENO: checking for shl_load" >&5
16984echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16985if test "${ac_cv_func_shl_load+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987else
16988 cat >conftest.$ac_ext <<_ACEOF
16989#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016990/* confdefs.h. */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016995/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016996 which can conflict with char shl_load (); below.
16997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16998 <limits.h> exists even on freestanding compilers. */
16999#ifdef __STDC__
17000# include <limits.h>
17001#else
17002# include <assert.h>
17003#endif
John Criswell47fdd832003-07-14 16:52:07 +000017004/* Override any gcc2 internal prototype to avoid an error. */
17005#ifdef __cplusplus
17006extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017007{
John Criswell47fdd832003-07-14 16:52:07 +000017008#endif
17009/* We use char because int might match the return type of a gcc2
17010 builtin and then its argument prototype would still apply. */
17011char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017012/* The GNU C library defines this for functions which it implements
17013 to always fail with ENOSYS. Some functions are actually named
17014 something starting with __ and the normal name is an alias. */
17015#if defined (__stub_shl_load) || defined (__stub___shl_load)
17016choke me
17017#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017018char (*f) () = shl_load;
17019#endif
17020#ifdef __cplusplus
17021}
John Criswell47fdd832003-07-14 16:52:07 +000017022#endif
17023
John Criswell0c38eaf2003-09-10 15:17:25 +000017024int
17025main ()
17026{
17027return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017028 ;
17029 return 0;
17030}
17031_ACEOF
17032rm -f conftest.$ac_objext conftest$ac_exeext
17033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17034 (eval $ac_link) 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
17038 { ac_try='test -s conftest$ac_exeext'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 ac_cv_func_shl_load=yes
17045else
17046 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017047sed 's/^/| /' conftest.$ac_ext >&5
17048
John Criswell47fdd832003-07-14 16:52:07 +000017049ac_cv_func_shl_load=no
17050fi
17051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17052fi
17053echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17054echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17055if test $ac_cv_func_shl_load = yes; then
17056 lt_cv_dlopen="shl_load"
17057else
17058 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17059echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17060if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17061 echo $ECHO_N "(cached) $ECHO_C" >&6
17062else
17063 ac_check_lib_save_LIBS=$LIBS
17064LIBS="-ldld $LIBS"
17065cat >conftest.$ac_ext <<_ACEOF
17066#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017067/* confdefs.h. */
17068_ACEOF
17069cat confdefs.h >>conftest.$ac_ext
17070cat >>conftest.$ac_ext <<_ACEOF
17071/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017072
17073/* Override any gcc2 internal prototype to avoid an error. */
17074#ifdef __cplusplus
17075extern "C"
17076#endif
17077/* We use char because int might match the return type of a gcc2
17078 builtin and then its argument prototype would still apply. */
17079char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017080int
17081main ()
17082{
17083shl_load ();
17084 ;
17085 return 0;
17086}
17087_ACEOF
17088rm -f conftest.$ac_objext conftest$ac_exeext
17089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17090 (eval $ac_link) 2>&5
17091 ac_status=$?
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } &&
17094 { ac_try='test -s conftest$ac_exeext'
17095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096 (eval $ac_try) 2>&5
17097 ac_status=$?
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; }; then
17100 ac_cv_lib_dld_shl_load=yes
17101else
17102 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017103sed 's/^/| /' conftest.$ac_ext >&5
17104
John Criswell47fdd832003-07-14 16:52:07 +000017105ac_cv_lib_dld_shl_load=no
17106fi
17107rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17108LIBS=$ac_check_lib_save_LIBS
17109fi
17110echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17111echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17112if test $ac_cv_lib_dld_shl_load = yes; then
17113 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17114else
17115 echo "$as_me:$LINENO: checking for dlopen" >&5
17116echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17117if test "${ac_cv_func_dlopen+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119else
17120 cat >conftest.$ac_ext <<_ACEOF
17121#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017122/* confdefs.h. */
17123_ACEOF
17124cat confdefs.h >>conftest.$ac_ext
17125cat >>conftest.$ac_ext <<_ACEOF
17126/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017127/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017128 which can conflict with char dlopen (); below.
17129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17130 <limits.h> exists even on freestanding compilers. */
17131#ifdef __STDC__
17132# include <limits.h>
17133#else
17134# include <assert.h>
17135#endif
John Criswell47fdd832003-07-14 16:52:07 +000017136/* Override any gcc2 internal prototype to avoid an error. */
17137#ifdef __cplusplus
17138extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017139{
John Criswell47fdd832003-07-14 16:52:07 +000017140#endif
17141/* We use char because int might match the return type of a gcc2
17142 builtin and then its argument prototype would still apply. */
17143char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017144/* The GNU C library defines this for functions which it implements
17145 to always fail with ENOSYS. Some functions are actually named
17146 something starting with __ and the normal name is an alias. */
17147#if defined (__stub_dlopen) || defined (__stub___dlopen)
17148choke me
17149#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017150char (*f) () = dlopen;
17151#endif
17152#ifdef __cplusplus
17153}
John Criswell47fdd832003-07-14 16:52:07 +000017154#endif
17155
John Criswell0c38eaf2003-09-10 15:17:25 +000017156int
17157main ()
17158{
17159return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017160 ;
17161 return 0;
17162}
17163_ACEOF
17164rm -f conftest.$ac_objext conftest$ac_exeext
17165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17166 (eval $ac_link) 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } &&
17170 { ac_try='test -s conftest$ac_exeext'
17171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172 (eval $ac_try) 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; }; then
17176 ac_cv_func_dlopen=yes
17177else
17178 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017179sed 's/^/| /' conftest.$ac_ext >&5
17180
John Criswell47fdd832003-07-14 16:52:07 +000017181ac_cv_func_dlopen=no
17182fi
17183rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17184fi
17185echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17186echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17187if test $ac_cv_func_dlopen = yes; then
17188 lt_cv_dlopen="dlopen"
17189else
17190 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17191echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17192if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17194else
17195 ac_check_lib_save_LIBS=$LIBS
17196LIBS="-ldl $LIBS"
17197cat >conftest.$ac_ext <<_ACEOF
17198#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017199/* confdefs.h. */
17200_ACEOF
17201cat confdefs.h >>conftest.$ac_ext
17202cat >>conftest.$ac_ext <<_ACEOF
17203/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017204
17205/* Override any gcc2 internal prototype to avoid an error. */
17206#ifdef __cplusplus
17207extern "C"
17208#endif
17209/* We use char because int might match the return type of a gcc2
17210 builtin and then its argument prototype would still apply. */
17211char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017212int
17213main ()
17214{
17215dlopen ();
17216 ;
17217 return 0;
17218}
17219_ACEOF
17220rm -f conftest.$ac_objext conftest$ac_exeext
17221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222 (eval $ac_link) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try='test -s conftest$ac_exeext'
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17232 ac_cv_lib_dl_dlopen=yes
17233else
17234 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017235sed 's/^/| /' conftest.$ac_ext >&5
17236
John Criswell47fdd832003-07-14 16:52:07 +000017237ac_cv_lib_dl_dlopen=no
17238fi
17239rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17240LIBS=$ac_check_lib_save_LIBS
17241fi
17242echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17243echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17244if test $ac_cv_lib_dl_dlopen = yes; then
17245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17246else
17247 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17248echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17249if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17251else
17252 ac_check_lib_save_LIBS=$LIBS
17253LIBS="-lsvld $LIBS"
17254cat >conftest.$ac_ext <<_ACEOF
17255#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017256/* confdefs.h. */
17257_ACEOF
17258cat confdefs.h >>conftest.$ac_ext
17259cat >>conftest.$ac_ext <<_ACEOF
17260/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017261
17262/* Override any gcc2 internal prototype to avoid an error. */
17263#ifdef __cplusplus
17264extern "C"
17265#endif
17266/* We use char because int might match the return type of a gcc2
17267 builtin and then its argument prototype would still apply. */
17268char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017269int
17270main ()
17271{
17272dlopen ();
17273 ;
17274 return 0;
17275}
17276_ACEOF
17277rm -f conftest.$ac_objext conftest$ac_exeext
17278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17279 (eval $ac_link) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } &&
17283 { ac_try='test -s conftest$ac_exeext'
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_cv_lib_svld_dlopen=yes
17290else
17291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017292sed 's/^/| /' conftest.$ac_ext >&5
17293
John Criswell47fdd832003-07-14 16:52:07 +000017294ac_cv_lib_svld_dlopen=no
17295fi
17296rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17297LIBS=$ac_check_lib_save_LIBS
17298fi
17299echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17300echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17301if test $ac_cv_lib_svld_dlopen = yes; then
17302 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17303else
17304 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17305echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17306if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17308else
17309 ac_check_lib_save_LIBS=$LIBS
17310LIBS="-ldld $LIBS"
17311cat >conftest.$ac_ext <<_ACEOF
17312#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017313/* confdefs.h. */
17314_ACEOF
17315cat confdefs.h >>conftest.$ac_ext
17316cat >>conftest.$ac_ext <<_ACEOF
17317/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017318
17319/* Override any gcc2 internal prototype to avoid an error. */
17320#ifdef __cplusplus
17321extern "C"
17322#endif
17323/* We use char because int might match the return type of a gcc2
17324 builtin and then its argument prototype would still apply. */
17325char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017326int
17327main ()
17328{
17329dld_link ();
17330 ;
17331 return 0;
17332}
17333_ACEOF
17334rm -f conftest.$ac_objext conftest$ac_exeext
17335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17336 (eval $ac_link) 2>&5
17337 ac_status=$?
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } &&
17340 { ac_try='test -s conftest$ac_exeext'
17341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342 (eval $ac_try) 2>&5
17343 ac_status=$?
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; }; then
17346 ac_cv_lib_dld_dld_link=yes
17347else
17348 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017349sed 's/^/| /' conftest.$ac_ext >&5
17350
John Criswell47fdd832003-07-14 16:52:07 +000017351ac_cv_lib_dld_dld_link=no
17352fi
17353rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17354LIBS=$ac_check_lib_save_LIBS
17355fi
17356echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17357echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17358if test $ac_cv_lib_dld_dld_link = yes; then
17359 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17360fi
17361
17362
17363fi
17364
17365
17366fi
17367
17368
17369fi
17370
17371
17372fi
17373
17374
17375fi
17376
17377 ;;
17378 esac
17379
17380 if test "x$lt_cv_dlopen" != xno; then
17381 enable_dlopen=yes
17382 else
17383 enable_dlopen=no
17384 fi
17385
17386 case $lt_cv_dlopen in
17387 dlopen)
17388 save_CPPFLAGS="$CPPFLAGS"
17389 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17390
17391 save_LDFLAGS="$LDFLAGS"
17392 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17393
17394 save_LIBS="$LIBS"
17395 LIBS="$lt_cv_dlopen_libs $LIBS"
17396
17397 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17398echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17399if test "${lt_cv_dlopen_self+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17401else
17402 if test "$cross_compiling" = yes; then :
17403 lt_cv_dlopen_self=cross
17404else
17405 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17406 lt_status=$lt_dlunknown
17407 cat > conftest.$ac_ext <<EOF
Brian Gaekef3b24102003-11-16 18:38:14 +000017408#line 17408 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017409#include "confdefs.h"
17410
17411#if HAVE_DLFCN_H
17412#include <dlfcn.h>
17413#endif
17414
17415#include <stdio.h>
17416
17417#ifdef RTLD_GLOBAL
17418# define LT_DLGLOBAL RTLD_GLOBAL
17419#else
17420# ifdef DL_GLOBAL
17421# define LT_DLGLOBAL DL_GLOBAL
17422# else
17423# define LT_DLGLOBAL 0
17424# endif
17425#endif
17426
17427/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17428 find out it does not work in some platform. */
17429#ifndef LT_DLLAZY_OR_NOW
17430# ifdef RTLD_LAZY
17431# define LT_DLLAZY_OR_NOW RTLD_LAZY
17432# else
17433# ifdef DL_LAZY
17434# define LT_DLLAZY_OR_NOW DL_LAZY
17435# else
17436# ifdef RTLD_NOW
17437# define LT_DLLAZY_OR_NOW RTLD_NOW
17438# else
17439# ifdef DL_NOW
17440# define LT_DLLAZY_OR_NOW DL_NOW
17441# else
17442# define LT_DLLAZY_OR_NOW 0
17443# endif
17444# endif
17445# endif
17446# endif
17447#endif
17448
17449#ifdef __cplusplus
17450extern "C" void exit (int);
17451#endif
17452
17453void fnord() { int i=42;}
17454int main ()
17455{
17456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17457 int status = $lt_dlunknown;
17458
17459 if (self)
17460 {
17461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17462 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17463 /* dlclose (self); */
17464 }
17465
17466 exit (status);
17467}
17468EOF
17469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17470 (eval $ac_link) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17474 (./conftest; exit; ) 2>/dev/null
17475 lt_status=$?
17476 case x$lt_status in
17477 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17478 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17479 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17480 esac
17481 else :
17482 # compilation failed
17483 lt_cv_dlopen_self=no
17484 fi
17485fi
17486rm -fr conftest*
17487
17488
17489fi
17490echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17491echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17492
17493 if test "x$lt_cv_dlopen_self" = xyes; then
17494 LDFLAGS="$LDFLAGS $link_static_flag"
17495 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17496echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17497if test "${lt_cv_dlopen_self_static+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17499else
17500 if test "$cross_compiling" = yes; then :
17501 lt_cv_dlopen_self_static=cross
17502else
17503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17504 lt_status=$lt_dlunknown
17505 cat > conftest.$ac_ext <<EOF
Brian Gaekef3b24102003-11-16 18:38:14 +000017506#line 17506 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017507#include "confdefs.h"
17508
17509#if HAVE_DLFCN_H
17510#include <dlfcn.h>
17511#endif
17512
17513#include <stdio.h>
17514
17515#ifdef RTLD_GLOBAL
17516# define LT_DLGLOBAL RTLD_GLOBAL
17517#else
17518# ifdef DL_GLOBAL
17519# define LT_DLGLOBAL DL_GLOBAL
17520# else
17521# define LT_DLGLOBAL 0
17522# endif
17523#endif
17524
17525/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17526 find out it does not work in some platform. */
17527#ifndef LT_DLLAZY_OR_NOW
17528# ifdef RTLD_LAZY
17529# define LT_DLLAZY_OR_NOW RTLD_LAZY
17530# else
17531# ifdef DL_LAZY
17532# define LT_DLLAZY_OR_NOW DL_LAZY
17533# else
17534# ifdef RTLD_NOW
17535# define LT_DLLAZY_OR_NOW RTLD_NOW
17536# else
17537# ifdef DL_NOW
17538# define LT_DLLAZY_OR_NOW DL_NOW
17539# else
17540# define LT_DLLAZY_OR_NOW 0
17541# endif
17542# endif
17543# endif
17544# endif
17545#endif
17546
17547#ifdef __cplusplus
17548extern "C" void exit (int);
17549#endif
17550
17551void fnord() { int i=42;}
17552int main ()
17553{
17554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17555 int status = $lt_dlunknown;
17556
17557 if (self)
17558 {
17559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17560 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17561 /* dlclose (self); */
17562 }
17563
17564 exit (status);
17565}
17566EOF
17567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568 (eval $ac_link) 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17572 (./conftest; exit; ) 2>/dev/null
17573 lt_status=$?
17574 case x$lt_status in
17575 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17576 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17577 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17578 esac
17579 else :
17580 # compilation failed
17581 lt_cv_dlopen_self_static=no
17582 fi
17583fi
17584rm -fr conftest*
17585
17586
17587fi
17588echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17589echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17590 fi
17591
17592 CPPFLAGS="$save_CPPFLAGS"
17593 LDFLAGS="$save_LDFLAGS"
17594 LIBS="$save_LIBS"
17595 ;;
17596 esac
17597
17598 case $lt_cv_dlopen_self in
17599 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17600 *) enable_dlopen_self=unknown ;;
17601 esac
17602
17603 case $lt_cv_dlopen_self_static in
17604 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17605 *) enable_dlopen_self_static=unknown ;;
17606 esac
17607fi
17608
17609
17610# The else clause should only fire when bootstrapping the
17611# libtool distribution, otherwise you forgot to ship ltmain.sh
17612# with your package, and you will get complaints that there are
17613# no rules to generate ltmain.sh.
17614if test -f "$ltmain"; then
17615 # See if we are running on zsh, and set the options which allow our commands through
17616 # without removal of \ escapes.
17617 if test -n "${ZSH_VERSION+set}" ; then
17618 setopt NO_GLOB_SUBST
17619 fi
17620 # Now quote all the things that may contain metacharacters while being
17621 # careful not to overquote the AC_SUBSTed values. We take copies of the
17622 # variables and quote the copies for generation of the libtool script.
17623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17624 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17625 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17626 deplibs_check_method reload_flag reload_cmds need_locks \
17627 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17628 lt_cv_sys_global_symbol_to_c_name_address \
17629 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17630 old_postinstall_cmds old_postuninstall_cmds \
17631 compiler_GCJ \
17632 CC_GCJ \
17633 LD_GCJ \
17634 lt_prog_compiler_wl_GCJ \
17635 lt_prog_compiler_pic_GCJ \
17636 lt_prog_compiler_static_GCJ \
17637 lt_prog_compiler_no_builtin_flag_GCJ \
17638 export_dynamic_flag_spec_GCJ \
17639 thread_safe_flag_spec_GCJ \
17640 whole_archive_flag_spec_GCJ \
17641 enable_shared_with_static_runtimes_GCJ \
17642 old_archive_cmds_GCJ \
17643 old_archive_from_new_cmds_GCJ \
17644 predep_objects_GCJ \
17645 postdep_objects_GCJ \
17646 predeps_GCJ \
17647 postdeps_GCJ \
17648 compiler_lib_search_path_GCJ \
17649 archive_cmds_GCJ \
17650 archive_expsym_cmds_GCJ \
17651 postinstall_cmds_GCJ \
17652 postuninstall_cmds_GCJ \
17653 old_archive_from_expsyms_cmds_GCJ \
17654 allow_undefined_flag_GCJ \
17655 no_undefined_flag_GCJ \
17656 export_symbols_cmds_GCJ \
17657 hardcode_libdir_flag_spec_GCJ \
17658 hardcode_libdir_flag_spec_ld_GCJ \
17659 hardcode_libdir_separator_GCJ \
17660 hardcode_automatic_GCJ \
17661 module_cmds_GCJ \
17662 module_expsym_cmds_GCJ \
17663 lt_cv_prog_compiler_c_o_GCJ \
17664 exclude_expsyms_GCJ \
17665 include_expsyms_GCJ; do
17666
17667 case $var in
17668 old_archive_cmds_GCJ | \
17669 old_archive_from_new_cmds_GCJ | \
17670 archive_cmds_GCJ | \
17671 archive_expsym_cmds_GCJ | \
17672 module_cmds_GCJ | \
17673 module_expsym_cmds_GCJ | \
17674 old_archive_from_expsyms_cmds_GCJ | \
17675 export_symbols_cmds_GCJ | \
17676 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17677 postinstall_cmds | postuninstall_cmds | \
17678 old_postinstall_cmds | old_postuninstall_cmds | \
17679 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17680 # Double-quote double-evaled strings.
17681 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17682 ;;
17683 *)
17684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17685 ;;
17686 esac
17687 done
17688
17689 case $lt_echo in
17690 *'\$0 --fallback-echo"')
17691 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17692 ;;
17693 esac
17694
17695cfgfile="$ofile"
17696
17697 cat <<__EOF__ >> "$cfgfile"
17698# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17699
17700# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17701
17702# Shell to use when invoking shell scripts.
17703SHELL=$lt_SHELL
17704
17705# Whether or not to build shared libraries.
17706build_libtool_libs=$enable_shared
17707
17708# Whether or not to build static libraries.
17709build_old_libs=$enable_static
17710
17711# Whether or not to add -lc for building shared libraries.
17712build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17713
17714# Whether or not to disallow shared libs when runtime libs are static
17715allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17716
17717# Whether or not to optimize for fast installation.
17718fast_install=$enable_fast_install
17719
17720# The host system.
17721host_alias=$host_alias
17722host=$host
17723
17724# An echo program that does not interpret backslashes.
17725echo=$lt_echo
17726
17727# The archiver.
17728AR=$lt_AR
17729AR_FLAGS=$lt_AR_FLAGS
17730
17731# A C compiler.
17732LTCC=$lt_LTCC
17733
17734# A language-specific compiler.
17735CC=$lt_compiler_GCJ
17736
17737# Is the compiler the GNU C compiler?
17738with_gcc=$GCC_GCJ
17739
17740# An ERE matcher.
17741EGREP=$lt_EGREP
17742
17743# The linker used to build libraries.
17744LD=$lt_LD_GCJ
17745
17746# Whether we need hard or soft links.
17747LN_S=$lt_LN_S
17748
17749# A BSD-compatible nm program.
17750NM=$lt_NM
17751
17752# A symbol stripping program
17753STRIP=$STRIP
17754
17755# Used to examine libraries when file_magic_cmd begins "file"
17756MAGIC_CMD=$MAGIC_CMD
17757
17758# Used on cygwin: DLL creation program.
17759DLLTOOL="$DLLTOOL"
17760
17761# Used on cygwin: object dumper.
17762OBJDUMP="$OBJDUMP"
17763
17764# Used on cygwin: assembler.
17765AS="$AS"
17766
17767# The name of the directory that contains temporary libtool files.
17768objdir=$objdir
17769
17770# How to create reloadable object files.
17771reload_flag=$lt_reload_flag
17772reload_cmds=$lt_reload_cmds
17773
17774# How to pass a linker flag through the compiler.
17775wl=$lt_lt_prog_compiler_wl_GCJ
17776
17777# Object file suffix (normally "o").
17778objext="$ac_objext"
17779
17780# Old archive suffix (normally "a").
17781libext="$libext"
17782
17783# Shared library suffix (normally ".so").
17784shrext='$shrext'
17785
17786# Executable file suffix (normally "").
17787exeext="$exeext"
17788
17789# Additional compiler flags for building library objects.
17790pic_flag=$lt_lt_prog_compiler_pic_GCJ
17791pic_mode=$pic_mode
17792
17793# What is the maximum length of a command?
17794max_cmd_len=$lt_cv_sys_max_cmd_len
17795
17796# Does compiler simultaneously support -c and -o options?
17797compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17798
17799# Must we lock files when doing compilation ?
17800need_locks=$lt_need_locks
17801
17802# Do we need the lib prefix for modules?
17803need_lib_prefix=$need_lib_prefix
17804
17805# Do we need a version for libraries?
17806need_version=$need_version
17807
17808# Whether dlopen is supported.
17809dlopen_support=$enable_dlopen
17810
17811# Whether dlopen of programs is supported.
17812dlopen_self=$enable_dlopen_self
17813
17814# Whether dlopen of statically linked programs is supported.
17815dlopen_self_static=$enable_dlopen_self_static
17816
17817# Compiler flag to prevent dynamic linking.
17818link_static_flag=$lt_lt_prog_compiler_static_GCJ
17819
17820# Compiler flag to turn off builtin functions.
17821no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17822
17823# Compiler flag to allow reflexive dlopens.
17824export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17825
17826# Compiler flag to generate shared objects directly from archives.
17827whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17828
17829# Compiler flag to generate thread-safe objects.
17830thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17831
17832# Library versioning type.
17833version_type=$version_type
17834
17835# Format of library name prefix.
17836libname_spec=$lt_libname_spec
17837
17838# List of archive names. First name is the real one, the rest are links.
17839# The last name is the one that the linker finds with -lNAME.
17840library_names_spec=$lt_library_names_spec
17841
17842# The coded name of the library, if different from the real name.
17843soname_spec=$lt_soname_spec
17844
17845# Commands used to build and install an old-style archive.
17846RANLIB=$lt_RANLIB
17847old_archive_cmds=$lt_old_archive_cmds_GCJ
17848old_postinstall_cmds=$lt_old_postinstall_cmds
17849old_postuninstall_cmds=$lt_old_postuninstall_cmds
17850
17851# Create an old-style archive from a shared archive.
17852old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17853
17854# Create a temporary old-style archive to link instead of a shared archive.
17855old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17856
17857# Commands used to build and install a shared archive.
17858archive_cmds=$lt_archive_cmds_GCJ
17859archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17860postinstall_cmds=$lt_postinstall_cmds
17861postuninstall_cmds=$lt_postuninstall_cmds
17862
17863# Commands used to build a loadable module (assumed same as above if empty)
17864module_cmds=$lt_module_cmds_GCJ
17865module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17866
17867# Commands to strip libraries.
17868old_striplib=$lt_old_striplib
17869striplib=$lt_striplib
17870
17871# Dependencies to place before the objects being linked to create a
17872# shared library.
17873predep_objects=$lt_predep_objects_GCJ
17874
17875# Dependencies to place after the objects being linked to create a
17876# shared library.
17877postdep_objects=$lt_postdep_objects_GCJ
17878
17879# Dependencies to place before the objects being linked to create a
17880# shared library.
17881predeps=$lt_predeps_GCJ
17882
17883# Dependencies to place after the objects being linked to create a
17884# shared library.
17885postdeps=$lt_postdeps_GCJ
17886
17887# The library search path used internally by the compiler when linking
17888# a shared library.
17889compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17890
17891# Method to check whether dependent libraries are shared objects.
17892deplibs_check_method=$lt_deplibs_check_method
17893
17894# Command to use when deplibs_check_method == file_magic.
17895file_magic_cmd=$lt_file_magic_cmd
17896
17897# Flag that allows shared libraries with undefined symbols to be built.
17898allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17899
17900# Flag that forces no undefined symbols.
17901no_undefined_flag=$lt_no_undefined_flag_GCJ
17902
17903# Commands used to finish a libtool library installation in a directory.
17904finish_cmds=$lt_finish_cmds
17905
17906# Same as above, but a single script fragment to be evaled but not shown.
17907finish_eval=$lt_finish_eval
17908
17909# Take the output of nm and produce a listing of raw symbols and C names.
17910global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17911
17912# Transform the output of nm in a proper C declaration
17913global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17914
17915# Transform the output of nm in a C name address pair
17916global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17917
17918# This is the shared library runtime path variable.
17919runpath_var=$runpath_var
17920
17921# This is the shared library path variable.
17922shlibpath_var=$shlibpath_var
17923
17924# Is shlibpath searched before the hard-coded library search path?
17925shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17926
17927# How to hardcode a shared library path into an executable.
17928hardcode_action=$hardcode_action_GCJ
17929
17930# Whether we should hardcode library paths into libraries.
17931hardcode_into_libs=$hardcode_into_libs
17932
17933# Flag to hardcode \$libdir into a binary during linking.
17934# This must work even if \$libdir does not exist.
17935hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17936
17937# If ld is used when linking, flag to hardcode \$libdir into
17938# a binary during linking. This must work even if \$libdir does
17939# not exist.
17940hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17941
17942# Whether we need a single -rpath flag with a separated argument.
17943hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17944
17945# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17946# resulting binary.
17947hardcode_direct=$hardcode_direct_GCJ
17948
17949# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17950# resulting binary.
17951hardcode_minus_L=$hardcode_minus_L_GCJ
17952
17953# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17954# the resulting binary.
17955hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17956
17957# Set to yes if building a shared library automatically hardcodes DIR into the library
17958# and all subsequent libraries and executables linked against it.
17959hardcode_automatic=$hardcode_automatic_GCJ
17960
17961# Variables whose values should be saved in libtool wrapper scripts and
17962# restored at relink time.
17963variables_saved_for_relink="$variables_saved_for_relink"
17964
17965# Whether libtool must link a program against all its dependency libraries.
17966link_all_deplibs=$link_all_deplibs_GCJ
17967
17968# Compile-time system search path for libraries
17969sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17970
17971# Run-time system search path for libraries
17972sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17973
17974# Fix the shell variable \$srcfile for the compiler.
17975fix_srcfile_path="$fix_srcfile_path_GCJ"
17976
17977# Set to yes if exported symbols are required.
17978always_export_symbols=$always_export_symbols_GCJ
17979
17980# The commands to list exported symbols.
17981export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17982
17983# The commands to extract the exported symbol list from a shared archive.
17984extract_expsyms_cmds=$lt_extract_expsyms_cmds
17985
17986# Symbols that should not be listed in the preloaded symbols.
17987exclude_expsyms=$lt_exclude_expsyms_GCJ
17988
17989# Symbols that must always be exported.
17990include_expsyms=$lt_include_expsyms_GCJ
17991
17992# ### END LIBTOOL TAG CONFIG: $tagname
17993
17994__EOF__
17995
17996
17997else
17998 # If there is no Makefile yet, we rely on a make rule to execute
17999 # `config.status --recheck' to rerun these tests and create the
18000 # libtool script then.
18001 test -f Makefile && make "$ltmain"
18002fi
18003
18004
18005ac_ext=c
18006ac_cpp='$CPP $CPPFLAGS'
18007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18009ac_compiler_gnu=$ac_cv_c_compiler_gnu
18010
18011CC="$lt_save_CC"
18012
18013 else
18014 tagname=""
18015 fi
18016 ;;
18017
18018 RC)
18019
18020
18021
18022# Source file extension for RC test sources.
18023ac_ext=rc
18024
18025# Object file extension for compiled RC test sources.
18026objext=o
18027objext_RC=$objext
18028
18029# Code to be used in simple compile tests
18030lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18031
18032# Code to be used in simple link tests
18033lt_simple_link_test_code="$lt_simple_compile_test_code"
18034
18035# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18036
18037# If no C compiler was specified, use CC.
18038LTCC=${LTCC-"$CC"}
18039
18040# Allow CC to be a program name with arguments.
18041compiler=$CC
18042
18043
18044# Allow CC to be a program name with arguments.
18045lt_save_CC="$CC"
18046CC=${RC-"windres"}
18047compiler=$CC
18048compiler_RC=$CC
18049lt_cv_prog_compiler_c_o_RC=yes
18050
18051# The else clause should only fire when bootstrapping the
18052# libtool distribution, otherwise you forgot to ship ltmain.sh
18053# with your package, and you will get complaints that there are
18054# no rules to generate ltmain.sh.
18055if test -f "$ltmain"; then
18056 # See if we are running on zsh, and set the options which allow our commands through
18057 # without removal of \ escapes.
18058 if test -n "${ZSH_VERSION+set}" ; then
18059 setopt NO_GLOB_SUBST
18060 fi
18061 # Now quote all the things that may contain metacharacters while being
18062 # careful not to overquote the AC_SUBSTed values. We take copies of the
18063 # variables and quote the copies for generation of the libtool script.
18064 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18065 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18066 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18067 deplibs_check_method reload_flag reload_cmds need_locks \
18068 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18069 lt_cv_sys_global_symbol_to_c_name_address \
18070 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18071 old_postinstall_cmds old_postuninstall_cmds \
18072 compiler_RC \
18073 CC_RC \
18074 LD_RC \
18075 lt_prog_compiler_wl_RC \
18076 lt_prog_compiler_pic_RC \
18077 lt_prog_compiler_static_RC \
18078 lt_prog_compiler_no_builtin_flag_RC \
18079 export_dynamic_flag_spec_RC \
18080 thread_safe_flag_spec_RC \
18081 whole_archive_flag_spec_RC \
18082 enable_shared_with_static_runtimes_RC \
18083 old_archive_cmds_RC \
18084 old_archive_from_new_cmds_RC \
18085 predep_objects_RC \
18086 postdep_objects_RC \
18087 predeps_RC \
18088 postdeps_RC \
18089 compiler_lib_search_path_RC \
18090 archive_cmds_RC \
18091 archive_expsym_cmds_RC \
18092 postinstall_cmds_RC \
18093 postuninstall_cmds_RC \
18094 old_archive_from_expsyms_cmds_RC \
18095 allow_undefined_flag_RC \
18096 no_undefined_flag_RC \
18097 export_symbols_cmds_RC \
18098 hardcode_libdir_flag_spec_RC \
18099 hardcode_libdir_flag_spec_ld_RC \
18100 hardcode_libdir_separator_RC \
18101 hardcode_automatic_RC \
18102 module_cmds_RC \
18103 module_expsym_cmds_RC \
18104 lt_cv_prog_compiler_c_o_RC \
18105 exclude_expsyms_RC \
18106 include_expsyms_RC; do
18107
18108 case $var in
18109 old_archive_cmds_RC | \
18110 old_archive_from_new_cmds_RC | \
18111 archive_cmds_RC | \
18112 archive_expsym_cmds_RC | \
18113 module_cmds_RC | \
18114 module_expsym_cmds_RC | \
18115 old_archive_from_expsyms_cmds_RC | \
18116 export_symbols_cmds_RC | \
18117 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18118 postinstall_cmds | postuninstall_cmds | \
18119 old_postinstall_cmds | old_postuninstall_cmds | \
18120 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18121 # Double-quote double-evaled strings.
18122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18123 ;;
18124 *)
18125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18126 ;;
18127 esac
18128 done
18129
18130 case $lt_echo in
18131 *'\$0 --fallback-echo"')
18132 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18133 ;;
18134 esac
18135
18136cfgfile="$ofile"
18137
18138 cat <<__EOF__ >> "$cfgfile"
18139# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18140
18141# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18142
18143# Shell to use when invoking shell scripts.
18144SHELL=$lt_SHELL
18145
18146# Whether or not to build shared libraries.
18147build_libtool_libs=$enable_shared
18148
18149# Whether or not to build static libraries.
18150build_old_libs=$enable_static
18151
18152# Whether or not to add -lc for building shared libraries.
18153build_libtool_need_lc=$archive_cmds_need_lc_RC
18154
18155# Whether or not to disallow shared libs when runtime libs are static
18156allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18157
18158# Whether or not to optimize for fast installation.
18159fast_install=$enable_fast_install
18160
18161# The host system.
18162host_alias=$host_alias
18163host=$host
18164
18165# An echo program that does not interpret backslashes.
18166echo=$lt_echo
18167
18168# The archiver.
18169AR=$lt_AR
18170AR_FLAGS=$lt_AR_FLAGS
18171
18172# A C compiler.
18173LTCC=$lt_LTCC
18174
18175# A language-specific compiler.
18176CC=$lt_compiler_RC
18177
18178# Is the compiler the GNU C compiler?
18179with_gcc=$GCC_RC
18180
18181# An ERE matcher.
18182EGREP=$lt_EGREP
18183
18184# The linker used to build libraries.
18185LD=$lt_LD_RC
18186
18187# Whether we need hard or soft links.
18188LN_S=$lt_LN_S
18189
18190# A BSD-compatible nm program.
18191NM=$lt_NM
18192
18193# A symbol stripping program
18194STRIP=$STRIP
18195
18196# Used to examine libraries when file_magic_cmd begins "file"
18197MAGIC_CMD=$MAGIC_CMD
18198
18199# Used on cygwin: DLL creation program.
18200DLLTOOL="$DLLTOOL"
18201
18202# Used on cygwin: object dumper.
18203OBJDUMP="$OBJDUMP"
18204
18205# Used on cygwin: assembler.
18206AS="$AS"
18207
18208# The name of the directory that contains temporary libtool files.
18209objdir=$objdir
18210
18211# How to create reloadable object files.
18212reload_flag=$lt_reload_flag
18213reload_cmds=$lt_reload_cmds
18214
18215# How to pass a linker flag through the compiler.
18216wl=$lt_lt_prog_compiler_wl_RC
18217
18218# Object file suffix (normally "o").
18219objext="$ac_objext"
18220
18221# Old archive suffix (normally "a").
18222libext="$libext"
18223
18224# Shared library suffix (normally ".so").
18225shrext='$shrext'
18226
18227# Executable file suffix (normally "").
18228exeext="$exeext"
18229
18230# Additional compiler flags for building library objects.
18231pic_flag=$lt_lt_prog_compiler_pic_RC
18232pic_mode=$pic_mode
18233
18234# What is the maximum length of a command?
18235max_cmd_len=$lt_cv_sys_max_cmd_len
18236
18237# Does compiler simultaneously support -c and -o options?
18238compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18239
18240# Must we lock files when doing compilation ?
18241need_locks=$lt_need_locks
18242
18243# Do we need the lib prefix for modules?
18244need_lib_prefix=$need_lib_prefix
18245
18246# Do we need a version for libraries?
18247need_version=$need_version
18248
18249# Whether dlopen is supported.
18250dlopen_support=$enable_dlopen
18251
18252# Whether dlopen of programs is supported.
18253dlopen_self=$enable_dlopen_self
18254
18255# Whether dlopen of statically linked programs is supported.
18256dlopen_self_static=$enable_dlopen_self_static
18257
18258# Compiler flag to prevent dynamic linking.
18259link_static_flag=$lt_lt_prog_compiler_static_RC
18260
18261# Compiler flag to turn off builtin functions.
18262no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18263
18264# Compiler flag to allow reflexive dlopens.
18265export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18266
18267# Compiler flag to generate shared objects directly from archives.
18268whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18269
18270# Compiler flag to generate thread-safe objects.
18271thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18272
18273# Library versioning type.
18274version_type=$version_type
18275
18276# Format of library name prefix.
18277libname_spec=$lt_libname_spec
18278
18279# List of archive names. First name is the real one, the rest are links.
18280# The last name is the one that the linker finds with -lNAME.
18281library_names_spec=$lt_library_names_spec
18282
18283# The coded name of the library, if different from the real name.
18284soname_spec=$lt_soname_spec
18285
18286# Commands used to build and install an old-style archive.
18287RANLIB=$lt_RANLIB
18288old_archive_cmds=$lt_old_archive_cmds_RC
18289old_postinstall_cmds=$lt_old_postinstall_cmds
18290old_postuninstall_cmds=$lt_old_postuninstall_cmds
18291
18292# Create an old-style archive from a shared archive.
18293old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18294
18295# Create a temporary old-style archive to link instead of a shared archive.
18296old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18297
18298# Commands used to build and install a shared archive.
18299archive_cmds=$lt_archive_cmds_RC
18300archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18301postinstall_cmds=$lt_postinstall_cmds
18302postuninstall_cmds=$lt_postuninstall_cmds
18303
18304# Commands used to build a loadable module (assumed same as above if empty)
18305module_cmds=$lt_module_cmds_RC
18306module_expsym_cmds=$lt_module_expsym_cmds_RC
18307
18308# Commands to strip libraries.
18309old_striplib=$lt_old_striplib
18310striplib=$lt_striplib
18311
18312# Dependencies to place before the objects being linked to create a
18313# shared library.
18314predep_objects=$lt_predep_objects_RC
18315
18316# Dependencies to place after the objects being linked to create a
18317# shared library.
18318postdep_objects=$lt_postdep_objects_RC
18319
18320# Dependencies to place before the objects being linked to create a
18321# shared library.
18322predeps=$lt_predeps_RC
18323
18324# Dependencies to place after the objects being linked to create a
18325# shared library.
18326postdeps=$lt_postdeps_RC
18327
18328# The library search path used internally by the compiler when linking
18329# a shared library.
18330compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18331
18332# Method to check whether dependent libraries are shared objects.
18333deplibs_check_method=$lt_deplibs_check_method
18334
18335# Command to use when deplibs_check_method == file_magic.
18336file_magic_cmd=$lt_file_magic_cmd
18337
18338# Flag that allows shared libraries with undefined symbols to be built.
18339allow_undefined_flag=$lt_allow_undefined_flag_RC
18340
18341# Flag that forces no undefined symbols.
18342no_undefined_flag=$lt_no_undefined_flag_RC
18343
18344# Commands used to finish a libtool library installation in a directory.
18345finish_cmds=$lt_finish_cmds
18346
18347# Same as above, but a single script fragment to be evaled but not shown.
18348finish_eval=$lt_finish_eval
18349
18350# Take the output of nm and produce a listing of raw symbols and C names.
18351global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18352
18353# Transform the output of nm in a proper C declaration
18354global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18355
18356# Transform the output of nm in a C name address pair
18357global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18358
18359# This is the shared library runtime path variable.
18360runpath_var=$runpath_var
18361
18362# This is the shared library path variable.
18363shlibpath_var=$shlibpath_var
18364
18365# Is shlibpath searched before the hard-coded library search path?
18366shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18367
18368# How to hardcode a shared library path into an executable.
18369hardcode_action=$hardcode_action_RC
18370
18371# Whether we should hardcode library paths into libraries.
18372hardcode_into_libs=$hardcode_into_libs
18373
18374# Flag to hardcode \$libdir into a binary during linking.
18375# This must work even if \$libdir does not exist.
18376hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18377
18378# If ld is used when linking, flag to hardcode \$libdir into
18379# a binary during linking. This must work even if \$libdir does
18380# not exist.
18381hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18382
18383# Whether we need a single -rpath flag with a separated argument.
18384hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18385
18386# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18387# resulting binary.
18388hardcode_direct=$hardcode_direct_RC
18389
18390# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18391# resulting binary.
18392hardcode_minus_L=$hardcode_minus_L_RC
18393
18394# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18395# the resulting binary.
18396hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18397
18398# Set to yes if building a shared library automatically hardcodes DIR into the library
18399# and all subsequent libraries and executables linked against it.
18400hardcode_automatic=$hardcode_automatic_RC
18401
18402# Variables whose values should be saved in libtool wrapper scripts and
18403# restored at relink time.
18404variables_saved_for_relink="$variables_saved_for_relink"
18405
18406# Whether libtool must link a program against all its dependency libraries.
18407link_all_deplibs=$link_all_deplibs_RC
18408
18409# Compile-time system search path for libraries
18410sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18411
18412# Run-time system search path for libraries
18413sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18414
18415# Fix the shell variable \$srcfile for the compiler.
18416fix_srcfile_path="$fix_srcfile_path_RC"
18417
18418# Set to yes if exported symbols are required.
18419always_export_symbols=$always_export_symbols_RC
18420
18421# The commands to list exported symbols.
18422export_symbols_cmds=$lt_export_symbols_cmds_RC
18423
18424# The commands to extract the exported symbol list from a shared archive.
18425extract_expsyms_cmds=$lt_extract_expsyms_cmds
18426
18427# Symbols that should not be listed in the preloaded symbols.
18428exclude_expsyms=$lt_exclude_expsyms_RC
18429
18430# Symbols that must always be exported.
18431include_expsyms=$lt_include_expsyms_RC
18432
18433# ### END LIBTOOL TAG CONFIG: $tagname
18434
18435__EOF__
18436
18437
18438else
18439 # If there is no Makefile yet, we rely on a make rule to execute
18440 # `config.status --recheck' to rerun these tests and create the
18441 # libtool script then.
18442 test -f Makefile && make "$ltmain"
18443fi
18444
18445
18446ac_ext=c
18447ac_cpp='$CPP $CPPFLAGS'
18448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18450ac_compiler_gnu=$ac_cv_c_compiler_gnu
18451
18452CC="$lt_save_CC"
18453
18454 ;;
18455
18456 *)
18457 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18458echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18459 { (exit 1); exit 1; }; }
18460 ;;
18461 esac
18462
18463 # Append the new tag name to the list of available tags.
18464 if test -n "$tagname" ; then
18465 available_tags="$available_tags $tagname"
18466 fi
18467 fi
18468 done
18469 IFS="$lt_save_ifs"
18470
18471 # Now substitute the updated list of available tags.
18472 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18473 mv "${ofile}T" "$ofile"
18474 chmod +x "$ofile"
18475 else
18476 rm -f "${ofile}T"
18477 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18478echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18479 { (exit 1); exit 1; }; }
18480 fi
18481fi
John Criswell7a73b802003-06-30 21:59:07 +000018482
18483
18484
18485# This can be used to rebuild libtool when needed
18486LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18487
18488# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018489LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018490
18491# Prevent multiple expansion
18492
18493
18494
John Criswell47fdd832003-07-14 16:52:07 +000018495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
John Criswellde00db22003-08-25 16:49:54 +000018513# Extract the first word of "pwd", so it can be a program name with args.
18514set dummy pwd; ac_word=$2
18515echo "$as_me:$LINENO: checking for $ac_word" >&5
18516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18517if test "${ac_cv_path_RPWD+set}" = set; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18519else
18520 case $RPWD in
18521 [\\/]* | ?:[\\/]*)
18522 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18523 ;;
18524 *)
18525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18526for as_dir in $PATH
18527do
18528 IFS=$as_save_IFS
18529 test -z "$as_dir" && as_dir=.
18530 for ac_exec_ext in '' $ac_executable_extensions; do
18531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18532 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18534 break 2
18535 fi
18536done
18537done
18538
John Criswell39827c82003-09-23 15:28:52 +000018539 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018540 ;;
18541esac
18542fi
18543RPWD=$ac_cv_path_RPWD
18544
18545if test -n "$RPWD"; then
18546 echo "$as_me:$LINENO: result: $RPWD" >&5
18547echo "${ECHO_T}$RPWD" >&6
18548else
18549 echo "$as_me:$LINENO: result: no" >&5
18550echo "${ECHO_T}no" >&6
18551fi
18552
John Criswell39827c82003-09-23 15:28:52 +000018553if test ${RPWD} = "false"
18554then
18555 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18556echo "$as_me: error: pwd required but not found" >&2;}
18557 { (exit 1); exit 1; }; }
18558fi
18559
John Criswell7a73b802003-06-30 21:59:07 +000018560# Extract the first word of "ar", so it can be a program name with args.
18561set dummy ar; ac_word=$2
18562echo "$as_me:$LINENO: checking for $ac_word" >&5
18563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18564if test "${ac_cv_path_AR+set}" = set; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18566else
18567 case $AR in
18568 [\\/]* | ?:[\\/]*)
18569 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18570 ;;
18571 *)
18572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18573for as_dir in $PATH
18574do
18575 IFS=$as_save_IFS
18576 test -z "$as_dir" && as_dir=.
18577 for ac_exec_ext in '' $ac_executable_extensions; do
18578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18579 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18581 break 2
18582 fi
18583done
18584done
18585
John Criswell39827c82003-09-23 15:28:52 +000018586 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018587 ;;
18588esac
18589fi
18590AR=$ac_cv_path_AR
18591
18592if test -n "$AR"; then
18593 echo "$as_me:$LINENO: result: $AR" >&5
18594echo "${ECHO_T}$AR" >&6
18595else
18596 echo "$as_me:$LINENO: result: no" >&5
18597echo "${ECHO_T}no" >&6
18598fi
18599
John Criswell39827c82003-09-23 15:28:52 +000018600if test ${AR} = "false"
18601then
18602 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18603echo "$as_me: error: ar required but not found" >&2;}
18604 { (exit 1); exit 1; }; }
18605fi
18606
John Criswell7a73b802003-06-30 21:59:07 +000018607# Extract the first word of "sed", so it can be a program name with args.
18608set dummy sed; ac_word=$2
18609echo "$as_me:$LINENO: checking for $ac_word" >&5
18610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18611if test "${ac_cv_path_SED+set}" = set; then
18612 echo $ECHO_N "(cached) $ECHO_C" >&6
18613else
18614 case $SED in
18615 [\\/]* | ?:[\\/]*)
18616 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18617 ;;
18618 *)
18619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18620for as_dir in $PATH
18621do
18622 IFS=$as_save_IFS
18623 test -z "$as_dir" && as_dir=.
18624 for ac_exec_ext in '' $ac_executable_extensions; do
18625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18626 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18628 break 2
18629 fi
18630done
18631done
18632
John Criswell39827c82003-09-23 15:28:52 +000018633 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018634 ;;
18635esac
18636fi
18637SED=$ac_cv_path_SED
18638
18639if test -n "$SED"; then
18640 echo "$as_me:$LINENO: result: $SED" >&5
18641echo "${ECHO_T}$SED" >&6
18642else
18643 echo "$as_me:$LINENO: result: no" >&5
18644echo "${ECHO_T}no" >&6
18645fi
18646
John Criswell39827c82003-09-23 15:28:52 +000018647if test ${SED} = "false"
18648then
18649 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18650echo "$as_me: error: sed required but not found" >&2;}
18651 { (exit 1); exit 1; }; }
18652fi
18653
John Criswell7a73b802003-06-30 21:59:07 +000018654# Extract the first word of "rm", so it can be a program name with args.
18655set dummy rm; ac_word=$2
18656echo "$as_me:$LINENO: checking for $ac_word" >&5
18657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18658if test "${ac_cv_path_RM+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18660else
18661 case $RM in
18662 [\\/]* | ?:[\\/]*)
18663 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18664 ;;
18665 *)
18666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18667for as_dir in $PATH
18668do
18669 IFS=$as_save_IFS
18670 test -z "$as_dir" && as_dir=.
18671 for ac_exec_ext in '' $ac_executable_extensions; do
18672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18673 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18675 break 2
18676 fi
18677done
18678done
18679
John Criswell39827c82003-09-23 15:28:52 +000018680 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018681 ;;
18682esac
18683fi
18684RM=$ac_cv_path_RM
18685
18686if test -n "$RM"; then
18687 echo "$as_me:$LINENO: result: $RM" >&5
18688echo "${ECHO_T}$RM" >&6
18689else
18690 echo "$as_me:$LINENO: result: no" >&5
18691echo "${ECHO_T}no" >&6
18692fi
18693
John Criswell39827c82003-09-23 15:28:52 +000018694if test ${RM} = "false"
18695then
18696 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18697echo "$as_me: error: rm required but not found" >&2;}
18698 { (exit 1); exit 1; }; }
18699fi
18700
John Criswell7a73b802003-06-30 21:59:07 +000018701# Extract the first word of "echo", so it can be a program name with args.
18702set dummy echo; ac_word=$2
18703echo "$as_me:$LINENO: checking for $ac_word" >&5
18704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18705if test "${ac_cv_path_ECHO+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18707else
18708 case $ECHO in
18709 [\\/]* | ?:[\\/]*)
18710 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18711 ;;
18712 *)
18713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18714for as_dir in $PATH
18715do
18716 IFS=$as_save_IFS
18717 test -z "$as_dir" && as_dir=.
18718 for ac_exec_ext in '' $ac_executable_extensions; do
18719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18720 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18722 break 2
18723 fi
18724done
18725done
18726
John Criswell39827c82003-09-23 15:28:52 +000018727 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018728 ;;
18729esac
18730fi
18731ECHO=$ac_cv_path_ECHO
18732
18733if test -n "$ECHO"; then
18734 echo "$as_me:$LINENO: result: $ECHO" >&5
18735echo "${ECHO_T}$ECHO" >&6
18736else
18737 echo "$as_me:$LINENO: result: no" >&5
18738echo "${ECHO_T}no" >&6
18739fi
18740
John Criswell39827c82003-09-23 15:28:52 +000018741if test ${ECHO} = "false"
18742then
18743 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18744echo "$as_me: error: echo required but not found" >&2;}
18745 { (exit 1); exit 1; }; }
18746fi
18747
John Criswell7a73b802003-06-30 21:59:07 +000018748# Extract the first word of "mkdir", so it can be a program name with args.
18749set dummy mkdir; ac_word=$2
18750echo "$as_me:$LINENO: checking for $ac_word" >&5
18751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18752if test "${ac_cv_path_MKDIR+set}" = set; then
18753 echo $ECHO_N "(cached) $ECHO_C" >&6
18754else
18755 case $MKDIR in
18756 [\\/]* | ?:[\\/]*)
18757 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18758 ;;
18759 *)
18760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18761for as_dir in $PATH
18762do
18763 IFS=$as_save_IFS
18764 test -z "$as_dir" && as_dir=.
18765 for ac_exec_ext in '' $ac_executable_extensions; do
18766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18767 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18769 break 2
18770 fi
18771done
18772done
18773
John Criswell39827c82003-09-23 15:28:52 +000018774 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018775 ;;
18776esac
18777fi
18778MKDIR=$ac_cv_path_MKDIR
18779
18780if test -n "$MKDIR"; then
18781 echo "$as_me:$LINENO: result: $MKDIR" >&5
18782echo "${ECHO_T}$MKDIR" >&6
18783else
18784 echo "$as_me:$LINENO: result: no" >&5
18785echo "${ECHO_T}no" >&6
18786fi
18787
John Criswell39827c82003-09-23 15:28:52 +000018788if test ${MKDIR} = "false"
18789then
18790 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18791echo "$as_me: error: mkdir required but not found" >&2;}
18792 { (exit 1); exit 1; }; }
18793fi
18794
John Criswell7a73b802003-06-30 21:59:07 +000018795# Extract the first word of "date", so it can be a program name with args.
18796set dummy date; ac_word=$2
18797echo "$as_me:$LINENO: checking for $ac_word" >&5
18798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18799if test "${ac_cv_path_DATE+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18801else
18802 case $DATE in
18803 [\\/]* | ?:[\\/]*)
18804 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18805 ;;
18806 *)
18807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18808for as_dir in $PATH
18809do
18810 IFS=$as_save_IFS
18811 test -z "$as_dir" && as_dir=.
18812 for ac_exec_ext in '' $ac_executable_extensions; do
18813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18814 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18816 break 2
18817 fi
18818done
18819done
18820
John Criswell39827c82003-09-23 15:28:52 +000018821 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018822 ;;
18823esac
18824fi
18825DATE=$ac_cv_path_DATE
18826
18827if test -n "$DATE"; then
18828 echo "$as_me:$LINENO: result: $DATE" >&5
18829echo "${ECHO_T}$DATE" >&6
18830else
18831 echo "$as_me:$LINENO: result: no" >&5
18832echo "${ECHO_T}no" >&6
18833fi
18834
John Criswell39827c82003-09-23 15:28:52 +000018835if test ${DATE} = "false"
18836then
18837 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18838echo "$as_me: error: date required but not found" >&2;}
18839 { (exit 1); exit 1; }; }
18840fi
18841
John Criswell7a73b802003-06-30 21:59:07 +000018842# Extract the first word of "mv", so it can be a program name with args.
18843set dummy mv; ac_word=$2
18844echo "$as_me:$LINENO: checking for $ac_word" >&5
18845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18846if test "${ac_cv_path_MV+set}" = set; then
18847 echo $ECHO_N "(cached) $ECHO_C" >&6
18848else
18849 case $MV in
18850 [\\/]* | ?:[\\/]*)
18851 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18852 ;;
18853 *)
18854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18855for as_dir in $PATH
18856do
18857 IFS=$as_save_IFS
18858 test -z "$as_dir" && as_dir=.
18859 for ac_exec_ext in '' $ac_executable_extensions; do
18860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18861 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18863 break 2
18864 fi
18865done
18866done
18867
John Criswell39827c82003-09-23 15:28:52 +000018868 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018869 ;;
18870esac
18871fi
18872MV=$ac_cv_path_MV
18873
18874if test -n "$MV"; then
18875 echo "$as_me:$LINENO: result: $MV" >&5
18876echo "${ECHO_T}$MV" >&6
18877else
18878 echo "$as_me:$LINENO: result: no" >&5
18879echo "${ECHO_T}no" >&6
18880fi
18881
John Criswell39827c82003-09-23 15:28:52 +000018882if test ${MV} = "false"
18883then
18884 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18885echo "$as_me: error: mv required but not found" >&2;}
18886 { (exit 1); exit 1; }; }
18887fi
18888
John Criswell7a73b802003-06-30 21:59:07 +000018889# Extract the first word of "dot", so it can be a program name with args.
18890set dummy dot; ac_word=$2
18891echo "$as_me:$LINENO: checking for $ac_word" >&5
18892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18893if test "${ac_cv_path_DOT+set}" = set; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18895else
18896 case $DOT in
18897 [\\/]* | ?:[\\/]*)
18898 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18899 ;;
18900 *)
18901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18902for as_dir in $PATH
18903do
18904 IFS=$as_save_IFS
18905 test -z "$as_dir" && as_dir=.
18906 for ac_exec_ext in '' $ac_executable_extensions; do
18907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18908 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18910 break 2
18911 fi
18912done
18913done
18914
John Criswell39827c82003-09-23 15:28:52 +000018915 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018916 ;;
18917esac
18918fi
18919DOT=$ac_cv_path_DOT
18920
18921if test -n "$DOT"; then
18922 echo "$as_me:$LINENO: result: $DOT" >&5
18923echo "${ECHO_T}$DOT" >&6
18924else
18925 echo "$as_me:$LINENO: result: no" >&5
18926echo "${ECHO_T}no" >&6
18927fi
18928
John Criswell39827c82003-09-23 15:28:52 +000018929
John Criswell7a73b802003-06-30 21:59:07 +000018930# Extract the first word of "etags", so it can be a program name with args.
18931set dummy etags; ac_word=$2
18932echo "$as_me:$LINENO: checking for $ac_word" >&5
18933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18934if test "${ac_cv_path_ETAGS+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18936else
18937 case $ETAGS in
18938 [\\/]* | ?:[\\/]*)
18939 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18940 ;;
18941 *)
18942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18943for as_dir in $PATH
18944do
18945 IFS=$as_save_IFS
18946 test -z "$as_dir" && as_dir=.
18947 for ac_exec_ext in '' $ac_executable_extensions; do
18948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18949 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18951 break 2
18952 fi
18953done
18954done
18955
John Criswell39827c82003-09-23 15:28:52 +000018956 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018957 ;;
18958esac
18959fi
18960ETAGS=$ac_cv_path_ETAGS
18961
18962if test -n "$ETAGS"; then
18963 echo "$as_me:$LINENO: result: $ETAGS" >&5
18964echo "${ECHO_T}$ETAGS" >&6
18965else
18966 echo "$as_me:$LINENO: result: no" >&5
18967echo "${ECHO_T}no" >&6
18968fi
18969
John Criswell39827c82003-09-23 15:28:52 +000018970
John Criswellde00db22003-08-25 16:49:54 +000018971# Extract the first word of "python", so it can be a program name with args.
18972set dummy python; ac_word=$2
18973echo "$as_me:$LINENO: checking for $ac_word" >&5
18974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18975if test "${ac_cv_path_PYTHON+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18977else
18978 case $PYTHON in
18979 [\\/]* | ?:[\\/]*)
18980 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18981 ;;
18982 *)
18983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18984for as_dir in $PATH
18985do
18986 IFS=$as_save_IFS
18987 test -z "$as_dir" && as_dir=.
18988 for ac_exec_ext in '' $ac_executable_extensions; do
18989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18990 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18992 break 2
18993 fi
18994done
18995done
18996
John Criswell39827c82003-09-23 15:28:52 +000018997 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018998 ;;
18999esac
19000fi
19001PYTHON=$ac_cv_path_PYTHON
19002
19003if test -n "$PYTHON"; then
19004 echo "$as_me:$LINENO: result: $PYTHON" >&5
19005echo "${ECHO_T}$PYTHON" >&6
19006else
19007 echo "$as_me:$LINENO: result: no" >&5
19008echo "${ECHO_T}no" >&6
19009fi
19010
John Criswell39827c82003-09-23 15:28:52 +000019011if test ${PYTHON} = "false"
19012then
John Criswell61095982003-09-23 20:46:32 +000019013 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19014echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019015fi
19016
John Criswellde00db22003-08-25 16:49:54 +000019017# Extract the first word of "qmtest", so it can be a program name with args.
19018set dummy qmtest; ac_word=$2
19019echo "$as_me:$LINENO: checking for $ac_word" >&5
19020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19021if test "${ac_cv_path_QMTEST+set}" = set; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19023else
19024 case $QMTEST in
19025 [\\/]* | ?:[\\/]*)
19026 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19027 ;;
19028 *)
19029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19030for as_dir in $PATH
19031do
19032 IFS=$as_save_IFS
19033 test -z "$as_dir" && as_dir=.
19034 for ac_exec_ext in '' $ac_executable_extensions; do
19035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19036 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19038 break 2
19039 fi
19040done
19041done
19042
John Criswell39827c82003-09-23 15:28:52 +000019043 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019044 ;;
19045esac
19046fi
19047QMTEST=$ac_cv_path_QMTEST
19048
19049if test -n "$QMTEST"; then
19050 echo "$as_me:$LINENO: result: $QMTEST" >&5
19051echo "${ECHO_T}$QMTEST" >&6
19052else
19053 echo "$as_me:$LINENO: result: no" >&5
19054echo "${ECHO_T}no" >&6
19055fi
19056
John Criswell39827c82003-09-23 15:28:52 +000019057if test ${QMTEST} = "false"
19058then
John Criswell61095982003-09-23 20:46:32 +000019059 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19060echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019061fi
John Criswellde00db22003-08-25 16:49:54 +000019062
19063pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19064pymajor=`echo $pyversion | cut -d. -f1`
19065pyminor=`echo $pyversion | cut -d. -f2`
19066
19067if test "$pymajor" -ge "2"
19068then
19069 if test "$pymajor" -eq "2"
19070 then
19071 if test "$pyminor" -lt "2"
19072 then
Brian Gaekef3b24102003-11-16 18:38:14 +000019073 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
19074echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019075 fi
19076 fi
19077else
Brian Gaekef3b24102003-11-16 18:38:14 +000019078 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
19079echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019080fi
John Criswell7a73b802003-06-30 21:59:07 +000019081
19082
19083
19084
19085
19086echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19087echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19088if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19089 echo $ECHO_N "(cached) $ECHO_C" >&6
19090else
19091 ac_check_lib_save_LIBS=$LIBS
19092LIBS="-lelf $LIBS"
19093cat >conftest.$ac_ext <<_ACEOF
19094#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019095/* confdefs.h. */
19096_ACEOF
19097cat confdefs.h >>conftest.$ac_ext
19098cat >>conftest.$ac_ext <<_ACEOF
19099/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019100
19101/* Override any gcc2 internal prototype to avoid an error. */
19102#ifdef __cplusplus
19103extern "C"
19104#endif
19105/* We use char because int might match the return type of a gcc2
19106 builtin and then its argument prototype would still apply. */
19107char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019108int
19109main ()
19110{
19111elf_begin ();
19112 ;
19113 return 0;
19114}
19115_ACEOF
19116rm -f conftest.$ac_objext conftest$ac_exeext
19117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19118 (eval $ac_link) 2>&5
19119 ac_status=$?
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
19122 { ac_try='test -s conftest$ac_exeext'
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19128 ac_cv_lib_elf_elf_begin=yes
19129else
19130 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019131sed 's/^/| /' conftest.$ac_ext >&5
19132
John Criswell7a73b802003-06-30 21:59:07 +000019133ac_cv_lib_elf_elf_begin=no
19134fi
19135rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19136LIBS=$ac_check_lib_save_LIBS
19137fi
19138echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19139echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19140if test $ac_cv_lib_elf_elf_begin = yes; then
19141 cat >>confdefs.h <<_ACEOF
19142#define HAVE_LIBELF 1
19143_ACEOF
19144
19145 LIBS="-lelf $LIBS"
19146
19147fi
19148
19149
19150echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19151echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19152if test "${ac_cv_search_dlopen+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19154else
19155 ac_func_search_save_LIBS=$LIBS
19156ac_cv_search_dlopen=no
19157cat >conftest.$ac_ext <<_ACEOF
19158#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019159/* confdefs.h. */
19160_ACEOF
19161cat confdefs.h >>conftest.$ac_ext
19162cat >>conftest.$ac_ext <<_ACEOF
19163/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019164
19165/* Override any gcc2 internal prototype to avoid an error. */
19166#ifdef __cplusplus
19167extern "C"
19168#endif
19169/* We use char because int might match the return type of a gcc2
19170 builtin and then its argument prototype would still apply. */
19171char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019172int
19173main ()
19174{
19175dlopen ();
19176 ;
19177 return 0;
19178}
19179_ACEOF
19180rm -f conftest.$ac_objext conftest$ac_exeext
19181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19182 (eval $ac_link) 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } &&
19186 { ac_try='test -s conftest$ac_exeext'
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_cv_search_dlopen="none required"
19193else
19194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019195sed 's/^/| /' conftest.$ac_ext >&5
19196
John Criswell7a73b802003-06-30 21:59:07 +000019197fi
19198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19199if test "$ac_cv_search_dlopen" = no; then
19200 for ac_lib in dl; do
19201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19202 cat >conftest.$ac_ext <<_ACEOF
19203#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019204/* confdefs.h. */
19205_ACEOF
19206cat confdefs.h >>conftest.$ac_ext
19207cat >>conftest.$ac_ext <<_ACEOF
19208/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019209
19210/* Override any gcc2 internal prototype to avoid an error. */
19211#ifdef __cplusplus
19212extern "C"
19213#endif
19214/* We use char because int might match the return type of a gcc2
19215 builtin and then its argument prototype would still apply. */
19216char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019217int
19218main ()
19219{
19220dlopen ();
19221 ;
19222 return 0;
19223}
19224_ACEOF
19225rm -f conftest.$ac_objext conftest$ac_exeext
19226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19227 (eval $ac_link) 2>&5
19228 ac_status=$?
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } &&
19231 { ac_try='test -s conftest$ac_exeext'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19237 ac_cv_search_dlopen="-l$ac_lib"
19238break
19239else
19240 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019241sed 's/^/| /' conftest.$ac_ext >&5
19242
John Criswell7a73b802003-06-30 21:59:07 +000019243fi
19244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19245 done
19246fi
19247LIBS=$ac_func_search_save_LIBS
19248fi
19249echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19250echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19251if test "$ac_cv_search_dlopen" != no; then
19252 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019253
19254cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019255#define HAVE_DLOPEN 1
19256_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019257
19258else
Brian Gaekec45be042003-10-07 06:01:34 +000019259 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19260echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019261fi
19262
19263
19264echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19265echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19266if test "${ac_cv_search_mallinfo+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19268else
19269 ac_func_search_save_LIBS=$LIBS
19270ac_cv_search_mallinfo=no
19271cat >conftest.$ac_ext <<_ACEOF
19272#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019273/* confdefs.h. */
19274_ACEOF
19275cat confdefs.h >>conftest.$ac_ext
19276cat >>conftest.$ac_ext <<_ACEOF
19277/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019278
19279/* Override any gcc2 internal prototype to avoid an error. */
19280#ifdef __cplusplus
19281extern "C"
19282#endif
19283/* We use char because int might match the return type of a gcc2
19284 builtin and then its argument prototype would still apply. */
19285char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019286int
19287main ()
19288{
19289mallinfo ();
19290 ;
19291 return 0;
19292}
19293_ACEOF
19294rm -f conftest.$ac_objext conftest$ac_exeext
19295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19296 (eval $ac_link) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
19300 { ac_try='test -s conftest$ac_exeext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 ac_cv_search_mallinfo="none required"
19307else
19308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019309sed 's/^/| /' conftest.$ac_ext >&5
19310
John Criswell7a73b802003-06-30 21:59:07 +000019311fi
19312rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19313if test "$ac_cv_search_mallinfo" = no; then
19314 for ac_lib in malloc; do
19315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19316 cat >conftest.$ac_ext <<_ACEOF
19317#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019318/* confdefs.h. */
19319_ACEOF
19320cat confdefs.h >>conftest.$ac_ext
19321cat >>conftest.$ac_ext <<_ACEOF
19322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019323
19324/* Override any gcc2 internal prototype to avoid an error. */
19325#ifdef __cplusplus
19326extern "C"
19327#endif
19328/* We use char because int might match the return type of a gcc2
19329 builtin and then its argument prototype would still apply. */
19330char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019331int
19332main ()
19333{
19334mallinfo ();
19335 ;
19336 return 0;
19337}
19338_ACEOF
19339rm -f conftest.$ac_objext conftest$ac_exeext
19340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19341 (eval $ac_link) 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); } &&
19345 { ac_try='test -s conftest$ac_exeext'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19348 ac_status=$?
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; }; then
19351 ac_cv_search_mallinfo="-l$ac_lib"
19352break
19353else
19354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019355sed 's/^/| /' conftest.$ac_ext >&5
19356
John Criswell7a73b802003-06-30 21:59:07 +000019357fi
19358rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19359 done
19360fi
19361LIBS=$ac_func_search_save_LIBS
19362fi
19363echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19364echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19365if test "$ac_cv_search_mallinfo" != no; then
19366 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019367
19368cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019369#define HAVE_MALLINFO 1
19370_ACEOF
19371
19372fi
19373
19374
19375
19376echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19377echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19378if test "${ac_cv_header_stdc+set}" = set; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19380else
19381 cat >conftest.$ac_ext <<_ACEOF
19382#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019383/* confdefs.h. */
19384_ACEOF
19385cat confdefs.h >>conftest.$ac_ext
19386cat >>conftest.$ac_ext <<_ACEOF
19387/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019388#include <stdlib.h>
19389#include <stdarg.h>
19390#include <string.h>
19391#include <float.h>
19392
John Criswell0c38eaf2003-09-10 15:17:25 +000019393int
19394main ()
19395{
19396
19397 ;
19398 return 0;
19399}
John Criswell7a73b802003-06-30 21:59:07 +000019400_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019401rm -f conftest.$ac_objext
19402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19403 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019404 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019406 (exit $ac_status); } &&
19407 { ac_try='test -s conftest.$ac_objext'
19408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019413 ac_cv_header_stdc=yes
19414else
19415 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019416sed 's/^/| /' conftest.$ac_ext >&5
19417
19418ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019419fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019420rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019421
19422if test $ac_cv_header_stdc = yes; then
19423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19424 cat >conftest.$ac_ext <<_ACEOF
19425#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019426/* confdefs.h. */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019431#include <string.h>
19432
19433_ACEOF
19434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019435 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019436 :
19437else
19438 ac_cv_header_stdc=no
19439fi
19440rm -f conftest*
19441
19442fi
19443
19444if test $ac_cv_header_stdc = yes; then
19445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19446 cat >conftest.$ac_ext <<_ACEOF
19447#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019448/* confdefs.h. */
19449_ACEOF
19450cat confdefs.h >>conftest.$ac_ext
19451cat >>conftest.$ac_ext <<_ACEOF
19452/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019453#include <stdlib.h>
19454
19455_ACEOF
19456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019457 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019458 :
19459else
19460 ac_cv_header_stdc=no
19461fi
19462rm -f conftest*
19463
19464fi
19465
19466if test $ac_cv_header_stdc = yes; then
19467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19468 if test "$cross_compiling" = yes; then
19469 :
19470else
19471 cat >conftest.$ac_ext <<_ACEOF
19472#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019473/* confdefs.h. */
19474_ACEOF
19475cat confdefs.h >>conftest.$ac_ext
19476cat >>conftest.$ac_ext <<_ACEOF
19477/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019478#include <ctype.h>
19479#if ((' ' & 0x0FF) == 0x020)
19480# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19481# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19482#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019483# define ISLOWER(c) \
19484 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019485 || ('j' <= (c) && (c) <= 'r') \
19486 || ('s' <= (c) && (c) <= 'z'))
19487# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19488#endif
19489
19490#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19491int
19492main ()
19493{
19494 int i;
19495 for (i = 0; i < 256; i++)
19496 if (XOR (islower (i), ISLOWER (i))
19497 || toupper (i) != TOUPPER (i))
19498 exit(2);
19499 exit (0);
19500}
19501_ACEOF
19502rm -f conftest$ac_exeext
19503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19504 (eval $ac_link) 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19510 ac_status=$?
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; }; then
19513 :
19514else
19515 echo "$as_me: program exited with status $ac_status" >&5
19516echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019517sed 's/^/| /' conftest.$ac_ext >&5
19518
John Criswell7a73b802003-06-30 21:59:07 +000019519( exit $ac_status )
19520ac_cv_header_stdc=no
19521fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019522rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019523fi
19524fi
19525fi
19526echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19527echo "${ECHO_T}$ac_cv_header_stdc" >&6
19528if test $ac_cv_header_stdc = yes; then
19529
19530cat >>confdefs.h <<\_ACEOF
19531#define STDC_HEADERS 1
19532_ACEOF
19533
19534fi
19535
19536echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19537echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19538if test "${ac_cv_header_sys_wait_h+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19540else
19541 cat >conftest.$ac_ext <<_ACEOF
19542#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019543/* confdefs.h. */
19544_ACEOF
19545cat confdefs.h >>conftest.$ac_ext
19546cat >>conftest.$ac_ext <<_ACEOF
19547/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019548#include <sys/types.h>
19549#include <sys/wait.h>
19550#ifndef WEXITSTATUS
19551# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19552#endif
19553#ifndef WIFEXITED
19554# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19555#endif
19556
John Criswell7a73b802003-06-30 21:59:07 +000019557int
19558main ()
19559{
19560 int s;
19561 wait (&s);
19562 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19563 ;
19564 return 0;
19565}
19566_ACEOF
19567rm -f conftest.$ac_objext
19568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19569 (eval $ac_compile) 2>&5
19570 ac_status=$?
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } &&
19573 { ac_try='test -s conftest.$ac_objext'
19574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575 (eval $ac_try) 2>&5
19576 ac_status=$?
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; }; then
19579 ac_cv_header_sys_wait_h=yes
19580else
19581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019582sed 's/^/| /' conftest.$ac_ext >&5
19583
John Criswell7a73b802003-06-30 21:59:07 +000019584ac_cv_header_sys_wait_h=no
19585fi
19586rm -f conftest.$ac_objext conftest.$ac_ext
19587fi
19588echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19589echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19590if test $ac_cv_header_sys_wait_h = yes; then
19591
19592cat >>confdefs.h <<\_ACEOF
19593#define HAVE_SYS_WAIT_H 1
19594_ACEOF
19595
19596fi
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19608do
19609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19610if eval "test \"\${$as_ac_Header+set}\" = set"; then
19611 echo "$as_me:$LINENO: checking for $ac_header" >&5
19612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19613if eval "test \"\${$as_ac_Header+set}\" = set"; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19615fi
19616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19618else
19619 # Is the header compilable?
19620echo "$as_me:$LINENO: checking $ac_header usability" >&5
19621echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19622cat >conftest.$ac_ext <<_ACEOF
19623#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019624/* confdefs.h. */
19625_ACEOF
19626cat confdefs.h >>conftest.$ac_ext
19627cat >>conftest.$ac_ext <<_ACEOF
19628/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019629$ac_includes_default
19630#include <$ac_header>
19631_ACEOF
19632rm -f conftest.$ac_objext
19633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19634 (eval $ac_compile) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -s conftest.$ac_objext'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_header_compiler=yes
19645else
19646 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019647sed 's/^/| /' conftest.$ac_ext >&5
19648
John Criswell7a73b802003-06-30 21:59:07 +000019649ac_header_compiler=no
19650fi
19651rm -f conftest.$ac_objext conftest.$ac_ext
19652echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19653echo "${ECHO_T}$ac_header_compiler" >&6
19654
19655# Is the header present?
19656echo "$as_me:$LINENO: checking $ac_header presence" >&5
19657echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19658cat >conftest.$ac_ext <<_ACEOF
19659#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019660/* confdefs.h. */
19661_ACEOF
19662cat confdefs.h >>conftest.$ac_ext
19663cat >>conftest.$ac_ext <<_ACEOF
19664/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019665#include <$ac_header>
19666_ACEOF
19667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19669 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019670 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019671 rm -f conftest.er1
19672 cat conftest.err >&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } >/dev/null; then
19675 if test -s conftest.err; then
19676 ac_cpp_err=$ac_c_preproc_warn_flag
19677 else
19678 ac_cpp_err=
19679 fi
19680else
19681 ac_cpp_err=yes
19682fi
19683if test -z "$ac_cpp_err"; then
19684 ac_header_preproc=yes
19685else
19686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019687sed 's/^/| /' conftest.$ac_ext >&5
19688
John Criswell7a73b802003-06-30 21:59:07 +000019689 ac_header_preproc=no
19690fi
19691rm -f conftest.err conftest.$ac_ext
19692echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19693echo "${ECHO_T}$ac_header_preproc" >&6
19694
19695# So? What about this header?
19696case $ac_header_compiler:$ac_header_preproc in
19697 yes:no )
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19699echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19702 (
19703 cat <<\_ASBOX
19704## ------------------------------------ ##
19705## Report this to bug-autoconf@gnu.org. ##
19706## ------------------------------------ ##
19707_ASBOX
19708 ) |
19709 sed "s/^/$as_me: WARNING: /" >&2
19710 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019711 no:yes )
19712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19713echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19715echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019717echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19718 (
19719 cat <<\_ASBOX
19720## ------------------------------------ ##
19721## Report this to bug-autoconf@gnu.org. ##
19722## ------------------------------------ ##
19723_ASBOX
19724 ) |
19725 sed "s/^/$as_me: WARNING: /" >&2
19726 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019727esac
19728echo "$as_me:$LINENO: checking for $ac_header" >&5
19729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19730if eval "test \"\${$as_ac_Header+set}\" = set"; then
19731 echo $ECHO_N "(cached) $ECHO_C" >&6
19732else
19733 eval "$as_ac_Header=$ac_header_preproc"
19734fi
19735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19737
19738fi
19739if test `eval echo '${'$as_ac_Header'}'` = yes; then
19740 cat >>confdefs.h <<_ACEOF
19741#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19742_ACEOF
19743
19744fi
19745
19746done
19747
19748
19749
19750
19751
John Criswelle8a63eb2003-10-23 19:16:12 +000019752for ac_header in malloc.h sys/mman.h sys/resource.h
John Criswell7a73b802003-06-30 21:59:07 +000019753do
19754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19755if eval "test \"\${$as_ac_Header+set}\" = set"; then
19756 echo "$as_me:$LINENO: checking for $ac_header" >&5
19757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19758if eval "test \"\${$as_ac_Header+set}\" = set"; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19760fi
19761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19763else
19764 # Is the header compilable?
19765echo "$as_me:$LINENO: checking $ac_header usability" >&5
19766echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19767cat >conftest.$ac_ext <<_ACEOF
19768#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019769/* confdefs.h. */
19770_ACEOF
19771cat confdefs.h >>conftest.$ac_ext
19772cat >>conftest.$ac_ext <<_ACEOF
19773/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019774$ac_includes_default
19775#include <$ac_header>
19776_ACEOF
19777rm -f conftest.$ac_objext
19778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19779 (eval $ac_compile) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } &&
19783 { ac_try='test -s conftest.$ac_objext'
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; }; then
19789 ac_header_compiler=yes
19790else
19791 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019792sed 's/^/| /' conftest.$ac_ext >&5
19793
John Criswell7a73b802003-06-30 21:59:07 +000019794ac_header_compiler=no
19795fi
19796rm -f conftest.$ac_objext conftest.$ac_ext
19797echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19798echo "${ECHO_T}$ac_header_compiler" >&6
19799
19800# Is the header present?
19801echo "$as_me:$LINENO: checking $ac_header presence" >&5
19802echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19803cat >conftest.$ac_ext <<_ACEOF
19804#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019805/* confdefs.h. */
19806_ACEOF
19807cat confdefs.h >>conftest.$ac_ext
19808cat >>conftest.$ac_ext <<_ACEOF
19809/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019810#include <$ac_header>
19811_ACEOF
19812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19814 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019815 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019816 rm -f conftest.er1
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } >/dev/null; then
19820 if test -s conftest.err; then
19821 ac_cpp_err=$ac_c_preproc_warn_flag
19822 else
19823 ac_cpp_err=
19824 fi
19825else
19826 ac_cpp_err=yes
19827fi
19828if test -z "$ac_cpp_err"; then
19829 ac_header_preproc=yes
19830else
19831 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019832sed 's/^/| /' conftest.$ac_ext >&5
19833
John Criswell7a73b802003-06-30 21:59:07 +000019834 ac_header_preproc=no
19835fi
19836rm -f conftest.err conftest.$ac_ext
19837echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19838echo "${ECHO_T}$ac_header_preproc" >&6
19839
19840# So? What about this header?
19841case $ac_header_compiler:$ac_header_preproc in
19842 yes:no )
19843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19844echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019846echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19847 (
19848 cat <<\_ASBOX
19849## ------------------------------------ ##
19850## Report this to bug-autoconf@gnu.org. ##
19851## ------------------------------------ ##
19852_ASBOX
19853 ) |
19854 sed "s/^/$as_me: WARNING: /" >&2
19855 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019856 no:yes )
19857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19858echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19860echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019862echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19863 (
19864 cat <<\_ASBOX
19865## ------------------------------------ ##
19866## Report this to bug-autoconf@gnu.org. ##
19867## ------------------------------------ ##
19868_ASBOX
19869 ) |
19870 sed "s/^/$as_me: WARNING: /" >&2
19871 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019872esac
19873echo "$as_me:$LINENO: checking for $ac_header" >&5
19874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19875if eval "test \"\${$as_ac_Header+set}\" = set"; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19877else
19878 eval "$as_ac_Header=$ac_header_preproc"
19879fi
19880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19882
19883fi
19884if test `eval echo '${'$as_ac_Header'}'` = yes; then
19885 cat >>confdefs.h <<_ACEOF
19886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19887_ACEOF
19888
19889fi
19890
19891done
19892
19893
19894
19895
19896for ac_header in dlfcn.h link.h
19897do
19898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19899if eval "test \"\${$as_ac_Header+set}\" = set"; then
19900 echo "$as_me:$LINENO: checking for $ac_header" >&5
19901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19902if eval "test \"\${$as_ac_Header+set}\" = set"; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19904fi
19905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19907else
19908 # Is the header compilable?
19909echo "$as_me:$LINENO: checking $ac_header usability" >&5
19910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19911cat >conftest.$ac_ext <<_ACEOF
19912#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019913/* confdefs.h. */
19914_ACEOF
19915cat confdefs.h >>conftest.$ac_ext
19916cat >>conftest.$ac_ext <<_ACEOF
19917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019918$ac_includes_default
19919#include <$ac_header>
19920_ACEOF
19921rm -f conftest.$ac_objext
19922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19923 (eval $ac_compile) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } &&
19927 { ac_try='test -s conftest.$ac_objext'
19928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; }; then
19933 ac_header_compiler=yes
19934else
19935 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019936sed 's/^/| /' conftest.$ac_ext >&5
19937
John Criswell7a73b802003-06-30 21:59:07 +000019938ac_header_compiler=no
19939fi
19940rm -f conftest.$ac_objext conftest.$ac_ext
19941echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19942echo "${ECHO_T}$ac_header_compiler" >&6
19943
19944# Is the header present?
19945echo "$as_me:$LINENO: checking $ac_header presence" >&5
19946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19947cat >conftest.$ac_ext <<_ACEOF
19948#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019949/* confdefs.h. */
19950_ACEOF
19951cat confdefs.h >>conftest.$ac_ext
19952cat >>conftest.$ac_ext <<_ACEOF
19953/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019954#include <$ac_header>
19955_ACEOF
19956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19958 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019959 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019960 rm -f conftest.er1
19961 cat conftest.err >&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } >/dev/null; then
19964 if test -s conftest.err; then
19965 ac_cpp_err=$ac_c_preproc_warn_flag
19966 else
19967 ac_cpp_err=
19968 fi
19969else
19970 ac_cpp_err=yes
19971fi
19972if test -z "$ac_cpp_err"; then
19973 ac_header_preproc=yes
19974else
19975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019976sed 's/^/| /' conftest.$ac_ext >&5
19977
John Criswell7a73b802003-06-30 21:59:07 +000019978 ac_header_preproc=no
19979fi
19980rm -f conftest.err conftest.$ac_ext
19981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19982echo "${ECHO_T}$ac_header_preproc" >&6
19983
19984# So? What about this header?
19985case $ac_header_compiler:$ac_header_preproc in
19986 yes:no )
19987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19988echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019990echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19991 (
19992 cat <<\_ASBOX
19993## ------------------------------------ ##
19994## Report this to bug-autoconf@gnu.org. ##
19995## ------------------------------------ ##
19996_ASBOX
19997 ) |
19998 sed "s/^/$as_me: WARNING: /" >&2
19999 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020000 no:yes )
20001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20002echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20004echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020006echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20007 (
20008 cat <<\_ASBOX
20009## ------------------------------------ ##
20010## Report this to bug-autoconf@gnu.org. ##
20011## ------------------------------------ ##
20012_ASBOX
20013 ) |
20014 sed "s/^/$as_me: WARNING: /" >&2
20015 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020016esac
20017echo "$as_me:$LINENO: checking for $ac_header" >&5
20018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20019if eval "test \"\${$as_ac_Header+set}\" = set"; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20021else
20022 eval "$as_ac_Header=$ac_header_preproc"
20023fi
20024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20026
20027fi
20028if test `eval echo '${'$as_ac_Header'}'` = yes; then
20029 cat >>confdefs.h <<_ACEOF
20030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20031_ACEOF
20032
20033fi
20034
20035done
20036
20037
20038
John Criswell7a73b802003-06-30 21:59:07 +000020039echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20040echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20041if test "${ac_cv_c_const+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043else
20044 cat >conftest.$ac_ext <<_ACEOF
20045#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020046/* confdefs.h. */
20047_ACEOF
20048cat confdefs.h >>conftest.$ac_ext
20049cat >>conftest.$ac_ext <<_ACEOF
20050/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020051
John Criswell7a73b802003-06-30 21:59:07 +000020052int
20053main ()
20054{
20055/* FIXME: Include the comments suggested by Paul. */
20056#ifndef __cplusplus
20057 /* Ultrix mips cc rejects this. */
20058 typedef int charset[2];
20059 const charset x;
20060 /* SunOS 4.1.1 cc rejects this. */
20061 char const *const *ccp;
20062 char **p;
20063 /* NEC SVR4.0.2 mips cc rejects this. */
20064 struct point {int x, y;};
20065 static struct point const zero = {0,0};
20066 /* AIX XL C 1.02.0.0 rejects this.
20067 It does not let you subtract one const X* pointer from another in
20068 an arm of an if-expression whose if-part is not a constant
20069 expression */
20070 const char *g = "string";
20071 ccp = &g + (g ? g-g : 0);
20072 /* HPUX 7.0 cc rejects these. */
20073 ++ccp;
20074 p = (char**) ccp;
20075 ccp = (char const *const *) p;
20076 { /* SCO 3.2v4 cc rejects this. */
20077 char *t;
20078 char const *s = 0 ? (char *) 0 : (char const *) 0;
20079
20080 *t++ = 0;
20081 }
20082 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20083 int x[] = {25, 17};
20084 const int *foo = &x[0];
20085 ++foo;
20086 }
20087 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20088 typedef const int *iptr;
20089 iptr p = 0;
20090 ++p;
20091 }
20092 { /* AIX XL C 1.02.0.0 rejects this saying
20093 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20094 struct s { int j; const int *ap[3]; };
20095 struct s *b; b->j = 5;
20096 }
20097 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20098 const int foo = 10;
20099 }
20100#endif
20101
20102 ;
20103 return 0;
20104}
20105_ACEOF
20106rm -f conftest.$ac_objext
20107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20108 (eval $ac_compile) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } &&
20112 { ac_try='test -s conftest.$ac_objext'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; }; then
20118 ac_cv_c_const=yes
20119else
20120 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020121sed 's/^/| /' conftest.$ac_ext >&5
20122
John Criswell7a73b802003-06-30 21:59:07 +000020123ac_cv_c_const=no
20124fi
20125rm -f conftest.$ac_objext conftest.$ac_ext
20126fi
20127echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20128echo "${ECHO_T}$ac_cv_c_const" >&6
20129if test $ac_cv_c_const = no; then
20130
20131cat >>confdefs.h <<\_ACEOF
20132#define const
20133_ACEOF
20134
20135fi
20136
20137echo "$as_me:$LINENO: checking for inline" >&5
20138echo $ECHO_N "checking for inline... $ECHO_C" >&6
20139if test "${ac_cv_c_inline+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20141else
20142 ac_cv_c_inline=no
20143for ac_kw in inline __inline__ __inline; do
20144 cat >conftest.$ac_ext <<_ACEOF
20145#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020146/* confdefs.h. */
20147_ACEOF
20148cat confdefs.h >>conftest.$ac_ext
20149cat >>conftest.$ac_ext <<_ACEOF
20150/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020151#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020152typedef int foo_t;
20153static $ac_kw foo_t static_foo () {return 0; }
20154$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020155#endif
20156
20157_ACEOF
20158rm -f conftest.$ac_objext
20159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20160 (eval $ac_compile) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } &&
20164 { ac_try='test -s conftest.$ac_objext'
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20167 ac_status=$?
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; }; then
20170 ac_cv_c_inline=$ac_kw; break
20171else
20172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020173sed 's/^/| /' conftest.$ac_ext >&5
20174
John Criswell7a73b802003-06-30 21:59:07 +000020175fi
20176rm -f conftest.$ac_objext conftest.$ac_ext
20177done
20178
20179fi
20180echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20181echo "${ECHO_T}$ac_cv_c_inline" >&6
20182case $ac_cv_c_inline in
20183 inline | yes) ;;
20184 no)
20185cat >>confdefs.h <<\_ACEOF
20186#define inline
20187_ACEOF
20188 ;;
20189 *) cat >>confdefs.h <<_ACEOF
20190#define inline $ac_cv_c_inline
20191_ACEOF
20192 ;;
20193esac
20194
20195
20196echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20197echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20198if test "${ac_cv_c_bigendian+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20200else
20201 # See if sys/param.h defines the BYTE_ORDER macro.
20202cat >conftest.$ac_ext <<_ACEOF
20203#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020204/* confdefs.h. */
20205_ACEOF
20206cat confdefs.h >>conftest.$ac_ext
20207cat >>conftest.$ac_ext <<_ACEOF
20208/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020209#include <sys/types.h>
20210#include <sys/param.h>
20211
John Criswell7a73b802003-06-30 21:59:07 +000020212int
20213main ()
20214{
20215#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20216 bogus endian macros
20217#endif
20218
20219 ;
20220 return 0;
20221}
20222_ACEOF
20223rm -f conftest.$ac_objext
20224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20225 (eval $ac_compile) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); } &&
20229 { ac_try='test -s conftest.$ac_objext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235 # It does; now see whether it defined to BIG_ENDIAN or not.
20236cat >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 +000020243#include <sys/types.h>
20244#include <sys/param.h>
20245
John Criswell7a73b802003-06-30 21:59:07 +000020246int
20247main ()
20248{
20249#if BYTE_ORDER != BIG_ENDIAN
20250 not big endian
20251#endif
20252
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
20269 ac_cv_c_bigendian=yes
20270else
20271 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020272sed 's/^/| /' conftest.$ac_ext >&5
20273
John Criswell7a73b802003-06-30 21:59:07 +000020274ac_cv_c_bigendian=no
20275fi
20276rm -f conftest.$ac_objext conftest.$ac_ext
20277else
20278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020279sed 's/^/| /' conftest.$ac_ext >&5
20280
John Criswell7a73b802003-06-30 21:59:07 +000020281# It does not; compile a test program.
20282if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020283 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020284 ac_cv_c_bigendian=unknown
20285 cat >conftest.$ac_ext <<_ACEOF
20286#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020287/* confdefs.h. */
20288_ACEOF
20289cat confdefs.h >>conftest.$ac_ext
20290cat >>conftest.$ac_ext <<_ACEOF
20291/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020292short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20293short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20294void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20295short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20296short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20297void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020298int
20299main ()
20300{
20301 _ascii (); _ebcdic ();
20302 ;
20303 return 0;
20304}
20305_ACEOF
20306rm -f conftest.$ac_objext
20307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20308 (eval $ac_compile) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); } &&
20312 { ac_try='test -s conftest.$ac_objext'
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
John Criswell0c38eaf2003-09-10 15:17:25 +000020318 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020319 ac_cv_c_bigendian=yes
20320fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020321if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020322 if test "$ac_cv_c_bigendian" = unknown; then
20323 ac_cv_c_bigendian=no
20324 else
20325 # finding both strings is unlikely to happen, but who knows?
20326 ac_cv_c_bigendian=unknown
20327 fi
20328fi
20329else
20330 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020331sed 's/^/| /' conftest.$ac_ext >&5
20332
John Criswell7a73b802003-06-30 21:59:07 +000020333fi
20334rm -f conftest.$ac_objext conftest.$ac_ext
20335else
20336 cat >conftest.$ac_ext <<_ACEOF
20337#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020338/* confdefs.h. */
20339_ACEOF
20340cat confdefs.h >>conftest.$ac_ext
20341cat >>conftest.$ac_ext <<_ACEOF
20342/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020343int
20344main ()
20345{
20346 /* Are we little or big endian? From Harbison&Steele. */
20347 union
20348 {
20349 long l;
20350 char c[sizeof (long)];
20351 } u;
20352 u.l = 1;
20353 exit (u.c[sizeof (long) - 1] == 1);
20354}
20355_ACEOF
20356rm -f conftest$ac_exeext
20357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20358 (eval $ac_link) 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363 (eval $ac_try) 2>&5
20364 ac_status=$?
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; }; then
20367 ac_cv_c_bigendian=no
20368else
20369 echo "$as_me: program exited with status $ac_status" >&5
20370echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020371sed 's/^/| /' conftest.$ac_ext >&5
20372
John Criswell7a73b802003-06-30 21:59:07 +000020373( exit $ac_status )
20374ac_cv_c_bigendian=yes
20375fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020376rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020377fi
20378fi
20379rm -f conftest.$ac_objext conftest.$ac_ext
20380fi
20381echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20382echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20383case $ac_cv_c_bigendian in
20384 yes)
John Criswell5ab73462003-10-09 15:44:28 +000020385
20386cat >>confdefs.h <<\_ACEOF
20387#define ENDIAN_BIG
John Criswell7a73b802003-06-30 21:59:07 +000020388_ACEOF
20389 ;;
20390 no)
John Criswell5ab73462003-10-09 15:44:28 +000020391
20392cat >>confdefs.h <<\_ACEOF
20393#define ENDIAN_LITTLE
John Criswell7a73b802003-06-30 21:59:07 +000020394_ACEOF
20395 ;;
20396 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020397 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020398presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020399echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020400presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20401 { (exit 1); exit 1; }; } ;;
20402esac
20403
20404
20405echo "$as_me:$LINENO: checking for pid_t" >&5
20406echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20407if test "${ac_cv_type_pid_t+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20409else
20410 cat >conftest.$ac_ext <<_ACEOF
20411#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020412/* confdefs.h. */
20413_ACEOF
20414cat confdefs.h >>conftest.$ac_ext
20415cat >>conftest.$ac_ext <<_ACEOF
20416/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020417$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020418int
20419main ()
20420{
20421if ((pid_t *) 0)
20422 return 0;
20423if (sizeof (pid_t))
20424 return 0;
20425 ;
20426 return 0;
20427}
20428_ACEOF
20429rm -f conftest.$ac_objext
20430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20431 (eval $ac_compile) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } &&
20435 { ac_try='test -s conftest.$ac_objext'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20438 ac_status=$?
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20441 ac_cv_type_pid_t=yes
20442else
20443 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020444sed 's/^/| /' conftest.$ac_ext >&5
20445
John Criswell7a73b802003-06-30 21:59:07 +000020446ac_cv_type_pid_t=no
20447fi
20448rm -f conftest.$ac_objext conftest.$ac_ext
20449fi
20450echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20451echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20452if test $ac_cv_type_pid_t = yes; then
20453 :
20454else
20455
20456cat >>confdefs.h <<_ACEOF
20457#define pid_t int
20458_ACEOF
20459
20460fi
20461
20462echo "$as_me:$LINENO: checking for size_t" >&5
20463echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20464if test "${ac_cv_type_size_t+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20466else
20467 cat >conftest.$ac_ext <<_ACEOF
20468#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020469/* confdefs.h. */
20470_ACEOF
20471cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020474$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020475int
20476main ()
20477{
20478if ((size_t *) 0)
20479 return 0;
20480if (sizeof (size_t))
20481 return 0;
20482 ;
20483 return 0;
20484}
20485_ACEOF
20486rm -f conftest.$ac_objext
20487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488 (eval $ac_compile) 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } &&
20492 { ac_try='test -s conftest.$ac_objext'
20493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494 (eval $ac_try) 2>&5
20495 ac_status=$?
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; }; then
20498 ac_cv_type_size_t=yes
20499else
20500 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020501sed 's/^/| /' conftest.$ac_ext >&5
20502
John Criswell7a73b802003-06-30 21:59:07 +000020503ac_cv_type_size_t=no
20504fi
20505rm -f conftest.$ac_objext conftest.$ac_ext
20506fi
20507echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20508echo "${ECHO_T}$ac_cv_type_size_t" >&6
20509if test $ac_cv_type_size_t = yes; then
20510 :
20511else
20512
20513cat >>confdefs.h <<_ACEOF
20514#define size_t unsigned
20515_ACEOF
20516
20517fi
20518
20519echo "$as_me:$LINENO: checking for int64_t" >&5
20520echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20521if test "${ac_cv_type_int64_t+set}" = set; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20523else
20524 cat >conftest.$ac_ext <<_ACEOF
20525#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020526/* confdefs.h. */
20527_ACEOF
20528cat confdefs.h >>conftest.$ac_ext
20529cat >>conftest.$ac_ext <<_ACEOF
20530/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020531$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020532int
20533main ()
20534{
20535if ((int64_t *) 0)
20536 return 0;
20537if (sizeof (int64_t))
20538 return 0;
20539 ;
20540 return 0;
20541}
20542_ACEOF
20543rm -f conftest.$ac_objext
20544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20545 (eval $ac_compile) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } &&
20549 { ac_try='test -s conftest.$ac_objext'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_type_int64_t=yes
20556else
20557 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020558sed 's/^/| /' conftest.$ac_ext >&5
20559
John Criswell7a73b802003-06-30 21:59:07 +000020560ac_cv_type_int64_t=no
20561fi
20562rm -f conftest.$ac_objext conftest.$ac_ext
20563fi
20564echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20565echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20566if test $ac_cv_type_int64_t = yes; then
20567
20568cat >>confdefs.h <<_ACEOF
20569#define HAVE_INT64_T 1
20570_ACEOF
20571
20572
20573else
20574 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20575echo "$as_me: error: Type int64_t required but not found" >&2;}
20576 { (exit 1); exit 1; }; }
20577fi
20578
20579echo "$as_me:$LINENO: checking for uint64_t" >&5
20580echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20581if test "${ac_cv_type_uint64_t+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20583else
20584 cat >conftest.$ac_ext <<_ACEOF
20585#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020586/* confdefs.h. */
20587_ACEOF
20588cat confdefs.h >>conftest.$ac_ext
20589cat >>conftest.$ac_ext <<_ACEOF
20590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020591$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020592int
20593main ()
20594{
20595if ((uint64_t *) 0)
20596 return 0;
20597if (sizeof (uint64_t))
20598 return 0;
20599 ;
20600 return 0;
20601}
20602_ACEOF
20603rm -f conftest.$ac_objext
20604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20605 (eval $ac_compile) 2>&5
20606 ac_status=$?
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } &&
20609 { ac_try='test -s conftest.$ac_objext'
20610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611 (eval $ac_try) 2>&5
20612 ac_status=$?
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; }; then
20615 ac_cv_type_uint64_t=yes
20616else
20617 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020618sed 's/^/| /' conftest.$ac_ext >&5
20619
John Criswell7a73b802003-06-30 21:59:07 +000020620ac_cv_type_uint64_t=no
20621fi
20622rm -f conftest.$ac_objext conftest.$ac_ext
20623fi
20624echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20625echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20626if test $ac_cv_type_uint64_t = yes; then
20627
20628cat >>confdefs.h <<_ACEOF
20629#define HAVE_UINT64_T 1
20630_ACEOF
20631
20632
20633else
20634 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20635echo "$as_me: error: Type uint64_t required but not found" >&2;}
20636 { (exit 1); exit 1; }; }
20637fi
20638
20639echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20640echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20641if test "${ac_cv_header_time+set}" = set; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20643else
20644 cat >conftest.$ac_ext <<_ACEOF
20645#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020646/* confdefs.h. */
20647_ACEOF
20648cat confdefs.h >>conftest.$ac_ext
20649cat >>conftest.$ac_ext <<_ACEOF
20650/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020651#include <sys/types.h>
20652#include <sys/time.h>
20653#include <time.h>
20654
John Criswell7a73b802003-06-30 21:59:07 +000020655int
20656main ()
20657{
20658if ((struct tm *) 0)
20659return 0;
20660 ;
20661 return 0;
20662}
20663_ACEOF
20664rm -f conftest.$ac_objext
20665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20666 (eval $ac_compile) 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } &&
20670 { ac_try='test -s conftest.$ac_objext'
20671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672 (eval $ac_try) 2>&5
20673 ac_status=$?
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; }; then
20676 ac_cv_header_time=yes
20677else
20678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020679sed 's/^/| /' conftest.$ac_ext >&5
20680
John Criswell7a73b802003-06-30 21:59:07 +000020681ac_cv_header_time=no
20682fi
20683rm -f conftest.$ac_objext conftest.$ac_ext
20684fi
20685echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20686echo "${ECHO_T}$ac_cv_header_time" >&6
20687if test $ac_cv_header_time = yes; then
20688
20689cat >>confdefs.h <<\_ACEOF
20690#define TIME_WITH_SYS_TIME 1
20691_ACEOF
20692
20693fi
20694
20695echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20696echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20697if test "${ac_cv_struct_tm+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20699else
20700 cat >conftest.$ac_ext <<_ACEOF
20701#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020702/* confdefs.h. */
20703_ACEOF
20704cat confdefs.h >>conftest.$ac_ext
20705cat >>conftest.$ac_ext <<_ACEOF
20706/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020707#include <sys/types.h>
20708#include <time.h>
20709
John Criswell7a73b802003-06-30 21:59:07 +000020710int
20711main ()
20712{
20713struct tm *tp; tp->tm_sec;
20714 ;
20715 return 0;
20716}
20717_ACEOF
20718rm -f conftest.$ac_objext
20719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20720 (eval $ac_compile) 2>&5
20721 ac_status=$?
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } &&
20724 { ac_try='test -s conftest.$ac_objext'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; }; then
20730 ac_cv_struct_tm=time.h
20731else
20732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020733sed 's/^/| /' conftest.$ac_ext >&5
20734
John Criswell7a73b802003-06-30 21:59:07 +000020735ac_cv_struct_tm=sys/time.h
20736fi
20737rm -f conftest.$ac_objext conftest.$ac_ext
20738fi
20739echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20740echo "${ECHO_T}$ac_cv_struct_tm" >&6
20741if test $ac_cv_struct_tm = sys/time.h; then
20742
20743cat >>confdefs.h <<\_ACEOF
20744#define TM_IN_SYS_TIME 1
20745_ACEOF
20746
20747fi
20748
20749
John Criswella0137d32003-10-13 16:22:01 +000020750
20751
20752
20753 ac_ext=c
20754ac_cpp='$CPP $CPPFLAGS'
20755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757ac_compiler_gnu=$ac_cv_c_compiler_gnu
20758
20759 if test "$cross_compiling" = yes; then
20760 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20761See \`config.log' for more details." >&5
20762echo "$as_me: error: cannot run test program while cross compiling
20763See \`config.log' for more details." >&2;}
20764 { (exit 1); exit 1; }; }
20765else
20766 cat >conftest.$ac_ext <<_ACEOF
20767#line $LINENO "configure"
20768/* confdefs.h. */
20769_ACEOF
20770cat confdefs.h >>conftest.$ac_ext
20771cat >>conftest.$ac_ext <<_ACEOF
20772/* end confdefs.h. */
20773#include <stdio.h>
20774 #include <stdlib.h>
20775int
20776main ()
20777{
20778
20779 volatile double A, B;
20780 char Buffer[100];
20781 A = 1;
20782 A /= 10.0;
20783 sprintf(Buffer, "%a", A);
20784 B = atof(Buffer);
20785 if (A != B)
20786 return (1);
20787 if (A != 0x1.999999999999ap-4)
20788 return (1);
20789 return (0);
20790 ;
20791 return 0;
20792}
20793_ACEOF
20794rm -f conftest$ac_exeext
20795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20796 (eval $ac_link) 2>&5
20797 ac_status=$?
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20802 ac_status=$?
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; }; then
20805 ac_c_printf_a=yes
20806else
20807 echo "$as_me: program exited with status $ac_status" >&5
20808echo "$as_me: failed program was:" >&5
20809sed 's/^/| /' conftest.$ac_ext >&5
20810
20811( exit $ac_status )
20812ac_c_printf_a=no
20813fi
20814rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20815fi
20816 ac_ext=c
20817ac_cpp='$CPP $CPPFLAGS'
20818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20820ac_compiler_gnu=$ac_cv_c_compiler_gnu
20821
20822 if test "$ac_c_printf_a" = "yes"; then
20823
20824cat >>confdefs.h <<\_ACEOF
20825#define HAVE_PRINTF_A 1
20826_ACEOF
20827
20828 fi
20829
20830
John Criswell7a73b802003-06-30 21:59:07 +000020831echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20832echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20833if test "${ac_cv_cxx_namespaces+set}" = set; then
20834 echo $ECHO_N "(cached) $ECHO_C" >&6
20835else
20836
20837
20838 ac_ext=cc
20839ac_cpp='$CXXCPP $CPPFLAGS'
20840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20843
20844 cat >conftest.$ac_ext <<_ACEOF
20845#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020846/* confdefs.h. */
20847_ACEOF
20848cat confdefs.h >>conftest.$ac_ext
20849cat >>conftest.$ac_ext <<_ACEOF
20850/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020851namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020852int
20853main ()
20854{
20855using namespace Outer::Inner; return i;
20856 ;
20857 return 0;
20858}
20859_ACEOF
20860rm -f conftest.$ac_objext
20861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20862 (eval $ac_compile) 2>&5
20863 ac_status=$?
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); } &&
20866 { ac_try='test -s conftest.$ac_objext'
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20869 ac_status=$?
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; }; then
20872 ac_cv_cxx_namespaces=yes
20873else
20874 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020875sed 's/^/| /' conftest.$ac_ext >&5
20876
John Criswell7a73b802003-06-30 21:59:07 +000020877ac_cv_cxx_namespaces=no
20878fi
20879rm -f conftest.$ac_objext conftest.$ac_ext
20880 ac_ext=c
20881ac_cpp='$CPP $CPPFLAGS'
20882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20884ac_compiler_gnu=$ac_cv_c_compiler_gnu
20885
20886
20887fi
20888echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20889echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20890if test "$ac_cv_cxx_namespaces" = yes; then
20891
20892cat >>confdefs.h <<\_ACEOF
20893#define HAVE_NAMESPACES
20894_ACEOF
20895
20896fi
20897
Brian Gaeke90583492003-11-10 03:06:28 +000020898echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20899echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20900if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020901 echo $ECHO_N "(cached) $ECHO_C" >&6
20902else
20903
20904
20905
20906 ac_ext=cc
20907ac_cpp='$CXXCPP $CPPFLAGS'
20908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20911
20912 cat >conftest.$ac_ext <<_ACEOF
20913#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020914/* confdefs.h. */
20915_ACEOF
20916cat confdefs.h >>conftest.$ac_ext
20917cat >>conftest.$ac_ext <<_ACEOF
20918/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020919#include <ext/hash_map>
20920#ifdef HAVE_NAMESPACES
20921using namespace std;
20922#endif
John Criswell7a73b802003-06-30 21:59:07 +000020923int
20924main ()
20925{
Brian Gaeke90583492003-11-10 03:06:28 +000020926hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020927 ;
20928 return 0;
20929}
20930_ACEOF
20931rm -f conftest.$ac_objext
20932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20933 (eval $ac_compile) 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
20937 { ac_try='test -s conftest.$ac_objext'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020943 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000020944else
20945 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020946sed 's/^/| /' conftest.$ac_ext >&5
20947
Brian Gaeke90583492003-11-10 03:06:28 +000020948ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020949fi
20950rm -f conftest.$ac_objext conftest.$ac_ext
20951 ac_ext=c
20952ac_cpp='$CPP $CPPFLAGS'
20953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20955ac_compiler_gnu=$ac_cv_c_compiler_gnu
20956
John Criswell7a73b802003-06-30 21:59:07 +000020957fi
Brian Gaeke90583492003-11-10 03:06:28 +000020958echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20959echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20960 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020961
20962cat >>confdefs.h <<\_ACEOF
20963#define HAVE_STD_EXT_HASH_MAP
20964_ACEOF
20965
Brian Gaeke90583492003-11-10 03:06:28 +000020966 fi
20967 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20968echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20969if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20970 echo $ECHO_N "(cached) $ECHO_C" >&6
20971else
20972
20973
20974
20975 ac_ext=cc
20976ac_cpp='$CXXCPP $CPPFLAGS'
20977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20980
20981 cat >conftest.$ac_ext <<_ACEOF
20982#line $LINENO "configure"
20983/* confdefs.h. */
20984_ACEOF
20985cat confdefs.h >>conftest.$ac_ext
20986cat >>conftest.$ac_ext <<_ACEOF
20987/* end confdefs.h. */
20988#include <ext/hash_map>
20989#ifdef HAVE_NAMESPACES
20990using namespace __gnu_cxx;
20991#endif
20992int
20993main ()
20994{
20995hash_map<int,int> t;
20996 ;
20997 return 0;
20998}
20999_ACEOF
21000rm -f conftest.$ac_objext
21001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21002 (eval $ac_compile) 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } &&
21006 { ac_try='test -s conftest.$ac_objext'
21007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008 (eval $ac_try) 2>&5
21009 ac_status=$?
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); }; }; then
21012 ac_cv_cxx_have_gnu_ext_hash_map=yes
21013else
21014 echo "$as_me: failed program was:" >&5
21015sed 's/^/| /' conftest.$ac_ext >&5
21016
21017ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021018fi
Brian Gaeke90583492003-11-10 03:06:28 +000021019rm -f conftest.$ac_objext conftest.$ac_ext
21020 ac_ext=c
21021ac_cpp='$CPP $CPPFLAGS'
21022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21024ac_compiler_gnu=$ac_cv_c_compiler_gnu
21025
21026fi
21027echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21028echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21029 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021030
21031cat >>confdefs.h <<\_ACEOF
21032#define HAVE_GNU_EXT_HASH_MAP
21033_ACEOF
21034
Brian Gaeke90583492003-11-10 03:06:28 +000021035 fi
21036 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21037echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21038if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21040else
John Criswell7a73b802003-06-30 21:59:07 +000021041
Brian Gaeke90583492003-11-10 03:06:28 +000021042
21043
21044 ac_ext=cc
21045ac_cpp='$CXXCPP $CPPFLAGS'
21046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21049
21050 cat >conftest.$ac_ext <<_ACEOF
21051#line $LINENO "configure"
21052/* confdefs.h. */
21053_ACEOF
21054cat confdefs.h >>conftest.$ac_ext
21055cat >>conftest.$ac_ext <<_ACEOF
21056/* end confdefs.h. */
21057#include <hash_map>
21058int
21059main ()
21060{
21061hash_map<int,int> t;
21062 ;
21063 return 0;
21064}
21065_ACEOF
21066rm -f conftest.$ac_objext
21067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21068 (eval $ac_compile) 2>&5
21069 ac_status=$?
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } &&
21072 { ac_try='test -s conftest.$ac_objext'
21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21075 ac_status=$?
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; }; then
21078 ac_cv_cxx_have_global_hash_map=yes
21079else
21080 echo "$as_me: failed program was:" >&5
21081sed 's/^/| /' conftest.$ac_ext >&5
21082
21083ac_cv_cxx_have_global_hash_map=no
21084fi
21085rm -f conftest.$ac_objext conftest.$ac_ext
21086 ac_ext=c
21087ac_cpp='$CPP $CPPFLAGS'
21088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21090ac_compiler_gnu=$ac_cv_c_compiler_gnu
21091
21092fi
21093echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21094echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21095 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
21096
21097cat >>confdefs.h <<\_ACEOF
21098#define HAVE_GLOBAL_HASH_MAP
21099_ACEOF
21100
21101 fi
21102echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21103echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21104if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021105 echo $ECHO_N "(cached) $ECHO_C" >&6
21106else
21107
21108
21109
21110 ac_ext=cc
21111ac_cpp='$CXXCPP $CPPFLAGS'
21112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21115
21116 cat >conftest.$ac_ext <<_ACEOF
21117#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021118/* confdefs.h. */
21119_ACEOF
21120cat confdefs.h >>conftest.$ac_ext
21121cat >>conftest.$ac_ext <<_ACEOF
21122/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021123#include <ext/hash_set>
21124#ifdef HAVE_NAMESPACES
21125using namespace std;
21126#endif
John Criswell7a73b802003-06-30 21:59:07 +000021127int
21128main ()
21129{
Brian Gaeke90583492003-11-10 03:06:28 +000021130hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021131 ;
21132 return 0;
21133}
21134_ACEOF
21135rm -f conftest.$ac_objext
21136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21137 (eval $ac_compile) 2>&5
21138 ac_status=$?
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } &&
21141 { ac_try='test -s conftest.$ac_objext'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021147 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021148else
21149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021150sed 's/^/| /' conftest.$ac_ext >&5
21151
Brian Gaeke90583492003-11-10 03:06:28 +000021152ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021153fi
21154rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021155 ac_ext=c
21156ac_cpp='$CPP $CPPFLAGS'
21157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159ac_compiler_gnu=$ac_cv_c_compiler_gnu
21160
21161fi
21162echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21163echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21164 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
21165
21166cat >>confdefs.h <<\_ACEOF
21167#define HAVE_STD_EXT_HASH_SET
21168_ACEOF
21169
21170 fi
21171 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21172echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21173if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21175else
21176
21177
21178
21179 ac_ext=cc
21180ac_cpp='$CXXCPP $CPPFLAGS'
21181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21184
John Criswell7a73b802003-06-30 21:59:07 +000021185 cat >conftest.$ac_ext <<_ACEOF
21186#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021187/* confdefs.h. */
21188_ACEOF
21189cat confdefs.h >>conftest.$ac_ext
21190cat >>conftest.$ac_ext <<_ACEOF
21191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021192#include <ext/hash_set>
21193#ifdef HAVE_NAMESPACES
21194using namespace __gnu_cxx;
21195#endif
John Criswell7a73b802003-06-30 21:59:07 +000021196int
21197main ()
21198{
Brian Gaeke90583492003-11-10 03:06:28 +000021199hash_set<int> t;
21200 ;
21201 return 0;
21202}
21203_ACEOF
21204rm -f conftest.$ac_objext
21205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21206 (eval $ac_compile) 2>&5
21207 ac_status=$?
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } &&
21210 { ac_try='test -s conftest.$ac_objext'
21211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21212 (eval $ac_try) 2>&5
21213 ac_status=$?
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); }; }; then
21216 ac_cv_cxx_have_gnu_ext_hash_set=yes
21217else
21218 echo "$as_me: failed program was:" >&5
21219sed 's/^/| /' conftest.$ac_ext >&5
21220
21221ac_cv_cxx_have_gnu_ext_hash_set=no
21222fi
21223rm -f conftest.$ac_objext conftest.$ac_ext
21224 ac_ext=c
21225ac_cpp='$CPP $CPPFLAGS'
21226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21228ac_compiler_gnu=$ac_cv_c_compiler_gnu
21229
21230fi
21231echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21232echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21233 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
21234
21235cat >>confdefs.h <<\_ACEOF
21236#define HAVE_GNU_EXT_HASH_SET
21237_ACEOF
21238
21239 fi
21240 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21241echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21242if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21244else
21245
21246
21247
21248 ac_ext=cc
21249ac_cpp='$CXXCPP $CPPFLAGS'
21250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21253
21254 cat >conftest.$ac_ext <<_ACEOF
21255#line $LINENO "configure"
21256/* confdefs.h. */
21257_ACEOF
21258cat confdefs.h >>conftest.$ac_ext
21259cat >>conftest.$ac_ext <<_ACEOF
21260/* end confdefs.h. */
21261#include <hash_set>
21262int
21263main ()
21264{
John Criswell7a73b802003-06-30 21:59:07 +000021265hash_set<int> t; return 0;
21266 ;
21267 return 0;
21268}
21269_ACEOF
21270rm -f conftest.$ac_objext
21271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21272 (eval $ac_compile) 2>&5
21273 ac_status=$?
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } &&
21276 { ac_try='test -s conftest.$ac_objext'
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21279 ac_status=$?
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021282 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021283else
21284 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021285sed 's/^/| /' conftest.$ac_ext >&5
21286
Brian Gaeke90583492003-11-10 03:06:28 +000021287ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021288fi
21289rm -f conftest.$ac_objext conftest.$ac_ext
21290 ac_ext=c
21291ac_cpp='$CPP $CPPFLAGS'
21292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21294ac_compiler_gnu=$ac_cv_c_compiler_gnu
21295
John Criswell7a73b802003-06-30 21:59:07 +000021296fi
Brian Gaeke90583492003-11-10 03:06:28 +000021297echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21298echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21299 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021300
21301cat >>confdefs.h <<\_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021302#define HAVE_GLOBAL_HASH_SET
John Criswell7a73b802003-06-30 21:59:07 +000021303_ACEOF
21304
Brian Gaeke90583492003-11-10 03:06:28 +000021305 fi
John Criswell7a73b802003-06-30 21:59:07 +000021306echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21307echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21308if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21309 echo $ECHO_N "(cached) $ECHO_C" >&6
21310else
21311
21312
21313
21314 ac_ext=cc
21315ac_cpp='$CXXCPP $CPPFLAGS'
21316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21319
21320 cat >conftest.$ac_ext <<_ACEOF
21321#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021322/* confdefs.h. */
21323_ACEOF
21324cat confdefs.h >>conftest.$ac_ext
21325cat >>conftest.$ac_ext <<_ACEOF
21326/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021327#include <ext/slist>
21328#ifdef HAVE_NAMESPACES
21329using namespace std;
21330#endif
John Criswell7a73b802003-06-30 21:59:07 +000021331int
21332main ()
21333{
21334slist<int> s; return 0;
21335 ;
21336 return 0;
21337}
21338_ACEOF
21339rm -f conftest.$ac_objext
21340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21341 (eval $ac_compile) 2>&5
21342 ac_status=$?
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); } &&
21345 { ac_try='test -s conftest.$ac_objext'
21346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347 (eval $ac_try) 2>&5
21348 ac_status=$?
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; }; then
21351 ac_cv_cxx_have_ext_slist=std
21352else
21353 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021354sed 's/^/| /' conftest.$ac_ext >&5
21355
John Criswell7a73b802003-06-30 21:59:07 +000021356ac_cv_cxx_have_ext_slist=no
21357fi
21358rm -f conftest.$ac_objext conftest.$ac_ext
21359 cat >conftest.$ac_ext <<_ACEOF
21360#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021361/* confdefs.h. */
21362_ACEOF
21363cat confdefs.h >>conftest.$ac_ext
21364cat >>conftest.$ac_ext <<_ACEOF
21365/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021366#include <ext/slist>
21367#ifdef HAVE_NAMESPACES
21368using namespace __gnu_cxx;
21369#endif
John Criswell7a73b802003-06-30 21:59:07 +000021370int
21371main ()
21372{
21373slist<int> s; return 0;
21374 ;
21375 return 0;
21376}
21377_ACEOF
21378rm -f conftest.$ac_objext
21379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21380 (eval $ac_compile) 2>&5
21381 ac_status=$?
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } &&
21384 { ac_try='test -s conftest.$ac_objext'
21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386 (eval $ac_try) 2>&5
21387 ac_status=$?
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; }; then
21390 ac_cv_cxx_have_ext_slist=gnu
21391else
21392 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021393sed 's/^/| /' conftest.$ac_ext >&5
21394
John Criswell7a73b802003-06-30 21:59:07 +000021395ac_cv_cxx_have_ext_slist=no
21396fi
21397rm -f conftest.$ac_objext conftest.$ac_ext
21398
21399 ac_ext=c
21400ac_cpp='$CPP $CPPFLAGS'
21401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21403ac_compiler_gnu=$ac_cv_c_compiler_gnu
21404
21405
21406fi
21407echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21408echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21409if test "$ac_cv_cxx_have_ext_slist" = std; then
21410
21411cat >>confdefs.h <<\_ACEOF
21412#define HAVE_EXT_SLIST std
21413_ACEOF
21414
21415fi
21416if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21417
21418cat >>confdefs.h <<\_ACEOF
21419#define HAVE_EXT_SLIST gnu
21420_ACEOF
21421
21422fi
21423
21424echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21425echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21426if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428else
21429
21430
21431
21432 ac_ext=cc
21433ac_cpp='$CXXCPP $CPPFLAGS'
21434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21437
21438 cat >conftest.$ac_ext <<_ACEOF
21439#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021440/* confdefs.h. */
21441_ACEOF
21442cat confdefs.h >>conftest.$ac_ext
21443cat >>conftest.$ac_ext <<_ACEOF
21444/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021445#include <iterator>
21446#ifdef HAVE_NAMESPACES
21447using namespace std;
21448#endif
John Criswell7a73b802003-06-30 21:59:07 +000021449int
21450main ()
21451{
21452iterator<int,int,int> t; return 0;
21453 ;
21454 return 0;
21455}
21456_ACEOF
21457rm -f conftest.$ac_objext
21458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21459 (eval $ac_compile) 2>&5
21460 ac_status=$?
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
21463 { ac_try='test -s conftest.$ac_objext'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }; then
21469 ac_cv_cxx_have_std_iterator=yes
21470else
21471 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021472sed 's/^/| /' conftest.$ac_ext >&5
21473
John Criswell7a73b802003-06-30 21:59:07 +000021474ac_cv_cxx_have_std_iterator=no
21475fi
21476rm -f conftest.$ac_objext conftest.$ac_ext
21477 ac_ext=c
21478ac_cpp='$CPP $CPPFLAGS'
21479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21481ac_compiler_gnu=$ac_cv_c_compiler_gnu
21482
21483
21484fi
21485echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21486echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21487if test "$ac_cv_cxx_have_std_iterator" = yes; then
21488
21489cat >>confdefs.h <<\_ACEOF
21490#define HAVE_STD_ITERATOR
21491_ACEOF
21492
21493fi
21494
21495echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21496echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21497if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21498 echo $ECHO_N "(cached) $ECHO_C" >&6
21499else
21500
21501
21502
21503 ac_ext=cc
21504ac_cpp='$CXXCPP $CPPFLAGS'
21505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21508
21509 cat >conftest.$ac_ext <<_ACEOF
21510#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021511/* confdefs.h. */
21512_ACEOF
21513cat confdefs.h >>conftest.$ac_ext
21514cat >>conftest.$ac_ext <<_ACEOF
21515/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021516#include <iterator>
21517#ifdef HAVE_NAMESPACES
21518using namespace std;
21519#endif
John Criswell7a73b802003-06-30 21:59:07 +000021520int
21521main ()
21522{
John Criswellc78022e2003-07-29 19:11:58 +000021523bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021524 ;
21525 return 0;
21526}
21527_ACEOF
21528rm -f conftest.$ac_objext
21529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21530 (eval $ac_compile) 2>&5
21531 ac_status=$?
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } &&
21534 { ac_try='test -s conftest.$ac_objext'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; }; then
21540 ac_cv_cxx_have_bi_iterator=yes
21541else
21542 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021543sed 's/^/| /' conftest.$ac_ext >&5
21544
John Criswell7a73b802003-06-30 21:59:07 +000021545ac_cv_cxx_have_bi_iterator=no
21546fi
21547rm -f conftest.$ac_objext conftest.$ac_ext
21548 ac_ext=c
21549ac_cpp='$CPP $CPPFLAGS'
21550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21552ac_compiler_gnu=$ac_cv_c_compiler_gnu
21553
21554
21555fi
21556echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21557echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21558if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21559
21560cat >>confdefs.h <<\_ACEOF
21561#define HAVE_BI_ITERATOR
21562_ACEOF
21563
21564fi
21565
21566echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21567echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21568if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21570else
21571
21572
21573
21574 ac_ext=cc
21575ac_cpp='$CXXCPP $CPPFLAGS'
21576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21579
21580 cat >conftest.$ac_ext <<_ACEOF
21581#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021582/* confdefs.h. */
21583_ACEOF
21584cat confdefs.h >>conftest.$ac_ext
21585cat >>conftest.$ac_ext <<_ACEOF
21586/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021587#include <iterator>
21588#ifdef HAVE_NAMESPACES
21589using namespace std;
21590#endif
John Criswell7a73b802003-06-30 21:59:07 +000021591int
21592main ()
21593{
John Criswellc78022e2003-07-29 19:11:58 +000021594forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021595 ;
21596 return 0;
21597}
21598_ACEOF
21599rm -f conftest.$ac_objext
21600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21601 (eval $ac_compile) 2>&5
21602 ac_status=$?
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } &&
21605 { ac_try='test -s conftest.$ac_objext'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; }; then
21611 ac_cv_cxx_have_fwd_iterator=yes
21612else
21613 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021614sed 's/^/| /' conftest.$ac_ext >&5
21615
John Criswell7a73b802003-06-30 21:59:07 +000021616ac_cv_cxx_have_fwd_iterator=no
21617fi
21618rm -f conftest.$ac_objext conftest.$ac_ext
21619 ac_ext=c
21620ac_cpp='$CPP $CPPFLAGS'
21621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21623ac_compiler_gnu=$ac_cv_c_compiler_gnu
21624
21625
21626fi
21627echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21628echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21629if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21630
21631cat >>confdefs.h <<\_ACEOF
21632#define HAVE_FWD_ITERATOR
21633_ACEOF
21634
21635fi
21636
21637
21638# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21639# for constant arguments. Useless!
21640echo "$as_me:$LINENO: checking for working alloca.h" >&5
21641echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21642if test "${ac_cv_working_alloca_h+set}" = set; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21644else
21645 cat >conftest.$ac_ext <<_ACEOF
21646#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021647/* confdefs.h. */
21648_ACEOF
21649cat confdefs.h >>conftest.$ac_ext
21650cat >>conftest.$ac_ext <<_ACEOF
21651/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021652#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021653int
21654main ()
21655{
21656char *p = (char *) alloca (2 * sizeof (int));
21657 ;
21658 return 0;
21659}
21660_ACEOF
21661rm -f conftest.$ac_objext conftest$ac_exeext
21662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21663 (eval $ac_link) 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } &&
21667 { ac_try='test -s conftest$ac_exeext'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21670 ac_status=$?
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; }; then
21673 ac_cv_working_alloca_h=yes
21674else
21675 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021676sed 's/^/| /' conftest.$ac_ext >&5
21677
John Criswell7a73b802003-06-30 21:59:07 +000021678ac_cv_working_alloca_h=no
21679fi
21680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21681fi
21682echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21683echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21684if test $ac_cv_working_alloca_h = yes; then
21685
21686cat >>confdefs.h <<\_ACEOF
21687#define HAVE_ALLOCA_H 1
21688_ACEOF
21689
21690fi
21691
21692echo "$as_me:$LINENO: checking for alloca" >&5
21693echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21694if test "${ac_cv_func_alloca_works+set}" = set; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21696else
21697 cat >conftest.$ac_ext <<_ACEOF
21698#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021699/* confdefs.h. */
21700_ACEOF
21701cat confdefs.h >>conftest.$ac_ext
21702cat >>conftest.$ac_ext <<_ACEOF
21703/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021704#ifdef __GNUC__
21705# define alloca __builtin_alloca
21706#else
21707# ifdef _MSC_VER
21708# include <malloc.h>
21709# define alloca _alloca
21710# else
21711# if HAVE_ALLOCA_H
21712# include <alloca.h>
21713# else
21714# ifdef _AIX
21715 #pragma alloca
21716# else
21717# ifndef alloca /* predefined by HP cc +Olibcalls */
21718char *alloca ();
21719# endif
21720# endif
21721# endif
21722# endif
21723#endif
21724
John Criswell7a73b802003-06-30 21:59:07 +000021725int
21726main ()
21727{
21728char *p = (char *) alloca (1);
21729 ;
21730 return 0;
21731}
21732_ACEOF
21733rm -f conftest.$ac_objext conftest$ac_exeext
21734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21735 (eval $ac_link) 2>&5
21736 ac_status=$?
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } &&
21739 { ac_try='test -s conftest$ac_exeext'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21742 ac_status=$?
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; }; then
21745 ac_cv_func_alloca_works=yes
21746else
21747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021748sed 's/^/| /' conftest.$ac_ext >&5
21749
John Criswell7a73b802003-06-30 21:59:07 +000021750ac_cv_func_alloca_works=no
21751fi
21752rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21753fi
21754echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21755echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21756
21757if test $ac_cv_func_alloca_works = yes; then
21758
21759cat >>confdefs.h <<\_ACEOF
21760#define HAVE_ALLOCA 1
21761_ACEOF
21762
21763else
21764 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21765# that cause trouble. Some versions do not even contain alloca or
21766# contain a buggy version. If you still want to use their alloca,
21767# use ar to extract alloca.o from them instead of compiling alloca.c.
21768
21769ALLOCA=alloca.$ac_objext
21770
21771cat >>confdefs.h <<\_ACEOF
21772#define C_ALLOCA 1
21773_ACEOF
21774
21775
21776echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21777echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21778if test "${ac_cv_os_cray+set}" = set; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21780else
21781 cat >conftest.$ac_ext <<_ACEOF
21782#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021783/* confdefs.h. */
21784_ACEOF
21785cat confdefs.h >>conftest.$ac_ext
21786cat >>conftest.$ac_ext <<_ACEOF
21787/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021788#if defined(CRAY) && ! defined(CRAY2)
21789webecray
21790#else
21791wenotbecray
21792#endif
21793
21794_ACEOF
21795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021796 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021797 ac_cv_os_cray=yes
21798else
21799 ac_cv_os_cray=no
21800fi
21801rm -f conftest*
21802
21803fi
21804echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21805echo "${ECHO_T}$ac_cv_os_cray" >&6
21806if test $ac_cv_os_cray = yes; then
21807 for ac_func in _getb67 GETB67 getb67; do
21808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21809echo "$as_me:$LINENO: checking for $ac_func" >&5
21810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21811if eval "test \"\${$as_ac_var+set}\" = set"; then
21812 echo $ECHO_N "(cached) $ECHO_C" >&6
21813else
21814 cat >conftest.$ac_ext <<_ACEOF
21815#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021816/* confdefs.h. */
21817_ACEOF
21818cat confdefs.h >>conftest.$ac_ext
21819cat >>conftest.$ac_ext <<_ACEOF
21820/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021821/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021822 which can conflict with char $ac_func (); below.
21823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21824 <limits.h> exists even on freestanding compilers. */
21825#ifdef __STDC__
21826# include <limits.h>
21827#else
21828# include <assert.h>
21829#endif
John Criswell7a73b802003-06-30 21:59:07 +000021830/* Override any gcc2 internal prototype to avoid an error. */
21831#ifdef __cplusplus
21832extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021833{
John Criswell7a73b802003-06-30 21:59:07 +000021834#endif
21835/* We use char because int might match the return type of a gcc2
21836 builtin and then its argument prototype would still apply. */
21837char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021838/* The GNU C library defines this for functions which it implements
21839 to always fail with ENOSYS. Some functions are actually named
21840 something starting with __ and the normal name is an alias. */
21841#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21842choke me
21843#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021844char (*f) () = $ac_func;
21845#endif
21846#ifdef __cplusplus
21847}
John Criswell7a73b802003-06-30 21:59:07 +000021848#endif
21849
John Criswell0c38eaf2003-09-10 15:17:25 +000021850int
21851main ()
21852{
21853return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021854 ;
21855 return 0;
21856}
21857_ACEOF
21858rm -f conftest.$ac_objext conftest$ac_exeext
21859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21860 (eval $ac_link) 2>&5
21861 ac_status=$?
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } &&
21864 { ac_try='test -s conftest$ac_exeext'
21865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21866 (eval $ac_try) 2>&5
21867 ac_status=$?
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); }; }; then
21870 eval "$as_ac_var=yes"
21871else
21872 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021873sed 's/^/| /' conftest.$ac_ext >&5
21874
John Criswell7a73b802003-06-30 21:59:07 +000021875eval "$as_ac_var=no"
21876fi
21877rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21878fi
21879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21880echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21881if test `eval echo '${'$as_ac_var'}'` = yes; then
21882
21883cat >>confdefs.h <<_ACEOF
21884#define CRAY_STACKSEG_END $ac_func
21885_ACEOF
21886
21887 break
21888fi
21889
21890 done
21891fi
21892
21893echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21894echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21895if test "${ac_cv_c_stack_direction+set}" = set; then
21896 echo $ECHO_N "(cached) $ECHO_C" >&6
21897else
21898 if test "$cross_compiling" = yes; then
21899 ac_cv_c_stack_direction=0
21900else
21901 cat >conftest.$ac_ext <<_ACEOF
21902#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021903/* confdefs.h. */
21904_ACEOF
21905cat confdefs.h >>conftest.$ac_ext
21906cat >>conftest.$ac_ext <<_ACEOF
21907/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021908int
21909find_stack_direction ()
21910{
21911 static char *addr = 0;
21912 auto char dummy;
21913 if (addr == 0)
21914 {
21915 addr = &dummy;
21916 return find_stack_direction ();
21917 }
21918 else
21919 return (&dummy > addr) ? 1 : -1;
21920}
21921
21922int
21923main ()
21924{
21925 exit (find_stack_direction () < 0);
21926}
21927_ACEOF
21928rm -f conftest$ac_exeext
21929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21930 (eval $ac_link) 2>&5
21931 ac_status=$?
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935 (eval $ac_try) 2>&5
21936 ac_status=$?
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); }; }; then
21939 ac_cv_c_stack_direction=1
21940else
21941 echo "$as_me: program exited with status $ac_status" >&5
21942echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021943sed 's/^/| /' conftest.$ac_ext >&5
21944
John Criswell7a73b802003-06-30 21:59:07 +000021945( exit $ac_status )
21946ac_cv_c_stack_direction=-1
21947fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021948rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021949fi
21950fi
21951echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21952echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21953
21954cat >>confdefs.h <<_ACEOF
21955#define STACK_DIRECTION $ac_cv_c_stack_direction
21956_ACEOF
21957
21958
21959fi
21960
21961if test $ac_cv_c_compiler_gnu = yes; then
21962 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21963echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21964if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21965 echo $ECHO_N "(cached) $ECHO_C" >&6
21966else
21967 ac_pattern="Autoconf.*'x'"
21968 cat >conftest.$ac_ext <<_ACEOF
21969#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021970/* confdefs.h. */
21971_ACEOF
21972cat confdefs.h >>conftest.$ac_ext
21973cat >>conftest.$ac_ext <<_ACEOF
21974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021975#include <sgtty.h>
21976Autoconf TIOCGETP
21977_ACEOF
21978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021979 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021980 ac_cv_prog_gcc_traditional=yes
21981else
21982 ac_cv_prog_gcc_traditional=no
21983fi
21984rm -f conftest*
21985
21986
21987 if test $ac_cv_prog_gcc_traditional = no; then
21988 cat >conftest.$ac_ext <<_ACEOF
21989#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021990/* confdefs.h. */
21991_ACEOF
21992cat confdefs.h >>conftest.$ac_ext
21993cat >>conftest.$ac_ext <<_ACEOF
21994/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021995#include <termio.h>
21996Autoconf TCGETA
21997_ACEOF
21998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021999 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022000 ac_cv_prog_gcc_traditional=yes
22001fi
22002rm -f conftest*
22003
22004 fi
22005fi
22006echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22007echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
22008 if test $ac_cv_prog_gcc_traditional = yes; then
22009 CC="$CC -traditional"
22010 fi
22011fi
22012
22013echo "$as_me:$LINENO: checking for working memcmp" >&5
22014echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22015if test "${ac_cv_func_memcmp_working+set}" = set; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22017else
22018 if test "$cross_compiling" = yes; then
22019 ac_cv_func_memcmp_working=no
22020else
22021 cat >conftest.$ac_ext <<_ACEOF
22022#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022023/* confdefs.h. */
22024_ACEOF
22025cat confdefs.h >>conftest.$ac_ext
22026cat >>conftest.$ac_ext <<_ACEOF
22027/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022028
John Criswell7a73b802003-06-30 21:59:07 +000022029int
22030main ()
22031{
22032
22033 /* Some versions of memcmp are not 8-bit clean. */
22034 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22035 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22036 exit (1);
22037
22038 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22039 or more and with at least one buffer not starting on a 4-byte boundary.
22040 William Lewis provided this test program. */
22041 {
22042 char foo[21];
22043 char bar[21];
22044 int i;
22045 for (i = 0; i < 4; i++)
22046 {
22047 char *a = foo + i;
22048 char *b = bar + i;
22049 strcpy (a, "--------01111111");
22050 strcpy (b, "--------10000000");
22051 if (memcmp (a, b, 16) >= 0)
22052 exit (1);
22053 }
22054 exit (0);
22055 }
22056
22057 ;
22058 return 0;
22059}
22060_ACEOF
22061rm -f 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); } && { ac_try='./conftest$ac_exeext'
22067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068 (eval $ac_try) 2>&5
22069 ac_status=$?
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); }; }; then
22072 ac_cv_func_memcmp_working=yes
22073else
22074 echo "$as_me: program exited with status $ac_status" >&5
22075echo "$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 +000022078( exit $ac_status )
22079ac_cv_func_memcmp_working=no
22080fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022081rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022082fi
22083fi
22084echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22085echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22086test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22087
22088
22089
22090for ac_header in stdlib.h unistd.h
22091do
22092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22093if eval "test \"\${$as_ac_Header+set}\" = set"; then
22094 echo "$as_me:$LINENO: checking for $ac_header" >&5
22095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22096if eval "test \"\${$as_ac_Header+set}\" = set"; then
22097 echo $ECHO_N "(cached) $ECHO_C" >&6
22098fi
22099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22101else
22102 # Is the header compilable?
22103echo "$as_me:$LINENO: checking $ac_header usability" >&5
22104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22105cat >conftest.$ac_ext <<_ACEOF
22106#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022107/* confdefs.h. */
22108_ACEOF
22109cat confdefs.h >>conftest.$ac_ext
22110cat >>conftest.$ac_ext <<_ACEOF
22111/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022112$ac_includes_default
22113#include <$ac_header>
22114_ACEOF
22115rm -f conftest.$ac_objext
22116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22117 (eval $ac_compile) 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); } &&
22121 { ac_try='test -s conftest.$ac_objext'
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 ac_header_compiler=yes
22128else
22129 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022130sed 's/^/| /' conftest.$ac_ext >&5
22131
John Criswell7a73b802003-06-30 21:59:07 +000022132ac_header_compiler=no
22133fi
22134rm -f conftest.$ac_objext conftest.$ac_ext
22135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22136echo "${ECHO_T}$ac_header_compiler" >&6
22137
22138# Is the header present?
22139echo "$as_me:$LINENO: checking $ac_header presence" >&5
22140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22141cat >conftest.$ac_ext <<_ACEOF
22142#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022143/* confdefs.h. */
22144_ACEOF
22145cat confdefs.h >>conftest.$ac_ext
22146cat >>conftest.$ac_ext <<_ACEOF
22147/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022148#include <$ac_header>
22149_ACEOF
22150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22152 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000022153 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000022154 rm -f conftest.er1
22155 cat conftest.err >&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } >/dev/null; then
22158 if test -s conftest.err; then
22159 ac_cpp_err=$ac_c_preproc_warn_flag
22160 else
22161 ac_cpp_err=
22162 fi
22163else
22164 ac_cpp_err=yes
22165fi
22166if test -z "$ac_cpp_err"; then
22167 ac_header_preproc=yes
22168else
22169 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022170sed 's/^/| /' conftest.$ac_ext >&5
22171
John Criswell7a73b802003-06-30 21:59:07 +000022172 ac_header_preproc=no
22173fi
22174rm -f conftest.err conftest.$ac_ext
22175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22176echo "${ECHO_T}$ac_header_preproc" >&6
22177
22178# So? What about this header?
22179case $ac_header_compiler:$ac_header_preproc in
22180 yes:no )
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22185 (
22186 cat <<\_ASBOX
22187## ------------------------------------ ##
22188## Report this to bug-autoconf@gnu.org. ##
22189## ------------------------------------ ##
22190_ASBOX
22191 ) |
22192 sed "s/^/$as_me: WARNING: /" >&2
22193 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022194 no:yes )
22195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22198echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22201 (
22202 cat <<\_ASBOX
22203## ------------------------------------ ##
22204## Report this to bug-autoconf@gnu.org. ##
22205## ------------------------------------ ##
22206_ASBOX
22207 ) |
22208 sed "s/^/$as_me: WARNING: /" >&2
22209 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022210esac
22211echo "$as_me:$LINENO: checking for $ac_header" >&5
22212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22213if eval "test \"\${$as_ac_Header+set}\" = set"; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
22215else
22216 eval "$as_ac_Header=$ac_header_preproc"
22217fi
22218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22220
22221fi
22222if test `eval echo '${'$as_ac_Header'}'` = yes; then
22223 cat >>confdefs.h <<_ACEOF
22224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22225_ACEOF
22226
22227fi
22228
22229done
22230
22231
22232for ac_func in getpagesize
22233do
22234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22235echo "$as_me:$LINENO: checking for $ac_func" >&5
22236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22237if eval "test \"\${$as_ac_var+set}\" = set"; then
22238 echo $ECHO_N "(cached) $ECHO_C" >&6
22239else
22240 cat >conftest.$ac_ext <<_ACEOF
22241#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022242/* confdefs.h. */
22243_ACEOF
22244cat confdefs.h >>conftest.$ac_ext
22245cat >>conftest.$ac_ext <<_ACEOF
22246/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022247/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022248 which can conflict with char $ac_func (); below.
22249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22250 <limits.h> exists even on freestanding compilers. */
22251#ifdef __STDC__
22252# include <limits.h>
22253#else
22254# include <assert.h>
22255#endif
John Criswell7a73b802003-06-30 21:59:07 +000022256/* Override any gcc2 internal prototype to avoid an error. */
22257#ifdef __cplusplus
22258extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022259{
John Criswell7a73b802003-06-30 21:59:07 +000022260#endif
22261/* We use char because int might match the return type of a gcc2
22262 builtin and then its argument prototype would still apply. */
22263char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022264/* The GNU C library defines this for functions which it implements
22265 to always fail with ENOSYS. Some functions are actually named
22266 something starting with __ and the normal name is an alias. */
22267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22268choke me
22269#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022270char (*f) () = $ac_func;
22271#endif
22272#ifdef __cplusplus
22273}
John Criswell7a73b802003-06-30 21:59:07 +000022274#endif
22275
John Criswell0c38eaf2003-09-10 15:17:25 +000022276int
22277main ()
22278{
22279return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022280 ;
22281 return 0;
22282}
22283_ACEOF
22284rm -f conftest.$ac_objext conftest$ac_exeext
22285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22286 (eval $ac_link) 2>&5
22287 ac_status=$?
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } &&
22290 { ac_try='test -s conftest$ac_exeext'
22291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292 (eval $ac_try) 2>&5
22293 ac_status=$?
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; }; then
22296 eval "$as_ac_var=yes"
22297else
22298 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022299sed 's/^/| /' conftest.$ac_ext >&5
22300
John Criswell7a73b802003-06-30 21:59:07 +000022301eval "$as_ac_var=no"
22302fi
22303rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22304fi
22305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22306echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22307if test `eval echo '${'$as_ac_var'}'` = yes; then
22308 cat >>confdefs.h <<_ACEOF
22309#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22310_ACEOF
22311
22312fi
22313done
22314
22315echo "$as_me:$LINENO: checking for working mmap" >&5
22316echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22317if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22318 echo $ECHO_N "(cached) $ECHO_C" >&6
22319else
22320 if test "$cross_compiling" = yes; then
22321 ac_cv_func_mmap_fixed_mapped=no
22322else
22323 cat >conftest.$ac_ext <<_ACEOF
22324#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022325/* confdefs.h. */
22326_ACEOF
22327cat confdefs.h >>conftest.$ac_ext
22328cat >>conftest.$ac_ext <<_ACEOF
22329/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022330$ac_includes_default
22331/* malloc might have been renamed as rpl_malloc. */
22332#undef malloc
22333
22334/* Thanks to Mike Haertel and Jim Avera for this test.
22335 Here is a matrix of mmap possibilities:
22336 mmap private not fixed
22337 mmap private fixed at somewhere currently unmapped
22338 mmap private fixed at somewhere already mapped
22339 mmap shared not fixed
22340 mmap shared fixed at somewhere currently unmapped
22341 mmap shared fixed at somewhere already mapped
22342 For private mappings, we should verify that changes cannot be read()
22343 back from the file, nor mmap's back from the file at a different
22344 address. (There have been systems where private was not correctly
22345 implemented like the infamous i386 svr4.0, and systems where the
22346 VM page cache was not coherent with the file system buffer cache
22347 like early versions of FreeBSD and possibly contemporary NetBSD.)
22348 For shared mappings, we should conversely verify that changes get
22349 propagated back to all the places they're supposed to be.
22350
22351 Grep wants private fixed already mapped.
22352 The main things grep needs to know about mmap are:
22353 * does it exist and is it safe to write into the mmap'd area
22354 * how to use it (BSD variants) */
22355
22356#include <fcntl.h>
22357#include <sys/mman.h>
22358
22359#if !STDC_HEADERS && !HAVE_STDLIB_H
22360char *malloc ();
22361#endif
22362
22363/* This mess was copied from the GNU getpagesize.h. */
22364#if !HAVE_GETPAGESIZE
22365/* Assume that all systems that can run configure have sys/param.h. */
22366# if !HAVE_SYS_PARAM_H
22367# define HAVE_SYS_PARAM_H 1
22368# endif
22369
22370# ifdef _SC_PAGESIZE
22371# define getpagesize() sysconf(_SC_PAGESIZE)
22372# else /* no _SC_PAGESIZE */
22373# if HAVE_SYS_PARAM_H
22374# include <sys/param.h>
22375# ifdef EXEC_PAGESIZE
22376# define getpagesize() EXEC_PAGESIZE
22377# else /* no EXEC_PAGESIZE */
22378# ifdef NBPG
22379# define getpagesize() NBPG * CLSIZE
22380# ifndef CLSIZE
22381# define CLSIZE 1
22382# endif /* no CLSIZE */
22383# else /* no NBPG */
22384# ifdef NBPC
22385# define getpagesize() NBPC
22386# else /* no NBPC */
22387# ifdef PAGESIZE
22388# define getpagesize() PAGESIZE
22389# endif /* PAGESIZE */
22390# endif /* no NBPC */
22391# endif /* no NBPG */
22392# endif /* no EXEC_PAGESIZE */
22393# else /* no HAVE_SYS_PARAM_H */
22394# define getpagesize() 8192 /* punt totally */
22395# endif /* no HAVE_SYS_PARAM_H */
22396# endif /* no _SC_PAGESIZE */
22397
22398#endif /* no HAVE_GETPAGESIZE */
22399
22400int
22401main ()
22402{
22403 char *data, *data2, *data3;
22404 int i, pagesize;
22405 int fd;
22406
22407 pagesize = getpagesize ();
22408
22409 /* First, make a file with some known garbage in it. */
22410 data = (char *) malloc (pagesize);
22411 if (!data)
22412 exit (1);
22413 for (i = 0; i < pagesize; ++i)
22414 *(data + i) = rand ();
22415 umask (0);
22416 fd = creat ("conftest.mmap", 0600);
22417 if (fd < 0)
22418 exit (1);
22419 if (write (fd, data, pagesize) != pagesize)
22420 exit (1);
22421 close (fd);
22422
22423 /* Next, try to mmap the file at a fixed address which already has
22424 something else allocated at it. If we can, also make sure that
22425 we see the same garbage. */
22426 fd = open ("conftest.mmap", O_RDWR);
22427 if (fd < 0)
22428 exit (1);
22429 data2 = (char *) malloc (2 * pagesize);
22430 if (!data2)
22431 exit (1);
22432 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22433 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22434 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22435 exit (1);
22436 for (i = 0; i < pagesize; ++i)
22437 if (*(data + i) != *(data2 + i))
22438 exit (1);
22439
22440 /* Finally, make sure that changes to the mapped area do not
22441 percolate back to the file as seen by read(). (This is a bug on
22442 some variants of i386 svr4.0.) */
22443 for (i = 0; i < pagesize; ++i)
22444 *(data2 + i) = *(data2 + i) + 1;
22445 data3 = (char *) malloc (pagesize);
22446 if (!data3)
22447 exit (1);
22448 if (read (fd, data3, pagesize) != pagesize)
22449 exit (1);
22450 for (i = 0; i < pagesize; ++i)
22451 if (*(data + i) != *(data3 + i))
22452 exit (1);
22453 close (fd);
22454 exit (0);
22455}
22456_ACEOF
22457rm -f conftest$ac_exeext
22458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22459 (eval $ac_link) 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22465 ac_status=$?
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; }; then
22468 ac_cv_func_mmap_fixed_mapped=yes
22469else
22470 echo "$as_me: program exited with status $ac_status" >&5
22471echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022472sed 's/^/| /' conftest.$ac_ext >&5
22473
John Criswell7a73b802003-06-30 21:59:07 +000022474( exit $ac_status )
22475ac_cv_func_mmap_fixed_mapped=no
22476fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022477rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022478fi
22479fi
22480echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22481echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22482if test $ac_cv_func_mmap_fixed_mapped = yes; then
22483
22484cat >>confdefs.h <<\_ACEOF
22485#define HAVE_MMAP 1
22486_ACEOF
22487
22488fi
22489rm -f conftest.mmap
22490
22491echo "$as_me:$LINENO: checking for mmap of files" >&5
22492echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22493if test "${ac_cv_func_mmap_file+set}" = set; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
22495else
22496
22497
22498 ac_ext=c
22499ac_cpp='$CPP $CPPFLAGS'
22500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22502ac_compiler_gnu=$ac_cv_c_compiler_gnu
22503
22504 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022505 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22506See \`config.log' for more details." >&5
22507echo "$as_me: error: cannot run test program while cross compiling
22508See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022509 { (exit 1); exit 1; }; }
22510else
22511 cat >conftest.$ac_ext <<_ACEOF
22512#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022513/* confdefs.h. */
22514_ACEOF
22515cat confdefs.h >>conftest.$ac_ext
22516cat >>conftest.$ac_ext <<_ACEOF
22517/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022518
John Criswell7a73b802003-06-30 21:59:07 +000022519#ifdef HAVE_SYS_TYPES_H
22520#include <sys/types.h>
22521#endif
22522
John Criswell5ab73462003-10-09 15:44:28 +000022523#ifdef HAVE_SYS_MMAN_H
22524#include <sys/mman.h>
22525#endif
22526
John Criswell7a73b802003-06-30 21:59:07 +000022527#ifdef HAVE_FCNTL_H
22528#include <fcntl.h>
22529#endif
22530
22531 int fd;
22532 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022533 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 +000022534_ACEOF
22535rm -f conftest$ac_exeext
22536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22537 (eval $ac_link) 2>&5
22538 ac_status=$?
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542 (eval $ac_try) 2>&5
22543 ac_status=$?
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; }; then
22546 ac_cv_func_mmap_file=yes
22547else
22548 echo "$as_me: program exited with status $ac_status" >&5
22549echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022550sed 's/^/| /' conftest.$ac_ext >&5
22551
John Criswell7a73b802003-06-30 21:59:07 +000022552( exit $ac_status )
22553ac_cv_func_mmap_file=no
22554fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022555rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022556fi
22557 ac_ext=c
22558ac_cpp='$CPP $CPPFLAGS'
22559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22561ac_compiler_gnu=$ac_cv_c_compiler_gnu
22562
22563
22564fi
22565echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22566echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22567if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022568
22569cat >>confdefs.h <<\_ACEOF
22570#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000022571_ACEOF
22572
22573 MMAP_FILE=yes
22574
22575fi
22576
22577if test ${ac_cv_func_mmap_file} = "no"
22578then
22579 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22580echo "$as_me: error: mmap() of files required but not found" >&2;}
22581 { (exit 1); exit 1; }; }
22582fi
22583echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22584echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22585if test "${ac_cv_header_mmap_anon+set}" = set; then
22586 echo $ECHO_N "(cached) $ECHO_C" >&6
22587else
22588
22589
22590 ac_ext=c
22591ac_cpp='$CPP $CPPFLAGS'
22592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22594ac_compiler_gnu=$ac_cv_c_compiler_gnu
22595
22596 cat >conftest.$ac_ext <<_ACEOF
22597#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022598/* confdefs.h. */
22599_ACEOF
22600cat confdefs.h >>conftest.$ac_ext
22601cat >>conftest.$ac_ext <<_ACEOF
22602/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022603#include <sys/mman.h>
22604 #include <unistd.h>
22605 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022606int
22607main ()
22608{
22609mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22610 ;
22611 return 0;
22612}
22613_ACEOF
22614rm -f conftest.$ac_objext
22615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22616 (eval $ac_compile) 2>&5
22617 ac_status=$?
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } &&
22620 { ac_try='test -s conftest.$ac_objext'
22621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622 (eval $ac_try) 2>&5
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; }; then
22626 ac_cv_header_mmap_anon=yes
22627else
22628 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022629sed 's/^/| /' conftest.$ac_ext >&5
22630
John Criswell7a73b802003-06-30 21:59:07 +000022631ac_cv_header_mmap_anon=no
22632fi
22633rm -f conftest.$ac_objext conftest.$ac_ext
22634 ac_ext=c
22635ac_cpp='$CPP $CPPFLAGS'
22636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22638ac_compiler_gnu=$ac_cv_c_compiler_gnu
22639
22640
22641fi
22642echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22643echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22644if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022645
22646cat >>confdefs.h <<\_ACEOF
22647#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000022648_ACEOF
22649
22650fi
22651
22652echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22653echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22654if test "${ac_cv_type_signal+set}" = set; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22656else
22657 cat >conftest.$ac_ext <<_ACEOF
22658#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022659/* confdefs.h. */
22660_ACEOF
22661cat confdefs.h >>conftest.$ac_ext
22662cat >>conftest.$ac_ext <<_ACEOF
22663/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022664#include <sys/types.h>
22665#include <signal.h>
22666#ifdef signal
22667# undef signal
22668#endif
22669#ifdef __cplusplus
22670extern "C" void (*signal (int, void (*)(int)))(int);
22671#else
22672void (*signal ()) ();
22673#endif
22674
John Criswell7a73b802003-06-30 21:59:07 +000022675int
22676main ()
22677{
22678int i;
22679 ;
22680 return 0;
22681}
22682_ACEOF
22683rm -f conftest.$ac_objext
22684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22685 (eval $ac_compile) 2>&5
22686 ac_status=$?
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } &&
22689 { ac_try='test -s conftest.$ac_objext'
22690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691 (eval $ac_try) 2>&5
22692 ac_status=$?
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); }; }; then
22695 ac_cv_type_signal=void
22696else
22697 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022698sed 's/^/| /' conftest.$ac_ext >&5
22699
John Criswell7a73b802003-06-30 21:59:07 +000022700ac_cv_type_signal=int
22701fi
22702rm -f conftest.$ac_objext conftest.$ac_ext
22703fi
22704echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22705echo "${ECHO_T}$ac_cv_type_signal" >&6
22706
22707cat >>confdefs.h <<_ACEOF
22708#define RETSIGTYPE $ac_cv_type_signal
22709_ACEOF
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
Brian Gaekec45be042003-10-07 06:01:34 +000022721
22722
John Criswella0137d32003-10-13 16:22:01 +000022723for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
John Criswell7a73b802003-06-30 21:59:07 +000022724do
22725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22726echo "$as_me:$LINENO: checking for $ac_func" >&5
22727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22728if eval "test \"\${$as_ac_var+set}\" = set"; then
22729 echo $ECHO_N "(cached) $ECHO_C" >&6
22730else
22731 cat >conftest.$ac_ext <<_ACEOF
22732#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022733/* confdefs.h. */
22734_ACEOF
22735cat confdefs.h >>conftest.$ac_ext
22736cat >>conftest.$ac_ext <<_ACEOF
22737/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022738/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022739 which can conflict with char $ac_func (); below.
22740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22741 <limits.h> exists even on freestanding compilers. */
22742#ifdef __STDC__
22743# include <limits.h>
22744#else
22745# include <assert.h>
22746#endif
John Criswell7a73b802003-06-30 21:59:07 +000022747/* Override any gcc2 internal prototype to avoid an error. */
22748#ifdef __cplusplus
22749extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022750{
John Criswell7a73b802003-06-30 21:59:07 +000022751#endif
22752/* We use char because int might match the return type of a gcc2
22753 builtin and then its argument prototype would still apply. */
22754char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022755/* The GNU C library defines this for functions which it implements
22756 to always fail with ENOSYS. Some functions are actually named
22757 something starting with __ and the normal name is an alias. */
22758#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22759choke me
22760#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022761char (*f) () = $ac_func;
22762#endif
22763#ifdef __cplusplus
22764}
John Criswell7a73b802003-06-30 21:59:07 +000022765#endif
22766
John Criswell0c38eaf2003-09-10 15:17:25 +000022767int
22768main ()
22769{
22770return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022771 ;
22772 return 0;
22773}
22774_ACEOF
22775rm -f conftest.$ac_objext conftest$ac_exeext
22776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22777 (eval $ac_link) 2>&5
22778 ac_status=$?
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); } &&
22781 { ac_try='test -s conftest$ac_exeext'
22782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783 (eval $ac_try) 2>&5
22784 ac_status=$?
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; }; then
22787 eval "$as_ac_var=yes"
22788else
22789 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022790sed 's/^/| /' conftest.$ac_ext >&5
22791
John Criswell7a73b802003-06-30 21:59:07 +000022792eval "$as_ac_var=no"
22793fi
22794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22795fi
22796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22797echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22798if test `eval echo '${'$as_ac_var'}'` = yes; then
22799 cat >>confdefs.h <<_ACEOF
22800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22801_ACEOF
22802
22803fi
22804done
22805
22806
22807
22808echo "$as_me:$LINENO: checking for mmap" >&5
22809echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22810if test "${ac_cv_func_mmap+set}" = set; then
22811 echo $ECHO_N "(cached) $ECHO_C" >&6
22812else
22813 cat >conftest.$ac_ext <<_ACEOF
22814#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022815/* confdefs.h. */
22816_ACEOF
22817cat confdefs.h >>conftest.$ac_ext
22818cat >>conftest.$ac_ext <<_ACEOF
22819/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022820/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022821 which can conflict with char mmap (); below.
22822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22823 <limits.h> exists even on freestanding compilers. */
22824#ifdef __STDC__
22825# include <limits.h>
22826#else
22827# include <assert.h>
22828#endif
John Criswell7a73b802003-06-30 21:59:07 +000022829/* Override any gcc2 internal prototype to avoid an error. */
22830#ifdef __cplusplus
22831extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022832{
John Criswell7a73b802003-06-30 21:59:07 +000022833#endif
22834/* We use char because int might match the return type of a gcc2
22835 builtin and then its argument prototype would still apply. */
22836char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022837/* The GNU C library defines this for functions which it implements
22838 to always fail with ENOSYS. Some functions are actually named
22839 something starting with __ and the normal name is an alias. */
22840#if defined (__stub_mmap) || defined (__stub___mmap)
22841choke me
22842#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022843char (*f) () = mmap;
22844#endif
22845#ifdef __cplusplus
22846}
John Criswell7a73b802003-06-30 21:59:07 +000022847#endif
22848
John Criswell0c38eaf2003-09-10 15:17:25 +000022849int
22850main ()
22851{
22852return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022853 ;
22854 return 0;
22855}
22856_ACEOF
22857rm -f conftest.$ac_objext conftest$ac_exeext
22858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22859 (eval $ac_link) 2>&5
22860 ac_status=$?
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); } &&
22863 { ac_try='test -s conftest$ac_exeext'
22864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865 (eval $ac_try) 2>&5
22866 ac_status=$?
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); }; }; then
22869 ac_cv_func_mmap=yes
22870else
22871 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022872sed 's/^/| /' conftest.$ac_ext >&5
22873
John Criswell7a73b802003-06-30 21:59:07 +000022874ac_cv_func_mmap=no
22875fi
22876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22877fi
22878echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22879echo "${ECHO_T}$ac_cv_func_mmap" >&6
22880if test $ac_cv_func_mmap = yes; then
22881 :
22882else
22883 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22884echo "$as_me: error: Function mmap() required but not found" >&2;}
22885 { (exit 1); exit 1; }; }
22886fi
22887
22888echo "$as_me:$LINENO: checking for mprotect" >&5
22889echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22890if test "${ac_cv_func_mprotect+set}" = set; then
22891 echo $ECHO_N "(cached) $ECHO_C" >&6
22892else
22893 cat >conftest.$ac_ext <<_ACEOF
22894#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022895/* confdefs.h. */
22896_ACEOF
22897cat confdefs.h >>conftest.$ac_ext
22898cat >>conftest.$ac_ext <<_ACEOF
22899/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022900/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022901 which can conflict with char mprotect (); below.
22902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22903 <limits.h> exists even on freestanding compilers. */
22904#ifdef __STDC__
22905# include <limits.h>
22906#else
22907# include <assert.h>
22908#endif
John Criswell7a73b802003-06-30 21:59:07 +000022909/* Override any gcc2 internal prototype to avoid an error. */
22910#ifdef __cplusplus
22911extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022912{
John Criswell7a73b802003-06-30 21:59:07 +000022913#endif
22914/* We use char because int might match the return type of a gcc2
22915 builtin and then its argument prototype would still apply. */
22916char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022917/* The GNU C library defines this for functions which it implements
22918 to always fail with ENOSYS. Some functions are actually named
22919 something starting with __ and the normal name is an alias. */
22920#if defined (__stub_mprotect) || defined (__stub___mprotect)
22921choke me
22922#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022923char (*f) () = mprotect;
22924#endif
22925#ifdef __cplusplus
22926}
John Criswell7a73b802003-06-30 21:59:07 +000022927#endif
22928
John Criswell0c38eaf2003-09-10 15:17:25 +000022929int
22930main ()
22931{
22932return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022933 ;
22934 return 0;
22935}
22936_ACEOF
22937rm -f conftest.$ac_objext conftest$ac_exeext
22938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22939 (eval $ac_link) 2>&5
22940 ac_status=$?
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } &&
22943 { ac_try='test -s conftest$ac_exeext'
22944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945 (eval $ac_try) 2>&5
22946 ac_status=$?
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); }; }; then
22949 ac_cv_func_mprotect=yes
22950else
22951 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022952sed 's/^/| /' conftest.$ac_ext >&5
22953
John Criswell7a73b802003-06-30 21:59:07 +000022954ac_cv_func_mprotect=no
22955fi
22956rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22957fi
22958echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22959echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22960if test $ac_cv_func_mprotect = yes; then
22961 :
22962else
22963 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22964echo "$as_me: error: Function mprotect() required but not found" >&2;}
22965 { (exit 1); exit 1; }; }
22966fi
22967
22968
John Criswellb13092b2003-07-22 21:00:24 +000022969
John Criswell7a73b802003-06-30 21:59:07 +000022970# Check whether --enable-purify or --disable-purify was given.
22971if test "${enable_purify+set}" = set; then
22972 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022973
22974else
John Criswellb13092b2003-07-22 21:00:24 +000022975 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022976fi;
John Criswellb13092b2003-07-22 21:00:24 +000022977if test ${enableval} = "no"
22978then
22979 ENABLE_PURIFY=
22980
22981else
22982 ENABLE_PURIFY=ENABLE_PURIFY=1
22983
22984fi
22985
John Criswell7a73b802003-06-30 21:59:07 +000022986# Check whether --enable-optimized or --disable-optimized was given.
22987if test "${enable_optimized+set}" = set; then
22988 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022989
22990else
John Criswellb13092b2003-07-22 21:00:24 +000022991 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022992fi;
John Criswellb13092b2003-07-22 21:00:24 +000022993if test ${enableval} = "no"
22994then
22995 ENABLE_OPTIMIZED=
22996
22997else
22998 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22999
23000fi
23001
John Criswell55126592003-10-07 21:57:39 +000023002# Check whether --enable-spec2000 or --disable-spec2000 was given.
23003if test "${enable_spec2000+set}" = set; then
23004 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000023005
23006else
John Criswellb13092b2003-07-22 21:00:24 +000023007 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023008fi;
John Criswellb13092b2003-07-22 21:00:24 +000023009if test ${enableval} = "no"
23010then
John Criswell55126592003-10-07 21:57:39 +000023011 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
23012 then
23013 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000023014
John Criswell55126592003-10-07 21:57:39 +000023015 USE_SPEC=USE_SPEC=1
23016
23017 else
23018 USE_SPEC=
23019
23020
23021 fi
John Criswellb13092b2003-07-22 21:00:24 +000023022else
John Criswell55126592003-10-07 21:57:39 +000023023 if test ${enableval} = ""
23024 then
23025 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23026
23027 else
23028 SPEC_ROOT=${enableval}
23029
23030 fi
John Criswellb13092b2003-07-22 21:00:24 +000023031 USE_SPEC=USE_SPEC=1
23032
23033fi
23034
John Criswell7a73b802003-06-30 21:59:07 +000023035# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23036if test "${enable_precompiled_bytecode+set}" = set; then
23037 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000023038
23039else
John Criswellb13092b2003-07-22 21:00:24 +000023040 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023041fi;
John Criswellb13092b2003-07-22 21:00:24 +000023042if test ${enableval} = "no"
23043then
23044 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000023045
John Criswellb13092b2003-07-22 21:00:24 +000023046else
23047 UPB=USE_PRECOMPILED_BYTECODE=1
23048
23049fi
John Criswellf02dbf02003-07-22 20:07:49 +000023050
23051
23052# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23053if test "${enable_llc_diffs+set}" = set; then
23054 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000023055
23056else
John Criswellb13092b2003-07-22 21:00:24 +000023057 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000023058fi;
John Criswellb13092b2003-07-22 21:00:24 +000023059if test ${enableval} = "no"
23060then
23061 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000023062
John Criswellb13092b2003-07-22 21:00:24 +000023063else
23064 DISABLE_LLC_DIFFS=
23065
23066fi
23067
23068# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000023069if test "${enable_jit+set}" = set; then
23070 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000023071
23072else
John Criswellc78022e2003-07-29 19:11:58 +000023073 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000023074fi;
John Criswellb13092b2003-07-22 21:00:24 +000023075
23076if test ${enableval} = "no"
23077then
23078 JIT=
23079
23080else
John Criswellc78022e2003-07-29 19:11:58 +000023081 case $target in
23082 *i*86*)
23083 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000023084
John Criswellc78022e2003-07-29 19:11:58 +000023085 ;;
23086 *sparc*)
23087 JIT=TARGET_HAS_JIT=1
23088
23089 ;;
23090 *)
23091 JIT=
23092
23093 ;;
23094 esac
John Criswellb13092b2003-07-22 21:00:24 +000023095fi
John Criswell7a73b802003-06-30 21:59:07 +000023096
23097
John Criswellc78022e2003-07-29 19:11:58 +000023098
John Criswell7a73b802003-06-30 21:59:07 +000023099# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23100if test "${with_llvmgccdir+set}" = set; then
23101 withval="$with_llvmgccdir"
23102 LLVMGCCDIR=$withval
23103
23104fi;
23105
Brian Gaekef3b24102003-11-16 18:38:14 +000023106echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23107echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23108LLVM_GCC_CHECK=no
23109if test -d "$LLVMGCCDIR"
23110then
23111 if test -x "$LLVMGCCDIR/bin/gcc"
23112 then
23113 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23114 fi
23115fi
23116llvmgccwarn=no
23117echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23118echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23119if test "$LLVM_GCC_CHECK" = "no"
23120then
23121 llvmgccwarn=yes
23122fi
23123
23124echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23125echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23126LLVM_GCC_SANE=no
23127if test -x "$LLVM_GCC_CHECK"
23128then
23129 cp /dev/null conftest.c
23130 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23131 if test $? -eq 0
23132 then
23133 LLVM_GCC_SANE=yes
23134 fi
23135 rm conftest.c
23136fi
23137echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23138echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23139if test "$LLVM_GCC_SANE" = "no"
23140then
23141 llvmgccwarn=yes
23142fi
23143
John Criswellc78022e2003-07-29 19:11:58 +000023144
John Criswell7a73b802003-06-30 21:59:07 +000023145# Check whether --with-bcrepos or --without-bcrepos was given.
23146if test "${with_bcrepos+set}" = set; then
23147 withval="$with_bcrepos"
23148 BCR=$withval
23149
23150else
23151 BCR=/home/vadve/lattner/LLVMPrograms
23152
23153fi;
23154
John Criswellc78022e2003-07-29 19:11:58 +000023155
John Criswell7a73b802003-06-30 21:59:07 +000023156# Check whether --with-papi or --without-papi was given.
23157if test "${with_papi+set}" = set; then
23158 withval="$with_papi"
23159 PAPIDIR=$withval
23160
23161else
John Criswellde00db22003-08-25 16:49:54 +000023162 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000023163
23164fi;
23165
John Criswell7a73b802003-06-30 21:59:07 +000023166
23167# Check whether --with-purify or --without-purify was given.
23168if test "${with_purify+set}" = set; then
23169 withval="$with_purify"
23170 PURIFY=$withval
23171
23172fi;
23173
John Criswellde00db22003-08-25 16:49:54 +000023174
John Criswell0c38eaf2003-09-10 15:17:25 +000023175 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000023176cat >confcache <<\_ACEOF
23177# This file is a shell script that caches the results of configure
23178# tests run on this system so they can be shared between configure
23179# scripts and configure runs, see configure's option --config-cache.
23180# It is not useful on other systems. If it contains results you don't
23181# want to keep, you may remove or edit it.
23182#
23183# config.status only pays attention to the cache file if you give it
23184# the --recheck option to rerun configure.
23185#
John Criswell0c38eaf2003-09-10 15:17:25 +000023186# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000023187# loading this file, other *unset* `ac_cv_foo' will be assigned the
23188# following values.
23189
23190_ACEOF
23191
23192# The following way of writing the cache mishandles newlines in values,
23193# but we know of no workaround that is simple, portable, and efficient.
23194# So, don't put newlines in cache variables' values.
23195# Ultrix sh set writes to stderr and can't be redirected directly,
23196# and sets the high bit in the cache file unless we assign to the vars.
23197{
23198 (set) 2>&1 |
23199 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23200 *ac_space=\ *)
23201 # `set' does not quote correctly, so add quotes (double-quote
23202 # substitution turns \\\\ into \\, and sed turns \\ into \).
23203 sed -n \
23204 "s/'/'\\\\''/g;
23205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23206 ;;
23207 *)
23208 # `set' quotes correctly as required by POSIX, so do not add quotes.
23209 sed -n \
23210 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23211 ;;
23212 esac;
23213} |
23214 sed '
23215 t clear
23216 : clear
23217 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23218 t end
23219 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23220 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000023221if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000023222 if test -w $cache_file; then
23223 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23224 cat confcache >$cache_file
23225 else
23226 echo "not updating unwritable cache $cache_file"
23227 fi
23228fi
23229rm -f confcache
23230
23231test "x$prefix" = xNONE && prefix=$ac_default_prefix
23232# Let make expand exec_prefix.
23233test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23234
23235# VPATH may cause trouble with some makes, so we remove $(srcdir),
23236# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23237# trailing colons and then remove the whole line if VPATH becomes empty
23238# (actually we leave an empty line to preserve line numbers).
23239if test "x$srcdir" = x.; then
23240 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23241s/:*\$(srcdir):*/:/;
23242s/:*\${srcdir}:*/:/;
23243s/:*@srcdir@:*/:/;
23244s/^\([^=]*=[ ]*\):*/\1/;
23245s/:*$//;
23246s/^[^=]*=[ ]*$//;
23247}'
23248fi
23249
23250DEFS=-DHAVE_CONFIG_H
23251
John Criswell0c38eaf2003-09-10 15:17:25 +000023252ac_libobjs=
23253ac_ltlibobjs=
23254for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23255 # 1. Remove the extension, and $U if already installed.
23256 ac_i=`echo "$ac_i" |
23257 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23258 # 2. Add them.
23259 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23260 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23261done
23262LIBOBJS=$ac_libobjs
23263
23264LTLIBOBJS=$ac_ltlibobjs
23265
23266
John Criswell7a73b802003-06-30 21:59:07 +000023267
23268: ${CONFIG_STATUS=./config.status}
23269ac_clean_files_save=$ac_clean_files
23270ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23271{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23272echo "$as_me: creating $CONFIG_STATUS" >&6;}
23273cat >$CONFIG_STATUS <<_ACEOF
23274#! $SHELL
23275# Generated by $as_me.
23276# Run this file to recreate the current configuration.
23277# Compiler output produced by configure, useful for debugging
23278# configure, is in config.log if it exists.
23279
23280debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023281ac_cs_recheck=false
23282ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023283SHELL=\${CONFIG_SHELL-$SHELL}
23284_ACEOF
23285
23286cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023287## --------------------- ##
23288## M4sh Initialization. ##
23289## --------------------- ##
23290
23291# Be Bourne compatible
23292if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23293 emulate sh
23294 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023295 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23296 # is contrary to our usage. Disable this feature.
23297 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023298elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23299 set -o posix
23300fi
23301
John Criswell7a73b802003-06-30 21:59:07 +000023302# Support unset when possible.
23303if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23304 as_unset=unset
23305else
23306 as_unset=false
23307fi
23308
John Criswell0c38eaf2003-09-10 15:17:25 +000023309
23310# Work around bugs in pre-3.0 UWIN ksh.
23311$as_unset ENV MAIL MAILPATH
23312PS1='$ '
23313PS2='> '
23314PS4='+ '
23315
23316# NLS nuisances.
23317for as_var in \
23318 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23319 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23320 LC_TELEPHONE LC_TIME
23321do
23322 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23323 eval $as_var=C; export $as_var
23324 else
23325 $as_unset $as_var
23326 fi
23327done
23328
23329# Required to use basename.
23330if expr a : '\(a\)' >/dev/null 2>&1; then
23331 as_expr=expr
23332else
23333 as_expr=false
23334fi
23335
23336if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23337 as_basename=basename
23338else
23339 as_basename=false
23340fi
John Criswell7a73b802003-06-30 21:59:07 +000023341
23342
23343# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023344as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023345$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23346 X"$0" : 'X\(//\)$' \| \
23347 X"$0" : 'X\(/\)$' \| \
23348 . : '\(.\)' 2>/dev/null ||
23349echo X/"$0" |
23350 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23351 /^X\/\(\/\/\)$/{ s//\1/; q; }
23352 /^X\/\(\/\).*/{ s//\1/; q; }
23353 s/.*/./; q'`
23354
John Criswell0c38eaf2003-09-10 15:17:25 +000023355
John Criswell7a73b802003-06-30 21:59:07 +000023356# PATH needs CR, and LINENO needs CR and PATH.
23357# Avoid depending upon Character Ranges.
23358as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23359as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23360as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23361as_cr_digits='0123456789'
23362as_cr_alnum=$as_cr_Letters$as_cr_digits
23363
23364# The user is always right.
23365if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023366 echo "#! /bin/sh" >conf$$.sh
23367 echo "exit 0" >>conf$$.sh
23368 chmod +x conf$$.sh
23369 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023370 PATH_SEPARATOR=';'
23371 else
23372 PATH_SEPARATOR=:
23373 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023374 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023375fi
23376
23377
23378 as_lineno_1=$LINENO
23379 as_lineno_2=$LINENO
23380 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23381 test "x$as_lineno_1" != "x$as_lineno_2" &&
23382 test "x$as_lineno_3" = "x$as_lineno_2" || {
23383 # Find who we are. Look in the path if we contain no path at all
23384 # relative or not.
23385 case $0 in
23386 *[\\/]* ) as_myself=$0 ;;
23387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23388for as_dir in $PATH
23389do
23390 IFS=$as_save_IFS
23391 test -z "$as_dir" && as_dir=.
23392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23393done
23394
23395 ;;
23396 esac
23397 # We did not find ourselves, most probably we were run as `sh COMMAND'
23398 # in which case we are not to be found in the path.
23399 if test "x$as_myself" = x; then
23400 as_myself=$0
23401 fi
23402 if test ! -f "$as_myself"; then
23403 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23404echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23405 { (exit 1); exit 1; }; }
23406 fi
23407 case $CONFIG_SHELL in
23408 '')
23409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23410for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23411do
23412 IFS=$as_save_IFS
23413 test -z "$as_dir" && as_dir=.
23414 for as_base in sh bash ksh sh5; do
23415 case $as_dir in
23416 /*)
23417 if ("$as_dir/$as_base" -c '
23418 as_lineno_1=$LINENO
23419 as_lineno_2=$LINENO
23420 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23421 test "x$as_lineno_1" != "x$as_lineno_2" &&
23422 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023423 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23424 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023425 CONFIG_SHELL=$as_dir/$as_base
23426 export CONFIG_SHELL
23427 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23428 fi;;
23429 esac
23430 done
23431done
23432;;
23433 esac
23434
23435 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23436 # uniformly replaced by the line number. The first 'sed' inserts a
23437 # line-number line before each line; the second 'sed' does the real
23438 # work. The second script uses 'N' to pair each line-number line
23439 # with the numbered line, and appends trailing '-' during
23440 # substitution so that $LINENO is not a special case at line end.
23441 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23442 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23443 sed '=' <$as_myself |
23444 sed '
23445 N
23446 s,$,-,
23447 : loop
23448 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23449 t loop
23450 s,-$,,
23451 s,^['$as_cr_digits']*\n,,
23452 ' >$as_me.lineno &&
23453 chmod +x $as_me.lineno ||
23454 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23455echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23456 { (exit 1); exit 1; }; }
23457
23458 # Don't try to exec as it changes $[0], causing all sort of problems
23459 # (the dirname of $[0] is not the place where we might find the
23460 # original and so on. Autoconf is especially sensible to this).
23461 . ./$as_me.lineno
23462 # Exit status is that of the last command.
23463 exit
23464}
23465
23466
23467case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23468 *c*,-n*) ECHO_N= ECHO_C='
23469' ECHO_T=' ' ;;
23470 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23471 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23472esac
23473
23474if expr a : '\(a\)' >/dev/null 2>&1; then
23475 as_expr=expr
23476else
23477 as_expr=false
23478fi
23479
23480rm -f conf$$ conf$$.exe conf$$.file
23481echo >conf$$.file
23482if ln -s conf$$.file conf$$ 2>/dev/null; then
23483 # We could just check for DJGPP; but this test a) works b) is more generic
23484 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23485 if test -f conf$$.exe; then
23486 # Don't use ln at all; we don't have any links
23487 as_ln_s='cp -p'
23488 else
23489 as_ln_s='ln -s'
23490 fi
23491elif ln conf$$.file conf$$ 2>/dev/null; then
23492 as_ln_s=ln
23493else
23494 as_ln_s='cp -p'
23495fi
23496rm -f conf$$ conf$$.exe conf$$.file
23497
John Criswell0c38eaf2003-09-10 15:17:25 +000023498if mkdir -p . 2>/dev/null; then
23499 as_mkdir_p=:
23500else
23501 as_mkdir_p=false
23502fi
23503
John Criswell7a73b802003-06-30 21:59:07 +000023504as_executable_p="test -f"
23505
23506# Sed expression to map a string onto a valid CPP name.
23507as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23508
23509# Sed expression to map a string onto a valid variable name.
23510as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23511
23512
23513# IFS
23514# We need space, tab and new line, in precisely that order.
23515as_nl='
23516'
23517IFS=" $as_nl"
23518
23519# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023520$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023521
23522exec 6>&1
23523
23524# Open the log real soon, to keep \$[0] and so on meaningful, and to
23525# report actual input values of CONFIG_FILES etc. instead of their
23526# values after options handling. Logging --version etc. is OK.
23527exec 5>>config.log
23528{
23529 echo
23530 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23531## Running $as_me. ##
23532_ASBOX
23533} >&5
23534cat >&5 <<_CSEOF
23535
23536This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023537generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023538
23539 CONFIG_FILES = $CONFIG_FILES
23540 CONFIG_HEADERS = $CONFIG_HEADERS
23541 CONFIG_LINKS = $CONFIG_LINKS
23542 CONFIG_COMMANDS = $CONFIG_COMMANDS
23543 $ $0 $@
23544
23545_CSEOF
23546echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23547echo >&5
23548_ACEOF
23549
23550# Files that config.status was made for.
23551if test -n "$ac_config_files"; then
23552 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23553fi
23554
23555if test -n "$ac_config_headers"; then
23556 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23557fi
23558
23559if test -n "$ac_config_links"; then
23560 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23561fi
23562
23563if test -n "$ac_config_commands"; then
23564 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23565fi
23566
23567cat >>$CONFIG_STATUS <<\_ACEOF
23568
23569ac_cs_usage="\
23570\`$as_me' instantiates files from templates according to the
23571current configuration.
23572
23573Usage: $0 [OPTIONS] [FILE]...
23574
23575 -h, --help print this help, then exit
23576 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023577 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023578 -d, --debug don't remove temporary files
23579 --recheck update $as_me by reconfiguring in the same conditions
23580 --file=FILE[:TEMPLATE]
23581 instantiate the configuration file FILE
23582 --header=FILE[:TEMPLATE]
23583 instantiate the configuration header FILE
23584
23585Configuration files:
23586$config_files
23587
23588Configuration headers:
23589$config_headers
23590
John Criswellc764fbc2003-09-06 15:17:13 +000023591Configuration commands:
23592$config_commands
23593
John Criswell7a73b802003-06-30 21:59:07 +000023594Report bugs to <bug-autoconf@gnu.org>."
23595_ACEOF
23596
23597cat >>$CONFIG_STATUS <<_ACEOF
23598ac_cs_version="\\
23599[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023600configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023601 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23602
23603Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23604Free Software Foundation, Inc.
23605This config.status script is free software; the Free Software Foundation
23606gives unlimited permission to copy, distribute and modify it."
23607srcdir=$srcdir
23608INSTALL="$INSTALL"
23609_ACEOF
23610
23611cat >>$CONFIG_STATUS <<\_ACEOF
23612# If no file are specified by the user, then we need to provide default
23613# value. By we need to know if files were specified by the user.
23614ac_need_defaults=:
23615while test $# != 0
23616do
23617 case $1 in
23618 --*=*)
23619 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23620 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023621 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023622 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023623 -*)
23624 ac_option=$1
23625 ac_optarg=$2
23626 ac_shift=shift
23627 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023628 *) # This is not an option, so the user has probably given explicit
23629 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023630 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023631 ac_need_defaults=false;;
23632 esac
23633
John Criswell0c38eaf2003-09-10 15:17:25 +000023634 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023635 # Handling of the options.
23636_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023637cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23639 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023640 --version | --vers* | -V )
23641 echo "$ac_cs_version"; exit 0 ;;
23642 --he | --h)
23643 # Conflict between --help and --header
23644 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23645Try \`$0 --help' for more information." >&5
23646echo "$as_me: error: ambiguous option: $1
23647Try \`$0 --help' for more information." >&2;}
23648 { (exit 1); exit 1; }; };;
23649 --help | --hel | -h )
23650 echo "$ac_cs_usage"; exit 0 ;;
23651 --debug | --d* | -d )
23652 debug=: ;;
23653 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023654 $ac_shift
23655 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023656 ac_need_defaults=false;;
23657 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023658 $ac_shift
23659 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023660 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23662 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23663 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023664
23665 # This is an error.
23666 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23667Try \`$0 --help' for more information." >&5
23668echo "$as_me: error: unrecognized option: $1
23669Try \`$0 --help' for more information." >&2;}
23670 { (exit 1); exit 1; }; } ;;
23671
23672 *) ac_config_targets="$ac_config_targets $1" ;;
23673
23674 esac
23675 shift
23676done
23677
John Criswell0c38eaf2003-09-10 15:17:25 +000023678ac_configure_extra_args=
23679
23680if $ac_cs_silent; then
23681 exec 6>/dev/null
23682 ac_configure_extra_args="$ac_configure_extra_args --silent"
23683fi
23684
23685_ACEOF
23686cat >>$CONFIG_STATUS <<_ACEOF
23687if \$ac_cs_recheck; then
23688 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23689 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23690fi
23691
John Criswell7a73b802003-06-30 21:59:07 +000023692_ACEOF
23693
John Criswellc764fbc2003-09-06 15:17:13 +000023694cat >>$CONFIG_STATUS <<_ACEOF
23695#
23696# INIT-COMMANDS section.
23697#
John Criswell7a73b802003-06-30 21:59:07 +000023698
John Criswellc764fbc2003-09-06 15:17:13 +000023699${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23700${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23701${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23702${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23703${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23704${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23705${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23706${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23707${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23708${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23709${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23710${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23711${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23712${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23713${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23714${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23715${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023716${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23717${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23718${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23719${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23720${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023721${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023722${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23723${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23724${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23725${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23726${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23727${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23728${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23729${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23730${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23731${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23732${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23733${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23734${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23735${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23736${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023737${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023738${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23739${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23740${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23741${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023742${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023743${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023744${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23745${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023746${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23747${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
John Criswell759c3ed2003-10-28 19:21:11 +000023748${srcdir}/autoconf/mkinstalldirs `dirname runtime/libprofile/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023749${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23750${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023751${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23752${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023753${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23754${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23755${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23756${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23757${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23758${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23759${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23760${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23761${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23762${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23763${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23764${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23765${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23766${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23767${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23768${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23769${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23770${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023771${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023772${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
John Criswell5ab73462003-10-09 15:44:28 +000023773${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023774${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23775${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23776${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23777${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23778${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23779${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23780${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23781${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23782${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23783${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
John Criswell987e49c2003-10-10 01:11:54 +000023784${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23785${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023786${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23787${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23788${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23789${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23790${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23791${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23792${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023793${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23794${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023795${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23796${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023797${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23798${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
Misha Brukman811ce9f2003-11-12 22:16:51 +000023799${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/Makefile`
23800${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile`
23801${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23802${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23803${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23804${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23805${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23806${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23807${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23808${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23809${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23810${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23811${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23812${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23813${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswell48e3cb92003-09-12 16:31:43 +000023814${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23815${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23816${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23817${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23818${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23819${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23820${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23821${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23822${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23823${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23824${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23825${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23826${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23827${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23828${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23829${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23830${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23831${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23832${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23833${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23834${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23835${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023836${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023837${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23838${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23839${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23840${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23841${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23842${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023843${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023844${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023845${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23846${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023847${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23848${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23849${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23850${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23851${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23852${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023853${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023854${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023855${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023856${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023857${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23858${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023859${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023860${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23861${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023862${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023863${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23864${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23865${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023866${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023867${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023868${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023869${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023870${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023871${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023872${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000023873${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-nm/Makefile`
John Criswell759c3ed2003-10-28 19:21:11 +000023874${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-prof/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023875${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023876${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23877${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23878${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23879${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023880${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023881${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23882${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23883${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23884${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23885
23886_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023887
23888
23889
23890cat >>$CONFIG_STATUS <<\_ACEOF
23891for ac_config_target in $ac_config_targets
23892do
23893 case "$ac_config_target" in
23894 # Handling of arguments.
23895 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023896 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23897 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23898 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23899 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23900 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23901 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23902 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23903 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23904 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23905 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23906 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23907 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23908 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23909 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23910 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23911 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23912 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023913 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23914 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23915 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23916 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23917 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023918 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023919 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23920 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23921 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23922 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23923 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23924 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23925 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23926 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23927 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23928 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23929 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23930 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23931 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23932 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23933 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023934 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023935 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23936 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23937 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23938 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023939 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023940 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023941 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23942 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023943 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23944 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
John Criswell759c3ed2003-10-28 19:21:11 +000023945 "runtime/libprofile/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libprofile/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023946 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23947 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023948 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23949 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023950 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23951 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23952 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23953 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23954 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23955 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23956 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23957 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23958 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23959 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23960 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23961 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23962 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23963 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23964 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23965 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23966 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23967 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023968 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023969 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
John Criswell5ab73462003-10-09 15:44:28 +000023970 "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 +000023971 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23972 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23973 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23974 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23975 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23976 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23977 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23978 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23979 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23980 "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 +000023981 "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
23982 "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 +000023983 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23984 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23985 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23986 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23987 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23988 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23989 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023990 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23991 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023992 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23993 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023994 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23995 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000023996 "test/Programs/MultiSource/Benchmarks/FreeBench/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/Makefile" ;;
23997 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile" ;;
23998 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23999 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24000 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24001 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24002 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24003 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24004 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24005 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24006 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24007 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24008 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24009 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24010 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024011 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
24012 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
24013 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
24014 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
24015 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
24016 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
24017 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
24018 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
24019 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
24020 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
24021 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
24022 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
24023 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
24024 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
24025 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
24026 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
24027 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
24028 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
24029 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
24030 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
24031 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
24032 "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 +000024033 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024034 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
24035 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
24036 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
24037 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
24038 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
24039 "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 +000024040 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024041 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024042 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24043 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000024044 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
24045 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
24046 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
24047 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
24048 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
24049 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024050 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024051 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000024052 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000024053 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000024054 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
24055 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000024056 "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 +000024057 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24058 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024059 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024060 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
24061 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
24062 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024063 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024064 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024065 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024066 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024067 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024068 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024069 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000024070 "tools/llvm-nm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-nm/Makefile" ;;
John Criswell759c3ed2003-10-28 19:21:11 +000024071 "tools/llvm-prof/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-prof/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024072 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024073 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24074 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
24075 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
24076 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024077 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024078 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
24079 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
24080 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
24081 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000024082 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24083 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24084echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24085 { (exit 1); exit 1; }; };;
24086 esac
24087done
24088
24089# If the user did not use the arguments to specify the items to instantiate,
24090# then the envvar interface is used. Set only those that are not.
24091# We use the long form for the default assignment because of an extremely
24092# bizarre bug on SunOS 4.1.3.
24093if $ac_need_defaults; then
24094 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24095 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000024096 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000024097fi
24098
John Criswell0c38eaf2003-09-10 15:17:25 +000024099# Have a temporary directory for convenience. Make it in the build tree
24100# simply because there is no reason to put it here, and in addition,
24101# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000024102# Create a temporary directory, and hook for its removal unless debugging.
24103$debug ||
24104{
24105 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24106 trap '{ (exit 1); exit 1; }' 1 2 13 15
24107}
24108
24109# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000024110
John Criswell7a73b802003-06-30 21:59:07 +000024111{
John Criswell0c38eaf2003-09-10 15:17:25 +000024112 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000024113 test -n "$tmp" && test -d "$tmp"
24114} ||
24115{
John Criswell0c38eaf2003-09-10 15:17:25 +000024116 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000024117 (umask 077 && mkdir $tmp)
24118} ||
24119{
John Criswell0c38eaf2003-09-10 15:17:25 +000024120 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000024121 { (exit 1); exit 1; }
24122}
24123
24124_ACEOF
24125
24126cat >>$CONFIG_STATUS <<_ACEOF
24127
24128#
24129# CONFIG_FILES section.
24130#
24131
24132# No need to generate the scripts if there are no CONFIG_FILES.
24133# This happens for instance when ./config.status config.h
24134if test -n "\$CONFIG_FILES"; then
24135 # Protect against being on the right side of a sed subst in config.status.
24136 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24137 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24138s,@SHELL@,$SHELL,;t t
24139s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24140s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24141s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24142s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24143s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24144s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24145s,@exec_prefix@,$exec_prefix,;t t
24146s,@prefix@,$prefix,;t t
24147s,@program_transform_name@,$program_transform_name,;t t
24148s,@bindir@,$bindir,;t t
24149s,@sbindir@,$sbindir,;t t
24150s,@libexecdir@,$libexecdir,;t t
24151s,@datadir@,$datadir,;t t
24152s,@sysconfdir@,$sysconfdir,;t t
24153s,@sharedstatedir@,$sharedstatedir,;t t
24154s,@localstatedir@,$localstatedir,;t t
24155s,@libdir@,$libdir,;t t
24156s,@includedir@,$includedir,;t t
24157s,@oldincludedir@,$oldincludedir,;t t
24158s,@infodir@,$infodir,;t t
24159s,@mandir@,$mandir,;t t
24160s,@build_alias@,$build_alias,;t t
24161s,@host_alias@,$host_alias,;t t
24162s,@target_alias@,$target_alias,;t t
24163s,@DEFS@,$DEFS,;t t
24164s,@ECHO_C@,$ECHO_C,;t t
24165s,@ECHO_N@,$ECHO_N,;t t
24166s,@ECHO_T@,$ECHO_T,;t t
24167s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000024168s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024169s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24170s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24171s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24172s,@build@,$build,;t t
24173s,@build_cpu@,$build_cpu,;t t
24174s,@build_vendor@,$build_vendor,;t t
24175s,@build_os@,$build_os,;t t
24176s,@host@,$host,;t t
24177s,@host_cpu@,$host_cpu,;t t
24178s,@host_vendor@,$host_vendor,;t t
24179s,@host_os@,$host_os,;t t
24180s,@target@,$target,;t t
24181s,@target_cpu@,$target_cpu,;t t
24182s,@target_vendor@,$target_vendor,;t t
24183s,@target_os@,$target_os,;t t
24184s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024185s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000024186s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024187s,@CXX@,$CXX,;t t
24188s,@CXXFLAGS@,$CXXFLAGS,;t t
24189s,@LDFLAGS@,$LDFLAGS,;t t
24190s,@CPPFLAGS@,$CPPFLAGS,;t t
24191s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24192s,@EXEEXT@,$EXEEXT,;t t
24193s,@OBJEXT@,$OBJEXT,;t t
24194s,@CC@,$CC,;t t
24195s,@CFLAGS@,$CFLAGS,;t t
24196s,@ac_ct_CC@,$ac_ct_CC,;t t
24197s,@CPP@,$CPP,;t t
24198s,@ifGNUmake@,$ifGNUmake,;t t
24199s,@LEX@,$LEX,;t t
24200s,@LEXLIB@,$LEXLIB,;t t
24201s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24202s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024203s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024204s,@LN_S@,$LN_S,;t t
24205s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024206s,@AR@,$AR,;t t
24207s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024208s,@RANLIB@,$RANLIB,;t t
24209s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24210s,@STRIP@,$STRIP,;t t
24211s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024212s,@CXXCPP@,$CXXCPP,;t t
24213s,@F77@,$F77,;t t
24214s,@FFLAGS@,$FFLAGS,;t t
24215s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024216s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000024217s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024218s,@SED@,$SED,;t t
24219s,@RM@,$RM,;t t
24220s,@MKDIR@,$MKDIR,;t t
24221s,@DATE@,$DATE,;t t
24222s,@MV@,$MV,;t t
24223s,@DOT@,$DOT,;t t
24224s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000024225s,@PYTHON@,$PYTHON,;t t
24226s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024227s,@ALLOCA@,$ALLOCA,;t t
24228s,@LIBOBJS@,$LIBOBJS,;t t
24229s,@MMAP_FILE@,$MMAP_FILE,;t t
24230s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024231s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000024232s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024233s,@USE_SPEC@,$USE_SPEC,;t t
24234s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000024235s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024236s,@JIT@,$JIT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024237s,@BCR@,$BCR,;t t
24238s,@PAPIDIR@,$PAPIDIR,;t t
John Criswellce2141f2003-10-02 19:02:30 +000024239s,@PURIFY@,$PURIFY,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000024240s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024241CEOF
24242
24243_ACEOF
24244
24245 cat >>$CONFIG_STATUS <<\_ACEOF
24246 # Split the substitutions into bite-sized pieces for seds with
24247 # small command number limits, like on Digital OSF/1 and HP-UX.
24248 ac_max_sed_lines=48
24249 ac_sed_frag=1 # Number of current file.
24250 ac_beg=1 # First line for current file.
24251 ac_end=$ac_max_sed_lines # Line after last line for current file.
24252 ac_more_lines=:
24253 ac_sed_cmds=
24254 while $ac_more_lines; do
24255 if test $ac_beg -gt 1; then
24256 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24257 else
24258 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24259 fi
24260 if test ! -s $tmp/subs.frag; then
24261 ac_more_lines=false
24262 else
24263 # The purpose of the label and of the branching condition is to
24264 # speed up the sed processing (if there are no `@' at all, there
24265 # is no need to browse any of the substitutions).
24266 # These are the two extra sed commands mentioned above.
24267 (echo ':t
24268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24269 if test -z "$ac_sed_cmds"; then
24270 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24271 else
24272 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24273 fi
24274 ac_sed_frag=`expr $ac_sed_frag + 1`
24275 ac_beg=$ac_end
24276 ac_end=`expr $ac_end + $ac_max_sed_lines`
24277 fi
24278 done
24279 if test -z "$ac_sed_cmds"; then
24280 ac_sed_cmds=cat
24281 fi
24282fi # test -n "$CONFIG_FILES"
24283
24284_ACEOF
24285cat >>$CONFIG_STATUS <<\_ACEOF
24286for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24287 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24288 case $ac_file in
24289 - | *:- | *:-:* ) # input from stdin
24290 cat >$tmp/stdin
24291 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24292 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24293 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24294 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24295 * ) ac_file_in=$ac_file.in ;;
24296 esac
24297
24298 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24299 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24300$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24301 X"$ac_file" : 'X\(//\)[^/]' \| \
24302 X"$ac_file" : 'X\(//\)$' \| \
24303 X"$ac_file" : 'X\(/\)' \| \
24304 . : '\(.\)' 2>/dev/null ||
24305echo X"$ac_file" |
24306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24308 /^X\(\/\/\)$/{ s//\1/; q; }
24309 /^X\(\/\).*/{ s//\1/; q; }
24310 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024311 { if $as_mkdir_p; then
24312 mkdir -p "$ac_dir"
24313 else
24314 as_dir="$ac_dir"
24315 as_dirs=
24316 while test ! -d "$as_dir"; do
24317 as_dirs="$as_dir $as_dirs"
24318 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24319$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24320 X"$as_dir" : 'X\(//\)[^/]' \| \
24321 X"$as_dir" : 'X\(//\)$' \| \
24322 X"$as_dir" : 'X\(/\)' \| \
24323 . : '\(.\)' 2>/dev/null ||
24324echo X"$as_dir" |
24325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24327 /^X\(\/\/\)$/{ s//\1/; q; }
24328 /^X\(\/\).*/{ s//\1/; q; }
24329 s/.*/./; q'`
24330 done
24331 test ! -n "$as_dirs" || mkdir $as_dirs
24332 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24333echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24334 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024335
24336 ac_builddir=.
24337
24338if test "$ac_dir" != .; then
24339 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24340 # A "../" for each directory in $ac_dir_suffix.
24341 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24342else
24343 ac_dir_suffix= ac_top_builddir=
24344fi
24345
24346case $srcdir in
24347 .) # No --srcdir option. We are building in place.
24348 ac_srcdir=.
24349 if test -z "$ac_top_builddir"; then
24350 ac_top_srcdir=.
24351 else
24352 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24353 fi ;;
24354 [\\/]* | ?:[\\/]* ) # Absolute path.
24355 ac_srcdir=$srcdir$ac_dir_suffix;
24356 ac_top_srcdir=$srcdir ;;
24357 *) # Relative path.
24358 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24359 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24360esac
24361# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24362# absolute.
24363ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024364ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024365ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24366ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24367
24368
24369 case $INSTALL in
24370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24371 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24372 esac
24373
24374 if test x"$ac_file" != x-; then
24375 { echo "$as_me:$LINENO: creating $ac_file" >&5
24376echo "$as_me: creating $ac_file" >&6;}
24377 rm -f "$ac_file"
24378 fi
24379 # Let's still pretend it is `configure' which instantiates (i.e., don't
24380 # use $as_me), people would be surprised to read:
24381 # /* config.h. Generated by config.status. */
24382 if test x"$ac_file" = x-; then
24383 configure_input=
24384 else
24385 configure_input="$ac_file. "
24386 fi
24387 configure_input=$configure_input"Generated from `echo $ac_file_in |
24388 sed 's,.*/,,'` by configure."
24389
24390 # First look for the input files in the build tree, otherwise in the
24391 # src tree.
24392 ac_file_inputs=`IFS=:
24393 for f in $ac_file_in; do
24394 case $f in
24395 -) echo $tmp/stdin ;;
24396 [\\/$]*)
24397 # Absolute (can't be DOS-style, as IFS=:)
24398 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24399echo "$as_me: error: cannot find input file: $f" >&2;}
24400 { (exit 1); exit 1; }; }
24401 echo $f;;
24402 *) # Relative
24403 if test -f "$f"; then
24404 # Build tree
24405 echo $f
24406 elif test -f "$srcdir/$f"; then
24407 # Source tree
24408 echo $srcdir/$f
24409 else
24410 # /dev/null tree
24411 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24412echo "$as_me: error: cannot find input file: $f" >&2;}
24413 { (exit 1); exit 1; }; }
24414 fi;;
24415 esac
24416 done` || { (exit 1); exit 1; }
24417_ACEOF
24418cat >>$CONFIG_STATUS <<_ACEOF
24419 sed "$ac_vpsub
24420$extrasub
24421_ACEOF
24422cat >>$CONFIG_STATUS <<\_ACEOF
24423:t
24424/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24425s,@configure_input@,$configure_input,;t t
24426s,@srcdir@,$ac_srcdir,;t t
24427s,@abs_srcdir@,$ac_abs_srcdir,;t t
24428s,@top_srcdir@,$ac_top_srcdir,;t t
24429s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24430s,@builddir@,$ac_builddir,;t t
24431s,@abs_builddir@,$ac_abs_builddir,;t t
24432s,@top_builddir@,$ac_top_builddir,;t t
24433s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24434s,@INSTALL@,$ac_INSTALL,;t t
24435" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24436 rm -f $tmp/stdin
24437 if test x"$ac_file" != x-; then
24438 mv $tmp/out $ac_file
24439 else
24440 cat $tmp/out
24441 rm -f $tmp/out
24442 fi
24443
24444done
24445_ACEOF
24446cat >>$CONFIG_STATUS <<\_ACEOF
24447
24448#
24449# CONFIG_HEADER section.
24450#
24451
24452# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24453# NAME is the cpp macro being defined and VALUE is the value it is being given.
24454#
24455# ac_d sets the value in "#define NAME VALUE" lines.
24456ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24457ac_dB='[ ].*$,\1#\2'
24458ac_dC=' '
24459ac_dD=',;t'
24460# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24461ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24462ac_uB='$,\1#\2define\3'
24463ac_uC=' '
24464ac_uD=',;t'
24465
24466for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24467 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24468 case $ac_file in
24469 - | *:- | *:-:* ) # input from stdin
24470 cat >$tmp/stdin
24471 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24472 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24473 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24474 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24475 * ) ac_file_in=$ac_file.in ;;
24476 esac
24477
24478 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24479echo "$as_me: creating $ac_file" >&6;}
24480
24481 # First look for the input files in the build tree, otherwise in the
24482 # src tree.
24483 ac_file_inputs=`IFS=:
24484 for f in $ac_file_in; do
24485 case $f in
24486 -) echo $tmp/stdin ;;
24487 [\\/$]*)
24488 # Absolute (can't be DOS-style, as IFS=:)
24489 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24490echo "$as_me: error: cannot find input file: $f" >&2;}
24491 { (exit 1); exit 1; }; }
24492 echo $f;;
24493 *) # Relative
24494 if test -f "$f"; then
24495 # Build tree
24496 echo $f
24497 elif test -f "$srcdir/$f"; then
24498 # Source tree
24499 echo $srcdir/$f
24500 else
24501 # /dev/null tree
24502 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24503echo "$as_me: error: cannot find input file: $f" >&2;}
24504 { (exit 1); exit 1; }; }
24505 fi;;
24506 esac
24507 done` || { (exit 1); exit 1; }
24508 # Remove the trailing spaces.
24509 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24510
24511_ACEOF
24512
24513# Transform confdefs.h into two sed scripts, `conftest.defines' and
24514# `conftest.undefs', that substitutes the proper values into
24515# config.h.in to produce config.h. The first handles `#define'
24516# templates, and the second `#undef' templates.
24517# And first: Protect against being on the right side of a sed subst in
24518# config.status. Protect against being in an unquoted here document
24519# in config.status.
24520rm -f conftest.defines conftest.undefs
24521# Using a here document instead of a string reduces the quoting nightmare.
24522# Putting comments in sed scripts is not portable.
24523#
24524# `end' is used to avoid that the second main sed command (meant for
24525# 0-ary CPP macros) applies to n-ary macro definitions.
24526# See the Autoconf documentation for `clear'.
24527cat >confdef2sed.sed <<\_ACEOF
24528s/[\\&,]/\\&/g
24529s,[\\$`],\\&,g
24530t clear
24531: clear
24532s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24533t end
24534s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24535: end
24536_ACEOF
24537# If some macros were called several times there might be several times
24538# the same #defines, which is useless. Nevertheless, we may not want to
24539# sort them, since we want the *last* AC-DEFINE to be honored.
24540uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24541sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24542rm -f confdef2sed.sed
24543
24544# This sed command replaces #undef with comments. This is necessary, for
24545# example, in the case of _POSIX_SOURCE, which is predefined and required
24546# on some systems where configure will not decide to define it.
24547cat >>conftest.undefs <<\_ACEOF
24548s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24549_ACEOF
24550
24551# Break up conftest.defines because some shells have a limit on the size
24552# of here documents, and old seds have small limits too (100 cmds).
24553echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024554echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024555echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24556echo ' :' >>$CONFIG_STATUS
24557rm -f conftest.tail
24558while grep . conftest.defines >/dev/null
24559do
24560 # Write a limited-size here document to $tmp/defines.sed.
24561 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24562 # Speed up: don't consider the non `#define' lines.
24563 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24564 # Work around the forget-to-reset-the-flag bug.
24565 echo 't clr' >>$CONFIG_STATUS
24566 echo ': clr' >>$CONFIG_STATUS
24567 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24568 echo 'CEOF
24569 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24570 rm -f $tmp/in
24571 mv $tmp/out $tmp/in
24572' >>$CONFIG_STATUS
24573 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24574 rm -f conftest.defines
24575 mv conftest.tail conftest.defines
24576done
24577rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024578echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024579echo >>$CONFIG_STATUS
24580
24581# Break up conftest.undefs because some shells have a limit on the size
24582# of here documents, and old seds have small limits too (100 cmds).
24583echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24584rm -f conftest.tail
24585while grep . conftest.undefs >/dev/null
24586do
24587 # Write a limited-size here document to $tmp/undefs.sed.
24588 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24589 # Speed up: don't consider the non `#undef'
24590 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24591 # Work around the forget-to-reset-the-flag bug.
24592 echo 't clr' >>$CONFIG_STATUS
24593 echo ': clr' >>$CONFIG_STATUS
24594 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24595 echo 'CEOF
24596 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24597 rm -f $tmp/in
24598 mv $tmp/out $tmp/in
24599' >>$CONFIG_STATUS
24600 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24601 rm -f conftest.undefs
24602 mv conftest.tail conftest.undefs
24603done
24604rm -f conftest.undefs
24605
24606cat >>$CONFIG_STATUS <<\_ACEOF
24607 # Let's still pretend it is `configure' which instantiates (i.e., don't
24608 # use $as_me), people would be surprised to read:
24609 # /* config.h. Generated by config.status. */
24610 if test x"$ac_file" = x-; then
24611 echo "/* Generated by configure. */" >$tmp/config.h
24612 else
24613 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24614 fi
24615 cat $tmp/in >>$tmp/config.h
24616 rm -f $tmp/in
24617 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024618 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024619 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24620echo "$as_me: $ac_file is unchanged" >&6;}
24621 else
24622 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24623$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24624 X"$ac_file" : 'X\(//\)[^/]' \| \
24625 X"$ac_file" : 'X\(//\)$' \| \
24626 X"$ac_file" : 'X\(/\)' \| \
24627 . : '\(.\)' 2>/dev/null ||
24628echo X"$ac_file" |
24629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24631 /^X\(\/\/\)$/{ s//\1/; q; }
24632 /^X\(\/\).*/{ s//\1/; q; }
24633 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024634 { if $as_mkdir_p; then
24635 mkdir -p "$ac_dir"
24636 else
24637 as_dir="$ac_dir"
24638 as_dirs=
24639 while test ! -d "$as_dir"; do
24640 as_dirs="$as_dir $as_dirs"
24641 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24642$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24643 X"$as_dir" : 'X\(//\)[^/]' \| \
24644 X"$as_dir" : 'X\(//\)$' \| \
24645 X"$as_dir" : 'X\(/\)' \| \
24646 . : '\(.\)' 2>/dev/null ||
24647echo X"$as_dir" |
24648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24650 /^X\(\/\/\)$/{ s//\1/; q; }
24651 /^X\(\/\).*/{ s//\1/; q; }
24652 s/.*/./; q'`
24653 done
24654 test ! -n "$as_dirs" || mkdir $as_dirs
24655 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24656echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24657 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024658
24659 rm -f $ac_file
24660 mv $tmp/config.h $ac_file
24661 fi
24662 else
24663 cat $tmp/config.h
24664 rm -f $tmp/config.h
24665 fi
24666done
24667_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024668cat >>$CONFIG_STATUS <<\_ACEOF
24669
24670#
24671# CONFIG_COMMANDS section.
24672#
24673for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24674 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24675 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24676 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24677$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24678 X"$ac_dest" : 'X\(//\)[^/]' \| \
24679 X"$ac_dest" : 'X\(//\)$' \| \
24680 X"$ac_dest" : 'X\(/\)' \| \
24681 . : '\(.\)' 2>/dev/null ||
24682echo X"$ac_dest" |
24683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24685 /^X\(\/\/\)$/{ s//\1/; q; }
24686 /^X\(\/\).*/{ s//\1/; q; }
24687 s/.*/./; q'`
24688 ac_builddir=.
24689
24690if test "$ac_dir" != .; then
24691 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24692 # A "../" for each directory in $ac_dir_suffix.
24693 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24694else
24695 ac_dir_suffix= ac_top_builddir=
24696fi
24697
24698case $srcdir in
24699 .) # No --srcdir option. We are building in place.
24700 ac_srcdir=.
24701 if test -z "$ac_top_builddir"; then
24702 ac_top_srcdir=.
24703 else
24704 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24705 fi ;;
24706 [\\/]* | ?:[\\/]* ) # Absolute path.
24707 ac_srcdir=$srcdir$ac_dir_suffix;
24708 ac_top_srcdir=$srcdir ;;
24709 *) # Relative path.
24710 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24711 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24712esac
24713# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24714# absolute.
24715ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024716ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024717ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24718ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24719
24720
24721 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24722echo "$as_me: executing $ac_dest commands" >&6;}
24723 case $ac_dest in
24724 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24725 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24726 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24727 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24728 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24729 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24730 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24731 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24732 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24733 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24734 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24735 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24736 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24737 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24738 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24739 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24740 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 +000024741 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24742 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24743 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24744 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24745 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 +000024746 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024747 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24748 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24749 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24750 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24751 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24752 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24753 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24754 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24755 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24756 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24757 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24758 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24759 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24760 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24761 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 +000024762 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 +000024763 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24764 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24765 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24766 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 +000024767 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 +000024768 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 +000024769 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24770 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 +000024771 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24772 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
John Criswell759c3ed2003-10-28 19:21:11 +000024773 runtime/libprofile/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libprofile/Makefile runtime/libprofile/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024774 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24775 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000024776 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24777 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 +000024778 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24779 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24780 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24781 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24782 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24783 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24784 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24785 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24786 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24787 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24788 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24789 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24790 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24791 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24792 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24793 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24794 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24795 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 +000024796 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 +000024797 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 +000024798 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 +000024799 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 ;;
24800 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 ;;
24801 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 ;;
24802 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 ;;
24803 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 ;;
24804 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 ;;
24805 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 ;;
24806 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 ;;
24807 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 ;;
24808 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 +000024809 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 ;;
24810 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 +000024811 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 ;;
24812 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 ;;
24813 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 ;;
24814 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 ;;
24815 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24816 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24817 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 +000024818 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24819 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 +000024820 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 ;;
24821 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 +000024822 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24823 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 ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000024824 test/Programs/MultiSource/Benchmarks/FreeBench/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/Makefile ;;
24825 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile ;;
24826 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
24827 test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
24828 test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
24829 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
24830 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
24831 test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
24832 test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
24833 test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
24834 test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
24835 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
24836 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
24837 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
24838 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024839 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 ;;
24840 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 ;;
24841 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 ;;
24842 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 ;;
24843 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 ;;
24844 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 ;;
24845 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 ;;
24846 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 ;;
24847 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 ;;
24848 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 ;;
24849 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 ;;
24850 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 ;;
24851 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 ;;
24852 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 ;;
24853 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 ;;
24854 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 ;;
24855 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 ;;
24856 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 ;;
24857 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 ;;
24858 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 ;;
24859 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 ;;
24860 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 +000024861 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 +000024862 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 ;;
24863 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 ;;
24864 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 ;;
24865 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 ;;
24866 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 ;;
24867 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 +000024868 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 +000024869 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 +000024870 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24871 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 +000024872 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24873 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24874 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 ;;
24875 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 ;;
24876 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 ;;
24877 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 +000024878 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 +000024879 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 +000024880 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 +000024881 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 +000024882 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 ;;
24883 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 +000024884 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 +000024885 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24886 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024887 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024888 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24889 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24890 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024891 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024892 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024893 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024894 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 +000024895 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 +000024896 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 +000024897 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 +000024898 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 +000024899 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 +000024900 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024901 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24902 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24903 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24904 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024905 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024906 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24907 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24908 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24909 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24910 esac
24911done
24912_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024913
24914cat >>$CONFIG_STATUS <<\_ACEOF
24915
24916{ (exit 0); exit 0; }
24917_ACEOF
24918chmod +x $CONFIG_STATUS
24919ac_clean_files=$ac_clean_files_save
24920
24921
24922# configure is writing to config.log, and then calls config.status.
24923# config.status does its own redirection, appending to config.log.
24924# Unfortunately, on DOS this fails, as config.log is still kept open
24925# by configure, so config.status won't be able to write to it; its
24926# output is simply discarded. So we exec the FD to /dev/null,
24927# effectively closing config.log, so it can be properly (re)opened and
24928# appended to by config.status. When coming back to configure, we
24929# need to make the FD available again.
24930if test "$no_create" != yes; then
24931 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024932 ac_config_status_args=
24933 test "$silent" = yes &&
24934 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024935 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024936 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024937 exec 5>>config.log
24938 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24939 # would make configure fail if this is the last instruction.
24940 $ac_cs_success || { (exit 1); exit 1; }
24941fi
24942
John Criswell12399a12003-09-30 15:55:44 +000024943#
24944# CONFIG_SUBDIRS section.
24945#
24946if test "$no_recursion" != yes; then
24947
24948 # Remove --cache-file and --srcdir arguments so they do not pile up.
24949 ac_sub_configure_args=
24950 ac_prev=
24951 for ac_arg in $ac_configure_args; do
24952 if test -n "$ac_prev"; then
24953 ac_prev=
24954 continue
24955 fi
24956 case $ac_arg in
24957 -cache-file | --cache-file | --cache-fil | --cache-fi \
24958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24959 ac_prev=cache_file ;;
24960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24962 | --c=*)
24963 ;;
24964 --config-cache | -C)
24965 ;;
24966 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24967 ac_prev=srcdir ;;
24968 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24969 ;;
24970 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24971 ac_prev=prefix ;;
24972 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24973 ;;
24974 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24975 esac
24976 done
24977
24978 # Always prepend --prefix to ensure using the same prefix
24979 # in subdir configurations.
24980 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24981
24982 ac_popdir=`pwd`
24983 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24984
24985 # Do not complain, so a configure script can configure whichever
24986 # parts of a large source tree are present.
24987 test -d $srcdir/$ac_dir || continue
24988
24989 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24990echo "$as_me: configuring in $ac_dir" >&6;}
24991 { if $as_mkdir_p; then
24992 mkdir -p "$ac_dir"
24993 else
24994 as_dir="$ac_dir"
24995 as_dirs=
24996 while test ! -d "$as_dir"; do
24997 as_dirs="$as_dir $as_dirs"
24998 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24999$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25000 X"$as_dir" : 'X\(//\)[^/]' \| \
25001 X"$as_dir" : 'X\(//\)$' \| \
25002 X"$as_dir" : 'X\(/\)' \| \
25003 . : '\(.\)' 2>/dev/null ||
25004echo X"$as_dir" |
25005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25006 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25007 /^X\(\/\/\)$/{ s//\1/; q; }
25008 /^X\(\/\).*/{ s//\1/; q; }
25009 s/.*/./; q'`
25010 done
25011 test ! -n "$as_dirs" || mkdir $as_dirs
25012 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25013echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25014 { (exit 1); exit 1; }; }; }
25015
25016 ac_builddir=.
25017
25018if test "$ac_dir" != .; then
25019 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25020 # A "../" for each directory in $ac_dir_suffix.
25021 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25022else
25023 ac_dir_suffix= ac_top_builddir=
25024fi
25025
25026case $srcdir in
25027 .) # No --srcdir option. We are building in place.
25028 ac_srcdir=.
25029 if test -z "$ac_top_builddir"; then
25030 ac_top_srcdir=.
25031 else
25032 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25033 fi ;;
25034 [\\/]* | ?:[\\/]* ) # Absolute path.
25035 ac_srcdir=$srcdir$ac_dir_suffix;
25036 ac_top_srcdir=$srcdir ;;
25037 *) # Relative path.
25038 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25039 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25040esac
25041# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25042# absolute.
25043ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25044ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25045ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25046ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25047
25048
25049 cd $ac_dir
25050
25051 # Check for guested configure; otherwise get Cygnus style configure.
25052 if test -f $ac_srcdir/configure.gnu; then
25053 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25054 elif test -f $ac_srcdir/configure; then
25055 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25056 elif test -f $ac_srcdir/configure.in; then
25057 ac_sub_configure=$ac_configure
25058 else
25059 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25060echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25061 ac_sub_configure=
25062 fi
25063
25064 # The recursion is here.
25065 if test -n "$ac_sub_configure"; then
25066 # Make the cache file name correct relative to the subdirectory.
25067 case $cache_file in
25068 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25069 *) # Relative path.
25070 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25071 esac
25072
25073 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25074echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25075 # The eval makes quoting arguments work.
25076 eval $ac_sub_configure $ac_sub_configure_args \
25077 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25078 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25079echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25080 { (exit 1); exit 1; }; }
25081 fi
25082
25083 cd $ac_popdir
25084 done
25085fi
25086
Brian Gaekef3b24102003-11-16 18:38:14 +000025087
25088if test $llvmgccwarn = yes
25089then
25090 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25091echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25092 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25093echo "$as_me: WARNING: ***** appear to be working." >&2;}
25094 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25095echo "$as_me: WARNING: ***** " >&2;}
25096 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25097echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25098 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25099echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25100 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25101echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25102fi