blob: e58b733c8d78b8e9a326d39aa6a084a8c8240074 [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 Criswell0c38eaf2003-09-10 15:17:25 +00001697 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001698
1699
John Criswell0c38eaf2003-09-10 15:17:25 +00001700 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
John Criswellf424d742003-10-07 21:13:47 +00001703 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1704
1705
1706 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001707
1708
John Criswell0c38eaf2003-09-10 15:17:25 +00001709 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001710
1711
John Criswell0c38eaf2003-09-10 15:17:25 +00001712 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
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/TEST.aa.Makefile"
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.dsgraph.report"
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.micro.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.aa.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.example.Makefile"
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.nightly.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.buildrepo.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.jit.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.nightly.report"
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.dsgraph.Makefile"
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.jit.report"
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.typesafe.Makefile"
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.dsgraph.gnuplot"
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.micro.Makefile"
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/External/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/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001761
1762
John Criswell613758d2003-09-11 18:03:50 +00001763 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1764
1765
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001767
1768
John Criswell5ab73462003-10-09 15:44:28 +00001769 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1770
1771
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001773
1774
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/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/188.ammp/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/CINT2000/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/164.gzip/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/175.vpr/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/176.gcc/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/181.mcf/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/186.crafty/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/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001800
1801
John Criswell987e49c2003-10-10 01:11:54 +00001802 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/252.eon/Makefile"
1803
1804
1805 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile"
1806
1807
John Criswell0c38eaf2003-09-10 15:17:25 +00001808 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001809
1810
John Criswell0c38eaf2003-09-10 15:17:25 +00001811 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/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/256.bzip2/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/300.twolf/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/LLVMSource/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/MultiSource/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.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001827
1828
John Criswell48e3cb92003-09-12 16:31:43 +00001829 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
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/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001833
1834
John Criswell39e83892003-09-12 16:36:17 +00001835 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1836
1837
1838 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1839
1840
John Criswell48e3cb92003-09-12 16:31:43 +00001841 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001842
1843
John Criswell48e3cb92003-09-12 16:31:43 +00001844 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/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/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001848
1849
John Criswell48e3cb92003-09-12 16:31:43 +00001850 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001851
1852
John Criswell48e3cb92003-09-12 16:31:43 +00001853 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001854
1855
John Criswell48e3cb92003-09-12 16:31:43 +00001856 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001857
1858
John Criswell48e3cb92003-09-12 16:31:43 +00001859 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001860
1861
John Criswell48e3cb92003-09-12 16:31:43 +00001862 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001863
1864
John Criswell48e3cb92003-09-12 16:31:43 +00001865 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001866
1867
John Criswell48e3cb92003-09-12 16:31:43 +00001868 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001869
1870
John Criswell48e3cb92003-09-12 16:31:43 +00001871 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001872
1873
John Criswell48e3cb92003-09-12 16:31:43 +00001874 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001875
1876
John Criswell48e3cb92003-09-12 16:31:43 +00001877 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001878
1879
John Criswell48e3cb92003-09-12 16:31:43 +00001880 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001881
1882
John Criswell48e3cb92003-09-12 16:31:43 +00001883 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001884
1885
John Criswell48e3cb92003-09-12 16:31:43 +00001886 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001887
1888
John Criswell48e3cb92003-09-12 16:31:43 +00001889 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001890
1891
John Criswell48e3cb92003-09-12 16:31:43 +00001892 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001893
1894
John Criswell48e3cb92003-09-12 16:31:43 +00001895 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001896
1897
John Criswell48e3cb92003-09-12 16:31:43 +00001898 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001899
1900
John Criswell48e3cb92003-09-12 16:31:43 +00001901 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001902
1903
John Criswell48e3cb92003-09-12 16:31:43 +00001904 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1905
1906
1907 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1908
1909
1910 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001911
1912
John Criswell39e83892003-09-12 16:36:17 +00001913 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/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/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001917
1918
John Criswell48e3cb92003-09-12 16:31:43 +00001919 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001920
1921
John Criswell48e3cb92003-09-12 16:31:43 +00001922 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001923
1924
John Criswell48e3cb92003-09-12 16:31:43 +00001925 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001926
1927
John Criswell48e3cb92003-09-12 16:31:43 +00001928 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001929
1930
John Criswell48e3cb92003-09-12 16:31:43 +00001931 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/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/llubenchmark/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/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001938
1939
John Criswell0c38eaf2003-09-10 15:17:25 +00001940 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001941
1942
John Criswell0c38eaf2003-09-10 15:17:25 +00001943 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001944
1945
John Criswellffaaf3b2003-09-10 18:38:44 +00001946 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1947
1948
1949 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1950
1951
1952 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1953
1954
1955 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1956
1957
1958 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1959
1960
1961 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1962
1963
John Criswell0c38eaf2003-09-10 15:17:25 +00001964 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001965
1966
John Criswell0c38eaf2003-09-10 15:17:25 +00001967 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001968
1969
John Criswell0afe8252003-09-11 20:53:48 +00001970 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1971
1972
John Criswell67181ca2003-09-26 14:53:17 +00001973 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1974
1975
John Criswell68886d42003-09-26 19:51:42 +00001976 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1977
1978
1979 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1980
1981
John Criswellc66bbd52003-09-29 21:35:32 +00001982 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1983
1984
John Criswell0c38eaf2003-09-10 15:17:25 +00001985 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001986
1987
John Criswell0c38eaf2003-09-10 15:17:25 +00001988 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001989
1990
John Criswell0c38eaf2003-09-10 15:17:25 +00001991 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001992
1993
John Criswell0c38eaf2003-09-10 15:17:25 +00001994 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001995
1996
John Criswell0c38eaf2003-09-10 15:17:25 +00001997 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001998
1999
John Criswell0c38eaf2003-09-10 15:17:25 +00002000 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002001
2002
John Criswell0c38eaf2003-09-10 15:17:25 +00002003 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002004
2005
John Criswell0c38eaf2003-09-10 15:17:25 +00002006 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002007
2008
John Criswellddb7b4e2003-09-16 15:54:19 +00002009 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002010
2011
Chris Lattnerebd70302003-09-13 03:29:53 +00002012 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2013
2014
John Criswellddb7b4e2003-09-16 15:54:19 +00002015 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2016
2017
John Criswell0c38eaf2003-09-10 15:17:25 +00002018 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002019
2020
John Criswellddb7b4e2003-09-16 15:54:19 +00002021 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2022
2023
2024 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2025
2026
Brian Gaekec45be042003-10-07 06:01:34 +00002027 ac_config_commands="$ac_config_commands utils/Makefile"
2028
2029
2030 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2031
2032
2033 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2034
2035
2036 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2037
2038
John Criswell0c38eaf2003-09-10 15:17:25 +00002039 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002040
2041
John Criswell0c38eaf2003-09-10 15:17:25 +00002042 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002043
2044
John Criswell0c38eaf2003-09-10 15:17:25 +00002045 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002046
2047
John Criswell0c38eaf2003-09-10 15:17:25 +00002048 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002049
2050
John Criswell0c38eaf2003-09-10 15:17:25 +00002051 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002052
2053
John Criswell392aaa32003-07-22 19:18:09 +00002054
2055
John Criswell7a73b802003-06-30 21:59:07 +00002056# Find a good install program. We prefer a C program (faster),
2057# so one script is as good as another. But avoid the broken or
2058# incompatible versions:
2059# SysV /etc/install, /usr/sbin/install
2060# SunOS /usr/etc/install
2061# IRIX /sbin/install
2062# AIX /bin/install
2063# AmigaOS /C/install, which installs bootblocks on floppy discs
2064# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2065# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2066# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2067# ./install, which can be erroneously created by make from ./install.sh.
2068echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2069echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2070if test -z "$INSTALL"; then
2071if test "${ac_cv_path_install+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075for as_dir in $PATH
2076do
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 # Account for people who put trailing slashes in PATH elements.
2080case $as_dir/ in
2081 ./ | .// | /cC/* | \
2082 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2083 /usr/ucb/* ) ;;
2084 *)
2085 # OSF1 and SCO ODT 3.0 have their own names for install.
2086 # Don't use installbsd from OSF since it installs stuff as root
2087 # by default.
2088 for ac_prog in ginstall scoinst install; do
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2091 if test $ac_prog = install &&
2092 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2093 # AIX install. It has an incompatible calling convention.
2094 :
2095 elif test $ac_prog = install &&
2096 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2097 # program-specific install script used by HP pwplus--don't use.
2098 :
2099 else
2100 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2101 break 3
2102 fi
2103 fi
2104 done
2105 done
2106 ;;
2107esac
2108done
2109
2110
2111fi
2112 if test "${ac_cv_path_install+set}" = set; then
2113 INSTALL=$ac_cv_path_install
2114 else
2115 # As a last resort, use the slow shell script. We don't cache a
2116 # path for INSTALL within a source directory, because that will
2117 # break other packages using the cache if that directory is
2118 # removed, or if the path is relative.
2119 INSTALL=$ac_install_sh
2120 fi
2121fi
2122echo "$as_me:$LINENO: result: $INSTALL" >&5
2123echo "${ECHO_T}$INSTALL" >&6
2124
2125# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2126# It thinks the first close brace ends the variable substitution.
2127test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2128
2129test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2130
2131test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2132
2133
2134# Make sure we can run config.sub.
2135$ac_config_sub sun4 >/dev/null 2>&1 ||
2136 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2137echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2138 { (exit 1); exit 1; }; }
2139
2140echo "$as_me:$LINENO: checking build system type" >&5
2141echo $ECHO_N "checking build system type... $ECHO_C" >&6
2142if test "${ac_cv_build+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144else
2145 ac_cv_build_alias=$build_alias
2146test -z "$ac_cv_build_alias" &&
2147 ac_cv_build_alias=`$ac_config_guess`
2148test -z "$ac_cv_build_alias" &&
2149 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2150echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2151 { (exit 1); exit 1; }; }
2152ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2153 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2154echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2155 { (exit 1); exit 1; }; }
2156
2157fi
2158echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2159echo "${ECHO_T}$ac_cv_build" >&6
2160build=$ac_cv_build
2161build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2162build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2163build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2164
2165
2166echo "$as_me:$LINENO: checking host system type" >&5
2167echo $ECHO_N "checking host system type... $ECHO_C" >&6
2168if test "${ac_cv_host+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
2171 ac_cv_host_alias=$host_alias
2172test -z "$ac_cv_host_alias" &&
2173 ac_cv_host_alias=$ac_cv_build_alias
2174ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2175 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2176echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2177 { (exit 1); exit 1; }; }
2178
2179fi
2180echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2181echo "${ECHO_T}$ac_cv_host" >&6
2182host=$ac_cv_host
2183host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2184host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2185host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2186
2187
2188echo "$as_me:$LINENO: checking target system type" >&5
2189echo $ECHO_N "checking target system type... $ECHO_C" >&6
2190if test "${ac_cv_target+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193 ac_cv_target_alias=$target_alias
2194test "x$ac_cv_target_alias" = "x" &&
2195 ac_cv_target_alias=$ac_cv_host_alias
2196ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2197 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2198echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2200
2201fi
2202echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2203echo "${ECHO_T}$ac_cv_target" >&6
2204target=$ac_cv_target
2205target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2206target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2207target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2208
2209
2210# The aliases save the names the user supplied, while $host etc.
2211# will get canonicalized.
2212test -n "$target_alias" &&
2213 test "$program_prefix$program_suffix$program_transform_name" = \
2214 NONENONEs,x,x, &&
2215 program_prefix=${target_alias}-
2216
2217case $build in
2218 *i*86*) OS=Linux
2219
John Criswellf02dbf02003-07-22 20:07:49 +00002220 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002221
2222 ;;
2223
2224 *sparc*) OS=SunOS
2225
2226 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2227
2228 ;;
2229
2230 *) OS=Unknown
2231
2232 ;;
2233esac
2234
2235case $target in
2236 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2237
2238 ;;
2239esac
2240
John Criswell76595452003-07-01 22:07:39 +00002241case $target in
2242 *i*86*) ARCH=x86
2243
2244 ;;
2245 *sparc*solaris*) ARCH=Sparc
2246
2247 ;;
2248esac
2249
John Criswell7a73b802003-06-30 21:59:07 +00002250
2251ac_ext=cc
2252ac_cpp='$CXXCPP $CPPFLAGS'
2253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2256if test -n "$ac_tool_prefix"; then
2257 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2258 do
2259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2260set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2261echo "$as_me:$LINENO: checking for $ac_word" >&5
2262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263if test "${ac_cv_prog_CXX+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265else
2266 if test -n "$CXX"; then
2267 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2268else
2269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270for as_dir in $PATH
2271do
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 break 2
2279 fi
2280done
2281done
2282
2283fi
2284fi
2285CXX=$ac_cv_prog_CXX
2286if test -n "$CXX"; then
2287 echo "$as_me:$LINENO: result: $CXX" >&5
2288echo "${ECHO_T}$CXX" >&6
2289else
2290 echo "$as_me:$LINENO: result: no" >&5
2291echo "${ECHO_T}no" >&6
2292fi
2293
2294 test -n "$CXX" && break
2295 done
2296fi
2297if test -z "$CXX"; then
2298 ac_ct_CXX=$CXX
2299 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2300do
2301 # Extract the first word of "$ac_prog", so it can be a program name with args.
2302set dummy $ac_prog; ac_word=$2
2303echo "$as_me:$LINENO: checking for $ac_word" >&5
2304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2307else
2308 if test -n "$ac_ct_CXX"; then
2309 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2310else
2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312for as_dir in $PATH
2313do
2314 IFS=$as_save_IFS
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318 ac_cv_prog_ac_ct_CXX="$ac_prog"
2319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 break 2
2321 fi
2322done
2323done
2324
2325fi
2326fi
2327ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2328if test -n "$ac_ct_CXX"; then
2329 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2330echo "${ECHO_T}$ac_ct_CXX" >&6
2331else
2332 echo "$as_me:$LINENO: result: no" >&5
2333echo "${ECHO_T}no" >&6
2334fi
2335
2336 test -n "$ac_ct_CXX" && break
2337done
2338test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2339
2340 CXX=$ac_ct_CXX
2341fi
2342
2343
2344# Provide some information about the compiler.
2345echo "$as_me:$LINENO:" \
2346 "checking for C++ compiler version" >&5
2347ac_compiler=`set X $ac_compile; echo $2`
2348{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2349 (eval $ac_compiler --version </dev/null >&5) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }
2353{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2354 (eval $ac_compiler -v </dev/null >&5) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }
2358{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2359 (eval $ac_compiler -V </dev/null >&5) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }
2363
2364cat >conftest.$ac_ext <<_ACEOF
2365#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002366/* confdefs.h. */
2367_ACEOF
2368cat confdefs.h >>conftest.$ac_ext
2369cat >>conftest.$ac_ext <<_ACEOF
2370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002371
John Criswell7a73b802003-06-30 21:59:07 +00002372int
2373main ()
2374{
2375
2376 ;
2377 return 0;
2378}
2379_ACEOF
2380ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002381ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002382# Try to create an executable without -o first, disregard a.out.
2383# It will help us diagnose broken compilers, and finding out an intuition
2384# of exeext.
2385echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2386echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2387ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2388if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2389 (eval $ac_link_default) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; then
2393 # Find the output, starting from the most likely. This scheme is
2394# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2395# resort.
2396
2397# Be careful to initialize this variable, since it used to be cached.
2398# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2399ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002400# b.out is created by i960 compilers.
2401for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2402do
2403 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002404 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2406 ;;
2407 conftest.$ac_ext )
2408 # This is the source file.
2409 ;;
2410 [ab].out )
2411 # We found the default executable, but exeext='' is most
2412 # certainly right.
2413 break;;
2414 *.* )
2415 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2416 # FIXME: I believe we export ac_cv_exeext for Libtool,
2417 # but it would be cool to find out if it's true. Does anybody
2418 # maintain Libtool? --akim.
2419 export ac_cv_exeext
2420 break;;
2421 * )
2422 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002423 esac
2424done
2425else
2426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002427sed 's/^/| /' conftest.$ac_ext >&5
2428
2429{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2430See \`config.log' for more details." >&5
2431echo "$as_me: error: C++ compiler cannot create executables
2432See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002433 { (exit 77); exit 77; }; }
2434fi
2435
2436ac_exeext=$ac_cv_exeext
2437echo "$as_me:$LINENO: result: $ac_file" >&5
2438echo "${ECHO_T}$ac_file" >&6
2439
2440# Check the compiler produces executables we can run. If not, either
2441# the compiler is broken, or we cross compile.
2442echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2443echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2444# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2445# If not cross compiling, check that we can run a simple program.
2446if test "$cross_compiling" != yes; then
2447 if { ac_try='./$ac_file'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 (eval $ac_try) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2453 cross_compiling=no
2454 else
2455 if test "$cross_compiling" = maybe; then
2456 cross_compiling=yes
2457 else
2458 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002459If you meant to cross compile, use \`--host'.
2460See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002461echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002462If you meant to cross compile, use \`--host'.
2463See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002464 { (exit 1); exit 1; }; }
2465 fi
2466 fi
2467fi
2468echo "$as_me:$LINENO: result: yes" >&5
2469echo "${ECHO_T}yes" >&6
2470
John Criswell0c38eaf2003-09-10 15:17:25 +00002471rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002472ac_clean_files=$ac_clean_files_save
2473# Check the compiler produces executables we can run. If not, either
2474# the compiler is broken, or we cross compile.
2475echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2476echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2477echo "$as_me:$LINENO: result: $cross_compiling" >&5
2478echo "${ECHO_T}$cross_compiling" >&6
2479
2480echo "$as_me:$LINENO: checking for suffix of executables" >&5
2481echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2483 (eval $ac_link) 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; then
2487 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2488# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2489# work properly (i.e., refer to `conftest.exe'), while it won't with
2490# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002491for ac_file in conftest.exe conftest conftest.*; do
2492 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002493 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002495 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2496 export ac_cv_exeext
2497 break;;
2498 * ) break;;
2499 esac
2500done
2501else
John Criswell0c38eaf2003-09-10 15:17:25 +00002502 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2503See \`config.log' for more details." >&5
2504echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2505See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002506 { (exit 1); exit 1; }; }
2507fi
2508
2509rm -f conftest$ac_cv_exeext
2510echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2511echo "${ECHO_T}$ac_cv_exeext" >&6
2512
2513rm -f conftest.$ac_ext
2514EXEEXT=$ac_cv_exeext
2515ac_exeext=$EXEEXT
2516echo "$as_me:$LINENO: checking for suffix of object files" >&5
2517echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2518if test "${ac_cv_objext+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2520else
2521 cat >conftest.$ac_ext <<_ACEOF
2522#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002523/* confdefs.h. */
2524_ACEOF
2525cat confdefs.h >>conftest.$ac_ext
2526cat >>conftest.$ac_ext <<_ACEOF
2527/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002528
John Criswell7a73b802003-06-30 21:59:07 +00002529int
2530main ()
2531{
2532
2533 ;
2534 return 0;
2535}
2536_ACEOF
2537rm -f conftest.o conftest.obj
2538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539 (eval $ac_compile) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; then
2543 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2544 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002546 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2547 break;;
2548 esac
2549done
2550else
2551 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002552sed 's/^/| /' conftest.$ac_ext >&5
2553
2554{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2555See \`config.log' for more details." >&5
2556echo "$as_me: error: cannot compute suffix of object files: cannot compile
2557See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002558 { (exit 1); exit 1; }; }
2559fi
2560
2561rm -f conftest.$ac_cv_objext conftest.$ac_ext
2562fi
2563echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2564echo "${ECHO_T}$ac_cv_objext" >&6
2565OBJEXT=$ac_cv_objext
2566ac_objext=$OBJEXT
2567echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2568echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2569if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571else
2572 cat >conftest.$ac_ext <<_ACEOF
2573#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002574/* confdefs.h. */
2575_ACEOF
2576cat confdefs.h >>conftest.$ac_ext
2577cat >>conftest.$ac_ext <<_ACEOF
2578/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002579
John Criswell7a73b802003-06-30 21:59:07 +00002580int
2581main ()
2582{
2583#ifndef __GNUC__
2584 choke me
2585#endif
2586
2587 ;
2588 return 0;
2589}
2590_ACEOF
2591rm -f conftest.$ac_objext
2592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>&5
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } &&
2597 { ac_try='test -s conftest.$ac_objext'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 (eval $ac_try) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; }; then
2603 ac_compiler_gnu=yes
2604else
2605 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002606sed 's/^/| /' conftest.$ac_ext >&5
2607
John Criswell7a73b802003-06-30 21:59:07 +00002608ac_compiler_gnu=no
2609fi
2610rm -f conftest.$ac_objext conftest.$ac_ext
2611ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2612
2613fi
2614echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2615echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2616GXX=`test $ac_compiler_gnu = yes && echo yes`
2617ac_test_CXXFLAGS=${CXXFLAGS+set}
2618ac_save_CXXFLAGS=$CXXFLAGS
2619CXXFLAGS="-g"
2620echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2621echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2622if test "${ac_cv_prog_cxx_g+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2624else
2625 cat >conftest.$ac_ext <<_ACEOF
2626#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002627/* confdefs.h. */
2628_ACEOF
2629cat confdefs.h >>conftest.$ac_ext
2630cat >>conftest.$ac_ext <<_ACEOF
2631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002632
John Criswell7a73b802003-06-30 21:59:07 +00002633int
2634main ()
2635{
2636
2637 ;
2638 return 0;
2639}
2640_ACEOF
2641rm -f conftest.$ac_objext
2642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } &&
2647 { ac_try='test -s conftest.$ac_objext'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 (eval $ac_try) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; }; then
2653 ac_cv_prog_cxx_g=yes
2654else
2655 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002656sed 's/^/| /' conftest.$ac_ext >&5
2657
John Criswell7a73b802003-06-30 21:59:07 +00002658ac_cv_prog_cxx_g=no
2659fi
2660rm -f conftest.$ac_objext conftest.$ac_ext
2661fi
2662echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2663echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2664if test "$ac_test_CXXFLAGS" = set; then
2665 CXXFLAGS=$ac_save_CXXFLAGS
2666elif test $ac_cv_prog_cxx_g = yes; then
2667 if test "$GXX" = yes; then
2668 CXXFLAGS="-g -O2"
2669 else
2670 CXXFLAGS="-g"
2671 fi
2672else
2673 if test "$GXX" = yes; then
2674 CXXFLAGS="-O2"
2675 else
2676 CXXFLAGS=
2677 fi
2678fi
2679for ac_declaration in \
2680 ''\
2681 '#include <stdlib.h>' \
2682 'extern "C" void std::exit (int) throw (); using std::exit;' \
2683 'extern "C" void std::exit (int); using std::exit;' \
2684 'extern "C" void exit (int) throw ();' \
2685 'extern "C" void exit (int);' \
2686 'void exit (int);'
2687do
2688 cat >conftest.$ac_ext <<_ACEOF
2689#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002690/* confdefs.h. */
2691_ACEOF
2692cat confdefs.h >>conftest.$ac_ext
2693cat >>conftest.$ac_ext <<_ACEOF
2694/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002695#include <stdlib.h>
2696$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002697int
2698main ()
2699{
2700exit (42);
2701 ;
2702 return 0;
2703}
2704_ACEOF
2705rm -f conftest.$ac_objext
2706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 :
2718else
2719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002720sed 's/^/| /' conftest.$ac_ext >&5
2721
John Criswell7a73b802003-06-30 21:59:07 +00002722continue
2723fi
2724rm -f conftest.$ac_objext conftest.$ac_ext
2725 cat >conftest.$ac_ext <<_ACEOF
2726#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002727/* confdefs.h. */
2728_ACEOF
2729cat confdefs.h >>conftest.$ac_ext
2730cat >>conftest.$ac_ext <<_ACEOF
2731/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002732$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002733int
2734main ()
2735{
2736exit (42);
2737 ;
2738 return 0;
2739}
2740_ACEOF
2741rm -f conftest.$ac_objext
2742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743 (eval $ac_compile) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 break
2754else
2755 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002756sed 's/^/| /' conftest.$ac_ext >&5
2757
John Criswell7a73b802003-06-30 21:59:07 +00002758fi
2759rm -f conftest.$ac_objext conftest.$ac_ext
2760done
2761rm -f conftest*
2762if test -n "$ac_declaration"; then
2763 echo '#ifdef __cplusplus' >>confdefs.h
2764 echo $ac_declaration >>confdefs.h
2765 echo '#endif' >>confdefs.h
2766fi
2767
2768ac_ext=c
2769ac_cpp='$CPP $CPPFLAGS'
2770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
2774ac_ext=c
2775ac_cpp='$CPP $CPPFLAGS'
2776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779if test -n "$ac_tool_prefix"; then
2780 for ac_prog in gcc
2781 do
2782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2783set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2784echo "$as_me:$LINENO: checking for $ac_word" >&5
2785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2786if test "${ac_cv_prog_CC+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788else
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803done
2804done
2805
2806fi
2807fi
2808CC=$ac_cv_prog_CC
2809if test -n "$CC"; then
2810 echo "$as_me:$LINENO: result: $CC" >&5
2811echo "${ECHO_T}$CC" >&6
2812else
2813 echo "$as_me:$LINENO: result: no" >&5
2814echo "${ECHO_T}no" >&6
2815fi
2816
2817 test -n "$CC" && break
2818 done
2819fi
2820if test -z "$CC"; then
2821 ac_ct_CC=$CC
2822 for ac_prog in gcc
2823do
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825set dummy $ac_prog; ac_word=$2
2826echo "$as_me:$LINENO: checking for $ac_word" >&5
2827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830else
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_ac_ct_CC="$ac_prog"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845done
2846done
2847
2848fi
2849fi
2850ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851if test -n "$ac_ct_CC"; then
2852 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2853echo "${ECHO_T}$ac_ct_CC" >&6
2854else
2855 echo "$as_me:$LINENO: result: no" >&5
2856echo "${ECHO_T}no" >&6
2857fi
2858
2859 test -n "$ac_ct_CC" && break
2860done
2861
2862 CC=$ac_ct_CC
2863fi
2864
2865
John Criswell0c38eaf2003-09-10 15:17:25 +00002866test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2867See \`config.log' for more details." >&5
2868echo "$as_me: error: no acceptable C compiler found in \$PATH
2869See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002870 { (exit 1); exit 1; }; }
2871
2872# Provide some information about the compiler.
2873echo "$as_me:$LINENO:" \
2874 "checking for C compiler version" >&5
2875ac_compiler=`set X $ac_compile; echo $2`
2876{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2877 (eval $ac_compiler --version </dev/null >&5) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }
2881{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2882 (eval $ac_compiler -v </dev/null >&5) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2887 (eval $ac_compiler -V </dev/null >&5) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }
2891
2892echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2893echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2894if test "${ac_cv_c_compiler_gnu+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2896else
2897 cat >conftest.$ac_ext <<_ACEOF
2898#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002899/* confdefs.h. */
2900_ACEOF
2901cat confdefs.h >>conftest.$ac_ext
2902cat >>conftest.$ac_ext <<_ACEOF
2903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002904
John Criswell7a73b802003-06-30 21:59:07 +00002905int
2906main ()
2907{
2908#ifndef __GNUC__
2909 choke me
2910#endif
2911
2912 ;
2913 return 0;
2914}
2915_ACEOF
2916rm -f conftest.$ac_objext
2917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918 (eval $ac_compile) 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } &&
2922 { ac_try='test -s conftest.$ac_objext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 ac_compiler_gnu=yes
2929else
2930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002931sed 's/^/| /' conftest.$ac_ext >&5
2932
John Criswell7a73b802003-06-30 21:59:07 +00002933ac_compiler_gnu=no
2934fi
2935rm -f conftest.$ac_objext conftest.$ac_ext
2936ac_cv_c_compiler_gnu=$ac_compiler_gnu
2937
2938fi
2939echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2940echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2941GCC=`test $ac_compiler_gnu = yes && echo yes`
2942ac_test_CFLAGS=${CFLAGS+set}
2943ac_save_CFLAGS=$CFLAGS
2944CFLAGS="-g"
2945echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2946echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2947if test "${ac_cv_prog_cc_g+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2949else
2950 cat >conftest.$ac_ext <<_ACEOF
2951#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002952/* confdefs.h. */
2953_ACEOF
2954cat confdefs.h >>conftest.$ac_ext
2955cat >>conftest.$ac_ext <<_ACEOF
2956/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002957
John Criswell7a73b802003-06-30 21:59:07 +00002958int
2959main ()
2960{
2961
2962 ;
2963 return 0;
2964}
2965_ACEOF
2966rm -f conftest.$ac_objext
2967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2968 (eval $ac_compile) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
2972 { ac_try='test -s conftest.$ac_objext'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 (eval $ac_try) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2978 ac_cv_prog_cc_g=yes
2979else
2980 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002981sed 's/^/| /' conftest.$ac_ext >&5
2982
John Criswell7a73b802003-06-30 21:59:07 +00002983ac_cv_prog_cc_g=no
2984fi
2985rm -f conftest.$ac_objext conftest.$ac_ext
2986fi
2987echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2988echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2989if test "$ac_test_CFLAGS" = set; then
2990 CFLAGS=$ac_save_CFLAGS
2991elif test $ac_cv_prog_cc_g = yes; then
2992 if test "$GCC" = yes; then
2993 CFLAGS="-g -O2"
2994 else
2995 CFLAGS="-g"
2996 fi
2997else
2998 if test "$GCC" = yes; then
2999 CFLAGS="-O2"
3000 else
3001 CFLAGS=
3002 fi
3003fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003004echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3005echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3006if test "${ac_cv_prog_cc_stdc+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009 ac_cv_prog_cc_stdc=no
3010ac_save_CC=$CC
3011cat >conftest.$ac_ext <<_ACEOF
3012#line $LINENO "configure"
3013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h. */
3018#include <stdarg.h>
3019#include <stdio.h>
3020#include <sys/types.h>
3021#include <sys/stat.h>
3022/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3023struct buf { int x; };
3024FILE * (*rcsopen) (struct buf *, struct stat *, int);
3025static char *e (p, i)
3026 char **p;
3027 int i;
3028{
3029 return p[i];
3030}
3031static char *f (char * (*g) (char **, int), char **p, ...)
3032{
3033 char *s;
3034 va_list v;
3035 va_start (v,p);
3036 s = g (p, va_arg (v,int));
3037 va_end (v);
3038 return s;
3039}
3040int test (int i, double x);
3041struct s1 {int (*f) (int a);};
3042struct s2 {int (*f) (double a);};
3043int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3044int argc;
3045char **argv;
3046int
3047main ()
3048{
3049return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3050 ;
3051 return 0;
3052}
3053_ACEOF
3054# Don't try gcc -ansi; that turns off useful extensions and
3055# breaks some systems' header files.
3056# AIX -qlanglvl=ansi
3057# Ultrix and OSF/1 -std1
3058# HP-UX 10.20 and later -Ae
3059# HP-UX older versions -Aa -D_HPUX_SOURCE
3060# SVR4 -Xc -D__EXTENSIONS__
3061for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3062do
3063 CC="$ac_save_CC $ac_arg"
3064 rm -f conftest.$ac_objext
3065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066 (eval $ac_compile) 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 (eval $ac_try) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 ac_cv_prog_cc_stdc=$ac_arg
3077break
3078else
3079 echo "$as_me: failed program was:" >&5
3080sed 's/^/| /' conftest.$ac_ext >&5
3081
3082fi
3083rm -f conftest.$ac_objext
3084done
3085rm -f conftest.$ac_ext conftest.$ac_objext
3086CC=$ac_save_CC
3087
3088fi
3089
3090case "x$ac_cv_prog_cc_stdc" in
3091 x|xno)
3092 echo "$as_me:$LINENO: result: none needed" >&5
3093echo "${ECHO_T}none needed" >&6 ;;
3094 *)
3095 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3096echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3097 CC="$CC $ac_cv_prog_cc_stdc" ;;
3098esac
3099
John Criswell7a73b802003-06-30 21:59:07 +00003100# Some people use a C++ compiler to compile C. Since we use `exit',
3101# in C++ we need to declare it. In case someone uses the same compiler
3102# for both compiling C and C++ we need to have the C++ compiler decide
3103# the declaration of exit, since it's the most demanding environment.
3104cat >conftest.$ac_ext <<_ACEOF
3105#ifndef __cplusplus
3106 choke me
3107#endif
3108_ACEOF
3109rm -f conftest.$ac_objext
3110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111 (eval $ac_compile) 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
3115 { ac_try='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117 (eval $ac_try) 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 for ac_declaration in \
3122 ''\
3123 '#include <stdlib.h>' \
3124 'extern "C" void std::exit (int) throw (); using std::exit;' \
3125 'extern "C" void std::exit (int); using std::exit;' \
3126 'extern "C" void exit (int) throw ();' \
3127 'extern "C" void exit (int);' \
3128 'void exit (int);'
3129do
3130 cat >conftest.$ac_ext <<_ACEOF
3131#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003132/* confdefs.h. */
3133_ACEOF
3134cat confdefs.h >>conftest.$ac_ext
3135cat >>conftest.$ac_ext <<_ACEOF
3136/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003137#include <stdlib.h>
3138$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003139int
3140main ()
3141{
3142exit (42);
3143 ;
3144 return 0;
3145}
3146_ACEOF
3147rm -f conftest.$ac_objext
3148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3149 (eval $ac_compile) 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 (eval $ac_try) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 :
3160else
3161 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003162sed 's/^/| /' conftest.$ac_ext >&5
3163
John Criswell7a73b802003-06-30 21:59:07 +00003164continue
3165fi
3166rm -f conftest.$ac_objext conftest.$ac_ext
3167 cat >conftest.$ac_ext <<_ACEOF
3168#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003169/* confdefs.h. */
3170_ACEOF
3171cat confdefs.h >>conftest.$ac_ext
3172cat >>conftest.$ac_ext <<_ACEOF
3173/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003174$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003175int
3176main ()
3177{
3178exit (42);
3179 ;
3180 return 0;
3181}
3182_ACEOF
3183rm -f conftest.$ac_objext
3184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3185 (eval $ac_compile) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 (eval $ac_try) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3195 break
3196else
3197 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003198sed 's/^/| /' conftest.$ac_ext >&5
3199
John Criswell7a73b802003-06-30 21:59:07 +00003200fi
3201rm -f conftest.$ac_objext conftest.$ac_ext
3202done
3203rm -f conftest*
3204if test -n "$ac_declaration"; then
3205 echo '#ifdef __cplusplus' >>confdefs.h
3206 echo $ac_declaration >>confdefs.h
3207 echo '#endif' >>confdefs.h
3208fi
3209
3210else
3211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003212sed 's/^/| /' conftest.$ac_ext >&5
3213
John Criswell7a73b802003-06-30 21:59:07 +00003214fi
3215rm -f conftest.$ac_objext conftest.$ac_ext
3216ac_ext=c
3217ac_cpp='$CPP $CPPFLAGS'
3218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221
3222ac_ext=c
3223ac_cpp='$CPP $CPPFLAGS'
3224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3228echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3229# On Suns, sometimes $CPP names a directory.
3230if test -n "$CPP" && test -d "$CPP"; then
3231 CPP=
3232fi
3233if test -z "$CPP"; then
3234 if test "${ac_cv_prog_CPP+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236else
3237 # Double quotes because CPP needs to be expanded
3238 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3239 do
3240 ac_preproc_ok=false
3241for ac_c_preproc_warn_flag in '' yes
3242do
3243 # Use a header file that comes with gcc, so configuring glibc
3244 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003247 # On the NeXT, cc -E runs the code through the compiler's parser,
3248 # not just through cpp. "Syntax error" is here to catch this case.
3249 cat >conftest.$ac_ext <<_ACEOF
3250#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003251/* confdefs.h. */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h. */
3256#ifdef __STDC__
3257# include <limits.h>
3258#else
3259# include <assert.h>
3260#endif
John Criswell7a73b802003-06-30 21:59:07 +00003261 Syntax error
3262_ACEOF
3263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3265 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003266 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003267 rm -f conftest.er1
3268 cat conftest.err >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } >/dev/null; then
3271 if test -s conftest.err; then
3272 ac_cpp_err=$ac_c_preproc_warn_flag
3273 else
3274 ac_cpp_err=
3275 fi
3276else
3277 ac_cpp_err=yes
3278fi
3279if test -z "$ac_cpp_err"; then
3280 :
3281else
3282 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003283sed 's/^/| /' conftest.$ac_ext >&5
3284
John Criswell7a73b802003-06-30 21:59:07 +00003285 # Broken: fails on valid input.
3286continue
3287fi
3288rm -f conftest.err conftest.$ac_ext
3289
3290 # OK, works on sane cases. Now check whether non-existent headers
3291 # can be detected and how.
3292 cat >conftest.$ac_ext <<_ACEOF
3293#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003294/* confdefs.h. */
3295_ACEOF
3296cat confdefs.h >>conftest.$ac_ext
3297cat >>conftest.$ac_ext <<_ACEOF
3298/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003299#include <ac_nonexistent.h>
3300_ACEOF
3301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3303 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003304 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003305 rm -f conftest.er1
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } >/dev/null; then
3309 if test -s conftest.err; then
3310 ac_cpp_err=$ac_c_preproc_warn_flag
3311 else
3312 ac_cpp_err=
3313 fi
3314else
3315 ac_cpp_err=yes
3316fi
3317if test -z "$ac_cpp_err"; then
3318 # Broken: success on invalid input.
3319continue
3320else
3321 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003322sed 's/^/| /' conftest.$ac_ext >&5
3323
John Criswell7a73b802003-06-30 21:59:07 +00003324 # Passes both tests.
3325ac_preproc_ok=:
3326break
3327fi
3328rm -f conftest.err conftest.$ac_ext
3329
3330done
3331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332rm -f conftest.err conftest.$ac_ext
3333if $ac_preproc_ok; then
3334 break
3335fi
3336
3337 done
3338 ac_cv_prog_CPP=$CPP
3339
3340fi
3341 CPP=$ac_cv_prog_CPP
3342else
3343 ac_cv_prog_CPP=$CPP
3344fi
3345echo "$as_me:$LINENO: result: $CPP" >&5
3346echo "${ECHO_T}$CPP" >&6
3347ac_preproc_ok=false
3348for ac_c_preproc_warn_flag in '' yes
3349do
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat >conftest.$ac_ext <<_ACEOF
3357#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003358/* confdefs.h. */
3359_ACEOF
3360cat confdefs.h >>conftest.$ac_ext
3361cat >>conftest.$ac_ext <<_ACEOF
3362/* end confdefs.h. */
3363#ifdef __STDC__
3364# include <limits.h>
3365#else
3366# include <assert.h>
3367#endif
John Criswell7a73b802003-06-30 21:59:07 +00003368 Syntax error
3369_ACEOF
3370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3372 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003373 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 else
3381 ac_cpp_err=
3382 fi
3383else
3384 ac_cpp_err=yes
3385fi
3386if test -z "$ac_cpp_err"; then
3387 :
3388else
3389 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003390sed 's/^/| /' conftest.$ac_ext >&5
3391
John Criswell7a73b802003-06-30 21:59:07 +00003392 # Broken: fails on valid input.
3393continue
3394fi
3395rm -f conftest.err conftest.$ac_ext
3396
3397 # OK, works on sane cases. Now check whether non-existent headers
3398 # can be detected and how.
3399 cat >conftest.$ac_ext <<_ACEOF
3400#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003406#include <ac_nonexistent.h>
3407_ACEOF
3408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3410 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003411 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003412 rm -f conftest.er1
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } >/dev/null; then
3416 if test -s conftest.err; then
3417 ac_cpp_err=$ac_c_preproc_warn_flag
3418 else
3419 ac_cpp_err=
3420 fi
3421else
3422 ac_cpp_err=yes
3423fi
3424if test -z "$ac_cpp_err"; then
3425 # Broken: success on invalid input.
3426continue
3427else
3428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003429sed 's/^/| /' conftest.$ac_ext >&5
3430
John Criswell7a73b802003-06-30 21:59:07 +00003431 # Passes both tests.
3432ac_preproc_ok=:
3433break
3434fi
3435rm -f conftest.err conftest.$ac_ext
3436
3437done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.err conftest.$ac_ext
3440if $ac_preproc_ok; then
3441 :
3442else
John Criswell0c38eaf2003-09-10 15:17:25 +00003443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444See \`config.log' for more details." >&5
3445echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003447 { (exit 1); exit 1; }; }
3448fi
3449
3450ac_ext=c
3451ac_cpp='$CPP $CPPFLAGS'
3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
3456
3457if test "$GCC" != "yes"
3458then
3459 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3460echo "$as_me: error: gcc required but not found" >&2;}
3461 { (exit 1); exit 1; }; }
3462fi
3463
3464if test "$GXX" != "yes"
3465then
3466 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3467echo "$as_me: error: g++ required but not found" >&2;}
3468 { (exit 1); exit 1; }; }
3469fi
3470
John Criswellde00db22003-08-25 16:49:54 +00003471gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3472if test "$gccmajor" -lt "3"
3473then
3474 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3475echo "$as_me: error: gcc 3.x required" >&2;}
3476 { (exit 1); exit 1; }; }
3477fi
3478
John Criswell7a73b802003-06-30 21:59:07 +00003479 echo "$as_me:$LINENO: checking for GNU make" >&5
3480echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3481if test "${_cv_gnu_make_command+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3483else
3484 _cv_gnu_make_command='' ;
3485 for a in "$MAKE" make gmake gnumake ; do
3486 if test -z "$a" ; then continue ; fi ;
3487 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3488 _cv_gnu_make_command=$a ;
3489 break;
3490 fi
3491 done ;
3492
3493fi
3494echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3495echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3496 if test "x$_cv_gnu_make_command" != "x" ; then
3497 ifGNUmake='' ;
3498 else
3499 ifGNUmake='#' ;
3500 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3501echo "${ECHO_T}\"Not found\"" >&6;
3502 fi
3503
3504
3505if test -z "$_cv_gnu_make_command"
3506then
3507 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3508echo "$as_me: error: GNU Make required but not found" >&2;}
3509 { (exit 1); exit 1; }; }
3510fi
3511
3512
3513echo "$as_me:$LINENO: checking " >&5
3514echo $ECHO_N "checking ... $ECHO_C" >&6
3515if test "${ac_cv_has_flex+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517else
3518 for ac_prog in flex lex
3519do
3520 # Extract the first word of "$ac_prog", so it can be a program name with args.
3521set dummy $ac_prog; ac_word=$2
3522echo "$as_me:$LINENO: checking for $ac_word" >&5
3523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3524if test "${ac_cv_prog_LEX+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527 if test -n "$LEX"; then
3528 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3529else
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537 ac_cv_prog_LEX="$ac_prog"
3538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 break 2
3540 fi
3541done
3542done
3543
3544fi
3545fi
3546LEX=$ac_cv_prog_LEX
3547if test -n "$LEX"; then
3548 echo "$as_me:$LINENO: result: $LEX" >&5
3549echo "${ECHO_T}$LEX" >&6
3550else
3551 echo "$as_me:$LINENO: result: no" >&5
3552echo "${ECHO_T}no" >&6
3553fi
3554
3555 test -n "$LEX" && break
3556done
3557test -n "$LEX" || LEX=":"
3558
3559if test -z "$LEXLIB"
3560then
3561 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3562echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3563if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3565else
3566 ac_check_lib_save_LIBS=$LIBS
3567LIBS="-lfl $LIBS"
3568cat >conftest.$ac_ext <<_ACEOF
3569#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003570/* confdefs.h. */
3571_ACEOF
3572cat confdefs.h >>conftest.$ac_ext
3573cat >>conftest.$ac_ext <<_ACEOF
3574/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003575
3576/* Override any gcc2 internal prototype to avoid an error. */
3577#ifdef __cplusplus
3578extern "C"
3579#endif
3580/* We use char because int might match the return type of a gcc2
3581 builtin and then its argument prototype would still apply. */
3582char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003583int
3584main ()
3585{
3586yywrap ();
3587 ;
3588 return 0;
3589}
3590_ACEOF
3591rm -f conftest.$ac_objext conftest$ac_exeext
3592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3593 (eval $ac_link) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
3597 { ac_try='test -s conftest$ac_exeext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599 (eval $ac_try) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3603 ac_cv_lib_fl_yywrap=yes
3604else
3605 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003606sed 's/^/| /' conftest.$ac_ext >&5
3607
John Criswell7a73b802003-06-30 21:59:07 +00003608ac_cv_lib_fl_yywrap=no
3609fi
3610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3611LIBS=$ac_check_lib_save_LIBS
3612fi
3613echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3614echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3615if test $ac_cv_lib_fl_yywrap = yes; then
3616 LEXLIB="-lfl"
3617else
3618 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3619echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3620if test "${ac_cv_lib_l_yywrap+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
3623 ac_check_lib_save_LIBS=$LIBS
3624LIBS="-ll $LIBS"
3625cat >conftest.$ac_ext <<_ACEOF
3626#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
3631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003632
3633/* Override any gcc2 internal prototype to avoid an error. */
3634#ifdef __cplusplus
3635extern "C"
3636#endif
3637/* We use char because int might match the return type of a gcc2
3638 builtin and then its argument prototype would still apply. */
3639char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003640int
3641main ()
3642{
3643yywrap ();
3644 ;
3645 return 0;
3646}
3647_ACEOF
3648rm -f conftest.$ac_objext conftest$ac_exeext
3649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3650 (eval $ac_link) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -s conftest$ac_exeext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 ac_cv_lib_l_yywrap=yes
3661else
3662 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003663sed 's/^/| /' conftest.$ac_ext >&5
3664
John Criswell7a73b802003-06-30 21:59:07 +00003665ac_cv_lib_l_yywrap=no
3666fi
3667rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3668LIBS=$ac_check_lib_save_LIBS
3669fi
3670echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3671echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3672if test $ac_cv_lib_l_yywrap = yes; then
3673 LEXLIB="-ll"
3674fi
3675
3676fi
3677
3678fi
3679
3680if test "x$LEX" != "x:"; then
3681 echo "$as_me:$LINENO: checking lex output file root" >&5
3682echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3683if test "${ac_cv_prog_lex_root+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
3686 # The minimal lex program is just a single line: %%. But some broken lexes
3687# (Solaris, I think it was) want two %% lines, so accommodate them.
3688cat >conftest.l <<_ACEOF
3689%%
3690%%
3691_ACEOF
3692{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3693 (eval $LEX conftest.l) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }
3697if test -f lex.yy.c; then
3698 ac_cv_prog_lex_root=lex.yy
3699elif test -f lexyy.c; then
3700 ac_cv_prog_lex_root=lexyy
3701else
3702 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3703echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3704 { (exit 1); exit 1; }; }
3705fi
3706fi
3707echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3708echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3709rm -f conftest.l
3710LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3711
3712echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3713echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3714if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
3717 # POSIX says lex can declare yytext either as a pointer or an array; the
3718# default is implementation-dependent. Figure out which it is, since
3719# not all implementations provide the %pointer and %array declarations.
3720ac_cv_prog_lex_yytext_pointer=no
3721echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3722ac_save_LIBS=$LIBS
3723LIBS="$LIBS $LEXLIB"
3724cat >conftest.$ac_ext <<_ACEOF
3725`cat $LEX_OUTPUT_ROOT.c`
3726_ACEOF
3727rm -f conftest.$ac_objext conftest$ac_exeext
3728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729 (eval $ac_link) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } &&
3733 { ac_try='test -s conftest$ac_exeext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 ac_cv_prog_lex_yytext_pointer=yes
3740else
3741 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003742sed 's/^/| /' conftest.$ac_ext >&5
3743
John Criswell7a73b802003-06-30 21:59:07 +00003744fi
3745rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3746LIBS=$ac_save_LIBS
3747rm -f "${LEX_OUTPUT_ROOT}.c"
3748
3749fi
3750echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3751echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3752if test $ac_cv_prog_lex_yytext_pointer = yes; then
3753
3754cat >>confdefs.h <<\_ACEOF
3755#define YYTEXT_POINTER 1
3756_ACEOF
3757
3758fi
3759
3760fi
3761
3762fi
3763echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3764echo "${ECHO_T}$ac_cv_has_flex" >&6
3765if test "$LEX" != "flex"; then
3766 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3767echo "$as_me: error: flex not found but required" >&2;}
3768 { (exit 1); exit 1; }; }
3769fi
3770
3771echo "$as_me:$LINENO: checking " >&5
3772echo $ECHO_N "checking ... $ECHO_C" >&6
3773if test "${ac_cv_has_bison+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775else
3776 for ac_prog in 'bison -y' byacc
3777do
3778 # Extract the first word of "$ac_prog", so it can be a program name with args.
3779set dummy $ac_prog; ac_word=$2
3780echo "$as_me:$LINENO: checking for $ac_word" >&5
3781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782if test "${ac_cv_prog_YACC+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
3785 if test -n "$YACC"; then
3786 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3787else
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_YACC="$ac_prog"
3796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3798 fi
3799done
3800done
3801
3802fi
3803fi
3804YACC=$ac_cv_prog_YACC
3805if test -n "$YACC"; then
3806 echo "$as_me:$LINENO: result: $YACC" >&5
3807echo "${ECHO_T}$YACC" >&6
3808else
3809 echo "$as_me:$LINENO: result: no" >&5
3810echo "${ECHO_T}no" >&6
3811fi
3812
3813 test -n "$YACC" && break
3814done
3815test -n "$YACC" || YACC="yacc"
3816
3817
3818fi
3819echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3820echo "${ECHO_T}$ac_cv_has_bison" >&6
3821if test "$YACC" != "bison -y"; then
3822 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3823echo "$as_me: error: bison not found but required" >&2;}
3824 { (exit 1); exit 1; }; }
3825else
3826 YACC=bison
3827
3828fi
3829
3830
3831# Check whether --enable-shared or --disable-shared was given.
3832if test "${enable_shared+set}" = set; then
3833 enableval="$enable_shared"
3834 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003835 case $enableval in
3836 yes) enable_shared=yes ;;
3837 no) enable_shared=no ;;
3838 *)
3839 enable_shared=no
3840 # Look at the argument we got. We use all the common list separators.
3841 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3842 for pkg in $enableval; do
3843 IFS="$lt_save_ifs"
3844 if test "X$pkg" = "X$p"; then
3845 enable_shared=yes
3846 fi
3847 done
3848 IFS="$lt_save_ifs"
3849 ;;
3850 esac
John Criswell7a73b802003-06-30 21:59:07 +00003851else
3852 enable_shared=yes
3853fi;
John Criswell47fdd832003-07-14 16:52:07 +00003854
John Criswell7a73b802003-06-30 21:59:07 +00003855# Check whether --enable-static or --disable-static was given.
3856if test "${enable_static+set}" = set; then
3857 enableval="$enable_static"
3858 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003859 case $enableval in
3860 yes) enable_static=yes ;;
3861 no) enable_static=no ;;
3862 *)
3863 enable_static=no
3864 # Look at the argument we got. We use all the common list separators.
3865 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3866 for pkg in $enableval; do
3867 IFS="$lt_save_ifs"
3868 if test "X$pkg" = "X$p"; then
3869 enable_static=yes
3870 fi
3871 done
3872 IFS="$lt_save_ifs"
3873 ;;
3874 esac
John Criswell7a73b802003-06-30 21:59:07 +00003875else
3876 enable_static=yes
3877fi;
John Criswell47fdd832003-07-14 16:52:07 +00003878
John Criswell7a73b802003-06-30 21:59:07 +00003879# Check whether --enable-fast-install or --disable-fast-install was given.
3880if test "${enable_fast_install+set}" = set; then
3881 enableval="$enable_fast_install"
3882 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003883 case $enableval in
3884 yes) enable_fast_install=yes ;;
3885 no) enable_fast_install=no ;;
3886 *)
3887 enable_fast_install=no
3888 # Look at the argument we got. We use all the common list separators.
3889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3890 for pkg in $enableval; do
3891 IFS="$lt_save_ifs"
3892 if test "X$pkg" = "X$p"; then
3893 enable_fast_install=yes
3894 fi
3895 done
3896 IFS="$lt_save_ifs"
3897 ;;
3898 esac
John Criswell7a73b802003-06-30 21:59:07 +00003899else
3900 enable_fast_install=yes
3901fi;
John Criswell47fdd832003-07-14 16:52:07 +00003902
3903echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3904echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3905if test "${lt_cv_path_SED+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907else
3908 # Loop through the user's path and test for sed and gsed.
3909# Then use that list of sed's as ones to test for truncation.
3910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH
3912do
3913 IFS=$as_save_IFS
3914 test -z "$as_dir" && as_dir=.
3915 for lt_ac_prog in sed gsed; do
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3918 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3919 fi
3920 done
3921 done
3922done
3923lt_ac_max=0
3924lt_ac_count=0
3925# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3926# along with /bin/sed that truncates output.
3927for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3928 test ! -f $lt_ac_sed && break
3929 cat /dev/null > conftest.in
3930 lt_ac_count=0
3931 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3932 # Check for GNU sed and select it if it is found.
3933 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3934 lt_cv_path_SED=$lt_ac_sed
3935 break
3936 fi
3937 while true; do
3938 cat conftest.in conftest.in >conftest.tmp
3939 mv conftest.tmp conftest.in
3940 cp conftest.in conftest.nl
3941 echo >>conftest.nl
3942 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3943 cmp -s conftest.out conftest.nl || break
3944 # 10000 chars as input seems more than enough
3945 test $lt_ac_count -gt 10 && break
3946 lt_ac_count=`expr $lt_ac_count + 1`
3947 if test $lt_ac_count -gt $lt_ac_max; then
3948 lt_ac_max=$lt_ac_count
3949 lt_cv_path_SED=$lt_ac_sed
3950 fi
3951 done
3952done
3953SED=$lt_cv_path_SED
3954
John Criswell7a73b802003-06-30 21:59:07 +00003955fi
3956
John Criswell47fdd832003-07-14 16:52:07 +00003957echo "$as_me:$LINENO: result: $SED" >&5
3958echo "${ECHO_T}$SED" >&6
3959
3960echo "$as_me:$LINENO: checking for egrep" >&5
3961echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3962if test "${ac_cv_prog_egrep+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964else
3965 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3966 then ac_cv_prog_egrep='grep -E'
3967 else ac_cv_prog_egrep='egrep'
3968 fi
3969fi
3970echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3971echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3972 EGREP=$ac_cv_prog_egrep
3973
3974
John Criswell7a73b802003-06-30 21:59:07 +00003975
3976# Check whether --with-gnu-ld or --without-gnu-ld was given.
3977if test "${with_gnu_ld+set}" = set; then
3978 withval="$with_gnu_ld"
3979 test "$withval" = no || with_gnu_ld=yes
3980else
3981 with_gnu_ld=no
3982fi;
3983ac_prog=ld
3984if test "$GCC" = yes; then
3985 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003986 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3987echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003988 case $host in
3989 *-*-mingw*)
3990 # gcc leaves a trailing carriage return which upsets mingw
3991 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3992 *)
3993 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3994 esac
3995 case $ac_prog in
3996 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003997 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003998 re_direlt='/[^/][^/]*/\.\./'
3999 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004000 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004001 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004002 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004003 done
4004 test -z "$LD" && LD="$ac_prog"
4005 ;;
4006 "")
4007 # If it fails, then pretend we aren't using GCC.
4008 ac_prog=ld
4009 ;;
4010 *)
4011 # If it is relative, then search for the first ld in PATH.
4012 with_gnu_ld=unknown
4013 ;;
4014 esac
4015elif test "$with_gnu_ld" = yes; then
4016 echo "$as_me:$LINENO: checking for GNU ld" >&5
4017echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4018else
4019 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4020echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4021fi
4022if test "${lt_cv_path_LD+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004027 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004028 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004029 test -z "$ac_dir" && ac_dir=.
4030 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4031 lt_cv_path_LD="$ac_dir/$ac_prog"
4032 # Check to see if the program is GNU ld. I'd rather use --version,
4033 # but apparently some GNU ld's only accept -v.
4034 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004035 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4036 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004037 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004038 ;;
4039 *)
John Criswell7a73b802003-06-30 21:59:07 +00004040 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004041 ;;
4042 esac
John Criswell7a73b802003-06-30 21:59:07 +00004043 fi
4044 done
John Criswell47fdd832003-07-14 16:52:07 +00004045 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004046else
4047 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4048fi
4049fi
4050
4051LD="$lt_cv_path_LD"
4052if test -n "$LD"; then
4053 echo "$as_me:$LINENO: result: $LD" >&5
4054echo "${ECHO_T}$LD" >&6
4055else
4056 echo "$as_me:$LINENO: result: no" >&5
4057echo "${ECHO_T}no" >&6
4058fi
4059test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4060echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4061 { (exit 1); exit 1; }; }
4062echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4063echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4064if test "${lt_cv_prog_gnu_ld+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066else
4067 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004068case `"$LD" -v 2>&1 </dev/null` in
4069*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004070 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004071 ;;
4072*)
John Criswell7a73b802003-06-30 21:59:07 +00004073 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004074 ;;
4075esac
John Criswell7a73b802003-06-30 21:59:07 +00004076fi
4077echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4078echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4079with_gnu_ld=$lt_cv_prog_gnu_ld
4080
4081
4082echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4083echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4084if test "${lt_cv_ld_reload_flag+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087 lt_cv_ld_reload_flag='-r'
4088fi
4089echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4090echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4091reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004092case $reload_flag in
4093"" | " "*) ;;
4094*) reload_flag=" $reload_flag" ;;
4095esac
4096reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004097
4098echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4099echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4100if test "${lt_cv_path_NM+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103 if test -n "$NM"; then
4104 # Let the user override the test.
4105 lt_cv_path_NM="$NM"
4106else
John Criswell47fdd832003-07-14 16:52:07 +00004107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004108 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004109 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004110 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004111 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4112 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004113 # Check to see if the nm accepts a BSD-compat flag.
4114 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4115 # nm: unknown option "B" ignored
4116 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004117 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4118 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004119 lt_cv_path_NM="$tmp_nm -B"
4120 break
John Criswell47fdd832003-07-14 16:52:07 +00004121 ;;
4122 *)
4123 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4124 */dev/null*)
4125 lt_cv_path_NM="$tmp_nm -p"
4126 break
4127 ;;
4128 *)
4129 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4130 continue # so that we can try to find one that supports BSD flags
4131 ;;
4132 esac
4133 esac
John Criswell7a73b802003-06-30 21:59:07 +00004134 fi
4135 done
John Criswell47fdd832003-07-14 16:52:07 +00004136 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004137 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4138fi
4139fi
John Criswell47fdd832003-07-14 16:52:07 +00004140echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4141echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004142NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004143
4144echo "$as_me:$LINENO: checking whether ln -s works" >&5
4145echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4146LN_S=$as_ln_s
4147if test "$LN_S" = "ln -s"; then
4148 echo "$as_me:$LINENO: result: yes" >&5
4149echo "${ECHO_T}yes" >&6
4150else
4151 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4152echo "${ECHO_T}no, using $LN_S" >&6
4153fi
4154
John Criswell47fdd832003-07-14 16:52:07 +00004155echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4156echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004157if test "${lt_cv_deplibs_check_method+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159else
4160 lt_cv_file_magic_cmd='$MAGIC_CMD'
4161lt_cv_file_magic_test_file=
4162lt_cv_deplibs_check_method='unknown'
4163# Need to set the preceding variable on all platforms that support
4164# interlibrary dependencies.
4165# 'none' -- dependencies not supported.
4166# `unknown' -- same as none, but documents that we really don't know.
4167# 'pass_all' -- all dependencies passed with no checks.
4168# 'test_compile' -- check by making test program.
4169# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004170# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004171# If you have `file' or equivalent on your system and you're not sure
4172# whether `pass_all' will *always* work, you probably want this one.
4173
4174case $host_os in
4175aix4* | aix5*)
4176 lt_cv_deplibs_check_method=pass_all
4177 ;;
4178
4179beos*)
4180 lt_cv_deplibs_check_method=pass_all
4181 ;;
4182
4183bsdi4*)
4184 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4185 lt_cv_file_magic_cmd='/usr/bin/file -L'
4186 lt_cv_file_magic_test_file=/shlib/libc.so
4187 ;;
4188
4189cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004190 # win32_libid is a shell function defined in ltmain.sh
4191 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4192 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004193 ;;
4194
4195darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004196 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004197 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4198 lt_cv_file_magic_cmd='/usr/bin/file -L'
4199 case "$host_os" in
4200 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004201 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004202 ;;
4203 *) # Darwin 1.3 on
4204 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4205 ;;
4206 esac
John Criswell47fdd832003-07-14 16:52:07 +00004207 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004208 ;;
4209
4210freebsd*)
4211 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4212 case $host_cpu in
4213 i*86 )
4214 # Not sure whether the presence of OpenBSD here was a mistake.
4215 # Let's accept both of them until this is cleared up.
4216 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4217 lt_cv_file_magic_cmd=/usr/bin/file
4218 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4219 ;;
4220 esac
4221 else
4222 lt_cv_deplibs_check_method=pass_all
4223 fi
4224 ;;
4225
4226gnu*)
4227 lt_cv_deplibs_check_method=pass_all
4228 ;;
4229
John Criswell47fdd832003-07-14 16:52:07 +00004230hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004231 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004232 case "$host_cpu" in
4233 ia64*)
4234 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4235 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4236 ;;
4237 hppa*64*)
4238 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4239 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4240 ;;
4241 *)
4242 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4243 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4244 ;;
4245 esac
John Criswell7a73b802003-06-30 21:59:07 +00004246 ;;
4247
John Criswell47fdd832003-07-14 16:52:07 +00004248irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004249 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004250 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004251 # this will be overridden with pass_all, but let us keep it just in case
4252 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4253 ;;
4254 *)
4255 case $LD in
4256 *-32|*"-32 ") libmagic=32-bit;;
4257 *-n32|*"-n32 ") libmagic=N32;;
4258 *-64|*"-64 ") libmagic=64-bit;;
4259 *) libmagic=never-match;;
4260 esac
4261 # this will be overridden with pass_all, but let us keep it just in case
4262 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4263 ;;
4264 esac
4265 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4266 lt_cv_deplibs_check_method=pass_all
4267 ;;
4268
4269# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004270linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004271 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004272 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004273 lt_cv_deplibs_check_method=pass_all ;;
4274 *)
4275 # glibc up to 2.1.1 does not perform some relocations on ARM
4276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4277 esac
4278 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4279 ;;
4280
4281netbsd*)
4282 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004284 else
John Criswell47fdd832003-07-14 16:52:07 +00004285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004286 fi
4287 ;;
4288
4289newos6*)
4290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4291 lt_cv_file_magic_cmd=/usr/bin/file
4292 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4293 ;;
4294
John Criswell47fdd832003-07-14 16:52:07 +00004295nto-qnx)
4296 lt_cv_deplibs_check_method=unknown
4297 ;;
4298
John Criswell7a73b802003-06-30 21:59:07 +00004299openbsd*)
4300 lt_cv_file_magic_cmd=/usr/bin/file
4301 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4303 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4304 else
4305 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4306 fi
4307 ;;
4308
4309osf3* | osf4* | osf5*)
4310 # this will be overridden with pass_all, but let us keep it just in case
4311 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4312 lt_cv_file_magic_test_file=/shlib/libc.so
4313 lt_cv_deplibs_check_method=pass_all
4314 ;;
4315
4316sco3.2v5*)
4317 lt_cv_deplibs_check_method=pass_all
4318 ;;
4319
4320solaris*)
4321 lt_cv_deplibs_check_method=pass_all
4322 lt_cv_file_magic_test_file=/lib/libc.so
4323 ;;
4324
John Criswell7a73b802003-06-30 21:59:07 +00004325sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4326 case $host_vendor in
4327 motorola)
4328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4329 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4330 ;;
4331 ncr)
4332 lt_cv_deplibs_check_method=pass_all
4333 ;;
4334 sequent)
4335 lt_cv_file_magic_cmd='/bin/file'
4336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4337 ;;
4338 sni)
4339 lt_cv_file_magic_cmd='/bin/file'
4340 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4341 lt_cv_file_magic_test_file=/lib/libc.so
4342 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004343 siemens)
4344 lt_cv_deplibs_check_method=pass_all
4345 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004346 esac
4347 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004348
4349sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4350 lt_cv_deplibs_check_method=pass_all
4351 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004352esac
4353
4354fi
4355echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4356echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4357file_magic_cmd=$lt_cv_file_magic_cmd
4358deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004359test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004360
4361
4362
4363
John Criswell47fdd832003-07-14 16:52:07 +00004364# If no C compiler was specified, use CC.
4365LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004366
John Criswell47fdd832003-07-14 16:52:07 +00004367# Allow CC to be a program name with arguments.
4368compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004369
John Criswell47fdd832003-07-14 16:52:07 +00004370# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4371if test "${enable_libtool_lock+set}" = set; then
4372 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004373
John Criswell47fdd832003-07-14 16:52:07 +00004374fi;
4375test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004376
John Criswell47fdd832003-07-14 16:52:07 +00004377# Some flags need to be propagated to the compiler or linker for good
4378# libtool support.
4379case $host in
4380ia64-*-hpux*)
4381 # Find out which ABI we are using.
4382 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384 (eval $ac_compile) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004388 case `/usr/bin/file conftest.$ac_objext` in
4389 *ELF-32*)
4390 HPUX_IA64_MODE="32"
4391 ;;
4392 *ELF-64*)
4393 HPUX_IA64_MODE="64"
4394 ;;
4395 esac
4396 fi
4397 rm -rf conftest*
4398 ;;
4399*-*-irix6*)
4400 # Find out which ABI we are using.
John Criswell7ec78aa2003-10-16 01:49:00 +00004401 echo '#line 4401 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4403 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004406 (exit $ac_status); }; then
4407 if test "$lt_cv_prog_gnu_ld" = yes; then
4408 case `/usr/bin/file conftest.$ac_objext` in
4409 *32-bit*)
4410 LD="${LD-ld} -melf32bsmip"
4411 ;;
4412 *N32*)
4413 LD="${LD-ld} -melf32bmipn32"
4414 ;;
4415 *64-bit*)
4416 LD="${LD-ld} -melf64bmip"
4417 ;;
4418 esac
4419 else
4420 case `/usr/bin/file conftest.$ac_objext` in
4421 *32-bit*)
4422 LD="${LD-ld} -32"
4423 ;;
4424 *N32*)
4425 LD="${LD-ld} -n32"
4426 ;;
4427 *64-bit*)
4428 LD="${LD-ld} -64"
4429 ;;
4430 esac
4431 fi
4432 fi
4433 rm -rf conftest*
4434 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004435
John Criswell47fdd832003-07-14 16:52:07 +00004436x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4437 # Find out which ABI we are using.
4438 echo 'int i;' > conftest.$ac_ext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440 (eval $ac_compile) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; then
4444 case "`/usr/bin/file conftest.o`" in
4445 *32-bit*)
4446 case $host in
4447 x86_64-*linux*)
4448 LD="${LD-ld} -m elf_i386"
4449 ;;
4450 ppc64-*linux*)
4451 LD="${LD-ld} -m elf32ppclinux"
4452 ;;
4453 s390x-*linux*)
4454 LD="${LD-ld} -m elf_s390"
4455 ;;
4456 sparc64-*linux*)
4457 LD="${LD-ld} -m elf32_sparc"
4458 ;;
4459 esac
4460 ;;
4461 *64-bit*)
4462 case $host in
4463 x86_64-*linux*)
4464 LD="${LD-ld} -m elf_x86_64"
4465 ;;
4466 ppc*-*linux*|powerpc*-*linux*)
4467 LD="${LD-ld} -m elf64ppc"
4468 ;;
4469 s390*-*linux*)
4470 LD="${LD-ld} -m elf64_s390"
4471 ;;
4472 sparc*-*linux*)
4473 LD="${LD-ld} -m elf64_sparc"
4474 ;;
4475 esac
4476 ;;
4477 esac
4478 fi
4479 rm -rf conftest*
4480 ;;
4481
4482*-*-sco3.2v5*)
4483 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4484 SAVE_CFLAGS="$CFLAGS"
4485 CFLAGS="$CFLAGS -belf"
4486 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4487echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4488if test "${lt_cv_cc_needs_belf+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490else
4491 ac_ext=c
4492ac_cpp='$CPP $CPPFLAGS'
4493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496
4497 cat >conftest.$ac_ext <<_ACEOF
4498#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004499/* confdefs.h. */
4500_ACEOF
4501cat confdefs.h >>conftest.$ac_ext
4502cat >>conftest.$ac_ext <<_ACEOF
4503/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004504
John Criswell47fdd832003-07-14 16:52:07 +00004505int
4506main ()
John Criswell7a73b802003-06-30 21:59:07 +00004507{
John Criswell7a73b802003-06-30 21:59:07 +00004508
John Criswell47fdd832003-07-14 16:52:07 +00004509 ;
4510 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004511}
John Criswell47fdd832003-07-14 16:52:07 +00004512_ACEOF
4513rm -f conftest.$ac_objext conftest$ac_exeext
4514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004515 (eval $ac_link) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004518 (exit $ac_status); } &&
4519 { ac_try='test -s conftest$ac_exeext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 (eval $ac_try) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4525 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004526else
John Criswell47fdd832003-07-14 16:52:07 +00004527 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004528sed 's/^/| /' conftest.$ac_ext >&5
4529
John Criswell47fdd832003-07-14 16:52:07 +00004530lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004531fi
John Criswell47fdd832003-07-14 16:52:07 +00004532rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4533 ac_ext=c
4534ac_cpp='$CPP $CPPFLAGS'
4535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538
John Criswell7a73b802003-06-30 21:59:07 +00004539fi
John Criswell47fdd832003-07-14 16:52:07 +00004540echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4541echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4542 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4543 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4544 CFLAGS="$SAVE_CFLAGS"
4545 fi
4546 ;;
4547
4548esac
4549
4550need_locks="$enable_libtool_lock"
4551
John Criswell7a73b802003-06-30 21:59:07 +00004552
4553
4554echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4555echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4556if test "${ac_cv_header_stdc+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558else
4559 cat >conftest.$ac_ext <<_ACEOF
4560#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004561/* confdefs.h. */
4562_ACEOF
4563cat confdefs.h >>conftest.$ac_ext
4564cat >>conftest.$ac_ext <<_ACEOF
4565/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004566#include <stdlib.h>
4567#include <stdarg.h>
4568#include <string.h>
4569#include <float.h>
4570
John Criswell0c38eaf2003-09-10 15:17:25 +00004571int
4572main ()
4573{
4574
4575 ;
4576 return 0;
4577}
John Criswell7a73b802003-06-30 21:59:07 +00004578_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004579rm -f conftest.$ac_objext
4580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4581 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004582 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004584 (exit $ac_status); } &&
4585 { ac_try='test -s conftest.$ac_objext'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 (eval $ac_try) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004591 ac_cv_header_stdc=yes
4592else
4593 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004594sed 's/^/| /' conftest.$ac_ext >&5
4595
4596ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004597fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004598rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004599
4600if test $ac_cv_header_stdc = yes; then
4601 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4602 cat >conftest.$ac_ext <<_ACEOF
4603#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004604/* confdefs.h. */
4605_ACEOF
4606cat confdefs.h >>conftest.$ac_ext
4607cat >>conftest.$ac_ext <<_ACEOF
4608/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004609#include <string.h>
4610
4611_ACEOF
4612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004613 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004614 :
4615else
4616 ac_cv_header_stdc=no
4617fi
4618rm -f conftest*
4619
4620fi
4621
4622if test $ac_cv_header_stdc = yes; then
4623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4624 cat >conftest.$ac_ext <<_ACEOF
4625#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004626/* confdefs.h. */
4627_ACEOF
4628cat confdefs.h >>conftest.$ac_ext
4629cat >>conftest.$ac_ext <<_ACEOF
4630/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004631#include <stdlib.h>
4632
4633_ACEOF
4634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004635 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004636 :
4637else
4638 ac_cv_header_stdc=no
4639fi
4640rm -f conftest*
4641
4642fi
4643
4644if test $ac_cv_header_stdc = yes; then
4645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4646 if test "$cross_compiling" = yes; then
4647 :
4648else
4649 cat >conftest.$ac_ext <<_ACEOF
4650#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004651/* confdefs.h. */
4652_ACEOF
4653cat confdefs.h >>conftest.$ac_ext
4654cat >>conftest.$ac_ext <<_ACEOF
4655/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004656#include <ctype.h>
4657#if ((' ' & 0x0FF) == 0x020)
4658# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4659# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4660#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004661# define ISLOWER(c) \
4662 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004663 || ('j' <= (c) && (c) <= 'r') \
4664 || ('s' <= (c) && (c) <= 'z'))
4665# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4666#endif
4667
4668#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4669int
4670main ()
4671{
4672 int i;
4673 for (i = 0; i < 256; i++)
4674 if (XOR (islower (i), ISLOWER (i))
4675 || toupper (i) != TOUPPER (i))
4676 exit(2);
4677 exit (0);
4678}
4679_ACEOF
4680rm -f conftest$ac_exeext
4681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682 (eval $ac_link) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 :
4692else
4693 echo "$as_me: program exited with status $ac_status" >&5
4694echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004695sed 's/^/| /' conftest.$ac_ext >&5
4696
John Criswell7a73b802003-06-30 21:59:07 +00004697( exit $ac_status )
4698ac_cv_header_stdc=no
4699fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004700rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004701fi
4702fi
4703fi
4704echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4705echo "${ECHO_T}$ac_cv_header_stdc" >&6
4706if test $ac_cv_header_stdc = yes; then
4707
4708cat >>confdefs.h <<\_ACEOF
4709#define STDC_HEADERS 1
4710_ACEOF
4711
4712fi
4713
4714# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4725 inttypes.h stdint.h unistd.h
4726do
4727as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4728echo "$as_me:$LINENO: checking for $ac_header" >&5
4729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4730if eval "test \"\${$as_ac_Header+set}\" = set"; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 cat >conftest.$ac_ext <<_ACEOF
4734#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004735/* confdefs.h. */
4736_ACEOF
4737cat confdefs.h >>conftest.$ac_ext
4738cat >>conftest.$ac_ext <<_ACEOF
4739/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004740$ac_includes_default
4741
4742#include <$ac_header>
4743_ACEOF
4744rm -f conftest.$ac_objext
4745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746 (eval $ac_compile) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try='test -s conftest.$ac_objext'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 eval "$as_ac_Header=yes"
4757else
4758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004759sed 's/^/| /' conftest.$ac_ext >&5
4760
John Criswell7a73b802003-06-30 21:59:07 +00004761eval "$as_ac_Header=no"
4762fi
4763rm -f conftest.$ac_objext conftest.$ac_ext
4764fi
4765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4767if test `eval echo '${'$as_ac_Header'}'` = yes; then
4768 cat >>confdefs.h <<_ACEOF
4769#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4770_ACEOF
4771
4772fi
4773
4774done
4775
4776
4777
4778for ac_header in dlfcn.h
4779do
4780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4781if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782 echo "$as_me:$LINENO: checking for $ac_header" >&5
4783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4784if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786fi
4787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4789else
4790 # Is the header compilable?
4791echo "$as_me:$LINENO: checking $ac_header usability" >&5
4792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4793cat >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#include <$ac_header>
4802_ACEOF
4803rm -f conftest.$ac_objext
4804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -s conftest.$ac_objext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 ac_header_compiler=yes
4816else
4817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004818sed 's/^/| /' conftest.$ac_ext >&5
4819
John Criswell7a73b802003-06-30 21:59:07 +00004820ac_header_compiler=no
4821fi
4822rm -f conftest.$ac_objext conftest.$ac_ext
4823echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4824echo "${ECHO_T}$ac_header_compiler" >&6
4825
4826# Is the header present?
4827echo "$as_me:$LINENO: checking $ac_header presence" >&5
4828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4829cat >conftest.$ac_ext <<_ACEOF
4830#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004831/* confdefs.h. */
4832_ACEOF
4833cat confdefs.h >>conftest.$ac_ext
4834cat >>conftest.$ac_ext <<_ACEOF
4835/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004836#include <$ac_header>
4837_ACEOF
4838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4840 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004841 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev/null; then
4846 if test -s conftest.err; then
4847 ac_cpp_err=$ac_c_preproc_warn_flag
4848 else
4849 ac_cpp_err=
4850 fi
4851else
4852 ac_cpp_err=yes
4853fi
4854if test -z "$ac_cpp_err"; then
4855 ac_header_preproc=yes
4856else
4857 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004858sed 's/^/| /' conftest.$ac_ext >&5
4859
John Criswell7a73b802003-06-30 21:59:07 +00004860 ac_header_preproc=no
4861fi
4862rm -f conftest.err conftest.$ac_ext
4863echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4864echo "${ECHO_T}$ac_header_preproc" >&6
4865
4866# So? What about this header?
4867case $ac_header_compiler:$ac_header_preproc in
4868 yes:no )
4869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4870echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4873 (
4874 cat <<\_ASBOX
4875## ------------------------------------ ##
4876## Report this to bug-autoconf@gnu.org. ##
4877## ------------------------------------ ##
4878_ASBOX
4879 ) |
4880 sed "s/^/$as_me: WARNING: /" >&2
4881 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004882 no:yes )
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4886echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4889 (
4890 cat <<\_ASBOX
4891## ------------------------------------ ##
4892## Report this to bug-autoconf@gnu.org. ##
4893## ------------------------------------ ##
4894_ASBOX
4895 ) |
4896 sed "s/^/$as_me: WARNING: /" >&2
4897 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004898esac
4899echo "$as_me:$LINENO: checking for $ac_header" >&5
4900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4901if eval "test \"\${$as_ac_Header+set}\" = set"; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903else
4904 eval "$as_ac_Header=$ac_header_preproc"
4905fi
4906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4908
4909fi
4910if test `eval echo '${'$as_ac_Header'}'` = yes; then
4911 cat >>confdefs.h <<_ACEOF
4912#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4913_ACEOF
4914
4915fi
4916
4917done
4918
John Criswell47fdd832003-07-14 16:52:07 +00004919ac_ext=cc
4920ac_cpp='$CXXCPP $CPPFLAGS'
4921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4924echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4925echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4926if test -z "$CXXCPP"; then
4927 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004928 echo $ECHO_N "(cached) $ECHO_C" >&6
4929else
John Criswell47fdd832003-07-14 16:52:07 +00004930 # Double quotes because CXXCPP needs to be expanded
4931 for CXXCPP in "$CXX -E" "/lib/cpp"
4932 do
4933 ac_preproc_ok=false
4934for ac_cxx_preproc_warn_flag in '' yes
4935do
4936 # Use a header file that comes with gcc, so configuring glibc
4937 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004940 # On the NeXT, cc -E runs the code through the compiler's parser,
4941 # not just through cpp. "Syntax error" is here to catch this case.
4942 cat >conftest.$ac_ext <<_ACEOF
4943#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004944/* confdefs.h. */
4945_ACEOF
4946cat confdefs.h >>conftest.$ac_ext
4947cat >>conftest.$ac_ext <<_ACEOF
4948/* end confdefs.h. */
4949#ifdef __STDC__
4950# include <limits.h>
4951#else
4952# include <assert.h>
4953#endif
John Criswell47fdd832003-07-14 16:52:07 +00004954 Syntax error
4955_ACEOF
4956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4958 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004959 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004960 rm -f conftest.er1
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } >/dev/null; then
4964 if test -s conftest.err; then
4965 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004966 else
John Criswell47fdd832003-07-14 16:52:07 +00004967 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004968 fi
John Criswell47fdd832003-07-14 16:52:07 +00004969else
4970 ac_cpp_err=yes
4971fi
4972if test -z "$ac_cpp_err"; then
4973 :
4974else
4975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004976sed 's/^/| /' conftest.$ac_ext >&5
4977
John Criswell47fdd832003-07-14 16:52:07 +00004978 # Broken: fails on valid input.
4979continue
4980fi
4981rm -f conftest.err conftest.$ac_ext
4982
4983 # OK, works on sane cases. Now check whether non-existent headers
4984 # can be detected and how.
4985 cat >conftest.$ac_ext <<_ACEOF
4986#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004987/* confdefs.h. */
4988_ACEOF
4989cat confdefs.h >>conftest.$ac_ext
4990cat >>conftest.$ac_ext <<_ACEOF
4991/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004992#include <ac_nonexistent.h>
4993_ACEOF
4994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4996 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004997 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } >/dev/null; then
5002 if test -s conftest.err; then
5003 ac_cpp_err=$ac_cxx_preproc_warn_flag
5004 else
5005 ac_cpp_err=
5006 fi
5007else
5008 ac_cpp_err=yes
5009fi
5010if test -z "$ac_cpp_err"; then
5011 # Broken: success on invalid input.
5012continue
5013else
5014 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005015sed 's/^/| /' conftest.$ac_ext >&5
5016
John Criswell47fdd832003-07-14 16:52:07 +00005017 # Passes both tests.
5018ac_preproc_ok=:
5019break
5020fi
5021rm -f conftest.err conftest.$ac_ext
5022
5023done
5024# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025rm -f conftest.err conftest.$ac_ext
5026if $ac_preproc_ok; then
5027 break
John Criswell7a73b802003-06-30 21:59:07 +00005028fi
5029
John Criswell47fdd832003-07-14 16:52:07 +00005030 done
5031 ac_cv_prog_CXXCPP=$CXXCPP
5032
5033fi
5034 CXXCPP=$ac_cv_prog_CXXCPP
5035else
5036 ac_cv_prog_CXXCPP=$CXXCPP
5037fi
5038echo "$as_me:$LINENO: result: $CXXCPP" >&5
5039echo "${ECHO_T}$CXXCPP" >&6
5040ac_preproc_ok=false
5041for ac_cxx_preproc_warn_flag in '' yes
5042do
5043 # Use a header file that comes with gcc, so configuring glibc
5044 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005047 # On the NeXT, cc -E runs the code through the compiler's parser,
5048 # not just through cpp. "Syntax error" is here to catch this case.
5049 cat >conftest.$ac_ext <<_ACEOF
5050#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005051/* confdefs.h. */
5052_ACEOF
5053cat confdefs.h >>conftest.$ac_ext
5054cat >>conftest.$ac_ext <<_ACEOF
5055/* end confdefs.h. */
5056#ifdef __STDC__
5057# include <limits.h>
5058#else
5059# include <assert.h>
5060#endif
John Criswell47fdd832003-07-14 16:52:07 +00005061 Syntax error
5062_ACEOF
5063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5065 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005066 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } >/dev/null; then
5071 if test -s conftest.err; then
5072 ac_cpp_err=$ac_cxx_preproc_warn_flag
5073 else
5074 ac_cpp_err=
5075 fi
5076else
5077 ac_cpp_err=yes
5078fi
5079if test -z "$ac_cpp_err"; then
5080 :
5081else
5082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005083sed 's/^/| /' conftest.$ac_ext >&5
5084
John Criswell47fdd832003-07-14 16:52:07 +00005085 # Broken: fails on valid input.
5086continue
5087fi
5088rm -f conftest.err conftest.$ac_ext
5089
5090 # OK, works on sane cases. Now check whether non-existent headers
5091 # can be detected and how.
5092 cat >conftest.$ac_ext <<_ACEOF
5093#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005094/* confdefs.h. */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005099#include <ac_nonexistent.h>
5100_ACEOF
5101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5103 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005104 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005105 rm -f conftest.er1
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null; then
5109 if test -s conftest.err; then
5110 ac_cpp_err=$ac_cxx_preproc_warn_flag
5111 else
5112 ac_cpp_err=
5113 fi
5114else
5115 ac_cpp_err=yes
5116fi
5117if test -z "$ac_cpp_err"; then
5118 # Broken: success on invalid input.
5119continue
5120else
5121 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005122sed 's/^/| /' conftest.$ac_ext >&5
5123
John Criswell47fdd832003-07-14 16:52:07 +00005124 # Passes both tests.
5125ac_preproc_ok=:
5126break
5127fi
5128rm -f conftest.err conftest.$ac_ext
5129
5130done
5131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5132rm -f conftest.err conftest.$ac_ext
5133if $ac_preproc_ok; then
5134 :
5135else
John Criswell0c38eaf2003-09-10 15:17:25 +00005136 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5137See \`config.log' for more details." >&5
5138echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5139See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005140 { (exit 1); exit 1; }; }
5141fi
5142
5143ac_ext=cc
5144ac_cpp='$CXXCPP $CPPFLAGS'
5145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5148
5149
5150ac_ext=f
5151ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5152ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5154if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005155 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 +00005156 do
5157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5158set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5159echo "$as_me:$LINENO: checking for $ac_word" >&5
5160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5161if test "${ac_cv_prog_F77+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163else
5164 if test -n "$F77"; then
5165 ac_cv_prog_F77="$F77" # Let the user override the test.
5166else
5167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168for as_dir in $PATH
5169do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178done
5179done
5180
5181fi
5182fi
5183F77=$ac_cv_prog_F77
5184if test -n "$F77"; then
5185 echo "$as_me:$LINENO: result: $F77" >&5
5186echo "${ECHO_T}$F77" >&6
5187else
5188 echo "$as_me:$LINENO: result: no" >&5
5189echo "${ECHO_T}no" >&6
5190fi
5191
5192 test -n "$F77" && break
5193 done
5194fi
5195if test -z "$F77"; then
5196 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005197 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 +00005198do
5199 # Extract the first word of "$ac_prog", so it can be a program name with args.
5200set dummy $ac_prog; ac_word=$2
5201echo "$as_me:$LINENO: checking for $ac_word" >&5
5202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205else
5206 if test -n "$ac_ct_F77"; then
5207 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5208else
5209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_ac_ct_F77="$ac_prog"
5217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5219 fi
5220done
5221done
5222
5223fi
5224fi
5225ac_ct_F77=$ac_cv_prog_ac_ct_F77
5226if test -n "$ac_ct_F77"; then
5227 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5228echo "${ECHO_T}$ac_ct_F77" >&6
5229else
5230 echo "$as_me:$LINENO: result: no" >&5
5231echo "${ECHO_T}no" >&6
5232fi
5233
5234 test -n "$ac_ct_F77" && break
5235done
5236
5237 F77=$ac_ct_F77
5238fi
5239
5240
5241# Provide some information about the compiler.
John Criswell7ec78aa2003-10-16 01:49:00 +00005242echo "$as_me:5242:" \
John Criswell47fdd832003-07-14 16:52:07 +00005243 "checking for Fortran 77 compiler version" >&5
5244ac_compiler=`set X $ac_compile; echo $2`
5245{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5246 (eval $ac_compiler --version </dev/null >&5) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }
5250{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5251 (eval $ac_compiler -v </dev/null >&5) 2>&5
5252 ac_status=$?
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }
5255{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5256 (eval $ac_compiler -V </dev/null >&5) 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }
5260
5261# If we don't use `.F' as extension, the preprocessor is not run on the
5262# input file.
5263ac_save_ext=$ac_ext
5264ac_ext=F
5265echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5266echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5267if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
5270 cat >conftest.$ac_ext <<_ACEOF
5271 program main
5272#ifndef __GNUC__
5273 choke me
5274#endif
5275
5276 end
5277_ACEOF
5278rm -f conftest.$ac_objext
5279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280 (eval $ac_compile) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } &&
5284 { ac_try='test -s conftest.$ac_objext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 (eval $ac_try) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 ac_compiler_gnu=yes
5291else
5292 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005293sed 's/^/| /' conftest.$ac_ext >&5
5294
John Criswell47fdd832003-07-14 16:52:07 +00005295ac_compiler_gnu=no
5296fi
5297rm -f conftest.$ac_objext conftest.$ac_ext
5298ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5299
5300fi
5301echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5302echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5303ac_ext=$ac_save_ext
5304G77=`test $ac_compiler_gnu = yes && echo yes`
5305ac_test_FFLAGS=${FFLAGS+set}
5306ac_save_FFLAGS=$FFLAGS
5307FFLAGS=
5308echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5309echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5310if test "${ac_cv_prog_f77_g+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312else
5313 FFLAGS=-g
5314cat >conftest.$ac_ext <<_ACEOF
5315 program main
5316
5317 end
5318_ACEOF
5319rm -f conftest.$ac_objext
5320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5321 (eval $ac_compile) 2>&5
5322 ac_status=$?
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -s conftest.$ac_objext'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 (eval $ac_try) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
5331 ac_cv_prog_f77_g=yes
5332else
5333 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005334sed 's/^/| /' conftest.$ac_ext >&5
5335
John Criswell47fdd832003-07-14 16:52:07 +00005336ac_cv_prog_f77_g=no
5337fi
5338rm -f conftest.$ac_objext conftest.$ac_ext
5339
5340fi
5341echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5342echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5343if test "$ac_test_FFLAGS" = set; then
5344 FFLAGS=$ac_save_FFLAGS
5345elif test $ac_cv_prog_f77_g = yes; then
5346 if test "$G77" = yes; then
5347 FFLAGS="-g -O2"
5348 else
5349 FFLAGS="-g"
5350 fi
5351else
5352 if test "$G77" = yes; then
5353 FFLAGS="-O2"
5354 else
5355 FFLAGS=
5356 fi
5357fi
5358ac_ext=c
5359ac_cpp='$CPP $CPPFLAGS'
5360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362ac_compiler_gnu=$ac_cv_c_compiler_gnu
5363
5364
5365
5366# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5367
5368# find the maximum length of command line arguments
5369echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5370echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5371if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374 i=0
5375 testring="ABCD"
5376
5377 case $build_os in
5378 msdosdjgpp*)
5379 # On DJGPP, this test can blow up pretty badly due to problems in libc
5380 # (any single argument exceeding 2000 bytes causes a buffer overrun
5381 # during glob expansion). Even if it were fixed, the result of this
5382 # check would be larger than it should be.
5383 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5384 ;;
5385
5386 gnu*)
5387 # Under GNU Hurd, this test is not required because there is
5388 # no limit to the length of command line arguments.
5389 # Libtool will interpret -1 as no limit whatsoever
5390 lt_cv_sys_max_cmd_len=-1;
5391 ;;
5392
5393 cygwin* | mingw*)
5394 # On Win9x/ME, this test blows up -- it succeeds, but takes
5395 # about 5 minutes as the teststring grows exponentially.
5396 # Worse, since 9x/ME are not pre-emptively multitasking,
5397 # you end up with a "frozen" computer, even though with patience
5398 # the test eventually succeeds (with a max line length of 256k).
5399 # Instead, let's just punt: use the minimum linelength reported by
5400 # all of the supported platforms: 8192 (on NT/2K/XP).
5401 lt_cv_sys_max_cmd_len=8192;
5402 ;;
5403
5404 *)
5405 # If test is not a shell built-in, we'll probably end up computing a
5406 # maximum length that is only half of the actual maximum length, but
5407 # we can't tell.
5408 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5409 = "XX$testring") >/dev/null 2>&1 &&
5410 new_result=`expr "X$testring" : ".*" 2>&1` &&
5411 lt_cv_sys_max_cmd_len=$new_result &&
5412 test $i != 17 # 1/2 MB should be enough
5413 do
5414 i=`expr $i + 1`
5415 testring=$testring$testring
5416 done
5417 testring=
5418 # Add a significant safety factor because C++ compilers can tack on massive
5419 # amounts of additional arguments before passing them to the linker.
5420 # It appears as though 1/2 is a usable value.
5421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5422 ;;
5423 esac
5424
5425fi
5426
5427if test -n $lt_cv_sys_max_cmd_len ; then
5428 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5429echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5430else
5431 echo "$as_me:$LINENO: result: none" >&5
5432echo "${ECHO_T}none" >&6
5433fi
5434
5435
5436
5437
5438# Check for command to grab the raw symbol name followed by C symbol from nm.
5439echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5440echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5441if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443else
5444
5445# These are sane defaults that work on at least a few old systems.
5446# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5447
5448# Character class describing NM global symbol codes.
5449symcode='[BCDEGRST]'
5450
5451# Regexp to match symbols that can be accessed directly from C.
5452sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5453
5454# Transform the above into a raw symbol and a C symbol.
5455symxfrm='\1 \2\3 \3'
5456
5457# Transform an extracted symbol line into a proper C declaration
5458lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5459
5460# Transform an extracted symbol line into symbol name and symbol address
5461lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5462
5463# Define system-specific variables.
5464case $host_os in
5465aix*)
5466 symcode='[BCDT]'
5467 ;;
5468cygwin* | mingw* | pw32*)
5469 symcode='[ABCDGISTW]'
5470 ;;
5471hpux*) # Its linker distinguishes data from code symbols
5472 if test "$host_cpu" = ia64; then
5473 symcode='[ABCDEGRST]'
5474 fi
5475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5476 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5477 ;;
5478irix* | nonstopux*)
5479 symcode='[BCDEGRST]'
5480 ;;
5481osf*)
5482 symcode='[BCDEGQRST]'
5483 ;;
5484solaris* | sysv5*)
5485 symcode='[BDT]'
5486 ;;
5487sysv4)
5488 symcode='[DFNSTU]'
5489 ;;
5490esac
5491
5492# Handle CRLF in mingw tool chain
5493opt_cr=
5494case $build_os in
5495mingw*)
5496 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5497 ;;
5498esac
5499
5500# If we're using GNU nm, then use its standard symbol codes.
5501case `$NM -V 2>&1` in
5502*GNU* | *'with BFD'*)
5503 symcode='[ABCDGISTW]' ;;
5504esac
5505
5506# Try without a prefix undercore, then with it.
5507for ac_symprfx in "" "_"; do
5508
5509 # Write the raw and C identifiers.
5510 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5511
5512 # Check to see that the pipe works correctly.
5513 pipe_works=no
5514
5515 rm -f conftest*
5516 cat > conftest.$ac_ext <<EOF
5517#ifdef __cplusplus
5518extern "C" {
5519#endif
5520char nm_test_var;
5521void nm_test_func(){}
5522#ifdef __cplusplus
5523}
5524#endif
5525int main(){nm_test_var='a';nm_test_func();return(0);}
5526EOF
5527
5528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5529 (eval $ac_compile) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; then
5533 # Now try to grab the symbols.
5534 nlist=conftest.nm
5535 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5536 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && test -s "$nlist"; then
5540 # Try sorting and uniquifying the output.
5541 if sort "$nlist" | uniq > "$nlist"T; then
5542 mv -f "$nlist"T "$nlist"
5543 else
5544 rm -f "$nlist"T
5545 fi
5546
5547 # Make sure that we snagged all the symbols we need.
5548 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5549 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5550 cat <<EOF > conftest.$ac_ext
5551#ifdef __cplusplus
5552extern "C" {
5553#endif
5554
5555EOF
5556 # Now generate the symbol file.
5557 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5558
5559 cat <<EOF >> conftest.$ac_ext
5560#if defined (__STDC__) && __STDC__
5561# define lt_ptr_t void *
5562#else
5563# define lt_ptr_t char *
5564# define const
5565#endif
5566
5567/* The mapping between symbol names and symbols. */
5568const struct {
5569 const char *name;
5570 lt_ptr_t address;
5571}
5572lt_preloaded_symbols[] =
5573{
5574EOF
5575 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5576 cat <<\EOF >> conftest.$ac_ext
5577 {0, (lt_ptr_t) 0}
5578};
5579
5580#ifdef __cplusplus
5581}
5582#endif
5583EOF
5584 # Now try linking the two files.
5585 mv conftest.$ac_objext conftstm.$ac_objext
5586 lt_save_LIBS="$LIBS"
5587 lt_save_CFLAGS="$CFLAGS"
5588 LIBS="conftstm.$ac_objext"
5589 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5595 pipe_works=yes
5596 fi
5597 LIBS="$lt_save_LIBS"
5598 CFLAGS="$lt_save_CFLAGS"
5599 else
5600 echo "cannot find nm_test_func in $nlist" >&5
5601 fi
5602 else
5603 echo "cannot find nm_test_var in $nlist" >&5
5604 fi
5605 else
5606 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5607 fi
5608 else
5609 echo "$progname: failed program was:" >&5
5610 cat conftest.$ac_ext >&5
5611 fi
5612 rm -f conftest* conftst*
5613
5614 # Do not use the global_symbol_pipe unless it works.
5615 if test "$pipe_works" = yes; then
5616 break
5617 else
5618 lt_cv_sys_global_symbol_pipe=
5619 fi
5620done
5621
5622fi
5623
5624if test -z "$lt_cv_sys_global_symbol_pipe"; then
5625 lt_cv_sys_global_symbol_to_cdecl=
5626fi
5627if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5628 echo "$as_me:$LINENO: result: failed" >&5
5629echo "${ECHO_T}failed" >&6
5630else
5631 echo "$as_me:$LINENO: result: ok" >&5
5632echo "${ECHO_T}ok" >&6
5633fi
5634
5635echo "$as_me:$LINENO: checking for objdir" >&5
5636echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5637if test "${lt_cv_objdir+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639else
5640 rm -f .libs 2>/dev/null
5641mkdir .libs 2>/dev/null
5642if test -d .libs; then
5643 lt_cv_objdir=.libs
5644else
5645 # MS-DOS does not allow filenames that begin with a dot.
5646 lt_cv_objdir=_libs
5647fi
5648rmdir .libs 2>/dev/null
5649fi
5650echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5651echo "${ECHO_T}$lt_cv_objdir" >&6
5652objdir=$lt_cv_objdir
5653
5654
5655
5656
5657
5658case $host_os in
5659aix3*)
5660 # AIX sometimes has problems with the GCC collect2 program. For some
5661 # reason, if we set the COLLECT_NAMES environment variable, the problems
5662 # vanish in a puff of smoke.
5663 if test "X${COLLECT_NAMES+set}" != Xset; then
5664 COLLECT_NAMES=
5665 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005666 fi
5667 ;;
5668esac
5669
John Criswell47fdd832003-07-14 16:52:07 +00005670# Sed substitution that helps us do robust quoting. It backslashifies
5671# metacharacters that are still active within double-quoted strings.
5672Xsed='sed -e s/^X//'
5673sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5674
5675# Same as above, but do not quote variable references.
5676double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5677
5678# Sed substitution to delay expansion of an escaped shell variable in a
5679# double_quote_subst'ed string.
5680delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5681
5682# Sed substitution to avoid accidental globbing in evaled expressions
5683no_glob_subst='s/\*/\\\*/g'
5684
5685# Constants:
5686rm="rm -f"
5687
5688# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005689default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005690can_build_shared=yes
5691
5692# All known linkers require a `.a' archive for static linking (except M$VC,
5693# which needs '.lib').
5694libext=a
5695ltmain="$ac_aux_dir/ltmain.sh"
5696ofile="$default_ofile"
5697with_gnu_ld="$lt_cv_prog_gnu_ld"
5698
5699if test -n "$ac_tool_prefix"; then
5700 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5701set dummy ${ac_tool_prefix}ar; ac_word=$2
5702echo "$as_me:$LINENO: checking for $ac_word" >&5
5703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5704if test "${ac_cv_prog_AR+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706else
5707 if test -n "$AR"; then
5708 ac_cv_prog_AR="$AR" # Let the user override the test.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717 ac_cv_prog_AR="${ac_tool_prefix}ar"
5718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721done
5722done
5723
5724fi
5725fi
5726AR=$ac_cv_prog_AR
5727if test -n "$AR"; then
5728 echo "$as_me:$LINENO: result: $AR" >&5
5729echo "${ECHO_T}$AR" >&6
5730else
5731 echo "$as_me:$LINENO: result: no" >&5
5732echo "${ECHO_T}no" >&6
5733fi
5734
5735fi
5736if test -z "$ac_cv_prog_AR"; then
5737 ac_ct_AR=$AR
5738 # Extract the first word of "ar", so it can be a program name with args.
5739set dummy ar; ac_word=$2
5740echo "$as_me:$LINENO: checking for $ac_word" >&5
5741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5742if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5744else
5745 if test -n "$ac_ct_AR"; then
5746 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5747else
5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_ac_ct_AR="ar"
5756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5758 fi
5759done
5760done
5761
5762 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5763fi
5764fi
5765ac_ct_AR=$ac_cv_prog_ac_ct_AR
5766if test -n "$ac_ct_AR"; then
5767 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5768echo "${ECHO_T}$ac_ct_AR" >&6
5769else
5770 echo "$as_me:$LINENO: result: no" >&5
5771echo "${ECHO_T}no" >&6
5772fi
5773
5774 AR=$ac_ct_AR
5775else
5776 AR="$ac_cv_prog_AR"
5777fi
5778
John Criswell7a73b802003-06-30 21:59:07 +00005779if test -n "$ac_tool_prefix"; then
5780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5781set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5782echo "$as_me:$LINENO: checking for $ac_word" >&5
5783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5784if test "${ac_cv_prog_RANLIB+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786else
5787 if test -n "$RANLIB"; then
5788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5789else
5790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791for as_dir in $PATH
5792do
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 break 2
5800 fi
5801done
5802done
5803
5804fi
5805fi
5806RANLIB=$ac_cv_prog_RANLIB
5807if test -n "$RANLIB"; then
5808 echo "$as_me:$LINENO: result: $RANLIB" >&5
5809echo "${ECHO_T}$RANLIB" >&6
5810else
5811 echo "$as_me:$LINENO: result: no" >&5
5812echo "${ECHO_T}no" >&6
5813fi
5814
5815fi
5816if test -z "$ac_cv_prog_RANLIB"; then
5817 ac_ct_RANLIB=$RANLIB
5818 # Extract the first word of "ranlib", so it can be a program name with args.
5819set dummy ranlib; ac_word=$2
5820echo "$as_me:$LINENO: checking for $ac_word" >&5
5821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5822if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825 if test -n "$ac_ct_RANLIB"; then
5826 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5827else
5828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829for as_dir in $PATH
5830do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_ac_ct_RANLIB="ranlib"
5836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839done
5840done
5841
5842 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5843fi
5844fi
5845ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5846if test -n "$ac_ct_RANLIB"; then
5847 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5848echo "${ECHO_T}$ac_ct_RANLIB" >&6
5849else
5850 echo "$as_me:$LINENO: result: no" >&5
5851echo "${ECHO_T}no" >&6
5852fi
5853
5854 RANLIB=$ac_ct_RANLIB
5855else
5856 RANLIB="$ac_cv_prog_RANLIB"
5857fi
5858
5859if test -n "$ac_tool_prefix"; then
5860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5861set dummy ${ac_tool_prefix}strip; ac_word=$2
5862echo "$as_me:$LINENO: checking for $ac_word" >&5
5863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5864if test "${ac_cv_prog_STRIP+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866else
5867 if test -n "$STRIP"; then
5868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5869else
5870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH
5872do
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 break 2
5880 fi
5881done
5882done
5883
5884fi
5885fi
5886STRIP=$ac_cv_prog_STRIP
5887if test -n "$STRIP"; then
5888 echo "$as_me:$LINENO: result: $STRIP" >&5
5889echo "${ECHO_T}$STRIP" >&6
5890else
5891 echo "$as_me:$LINENO: result: no" >&5
5892echo "${ECHO_T}no" >&6
5893fi
5894
5895fi
5896if test -z "$ac_cv_prog_STRIP"; then
5897 ac_ct_STRIP=$STRIP
5898 # Extract the first word of "strip", so it can be a program name with args.
5899set dummy strip; ac_word=$2
5900echo "$as_me:$LINENO: checking for $ac_word" >&5
5901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5902if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5904else
5905 if test -n "$ac_ct_STRIP"; then
5906 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5907else
5908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909for as_dir in $PATH
5910do
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915 ac_cv_prog_ac_ct_STRIP="strip"
5916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 break 2
5918 fi
5919done
5920done
5921
5922 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5923fi
5924fi
5925ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5926if test -n "$ac_ct_STRIP"; then
5927 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5928echo "${ECHO_T}$ac_ct_STRIP" >&6
5929else
5930 echo "$as_me:$LINENO: result: no" >&5
5931echo "${ECHO_T}no" >&6
5932fi
5933
5934 STRIP=$ac_ct_STRIP
5935else
5936 STRIP="$ac_cv_prog_STRIP"
5937fi
5938
5939
John Criswell7a73b802003-06-30 21:59:07 +00005940old_CC="$CC"
5941old_CFLAGS="$CFLAGS"
5942
5943# Set sane defaults for various variables
5944test -z "$AR" && AR=ar
5945test -z "$AR_FLAGS" && AR_FLAGS=cru
5946test -z "$AS" && AS=as
5947test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005948test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005949test -z "$DLLTOOL" && DLLTOOL=dlltool
5950test -z "$LD" && LD=ld
5951test -z "$LN_S" && LN_S="ln -s"
5952test -z "$MAGIC_CMD" && MAGIC_CMD=file
5953test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005954test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005955test -z "$OBJDUMP" && OBJDUMP=objdump
5956test -z "$RANLIB" && RANLIB=:
5957test -z "$STRIP" && STRIP=:
5958test -z "$ac_objext" && ac_objext=o
5959
John Criswell7a73b802003-06-30 21:59:07 +00005960# Determine commands to create old-style static archives.
5961old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5962old_postinstall_cmds='chmod 644 $oldlib'
5963old_postuninstall_cmds=
5964
5965if test -n "$RANLIB"; then
5966 case $host_os in
5967 openbsd*)
5968 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5969 ;;
5970 *)
5971 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5972 ;;
5973 esac
5974 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5975fi
5976
John Criswell47fdd832003-07-14 16:52:07 +00005977# Only perform the check for file, if the check method requires it
5978case $deplibs_check_method in
5979file_magic*)
5980 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5981 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5982echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5983if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005985else
John Criswell47fdd832003-07-14 16:52:07 +00005986 case $MAGIC_CMD in
5987[\\/*] | ?:[\\/]*)
5988 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5989 ;;
5990*)
5991 lt_save_MAGIC_CMD="$MAGIC_CMD"
5992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5993 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5994 for ac_dir in $ac_dummy; do
5995 IFS="$lt_save_ifs"
5996 test -z "$ac_dir" && ac_dir=.
5997 if test -f $ac_dir/${ac_tool_prefix}file; then
5998 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5999 if test -n "$file_magic_test_file"; then
6000 case $deplibs_check_method in
6001 "file_magic "*)
6002 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6004 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6005 $EGREP "$file_magic_regex" > /dev/null; then
6006 :
6007 else
6008 cat <<EOF 1>&2
6009
6010*** Warning: the command libtool uses to detect shared libraries,
6011*** $file_magic_cmd, produces output that libtool cannot recognize.
6012*** The result is that libtool may fail to recognize shared libraries
6013*** as such. This will affect the creation of libtool libraries that
6014*** depend on shared libraries, but programs linked with such libtool
6015*** libraries will work regardless of this problem. Nevertheless, you
6016*** may want to report the problem to your system manager and/or to
6017*** bug-libtool@gnu.org
6018
6019EOF
6020 fi ;;
6021 esac
6022 fi
6023 break
6024 fi
6025 done
6026 IFS="$lt_save_ifs"
6027 MAGIC_CMD="$lt_save_MAGIC_CMD"
6028 ;;
6029esac
John Criswell7a73b802003-06-30 21:59:07 +00006030fi
John Criswell7a73b802003-06-30 21:59:07 +00006031
John Criswell47fdd832003-07-14 16:52:07 +00006032MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6033if test -n "$MAGIC_CMD"; then
6034 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6035echo "${ECHO_T}$MAGIC_CMD" >&6
6036else
6037 echo "$as_me:$LINENO: result: no" >&5
6038echo "${ECHO_T}no" >&6
6039fi
John Criswell7a73b802003-06-30 21:59:07 +00006040
John Criswell47fdd832003-07-14 16:52:07 +00006041if test -z "$lt_cv_path_MAGIC_CMD"; then
6042 if test -n "$ac_tool_prefix"; then
6043 echo "$as_me:$LINENO: checking for file" >&5
6044echo $ECHO_N "checking for file... $ECHO_C" >&6
6045if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047else
6048 case $MAGIC_CMD in
6049[\\/*] | ?:[\\/]*)
6050 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6051 ;;
6052*)
6053 lt_save_MAGIC_CMD="$MAGIC_CMD"
6054 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6055 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6056 for ac_dir in $ac_dummy; do
6057 IFS="$lt_save_ifs"
6058 test -z "$ac_dir" && ac_dir=.
6059 if test -f $ac_dir/file; then
6060 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6061 if test -n "$file_magic_test_file"; then
6062 case $deplibs_check_method in
6063 "file_magic "*)
6064 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6066 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6067 $EGREP "$file_magic_regex" > /dev/null; then
6068 :
6069 else
6070 cat <<EOF 1>&2
6071
6072*** Warning: the command libtool uses to detect shared libraries,
6073*** $file_magic_cmd, produces output that libtool cannot recognize.
6074*** The result is that libtool may fail to recognize shared libraries
6075*** as such. This will affect the creation of libtool libraries that
6076*** depend on shared libraries, but programs linked with such libtool
6077*** libraries will work regardless of this problem. Nevertheless, you
6078*** may want to report the problem to your system manager and/or to
6079*** bug-libtool@gnu.org
6080
6081EOF
6082 fi ;;
6083 esac
6084 fi
6085 break
6086 fi
6087 done
6088 IFS="$lt_save_ifs"
6089 MAGIC_CMD="$lt_save_MAGIC_CMD"
6090 ;;
6091esac
6092fi
6093
6094MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6095if test -n "$MAGIC_CMD"; then
6096 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6097echo "${ECHO_T}$MAGIC_CMD" >&6
6098else
6099 echo "$as_me:$LINENO: result: no" >&5
6100echo "${ECHO_T}no" >&6
6101fi
6102
6103 else
6104 MAGIC_CMD=:
6105 fi
6106fi
6107
6108 fi
6109 ;;
6110esac
6111
6112enable_dlopen=no
6113enable_win32_dll=no
6114
6115# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6116if test "${enable_libtool_lock+set}" = set; then
6117 enableval="$enable_libtool_lock"
6118
6119fi;
6120test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6121
John Criswell7a73b802003-06-30 21:59:07 +00006122
6123# Check whether --with-pic or --without-pic was given.
6124if test "${with_pic+set}" = set; then
6125 withval="$with_pic"
6126 pic_mode="$withval"
6127else
6128 pic_mode=default
6129fi;
6130test -z "$pic_mode" && pic_mode=default
6131
John Criswell47fdd832003-07-14 16:52:07 +00006132# Use C for the default configuration in the libtool script
6133tagname=
6134lt_save_CC="$CC"
6135ac_ext=c
6136ac_cpp='$CPP $CPPFLAGS'
6137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140
6141
6142# Source file extension for C test sources.
6143ac_ext=c
6144
6145# Object file extension for compiled C test sources.
6146objext=o
6147objext=$objext
6148
6149# Code to be used in simple compile tests
6150lt_simple_compile_test_code="int some_variable = 0;\n"
6151
6152# Code to be used in simple link tests
6153lt_simple_link_test_code='int main(){return(0);}\n'
6154
6155
6156# If no C compiler was specified, use CC.
6157LTCC=${LTCC-"$CC"}
6158
6159# Allow CC to be a program name with arguments.
6160compiler=$CC
6161
6162
6163#
6164# Check for any special shared library compilation flags.
6165#
6166lt_prog_cc_shlib=
6167if test "$GCC" = no; then
6168 case $host_os in
6169 sco3.2v5*)
6170 lt_prog_cc_shlib='-belf'
6171 ;;
6172 esac
6173fi
6174if test -n "$lt_prog_cc_shlib"; then
6175 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6176echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6177 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6178 else
6179 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6180echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6181 lt_cv_prog_cc_can_build_shared=no
6182 fi
6183fi
6184
6185
6186#
6187# Check to make sure the static flag actually works.
6188#
6189echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6190echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6191if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
John Criswell47fdd832003-07-14 16:52:07 +00006194 lt_prog_compiler_static_works=no
6195 save_LDFLAGS="$LDFLAGS"
6196 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6197 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6198 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6199 # The compiler can only warn and ignore the option if not recognized
6200 # So say no if there are warnings
6201 if test -s conftest.err; then
6202 # Append any errors to the config.log.
6203 cat conftest.err 1>&5
6204 else
6205 lt_prog_compiler_static_works=yes
6206 fi
6207 fi
6208 $rm conftest*
6209 LDFLAGS="$save_LDFLAGS"
6210
6211fi
6212echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6213echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6214
6215if test x"$lt_prog_compiler_static_works" = xyes; then
6216 :
6217else
6218 lt_prog_compiler_static=
6219fi
6220
6221
6222
6223## CAVEAT EMPTOR:
6224## There is no encapsulation within the following macros, do not change
6225## the running order or otherwise move them around unless you know exactly
6226## what you are doing...
6227
6228lt_prog_compiler_no_builtin_flag=
6229
6230if test "$GCC" = yes; then
6231 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6232
6233 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6234echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6235if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6237else
6238 lt_cv_prog_compiler_rtti_exceptions=no
6239 ac_outfile=conftest.$ac_objext
6240 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6241 lt_compiler_flag="-fno-rtti -fno-exceptions"
6242 # Insert the option either (1) after the last *FLAGS variable, or
6243 # (2) before a word containing "conftest.", or (3) at the end.
6244 # Note that $ac_compile itself does not contain backslashes and begins
6245 # with a dollar sign (not a hyphen), so the echo should work correctly.
6246 # The option is referenced via a variable to avoid confusing sed.
6247 lt_compile=`echo "$ac_compile" | $SED \
6248 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6250 -e 's:$: $lt_compiler_flag:'`
John Criswell7ec78aa2003-10-16 01:49:00 +00006251 (eval echo "\"\$as_me:6251: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006252 (eval "$lt_compile" 2>conftest.err)
6253 ac_status=$?
6254 cat conftest.err >&5
John Criswell7ec78aa2003-10-16 01:49:00 +00006255 echo "$as_me:6255: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006256 if (exit $ac_status) && test -s "$ac_outfile"; then
6257 # The compiler can only warn and ignore the option if not recognized
6258 # So say no if there are warnings
6259 if test ! -s conftest.err; then
6260 lt_cv_prog_compiler_rtti_exceptions=yes
6261 fi
6262 fi
6263 $rm conftest*
6264
6265fi
6266echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6267echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6268
6269if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6270 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6271else
6272 :
6273fi
6274
6275fi
6276
6277lt_prog_compiler_wl=
6278lt_prog_compiler_pic=
6279lt_prog_compiler_static=
6280
6281echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6282echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006283
6284 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006285 lt_prog_compiler_wl='-Wl,'
6286 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006287
6288 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006289 aix*)
6290 # All AIX code is PIC.
6291 if test "$host_cpu" = ia64; then
6292 # AIX 5 now supports IA64 processor
6293 lt_prog_compiler_static='-Bstatic'
6294 fi
John Criswell7a73b802003-06-30 21:59:07 +00006295 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006296
John Criswell7a73b802003-06-30 21:59:07 +00006297 amigaos*)
6298 # FIXME: we need at least 68020 code to build shared libraries, but
6299 # adding the `-m68020' flag to GCC prevents building anything better,
6300 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006301 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006302 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006303
6304 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006305 # PIC is the default for these OSes.
6306 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006307
6308 mingw* | pw32* | os2*)
6309 # This hack is so that the source file can tell whether it is being
6310 # built for inclusion in a dll (and should export symbols for example).
6311 lt_prog_compiler_pic='-DDLL_EXPORT'
6312 ;;
6313
John Criswell7a73b802003-06-30 21:59:07 +00006314 darwin* | rhapsody*)
6315 # PIC is the default on this platform
6316 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006317 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006318 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006319
6320 msdosdjgpp*)
6321 # Just because we use GCC doesn't mean we suddenly get shared libraries
6322 # on systems that don't support them.
6323 lt_prog_compiler_can_build_shared=no
6324 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006325 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006326
John Criswell7a73b802003-06-30 21:59:07 +00006327 sysv4*MP*)
6328 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006329 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006330 fi
6331 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006332
6333 hpux*)
6334 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6335 # not for PA HP-UX.
6336 case "$host_cpu" in
6337 hppa*64*|ia64*)
6338 # +Z the default
6339 ;;
6340 *)
6341 lt_prog_compiler_pic='-fPIC'
6342 ;;
6343 esac
6344 ;;
6345
John Criswell7a73b802003-06-30 21:59:07 +00006346 *)
John Criswell47fdd832003-07-14 16:52:07 +00006347 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006348 ;;
6349 esac
6350 else
John Criswell47fdd832003-07-14 16:52:07 +00006351 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006352 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006353 aix*)
6354 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006355 if test "$host_cpu" = ia64; then
6356 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006357 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006358 else
John Criswell47fdd832003-07-14 16:52:07 +00006359 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006360 fi
6361 ;;
6362
John Criswell47fdd832003-07-14 16:52:07 +00006363 mingw* | pw32* | os2*)
6364 # This hack is so that the source file can tell whether it is being
6365 # built for inclusion in a dll (and should export symbols for example).
6366 lt_prog_compiler_pic='-DDLL_EXPORT'
6367 ;;
6368
John Criswell7a73b802003-06-30 21:59:07 +00006369 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006370 lt_prog_compiler_wl='-Wl,'
6371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6372 # not for PA HP-UX.
6373 case "$host_cpu" in
6374 hppa*64*|ia64*)
6375 # +Z the default
6376 ;;
6377 *)
6378 lt_prog_compiler_pic='+Z'
6379 ;;
6380 esac
6381 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6382 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006383 ;;
6384
John Criswell47fdd832003-07-14 16:52:07 +00006385 irix5* | irix6* | nonstopux*)
6386 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006387 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006388 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006389 ;;
6390
6391 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006392 lt_prog_compiler_pic='-KPIC'
6393 lt_prog_compiler_static='-Bstatic'
6394 ;;
6395
6396 linux*)
6397 case $CC in
6398 icc|ecc)
6399 lt_prog_compiler_wl='-Wl,'
6400 lt_prog_compiler_pic='-KPIC'
6401 lt_prog_compiler_static='-static'
6402 ;;
6403 ccc)
6404 lt_prog_compiler_wl='-Wl,'
6405 # All Alpha code is PIC.
6406 lt_prog_compiler_static='-non_shared'
6407 ;;
6408 esac
John Criswell7a73b802003-06-30 21:59:07 +00006409 ;;
6410
6411 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006412 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006413 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006414 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006415 ;;
6416
6417 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006418 lt_prog_compiler_pic='-Kpic'
6419 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006420 ;;
6421
6422 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006423 lt_prog_compiler_wl='-Wl,'
6424 lt_prog_compiler_pic='-KPIC'
6425 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006426 ;;
6427
6428 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006429 lt_prog_compiler_wl='-Qoption ld '
6430 lt_prog_compiler_pic='-PIC'
6431 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006432 ;;
6433
6434 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006435 lt_prog_compiler_wl='-Wl,'
6436 lt_prog_compiler_pic='-KPIC'
6437 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006438 ;;
6439
6440 sysv4*MP*)
6441 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006442 lt_prog_compiler_pic='-Kconform_pic'
6443 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006444 fi
6445 ;;
6446
John Criswell47fdd832003-07-14 16:52:07 +00006447 uts4*)
6448 lt_prog_compiler_pic='-pic'
6449 lt_prog_compiler_static='-Bstatic'
6450 ;;
6451
John Criswell7a73b802003-06-30 21:59:07 +00006452 *)
John Criswell47fdd832003-07-14 16:52:07 +00006453 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006454 ;;
6455 esac
6456 fi
6457
John Criswell47fdd832003-07-14 16:52:07 +00006458echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6459echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006460
John Criswell47fdd832003-07-14 16:52:07 +00006461#
6462# Check to make sure the PIC flag actually works.
6463#
6464if test -n "$lt_prog_compiler_pic"; then
6465 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6466echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6467if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006468 echo $ECHO_N "(cached) $ECHO_C" >&6
6469else
John Criswell47fdd832003-07-14 16:52:07 +00006470 lt_prog_compiler_pic_works=no
6471 ac_outfile=conftest.$ac_objext
6472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6473 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6474 # Insert the option either (1) after the last *FLAGS variable, or
6475 # (2) before a word containing "conftest.", or (3) at the end.
6476 # Note that $ac_compile itself does not contain backslashes and begins
6477 # with a dollar sign (not a hyphen), so the echo should work correctly.
6478 # The option is referenced via a variable to avoid confusing sed.
6479 lt_compile=`echo "$ac_compile" | $SED \
6480 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6482 -e 's:$: $lt_compiler_flag:'`
John Criswell7ec78aa2003-10-16 01:49:00 +00006483 (eval echo "\"\$as_me:6483: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006484 (eval "$lt_compile" 2>conftest.err)
6485 ac_status=$?
6486 cat conftest.err >&5
John Criswell7ec78aa2003-10-16 01:49:00 +00006487 echo "$as_me:6487: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006488 if (exit $ac_status) && test -s "$ac_outfile"; then
6489 # The compiler can only warn and ignore the option if not recognized
6490 # So say no if there are warnings
6491 if test ! -s conftest.err; then
6492 lt_prog_compiler_pic_works=yes
6493 fi
6494 fi
6495 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006496
John Criswell47fdd832003-07-14 16:52:07 +00006497fi
6498echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6499echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006500
John Criswell47fdd832003-07-14 16:52:07 +00006501if test x"$lt_prog_compiler_pic_works" = xyes; then
6502 case $lt_prog_compiler_pic in
6503 "" | " "*) ;;
6504 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6505 esac
John Criswell7a73b802003-06-30 21:59:07 +00006506else
John Criswell47fdd832003-07-14 16:52:07 +00006507 lt_prog_compiler_pic=
6508 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006509fi
6510
John Criswell7a73b802003-06-30 21:59:07 +00006511fi
John Criswell47fdd832003-07-14 16:52:07 +00006512case "$host_os" in
6513 # For platforms which do not support PIC, -DPIC is meaningless:
6514 *djgpp*)
6515 lt_prog_compiler_pic=
6516 ;;
6517 *)
6518 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6519 ;;
6520esac
John Criswell7a73b802003-06-30 21:59:07 +00006521
John Criswell7a73b802003-06-30 21:59:07 +00006522echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6523echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006524if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526else
John Criswell47fdd832003-07-14 16:52:07 +00006527 lt_cv_prog_compiler_c_o=no
6528 $rm -r conftest 2>/dev/null
6529 mkdir conftest
6530 cd conftest
6531 mkdir out
6532 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006533
John Criswell47fdd832003-07-14 16:52:07 +00006534 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6535 # that will create temporary files in the current directory regardless of
6536 # the output directory. Thus, making CWD read-only will cause this test
6537 # to fail, enabling locking or at least warning the user not to do parallel
6538 # builds.
6539 chmod -w .
6540
6541 lt_compiler_flag="-o out/conftest2.$ac_objext"
6542 # Insert the option either (1) after the last *FLAGS variable, or
6543 # (2) before a word containing "conftest.", or (3) at the end.
6544 # Note that $ac_compile itself does not contain backslashes and begins
6545 # with a dollar sign (not a hyphen), so the echo should work correctly.
6546 lt_compile=`echo "$ac_compile" | $SED \
6547 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6549 -e 's:$: $lt_compiler_flag:'`
John Criswell7ec78aa2003-10-16 01:49:00 +00006550 (eval echo "\"\$as_me:6550: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006551 (eval "$lt_compile" 2>out/conftest.err)
6552 ac_status=$?
6553 cat out/conftest.err >&5
John Criswell7ec78aa2003-10-16 01:49:00 +00006554 echo "$as_me:6554: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006555 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6556 then
6557 # The compiler can only warn and ignore the option if not recognized
6558 # So say no if there are warnings
6559 if test ! -s out/conftest.err; then
6560 lt_cv_prog_compiler_c_o=yes
6561 fi
6562 fi
6563 chmod u+w .
6564 $rm conftest* out/*
6565 rmdir out
6566 cd ..
6567 rmdir conftest
6568 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006569
6570fi
John Criswell47fdd832003-07-14 16:52:07 +00006571echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6572echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006573
John Criswell7a73b802003-06-30 21:59:07 +00006574
John Criswell7a73b802003-06-30 21:59:07 +00006575hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006576if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006577 # do not overwrite the value of need_locks provided by the user
6578 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6579echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6580 hard_links=yes
6581 $rm conftest*
6582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6583 touch conftest.a
6584 ln conftest.a conftest.b 2>&5 || hard_links=no
6585 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6586 echo "$as_me:$LINENO: result: $hard_links" >&5
6587echo "${ECHO_T}$hard_links" >&6
6588 if test "$hard_links" = no; then
6589 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6590echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6591 need_locks=warn
6592 fi
6593else
6594 need_locks=no
6595fi
John Criswell7a73b802003-06-30 21:59:07 +00006596
John Criswell47fdd832003-07-14 16:52:07 +00006597echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6598echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6599
6600 runpath_var=
6601 allow_undefined_flag=
6602 enable_shared_with_static_runtimes=no
6603 archive_cmds=
6604 archive_expsym_cmds=
6605 old_archive_From_new_cmds=
6606 old_archive_from_expsyms_cmds=
6607 export_dynamic_flag_spec=
6608 whole_archive_flag_spec=
6609 thread_safe_flag_spec=
6610 hardcode_libdir_flag_spec=
6611 hardcode_libdir_flag_spec_ld=
6612 hardcode_libdir_separator=
6613 hardcode_direct=no
6614 hardcode_minus_L=no
6615 hardcode_shlibpath_var=unsupported
6616 link_all_deplibs=unknown
6617 hardcode_automatic=no
6618 module_cmds=
6619 module_expsym_cmds=
6620 always_export_symbols=no
6621 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6622 # include_expsyms should be a list of space-separated symbols to be *always*
6623 # included in the symbol list
6624 include_expsyms=
6625 # exclude_expsyms can be an extended regexp of symbols to exclude
6626 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6627 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6628 # as well as any symbol that contains `d'.
6629 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6630 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6631 # platforms (ab)use it in PIC code, but their linkers get confused if
6632 # the symbol is explicitly referenced. Since portable code cannot
6633 # rely on this symbol name, it's probably fine to never include it in
6634 # preloaded symbol tables.
6635 extract_expsyms_cmds=
6636
6637 case $host_os in
6638 cygwin* | mingw* | pw32*)
6639 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6640 # When not using gcc, we currently assume that we are using
6641 # Microsoft Visual C++.
6642 if test "$GCC" != yes; then
6643 with_gnu_ld=no
6644 fi
6645 ;;
6646 openbsd*)
6647 with_gnu_ld=no
6648 ;;
6649 esac
6650
6651 ld_shlibs=yes
6652 if test "$with_gnu_ld" = yes; then
6653 # If archive_cmds runs LD, not CC, wlarc should be empty
6654 wlarc='${wl}'
6655
6656 # See if GNU ld supports shared libraries.
6657 case $host_os in
6658 aix3* | aix4* | aix5*)
6659 # On AIX/PPC, the GNU linker is very broken
6660 if test "$host_cpu" != ia64; then
6661 ld_shlibs=no
6662 cat <<EOF 1>&2
6663
6664*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6665*** to be unable to reliably create shared libraries on AIX.
6666*** Therefore, libtool is disabling shared libraries support. If you
6667*** really care for shared libraries, you may want to modify your PATH
6668*** so that a non-GNU linker is found, and then restart.
6669
6670EOF
6671 fi
6672 ;;
6673
6674 amigaos*)
6675 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6676 hardcode_libdir_flag_spec='-L$libdir'
6677 hardcode_minus_L=yes
6678
6679 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6680 # that the semantics of dynamic libraries on AmigaOS, at least up
6681 # to version 4, is to share data among multiple programs linked
6682 # with the same dynamic library. Since this doesn't match the
6683 # behavior of shared libraries on other platforms, we can't use
6684 # them.
6685 ld_shlibs=no
6686 ;;
6687
6688 beos*)
6689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6690 allow_undefined_flag=unsupported
6691 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6692 # support --undefined. This deserves some investigation. FIXME
6693 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6694 else
6695 ld_shlibs=no
6696 fi
6697 ;;
6698
6699 cygwin* | mingw* | pw32*)
6700 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6701 # as there is no search path for DLLs.
6702 hardcode_libdir_flag_spec='-L$libdir'
6703 allow_undefined_flag=unsupported
6704 always_export_symbols=no
6705 enable_shared_with_static_runtimes=yes
6706 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6707
6708 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6710 # If the export-symbols file already is a .def file (1st line
6711 # is EXPORTS), use it as is; otherwise, prepend...
6712 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6713 cp $export_symbols $output_objdir/$soname.def;
6714 else
6715 echo EXPORTS > $output_objdir/$soname.def;
6716 cat $export_symbols >> $output_objdir/$soname.def;
6717 fi~
6718 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6719 else
6720 ld_shlibs=no
6721 fi
6722 ;;
6723
6724 netbsd*)
6725 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6726 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6727 wlarc=
6728 else
6729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6731 fi
6732 ;;
6733
6734 solaris* | sysv5*)
6735 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6736 ld_shlibs=no
6737 cat <<EOF 1>&2
6738
6739*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6740*** create shared libraries on Solaris systems. Therefore, libtool
6741*** is disabling shared libraries support. We urge you to upgrade GNU
6742*** binutils to release 2.9.1 or newer. Another option is to modify
6743*** your PATH or compiler configuration so that the native linker is
6744*** used, and then restart.
6745
6746EOF
6747 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6750 else
6751 ld_shlibs=no
6752 fi
6753 ;;
6754
6755 sunos4*)
6756 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6757 wlarc=
6758 hardcode_direct=yes
6759 hardcode_shlibpath_var=no
6760 ;;
6761
6762 *)
6763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6766 else
6767 ld_shlibs=no
6768 fi
6769 ;;
6770 esac
6771
6772 if test "$ld_shlibs" = yes; then
6773 runpath_var=LD_RUN_PATH
6774 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6775 export_dynamic_flag_spec='${wl}--export-dynamic'
6776 # ancient GNU ld didn't support --whole-archive et. al.
6777 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6778 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6779 else
6780 whole_archive_flag_spec=
6781 fi
6782 fi
6783 else
6784 # PORTME fill in a description of your system's linker (not GNU ld)
6785 case $host_os in
6786 aix3*)
6787 allow_undefined_flag=unsupported
6788 always_export_symbols=yes
6789 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6790 # Note: this linker hardcodes the directories in LIBPATH if there
6791 # are no directories specified by -L.
6792 hardcode_minus_L=yes
6793 if test "$GCC" = yes && test -z "$link_static_flag"; then
6794 # Neither direct hardcoding nor static linking is supported with a
6795 # broken collect2.
6796 hardcode_direct=unsupported
6797 fi
6798 ;;
6799
6800 aix4* | aix5*)
6801 if test "$host_cpu" = ia64; then
6802 # On IA64, the linker does run time linking by default, so we don't
6803 # have to do anything special.
6804 aix_use_runtimelinking=no
6805 exp_sym_flag='-Bexport'
6806 no_entry_flag=""
6807 else
6808 # If we're using GNU nm, then we don't want the "-C" option.
6809 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6810 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6811 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6812 else
6813 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6814 fi
6815 aix_use_runtimelinking=no
6816
6817 # Test if we are trying to use run time linking or normal
6818 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6819 # need to do runtime linking.
6820 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6821 for ld_flag in $LDFLAGS; do
6822 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6823 aix_use_runtimelinking=yes
6824 break
6825 fi
6826 done
6827 esac
6828
6829 exp_sym_flag='-bexport'
6830 no_entry_flag='-bnoentry'
6831 fi
6832
6833 # When large executables or shared objects are built, AIX ld can
6834 # have problems creating the table of contents. If linking a library
6835 # or program results in "error TOC overflow" add -mminimal-toc to
6836 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6837 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6838
6839 archive_cmds=''
6840 hardcode_direct=yes
6841 hardcode_libdir_separator=':'
6842 link_all_deplibs=yes
6843
6844 if test "$GCC" = yes; then
6845 case $host_os in aix4.012|aix4.012.*)
6846 # We only want to do this on AIX 4.2 and lower, the check
6847 # below for broken collect2 doesn't work under 4.3+
6848 collect2name=`${CC} -print-prog-name=collect2`
6849 if test -f "$collect2name" && \
6850 strings "$collect2name" | grep resolve_lib_name >/dev/null
6851 then
6852 # We have reworked collect2
6853 hardcode_direct=yes
6854 else
6855 # We have old collect2
6856 hardcode_direct=unsupported
6857 # It fails to find uninstalled libraries when the uninstalled
6858 # path is not listed in the libpath. Setting hardcode_minus_L
6859 # to unsupported forces relinking
6860 hardcode_minus_L=yes
6861 hardcode_libdir_flag_spec='-L$libdir'
6862 hardcode_libdir_separator=
6863 fi
6864 esac
6865 shared_flag='-shared'
6866 else
6867 # not using gcc
6868 if test "$host_cpu" = ia64; then
6869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6870 # chokes on -Wl,-G. The following line is correct:
6871 shared_flag='-G'
6872 else
6873 if test "$aix_use_runtimelinking" = yes; then
6874 shared_flag='${wl}-G'
6875 else
6876 shared_flag='${wl}-bM:SRE'
6877 fi
6878 fi
6879 fi
6880
6881 # It seems that -bexpall does not export symbols beginning with
6882 # underscore (_), so it is better to generate a list of symbols to export.
6883 always_export_symbols=yes
6884 if test "$aix_use_runtimelinking" = yes; then
6885 # Warning - without using the other runtime loading flags (-brtl),
6886 # -berok will link without error, but may produce a broken library.
6887 allow_undefined_flag='-berok'
6888 # Determine the default libpath from the value encoded in an empty executable.
6889 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006890#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006891/* confdefs.h. */
6892_ACEOF
6893cat confdefs.h >>conftest.$ac_ext
6894cat >>conftest.$ac_ext <<_ACEOF
6895/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006896
John Criswell7a73b802003-06-30 21:59:07 +00006897int
6898main ()
6899{
John Criswell47fdd832003-07-14 16:52:07 +00006900
John Criswell7a73b802003-06-30 21:59:07 +00006901 ;
6902 return 0;
6903}
6904_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006905rm -f conftest.$ac_objext conftest$ac_exeext
6906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6907 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006911 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006917
John Criswell47fdd832003-07-14 16:52:07 +00006918aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6919}'`
6920# Check for a 64-bit object if we didn't find anything.
6921if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6922}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006923else
6924 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006925sed 's/^/| /' conftest.$ac_ext >&5
6926
John Criswell7a73b802003-06-30 21:59:07 +00006927fi
John Criswell47fdd832003-07-14 16:52:07 +00006928rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6929if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006930
John Criswell47fdd832003-07-14 16:52:07 +00006931 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6932 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6933 else
6934 if test "$host_cpu" = ia64; then
6935 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6936 allow_undefined_flag="-z nodefs"
6937 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6938 else
6939 # Determine the default libpath from the value encoded in an empty executable.
6940 cat >conftest.$ac_ext <<_ACEOF
6941#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006942/* confdefs.h. */
6943_ACEOF
6944cat confdefs.h >>conftest.$ac_ext
6945cat >>conftest.$ac_ext <<_ACEOF
6946/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006947
John Criswell47fdd832003-07-14 16:52:07 +00006948int
6949main ()
6950{
John Criswell7a73b802003-06-30 21:59:07 +00006951
John Criswell47fdd832003-07-14 16:52:07 +00006952 ;
6953 return 0;
6954}
6955_ACEOF
6956rm -f conftest.$ac_objext conftest$ac_exeext
6957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958 (eval $ac_link) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
6962 { ac_try='test -s conftest$ac_exeext'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 (eval $ac_try) 2>&5
6965 ac_status=$?
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006968
John Criswell47fdd832003-07-14 16:52:07 +00006969aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6970}'`
6971# Check for a 64-bit object if we didn't find anything.
6972if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6973}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006974else
John Criswell47fdd832003-07-14 16:52:07 +00006975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006976sed 's/^/| /' conftest.$ac_ext >&5
6977
John Criswell47fdd832003-07-14 16:52:07 +00006978fi
6979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6980if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006981
John Criswell47fdd832003-07-14 16:52:07 +00006982 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6983 # Warning - without using the other run time loading flags,
6984 # -berok will link without error, but may produce a broken library.
6985 no_undefined_flag=' ${wl}-bernotok'
6986 allow_undefined_flag=' ${wl}-berok'
6987 # -bexpall does not export symbols beginning with underscore (_)
6988 always_export_symbols=yes
6989 # Exported symbols can be pulled into shared objects from archives
6990 whole_archive_flag_spec=' '
6991 archive_cmds_need_lc=yes
6992 # This is similar to how AIX traditionally builds it's shared libraries.
6993 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell7a73b802003-06-30 21:59:07 +00006994 fi
6995 fi
John Criswell7a73b802003-06-30 21:59:07 +00006996 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006997
6998 amigaos*)
6999 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7000 hardcode_libdir_flag_spec='-L$libdir'
7001 hardcode_minus_L=yes
7002 # see comment about different semantics on the GNU ld section
7003 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007004 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007005
John Criswell47fdd832003-07-14 16:52:07 +00007006 bsdi4*)
7007 export_dynamic_flag_spec=-rdynamic
7008 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007009
John Criswell47fdd832003-07-14 16:52:07 +00007010 cygwin* | mingw* | pw32*)
7011 # When not using gcc, we currently assume that we are using
7012 # Microsoft Visual C++.
7013 # hardcode_libdir_flag_spec is actually meaningless, as there is
7014 # no search path for DLLs.
7015 hardcode_libdir_flag_spec=' '
7016 allow_undefined_flag=unsupported
7017 # Tell ltmain to make .lib files, not .a files.
7018 libext=lib
7019 # Tell ltmain to make .dll files, not .so files.
7020 shrext=".dll"
7021 # FIXME: Setting linknames here is a bad hack.
7022 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7023 # The linker will automatically build a .lib file if we build a DLL.
7024 old_archive_From_new_cmds='true'
7025 # FIXME: Should let the user specify the lib program.
7026 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7027 fix_srcfile_path='`cygpath -w "$srcfile"`'
7028 enable_shared_with_static_runtimes=yes
7029 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007030
John Criswell47fdd832003-07-14 16:52:07 +00007031 darwin* | rhapsody*)
7032 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7033 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007034 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007035 rhapsody* | darwin1.[012])
7036 allow_undefined_flag='-undefined suppress'
7037 ;;
7038 *) # Darwin 1.3 on
7039 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007040 ;;
7041 esac
John Criswell47fdd832003-07-14 16:52:07 +00007042 # FIXME: Relying on posixy $() will cause problems for
7043 # cross-compilation, but unfortunately the echo tests do not
7044 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7045 # `"' quotes if we put them in here... so don't!
7046 lt_int_apple_cc_single_mod=no
7047 output_verbose_link_cmd='echo'
7048 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7049 lt_int_apple_cc_single_mod=yes
7050 fi
7051 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7052 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7053 else
7054 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7055 fi
7056 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7057 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7058 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7059 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7060 else
7061 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7062 fi
7063 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7064 hardcode_direct=no
7065 hardcode_automatic=yes
7066 hardcode_shlibpath_var=unsupported
7067 whole_archive_flag_spec='-all_load $convenience'
7068 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007069 fi
John Criswell47fdd832003-07-14 16:52:07 +00007070 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007071
John Criswell47fdd832003-07-14 16:52:07 +00007072 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007074 hardcode_libdir_flag_spec='-L$libdir'
7075 hardcode_shlibpath_var=no
7076 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007077
John Criswell47fdd832003-07-14 16:52:07 +00007078 freebsd1*)
7079 ld_shlibs=no
7080 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007081
John Criswell47fdd832003-07-14 16:52:07 +00007082 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7083 # support. Future versions do this automatically, but an explicit c++rt0.o
7084 # does not break anything, and helps significantly (at the cost of a little
7085 # extra space).
7086 freebsd2.2*)
7087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7088 hardcode_libdir_flag_spec='-R$libdir'
7089 hardcode_direct=yes
7090 hardcode_shlibpath_var=no
7091 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007092
John Criswell47fdd832003-07-14 16:52:07 +00007093 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7094 freebsd2*)
7095 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7096 hardcode_direct=yes
7097 hardcode_minus_L=yes
7098 hardcode_shlibpath_var=no
7099 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007100
John Criswell47fdd832003-07-14 16:52:07 +00007101 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7102 freebsd*)
7103 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7104 hardcode_libdir_flag_spec='-R$libdir'
7105 hardcode_direct=yes
7106 hardcode_shlibpath_var=no
7107 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007108
John Criswell47fdd832003-07-14 16:52:07 +00007109 hpux9*)
7110 if test "$GCC" = yes; then
7111 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7112 else
7113 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7114 fi
7115 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7116 hardcode_libdir_separator=:
7117 hardcode_direct=yes
7118
7119 # hardcode_minus_L: Not really in the search PATH,
7120 # but as the default location of the library.
7121 hardcode_minus_L=yes
7122 export_dynamic_flag_spec='${wl}-E'
7123 ;;
7124
7125 hpux10* | hpux11*)
7126 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7127 case "$host_cpu" in
7128 hppa*64*|ia64*)
7129 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7130 ;;
7131 *)
7132 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7133 ;;
7134 esac
7135 else
7136 case "$host_cpu" in
7137 hppa*64*|ia64*)
7138 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7139 ;;
7140 *)
7141 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7142 ;;
7143 esac
7144 fi
7145 if test "$with_gnu_ld" = no; then
7146 case "$host_cpu" in
7147 hppa*64*)
7148 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7149 hardcode_libdir_flag_spec_ld='+b $libdir'
7150 hardcode_libdir_separator=:
7151 hardcode_direct=no
7152 hardcode_shlibpath_var=no
7153 ;;
7154 ia64*)
7155 hardcode_libdir_flag_spec='-L$libdir'
7156 hardcode_direct=no
7157 hardcode_shlibpath_var=no
7158
7159 # hardcode_minus_L: Not really in the search PATH,
7160 # but as the default location of the library.
7161 hardcode_minus_L=yes
7162 ;;
7163 *)
7164 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7165 hardcode_libdir_separator=:
7166 hardcode_direct=yes
7167 export_dynamic_flag_spec='${wl}-E'
7168
7169 # hardcode_minus_L: Not really in the search PATH,
7170 # but as the default location of the library.
7171 hardcode_minus_L=yes
7172 ;;
7173 esac
7174 fi
7175 ;;
7176
7177 irix5* | irix6* | nonstopux*)
7178 if test "$GCC" = yes; then
7179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7180 else
7181 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7182 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7183 fi
7184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7185 hardcode_libdir_separator=:
7186 link_all_deplibs=yes
7187 ;;
7188
7189 netbsd*)
7190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7192 else
7193 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7194 fi
7195 hardcode_libdir_flag_spec='-R$libdir'
7196 hardcode_direct=yes
7197 hardcode_shlibpath_var=no
7198 ;;
7199
7200 newsos6)
7201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7202 hardcode_direct=yes
7203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7204 hardcode_libdir_separator=:
7205 hardcode_shlibpath_var=no
7206 ;;
7207
7208 openbsd*)
7209 hardcode_direct=yes
7210 hardcode_shlibpath_var=no
7211 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7212 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7213 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7214 export_dynamic_flag_spec='${wl}-E'
7215 else
7216 case $host_os in
7217 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7219 hardcode_libdir_flag_spec='-R$libdir'
7220 ;;
7221 *)
7222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7223 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7224 ;;
7225 esac
7226 fi
7227 ;;
7228
7229 os2*)
7230 hardcode_libdir_flag_spec='-L$libdir'
7231 hardcode_minus_L=yes
7232 allow_undefined_flag=unsupported
7233 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7234 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7235 ;;
7236
7237 osf3*)
7238 if test "$GCC" = yes; then
7239 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7240 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7241 else
7242 allow_undefined_flag=' -expect_unresolved \*'
7243 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7244 fi
7245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7246 hardcode_libdir_separator=:
7247 ;;
7248
7249 osf4* | osf5*) # as osf3* with the addition of -msym flag
7250 if test "$GCC" = yes; then
7251 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7252 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7254 else
7255 allow_undefined_flag=' -expect_unresolved \*'
7256 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7257 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7258 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7259
7260 # Both c and cxx compiler support -rpath directly
7261 hardcode_libdir_flag_spec='-rpath $libdir'
7262 fi
7263 hardcode_libdir_separator=:
7264 ;;
7265
7266 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007269 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007270 runpath_var=LD_RUN_PATH
7271 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007272 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007273
John Criswell47fdd832003-07-14 16:52:07 +00007274 solaris*)
7275 no_undefined_flag=' -z text'
7276 if test "$GCC" = yes; then
7277 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7278 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7279 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7280 else
7281 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7282 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7283 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7284 fi
7285 hardcode_libdir_flag_spec='-R$libdir'
7286 hardcode_shlibpath_var=no
7287 case $host_os in
7288 solaris2.[0-5] | solaris2.[0-5].*) ;;
7289 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7290 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7291 esac
7292 link_all_deplibs=yes
7293 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007294
John Criswell47fdd832003-07-14 16:52:07 +00007295 sunos4*)
7296 if test "x$host_vendor" = xsequent; then
7297 # Use $CC to link under sequent, because it throws in some extra .o
7298 # files that make .init and .fini sections work.
7299 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7300 else
7301 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7302 fi
7303 hardcode_libdir_flag_spec='-L$libdir'
7304 hardcode_direct=yes
7305 hardcode_minus_L=yes
7306 hardcode_shlibpath_var=no
7307 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007308
John Criswell47fdd832003-07-14 16:52:07 +00007309 sysv4)
7310 case $host_vendor in
7311 sni)
7312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7313 hardcode_direct=yes # is this really true???
7314 ;;
7315 siemens)
7316 ## LD is ld it makes a PLAMLIB
7317 ## CC just makes a GrossModule.
7318 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7319 reload_cmds='$CC -r -o $output$reload_objs'
7320 hardcode_direct=no
7321 ;;
7322 motorola)
7323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7324 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7325 ;;
7326 esac
7327 runpath_var='LD_RUN_PATH'
7328 hardcode_shlibpath_var=no
7329 ;;
7330
7331 sysv4.3*)
7332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7333 hardcode_shlibpath_var=no
7334 export_dynamic_flag_spec='-Bexport'
7335 ;;
7336
7337 sysv4*MP*)
7338 if test -d /usr/nec; then
7339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7340 hardcode_shlibpath_var=no
7341 runpath_var=LD_RUN_PATH
7342 hardcode_runpath_var=yes
7343 ld_shlibs=yes
7344 fi
7345 ;;
7346
7347 sysv4.2uw2*)
7348 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7349 hardcode_direct=yes
7350 hardcode_minus_L=no
7351 hardcode_shlibpath_var=no
7352 hardcode_runpath_var=yes
7353 runpath_var=LD_RUN_PATH
7354 ;;
7355
7356 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7357 no_undefined_flag='${wl}-z ${wl}text'
7358 if test "$GCC" = yes; then
7359 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7360 else
7361 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7362 fi
7363 runpath_var='LD_RUN_PATH'
7364 hardcode_shlibpath_var=no
7365 ;;
7366
7367 sysv5*)
7368 no_undefined_flag=' -z text'
7369 # $CC -shared without GNU ld will not create a library from C++
7370 # object files and a static libstdc++, better avoid it by now
7371 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7372 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7373 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7374 hardcode_libdir_flag_spec=
7375 hardcode_shlibpath_var=no
7376 runpath_var='LD_RUN_PATH'
7377 ;;
7378
7379 uts4*)
7380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7381 hardcode_libdir_flag_spec='-L$libdir'
7382 hardcode_shlibpath_var=no
7383 ;;
7384
7385 *)
7386 ld_shlibs=no
7387 ;;
7388 esac
7389 fi
7390
John Criswell7a73b802003-06-30 21:59:07 +00007391echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7392echo "${ECHO_T}$ld_shlibs" >&6
7393test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007394
John Criswell47fdd832003-07-14 16:52:07 +00007395variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7396if test "$GCC" = yes; then
7397 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7398fi
7399
7400#
7401# Do we need to explicitly link libc?
7402#
7403case "x$archive_cmds_need_lc" in
7404x|xyes)
7405 # Assume -lc should be added
7406 archive_cmds_need_lc=yes
7407
7408 if test "$enable_shared" = yes && test "$GCC" = yes; then
7409 case $archive_cmds in
7410 *'~'*)
7411 # FIXME: we may have to deal with multi-command sequences.
7412 ;;
7413 '$CC '*)
7414 # Test whether the compiler implicitly links with -lc since on some
7415 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7416 # to ld, don't add -lc before -lgcc.
7417 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7418echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7419 $rm conftest*
7420 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7421
7422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7423 (eval $ac_compile) 2>&5
7424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } 2>conftest.err; then
7427 soname=conftest
7428 lib=conftest
7429 libobjs=conftest.$ac_objext
7430 deplibs=
7431 wl=$lt_prog_compiler_wl
7432 compiler_flags=-v
7433 linker_flags=-v
7434 verstring=
7435 output_objdir=.
7436 libname=conftest
7437 lt_save_allow_undefined_flag=$allow_undefined_flag
7438 allow_undefined_flag=
7439 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7440 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7441 ac_status=$?
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }
7444 then
7445 archive_cmds_need_lc=no
7446 else
7447 archive_cmds_need_lc=yes
7448 fi
7449 allow_undefined_flag=$lt_save_allow_undefined_flag
7450 else
7451 cat conftest.err 1>&5
7452 fi
7453 $rm conftest*
7454 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7455echo "${ECHO_T}$archive_cmds_need_lc" >&6
7456 ;;
7457 esac
7458 fi
7459 ;;
7460esac
7461
John Criswell7a73b802003-06-30 21:59:07 +00007462echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7463echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7464hardcode_action=
7465if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007466 test -n "$runpath_var " || \
7467 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007468
7469 # We can hardcode non-existant directories.
7470 if test "$hardcode_direct" != no &&
7471 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7472 # have to relink, otherwise we might link with an installed library
7473 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007474 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007475 test "$hardcode_minus_L" != no; then
7476 # Linking always hardcodes the temporary library directory.
7477 hardcode_action=relink
7478 else
7479 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7480 hardcode_action=immediate
7481 fi
7482else
7483 # We cannot hardcode anything, or else we can only hardcode existing
7484 # directories.
7485 hardcode_action=unsupported
7486fi
7487echo "$as_me:$LINENO: result: $hardcode_action" >&5
7488echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007489
John Criswell47fdd832003-07-14 16:52:07 +00007490if test "$hardcode_action" = relink; then
7491 # Fast installation is not supported
7492 enable_fast_install=no
7493elif test "$shlibpath_overrides_runpath" = yes ||
7494 test "$enable_shared" = no; then
7495 # Fast installation is not necessary
7496 enable_fast_install=needless
7497fi
7498
John Criswell7a73b802003-06-30 21:59:07 +00007499striplib=
7500old_striplib=
7501echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7502echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7503if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7504 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7505 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7506 echo "$as_me:$LINENO: result: yes" >&5
7507echo "${ECHO_T}yes" >&6
7508else
John Criswell47fdd832003-07-14 16:52:07 +00007509# FIXME - insert some real tests, host_os isn't really good enough
7510 case $host_os in
7511 darwin*)
7512 if test -n "$STRIP" ; then
7513 striplib="$STRIP -x"
7514 echo "$as_me:$LINENO: result: yes" >&5
7515echo "${ECHO_T}yes" >&6
7516 else
John Criswell7a73b802003-06-30 21:59:07 +00007517 echo "$as_me:$LINENO: result: no" >&5
7518echo "${ECHO_T}no" >&6
7519fi
John Criswell47fdd832003-07-14 16:52:07 +00007520 ;;
7521 *)
7522 echo "$as_me:$LINENO: result: no" >&5
7523echo "${ECHO_T}no" >&6
7524 ;;
7525 esac
7526fi
John Criswell7a73b802003-06-30 21:59:07 +00007527
John Criswell7a73b802003-06-30 21:59:07 +00007528echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7529echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7530library_names_spec=
7531libname_spec='lib$name'
7532soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007533shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007534postinstall_cmds=
7535postuninstall_cmds=
7536finish_cmds=
7537finish_eval=
7538shlibpath_var=
7539shlibpath_overrides_runpath=unknown
7540version_type=none
7541dynamic_linker="$host_os ld.so"
7542sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007543if test "$GCC" = yes; then
7544 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7545 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7546 # if the path contains ";" then we assume it to be the separator
7547 # otherwise default to the standard path separator (i.e. ":") - it is
7548 # assumed that no part of a normal pathname contains ";" but that should
7549 # okay in the real world where ";" in dirpaths is itself problematic.
7550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7551 else
7552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7553 fi
7554else
7555 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7556fi
7557need_lib_prefix=unknown
7558hardcode_into_libs=no
7559
7560# when you set need_version to no, make sure it does not cause -set_version
7561# flags to be left without arguments
7562need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007563
7564case $host_os in
7565aix3*)
7566 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007568 shlibpath_var=LIBPATH
7569
John Criswell47fdd832003-07-14 16:52:07 +00007570 # AIX 3 has no versioning support, so we append a major version to the name.
7571 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007572 ;;
7573
7574aix4* | aix5*)
7575 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007576 need_lib_prefix=no
7577 need_version=no
7578 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007579 if test "$host_cpu" = ia64; then
7580 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007581 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007582 shlibpath_var=LD_LIBRARY_PATH
7583 else
7584 # With GCC up to 2.95.x, collect2 would create an import file
7585 # for dependence libraries. The import file would start with
7586 # the line `#! .'. This would cause the generated library to
7587 # depend on `.', always an invalid library. This was fixed in
7588 # development snapshots of GCC prior to 3.0.
7589 case $host_os in
7590 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007591 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7592 echo ' yes '
7593 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7594 :
7595 else
7596 can_build_shared=no
7597 fi
7598 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007599 esac
John Criswell47fdd832003-07-14 16:52:07 +00007600 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7601 # soname into executable. Probably we can add versioning support to
7602 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007603 if test "$aix_use_runtimelinking" = yes; then
7604 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7605 # instead of lib<name>.a to let people know that these are not
7606 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007608 else
7609 # We preserve .a as extension for shared libraries through AIX4.2
7610 # and later when we are not doing run time linking.
7611 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007612 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007613 fi
7614 shlibpath_var=LIBPATH
7615 fi
7616 ;;
7617
7618amigaos*)
7619 library_names_spec='$libname.ixlibrary $libname.a'
7620 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7621 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
7622 ;;
7623
7624beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007625 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007626 dynamic_linker="$host_os ld.so"
7627 shlibpath_var=LIBRARY_PATH
7628 ;;
7629
7630bsdi4*)
7631 version_type=linux
7632 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7634 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007635 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7636 shlibpath_var=LD_LIBRARY_PATH
7637 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7638 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007639 # the default ld.so.conf also contains /usr/contrib/lib and
7640 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7641 # libtool to hard-code these into programs
7642 ;;
7643
7644cygwin* | mingw* | pw32*)
7645 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007646 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007647 need_version=no
7648 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007649
John Criswell7a73b802003-06-30 21:59:07 +00007650 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007651 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007652 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007653 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7654 postinstall_cmds='base_file=`basename \${file}`~
7655 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007656 dldir=$destdir/`dirname \$dlpath`~
7657 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007658 $install_prog $dir/$dlname \$dldir/$dlname'
7659 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007660 dlpath=$dir/\$dldll~
7661 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007662 shlibpath_overrides_runpath=yes
7663
7664 case $host_os in
7665 cygwin*)
7666 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7667 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7668 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7669 ;;
7670 mingw*)
7671 # MinGW DLLs use traditional 'lib' prefix
7672 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7673 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7674 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7675 # It is most probably a Windows format PATH printed by
7676 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7677 # path with ; separators, and with drive letters. We can handle the
7678 # drive letters (cygwin fileutils understands them), so leave them,
7679 # especially as we might pass files found there to a mingw objdump,
7680 # which wouldn't understand a cygwinified path. Ahh.
7681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7682 else
7683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7684 fi
7685 ;;
7686 pw32*)
7687 # pw32 DLLs use 'pw' prefix rather than 'lib'
7688 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7689 ;;
7690 esac
John Criswell7a73b802003-06-30 21:59:07 +00007691 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007692
John Criswell7a73b802003-06-30 21:59:07 +00007693 *)
John Criswell47fdd832003-07-14 16:52:07 +00007694 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007695 ;;
7696 esac
7697 dynamic_linker='Win32 ld.exe'
7698 # FIXME: first we should search . and the directory the executable is in
7699 shlibpath_var=PATH
7700 ;;
7701
7702darwin* | rhapsody*)
7703 dynamic_linker="$host_os dyld"
7704 version_type=darwin
7705 need_lib_prefix=no
7706 need_version=no
7707 # FIXME: Relying on posixy $() will cause problems for
7708 # cross-compilation, but unfortunately the echo tests do not
7709 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007710 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7711 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007712 shlibpath_overrides_runpath=yes
7713 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007714 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7715 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7716 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7717 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7718 fi
7719 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7720 ;;
7721
7722dgux*)
7723 version_type=linux
7724 need_lib_prefix=no
7725 need_version=no
7726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7727 soname_spec='${libname}${release}${shared_ext}$major'
7728 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007729 ;;
7730
7731freebsd1*)
7732 dynamic_linker=no
7733 ;;
7734
7735freebsd*)
7736 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7737 version_type=freebsd-$objformat
7738 case $version_type in
7739 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007741 need_version=no
7742 need_lib_prefix=no
7743 ;;
7744 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007746 need_version=yes
7747 ;;
7748 esac
7749 shlibpath_var=LD_LIBRARY_PATH
7750 case $host_os in
7751 freebsd2*)
7752 shlibpath_overrides_runpath=yes
7753 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007754 freebsd3.01* | freebsdelf3.01*)
7755 shlibpath_overrides_runpath=yes
7756 hardcode_into_libs=yes
7757 ;;
7758 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007759 shlibpath_overrides_runpath=no
7760 hardcode_into_libs=yes
7761 ;;
7762 esac
7763 ;;
7764
7765gnu*)
7766 version_type=linux
7767 need_lib_prefix=no
7768 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7770 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007771 shlibpath_var=LD_LIBRARY_PATH
7772 hardcode_into_libs=yes
7773 ;;
7774
7775hpux9* | hpux10* | hpux11*)
7776 # Give a soname corresponding to the major version so that dld.sl refuses to
7777 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007778 version_type=sunos
7779 need_lib_prefix=no
7780 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007781 case "$host_cpu" in
7782 ia64*)
7783 shrext='.so'
7784 hardcode_into_libs=yes
7785 dynamic_linker="$host_os dld.so"
7786 shlibpath_var=LD_LIBRARY_PATH
7787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7789 soname_spec='${libname}${release}${shared_ext}$major'
7790 if test "X$HPUX_IA64_MODE" = X32; then
7791 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7792 else
7793 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7794 fi
7795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7796 ;;
7797 hppa*64*)
7798 shrext='.sl'
7799 hardcode_into_libs=yes
7800 dynamic_linker="$host_os dld.sl"
7801 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7804 soname_spec='${libname}${release}${shared_ext}$major'
7805 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7807 ;;
7808 *)
7809 shrext='.sl'
7810 dynamic_linker="$host_os dld.sl"
7811 shlibpath_var=SHLIB_PATH
7812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7814 soname_spec='${libname}${release}${shared_ext}$major'
7815 ;;
7816 esac
John Criswell7a73b802003-06-30 21:59:07 +00007817 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7818 postinstall_cmds='chmod 555 $lib'
7819 ;;
7820
John Criswell47fdd832003-07-14 16:52:07 +00007821irix5* | irix6* | nonstopux*)
7822 case $host_os in
7823 nonstopux*) version_type=nonstopux ;;
7824 *)
7825 if test "$lt_cv_prog_gnu_ld" = yes; then
7826 version_type=linux
7827 else
7828 version_type=irix
7829 fi ;;
7830 esac
John Criswell7a73b802003-06-30 21:59:07 +00007831 need_lib_prefix=no
7832 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007833 soname_spec='${libname}${release}${shared_ext}$major'
7834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007835 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007836 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007837 libsuff= shlibsuff=
7838 ;;
7839 *)
7840 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007841 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7842 libsuff= shlibsuff= libmagic=32-bit;;
7843 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7844 libsuff=32 shlibsuff=N32 libmagic=N32;;
7845 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7846 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007847 *) libsuff= shlibsuff= libmagic=never-match;;
7848 esac
7849 ;;
7850 esac
7851 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7852 shlibpath_overrides_runpath=no
7853 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7854 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007855 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007856 ;;
7857
7858# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007859linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007860 dynamic_linker=no
7861 ;;
7862
7863# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007864linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007865 version_type=linux
7866 need_lib_prefix=no
7867 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7869 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7871 shlibpath_var=LD_LIBRARY_PATH
7872 shlibpath_overrides_runpath=no
7873 # This implies no fast_install, which is unacceptable.
7874 # Some rework will be needed to allow for fast_install
7875 # before this can be enabled.
7876 hardcode_into_libs=yes
7877
7878 # We used to test for /lib/ld.so.1 and disable shared libraries on
7879 # powerpc, because MkLinux only supported shared libraries with the
7880 # GNU dynamic linker. Since this was broken with cross compilers,
7881 # most powerpc-linux boxes support dynamic linking these days and
7882 # people can always --disable-shared, the test was removed, and we
7883 # assume the GNU/Linux dynamic linker is in use.
7884 dynamic_linker='GNU/Linux ld.so'
7885 ;;
7886
7887netbsd*)
7888 version_type=sunos
7889 need_lib_prefix=no
7890 need_version=no
7891 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7894 dynamic_linker='NetBSD (a.out) ld.so'
7895 else
John Criswell47fdd832003-07-14 16:52:07 +00007896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7897 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007898 dynamic_linker='NetBSD ld.elf_so'
7899 fi
7900 shlibpath_var=LD_LIBRARY_PATH
7901 shlibpath_overrides_runpath=yes
7902 hardcode_into_libs=yes
7903 ;;
7904
7905newsos6)
7906 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7908 shlibpath_var=LD_LIBRARY_PATH
7909 shlibpath_overrides_runpath=yes
7910 ;;
7911
7912nto-qnx)
7913 version_type=linux
7914 need_lib_prefix=no
7915 need_version=no
7916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7917 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007918 shlibpath_var=LD_LIBRARY_PATH
7919 shlibpath_overrides_runpath=yes
7920 ;;
7921
7922openbsd*)
7923 version_type=sunos
7924 need_lib_prefix=no
7925 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7928 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007929 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 +00007930 case $host_os in
7931 openbsd2.[89] | openbsd2.[89].*)
7932 shlibpath_overrides_runpath=no
7933 ;;
7934 *)
7935 shlibpath_overrides_runpath=yes
7936 ;;
7937 esac
John Criswell7a73b802003-06-30 21:59:07 +00007938 else
7939 shlibpath_overrides_runpath=yes
7940 fi
John Criswell7a73b802003-06-30 21:59:07 +00007941 ;;
7942
7943os2*)
7944 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007945 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007946 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007947 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007948 dynamic_linker='OS/2 ld.exe'
7949 shlibpath_var=LIBPATH
7950 ;;
7951
7952osf3* | osf4* | osf5*)
7953 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007954 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007955 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007956 soname_spec='${libname}${release}${shared_ext}$major'
7957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007958 shlibpath_var=LD_LIBRARY_PATH
7959 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7960 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7961 ;;
7962
7963sco3.2v5*)
7964 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007965 soname_spec='${libname}${release}${shared_ext}$major'
7966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007967 shlibpath_var=LD_LIBRARY_PATH
7968 ;;
7969
7970solaris*)
7971 version_type=linux
7972 need_lib_prefix=no
7973 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007976 shlibpath_var=LD_LIBRARY_PATH
7977 shlibpath_overrides_runpath=yes
7978 hardcode_into_libs=yes
7979 # ldd complains unless libraries are executable
7980 postinstall_cmds='chmod +x $lib'
7981 ;;
7982
7983sunos4*)
7984 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007986 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7987 shlibpath_var=LD_LIBRARY_PATH
7988 shlibpath_overrides_runpath=yes
7989 if test "$with_gnu_ld" = yes; then
7990 need_lib_prefix=no
7991 fi
7992 need_version=yes
7993 ;;
7994
7995sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7996 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7998 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007999 shlibpath_var=LD_LIBRARY_PATH
8000 case $host_vendor in
8001 sni)
8002 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008003 need_lib_prefix=no
8004 export_dynamic_flag_spec='${wl}-Blargedynsym'
8005 runpath_var=LD_RUN_PATH
8006 ;;
8007 siemens)
8008 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008009 ;;
8010 motorola)
8011 need_lib_prefix=no
8012 need_version=no
8013 shlibpath_overrides_runpath=no
8014 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8015 ;;
8016 esac
8017 ;;
8018
John Criswell7a73b802003-06-30 21:59:07 +00008019sysv4*MP*)
8020 if test -d /usr/nec ;then
8021 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008022 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8023 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008024 shlibpath_var=LD_LIBRARY_PATH
8025 fi
8026 ;;
8027
John Criswell47fdd832003-07-14 16:52:07 +00008028uts4*)
8029 version_type=linux
8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8031 soname_spec='${libname}${release}${shared_ext}$major'
8032 shlibpath_var=LD_LIBRARY_PATH
8033 ;;
8034
John Criswell7a73b802003-06-30 21:59:07 +00008035*)
8036 dynamic_linker=no
8037 ;;
8038esac
8039echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8040echo "${ECHO_T}$dynamic_linker" >&6
8041test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008042
8043if test "x$enable_dlopen" != xyes; then
8044 enable_dlopen=unknown
8045 enable_dlopen_self=unknown
8046 enable_dlopen_self_static=unknown
8047else
8048 lt_cv_dlopen=no
8049 lt_cv_dlopen_libs=
8050
8051 case $host_os in
8052 beos*)
8053 lt_cv_dlopen="load_add_on"
8054 lt_cv_dlopen_libs=
8055 lt_cv_dlopen_self=yes
8056 ;;
8057
John Criswell47fdd832003-07-14 16:52:07 +00008058 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008059 lt_cv_dlopen="LoadLibrary"
8060 lt_cv_dlopen_libs=
8061 ;;
8062
John Criswell47fdd832003-07-14 16:52:07 +00008063 cygwin*)
8064 lt_cv_dlopen="dlopen"
8065 lt_cv_dlopen_libs=
8066 ;;
8067
8068 darwin*)
8069 # if libdl is installed we need to link against it
8070 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8071echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8072if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8074else
8075 ac_check_lib_save_LIBS=$LIBS
8076LIBS="-ldl $LIBS"
8077cat >conftest.$ac_ext <<_ACEOF
8078#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008079/* confdefs.h. */
8080_ACEOF
8081cat confdefs.h >>conftest.$ac_ext
8082cat >>conftest.$ac_ext <<_ACEOF
8083/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008084
8085/* Override any gcc2 internal prototype to avoid an error. */
8086#ifdef __cplusplus
8087extern "C"
8088#endif
8089/* We use char because int might match the return type of a gcc2
8090 builtin and then its argument prototype would still apply. */
8091char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008092int
8093main ()
8094{
8095dlopen ();
8096 ;
8097 return 0;
8098}
8099_ACEOF
8100rm -f conftest.$ac_objext conftest$ac_exeext
8101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8102 (eval $ac_link) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -s conftest$ac_exeext'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8112 ac_cv_lib_dl_dlopen=yes
8113else
8114 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008115sed 's/^/| /' conftest.$ac_ext >&5
8116
John Criswell47fdd832003-07-14 16:52:07 +00008117ac_cv_lib_dl_dlopen=no
8118fi
8119rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8120LIBS=$ac_check_lib_save_LIBS
8121fi
8122echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8123echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8124if test $ac_cv_lib_dl_dlopen = yes; then
8125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8126else
8127
8128 lt_cv_dlopen="dyld"
8129 lt_cv_dlopen_libs=
8130 lt_cv_dlopen_self=yes
8131
8132fi
8133
8134 ;;
8135
John Criswell7a73b802003-06-30 21:59:07 +00008136 *)
8137 echo "$as_me:$LINENO: checking for shl_load" >&5
8138echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8139if test "${ac_cv_func_shl_load+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8141else
8142 cat >conftest.$ac_ext <<_ACEOF
8143#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008144/* confdefs.h. */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008149/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008150 which can conflict with char shl_load (); below.
8151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8152 <limits.h> exists even on freestanding compilers. */
8153#ifdef __STDC__
8154# include <limits.h>
8155#else
8156# include <assert.h>
8157#endif
John Criswell7a73b802003-06-30 21:59:07 +00008158/* Override any gcc2 internal prototype to avoid an error. */
8159#ifdef __cplusplus
8160extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008161{
John Criswell7a73b802003-06-30 21:59:07 +00008162#endif
8163/* We use char because int might match the return type of a gcc2
8164 builtin and then its argument prototype would still apply. */
8165char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008166/* The GNU C library defines this for functions which it implements
8167 to always fail with ENOSYS. Some functions are actually named
8168 something starting with __ and the normal name is an alias. */
8169#if defined (__stub_shl_load) || defined (__stub___shl_load)
8170choke me
8171#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008172char (*f) () = shl_load;
8173#endif
8174#ifdef __cplusplus
8175}
John Criswell7a73b802003-06-30 21:59:07 +00008176#endif
8177
John Criswell0c38eaf2003-09-10 15:17:25 +00008178int
8179main ()
8180{
8181return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008182 ;
8183 return 0;
8184}
8185_ACEOF
8186rm -f conftest.$ac_objext conftest$ac_exeext
8187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8188 (eval $ac_link) 2>&5
8189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } &&
8192 { ac_try='test -s conftest$ac_exeext'
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 (eval $ac_try) 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8198 ac_cv_func_shl_load=yes
8199else
8200 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008201sed 's/^/| /' conftest.$ac_ext >&5
8202
John Criswell7a73b802003-06-30 21:59:07 +00008203ac_cv_func_shl_load=no
8204fi
8205rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8206fi
8207echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8208echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8209if test $ac_cv_func_shl_load = yes; then
8210 lt_cv_dlopen="shl_load"
8211else
8212 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8213echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8214if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8216else
8217 ac_check_lib_save_LIBS=$LIBS
8218LIBS="-ldld $LIBS"
8219cat >conftest.$ac_ext <<_ACEOF
8220#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008221/* confdefs.h. */
8222_ACEOF
8223cat confdefs.h >>conftest.$ac_ext
8224cat >>conftest.$ac_ext <<_ACEOF
8225/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008226
8227/* Override any gcc2 internal prototype to avoid an error. */
8228#ifdef __cplusplus
8229extern "C"
8230#endif
8231/* We use char because int might match the return type of a gcc2
8232 builtin and then its argument prototype would still apply. */
8233char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008234int
8235main ()
8236{
8237shl_load ();
8238 ;
8239 return 0;
8240}
8241_ACEOF
8242rm -f conftest.$ac_objext conftest$ac_exeext
8243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8244 (eval $ac_link) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
8248 { ac_try='test -s conftest$ac_exeext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 (eval $ac_try) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 ac_cv_lib_dld_shl_load=yes
8255else
8256 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008257sed 's/^/| /' conftest.$ac_ext >&5
8258
John Criswell7a73b802003-06-30 21:59:07 +00008259ac_cv_lib_dld_shl_load=no
8260fi
8261rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8262LIBS=$ac_check_lib_save_LIBS
8263fi
8264echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8265echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8266if test $ac_cv_lib_dld_shl_load = yes; then
8267 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8268else
8269 echo "$as_me:$LINENO: checking for dlopen" >&5
8270echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8271if test "${ac_cv_func_dlopen+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8273else
8274 cat >conftest.$ac_ext <<_ACEOF
8275#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008276/* confdefs.h. */
8277_ACEOF
8278cat confdefs.h >>conftest.$ac_ext
8279cat >>conftest.$ac_ext <<_ACEOF
8280/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008281/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008282 which can conflict with char dlopen (); below.
8283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8284 <limits.h> exists even on freestanding compilers. */
8285#ifdef __STDC__
8286# include <limits.h>
8287#else
8288# include <assert.h>
8289#endif
John Criswell7a73b802003-06-30 21:59:07 +00008290/* Override any gcc2 internal prototype to avoid an error. */
8291#ifdef __cplusplus
8292extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008293{
John Criswell7a73b802003-06-30 21:59:07 +00008294#endif
8295/* We use char because int might match the return type of a gcc2
8296 builtin and then its argument prototype would still apply. */
8297char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008298/* The GNU C library defines this for functions which it implements
8299 to always fail with ENOSYS. Some functions are actually named
8300 something starting with __ and the normal name is an alias. */
8301#if defined (__stub_dlopen) || defined (__stub___dlopen)
8302choke me
8303#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008304char (*f) () = dlopen;
8305#endif
8306#ifdef __cplusplus
8307}
John Criswell7a73b802003-06-30 21:59:07 +00008308#endif
8309
John Criswell0c38eaf2003-09-10 15:17:25 +00008310int
8311main ()
8312{
8313return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008314 ;
8315 return 0;
8316}
8317_ACEOF
8318rm -f conftest.$ac_objext conftest$ac_exeext
8319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_func_dlopen=yes
8331else
8332 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008333sed 's/^/| /' conftest.$ac_ext >&5
8334
John Criswell7a73b802003-06-30 21:59:07 +00008335ac_cv_func_dlopen=no
8336fi
8337rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8338fi
8339echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8340echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8341if test $ac_cv_func_dlopen = yes; then
8342 lt_cv_dlopen="dlopen"
8343else
8344 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8345echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8346if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348else
8349 ac_check_lib_save_LIBS=$LIBS
8350LIBS="-ldl $LIBS"
8351cat >conftest.$ac_ext <<_ACEOF
8352#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008353/* confdefs.h. */
8354_ACEOF
8355cat confdefs.h >>conftest.$ac_ext
8356cat >>conftest.$ac_ext <<_ACEOF
8357/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008358
8359/* Override any gcc2 internal prototype to avoid an error. */
8360#ifdef __cplusplus
8361extern "C"
8362#endif
8363/* We use char because int might match the return type of a gcc2
8364 builtin and then its argument prototype would still apply. */
8365char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008366int
8367main ()
8368{
8369dlopen ();
8370 ;
8371 return 0;
8372}
8373_ACEOF
8374rm -f conftest.$ac_objext conftest$ac_exeext
8375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376 (eval $ac_link) 2>&5
8377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -s conftest$ac_exeext'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 (eval $ac_try) 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8386 ac_cv_lib_dl_dlopen=yes
8387else
8388 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008389sed 's/^/| /' conftest.$ac_ext >&5
8390
John Criswell7a73b802003-06-30 21:59:07 +00008391ac_cv_lib_dl_dlopen=no
8392fi
8393rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8394LIBS=$ac_check_lib_save_LIBS
8395fi
8396echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8397echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8398if test $ac_cv_lib_dl_dlopen = yes; then
8399 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8400else
8401 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8402echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8403if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405else
8406 ac_check_lib_save_LIBS=$LIBS
8407LIBS="-lsvld $LIBS"
8408cat >conftest.$ac_ext <<_ACEOF
8409#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008410/* confdefs.h. */
8411_ACEOF
8412cat confdefs.h >>conftest.$ac_ext
8413cat >>conftest.$ac_ext <<_ACEOF
8414/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008415
8416/* Override any gcc2 internal prototype to avoid an error. */
8417#ifdef __cplusplus
8418extern "C"
8419#endif
8420/* We use char because int might match the return type of a gcc2
8421 builtin and then its argument prototype would still apply. */
8422char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008423int
8424main ()
8425{
8426dlopen ();
8427 ;
8428 return 0;
8429}
8430_ACEOF
8431rm -f conftest.$ac_objext conftest$ac_exeext
8432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433 (eval $ac_link) 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } &&
8437 { ac_try='test -s conftest$ac_exeext'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 (eval $ac_try) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_lib_svld_dlopen=yes
8444else
8445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008446sed 's/^/| /' conftest.$ac_ext >&5
8447
John Criswell7a73b802003-06-30 21:59:07 +00008448ac_cv_lib_svld_dlopen=no
8449fi
8450rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8451LIBS=$ac_check_lib_save_LIBS
8452fi
8453echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8454echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8455if test $ac_cv_lib_svld_dlopen = yes; then
8456 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8457else
8458 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8459echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8460if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462else
8463 ac_check_lib_save_LIBS=$LIBS
8464LIBS="-ldld $LIBS"
8465cat >conftest.$ac_ext <<_ACEOF
8466#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008467/* confdefs.h. */
8468_ACEOF
8469cat confdefs.h >>conftest.$ac_ext
8470cat >>conftest.$ac_ext <<_ACEOF
8471/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008472
8473/* Override any gcc2 internal prototype to avoid an error. */
8474#ifdef __cplusplus
8475extern "C"
8476#endif
8477/* We use char because int might match the return type of a gcc2
8478 builtin and then its argument prototype would still apply. */
8479char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008480int
8481main ()
8482{
8483dld_link ();
8484 ;
8485 return 0;
8486}
8487_ACEOF
8488rm -f conftest.$ac_objext conftest$ac_exeext
8489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490 (eval $ac_link) 2>&5
8491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -s conftest$ac_exeext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_lib_dld_dld_link=yes
8501else
8502 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008503sed 's/^/| /' conftest.$ac_ext >&5
8504
John Criswell7a73b802003-06-30 21:59:07 +00008505ac_cv_lib_dld_dld_link=no
8506fi
8507rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8508LIBS=$ac_check_lib_save_LIBS
8509fi
8510echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8511echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8512if test $ac_cv_lib_dld_dld_link = yes; then
8513 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8514fi
8515
8516
8517fi
8518
8519
8520fi
8521
8522
8523fi
8524
8525
8526fi
8527
8528
8529fi
8530
8531 ;;
8532 esac
8533
8534 if test "x$lt_cv_dlopen" != xno; then
8535 enable_dlopen=yes
8536 else
8537 enable_dlopen=no
8538 fi
8539
8540 case $lt_cv_dlopen in
8541 dlopen)
8542 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008543 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008544
8545 save_LDFLAGS="$LDFLAGS"
8546 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8547
8548 save_LIBS="$LIBS"
8549 LIBS="$lt_cv_dlopen_libs $LIBS"
8550
8551 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8552echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8553if test "${lt_cv_dlopen_self+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8555else
8556 if test "$cross_compiling" = yes; then :
8557 lt_cv_dlopen_self=cross
8558else
John Criswell47fdd832003-07-14 16:52:07 +00008559 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008560 lt_status=$lt_dlunknown
8561 cat > conftest.$ac_ext <<EOF
John Criswell7ec78aa2003-10-16 01:49:00 +00008562#line 8562 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008563#include "confdefs.h"
8564
8565#if HAVE_DLFCN_H
8566#include <dlfcn.h>
8567#endif
8568
8569#include <stdio.h>
8570
8571#ifdef RTLD_GLOBAL
8572# define LT_DLGLOBAL RTLD_GLOBAL
8573#else
8574# ifdef DL_GLOBAL
8575# define LT_DLGLOBAL DL_GLOBAL
8576# else
8577# define LT_DLGLOBAL 0
8578# endif
8579#endif
8580
8581/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8582 find out it does not work in some platform. */
8583#ifndef LT_DLLAZY_OR_NOW
8584# ifdef RTLD_LAZY
8585# define LT_DLLAZY_OR_NOW RTLD_LAZY
8586# else
8587# ifdef DL_LAZY
8588# define LT_DLLAZY_OR_NOW DL_LAZY
8589# else
8590# ifdef RTLD_NOW
8591# define LT_DLLAZY_OR_NOW RTLD_NOW
8592# else
8593# ifdef DL_NOW
8594# define LT_DLLAZY_OR_NOW DL_NOW
8595# else
8596# define LT_DLLAZY_OR_NOW 0
8597# endif
8598# endif
8599# endif
8600# endif
8601#endif
8602
8603#ifdef __cplusplus
8604extern "C" void exit (int);
8605#endif
8606
8607void fnord() { int i=42;}
8608int main ()
8609{
8610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8611 int status = $lt_dlunknown;
8612
8613 if (self)
8614 {
8615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8616 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8617 /* dlclose (self); */
8618 }
8619
8620 exit (status);
8621}
8622EOF
8623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8624 (eval $ac_link) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8628 (./conftest; exit; ) 2>/dev/null
8629 lt_status=$?
8630 case x$lt_status in
8631 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8632 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8633 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8634 esac
8635 else :
8636 # compilation failed
8637 lt_cv_dlopen_self=no
8638 fi
8639fi
8640rm -fr conftest*
8641
8642
8643fi
8644echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8645echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8646
8647 if test "x$lt_cv_dlopen_self" = xyes; then
8648 LDFLAGS="$LDFLAGS $link_static_flag"
8649 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8650echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8651if test "${lt_cv_dlopen_self_static+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653else
8654 if test "$cross_compiling" = yes; then :
8655 lt_cv_dlopen_self_static=cross
8656else
John Criswell47fdd832003-07-14 16:52:07 +00008657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008658 lt_status=$lt_dlunknown
8659 cat > conftest.$ac_ext <<EOF
John Criswell7ec78aa2003-10-16 01:49:00 +00008660#line 8660 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008661#include "confdefs.h"
8662
8663#if HAVE_DLFCN_H
8664#include <dlfcn.h>
8665#endif
8666
8667#include <stdio.h>
8668
8669#ifdef RTLD_GLOBAL
8670# define LT_DLGLOBAL RTLD_GLOBAL
8671#else
8672# ifdef DL_GLOBAL
8673# define LT_DLGLOBAL DL_GLOBAL
8674# else
8675# define LT_DLGLOBAL 0
8676# endif
8677#endif
8678
8679/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8680 find out it does not work in some platform. */
8681#ifndef LT_DLLAZY_OR_NOW
8682# ifdef RTLD_LAZY
8683# define LT_DLLAZY_OR_NOW RTLD_LAZY
8684# else
8685# ifdef DL_LAZY
8686# define LT_DLLAZY_OR_NOW DL_LAZY
8687# else
8688# ifdef RTLD_NOW
8689# define LT_DLLAZY_OR_NOW RTLD_NOW
8690# else
8691# ifdef DL_NOW
8692# define LT_DLLAZY_OR_NOW DL_NOW
8693# else
8694# define LT_DLLAZY_OR_NOW 0
8695# endif
8696# endif
8697# endif
8698# endif
8699#endif
8700
8701#ifdef __cplusplus
8702extern "C" void exit (int);
8703#endif
8704
8705void fnord() { int i=42;}
8706int main ()
8707{
8708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8709 int status = $lt_dlunknown;
8710
8711 if (self)
8712 {
8713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8714 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8715 /* dlclose (self); */
8716 }
8717
8718 exit (status);
8719}
8720EOF
8721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722 (eval $ac_link) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8726 (./conftest; exit; ) 2>/dev/null
8727 lt_status=$?
8728 case x$lt_status in
8729 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8730 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8731 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8732 esac
8733 else :
8734 # compilation failed
8735 lt_cv_dlopen_self_static=no
8736 fi
8737fi
8738rm -fr conftest*
8739
8740
8741fi
8742echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8743echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8744 fi
8745
8746 CPPFLAGS="$save_CPPFLAGS"
8747 LDFLAGS="$save_LDFLAGS"
8748 LIBS="$save_LIBS"
8749 ;;
8750 esac
8751
8752 case $lt_cv_dlopen_self in
8753 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8754 *) enable_dlopen_self=unknown ;;
8755 esac
8756
8757 case $lt_cv_dlopen_self_static in
8758 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8759 *) enable_dlopen_self_static=unknown ;;
8760 esac
8761fi
8762
8763
John Criswell47fdd832003-07-14 16:52:07 +00008764# Report which librarie types wil actually be built
8765echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8766echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8767echo "$as_me:$LINENO: result: $can_build_shared" >&5
8768echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008769
John Criswell47fdd832003-07-14 16:52:07 +00008770echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8771echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8772test "$can_build_shared" = "no" && enable_shared=no
8773
8774# On AIX, shared libraries and static libraries use the same namespace, and
8775# are all built from PIC.
8776case "$host_os" in
8777aix3*)
8778 test "$enable_shared" = yes && enable_static=no
8779 if test -n "$RANLIB"; then
8780 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8781 postinstall_cmds='$RANLIB $lib'
8782 fi
8783 ;;
8784
8785aix4*)
8786 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8787 test "$enable_shared" = yes && enable_static=no
8788 fi
8789 ;;
8790 darwin* | rhapsody*)
8791 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8792 archive_cmds_need_lc=no
8793 case "$host_os" in
8794 rhapsody* | darwin1.[012])
8795 allow_undefined_flag='-undefined suppress'
8796 ;;
8797 *) # Darwin 1.3 on
8798 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8799 ;;
8800 esac
8801 # FIXME: Relying on posixy $() will cause problems for
8802 # cross-compilation, but unfortunately the echo tests do not
8803 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8804 # `"' quotes if we put them in here... so don't!
8805 output_verbose_link_cmd='echo'
8806 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8807 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8808 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8809 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8810 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8811 hardcode_direct=no
8812 hardcode_automatic=yes
8813 hardcode_shlibpath_var=unsupported
8814 whole_archive_flag_spec='-all_load $convenience'
8815 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008816 fi
John Criswell7a73b802003-06-30 21:59:07 +00008817 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008818esac
8819echo "$as_me:$LINENO: result: $enable_shared" >&5
8820echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008821
John Criswell47fdd832003-07-14 16:52:07 +00008822echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8823echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8824# Make sure either enable_shared or enable_static is yes.
8825test "$enable_shared" = yes || enable_static=yes
8826echo "$as_me:$LINENO: result: $enable_static" >&5
8827echo "${ECHO_T}$enable_static" >&6
8828
8829# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008830# libtool distribution, otherwise you forgot to ship ltmain.sh
8831# with your package, and you will get complaints that there are
8832# no rules to generate ltmain.sh.
8833if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008834 # See if we are running on zsh, and set the options which allow our commands through
8835 # without removal of \ escapes.
8836 if test -n "${ZSH_VERSION+set}" ; then
8837 setopt NO_GLOB_SUBST
8838 fi
John Criswell7a73b802003-06-30 21:59:07 +00008839 # Now quote all the things that may contain metacharacters while being
8840 # careful not to overquote the AC_SUBSTed values. We take copies of the
8841 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008842 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8843 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8844 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8845 deplibs_check_method reload_flag reload_cmds need_locks \
8846 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8847 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008848 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008849 old_postinstall_cmds old_postuninstall_cmds \
8850 compiler \
8851 CC \
8852 LD \
8853 lt_prog_compiler_wl \
8854 lt_prog_compiler_pic \
8855 lt_prog_compiler_static \
8856 lt_prog_compiler_no_builtin_flag \
8857 export_dynamic_flag_spec \
8858 thread_safe_flag_spec \
8859 whole_archive_flag_spec \
8860 enable_shared_with_static_runtimes \
8861 old_archive_cmds \
8862 old_archive_from_new_cmds \
8863 predep_objects \
8864 postdep_objects \
8865 predeps \
8866 postdeps \
8867 compiler_lib_search_path \
8868 archive_cmds \
8869 archive_expsym_cmds \
8870 postinstall_cmds \
8871 postuninstall_cmds \
8872 old_archive_from_expsyms_cmds \
8873 allow_undefined_flag \
8874 no_undefined_flag \
8875 export_symbols_cmds \
8876 hardcode_libdir_flag_spec \
8877 hardcode_libdir_flag_spec_ld \
8878 hardcode_libdir_separator \
8879 hardcode_automatic \
8880 module_cmds \
8881 module_expsym_cmds \
8882 lt_cv_prog_compiler_c_o \
8883 exclude_expsyms \
8884 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008885
8886 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008887 old_archive_cmds | \
8888 old_archive_from_new_cmds | \
8889 archive_cmds | \
8890 archive_expsym_cmds | \
8891 module_cmds | \
8892 module_expsym_cmds | \
8893 old_archive_from_expsyms_cmds | \
8894 export_symbols_cmds | \
8895 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008896 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008897 old_postinstall_cmds | old_postuninstall_cmds | \
8898 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008899 # Double-quote double-evaled strings.
8900 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8901 ;;
8902 *)
8903 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8904 ;;
8905 esac
8906 done
8907
John Criswell47fdd832003-07-14 16:52:07 +00008908 case $lt_echo in
8909 *'\$0 --fallback-echo"')
8910 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8911 ;;
8912 esac
8913
8914cfgfile="${ofile}T"
8915 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8916 $rm -f "$cfgfile"
8917 { echo "$as_me:$LINENO: creating $ofile" >&5
8918echo "$as_me: creating $ofile" >&6;}
8919
8920 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008921#! $SHELL
8922
John Criswell47fdd832003-07-14 16:52:07 +00008923# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008924# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8925# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8926#
John Criswell47fdd832003-07-14 16:52:07 +00008927# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8928# Free Software Foundation, Inc.
8929#
8930# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008931# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8932#
8933# This program is free software; you can redistribute it and/or modify
8934# it under the terms of the GNU General Public License as published by
8935# the Free Software Foundation; either version 2 of the License, or
8936# (at your option) any later version.
8937#
8938# This program is distributed in the hope that it will be useful, but
8939# WITHOUT ANY WARRANTY; without even the implied warranty of
8940# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8941# General Public License for more details.
8942#
8943# You should have received a copy of the GNU General Public License
8944# along with this program; if not, write to the Free Software
8945# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8946#
8947# As a special exception to the GNU General Public License, if you
8948# distribute this file as part of a program that contains a
8949# configuration script generated by Autoconf, you may include it under
8950# the same distribution terms that you use for the rest of that program.
8951
John Criswell47fdd832003-07-14 16:52:07 +00008952# A sed program that does not truncate output.
8953SED=$lt_SED
8954
John Criswell7a73b802003-06-30 21:59:07 +00008955# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008956Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008957
8958# The HP-UX ksh and POSIX shell print the target directory to stdout
8959# if CDPATH is set.
8960if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8961
John Criswell47fdd832003-07-14 16:52:07 +00008962# The names of the tagged configurations supported by this script.
8963available_tags=
8964
John Criswell7a73b802003-06-30 21:59:07 +00008965# ### BEGIN LIBTOOL CONFIG
8966
8967# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8968
8969# Shell to use when invoking shell scripts.
8970SHELL=$lt_SHELL
8971
8972# Whether or not to build shared libraries.
8973build_libtool_libs=$enable_shared
8974
8975# Whether or not to build static libraries.
8976build_old_libs=$enable_static
8977
8978# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008979build_libtool_need_lc=$archive_cmds_need_lc
8980
8981# Whether or not to disallow shared libs when runtime libs are static
8982allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008983
8984# Whether or not to optimize for fast installation.
8985fast_install=$enable_fast_install
8986
8987# The host system.
8988host_alias=$host_alias
8989host=$host
8990
8991# An echo program that does not interpret backslashes.
8992echo=$lt_echo
8993
8994# The archiver.
8995AR=$lt_AR
8996AR_FLAGS=$lt_AR_FLAGS
8997
John Criswell47fdd832003-07-14 16:52:07 +00008998# A C compiler.
8999LTCC=$lt_LTCC
9000
9001# A language-specific compiler.
9002CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009003
9004# Is the compiler the GNU C compiler?
9005with_gcc=$GCC
9006
John Criswell47fdd832003-07-14 16:52:07 +00009007# An ERE matcher.
9008EGREP=$lt_EGREP
9009
John Criswell7a73b802003-06-30 21:59:07 +00009010# The linker used to build libraries.
9011LD=$lt_LD
9012
9013# Whether we need hard or soft links.
9014LN_S=$lt_LN_S
9015
9016# A BSD-compatible nm program.
9017NM=$lt_NM
9018
9019# A symbol stripping program
9020STRIP=$STRIP
9021
9022# Used to examine libraries when file_magic_cmd begins "file"
9023MAGIC_CMD=$MAGIC_CMD
9024
9025# Used on cygwin: DLL creation program.
9026DLLTOOL="$DLLTOOL"
9027
9028# Used on cygwin: object dumper.
9029OBJDUMP="$OBJDUMP"
9030
9031# Used on cygwin: assembler.
9032AS="$AS"
9033
9034# The name of the directory that contains temporary libtool files.
9035objdir=$objdir
9036
9037# How to create reloadable object files.
9038reload_flag=$lt_reload_flag
9039reload_cmds=$lt_reload_cmds
9040
9041# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009042wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009043
9044# Object file suffix (normally "o").
9045objext="$ac_objext"
9046
9047# Old archive suffix (normally "a").
9048libext="$libext"
9049
John Criswell47fdd832003-07-14 16:52:07 +00009050# Shared library suffix (normally ".so").
9051shrext='$shrext'
9052
John Criswell7a73b802003-06-30 21:59:07 +00009053# Executable file suffix (normally "").
9054exeext="$exeext"
9055
9056# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009057pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009058pic_mode=$pic_mode
9059
John Criswell47fdd832003-07-14 16:52:07 +00009060# What is the maximum length of a command?
9061max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009062
John Criswell47fdd832003-07-14 16:52:07 +00009063# Does compiler simultaneously support -c and -o options?
9064compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009065
9066# Must we lock files when doing compilation ?
9067need_locks=$lt_need_locks
9068
9069# Do we need the lib prefix for modules?
9070need_lib_prefix=$need_lib_prefix
9071
9072# Do we need a version for libraries?
9073need_version=$need_version
9074
9075# Whether dlopen is supported.
9076dlopen_support=$enable_dlopen
9077
9078# Whether dlopen of programs is supported.
9079dlopen_self=$enable_dlopen_self
9080
9081# Whether dlopen of statically linked programs is supported.
9082dlopen_self_static=$enable_dlopen_self_static
9083
9084# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009085link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009086
9087# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009088no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009089
9090# Compiler flag to allow reflexive dlopens.
9091export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9092
9093# Compiler flag to generate shared objects directly from archives.
9094whole_archive_flag_spec=$lt_whole_archive_flag_spec
9095
9096# Compiler flag to generate thread-safe objects.
9097thread_safe_flag_spec=$lt_thread_safe_flag_spec
9098
9099# Library versioning type.
9100version_type=$version_type
9101
9102# Format of library name prefix.
9103libname_spec=$lt_libname_spec
9104
9105# List of archive names. First name is the real one, the rest are links.
9106# The last name is the one that the linker finds with -lNAME.
9107library_names_spec=$lt_library_names_spec
9108
9109# The coded name of the library, if different from the real name.
9110soname_spec=$lt_soname_spec
9111
9112# Commands used to build and install an old-style archive.
9113RANLIB=$lt_RANLIB
9114old_archive_cmds=$lt_old_archive_cmds
9115old_postinstall_cmds=$lt_old_postinstall_cmds
9116old_postuninstall_cmds=$lt_old_postuninstall_cmds
9117
9118# Create an old-style archive from a shared archive.
9119old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9120
9121# Create a temporary old-style archive to link instead of a shared archive.
9122old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9123
9124# Commands used to build and install a shared archive.
9125archive_cmds=$lt_archive_cmds
9126archive_expsym_cmds=$lt_archive_expsym_cmds
9127postinstall_cmds=$lt_postinstall_cmds
9128postuninstall_cmds=$lt_postuninstall_cmds
9129
John Criswell47fdd832003-07-14 16:52:07 +00009130# Commands used to build a loadable module (assumed same as above if empty)
9131module_cmds=$lt_module_cmds
9132module_expsym_cmds=$lt_module_expsym_cmds
9133
John Criswell7a73b802003-06-30 21:59:07 +00009134# Commands to strip libraries.
9135old_striplib=$lt_old_striplib
9136striplib=$lt_striplib
9137
John Criswell47fdd832003-07-14 16:52:07 +00009138# Dependencies to place before the objects being linked to create a
9139# shared library.
9140predep_objects=$lt_predep_objects
9141
9142# Dependencies to place after the objects being linked to create a
9143# shared library.
9144postdep_objects=$lt_postdep_objects
9145
9146# Dependencies to place before the objects being linked to create a
9147# shared library.
9148predeps=$lt_predeps
9149
9150# Dependencies to place after the objects being linked to create a
9151# shared library.
9152postdeps=$lt_postdeps
9153
9154# The library search path used internally by the compiler when linking
9155# a shared library.
9156compiler_lib_search_path=$lt_compiler_lib_search_path
9157
John Criswell7a73b802003-06-30 21:59:07 +00009158# Method to check whether dependent libraries are shared objects.
9159deplibs_check_method=$lt_deplibs_check_method
9160
9161# Command to use when deplibs_check_method == file_magic.
9162file_magic_cmd=$lt_file_magic_cmd
9163
9164# Flag that allows shared libraries with undefined symbols to be built.
9165allow_undefined_flag=$lt_allow_undefined_flag
9166
9167# Flag that forces no undefined symbols.
9168no_undefined_flag=$lt_no_undefined_flag
9169
9170# Commands used to finish a libtool library installation in a directory.
9171finish_cmds=$lt_finish_cmds
9172
9173# Same as above, but a single script fragment to be evaled but not shown.
9174finish_eval=$lt_finish_eval
9175
9176# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009177global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009178
9179# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009180global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009181
9182# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009183global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009184
9185# This is the shared library runtime path variable.
9186runpath_var=$runpath_var
9187
9188# This is the shared library path variable.
9189shlibpath_var=$shlibpath_var
9190
9191# Is shlibpath searched before the hard-coded library search path?
9192shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9193
9194# How to hardcode a shared library path into an executable.
9195hardcode_action=$hardcode_action
9196
9197# Whether we should hardcode library paths into libraries.
9198hardcode_into_libs=$hardcode_into_libs
9199
9200# Flag to hardcode \$libdir into a binary during linking.
9201# This must work even if \$libdir does not exist.
9202hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9203
John Criswell47fdd832003-07-14 16:52:07 +00009204# If ld is used when linking, flag to hardcode \$libdir into
9205# a binary during linking. This must work even if \$libdir does
9206# not exist.
9207hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9208
John Criswell7a73b802003-06-30 21:59:07 +00009209# Whether we need a single -rpath flag with a separated argument.
9210hardcode_libdir_separator=$lt_hardcode_libdir_separator
9211
John Criswell47fdd832003-07-14 16:52:07 +00009212# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009213# resulting binary.
9214hardcode_direct=$hardcode_direct
9215
9216# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9217# resulting binary.
9218hardcode_minus_L=$hardcode_minus_L
9219
9220# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9221# the resulting binary.
9222hardcode_shlibpath_var=$hardcode_shlibpath_var
9223
John Criswell47fdd832003-07-14 16:52:07 +00009224# Set to yes if building a shared library automatically hardcodes DIR into the library
9225# and all subsequent libraries and executables linked against it.
9226hardcode_automatic=$hardcode_automatic
9227
John Criswell7a73b802003-06-30 21:59:07 +00009228# Variables whose values should be saved in libtool wrapper scripts and
9229# restored at relink time.
9230variables_saved_for_relink="$variables_saved_for_relink"
9231
9232# Whether libtool must link a program against all its dependency libraries.
9233link_all_deplibs=$link_all_deplibs
9234
9235# Compile-time system search path for libraries
9236sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9237
9238# Run-time system search path for libraries
9239sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9240
9241# Fix the shell variable \$srcfile for the compiler.
9242fix_srcfile_path="$fix_srcfile_path"
9243
9244# Set to yes if exported symbols are required.
9245always_export_symbols=$always_export_symbols
9246
9247# The commands to list exported symbols.
9248export_symbols_cmds=$lt_export_symbols_cmds
9249
9250# The commands to extract the exported symbol list from a shared archive.
9251extract_expsyms_cmds=$lt_extract_expsyms_cmds
9252
9253# Symbols that should not be listed in the preloaded symbols.
9254exclude_expsyms=$lt_exclude_expsyms
9255
9256# Symbols that must always be exported.
9257include_expsyms=$lt_include_expsyms
9258
9259# ### END LIBTOOL CONFIG
9260
9261__EOF__
9262
John Criswell47fdd832003-07-14 16:52:07 +00009263
John Criswell7a73b802003-06-30 21:59:07 +00009264 case $host_os in
9265 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009266 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009267
9268# AIX sometimes has problems with the GCC collect2 program. For some
9269# reason, if we set the COLLECT_NAMES environment variable, the problems
9270# vanish in a puff of smoke.
9271if test "X${COLLECT_NAMES+set}" != Xset; then
9272 COLLECT_NAMES=
9273 export COLLECT_NAMES
9274fi
9275EOF
9276 ;;
9277 esac
9278
John Criswell7a73b802003-06-30 21:59:07 +00009279 # We use sed instead of cat because bash on DJGPP gets confused if
9280 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9281 # text mode, it properly converts lines to CR/LF. This bash problem
9282 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009283 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009284
John Criswell47fdd832003-07-14 16:52:07 +00009285 mv -f "$cfgfile" "$ofile" || \
9286 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009287 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009288
9289else
9290 # If there is no Makefile yet, we rely on a make rule to execute
9291 # `config.status --recheck' to rerun these tests and create the
9292 # libtool script then.
9293 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009294fi
John Criswell7a73b802003-06-30 21:59:07 +00009295
9296
John Criswell47fdd832003-07-14 16:52:07 +00009297ac_ext=c
9298ac_cpp='$CPP $CPPFLAGS'
9299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9301ac_compiler_gnu=$ac_cv_c_compiler_gnu
9302
9303CC="$lt_save_CC"
9304
9305
9306# Check whether --with-tags or --without-tags was given.
9307if test "${with_tags+set}" = set; then
9308 withval="$with_tags"
9309 tagnames="$withval"
9310fi;
9311
9312if test -f "$ltmain" && test -n "$tagnames"; then
9313 if test ! -f "${ofile}"; then
9314 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9315echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9316 fi
9317
9318 if test -z "$LTCC"; then
9319 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9320 if test -z "$LTCC"; then
9321 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9322echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9323 else
9324 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9325echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9326 fi
9327 fi
9328
9329 # Extract list of available tagged configurations in $ofile.
9330 # Note that this assumes the entire list is on one line.
9331 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9332
9333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9334 for tagname in $tagnames; do
9335 IFS="$lt_save_ifs"
9336 # Check whether tagname contains only valid characters
9337 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9338 "") ;;
9339 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9340echo "$as_me: error: invalid tag name: $tagname" >&2;}
9341 { (exit 1); exit 1; }; }
9342 ;;
9343 esac
9344
9345 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9346 then
9347 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9348echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9349 { (exit 1); exit 1; }; }
9350 fi
9351
9352 # Update the list of available tags.
9353 if test -n "$tagname"; then
9354 echo appending configuration tag \"$tagname\" to $ofile
9355
9356 case $tagname in
9357 CXX)
9358 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9359 ac_ext=cc
9360ac_cpp='$CXXCPP $CPPFLAGS'
9361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9364
9365
9366
9367
9368archive_cmds_need_lc_CXX=no
9369allow_undefined_flag_CXX=
9370always_export_symbols_CXX=no
9371archive_expsym_cmds_CXX=
9372export_dynamic_flag_spec_CXX=
9373hardcode_direct_CXX=no
9374hardcode_libdir_flag_spec_CXX=
9375hardcode_libdir_flag_spec_ld_CXX=
9376hardcode_libdir_separator_CXX=
9377hardcode_minus_L_CXX=no
9378hardcode_automatic_CXX=no
9379module_cmds_CXX=
9380module_expsym_cmds_CXX=
9381link_all_deplibs_CXX=unknown
9382old_archive_cmds_CXX=$old_archive_cmds
9383no_undefined_flag_CXX=
9384whole_archive_flag_spec_CXX=
9385enable_shared_with_static_runtimes_CXX=no
9386
9387# Dependencies to place before and after the object being linked:
9388predep_objects_CXX=
9389postdep_objects_CXX=
9390predeps_CXX=
9391postdeps_CXX=
9392compiler_lib_search_path_CXX=
9393
9394# Source file extension for C++ test sources.
9395ac_ext=cc
9396
9397# Object file extension for compiled C++ test sources.
9398objext=o
9399objext_CXX=$objext
9400
9401# Code to be used in simple compile tests
9402lt_simple_compile_test_code="int some_variable = 0;\n"
9403
9404# Code to be used in simple link tests
9405lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9406
9407# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9408
9409# If no C compiler was specified, use CC.
9410LTCC=${LTCC-"$CC"}
9411
9412# Allow CC to be a program name with arguments.
9413compiler=$CC
9414
9415
9416# Allow CC to be a program name with arguments.
9417lt_save_CC=$CC
9418lt_save_LD=$LD
9419lt_save_GCC=$GCC
9420GCC=$GXX
9421lt_save_with_gnu_ld=$with_gnu_ld
9422lt_save_path_LD=$lt_cv_path_LD
9423if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9424 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9425else
9426 unset lt_cv_prog_gnu_ld
9427fi
9428if test -n "${lt_cv_path_LDCXX+set}"; then
9429 lt_cv_path_LD=$lt_cv_path_LDCXX
9430else
9431 unset lt_cv_path_LD
9432fi
9433test -z "${LDCXX+set}" || LD=$LDCXX
9434CC=${CXX-"c++"}
9435compiler=$CC
9436compiler_CXX=$CC
9437cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9438
9439# We don't want -fno-exception wen compiling C++ code, so set the
9440# no_builtin_flag separately
9441if test "$GXX" = yes; then
9442 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9443else
9444 lt_prog_compiler_no_builtin_flag_CXX=
9445fi
9446
9447if test "$GXX" = yes; then
9448 # Set up default GNU C++ configuration
9449
9450
9451# Check whether --with-gnu-ld or --without-gnu-ld was given.
9452if test "${with_gnu_ld+set}" = set; then
9453 withval="$with_gnu_ld"
9454 test "$withval" = no || with_gnu_ld=yes
9455else
9456 with_gnu_ld=no
9457fi;
9458ac_prog=ld
9459if test "$GCC" = yes; then
9460 # Check if gcc -print-prog-name=ld gives a path.
9461 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9462echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9463 case $host in
9464 *-*-mingw*)
9465 # gcc leaves a trailing carriage return which upsets mingw
9466 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9467 *)
9468 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9469 esac
9470 case $ac_prog in
9471 # Accept absolute paths.
9472 [\\/]* | ?:[\\/]*)
9473 re_direlt='/[^/][^/]*/\.\./'
9474 # Canonicalize the path of ld
9475 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9476 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9477 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9478 done
9479 test -z "$LD" && LD="$ac_prog"
9480 ;;
9481 "")
9482 # If it fails, then pretend we aren't using GCC.
9483 ac_prog=ld
9484 ;;
9485 *)
9486 # If it is relative, then search for the first ld in PATH.
9487 with_gnu_ld=unknown
9488 ;;
9489 esac
9490elif test "$with_gnu_ld" = yes; then
9491 echo "$as_me:$LINENO: checking for GNU ld" >&5
9492echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9493else
9494 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9495echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9496fi
9497if test "${lt_cv_path_LD+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9499else
9500 if test -z "$LD"; then
9501 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9502 for ac_dir in $PATH; do
9503 IFS="$lt_save_ifs"
9504 test -z "$ac_dir" && ac_dir=.
9505 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9506 lt_cv_path_LD="$ac_dir/$ac_prog"
9507 # Check to see if the program is GNU ld. I'd rather use --version,
9508 # but apparently some GNU ld's only accept -v.
9509 # Break only if it was the GNU/non-GNU ld that we prefer.
9510 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9511 *GNU* | *'with BFD'*)
9512 test "$with_gnu_ld" != no && break
9513 ;;
9514 *)
9515 test "$with_gnu_ld" != yes && break
9516 ;;
9517 esac
9518 fi
9519 done
9520 IFS="$lt_save_ifs"
9521else
9522 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9523fi
9524fi
9525
9526LD="$lt_cv_path_LD"
9527if test -n "$LD"; then
9528 echo "$as_me:$LINENO: result: $LD" >&5
9529echo "${ECHO_T}$LD" >&6
9530else
9531 echo "$as_me:$LINENO: result: no" >&5
9532echo "${ECHO_T}no" >&6
9533fi
9534test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9535echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9536 { (exit 1); exit 1; }; }
9537echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9538echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9539if test "${lt_cv_prog_gnu_ld+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541else
9542 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9543case `"$LD" -v 2>&1 </dev/null` in
9544*GNU* | *'with BFD'*)
9545 lt_cv_prog_gnu_ld=yes
9546 ;;
9547*)
9548 lt_cv_prog_gnu_ld=no
9549 ;;
9550esac
9551fi
9552echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9553echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9554with_gnu_ld=$lt_cv_prog_gnu_ld
9555
9556
9557
9558 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9559 # archiving commands below assume that GNU ld is being used.
9560 if test "$with_gnu_ld" = yes; then
9561 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9563
9564 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9566
9567 # If archive_cmds runs LD, not CC, wlarc should be empty
9568 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9569 # investigate it a little bit more. (MM)
9570 wlarc='${wl}'
9571
9572 # ancient GNU ld didn't support --whole-archive et. al.
9573 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9574 grep 'no-whole-archive' > /dev/null; then
9575 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9576 else
9577 whole_archive_flag_spec_CXX=
9578 fi
9579 else
9580 with_gnu_ld=no
9581 wlarc=
9582
9583 # A generic and very simple default shared library creation
9584 # command for GNU C++ for the case where it uses the native
9585 # linker, instead of GNU ld. If possible, this setting should
9586 # overridden to take advantage of the native linker features on
9587 # the platform it is being used on.
9588 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9589 fi
9590
9591 # Commands to make compiler produce verbose output that lists
9592 # what "hidden" libraries, object files and flags are used when
9593 # linking a shared library.
9594 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9595
9596else
9597 GXX=no
9598 with_gnu_ld=no
9599 wlarc=
9600fi
9601
9602# PORTME: fill in a description of your system's C++ link characteristics
9603echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9604echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9605ld_shlibs_CXX=yes
9606case $host_os in
9607 aix3*)
9608 # FIXME: insert proper C++ library support
9609 ld_shlibs_CXX=no
9610 ;;
9611 aix4* | aix5*)
9612 if test "$host_cpu" = ia64; then
9613 # On IA64, the linker does run time linking by default, so we don't
9614 # have to do anything special.
9615 aix_use_runtimelinking=no
9616 exp_sym_flag='-Bexport'
9617 no_entry_flag=""
9618 else
9619 aix_use_runtimelinking=no
9620
9621 # Test if we are trying to use run time linking or normal
9622 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9623 # need to do runtime linking.
9624 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9625 for ld_flag in $LDFLAGS; do
9626 case $ld_flag in
9627 *-brtl*)
9628 aix_use_runtimelinking=yes
9629 break
9630 ;;
9631 esac
9632 done
9633 esac
9634
9635 exp_sym_flag='-bexport'
9636 no_entry_flag='-bnoentry'
9637 fi
9638
9639 # When large executables or shared objects are built, AIX ld can
9640 # have problems creating the table of contents. If linking a library
9641 # or program results in "error TOC overflow" add -mminimal-toc to
9642 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9643 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9644
9645 archive_cmds_CXX=''
9646 hardcode_direct_CXX=yes
9647 hardcode_libdir_separator_CXX=':'
9648 link_all_deplibs_CXX=yes
9649
9650 if test "$GXX" = yes; then
9651 case $host_os in aix4.012|aix4.012.*)
9652 # We only want to do this on AIX 4.2 and lower, the check
9653 # below for broken collect2 doesn't work under 4.3+
9654 collect2name=`${CC} -print-prog-name=collect2`
9655 if test -f "$collect2name" && \
9656 strings "$collect2name" | grep resolve_lib_name >/dev/null
9657 then
9658 # We have reworked collect2
9659 hardcode_direct_CXX=yes
9660 else
9661 # We have old collect2
9662 hardcode_direct_CXX=unsupported
9663 # It fails to find uninstalled libraries when the uninstalled
9664 # path is not listed in the libpath. Setting hardcode_minus_L
9665 # to unsupported forces relinking
9666 hardcode_minus_L_CXX=yes
9667 hardcode_libdir_flag_spec_CXX='-L$libdir'
9668 hardcode_libdir_separator_CXX=
9669 fi
9670 esac
9671 shared_flag='-shared'
9672 else
9673 # not using gcc
9674 if test "$host_cpu" = ia64; then
9675 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9676 # chokes on -Wl,-G. The following line is correct:
9677 shared_flag='-G'
9678 else
9679 if test "$aix_use_runtimelinking" = yes; then
9680 shared_flag='${wl}-G'
9681 else
9682 shared_flag='${wl}-bM:SRE'
9683 fi
9684 fi
9685 fi
9686
9687 # It seems that -bexpall does not export symbols beginning with
9688 # underscore (_), so it is better to generate a list of symbols to export.
9689 always_export_symbols_CXX=yes
9690 if test "$aix_use_runtimelinking" = yes; then
9691 # Warning - without using the other runtime loading flags (-brtl),
9692 # -berok will link without error, but may produce a broken library.
9693 allow_undefined_flag_CXX='-berok'
9694 # Determine the default libpath from the value encoded in an empty executable.
9695 cat >conftest.$ac_ext <<_ACEOF
9696#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009697/* confdefs.h. */
9698_ACEOF
9699cat confdefs.h >>conftest.$ac_ext
9700cat >>conftest.$ac_ext <<_ACEOF
9701/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009702
John Criswell47fdd832003-07-14 16:52:07 +00009703int
9704main ()
9705{
9706
9707 ;
9708 return 0;
9709}
9710_ACEOF
9711rm -f conftest.$ac_objext conftest$ac_exeext
9712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713 (eval $ac_link) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -s conftest$ac_exeext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723
9724aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9725}'`
9726# Check for a 64-bit object if we didn't find anything.
9727if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9728}'`; fi
9729else
9730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009731sed 's/^/| /' conftest.$ac_ext >&5
9732
John Criswell47fdd832003-07-14 16:52:07 +00009733fi
9734rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9735if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9736
9737 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9738
9739 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9740 else
9741 if test "$host_cpu" = ia64; then
9742 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9743 allow_undefined_flag_CXX="-z nodefs"
9744 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9745 else
9746 # Determine the default libpath from the value encoded in an empty executable.
9747 cat >conftest.$ac_ext <<_ACEOF
9748#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009749/* confdefs.h. */
9750_ACEOF
9751cat confdefs.h >>conftest.$ac_ext
9752cat >>conftest.$ac_ext <<_ACEOF
9753/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009754
John Criswell47fdd832003-07-14 16:52:07 +00009755int
9756main ()
9757{
9758
9759 ;
9760 return 0;
9761}
9762_ACEOF
9763rm -f conftest.$ac_objext conftest$ac_exeext
9764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765 (eval $ac_link) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } &&
9769 { ac_try='test -s conftest$ac_exeext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9775
9776aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9777}'`
9778# Check for a 64-bit object if we didn't find anything.
9779if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9780}'`; fi
9781else
9782 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009783sed 's/^/| /' conftest.$ac_ext >&5
9784
John Criswell47fdd832003-07-14 16:52:07 +00009785fi
9786rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9787if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9788
9789 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9790 # Warning - without using the other run time loading flags,
9791 # -berok will link without error, but may produce a broken library.
9792 no_undefined_flag_CXX=' ${wl}-bernotok'
9793 allow_undefined_flag_CXX=' ${wl}-berok'
9794 # -bexpall does not export symbols beginning with underscore (_)
9795 always_export_symbols_CXX=yes
9796 # Exported symbols can be pulled into shared objects from archives
9797 whole_archive_flag_spec_CXX=' '
9798 archive_cmds_need_lc_CXX=yes
9799 # This is similar to how AIX traditionally builds it's shared libraries.
9800 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9801 fi
9802 fi
9803 ;;
9804 chorus*)
9805 case $cc_basename in
9806 *)
9807 # FIXME: insert proper C++ library support
9808 ld_shlibs_CXX=no
9809 ;;
9810 esac
9811 ;;
9812
9813 cygwin* | mingw* | pw32*)
9814 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9815 # as there is no search path for DLLs.
9816 hardcode_libdir_flag_spec_CXX='-L$libdir'
9817 allow_undefined_flag_CXX=unsupported
9818 always_export_symbols_CXX=no
9819 enable_shared_with_static_runtimes_CXX=yes
9820
9821 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9822 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9823 # If the export-symbols file already is a .def file (1st line
9824 # is EXPORTS), use it as is; otherwise, prepend...
9825 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9826 cp $export_symbols $output_objdir/$soname.def;
9827 else
9828 echo EXPORTS > $output_objdir/$soname.def;
9829 cat $export_symbols >> $output_objdir/$soname.def;
9830 fi~
9831 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9832 else
9833 ld_shlibs_CXX=no
9834 fi
9835 ;;
9836
9837 darwin* | rhapsody*)
9838 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9839 archive_cmds_need_lc_CXX=no
9840 case "$host_os" in
9841 rhapsody* | darwin1.[012])
9842 allow_undefined_flag_CXX='-undefined suppress'
9843 ;;
9844 *) # Darwin 1.3 on
9845 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9846 ;;
9847 esac
9848 lt_int_apple_cc_single_mod=no
9849 output_verbose_link_cmd='echo'
9850 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9851 lt_int_apple_cc_single_mod=yes
9852 fi
9853 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9854 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9855 else
9856 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9857 fi
9858 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9859
9860 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9861 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9862 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9863 else
9864 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9865 fi
9866 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9867 hardcode_direct_CXX=no
9868 hardcode_automatic_CXX=yes
9869 hardcode_shlibpath_var_CXX=unsupported
9870 whole_archive_flag_spec_CXX='-all_load $convenience'
9871 link_all_deplibs_CXX=yes
9872 fi
9873 ;;
9874
9875 dgux*)
9876 case $cc_basename in
9877 ec++)
9878 # FIXME: insert proper C++ library support
9879 ld_shlibs_CXX=no
9880 ;;
9881 ghcx)
9882 # Green Hills C++ Compiler
9883 # FIXME: insert proper C++ library support
9884 ld_shlibs_CXX=no
9885 ;;
9886 *)
9887 # FIXME: insert proper C++ library support
9888 ld_shlibs_CXX=no
9889 ;;
9890 esac
9891 ;;
9892 freebsd12*)
9893 # C++ shared libraries reported to be fairly broken before switch to ELF
9894 ld_shlibs_CXX=no
9895 ;;
9896 freebsd-elf*)
9897 archive_cmds_need_lc_CXX=no
9898 ;;
9899 freebsd*)
9900 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9901 # conventions
9902 ld_shlibs_CXX=yes
9903 ;;
9904 gnu*)
9905 ;;
9906 hpux9*)
9907 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9908 hardcode_libdir_separator_CXX=:
9909 export_dynamic_flag_spec_CXX='${wl}-E'
9910 hardcode_direct_CXX=yes
9911 hardcode_minus_L_CXX=yes # Not in the search PATH,
9912 # but as the default
9913 # location of the library.
9914
9915 case $cc_basename in
9916 CC)
9917 # FIXME: insert proper C++ library support
9918 ld_shlibs_CXX=no
9919 ;;
9920 aCC)
9921 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9922 # Commands to make compiler produce verbose output that lists
9923 # what "hidden" libraries, object files and flags are used when
9924 # linking a shared library.
9925 #
9926 # There doesn't appear to be a way to prevent this compiler from
9927 # explicitly linking system object files so we need to strip them
9928 # from the output so that they don't get included in the library
9929 # dependencies.
9930 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9931 ;;
9932 *)
9933 if test "$GXX" = yes; then
9934 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9935 else
9936 # FIXME: insert proper C++ library support
9937 ld_shlibs_CXX=no
9938 fi
9939 ;;
9940 esac
9941 ;;
9942 hpux10*|hpux11*)
9943 if test $with_gnu_ld = no; then
9944 case "$host_cpu" in
9945 hppa*64*)
9946 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9947 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9948 hardcode_libdir_separator_CXX=:
9949 ;;
9950 ia64*)
9951 hardcode_libdir_flag_spec_CXX='-L$libdir'
9952 ;;
9953 *)
9954 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9955 hardcode_libdir_separator_CXX=:
9956 export_dynamic_flag_spec_CXX='${wl}-E'
9957 ;;
9958 esac
9959 fi
9960 case "$host_cpu" in
9961 hppa*64*)
9962 hardcode_direct_CXX=no
9963 hardcode_shlibpath_var_CXX=no
9964 ;;
9965 ia64*)
9966 hardcode_direct_CXX=no
9967 hardcode_shlibpath_var_CXX=no
9968 hardcode_minus_L_CXX=yes # Not in the search PATH,
9969 # but as the default
9970 # location of the library.
9971 ;;
9972 *)
9973 hardcode_direct_CXX=yes
9974 hardcode_minus_L_CXX=yes # Not in the search PATH,
9975 # but as the default
9976 # location of the library.
9977 ;;
9978 esac
9979
9980 case $cc_basename in
9981 CC)
9982 # FIXME: insert proper C++ library support
9983 ld_shlibs_CXX=no
9984 ;;
9985 aCC)
9986 case "$host_cpu" in
9987 hppa*64*|ia64*)
9988 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9989 ;;
9990 *)
9991 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9992 ;;
9993 esac
9994 # Commands to make compiler produce verbose output that lists
9995 # what "hidden" libraries, object files and flags are used when
9996 # linking a shared library.
9997 #
9998 # There doesn't appear to be a way to prevent this compiler from
9999 # explicitly linking system object files so we need to strip them
10000 # from the output so that they don't get included in the library
10001 # dependencies.
10002 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10003 ;;
10004 *)
10005 if test "$GXX" = yes; then
10006 if test $with_gnu_ld = no; then
10007 case "$host_cpu" in
10008 ia64*|hppa*64*)
10009 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10010 ;;
10011 *)
10012 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10013 ;;
10014 esac
10015 fi
10016 else
10017 # FIXME: insert proper C++ library support
10018 ld_shlibs_CXX=no
10019 fi
10020 ;;
10021 esac
10022 ;;
10023 irix5* | irix6*)
10024 case $cc_basename in
10025 CC)
10026 # SGI C++
10027 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10028
10029 # Archives containing C++ object files must be created using
10030 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10031 # necessary to make sure instantiated templates are included
10032 # in the archive.
10033 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10034 ;;
10035 *)
10036 if test "$GXX" = yes; then
10037 if test "$with_gnu_ld" = no; then
10038 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10039 else
10040 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10041 fi
10042 fi
10043 link_all_deplibs_CXX=yes
10044 ;;
10045 esac
10046 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10047 hardcode_libdir_separator_CXX=:
10048 ;;
10049 linux*)
10050 case $cc_basename in
10051 KCC)
10052 # Kuck and Associates, Inc. (KAI) C++ Compiler
10053
10054 # KCC will only create a shared library if the output file
10055 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10056 # to its proper name (with version) after linking.
10057 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10058 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10059 # Commands to make compiler produce verbose output that lists
10060 # what "hidden" libraries, object files and flags are used when
10061 # linking a shared library.
10062 #
10063 # There doesn't appear to be a way to prevent this compiler from
10064 # explicitly linking system object files so we need to strip them
10065 # from the output so that they don't get included in the library
10066 # dependencies.
10067 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10068
10069 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10070 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10071
10072 # Archives containing C++ object files must be created using
10073 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10074 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10075 ;;
10076 icpc)
10077 # Intel C++
10078 with_gnu_ld=yes
10079 archive_cmds_need_lc_CXX=no
10080 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10081 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10082 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10083 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10084 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10085 ;;
10086 cxx)
10087 # Compaq C++
10088 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10089 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10090
10091 runpath_var=LD_RUN_PATH
10092 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10093 hardcode_libdir_separator_CXX=:
10094
10095 # Commands to make compiler produce verbose output that lists
10096 # what "hidden" libraries, object files and flags are used when
10097 # linking a shared library.
10098 #
10099 # There doesn't appear to be a way to prevent this compiler from
10100 # explicitly linking system object files so we need to strip them
10101 # from the output so that they don't get included in the library
10102 # dependencies.
10103 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10104 ;;
10105 esac
10106 ;;
10107 lynxos*)
10108 # FIXME: insert proper C++ library support
10109 ld_shlibs_CXX=no
10110 ;;
10111 m88k*)
10112 # FIXME: insert proper C++ library support
10113 ld_shlibs_CXX=no
10114 ;;
10115 mvs*)
10116 case $cc_basename in
10117 cxx)
10118 # FIXME: insert proper C++ library support
10119 ld_shlibs_CXX=no
10120 ;;
10121 *)
10122 # FIXME: insert proper C++ library support
10123 ld_shlibs_CXX=no
10124 ;;
10125 esac
10126 ;;
10127 netbsd*)
10128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10129 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10130 wlarc=
10131 hardcode_libdir_flag_spec_CXX='-R$libdir'
10132 hardcode_direct_CXX=yes
10133 hardcode_shlibpath_var_CXX=no
10134 fi
10135 # Workaround some broken pre-1.5 toolchains
10136 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10137 ;;
10138 osf3*)
10139 case $cc_basename in
10140 KCC)
10141 # Kuck and Associates, Inc. (KAI) C++ Compiler
10142
10143 # KCC will only create a shared library if the output file
10144 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10145 # to its proper name (with version) after linking.
10146 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10147
10148 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10149 hardcode_libdir_separator_CXX=:
10150
10151 # Archives containing C++ object files must be created using
10152 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10153 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10154
10155 ;;
10156 RCC)
10157 # Rational C++ 2.4.1
10158 # FIXME: insert proper C++ library support
10159 ld_shlibs_CXX=no
10160 ;;
10161 cxx)
10162 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10163 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10164
10165 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10166 hardcode_libdir_separator_CXX=:
10167
10168 # Commands to make compiler produce verbose output that lists
10169 # what "hidden" libraries, object files and flags are used when
10170 # linking a shared library.
10171 #
10172 # There doesn't appear to be a way to prevent this compiler from
10173 # explicitly linking system object files so we need to strip them
10174 # from the output so that they don't get included in the library
10175 # dependencies.
10176 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10177 ;;
10178 *)
10179 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10180 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10181 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10182
10183 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10184 hardcode_libdir_separator_CXX=:
10185
10186 # Commands to make compiler produce verbose output that lists
10187 # what "hidden" libraries, object files and flags are used when
10188 # linking a shared library.
10189 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10190
10191 else
10192 # FIXME: insert proper C++ library support
10193 ld_shlibs_CXX=no
10194 fi
10195 ;;
10196 esac
10197 ;;
10198 osf4* | osf5*)
10199 case $cc_basename in
10200 KCC)
10201 # Kuck and Associates, Inc. (KAI) C++ Compiler
10202
10203 # KCC will only create a shared library if the output file
10204 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10205 # to its proper name (with version) after linking.
10206 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10207
10208 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10209 hardcode_libdir_separator_CXX=:
10210
10211 # Archives containing C++ object files must be created using
10212 # the KAI C++ compiler.
10213 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10214 ;;
10215 RCC)
10216 # Rational C++ 2.4.1
10217 # FIXME: insert proper C++ library support
10218 ld_shlibs_CXX=no
10219 ;;
10220 cxx)
10221 allow_undefined_flag_CXX=' -expect_unresolved \*'
10222 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10223 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10224 echo "-hidden">> $lib.exp~
10225 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10226 $rm $lib.exp'
10227
10228 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10229 hardcode_libdir_separator_CXX=:
10230
10231 # Commands to make compiler produce verbose output that lists
10232 # what "hidden" libraries, object files and flags are used when
10233 # linking a shared library.
10234 #
10235 # There doesn't appear to be a way to prevent this compiler from
10236 # explicitly linking system object files so we need to strip them
10237 # from the output so that they don't get included in the library
10238 # dependencies.
10239 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10240 ;;
10241 *)
10242 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10243 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10244 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10245
10246 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10247 hardcode_libdir_separator_CXX=:
10248
10249 # Commands to make compiler produce verbose output that lists
10250 # what "hidden" libraries, object files and flags are used when
10251 # linking a shared library.
10252 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10253
10254 else
10255 # FIXME: insert proper C++ library support
10256 ld_shlibs_CXX=no
10257 fi
10258 ;;
10259 esac
10260 ;;
10261 psos*)
10262 # FIXME: insert proper C++ library support
10263 ld_shlibs_CXX=no
10264 ;;
10265 sco*)
10266 archive_cmds_need_lc_CXX=no
10267 case $cc_basename in
10268 CC)
10269 # FIXME: insert proper C++ library support
10270 ld_shlibs_CXX=no
10271 ;;
10272 *)
10273 # FIXME: insert proper C++ library support
10274 ld_shlibs_CXX=no
10275 ;;
10276 esac
10277 ;;
10278 sunos4*)
10279 case $cc_basename in
10280 CC)
10281 # Sun C++ 4.x
10282 # FIXME: insert proper C++ library support
10283 ld_shlibs_CXX=no
10284 ;;
10285 lcc)
10286 # Lucid
10287 # FIXME: insert proper C++ library support
10288 ld_shlibs_CXX=no
10289 ;;
10290 *)
10291 # FIXME: insert proper C++ library support
10292 ld_shlibs_CXX=no
10293 ;;
10294 esac
10295 ;;
10296 solaris*)
10297 case $cc_basename in
10298 CC)
10299 # Sun C++ 4.2, 5.x and Centerline C++
10300 no_undefined_flag_CXX=' -zdefs'
10301 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10302 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10303 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10304
10305 hardcode_libdir_flag_spec_CXX='-R$libdir'
10306 hardcode_shlibpath_var_CXX=no
10307 case $host_os in
10308 solaris2.0-5 | solaris2.0-5.*) ;;
10309 *)
10310 # The C++ compiler is used as linker so we must use $wl
10311 # flag to pass the commands to the underlying system
10312 # linker.
10313 # Supported since Solaris 2.6 (maybe 2.5.1?)
10314 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10315 ;;
10316 esac
10317 link_all_deplibs_CXX=yes
10318
10319 # Commands to make compiler produce verbose output that lists
10320 # what "hidden" libraries, object files and flags are used when
10321 # linking a shared library.
10322 #
10323 # There doesn't appear to be a way to prevent this compiler from
10324 # explicitly linking system object files so we need to strip them
10325 # from the output so that they don't get included in the library
10326 # dependencies.
10327 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10328
10329 # Archives containing C++ object files must be created using
10330 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10331 # necessary to make sure instantiated templates are included
10332 # in the archive.
10333 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10334 ;;
10335 gcx)
10336 # Green Hills C++ Compiler
10337 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10338
10339 # The C++ compiler must be used to create the archive.
10340 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10341 ;;
10342 *)
10343 # GNU C++ compiler with Solaris linker
10344 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10345 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10346 if $CC --version | grep -v '^2\.7' > /dev/null; then
10347 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10348 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10349 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10350
10351 # Commands to make compiler produce verbose output that lists
10352 # what "hidden" libraries, object files and flags are used when
10353 # linking a shared library.
10354 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10355 else
10356 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10357 # platform.
10358 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10359 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10360 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10361
10362 # Commands to make compiler produce verbose output that lists
10363 # what "hidden" libraries, object files and flags are used when
10364 # linking a shared library.
10365 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10366 fi
10367
10368 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10369 fi
10370 ;;
10371 esac
10372 ;;
10373 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10374 archive_cmds_need_lc_CXX=no
10375 ;;
10376 tandem*)
10377 case $cc_basename in
10378 NCC)
10379 # NonStop-UX NCC 3.20
10380 # FIXME: insert proper C++ library support
10381 ld_shlibs_CXX=no
10382 ;;
10383 *)
10384 # FIXME: insert proper C++ library support
10385 ld_shlibs_CXX=no
10386 ;;
10387 esac
10388 ;;
10389 vxworks*)
10390 # FIXME: insert proper C++ library support
10391 ld_shlibs_CXX=no
10392 ;;
10393 *)
10394 # FIXME: insert proper C++ library support
10395 ld_shlibs_CXX=no
10396 ;;
10397esac
10398echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10399echo "${ECHO_T}$ld_shlibs_CXX" >&6
10400test "$ld_shlibs_CXX" = no && can_build_shared=no
10401
10402GCC_CXX="$GXX"
10403LD_CXX="$LD"
10404
10405## CAVEAT EMPTOR:
10406## There is no encapsulation within the following macros, do not change
10407## the running order or otherwise move them around unless you know exactly
10408## what you are doing...
10409
10410cat > conftest.$ac_ext <<EOF
10411class Foo
10412{
10413public:
10414 Foo (void) { a = 0; }
10415private:
10416 int a;
10417};
10418EOF
10419
10420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421 (eval $ac_compile) 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; then
10425 # Parse the compiler output and extract the necessary
10426 # objects, libraries and library flags.
10427
10428 # Sentinel used to keep track of whether or not we are before
10429 # the conftest object file.
10430 pre_test_object_deps_done=no
10431
10432 # The `*' in the case matches for architectures that use `case' in
10433 # $output_verbose_cmd can trigger glob expansion during the loop
10434 # eval without this substitution.
10435 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10436
10437 for p in `eval $output_verbose_link_cmd`; do
10438 case $p in
10439
10440 -L* | -R* | -l*)
10441 # Some compilers place space between "-{L,R}" and the path.
10442 # Remove the space.
10443 if test $p = "-L" \
10444 || test $p = "-R"; then
10445 prev=$p
10446 continue
10447 else
10448 prev=
10449 fi
10450
10451 if test "$pre_test_object_deps_done" = no; then
10452 case $p in
10453 -L* | -R*)
10454 # Internal compiler library paths should come after those
10455 # provided the user. The postdeps already come after the
10456 # user supplied libs so there is no need to process them.
10457 if test -z "$compiler_lib_search_path_CXX"; then
10458 compiler_lib_search_path_CXX="${prev}${p}"
10459 else
10460 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10461 fi
10462 ;;
10463 # The "-l" case would never come before the object being
10464 # linked, so don't bother handling this case.
10465 esac
10466 else
10467 if test -z "$postdeps_CXX"; then
10468 postdeps_CXX="${prev}${p}"
10469 else
10470 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10471 fi
10472 fi
10473 ;;
10474
10475 *.$objext)
10476 # This assumes that the test object file only shows up
10477 # once in the compiler output.
10478 if test "$p" = "conftest.$objext"; then
10479 pre_test_object_deps_done=yes
10480 continue
10481 fi
10482
10483 if test "$pre_test_object_deps_done" = no; then
10484 if test -z "$predep_objects_CXX"; then
10485 predep_objects_CXX="$p"
10486 else
10487 predep_objects_CXX="$predep_objects_CXX $p"
10488 fi
10489 else
10490 if test -z "$postdep_objects_CXX"; then
10491 postdep_objects_CXX="$p"
10492 else
10493 postdep_objects_CXX="$postdep_objects_CXX $p"
10494 fi
10495 fi
10496 ;;
10497
10498 *) ;; # Ignore the rest.
10499
10500 esac
10501 done
10502
10503 # Clean up.
10504 rm -f a.out a.exe
10505else
10506 echo "libtool.m4: error: problem compiling CXX test program"
10507fi
10508
10509$rm -f confest.$objext
10510
10511case " $postdeps_CXX " in
10512*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10513esac
10514
10515lt_prog_compiler_wl_CXX=
10516lt_prog_compiler_pic_CXX=
10517lt_prog_compiler_static_CXX=
10518
10519echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10520echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10521
10522 # C++ specific cases for pic, static, wl, etc.
10523 if test "$GXX" = yes; then
10524 lt_prog_compiler_wl_CXX='-Wl,'
10525 lt_prog_compiler_static_CXX='-static'
10526
10527 case $host_os in
10528 aix*)
10529 # All AIX code is PIC.
10530 if test "$host_cpu" = ia64; then
10531 # AIX 5 now supports IA64 processor
10532 lt_prog_compiler_static_CXX='-Bstatic'
10533 fi
10534 ;;
10535 amigaos*)
10536 # FIXME: we need at least 68020 code to build shared libraries, but
10537 # adding the `-m68020' flag to GCC prevents building anything better,
10538 # like `-m68040'.
10539 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10540 ;;
10541 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10542 # PIC is the default for these OSes.
10543 ;;
10544 mingw* | os2* | pw32*)
10545 # This hack is so that the source file can tell whether it is being
10546 # built for inclusion in a dll (and should export symbols for example).
10547 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10548 ;;
10549 darwin* | rhapsody*)
10550 # PIC is the default on this platform
10551 # Common symbols not allowed in MH_DYLIB files
10552 lt_prog_compiler_pic_CXX='-fno-common'
10553 ;;
10554 *djgpp*)
10555 # DJGPP does not support shared libraries at all
10556 lt_prog_compiler_pic_CXX=
10557 ;;
10558 sysv4*MP*)
10559 if test -d /usr/nec; then
10560 lt_prog_compiler_pic_CXX=-Kconform_pic
10561 fi
10562 ;;
10563 hpux*)
10564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10565 # not for PA HP-UX.
10566 case "$host_cpu" in
10567 hppa*64*|ia64*)
10568 ;;
10569 *)
10570 lt_prog_compiler_pic_CXX='-fPIC'
10571 ;;
10572 esac
10573 ;;
10574 *)
10575 lt_prog_compiler_pic_CXX='-fPIC'
10576 ;;
10577 esac
10578 else
10579 case $host_os in
10580 aix4* | aix5*)
10581 # All AIX code is PIC.
10582 if test "$host_cpu" = ia64; then
10583 # AIX 5 now supports IA64 processor
10584 lt_prog_compiler_static_CXX='-Bstatic'
10585 else
10586 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10587 fi
10588 ;;
10589 chorus*)
10590 case $cc_basename in
10591 cxch68)
10592 # Green Hills C++ Compiler
10593 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10594 ;;
10595 esac
10596 ;;
10597 dgux*)
10598 case $cc_basename in
10599 ec++)
10600 lt_prog_compiler_pic_CXX='-KPIC'
10601 ;;
10602 ghcx)
10603 # Green Hills C++ Compiler
10604 lt_prog_compiler_pic_CXX='-pic'
10605 ;;
10606 *)
10607 ;;
10608 esac
10609 ;;
10610 freebsd*)
10611 # FreeBSD uses GNU C++
10612 ;;
10613 hpux9* | hpux10* | hpux11*)
10614 case $cc_basename in
10615 CC)
10616 lt_prog_compiler_wl_CXX='-Wl,'
10617 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10618 if test "$host_cpu" != ia64; then
10619 lt_prog_compiler_pic_CXX='+Z'
10620 fi
10621 ;;
10622 aCC)
10623 lt_prog_compiler_wl_CXX='-Wl,'
10624 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10625 case "$host_cpu" in
10626 hppa*64*|ia64*)
10627 # +Z the default
10628 ;;
10629 *)
10630 lt_prog_compiler_pic_CXX='+Z'
10631 ;;
10632 esac
10633 ;;
10634 *)
10635 ;;
10636 esac
10637 ;;
10638 irix5* | irix6* | nonstopux*)
10639 case $cc_basename in
10640 CC)
10641 lt_prog_compiler_wl_CXX='-Wl,'
10642 lt_prog_compiler_static_CXX='-non_shared'
10643 # CC pic flag -KPIC is the default.
10644 ;;
10645 *)
10646 ;;
10647 esac
10648 ;;
10649 linux*)
10650 case $cc_basename in
10651 KCC)
10652 # KAI C++ Compiler
10653 lt_prog_compiler_wl_CXX='--backend -Wl,'
10654 lt_prog_compiler_pic_CXX='-fPIC'
10655 ;;
10656 icpc)
10657 # Intel C++
10658 lt_prog_compiler_wl_CXX='-Wl,'
10659 lt_prog_compiler_pic_CXX='-KPIC'
10660 lt_prog_compiler_static_CXX='-static'
10661 ;;
10662 cxx)
10663 # Compaq C++
10664 # Make sure the PIC flag is empty. It appears that all Alpha
10665 # Linux and Compaq Tru64 Unix objects are PIC.
10666 lt_prog_compiler_pic_CXX=
10667 lt_prog_compiler_static_CXX='-non_shared'
10668 ;;
10669 *)
10670 ;;
10671 esac
10672 ;;
10673 lynxos*)
10674 ;;
10675 m88k*)
10676 ;;
10677 mvs*)
10678 case $cc_basename in
10679 cxx)
10680 lt_prog_compiler_pic_CXX='-W c,exportall'
10681 ;;
10682 *)
10683 ;;
10684 esac
10685 ;;
10686 netbsd*)
10687 ;;
10688 osf3* | osf4* | osf5*)
10689 case $cc_basename in
10690 KCC)
10691 lt_prog_compiler_wl_CXX='--backend -Wl,'
10692 ;;
10693 RCC)
10694 # Rational C++ 2.4.1
10695 lt_prog_compiler_pic_CXX='-pic'
10696 ;;
10697 cxx)
10698 # Digital/Compaq C++
10699 lt_prog_compiler_wl_CXX='-Wl,'
10700 # Make sure the PIC flag is empty. It appears that all Alpha
10701 # Linux and Compaq Tru64 Unix objects are PIC.
10702 lt_prog_compiler_pic_CXX=
10703 lt_prog_compiler_static_CXX='-non_shared'
10704 ;;
10705 *)
10706 ;;
10707 esac
10708 ;;
10709 psos*)
10710 ;;
10711 sco*)
10712 case $cc_basename in
10713 CC)
10714 lt_prog_compiler_pic_CXX='-fPIC'
10715 ;;
10716 *)
10717 ;;
10718 esac
10719 ;;
10720 solaris*)
10721 case $cc_basename in
10722 CC)
10723 # Sun C++ 4.2, 5.x and Centerline C++
10724 lt_prog_compiler_pic_CXX='-KPIC'
10725 lt_prog_compiler_static_CXX='-Bstatic'
10726 lt_prog_compiler_wl_CXX='-Qoption ld '
10727 ;;
10728 gcx)
10729 # Green Hills C++ Compiler
10730 lt_prog_compiler_pic_CXX='-PIC'
10731 ;;
10732 *)
10733 ;;
10734 esac
10735 ;;
10736 sunos4*)
10737 case $cc_basename in
10738 CC)
10739 # Sun C++ 4.x
10740 lt_prog_compiler_pic_CXX='-pic'
10741 lt_prog_compiler_static_CXX='-Bstatic'
10742 ;;
10743 lcc)
10744 # Lucid
10745 lt_prog_compiler_pic_CXX='-pic'
10746 ;;
10747 *)
10748 ;;
10749 esac
10750 ;;
10751 tandem*)
10752 case $cc_basename in
10753 NCC)
10754 # NonStop-UX NCC 3.20
10755 lt_prog_compiler_pic_CXX='-KPIC'
10756 ;;
10757 *)
10758 ;;
10759 esac
10760 ;;
10761 unixware*)
10762 ;;
10763 vxworks*)
10764 ;;
10765 *)
10766 lt_prog_compiler_can_build_shared_CXX=no
10767 ;;
10768 esac
10769 fi
10770
10771echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10772echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10773
10774#
10775# Check to make sure the PIC flag actually works.
10776#
10777if test -n "$lt_prog_compiler_pic_CXX"; then
10778 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10779echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10780if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10782else
10783 lt_prog_compiler_pic_works_CXX=no
10784 ac_outfile=conftest.$ac_objext
10785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10786 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10787 # Insert the option either (1) after the last *FLAGS variable, or
10788 # (2) before a word containing "conftest.", or (3) at the end.
10789 # Note that $ac_compile itself does not contain backslashes and begins
10790 # with a dollar sign (not a hyphen), so the echo should work correctly.
10791 # The option is referenced via a variable to avoid confusing sed.
10792 lt_compile=`echo "$ac_compile" | $SED \
10793 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10795 -e 's:$: $lt_compiler_flag:'`
John Criswell7ec78aa2003-10-16 01:49:00 +000010796 (eval echo "\"\$as_me:10796: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010797 (eval "$lt_compile" 2>conftest.err)
10798 ac_status=$?
10799 cat conftest.err >&5
John Criswell7ec78aa2003-10-16 01:49:00 +000010800 echo "$as_me:10800: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010801 if (exit $ac_status) && test -s "$ac_outfile"; then
10802 # The compiler can only warn and ignore the option if not recognized
10803 # So say no if there are warnings
10804 if test ! -s conftest.err; then
10805 lt_prog_compiler_pic_works_CXX=yes
10806 fi
10807 fi
10808 $rm conftest*
10809
10810fi
10811echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10812echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10813
10814if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10815 case $lt_prog_compiler_pic_CXX in
10816 "" | " "*) ;;
10817 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10818 esac
10819else
10820 lt_prog_compiler_pic_CXX=
10821 lt_prog_compiler_can_build_shared_CXX=no
10822fi
10823
10824fi
10825case "$host_os" in
10826 # For platforms which do not support PIC, -DPIC is meaningless:
10827 *djgpp*)
10828 lt_prog_compiler_pic_CXX=
10829 ;;
10830 *)
10831 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10832 ;;
10833esac
10834
10835echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10836echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10837if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10839else
10840 lt_cv_prog_compiler_c_o_CXX=no
10841 $rm -r conftest 2>/dev/null
10842 mkdir conftest
10843 cd conftest
10844 mkdir out
10845 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10846
10847 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10848 # that will create temporary files in the current directory regardless of
10849 # the output directory. Thus, making CWD read-only will cause this test
10850 # to fail, enabling locking or at least warning the user not to do parallel
10851 # builds.
10852 chmod -w .
10853
10854 lt_compiler_flag="-o out/conftest2.$ac_objext"
10855 # Insert the option either (1) after the last *FLAGS variable, or
10856 # (2) before a word containing "conftest.", or (3) at the end.
10857 # Note that $ac_compile itself does not contain backslashes and begins
10858 # with a dollar sign (not a hyphen), so the echo should work correctly.
10859 lt_compile=`echo "$ac_compile" | $SED \
10860 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10862 -e 's:$: $lt_compiler_flag:'`
John Criswell7ec78aa2003-10-16 01:49:00 +000010863 (eval echo "\"\$as_me:10863: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010864 (eval "$lt_compile" 2>out/conftest.err)
10865 ac_status=$?
10866 cat out/conftest.err >&5
John Criswell7ec78aa2003-10-16 01:49:00 +000010867 echo "$as_me:10867: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010868 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10869 then
10870 # The compiler can only warn and ignore the option if not recognized
10871 # So say no if there are warnings
10872 if test ! -s out/conftest.err; then
10873 lt_cv_prog_compiler_c_o_CXX=yes
10874 fi
10875 fi
10876 chmod u+w .
10877 $rm conftest* out/*
10878 rmdir out
10879 cd ..
10880 rmdir conftest
10881 $rm conftest*
10882
10883fi
10884echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10885echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10886
10887
10888hard_links="nottested"
10889if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10890 # do not overwrite the value of need_locks provided by the user
10891 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10892echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10893 hard_links=yes
10894 $rm conftest*
10895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10896 touch conftest.a
10897 ln conftest.a conftest.b 2>&5 || hard_links=no
10898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10899 echo "$as_me:$LINENO: result: $hard_links" >&5
10900echo "${ECHO_T}$hard_links" >&6
10901 if test "$hard_links" = no; then
10902 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10903echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10904 need_locks=warn
10905 fi
10906else
10907 need_locks=no
10908fi
10909
10910echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10911echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10912
10913 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10914 case $host_os in
10915 aix4* | aix5*)
10916 # If we're using GNU nm, then we don't want the "-C" option.
10917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10918 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10919 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10920 else
10921 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10922 fi
10923 ;;
10924 pw32*)
10925 export_symbols_cmds_CXX="$ltdll_cmds"
10926 ;;
10927 cygwin* | mingw*)
10928 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10929 ;;
10930 *)
10931 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10932 ;;
10933 esac
10934
10935echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10936echo "${ECHO_T}$ld_shlibs_CXX" >&6
10937test "$ld_shlibs_CXX" = no && can_build_shared=no
10938
10939variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10940if test "$GCC" = yes; then
10941 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10942fi
10943
10944#
10945# Do we need to explicitly link libc?
10946#
10947case "x$archive_cmds_need_lc_CXX" in
10948x|xyes)
10949 # Assume -lc should be added
10950 archive_cmds_need_lc_CXX=yes
10951
10952 if test "$enable_shared" = yes && test "$GCC" = yes; then
10953 case $archive_cmds_CXX in
10954 *'~'*)
10955 # FIXME: we may have to deal with multi-command sequences.
10956 ;;
10957 '$CC '*)
10958 # Test whether the compiler implicitly links with -lc since on some
10959 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10960 # to ld, don't add -lc before -lgcc.
10961 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10962echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10963 $rm conftest*
10964 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10965
10966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10967 (eval $ac_compile) 2>&5
10968 ac_status=$?
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } 2>conftest.err; then
10971 soname=conftest
10972 lib=conftest
10973 libobjs=conftest.$ac_objext
10974 deplibs=
10975 wl=$lt_prog_compiler_wl_CXX
10976 compiler_flags=-v
10977 linker_flags=-v
10978 verstring=
10979 output_objdir=.
10980 libname=conftest
10981 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10982 allow_undefined_flag_CXX=
10983 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10984 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }
10988 then
10989 archive_cmds_need_lc_CXX=no
10990 else
10991 archive_cmds_need_lc_CXX=yes
10992 fi
10993 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10994 else
10995 cat conftest.err 1>&5
10996 fi
10997 $rm conftest*
10998 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10999echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11000 ;;
11001 esac
11002 fi
11003 ;;
11004esac
11005
11006echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11007echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11008hardcode_action_CXX=
11009if test -n "$hardcode_libdir_flag_spec_CXX" || \
11010 test -n "$runpath_var CXX" || \
11011 test "X$hardcode_automatic_CXX"="Xyes" ; then
11012
11013 # We can hardcode non-existant directories.
11014 if test "$hardcode_direct_CXX" != no &&
11015 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11016 # have to relink, otherwise we might link with an installed library
11017 # when we should be linking with a yet-to-be-installed one
11018 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11019 test "$hardcode_minus_L_CXX" != no; then
11020 # Linking always hardcodes the temporary library directory.
11021 hardcode_action_CXX=relink
11022 else
11023 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11024 hardcode_action_CXX=immediate
11025 fi
11026else
11027 # We cannot hardcode anything, or else we can only hardcode existing
11028 # directories.
11029 hardcode_action_CXX=unsupported
11030fi
11031echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11032echo "${ECHO_T}$hardcode_action_CXX" >&6
11033
11034if test "$hardcode_action_CXX" = relink; then
11035 # Fast installation is not supported
11036 enable_fast_install=no
11037elif test "$shlibpath_overrides_runpath" = yes ||
11038 test "$enable_shared" = no; then
11039 # Fast installation is not necessary
11040 enable_fast_install=needless
11041fi
11042
11043striplib=
11044old_striplib=
11045echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11046echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11047if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11048 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11049 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11050 echo "$as_me:$LINENO: result: yes" >&5
11051echo "${ECHO_T}yes" >&6
11052else
11053# FIXME - insert some real tests, host_os isn't really good enough
11054 case $host_os in
11055 darwin*)
11056 if test -n "$STRIP" ; then
11057 striplib="$STRIP -x"
11058 echo "$as_me:$LINENO: result: yes" >&5
11059echo "${ECHO_T}yes" >&6
11060 else
11061 echo "$as_me:$LINENO: result: no" >&5
11062echo "${ECHO_T}no" >&6
11063fi
11064 ;;
11065 *)
11066 echo "$as_me:$LINENO: result: no" >&5
11067echo "${ECHO_T}no" >&6
11068 ;;
11069 esac
11070fi
11071
11072echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11073echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11074library_names_spec=
11075libname_spec='lib$name'
11076soname_spec=
11077shrext=".so"
11078postinstall_cmds=
11079postuninstall_cmds=
11080finish_cmds=
11081finish_eval=
11082shlibpath_var=
11083shlibpath_overrides_runpath=unknown
11084version_type=none
11085dynamic_linker="$host_os ld.so"
11086sys_lib_dlsearch_path_spec="/lib /usr/lib"
11087if test "$GCC" = yes; then
11088 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11089 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11090 # if the path contains ";" then we assume it to be the separator
11091 # otherwise default to the standard path separator (i.e. ":") - it is
11092 # assumed that no part of a normal pathname contains ";" but that should
11093 # okay in the real world where ";" in dirpaths is itself problematic.
11094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11095 else
11096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11097 fi
11098else
11099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11100fi
11101need_lib_prefix=unknown
11102hardcode_into_libs=no
11103
11104# when you set need_version to no, make sure it does not cause -set_version
11105# flags to be left without arguments
11106need_version=unknown
11107
11108case $host_os in
11109aix3*)
11110 version_type=linux
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11112 shlibpath_var=LIBPATH
11113
11114 # AIX 3 has no versioning support, so we append a major version to the name.
11115 soname_spec='${libname}${release}${shared_ext}$major'
11116 ;;
11117
11118aix4* | aix5*)
11119 version_type=linux
11120 need_lib_prefix=no
11121 need_version=no
11122 hardcode_into_libs=yes
11123 if test "$host_cpu" = ia64; then
11124 # AIX 5 supports IA64
11125 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 else
11128 # With GCC up to 2.95.x, collect2 would create an import file
11129 # for dependence libraries. The import file would start with
11130 # the line `#! .'. This would cause the generated library to
11131 # depend on `.', always an invalid library. This was fixed in
11132 # development snapshots of GCC prior to 3.0.
11133 case $host_os in
11134 aix4 | aix4.[01] | aix4.[01].*)
11135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11136 echo ' yes '
11137 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11138 :
11139 else
11140 can_build_shared=no
11141 fi
11142 ;;
11143 esac
11144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11145 # soname into executable. Probably we can add versioning support to
11146 # collect2, so additional links can be useful in future.
11147 if test "$aix_use_runtimelinking" = yes; then
11148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11149 # instead of lib<name>.a to let people know that these are not
11150 # typical AIX shared libraries.
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152 else
11153 # We preserve .a as extension for shared libraries through AIX4.2
11154 # and later when we are not doing run time linking.
11155 library_names_spec='${libname}${release}.a $libname.a'
11156 soname_spec='${libname}${release}${shared_ext}$major'
11157 fi
11158 shlibpath_var=LIBPATH
11159 fi
11160 ;;
11161
11162amigaos*)
11163 library_names_spec='$libname.ixlibrary $libname.a'
11164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11165 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
11166 ;;
11167
11168beos*)
11169 library_names_spec='${libname}${shared_ext}'
11170 dynamic_linker="$host_os ld.so"
11171 shlibpath_var=LIBRARY_PATH
11172 ;;
11173
11174bsdi4*)
11175 version_type=linux
11176 need_version=no
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11183 # the default ld.so.conf also contains /usr/contrib/lib and
11184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11185 # libtool to hard-code these into programs
11186 ;;
11187
11188cygwin* | mingw* | pw32*)
11189 version_type=windows
11190 shrext=".dll"
11191 need_version=no
11192 need_lib_prefix=no
11193
11194 case $GCC,$host_os in
11195 yes,cygwin* | yes,mingw* | yes,pw32*)
11196 library_names_spec='$libname.dll.a'
11197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11198 postinstall_cmds='base_file=`basename \${file}`~
11199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11200 dldir=$destdir/`dirname \$dlpath`~
11201 test -d \$dldir || mkdir -p \$dldir~
11202 $install_prog $dir/$dlname \$dldir/$dlname'
11203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11204 dlpath=$dir/\$dldll~
11205 $rm \$dlpath'
11206 shlibpath_overrides_runpath=yes
11207
11208 case $host_os in
11209 cygwin*)
11210 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11211 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11212 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11213 ;;
11214 mingw*)
11215 # MinGW DLLs use traditional 'lib' prefix
11216 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11217 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11218 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11219 # It is most probably a Windows format PATH printed by
11220 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11221 # path with ; separators, and with drive letters. We can handle the
11222 # drive letters (cygwin fileutils understands them), so leave them,
11223 # especially as we might pass files found there to a mingw objdump,
11224 # which wouldn't understand a cygwinified path. Ahh.
11225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11226 else
11227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11228 fi
11229 ;;
11230 pw32*)
11231 # pw32 DLLs use 'pw' prefix rather than 'lib'
11232 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11233 ;;
11234 esac
11235 ;;
11236
11237 *)
11238 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11239 ;;
11240 esac
11241 dynamic_linker='Win32 ld.exe'
11242 # FIXME: first we should search . and the directory the executable is in
11243 shlibpath_var=PATH
11244 ;;
11245
11246darwin* | rhapsody*)
11247 dynamic_linker="$host_os dyld"
11248 version_type=darwin
11249 need_lib_prefix=no
11250 need_version=no
11251 # FIXME: Relying on posixy $() will cause problems for
11252 # cross-compilation, but unfortunately the echo tests do not
11253 # yet detect zsh echo's removal of \ escapes.
11254 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11255 soname_spec='${libname}${release}${major}$shared_ext'
11256 shlibpath_overrides_runpath=yes
11257 shlibpath_var=DYLD_LIBRARY_PATH
11258 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11259 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11260 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11261 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11262 fi
11263 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11264 ;;
11265
11266dgux*)
11267 version_type=linux
11268 need_lib_prefix=no
11269 need_version=no
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11271 soname_spec='${libname}${release}${shared_ext}$major'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 ;;
11274
11275freebsd1*)
11276 dynamic_linker=no
11277 ;;
11278
11279freebsd*)
11280 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11281 version_type=freebsd-$objformat
11282 case $version_type in
11283 freebsd-elf*)
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11285 need_version=no
11286 need_lib_prefix=no
11287 ;;
11288 freebsd-*)
11289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11290 need_version=yes
11291 ;;
11292 esac
11293 shlibpath_var=LD_LIBRARY_PATH
11294 case $host_os in
11295 freebsd2*)
11296 shlibpath_overrides_runpath=yes
11297 ;;
11298 freebsd3.01* | freebsdelf3.01*)
11299 shlibpath_overrides_runpath=yes
11300 hardcode_into_libs=yes
11301 ;;
11302 *) # from 3.2 on
11303 shlibpath_overrides_runpath=no
11304 hardcode_into_libs=yes
11305 ;;
11306 esac
11307 ;;
11308
11309gnu*)
11310 version_type=linux
11311 need_lib_prefix=no
11312 need_version=no
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11314 soname_spec='${libname}${release}${shared_ext}$major'
11315 shlibpath_var=LD_LIBRARY_PATH
11316 hardcode_into_libs=yes
11317 ;;
11318
11319hpux9* | hpux10* | hpux11*)
11320 # Give a soname corresponding to the major version so that dld.sl refuses to
11321 # link against other versions.
11322 version_type=sunos
11323 need_lib_prefix=no
11324 need_version=no
11325 case "$host_cpu" in
11326 ia64*)
11327 shrext='.so'
11328 hardcode_into_libs=yes
11329 dynamic_linker="$host_os dld.so"
11330 shlibpath_var=LD_LIBRARY_PATH
11331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333 soname_spec='${libname}${release}${shared_ext}$major'
11334 if test "X$HPUX_IA64_MODE" = X32; then
11335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11336 else
11337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11338 fi
11339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11340 ;;
11341 hppa*64*)
11342 shrext='.sl'
11343 hardcode_into_libs=yes
11344 dynamic_linker="$host_os dld.sl"
11345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11348 soname_spec='${libname}${release}${shared_ext}$major'
11349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11351 ;;
11352 *)
11353 shrext='.sl'
11354 dynamic_linker="$host_os dld.sl"
11355 shlibpath_var=SHLIB_PATH
11356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358 soname_spec='${libname}${release}${shared_ext}$major'
11359 ;;
11360 esac
11361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11362 postinstall_cmds='chmod 555 $lib'
11363 ;;
11364
11365irix5* | irix6* | nonstopux*)
11366 case $host_os in
11367 nonstopux*) version_type=nonstopux ;;
11368 *)
11369 if test "$lt_cv_prog_gnu_ld" = yes; then
11370 version_type=linux
11371 else
11372 version_type=irix
11373 fi ;;
11374 esac
11375 need_lib_prefix=no
11376 need_version=no
11377 soname_spec='${libname}${release}${shared_ext}$major'
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11379 case $host_os in
11380 irix5* | nonstopux*)
11381 libsuff= shlibsuff=
11382 ;;
11383 *)
11384 case $LD in # libtool.m4 will add one of these switches to LD
11385 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11386 libsuff= shlibsuff= libmagic=32-bit;;
11387 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11388 libsuff=32 shlibsuff=N32 libmagic=N32;;
11389 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11390 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11391 *) libsuff= shlibsuff= libmagic=never-match;;
11392 esac
11393 ;;
11394 esac
11395 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11396 shlibpath_overrides_runpath=no
11397 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11398 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11399 hardcode_into_libs=yes
11400 ;;
11401
11402# No shared lib support for Linux oldld, aout, or coff.
11403linux*oldld* | linux*aout* | linux*coff*)
11404 dynamic_linker=no
11405 ;;
11406
11407# This must be Linux ELF.
11408linux*)
11409 version_type=linux
11410 need_lib_prefix=no
11411 need_version=no
11412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413 soname_spec='${libname}${release}${shared_ext}$major'
11414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11415 shlibpath_var=LD_LIBRARY_PATH
11416 shlibpath_overrides_runpath=no
11417 # This implies no fast_install, which is unacceptable.
11418 # Some rework will be needed to allow for fast_install
11419 # before this can be enabled.
11420 hardcode_into_libs=yes
11421
11422 # We used to test for /lib/ld.so.1 and disable shared libraries on
11423 # powerpc, because MkLinux only supported shared libraries with the
11424 # GNU dynamic linker. Since this was broken with cross compilers,
11425 # most powerpc-linux boxes support dynamic linking these days and
11426 # people can always --disable-shared, the test was removed, and we
11427 # assume the GNU/Linux dynamic linker is in use.
11428 dynamic_linker='GNU/Linux ld.so'
11429 ;;
11430
11431netbsd*)
11432 version_type=sunos
11433 need_lib_prefix=no
11434 need_version=no
11435 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11438 dynamic_linker='NetBSD (a.out) ld.so'
11439 else
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11441 soname_spec='${libname}${release}${shared_ext}$major'
11442 dynamic_linker='NetBSD ld.elf_so'
11443 fi
11444 shlibpath_var=LD_LIBRARY_PATH
11445 shlibpath_overrides_runpath=yes
11446 hardcode_into_libs=yes
11447 ;;
11448
11449newsos6)
11450 version_type=linux
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=yes
11454 ;;
11455
11456nto-qnx)
11457 version_type=linux
11458 need_lib_prefix=no
11459 need_version=no
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=yes
11464 ;;
11465
11466openbsd*)
11467 version_type=sunos
11468 need_lib_prefix=no
11469 need_version=no
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11474 case $host_os in
11475 openbsd2.[89] | openbsd2.[89].*)
11476 shlibpath_overrides_runpath=no
11477 ;;
11478 *)
11479 shlibpath_overrides_runpath=yes
11480 ;;
11481 esac
11482 else
11483 shlibpath_overrides_runpath=yes
11484 fi
11485 ;;
11486
11487os2*)
11488 libname_spec='$name'
11489 shrext=".dll"
11490 need_lib_prefix=no
11491 library_names_spec='$libname${shared_ext} $libname.a'
11492 dynamic_linker='OS/2 ld.exe'
11493 shlibpath_var=LIBPATH
11494 ;;
11495
11496osf3* | osf4* | osf5*)
11497 version_type=osf
11498 need_lib_prefix=no
11499 need_version=no
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11502 shlibpath_var=LD_LIBRARY_PATH
11503 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11504 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11505 ;;
11506
11507sco3.2v5*)
11508 version_type=osf
11509 soname_spec='${libname}${release}${shared_ext}$major'
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 shlibpath_var=LD_LIBRARY_PATH
11512 ;;
11513
11514solaris*)
11515 version_type=linux
11516 need_lib_prefix=no
11517 need_version=no
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 shlibpath_overrides_runpath=yes
11522 hardcode_into_libs=yes
11523 # ldd complains unless libraries are executable
11524 postinstall_cmds='chmod +x $lib'
11525 ;;
11526
11527sunos4*)
11528 version_type=sunos
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11530 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 shlibpath_overrides_runpath=yes
11533 if test "$with_gnu_ld" = yes; then
11534 need_lib_prefix=no
11535 fi
11536 need_version=yes
11537 ;;
11538
11539sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11540 version_type=linux
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542 soname_spec='${libname}${release}${shared_ext}$major'
11543 shlibpath_var=LD_LIBRARY_PATH
11544 case $host_vendor in
11545 sni)
11546 shlibpath_overrides_runpath=no
11547 need_lib_prefix=no
11548 export_dynamic_flag_spec='${wl}-Blargedynsym'
11549 runpath_var=LD_RUN_PATH
11550 ;;
11551 siemens)
11552 need_lib_prefix=no
11553 ;;
11554 motorola)
11555 need_lib_prefix=no
11556 need_version=no
11557 shlibpath_overrides_runpath=no
11558 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11559 ;;
11560 esac
11561 ;;
11562
11563sysv4*MP*)
11564 if test -d /usr/nec ;then
11565 version_type=linux
11566 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11567 soname_spec='$libname${shared_ext}.$major'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 fi
11570 ;;
11571
11572uts4*)
11573 version_type=linux
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575 soname_spec='${libname}${release}${shared_ext}$major'
11576 shlibpath_var=LD_LIBRARY_PATH
11577 ;;
11578
11579*)
11580 dynamic_linker=no
11581 ;;
11582esac
11583echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11584echo "${ECHO_T}$dynamic_linker" >&6
11585test "$dynamic_linker" = no && can_build_shared=no
11586
11587if test "x$enable_dlopen" != xyes; then
11588 enable_dlopen=unknown
11589 enable_dlopen_self=unknown
11590 enable_dlopen_self_static=unknown
11591else
11592 lt_cv_dlopen=no
11593 lt_cv_dlopen_libs=
11594
11595 case $host_os in
11596 beos*)
11597 lt_cv_dlopen="load_add_on"
11598 lt_cv_dlopen_libs=
11599 lt_cv_dlopen_self=yes
11600 ;;
11601
11602 mingw* | pw32*)
11603 lt_cv_dlopen="LoadLibrary"
11604 lt_cv_dlopen_libs=
11605 ;;
11606
11607 cygwin*)
11608 lt_cv_dlopen="dlopen"
11609 lt_cv_dlopen_libs=
11610 ;;
11611
11612 darwin*)
11613 # if libdl is installed we need to link against it
11614 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11615echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11616if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11618else
11619 ac_check_lib_save_LIBS=$LIBS
11620LIBS="-ldl $LIBS"
11621cat >conftest.$ac_ext <<_ACEOF
11622#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011623/* confdefs.h. */
11624_ACEOF
11625cat confdefs.h >>conftest.$ac_ext
11626cat >>conftest.$ac_ext <<_ACEOF
11627/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011628
11629/* Override any gcc2 internal prototype to avoid an error. */
11630#ifdef __cplusplus
11631extern "C"
11632#endif
11633/* We use char because int might match the return type of a gcc2
11634 builtin and then its argument prototype would still apply. */
11635char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011636int
11637main ()
11638{
11639dlopen ();
11640 ;
11641 return 0;
11642}
11643_ACEOF
11644rm -f conftest.$ac_objext conftest$ac_exeext
11645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11646 (eval $ac_link) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -s conftest$ac_exeext'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 ac_cv_lib_dl_dlopen=yes
11657else
11658 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011659sed 's/^/| /' conftest.$ac_ext >&5
11660
John Criswell47fdd832003-07-14 16:52:07 +000011661ac_cv_lib_dl_dlopen=no
11662fi
11663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11664LIBS=$ac_check_lib_save_LIBS
11665fi
11666echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11667echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11668if test $ac_cv_lib_dl_dlopen = yes; then
11669 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11670else
11671
11672 lt_cv_dlopen="dyld"
11673 lt_cv_dlopen_libs=
11674 lt_cv_dlopen_self=yes
11675
11676fi
11677
11678 ;;
11679
11680 *)
11681 echo "$as_me:$LINENO: checking for shl_load" >&5
11682echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11683if test "${ac_cv_func_shl_load+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11685else
11686 cat >conftest.$ac_ext <<_ACEOF
11687#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011688/* confdefs.h. */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011693/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011694 which can conflict with char shl_load (); below.
11695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11696 <limits.h> exists even on freestanding compilers. */
11697#ifdef __STDC__
11698# include <limits.h>
11699#else
11700# include <assert.h>
11701#endif
John Criswell47fdd832003-07-14 16:52:07 +000011702/* Override any gcc2 internal prototype to avoid an error. */
11703#ifdef __cplusplus
11704extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011705{
John Criswell47fdd832003-07-14 16:52:07 +000011706#endif
11707/* We use char because int might match the return type of a gcc2
11708 builtin and then its argument prototype would still apply. */
11709char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011710/* The GNU C library defines this for functions which it implements
11711 to always fail with ENOSYS. Some functions are actually named
11712 something starting with __ and the normal name is an alias. */
11713#if defined (__stub_shl_load) || defined (__stub___shl_load)
11714choke me
11715#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011716char (*f) () = shl_load;
11717#endif
11718#ifdef __cplusplus
11719}
John Criswell47fdd832003-07-14 16:52:07 +000011720#endif
11721
John Criswell0c38eaf2003-09-10 15:17:25 +000011722int
11723main ()
11724{
11725return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011726 ;
11727 return 0;
11728}
11729_ACEOF
11730rm -f conftest.$ac_objext conftest$ac_exeext
11731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11732 (eval $ac_link) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -s conftest$ac_exeext'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 ac_cv_func_shl_load=yes
11743else
11744 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011745sed 's/^/| /' conftest.$ac_ext >&5
11746
John Criswell47fdd832003-07-14 16:52:07 +000011747ac_cv_func_shl_load=no
11748fi
11749rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11750fi
11751echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11752echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11753if test $ac_cv_func_shl_load = yes; then
11754 lt_cv_dlopen="shl_load"
11755else
11756 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11757echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11758if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11760else
11761 ac_check_lib_save_LIBS=$LIBS
11762LIBS="-ldld $LIBS"
11763cat >conftest.$ac_ext <<_ACEOF
11764#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011765/* confdefs.h. */
11766_ACEOF
11767cat confdefs.h >>conftest.$ac_ext
11768cat >>conftest.$ac_ext <<_ACEOF
11769/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011770
11771/* Override any gcc2 internal prototype to avoid an error. */
11772#ifdef __cplusplus
11773extern "C"
11774#endif
11775/* We use char because int might match the return type of a gcc2
11776 builtin and then its argument prototype would still apply. */
11777char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011778int
11779main ()
11780{
11781shl_load ();
11782 ;
11783 return 0;
11784}
11785_ACEOF
11786rm -f conftest.$ac_objext conftest$ac_exeext
11787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11788 (eval $ac_link) 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
11792 { ac_try='test -s conftest$ac_exeext'
11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 (eval $ac_try) 2>&5
11795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; }; then
11798 ac_cv_lib_dld_shl_load=yes
11799else
11800 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011801sed 's/^/| /' conftest.$ac_ext >&5
11802
John Criswell47fdd832003-07-14 16:52:07 +000011803ac_cv_lib_dld_shl_load=no
11804fi
11805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11806LIBS=$ac_check_lib_save_LIBS
11807fi
11808echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11809echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11810if test $ac_cv_lib_dld_shl_load = yes; then
11811 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11812else
11813 echo "$as_me:$LINENO: checking for dlopen" >&5
11814echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11815if test "${ac_cv_func_dlopen+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11817else
11818 cat >conftest.$ac_ext <<_ACEOF
11819#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011820/* confdefs.h. */
11821_ACEOF
11822cat confdefs.h >>conftest.$ac_ext
11823cat >>conftest.$ac_ext <<_ACEOF
11824/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011825/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011826 which can conflict with char dlopen (); below.
11827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11828 <limits.h> exists even on freestanding compilers. */
11829#ifdef __STDC__
11830# include <limits.h>
11831#else
11832# include <assert.h>
11833#endif
John Criswell47fdd832003-07-14 16:52:07 +000011834/* Override any gcc2 internal prototype to avoid an error. */
11835#ifdef __cplusplus
11836extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011837{
John Criswell47fdd832003-07-14 16:52:07 +000011838#endif
11839/* We use char because int might match the return type of a gcc2
11840 builtin and then its argument prototype would still apply. */
11841char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011842/* The GNU C library defines this for functions which it implements
11843 to always fail with ENOSYS. Some functions are actually named
11844 something starting with __ and the normal name is an alias. */
11845#if defined (__stub_dlopen) || defined (__stub___dlopen)
11846choke me
11847#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011848char (*f) () = dlopen;
11849#endif
11850#ifdef __cplusplus
11851}
John Criswell47fdd832003-07-14 16:52:07 +000011852#endif
11853
John Criswell0c38eaf2003-09-10 15:17:25 +000011854int
11855main ()
11856{
11857return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011858 ;
11859 return 0;
11860}
11861_ACEOF
11862rm -f conftest.$ac_objext conftest$ac_exeext
11863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11864 (eval $ac_link) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
11868 { ac_try='test -s conftest$ac_exeext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 ac_cv_func_dlopen=yes
11875else
11876 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011877sed 's/^/| /' conftest.$ac_ext >&5
11878
John Criswell47fdd832003-07-14 16:52:07 +000011879ac_cv_func_dlopen=no
11880fi
11881rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11882fi
11883echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11884echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11885if test $ac_cv_func_dlopen = yes; then
11886 lt_cv_dlopen="dlopen"
11887else
11888 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11889echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11890if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11892else
11893 ac_check_lib_save_LIBS=$LIBS
11894LIBS="-ldl $LIBS"
11895cat >conftest.$ac_ext <<_ACEOF
11896#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011897/* confdefs.h. */
11898_ACEOF
11899cat confdefs.h >>conftest.$ac_ext
11900cat >>conftest.$ac_ext <<_ACEOF
11901/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011902
11903/* Override any gcc2 internal prototype to avoid an error. */
11904#ifdef __cplusplus
11905extern "C"
11906#endif
11907/* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11909char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011910int
11911main ()
11912{
11913dlopen ();
11914 ;
11915 return 0;
11916}
11917_ACEOF
11918rm -f conftest.$ac_objext conftest$ac_exeext
11919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920 (eval $ac_link) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -s conftest$ac_exeext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 ac_cv_lib_dl_dlopen=yes
11931else
11932 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011933sed 's/^/| /' conftest.$ac_ext >&5
11934
John Criswell47fdd832003-07-14 16:52:07 +000011935ac_cv_lib_dl_dlopen=no
11936fi
11937rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11938LIBS=$ac_check_lib_save_LIBS
11939fi
11940echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11941echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11942if test $ac_cv_lib_dl_dlopen = yes; then
11943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11944else
11945 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11946echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11947if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949else
11950 ac_check_lib_save_LIBS=$LIBS
11951LIBS="-lsvld $LIBS"
11952cat >conftest.$ac_ext <<_ACEOF
11953#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011954/* confdefs.h. */
11955_ACEOF
11956cat confdefs.h >>conftest.$ac_ext
11957cat >>conftest.$ac_ext <<_ACEOF
11958/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011959
11960/* Override any gcc2 internal prototype to avoid an error. */
11961#ifdef __cplusplus
11962extern "C"
11963#endif
11964/* We use char because int might match the return type of a gcc2
11965 builtin and then its argument prototype would still apply. */
11966char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011967int
11968main ()
11969{
11970dlopen ();
11971 ;
11972 return 0;
11973}
11974_ACEOF
11975rm -f conftest.$ac_objext conftest$ac_exeext
11976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11977 (eval $ac_link) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
11981 { ac_try='test -s conftest$ac_exeext'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11984 ac_status=$?
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 ac_cv_lib_svld_dlopen=yes
11988else
11989 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011990sed 's/^/| /' conftest.$ac_ext >&5
11991
John Criswell47fdd832003-07-14 16:52:07 +000011992ac_cv_lib_svld_dlopen=no
11993fi
11994rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11995LIBS=$ac_check_lib_save_LIBS
11996fi
11997echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11998echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11999if test $ac_cv_lib_svld_dlopen = yes; then
12000 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12001else
12002 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12003echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12004if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12006else
12007 ac_check_lib_save_LIBS=$LIBS
12008LIBS="-ldld $LIBS"
12009cat >conftest.$ac_ext <<_ACEOF
12010#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012011/* confdefs.h. */
12012_ACEOF
12013cat confdefs.h >>conftest.$ac_ext
12014cat >>conftest.$ac_ext <<_ACEOF
12015/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012016
12017/* Override any gcc2 internal prototype to avoid an error. */
12018#ifdef __cplusplus
12019extern "C"
12020#endif
12021/* We use char because int might match the return type of a gcc2
12022 builtin and then its argument prototype would still apply. */
12023char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012024int
12025main ()
12026{
12027dld_link ();
12028 ;
12029 return 0;
12030}
12031_ACEOF
12032rm -f conftest.$ac_objext conftest$ac_exeext
12033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12034 (eval $ac_link) 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try='test -s conftest$ac_exeext'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 ac_cv_lib_dld_dld_link=yes
12045else
12046 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012047sed 's/^/| /' conftest.$ac_ext >&5
12048
John Criswell47fdd832003-07-14 16:52:07 +000012049ac_cv_lib_dld_dld_link=no
12050fi
12051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12052LIBS=$ac_check_lib_save_LIBS
12053fi
12054echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12055echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12056if test $ac_cv_lib_dld_dld_link = yes; then
12057 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12058fi
12059
12060
12061fi
12062
12063
12064fi
12065
12066
12067fi
12068
12069
12070fi
12071
12072
12073fi
12074
12075 ;;
12076 esac
12077
12078 if test "x$lt_cv_dlopen" != xno; then
12079 enable_dlopen=yes
12080 else
12081 enable_dlopen=no
12082 fi
12083
12084 case $lt_cv_dlopen in
12085 dlopen)
12086 save_CPPFLAGS="$CPPFLAGS"
12087 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12088
12089 save_LDFLAGS="$LDFLAGS"
12090 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12091
12092 save_LIBS="$LIBS"
12093 LIBS="$lt_cv_dlopen_libs $LIBS"
12094
12095 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12096echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12097if test "${lt_cv_dlopen_self+set}" = set; then
12098 echo $ECHO_N "(cached) $ECHO_C" >&6
12099else
12100 if test "$cross_compiling" = yes; then :
12101 lt_cv_dlopen_self=cross
12102else
12103 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12104 lt_status=$lt_dlunknown
12105 cat > conftest.$ac_ext <<EOF
John Criswell7ec78aa2003-10-16 01:49:00 +000012106#line 12106 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012107#include "confdefs.h"
12108
12109#if HAVE_DLFCN_H
12110#include <dlfcn.h>
12111#endif
12112
12113#include <stdio.h>
12114
12115#ifdef RTLD_GLOBAL
12116# define LT_DLGLOBAL RTLD_GLOBAL
12117#else
12118# ifdef DL_GLOBAL
12119# define LT_DLGLOBAL DL_GLOBAL
12120# else
12121# define LT_DLGLOBAL 0
12122# endif
12123#endif
12124
12125/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12126 find out it does not work in some platform. */
12127#ifndef LT_DLLAZY_OR_NOW
12128# ifdef RTLD_LAZY
12129# define LT_DLLAZY_OR_NOW RTLD_LAZY
12130# else
12131# ifdef DL_LAZY
12132# define LT_DLLAZY_OR_NOW DL_LAZY
12133# else
12134# ifdef RTLD_NOW
12135# define LT_DLLAZY_OR_NOW RTLD_NOW
12136# else
12137# ifdef DL_NOW
12138# define LT_DLLAZY_OR_NOW DL_NOW
12139# else
12140# define LT_DLLAZY_OR_NOW 0
12141# endif
12142# endif
12143# endif
12144# endif
12145#endif
12146
12147#ifdef __cplusplus
12148extern "C" void exit (int);
12149#endif
12150
12151void fnord() { int i=42;}
12152int main ()
12153{
12154 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12155 int status = $lt_dlunknown;
12156
12157 if (self)
12158 {
12159 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12160 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12161 /* dlclose (self); */
12162 }
12163
12164 exit (status);
12165}
12166EOF
12167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12168 (eval $ac_link) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12172 (./conftest; exit; ) 2>/dev/null
12173 lt_status=$?
12174 case x$lt_status in
12175 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12176 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12177 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12178 esac
12179 else :
12180 # compilation failed
12181 lt_cv_dlopen_self=no
12182 fi
12183fi
12184rm -fr conftest*
12185
12186
12187fi
12188echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12189echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12190
12191 if test "x$lt_cv_dlopen_self" = xyes; then
12192 LDFLAGS="$LDFLAGS $link_static_flag"
12193 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12194echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12195if test "${lt_cv_dlopen_self_static+set}" = set; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12197else
12198 if test "$cross_compiling" = yes; then :
12199 lt_cv_dlopen_self_static=cross
12200else
12201 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12202 lt_status=$lt_dlunknown
12203 cat > conftest.$ac_ext <<EOF
John Criswell7ec78aa2003-10-16 01:49:00 +000012204#line 12204 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012205#include "confdefs.h"
12206
12207#if HAVE_DLFCN_H
12208#include <dlfcn.h>
12209#endif
12210
12211#include <stdio.h>
12212
12213#ifdef RTLD_GLOBAL
12214# define LT_DLGLOBAL RTLD_GLOBAL
12215#else
12216# ifdef DL_GLOBAL
12217# define LT_DLGLOBAL DL_GLOBAL
12218# else
12219# define LT_DLGLOBAL 0
12220# endif
12221#endif
12222
12223/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12224 find out it does not work in some platform. */
12225#ifndef LT_DLLAZY_OR_NOW
12226# ifdef RTLD_LAZY
12227# define LT_DLLAZY_OR_NOW RTLD_LAZY
12228# else
12229# ifdef DL_LAZY
12230# define LT_DLLAZY_OR_NOW DL_LAZY
12231# else
12232# ifdef RTLD_NOW
12233# define LT_DLLAZY_OR_NOW RTLD_NOW
12234# else
12235# ifdef DL_NOW
12236# define LT_DLLAZY_OR_NOW DL_NOW
12237# else
12238# define LT_DLLAZY_OR_NOW 0
12239# endif
12240# endif
12241# endif
12242# endif
12243#endif
12244
12245#ifdef __cplusplus
12246extern "C" void exit (int);
12247#endif
12248
12249void fnord() { int i=42;}
12250int main ()
12251{
12252 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12253 int status = $lt_dlunknown;
12254
12255 if (self)
12256 {
12257 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12258 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12259 /* dlclose (self); */
12260 }
12261
12262 exit (status);
12263}
12264EOF
12265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12266 (eval $ac_link) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12270 (./conftest; exit; ) 2>/dev/null
12271 lt_status=$?
12272 case x$lt_status in
12273 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12274 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12275 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12276 esac
12277 else :
12278 # compilation failed
12279 lt_cv_dlopen_self_static=no
12280 fi
12281fi
12282rm -fr conftest*
12283
12284
12285fi
12286echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12287echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12288 fi
12289
12290 CPPFLAGS="$save_CPPFLAGS"
12291 LDFLAGS="$save_LDFLAGS"
12292 LIBS="$save_LIBS"
12293 ;;
12294 esac
12295
12296 case $lt_cv_dlopen_self in
12297 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12298 *) enable_dlopen_self=unknown ;;
12299 esac
12300
12301 case $lt_cv_dlopen_self_static in
12302 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12303 *) enable_dlopen_self_static=unknown ;;
12304 esac
12305fi
12306
12307
12308# The else clause should only fire when bootstrapping the
12309# libtool distribution, otherwise you forgot to ship ltmain.sh
12310# with your package, and you will get complaints that there are
12311# no rules to generate ltmain.sh.
12312if test -f "$ltmain"; then
12313 # See if we are running on zsh, and set the options which allow our commands through
12314 # without removal of \ escapes.
12315 if test -n "${ZSH_VERSION+set}" ; then
12316 setopt NO_GLOB_SUBST
12317 fi
12318 # Now quote all the things that may contain metacharacters while being
12319 # careful not to overquote the AC_SUBSTed values. We take copies of the
12320 # variables and quote the copies for generation of the libtool script.
12321 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12322 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12323 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12324 deplibs_check_method reload_flag reload_cmds need_locks \
12325 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12326 lt_cv_sys_global_symbol_to_c_name_address \
12327 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12328 old_postinstall_cmds old_postuninstall_cmds \
12329 compiler_CXX \
12330 CC_CXX \
12331 LD_CXX \
12332 lt_prog_compiler_wl_CXX \
12333 lt_prog_compiler_pic_CXX \
12334 lt_prog_compiler_static_CXX \
12335 lt_prog_compiler_no_builtin_flag_CXX \
12336 export_dynamic_flag_spec_CXX \
12337 thread_safe_flag_spec_CXX \
12338 whole_archive_flag_spec_CXX \
12339 enable_shared_with_static_runtimes_CXX \
12340 old_archive_cmds_CXX \
12341 old_archive_from_new_cmds_CXX \
12342 predep_objects_CXX \
12343 postdep_objects_CXX \
12344 predeps_CXX \
12345 postdeps_CXX \
12346 compiler_lib_search_path_CXX \
12347 archive_cmds_CXX \
12348 archive_expsym_cmds_CXX \
12349 postinstall_cmds_CXX \
12350 postuninstall_cmds_CXX \
12351 old_archive_from_expsyms_cmds_CXX \
12352 allow_undefined_flag_CXX \
12353 no_undefined_flag_CXX \
12354 export_symbols_cmds_CXX \
12355 hardcode_libdir_flag_spec_CXX \
12356 hardcode_libdir_flag_spec_ld_CXX \
12357 hardcode_libdir_separator_CXX \
12358 hardcode_automatic_CXX \
12359 module_cmds_CXX \
12360 module_expsym_cmds_CXX \
12361 lt_cv_prog_compiler_c_o_CXX \
12362 exclude_expsyms_CXX \
12363 include_expsyms_CXX; do
12364
12365 case $var in
12366 old_archive_cmds_CXX | \
12367 old_archive_from_new_cmds_CXX | \
12368 archive_cmds_CXX | \
12369 archive_expsym_cmds_CXX | \
12370 module_cmds_CXX | \
12371 module_expsym_cmds_CXX | \
12372 old_archive_from_expsyms_cmds_CXX | \
12373 export_symbols_cmds_CXX | \
12374 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12375 postinstall_cmds | postuninstall_cmds | \
12376 old_postinstall_cmds | old_postuninstall_cmds | \
12377 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12378 # Double-quote double-evaled strings.
12379 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12380 ;;
12381 *)
12382 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12383 ;;
12384 esac
12385 done
12386
12387 case $lt_echo in
12388 *'\$0 --fallback-echo"')
12389 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12390 ;;
12391 esac
12392
12393cfgfile="$ofile"
12394
12395 cat <<__EOF__ >> "$cfgfile"
12396# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12397
12398# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12399
12400# Shell to use when invoking shell scripts.
12401SHELL=$lt_SHELL
12402
12403# Whether or not to build shared libraries.
12404build_libtool_libs=$enable_shared
12405
12406# Whether or not to build static libraries.
12407build_old_libs=$enable_static
12408
12409# Whether or not to add -lc for building shared libraries.
12410build_libtool_need_lc=$archive_cmds_need_lc_CXX
12411
12412# Whether or not to disallow shared libs when runtime libs are static
12413allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12414
12415# Whether or not to optimize for fast installation.
12416fast_install=$enable_fast_install
12417
12418# The host system.
12419host_alias=$host_alias
12420host=$host
12421
12422# An echo program that does not interpret backslashes.
12423echo=$lt_echo
12424
12425# The archiver.
12426AR=$lt_AR
12427AR_FLAGS=$lt_AR_FLAGS
12428
12429# A C compiler.
12430LTCC=$lt_LTCC
12431
12432# A language-specific compiler.
12433CC=$lt_compiler_CXX
12434
12435# Is the compiler the GNU C compiler?
12436with_gcc=$GCC_CXX
12437
12438# An ERE matcher.
12439EGREP=$lt_EGREP
12440
12441# The linker used to build libraries.
12442LD=$lt_LD_CXX
12443
12444# Whether we need hard or soft links.
12445LN_S=$lt_LN_S
12446
12447# A BSD-compatible nm program.
12448NM=$lt_NM
12449
12450# A symbol stripping program
12451STRIP=$STRIP
12452
12453# Used to examine libraries when file_magic_cmd begins "file"
12454MAGIC_CMD=$MAGIC_CMD
12455
12456# Used on cygwin: DLL creation program.
12457DLLTOOL="$DLLTOOL"
12458
12459# Used on cygwin: object dumper.
12460OBJDUMP="$OBJDUMP"
12461
12462# Used on cygwin: assembler.
12463AS="$AS"
12464
12465# The name of the directory that contains temporary libtool files.
12466objdir=$objdir
12467
12468# How to create reloadable object files.
12469reload_flag=$lt_reload_flag
12470reload_cmds=$lt_reload_cmds
12471
12472# How to pass a linker flag through the compiler.
12473wl=$lt_lt_prog_compiler_wl_CXX
12474
12475# Object file suffix (normally "o").
12476objext="$ac_objext"
12477
12478# Old archive suffix (normally "a").
12479libext="$libext"
12480
12481# Shared library suffix (normally ".so").
12482shrext='$shrext'
12483
12484# Executable file suffix (normally "").
12485exeext="$exeext"
12486
12487# Additional compiler flags for building library objects.
12488pic_flag=$lt_lt_prog_compiler_pic_CXX
12489pic_mode=$pic_mode
12490
12491# What is the maximum length of a command?
12492max_cmd_len=$lt_cv_sys_max_cmd_len
12493
12494# Does compiler simultaneously support -c and -o options?
12495compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12496
12497# Must we lock files when doing compilation ?
12498need_locks=$lt_need_locks
12499
12500# Do we need the lib prefix for modules?
12501need_lib_prefix=$need_lib_prefix
12502
12503# Do we need a version for libraries?
12504need_version=$need_version
12505
12506# Whether dlopen is supported.
12507dlopen_support=$enable_dlopen
12508
12509# Whether dlopen of programs is supported.
12510dlopen_self=$enable_dlopen_self
12511
12512# Whether dlopen of statically linked programs is supported.
12513dlopen_self_static=$enable_dlopen_self_static
12514
12515# Compiler flag to prevent dynamic linking.
12516link_static_flag=$lt_lt_prog_compiler_static_CXX
12517
12518# Compiler flag to turn off builtin functions.
12519no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12520
12521# Compiler flag to allow reflexive dlopens.
12522export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12523
12524# Compiler flag to generate shared objects directly from archives.
12525whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12526
12527# Compiler flag to generate thread-safe objects.
12528thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12529
12530# Library versioning type.
12531version_type=$version_type
12532
12533# Format of library name prefix.
12534libname_spec=$lt_libname_spec
12535
12536# List of archive names. First name is the real one, the rest are links.
12537# The last name is the one that the linker finds with -lNAME.
12538library_names_spec=$lt_library_names_spec
12539
12540# The coded name of the library, if different from the real name.
12541soname_spec=$lt_soname_spec
12542
12543# Commands used to build and install an old-style archive.
12544RANLIB=$lt_RANLIB
12545old_archive_cmds=$lt_old_archive_cmds_CXX
12546old_postinstall_cmds=$lt_old_postinstall_cmds
12547old_postuninstall_cmds=$lt_old_postuninstall_cmds
12548
12549# Create an old-style archive from a shared archive.
12550old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12551
12552# Create a temporary old-style archive to link instead of a shared archive.
12553old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12554
12555# Commands used to build and install a shared archive.
12556archive_cmds=$lt_archive_cmds_CXX
12557archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12558postinstall_cmds=$lt_postinstall_cmds
12559postuninstall_cmds=$lt_postuninstall_cmds
12560
12561# Commands used to build a loadable module (assumed same as above if empty)
12562module_cmds=$lt_module_cmds_CXX
12563module_expsym_cmds=$lt_module_expsym_cmds_CXX
12564
12565# Commands to strip libraries.
12566old_striplib=$lt_old_striplib
12567striplib=$lt_striplib
12568
12569# Dependencies to place before the objects being linked to create a
12570# shared library.
12571predep_objects=$lt_predep_objects_CXX
12572
12573# Dependencies to place after the objects being linked to create a
12574# shared library.
12575postdep_objects=$lt_postdep_objects_CXX
12576
12577# Dependencies to place before the objects being linked to create a
12578# shared library.
12579predeps=$lt_predeps_CXX
12580
12581# Dependencies to place after the objects being linked to create a
12582# shared library.
12583postdeps=$lt_postdeps_CXX
12584
12585# The library search path used internally by the compiler when linking
12586# a shared library.
12587compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12588
12589# Method to check whether dependent libraries are shared objects.
12590deplibs_check_method=$lt_deplibs_check_method
12591
12592# Command to use when deplibs_check_method == file_magic.
12593file_magic_cmd=$lt_file_magic_cmd
12594
12595# Flag that allows shared libraries with undefined symbols to be built.
12596allow_undefined_flag=$lt_allow_undefined_flag_CXX
12597
12598# Flag that forces no undefined symbols.
12599no_undefined_flag=$lt_no_undefined_flag_CXX
12600
12601# Commands used to finish a libtool library installation in a directory.
12602finish_cmds=$lt_finish_cmds
12603
12604# Same as above, but a single script fragment to be evaled but not shown.
12605finish_eval=$lt_finish_eval
12606
12607# Take the output of nm and produce a listing of raw symbols and C names.
12608global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12609
12610# Transform the output of nm in a proper C declaration
12611global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12612
12613# Transform the output of nm in a C name address pair
12614global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12615
12616# This is the shared library runtime path variable.
12617runpath_var=$runpath_var
12618
12619# This is the shared library path variable.
12620shlibpath_var=$shlibpath_var
12621
12622# Is shlibpath searched before the hard-coded library search path?
12623shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12624
12625# How to hardcode a shared library path into an executable.
12626hardcode_action=$hardcode_action_CXX
12627
12628# Whether we should hardcode library paths into libraries.
12629hardcode_into_libs=$hardcode_into_libs
12630
12631# Flag to hardcode \$libdir into a binary during linking.
12632# This must work even if \$libdir does not exist.
12633hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12634
12635# If ld is used when linking, flag to hardcode \$libdir into
12636# a binary during linking. This must work even if \$libdir does
12637# not exist.
12638hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12639
12640# Whether we need a single -rpath flag with a separated argument.
12641hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12642
12643# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12644# resulting binary.
12645hardcode_direct=$hardcode_direct_CXX
12646
12647# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12648# resulting binary.
12649hardcode_minus_L=$hardcode_minus_L_CXX
12650
12651# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12652# the resulting binary.
12653hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12654
12655# Set to yes if building a shared library automatically hardcodes DIR into the library
12656# and all subsequent libraries and executables linked against it.
12657hardcode_automatic=$hardcode_automatic_CXX
12658
12659# Variables whose values should be saved in libtool wrapper scripts and
12660# restored at relink time.
12661variables_saved_for_relink="$variables_saved_for_relink"
12662
12663# Whether libtool must link a program against all its dependency libraries.
12664link_all_deplibs=$link_all_deplibs_CXX
12665
12666# Compile-time system search path for libraries
12667sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12668
12669# Run-time system search path for libraries
12670sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12671
12672# Fix the shell variable \$srcfile for the compiler.
12673fix_srcfile_path="$fix_srcfile_path_CXX"
12674
12675# Set to yes if exported symbols are required.
12676always_export_symbols=$always_export_symbols_CXX
12677
12678# The commands to list exported symbols.
12679export_symbols_cmds=$lt_export_symbols_cmds_CXX
12680
12681# The commands to extract the exported symbol list from a shared archive.
12682extract_expsyms_cmds=$lt_extract_expsyms_cmds
12683
12684# Symbols that should not be listed in the preloaded symbols.
12685exclude_expsyms=$lt_exclude_expsyms_CXX
12686
12687# Symbols that must always be exported.
12688include_expsyms=$lt_include_expsyms_CXX
12689
12690# ### END LIBTOOL TAG CONFIG: $tagname
12691
12692__EOF__
12693
12694
12695else
12696 # If there is no Makefile yet, we rely on a make rule to execute
12697 # `config.status --recheck' to rerun these tests and create the
12698 # libtool script then.
12699 test -f Makefile && make "$ltmain"
12700fi
12701
12702
12703ac_ext=c
12704ac_cpp='$CPP $CPPFLAGS'
12705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12707ac_compiler_gnu=$ac_cv_c_compiler_gnu
12708
12709CC=$lt_save_CC
12710LDCXX=$LD
12711LD=$lt_save_LD
12712GCC=$lt_save_GCC
12713with_gnu_ldcxx=$with_gnu_ld
12714with_gnu_ld=$lt_save_with_gnu_ld
12715lt_cv_path_LDCXX=$lt_cv_path_LD
12716lt_cv_path_LD=$lt_save_path_LD
12717lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12718lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12719
12720 else
12721 tagname=""
12722 fi
12723 ;;
12724
12725 F77)
12726 if test -n "$F77" && test "X$F77" != "Xno"; then
12727
12728ac_ext=f
12729ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12730ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12731ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12732
12733
12734archive_cmds_need_lc_F77=no
12735allow_undefined_flag_F77=
12736always_export_symbols_F77=no
12737archive_expsym_cmds_F77=
12738export_dynamic_flag_spec_F77=
12739hardcode_direct_F77=no
12740hardcode_libdir_flag_spec_F77=
12741hardcode_libdir_flag_spec_ld_F77=
12742hardcode_libdir_separator_F77=
12743hardcode_minus_L_F77=no
12744hardcode_automatic_F77=no
12745module_cmds_F77=
12746module_expsym_cmds_F77=
12747link_all_deplibs_F77=unknown
12748old_archive_cmds_F77=$old_archive_cmds
12749no_undefined_flag_F77=
12750whole_archive_flag_spec_F77=
12751enable_shared_with_static_runtimes_F77=no
12752
12753# Source file extension for f77 test sources.
12754ac_ext=f
12755
12756# Object file extension for compiled f77 test sources.
12757objext=o
12758objext_F77=$objext
12759
12760# Code to be used in simple compile tests
12761lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12762
12763# Code to be used in simple link tests
12764lt_simple_link_test_code=" program t\n end\n"
12765
12766# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12767
12768# If no C compiler was specified, use CC.
12769LTCC=${LTCC-"$CC"}
12770
12771# Allow CC to be a program name with arguments.
12772compiler=$CC
12773
12774
12775# Allow CC to be a program name with arguments.
12776lt_save_CC="$CC"
12777CC=${F77-"f77"}
12778compiler=$CC
12779compiler_F77=$CC
12780cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12781
12782echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12783echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12784echo "$as_me:$LINENO: result: $can_build_shared" >&5
12785echo "${ECHO_T}$can_build_shared" >&6
12786
12787echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12788echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12789test "$can_build_shared" = "no" && enable_shared=no
12790
12791# On AIX, shared libraries and static libraries use the same namespace, and
12792# are all built from PIC.
12793case "$host_os" in
12794aix3*)
12795 test "$enable_shared" = yes && enable_static=no
12796 if test -n "$RANLIB"; then
12797 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12798 postinstall_cmds='$RANLIB $lib'
12799 fi
12800 ;;
12801aix4*)
12802 test "$enable_shared" = yes && enable_static=no
12803 ;;
12804esac
12805echo "$as_me:$LINENO: result: $enable_shared" >&5
12806echo "${ECHO_T}$enable_shared" >&6
12807
12808echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12809echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12810# Make sure either enable_shared or enable_static is yes.
12811test "$enable_shared" = yes || enable_static=yes
12812echo "$as_me:$LINENO: result: $enable_static" >&5
12813echo "${ECHO_T}$enable_static" >&6
12814
12815test "$ld_shlibs_F77" = no && can_build_shared=no
12816
12817GCC_F77="$G77"
12818LD_F77="$LD"
12819
12820lt_prog_compiler_wl_F77=
12821lt_prog_compiler_pic_F77=
12822lt_prog_compiler_static_F77=
12823
12824echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12825echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12826
12827 if test "$GCC" = yes; then
12828 lt_prog_compiler_wl_F77='-Wl,'
12829 lt_prog_compiler_static_F77='-static'
12830
12831 case $host_os in
12832 aix*)
12833 # All AIX code is PIC.
12834 if test "$host_cpu" = ia64; then
12835 # AIX 5 now supports IA64 processor
12836 lt_prog_compiler_static_F77='-Bstatic'
12837 fi
12838 ;;
12839
12840 amigaos*)
12841 # FIXME: we need at least 68020 code to build shared libraries, but
12842 # adding the `-m68020' flag to GCC prevents building anything better,
12843 # like `-m68040'.
12844 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12845 ;;
12846
12847 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12848 # PIC is the default for these OSes.
12849 ;;
12850
12851 mingw* | pw32* | os2*)
12852 # This hack is so that the source file can tell whether it is being
12853 # built for inclusion in a dll (and should export symbols for example).
12854 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12855 ;;
12856
12857 darwin* | rhapsody*)
12858 # PIC is the default on this platform
12859 # Common symbols not allowed in MH_DYLIB files
12860 lt_prog_compiler_pic_F77='-fno-common'
12861 ;;
12862
12863 msdosdjgpp*)
12864 # Just because we use GCC doesn't mean we suddenly get shared libraries
12865 # on systems that don't support them.
12866 lt_prog_compiler_can_build_shared_F77=no
12867 enable_shared=no
12868 ;;
12869
12870 sysv4*MP*)
12871 if test -d /usr/nec; then
12872 lt_prog_compiler_pic_F77=-Kconform_pic
12873 fi
12874 ;;
12875
12876 hpux*)
12877 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12878 # not for PA HP-UX.
12879 case "$host_cpu" in
12880 hppa*64*|ia64*)
12881 # +Z the default
12882 ;;
12883 *)
12884 lt_prog_compiler_pic_F77='-fPIC'
12885 ;;
12886 esac
12887 ;;
12888
12889 *)
12890 lt_prog_compiler_pic_F77='-fPIC'
12891 ;;
12892 esac
12893 else
12894 # PORTME Check for flag to pass linker flags through the system compiler.
12895 case $host_os in
12896 aix*)
12897 lt_prog_compiler_wl_F77='-Wl,'
12898 if test "$host_cpu" = ia64; then
12899 # AIX 5 now supports IA64 processor
12900 lt_prog_compiler_static_F77='-Bstatic'
12901 else
12902 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12903 fi
12904 ;;
12905
12906 mingw* | pw32* | os2*)
12907 # This hack is so that the source file can tell whether it is being
12908 # built for inclusion in a dll (and should export symbols for example).
12909 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12910 ;;
12911
12912 hpux9* | hpux10* | hpux11*)
12913 lt_prog_compiler_wl_F77='-Wl,'
12914 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12915 # not for PA HP-UX.
12916 case "$host_cpu" in
12917 hppa*64*|ia64*)
12918 # +Z the default
12919 ;;
12920 *)
12921 lt_prog_compiler_pic_F77='+Z'
12922 ;;
12923 esac
12924 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12925 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12926 ;;
12927
12928 irix5* | irix6* | nonstopux*)
12929 lt_prog_compiler_wl_F77='-Wl,'
12930 # PIC (with -KPIC) is the default.
12931 lt_prog_compiler_static_F77='-non_shared'
12932 ;;
12933
12934 newsos6)
12935 lt_prog_compiler_pic_F77='-KPIC'
12936 lt_prog_compiler_static_F77='-Bstatic'
12937 ;;
12938
12939 linux*)
12940 case $CC in
12941 icc|ecc)
12942 lt_prog_compiler_wl_F77='-Wl,'
12943 lt_prog_compiler_pic_F77='-KPIC'
12944 lt_prog_compiler_static_F77='-static'
12945 ;;
12946 ccc)
12947 lt_prog_compiler_wl_F77='-Wl,'
12948 # All Alpha code is PIC.
12949 lt_prog_compiler_static_F77='-non_shared'
12950 ;;
12951 esac
12952 ;;
12953
12954 osf3* | osf4* | osf5*)
12955 lt_prog_compiler_wl_F77='-Wl,'
12956 # All OSF/1 code is PIC.
12957 lt_prog_compiler_static_F77='-non_shared'
12958 ;;
12959
12960 sco3.2v5*)
12961 lt_prog_compiler_pic_F77='-Kpic'
12962 lt_prog_compiler_static_F77='-dn'
12963 ;;
12964
12965 solaris*)
12966 lt_prog_compiler_wl_F77='-Wl,'
12967 lt_prog_compiler_pic_F77='-KPIC'
12968 lt_prog_compiler_static_F77='-Bstatic'
12969 ;;
12970
12971 sunos4*)
12972 lt_prog_compiler_wl_F77='-Qoption ld '
12973 lt_prog_compiler_pic_F77='-PIC'
12974 lt_prog_compiler_static_F77='-Bstatic'
12975 ;;
12976
12977 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12978 lt_prog_compiler_wl_F77='-Wl,'
12979 lt_prog_compiler_pic_F77='-KPIC'
12980 lt_prog_compiler_static_F77='-Bstatic'
12981 ;;
12982
12983 sysv4*MP*)
12984 if test -d /usr/nec ;then
12985 lt_prog_compiler_pic_F77='-Kconform_pic'
12986 lt_prog_compiler_static_F77='-Bstatic'
12987 fi
12988 ;;
12989
12990 uts4*)
12991 lt_prog_compiler_pic_F77='-pic'
12992 lt_prog_compiler_static_F77='-Bstatic'
12993 ;;
12994
12995 *)
12996 lt_prog_compiler_can_build_shared_F77=no
12997 ;;
12998 esac
12999 fi
13000
13001echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13002echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13003
13004#
13005# Check to make sure the PIC flag actually works.
13006#
13007if test -n "$lt_prog_compiler_pic_F77"; then
13008 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13009echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13010if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13011 echo $ECHO_N "(cached) $ECHO_C" >&6
13012else
13013 lt_prog_compiler_pic_works_F77=no
13014 ac_outfile=conftest.$ac_objext
13015 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13016 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13017 # Insert the option either (1) after the last *FLAGS variable, or
13018 # (2) before a word containing "conftest.", or (3) at the end.
13019 # Note that $ac_compile itself does not contain backslashes and begins
13020 # with a dollar sign (not a hyphen), so the echo should work correctly.
13021 # The option is referenced via a variable to avoid confusing sed.
13022 lt_compile=`echo "$ac_compile" | $SED \
13023 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13025 -e 's:$: $lt_compiler_flag:'`
John Criswell7ec78aa2003-10-16 01:49:00 +000013026 (eval echo "\"\$as_me:13026: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013027 (eval "$lt_compile" 2>conftest.err)
13028 ac_status=$?
13029 cat conftest.err >&5
John Criswell7ec78aa2003-10-16 01:49:00 +000013030 echo "$as_me:13030: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013031 if (exit $ac_status) && test -s "$ac_outfile"; then
13032 # The compiler can only warn and ignore the option if not recognized
13033 # So say no if there are warnings
13034 if test ! -s conftest.err; then
13035 lt_prog_compiler_pic_works_F77=yes
13036 fi
13037 fi
13038 $rm conftest*
13039
13040fi
13041echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13042echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13043
13044if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13045 case $lt_prog_compiler_pic_F77 in
13046 "" | " "*) ;;
13047 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13048 esac
13049else
13050 lt_prog_compiler_pic_F77=
13051 lt_prog_compiler_can_build_shared_F77=no
13052fi
13053
13054fi
13055case "$host_os" in
13056 # For platforms which do not support PIC, -DPIC is meaningless:
13057 *djgpp*)
13058 lt_prog_compiler_pic_F77=
13059 ;;
13060 *)
13061 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13062 ;;
13063esac
13064
13065echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13066echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13067if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13069else
13070 lt_cv_prog_compiler_c_o_F77=no
13071 $rm -r conftest 2>/dev/null
13072 mkdir conftest
13073 cd conftest
13074 mkdir out
13075 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13076
13077 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13078 # that will create temporary files in the current directory regardless of
13079 # the output directory. Thus, making CWD read-only will cause this test
13080 # to fail, enabling locking or at least warning the user not to do parallel
13081 # builds.
13082 chmod -w .
13083
13084 lt_compiler_flag="-o out/conftest2.$ac_objext"
13085 # Insert the option either (1) after the last *FLAGS variable, or
13086 # (2) before a word containing "conftest.", or (3) at the end.
13087 # Note that $ac_compile itself does not contain backslashes and begins
13088 # with a dollar sign (not a hyphen), so the echo should work correctly.
13089 lt_compile=`echo "$ac_compile" | $SED \
13090 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13092 -e 's:$: $lt_compiler_flag:'`
John Criswell7ec78aa2003-10-16 01:49:00 +000013093 (eval echo "\"\$as_me:13093: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013094 (eval "$lt_compile" 2>out/conftest.err)
13095 ac_status=$?
13096 cat out/conftest.err >&5
John Criswell7ec78aa2003-10-16 01:49:00 +000013097 echo "$as_me:13097: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013098 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13099 then
13100 # The compiler can only warn and ignore the option if not recognized
13101 # So say no if there are warnings
13102 if test ! -s out/conftest.err; then
13103 lt_cv_prog_compiler_c_o_F77=yes
13104 fi
13105 fi
13106 chmod u+w .
13107 $rm conftest* out/*
13108 rmdir out
13109 cd ..
13110 rmdir conftest
13111 $rm conftest*
13112
13113fi
13114echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13115echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13116
13117
13118hard_links="nottested"
13119if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13120 # do not overwrite the value of need_locks provided by the user
13121 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13122echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13123 hard_links=yes
13124 $rm conftest*
13125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13126 touch conftest.a
13127 ln conftest.a conftest.b 2>&5 || hard_links=no
13128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13129 echo "$as_me:$LINENO: result: $hard_links" >&5
13130echo "${ECHO_T}$hard_links" >&6
13131 if test "$hard_links" = no; then
13132 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13133echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13134 need_locks=warn
13135 fi
13136else
13137 need_locks=no
13138fi
13139
13140echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13141echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13142
13143 runpath_var=
13144 allow_undefined_flag_F77=
13145 enable_shared_with_static_runtimes_F77=no
13146 archive_cmds_F77=
13147 archive_expsym_cmds_F77=
13148 old_archive_From_new_cmds_F77=
13149 old_archive_from_expsyms_cmds_F77=
13150 export_dynamic_flag_spec_F77=
13151 whole_archive_flag_spec_F77=
13152 thread_safe_flag_spec_F77=
13153 hardcode_libdir_flag_spec_F77=
13154 hardcode_libdir_flag_spec_ld_F77=
13155 hardcode_libdir_separator_F77=
13156 hardcode_direct_F77=no
13157 hardcode_minus_L_F77=no
13158 hardcode_shlibpath_var_F77=unsupported
13159 link_all_deplibs_F77=unknown
13160 hardcode_automatic_F77=no
13161 module_cmds_F77=
13162 module_expsym_cmds_F77=
13163 always_export_symbols_F77=no
13164 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13165 # include_expsyms should be a list of space-separated symbols to be *always*
13166 # included in the symbol list
13167 include_expsyms_F77=
13168 # exclude_expsyms can be an extended regexp of symbols to exclude
13169 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13170 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13171 # as well as any symbol that contains `d'.
13172 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13173 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13174 # platforms (ab)use it in PIC code, but their linkers get confused if
13175 # the symbol is explicitly referenced. Since portable code cannot
13176 # rely on this symbol name, it's probably fine to never include it in
13177 # preloaded symbol tables.
13178 extract_expsyms_cmds=
13179
13180 case $host_os in
13181 cygwin* | mingw* | pw32*)
13182 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13183 # When not using gcc, we currently assume that we are using
13184 # Microsoft Visual C++.
13185 if test "$GCC" != yes; then
13186 with_gnu_ld=no
13187 fi
13188 ;;
13189 openbsd*)
13190 with_gnu_ld=no
13191 ;;
13192 esac
13193
13194 ld_shlibs_F77=yes
13195 if test "$with_gnu_ld" = yes; then
13196 # If archive_cmds runs LD, not CC, wlarc should be empty
13197 wlarc='${wl}'
13198
13199 # See if GNU ld supports shared libraries.
13200 case $host_os in
13201 aix3* | aix4* | aix5*)
13202 # On AIX/PPC, the GNU linker is very broken
13203 if test "$host_cpu" != ia64; then
13204 ld_shlibs_F77=no
13205 cat <<EOF 1>&2
13206
13207*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13208*** to be unable to reliably create shared libraries on AIX.
13209*** Therefore, libtool is disabling shared libraries support. If you
13210*** really care for shared libraries, you may want to modify your PATH
13211*** so that a non-GNU linker is found, and then restart.
13212
13213EOF
13214 fi
13215 ;;
13216
13217 amigaos*)
13218 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13219 hardcode_libdir_flag_spec_F77='-L$libdir'
13220 hardcode_minus_L_F77=yes
13221
13222 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13223 # that the semantics of dynamic libraries on AmigaOS, at least up
13224 # to version 4, is to share data among multiple programs linked
13225 # with the same dynamic library. Since this doesn't match the
13226 # behavior of shared libraries on other platforms, we can't use
13227 # them.
13228 ld_shlibs_F77=no
13229 ;;
13230
13231 beos*)
13232 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13233 allow_undefined_flag_F77=unsupported
13234 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13235 # support --undefined. This deserves some investigation. FIXME
13236 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13237 else
13238 ld_shlibs_F77=no
13239 fi
13240 ;;
13241
13242 cygwin* | mingw* | pw32*)
13243 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13244 # as there is no search path for DLLs.
13245 hardcode_libdir_flag_spec_F77='-L$libdir'
13246 allow_undefined_flag_F77=unsupported
13247 always_export_symbols_F77=no
13248 enable_shared_with_static_runtimes_F77=yes
13249 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13250
13251 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13252 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13253 # If the export-symbols file already is a .def file (1st line
13254 # is EXPORTS), use it as is; otherwise, prepend...
13255 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13256 cp $export_symbols $output_objdir/$soname.def;
13257 else
13258 echo EXPORTS > $output_objdir/$soname.def;
13259 cat $export_symbols >> $output_objdir/$soname.def;
13260 fi~
13261 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13262 else
13263 ld_shlibs=no
13264 fi
13265 ;;
13266
13267 netbsd*)
13268 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13269 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13270 wlarc=
13271 else
13272 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13273 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13274 fi
13275 ;;
13276
13277 solaris* | sysv5*)
13278 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13279 ld_shlibs_F77=no
13280 cat <<EOF 1>&2
13281
13282*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13283*** create shared libraries on Solaris systems. Therefore, libtool
13284*** is disabling shared libraries support. We urge you to upgrade GNU
13285*** binutils to release 2.9.1 or newer. Another option is to modify
13286*** your PATH or compiler configuration so that the native linker is
13287*** used, and then restart.
13288
13289EOF
13290 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13291 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13292 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13293 else
13294 ld_shlibs_F77=no
13295 fi
13296 ;;
13297
13298 sunos4*)
13299 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13300 wlarc=
13301 hardcode_direct_F77=yes
13302 hardcode_shlibpath_var_F77=no
13303 ;;
13304
13305 *)
13306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13307 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13308 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13309 else
13310 ld_shlibs_F77=no
13311 fi
13312 ;;
13313 esac
13314
13315 if test "$ld_shlibs_F77" = yes; then
13316 runpath_var=LD_RUN_PATH
13317 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13318 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13319 # ancient GNU ld didn't support --whole-archive et. al.
13320 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13321 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13322 else
13323 whole_archive_flag_spec_F77=
13324 fi
13325 fi
13326 else
13327 # PORTME fill in a description of your system's linker (not GNU ld)
13328 case $host_os in
13329 aix3*)
13330 allow_undefined_flag_F77=unsupported
13331 always_export_symbols_F77=yes
13332 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13333 # Note: this linker hardcodes the directories in LIBPATH if there
13334 # are no directories specified by -L.
13335 hardcode_minus_L_F77=yes
13336 if test "$GCC" = yes && test -z "$link_static_flag"; then
13337 # Neither direct hardcoding nor static linking is supported with a
13338 # broken collect2.
13339 hardcode_direct_F77=unsupported
13340 fi
13341 ;;
13342
13343 aix4* | aix5*)
13344 if test "$host_cpu" = ia64; then
13345 # On IA64, the linker does run time linking by default, so we don't
13346 # have to do anything special.
13347 aix_use_runtimelinking=no
13348 exp_sym_flag='-Bexport'
13349 no_entry_flag=""
13350 else
13351 # If we're using GNU nm, then we don't want the "-C" option.
13352 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13353 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13354 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13355 else
13356 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13357 fi
13358 aix_use_runtimelinking=no
13359
13360 # Test if we are trying to use run time linking or normal
13361 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13362 # need to do runtime linking.
13363 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13364 for ld_flag in $LDFLAGS; do
13365 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13366 aix_use_runtimelinking=yes
13367 break
13368 fi
13369 done
13370 esac
13371
13372 exp_sym_flag='-bexport'
13373 no_entry_flag='-bnoentry'
13374 fi
13375
13376 # When large executables or shared objects are built, AIX ld can
13377 # have problems creating the table of contents. If linking a library
13378 # or program results in "error TOC overflow" add -mminimal-toc to
13379 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13380 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13381
13382 archive_cmds_F77=''
13383 hardcode_direct_F77=yes
13384 hardcode_libdir_separator_F77=':'
13385 link_all_deplibs_F77=yes
13386
13387 if test "$GCC" = yes; then
13388 case $host_os in aix4.012|aix4.012.*)
13389 # We only want to do this on AIX 4.2 and lower, the check
13390 # below for broken collect2 doesn't work under 4.3+
13391 collect2name=`${CC} -print-prog-name=collect2`
13392 if test -f "$collect2name" && \
13393 strings "$collect2name" | grep resolve_lib_name >/dev/null
13394 then
13395 # We have reworked collect2
13396 hardcode_direct_F77=yes
13397 else
13398 # We have old collect2
13399 hardcode_direct_F77=unsupported
13400 # It fails to find uninstalled libraries when the uninstalled
13401 # path is not listed in the libpath. Setting hardcode_minus_L
13402 # to unsupported forces relinking
13403 hardcode_minus_L_F77=yes
13404 hardcode_libdir_flag_spec_F77='-L$libdir'
13405 hardcode_libdir_separator_F77=
13406 fi
13407 esac
13408 shared_flag='-shared'
13409 else
13410 # not using gcc
13411 if test "$host_cpu" = ia64; then
13412 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13413 # chokes on -Wl,-G. The following line is correct:
13414 shared_flag='-G'
13415 else
13416 if test "$aix_use_runtimelinking" = yes; then
13417 shared_flag='${wl}-G'
13418 else
13419 shared_flag='${wl}-bM:SRE'
13420 fi
13421 fi
13422 fi
13423
13424 # It seems that -bexpall does not export symbols beginning with
13425 # underscore (_), so it is better to generate a list of symbols to export.
13426 always_export_symbols_F77=yes
13427 if test "$aix_use_runtimelinking" = yes; then
13428 # Warning - without using the other runtime loading flags (-brtl),
13429 # -berok will link without error, but may produce a broken library.
13430 allow_undefined_flag_F77='-berok'
13431 # Determine the default libpath from the value encoded in an empty executable.
13432 cat >conftest.$ac_ext <<_ACEOF
13433 program main
13434
13435 end
13436_ACEOF
13437rm -f conftest.$ac_objext conftest$ac_exeext
13438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13439 (eval $ac_link) 2>&5
13440 ac_status=$?
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try='test -s conftest$ac_exeext'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13446 ac_status=$?
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13449
13450aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13451}'`
13452# Check for a 64-bit object if we didn't find anything.
13453if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13454}'`; fi
13455else
13456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013457sed 's/^/| /' conftest.$ac_ext >&5
13458
John Criswell47fdd832003-07-14 16:52:07 +000013459fi
13460rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13461if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13462
13463 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13464 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13465 else
13466 if test "$host_cpu" = ia64; then
13467 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13468 allow_undefined_flag_F77="-z nodefs"
13469 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13470 else
13471 # Determine the default libpath from the value encoded in an empty executable.
13472 cat >conftest.$ac_ext <<_ACEOF
13473 program main
13474
13475 end
13476_ACEOF
13477rm -f conftest.$ac_objext conftest$ac_exeext
13478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13479 (eval $ac_link) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -s conftest$ac_exeext'
13484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13486 ac_status=$?
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
13489
13490aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13491}'`
13492# Check for a 64-bit object if we didn't find anything.
13493if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13494}'`; fi
13495else
13496 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013497sed 's/^/| /' conftest.$ac_ext >&5
13498
John Criswell47fdd832003-07-14 16:52:07 +000013499fi
13500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13501if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13502
13503 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13504 # Warning - without using the other run time loading flags,
13505 # -berok will link without error, but may produce a broken library.
13506 no_undefined_flag_F77=' ${wl}-bernotok'
13507 allow_undefined_flag_F77=' ${wl}-berok'
13508 # -bexpall does not export symbols beginning with underscore (_)
13509 always_export_symbols_F77=yes
13510 # Exported symbols can be pulled into shared objects from archives
13511 whole_archive_flag_spec_F77=' '
13512 archive_cmds_need_lc_F77=yes
13513 # This is similar to how AIX traditionally builds it's shared libraries.
13514 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13515 fi
13516 fi
13517 ;;
13518
13519 amigaos*)
13520 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13521 hardcode_libdir_flag_spec_F77='-L$libdir'
13522 hardcode_minus_L_F77=yes
13523 # see comment about different semantics on the GNU ld section
13524 ld_shlibs_F77=no
13525 ;;
13526
13527 bsdi4*)
13528 export_dynamic_flag_spec_F77=-rdynamic
13529 ;;
13530
13531 cygwin* | mingw* | pw32*)
13532 # When not using gcc, we currently assume that we are using
13533 # Microsoft Visual C++.
13534 # hardcode_libdir_flag_spec is actually meaningless, as there is
13535 # no search path for DLLs.
13536 hardcode_libdir_flag_spec_F77=' '
13537 allow_undefined_flag_F77=unsupported
13538 # Tell ltmain to make .lib files, not .a files.
13539 libext=lib
13540 # Tell ltmain to make .dll files, not .so files.
13541 shrext=".dll"
13542 # FIXME: Setting linknames here is a bad hack.
13543 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13544 # The linker will automatically build a .lib file if we build a DLL.
13545 old_archive_From_new_cmds_F77='true'
13546 # FIXME: Should let the user specify the lib program.
13547 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13548 fix_srcfile_path='`cygpath -w "$srcfile"`'
13549 enable_shared_with_static_runtimes_F77=yes
13550 ;;
13551
13552 darwin* | rhapsody*)
13553 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13554 archive_cmds_need_lc_F77=no
13555 case "$host_os" in
13556 rhapsody* | darwin1.[012])
13557 allow_undefined_flag_F77='-undefined suppress'
13558 ;;
13559 *) # Darwin 1.3 on
13560 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13561 ;;
13562 esac
13563 # FIXME: Relying on posixy $() will cause problems for
13564 # cross-compilation, but unfortunately the echo tests do not
13565 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13566 # `"' quotes if we put them in here... so don't!
13567 lt_int_apple_cc_single_mod=no
13568 output_verbose_link_cmd='echo'
13569 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13570 lt_int_apple_cc_single_mod=yes
13571 fi
13572 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13573 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13574 else
13575 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13576 fi
13577 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13578 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13579 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13580 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13581 else
13582 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13583 fi
13584 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13585 hardcode_direct_F77=no
13586 hardcode_automatic_F77=yes
13587 hardcode_shlibpath_var_F77=unsupported
13588 whole_archive_flag_spec_F77='-all_load $convenience'
13589 link_all_deplibs_F77=yes
13590 fi
13591 ;;
13592
13593 dgux*)
13594 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13595 hardcode_libdir_flag_spec_F77='-L$libdir'
13596 hardcode_shlibpath_var_F77=no
13597 ;;
13598
13599 freebsd1*)
13600 ld_shlibs_F77=no
13601 ;;
13602
13603 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13604 # support. Future versions do this automatically, but an explicit c++rt0.o
13605 # does not break anything, and helps significantly (at the cost of a little
13606 # extra space).
13607 freebsd2.2*)
13608 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13609 hardcode_libdir_flag_spec_F77='-R$libdir'
13610 hardcode_direct_F77=yes
13611 hardcode_shlibpath_var_F77=no
13612 ;;
13613
13614 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13615 freebsd2*)
13616 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13617 hardcode_direct_F77=yes
13618 hardcode_minus_L_F77=yes
13619 hardcode_shlibpath_var_F77=no
13620 ;;
13621
13622 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13623 freebsd*)
13624 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13625 hardcode_libdir_flag_spec_F77='-R$libdir'
13626 hardcode_direct_F77=yes
13627 hardcode_shlibpath_var_F77=no
13628 ;;
13629
13630 hpux9*)
13631 if test "$GCC" = yes; then
13632 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13633 else
13634 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13635 fi
13636 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13637 hardcode_libdir_separator_F77=:
13638 hardcode_direct_F77=yes
13639
13640 # hardcode_minus_L: Not really in the search PATH,
13641 # but as the default location of the library.
13642 hardcode_minus_L_F77=yes
13643 export_dynamic_flag_spec_F77='${wl}-E'
13644 ;;
13645
13646 hpux10* | hpux11*)
13647 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13648 case "$host_cpu" in
13649 hppa*64*|ia64*)
13650 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13651 ;;
13652 *)
13653 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13654 ;;
13655 esac
13656 else
13657 case "$host_cpu" in
13658 hppa*64*|ia64*)
13659 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13660 ;;
13661 *)
13662 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13663 ;;
13664 esac
13665 fi
13666 if test "$with_gnu_ld" = no; then
13667 case "$host_cpu" in
13668 hppa*64*)
13669 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13670 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13671 hardcode_libdir_separator_F77=:
13672 hardcode_direct_F77=no
13673 hardcode_shlibpath_var_F77=no
13674 ;;
13675 ia64*)
13676 hardcode_libdir_flag_spec_F77='-L$libdir'
13677 hardcode_direct_F77=no
13678 hardcode_shlibpath_var_F77=no
13679
13680 # hardcode_minus_L: Not really in the search PATH,
13681 # but as the default location of the library.
13682 hardcode_minus_L_F77=yes
13683 ;;
13684 *)
13685 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13686 hardcode_libdir_separator_F77=:
13687 hardcode_direct_F77=yes
13688 export_dynamic_flag_spec_F77='${wl}-E'
13689
13690 # hardcode_minus_L: Not really in the search PATH,
13691 # but as the default location of the library.
13692 hardcode_minus_L_F77=yes
13693 ;;
13694 esac
13695 fi
13696 ;;
13697
13698 irix5* | irix6* | nonstopux*)
13699 if test "$GCC" = yes; then
13700 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13701 else
13702 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13703 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13704 fi
13705 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13706 hardcode_libdir_separator_F77=:
13707 link_all_deplibs_F77=yes
13708 ;;
13709
13710 netbsd*)
13711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13712 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13713 else
13714 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13715 fi
13716 hardcode_libdir_flag_spec_F77='-R$libdir'
13717 hardcode_direct_F77=yes
13718 hardcode_shlibpath_var_F77=no
13719 ;;
13720
13721 newsos6)
13722 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13723 hardcode_direct_F77=yes
13724 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13725 hardcode_libdir_separator_F77=:
13726 hardcode_shlibpath_var_F77=no
13727 ;;
13728
13729 openbsd*)
13730 hardcode_direct_F77=yes
13731 hardcode_shlibpath_var_F77=no
13732 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13733 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13734 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13735 export_dynamic_flag_spec_F77='${wl}-E'
13736 else
13737 case $host_os in
13738 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13739 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13740 hardcode_libdir_flag_spec_F77='-R$libdir'
13741 ;;
13742 *)
13743 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13744 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13745 ;;
13746 esac
13747 fi
13748 ;;
13749
13750 os2*)
13751 hardcode_libdir_flag_spec_F77='-L$libdir'
13752 hardcode_minus_L_F77=yes
13753 allow_undefined_flag_F77=unsupported
13754 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13755 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13756 ;;
13757
13758 osf3*)
13759 if test "$GCC" = yes; then
13760 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13761 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13762 else
13763 allow_undefined_flag_F77=' -expect_unresolved \*'
13764 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13765 fi
13766 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13767 hardcode_libdir_separator_F77=:
13768 ;;
13769
13770 osf4* | osf5*) # as osf3* with the addition of -msym flag
13771 if test "$GCC" = yes; then
13772 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13773 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13774 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13775 else
13776 allow_undefined_flag_F77=' -expect_unresolved \*'
13777 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13778 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13779 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13780
13781 # Both c and cxx compiler support -rpath directly
13782 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13783 fi
13784 hardcode_libdir_separator_F77=:
13785 ;;
13786
13787 sco3.2v5*)
13788 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13789 hardcode_shlibpath_var_F77=no
13790 export_dynamic_flag_spec_F77='${wl}-Bexport'
13791 runpath_var=LD_RUN_PATH
13792 hardcode_runpath_var=yes
13793 ;;
13794
13795 solaris*)
13796 no_undefined_flag_F77=' -z text'
13797 if test "$GCC" = yes; then
13798 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13799 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13800 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13801 else
13802 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13803 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13804 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13805 fi
13806 hardcode_libdir_flag_spec_F77='-R$libdir'
13807 hardcode_shlibpath_var_F77=no
13808 case $host_os in
13809 solaris2.[0-5] | solaris2.[0-5].*) ;;
13810 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13811 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13812 esac
13813 link_all_deplibs_F77=yes
13814 ;;
13815
13816 sunos4*)
13817 if test "x$host_vendor" = xsequent; then
13818 # Use $CC to link under sequent, because it throws in some extra .o
13819 # files that make .init and .fini sections work.
13820 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13821 else
13822 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13823 fi
13824 hardcode_libdir_flag_spec_F77='-L$libdir'
13825 hardcode_direct_F77=yes
13826 hardcode_minus_L_F77=yes
13827 hardcode_shlibpath_var_F77=no
13828 ;;
13829
13830 sysv4)
13831 case $host_vendor in
13832 sni)
13833 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13834 hardcode_direct_F77=yes # is this really true???
13835 ;;
13836 siemens)
13837 ## LD is ld it makes a PLAMLIB
13838 ## CC just makes a GrossModule.
13839 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13840 reload_cmds_F77='$CC -r -o $output$reload_objs'
13841 hardcode_direct_F77=no
13842 ;;
13843 motorola)
13844 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13845 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13846 ;;
13847 esac
13848 runpath_var='LD_RUN_PATH'
13849 hardcode_shlibpath_var_F77=no
13850 ;;
13851
13852 sysv4.3*)
13853 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13854 hardcode_shlibpath_var_F77=no
13855 export_dynamic_flag_spec_F77='-Bexport'
13856 ;;
13857
13858 sysv4*MP*)
13859 if test -d /usr/nec; then
13860 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13861 hardcode_shlibpath_var_F77=no
13862 runpath_var=LD_RUN_PATH
13863 hardcode_runpath_var=yes
13864 ld_shlibs_F77=yes
13865 fi
13866 ;;
13867
13868 sysv4.2uw2*)
13869 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13870 hardcode_direct_F77=yes
13871 hardcode_minus_L_F77=no
13872 hardcode_shlibpath_var_F77=no
13873 hardcode_runpath_var=yes
13874 runpath_var=LD_RUN_PATH
13875 ;;
13876
13877 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13878 no_undefined_flag_F77='${wl}-z ${wl}text'
13879 if test "$GCC" = yes; then
13880 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13881 else
13882 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13883 fi
13884 runpath_var='LD_RUN_PATH'
13885 hardcode_shlibpath_var_F77=no
13886 ;;
13887
13888 sysv5*)
13889 no_undefined_flag_F77=' -z text'
13890 # $CC -shared without GNU ld will not create a library from C++
13891 # object files and a static libstdc++, better avoid it by now
13892 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13893 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13894 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13895 hardcode_libdir_flag_spec_F77=
13896 hardcode_shlibpath_var_F77=no
13897 runpath_var='LD_RUN_PATH'
13898 ;;
13899
13900 uts4*)
13901 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13902 hardcode_libdir_flag_spec_F77='-L$libdir'
13903 hardcode_shlibpath_var_F77=no
13904 ;;
13905
13906 *)
13907 ld_shlibs_F77=no
13908 ;;
13909 esac
13910 fi
13911
13912echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13913echo "${ECHO_T}$ld_shlibs_F77" >&6
13914test "$ld_shlibs_F77" = no && can_build_shared=no
13915
13916variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13917if test "$GCC" = yes; then
13918 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13919fi
13920
13921#
13922# Do we need to explicitly link libc?
13923#
13924case "x$archive_cmds_need_lc_F77" in
13925x|xyes)
13926 # Assume -lc should be added
13927 archive_cmds_need_lc_F77=yes
13928
13929 if test "$enable_shared" = yes && test "$GCC" = yes; then
13930 case $archive_cmds_F77 in
13931 *'~'*)
13932 # FIXME: we may have to deal with multi-command sequences.
13933 ;;
13934 '$CC '*)
13935 # Test whether the compiler implicitly links with -lc since on some
13936 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13937 # to ld, don't add -lc before -lgcc.
13938 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13939echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13940 $rm conftest*
13941 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13942
13943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13944 (eval $ac_compile) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } 2>conftest.err; then
13948 soname=conftest
13949 lib=conftest
13950 libobjs=conftest.$ac_objext
13951 deplibs=
13952 wl=$lt_prog_compiler_wl_F77
13953 compiler_flags=-v
13954 linker_flags=-v
13955 verstring=
13956 output_objdir=.
13957 libname=conftest
13958 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13959 allow_undefined_flag_F77=
13960 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13961 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }
13965 then
13966 archive_cmds_need_lc_F77=no
13967 else
13968 archive_cmds_need_lc_F77=yes
13969 fi
13970 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13971 else
13972 cat conftest.err 1>&5
13973 fi
13974 $rm conftest*
13975 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13976echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13977 ;;
13978 esac
13979 fi
13980 ;;
13981esac
13982
13983echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13984echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13985hardcode_action_F77=
13986if test -n "$hardcode_libdir_flag_spec_F77" || \
13987 test -n "$runpath_var F77" || \
13988 test "X$hardcode_automatic_F77"="Xyes" ; then
13989
13990 # We can hardcode non-existant directories.
13991 if test "$hardcode_direct_F77" != no &&
13992 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13993 # have to relink, otherwise we might link with an installed library
13994 # when we should be linking with a yet-to-be-installed one
13995 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13996 test "$hardcode_minus_L_F77" != no; then
13997 # Linking always hardcodes the temporary library directory.
13998 hardcode_action_F77=relink
13999 else
14000 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14001 hardcode_action_F77=immediate
14002 fi
14003else
14004 # We cannot hardcode anything, or else we can only hardcode existing
14005 # directories.
14006 hardcode_action_F77=unsupported
14007fi
14008echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14009echo "${ECHO_T}$hardcode_action_F77" >&6
14010
14011if test "$hardcode_action_F77" = relink; then
14012 # Fast installation is not supported
14013 enable_fast_install=no
14014elif test "$shlibpath_overrides_runpath" = yes ||
14015 test "$enable_shared" = no; then
14016 # Fast installation is not necessary
14017 enable_fast_install=needless
14018fi
14019
14020striplib=
14021old_striplib=
14022echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14023echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14024if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14025 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14026 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14027 echo "$as_me:$LINENO: result: yes" >&5
14028echo "${ECHO_T}yes" >&6
14029else
14030# FIXME - insert some real tests, host_os isn't really good enough
14031 case $host_os in
14032 darwin*)
14033 if test -n "$STRIP" ; then
14034 striplib="$STRIP -x"
14035 echo "$as_me:$LINENO: result: yes" >&5
14036echo "${ECHO_T}yes" >&6
14037 else
14038 echo "$as_me:$LINENO: result: no" >&5
14039echo "${ECHO_T}no" >&6
14040fi
14041 ;;
14042 *)
14043 echo "$as_me:$LINENO: result: no" >&5
14044echo "${ECHO_T}no" >&6
14045 ;;
14046 esac
14047fi
14048
14049echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14050echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14051library_names_spec=
14052libname_spec='lib$name'
14053soname_spec=
14054shrext=".so"
14055postinstall_cmds=
14056postuninstall_cmds=
14057finish_cmds=
14058finish_eval=
14059shlibpath_var=
14060shlibpath_overrides_runpath=unknown
14061version_type=none
14062dynamic_linker="$host_os ld.so"
14063sys_lib_dlsearch_path_spec="/lib /usr/lib"
14064if test "$GCC" = yes; then
14065 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14066 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14067 # if the path contains ";" then we assume it to be the separator
14068 # otherwise default to the standard path separator (i.e. ":") - it is
14069 # assumed that no part of a normal pathname contains ";" but that should
14070 # okay in the real world where ";" in dirpaths is itself problematic.
14071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14072 else
14073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14074 fi
14075else
14076 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14077fi
14078need_lib_prefix=unknown
14079hardcode_into_libs=no
14080
14081# when you set need_version to no, make sure it does not cause -set_version
14082# flags to be left without arguments
14083need_version=unknown
14084
14085case $host_os in
14086aix3*)
14087 version_type=linux
14088 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14089 shlibpath_var=LIBPATH
14090
14091 # AIX 3 has no versioning support, so we append a major version to the name.
14092 soname_spec='${libname}${release}${shared_ext}$major'
14093 ;;
14094
14095aix4* | aix5*)
14096 version_type=linux
14097 need_lib_prefix=no
14098 need_version=no
14099 hardcode_into_libs=yes
14100 if test "$host_cpu" = ia64; then
14101 # AIX 5 supports IA64
14102 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14103 shlibpath_var=LD_LIBRARY_PATH
14104 else
14105 # With GCC up to 2.95.x, collect2 would create an import file
14106 # for dependence libraries. The import file would start with
14107 # the line `#! .'. This would cause the generated library to
14108 # depend on `.', always an invalid library. This was fixed in
14109 # development snapshots of GCC prior to 3.0.
14110 case $host_os in
14111 aix4 | aix4.[01] | aix4.[01].*)
14112 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14113 echo ' yes '
14114 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14115 :
14116 else
14117 can_build_shared=no
14118 fi
14119 ;;
14120 esac
14121 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14122 # soname into executable. Probably we can add versioning support to
14123 # collect2, so additional links can be useful in future.
14124 if test "$aix_use_runtimelinking" = yes; then
14125 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14126 # instead of lib<name>.a to let people know that these are not
14127 # typical AIX shared libraries.
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14129 else
14130 # We preserve .a as extension for shared libraries through AIX4.2
14131 # and later when we are not doing run time linking.
14132 library_names_spec='${libname}${release}.a $libname.a'
14133 soname_spec='${libname}${release}${shared_ext}$major'
14134 fi
14135 shlibpath_var=LIBPATH
14136 fi
14137 ;;
14138
14139amigaos*)
14140 library_names_spec='$libname.ixlibrary $libname.a'
14141 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14142 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
14143 ;;
14144
14145beos*)
14146 library_names_spec='${libname}${shared_ext}'
14147 dynamic_linker="$host_os ld.so"
14148 shlibpath_var=LIBRARY_PATH
14149 ;;
14150
14151bsdi4*)
14152 version_type=linux
14153 need_version=no
14154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14155 soname_spec='${libname}${release}${shared_ext}$major'
14156 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14157 shlibpath_var=LD_LIBRARY_PATH
14158 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14159 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14160 # the default ld.so.conf also contains /usr/contrib/lib and
14161 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14162 # libtool to hard-code these into programs
14163 ;;
14164
14165cygwin* | mingw* | pw32*)
14166 version_type=windows
14167 shrext=".dll"
14168 need_version=no
14169 need_lib_prefix=no
14170
14171 case $GCC,$host_os in
14172 yes,cygwin* | yes,mingw* | yes,pw32*)
14173 library_names_spec='$libname.dll.a'
14174 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14175 postinstall_cmds='base_file=`basename \${file}`~
14176 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14177 dldir=$destdir/`dirname \$dlpath`~
14178 test -d \$dldir || mkdir -p \$dldir~
14179 $install_prog $dir/$dlname \$dldir/$dlname'
14180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14181 dlpath=$dir/\$dldll~
14182 $rm \$dlpath'
14183 shlibpath_overrides_runpath=yes
14184
14185 case $host_os in
14186 cygwin*)
14187 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14188 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14189 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14190 ;;
14191 mingw*)
14192 # MinGW DLLs use traditional 'lib' prefix
14193 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14194 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14195 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14196 # It is most probably a Windows format PATH printed by
14197 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14198 # path with ; separators, and with drive letters. We can handle the
14199 # drive letters (cygwin fileutils understands them), so leave them,
14200 # especially as we might pass files found there to a mingw objdump,
14201 # which wouldn't understand a cygwinified path. Ahh.
14202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14203 else
14204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14205 fi
14206 ;;
14207 pw32*)
14208 # pw32 DLLs use 'pw' prefix rather than 'lib'
14209 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14210 ;;
14211 esac
14212 ;;
14213
14214 *)
14215 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14216 ;;
14217 esac
14218 dynamic_linker='Win32 ld.exe'
14219 # FIXME: first we should search . and the directory the executable is in
14220 shlibpath_var=PATH
14221 ;;
14222
14223darwin* | rhapsody*)
14224 dynamic_linker="$host_os dyld"
14225 version_type=darwin
14226 need_lib_prefix=no
14227 need_version=no
14228 # FIXME: Relying on posixy $() will cause problems for
14229 # cross-compilation, but unfortunately the echo tests do not
14230 # yet detect zsh echo's removal of \ escapes.
14231 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14232 soname_spec='${libname}${release}${major}$shared_ext'
14233 shlibpath_overrides_runpath=yes
14234 shlibpath_var=DYLD_LIBRARY_PATH
14235 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14236 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14237 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14238 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14239 fi
14240 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14241 ;;
14242
14243dgux*)
14244 version_type=linux
14245 need_lib_prefix=no
14246 need_version=no
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14248 soname_spec='${libname}${release}${shared_ext}$major'
14249 shlibpath_var=LD_LIBRARY_PATH
14250 ;;
14251
14252freebsd1*)
14253 dynamic_linker=no
14254 ;;
14255
14256freebsd*)
14257 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14258 version_type=freebsd-$objformat
14259 case $version_type in
14260 freebsd-elf*)
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14262 need_version=no
14263 need_lib_prefix=no
14264 ;;
14265 freebsd-*)
14266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14267 need_version=yes
14268 ;;
14269 esac
14270 shlibpath_var=LD_LIBRARY_PATH
14271 case $host_os in
14272 freebsd2*)
14273 shlibpath_overrides_runpath=yes
14274 ;;
14275 freebsd3.01* | freebsdelf3.01*)
14276 shlibpath_overrides_runpath=yes
14277 hardcode_into_libs=yes
14278 ;;
14279 *) # from 3.2 on
14280 shlibpath_overrides_runpath=no
14281 hardcode_into_libs=yes
14282 ;;
14283 esac
14284 ;;
14285
14286gnu*)
14287 version_type=linux
14288 need_lib_prefix=no
14289 need_version=no
14290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14291 soname_spec='${libname}${release}${shared_ext}$major'
14292 shlibpath_var=LD_LIBRARY_PATH
14293 hardcode_into_libs=yes
14294 ;;
14295
14296hpux9* | hpux10* | hpux11*)
14297 # Give a soname corresponding to the major version so that dld.sl refuses to
14298 # link against other versions.
14299 version_type=sunos
14300 need_lib_prefix=no
14301 need_version=no
14302 case "$host_cpu" in
14303 ia64*)
14304 shrext='.so'
14305 hardcode_into_libs=yes
14306 dynamic_linker="$host_os dld.so"
14307 shlibpath_var=LD_LIBRARY_PATH
14308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14310 soname_spec='${libname}${release}${shared_ext}$major'
14311 if test "X$HPUX_IA64_MODE" = X32; then
14312 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14313 else
14314 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14315 fi
14316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14317 ;;
14318 hppa*64*)
14319 shrext='.sl'
14320 hardcode_into_libs=yes
14321 dynamic_linker="$host_os dld.sl"
14322 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14325 soname_spec='${libname}${release}${shared_ext}$major'
14326 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14328 ;;
14329 *)
14330 shrext='.sl'
14331 dynamic_linker="$host_os dld.sl"
14332 shlibpath_var=SHLIB_PATH
14333 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14335 soname_spec='${libname}${release}${shared_ext}$major'
14336 ;;
14337 esac
14338 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14339 postinstall_cmds='chmod 555 $lib'
14340 ;;
14341
14342irix5* | irix6* | nonstopux*)
14343 case $host_os in
14344 nonstopux*) version_type=nonstopux ;;
14345 *)
14346 if test "$lt_cv_prog_gnu_ld" = yes; then
14347 version_type=linux
14348 else
14349 version_type=irix
14350 fi ;;
14351 esac
14352 need_lib_prefix=no
14353 need_version=no
14354 soname_spec='${libname}${release}${shared_ext}$major'
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14356 case $host_os in
14357 irix5* | nonstopux*)
14358 libsuff= shlibsuff=
14359 ;;
14360 *)
14361 case $LD in # libtool.m4 will add one of these switches to LD
14362 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14363 libsuff= shlibsuff= libmagic=32-bit;;
14364 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14365 libsuff=32 shlibsuff=N32 libmagic=N32;;
14366 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14367 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14368 *) libsuff= shlibsuff= libmagic=never-match;;
14369 esac
14370 ;;
14371 esac
14372 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14373 shlibpath_overrides_runpath=no
14374 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14375 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14376 hardcode_into_libs=yes
14377 ;;
14378
14379# No shared lib support for Linux oldld, aout, or coff.
14380linux*oldld* | linux*aout* | linux*coff*)
14381 dynamic_linker=no
14382 ;;
14383
14384# This must be Linux ELF.
14385linux*)
14386 version_type=linux
14387 need_lib_prefix=no
14388 need_version=no
14389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390 soname_spec='${libname}${release}${shared_ext}$major'
14391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14392 shlibpath_var=LD_LIBRARY_PATH
14393 shlibpath_overrides_runpath=no
14394 # This implies no fast_install, which is unacceptable.
14395 # Some rework will be needed to allow for fast_install
14396 # before this can be enabled.
14397 hardcode_into_libs=yes
14398
14399 # We used to test for /lib/ld.so.1 and disable shared libraries on
14400 # powerpc, because MkLinux only supported shared libraries with the
14401 # GNU dynamic linker. Since this was broken with cross compilers,
14402 # most powerpc-linux boxes support dynamic linking these days and
14403 # people can always --disable-shared, the test was removed, and we
14404 # assume the GNU/Linux dynamic linker is in use.
14405 dynamic_linker='GNU/Linux ld.so'
14406 ;;
14407
14408netbsd*)
14409 version_type=sunos
14410 need_lib_prefix=no
14411 need_version=no
14412 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14415 dynamic_linker='NetBSD (a.out) ld.so'
14416 else
14417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14418 soname_spec='${libname}${release}${shared_ext}$major'
14419 dynamic_linker='NetBSD ld.elf_so'
14420 fi
14421 shlibpath_var=LD_LIBRARY_PATH
14422 shlibpath_overrides_runpath=yes
14423 hardcode_into_libs=yes
14424 ;;
14425
14426newsos6)
14427 version_type=linux
14428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14429 shlibpath_var=LD_LIBRARY_PATH
14430 shlibpath_overrides_runpath=yes
14431 ;;
14432
14433nto-qnx)
14434 version_type=linux
14435 need_lib_prefix=no
14436 need_version=no
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 shlibpath_var=LD_LIBRARY_PATH
14440 shlibpath_overrides_runpath=yes
14441 ;;
14442
14443openbsd*)
14444 version_type=sunos
14445 need_lib_prefix=no
14446 need_version=no
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14449 shlibpath_var=LD_LIBRARY_PATH
14450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14451 case $host_os in
14452 openbsd2.[89] | openbsd2.[89].*)
14453 shlibpath_overrides_runpath=no
14454 ;;
14455 *)
14456 shlibpath_overrides_runpath=yes
14457 ;;
14458 esac
14459 else
14460 shlibpath_overrides_runpath=yes
14461 fi
14462 ;;
14463
14464os2*)
14465 libname_spec='$name'
14466 shrext=".dll"
14467 need_lib_prefix=no
14468 library_names_spec='$libname${shared_ext} $libname.a'
14469 dynamic_linker='OS/2 ld.exe'
14470 shlibpath_var=LIBPATH
14471 ;;
14472
14473osf3* | osf4* | osf5*)
14474 version_type=osf
14475 need_lib_prefix=no
14476 need_version=no
14477 soname_spec='${libname}${release}${shared_ext}$major'
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14479 shlibpath_var=LD_LIBRARY_PATH
14480 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14481 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14482 ;;
14483
14484sco3.2v5*)
14485 version_type=osf
14486 soname_spec='${libname}${release}${shared_ext}$major'
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488 shlibpath_var=LD_LIBRARY_PATH
14489 ;;
14490
14491solaris*)
14492 version_type=linux
14493 need_lib_prefix=no
14494 need_version=no
14495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14496 soname_spec='${libname}${release}${shared_ext}$major'
14497 shlibpath_var=LD_LIBRARY_PATH
14498 shlibpath_overrides_runpath=yes
14499 hardcode_into_libs=yes
14500 # ldd complains unless libraries are executable
14501 postinstall_cmds='chmod +x $lib'
14502 ;;
14503
14504sunos4*)
14505 version_type=sunos
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14507 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14508 shlibpath_var=LD_LIBRARY_PATH
14509 shlibpath_overrides_runpath=yes
14510 if test "$with_gnu_ld" = yes; then
14511 need_lib_prefix=no
14512 fi
14513 need_version=yes
14514 ;;
14515
14516sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14517 version_type=linux
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519 soname_spec='${libname}${release}${shared_ext}$major'
14520 shlibpath_var=LD_LIBRARY_PATH
14521 case $host_vendor in
14522 sni)
14523 shlibpath_overrides_runpath=no
14524 need_lib_prefix=no
14525 export_dynamic_flag_spec='${wl}-Blargedynsym'
14526 runpath_var=LD_RUN_PATH
14527 ;;
14528 siemens)
14529 need_lib_prefix=no
14530 ;;
14531 motorola)
14532 need_lib_prefix=no
14533 need_version=no
14534 shlibpath_overrides_runpath=no
14535 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14536 ;;
14537 esac
14538 ;;
14539
14540sysv4*MP*)
14541 if test -d /usr/nec ;then
14542 version_type=linux
14543 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14544 soname_spec='$libname${shared_ext}.$major'
14545 shlibpath_var=LD_LIBRARY_PATH
14546 fi
14547 ;;
14548
14549uts4*)
14550 version_type=linux
14551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14552 soname_spec='${libname}${release}${shared_ext}$major'
14553 shlibpath_var=LD_LIBRARY_PATH
14554 ;;
14555
14556*)
14557 dynamic_linker=no
14558 ;;
14559esac
14560echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14561echo "${ECHO_T}$dynamic_linker" >&6
14562test "$dynamic_linker" = no && can_build_shared=no
14563
14564
14565# The else clause should only fire when bootstrapping the
14566# libtool distribution, otherwise you forgot to ship ltmain.sh
14567# with your package, and you will get complaints that there are
14568# no rules to generate ltmain.sh.
14569if test -f "$ltmain"; then
14570 # See if we are running on zsh, and set the options which allow our commands through
14571 # without removal of \ escapes.
14572 if test -n "${ZSH_VERSION+set}" ; then
14573 setopt NO_GLOB_SUBST
14574 fi
14575 # Now quote all the things that may contain metacharacters while being
14576 # careful not to overquote the AC_SUBSTed values. We take copies of the
14577 # variables and quote the copies for generation of the libtool script.
14578 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14579 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14580 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14581 deplibs_check_method reload_flag reload_cmds need_locks \
14582 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14583 lt_cv_sys_global_symbol_to_c_name_address \
14584 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14585 old_postinstall_cmds old_postuninstall_cmds \
14586 compiler_F77 \
14587 CC_F77 \
14588 LD_F77 \
14589 lt_prog_compiler_wl_F77 \
14590 lt_prog_compiler_pic_F77 \
14591 lt_prog_compiler_static_F77 \
14592 lt_prog_compiler_no_builtin_flag_F77 \
14593 export_dynamic_flag_spec_F77 \
14594 thread_safe_flag_spec_F77 \
14595 whole_archive_flag_spec_F77 \
14596 enable_shared_with_static_runtimes_F77 \
14597 old_archive_cmds_F77 \
14598 old_archive_from_new_cmds_F77 \
14599 predep_objects_F77 \
14600 postdep_objects_F77 \
14601 predeps_F77 \
14602 postdeps_F77 \
14603 compiler_lib_search_path_F77 \
14604 archive_cmds_F77 \
14605 archive_expsym_cmds_F77 \
14606 postinstall_cmds_F77 \
14607 postuninstall_cmds_F77 \
14608 old_archive_from_expsyms_cmds_F77 \
14609 allow_undefined_flag_F77 \
14610 no_undefined_flag_F77 \
14611 export_symbols_cmds_F77 \
14612 hardcode_libdir_flag_spec_F77 \
14613 hardcode_libdir_flag_spec_ld_F77 \
14614 hardcode_libdir_separator_F77 \
14615 hardcode_automatic_F77 \
14616 module_cmds_F77 \
14617 module_expsym_cmds_F77 \
14618 lt_cv_prog_compiler_c_o_F77 \
14619 exclude_expsyms_F77 \
14620 include_expsyms_F77; do
14621
14622 case $var in
14623 old_archive_cmds_F77 | \
14624 old_archive_from_new_cmds_F77 | \
14625 archive_cmds_F77 | \
14626 archive_expsym_cmds_F77 | \
14627 module_cmds_F77 | \
14628 module_expsym_cmds_F77 | \
14629 old_archive_from_expsyms_cmds_F77 | \
14630 export_symbols_cmds_F77 | \
14631 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14632 postinstall_cmds | postuninstall_cmds | \
14633 old_postinstall_cmds | old_postuninstall_cmds | \
14634 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14635 # Double-quote double-evaled strings.
14636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14637 ;;
14638 *)
14639 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14640 ;;
14641 esac
14642 done
14643
14644 case $lt_echo in
14645 *'\$0 --fallback-echo"')
14646 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14647 ;;
14648 esac
14649
14650cfgfile="$ofile"
14651
14652 cat <<__EOF__ >> "$cfgfile"
14653# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14654
14655# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14656
14657# Shell to use when invoking shell scripts.
14658SHELL=$lt_SHELL
14659
14660# Whether or not to build shared libraries.
14661build_libtool_libs=$enable_shared
14662
14663# Whether or not to build static libraries.
14664build_old_libs=$enable_static
14665
14666# Whether or not to add -lc for building shared libraries.
14667build_libtool_need_lc=$archive_cmds_need_lc_F77
14668
14669# Whether or not to disallow shared libs when runtime libs are static
14670allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14671
14672# Whether or not to optimize for fast installation.
14673fast_install=$enable_fast_install
14674
14675# The host system.
14676host_alias=$host_alias
14677host=$host
14678
14679# An echo program that does not interpret backslashes.
14680echo=$lt_echo
14681
14682# The archiver.
14683AR=$lt_AR
14684AR_FLAGS=$lt_AR_FLAGS
14685
14686# A C compiler.
14687LTCC=$lt_LTCC
14688
14689# A language-specific compiler.
14690CC=$lt_compiler_F77
14691
14692# Is the compiler the GNU C compiler?
14693with_gcc=$GCC_F77
14694
14695# An ERE matcher.
14696EGREP=$lt_EGREP
14697
14698# The linker used to build libraries.
14699LD=$lt_LD_F77
14700
14701# Whether we need hard or soft links.
14702LN_S=$lt_LN_S
14703
14704# A BSD-compatible nm program.
14705NM=$lt_NM
14706
14707# A symbol stripping program
14708STRIP=$STRIP
14709
14710# Used to examine libraries when file_magic_cmd begins "file"
14711MAGIC_CMD=$MAGIC_CMD
14712
14713# Used on cygwin: DLL creation program.
14714DLLTOOL="$DLLTOOL"
14715
14716# Used on cygwin: object dumper.
14717OBJDUMP="$OBJDUMP"
14718
14719# Used on cygwin: assembler.
14720AS="$AS"
14721
14722# The name of the directory that contains temporary libtool files.
14723objdir=$objdir
14724
14725# How to create reloadable object files.
14726reload_flag=$lt_reload_flag
14727reload_cmds=$lt_reload_cmds
14728
14729# How to pass a linker flag through the compiler.
14730wl=$lt_lt_prog_compiler_wl_F77
14731
14732# Object file suffix (normally "o").
14733objext="$ac_objext"
14734
14735# Old archive suffix (normally "a").
14736libext="$libext"
14737
14738# Shared library suffix (normally ".so").
14739shrext='$shrext'
14740
14741# Executable file suffix (normally "").
14742exeext="$exeext"
14743
14744# Additional compiler flags for building library objects.
14745pic_flag=$lt_lt_prog_compiler_pic_F77
14746pic_mode=$pic_mode
14747
14748# What is the maximum length of a command?
14749max_cmd_len=$lt_cv_sys_max_cmd_len
14750
14751# Does compiler simultaneously support -c and -o options?
14752compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14753
14754# Must we lock files when doing compilation ?
14755need_locks=$lt_need_locks
14756
14757# Do we need the lib prefix for modules?
14758need_lib_prefix=$need_lib_prefix
14759
14760# Do we need a version for libraries?
14761need_version=$need_version
14762
14763# Whether dlopen is supported.
14764dlopen_support=$enable_dlopen
14765
14766# Whether dlopen of programs is supported.
14767dlopen_self=$enable_dlopen_self
14768
14769# Whether dlopen of statically linked programs is supported.
14770dlopen_self_static=$enable_dlopen_self_static
14771
14772# Compiler flag to prevent dynamic linking.
14773link_static_flag=$lt_lt_prog_compiler_static_F77
14774
14775# Compiler flag to turn off builtin functions.
14776no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14777
14778# Compiler flag to allow reflexive dlopens.
14779export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14780
14781# Compiler flag to generate shared objects directly from archives.
14782whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14783
14784# Compiler flag to generate thread-safe objects.
14785thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14786
14787# Library versioning type.
14788version_type=$version_type
14789
14790# Format of library name prefix.
14791libname_spec=$lt_libname_spec
14792
14793# List of archive names. First name is the real one, the rest are links.
14794# The last name is the one that the linker finds with -lNAME.
14795library_names_spec=$lt_library_names_spec
14796
14797# The coded name of the library, if different from the real name.
14798soname_spec=$lt_soname_spec
14799
14800# Commands used to build and install an old-style archive.
14801RANLIB=$lt_RANLIB
14802old_archive_cmds=$lt_old_archive_cmds_F77
14803old_postinstall_cmds=$lt_old_postinstall_cmds
14804old_postuninstall_cmds=$lt_old_postuninstall_cmds
14805
14806# Create an old-style archive from a shared archive.
14807old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14808
14809# Create a temporary old-style archive to link instead of a shared archive.
14810old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14811
14812# Commands used to build and install a shared archive.
14813archive_cmds=$lt_archive_cmds_F77
14814archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14815postinstall_cmds=$lt_postinstall_cmds
14816postuninstall_cmds=$lt_postuninstall_cmds
14817
14818# Commands used to build a loadable module (assumed same as above if empty)
14819module_cmds=$lt_module_cmds_F77
14820module_expsym_cmds=$lt_module_expsym_cmds_F77
14821
14822# Commands to strip libraries.
14823old_striplib=$lt_old_striplib
14824striplib=$lt_striplib
14825
14826# Dependencies to place before the objects being linked to create a
14827# shared library.
14828predep_objects=$lt_predep_objects_F77
14829
14830# Dependencies to place after the objects being linked to create a
14831# shared library.
14832postdep_objects=$lt_postdep_objects_F77
14833
14834# Dependencies to place before the objects being linked to create a
14835# shared library.
14836predeps=$lt_predeps_F77
14837
14838# Dependencies to place after the objects being linked to create a
14839# shared library.
14840postdeps=$lt_postdeps_F77
14841
14842# The library search path used internally by the compiler when linking
14843# a shared library.
14844compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14845
14846# Method to check whether dependent libraries are shared objects.
14847deplibs_check_method=$lt_deplibs_check_method
14848
14849# Command to use when deplibs_check_method == file_magic.
14850file_magic_cmd=$lt_file_magic_cmd
14851
14852# Flag that allows shared libraries with undefined symbols to be built.
14853allow_undefined_flag=$lt_allow_undefined_flag_F77
14854
14855# Flag that forces no undefined symbols.
14856no_undefined_flag=$lt_no_undefined_flag_F77
14857
14858# Commands used to finish a libtool library installation in a directory.
14859finish_cmds=$lt_finish_cmds
14860
14861# Same as above, but a single script fragment to be evaled but not shown.
14862finish_eval=$lt_finish_eval
14863
14864# Take the output of nm and produce a listing of raw symbols and C names.
14865global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14866
14867# Transform the output of nm in a proper C declaration
14868global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14869
14870# Transform the output of nm in a C name address pair
14871global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14872
14873# This is the shared library runtime path variable.
14874runpath_var=$runpath_var
14875
14876# This is the shared library path variable.
14877shlibpath_var=$shlibpath_var
14878
14879# Is shlibpath searched before the hard-coded library search path?
14880shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14881
14882# How to hardcode a shared library path into an executable.
14883hardcode_action=$hardcode_action_F77
14884
14885# Whether we should hardcode library paths into libraries.
14886hardcode_into_libs=$hardcode_into_libs
14887
14888# Flag to hardcode \$libdir into a binary during linking.
14889# This must work even if \$libdir does not exist.
14890hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14891
14892# If ld is used when linking, flag to hardcode \$libdir into
14893# a binary during linking. This must work even if \$libdir does
14894# not exist.
14895hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14896
14897# Whether we need a single -rpath flag with a separated argument.
14898hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14899
14900# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14901# resulting binary.
14902hardcode_direct=$hardcode_direct_F77
14903
14904# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14905# resulting binary.
14906hardcode_minus_L=$hardcode_minus_L_F77
14907
14908# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14909# the resulting binary.
14910hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14911
14912# Set to yes if building a shared library automatically hardcodes DIR into the library
14913# and all subsequent libraries and executables linked against it.
14914hardcode_automatic=$hardcode_automatic_F77
14915
14916# Variables whose values should be saved in libtool wrapper scripts and
14917# restored at relink time.
14918variables_saved_for_relink="$variables_saved_for_relink"
14919
14920# Whether libtool must link a program against all its dependency libraries.
14921link_all_deplibs=$link_all_deplibs_F77
14922
14923# Compile-time system search path for libraries
14924sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14925
14926# Run-time system search path for libraries
14927sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14928
14929# Fix the shell variable \$srcfile for the compiler.
14930fix_srcfile_path="$fix_srcfile_path_F77"
14931
14932# Set to yes if exported symbols are required.
14933always_export_symbols=$always_export_symbols_F77
14934
14935# The commands to list exported symbols.
14936export_symbols_cmds=$lt_export_symbols_cmds_F77
14937
14938# The commands to extract the exported symbol list from a shared archive.
14939extract_expsyms_cmds=$lt_extract_expsyms_cmds
14940
14941# Symbols that should not be listed in the preloaded symbols.
14942exclude_expsyms=$lt_exclude_expsyms_F77
14943
14944# Symbols that must always be exported.
14945include_expsyms=$lt_include_expsyms_F77
14946
14947# ### END LIBTOOL TAG CONFIG: $tagname
14948
14949__EOF__
14950
14951
14952else
14953 # If there is no Makefile yet, we rely on a make rule to execute
14954 # `config.status --recheck' to rerun these tests and create the
14955 # libtool script then.
14956 test -f Makefile && make "$ltmain"
14957fi
14958
14959
14960ac_ext=c
14961ac_cpp='$CPP $CPPFLAGS'
14962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14964ac_compiler_gnu=$ac_cv_c_compiler_gnu
14965
14966CC="$lt_save_CC"
14967
14968 else
14969 tagname=""
14970 fi
14971 ;;
14972
14973 GCJ)
14974 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14975
14976
14977
14978# Source file extension for Java test sources.
14979ac_ext=java
14980
14981# Object file extension for compiled Java test sources.
14982objext=o
14983objext_GCJ=$objext
14984
14985# Code to be used in simple compile tests
14986lt_simple_compile_test_code="class foo {}\n"
14987
14988# Code to be used in simple link tests
14989lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14990
14991# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14992
14993# If no C compiler was specified, use CC.
14994LTCC=${LTCC-"$CC"}
14995
14996# Allow CC to be a program name with arguments.
14997compiler=$CC
14998
14999
15000# Allow CC to be a program name with arguments.
15001lt_save_CC="$CC"
15002CC=${GCJ-"gcj"}
15003compiler=$CC
15004compiler_GCJ=$CC
15005
15006# GCJ did not exist at the time GCC didn't implicitly link libc in.
15007archive_cmds_need_lc_GCJ=no
15008
15009## CAVEAT EMPTOR:
15010## There is no encapsulation within the following macros, do not change
15011## the running order or otherwise move them around unless you know exactly
15012## what you are doing...
15013
15014lt_prog_compiler_no_builtin_flag_GCJ=
15015
15016if test "$GCC" = yes; then
15017 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15018
15019 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15020echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15021if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15023else
15024 lt_cv_prog_compiler_rtti_exceptions=no
15025 ac_outfile=conftest.$ac_objext
15026 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15027 lt_compiler_flag="-fno-rtti -fno-exceptions"
15028 # Insert the option either (1) after the last *FLAGS variable, or
15029 # (2) before a word containing "conftest.", or (3) at the end.
15030 # Note that $ac_compile itself does not contain backslashes and begins
15031 # with a dollar sign (not a hyphen), so the echo should work correctly.
15032 # The option is referenced via a variable to avoid confusing sed.
15033 lt_compile=`echo "$ac_compile" | $SED \
15034 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15036 -e 's:$: $lt_compiler_flag:'`
John Criswell7ec78aa2003-10-16 01:49:00 +000015037 (eval echo "\"\$as_me:15037: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015038 (eval "$lt_compile" 2>conftest.err)
15039 ac_status=$?
15040 cat conftest.err >&5
John Criswell7ec78aa2003-10-16 01:49:00 +000015041 echo "$as_me:15041: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015042 if (exit $ac_status) && test -s "$ac_outfile"; then
15043 # The compiler can only warn and ignore the option if not recognized
15044 # So say no if there are warnings
15045 if test ! -s conftest.err; then
15046 lt_cv_prog_compiler_rtti_exceptions=yes
15047 fi
15048 fi
15049 $rm conftest*
15050
15051fi
15052echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15053echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15054
15055if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15056 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15057else
15058 :
15059fi
15060
15061fi
15062
15063lt_prog_compiler_wl_GCJ=
15064lt_prog_compiler_pic_GCJ=
15065lt_prog_compiler_static_GCJ=
15066
15067echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15068echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15069
15070 if test "$GCC" = yes; then
15071 lt_prog_compiler_wl_GCJ='-Wl,'
15072 lt_prog_compiler_static_GCJ='-static'
15073
15074 case $host_os in
15075 aix*)
15076 # All AIX code is PIC.
15077 if test "$host_cpu" = ia64; then
15078 # AIX 5 now supports IA64 processor
15079 lt_prog_compiler_static_GCJ='-Bstatic'
15080 fi
15081 ;;
15082
15083 amigaos*)
15084 # FIXME: we need at least 68020 code to build shared libraries, but
15085 # adding the `-m68020' flag to GCC prevents building anything better,
15086 # like `-m68040'.
15087 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15088 ;;
15089
15090 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15091 # PIC is the default for these OSes.
15092 ;;
15093
15094 mingw* | pw32* | os2*)
15095 # This hack is so that the source file can tell whether it is being
15096 # built for inclusion in a dll (and should export symbols for example).
15097 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15098 ;;
15099
15100 darwin* | rhapsody*)
15101 # PIC is the default on this platform
15102 # Common symbols not allowed in MH_DYLIB files
15103 lt_prog_compiler_pic_GCJ='-fno-common'
15104 ;;
15105
15106 msdosdjgpp*)
15107 # Just because we use GCC doesn't mean we suddenly get shared libraries
15108 # on systems that don't support them.
15109 lt_prog_compiler_can_build_shared_GCJ=no
15110 enable_shared=no
15111 ;;
15112
15113 sysv4*MP*)
15114 if test -d /usr/nec; then
15115 lt_prog_compiler_pic_GCJ=-Kconform_pic
15116 fi
15117 ;;
15118
15119 hpux*)
15120 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15121 # not for PA HP-UX.
15122 case "$host_cpu" in
15123 hppa*64*|ia64*)
15124 # +Z the default
15125 ;;
15126 *)
15127 lt_prog_compiler_pic_GCJ='-fPIC'
15128 ;;
15129 esac
15130 ;;
15131
15132 *)
15133 lt_prog_compiler_pic_GCJ='-fPIC'
15134 ;;
15135 esac
15136 else
15137 # PORTME Check for flag to pass linker flags through the system compiler.
15138 case $host_os in
15139 aix*)
15140 lt_prog_compiler_wl_GCJ='-Wl,'
15141 if test "$host_cpu" = ia64; then
15142 # AIX 5 now supports IA64 processor
15143 lt_prog_compiler_static_GCJ='-Bstatic'
15144 else
15145 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15146 fi
15147 ;;
15148
15149 mingw* | pw32* | os2*)
15150 # This hack is so that the source file can tell whether it is being
15151 # built for inclusion in a dll (and should export symbols for example).
15152 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15153 ;;
15154
15155 hpux9* | hpux10* | hpux11*)
15156 lt_prog_compiler_wl_GCJ='-Wl,'
15157 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15158 # not for PA HP-UX.
15159 case "$host_cpu" in
15160 hppa*64*|ia64*)
15161 # +Z the default
15162 ;;
15163 *)
15164 lt_prog_compiler_pic_GCJ='+Z'
15165 ;;
15166 esac
15167 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15168 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15169 ;;
15170
15171 irix5* | irix6* | nonstopux*)
15172 lt_prog_compiler_wl_GCJ='-Wl,'
15173 # PIC (with -KPIC) is the default.
15174 lt_prog_compiler_static_GCJ='-non_shared'
15175 ;;
15176
15177 newsos6)
15178 lt_prog_compiler_pic_GCJ='-KPIC'
15179 lt_prog_compiler_static_GCJ='-Bstatic'
15180 ;;
15181
15182 linux*)
15183 case $CC in
15184 icc|ecc)
15185 lt_prog_compiler_wl_GCJ='-Wl,'
15186 lt_prog_compiler_pic_GCJ='-KPIC'
15187 lt_prog_compiler_static_GCJ='-static'
15188 ;;
15189 ccc)
15190 lt_prog_compiler_wl_GCJ='-Wl,'
15191 # All Alpha code is PIC.
15192 lt_prog_compiler_static_GCJ='-non_shared'
15193 ;;
15194 esac
15195 ;;
15196
15197 osf3* | osf4* | osf5*)
15198 lt_prog_compiler_wl_GCJ='-Wl,'
15199 # All OSF/1 code is PIC.
15200 lt_prog_compiler_static_GCJ='-non_shared'
15201 ;;
15202
15203 sco3.2v5*)
15204 lt_prog_compiler_pic_GCJ='-Kpic'
15205 lt_prog_compiler_static_GCJ='-dn'
15206 ;;
15207
15208 solaris*)
15209 lt_prog_compiler_wl_GCJ='-Wl,'
15210 lt_prog_compiler_pic_GCJ='-KPIC'
15211 lt_prog_compiler_static_GCJ='-Bstatic'
15212 ;;
15213
15214 sunos4*)
15215 lt_prog_compiler_wl_GCJ='-Qoption ld '
15216 lt_prog_compiler_pic_GCJ='-PIC'
15217 lt_prog_compiler_static_GCJ='-Bstatic'
15218 ;;
15219
15220 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15221 lt_prog_compiler_wl_GCJ='-Wl,'
15222 lt_prog_compiler_pic_GCJ='-KPIC'
15223 lt_prog_compiler_static_GCJ='-Bstatic'
15224 ;;
15225
15226 sysv4*MP*)
15227 if test -d /usr/nec ;then
15228 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15229 lt_prog_compiler_static_GCJ='-Bstatic'
15230 fi
15231 ;;
15232
15233 uts4*)
15234 lt_prog_compiler_pic_GCJ='-pic'
15235 lt_prog_compiler_static_GCJ='-Bstatic'
15236 ;;
15237
15238 *)
15239 lt_prog_compiler_can_build_shared_GCJ=no
15240 ;;
15241 esac
15242 fi
15243
15244echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15245echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15246
15247#
15248# Check to make sure the PIC flag actually works.
15249#
15250if test -n "$lt_prog_compiler_pic_GCJ"; then
15251 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15252echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15253if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15254 echo $ECHO_N "(cached) $ECHO_C" >&6
15255else
15256 lt_prog_compiler_pic_works_GCJ=no
15257 ac_outfile=conftest.$ac_objext
15258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15259 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15260 # Insert the option either (1) after the last *FLAGS variable, or
15261 # (2) before a word containing "conftest.", or (3) at the end.
15262 # Note that $ac_compile itself does not contain backslashes and begins
15263 # with a dollar sign (not a hyphen), so the echo should work correctly.
15264 # The option is referenced via a variable to avoid confusing sed.
15265 lt_compile=`echo "$ac_compile" | $SED \
15266 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15268 -e 's:$: $lt_compiler_flag:'`
John Criswell7ec78aa2003-10-16 01:49:00 +000015269 (eval echo "\"\$as_me:15269: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015270 (eval "$lt_compile" 2>conftest.err)
15271 ac_status=$?
15272 cat conftest.err >&5
John Criswell7ec78aa2003-10-16 01:49:00 +000015273 echo "$as_me:15273: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015274 if (exit $ac_status) && test -s "$ac_outfile"; then
15275 # The compiler can only warn and ignore the option if not recognized
15276 # So say no if there are warnings
15277 if test ! -s conftest.err; then
15278 lt_prog_compiler_pic_works_GCJ=yes
15279 fi
15280 fi
15281 $rm conftest*
15282
15283fi
15284echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15285echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15286
15287if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15288 case $lt_prog_compiler_pic_GCJ in
15289 "" | " "*) ;;
15290 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15291 esac
15292else
15293 lt_prog_compiler_pic_GCJ=
15294 lt_prog_compiler_can_build_shared_GCJ=no
15295fi
15296
15297fi
15298case "$host_os" in
15299 # For platforms which do not support PIC, -DPIC is meaningless:
15300 *djgpp*)
15301 lt_prog_compiler_pic_GCJ=
15302 ;;
15303 *)
15304 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15305 ;;
15306esac
15307
15308echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15309echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15310if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15312else
15313 lt_cv_prog_compiler_c_o_GCJ=no
15314 $rm -r conftest 2>/dev/null
15315 mkdir conftest
15316 cd conftest
15317 mkdir out
15318 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15319
15320 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15321 # that will create temporary files in the current directory regardless of
15322 # the output directory. Thus, making CWD read-only will cause this test
15323 # to fail, enabling locking or at least warning the user not to do parallel
15324 # builds.
15325 chmod -w .
15326
15327 lt_compiler_flag="-o out/conftest2.$ac_objext"
15328 # Insert the option either (1) after the last *FLAGS variable, or
15329 # (2) before a word containing "conftest.", or (3) at the end.
15330 # Note that $ac_compile itself does not contain backslashes and begins
15331 # with a dollar sign (not a hyphen), so the echo should work correctly.
15332 lt_compile=`echo "$ac_compile" | $SED \
15333 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15335 -e 's:$: $lt_compiler_flag:'`
John Criswell7ec78aa2003-10-16 01:49:00 +000015336 (eval echo "\"\$as_me:15336: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015337 (eval "$lt_compile" 2>out/conftest.err)
15338 ac_status=$?
15339 cat out/conftest.err >&5
John Criswell7ec78aa2003-10-16 01:49:00 +000015340 echo "$as_me:15340: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015341 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15342 then
15343 # The compiler can only warn and ignore the option if not recognized
15344 # So say no if there are warnings
15345 if test ! -s out/conftest.err; then
15346 lt_cv_prog_compiler_c_o_GCJ=yes
15347 fi
15348 fi
15349 chmod u+w .
15350 $rm conftest* out/*
15351 rmdir out
15352 cd ..
15353 rmdir conftest
15354 $rm conftest*
15355
15356fi
15357echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15358echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15359
15360
15361hard_links="nottested"
15362if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15363 # do not overwrite the value of need_locks provided by the user
15364 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15365echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15366 hard_links=yes
15367 $rm conftest*
15368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15369 touch conftest.a
15370 ln conftest.a conftest.b 2>&5 || hard_links=no
15371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15372 echo "$as_me:$LINENO: result: $hard_links" >&5
15373echo "${ECHO_T}$hard_links" >&6
15374 if test "$hard_links" = no; then
15375 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15376echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15377 need_locks=warn
15378 fi
15379else
15380 need_locks=no
15381fi
15382
15383echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15384echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15385
15386 runpath_var=
15387 allow_undefined_flag_GCJ=
15388 enable_shared_with_static_runtimes_GCJ=no
15389 archive_cmds_GCJ=
15390 archive_expsym_cmds_GCJ=
15391 old_archive_From_new_cmds_GCJ=
15392 old_archive_from_expsyms_cmds_GCJ=
15393 export_dynamic_flag_spec_GCJ=
15394 whole_archive_flag_spec_GCJ=
15395 thread_safe_flag_spec_GCJ=
15396 hardcode_libdir_flag_spec_GCJ=
15397 hardcode_libdir_flag_spec_ld_GCJ=
15398 hardcode_libdir_separator_GCJ=
15399 hardcode_direct_GCJ=no
15400 hardcode_minus_L_GCJ=no
15401 hardcode_shlibpath_var_GCJ=unsupported
15402 link_all_deplibs_GCJ=unknown
15403 hardcode_automatic_GCJ=no
15404 module_cmds_GCJ=
15405 module_expsym_cmds_GCJ=
15406 always_export_symbols_GCJ=no
15407 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15408 # include_expsyms should be a list of space-separated symbols to be *always*
15409 # included in the symbol list
15410 include_expsyms_GCJ=
15411 # exclude_expsyms can be an extended regexp of symbols to exclude
15412 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15413 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15414 # as well as any symbol that contains `d'.
15415 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15416 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15417 # platforms (ab)use it in PIC code, but their linkers get confused if
15418 # the symbol is explicitly referenced. Since portable code cannot
15419 # rely on this symbol name, it's probably fine to never include it in
15420 # preloaded symbol tables.
15421 extract_expsyms_cmds=
15422
15423 case $host_os in
15424 cygwin* | mingw* | pw32*)
15425 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15426 # When not using gcc, we currently assume that we are using
15427 # Microsoft Visual C++.
15428 if test "$GCC" != yes; then
15429 with_gnu_ld=no
15430 fi
15431 ;;
15432 openbsd*)
15433 with_gnu_ld=no
15434 ;;
15435 esac
15436
15437 ld_shlibs_GCJ=yes
15438 if test "$with_gnu_ld" = yes; then
15439 # If archive_cmds runs LD, not CC, wlarc should be empty
15440 wlarc='${wl}'
15441
15442 # See if GNU ld supports shared libraries.
15443 case $host_os in
15444 aix3* | aix4* | aix5*)
15445 # On AIX/PPC, the GNU linker is very broken
15446 if test "$host_cpu" != ia64; then
15447 ld_shlibs_GCJ=no
15448 cat <<EOF 1>&2
15449
15450*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15451*** to be unable to reliably create shared libraries on AIX.
15452*** Therefore, libtool is disabling shared libraries support. If you
15453*** really care for shared libraries, you may want to modify your PATH
15454*** so that a non-GNU linker is found, and then restart.
15455
15456EOF
15457 fi
15458 ;;
15459
15460 amigaos*)
15461 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15462 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15463 hardcode_minus_L_GCJ=yes
15464
15465 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15466 # that the semantics of dynamic libraries on AmigaOS, at least up
15467 # to version 4, is to share data among multiple programs linked
15468 # with the same dynamic library. Since this doesn't match the
15469 # behavior of shared libraries on other platforms, we can't use
15470 # them.
15471 ld_shlibs_GCJ=no
15472 ;;
15473
15474 beos*)
15475 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15476 allow_undefined_flag_GCJ=unsupported
15477 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15478 # support --undefined. This deserves some investigation. FIXME
15479 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15480 else
15481 ld_shlibs_GCJ=no
15482 fi
15483 ;;
15484
15485 cygwin* | mingw* | pw32*)
15486 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15487 # as there is no search path for DLLs.
15488 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15489 allow_undefined_flag_GCJ=unsupported
15490 always_export_symbols_GCJ=no
15491 enable_shared_with_static_runtimes_GCJ=yes
15492 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15493
15494 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15495 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15496 # If the export-symbols file already is a .def file (1st line
15497 # is EXPORTS), use it as is; otherwise, prepend...
15498 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15499 cp $export_symbols $output_objdir/$soname.def;
15500 else
15501 echo EXPORTS > $output_objdir/$soname.def;
15502 cat $export_symbols >> $output_objdir/$soname.def;
15503 fi~
15504 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15505 else
15506 ld_shlibs=no
15507 fi
15508 ;;
15509
15510 netbsd*)
15511 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15512 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15513 wlarc=
15514 else
15515 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15516 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15517 fi
15518 ;;
15519
15520 solaris* | sysv5*)
15521 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15522 ld_shlibs_GCJ=no
15523 cat <<EOF 1>&2
15524
15525*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15526*** create shared libraries on Solaris systems. Therefore, libtool
15527*** is disabling shared libraries support. We urge you to upgrade GNU
15528*** binutils to release 2.9.1 or newer. Another option is to modify
15529*** your PATH or compiler configuration so that the native linker is
15530*** used, and then restart.
15531
15532EOF
15533 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15534 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15535 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15536 else
15537 ld_shlibs_GCJ=no
15538 fi
15539 ;;
15540
15541 sunos4*)
15542 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15543 wlarc=
15544 hardcode_direct_GCJ=yes
15545 hardcode_shlibpath_var_GCJ=no
15546 ;;
15547
15548 *)
15549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15550 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15551 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15552 else
15553 ld_shlibs_GCJ=no
15554 fi
15555 ;;
15556 esac
15557
15558 if test "$ld_shlibs_GCJ" = yes; then
15559 runpath_var=LD_RUN_PATH
15560 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15561 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15562 # ancient GNU ld didn't support --whole-archive et. al.
15563 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15564 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15565 else
15566 whole_archive_flag_spec_GCJ=
15567 fi
15568 fi
15569 else
15570 # PORTME fill in a description of your system's linker (not GNU ld)
15571 case $host_os in
15572 aix3*)
15573 allow_undefined_flag_GCJ=unsupported
15574 always_export_symbols_GCJ=yes
15575 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15576 # Note: this linker hardcodes the directories in LIBPATH if there
15577 # are no directories specified by -L.
15578 hardcode_minus_L_GCJ=yes
15579 if test "$GCC" = yes && test -z "$link_static_flag"; then
15580 # Neither direct hardcoding nor static linking is supported with a
15581 # broken collect2.
15582 hardcode_direct_GCJ=unsupported
15583 fi
15584 ;;
15585
15586 aix4* | aix5*)
15587 if test "$host_cpu" = ia64; then
15588 # On IA64, the linker does run time linking by default, so we don't
15589 # have to do anything special.
15590 aix_use_runtimelinking=no
15591 exp_sym_flag='-Bexport'
15592 no_entry_flag=""
15593 else
15594 # If we're using GNU nm, then we don't want the "-C" option.
15595 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15596 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15597 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15598 else
15599 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15600 fi
15601 aix_use_runtimelinking=no
15602
15603 # Test if we are trying to use run time linking or normal
15604 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15605 # need to do runtime linking.
15606 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15607 for ld_flag in $LDFLAGS; do
15608 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15609 aix_use_runtimelinking=yes
15610 break
15611 fi
15612 done
15613 esac
15614
15615 exp_sym_flag='-bexport'
15616 no_entry_flag='-bnoentry'
15617 fi
15618
15619 # When large executables or shared objects are built, AIX ld can
15620 # have problems creating the table of contents. If linking a library
15621 # or program results in "error TOC overflow" add -mminimal-toc to
15622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15624
15625 archive_cmds_GCJ=''
15626 hardcode_direct_GCJ=yes
15627 hardcode_libdir_separator_GCJ=':'
15628 link_all_deplibs_GCJ=yes
15629
15630 if test "$GCC" = yes; then
15631 case $host_os in aix4.012|aix4.012.*)
15632 # We only want to do this on AIX 4.2 and lower, the check
15633 # below for broken collect2 doesn't work under 4.3+
15634 collect2name=`${CC} -print-prog-name=collect2`
15635 if test -f "$collect2name" && \
15636 strings "$collect2name" | grep resolve_lib_name >/dev/null
15637 then
15638 # We have reworked collect2
15639 hardcode_direct_GCJ=yes
15640 else
15641 # We have old collect2
15642 hardcode_direct_GCJ=unsupported
15643 # It fails to find uninstalled libraries when the uninstalled
15644 # path is not listed in the libpath. Setting hardcode_minus_L
15645 # to unsupported forces relinking
15646 hardcode_minus_L_GCJ=yes
15647 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15648 hardcode_libdir_separator_GCJ=
15649 fi
15650 esac
15651 shared_flag='-shared'
15652 else
15653 # not using gcc
15654 if test "$host_cpu" = ia64; then
15655 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15656 # chokes on -Wl,-G. The following line is correct:
15657 shared_flag='-G'
15658 else
15659 if test "$aix_use_runtimelinking" = yes; then
15660 shared_flag='${wl}-G'
15661 else
15662 shared_flag='${wl}-bM:SRE'
15663 fi
15664 fi
15665 fi
15666
15667 # It seems that -bexpall does not export symbols beginning with
15668 # underscore (_), so it is better to generate a list of symbols to export.
15669 always_export_symbols_GCJ=yes
15670 if test "$aix_use_runtimelinking" = yes; then
15671 # Warning - without using the other runtime loading flags (-brtl),
15672 # -berok will link without error, but may produce a broken library.
15673 allow_undefined_flag_GCJ='-berok'
15674 # Determine the default libpath from the value encoded in an empty executable.
15675 cat >conftest.$ac_ext <<_ACEOF
15676#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015677/* confdefs.h. */
15678_ACEOF
15679cat confdefs.h >>conftest.$ac_ext
15680cat >>conftest.$ac_ext <<_ACEOF
15681/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015682
John Criswell47fdd832003-07-14 16:52:07 +000015683int
15684main ()
15685{
15686
15687 ;
15688 return 0;
15689}
15690_ACEOF
15691rm -f conftest.$ac_objext conftest$ac_exeext
15692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15693 (eval $ac_link) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } &&
15697 { ac_try='test -s conftest$ac_exeext'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703
15704aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15705}'`
15706# Check for a 64-bit object if we didn't find anything.
15707if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15708}'`; fi
15709else
15710 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015711sed 's/^/| /' conftest.$ac_ext >&5
15712
John Criswell47fdd832003-07-14 16:52:07 +000015713fi
15714rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15715if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15716
15717 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15718 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15719 else
15720 if test "$host_cpu" = ia64; then
15721 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15722 allow_undefined_flag_GCJ="-z nodefs"
15723 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15724 else
15725 # Determine the default libpath from the value encoded in an empty executable.
15726 cat >conftest.$ac_ext <<_ACEOF
15727#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015728/* confdefs.h. */
15729_ACEOF
15730cat confdefs.h >>conftest.$ac_ext
15731cat >>conftest.$ac_ext <<_ACEOF
15732/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015733
John Criswell47fdd832003-07-14 16:52:07 +000015734int
15735main ()
15736{
15737
15738 ;
15739 return 0;
15740}
15741_ACEOF
15742rm -f conftest.$ac_objext conftest$ac_exeext
15743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15744 (eval $ac_link) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); } &&
15748 { ac_try='test -s conftest$ac_exeext'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754
15755aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15756}'`
15757# Check for a 64-bit object if we didn't find anything.
15758if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15759}'`; fi
15760else
15761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015762sed 's/^/| /' conftest.$ac_ext >&5
15763
John Criswell47fdd832003-07-14 16:52:07 +000015764fi
15765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15766if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15767
15768 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15769 # Warning - without using the other run time loading flags,
15770 # -berok will link without error, but may produce a broken library.
15771 no_undefined_flag_GCJ=' ${wl}-bernotok'
15772 allow_undefined_flag_GCJ=' ${wl}-berok'
15773 # -bexpall does not export symbols beginning with underscore (_)
15774 always_export_symbols_GCJ=yes
15775 # Exported symbols can be pulled into shared objects from archives
15776 whole_archive_flag_spec_GCJ=' '
15777 archive_cmds_need_lc_GCJ=yes
15778 # This is similar to how AIX traditionally builds it's shared libraries.
15779 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15780 fi
15781 fi
15782 ;;
15783
15784 amigaos*)
15785 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15786 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15787 hardcode_minus_L_GCJ=yes
15788 # see comment about different semantics on the GNU ld section
15789 ld_shlibs_GCJ=no
15790 ;;
15791
15792 bsdi4*)
15793 export_dynamic_flag_spec_GCJ=-rdynamic
15794 ;;
15795
15796 cygwin* | mingw* | pw32*)
15797 # When not using gcc, we currently assume that we are using
15798 # Microsoft Visual C++.
15799 # hardcode_libdir_flag_spec is actually meaningless, as there is
15800 # no search path for DLLs.
15801 hardcode_libdir_flag_spec_GCJ=' '
15802 allow_undefined_flag_GCJ=unsupported
15803 # Tell ltmain to make .lib files, not .a files.
15804 libext=lib
15805 # Tell ltmain to make .dll files, not .so files.
15806 shrext=".dll"
15807 # FIXME: Setting linknames here is a bad hack.
15808 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15809 # The linker will automatically build a .lib file if we build a DLL.
15810 old_archive_From_new_cmds_GCJ='true'
15811 # FIXME: Should let the user specify the lib program.
15812 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15813 fix_srcfile_path='`cygpath -w "$srcfile"`'
15814 enable_shared_with_static_runtimes_GCJ=yes
15815 ;;
15816
15817 darwin* | rhapsody*)
15818 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15819 archive_cmds_need_lc_GCJ=no
15820 case "$host_os" in
15821 rhapsody* | darwin1.[012])
15822 allow_undefined_flag_GCJ='-undefined suppress'
15823 ;;
15824 *) # Darwin 1.3 on
15825 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15826 ;;
15827 esac
15828 # FIXME: Relying on posixy $() will cause problems for
15829 # cross-compilation, but unfortunately the echo tests do not
15830 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15831 # `"' quotes if we put them in here... so don't!
15832 lt_int_apple_cc_single_mod=no
15833 output_verbose_link_cmd='echo'
15834 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15835 lt_int_apple_cc_single_mod=yes
15836 fi
15837 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15838 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15839 else
15840 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15841 fi
15842 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15843 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15844 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15845 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15846 else
15847 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15848 fi
15849 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15850 hardcode_direct_GCJ=no
15851 hardcode_automatic_GCJ=yes
15852 hardcode_shlibpath_var_GCJ=unsupported
15853 whole_archive_flag_spec_GCJ='-all_load $convenience'
15854 link_all_deplibs_GCJ=yes
15855 fi
15856 ;;
15857
15858 dgux*)
15859 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15860 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15861 hardcode_shlibpath_var_GCJ=no
15862 ;;
15863
15864 freebsd1*)
15865 ld_shlibs_GCJ=no
15866 ;;
15867
15868 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15869 # support. Future versions do this automatically, but an explicit c++rt0.o
15870 # does not break anything, and helps significantly (at the cost of a little
15871 # extra space).
15872 freebsd2.2*)
15873 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15874 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15875 hardcode_direct_GCJ=yes
15876 hardcode_shlibpath_var_GCJ=no
15877 ;;
15878
15879 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15880 freebsd2*)
15881 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15882 hardcode_direct_GCJ=yes
15883 hardcode_minus_L_GCJ=yes
15884 hardcode_shlibpath_var_GCJ=no
15885 ;;
15886
15887 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15888 freebsd*)
15889 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15890 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15891 hardcode_direct_GCJ=yes
15892 hardcode_shlibpath_var_GCJ=no
15893 ;;
15894
15895 hpux9*)
15896 if test "$GCC" = yes; then
15897 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15898 else
15899 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15900 fi
15901 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15902 hardcode_libdir_separator_GCJ=:
15903 hardcode_direct_GCJ=yes
15904
15905 # hardcode_minus_L: Not really in the search PATH,
15906 # but as the default location of the library.
15907 hardcode_minus_L_GCJ=yes
15908 export_dynamic_flag_spec_GCJ='${wl}-E'
15909 ;;
15910
15911 hpux10* | hpux11*)
15912 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15913 case "$host_cpu" in
15914 hppa*64*|ia64*)
15915 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15916 ;;
15917 *)
15918 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15919 ;;
15920 esac
15921 else
15922 case "$host_cpu" in
15923 hppa*64*|ia64*)
15924 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15925 ;;
15926 *)
15927 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15928 ;;
15929 esac
15930 fi
15931 if test "$with_gnu_ld" = no; then
15932 case "$host_cpu" in
15933 hppa*64*)
15934 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15935 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15936 hardcode_libdir_separator_GCJ=:
15937 hardcode_direct_GCJ=no
15938 hardcode_shlibpath_var_GCJ=no
15939 ;;
15940 ia64*)
15941 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15942 hardcode_direct_GCJ=no
15943 hardcode_shlibpath_var_GCJ=no
15944
15945 # hardcode_minus_L: Not really in the search PATH,
15946 # but as the default location of the library.
15947 hardcode_minus_L_GCJ=yes
15948 ;;
15949 *)
15950 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15951 hardcode_libdir_separator_GCJ=:
15952 hardcode_direct_GCJ=yes
15953 export_dynamic_flag_spec_GCJ='${wl}-E'
15954
15955 # hardcode_minus_L: Not really in the search PATH,
15956 # but as the default location of the library.
15957 hardcode_minus_L_GCJ=yes
15958 ;;
15959 esac
15960 fi
15961 ;;
15962
15963 irix5* | irix6* | nonstopux*)
15964 if test "$GCC" = yes; then
15965 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15966 else
15967 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15968 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15969 fi
15970 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15971 hardcode_libdir_separator_GCJ=:
15972 link_all_deplibs_GCJ=yes
15973 ;;
15974
15975 netbsd*)
15976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15977 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15978 else
15979 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15980 fi
15981 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15982 hardcode_direct_GCJ=yes
15983 hardcode_shlibpath_var_GCJ=no
15984 ;;
15985
15986 newsos6)
15987 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15988 hardcode_direct_GCJ=yes
15989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15990 hardcode_libdir_separator_GCJ=:
15991 hardcode_shlibpath_var_GCJ=no
15992 ;;
15993
15994 openbsd*)
15995 hardcode_direct_GCJ=yes
15996 hardcode_shlibpath_var_GCJ=no
15997 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15998 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16000 export_dynamic_flag_spec_GCJ='${wl}-E'
16001 else
16002 case $host_os in
16003 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16004 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16005 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16006 ;;
16007 *)
16008 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16010 ;;
16011 esac
16012 fi
16013 ;;
16014
16015 os2*)
16016 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16017 hardcode_minus_L_GCJ=yes
16018 allow_undefined_flag_GCJ=unsupported
16019 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16020 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16021 ;;
16022
16023 osf3*)
16024 if test "$GCC" = yes; then
16025 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16026 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16027 else
16028 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16029 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16030 fi
16031 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16032 hardcode_libdir_separator_GCJ=:
16033 ;;
16034
16035 osf4* | osf5*) # as osf3* with the addition of -msym flag
16036 if test "$GCC" = yes; then
16037 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16038 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16039 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16040 else
16041 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16042 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16043 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16044 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16045
16046 # Both c and cxx compiler support -rpath directly
16047 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16048 fi
16049 hardcode_libdir_separator_GCJ=:
16050 ;;
16051
16052 sco3.2v5*)
16053 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16054 hardcode_shlibpath_var_GCJ=no
16055 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16056 runpath_var=LD_RUN_PATH
16057 hardcode_runpath_var=yes
16058 ;;
16059
16060 solaris*)
16061 no_undefined_flag_GCJ=' -z text'
16062 if test "$GCC" = yes; then
16063 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16064 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16065 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16066 else
16067 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16068 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16069 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16070 fi
16071 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16072 hardcode_shlibpath_var_GCJ=no
16073 case $host_os in
16074 solaris2.[0-5] | solaris2.[0-5].*) ;;
16075 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16076 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16077 esac
16078 link_all_deplibs_GCJ=yes
16079 ;;
16080
16081 sunos4*)
16082 if test "x$host_vendor" = xsequent; then
16083 # Use $CC to link under sequent, because it throws in some extra .o
16084 # files that make .init and .fini sections work.
16085 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16086 else
16087 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16088 fi
16089 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16090 hardcode_direct_GCJ=yes
16091 hardcode_minus_L_GCJ=yes
16092 hardcode_shlibpath_var_GCJ=no
16093 ;;
16094
16095 sysv4)
16096 case $host_vendor in
16097 sni)
16098 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16099 hardcode_direct_GCJ=yes # is this really true???
16100 ;;
16101 siemens)
16102 ## LD is ld it makes a PLAMLIB
16103 ## CC just makes a GrossModule.
16104 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16105 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16106 hardcode_direct_GCJ=no
16107 ;;
16108 motorola)
16109 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16110 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16111 ;;
16112 esac
16113 runpath_var='LD_RUN_PATH'
16114 hardcode_shlibpath_var_GCJ=no
16115 ;;
16116
16117 sysv4.3*)
16118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119 hardcode_shlibpath_var_GCJ=no
16120 export_dynamic_flag_spec_GCJ='-Bexport'
16121 ;;
16122
16123 sysv4*MP*)
16124 if test -d /usr/nec; then
16125 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16126 hardcode_shlibpath_var_GCJ=no
16127 runpath_var=LD_RUN_PATH
16128 hardcode_runpath_var=yes
16129 ld_shlibs_GCJ=yes
16130 fi
16131 ;;
16132
16133 sysv4.2uw2*)
16134 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_direct_GCJ=yes
16136 hardcode_minus_L_GCJ=no
16137 hardcode_shlibpath_var_GCJ=no
16138 hardcode_runpath_var=yes
16139 runpath_var=LD_RUN_PATH
16140 ;;
16141
16142 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16143 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16144 if test "$GCC" = yes; then
16145 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16146 else
16147 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16148 fi
16149 runpath_var='LD_RUN_PATH'
16150 hardcode_shlibpath_var_GCJ=no
16151 ;;
16152
16153 sysv5*)
16154 no_undefined_flag_GCJ=' -z text'
16155 # $CC -shared without GNU ld will not create a library from C++
16156 # object files and a static libstdc++, better avoid it by now
16157 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16158 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16159 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16160 hardcode_libdir_flag_spec_GCJ=
16161 hardcode_shlibpath_var_GCJ=no
16162 runpath_var='LD_RUN_PATH'
16163 ;;
16164
16165 uts4*)
16166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16167 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16168 hardcode_shlibpath_var_GCJ=no
16169 ;;
16170
16171 *)
16172 ld_shlibs_GCJ=no
16173 ;;
16174 esac
16175 fi
16176
16177echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16178echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16179test "$ld_shlibs_GCJ" = no && can_build_shared=no
16180
16181variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16182if test "$GCC" = yes; then
16183 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16184fi
16185
16186#
16187# Do we need to explicitly link libc?
16188#
16189case "x$archive_cmds_need_lc_GCJ" in
16190x|xyes)
16191 # Assume -lc should be added
16192 archive_cmds_need_lc_GCJ=yes
16193
16194 if test "$enable_shared" = yes && test "$GCC" = yes; then
16195 case $archive_cmds_GCJ in
16196 *'~'*)
16197 # FIXME: we may have to deal with multi-command sequences.
16198 ;;
16199 '$CC '*)
16200 # Test whether the compiler implicitly links with -lc since on some
16201 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16202 # to ld, don't add -lc before -lgcc.
16203 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16204echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16205 $rm conftest*
16206 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16207
16208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16209 (eval $ac_compile) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } 2>conftest.err; then
16213 soname=conftest
16214 lib=conftest
16215 libobjs=conftest.$ac_objext
16216 deplibs=
16217 wl=$lt_prog_compiler_wl_GCJ
16218 compiler_flags=-v
16219 linker_flags=-v
16220 verstring=
16221 output_objdir=.
16222 libname=conftest
16223 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16224 allow_undefined_flag_GCJ=
16225 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16226 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }
16230 then
16231 archive_cmds_need_lc_GCJ=no
16232 else
16233 archive_cmds_need_lc_GCJ=yes
16234 fi
16235 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16236 else
16237 cat conftest.err 1>&5
16238 fi
16239 $rm conftest*
16240 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16241echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16242 ;;
16243 esac
16244 fi
16245 ;;
16246esac
16247
16248echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16249echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16250hardcode_action_GCJ=
16251if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16252 test -n "$runpath_var GCJ" || \
16253 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16254
16255 # We can hardcode non-existant directories.
16256 if test "$hardcode_direct_GCJ" != no &&
16257 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16258 # have to relink, otherwise we might link with an installed library
16259 # when we should be linking with a yet-to-be-installed one
16260 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16261 test "$hardcode_minus_L_GCJ" != no; then
16262 # Linking always hardcodes the temporary library directory.
16263 hardcode_action_GCJ=relink
16264 else
16265 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16266 hardcode_action_GCJ=immediate
16267 fi
16268else
16269 # We cannot hardcode anything, or else we can only hardcode existing
16270 # directories.
16271 hardcode_action_GCJ=unsupported
16272fi
16273echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16274echo "${ECHO_T}$hardcode_action_GCJ" >&6
16275
16276if test "$hardcode_action_GCJ" = relink; then
16277 # Fast installation is not supported
16278 enable_fast_install=no
16279elif test "$shlibpath_overrides_runpath" = yes ||
16280 test "$enable_shared" = no; then
16281 # Fast installation is not necessary
16282 enable_fast_install=needless
16283fi
16284
16285striplib=
16286old_striplib=
16287echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16288echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16289if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16290 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16291 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16292 echo "$as_me:$LINENO: result: yes" >&5
16293echo "${ECHO_T}yes" >&6
16294else
16295# FIXME - insert some real tests, host_os isn't really good enough
16296 case $host_os in
16297 darwin*)
16298 if test -n "$STRIP" ; then
16299 striplib="$STRIP -x"
16300 echo "$as_me:$LINENO: result: yes" >&5
16301echo "${ECHO_T}yes" >&6
16302 else
16303 echo "$as_me:$LINENO: result: no" >&5
16304echo "${ECHO_T}no" >&6
16305fi
16306 ;;
16307 *)
16308 echo "$as_me:$LINENO: result: no" >&5
16309echo "${ECHO_T}no" >&6
16310 ;;
16311 esac
16312fi
16313
16314echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16315echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16316library_names_spec=
16317libname_spec='lib$name'
16318soname_spec=
16319shrext=".so"
16320postinstall_cmds=
16321postuninstall_cmds=
16322finish_cmds=
16323finish_eval=
16324shlibpath_var=
16325shlibpath_overrides_runpath=unknown
16326version_type=none
16327dynamic_linker="$host_os ld.so"
16328sys_lib_dlsearch_path_spec="/lib /usr/lib"
16329if test "$GCC" = yes; then
16330 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16331 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16332 # if the path contains ";" then we assume it to be the separator
16333 # otherwise default to the standard path separator (i.e. ":") - it is
16334 # assumed that no part of a normal pathname contains ";" but that should
16335 # okay in the real world where ";" in dirpaths is itself problematic.
16336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16337 else
16338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16339 fi
16340else
16341 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16342fi
16343need_lib_prefix=unknown
16344hardcode_into_libs=no
16345
16346# when you set need_version to no, make sure it does not cause -set_version
16347# flags to be left without arguments
16348need_version=unknown
16349
16350case $host_os in
16351aix3*)
16352 version_type=linux
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16354 shlibpath_var=LIBPATH
16355
16356 # AIX 3 has no versioning support, so we append a major version to the name.
16357 soname_spec='${libname}${release}${shared_ext}$major'
16358 ;;
16359
16360aix4* | aix5*)
16361 version_type=linux
16362 need_lib_prefix=no
16363 need_version=no
16364 hardcode_into_libs=yes
16365 if test "$host_cpu" = ia64; then
16366 # AIX 5 supports IA64
16367 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16368 shlibpath_var=LD_LIBRARY_PATH
16369 else
16370 # With GCC up to 2.95.x, collect2 would create an import file
16371 # for dependence libraries. The import file would start with
16372 # the line `#! .'. This would cause the generated library to
16373 # depend on `.', always an invalid library. This was fixed in
16374 # development snapshots of GCC prior to 3.0.
16375 case $host_os in
16376 aix4 | aix4.[01] | aix4.[01].*)
16377 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16378 echo ' yes '
16379 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16380 :
16381 else
16382 can_build_shared=no
16383 fi
16384 ;;
16385 esac
16386 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16387 # soname into executable. Probably we can add versioning support to
16388 # collect2, so additional links can be useful in future.
16389 if test "$aix_use_runtimelinking" = yes; then
16390 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16391 # instead of lib<name>.a to let people know that these are not
16392 # typical AIX shared libraries.
16393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16394 else
16395 # We preserve .a as extension for shared libraries through AIX4.2
16396 # and later when we are not doing run time linking.
16397 library_names_spec='${libname}${release}.a $libname.a'
16398 soname_spec='${libname}${release}${shared_ext}$major'
16399 fi
16400 shlibpath_var=LIBPATH
16401 fi
16402 ;;
16403
16404amigaos*)
16405 library_names_spec='$libname.ixlibrary $libname.a'
16406 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16407 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
16408 ;;
16409
16410beos*)
16411 library_names_spec='${libname}${shared_ext}'
16412 dynamic_linker="$host_os ld.so"
16413 shlibpath_var=LIBRARY_PATH
16414 ;;
16415
16416bsdi4*)
16417 version_type=linux
16418 need_version=no
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16424 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16425 # the default ld.so.conf also contains /usr/contrib/lib and
16426 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16427 # libtool to hard-code these into programs
16428 ;;
16429
16430cygwin* | mingw* | pw32*)
16431 version_type=windows
16432 shrext=".dll"
16433 need_version=no
16434 need_lib_prefix=no
16435
16436 case $GCC,$host_os in
16437 yes,cygwin* | yes,mingw* | yes,pw32*)
16438 library_names_spec='$libname.dll.a'
16439 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16440 postinstall_cmds='base_file=`basename \${file}`~
16441 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16442 dldir=$destdir/`dirname \$dlpath`~
16443 test -d \$dldir || mkdir -p \$dldir~
16444 $install_prog $dir/$dlname \$dldir/$dlname'
16445 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16446 dlpath=$dir/\$dldll~
16447 $rm \$dlpath'
16448 shlibpath_overrides_runpath=yes
16449
16450 case $host_os in
16451 cygwin*)
16452 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16453 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16454 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16455 ;;
16456 mingw*)
16457 # MinGW DLLs use traditional 'lib' prefix
16458 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16459 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16460 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16461 # It is most probably a Windows format PATH printed by
16462 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16463 # path with ; separators, and with drive letters. We can handle the
16464 # drive letters (cygwin fileutils understands them), so leave them,
16465 # especially as we might pass files found there to a mingw objdump,
16466 # which wouldn't understand a cygwinified path. Ahh.
16467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16468 else
16469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16470 fi
16471 ;;
16472 pw32*)
16473 # pw32 DLLs use 'pw' prefix rather than 'lib'
16474 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16475 ;;
16476 esac
16477 ;;
16478
16479 *)
16480 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16481 ;;
16482 esac
16483 dynamic_linker='Win32 ld.exe'
16484 # FIXME: first we should search . and the directory the executable is in
16485 shlibpath_var=PATH
16486 ;;
16487
16488darwin* | rhapsody*)
16489 dynamic_linker="$host_os dyld"
16490 version_type=darwin
16491 need_lib_prefix=no
16492 need_version=no
16493 # FIXME: Relying on posixy $() will cause problems for
16494 # cross-compilation, but unfortunately the echo tests do not
16495 # yet detect zsh echo's removal of \ escapes.
16496 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16497 soname_spec='${libname}${release}${major}$shared_ext'
16498 shlibpath_overrides_runpath=yes
16499 shlibpath_var=DYLD_LIBRARY_PATH
16500 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16501 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16502 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16503 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16504 fi
16505 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16506 ;;
16507
16508dgux*)
16509 version_type=linux
16510 need_lib_prefix=no
16511 need_version=no
16512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16513 soname_spec='${libname}${release}${shared_ext}$major'
16514 shlibpath_var=LD_LIBRARY_PATH
16515 ;;
16516
16517freebsd1*)
16518 dynamic_linker=no
16519 ;;
16520
16521freebsd*)
16522 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16523 version_type=freebsd-$objformat
16524 case $version_type in
16525 freebsd-elf*)
16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16527 need_version=no
16528 need_lib_prefix=no
16529 ;;
16530 freebsd-*)
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16532 need_version=yes
16533 ;;
16534 esac
16535 shlibpath_var=LD_LIBRARY_PATH
16536 case $host_os in
16537 freebsd2*)
16538 shlibpath_overrides_runpath=yes
16539 ;;
16540 freebsd3.01* | freebsdelf3.01*)
16541 shlibpath_overrides_runpath=yes
16542 hardcode_into_libs=yes
16543 ;;
16544 *) # from 3.2 on
16545 shlibpath_overrides_runpath=no
16546 hardcode_into_libs=yes
16547 ;;
16548 esac
16549 ;;
16550
16551gnu*)
16552 version_type=linux
16553 need_lib_prefix=no
16554 need_version=no
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16556 soname_spec='${libname}${release}${shared_ext}$major'
16557 shlibpath_var=LD_LIBRARY_PATH
16558 hardcode_into_libs=yes
16559 ;;
16560
16561hpux9* | hpux10* | hpux11*)
16562 # Give a soname corresponding to the major version so that dld.sl refuses to
16563 # link against other versions.
16564 version_type=sunos
16565 need_lib_prefix=no
16566 need_version=no
16567 case "$host_cpu" in
16568 ia64*)
16569 shrext='.so'
16570 hardcode_into_libs=yes
16571 dynamic_linker="$host_os dld.so"
16572 shlibpath_var=LD_LIBRARY_PATH
16573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16575 soname_spec='${libname}${release}${shared_ext}$major'
16576 if test "X$HPUX_IA64_MODE" = X32; then
16577 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16578 else
16579 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16580 fi
16581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16582 ;;
16583 hppa*64*)
16584 shrext='.sl'
16585 hardcode_into_libs=yes
16586 dynamic_linker="$host_os dld.sl"
16587 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16590 soname_spec='${libname}${release}${shared_ext}$major'
16591 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16593 ;;
16594 *)
16595 shrext='.sl'
16596 dynamic_linker="$host_os dld.sl"
16597 shlibpath_var=SHLIB_PATH
16598 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600 soname_spec='${libname}${release}${shared_ext}$major'
16601 ;;
16602 esac
16603 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16604 postinstall_cmds='chmod 555 $lib'
16605 ;;
16606
16607irix5* | irix6* | nonstopux*)
16608 case $host_os in
16609 nonstopux*) version_type=nonstopux ;;
16610 *)
16611 if test "$lt_cv_prog_gnu_ld" = yes; then
16612 version_type=linux
16613 else
16614 version_type=irix
16615 fi ;;
16616 esac
16617 need_lib_prefix=no
16618 need_version=no
16619 soname_spec='${libname}${release}${shared_ext}$major'
16620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16621 case $host_os in
16622 irix5* | nonstopux*)
16623 libsuff= shlibsuff=
16624 ;;
16625 *)
16626 case $LD in # libtool.m4 will add one of these switches to LD
16627 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16628 libsuff= shlibsuff= libmagic=32-bit;;
16629 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16630 libsuff=32 shlibsuff=N32 libmagic=N32;;
16631 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16632 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16633 *) libsuff= shlibsuff= libmagic=never-match;;
16634 esac
16635 ;;
16636 esac
16637 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16638 shlibpath_overrides_runpath=no
16639 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16640 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16641 hardcode_into_libs=yes
16642 ;;
16643
16644# No shared lib support for Linux oldld, aout, or coff.
16645linux*oldld* | linux*aout* | linux*coff*)
16646 dynamic_linker=no
16647 ;;
16648
16649# This must be Linux ELF.
16650linux*)
16651 version_type=linux
16652 need_lib_prefix=no
16653 need_version=no
16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16655 soname_spec='${libname}${release}${shared_ext}$major'
16656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16657 shlibpath_var=LD_LIBRARY_PATH
16658 shlibpath_overrides_runpath=no
16659 # This implies no fast_install, which is unacceptable.
16660 # Some rework will be needed to allow for fast_install
16661 # before this can be enabled.
16662 hardcode_into_libs=yes
16663
16664 # We used to test for /lib/ld.so.1 and disable shared libraries on
16665 # powerpc, because MkLinux only supported shared libraries with the
16666 # GNU dynamic linker. Since this was broken with cross compilers,
16667 # most powerpc-linux boxes support dynamic linking these days and
16668 # people can always --disable-shared, the test was removed, and we
16669 # assume the GNU/Linux dynamic linker is in use.
16670 dynamic_linker='GNU/Linux ld.so'
16671 ;;
16672
16673netbsd*)
16674 version_type=sunos
16675 need_lib_prefix=no
16676 need_version=no
16677 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16680 dynamic_linker='NetBSD (a.out) ld.so'
16681 else
16682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16683 soname_spec='${libname}${release}${shared_ext}$major'
16684 dynamic_linker='NetBSD ld.elf_so'
16685 fi
16686 shlibpath_var=LD_LIBRARY_PATH
16687 shlibpath_overrides_runpath=yes
16688 hardcode_into_libs=yes
16689 ;;
16690
16691newsos6)
16692 version_type=linux
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694 shlibpath_var=LD_LIBRARY_PATH
16695 shlibpath_overrides_runpath=yes
16696 ;;
16697
16698nto-qnx)
16699 version_type=linux
16700 need_lib_prefix=no
16701 need_version=no
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703 soname_spec='${libname}${release}${shared_ext}$major'
16704 shlibpath_var=LD_LIBRARY_PATH
16705 shlibpath_overrides_runpath=yes
16706 ;;
16707
16708openbsd*)
16709 version_type=sunos
16710 need_lib_prefix=no
16711 need_version=no
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16714 shlibpath_var=LD_LIBRARY_PATH
16715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16716 case $host_os in
16717 openbsd2.[89] | openbsd2.[89].*)
16718 shlibpath_overrides_runpath=no
16719 ;;
16720 *)
16721 shlibpath_overrides_runpath=yes
16722 ;;
16723 esac
16724 else
16725 shlibpath_overrides_runpath=yes
16726 fi
16727 ;;
16728
16729os2*)
16730 libname_spec='$name'
16731 shrext=".dll"
16732 need_lib_prefix=no
16733 library_names_spec='$libname${shared_ext} $libname.a'
16734 dynamic_linker='OS/2 ld.exe'
16735 shlibpath_var=LIBPATH
16736 ;;
16737
16738osf3* | osf4* | osf5*)
16739 version_type=osf
16740 need_lib_prefix=no
16741 need_version=no
16742 soname_spec='${libname}${release}${shared_ext}$major'
16743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16744 shlibpath_var=LD_LIBRARY_PATH
16745 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16746 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16747 ;;
16748
16749sco3.2v5*)
16750 version_type=osf
16751 soname_spec='${libname}${release}${shared_ext}$major'
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753 shlibpath_var=LD_LIBRARY_PATH
16754 ;;
16755
16756solaris*)
16757 version_type=linux
16758 need_lib_prefix=no
16759 need_version=no
16760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16761 soname_spec='${libname}${release}${shared_ext}$major'
16762 shlibpath_var=LD_LIBRARY_PATH
16763 shlibpath_overrides_runpath=yes
16764 hardcode_into_libs=yes
16765 # ldd complains unless libraries are executable
16766 postinstall_cmds='chmod +x $lib'
16767 ;;
16768
16769sunos4*)
16770 version_type=sunos
16771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16772 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16773 shlibpath_var=LD_LIBRARY_PATH
16774 shlibpath_overrides_runpath=yes
16775 if test "$with_gnu_ld" = yes; then
16776 need_lib_prefix=no
16777 fi
16778 need_version=yes
16779 ;;
16780
16781sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16782 version_type=linux
16783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16784 soname_spec='${libname}${release}${shared_ext}$major'
16785 shlibpath_var=LD_LIBRARY_PATH
16786 case $host_vendor in
16787 sni)
16788 shlibpath_overrides_runpath=no
16789 need_lib_prefix=no
16790 export_dynamic_flag_spec='${wl}-Blargedynsym'
16791 runpath_var=LD_RUN_PATH
16792 ;;
16793 siemens)
16794 need_lib_prefix=no
16795 ;;
16796 motorola)
16797 need_lib_prefix=no
16798 need_version=no
16799 shlibpath_overrides_runpath=no
16800 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16801 ;;
16802 esac
16803 ;;
16804
16805sysv4*MP*)
16806 if test -d /usr/nec ;then
16807 version_type=linux
16808 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16809 soname_spec='$libname${shared_ext}.$major'
16810 shlibpath_var=LD_LIBRARY_PATH
16811 fi
16812 ;;
16813
16814uts4*)
16815 version_type=linux
16816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16817 soname_spec='${libname}${release}${shared_ext}$major'
16818 shlibpath_var=LD_LIBRARY_PATH
16819 ;;
16820
16821*)
16822 dynamic_linker=no
16823 ;;
16824esac
16825echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16826echo "${ECHO_T}$dynamic_linker" >&6
16827test "$dynamic_linker" = no && can_build_shared=no
16828
16829if test "x$enable_dlopen" != xyes; then
16830 enable_dlopen=unknown
16831 enable_dlopen_self=unknown
16832 enable_dlopen_self_static=unknown
16833else
16834 lt_cv_dlopen=no
16835 lt_cv_dlopen_libs=
16836
16837 case $host_os in
16838 beos*)
16839 lt_cv_dlopen="load_add_on"
16840 lt_cv_dlopen_libs=
16841 lt_cv_dlopen_self=yes
16842 ;;
16843
16844 mingw* | pw32*)
16845 lt_cv_dlopen="LoadLibrary"
16846 lt_cv_dlopen_libs=
16847 ;;
16848
16849 cygwin*)
16850 lt_cv_dlopen="dlopen"
16851 lt_cv_dlopen_libs=
16852 ;;
16853
16854 darwin*)
16855 # if libdl is installed we need to link against it
16856 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16857echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16858if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16860else
16861 ac_check_lib_save_LIBS=$LIBS
16862LIBS="-ldl $LIBS"
16863cat >conftest.$ac_ext <<_ACEOF
16864#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016865/* confdefs.h. */
16866_ACEOF
16867cat confdefs.h >>conftest.$ac_ext
16868cat >>conftest.$ac_ext <<_ACEOF
16869/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016870
16871/* Override any gcc2 internal prototype to avoid an error. */
16872#ifdef __cplusplus
16873extern "C"
16874#endif
16875/* We use char because int might match the return type of a gcc2
16876 builtin and then its argument prototype would still apply. */
16877char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016878int
16879main ()
16880{
16881dlopen ();
16882 ;
16883 return 0;
16884}
16885_ACEOF
16886rm -f conftest.$ac_objext conftest$ac_exeext
16887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16888 (eval $ac_link) 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
16892 { ac_try='test -s conftest$ac_exeext'
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 ac_cv_lib_dl_dlopen=yes
16899else
16900 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016901sed 's/^/| /' conftest.$ac_ext >&5
16902
John Criswell47fdd832003-07-14 16:52:07 +000016903ac_cv_lib_dl_dlopen=no
16904fi
16905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16906LIBS=$ac_check_lib_save_LIBS
16907fi
16908echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16909echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16910if test $ac_cv_lib_dl_dlopen = yes; then
16911 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16912else
16913
16914 lt_cv_dlopen="dyld"
16915 lt_cv_dlopen_libs=
16916 lt_cv_dlopen_self=yes
16917
16918fi
16919
16920 ;;
16921
16922 *)
16923 echo "$as_me:$LINENO: checking for shl_load" >&5
16924echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16925if test "${ac_cv_func_shl_load+set}" = set; then
16926 echo $ECHO_N "(cached) $ECHO_C" >&6
16927else
16928 cat >conftest.$ac_ext <<_ACEOF
16929#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016930/* confdefs.h. */
16931_ACEOF
16932cat confdefs.h >>conftest.$ac_ext
16933cat >>conftest.$ac_ext <<_ACEOF
16934/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016935/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016936 which can conflict with char shl_load (); below.
16937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16938 <limits.h> exists even on freestanding compilers. */
16939#ifdef __STDC__
16940# include <limits.h>
16941#else
16942# include <assert.h>
16943#endif
John Criswell47fdd832003-07-14 16:52:07 +000016944/* Override any gcc2 internal prototype to avoid an error. */
16945#ifdef __cplusplus
16946extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016947{
John Criswell47fdd832003-07-14 16:52:07 +000016948#endif
16949/* We use char because int might match the return type of a gcc2
16950 builtin and then its argument prototype would still apply. */
16951char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016952/* The GNU C library defines this for functions which it implements
16953 to always fail with ENOSYS. Some functions are actually named
16954 something starting with __ and the normal name is an alias. */
16955#if defined (__stub_shl_load) || defined (__stub___shl_load)
16956choke me
16957#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016958char (*f) () = shl_load;
16959#endif
16960#ifdef __cplusplus
16961}
John Criswell47fdd832003-07-14 16:52:07 +000016962#endif
16963
John Criswell0c38eaf2003-09-10 15:17:25 +000016964int
16965main ()
16966{
16967return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016968 ;
16969 return 0;
16970}
16971_ACEOF
16972rm -f conftest.$ac_objext conftest$ac_exeext
16973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16974 (eval $ac_link) 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } &&
16978 { ac_try='test -s conftest$ac_exeext'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; }; then
16984 ac_cv_func_shl_load=yes
16985else
16986 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016987sed 's/^/| /' conftest.$ac_ext >&5
16988
John Criswell47fdd832003-07-14 16:52:07 +000016989ac_cv_func_shl_load=no
16990fi
16991rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16992fi
16993echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16994echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16995if test $ac_cv_func_shl_load = yes; then
16996 lt_cv_dlopen="shl_load"
16997else
16998 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16999echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17000if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17002else
17003 ac_check_lib_save_LIBS=$LIBS
17004LIBS="-ldld $LIBS"
17005cat >conftest.$ac_ext <<_ACEOF
17006#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017007/* confdefs.h. */
17008_ACEOF
17009cat confdefs.h >>conftest.$ac_ext
17010cat >>conftest.$ac_ext <<_ACEOF
17011/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017012
17013/* Override any gcc2 internal prototype to avoid an error. */
17014#ifdef __cplusplus
17015extern "C"
17016#endif
17017/* We use char because int might match the return type of a gcc2
17018 builtin and then its argument prototype would still apply. */
17019char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017020int
17021main ()
17022{
17023shl_load ();
17024 ;
17025 return 0;
17026}
17027_ACEOF
17028rm -f conftest.$ac_objext conftest$ac_exeext
17029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17030 (eval $ac_link) 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
17034 { ac_try='test -s conftest$ac_exeext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_cv_lib_dld_shl_load=yes
17041else
17042 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017043sed 's/^/| /' conftest.$ac_ext >&5
17044
John Criswell47fdd832003-07-14 16:52:07 +000017045ac_cv_lib_dld_shl_load=no
17046fi
17047rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17048LIBS=$ac_check_lib_save_LIBS
17049fi
17050echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17051echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17052if test $ac_cv_lib_dld_shl_load = yes; then
17053 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17054else
17055 echo "$as_me:$LINENO: checking for dlopen" >&5
17056echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17057if test "${ac_cv_func_dlopen+set}" = set; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17059else
17060 cat >conftest.$ac_ext <<_ACEOF
17061#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017062/* confdefs.h. */
17063_ACEOF
17064cat confdefs.h >>conftest.$ac_ext
17065cat >>conftest.$ac_ext <<_ACEOF
17066/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017067/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017068 which can conflict with char dlopen (); below.
17069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17070 <limits.h> exists even on freestanding compilers. */
17071#ifdef __STDC__
17072# include <limits.h>
17073#else
17074# include <assert.h>
17075#endif
John Criswell47fdd832003-07-14 16:52:07 +000017076/* Override any gcc2 internal prototype to avoid an error. */
17077#ifdef __cplusplus
17078extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017079{
John Criswell47fdd832003-07-14 16:52:07 +000017080#endif
17081/* We use char because int might match the return type of a gcc2
17082 builtin and then its argument prototype would still apply. */
17083char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017084/* The GNU C library defines this for functions which it implements
17085 to always fail with ENOSYS. Some functions are actually named
17086 something starting with __ and the normal name is an alias. */
17087#if defined (__stub_dlopen) || defined (__stub___dlopen)
17088choke me
17089#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017090char (*f) () = dlopen;
17091#endif
17092#ifdef __cplusplus
17093}
John Criswell47fdd832003-07-14 16:52:07 +000017094#endif
17095
John Criswell0c38eaf2003-09-10 15:17:25 +000017096int
17097main ()
17098{
17099return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017100 ;
17101 return 0;
17102}
17103_ACEOF
17104rm -f conftest.$ac_objext conftest$ac_exeext
17105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106 (eval $ac_link) 2>&5
17107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } &&
17110 { ac_try='test -s conftest$ac_exeext'
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 ac_cv_func_dlopen=yes
17117else
17118 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017119sed 's/^/| /' conftest.$ac_ext >&5
17120
John Criswell47fdd832003-07-14 16:52:07 +000017121ac_cv_func_dlopen=no
17122fi
17123rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17124fi
17125echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17126echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17127if test $ac_cv_func_dlopen = yes; then
17128 lt_cv_dlopen="dlopen"
17129else
17130 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17131echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17132if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17134else
17135 ac_check_lib_save_LIBS=$LIBS
17136LIBS="-ldl $LIBS"
17137cat >conftest.$ac_ext <<_ACEOF
17138#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017139/* confdefs.h. */
17140_ACEOF
17141cat confdefs.h >>conftest.$ac_ext
17142cat >>conftest.$ac_ext <<_ACEOF
17143/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017144
17145/* Override any gcc2 internal prototype to avoid an error. */
17146#ifdef __cplusplus
17147extern "C"
17148#endif
17149/* We use char because int might match the return type of a gcc2
17150 builtin and then its argument prototype would still apply. */
17151char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017152int
17153main ()
17154{
17155dlopen ();
17156 ;
17157 return 0;
17158}
17159_ACEOF
17160rm -f conftest.$ac_objext conftest$ac_exeext
17161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17162 (eval $ac_link) 2>&5
17163 ac_status=$?
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -s conftest$ac_exeext'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17172 ac_cv_lib_dl_dlopen=yes
17173else
17174 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017175sed 's/^/| /' conftest.$ac_ext >&5
17176
John Criswell47fdd832003-07-14 16:52:07 +000017177ac_cv_lib_dl_dlopen=no
17178fi
17179rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17180LIBS=$ac_check_lib_save_LIBS
17181fi
17182echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17183echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17184if test $ac_cv_lib_dl_dlopen = yes; then
17185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17186else
17187 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17188echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17189if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17190 echo $ECHO_N "(cached) $ECHO_C" >&6
17191else
17192 ac_check_lib_save_LIBS=$LIBS
17193LIBS="-lsvld $LIBS"
17194cat >conftest.$ac_ext <<_ACEOF
17195#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017196/* confdefs.h. */
17197_ACEOF
17198cat confdefs.h >>conftest.$ac_ext
17199cat >>conftest.$ac_ext <<_ACEOF
17200/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017201
17202/* Override any gcc2 internal prototype to avoid an error. */
17203#ifdef __cplusplus
17204extern "C"
17205#endif
17206/* We use char because int might match the return type of a gcc2
17207 builtin and then its argument prototype would still apply. */
17208char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017209int
17210main ()
17211{
17212dlopen ();
17213 ;
17214 return 0;
17215}
17216_ACEOF
17217rm -f conftest.$ac_objext conftest$ac_exeext
17218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17219 (eval $ac_link) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } &&
17223 { ac_try='test -s conftest$ac_exeext'
17224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17226 ac_status=$?
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 ac_cv_lib_svld_dlopen=yes
17230else
17231 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017232sed 's/^/| /' conftest.$ac_ext >&5
17233
John Criswell47fdd832003-07-14 16:52:07 +000017234ac_cv_lib_svld_dlopen=no
17235fi
17236rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17237LIBS=$ac_check_lib_save_LIBS
17238fi
17239echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17240echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17241if test $ac_cv_lib_svld_dlopen = yes; then
17242 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17243else
17244 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17245echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17246if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17247 echo $ECHO_N "(cached) $ECHO_C" >&6
17248else
17249 ac_check_lib_save_LIBS=$LIBS
17250LIBS="-ldld $LIBS"
17251cat >conftest.$ac_ext <<_ACEOF
17252#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017253/* confdefs.h. */
17254_ACEOF
17255cat confdefs.h >>conftest.$ac_ext
17256cat >>conftest.$ac_ext <<_ACEOF
17257/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017258
17259/* Override any gcc2 internal prototype to avoid an error. */
17260#ifdef __cplusplus
17261extern "C"
17262#endif
17263/* We use char because int might match the return type of a gcc2
17264 builtin and then its argument prototype would still apply. */
17265char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017266int
17267main ()
17268{
17269dld_link ();
17270 ;
17271 return 0;
17272}
17273_ACEOF
17274rm -f conftest.$ac_objext conftest$ac_exeext
17275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17276 (eval $ac_link) 2>&5
17277 ac_status=$?
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
17280 { ac_try='test -s conftest$ac_exeext'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286 ac_cv_lib_dld_dld_link=yes
17287else
17288 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017289sed 's/^/| /' conftest.$ac_ext >&5
17290
John Criswell47fdd832003-07-14 16:52:07 +000017291ac_cv_lib_dld_dld_link=no
17292fi
17293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17294LIBS=$ac_check_lib_save_LIBS
17295fi
17296echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17297echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17298if test $ac_cv_lib_dld_dld_link = yes; then
17299 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17300fi
17301
17302
17303fi
17304
17305
17306fi
17307
17308
17309fi
17310
17311
17312fi
17313
17314
17315fi
17316
17317 ;;
17318 esac
17319
17320 if test "x$lt_cv_dlopen" != xno; then
17321 enable_dlopen=yes
17322 else
17323 enable_dlopen=no
17324 fi
17325
17326 case $lt_cv_dlopen in
17327 dlopen)
17328 save_CPPFLAGS="$CPPFLAGS"
17329 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17330
17331 save_LDFLAGS="$LDFLAGS"
17332 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17333
17334 save_LIBS="$LIBS"
17335 LIBS="$lt_cv_dlopen_libs $LIBS"
17336
17337 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17338echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17339if test "${lt_cv_dlopen_self+set}" = set; then
17340 echo $ECHO_N "(cached) $ECHO_C" >&6
17341else
17342 if test "$cross_compiling" = yes; then :
17343 lt_cv_dlopen_self=cross
17344else
17345 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17346 lt_status=$lt_dlunknown
17347 cat > conftest.$ac_ext <<EOF
John Criswell7ec78aa2003-10-16 01:49:00 +000017348#line 17348 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017349#include "confdefs.h"
17350
17351#if HAVE_DLFCN_H
17352#include <dlfcn.h>
17353#endif
17354
17355#include <stdio.h>
17356
17357#ifdef RTLD_GLOBAL
17358# define LT_DLGLOBAL RTLD_GLOBAL
17359#else
17360# ifdef DL_GLOBAL
17361# define LT_DLGLOBAL DL_GLOBAL
17362# else
17363# define LT_DLGLOBAL 0
17364# endif
17365#endif
17366
17367/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17368 find out it does not work in some platform. */
17369#ifndef LT_DLLAZY_OR_NOW
17370# ifdef RTLD_LAZY
17371# define LT_DLLAZY_OR_NOW RTLD_LAZY
17372# else
17373# ifdef DL_LAZY
17374# define LT_DLLAZY_OR_NOW DL_LAZY
17375# else
17376# ifdef RTLD_NOW
17377# define LT_DLLAZY_OR_NOW RTLD_NOW
17378# else
17379# ifdef DL_NOW
17380# define LT_DLLAZY_OR_NOW DL_NOW
17381# else
17382# define LT_DLLAZY_OR_NOW 0
17383# endif
17384# endif
17385# endif
17386# endif
17387#endif
17388
17389#ifdef __cplusplus
17390extern "C" void exit (int);
17391#endif
17392
17393void fnord() { int i=42;}
17394int main ()
17395{
17396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17397 int status = $lt_dlunknown;
17398
17399 if (self)
17400 {
17401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17402 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17403 /* dlclose (self); */
17404 }
17405
17406 exit (status);
17407}
17408EOF
17409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17410 (eval $ac_link) 2>&5
17411 ac_status=$?
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17414 (./conftest; exit; ) 2>/dev/null
17415 lt_status=$?
17416 case x$lt_status in
17417 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17418 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17419 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17420 esac
17421 else :
17422 # compilation failed
17423 lt_cv_dlopen_self=no
17424 fi
17425fi
17426rm -fr conftest*
17427
17428
17429fi
17430echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17431echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17432
17433 if test "x$lt_cv_dlopen_self" = xyes; then
17434 LDFLAGS="$LDFLAGS $link_static_flag"
17435 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17436echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17437if test "${lt_cv_dlopen_self_static+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17439else
17440 if test "$cross_compiling" = yes; then :
17441 lt_cv_dlopen_self_static=cross
17442else
17443 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17444 lt_status=$lt_dlunknown
17445 cat > conftest.$ac_ext <<EOF
John Criswell7ec78aa2003-10-16 01:49:00 +000017446#line 17446 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017447#include "confdefs.h"
17448
17449#if HAVE_DLFCN_H
17450#include <dlfcn.h>
17451#endif
17452
17453#include <stdio.h>
17454
17455#ifdef RTLD_GLOBAL
17456# define LT_DLGLOBAL RTLD_GLOBAL
17457#else
17458# ifdef DL_GLOBAL
17459# define LT_DLGLOBAL DL_GLOBAL
17460# else
17461# define LT_DLGLOBAL 0
17462# endif
17463#endif
17464
17465/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17466 find out it does not work in some platform. */
17467#ifndef LT_DLLAZY_OR_NOW
17468# ifdef RTLD_LAZY
17469# define LT_DLLAZY_OR_NOW RTLD_LAZY
17470# else
17471# ifdef DL_LAZY
17472# define LT_DLLAZY_OR_NOW DL_LAZY
17473# else
17474# ifdef RTLD_NOW
17475# define LT_DLLAZY_OR_NOW RTLD_NOW
17476# else
17477# ifdef DL_NOW
17478# define LT_DLLAZY_OR_NOW DL_NOW
17479# else
17480# define LT_DLLAZY_OR_NOW 0
17481# endif
17482# endif
17483# endif
17484# endif
17485#endif
17486
17487#ifdef __cplusplus
17488extern "C" void exit (int);
17489#endif
17490
17491void fnord() { int i=42;}
17492int main ()
17493{
17494 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17495 int status = $lt_dlunknown;
17496
17497 if (self)
17498 {
17499 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17500 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17501 /* dlclose (self); */
17502 }
17503
17504 exit (status);
17505}
17506EOF
17507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17508 (eval $ac_link) 2>&5
17509 ac_status=$?
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17512 (./conftest; exit; ) 2>/dev/null
17513 lt_status=$?
17514 case x$lt_status in
17515 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17516 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17517 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17518 esac
17519 else :
17520 # compilation failed
17521 lt_cv_dlopen_self_static=no
17522 fi
17523fi
17524rm -fr conftest*
17525
17526
17527fi
17528echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17529echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17530 fi
17531
17532 CPPFLAGS="$save_CPPFLAGS"
17533 LDFLAGS="$save_LDFLAGS"
17534 LIBS="$save_LIBS"
17535 ;;
17536 esac
17537
17538 case $lt_cv_dlopen_self in
17539 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17540 *) enable_dlopen_self=unknown ;;
17541 esac
17542
17543 case $lt_cv_dlopen_self_static in
17544 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17545 *) enable_dlopen_self_static=unknown ;;
17546 esac
17547fi
17548
17549
17550# The else clause should only fire when bootstrapping the
17551# libtool distribution, otherwise you forgot to ship ltmain.sh
17552# with your package, and you will get complaints that there are
17553# no rules to generate ltmain.sh.
17554if test -f "$ltmain"; then
17555 # See if we are running on zsh, and set the options which allow our commands through
17556 # without removal of \ escapes.
17557 if test -n "${ZSH_VERSION+set}" ; then
17558 setopt NO_GLOB_SUBST
17559 fi
17560 # Now quote all the things that may contain metacharacters while being
17561 # careful not to overquote the AC_SUBSTed values. We take copies of the
17562 # variables and quote the copies for generation of the libtool script.
17563 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17564 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17565 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17566 deplibs_check_method reload_flag reload_cmds need_locks \
17567 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17568 lt_cv_sys_global_symbol_to_c_name_address \
17569 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17570 old_postinstall_cmds old_postuninstall_cmds \
17571 compiler_GCJ \
17572 CC_GCJ \
17573 LD_GCJ \
17574 lt_prog_compiler_wl_GCJ \
17575 lt_prog_compiler_pic_GCJ \
17576 lt_prog_compiler_static_GCJ \
17577 lt_prog_compiler_no_builtin_flag_GCJ \
17578 export_dynamic_flag_spec_GCJ \
17579 thread_safe_flag_spec_GCJ \
17580 whole_archive_flag_spec_GCJ \
17581 enable_shared_with_static_runtimes_GCJ \
17582 old_archive_cmds_GCJ \
17583 old_archive_from_new_cmds_GCJ \
17584 predep_objects_GCJ \
17585 postdep_objects_GCJ \
17586 predeps_GCJ \
17587 postdeps_GCJ \
17588 compiler_lib_search_path_GCJ \
17589 archive_cmds_GCJ \
17590 archive_expsym_cmds_GCJ \
17591 postinstall_cmds_GCJ \
17592 postuninstall_cmds_GCJ \
17593 old_archive_from_expsyms_cmds_GCJ \
17594 allow_undefined_flag_GCJ \
17595 no_undefined_flag_GCJ \
17596 export_symbols_cmds_GCJ \
17597 hardcode_libdir_flag_spec_GCJ \
17598 hardcode_libdir_flag_spec_ld_GCJ \
17599 hardcode_libdir_separator_GCJ \
17600 hardcode_automatic_GCJ \
17601 module_cmds_GCJ \
17602 module_expsym_cmds_GCJ \
17603 lt_cv_prog_compiler_c_o_GCJ \
17604 exclude_expsyms_GCJ \
17605 include_expsyms_GCJ; do
17606
17607 case $var in
17608 old_archive_cmds_GCJ | \
17609 old_archive_from_new_cmds_GCJ | \
17610 archive_cmds_GCJ | \
17611 archive_expsym_cmds_GCJ | \
17612 module_cmds_GCJ | \
17613 module_expsym_cmds_GCJ | \
17614 old_archive_from_expsyms_cmds_GCJ | \
17615 export_symbols_cmds_GCJ | \
17616 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17617 postinstall_cmds | postuninstall_cmds | \
17618 old_postinstall_cmds | old_postuninstall_cmds | \
17619 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17620 # Double-quote double-evaled strings.
17621 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17622 ;;
17623 *)
17624 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17625 ;;
17626 esac
17627 done
17628
17629 case $lt_echo in
17630 *'\$0 --fallback-echo"')
17631 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17632 ;;
17633 esac
17634
17635cfgfile="$ofile"
17636
17637 cat <<__EOF__ >> "$cfgfile"
17638# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17639
17640# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17641
17642# Shell to use when invoking shell scripts.
17643SHELL=$lt_SHELL
17644
17645# Whether or not to build shared libraries.
17646build_libtool_libs=$enable_shared
17647
17648# Whether or not to build static libraries.
17649build_old_libs=$enable_static
17650
17651# Whether or not to add -lc for building shared libraries.
17652build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17653
17654# Whether or not to disallow shared libs when runtime libs are static
17655allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17656
17657# Whether or not to optimize for fast installation.
17658fast_install=$enable_fast_install
17659
17660# The host system.
17661host_alias=$host_alias
17662host=$host
17663
17664# An echo program that does not interpret backslashes.
17665echo=$lt_echo
17666
17667# The archiver.
17668AR=$lt_AR
17669AR_FLAGS=$lt_AR_FLAGS
17670
17671# A C compiler.
17672LTCC=$lt_LTCC
17673
17674# A language-specific compiler.
17675CC=$lt_compiler_GCJ
17676
17677# Is the compiler the GNU C compiler?
17678with_gcc=$GCC_GCJ
17679
17680# An ERE matcher.
17681EGREP=$lt_EGREP
17682
17683# The linker used to build libraries.
17684LD=$lt_LD_GCJ
17685
17686# Whether we need hard or soft links.
17687LN_S=$lt_LN_S
17688
17689# A BSD-compatible nm program.
17690NM=$lt_NM
17691
17692# A symbol stripping program
17693STRIP=$STRIP
17694
17695# Used to examine libraries when file_magic_cmd begins "file"
17696MAGIC_CMD=$MAGIC_CMD
17697
17698# Used on cygwin: DLL creation program.
17699DLLTOOL="$DLLTOOL"
17700
17701# Used on cygwin: object dumper.
17702OBJDUMP="$OBJDUMP"
17703
17704# Used on cygwin: assembler.
17705AS="$AS"
17706
17707# The name of the directory that contains temporary libtool files.
17708objdir=$objdir
17709
17710# How to create reloadable object files.
17711reload_flag=$lt_reload_flag
17712reload_cmds=$lt_reload_cmds
17713
17714# How to pass a linker flag through the compiler.
17715wl=$lt_lt_prog_compiler_wl_GCJ
17716
17717# Object file suffix (normally "o").
17718objext="$ac_objext"
17719
17720# Old archive suffix (normally "a").
17721libext="$libext"
17722
17723# Shared library suffix (normally ".so").
17724shrext='$shrext'
17725
17726# Executable file suffix (normally "").
17727exeext="$exeext"
17728
17729# Additional compiler flags for building library objects.
17730pic_flag=$lt_lt_prog_compiler_pic_GCJ
17731pic_mode=$pic_mode
17732
17733# What is the maximum length of a command?
17734max_cmd_len=$lt_cv_sys_max_cmd_len
17735
17736# Does compiler simultaneously support -c and -o options?
17737compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17738
17739# Must we lock files when doing compilation ?
17740need_locks=$lt_need_locks
17741
17742# Do we need the lib prefix for modules?
17743need_lib_prefix=$need_lib_prefix
17744
17745# Do we need a version for libraries?
17746need_version=$need_version
17747
17748# Whether dlopen is supported.
17749dlopen_support=$enable_dlopen
17750
17751# Whether dlopen of programs is supported.
17752dlopen_self=$enable_dlopen_self
17753
17754# Whether dlopen of statically linked programs is supported.
17755dlopen_self_static=$enable_dlopen_self_static
17756
17757# Compiler flag to prevent dynamic linking.
17758link_static_flag=$lt_lt_prog_compiler_static_GCJ
17759
17760# Compiler flag to turn off builtin functions.
17761no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17762
17763# Compiler flag to allow reflexive dlopens.
17764export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17765
17766# Compiler flag to generate shared objects directly from archives.
17767whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17768
17769# Compiler flag to generate thread-safe objects.
17770thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17771
17772# Library versioning type.
17773version_type=$version_type
17774
17775# Format of library name prefix.
17776libname_spec=$lt_libname_spec
17777
17778# List of archive names. First name is the real one, the rest are links.
17779# The last name is the one that the linker finds with -lNAME.
17780library_names_spec=$lt_library_names_spec
17781
17782# The coded name of the library, if different from the real name.
17783soname_spec=$lt_soname_spec
17784
17785# Commands used to build and install an old-style archive.
17786RANLIB=$lt_RANLIB
17787old_archive_cmds=$lt_old_archive_cmds_GCJ
17788old_postinstall_cmds=$lt_old_postinstall_cmds
17789old_postuninstall_cmds=$lt_old_postuninstall_cmds
17790
17791# Create an old-style archive from a shared archive.
17792old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17793
17794# Create a temporary old-style archive to link instead of a shared archive.
17795old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17796
17797# Commands used to build and install a shared archive.
17798archive_cmds=$lt_archive_cmds_GCJ
17799archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17800postinstall_cmds=$lt_postinstall_cmds
17801postuninstall_cmds=$lt_postuninstall_cmds
17802
17803# Commands used to build a loadable module (assumed same as above if empty)
17804module_cmds=$lt_module_cmds_GCJ
17805module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17806
17807# Commands to strip libraries.
17808old_striplib=$lt_old_striplib
17809striplib=$lt_striplib
17810
17811# Dependencies to place before the objects being linked to create a
17812# shared library.
17813predep_objects=$lt_predep_objects_GCJ
17814
17815# Dependencies to place after the objects being linked to create a
17816# shared library.
17817postdep_objects=$lt_postdep_objects_GCJ
17818
17819# Dependencies to place before the objects being linked to create a
17820# shared library.
17821predeps=$lt_predeps_GCJ
17822
17823# Dependencies to place after the objects being linked to create a
17824# shared library.
17825postdeps=$lt_postdeps_GCJ
17826
17827# The library search path used internally by the compiler when linking
17828# a shared library.
17829compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17830
17831# Method to check whether dependent libraries are shared objects.
17832deplibs_check_method=$lt_deplibs_check_method
17833
17834# Command to use when deplibs_check_method == file_magic.
17835file_magic_cmd=$lt_file_magic_cmd
17836
17837# Flag that allows shared libraries with undefined symbols to be built.
17838allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17839
17840# Flag that forces no undefined symbols.
17841no_undefined_flag=$lt_no_undefined_flag_GCJ
17842
17843# Commands used to finish a libtool library installation in a directory.
17844finish_cmds=$lt_finish_cmds
17845
17846# Same as above, but a single script fragment to be evaled but not shown.
17847finish_eval=$lt_finish_eval
17848
17849# Take the output of nm and produce a listing of raw symbols and C names.
17850global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17851
17852# Transform the output of nm in a proper C declaration
17853global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17854
17855# Transform the output of nm in a C name address pair
17856global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17857
17858# This is the shared library runtime path variable.
17859runpath_var=$runpath_var
17860
17861# This is the shared library path variable.
17862shlibpath_var=$shlibpath_var
17863
17864# Is shlibpath searched before the hard-coded library search path?
17865shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17866
17867# How to hardcode a shared library path into an executable.
17868hardcode_action=$hardcode_action_GCJ
17869
17870# Whether we should hardcode library paths into libraries.
17871hardcode_into_libs=$hardcode_into_libs
17872
17873# Flag to hardcode \$libdir into a binary during linking.
17874# This must work even if \$libdir does not exist.
17875hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17876
17877# If ld is used when linking, flag to hardcode \$libdir into
17878# a binary during linking. This must work even if \$libdir does
17879# not exist.
17880hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17881
17882# Whether we need a single -rpath flag with a separated argument.
17883hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17884
17885# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17886# resulting binary.
17887hardcode_direct=$hardcode_direct_GCJ
17888
17889# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17890# resulting binary.
17891hardcode_minus_L=$hardcode_minus_L_GCJ
17892
17893# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17894# the resulting binary.
17895hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17896
17897# Set to yes if building a shared library automatically hardcodes DIR into the library
17898# and all subsequent libraries and executables linked against it.
17899hardcode_automatic=$hardcode_automatic_GCJ
17900
17901# Variables whose values should be saved in libtool wrapper scripts and
17902# restored at relink time.
17903variables_saved_for_relink="$variables_saved_for_relink"
17904
17905# Whether libtool must link a program against all its dependency libraries.
17906link_all_deplibs=$link_all_deplibs_GCJ
17907
17908# Compile-time system search path for libraries
17909sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17910
17911# Run-time system search path for libraries
17912sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17913
17914# Fix the shell variable \$srcfile for the compiler.
17915fix_srcfile_path="$fix_srcfile_path_GCJ"
17916
17917# Set to yes if exported symbols are required.
17918always_export_symbols=$always_export_symbols_GCJ
17919
17920# The commands to list exported symbols.
17921export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17922
17923# The commands to extract the exported symbol list from a shared archive.
17924extract_expsyms_cmds=$lt_extract_expsyms_cmds
17925
17926# Symbols that should not be listed in the preloaded symbols.
17927exclude_expsyms=$lt_exclude_expsyms_GCJ
17928
17929# Symbols that must always be exported.
17930include_expsyms=$lt_include_expsyms_GCJ
17931
17932# ### END LIBTOOL TAG CONFIG: $tagname
17933
17934__EOF__
17935
17936
17937else
17938 # If there is no Makefile yet, we rely on a make rule to execute
17939 # `config.status --recheck' to rerun these tests and create the
17940 # libtool script then.
17941 test -f Makefile && make "$ltmain"
17942fi
17943
17944
17945ac_ext=c
17946ac_cpp='$CPP $CPPFLAGS'
17947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17949ac_compiler_gnu=$ac_cv_c_compiler_gnu
17950
17951CC="$lt_save_CC"
17952
17953 else
17954 tagname=""
17955 fi
17956 ;;
17957
17958 RC)
17959
17960
17961
17962# Source file extension for RC test sources.
17963ac_ext=rc
17964
17965# Object file extension for compiled RC test sources.
17966objext=o
17967objext_RC=$objext
17968
17969# Code to be used in simple compile tests
17970lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17971
17972# Code to be used in simple link tests
17973lt_simple_link_test_code="$lt_simple_compile_test_code"
17974
17975# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17976
17977# If no C compiler was specified, use CC.
17978LTCC=${LTCC-"$CC"}
17979
17980# Allow CC to be a program name with arguments.
17981compiler=$CC
17982
17983
17984# Allow CC to be a program name with arguments.
17985lt_save_CC="$CC"
17986CC=${RC-"windres"}
17987compiler=$CC
17988compiler_RC=$CC
17989lt_cv_prog_compiler_c_o_RC=yes
17990
17991# The else clause should only fire when bootstrapping the
17992# libtool distribution, otherwise you forgot to ship ltmain.sh
17993# with your package, and you will get complaints that there are
17994# no rules to generate ltmain.sh.
17995if test -f "$ltmain"; then
17996 # See if we are running on zsh, and set the options which allow our commands through
17997 # without removal of \ escapes.
17998 if test -n "${ZSH_VERSION+set}" ; then
17999 setopt NO_GLOB_SUBST
18000 fi
18001 # Now quote all the things that may contain metacharacters while being
18002 # careful not to overquote the AC_SUBSTed values. We take copies of the
18003 # variables and quote the copies for generation of the libtool script.
18004 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18005 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18006 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18007 deplibs_check_method reload_flag reload_cmds need_locks \
18008 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18009 lt_cv_sys_global_symbol_to_c_name_address \
18010 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18011 old_postinstall_cmds old_postuninstall_cmds \
18012 compiler_RC \
18013 CC_RC \
18014 LD_RC \
18015 lt_prog_compiler_wl_RC \
18016 lt_prog_compiler_pic_RC \
18017 lt_prog_compiler_static_RC \
18018 lt_prog_compiler_no_builtin_flag_RC \
18019 export_dynamic_flag_spec_RC \
18020 thread_safe_flag_spec_RC \
18021 whole_archive_flag_spec_RC \
18022 enable_shared_with_static_runtimes_RC \
18023 old_archive_cmds_RC \
18024 old_archive_from_new_cmds_RC \
18025 predep_objects_RC \
18026 postdep_objects_RC \
18027 predeps_RC \
18028 postdeps_RC \
18029 compiler_lib_search_path_RC \
18030 archive_cmds_RC \
18031 archive_expsym_cmds_RC \
18032 postinstall_cmds_RC \
18033 postuninstall_cmds_RC \
18034 old_archive_from_expsyms_cmds_RC \
18035 allow_undefined_flag_RC \
18036 no_undefined_flag_RC \
18037 export_symbols_cmds_RC \
18038 hardcode_libdir_flag_spec_RC \
18039 hardcode_libdir_flag_spec_ld_RC \
18040 hardcode_libdir_separator_RC \
18041 hardcode_automatic_RC \
18042 module_cmds_RC \
18043 module_expsym_cmds_RC \
18044 lt_cv_prog_compiler_c_o_RC \
18045 exclude_expsyms_RC \
18046 include_expsyms_RC; do
18047
18048 case $var in
18049 old_archive_cmds_RC | \
18050 old_archive_from_new_cmds_RC | \
18051 archive_cmds_RC | \
18052 archive_expsym_cmds_RC | \
18053 module_cmds_RC | \
18054 module_expsym_cmds_RC | \
18055 old_archive_from_expsyms_cmds_RC | \
18056 export_symbols_cmds_RC | \
18057 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18058 postinstall_cmds | postuninstall_cmds | \
18059 old_postinstall_cmds | old_postuninstall_cmds | \
18060 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18061 # Double-quote double-evaled strings.
18062 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18063 ;;
18064 *)
18065 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18066 ;;
18067 esac
18068 done
18069
18070 case $lt_echo in
18071 *'\$0 --fallback-echo"')
18072 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18073 ;;
18074 esac
18075
18076cfgfile="$ofile"
18077
18078 cat <<__EOF__ >> "$cfgfile"
18079# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18080
18081# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18082
18083# Shell to use when invoking shell scripts.
18084SHELL=$lt_SHELL
18085
18086# Whether or not to build shared libraries.
18087build_libtool_libs=$enable_shared
18088
18089# Whether or not to build static libraries.
18090build_old_libs=$enable_static
18091
18092# Whether or not to add -lc for building shared libraries.
18093build_libtool_need_lc=$archive_cmds_need_lc_RC
18094
18095# Whether or not to disallow shared libs when runtime libs are static
18096allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18097
18098# Whether or not to optimize for fast installation.
18099fast_install=$enable_fast_install
18100
18101# The host system.
18102host_alias=$host_alias
18103host=$host
18104
18105# An echo program that does not interpret backslashes.
18106echo=$lt_echo
18107
18108# The archiver.
18109AR=$lt_AR
18110AR_FLAGS=$lt_AR_FLAGS
18111
18112# A C compiler.
18113LTCC=$lt_LTCC
18114
18115# A language-specific compiler.
18116CC=$lt_compiler_RC
18117
18118# Is the compiler the GNU C compiler?
18119with_gcc=$GCC_RC
18120
18121# An ERE matcher.
18122EGREP=$lt_EGREP
18123
18124# The linker used to build libraries.
18125LD=$lt_LD_RC
18126
18127# Whether we need hard or soft links.
18128LN_S=$lt_LN_S
18129
18130# A BSD-compatible nm program.
18131NM=$lt_NM
18132
18133# A symbol stripping program
18134STRIP=$STRIP
18135
18136# Used to examine libraries when file_magic_cmd begins "file"
18137MAGIC_CMD=$MAGIC_CMD
18138
18139# Used on cygwin: DLL creation program.
18140DLLTOOL="$DLLTOOL"
18141
18142# Used on cygwin: object dumper.
18143OBJDUMP="$OBJDUMP"
18144
18145# Used on cygwin: assembler.
18146AS="$AS"
18147
18148# The name of the directory that contains temporary libtool files.
18149objdir=$objdir
18150
18151# How to create reloadable object files.
18152reload_flag=$lt_reload_flag
18153reload_cmds=$lt_reload_cmds
18154
18155# How to pass a linker flag through the compiler.
18156wl=$lt_lt_prog_compiler_wl_RC
18157
18158# Object file suffix (normally "o").
18159objext="$ac_objext"
18160
18161# Old archive suffix (normally "a").
18162libext="$libext"
18163
18164# Shared library suffix (normally ".so").
18165shrext='$shrext'
18166
18167# Executable file suffix (normally "").
18168exeext="$exeext"
18169
18170# Additional compiler flags for building library objects.
18171pic_flag=$lt_lt_prog_compiler_pic_RC
18172pic_mode=$pic_mode
18173
18174# What is the maximum length of a command?
18175max_cmd_len=$lt_cv_sys_max_cmd_len
18176
18177# Does compiler simultaneously support -c and -o options?
18178compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18179
18180# Must we lock files when doing compilation ?
18181need_locks=$lt_need_locks
18182
18183# Do we need the lib prefix for modules?
18184need_lib_prefix=$need_lib_prefix
18185
18186# Do we need a version for libraries?
18187need_version=$need_version
18188
18189# Whether dlopen is supported.
18190dlopen_support=$enable_dlopen
18191
18192# Whether dlopen of programs is supported.
18193dlopen_self=$enable_dlopen_self
18194
18195# Whether dlopen of statically linked programs is supported.
18196dlopen_self_static=$enable_dlopen_self_static
18197
18198# Compiler flag to prevent dynamic linking.
18199link_static_flag=$lt_lt_prog_compiler_static_RC
18200
18201# Compiler flag to turn off builtin functions.
18202no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18203
18204# Compiler flag to allow reflexive dlopens.
18205export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18206
18207# Compiler flag to generate shared objects directly from archives.
18208whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18209
18210# Compiler flag to generate thread-safe objects.
18211thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18212
18213# Library versioning type.
18214version_type=$version_type
18215
18216# Format of library name prefix.
18217libname_spec=$lt_libname_spec
18218
18219# List of archive names. First name is the real one, the rest are links.
18220# The last name is the one that the linker finds with -lNAME.
18221library_names_spec=$lt_library_names_spec
18222
18223# The coded name of the library, if different from the real name.
18224soname_spec=$lt_soname_spec
18225
18226# Commands used to build and install an old-style archive.
18227RANLIB=$lt_RANLIB
18228old_archive_cmds=$lt_old_archive_cmds_RC
18229old_postinstall_cmds=$lt_old_postinstall_cmds
18230old_postuninstall_cmds=$lt_old_postuninstall_cmds
18231
18232# Create an old-style archive from a shared archive.
18233old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18234
18235# Create a temporary old-style archive to link instead of a shared archive.
18236old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18237
18238# Commands used to build and install a shared archive.
18239archive_cmds=$lt_archive_cmds_RC
18240archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18241postinstall_cmds=$lt_postinstall_cmds
18242postuninstall_cmds=$lt_postuninstall_cmds
18243
18244# Commands used to build a loadable module (assumed same as above if empty)
18245module_cmds=$lt_module_cmds_RC
18246module_expsym_cmds=$lt_module_expsym_cmds_RC
18247
18248# Commands to strip libraries.
18249old_striplib=$lt_old_striplib
18250striplib=$lt_striplib
18251
18252# Dependencies to place before the objects being linked to create a
18253# shared library.
18254predep_objects=$lt_predep_objects_RC
18255
18256# Dependencies to place after the objects being linked to create a
18257# shared library.
18258postdep_objects=$lt_postdep_objects_RC
18259
18260# Dependencies to place before the objects being linked to create a
18261# shared library.
18262predeps=$lt_predeps_RC
18263
18264# Dependencies to place after the objects being linked to create a
18265# shared library.
18266postdeps=$lt_postdeps_RC
18267
18268# The library search path used internally by the compiler when linking
18269# a shared library.
18270compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18271
18272# Method to check whether dependent libraries are shared objects.
18273deplibs_check_method=$lt_deplibs_check_method
18274
18275# Command to use when deplibs_check_method == file_magic.
18276file_magic_cmd=$lt_file_magic_cmd
18277
18278# Flag that allows shared libraries with undefined symbols to be built.
18279allow_undefined_flag=$lt_allow_undefined_flag_RC
18280
18281# Flag that forces no undefined symbols.
18282no_undefined_flag=$lt_no_undefined_flag_RC
18283
18284# Commands used to finish a libtool library installation in a directory.
18285finish_cmds=$lt_finish_cmds
18286
18287# Same as above, but a single script fragment to be evaled but not shown.
18288finish_eval=$lt_finish_eval
18289
18290# Take the output of nm and produce a listing of raw symbols and C names.
18291global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18292
18293# Transform the output of nm in a proper C declaration
18294global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18295
18296# Transform the output of nm in a C name address pair
18297global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18298
18299# This is the shared library runtime path variable.
18300runpath_var=$runpath_var
18301
18302# This is the shared library path variable.
18303shlibpath_var=$shlibpath_var
18304
18305# Is shlibpath searched before the hard-coded library search path?
18306shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18307
18308# How to hardcode a shared library path into an executable.
18309hardcode_action=$hardcode_action_RC
18310
18311# Whether we should hardcode library paths into libraries.
18312hardcode_into_libs=$hardcode_into_libs
18313
18314# Flag to hardcode \$libdir into a binary during linking.
18315# This must work even if \$libdir does not exist.
18316hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18317
18318# If ld is used when linking, flag to hardcode \$libdir into
18319# a binary during linking. This must work even if \$libdir does
18320# not exist.
18321hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18322
18323# Whether we need a single -rpath flag with a separated argument.
18324hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18325
18326# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18327# resulting binary.
18328hardcode_direct=$hardcode_direct_RC
18329
18330# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18331# resulting binary.
18332hardcode_minus_L=$hardcode_minus_L_RC
18333
18334# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18335# the resulting binary.
18336hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18337
18338# Set to yes if building a shared library automatically hardcodes DIR into the library
18339# and all subsequent libraries and executables linked against it.
18340hardcode_automatic=$hardcode_automatic_RC
18341
18342# Variables whose values should be saved in libtool wrapper scripts and
18343# restored at relink time.
18344variables_saved_for_relink="$variables_saved_for_relink"
18345
18346# Whether libtool must link a program against all its dependency libraries.
18347link_all_deplibs=$link_all_deplibs_RC
18348
18349# Compile-time system search path for libraries
18350sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18351
18352# Run-time system search path for libraries
18353sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18354
18355# Fix the shell variable \$srcfile for the compiler.
18356fix_srcfile_path="$fix_srcfile_path_RC"
18357
18358# Set to yes if exported symbols are required.
18359always_export_symbols=$always_export_symbols_RC
18360
18361# The commands to list exported symbols.
18362export_symbols_cmds=$lt_export_symbols_cmds_RC
18363
18364# The commands to extract the exported symbol list from a shared archive.
18365extract_expsyms_cmds=$lt_extract_expsyms_cmds
18366
18367# Symbols that should not be listed in the preloaded symbols.
18368exclude_expsyms=$lt_exclude_expsyms_RC
18369
18370# Symbols that must always be exported.
18371include_expsyms=$lt_include_expsyms_RC
18372
18373# ### END LIBTOOL TAG CONFIG: $tagname
18374
18375__EOF__
18376
18377
18378else
18379 # If there is no Makefile yet, we rely on a make rule to execute
18380 # `config.status --recheck' to rerun these tests and create the
18381 # libtool script then.
18382 test -f Makefile && make "$ltmain"
18383fi
18384
18385
18386ac_ext=c
18387ac_cpp='$CPP $CPPFLAGS'
18388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18390ac_compiler_gnu=$ac_cv_c_compiler_gnu
18391
18392CC="$lt_save_CC"
18393
18394 ;;
18395
18396 *)
18397 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18398echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18399 { (exit 1); exit 1; }; }
18400 ;;
18401 esac
18402
18403 # Append the new tag name to the list of available tags.
18404 if test -n "$tagname" ; then
18405 available_tags="$available_tags $tagname"
18406 fi
18407 fi
18408 done
18409 IFS="$lt_save_ifs"
18410
18411 # Now substitute the updated list of available tags.
18412 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18413 mv "${ofile}T" "$ofile"
18414 chmod +x "$ofile"
18415 else
18416 rm -f "${ofile}T"
18417 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18418echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18419 { (exit 1); exit 1; }; }
18420 fi
18421fi
John Criswell7a73b802003-06-30 21:59:07 +000018422
18423
18424
18425# This can be used to rebuild libtool when needed
18426LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18427
18428# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018429LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018430
18431# Prevent multiple expansion
18432
18433
18434
John Criswell47fdd832003-07-14 16:52:07 +000018435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
John Criswellde00db22003-08-25 16:49:54 +000018453# Extract the first word of "pwd", so it can be a program name with args.
18454set dummy pwd; ac_word=$2
18455echo "$as_me:$LINENO: checking for $ac_word" >&5
18456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18457if test "${ac_cv_path_RPWD+set}" = set; then
18458 echo $ECHO_N "(cached) $ECHO_C" >&6
18459else
18460 case $RPWD in
18461 [\\/]* | ?:[\\/]*)
18462 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18463 ;;
18464 *)
18465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18466for as_dir in $PATH
18467do
18468 IFS=$as_save_IFS
18469 test -z "$as_dir" && as_dir=.
18470 for ac_exec_ext in '' $ac_executable_extensions; do
18471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18472 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18474 break 2
18475 fi
18476done
18477done
18478
John Criswell39827c82003-09-23 15:28:52 +000018479 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018480 ;;
18481esac
18482fi
18483RPWD=$ac_cv_path_RPWD
18484
18485if test -n "$RPWD"; then
18486 echo "$as_me:$LINENO: result: $RPWD" >&5
18487echo "${ECHO_T}$RPWD" >&6
18488else
18489 echo "$as_me:$LINENO: result: no" >&5
18490echo "${ECHO_T}no" >&6
18491fi
18492
John Criswell39827c82003-09-23 15:28:52 +000018493if test ${RPWD} = "false"
18494then
18495 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18496echo "$as_me: error: pwd required but not found" >&2;}
18497 { (exit 1); exit 1; }; }
18498fi
18499
John Criswell7a73b802003-06-30 21:59:07 +000018500# Extract the first word of "ar", so it can be a program name with args.
18501set dummy ar; ac_word=$2
18502echo "$as_me:$LINENO: checking for $ac_word" >&5
18503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18504if test "${ac_cv_path_AR+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506else
18507 case $AR in
18508 [\\/]* | ?:[\\/]*)
18509 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18510 ;;
18511 *)
18512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18513for as_dir in $PATH
18514do
18515 IFS=$as_save_IFS
18516 test -z "$as_dir" && as_dir=.
18517 for ac_exec_ext in '' $ac_executable_extensions; do
18518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18519 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18521 break 2
18522 fi
18523done
18524done
18525
John Criswell39827c82003-09-23 15:28:52 +000018526 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018527 ;;
18528esac
18529fi
18530AR=$ac_cv_path_AR
18531
18532if test -n "$AR"; then
18533 echo "$as_me:$LINENO: result: $AR" >&5
18534echo "${ECHO_T}$AR" >&6
18535else
18536 echo "$as_me:$LINENO: result: no" >&5
18537echo "${ECHO_T}no" >&6
18538fi
18539
John Criswell39827c82003-09-23 15:28:52 +000018540if test ${AR} = "false"
18541then
18542 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18543echo "$as_me: error: ar required but not found" >&2;}
18544 { (exit 1); exit 1; }; }
18545fi
18546
John Criswell7a73b802003-06-30 21:59:07 +000018547# Extract the first word of "sed", so it can be a program name with args.
18548set dummy sed; ac_word=$2
18549echo "$as_me:$LINENO: checking for $ac_word" >&5
18550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18551if test "${ac_cv_path_SED+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553else
18554 case $SED in
18555 [\\/]* | ?:[\\/]*)
18556 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18557 ;;
18558 *)
18559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18560for as_dir in $PATH
18561do
18562 IFS=$as_save_IFS
18563 test -z "$as_dir" && as_dir=.
18564 for ac_exec_ext in '' $ac_executable_extensions; do
18565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18566 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18568 break 2
18569 fi
18570done
18571done
18572
John Criswell39827c82003-09-23 15:28:52 +000018573 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018574 ;;
18575esac
18576fi
18577SED=$ac_cv_path_SED
18578
18579if test -n "$SED"; then
18580 echo "$as_me:$LINENO: result: $SED" >&5
18581echo "${ECHO_T}$SED" >&6
18582else
18583 echo "$as_me:$LINENO: result: no" >&5
18584echo "${ECHO_T}no" >&6
18585fi
18586
John Criswell39827c82003-09-23 15:28:52 +000018587if test ${SED} = "false"
18588then
18589 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18590echo "$as_me: error: sed required but not found" >&2;}
18591 { (exit 1); exit 1; }; }
18592fi
18593
John Criswell7a73b802003-06-30 21:59:07 +000018594# Extract the first word of "rm", so it can be a program name with args.
18595set dummy rm; ac_word=$2
18596echo "$as_me:$LINENO: checking for $ac_word" >&5
18597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18598if test "${ac_cv_path_RM+set}" = set; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18600else
18601 case $RM in
18602 [\\/]* | ?:[\\/]*)
18603 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18604 ;;
18605 *)
18606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18607for as_dir in $PATH
18608do
18609 IFS=$as_save_IFS
18610 test -z "$as_dir" && as_dir=.
18611 for ac_exec_ext in '' $ac_executable_extensions; do
18612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18613 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18615 break 2
18616 fi
18617done
18618done
18619
John Criswell39827c82003-09-23 15:28:52 +000018620 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018621 ;;
18622esac
18623fi
18624RM=$ac_cv_path_RM
18625
18626if test -n "$RM"; then
18627 echo "$as_me:$LINENO: result: $RM" >&5
18628echo "${ECHO_T}$RM" >&6
18629else
18630 echo "$as_me:$LINENO: result: no" >&5
18631echo "${ECHO_T}no" >&6
18632fi
18633
John Criswell39827c82003-09-23 15:28:52 +000018634if test ${RM} = "false"
18635then
18636 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18637echo "$as_me: error: rm required but not found" >&2;}
18638 { (exit 1); exit 1; }; }
18639fi
18640
John Criswell7a73b802003-06-30 21:59:07 +000018641# Extract the first word of "echo", so it can be a program name with args.
18642set dummy echo; ac_word=$2
18643echo "$as_me:$LINENO: checking for $ac_word" >&5
18644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18645if test "${ac_cv_path_ECHO+set}" = set; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18647else
18648 case $ECHO in
18649 [\\/]* | ?:[\\/]*)
18650 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18651 ;;
18652 *)
18653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18654for as_dir in $PATH
18655do
18656 IFS=$as_save_IFS
18657 test -z "$as_dir" && as_dir=.
18658 for ac_exec_ext in '' $ac_executable_extensions; do
18659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18660 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18662 break 2
18663 fi
18664done
18665done
18666
John Criswell39827c82003-09-23 15:28:52 +000018667 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018668 ;;
18669esac
18670fi
18671ECHO=$ac_cv_path_ECHO
18672
18673if test -n "$ECHO"; then
18674 echo "$as_me:$LINENO: result: $ECHO" >&5
18675echo "${ECHO_T}$ECHO" >&6
18676else
18677 echo "$as_me:$LINENO: result: no" >&5
18678echo "${ECHO_T}no" >&6
18679fi
18680
John Criswell39827c82003-09-23 15:28:52 +000018681if test ${ECHO} = "false"
18682then
18683 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18684echo "$as_me: error: echo required but not found" >&2;}
18685 { (exit 1); exit 1; }; }
18686fi
18687
John Criswell7a73b802003-06-30 21:59:07 +000018688# Extract the first word of "mkdir", so it can be a program name with args.
18689set dummy mkdir; ac_word=$2
18690echo "$as_me:$LINENO: checking for $ac_word" >&5
18691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18692if test "${ac_cv_path_MKDIR+set}" = set; then
18693 echo $ECHO_N "(cached) $ECHO_C" >&6
18694else
18695 case $MKDIR in
18696 [\\/]* | ?:[\\/]*)
18697 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18698 ;;
18699 *)
18700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18701for as_dir in $PATH
18702do
18703 IFS=$as_save_IFS
18704 test -z "$as_dir" && as_dir=.
18705 for ac_exec_ext in '' $ac_executable_extensions; do
18706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18707 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18709 break 2
18710 fi
18711done
18712done
18713
John Criswell39827c82003-09-23 15:28:52 +000018714 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018715 ;;
18716esac
18717fi
18718MKDIR=$ac_cv_path_MKDIR
18719
18720if test -n "$MKDIR"; then
18721 echo "$as_me:$LINENO: result: $MKDIR" >&5
18722echo "${ECHO_T}$MKDIR" >&6
18723else
18724 echo "$as_me:$LINENO: result: no" >&5
18725echo "${ECHO_T}no" >&6
18726fi
18727
John Criswell39827c82003-09-23 15:28:52 +000018728if test ${MKDIR} = "false"
18729then
18730 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18731echo "$as_me: error: mkdir required but not found" >&2;}
18732 { (exit 1); exit 1; }; }
18733fi
18734
John Criswell7a73b802003-06-30 21:59:07 +000018735# Extract the first word of "date", so it can be a program name with args.
18736set dummy date; ac_word=$2
18737echo "$as_me:$LINENO: checking for $ac_word" >&5
18738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18739if test "${ac_cv_path_DATE+set}" = set; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18741else
18742 case $DATE in
18743 [\\/]* | ?:[\\/]*)
18744 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18745 ;;
18746 *)
18747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18748for as_dir in $PATH
18749do
18750 IFS=$as_save_IFS
18751 test -z "$as_dir" && as_dir=.
18752 for ac_exec_ext in '' $ac_executable_extensions; do
18753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18754 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18756 break 2
18757 fi
18758done
18759done
18760
John Criswell39827c82003-09-23 15:28:52 +000018761 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018762 ;;
18763esac
18764fi
18765DATE=$ac_cv_path_DATE
18766
18767if test -n "$DATE"; then
18768 echo "$as_me:$LINENO: result: $DATE" >&5
18769echo "${ECHO_T}$DATE" >&6
18770else
18771 echo "$as_me:$LINENO: result: no" >&5
18772echo "${ECHO_T}no" >&6
18773fi
18774
John Criswell39827c82003-09-23 15:28:52 +000018775if test ${DATE} = "false"
18776then
18777 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18778echo "$as_me: error: date required but not found" >&2;}
18779 { (exit 1); exit 1; }; }
18780fi
18781
John Criswell7a73b802003-06-30 21:59:07 +000018782# Extract the first word of "mv", so it can be a program name with args.
18783set dummy mv; ac_word=$2
18784echo "$as_me:$LINENO: checking for $ac_word" >&5
18785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18786if test "${ac_cv_path_MV+set}" = set; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18788else
18789 case $MV in
18790 [\\/]* | ?:[\\/]*)
18791 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18792 ;;
18793 *)
18794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18795for as_dir in $PATH
18796do
18797 IFS=$as_save_IFS
18798 test -z "$as_dir" && as_dir=.
18799 for ac_exec_ext in '' $ac_executable_extensions; do
18800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18801 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18803 break 2
18804 fi
18805done
18806done
18807
John Criswell39827c82003-09-23 15:28:52 +000018808 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018809 ;;
18810esac
18811fi
18812MV=$ac_cv_path_MV
18813
18814if test -n "$MV"; then
18815 echo "$as_me:$LINENO: result: $MV" >&5
18816echo "${ECHO_T}$MV" >&6
18817else
18818 echo "$as_me:$LINENO: result: no" >&5
18819echo "${ECHO_T}no" >&6
18820fi
18821
John Criswell39827c82003-09-23 15:28:52 +000018822if test ${MV} = "false"
18823then
18824 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18825echo "$as_me: error: mv required but not found" >&2;}
18826 { (exit 1); exit 1; }; }
18827fi
18828
John Criswell7a73b802003-06-30 21:59:07 +000018829# Extract the first word of "dot", so it can be a program name with args.
18830set dummy dot; ac_word=$2
18831echo "$as_me:$LINENO: checking for $ac_word" >&5
18832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18833if test "${ac_cv_path_DOT+set}" = set; then
18834 echo $ECHO_N "(cached) $ECHO_C" >&6
18835else
18836 case $DOT in
18837 [\\/]* | ?:[\\/]*)
18838 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18839 ;;
18840 *)
18841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18842for as_dir in $PATH
18843do
18844 IFS=$as_save_IFS
18845 test -z "$as_dir" && as_dir=.
18846 for ac_exec_ext in '' $ac_executable_extensions; do
18847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18848 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18850 break 2
18851 fi
18852done
18853done
18854
John Criswell39827c82003-09-23 15:28:52 +000018855 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018856 ;;
18857esac
18858fi
18859DOT=$ac_cv_path_DOT
18860
18861if test -n "$DOT"; then
18862 echo "$as_me:$LINENO: result: $DOT" >&5
18863echo "${ECHO_T}$DOT" >&6
18864else
18865 echo "$as_me:$LINENO: result: no" >&5
18866echo "${ECHO_T}no" >&6
18867fi
18868
John Criswell39827c82003-09-23 15:28:52 +000018869
John Criswell7a73b802003-06-30 21:59:07 +000018870# Extract the first word of "etags", so it can be a program name with args.
18871set dummy etags; ac_word=$2
18872echo "$as_me:$LINENO: checking for $ac_word" >&5
18873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18874if test "${ac_cv_path_ETAGS+set}" = set; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18876else
18877 case $ETAGS in
18878 [\\/]* | ?:[\\/]*)
18879 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18880 ;;
18881 *)
18882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18883for as_dir in $PATH
18884do
18885 IFS=$as_save_IFS
18886 test -z "$as_dir" && as_dir=.
18887 for ac_exec_ext in '' $ac_executable_extensions; do
18888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18889 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18891 break 2
18892 fi
18893done
18894done
18895
John Criswell39827c82003-09-23 15:28:52 +000018896 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018897 ;;
18898esac
18899fi
18900ETAGS=$ac_cv_path_ETAGS
18901
18902if test -n "$ETAGS"; then
18903 echo "$as_me:$LINENO: result: $ETAGS" >&5
18904echo "${ECHO_T}$ETAGS" >&6
18905else
18906 echo "$as_me:$LINENO: result: no" >&5
18907echo "${ECHO_T}no" >&6
18908fi
18909
John Criswell39827c82003-09-23 15:28:52 +000018910
John Criswellde00db22003-08-25 16:49:54 +000018911# Extract the first word of "python", so it can be a program name with args.
18912set dummy python; ac_word=$2
18913echo "$as_me:$LINENO: checking for $ac_word" >&5
18914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18915if test "${ac_cv_path_PYTHON+set}" = set; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18917else
18918 case $PYTHON in
18919 [\\/]* | ?:[\\/]*)
18920 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18921 ;;
18922 *)
18923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18924for as_dir in $PATH
18925do
18926 IFS=$as_save_IFS
18927 test -z "$as_dir" && as_dir=.
18928 for ac_exec_ext in '' $ac_executable_extensions; do
18929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18930 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18932 break 2
18933 fi
18934done
18935done
18936
John Criswell39827c82003-09-23 15:28:52 +000018937 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018938 ;;
18939esac
18940fi
18941PYTHON=$ac_cv_path_PYTHON
18942
18943if test -n "$PYTHON"; then
18944 echo "$as_me:$LINENO: result: $PYTHON" >&5
18945echo "${ECHO_T}$PYTHON" >&6
18946else
18947 echo "$as_me:$LINENO: result: no" >&5
18948echo "${ECHO_T}no" >&6
18949fi
18950
John Criswell39827c82003-09-23 15:28:52 +000018951if test ${PYTHON} = "false"
18952then
John Criswell61095982003-09-23 20:46:32 +000018953 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18954echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018955fi
18956
John Criswellde00db22003-08-25 16:49:54 +000018957# Extract the first word of "qmtest", so it can be a program name with args.
18958set dummy qmtest; ac_word=$2
18959echo "$as_me:$LINENO: checking for $ac_word" >&5
18960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18961if test "${ac_cv_path_QMTEST+set}" = set; then
18962 echo $ECHO_N "(cached) $ECHO_C" >&6
18963else
18964 case $QMTEST in
18965 [\\/]* | ?:[\\/]*)
18966 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18967 ;;
18968 *)
18969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18970for as_dir in $PATH
18971do
18972 IFS=$as_save_IFS
18973 test -z "$as_dir" && as_dir=.
18974 for ac_exec_ext in '' $ac_executable_extensions; do
18975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18976 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18978 break 2
18979 fi
18980done
18981done
18982
John Criswell39827c82003-09-23 15:28:52 +000018983 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000018984 ;;
18985esac
18986fi
18987QMTEST=$ac_cv_path_QMTEST
18988
18989if test -n "$QMTEST"; then
18990 echo "$as_me:$LINENO: result: $QMTEST" >&5
18991echo "${ECHO_T}$QMTEST" >&6
18992else
18993 echo "$as_me:$LINENO: result: no" >&5
18994echo "${ECHO_T}no" >&6
18995fi
18996
John Criswell39827c82003-09-23 15:28:52 +000018997if test ${QMTEST} = "false"
18998then
John Criswell61095982003-09-23 20:46:32 +000018999 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19000echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019001fi
John Criswellde00db22003-08-25 16:49:54 +000019002
19003pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19004pymajor=`echo $pyversion | cut -d. -f1`
19005pyminor=`echo $pyversion | cut -d. -f2`
19006
19007if test "$pymajor" -ge "2"
19008then
19009 if test "$pymajor" -eq "2"
19010 then
19011 if test "$pyminor" -lt "2"
19012 then
19013 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19014echo "$as_me: error: Python 2.2 or greater required" >&2;}
19015 { (exit 1); exit 1; }; }
19016 fi
19017 fi
19018else
19019 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19020echo "$as_me: error: Python 2.2 or greater required" >&2;}
19021 { (exit 1); exit 1; }; }
19022fi
John Criswell7a73b802003-06-30 21:59:07 +000019023
19024
19025
19026
19027
19028echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19029echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19030if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19032else
19033 ac_check_lib_save_LIBS=$LIBS
19034LIBS="-lelf $LIBS"
19035cat >conftest.$ac_ext <<_ACEOF
19036#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019037/* confdefs.h. */
19038_ACEOF
19039cat confdefs.h >>conftest.$ac_ext
19040cat >>conftest.$ac_ext <<_ACEOF
19041/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019042
19043/* Override any gcc2 internal prototype to avoid an error. */
19044#ifdef __cplusplus
19045extern "C"
19046#endif
19047/* We use char because int might match the return type of a gcc2
19048 builtin and then its argument prototype would still apply. */
19049char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019050int
19051main ()
19052{
19053elf_begin ();
19054 ;
19055 return 0;
19056}
19057_ACEOF
19058rm -f conftest.$ac_objext conftest$ac_exeext
19059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19060 (eval $ac_link) 2>&5
19061 ac_status=$?
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } &&
19064 { ac_try='test -s conftest$ac_exeext'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; }; then
19070 ac_cv_lib_elf_elf_begin=yes
19071else
19072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019073sed 's/^/| /' conftest.$ac_ext >&5
19074
John Criswell7a73b802003-06-30 21:59:07 +000019075ac_cv_lib_elf_elf_begin=no
19076fi
19077rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19078LIBS=$ac_check_lib_save_LIBS
19079fi
19080echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19081echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19082if test $ac_cv_lib_elf_elf_begin = yes; then
19083 cat >>confdefs.h <<_ACEOF
19084#define HAVE_LIBELF 1
19085_ACEOF
19086
19087 LIBS="-lelf $LIBS"
19088
19089fi
19090
19091
19092echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19093echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19094if test "${ac_cv_search_dlopen+set}" = set; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19096else
19097 ac_func_search_save_LIBS=$LIBS
19098ac_cv_search_dlopen=no
19099cat >conftest.$ac_ext <<_ACEOF
19100#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019101/* confdefs.h. */
19102_ACEOF
19103cat confdefs.h >>conftest.$ac_ext
19104cat >>conftest.$ac_ext <<_ACEOF
19105/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019106
19107/* Override any gcc2 internal prototype to avoid an error. */
19108#ifdef __cplusplus
19109extern "C"
19110#endif
19111/* We use char because int might match the return type of a gcc2
19112 builtin and then its argument prototype would still apply. */
19113char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019114int
19115main ()
19116{
19117dlopen ();
19118 ;
19119 return 0;
19120}
19121_ACEOF
19122rm -f conftest.$ac_objext conftest$ac_exeext
19123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19124 (eval $ac_link) 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
19128 { ac_try='test -s conftest$ac_exeext'
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; }; then
19134 ac_cv_search_dlopen="none required"
19135else
19136 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019137sed 's/^/| /' conftest.$ac_ext >&5
19138
John Criswell7a73b802003-06-30 21:59:07 +000019139fi
19140rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19141if test "$ac_cv_search_dlopen" = no; then
19142 for ac_lib in dl; do
19143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19144 cat >conftest.$ac_ext <<_ACEOF
19145#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019146/* confdefs.h. */
19147_ACEOF
19148cat confdefs.h >>conftest.$ac_ext
19149cat >>conftest.$ac_ext <<_ACEOF
19150/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019151
19152/* Override any gcc2 internal prototype to avoid an error. */
19153#ifdef __cplusplus
19154extern "C"
19155#endif
19156/* We use char because int might match the return type of a gcc2
19157 builtin and then its argument prototype would still apply. */
19158char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019159int
19160main ()
19161{
19162dlopen ();
19163 ;
19164 return 0;
19165}
19166_ACEOF
19167rm -f conftest.$ac_objext conftest$ac_exeext
19168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19169 (eval $ac_link) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } &&
19173 { ac_try='test -s conftest$ac_exeext'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19179 ac_cv_search_dlopen="-l$ac_lib"
19180break
19181else
19182 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019183sed 's/^/| /' conftest.$ac_ext >&5
19184
John Criswell7a73b802003-06-30 21:59:07 +000019185fi
19186rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19187 done
19188fi
19189LIBS=$ac_func_search_save_LIBS
19190fi
19191echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19192echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19193if test "$ac_cv_search_dlopen" != no; then
19194 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019195
19196cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019197#define HAVE_DLOPEN 1
19198_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019199
19200else
Brian Gaekec45be042003-10-07 06:01:34 +000019201 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19202echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019203fi
19204
19205
19206echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19207echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19208if test "${ac_cv_search_mallinfo+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19210else
19211 ac_func_search_save_LIBS=$LIBS
19212ac_cv_search_mallinfo=no
19213cat >conftest.$ac_ext <<_ACEOF
19214#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019215/* confdefs.h. */
19216_ACEOF
19217cat confdefs.h >>conftest.$ac_ext
19218cat >>conftest.$ac_ext <<_ACEOF
19219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019220
19221/* Override any gcc2 internal prototype to avoid an error. */
19222#ifdef __cplusplus
19223extern "C"
19224#endif
19225/* We use char because int might match the return type of a gcc2
19226 builtin and then its argument prototype would still apply. */
19227char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019228int
19229main ()
19230{
19231mallinfo ();
19232 ;
19233 return 0;
19234}
19235_ACEOF
19236rm -f conftest.$ac_objext conftest$ac_exeext
19237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19238 (eval $ac_link) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); } &&
19242 { ac_try='test -s conftest$ac_exeext'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_cv_search_mallinfo="none required"
19249else
19250 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019251sed 's/^/| /' conftest.$ac_ext >&5
19252
John Criswell7a73b802003-06-30 21:59:07 +000019253fi
19254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19255if test "$ac_cv_search_mallinfo" = no; then
19256 for ac_lib in malloc; do
19257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19258 cat >conftest.$ac_ext <<_ACEOF
19259#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019260/* confdefs.h. */
19261_ACEOF
19262cat confdefs.h >>conftest.$ac_ext
19263cat >>conftest.$ac_ext <<_ACEOF
19264/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019265
19266/* Override any gcc2 internal prototype to avoid an error. */
19267#ifdef __cplusplus
19268extern "C"
19269#endif
19270/* We use char because int might match the return type of a gcc2
19271 builtin and then its argument prototype would still apply. */
19272char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019273int
19274main ()
19275{
19276mallinfo ();
19277 ;
19278 return 0;
19279}
19280_ACEOF
19281rm -f conftest.$ac_objext conftest$ac_exeext
19282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19283 (eval $ac_link) 2>&5
19284 ac_status=$?
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } &&
19287 { ac_try='test -s conftest$ac_exeext'
19288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289 (eval $ac_try) 2>&5
19290 ac_status=$?
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; }; then
19293 ac_cv_search_mallinfo="-l$ac_lib"
19294break
19295else
19296 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019297sed 's/^/| /' conftest.$ac_ext >&5
19298
John Criswell7a73b802003-06-30 21:59:07 +000019299fi
19300rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19301 done
19302fi
19303LIBS=$ac_func_search_save_LIBS
19304fi
19305echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19306echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19307if test "$ac_cv_search_mallinfo" != no; then
19308 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019309
19310cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019311#define HAVE_MALLINFO 1
19312_ACEOF
19313
19314fi
19315
19316
19317
19318echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19319echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19320if test "${ac_cv_header_stdc+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19322else
19323 cat >conftest.$ac_ext <<_ACEOF
19324#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019325/* confdefs.h. */
19326_ACEOF
19327cat confdefs.h >>conftest.$ac_ext
19328cat >>conftest.$ac_ext <<_ACEOF
19329/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019330#include <stdlib.h>
19331#include <stdarg.h>
19332#include <string.h>
19333#include <float.h>
19334
John Criswell0c38eaf2003-09-10 15:17:25 +000019335int
19336main ()
19337{
19338
19339 ;
19340 return 0;
19341}
John Criswell7a73b802003-06-30 21:59:07 +000019342_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019343rm -f conftest.$ac_objext
19344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19345 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019346 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019348 (exit $ac_status); } &&
19349 { ac_try='test -s conftest.$ac_objext'
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019355 ac_cv_header_stdc=yes
19356else
19357 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019358sed 's/^/| /' conftest.$ac_ext >&5
19359
19360ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019361fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019362rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019363
19364if test $ac_cv_header_stdc = yes; then
19365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19366 cat >conftest.$ac_ext <<_ACEOF
19367#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019368/* confdefs.h. */
19369_ACEOF
19370cat confdefs.h >>conftest.$ac_ext
19371cat >>conftest.$ac_ext <<_ACEOF
19372/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019373#include <string.h>
19374
19375_ACEOF
19376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019377 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019378 :
19379else
19380 ac_cv_header_stdc=no
19381fi
19382rm -f conftest*
19383
19384fi
19385
19386if test $ac_cv_header_stdc = yes; then
19387 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19388 cat >conftest.$ac_ext <<_ACEOF
19389#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019390/* confdefs.h. */
19391_ACEOF
19392cat confdefs.h >>conftest.$ac_ext
19393cat >>conftest.$ac_ext <<_ACEOF
19394/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019395#include <stdlib.h>
19396
19397_ACEOF
19398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019399 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019400 :
19401else
19402 ac_cv_header_stdc=no
19403fi
19404rm -f conftest*
19405
19406fi
19407
19408if test $ac_cv_header_stdc = yes; then
19409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19410 if test "$cross_compiling" = yes; then
19411 :
19412else
19413 cat >conftest.$ac_ext <<_ACEOF
19414#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019415/* confdefs.h. */
19416_ACEOF
19417cat confdefs.h >>conftest.$ac_ext
19418cat >>conftest.$ac_ext <<_ACEOF
19419/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019420#include <ctype.h>
19421#if ((' ' & 0x0FF) == 0x020)
19422# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19423# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19424#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019425# define ISLOWER(c) \
19426 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019427 || ('j' <= (c) && (c) <= 'r') \
19428 || ('s' <= (c) && (c) <= 'z'))
19429# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19430#endif
19431
19432#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19433int
19434main ()
19435{
19436 int i;
19437 for (i = 0; i < 256; i++)
19438 if (XOR (islower (i), ISLOWER (i))
19439 || toupper (i) != TOUPPER (i))
19440 exit(2);
19441 exit (0);
19442}
19443_ACEOF
19444rm -f conftest$ac_exeext
19445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19446 (eval $ac_link) 2>&5
19447 ac_status=$?
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; }; then
19455 :
19456else
19457 echo "$as_me: program exited with status $ac_status" >&5
19458echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019459sed 's/^/| /' conftest.$ac_ext >&5
19460
John Criswell7a73b802003-06-30 21:59:07 +000019461( exit $ac_status )
19462ac_cv_header_stdc=no
19463fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019464rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019465fi
19466fi
19467fi
19468echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19469echo "${ECHO_T}$ac_cv_header_stdc" >&6
19470if test $ac_cv_header_stdc = yes; then
19471
19472cat >>confdefs.h <<\_ACEOF
19473#define STDC_HEADERS 1
19474_ACEOF
19475
19476fi
19477
19478echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19479echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19480if test "${ac_cv_header_sys_wait_h+set}" = set; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19482else
19483 cat >conftest.$ac_ext <<_ACEOF
19484#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019485/* confdefs.h. */
19486_ACEOF
19487cat confdefs.h >>conftest.$ac_ext
19488cat >>conftest.$ac_ext <<_ACEOF
19489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019490#include <sys/types.h>
19491#include <sys/wait.h>
19492#ifndef WEXITSTATUS
19493# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19494#endif
19495#ifndef WIFEXITED
19496# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19497#endif
19498
John Criswell7a73b802003-06-30 21:59:07 +000019499int
19500main ()
19501{
19502 int s;
19503 wait (&s);
19504 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19505 ;
19506 return 0;
19507}
19508_ACEOF
19509rm -f conftest.$ac_objext
19510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19511 (eval $ac_compile) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } &&
19515 { ac_try='test -s conftest.$ac_objext'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521 ac_cv_header_sys_wait_h=yes
19522else
19523 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019524sed 's/^/| /' conftest.$ac_ext >&5
19525
John Criswell7a73b802003-06-30 21:59:07 +000019526ac_cv_header_sys_wait_h=no
19527fi
19528rm -f conftest.$ac_objext conftest.$ac_ext
19529fi
19530echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19531echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19532if test $ac_cv_header_sys_wait_h = yes; then
19533
19534cat >>confdefs.h <<\_ACEOF
19535#define HAVE_SYS_WAIT_H 1
19536_ACEOF
19537
19538fi
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19550do
19551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19552if eval "test \"\${$as_ac_Header+set}\" = set"; then
19553 echo "$as_me:$LINENO: checking for $ac_header" >&5
19554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19555if eval "test \"\${$as_ac_Header+set}\" = set"; then
19556 echo $ECHO_N "(cached) $ECHO_C" >&6
19557fi
19558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19560else
19561 # Is the header compilable?
19562echo "$as_me:$LINENO: checking $ac_header usability" >&5
19563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19564cat >conftest.$ac_ext <<_ACEOF
19565#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019566/* confdefs.h. */
19567_ACEOF
19568cat confdefs.h >>conftest.$ac_ext
19569cat >>conftest.$ac_ext <<_ACEOF
19570/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019571$ac_includes_default
19572#include <$ac_header>
19573_ACEOF
19574rm -f conftest.$ac_objext
19575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576 (eval $ac_compile) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } &&
19580 { ac_try='test -s conftest.$ac_objext'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; }; then
19586 ac_header_compiler=yes
19587else
19588 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019589sed 's/^/| /' conftest.$ac_ext >&5
19590
John Criswell7a73b802003-06-30 21:59:07 +000019591ac_header_compiler=no
19592fi
19593rm -f conftest.$ac_objext conftest.$ac_ext
19594echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19595echo "${ECHO_T}$ac_header_compiler" >&6
19596
19597# Is the header present?
19598echo "$as_me:$LINENO: checking $ac_header presence" >&5
19599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19600cat >conftest.$ac_ext <<_ACEOF
19601#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019602/* confdefs.h. */
19603_ACEOF
19604cat confdefs.h >>conftest.$ac_ext
19605cat >>conftest.$ac_ext <<_ACEOF
19606/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019607#include <$ac_header>
19608_ACEOF
19609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19611 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019612 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019613 rm -f conftest.er1
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } >/dev/null; then
19617 if test -s conftest.err; then
19618 ac_cpp_err=$ac_c_preproc_warn_flag
19619 else
19620 ac_cpp_err=
19621 fi
19622else
19623 ac_cpp_err=yes
19624fi
19625if test -z "$ac_cpp_err"; then
19626 ac_header_preproc=yes
19627else
19628 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019629sed 's/^/| /' conftest.$ac_ext >&5
19630
John Criswell7a73b802003-06-30 21:59:07 +000019631 ac_header_preproc=no
19632fi
19633rm -f conftest.err conftest.$ac_ext
19634echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19635echo "${ECHO_T}$ac_header_preproc" >&6
19636
19637# So? What about this header?
19638case $ac_header_compiler:$ac_header_preproc in
19639 yes:no )
19640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19644 (
19645 cat <<\_ASBOX
19646## ------------------------------------ ##
19647## Report this to bug-autoconf@gnu.org. ##
19648## ------------------------------------ ##
19649_ASBOX
19650 ) |
19651 sed "s/^/$as_me: WARNING: /" >&2
19652 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019653 no:yes )
19654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19655echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19657echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019659echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19660 (
19661 cat <<\_ASBOX
19662## ------------------------------------ ##
19663## Report this to bug-autoconf@gnu.org. ##
19664## ------------------------------------ ##
19665_ASBOX
19666 ) |
19667 sed "s/^/$as_me: WARNING: /" >&2
19668 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019669esac
19670echo "$as_me:$LINENO: checking for $ac_header" >&5
19671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19672if eval "test \"\${$as_ac_Header+set}\" = set"; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19674else
19675 eval "$as_ac_Header=$ac_header_preproc"
19676fi
19677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19679
19680fi
19681if test `eval echo '${'$as_ac_Header'}'` = yes; then
19682 cat >>confdefs.h <<_ACEOF
19683#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19684_ACEOF
19685
19686fi
19687
19688done
19689
19690
19691
19692
19693
19694
19695for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19696do
19697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19698if eval "test \"\${$as_ac_Header+set}\" = set"; then
19699 echo "$as_me:$LINENO: checking for $ac_header" >&5
19700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19701if eval "test \"\${$as_ac_Header+set}\" = set"; then
19702 echo $ECHO_N "(cached) $ECHO_C" >&6
19703fi
19704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19706else
19707 # Is the header compilable?
19708echo "$as_me:$LINENO: checking $ac_header usability" >&5
19709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19710cat >conftest.$ac_ext <<_ACEOF
19711#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019712/* confdefs.h. */
19713_ACEOF
19714cat confdefs.h >>conftest.$ac_ext
19715cat >>conftest.$ac_ext <<_ACEOF
19716/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019717$ac_includes_default
19718#include <$ac_header>
19719_ACEOF
19720rm -f conftest.$ac_objext
19721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19722 (eval $ac_compile) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } &&
19726 { ac_try='test -s conftest.$ac_objext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19732 ac_header_compiler=yes
19733else
19734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019735sed 's/^/| /' conftest.$ac_ext >&5
19736
John Criswell7a73b802003-06-30 21:59:07 +000019737ac_header_compiler=no
19738fi
19739rm -f conftest.$ac_objext conftest.$ac_ext
19740echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19741echo "${ECHO_T}$ac_header_compiler" >&6
19742
19743# Is the header present?
19744echo "$as_me:$LINENO: checking $ac_header presence" >&5
19745echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19746cat >conftest.$ac_ext <<_ACEOF
19747#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019748/* confdefs.h. */
19749_ACEOF
19750cat confdefs.h >>conftest.$ac_ext
19751cat >>conftest.$ac_ext <<_ACEOF
19752/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019753#include <$ac_header>
19754_ACEOF
19755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19757 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019758 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019759 rm -f conftest.er1
19760 cat conftest.err >&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } >/dev/null; then
19763 if test -s conftest.err; then
19764 ac_cpp_err=$ac_c_preproc_warn_flag
19765 else
19766 ac_cpp_err=
19767 fi
19768else
19769 ac_cpp_err=yes
19770fi
19771if test -z "$ac_cpp_err"; then
19772 ac_header_preproc=yes
19773else
19774 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019775sed 's/^/| /' conftest.$ac_ext >&5
19776
John Criswell7a73b802003-06-30 21:59:07 +000019777 ac_header_preproc=no
19778fi
19779rm -f conftest.err conftest.$ac_ext
19780echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19781echo "${ECHO_T}$ac_header_preproc" >&6
19782
19783# So? What about this header?
19784case $ac_header_compiler:$ac_header_preproc in
19785 yes:no )
19786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19787echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019789echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19790 (
19791 cat <<\_ASBOX
19792## ------------------------------------ ##
19793## Report this to bug-autoconf@gnu.org. ##
19794## ------------------------------------ ##
19795_ASBOX
19796 ) |
19797 sed "s/^/$as_me: WARNING: /" >&2
19798 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019799 no:yes )
19800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19803echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19806 (
19807 cat <<\_ASBOX
19808## ------------------------------------ ##
19809## Report this to bug-autoconf@gnu.org. ##
19810## ------------------------------------ ##
19811_ASBOX
19812 ) |
19813 sed "s/^/$as_me: WARNING: /" >&2
19814 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019815esac
19816echo "$as_me:$LINENO: checking for $ac_header" >&5
19817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19818if eval "test \"\${$as_ac_Header+set}\" = set"; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19820else
19821 eval "$as_ac_Header=$ac_header_preproc"
19822fi
19823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19825
19826fi
19827if test `eval echo '${'$as_ac_Header'}'` = yes; then
19828 cat >>confdefs.h <<_ACEOF
19829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19830_ACEOF
19831
19832fi
19833
19834done
19835
19836
19837
19838
19839for ac_header in dlfcn.h link.h
19840do
19841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19842if eval "test \"\${$as_ac_Header+set}\" = set"; then
19843 echo "$as_me:$LINENO: checking for $ac_header" >&5
19844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19845if eval "test \"\${$as_ac_Header+set}\" = set"; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847fi
19848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19850else
19851 # Is the header compilable?
19852echo "$as_me:$LINENO: checking $ac_header usability" >&5
19853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19854cat >conftest.$ac_ext <<_ACEOF
19855#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019856/* confdefs.h. */
19857_ACEOF
19858cat confdefs.h >>conftest.$ac_ext
19859cat >>conftest.$ac_ext <<_ACEOF
19860/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019861$ac_includes_default
19862#include <$ac_header>
19863_ACEOF
19864rm -f conftest.$ac_objext
19865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19866 (eval $ac_compile) 2>&5
19867 ac_status=$?
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
19870 { ac_try='test -s conftest.$ac_objext'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
19876 ac_header_compiler=yes
19877else
19878 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019879sed 's/^/| /' conftest.$ac_ext >&5
19880
John Criswell7a73b802003-06-30 21:59:07 +000019881ac_header_compiler=no
19882fi
19883rm -f conftest.$ac_objext conftest.$ac_ext
19884echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19885echo "${ECHO_T}$ac_header_compiler" >&6
19886
19887# Is the header present?
19888echo "$as_me:$LINENO: checking $ac_header presence" >&5
19889echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19890cat >conftest.$ac_ext <<_ACEOF
19891#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019892/* confdefs.h. */
19893_ACEOF
19894cat confdefs.h >>conftest.$ac_ext
19895cat >>conftest.$ac_ext <<_ACEOF
19896/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019897#include <$ac_header>
19898_ACEOF
19899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19901 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019902 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019903 rm -f conftest.er1
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } >/dev/null; then
19907 if test -s conftest.err; then
19908 ac_cpp_err=$ac_c_preproc_warn_flag
19909 else
19910 ac_cpp_err=
19911 fi
19912else
19913 ac_cpp_err=yes
19914fi
19915if test -z "$ac_cpp_err"; then
19916 ac_header_preproc=yes
19917else
19918 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019919sed 's/^/| /' conftest.$ac_ext >&5
19920
John Criswell7a73b802003-06-30 21:59:07 +000019921 ac_header_preproc=no
19922fi
19923rm -f conftest.err conftest.$ac_ext
19924echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19925echo "${ECHO_T}$ac_header_preproc" >&6
19926
19927# So? What about this header?
19928case $ac_header_compiler:$ac_header_preproc in
19929 yes:no )
19930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19931echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19934 (
19935 cat <<\_ASBOX
19936## ------------------------------------ ##
19937## Report this to bug-autoconf@gnu.org. ##
19938## ------------------------------------ ##
19939_ASBOX
19940 ) |
19941 sed "s/^/$as_me: WARNING: /" >&2
19942 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019943 no:yes )
19944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19950 (
19951 cat <<\_ASBOX
19952## ------------------------------------ ##
19953## Report this to bug-autoconf@gnu.org. ##
19954## ------------------------------------ ##
19955_ASBOX
19956 ) |
19957 sed "s/^/$as_me: WARNING: /" >&2
19958 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019959esac
19960echo "$as_me:$LINENO: checking for $ac_header" >&5
19961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19962if eval "test \"\${$as_ac_Header+set}\" = set"; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19964else
19965 eval "$as_ac_Header=$ac_header_preproc"
19966fi
19967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19969
19970fi
19971if test `eval echo '${'$as_ac_Header'}'` = yes; then
19972 cat >>confdefs.h <<_ACEOF
19973#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19974_ACEOF
19975
19976fi
19977
19978done
19979
19980
19981
John Criswell7a73b802003-06-30 21:59:07 +000019982echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19983echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19984if test "${ac_cv_c_const+set}" = set; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19986else
19987 cat >conftest.$ac_ext <<_ACEOF
19988#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019989/* confdefs.h. */
19990_ACEOF
19991cat confdefs.h >>conftest.$ac_ext
19992cat >>conftest.$ac_ext <<_ACEOF
19993/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019994
John Criswell7a73b802003-06-30 21:59:07 +000019995int
19996main ()
19997{
19998/* FIXME: Include the comments suggested by Paul. */
19999#ifndef __cplusplus
20000 /* Ultrix mips cc rejects this. */
20001 typedef int charset[2];
20002 const charset x;
20003 /* SunOS 4.1.1 cc rejects this. */
20004 char const *const *ccp;
20005 char **p;
20006 /* NEC SVR4.0.2 mips cc rejects this. */
20007 struct point {int x, y;};
20008 static struct point const zero = {0,0};
20009 /* AIX XL C 1.02.0.0 rejects this.
20010 It does not let you subtract one const X* pointer from another in
20011 an arm of an if-expression whose if-part is not a constant
20012 expression */
20013 const char *g = "string";
20014 ccp = &g + (g ? g-g : 0);
20015 /* HPUX 7.0 cc rejects these. */
20016 ++ccp;
20017 p = (char**) ccp;
20018 ccp = (char const *const *) p;
20019 { /* SCO 3.2v4 cc rejects this. */
20020 char *t;
20021 char const *s = 0 ? (char *) 0 : (char const *) 0;
20022
20023 *t++ = 0;
20024 }
20025 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20026 int x[] = {25, 17};
20027 const int *foo = &x[0];
20028 ++foo;
20029 }
20030 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20031 typedef const int *iptr;
20032 iptr p = 0;
20033 ++p;
20034 }
20035 { /* AIX XL C 1.02.0.0 rejects this saying
20036 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20037 struct s { int j; const int *ap[3]; };
20038 struct s *b; b->j = 5;
20039 }
20040 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20041 const int foo = 10;
20042 }
20043#endif
20044
20045 ;
20046 return 0;
20047}
20048_ACEOF
20049rm -f conftest.$ac_objext
20050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20051 (eval $ac_compile) 2>&5
20052 ac_status=$?
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } &&
20055 { ac_try='test -s conftest.$ac_objext'
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 ac_cv_c_const=yes
20062else
20063 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020064sed 's/^/| /' conftest.$ac_ext >&5
20065
John Criswell7a73b802003-06-30 21:59:07 +000020066ac_cv_c_const=no
20067fi
20068rm -f conftest.$ac_objext conftest.$ac_ext
20069fi
20070echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20071echo "${ECHO_T}$ac_cv_c_const" >&6
20072if test $ac_cv_c_const = no; then
20073
20074cat >>confdefs.h <<\_ACEOF
20075#define const
20076_ACEOF
20077
20078fi
20079
20080echo "$as_me:$LINENO: checking for inline" >&5
20081echo $ECHO_N "checking for inline... $ECHO_C" >&6
20082if test "${ac_cv_c_inline+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20084else
20085 ac_cv_c_inline=no
20086for ac_kw in inline __inline__ __inline; do
20087 cat >conftest.$ac_ext <<_ACEOF
20088#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020089/* confdefs.h. */
20090_ACEOF
20091cat confdefs.h >>conftest.$ac_ext
20092cat >>conftest.$ac_ext <<_ACEOF
20093/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020094#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020095typedef int foo_t;
20096static $ac_kw foo_t static_foo () {return 0; }
20097$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020098#endif
20099
20100_ACEOF
20101rm -f conftest.$ac_objext
20102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20103 (eval $ac_compile) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } &&
20107 { ac_try='test -s conftest.$ac_objext'
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
20113 ac_cv_c_inline=$ac_kw; break
20114else
20115 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020116sed 's/^/| /' conftest.$ac_ext >&5
20117
John Criswell7a73b802003-06-30 21:59:07 +000020118fi
20119rm -f conftest.$ac_objext conftest.$ac_ext
20120done
20121
20122fi
20123echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20124echo "${ECHO_T}$ac_cv_c_inline" >&6
20125case $ac_cv_c_inline in
20126 inline | yes) ;;
20127 no)
20128cat >>confdefs.h <<\_ACEOF
20129#define inline
20130_ACEOF
20131 ;;
20132 *) cat >>confdefs.h <<_ACEOF
20133#define inline $ac_cv_c_inline
20134_ACEOF
20135 ;;
20136esac
20137
20138
20139echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20140echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20141if test "${ac_cv_c_bigendian+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20143else
20144 # See if sys/param.h defines the BYTE_ORDER macro.
20145cat >conftest.$ac_ext <<_ACEOF
20146#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020147/* confdefs.h. */
20148_ACEOF
20149cat confdefs.h >>conftest.$ac_ext
20150cat >>conftest.$ac_ext <<_ACEOF
20151/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020152#include <sys/types.h>
20153#include <sys/param.h>
20154
John Criswell7a73b802003-06-30 21:59:07 +000020155int
20156main ()
20157{
20158#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20159 bogus endian macros
20160#endif
20161
20162 ;
20163 return 0;
20164}
20165_ACEOF
20166rm -f conftest.$ac_objext
20167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20168 (eval $ac_compile) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } &&
20172 { ac_try='test -s conftest.$ac_objext'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20178 # It does; now see whether it defined to BIG_ENDIAN or not.
20179cat >conftest.$ac_ext <<_ACEOF
20180#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020181/* confdefs.h. */
20182_ACEOF
20183cat confdefs.h >>conftest.$ac_ext
20184cat >>conftest.$ac_ext <<_ACEOF
20185/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020186#include <sys/types.h>
20187#include <sys/param.h>
20188
John Criswell7a73b802003-06-30 21:59:07 +000020189int
20190main ()
20191{
20192#if BYTE_ORDER != BIG_ENDIAN
20193 not big endian
20194#endif
20195
20196 ;
20197 return 0;
20198}
20199_ACEOF
20200rm -f conftest.$ac_objext
20201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20202 (eval $ac_compile) 2>&5
20203 ac_status=$?
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } &&
20206 { ac_try='test -s conftest.$ac_objext'
20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208 (eval $ac_try) 2>&5
20209 ac_status=$?
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20212 ac_cv_c_bigendian=yes
20213else
20214 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020215sed 's/^/| /' conftest.$ac_ext >&5
20216
John Criswell7a73b802003-06-30 21:59:07 +000020217ac_cv_c_bigendian=no
20218fi
20219rm -f conftest.$ac_objext conftest.$ac_ext
20220else
20221 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020222sed 's/^/| /' conftest.$ac_ext >&5
20223
John Criswell7a73b802003-06-30 21:59:07 +000020224# It does not; compile a test program.
20225if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020226 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020227 ac_cv_c_bigendian=unknown
20228 cat >conftest.$ac_ext <<_ACEOF
20229#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020230/* confdefs.h. */
20231_ACEOF
20232cat confdefs.h >>conftest.$ac_ext
20233cat >>conftest.$ac_ext <<_ACEOF
20234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020235short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20236short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20237void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20238short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20239short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20240void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020241int
20242main ()
20243{
20244 _ascii (); _ebcdic ();
20245 ;
20246 return 0;
20247}
20248_ACEOF
20249rm -f conftest.$ac_objext
20250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20251 (eval $ac_compile) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } &&
20255 { ac_try='test -s conftest.$ac_objext'
20256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020261 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020262 ac_cv_c_bigendian=yes
20263fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020264if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020265 if test "$ac_cv_c_bigendian" = unknown; then
20266 ac_cv_c_bigendian=no
20267 else
20268 # finding both strings is unlikely to happen, but who knows?
20269 ac_cv_c_bigendian=unknown
20270 fi
20271fi
20272else
20273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020274sed 's/^/| /' conftest.$ac_ext >&5
20275
John Criswell7a73b802003-06-30 21:59:07 +000020276fi
20277rm -f conftest.$ac_objext conftest.$ac_ext
20278else
20279 cat >conftest.$ac_ext <<_ACEOF
20280#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020281/* confdefs.h. */
20282_ACEOF
20283cat confdefs.h >>conftest.$ac_ext
20284cat >>conftest.$ac_ext <<_ACEOF
20285/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020286int
20287main ()
20288{
20289 /* Are we little or big endian? From Harbison&Steele. */
20290 union
20291 {
20292 long l;
20293 char c[sizeof (long)];
20294 } u;
20295 u.l = 1;
20296 exit (u.c[sizeof (long) - 1] == 1);
20297}
20298_ACEOF
20299rm -f conftest$ac_exeext
20300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20301 (eval $ac_link) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20307 ac_status=$?
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; }; then
20310 ac_cv_c_bigendian=no
20311else
20312 echo "$as_me: program exited with status $ac_status" >&5
20313echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020314sed 's/^/| /' conftest.$ac_ext >&5
20315
John Criswell7a73b802003-06-30 21:59:07 +000020316( exit $ac_status )
20317ac_cv_c_bigendian=yes
20318fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020319rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020320fi
20321fi
20322rm -f conftest.$ac_objext conftest.$ac_ext
20323fi
20324echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20325echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20326case $ac_cv_c_bigendian in
20327 yes)
John Criswell5ab73462003-10-09 15:44:28 +000020328
20329cat >>confdefs.h <<\_ACEOF
20330#define ENDIAN_BIG
John Criswell7a73b802003-06-30 21:59:07 +000020331_ACEOF
20332 ;;
20333 no)
John Criswell5ab73462003-10-09 15:44:28 +000020334
20335cat >>confdefs.h <<\_ACEOF
20336#define ENDIAN_LITTLE
John Criswell7a73b802003-06-30 21:59:07 +000020337_ACEOF
20338 ;;
20339 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020340 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020341presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020342echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020343presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20344 { (exit 1); exit 1; }; } ;;
20345esac
20346
20347
20348echo "$as_me:$LINENO: checking for pid_t" >&5
20349echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20350if test "${ac_cv_type_pid_t+set}" = set; then
20351 echo $ECHO_N "(cached) $ECHO_C" >&6
20352else
20353 cat >conftest.$ac_ext <<_ACEOF
20354#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020355/* confdefs.h. */
20356_ACEOF
20357cat confdefs.h >>conftest.$ac_ext
20358cat >>conftest.$ac_ext <<_ACEOF
20359/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020360$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020361int
20362main ()
20363{
20364if ((pid_t *) 0)
20365 return 0;
20366if (sizeof (pid_t))
20367 return 0;
20368 ;
20369 return 0;
20370}
20371_ACEOF
20372rm -f conftest.$ac_objext
20373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20374 (eval $ac_compile) 2>&5
20375 ac_status=$?
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } &&
20378 { ac_try='test -s conftest.$ac_objext'
20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380 (eval $ac_try) 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; }; then
20384 ac_cv_type_pid_t=yes
20385else
20386 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020387sed 's/^/| /' conftest.$ac_ext >&5
20388
John Criswell7a73b802003-06-30 21:59:07 +000020389ac_cv_type_pid_t=no
20390fi
20391rm -f conftest.$ac_objext conftest.$ac_ext
20392fi
20393echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20394echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20395if test $ac_cv_type_pid_t = yes; then
20396 :
20397else
20398
20399cat >>confdefs.h <<_ACEOF
20400#define pid_t int
20401_ACEOF
20402
20403fi
20404
20405echo "$as_me:$LINENO: checking for size_t" >&5
20406echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20407if test "${ac_cv_type_size_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 ((size_t *) 0)
20422 return 0;
20423if (sizeof (size_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_size_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_size_t=no
20447fi
20448rm -f conftest.$ac_objext conftest.$ac_ext
20449fi
20450echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20451echo "${ECHO_T}$ac_cv_type_size_t" >&6
20452if test $ac_cv_type_size_t = yes; then
20453 :
20454else
20455
20456cat >>confdefs.h <<_ACEOF
20457#define size_t unsigned
20458_ACEOF
20459
20460fi
20461
20462echo "$as_me:$LINENO: checking for int64_t" >&5
20463echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20464if test "${ac_cv_type_int64_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 ((int64_t *) 0)
20479 return 0;
20480if (sizeof (int64_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_int64_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_int64_t=no
20504fi
20505rm -f conftest.$ac_objext conftest.$ac_ext
20506fi
20507echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20508echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20509if test $ac_cv_type_int64_t = yes; then
20510
20511cat >>confdefs.h <<_ACEOF
20512#define HAVE_INT64_T 1
20513_ACEOF
20514
20515
20516else
20517 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20518echo "$as_me: error: Type int64_t required but not found" >&2;}
20519 { (exit 1); exit 1; }; }
20520fi
20521
20522echo "$as_me:$LINENO: checking for uint64_t" >&5
20523echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20524if test "${ac_cv_type_uint64_t+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20526else
20527 cat >conftest.$ac_ext <<_ACEOF
20528#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020529/* confdefs.h. */
20530_ACEOF
20531cat confdefs.h >>conftest.$ac_ext
20532cat >>conftest.$ac_ext <<_ACEOF
20533/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020534$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020535int
20536main ()
20537{
20538if ((uint64_t *) 0)
20539 return 0;
20540if (sizeof (uint64_t))
20541 return 0;
20542 ;
20543 return 0;
20544}
20545_ACEOF
20546rm -f conftest.$ac_objext
20547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20548 (eval $ac_compile) 2>&5
20549 ac_status=$?
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } &&
20552 { ac_try='test -s conftest.$ac_objext'
20553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20555 ac_status=$?
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; }; then
20558 ac_cv_type_uint64_t=yes
20559else
20560 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020561sed 's/^/| /' conftest.$ac_ext >&5
20562
John Criswell7a73b802003-06-30 21:59:07 +000020563ac_cv_type_uint64_t=no
20564fi
20565rm -f conftest.$ac_objext conftest.$ac_ext
20566fi
20567echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20568echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20569if test $ac_cv_type_uint64_t = yes; then
20570
20571cat >>confdefs.h <<_ACEOF
20572#define HAVE_UINT64_T 1
20573_ACEOF
20574
20575
20576else
20577 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20578echo "$as_me: error: Type uint64_t required but not found" >&2;}
20579 { (exit 1); exit 1; }; }
20580fi
20581
20582echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20583echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20584if test "${ac_cv_header_time+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20586else
20587 cat >conftest.$ac_ext <<_ACEOF
20588#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020589/* confdefs.h. */
20590_ACEOF
20591cat confdefs.h >>conftest.$ac_ext
20592cat >>conftest.$ac_ext <<_ACEOF
20593/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020594#include <sys/types.h>
20595#include <sys/time.h>
20596#include <time.h>
20597
John Criswell7a73b802003-06-30 21:59:07 +000020598int
20599main ()
20600{
20601if ((struct tm *) 0)
20602return 0;
20603 ;
20604 return 0;
20605}
20606_ACEOF
20607rm -f conftest.$ac_objext
20608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20609 (eval $ac_compile) 2>&5
20610 ac_status=$?
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } &&
20613 { ac_try='test -s conftest.$ac_objext'
20614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615 (eval $ac_try) 2>&5
20616 ac_status=$?
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); }; }; then
20619 ac_cv_header_time=yes
20620else
20621 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020622sed 's/^/| /' conftest.$ac_ext >&5
20623
John Criswell7a73b802003-06-30 21:59:07 +000020624ac_cv_header_time=no
20625fi
20626rm -f conftest.$ac_objext conftest.$ac_ext
20627fi
20628echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20629echo "${ECHO_T}$ac_cv_header_time" >&6
20630if test $ac_cv_header_time = yes; then
20631
20632cat >>confdefs.h <<\_ACEOF
20633#define TIME_WITH_SYS_TIME 1
20634_ACEOF
20635
20636fi
20637
20638echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20639echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20640if test "${ac_cv_struct_tm+set}" = set; then
20641 echo $ECHO_N "(cached) $ECHO_C" >&6
20642else
20643 cat >conftest.$ac_ext <<_ACEOF
20644#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020645/* confdefs.h. */
20646_ACEOF
20647cat confdefs.h >>conftest.$ac_ext
20648cat >>conftest.$ac_ext <<_ACEOF
20649/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020650#include <sys/types.h>
20651#include <time.h>
20652
John Criswell7a73b802003-06-30 21:59:07 +000020653int
20654main ()
20655{
20656struct tm *tp; tp->tm_sec;
20657 ;
20658 return 0;
20659}
20660_ACEOF
20661rm -f conftest.$ac_objext
20662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20663 (eval $ac_compile) 2>&5
20664 ac_status=$?
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); } &&
20667 { ac_try='test -s conftest.$ac_objext'
20668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669 (eval $ac_try) 2>&5
20670 ac_status=$?
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; }; then
20673 ac_cv_struct_tm=time.h
20674else
20675 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020676sed 's/^/| /' conftest.$ac_ext >&5
20677
John Criswell7a73b802003-06-30 21:59:07 +000020678ac_cv_struct_tm=sys/time.h
20679fi
20680rm -f conftest.$ac_objext conftest.$ac_ext
20681fi
20682echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20683echo "${ECHO_T}$ac_cv_struct_tm" >&6
20684if test $ac_cv_struct_tm = sys/time.h; then
20685
20686cat >>confdefs.h <<\_ACEOF
20687#define TM_IN_SYS_TIME 1
20688_ACEOF
20689
20690fi
20691
20692
John Criswella0137d32003-10-13 16:22:01 +000020693
20694
20695
20696 ac_ext=c
20697ac_cpp='$CPP $CPPFLAGS'
20698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20700ac_compiler_gnu=$ac_cv_c_compiler_gnu
20701
20702 if test "$cross_compiling" = yes; then
20703 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20704See \`config.log' for more details." >&5
20705echo "$as_me: error: cannot run test program while cross compiling
20706See \`config.log' for more details." >&2;}
20707 { (exit 1); exit 1; }; }
20708else
20709 cat >conftest.$ac_ext <<_ACEOF
20710#line $LINENO "configure"
20711/* confdefs.h. */
20712_ACEOF
20713cat confdefs.h >>conftest.$ac_ext
20714cat >>conftest.$ac_ext <<_ACEOF
20715/* end confdefs.h. */
20716#include <stdio.h>
20717 #include <stdlib.h>
20718int
20719main ()
20720{
20721
20722 volatile double A, B;
20723 char Buffer[100];
20724 A = 1;
20725 A /= 10.0;
20726 sprintf(Buffer, "%a", A);
20727 B = atof(Buffer);
20728 if (A != B)
20729 return (1);
20730 if (A != 0x1.999999999999ap-4)
20731 return (1);
20732 return (0);
20733 ;
20734 return 0;
20735}
20736_ACEOF
20737rm -f conftest$ac_exeext
20738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20739 (eval $ac_link) 2>&5
20740 ac_status=$?
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; }; then
20748 ac_c_printf_a=yes
20749else
20750 echo "$as_me: program exited with status $ac_status" >&5
20751echo "$as_me: failed program was:" >&5
20752sed 's/^/| /' conftest.$ac_ext >&5
20753
20754( exit $ac_status )
20755ac_c_printf_a=no
20756fi
20757rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20758fi
20759 ac_ext=c
20760ac_cpp='$CPP $CPPFLAGS'
20761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20763ac_compiler_gnu=$ac_cv_c_compiler_gnu
20764
20765 if test "$ac_c_printf_a" = "yes"; then
20766
20767cat >>confdefs.h <<\_ACEOF
20768#define HAVE_PRINTF_A 1
20769_ACEOF
20770
20771 fi
20772
20773
John Criswell7a73b802003-06-30 21:59:07 +000020774echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20775echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20776if test "${ac_cv_cxx_namespaces+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20778else
20779
20780
20781 ac_ext=cc
20782ac_cpp='$CXXCPP $CPPFLAGS'
20783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20786
20787 cat >conftest.$ac_ext <<_ACEOF
20788#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020789/* confdefs.h. */
20790_ACEOF
20791cat confdefs.h >>conftest.$ac_ext
20792cat >>conftest.$ac_ext <<_ACEOF
20793/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020794namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020795int
20796main ()
20797{
20798using namespace Outer::Inner; return i;
20799 ;
20800 return 0;
20801}
20802_ACEOF
20803rm -f conftest.$ac_objext
20804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20805 (eval $ac_compile) 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); } &&
20809 { ac_try='test -s conftest.$ac_objext'
20810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811 (eval $ac_try) 2>&5
20812 ac_status=$?
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; }; then
20815 ac_cv_cxx_namespaces=yes
20816else
20817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020818sed 's/^/| /' conftest.$ac_ext >&5
20819
John Criswell7a73b802003-06-30 21:59:07 +000020820ac_cv_cxx_namespaces=no
20821fi
20822rm -f conftest.$ac_objext conftest.$ac_ext
20823 ac_ext=c
20824ac_cpp='$CPP $CPPFLAGS'
20825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20827ac_compiler_gnu=$ac_cv_c_compiler_gnu
20828
20829
20830fi
20831echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20832echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20833if test "$ac_cv_cxx_namespaces" = yes; then
20834
20835cat >>confdefs.h <<\_ACEOF
20836#define HAVE_NAMESPACES
20837_ACEOF
20838
20839fi
20840
20841echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20842echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20843if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20845else
20846
20847
20848
20849 ac_ext=cc
20850ac_cpp='$CXXCPP $CPPFLAGS'
20851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20854
20855 cat >conftest.$ac_ext <<_ACEOF
20856#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020857/* confdefs.h. */
20858_ACEOF
20859cat confdefs.h >>conftest.$ac_ext
20860cat >>conftest.$ac_ext <<_ACEOF
20861/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020862#include <ext/hash_map>
20863#ifdef HAVE_NAMESPACES
20864using namespace std;
20865#endif
John Criswell7a73b802003-06-30 21:59:07 +000020866int
20867main ()
20868{
20869hash_map<int, int> t; return 0;
20870 ;
20871 return 0;
20872}
20873_ACEOF
20874rm -f conftest.$ac_objext
20875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20876 (eval $ac_compile) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } &&
20880 { ac_try='test -s conftest.$ac_objext'
20881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882 (eval $ac_try) 2>&5
20883 ac_status=$?
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; }; then
20886 ac_cv_cxx_have_ext_hash_map=std
20887else
20888 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020889sed 's/^/| /' conftest.$ac_ext >&5
20890
John Criswell7a73b802003-06-30 21:59:07 +000020891ac_cv_cxx_have_ext_hash_map=no
20892fi
20893rm -f conftest.$ac_objext conftest.$ac_ext
20894 cat >conftest.$ac_ext <<_ACEOF
20895#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020896/* confdefs.h. */
20897_ACEOF
20898cat confdefs.h >>conftest.$ac_ext
20899cat >>conftest.$ac_ext <<_ACEOF
20900/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020901#include <ext/hash_map>
20902#ifdef HAVE_NAMESPACES
20903using namespace __gnu_cxx;
20904#endif
John Criswell7a73b802003-06-30 21:59:07 +000020905int
20906main ()
20907{
20908hash_map<int, int> t; return 0;
20909 ;
20910 return 0;
20911}
20912_ACEOF
20913rm -f conftest.$ac_objext
20914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20915 (eval $ac_compile) 2>&5
20916 ac_status=$?
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } &&
20919 { ac_try='test -s conftest.$ac_objext'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; }; then
20925 ac_cv_cxx_have_ext_hash_map=gnu
20926else
20927 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020928sed 's/^/| /' conftest.$ac_ext >&5
20929
John Criswell7a73b802003-06-30 21:59:07 +000020930ac_cv_cxx_have_ext_hash_map=no
20931fi
20932rm -f conftest.$ac_objext conftest.$ac_ext
20933 ac_ext=c
20934ac_cpp='$CPP $CPPFLAGS'
20935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20937ac_compiler_gnu=$ac_cv_c_compiler_gnu
20938
20939
20940fi
20941echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20942echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20943if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20944
20945cat >>confdefs.h <<\_ACEOF
20946#define HAVE_STD_EXT_HASH_MAP
20947_ACEOF
20948
20949fi
20950if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20951
20952cat >>confdefs.h <<\_ACEOF
20953#define HAVE_GNU_EXT_HASH_MAP
20954_ACEOF
20955
20956fi
20957
20958echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20959echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20960if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20962else
20963
20964
20965
20966 ac_ext=cc
20967ac_cpp='$CXXCPP $CPPFLAGS'
20968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20971
20972 cat >conftest.$ac_ext <<_ACEOF
20973#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020974/* confdefs.h. */
20975_ACEOF
20976cat confdefs.h >>conftest.$ac_ext
20977cat >>conftest.$ac_ext <<_ACEOF
20978/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020979#include <ext/hash_set>
20980#ifdef HAVE_NAMESPACES
20981using namespace std;
20982#endif
John Criswell7a73b802003-06-30 21:59:07 +000020983int
20984main ()
20985{
20986hash_set<int> t; return 0;
20987 ;
20988 return 0;
20989}
20990_ACEOF
20991rm -f conftest.$ac_objext
20992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20993 (eval $ac_compile) 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } &&
20997 { ac_try='test -s conftest.$ac_objext'
20998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 (eval $ac_try) 2>&5
21000 ac_status=$?
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; }; then
21003 ac_cv_cxx_have_ext_hash_set=std
21004else
21005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021006sed 's/^/| /' conftest.$ac_ext >&5
21007
John Criswell7a73b802003-06-30 21:59:07 +000021008ac_cv_cxx_have_ext_hash_set=no
21009fi
21010rm -f conftest.$ac_objext conftest.$ac_ext
21011 cat >conftest.$ac_ext <<_ACEOF
21012#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021013/* confdefs.h. */
21014_ACEOF
21015cat confdefs.h >>conftest.$ac_ext
21016cat >>conftest.$ac_ext <<_ACEOF
21017/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021018#include <ext/hash_set>
21019#ifdef HAVE_NAMESPACES
21020using namespace __gnu_cxx;
21021#endif
John Criswell7a73b802003-06-30 21:59:07 +000021022int
21023main ()
21024{
21025hash_set<int> t; return 0;
21026 ;
21027 return 0;
21028}
21029_ACEOF
21030rm -f conftest.$ac_objext
21031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21032 (eval $ac_compile) 2>&5
21033 ac_status=$?
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } &&
21036 { ac_try='test -s conftest.$ac_objext'
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21039 ac_status=$?
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 ac_cv_cxx_have_ext_hash_set=gnu
21043else
21044 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021045sed 's/^/| /' conftest.$ac_ext >&5
21046
John Criswell7a73b802003-06-30 21:59:07 +000021047ac_cv_cxx_have_ext_hash_set=no
21048fi
21049rm -f conftest.$ac_objext conftest.$ac_ext
21050 ac_ext=c
21051ac_cpp='$CPP $CPPFLAGS'
21052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21054ac_compiler_gnu=$ac_cv_c_compiler_gnu
21055
21056
21057fi
21058echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21059echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21060if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21061
21062cat >>confdefs.h <<\_ACEOF
21063#define HAVE_STD_EXT_HASH_SET
21064_ACEOF
21065
21066fi
21067if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21068
21069cat >>confdefs.h <<\_ACEOF
21070#define HAVE_GNU_EXT_HASH_SET
21071_ACEOF
21072
21073fi
21074
21075echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21076echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21077if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21079else
21080
21081
21082
21083 ac_ext=cc
21084ac_cpp='$CXXCPP $CPPFLAGS'
21085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21088
21089 cat >conftest.$ac_ext <<_ACEOF
21090#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021091/* confdefs.h. */
21092_ACEOF
21093cat confdefs.h >>conftest.$ac_ext
21094cat >>conftest.$ac_ext <<_ACEOF
21095/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021096#include <ext/slist>
21097#ifdef HAVE_NAMESPACES
21098using namespace std;
21099#endif
John Criswell7a73b802003-06-30 21:59:07 +000021100int
21101main ()
21102{
21103slist<int> s; return 0;
21104 ;
21105 return 0;
21106}
21107_ACEOF
21108rm -f conftest.$ac_objext
21109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21110 (eval $ac_compile) 2>&5
21111 ac_status=$?
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } &&
21114 { ac_try='test -s conftest.$ac_objext'
21115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116 (eval $ac_try) 2>&5
21117 ac_status=$?
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); }; }; then
21120 ac_cv_cxx_have_ext_slist=std
21121else
21122 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021123sed 's/^/| /' conftest.$ac_ext >&5
21124
John Criswell7a73b802003-06-30 21:59:07 +000021125ac_cv_cxx_have_ext_slist=no
21126fi
21127rm -f conftest.$ac_objext conftest.$ac_ext
21128 cat >conftest.$ac_ext <<_ACEOF
21129#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021130/* confdefs.h. */
21131_ACEOF
21132cat confdefs.h >>conftest.$ac_ext
21133cat >>conftest.$ac_ext <<_ACEOF
21134/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021135#include <ext/slist>
21136#ifdef HAVE_NAMESPACES
21137using namespace __gnu_cxx;
21138#endif
John Criswell7a73b802003-06-30 21:59:07 +000021139int
21140main ()
21141{
21142slist<int> s; return 0;
21143 ;
21144 return 0;
21145}
21146_ACEOF
21147rm -f conftest.$ac_objext
21148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21149 (eval $ac_compile) 2>&5
21150 ac_status=$?
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); } &&
21153 { ac_try='test -s conftest.$ac_objext'
21154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155 (eval $ac_try) 2>&5
21156 ac_status=$?
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; }; then
21159 ac_cv_cxx_have_ext_slist=gnu
21160else
21161 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021162sed 's/^/| /' conftest.$ac_ext >&5
21163
John Criswell7a73b802003-06-30 21:59:07 +000021164ac_cv_cxx_have_ext_slist=no
21165fi
21166rm -f conftest.$ac_objext conftest.$ac_ext
21167
21168 ac_ext=c
21169ac_cpp='$CPP $CPPFLAGS'
21170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21172ac_compiler_gnu=$ac_cv_c_compiler_gnu
21173
21174
21175fi
21176echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21177echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21178if test "$ac_cv_cxx_have_ext_slist" = std; then
21179
21180cat >>confdefs.h <<\_ACEOF
21181#define HAVE_EXT_SLIST std
21182_ACEOF
21183
21184fi
21185if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21186
21187cat >>confdefs.h <<\_ACEOF
21188#define HAVE_EXT_SLIST gnu
21189_ACEOF
21190
21191fi
21192
21193echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21194echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21195if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21197else
21198
21199
21200
21201 ac_ext=cc
21202ac_cpp='$CXXCPP $CPPFLAGS'
21203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21206
21207 cat >conftest.$ac_ext <<_ACEOF
21208#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021209/* confdefs.h. */
21210_ACEOF
21211cat confdefs.h >>conftest.$ac_ext
21212cat >>conftest.$ac_ext <<_ACEOF
21213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021214#include <iterator>
21215#ifdef HAVE_NAMESPACES
21216using namespace std;
21217#endif
John Criswell7a73b802003-06-30 21:59:07 +000021218int
21219main ()
21220{
21221iterator<int,int,int> t; return 0;
21222 ;
21223 return 0;
21224}
21225_ACEOF
21226rm -f conftest.$ac_objext
21227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21228 (eval $ac_compile) 2>&5
21229 ac_status=$?
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } &&
21232 { ac_try='test -s conftest.$ac_objext'
21233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21234 (eval $ac_try) 2>&5
21235 ac_status=$?
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); }; }; then
21238 ac_cv_cxx_have_std_iterator=yes
21239else
21240 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021241sed 's/^/| /' conftest.$ac_ext >&5
21242
John Criswell7a73b802003-06-30 21:59:07 +000021243ac_cv_cxx_have_std_iterator=no
21244fi
21245rm -f conftest.$ac_objext conftest.$ac_ext
21246 ac_ext=c
21247ac_cpp='$CPP $CPPFLAGS'
21248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21250ac_compiler_gnu=$ac_cv_c_compiler_gnu
21251
21252
21253fi
21254echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21255echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21256if test "$ac_cv_cxx_have_std_iterator" = yes; then
21257
21258cat >>confdefs.h <<\_ACEOF
21259#define HAVE_STD_ITERATOR
21260_ACEOF
21261
21262fi
21263
21264echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21265echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21266if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21268else
21269
21270
21271
21272 ac_ext=cc
21273ac_cpp='$CXXCPP $CPPFLAGS'
21274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21277
21278 cat >conftest.$ac_ext <<_ACEOF
21279#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021280/* confdefs.h. */
21281_ACEOF
21282cat confdefs.h >>conftest.$ac_ext
21283cat >>conftest.$ac_ext <<_ACEOF
21284/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021285#include <iterator>
21286#ifdef HAVE_NAMESPACES
21287using namespace std;
21288#endif
John Criswell7a73b802003-06-30 21:59:07 +000021289int
21290main ()
21291{
John Criswellc78022e2003-07-29 19:11:58 +000021292bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021293 ;
21294 return 0;
21295}
21296_ACEOF
21297rm -f conftest.$ac_objext
21298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21299 (eval $ac_compile) 2>&5
21300 ac_status=$?
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } &&
21303 { ac_try='test -s conftest.$ac_objext'
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; }; then
21309 ac_cv_cxx_have_bi_iterator=yes
21310else
21311 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021312sed 's/^/| /' conftest.$ac_ext >&5
21313
John Criswell7a73b802003-06-30 21:59:07 +000021314ac_cv_cxx_have_bi_iterator=no
21315fi
21316rm -f conftest.$ac_objext conftest.$ac_ext
21317 ac_ext=c
21318ac_cpp='$CPP $CPPFLAGS'
21319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21321ac_compiler_gnu=$ac_cv_c_compiler_gnu
21322
21323
21324fi
21325echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21326echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21327if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21328
21329cat >>confdefs.h <<\_ACEOF
21330#define HAVE_BI_ITERATOR
21331_ACEOF
21332
21333fi
21334
21335echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21336echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21337if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21338 echo $ECHO_N "(cached) $ECHO_C" >&6
21339else
21340
21341
21342
21343 ac_ext=cc
21344ac_cpp='$CXXCPP $CPPFLAGS'
21345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21348
21349 cat >conftest.$ac_ext <<_ACEOF
21350#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021351/* confdefs.h. */
21352_ACEOF
21353cat confdefs.h >>conftest.$ac_ext
21354cat >>conftest.$ac_ext <<_ACEOF
21355/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021356#include <iterator>
21357#ifdef HAVE_NAMESPACES
21358using namespace std;
21359#endif
John Criswell7a73b802003-06-30 21:59:07 +000021360int
21361main ()
21362{
John Criswellc78022e2003-07-29 19:11:58 +000021363forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021364 ;
21365 return 0;
21366}
21367_ACEOF
21368rm -f conftest.$ac_objext
21369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21370 (eval $ac_compile) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } &&
21374 { ac_try='test -s conftest.$ac_objext'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380 ac_cv_cxx_have_fwd_iterator=yes
21381else
21382 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021383sed 's/^/| /' conftest.$ac_ext >&5
21384
John Criswell7a73b802003-06-30 21:59:07 +000021385ac_cv_cxx_have_fwd_iterator=no
21386fi
21387rm -f conftest.$ac_objext conftest.$ac_ext
21388 ac_ext=c
21389ac_cpp='$CPP $CPPFLAGS'
21390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21392ac_compiler_gnu=$ac_cv_c_compiler_gnu
21393
21394
21395fi
21396echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21397echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21398if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21399
21400cat >>confdefs.h <<\_ACEOF
21401#define HAVE_FWD_ITERATOR
21402_ACEOF
21403
21404fi
21405
21406
21407# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21408# for constant arguments. Useless!
21409echo "$as_me:$LINENO: checking for working alloca.h" >&5
21410echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21411if test "${ac_cv_working_alloca_h+set}" = set; then
21412 echo $ECHO_N "(cached) $ECHO_C" >&6
21413else
21414 cat >conftest.$ac_ext <<_ACEOF
21415#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021416/* confdefs.h. */
21417_ACEOF
21418cat confdefs.h >>conftest.$ac_ext
21419cat >>conftest.$ac_ext <<_ACEOF
21420/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021421#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021422int
21423main ()
21424{
21425char *p = (char *) alloca (2 * sizeof (int));
21426 ;
21427 return 0;
21428}
21429_ACEOF
21430rm -f conftest.$ac_objext conftest$ac_exeext
21431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21432 (eval $ac_link) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } &&
21436 { ac_try='test -s conftest$ac_exeext'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21439 ac_status=$?
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; }; then
21442 ac_cv_working_alloca_h=yes
21443else
21444 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021445sed 's/^/| /' conftest.$ac_ext >&5
21446
John Criswell7a73b802003-06-30 21:59:07 +000021447ac_cv_working_alloca_h=no
21448fi
21449rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21450fi
21451echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21452echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21453if test $ac_cv_working_alloca_h = yes; then
21454
21455cat >>confdefs.h <<\_ACEOF
21456#define HAVE_ALLOCA_H 1
21457_ACEOF
21458
21459fi
21460
21461echo "$as_me:$LINENO: checking for alloca" >&5
21462echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21463if test "${ac_cv_func_alloca_works+set}" = set; then
21464 echo $ECHO_N "(cached) $ECHO_C" >&6
21465else
21466 cat >conftest.$ac_ext <<_ACEOF
21467#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021468/* confdefs.h. */
21469_ACEOF
21470cat confdefs.h >>conftest.$ac_ext
21471cat >>conftest.$ac_ext <<_ACEOF
21472/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021473#ifdef __GNUC__
21474# define alloca __builtin_alloca
21475#else
21476# ifdef _MSC_VER
21477# include <malloc.h>
21478# define alloca _alloca
21479# else
21480# if HAVE_ALLOCA_H
21481# include <alloca.h>
21482# else
21483# ifdef _AIX
21484 #pragma alloca
21485# else
21486# ifndef alloca /* predefined by HP cc +Olibcalls */
21487char *alloca ();
21488# endif
21489# endif
21490# endif
21491# endif
21492#endif
21493
John Criswell7a73b802003-06-30 21:59:07 +000021494int
21495main ()
21496{
21497char *p = (char *) alloca (1);
21498 ;
21499 return 0;
21500}
21501_ACEOF
21502rm -f conftest.$ac_objext conftest$ac_exeext
21503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21504 (eval $ac_link) 2>&5
21505 ac_status=$?
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } &&
21508 { ac_try='test -s conftest$ac_exeext'
21509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510 (eval $ac_try) 2>&5
21511 ac_status=$?
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; }; then
21514 ac_cv_func_alloca_works=yes
21515else
21516 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021517sed 's/^/| /' conftest.$ac_ext >&5
21518
John Criswell7a73b802003-06-30 21:59:07 +000021519ac_cv_func_alloca_works=no
21520fi
21521rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21522fi
21523echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21524echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21525
21526if test $ac_cv_func_alloca_works = yes; then
21527
21528cat >>confdefs.h <<\_ACEOF
21529#define HAVE_ALLOCA 1
21530_ACEOF
21531
21532else
21533 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21534# that cause trouble. Some versions do not even contain alloca or
21535# contain a buggy version. If you still want to use their alloca,
21536# use ar to extract alloca.o from them instead of compiling alloca.c.
21537
21538ALLOCA=alloca.$ac_objext
21539
21540cat >>confdefs.h <<\_ACEOF
21541#define C_ALLOCA 1
21542_ACEOF
21543
21544
21545echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21546echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21547if test "${ac_cv_os_cray+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21549else
21550 cat >conftest.$ac_ext <<_ACEOF
21551#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021552/* confdefs.h. */
21553_ACEOF
21554cat confdefs.h >>conftest.$ac_ext
21555cat >>conftest.$ac_ext <<_ACEOF
21556/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021557#if defined(CRAY) && ! defined(CRAY2)
21558webecray
21559#else
21560wenotbecray
21561#endif
21562
21563_ACEOF
21564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021565 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021566 ac_cv_os_cray=yes
21567else
21568 ac_cv_os_cray=no
21569fi
21570rm -f conftest*
21571
21572fi
21573echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21574echo "${ECHO_T}$ac_cv_os_cray" >&6
21575if test $ac_cv_os_cray = yes; then
21576 for ac_func in _getb67 GETB67 getb67; do
21577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21578echo "$as_me:$LINENO: checking for $ac_func" >&5
21579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21580if eval "test \"\${$as_ac_var+set}\" = set"; then
21581 echo $ECHO_N "(cached) $ECHO_C" >&6
21582else
21583 cat >conftest.$ac_ext <<_ACEOF
21584#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021585/* confdefs.h. */
21586_ACEOF
21587cat confdefs.h >>conftest.$ac_ext
21588cat >>conftest.$ac_ext <<_ACEOF
21589/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021590/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021591 which can conflict with char $ac_func (); below.
21592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21593 <limits.h> exists even on freestanding compilers. */
21594#ifdef __STDC__
21595# include <limits.h>
21596#else
21597# include <assert.h>
21598#endif
John Criswell7a73b802003-06-30 21:59:07 +000021599/* Override any gcc2 internal prototype to avoid an error. */
21600#ifdef __cplusplus
21601extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021602{
John Criswell7a73b802003-06-30 21:59:07 +000021603#endif
21604/* We use char because int might match the return type of a gcc2
21605 builtin and then its argument prototype would still apply. */
21606char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021607/* The GNU C library defines this for functions which it implements
21608 to always fail with ENOSYS. Some functions are actually named
21609 something starting with __ and the normal name is an alias. */
21610#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21611choke me
21612#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021613char (*f) () = $ac_func;
21614#endif
21615#ifdef __cplusplus
21616}
John Criswell7a73b802003-06-30 21:59:07 +000021617#endif
21618
John Criswell0c38eaf2003-09-10 15:17:25 +000021619int
21620main ()
21621{
21622return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021623 ;
21624 return 0;
21625}
21626_ACEOF
21627rm -f conftest.$ac_objext conftest$ac_exeext
21628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21629 (eval $ac_link) 2>&5
21630 ac_status=$?
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } &&
21633 { ac_try='test -s conftest$ac_exeext'
21634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635 (eval $ac_try) 2>&5
21636 ac_status=$?
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); }; }; then
21639 eval "$as_ac_var=yes"
21640else
21641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021642sed 's/^/| /' conftest.$ac_ext >&5
21643
John Criswell7a73b802003-06-30 21:59:07 +000021644eval "$as_ac_var=no"
21645fi
21646rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21647fi
21648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21650if test `eval echo '${'$as_ac_var'}'` = yes; then
21651
21652cat >>confdefs.h <<_ACEOF
21653#define CRAY_STACKSEG_END $ac_func
21654_ACEOF
21655
21656 break
21657fi
21658
21659 done
21660fi
21661
21662echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21663echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21664if test "${ac_cv_c_stack_direction+set}" = set; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
21666else
21667 if test "$cross_compiling" = yes; then
21668 ac_cv_c_stack_direction=0
21669else
21670 cat >conftest.$ac_ext <<_ACEOF
21671#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021672/* confdefs.h. */
21673_ACEOF
21674cat confdefs.h >>conftest.$ac_ext
21675cat >>conftest.$ac_ext <<_ACEOF
21676/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021677int
21678find_stack_direction ()
21679{
21680 static char *addr = 0;
21681 auto char dummy;
21682 if (addr == 0)
21683 {
21684 addr = &dummy;
21685 return find_stack_direction ();
21686 }
21687 else
21688 return (&dummy > addr) ? 1 : -1;
21689}
21690
21691int
21692main ()
21693{
21694 exit (find_stack_direction () < 0);
21695}
21696_ACEOF
21697rm -f conftest$ac_exeext
21698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21699 (eval $ac_link) 2>&5
21700 ac_status=$?
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704 (eval $ac_try) 2>&5
21705 ac_status=$?
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); }; }; then
21708 ac_cv_c_stack_direction=1
21709else
21710 echo "$as_me: program exited with status $ac_status" >&5
21711echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021712sed 's/^/| /' conftest.$ac_ext >&5
21713
John Criswell7a73b802003-06-30 21:59:07 +000021714( exit $ac_status )
21715ac_cv_c_stack_direction=-1
21716fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021717rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021718fi
21719fi
21720echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21721echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21722
21723cat >>confdefs.h <<_ACEOF
21724#define STACK_DIRECTION $ac_cv_c_stack_direction
21725_ACEOF
21726
21727
21728fi
21729
21730if test $ac_cv_c_compiler_gnu = yes; then
21731 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21732echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21733if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21735else
21736 ac_pattern="Autoconf.*'x'"
21737 cat >conftest.$ac_ext <<_ACEOF
21738#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021739/* confdefs.h. */
21740_ACEOF
21741cat confdefs.h >>conftest.$ac_ext
21742cat >>conftest.$ac_ext <<_ACEOF
21743/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021744#include <sgtty.h>
21745Autoconf TIOCGETP
21746_ACEOF
21747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021748 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021749 ac_cv_prog_gcc_traditional=yes
21750else
21751 ac_cv_prog_gcc_traditional=no
21752fi
21753rm -f conftest*
21754
21755
21756 if test $ac_cv_prog_gcc_traditional = no; then
21757 cat >conftest.$ac_ext <<_ACEOF
21758#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021759/* confdefs.h. */
21760_ACEOF
21761cat confdefs.h >>conftest.$ac_ext
21762cat >>conftest.$ac_ext <<_ACEOF
21763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021764#include <termio.h>
21765Autoconf TCGETA
21766_ACEOF
21767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021768 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021769 ac_cv_prog_gcc_traditional=yes
21770fi
21771rm -f conftest*
21772
21773 fi
21774fi
21775echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21776echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21777 if test $ac_cv_prog_gcc_traditional = yes; then
21778 CC="$CC -traditional"
21779 fi
21780fi
21781
21782echo "$as_me:$LINENO: checking for working memcmp" >&5
21783echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21784if test "${ac_cv_func_memcmp_working+set}" = set; then
21785 echo $ECHO_N "(cached) $ECHO_C" >&6
21786else
21787 if test "$cross_compiling" = yes; then
21788 ac_cv_func_memcmp_working=no
21789else
21790 cat >conftest.$ac_ext <<_ACEOF
21791#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021792/* confdefs.h. */
21793_ACEOF
21794cat confdefs.h >>conftest.$ac_ext
21795cat >>conftest.$ac_ext <<_ACEOF
21796/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021797
John Criswell7a73b802003-06-30 21:59:07 +000021798int
21799main ()
21800{
21801
21802 /* Some versions of memcmp are not 8-bit clean. */
21803 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21804 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21805 exit (1);
21806
21807 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21808 or more and with at least one buffer not starting on a 4-byte boundary.
21809 William Lewis provided this test program. */
21810 {
21811 char foo[21];
21812 char bar[21];
21813 int i;
21814 for (i = 0; i < 4; i++)
21815 {
21816 char *a = foo + i;
21817 char *b = bar + i;
21818 strcpy (a, "--------01111111");
21819 strcpy (b, "--------10000000");
21820 if (memcmp (a, b, 16) >= 0)
21821 exit (1);
21822 }
21823 exit (0);
21824 }
21825
21826 ;
21827 return 0;
21828}
21829_ACEOF
21830rm -f conftest$ac_exeext
21831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21832 (eval $ac_link) 2>&5
21833 ac_status=$?
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837 (eval $ac_try) 2>&5
21838 ac_status=$?
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); }; }; then
21841 ac_cv_func_memcmp_working=yes
21842else
21843 echo "$as_me: program exited with status $ac_status" >&5
21844echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021845sed 's/^/| /' conftest.$ac_ext >&5
21846
John Criswell7a73b802003-06-30 21:59:07 +000021847( exit $ac_status )
21848ac_cv_func_memcmp_working=no
21849fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021850rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021851fi
21852fi
21853echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21854echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21855test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21856
21857
21858
21859for ac_header in stdlib.h unistd.h
21860do
21861as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21862if eval "test \"\${$as_ac_Header+set}\" = set"; then
21863 echo "$as_me:$LINENO: checking for $ac_header" >&5
21864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21865if eval "test \"\${$as_ac_Header+set}\" = set"; then
21866 echo $ECHO_N "(cached) $ECHO_C" >&6
21867fi
21868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21870else
21871 # Is the header compilable?
21872echo "$as_me:$LINENO: checking $ac_header usability" >&5
21873echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21874cat >conftest.$ac_ext <<_ACEOF
21875#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021876/* confdefs.h. */
21877_ACEOF
21878cat confdefs.h >>conftest.$ac_ext
21879cat >>conftest.$ac_ext <<_ACEOF
21880/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021881$ac_includes_default
21882#include <$ac_header>
21883_ACEOF
21884rm -f conftest.$ac_objext
21885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21886 (eval $ac_compile) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); } &&
21890 { ac_try='test -s conftest.$ac_objext'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21893 ac_status=$?
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
21896 ac_header_compiler=yes
21897else
21898 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021899sed 's/^/| /' conftest.$ac_ext >&5
21900
John Criswell7a73b802003-06-30 21:59:07 +000021901ac_header_compiler=no
21902fi
21903rm -f conftest.$ac_objext conftest.$ac_ext
21904echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21905echo "${ECHO_T}$ac_header_compiler" >&6
21906
21907# Is the header present?
21908echo "$as_me:$LINENO: checking $ac_header presence" >&5
21909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21910cat >conftest.$ac_ext <<_ACEOF
21911#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021912/* confdefs.h. */
21913_ACEOF
21914cat confdefs.h >>conftest.$ac_ext
21915cat >>conftest.$ac_ext <<_ACEOF
21916/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021917#include <$ac_header>
21918_ACEOF
21919if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21921 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021922 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021923 rm -f conftest.er1
21924 cat conftest.err >&5
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); } >/dev/null; then
21927 if test -s conftest.err; then
21928 ac_cpp_err=$ac_c_preproc_warn_flag
21929 else
21930 ac_cpp_err=
21931 fi
21932else
21933 ac_cpp_err=yes
21934fi
21935if test -z "$ac_cpp_err"; then
21936 ac_header_preproc=yes
21937else
21938 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021939sed 's/^/| /' conftest.$ac_ext >&5
21940
John Criswell7a73b802003-06-30 21:59:07 +000021941 ac_header_preproc=no
21942fi
21943rm -f conftest.err conftest.$ac_ext
21944echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21945echo "${ECHO_T}$ac_header_preproc" >&6
21946
21947# So? What about this header?
21948case $ac_header_compiler:$ac_header_preproc in
21949 yes:no )
21950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21951echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21954 (
21955 cat <<\_ASBOX
21956## ------------------------------------ ##
21957## Report this to bug-autoconf@gnu.org. ##
21958## ------------------------------------ ##
21959_ASBOX
21960 ) |
21961 sed "s/^/$as_me: WARNING: /" >&2
21962 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021963 no:yes )
21964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21965echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21967echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21970 (
21971 cat <<\_ASBOX
21972## ------------------------------------ ##
21973## Report this to bug-autoconf@gnu.org. ##
21974## ------------------------------------ ##
21975_ASBOX
21976 ) |
21977 sed "s/^/$as_me: WARNING: /" >&2
21978 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021979esac
21980echo "$as_me:$LINENO: checking for $ac_header" >&5
21981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21982if eval "test \"\${$as_ac_Header+set}\" = set"; then
21983 echo $ECHO_N "(cached) $ECHO_C" >&6
21984else
21985 eval "$as_ac_Header=$ac_header_preproc"
21986fi
21987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21989
21990fi
21991if test `eval echo '${'$as_ac_Header'}'` = yes; then
21992 cat >>confdefs.h <<_ACEOF
21993#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21994_ACEOF
21995
21996fi
21997
21998done
21999
22000
22001for ac_func in getpagesize
22002do
22003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22004echo "$as_me:$LINENO: checking for $ac_func" >&5
22005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22006if eval "test \"\${$as_ac_var+set}\" = set"; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22008else
22009 cat >conftest.$ac_ext <<_ACEOF
22010#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022011/* confdefs.h. */
22012_ACEOF
22013cat confdefs.h >>conftest.$ac_ext
22014cat >>conftest.$ac_ext <<_ACEOF
22015/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022016/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022017 which can conflict with char $ac_func (); below.
22018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22019 <limits.h> exists even on freestanding compilers. */
22020#ifdef __STDC__
22021# include <limits.h>
22022#else
22023# include <assert.h>
22024#endif
John Criswell7a73b802003-06-30 21:59:07 +000022025/* Override any gcc2 internal prototype to avoid an error. */
22026#ifdef __cplusplus
22027extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022028{
John Criswell7a73b802003-06-30 21:59:07 +000022029#endif
22030/* We use char because int might match the return type of a gcc2
22031 builtin and then its argument prototype would still apply. */
22032char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022033/* The GNU C library defines this for functions which it implements
22034 to always fail with ENOSYS. Some functions are actually named
22035 something starting with __ and the normal name is an alias. */
22036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22037choke me
22038#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022039char (*f) () = $ac_func;
22040#endif
22041#ifdef __cplusplus
22042}
John Criswell7a73b802003-06-30 21:59:07 +000022043#endif
22044
John Criswell0c38eaf2003-09-10 15:17:25 +000022045int
22046main ()
22047{
22048return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022049 ;
22050 return 0;
22051}
22052_ACEOF
22053rm -f conftest.$ac_objext conftest$ac_exeext
22054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22055 (eval $ac_link) 2>&5
22056 ac_status=$?
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } &&
22059 { ac_try='test -s conftest$ac_exeext'
22060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22061 (eval $ac_try) 2>&5
22062 ac_status=$?
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; }; then
22065 eval "$as_ac_var=yes"
22066else
22067 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022068sed 's/^/| /' conftest.$ac_ext >&5
22069
John Criswell7a73b802003-06-30 21:59:07 +000022070eval "$as_ac_var=no"
22071fi
22072rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22073fi
22074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22075echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22076if test `eval echo '${'$as_ac_var'}'` = yes; then
22077 cat >>confdefs.h <<_ACEOF
22078#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22079_ACEOF
22080
22081fi
22082done
22083
22084echo "$as_me:$LINENO: checking for working mmap" >&5
22085echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22086if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22087 echo $ECHO_N "(cached) $ECHO_C" >&6
22088else
22089 if test "$cross_compiling" = yes; then
22090 ac_cv_func_mmap_fixed_mapped=no
22091else
22092 cat >conftest.$ac_ext <<_ACEOF
22093#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022094/* confdefs.h. */
22095_ACEOF
22096cat confdefs.h >>conftest.$ac_ext
22097cat >>conftest.$ac_ext <<_ACEOF
22098/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022099$ac_includes_default
22100/* malloc might have been renamed as rpl_malloc. */
22101#undef malloc
22102
22103/* Thanks to Mike Haertel and Jim Avera for this test.
22104 Here is a matrix of mmap possibilities:
22105 mmap private not fixed
22106 mmap private fixed at somewhere currently unmapped
22107 mmap private fixed at somewhere already mapped
22108 mmap shared not fixed
22109 mmap shared fixed at somewhere currently unmapped
22110 mmap shared fixed at somewhere already mapped
22111 For private mappings, we should verify that changes cannot be read()
22112 back from the file, nor mmap's back from the file at a different
22113 address. (There have been systems where private was not correctly
22114 implemented like the infamous i386 svr4.0, and systems where the
22115 VM page cache was not coherent with the file system buffer cache
22116 like early versions of FreeBSD and possibly contemporary NetBSD.)
22117 For shared mappings, we should conversely verify that changes get
22118 propagated back to all the places they're supposed to be.
22119
22120 Grep wants private fixed already mapped.
22121 The main things grep needs to know about mmap are:
22122 * does it exist and is it safe to write into the mmap'd area
22123 * how to use it (BSD variants) */
22124
22125#include <fcntl.h>
22126#include <sys/mman.h>
22127
22128#if !STDC_HEADERS && !HAVE_STDLIB_H
22129char *malloc ();
22130#endif
22131
22132/* This mess was copied from the GNU getpagesize.h. */
22133#if !HAVE_GETPAGESIZE
22134/* Assume that all systems that can run configure have sys/param.h. */
22135# if !HAVE_SYS_PARAM_H
22136# define HAVE_SYS_PARAM_H 1
22137# endif
22138
22139# ifdef _SC_PAGESIZE
22140# define getpagesize() sysconf(_SC_PAGESIZE)
22141# else /* no _SC_PAGESIZE */
22142# if HAVE_SYS_PARAM_H
22143# include <sys/param.h>
22144# ifdef EXEC_PAGESIZE
22145# define getpagesize() EXEC_PAGESIZE
22146# else /* no EXEC_PAGESIZE */
22147# ifdef NBPG
22148# define getpagesize() NBPG * CLSIZE
22149# ifndef CLSIZE
22150# define CLSIZE 1
22151# endif /* no CLSIZE */
22152# else /* no NBPG */
22153# ifdef NBPC
22154# define getpagesize() NBPC
22155# else /* no NBPC */
22156# ifdef PAGESIZE
22157# define getpagesize() PAGESIZE
22158# endif /* PAGESIZE */
22159# endif /* no NBPC */
22160# endif /* no NBPG */
22161# endif /* no EXEC_PAGESIZE */
22162# else /* no HAVE_SYS_PARAM_H */
22163# define getpagesize() 8192 /* punt totally */
22164# endif /* no HAVE_SYS_PARAM_H */
22165# endif /* no _SC_PAGESIZE */
22166
22167#endif /* no HAVE_GETPAGESIZE */
22168
22169int
22170main ()
22171{
22172 char *data, *data2, *data3;
22173 int i, pagesize;
22174 int fd;
22175
22176 pagesize = getpagesize ();
22177
22178 /* First, make a file with some known garbage in it. */
22179 data = (char *) malloc (pagesize);
22180 if (!data)
22181 exit (1);
22182 for (i = 0; i < pagesize; ++i)
22183 *(data + i) = rand ();
22184 umask (0);
22185 fd = creat ("conftest.mmap", 0600);
22186 if (fd < 0)
22187 exit (1);
22188 if (write (fd, data, pagesize) != pagesize)
22189 exit (1);
22190 close (fd);
22191
22192 /* Next, try to mmap the file at a fixed address which already has
22193 something else allocated at it. If we can, also make sure that
22194 we see the same garbage. */
22195 fd = open ("conftest.mmap", O_RDWR);
22196 if (fd < 0)
22197 exit (1);
22198 data2 = (char *) malloc (2 * pagesize);
22199 if (!data2)
22200 exit (1);
22201 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22202 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22203 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22204 exit (1);
22205 for (i = 0; i < pagesize; ++i)
22206 if (*(data + i) != *(data2 + i))
22207 exit (1);
22208
22209 /* Finally, make sure that changes to the mapped area do not
22210 percolate back to the file as seen by read(). (This is a bug on
22211 some variants of i386 svr4.0.) */
22212 for (i = 0; i < pagesize; ++i)
22213 *(data2 + i) = *(data2 + i) + 1;
22214 data3 = (char *) malloc (pagesize);
22215 if (!data3)
22216 exit (1);
22217 if (read (fd, data3, pagesize) != pagesize)
22218 exit (1);
22219 for (i = 0; i < pagesize; ++i)
22220 if (*(data + i) != *(data3 + i))
22221 exit (1);
22222 close (fd);
22223 exit (0);
22224}
22225_ACEOF
22226rm -f conftest$ac_exeext
22227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22228 (eval $ac_link) 2>&5
22229 ac_status=$?
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22234 ac_status=$?
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; }; then
22237 ac_cv_func_mmap_fixed_mapped=yes
22238else
22239 echo "$as_me: program exited with status $ac_status" >&5
22240echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022241sed 's/^/| /' conftest.$ac_ext >&5
22242
John Criswell7a73b802003-06-30 21:59:07 +000022243( exit $ac_status )
22244ac_cv_func_mmap_fixed_mapped=no
22245fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022246rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022247fi
22248fi
22249echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22250echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22251if test $ac_cv_func_mmap_fixed_mapped = yes; then
22252
22253cat >>confdefs.h <<\_ACEOF
22254#define HAVE_MMAP 1
22255_ACEOF
22256
22257fi
22258rm -f conftest.mmap
22259
22260echo "$as_me:$LINENO: checking for mmap of files" >&5
22261echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22262if test "${ac_cv_func_mmap_file+set}" = set; then
22263 echo $ECHO_N "(cached) $ECHO_C" >&6
22264else
22265
22266
22267 ac_ext=c
22268ac_cpp='$CPP $CPPFLAGS'
22269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22271ac_compiler_gnu=$ac_cv_c_compiler_gnu
22272
22273 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022274 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22275See \`config.log' for more details." >&5
22276echo "$as_me: error: cannot run test program while cross compiling
22277See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022278 { (exit 1); exit 1; }; }
22279else
22280 cat >conftest.$ac_ext <<_ACEOF
22281#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022282/* confdefs.h. */
22283_ACEOF
22284cat confdefs.h >>conftest.$ac_ext
22285cat >>conftest.$ac_ext <<_ACEOF
22286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022287
John Criswell7a73b802003-06-30 21:59:07 +000022288#ifdef HAVE_SYS_TYPES_H
22289#include <sys/types.h>
22290#endif
22291
John Criswell5ab73462003-10-09 15:44:28 +000022292#ifdef HAVE_SYS_MMAN_H
22293#include <sys/mman.h>
22294#endif
22295
John Criswell7a73b802003-06-30 21:59:07 +000022296#ifdef HAVE_FCNTL_H
22297#include <fcntl.h>
22298#endif
22299
22300 int fd;
22301 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022302 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 +000022303_ACEOF
22304rm -f conftest$ac_exeext
22305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22306 (eval $ac_link) 2>&5
22307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22311 (eval $ac_try) 2>&5
22312 ac_status=$?
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); }; }; then
22315 ac_cv_func_mmap_file=yes
22316else
22317 echo "$as_me: program exited with status $ac_status" >&5
22318echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022319sed 's/^/| /' conftest.$ac_ext >&5
22320
John Criswell7a73b802003-06-30 21:59:07 +000022321( exit $ac_status )
22322ac_cv_func_mmap_file=no
22323fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022324rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022325fi
22326 ac_ext=c
22327ac_cpp='$CPP $CPPFLAGS'
22328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22330ac_compiler_gnu=$ac_cv_c_compiler_gnu
22331
22332
22333fi
22334echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22335echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22336if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022337
22338cat >>confdefs.h <<\_ACEOF
22339#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000022340_ACEOF
22341
22342 MMAP_FILE=yes
22343
22344fi
22345
22346if test ${ac_cv_func_mmap_file} = "no"
22347then
22348 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22349echo "$as_me: error: mmap() of files required but not found" >&2;}
22350 { (exit 1); exit 1; }; }
22351fi
22352echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22353echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22354if test "${ac_cv_header_mmap_anon+set}" = set; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22356else
22357
22358
22359 ac_ext=c
22360ac_cpp='$CPP $CPPFLAGS'
22361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22363ac_compiler_gnu=$ac_cv_c_compiler_gnu
22364
22365 cat >conftest.$ac_ext <<_ACEOF
22366#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022367/* confdefs.h. */
22368_ACEOF
22369cat confdefs.h >>conftest.$ac_ext
22370cat >>conftest.$ac_ext <<_ACEOF
22371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022372#include <sys/mman.h>
22373 #include <unistd.h>
22374 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022375int
22376main ()
22377{
22378mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22379 ;
22380 return 0;
22381}
22382_ACEOF
22383rm -f conftest.$ac_objext
22384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22385 (eval $ac_compile) 2>&5
22386 ac_status=$?
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } &&
22389 { ac_try='test -s conftest.$ac_objext'
22390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391 (eval $ac_try) 2>&5
22392 ac_status=$?
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); }; }; then
22395 ac_cv_header_mmap_anon=yes
22396else
22397 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022398sed 's/^/| /' conftest.$ac_ext >&5
22399
John Criswell7a73b802003-06-30 21:59:07 +000022400ac_cv_header_mmap_anon=no
22401fi
22402rm -f conftest.$ac_objext conftest.$ac_ext
22403 ac_ext=c
22404ac_cpp='$CPP $CPPFLAGS'
22405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22407ac_compiler_gnu=$ac_cv_c_compiler_gnu
22408
22409
22410fi
22411echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22412echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22413if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022414
22415cat >>confdefs.h <<\_ACEOF
22416#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000022417_ACEOF
22418
22419fi
22420
22421echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22422echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22423if test "${ac_cv_type_signal+set}" = set; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
22425else
22426 cat >conftest.$ac_ext <<_ACEOF
22427#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022428/* confdefs.h. */
22429_ACEOF
22430cat confdefs.h >>conftest.$ac_ext
22431cat >>conftest.$ac_ext <<_ACEOF
22432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022433#include <sys/types.h>
22434#include <signal.h>
22435#ifdef signal
22436# undef signal
22437#endif
22438#ifdef __cplusplus
22439extern "C" void (*signal (int, void (*)(int)))(int);
22440#else
22441void (*signal ()) ();
22442#endif
22443
John Criswell7a73b802003-06-30 21:59:07 +000022444int
22445main ()
22446{
22447int i;
22448 ;
22449 return 0;
22450}
22451_ACEOF
22452rm -f conftest.$ac_objext
22453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22454 (eval $ac_compile) 2>&5
22455 ac_status=$?
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } &&
22458 { ac_try='test -s conftest.$ac_objext'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22461 ac_status=$?
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; }; then
22464 ac_cv_type_signal=void
22465else
22466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022467sed 's/^/| /' conftest.$ac_ext >&5
22468
John Criswell7a73b802003-06-30 21:59:07 +000022469ac_cv_type_signal=int
22470fi
22471rm -f conftest.$ac_objext conftest.$ac_ext
22472fi
22473echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22474echo "${ECHO_T}$ac_cv_type_signal" >&6
22475
22476cat >>confdefs.h <<_ACEOF
22477#define RETSIGTYPE $ac_cv_type_signal
22478_ACEOF
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
Brian Gaekec45be042003-10-07 06:01:34 +000022490
22491
John Criswella0137d32003-10-13 16:22:01 +000022492for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
John Criswell7a73b802003-06-30 21:59:07 +000022493do
22494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22495echo "$as_me:$LINENO: checking for $ac_func" >&5
22496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22497if eval "test \"\${$as_ac_var+set}\" = set"; then
22498 echo $ECHO_N "(cached) $ECHO_C" >&6
22499else
22500 cat >conftest.$ac_ext <<_ACEOF
22501#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022502/* confdefs.h. */
22503_ACEOF
22504cat confdefs.h >>conftest.$ac_ext
22505cat >>conftest.$ac_ext <<_ACEOF
22506/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022507/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022508 which can conflict with char $ac_func (); below.
22509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22510 <limits.h> exists even on freestanding compilers. */
22511#ifdef __STDC__
22512# include <limits.h>
22513#else
22514# include <assert.h>
22515#endif
John Criswell7a73b802003-06-30 21:59:07 +000022516/* Override any gcc2 internal prototype to avoid an error. */
22517#ifdef __cplusplus
22518extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022519{
John Criswell7a73b802003-06-30 21:59:07 +000022520#endif
22521/* We use char because int might match the return type of a gcc2
22522 builtin and then its argument prototype would still apply. */
22523char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022524/* The GNU C library defines this for functions which it implements
22525 to always fail with ENOSYS. Some functions are actually named
22526 something starting with __ and the normal name is an alias. */
22527#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22528choke me
22529#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022530char (*f) () = $ac_func;
22531#endif
22532#ifdef __cplusplus
22533}
John Criswell7a73b802003-06-30 21:59:07 +000022534#endif
22535
John Criswell0c38eaf2003-09-10 15:17:25 +000022536int
22537main ()
22538{
22539return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022540 ;
22541 return 0;
22542}
22543_ACEOF
22544rm -f conftest.$ac_objext conftest$ac_exeext
22545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22546 (eval $ac_link) 2>&5
22547 ac_status=$?
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); } &&
22550 { ac_try='test -s conftest$ac_exeext'
22551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552 (eval $ac_try) 2>&5
22553 ac_status=$?
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; }; then
22556 eval "$as_ac_var=yes"
22557else
22558 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022559sed 's/^/| /' conftest.$ac_ext >&5
22560
John Criswell7a73b802003-06-30 21:59:07 +000022561eval "$as_ac_var=no"
22562fi
22563rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22564fi
22565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22566echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22567if test `eval echo '${'$as_ac_var'}'` = yes; then
22568 cat >>confdefs.h <<_ACEOF
22569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22570_ACEOF
22571
22572fi
22573done
22574
22575
22576
22577echo "$as_me:$LINENO: checking for mmap" >&5
22578echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22579if test "${ac_cv_func_mmap+set}" = set; then
22580 echo $ECHO_N "(cached) $ECHO_C" >&6
22581else
22582 cat >conftest.$ac_ext <<_ACEOF
22583#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022584/* confdefs.h. */
22585_ACEOF
22586cat confdefs.h >>conftest.$ac_ext
22587cat >>conftest.$ac_ext <<_ACEOF
22588/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022589/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022590 which can conflict with char mmap (); below.
22591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22592 <limits.h> exists even on freestanding compilers. */
22593#ifdef __STDC__
22594# include <limits.h>
22595#else
22596# include <assert.h>
22597#endif
John Criswell7a73b802003-06-30 21:59:07 +000022598/* Override any gcc2 internal prototype to avoid an error. */
22599#ifdef __cplusplus
22600extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022601{
John Criswell7a73b802003-06-30 21:59:07 +000022602#endif
22603/* We use char because int might match the return type of a gcc2
22604 builtin and then its argument prototype would still apply. */
22605char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022606/* The GNU C library defines this for functions which it implements
22607 to always fail with ENOSYS. Some functions are actually named
22608 something starting with __ and the normal name is an alias. */
22609#if defined (__stub_mmap) || defined (__stub___mmap)
22610choke me
22611#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022612char (*f) () = mmap;
22613#endif
22614#ifdef __cplusplus
22615}
John Criswell7a73b802003-06-30 21:59:07 +000022616#endif
22617
John Criswell0c38eaf2003-09-10 15:17:25 +000022618int
22619main ()
22620{
22621return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022622 ;
22623 return 0;
22624}
22625_ACEOF
22626rm -f conftest.$ac_objext conftest$ac_exeext
22627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22628 (eval $ac_link) 2>&5
22629 ac_status=$?
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } &&
22632 { ac_try='test -s conftest$ac_exeext'
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22635 ac_status=$?
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; }; then
22638 ac_cv_func_mmap=yes
22639else
22640 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022641sed 's/^/| /' conftest.$ac_ext >&5
22642
John Criswell7a73b802003-06-30 21:59:07 +000022643ac_cv_func_mmap=no
22644fi
22645rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22646fi
22647echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22648echo "${ECHO_T}$ac_cv_func_mmap" >&6
22649if test $ac_cv_func_mmap = yes; then
22650 :
22651else
22652 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22653echo "$as_me: error: Function mmap() required but not found" >&2;}
22654 { (exit 1); exit 1; }; }
22655fi
22656
22657echo "$as_me:$LINENO: checking for mprotect" >&5
22658echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22659if test "${ac_cv_func_mprotect+set}" = set; then
22660 echo $ECHO_N "(cached) $ECHO_C" >&6
22661else
22662 cat >conftest.$ac_ext <<_ACEOF
22663#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022664/* confdefs.h. */
22665_ACEOF
22666cat confdefs.h >>conftest.$ac_ext
22667cat >>conftest.$ac_ext <<_ACEOF
22668/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022669/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022670 which can conflict with char mprotect (); below.
22671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22672 <limits.h> exists even on freestanding compilers. */
22673#ifdef __STDC__
22674# include <limits.h>
22675#else
22676# include <assert.h>
22677#endif
John Criswell7a73b802003-06-30 21:59:07 +000022678/* Override any gcc2 internal prototype to avoid an error. */
22679#ifdef __cplusplus
22680extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022681{
John Criswell7a73b802003-06-30 21:59:07 +000022682#endif
22683/* We use char because int might match the return type of a gcc2
22684 builtin and then its argument prototype would still apply. */
22685char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022686/* The GNU C library defines this for functions which it implements
22687 to always fail with ENOSYS. Some functions are actually named
22688 something starting with __ and the normal name is an alias. */
22689#if defined (__stub_mprotect) || defined (__stub___mprotect)
22690choke me
22691#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022692char (*f) () = mprotect;
22693#endif
22694#ifdef __cplusplus
22695}
John Criswell7a73b802003-06-30 21:59:07 +000022696#endif
22697
John Criswell0c38eaf2003-09-10 15:17:25 +000022698int
22699main ()
22700{
22701return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022702 ;
22703 return 0;
22704}
22705_ACEOF
22706rm -f conftest.$ac_objext conftest$ac_exeext
22707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22708 (eval $ac_link) 2>&5
22709 ac_status=$?
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); } &&
22712 { ac_try='test -s conftest$ac_exeext'
22713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714 (eval $ac_try) 2>&5
22715 ac_status=$?
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; }; then
22718 ac_cv_func_mprotect=yes
22719else
22720 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022721sed 's/^/| /' conftest.$ac_ext >&5
22722
John Criswell7a73b802003-06-30 21:59:07 +000022723ac_cv_func_mprotect=no
22724fi
22725rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22726fi
22727echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22728echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22729if test $ac_cv_func_mprotect = yes; then
22730 :
22731else
22732 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22733echo "$as_me: error: Function mprotect() required but not found" >&2;}
22734 { (exit 1); exit 1; }; }
22735fi
22736
22737
John Criswellb13092b2003-07-22 21:00:24 +000022738
John Criswell7a73b802003-06-30 21:59:07 +000022739# Check whether --enable-purify or --disable-purify was given.
22740if test "${enable_purify+set}" = set; then
22741 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022742
22743else
John Criswellb13092b2003-07-22 21:00:24 +000022744 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022745fi;
John Criswellb13092b2003-07-22 21:00:24 +000022746if test ${enableval} = "no"
22747then
22748 ENABLE_PURIFY=
22749
22750else
22751 ENABLE_PURIFY=ENABLE_PURIFY=1
22752
22753fi
22754
John Criswell7a73b802003-06-30 21:59:07 +000022755# Check whether --enable-optimized or --disable-optimized was given.
22756if test "${enable_optimized+set}" = set; then
22757 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022758
22759else
John Criswellb13092b2003-07-22 21:00:24 +000022760 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022761fi;
John Criswellb13092b2003-07-22 21:00:24 +000022762if test ${enableval} = "no"
22763then
22764 ENABLE_OPTIMIZED=
22765
22766else
22767 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22768
22769fi
22770
John Criswell55126592003-10-07 21:57:39 +000022771# Check whether --enable-spec2000 or --disable-spec2000 was given.
22772if test "${enable_spec2000+set}" = set; then
22773 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000022774
22775else
John Criswellb13092b2003-07-22 21:00:24 +000022776 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022777fi;
John Criswellb13092b2003-07-22 21:00:24 +000022778if test ${enableval} = "no"
22779then
John Criswell55126592003-10-07 21:57:39 +000022780 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22781 then
22782 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000022783
John Criswell55126592003-10-07 21:57:39 +000022784 USE_SPEC=USE_SPEC=1
22785
22786 else
22787 USE_SPEC=
22788
22789
22790 fi
John Criswellb13092b2003-07-22 21:00:24 +000022791else
John Criswell55126592003-10-07 21:57:39 +000022792 if test ${enableval} = ""
22793 then
22794 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22795
22796 else
22797 SPEC_ROOT=${enableval}
22798
22799 fi
John Criswellb13092b2003-07-22 21:00:24 +000022800 USE_SPEC=USE_SPEC=1
22801
22802fi
22803
John Criswell7a73b802003-06-30 21:59:07 +000022804# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22805if test "${enable_precompiled_bytecode+set}" = set; then
22806 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022807
22808else
John Criswellb13092b2003-07-22 21:00:24 +000022809 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022810fi;
John Criswellb13092b2003-07-22 21:00:24 +000022811if test ${enableval} = "no"
22812then
22813 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022814
John Criswellb13092b2003-07-22 21:00:24 +000022815else
22816 UPB=USE_PRECOMPILED_BYTECODE=1
22817
22818fi
John Criswellf02dbf02003-07-22 20:07:49 +000022819
22820
22821# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22822if test "${enable_llc_diffs+set}" = set; then
22823 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022824
22825else
John Criswellb13092b2003-07-22 21:00:24 +000022826 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022827fi;
John Criswellb13092b2003-07-22 21:00:24 +000022828if test ${enableval} = "no"
22829then
22830 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022831
John Criswellb13092b2003-07-22 21:00:24 +000022832else
22833 DISABLE_LLC_DIFFS=
22834
22835fi
22836
22837# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022838if test "${enable_jit+set}" = set; then
22839 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022840
22841else
John Criswellc78022e2003-07-29 19:11:58 +000022842 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022843fi;
John Criswellb13092b2003-07-22 21:00:24 +000022844
22845if test ${enableval} = "no"
22846then
22847 JIT=
22848
22849else
John Criswellc78022e2003-07-29 19:11:58 +000022850 case $target in
22851 *i*86*)
22852 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022853
John Criswellc78022e2003-07-29 19:11:58 +000022854 ;;
22855 *sparc*)
22856 JIT=TARGET_HAS_JIT=1
22857
22858 ;;
22859 *)
22860 JIT=
22861
22862 ;;
22863 esac
John Criswellb13092b2003-07-22 21:00:24 +000022864fi
John Criswell7a73b802003-06-30 21:59:07 +000022865
22866
John Criswellc78022e2003-07-29 19:11:58 +000022867
John Criswell7a73b802003-06-30 21:59:07 +000022868# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22869if test "${with_llvmgccdir+set}" = set; then
22870 withval="$with_llvmgccdir"
22871 LLVMGCCDIR=$withval
22872
22873fi;
22874
John Criswellc78022e2003-07-29 19:11:58 +000022875
John Criswell7a73b802003-06-30 21:59:07 +000022876# Check whether --with-bcrepos or --without-bcrepos was given.
22877if test "${with_bcrepos+set}" = set; then
22878 withval="$with_bcrepos"
22879 BCR=$withval
22880
22881else
22882 BCR=/home/vadve/lattner/LLVMPrograms
22883
22884fi;
22885
John Criswellc78022e2003-07-29 19:11:58 +000022886
John Criswell7a73b802003-06-30 21:59:07 +000022887# Check whether --with-papi or --without-papi was given.
22888if test "${with_papi+set}" = set; then
22889 withval="$with_papi"
22890 PAPIDIR=$withval
22891
22892else
John Criswellde00db22003-08-25 16:49:54 +000022893 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022894
22895fi;
22896
John Criswell7a73b802003-06-30 21:59:07 +000022897
22898# Check whether --with-purify or --without-purify was given.
22899if test "${with_purify+set}" = set; then
22900 withval="$with_purify"
22901 PURIFY=$withval
22902
22903fi;
22904
John Criswellde00db22003-08-25 16:49:54 +000022905
John Criswell0c38eaf2003-09-10 15:17:25 +000022906 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022907cat >confcache <<\_ACEOF
22908# This file is a shell script that caches the results of configure
22909# tests run on this system so they can be shared between configure
22910# scripts and configure runs, see configure's option --config-cache.
22911# It is not useful on other systems. If it contains results you don't
22912# want to keep, you may remove or edit it.
22913#
22914# config.status only pays attention to the cache file if you give it
22915# the --recheck option to rerun configure.
22916#
John Criswell0c38eaf2003-09-10 15:17:25 +000022917# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022918# loading this file, other *unset* `ac_cv_foo' will be assigned the
22919# following values.
22920
22921_ACEOF
22922
22923# The following way of writing the cache mishandles newlines in values,
22924# but we know of no workaround that is simple, portable, and efficient.
22925# So, don't put newlines in cache variables' values.
22926# Ultrix sh set writes to stderr and can't be redirected directly,
22927# and sets the high bit in the cache file unless we assign to the vars.
22928{
22929 (set) 2>&1 |
22930 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22931 *ac_space=\ *)
22932 # `set' does not quote correctly, so add quotes (double-quote
22933 # substitution turns \\\\ into \\, and sed turns \\ into \).
22934 sed -n \
22935 "s/'/'\\\\''/g;
22936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22937 ;;
22938 *)
22939 # `set' quotes correctly as required by POSIX, so do not add quotes.
22940 sed -n \
22941 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22942 ;;
22943 esac;
22944} |
22945 sed '
22946 t clear
22947 : clear
22948 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22949 t end
22950 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22951 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022952if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022953 if test -w $cache_file; then
22954 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22955 cat confcache >$cache_file
22956 else
22957 echo "not updating unwritable cache $cache_file"
22958 fi
22959fi
22960rm -f confcache
22961
22962test "x$prefix" = xNONE && prefix=$ac_default_prefix
22963# Let make expand exec_prefix.
22964test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22965
22966# VPATH may cause trouble with some makes, so we remove $(srcdir),
22967# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22968# trailing colons and then remove the whole line if VPATH becomes empty
22969# (actually we leave an empty line to preserve line numbers).
22970if test "x$srcdir" = x.; then
22971 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22972s/:*\$(srcdir):*/:/;
22973s/:*\${srcdir}:*/:/;
22974s/:*@srcdir@:*/:/;
22975s/^\([^=]*=[ ]*\):*/\1/;
22976s/:*$//;
22977s/^[^=]*=[ ]*$//;
22978}'
22979fi
22980
22981DEFS=-DHAVE_CONFIG_H
22982
John Criswell0c38eaf2003-09-10 15:17:25 +000022983ac_libobjs=
22984ac_ltlibobjs=
22985for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22986 # 1. Remove the extension, and $U if already installed.
22987 ac_i=`echo "$ac_i" |
22988 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22989 # 2. Add them.
22990 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22991 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22992done
22993LIBOBJS=$ac_libobjs
22994
22995LTLIBOBJS=$ac_ltlibobjs
22996
22997
John Criswell7a73b802003-06-30 21:59:07 +000022998
22999: ${CONFIG_STATUS=./config.status}
23000ac_clean_files_save=$ac_clean_files
23001ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23002{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23003echo "$as_me: creating $CONFIG_STATUS" >&6;}
23004cat >$CONFIG_STATUS <<_ACEOF
23005#! $SHELL
23006# Generated by $as_me.
23007# Run this file to recreate the current configuration.
23008# Compiler output produced by configure, useful for debugging
23009# configure, is in config.log if it exists.
23010
23011debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023012ac_cs_recheck=false
23013ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023014SHELL=\${CONFIG_SHELL-$SHELL}
23015_ACEOF
23016
23017cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023018## --------------------- ##
23019## M4sh Initialization. ##
23020## --------------------- ##
23021
23022# Be Bourne compatible
23023if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23024 emulate sh
23025 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023026 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23027 # is contrary to our usage. Disable this feature.
23028 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023029elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23030 set -o posix
23031fi
23032
John Criswell7a73b802003-06-30 21:59:07 +000023033# Support unset when possible.
23034if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23035 as_unset=unset
23036else
23037 as_unset=false
23038fi
23039
John Criswell0c38eaf2003-09-10 15:17:25 +000023040
23041# Work around bugs in pre-3.0 UWIN ksh.
23042$as_unset ENV MAIL MAILPATH
23043PS1='$ '
23044PS2='> '
23045PS4='+ '
23046
23047# NLS nuisances.
23048for as_var in \
23049 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23050 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23051 LC_TELEPHONE LC_TIME
23052do
23053 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23054 eval $as_var=C; export $as_var
23055 else
23056 $as_unset $as_var
23057 fi
23058done
23059
23060# Required to use basename.
23061if expr a : '\(a\)' >/dev/null 2>&1; then
23062 as_expr=expr
23063else
23064 as_expr=false
23065fi
23066
23067if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23068 as_basename=basename
23069else
23070 as_basename=false
23071fi
John Criswell7a73b802003-06-30 21:59:07 +000023072
23073
23074# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023075as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023076$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23077 X"$0" : 'X\(//\)$' \| \
23078 X"$0" : 'X\(/\)$' \| \
23079 . : '\(.\)' 2>/dev/null ||
23080echo X/"$0" |
23081 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23082 /^X\/\(\/\/\)$/{ s//\1/; q; }
23083 /^X\/\(\/\).*/{ s//\1/; q; }
23084 s/.*/./; q'`
23085
John Criswell0c38eaf2003-09-10 15:17:25 +000023086
John Criswell7a73b802003-06-30 21:59:07 +000023087# PATH needs CR, and LINENO needs CR and PATH.
23088# Avoid depending upon Character Ranges.
23089as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23090as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23091as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23092as_cr_digits='0123456789'
23093as_cr_alnum=$as_cr_Letters$as_cr_digits
23094
23095# The user is always right.
23096if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023097 echo "#! /bin/sh" >conf$$.sh
23098 echo "exit 0" >>conf$$.sh
23099 chmod +x conf$$.sh
23100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023101 PATH_SEPARATOR=';'
23102 else
23103 PATH_SEPARATOR=:
23104 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023105 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023106fi
23107
23108
23109 as_lineno_1=$LINENO
23110 as_lineno_2=$LINENO
23111 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23112 test "x$as_lineno_1" != "x$as_lineno_2" &&
23113 test "x$as_lineno_3" = "x$as_lineno_2" || {
23114 # Find who we are. Look in the path if we contain no path at all
23115 # relative or not.
23116 case $0 in
23117 *[\\/]* ) as_myself=$0 ;;
23118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23119for as_dir in $PATH
23120do
23121 IFS=$as_save_IFS
23122 test -z "$as_dir" && as_dir=.
23123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23124done
23125
23126 ;;
23127 esac
23128 # We did not find ourselves, most probably we were run as `sh COMMAND'
23129 # in which case we are not to be found in the path.
23130 if test "x$as_myself" = x; then
23131 as_myself=$0
23132 fi
23133 if test ! -f "$as_myself"; then
23134 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23135echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23136 { (exit 1); exit 1; }; }
23137 fi
23138 case $CONFIG_SHELL in
23139 '')
23140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23141for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23142do
23143 IFS=$as_save_IFS
23144 test -z "$as_dir" && as_dir=.
23145 for as_base in sh bash ksh sh5; do
23146 case $as_dir in
23147 /*)
23148 if ("$as_dir/$as_base" -c '
23149 as_lineno_1=$LINENO
23150 as_lineno_2=$LINENO
23151 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23152 test "x$as_lineno_1" != "x$as_lineno_2" &&
23153 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023154 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23155 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023156 CONFIG_SHELL=$as_dir/$as_base
23157 export CONFIG_SHELL
23158 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23159 fi;;
23160 esac
23161 done
23162done
23163;;
23164 esac
23165
23166 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23167 # uniformly replaced by the line number. The first 'sed' inserts a
23168 # line-number line before each line; the second 'sed' does the real
23169 # work. The second script uses 'N' to pair each line-number line
23170 # with the numbered line, and appends trailing '-' during
23171 # substitution so that $LINENO is not a special case at line end.
23172 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23173 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23174 sed '=' <$as_myself |
23175 sed '
23176 N
23177 s,$,-,
23178 : loop
23179 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23180 t loop
23181 s,-$,,
23182 s,^['$as_cr_digits']*\n,,
23183 ' >$as_me.lineno &&
23184 chmod +x $as_me.lineno ||
23185 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23186echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23187 { (exit 1); exit 1; }; }
23188
23189 # Don't try to exec as it changes $[0], causing all sort of problems
23190 # (the dirname of $[0] is not the place where we might find the
23191 # original and so on. Autoconf is especially sensible to this).
23192 . ./$as_me.lineno
23193 # Exit status is that of the last command.
23194 exit
23195}
23196
23197
23198case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23199 *c*,-n*) ECHO_N= ECHO_C='
23200' ECHO_T=' ' ;;
23201 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23202 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23203esac
23204
23205if expr a : '\(a\)' >/dev/null 2>&1; then
23206 as_expr=expr
23207else
23208 as_expr=false
23209fi
23210
23211rm -f conf$$ conf$$.exe conf$$.file
23212echo >conf$$.file
23213if ln -s conf$$.file conf$$ 2>/dev/null; then
23214 # We could just check for DJGPP; but this test a) works b) is more generic
23215 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23216 if test -f conf$$.exe; then
23217 # Don't use ln at all; we don't have any links
23218 as_ln_s='cp -p'
23219 else
23220 as_ln_s='ln -s'
23221 fi
23222elif ln conf$$.file conf$$ 2>/dev/null; then
23223 as_ln_s=ln
23224else
23225 as_ln_s='cp -p'
23226fi
23227rm -f conf$$ conf$$.exe conf$$.file
23228
John Criswell0c38eaf2003-09-10 15:17:25 +000023229if mkdir -p . 2>/dev/null; then
23230 as_mkdir_p=:
23231else
23232 as_mkdir_p=false
23233fi
23234
John Criswell7a73b802003-06-30 21:59:07 +000023235as_executable_p="test -f"
23236
23237# Sed expression to map a string onto a valid CPP name.
23238as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23239
23240# Sed expression to map a string onto a valid variable name.
23241as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23242
23243
23244# IFS
23245# We need space, tab and new line, in precisely that order.
23246as_nl='
23247'
23248IFS=" $as_nl"
23249
23250# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023251$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023252
23253exec 6>&1
23254
23255# Open the log real soon, to keep \$[0] and so on meaningful, and to
23256# report actual input values of CONFIG_FILES etc. instead of their
23257# values after options handling. Logging --version etc. is OK.
23258exec 5>>config.log
23259{
23260 echo
23261 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23262## Running $as_me. ##
23263_ASBOX
23264} >&5
23265cat >&5 <<_CSEOF
23266
23267This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023268generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023269
23270 CONFIG_FILES = $CONFIG_FILES
23271 CONFIG_HEADERS = $CONFIG_HEADERS
23272 CONFIG_LINKS = $CONFIG_LINKS
23273 CONFIG_COMMANDS = $CONFIG_COMMANDS
23274 $ $0 $@
23275
23276_CSEOF
23277echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23278echo >&5
23279_ACEOF
23280
23281# Files that config.status was made for.
23282if test -n "$ac_config_files"; then
23283 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23284fi
23285
23286if test -n "$ac_config_headers"; then
23287 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23288fi
23289
23290if test -n "$ac_config_links"; then
23291 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23292fi
23293
23294if test -n "$ac_config_commands"; then
23295 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23296fi
23297
23298cat >>$CONFIG_STATUS <<\_ACEOF
23299
23300ac_cs_usage="\
23301\`$as_me' instantiates files from templates according to the
23302current configuration.
23303
23304Usage: $0 [OPTIONS] [FILE]...
23305
23306 -h, --help print this help, then exit
23307 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023308 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023309 -d, --debug don't remove temporary files
23310 --recheck update $as_me by reconfiguring in the same conditions
23311 --file=FILE[:TEMPLATE]
23312 instantiate the configuration file FILE
23313 --header=FILE[:TEMPLATE]
23314 instantiate the configuration header FILE
23315
23316Configuration files:
23317$config_files
23318
23319Configuration headers:
23320$config_headers
23321
John Criswellc764fbc2003-09-06 15:17:13 +000023322Configuration commands:
23323$config_commands
23324
John Criswell7a73b802003-06-30 21:59:07 +000023325Report bugs to <bug-autoconf@gnu.org>."
23326_ACEOF
23327
23328cat >>$CONFIG_STATUS <<_ACEOF
23329ac_cs_version="\\
23330[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023331configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023332 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23333
23334Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23335Free Software Foundation, Inc.
23336This config.status script is free software; the Free Software Foundation
23337gives unlimited permission to copy, distribute and modify it."
23338srcdir=$srcdir
23339INSTALL="$INSTALL"
23340_ACEOF
23341
23342cat >>$CONFIG_STATUS <<\_ACEOF
23343# If no file are specified by the user, then we need to provide default
23344# value. By we need to know if files were specified by the user.
23345ac_need_defaults=:
23346while test $# != 0
23347do
23348 case $1 in
23349 --*=*)
23350 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23351 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023352 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023353 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023354 -*)
23355 ac_option=$1
23356 ac_optarg=$2
23357 ac_shift=shift
23358 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023359 *) # This is not an option, so the user has probably given explicit
23360 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023361 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023362 ac_need_defaults=false;;
23363 esac
23364
John Criswell0c38eaf2003-09-10 15:17:25 +000023365 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023366 # Handling of the options.
23367_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023368cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23370 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023371 --version | --vers* | -V )
23372 echo "$ac_cs_version"; exit 0 ;;
23373 --he | --h)
23374 # Conflict between --help and --header
23375 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23376Try \`$0 --help' for more information." >&5
23377echo "$as_me: error: ambiguous option: $1
23378Try \`$0 --help' for more information." >&2;}
23379 { (exit 1); exit 1; }; };;
23380 --help | --hel | -h )
23381 echo "$ac_cs_usage"; exit 0 ;;
23382 --debug | --d* | -d )
23383 debug=: ;;
23384 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023385 $ac_shift
23386 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023387 ac_need_defaults=false;;
23388 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023389 $ac_shift
23390 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023391 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23393 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23394 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023395
23396 # This is an error.
23397 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23398Try \`$0 --help' for more information." >&5
23399echo "$as_me: error: unrecognized option: $1
23400Try \`$0 --help' for more information." >&2;}
23401 { (exit 1); exit 1; }; } ;;
23402
23403 *) ac_config_targets="$ac_config_targets $1" ;;
23404
23405 esac
23406 shift
23407done
23408
John Criswell0c38eaf2003-09-10 15:17:25 +000023409ac_configure_extra_args=
23410
23411if $ac_cs_silent; then
23412 exec 6>/dev/null
23413 ac_configure_extra_args="$ac_configure_extra_args --silent"
23414fi
23415
23416_ACEOF
23417cat >>$CONFIG_STATUS <<_ACEOF
23418if \$ac_cs_recheck; then
23419 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23420 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23421fi
23422
John Criswell7a73b802003-06-30 21:59:07 +000023423_ACEOF
23424
John Criswellc764fbc2003-09-06 15:17:13 +000023425cat >>$CONFIG_STATUS <<_ACEOF
23426#
23427# INIT-COMMANDS section.
23428#
John Criswell7a73b802003-06-30 21:59:07 +000023429
John Criswellc764fbc2003-09-06 15:17:13 +000023430${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23432${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23433${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023447${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023452${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023453${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23461${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23466${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023468${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023469${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23471${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023473${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023474${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023475${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23476${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023477${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23480${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023481${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
John Criswell5ab73462003-10-09 15:44:28 +000023503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23511${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23512${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23513${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
John Criswell987e49c2003-10-10 01:11:54 +000023514${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23515${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023516${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23517${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23518${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23519${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23520${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23521${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23522${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023523${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23524${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023525${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23526${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023527${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23528${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23529${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23530${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23532${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23533${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23534${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23535${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23536${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23537${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23538${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23539${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23540${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23541${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23542${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23543${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23544${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23545${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23546${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23547${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23548${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23549${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23550${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023551${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023552${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23553${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23554${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23555${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23556${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23557${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023558${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023559${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023560${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23561${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023562${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23563${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23564${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23565${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23566${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23567${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023568${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023569${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023570${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023571${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023572${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23573${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023574${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023575${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23576${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023577${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023578${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23579${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23580${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023581${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023582${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023583${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023584${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023585${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023586${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023587${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23588${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023589${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23590${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23591${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23592${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023593${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023594${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23595${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23596${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23597${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23598
23599_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023600
23601
23602
23603cat >>$CONFIG_STATUS <<\_ACEOF
23604for ac_config_target in $ac_config_targets
23605do
23606 case "$ac_config_target" in
23607 # Handling of arguments.
23608 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023609 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23610 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23611 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23612 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23613 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23614 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23615 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23616 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23617 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23618 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23619 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23620 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23621 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23622 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23623 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23624 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23625 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023626 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23627 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23628 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23629 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23630 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023631 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023632 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23633 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23634 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23635 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23636 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23637 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23638 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23639 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23640 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23641 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23642 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23643 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23644 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23645 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23646 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023647 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023648 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23649 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23650 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23651 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023652 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023653 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023654 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23655 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023656 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23657 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23658 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23659 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023660 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23661 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023662 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23663 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23664 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23665 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23666 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23667 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23668 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23669 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23670 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23671 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23672 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23673 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23674 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23675 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23676 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23677 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23678 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23679 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023680 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023681 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
John Criswell5ab73462003-10-09 15:44:28 +000023682 "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 +000023683 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23684 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23685 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23686 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23687 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23688 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23689 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23690 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23691 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23692 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
John Criswell987e49c2003-10-10 01:11:54 +000023693 "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
23694 "test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023695 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23696 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23697 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23698 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23699 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23700 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23701 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023702 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23703 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023704 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23705 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023706 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23707 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23708 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23709 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23710 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23711 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23712 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23713 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23714 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23715 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23716 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23717 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23718 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23719 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23720 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23721 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23722 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23723 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23724 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23725 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23726 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23727 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23728 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23729 "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023730 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023731 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23732 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23733 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23734 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23735 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23736 "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023737 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023738 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023739 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23740 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023741 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23742 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23743 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23744 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23745 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23746 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023747 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023748 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023749 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023750 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023751 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23752 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000023753 "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 +000023754 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23755 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023756 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023757 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23758 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23759 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023760 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023761 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023762 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023763 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023764 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023765 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023766 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23767 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023768 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23769 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23770 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23771 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023772 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023773 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23774 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23775 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23776 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023777 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23778 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23779echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23780 { (exit 1); exit 1; }; };;
23781 esac
23782done
23783
23784# If the user did not use the arguments to specify the items to instantiate,
23785# then the envvar interface is used. Set only those that are not.
23786# We use the long form for the default assignment because of an extremely
23787# bizarre bug on SunOS 4.1.3.
23788if $ac_need_defaults; then
23789 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23790 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023791 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023792fi
23793
John Criswell0c38eaf2003-09-10 15:17:25 +000023794# Have a temporary directory for convenience. Make it in the build tree
23795# simply because there is no reason to put it here, and in addition,
23796# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023797# Create a temporary directory, and hook for its removal unless debugging.
23798$debug ||
23799{
23800 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23801 trap '{ (exit 1); exit 1; }' 1 2 13 15
23802}
23803
23804# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023805
John Criswell7a73b802003-06-30 21:59:07 +000023806{
John Criswell0c38eaf2003-09-10 15:17:25 +000023807 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023808 test -n "$tmp" && test -d "$tmp"
23809} ||
23810{
John Criswell0c38eaf2003-09-10 15:17:25 +000023811 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023812 (umask 077 && mkdir $tmp)
23813} ||
23814{
John Criswell0c38eaf2003-09-10 15:17:25 +000023815 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023816 { (exit 1); exit 1; }
23817}
23818
23819_ACEOF
23820
23821cat >>$CONFIG_STATUS <<_ACEOF
23822
23823#
23824# CONFIG_FILES section.
23825#
23826
23827# No need to generate the scripts if there are no CONFIG_FILES.
23828# This happens for instance when ./config.status config.h
23829if test -n "\$CONFIG_FILES"; then
23830 # Protect against being on the right side of a sed subst in config.status.
23831 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23832 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23833s,@SHELL@,$SHELL,;t t
23834s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23835s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23836s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23837s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23838s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23839s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23840s,@exec_prefix@,$exec_prefix,;t t
23841s,@prefix@,$prefix,;t t
23842s,@program_transform_name@,$program_transform_name,;t t
23843s,@bindir@,$bindir,;t t
23844s,@sbindir@,$sbindir,;t t
23845s,@libexecdir@,$libexecdir,;t t
23846s,@datadir@,$datadir,;t t
23847s,@sysconfdir@,$sysconfdir,;t t
23848s,@sharedstatedir@,$sharedstatedir,;t t
23849s,@localstatedir@,$localstatedir,;t t
23850s,@libdir@,$libdir,;t t
23851s,@includedir@,$includedir,;t t
23852s,@oldincludedir@,$oldincludedir,;t t
23853s,@infodir@,$infodir,;t t
23854s,@mandir@,$mandir,;t t
23855s,@build_alias@,$build_alias,;t t
23856s,@host_alias@,$host_alias,;t t
23857s,@target_alias@,$target_alias,;t t
23858s,@DEFS@,$DEFS,;t t
23859s,@ECHO_C@,$ECHO_C,;t t
23860s,@ECHO_N@,$ECHO_N,;t t
23861s,@ECHO_T@,$ECHO_T,;t t
23862s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023863s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023864s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23865s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23866s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23867s,@build@,$build,;t t
23868s,@build_cpu@,$build_cpu,;t t
23869s,@build_vendor@,$build_vendor,;t t
23870s,@build_os@,$build_os,;t t
23871s,@host@,$host,;t t
23872s,@host_cpu@,$host_cpu,;t t
23873s,@host_vendor@,$host_vendor,;t t
23874s,@host_os@,$host_os,;t t
23875s,@target@,$target,;t t
23876s,@target_cpu@,$target_cpu,;t t
23877s,@target_vendor@,$target_vendor,;t t
23878s,@target_os@,$target_os,;t t
23879s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023880s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023881s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023882s,@CXX@,$CXX,;t t
23883s,@CXXFLAGS@,$CXXFLAGS,;t t
23884s,@LDFLAGS@,$LDFLAGS,;t t
23885s,@CPPFLAGS@,$CPPFLAGS,;t t
23886s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23887s,@EXEEXT@,$EXEEXT,;t t
23888s,@OBJEXT@,$OBJEXT,;t t
23889s,@CC@,$CC,;t t
23890s,@CFLAGS@,$CFLAGS,;t t
23891s,@ac_ct_CC@,$ac_ct_CC,;t t
23892s,@CPP@,$CPP,;t t
23893s,@ifGNUmake@,$ifGNUmake,;t t
23894s,@LEX@,$LEX,;t t
23895s,@LEXLIB@,$LEXLIB,;t t
23896s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23897s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023898s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023899s,@LN_S@,$LN_S,;t t
23900s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023901s,@AR@,$AR,;t t
23902s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023903s,@RANLIB@,$RANLIB,;t t
23904s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23905s,@STRIP@,$STRIP,;t t
23906s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023907s,@CXXCPP@,$CXXCPP,;t t
23908s,@F77@,$F77,;t t
23909s,@FFLAGS@,$FFLAGS,;t t
23910s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023911s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023912s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023913s,@SED@,$SED,;t t
23914s,@RM@,$RM,;t t
23915s,@MKDIR@,$MKDIR,;t t
23916s,@DATE@,$DATE,;t t
23917s,@MV@,$MV,;t t
23918s,@DOT@,$DOT,;t t
23919s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000023920s,@PYTHON@,$PYTHON,;t t
23921s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023922s,@ALLOCA@,$ALLOCA,;t t
23923s,@LIBOBJS@,$LIBOBJS,;t t
23924s,@MMAP_FILE@,$MMAP_FILE,;t t
23925s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023926s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000023927s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023928s,@USE_SPEC@,$USE_SPEC,;t t
23929s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023930s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023931s,@JIT@,$JIT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023932s,@BCR@,$BCR,;t t
23933s,@PAPIDIR@,$PAPIDIR,;t t
John Criswellce2141f2003-10-02 19:02:30 +000023934s,@PURIFY@,$PURIFY,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023935s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023936CEOF
23937
23938_ACEOF
23939
23940 cat >>$CONFIG_STATUS <<\_ACEOF
23941 # Split the substitutions into bite-sized pieces for seds with
23942 # small command number limits, like on Digital OSF/1 and HP-UX.
23943 ac_max_sed_lines=48
23944 ac_sed_frag=1 # Number of current file.
23945 ac_beg=1 # First line for current file.
23946 ac_end=$ac_max_sed_lines # Line after last line for current file.
23947 ac_more_lines=:
23948 ac_sed_cmds=
23949 while $ac_more_lines; do
23950 if test $ac_beg -gt 1; then
23951 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23952 else
23953 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23954 fi
23955 if test ! -s $tmp/subs.frag; then
23956 ac_more_lines=false
23957 else
23958 # The purpose of the label and of the branching condition is to
23959 # speed up the sed processing (if there are no `@' at all, there
23960 # is no need to browse any of the substitutions).
23961 # These are the two extra sed commands mentioned above.
23962 (echo ':t
23963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23964 if test -z "$ac_sed_cmds"; then
23965 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23966 else
23967 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23968 fi
23969 ac_sed_frag=`expr $ac_sed_frag + 1`
23970 ac_beg=$ac_end
23971 ac_end=`expr $ac_end + $ac_max_sed_lines`
23972 fi
23973 done
23974 if test -z "$ac_sed_cmds"; then
23975 ac_sed_cmds=cat
23976 fi
23977fi # test -n "$CONFIG_FILES"
23978
23979_ACEOF
23980cat >>$CONFIG_STATUS <<\_ACEOF
23981for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23983 case $ac_file in
23984 - | *:- | *:-:* ) # input from stdin
23985 cat >$tmp/stdin
23986 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23988 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23990 * ) ac_file_in=$ac_file.in ;;
23991 esac
23992
23993 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23994 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23995$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23996 X"$ac_file" : 'X\(//\)[^/]' \| \
23997 X"$ac_file" : 'X\(//\)$' \| \
23998 X"$ac_file" : 'X\(/\)' \| \
23999 . : '\(.\)' 2>/dev/null ||
24000echo X"$ac_file" |
24001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24003 /^X\(\/\/\)$/{ s//\1/; q; }
24004 /^X\(\/\).*/{ s//\1/; q; }
24005 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024006 { if $as_mkdir_p; then
24007 mkdir -p "$ac_dir"
24008 else
24009 as_dir="$ac_dir"
24010 as_dirs=
24011 while test ! -d "$as_dir"; do
24012 as_dirs="$as_dir $as_dirs"
24013 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24014$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24015 X"$as_dir" : 'X\(//\)[^/]' \| \
24016 X"$as_dir" : 'X\(//\)$' \| \
24017 X"$as_dir" : 'X\(/\)' \| \
24018 . : '\(.\)' 2>/dev/null ||
24019echo X"$as_dir" |
24020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24022 /^X\(\/\/\)$/{ s//\1/; q; }
24023 /^X\(\/\).*/{ s//\1/; q; }
24024 s/.*/./; q'`
24025 done
24026 test ! -n "$as_dirs" || mkdir $as_dirs
24027 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24028echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24029 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024030
24031 ac_builddir=.
24032
24033if test "$ac_dir" != .; then
24034 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24035 # A "../" for each directory in $ac_dir_suffix.
24036 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24037else
24038 ac_dir_suffix= ac_top_builddir=
24039fi
24040
24041case $srcdir in
24042 .) # No --srcdir option. We are building in place.
24043 ac_srcdir=.
24044 if test -z "$ac_top_builddir"; then
24045 ac_top_srcdir=.
24046 else
24047 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24048 fi ;;
24049 [\\/]* | ?:[\\/]* ) # Absolute path.
24050 ac_srcdir=$srcdir$ac_dir_suffix;
24051 ac_top_srcdir=$srcdir ;;
24052 *) # Relative path.
24053 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24054 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24055esac
24056# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24057# absolute.
24058ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024059ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024060ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24061ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24062
24063
24064 case $INSTALL in
24065 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24066 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24067 esac
24068
24069 if test x"$ac_file" != x-; then
24070 { echo "$as_me:$LINENO: creating $ac_file" >&5
24071echo "$as_me: creating $ac_file" >&6;}
24072 rm -f "$ac_file"
24073 fi
24074 # Let's still pretend it is `configure' which instantiates (i.e., don't
24075 # use $as_me), people would be surprised to read:
24076 # /* config.h. Generated by config.status. */
24077 if test x"$ac_file" = x-; then
24078 configure_input=
24079 else
24080 configure_input="$ac_file. "
24081 fi
24082 configure_input=$configure_input"Generated from `echo $ac_file_in |
24083 sed 's,.*/,,'` by configure."
24084
24085 # First look for the input files in the build tree, otherwise in the
24086 # src tree.
24087 ac_file_inputs=`IFS=:
24088 for f in $ac_file_in; do
24089 case $f in
24090 -) echo $tmp/stdin ;;
24091 [\\/$]*)
24092 # Absolute (can't be DOS-style, as IFS=:)
24093 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24094echo "$as_me: error: cannot find input file: $f" >&2;}
24095 { (exit 1); exit 1; }; }
24096 echo $f;;
24097 *) # Relative
24098 if test -f "$f"; then
24099 # Build tree
24100 echo $f
24101 elif test -f "$srcdir/$f"; then
24102 # Source tree
24103 echo $srcdir/$f
24104 else
24105 # /dev/null tree
24106 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24107echo "$as_me: error: cannot find input file: $f" >&2;}
24108 { (exit 1); exit 1; }; }
24109 fi;;
24110 esac
24111 done` || { (exit 1); exit 1; }
24112_ACEOF
24113cat >>$CONFIG_STATUS <<_ACEOF
24114 sed "$ac_vpsub
24115$extrasub
24116_ACEOF
24117cat >>$CONFIG_STATUS <<\_ACEOF
24118:t
24119/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24120s,@configure_input@,$configure_input,;t t
24121s,@srcdir@,$ac_srcdir,;t t
24122s,@abs_srcdir@,$ac_abs_srcdir,;t t
24123s,@top_srcdir@,$ac_top_srcdir,;t t
24124s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24125s,@builddir@,$ac_builddir,;t t
24126s,@abs_builddir@,$ac_abs_builddir,;t t
24127s,@top_builddir@,$ac_top_builddir,;t t
24128s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24129s,@INSTALL@,$ac_INSTALL,;t t
24130" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24131 rm -f $tmp/stdin
24132 if test x"$ac_file" != x-; then
24133 mv $tmp/out $ac_file
24134 else
24135 cat $tmp/out
24136 rm -f $tmp/out
24137 fi
24138
24139done
24140_ACEOF
24141cat >>$CONFIG_STATUS <<\_ACEOF
24142
24143#
24144# CONFIG_HEADER section.
24145#
24146
24147# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24148# NAME is the cpp macro being defined and VALUE is the value it is being given.
24149#
24150# ac_d sets the value in "#define NAME VALUE" lines.
24151ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24152ac_dB='[ ].*$,\1#\2'
24153ac_dC=' '
24154ac_dD=',;t'
24155# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24156ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24157ac_uB='$,\1#\2define\3'
24158ac_uC=' '
24159ac_uD=',;t'
24160
24161for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24163 case $ac_file in
24164 - | *:- | *:-:* ) # input from stdin
24165 cat >$tmp/stdin
24166 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24168 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24169 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24170 * ) ac_file_in=$ac_file.in ;;
24171 esac
24172
24173 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24174echo "$as_me: creating $ac_file" >&6;}
24175
24176 # First look for the input files in the build tree, otherwise in the
24177 # src tree.
24178 ac_file_inputs=`IFS=:
24179 for f in $ac_file_in; do
24180 case $f in
24181 -) echo $tmp/stdin ;;
24182 [\\/$]*)
24183 # Absolute (can't be DOS-style, as IFS=:)
24184 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24185echo "$as_me: error: cannot find input file: $f" >&2;}
24186 { (exit 1); exit 1; }; }
24187 echo $f;;
24188 *) # Relative
24189 if test -f "$f"; then
24190 # Build tree
24191 echo $f
24192 elif test -f "$srcdir/$f"; then
24193 # Source tree
24194 echo $srcdir/$f
24195 else
24196 # /dev/null tree
24197 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24198echo "$as_me: error: cannot find input file: $f" >&2;}
24199 { (exit 1); exit 1; }; }
24200 fi;;
24201 esac
24202 done` || { (exit 1); exit 1; }
24203 # Remove the trailing spaces.
24204 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24205
24206_ACEOF
24207
24208# Transform confdefs.h into two sed scripts, `conftest.defines' and
24209# `conftest.undefs', that substitutes the proper values into
24210# config.h.in to produce config.h. The first handles `#define'
24211# templates, and the second `#undef' templates.
24212# And first: Protect against being on the right side of a sed subst in
24213# config.status. Protect against being in an unquoted here document
24214# in config.status.
24215rm -f conftest.defines conftest.undefs
24216# Using a here document instead of a string reduces the quoting nightmare.
24217# Putting comments in sed scripts is not portable.
24218#
24219# `end' is used to avoid that the second main sed command (meant for
24220# 0-ary CPP macros) applies to n-ary macro definitions.
24221# See the Autoconf documentation for `clear'.
24222cat >confdef2sed.sed <<\_ACEOF
24223s/[\\&,]/\\&/g
24224s,[\\$`],\\&,g
24225t clear
24226: clear
24227s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24228t end
24229s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24230: end
24231_ACEOF
24232# If some macros were called several times there might be several times
24233# the same #defines, which is useless. Nevertheless, we may not want to
24234# sort them, since we want the *last* AC-DEFINE to be honored.
24235uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24236sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24237rm -f confdef2sed.sed
24238
24239# This sed command replaces #undef with comments. This is necessary, for
24240# example, in the case of _POSIX_SOURCE, which is predefined and required
24241# on some systems where configure will not decide to define it.
24242cat >>conftest.undefs <<\_ACEOF
24243s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24244_ACEOF
24245
24246# Break up conftest.defines because some shells have a limit on the size
24247# of here documents, and old seds have small limits too (100 cmds).
24248echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024249echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024250echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24251echo ' :' >>$CONFIG_STATUS
24252rm -f conftest.tail
24253while grep . conftest.defines >/dev/null
24254do
24255 # Write a limited-size here document to $tmp/defines.sed.
24256 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24257 # Speed up: don't consider the non `#define' lines.
24258 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24259 # Work around the forget-to-reset-the-flag bug.
24260 echo 't clr' >>$CONFIG_STATUS
24261 echo ': clr' >>$CONFIG_STATUS
24262 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24263 echo 'CEOF
24264 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24265 rm -f $tmp/in
24266 mv $tmp/out $tmp/in
24267' >>$CONFIG_STATUS
24268 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24269 rm -f conftest.defines
24270 mv conftest.tail conftest.defines
24271done
24272rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024273echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024274echo >>$CONFIG_STATUS
24275
24276# Break up conftest.undefs because some shells have a limit on the size
24277# of here documents, and old seds have small limits too (100 cmds).
24278echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24279rm -f conftest.tail
24280while grep . conftest.undefs >/dev/null
24281do
24282 # Write a limited-size here document to $tmp/undefs.sed.
24283 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24284 # Speed up: don't consider the non `#undef'
24285 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24286 # Work around the forget-to-reset-the-flag bug.
24287 echo 't clr' >>$CONFIG_STATUS
24288 echo ': clr' >>$CONFIG_STATUS
24289 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24290 echo 'CEOF
24291 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24292 rm -f $tmp/in
24293 mv $tmp/out $tmp/in
24294' >>$CONFIG_STATUS
24295 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24296 rm -f conftest.undefs
24297 mv conftest.tail conftest.undefs
24298done
24299rm -f conftest.undefs
24300
24301cat >>$CONFIG_STATUS <<\_ACEOF
24302 # Let's still pretend it is `configure' which instantiates (i.e., don't
24303 # use $as_me), people would be surprised to read:
24304 # /* config.h. Generated by config.status. */
24305 if test x"$ac_file" = x-; then
24306 echo "/* Generated by configure. */" >$tmp/config.h
24307 else
24308 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24309 fi
24310 cat $tmp/in >>$tmp/config.h
24311 rm -f $tmp/in
24312 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024313 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024314 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24315echo "$as_me: $ac_file is unchanged" >&6;}
24316 else
24317 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24318$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24319 X"$ac_file" : 'X\(//\)[^/]' \| \
24320 X"$ac_file" : 'X\(//\)$' \| \
24321 X"$ac_file" : 'X\(/\)' \| \
24322 . : '\(.\)' 2>/dev/null ||
24323echo X"$ac_file" |
24324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24326 /^X\(\/\/\)$/{ s//\1/; q; }
24327 /^X\(\/\).*/{ s//\1/; q; }
24328 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024329 { if $as_mkdir_p; then
24330 mkdir -p "$ac_dir"
24331 else
24332 as_dir="$ac_dir"
24333 as_dirs=
24334 while test ! -d "$as_dir"; do
24335 as_dirs="$as_dir $as_dirs"
24336 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24337$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24338 X"$as_dir" : 'X\(//\)[^/]' \| \
24339 X"$as_dir" : 'X\(//\)$' \| \
24340 X"$as_dir" : 'X\(/\)' \| \
24341 . : '\(.\)' 2>/dev/null ||
24342echo X"$as_dir" |
24343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24345 /^X\(\/\/\)$/{ s//\1/; q; }
24346 /^X\(\/\).*/{ s//\1/; q; }
24347 s/.*/./; q'`
24348 done
24349 test ! -n "$as_dirs" || mkdir $as_dirs
24350 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24351echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24352 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024353
24354 rm -f $ac_file
24355 mv $tmp/config.h $ac_file
24356 fi
24357 else
24358 cat $tmp/config.h
24359 rm -f $tmp/config.h
24360 fi
24361done
24362_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024363cat >>$CONFIG_STATUS <<\_ACEOF
24364
24365#
24366# CONFIG_COMMANDS section.
24367#
24368for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24369 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24370 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24371 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24372$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24373 X"$ac_dest" : 'X\(//\)[^/]' \| \
24374 X"$ac_dest" : 'X\(//\)$' \| \
24375 X"$ac_dest" : 'X\(/\)' \| \
24376 . : '\(.\)' 2>/dev/null ||
24377echo X"$ac_dest" |
24378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24380 /^X\(\/\/\)$/{ s//\1/; q; }
24381 /^X\(\/\).*/{ s//\1/; q; }
24382 s/.*/./; q'`
24383 ac_builddir=.
24384
24385if test "$ac_dir" != .; then
24386 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24387 # A "../" for each directory in $ac_dir_suffix.
24388 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24389else
24390 ac_dir_suffix= ac_top_builddir=
24391fi
24392
24393case $srcdir in
24394 .) # No --srcdir option. We are building in place.
24395 ac_srcdir=.
24396 if test -z "$ac_top_builddir"; then
24397 ac_top_srcdir=.
24398 else
24399 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24400 fi ;;
24401 [\\/]* | ?:[\\/]* ) # Absolute path.
24402 ac_srcdir=$srcdir$ac_dir_suffix;
24403 ac_top_srcdir=$srcdir ;;
24404 *) # Relative path.
24405 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24406 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24407esac
24408# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24409# absolute.
24410ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024411ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024412ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24413ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24414
24415
24416 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24417echo "$as_me: executing $ac_dest commands" >&6;}
24418 case $ac_dest in
24419 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24420 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24421 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24422 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24423 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24424 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24425 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24426 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24427 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24428 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24429 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24430 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24431 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24432 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24433 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24434 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24435 lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024436 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24437 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24438 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24439 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24440 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024441 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024442 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24443 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24444 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24445 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24446 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24447 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24448 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24449 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24450 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24451 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24452 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24453 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24454 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24455 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24456 runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024457 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 +000024458 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24459 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24460 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24461 runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024462 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 +000024463 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 +000024464 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24465 runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024466 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24467 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24468 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24469 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000024470 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24471 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024472 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24473 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24474 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24475 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24476 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24477 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24478 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24479 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24480 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24481 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24482 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24483 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24484 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24485 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24486 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24487 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24488 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24489 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024490 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 +000024491 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 +000024492 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 +000024493 test/Programs/External/SPEC/CFP2000/179.art/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/179.art/Makefile test/Programs/External/SPEC/CFP2000/179.art/Makefile ;;
24494 test/Programs/External/SPEC/CFP2000/183.equake/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/183.equake/Makefile test/Programs/External/SPEC/CFP2000/183.equake/Makefile ;;
24495 test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/188.ammp/Makefile test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ;;
24496 test/Programs/External/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/Makefile test/Programs/External/SPEC/CINT2000/Makefile ;;
24497 test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/164.gzip/Makefile test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ;;
24498 test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/175.vpr/Makefile test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ;;
24499 test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/176.gcc/Makefile test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ;;
24500 test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/181.mcf/Makefile test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ;;
24501 test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/186.crafty/Makefile test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ;;
24502 test/Programs/External/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/197.parser/Makefile test/Programs/External/SPEC/CINT2000/197.parser/Makefile ;;
John Criswell987e49c2003-10-10 01:11:54 +000024503 test/Programs/External/SPEC/CINT2000/252.eon/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/252.eon/Makefile test/Programs/External/SPEC/CINT2000/252.eon/Makefile ;;
24504 test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024505 test/Programs/External/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/254.gap/Makefile test/Programs/External/SPEC/CINT2000/254.gap/Makefile ;;
24506 test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/255.vortex/Makefile test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ;;
24507 test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ;;
24508 test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/300.twolf/Makefile test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ;;
24509 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24510 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24511 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024512 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24513 test/Programs/MultiSource/Applications/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Burg/Makefile test/Programs/MultiSource/Applications/Burg/Makefile ;;
John Criswell39e83892003-09-12 16:36:17 +000024514 test/Programs/MultiSource/Applications/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/aha/Makefile test/Programs/MultiSource/Applications/aha/Makefile ;;
24515 test/Programs/MultiSource/Applications/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/sgefa/Makefile test/Programs/MultiSource/Applications/sgefa/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024516 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24517 test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ;;
24518 test/Programs/MultiSource/Benchmarks/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/Makefile test/Programs/MultiSource/Benchmarks/McCat/Makefile ;;
24519 test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ;;
24520 test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ;;
24521 test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ;;
24522 test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ;;
24523 test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ;;
24524 test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ;;
24525 test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ;;
24526 test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ;;
24527 test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ;;
24528 test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ;;
24529 test/Programs/MultiSource/Benchmarks/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/Makefile test/Programs/MultiSource/Benchmarks/Olden/Makefile ;;
24530 test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ;;
24531 test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ;;
24532 test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ;;
24533 test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/health/Makefile test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ;;
24534 test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ;;
24535 test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ;;
24536 test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/power/Makefile test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ;;
24537 test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ;;
24538 test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ;;
24539 test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ;;
John Criswell39e83892003-09-12 16:36:17 +000024540 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 +000024541 test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ;;
24542 test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ;;
24543 test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ;;
24544 test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ;;
24545 test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ;;
24546 test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024547 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 +000024548 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 +000024549 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24550 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000024551 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24552 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24553 test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ;;
24554 test/Programs/SingleSource/Benchmarks/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Shootout/Makefile test/Programs/SingleSource/Benchmarks/Shootout/Makefile ;;
24555 test/Programs/SingleSource/Benchmarks/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Stanford/Makefile test/Programs/SingleSource/Benchmarks/Stanford/Makefile ;;
24556 test/Programs/SingleSource/Benchmarks/Misc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Misc/Makefile test/Programs/SingleSource/Benchmarks/Misc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024557 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 +000024558 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 +000024559 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 +000024560 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 +000024561 test/Programs/SingleSource/Regression/C/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C/Makefile test/Programs/SingleSource/Regression/C/Makefile ;;
24562 test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
John Criswellc66bbd52003-09-29 21:35:32 +000024563 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 +000024564 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24565 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024566 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024567 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24568 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24569 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024570 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024571 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024572 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024573 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 +000024574 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 +000024575 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 +000024576 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24577 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024578 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24579 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24580 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24581 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024582 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024583 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24584 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24585 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24586 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24587 esac
24588done
24589_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024590
24591cat >>$CONFIG_STATUS <<\_ACEOF
24592
24593{ (exit 0); exit 0; }
24594_ACEOF
24595chmod +x $CONFIG_STATUS
24596ac_clean_files=$ac_clean_files_save
24597
24598
24599# configure is writing to config.log, and then calls config.status.
24600# config.status does its own redirection, appending to config.log.
24601# Unfortunately, on DOS this fails, as config.log is still kept open
24602# by configure, so config.status won't be able to write to it; its
24603# output is simply discarded. So we exec the FD to /dev/null,
24604# effectively closing config.log, so it can be properly (re)opened and
24605# appended to by config.status. When coming back to configure, we
24606# need to make the FD available again.
24607if test "$no_create" != yes; then
24608 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024609 ac_config_status_args=
24610 test "$silent" = yes &&
24611 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024612 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024613 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024614 exec 5>>config.log
24615 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24616 # would make configure fail if this is the last instruction.
24617 $ac_cs_success || { (exit 1); exit 1; }
24618fi
24619
John Criswell12399a12003-09-30 15:55:44 +000024620#
24621# CONFIG_SUBDIRS section.
24622#
24623if test "$no_recursion" != yes; then
24624
24625 # Remove --cache-file and --srcdir arguments so they do not pile up.
24626 ac_sub_configure_args=
24627 ac_prev=
24628 for ac_arg in $ac_configure_args; do
24629 if test -n "$ac_prev"; then
24630 ac_prev=
24631 continue
24632 fi
24633 case $ac_arg in
24634 -cache-file | --cache-file | --cache-fil | --cache-fi \
24635 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24636 ac_prev=cache_file ;;
24637 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24638 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24639 | --c=*)
24640 ;;
24641 --config-cache | -C)
24642 ;;
24643 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24644 ac_prev=srcdir ;;
24645 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24646 ;;
24647 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24648 ac_prev=prefix ;;
24649 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24650 ;;
24651 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24652 esac
24653 done
24654
24655 # Always prepend --prefix to ensure using the same prefix
24656 # in subdir configurations.
24657 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24658
24659 ac_popdir=`pwd`
24660 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24661
24662 # Do not complain, so a configure script can configure whichever
24663 # parts of a large source tree are present.
24664 test -d $srcdir/$ac_dir || continue
24665
24666 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24667echo "$as_me: configuring in $ac_dir" >&6;}
24668 { if $as_mkdir_p; then
24669 mkdir -p "$ac_dir"
24670 else
24671 as_dir="$ac_dir"
24672 as_dirs=
24673 while test ! -d "$as_dir"; do
24674 as_dirs="$as_dir $as_dirs"
24675 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24676$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24677 X"$as_dir" : 'X\(//\)[^/]' \| \
24678 X"$as_dir" : 'X\(//\)$' \| \
24679 X"$as_dir" : 'X\(/\)' \| \
24680 . : '\(.\)' 2>/dev/null ||
24681echo X"$as_dir" |
24682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24684 /^X\(\/\/\)$/{ s//\1/; q; }
24685 /^X\(\/\).*/{ s//\1/; q; }
24686 s/.*/./; q'`
24687 done
24688 test ! -n "$as_dirs" || mkdir $as_dirs
24689 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24690echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24691 { (exit 1); exit 1; }; }; }
24692
24693 ac_builddir=.
24694
24695if test "$ac_dir" != .; then
24696 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24697 # A "../" for each directory in $ac_dir_suffix.
24698 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24699else
24700 ac_dir_suffix= ac_top_builddir=
24701fi
24702
24703case $srcdir in
24704 .) # No --srcdir option. We are building in place.
24705 ac_srcdir=.
24706 if test -z "$ac_top_builddir"; then
24707 ac_top_srcdir=.
24708 else
24709 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24710 fi ;;
24711 [\\/]* | ?:[\\/]* ) # Absolute path.
24712 ac_srcdir=$srcdir$ac_dir_suffix;
24713 ac_top_srcdir=$srcdir ;;
24714 *) # Relative path.
24715 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24716 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24717esac
24718# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24719# absolute.
24720ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24721ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24722ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24723ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24724
24725
24726 cd $ac_dir
24727
24728 # Check for guested configure; otherwise get Cygnus style configure.
24729 if test -f $ac_srcdir/configure.gnu; then
24730 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24731 elif test -f $ac_srcdir/configure; then
24732 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24733 elif test -f $ac_srcdir/configure.in; then
24734 ac_sub_configure=$ac_configure
24735 else
24736 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24737echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24738 ac_sub_configure=
24739 fi
24740
24741 # The recursion is here.
24742 if test -n "$ac_sub_configure"; then
24743 # Make the cache file name correct relative to the subdirectory.
24744 case $cache_file in
24745 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24746 *) # Relative path.
24747 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24748 esac
24749
24750 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24751echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24752 # The eval makes quoting arguments work.
24753 eval $ac_sub_configure $ac_sub_configure_args \
24754 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24755 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24756echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24757 { (exit 1); exit 1; }; }
24758 fi
24759
24760 cd $ac_popdir
24761 done
24762fi
24763