blob: 6991656c9467666d91653164d05f182cdddda8e4 [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 Criswell12399a12003-09-30 15:55:44 +0000429ac_subdirs_all="$ac_subdirs_all projects/reopt"
John Criswell559a6c12003-09-30 16:31:48 +0000430ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_unique_file=""Makefile.config.in""
John Criswell55126592003-10-07 21:57:39 +0000469ac_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 +0000470ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case $ac_option in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
742
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
755
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
782
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
786 ;;
787
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
798 *)
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 ;;
805
806 esac
807done
808
809if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
829do
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
872echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882else
883 ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
892 fi
893fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CXX_set=${CXX+set}
911ac_env_CXX_value=$CXX
912ac_cv_env_CXX_set=${CXX+set}
913ac_cv_env_CXX_value=$CXX
914ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_env_CXXFLAGS_value=$CXXFLAGS
916ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CC_set=${CC+set}
927ac_env_CC_value=$CC
928ac_cv_env_CC_set=${CC+set}
929ac_cv_env_CC_value=$CC
930ac_env_CFLAGS_set=${CFLAGS+set}
931ac_env_CFLAGS_value=$CFLAGS
932ac_cv_env_CFLAGS_set=${CFLAGS+set}
933ac_cv_env_CFLAGS_value=$CFLAGS
934ac_env_CPP_set=${CPP+set}
935ac_env_CPP_value=$CPP
936ac_cv_env_CPP_set=${CPP+set}
937ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000938ac_env_CXXCPP_set=${CXXCPP+set}
939ac_env_CXXCPP_value=$CXXCPP
940ac_cv_env_CXXCPP_set=${CXXCPP+set}
941ac_cv_env_CXXCPP_value=$CXXCPP
942ac_env_F77_set=${F77+set}
943ac_env_F77_value=$F77
944ac_cv_env_F77_set=${F77+set}
945ac_cv_env_F77_value=$F77
946ac_env_FFLAGS_set=${FFLAGS+set}
947ac_env_FFLAGS_value=$FFLAGS
948ac_cv_env_FFLAGS_set=${FFLAGS+set}
949ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000950
951#
952# Report the --help message.
953#
954if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
957 cat <<_ACEOF
958\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
959
960Usage: $0 [OPTION]... [VAR=VALUE]...
961
962To assign environment variables (e.g., CC, CFLAGS...), specify them as
963VAR=VALUE. See below for descriptions of some of the useful variables.
964
965Defaults for the options are specified in brackets.
966
967Configuration:
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977
978_ACEOF
979
980 cat <<_ACEOF
981Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
983 [$ac_default_prefix]
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 [PREFIX]
986
987By default, \`make install' will install all the files in
988\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990for instance \`--prefix=\$HOME'.
991
992For better control, use the options below.
993
994Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1007_ACEOF
1008
1009 cat <<\_ACEOF
1010
1011System types:
1012 --build=BUILD configure for building on BUILD [guessed]
1013 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 --target=TARGET configure for building compilers for TARGET [HOST]
1015_ACEOF
1016fi
1017
1018if test -n "$ac_init_help"; then
1019 case $ac_init_help in
1020 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1021 esac
1022 cat <<\_ACEOF
1023
1024Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001033 --disable-libtool-lock avoid locking (might break parallel builds)
1034 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001035 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswell55126592003-10-07 21:57:39 +00001036 --enable-spec Compile SPEC 2000 benchmarks (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001040 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1047 both]
1048 --with-tags[=TAGS]
1049 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001050 --with-llvmgccdir Location of LLVM GCC front-end
1051 --with-bcrepos Location of Bytecode Repository
1052 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001053 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001054
1055Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072Report bugs to <llvmbugs@cs.uiuc.edu>.
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088 ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
1106# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107# absolute.
1108ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001109ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001110ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1111ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1112
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
1128 cd $ac_popdir
1129 done
1130fi
1131
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
1135[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001136generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001137
1138Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139Free Software Foundation, Inc.
1140This configure script is free software; the Free Software Foundation
1141gives unlimited permission to copy, distribute and modify it.
1142_ACEOF
1143 exit 0
1144fi
1145exec 5>config.log
1146cat >&5 <<_ACEOF
1147This file contains any messages produced by compilers while
1148running configure, to aid debugging if configure makes a mistake.
1149
1150It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001151generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 $ $0 $@
1154
1155_ACEOF
1156{
1157cat <<_ASUNAME
1158## --------- ##
1159## Platform. ##
1160## --------- ##
1161
1162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
1171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178
1179_ASUNAME
1180
1181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182for as_dir in $PATH
1183do
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187done
1188
1189} >&5
1190
1191cat >&5 <<_ACEOF
1192
1193
1194## ----------- ##
1195## Core tests. ##
1196## ----------- ##
1197
1198_ACEOF
1199
1200
1201# Keep a trace of the command line.
1202# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001203# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001204# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001205# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001206ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001207ac_configure_args0=
1208ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001209ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001210ac_must_keep_next=false
1211for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001212do
John Criswell0c38eaf2003-09-10 15:17:25 +00001213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1245 ;;
1246 esac
1247 done
John Criswell7a73b802003-06-30 21:59:07 +00001248done
John Criswell0c38eaf2003-09-10 15:17:25 +00001249$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250$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 +00001251
1252# When interrupted or exit'd, cleanup temporary files, and complete
1253# config.log. We remove comments because anyway the quotes in there
1254# would cause problems or look ugly.
1255# WARNING: Be sure not to use single quotes in there, as some shells,
1256# such as our DU 5.0 friend, will then `close' the trap.
1257trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001261
John Criswell7a73b802003-06-30 21:59:07 +00001262 cat <<\_ASBOX
1263## ---------------- ##
1264## Cache variables. ##
1265## ---------------- ##
1266_ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1269{
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
1277 *)
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ;;
1281 esac;
1282}
1283 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001284
1285 cat <<\_ASBOX
1286## ----------------- ##
1287## Output variables. ##
1288## ----------------- ##
1289_ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300## ------------- ##
1301## Output files. ##
1302## ------------- ##
1303_ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311 fi
1312
John Criswell7a73b802003-06-30 21:59:07 +00001313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315## ----------- ##
1316## confdefs.h. ##
1317## ----------- ##
1318_ASBOX
1319 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001320 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core core.* *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1330 ' 0
1331for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333done
1334ac_signal=0
1335
1336# confdefs.h avoids OS command line length limits that DEFS can exceed.
1337rm -rf conftest* confdefs.h
1338# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339echo >confdefs.h
1340
1341# Predefined preprocessor variables.
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_NAME "$PACKAGE_NAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_VERSION "$PACKAGE_VERSION"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_STRING "$PACKAGE_STRING"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365_ACEOF
1366
1367
1368# Let the site file select an alternate cache file if it wants to.
1369# Prefer explicitly selected file to automatically selected ones.
1370if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
1376fi
1377for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384done
1385
1386if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1396 fi
1397else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401fi
1402
1403# Check that the precious variables saved in the cache have kept the same
1404# value.
1405ac_cache_corrupted=false
1406for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1427echo "$as_me: former value: $ac_old_val" >&2;}
1428 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1429echo "$as_me: current value: $ac_new_val" >&2;}
1430 ac_cache_corrupted=:
1431 fi;;
1432 esac
1433 # Pass precious variables to config.status.
1434 if test "$ac_new_set" = set; then
1435 case $ac_new_val in
1436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438 *) ac_arg=$ac_var=$ac_new_val ;;
1439 esac
1440 case " $ac_configure_args " in
1441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1442 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443 esac
1444 fi
1445done
1446if $ac_cache_corrupted; then
1447 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451 { (exit 1); exit 1; }; }
1452fi
1453
1454ac_ext=c
1455ac_cpp='$CPP $CPPFLAGS'
1456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459
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
John Criswell0c38eaf2003-09-10 15:17:25 +00001486
John Criswell7a73b802003-06-30 21:59:07 +00001487ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001488for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1501 fi
1502done
1503if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1505echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001506 { (exit 1); exit 1; }; }
1507fi
1508ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
John Criswell392aaa32003-07-22 19:18:09 +00001512
John Criswell1b824322003-09-15 17:19:42 +00001513if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001514then
John Criswell1b824322003-09-15 17:19:42 +00001515 if test -f ${srcdir}/include/Config/config.h
1516 then
1517 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001518echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1519 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001520 fi
John Criswell93e1c722003-09-15 17:04:06 +00001521fi
1522
John Criswell12399a12003-09-30 15:55:44 +00001523if test -d ${srcdir}/projects/reopt
1524then
1525
1526
1527subdirs="$subdirs projects/reopt"
1528
1529fi
1530
John Criswell559a6c12003-09-30 16:31:48 +00001531if test -d ${srcdir}/projects/poolalloc
1532then
1533
1534
1535subdirs="$subdirs projects/poolalloc"
1536
1537fi
1538
John Criswell0c38eaf2003-09-10 15:17:25 +00001539 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001540
John Criswell0c38eaf2003-09-10 15:17:25 +00001541 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001542
1543
John Criswell0c38eaf2003-09-10 15:17:25 +00001544 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001545
1546
John Criswell0c38eaf2003-09-10 15:17:25 +00001547 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001548
1549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswell0c38eaf2003-09-10 15:17:25 +00001556 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001557
1558
John Criswell0c38eaf2003-09-10 15:17:25 +00001559 ac_config_commands="$ac_config_commands lib/Analysis/IPA/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/LiveVar/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/AsmParser/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/Bytecode/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/Bytecode/Reader/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/Bytecode/Writer/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/CWriter/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/CodeGen/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/CodeGen/InstrSched/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/CodeGen/InstrSelection/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/ModuloScheduling/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/RegAlloc/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/SelectionDAG/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/ExecutionEngine/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/ExecutionEngine/Interpreter/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/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
Brian Gaekec45be042003-10-07 06:01:34 +00001607 ac_config_commands="$ac_config_commands lib/Support/Makefile"
1608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands lib/Target/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/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands lib/Transforms/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/Transforms/Hello/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/Transforms/IPO/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/Instrumentation/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/Instrumentation/ProfilePaths/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/Scalar/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/Utils/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/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001641
1642
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001647
1648
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/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/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001653
1654
John Criswell613758d2003-09-11 18:03:50 +00001655 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1656
1657
John Criswell0c38eaf2003-09-10 15:17:25 +00001658 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/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/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001662
1663
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell613758d2003-09-11 18:03:50 +00001670 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
John Criswell613758d2003-09-11 18:03:50 +00001676 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1677
1678
1679 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswell0c38eaf2003-09-10 15:17:25 +00001685 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001686
1687
John Criswell0c38eaf2003-09-10 15:17:25 +00001688 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001689
1690
John Criswell0c38eaf2003-09-10 15:17:25 +00001691 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001692
1693
John Criswellf424d742003-10-07 21:13:47 +00001694 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1695
1696
1697 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001698
1699
John Criswell0c38eaf2003-09-10 15:17:25 +00001700 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
John Criswell0c38eaf2003-09-10 15:17:25 +00001703 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001704
1705
John Criswell0c38eaf2003-09-10 15:17:25 +00001706 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001707
1708
John Criswell0c38eaf2003-09-10 15:17:25 +00001709 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
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/TEST.micro.report"
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.report"
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.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001719
1720
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
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.buildrepo.Makefile"
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.jit.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.report"
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.dsgraph.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.report"
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.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001740
1741
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
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.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001746
1747
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 ac_config_commands="$ac_config_commands test/Programs/External/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/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001752
1753
John Criswell613758d2003-09-11 18:03:50 +00001754 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1755
1756
John Criswell0c38eaf2003-09-10 15:17:25 +00001757 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001758
1759
John Criswell5ab73462003-10-09 15:44:28 +00001760 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1761
1762
John Criswell0c38eaf2003-09-10 15:17:25 +00001763 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001764
1765
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001767
1768
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001770
1771
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/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/CINT2000/164.gzip/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/CINT2000/175.vpr/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/176.gcc/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/181.mcf/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/186.crafty/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/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001791
1792
John Criswell987e49c2003-10-10 01:11:54 +00001793 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/252.eon/Makefile"
1794
1795
1796 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile"
1797
1798
John Criswell0c38eaf2003-09-10 15:17:25 +00001799 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001800
1801
John Criswell0c38eaf2003-09-10 15:17:25 +00001802 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001803
1804
John Criswell0c38eaf2003-09-10 15:17:25 +00001805 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001806
1807
John Criswell0c38eaf2003-09-10 15:17:25 +00001808 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/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/LLVMSource/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/MultiSource/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/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001818
1819
John Criswell48e3cb92003-09-12 16:31:43 +00001820 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001821
1822
John Criswell48e3cb92003-09-12 16:31:43 +00001823 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001824
1825
John Criswell39e83892003-09-12 16:36:17 +00001826 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1827
1828
1829 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1830
1831
John Criswell48e3cb92003-09-12 16:31:43 +00001832 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001833
1834
John Criswell48e3cb92003-09-12 16:31:43 +00001835 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001836
1837
John Criswell48e3cb92003-09-12 16:31:43 +00001838 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001839
1840
John Criswell48e3cb92003-09-12 16:31:43 +00001841 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/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/McCat/03-testtrie/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/04-bisect/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/05-eks/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/08-main/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/09-vor/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/12-IOtest/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/15-trie/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/17-bintr/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/18-imp/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/Olden/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/Olden/bh/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/Olden/bisort/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/em3d/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/health/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/mst/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/perimeter/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/power/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/treeadd/Makefile"
1896
1897
1898 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1899
1900
1901 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001902
1903
John Criswell39e83892003-09-12 16:36:17 +00001904 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001905
1906
John Criswell48e3cb92003-09-12 16:31:43 +00001907 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001908
1909
John Criswell48e3cb92003-09-12 16:31:43 +00001910 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001911
1912
John Criswell48e3cb92003-09-12 16:31:43 +00001913 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/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/ft/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/ks/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/yacr2/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/llubenchmark/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/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001929
1930
John Criswell0c38eaf2003-09-10 15:17:25 +00001931 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001932
1933
John Criswell0c38eaf2003-09-10 15:17:25 +00001934 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001935
1936
John Criswellffaaf3b2003-09-10 18:38:44 +00001937 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1938
1939
1940 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1941
1942
1943 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1944
1945
1946 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1947
1948
1949 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1950
1951
1952 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1953
1954
John Criswell0c38eaf2003-09-10 15:17:25 +00001955 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001956
1957
John Criswell0c38eaf2003-09-10 15:17:25 +00001958 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001959
1960
John Criswell0afe8252003-09-11 20:53:48 +00001961 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1962
1963
John Criswell67181ca2003-09-26 14:53:17 +00001964 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1965
1966
John Criswell68886d42003-09-26 19:51:42 +00001967 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1968
1969
1970 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1971
1972
John Criswellc66bbd52003-09-29 21:35:32 +00001973 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1974
1975
John Criswell0c38eaf2003-09-10 15:17:25 +00001976 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001977
1978
John Criswell0c38eaf2003-09-10 15:17:25 +00001979 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001980
1981
John Criswell0c38eaf2003-09-10 15:17:25 +00001982 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001983
1984
John Criswell0c38eaf2003-09-10 15:17:25 +00001985 ac_config_commands="$ac_config_commands tools/extract/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/gccas/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/gccld/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/llc/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/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001998
1999
John Criswellddb7b4e2003-09-16 15:54:19 +00002000 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002001
2002
Chris Lattnerebd70302003-09-13 03:29:53 +00002003 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2004
2005
John Criswellddb7b4e2003-09-16 15:54:19 +00002006 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2007
2008
John Criswell0c38eaf2003-09-10 15:17:25 +00002009 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002010
2011
John Criswellddb7b4e2003-09-16 15:54:19 +00002012 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2013
2014
2015 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2016
2017
Brian Gaekec45be042003-10-07 06:01:34 +00002018 ac_config_commands="$ac_config_commands utils/Makefile"
2019
2020
2021 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2022
2023
2024 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2025
2026
2027 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2028
2029
John Criswell0c38eaf2003-09-10 15:17:25 +00002030 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002031
2032
John Criswell0c38eaf2003-09-10 15:17:25 +00002033 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002034
2035
John Criswell0c38eaf2003-09-10 15:17:25 +00002036 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002037
2038
John Criswell0c38eaf2003-09-10 15:17:25 +00002039 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002040
2041
John Criswell0c38eaf2003-09-10 15:17:25 +00002042 ac_config_commands="$ac_config_commands projects/sample/lib/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/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002046
2047
John Criswell0c38eaf2003-09-10 15:17:25 +00002048 ac_config_commands="$ac_config_commands projects/sample/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/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002052
2053
John Criswell0c38eaf2003-09-10 15:17:25 +00002054 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002055
2056
John Criswell0c38eaf2003-09-10 15:17:25 +00002057 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002058
2059
John Criswell0c38eaf2003-09-10 15:17:25 +00002060 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002061
2062
John Criswell0c38eaf2003-09-10 15:17:25 +00002063 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002064
2065
John Criswell392aaa32003-07-22 19:18:09 +00002066
2067
John Criswell7a73b802003-06-30 21:59:07 +00002068# Find a good install program. We prefer a C program (faster),
2069# so one script is as good as another. But avoid the broken or
2070# incompatible versions:
2071# SysV /etc/install, /usr/sbin/install
2072# SunOS /usr/etc/install
2073# IRIX /sbin/install
2074# AIX /bin/install
2075# AmigaOS /C/install, which installs bootblocks on floppy discs
2076# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2077# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2078# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2079# ./install, which can be erroneously created by make from ./install.sh.
2080echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2081echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2082if test -z "$INSTALL"; then
2083if test "${ac_cv_path_install+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087for as_dir in $PATH
2088do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 # Account for people who put trailing slashes in PATH elements.
2092case $as_dir/ in
2093 ./ | .// | /cC/* | \
2094 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2095 /usr/ucb/* ) ;;
2096 *)
2097 # OSF1 and SCO ODT 3.0 have their own names for install.
2098 # Don't use installbsd from OSF since it installs stuff as root
2099 # by default.
2100 for ac_prog in ginstall scoinst install; do
2101 for ac_exec_ext in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2103 if test $ac_prog = install &&
2104 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2105 # AIX install. It has an incompatible calling convention.
2106 :
2107 elif test $ac_prog = install &&
2108 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2109 # program-specific install script used by HP pwplus--don't use.
2110 :
2111 else
2112 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2113 break 3
2114 fi
2115 fi
2116 done
2117 done
2118 ;;
2119esac
2120done
2121
2122
2123fi
2124 if test "${ac_cv_path_install+set}" = set; then
2125 INSTALL=$ac_cv_path_install
2126 else
2127 # As a last resort, use the slow shell script. We don't cache a
2128 # path for INSTALL within a source directory, because that will
2129 # break other packages using the cache if that directory is
2130 # removed, or if the path is relative.
2131 INSTALL=$ac_install_sh
2132 fi
2133fi
2134echo "$as_me:$LINENO: result: $INSTALL" >&5
2135echo "${ECHO_T}$INSTALL" >&6
2136
2137# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2138# It thinks the first close brace ends the variable substitution.
2139test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2140
2141test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2142
2143test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2144
2145
2146# Make sure we can run config.sub.
2147$ac_config_sub sun4 >/dev/null 2>&1 ||
2148 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2149echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2150 { (exit 1); exit 1; }; }
2151
2152echo "$as_me:$LINENO: checking build system type" >&5
2153echo $ECHO_N "checking build system type... $ECHO_C" >&6
2154if test "${ac_cv_build+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2156else
2157 ac_cv_build_alias=$build_alias
2158test -z "$ac_cv_build_alias" &&
2159 ac_cv_build_alias=`$ac_config_guess`
2160test -z "$ac_cv_build_alias" &&
2161 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2162echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2163 { (exit 1); exit 1; }; }
2164ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2165 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2166echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2167 { (exit 1); exit 1; }; }
2168
2169fi
2170echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2171echo "${ECHO_T}$ac_cv_build" >&6
2172build=$ac_cv_build
2173build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2174build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2175build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2176
2177
2178echo "$as_me:$LINENO: checking host system type" >&5
2179echo $ECHO_N "checking host system type... $ECHO_C" >&6
2180if test "${ac_cv_host+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
2183 ac_cv_host_alias=$host_alias
2184test -z "$ac_cv_host_alias" &&
2185 ac_cv_host_alias=$ac_cv_build_alias
2186ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2187 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2188echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2189 { (exit 1); exit 1; }; }
2190
2191fi
2192echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2193echo "${ECHO_T}$ac_cv_host" >&6
2194host=$ac_cv_host
2195host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2196host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2197host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2198
2199
2200echo "$as_me:$LINENO: checking target system type" >&5
2201echo $ECHO_N "checking target system type... $ECHO_C" >&6
2202if test "${ac_cv_target+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
2205 ac_cv_target_alias=$target_alias
2206test "x$ac_cv_target_alias" = "x" &&
2207 ac_cv_target_alias=$ac_cv_host_alias
2208ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2209 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2210echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2211 { (exit 1); exit 1; }; }
2212
2213fi
2214echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2215echo "${ECHO_T}$ac_cv_target" >&6
2216target=$ac_cv_target
2217target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2218target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2219target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2220
2221
2222# The aliases save the names the user supplied, while $host etc.
2223# will get canonicalized.
2224test -n "$target_alias" &&
2225 test "$program_prefix$program_suffix$program_transform_name" = \
2226 NONENONEs,x,x, &&
2227 program_prefix=${target_alias}-
2228
2229case $build in
2230 *i*86*) OS=Linux
2231
John Criswellf02dbf02003-07-22 20:07:49 +00002232 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002233
2234 ;;
2235
2236 *sparc*) OS=SunOS
2237
2238 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2239
2240 ;;
2241
2242 *) OS=Unknown
2243
2244 ;;
2245esac
2246
2247case $target in
2248 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2249
2250 ;;
2251esac
2252
John Criswell76595452003-07-01 22:07:39 +00002253case $target in
2254 *i*86*) ARCH=x86
2255
2256 ;;
2257 *sparc*solaris*) ARCH=Sparc
2258
2259 ;;
2260esac
2261
John Criswell7a73b802003-06-30 21:59:07 +00002262
2263ac_ext=cc
2264ac_cpp='$CXXCPP $CPPFLAGS'
2265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2268if test -n "$ac_tool_prefix"; then
2269 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2270 do
2271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2272set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2273echo "$as_me:$LINENO: checking for $ac_word" >&5
2274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275if test "${ac_cv_prog_CXX+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277else
2278 if test -n "$CXX"; then
2279 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2280else
2281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282for as_dir in $PATH
2283do
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 break 2
2291 fi
2292done
2293done
2294
2295fi
2296fi
2297CXX=$ac_cv_prog_CXX
2298if test -n "$CXX"; then
2299 echo "$as_me:$LINENO: result: $CXX" >&5
2300echo "${ECHO_T}$CXX" >&6
2301else
2302 echo "$as_me:$LINENO: result: no" >&5
2303echo "${ECHO_T}no" >&6
2304fi
2305
2306 test -n "$CXX" && break
2307 done
2308fi
2309if test -z "$CXX"; then
2310 ac_ct_CXX=$CXX
2311 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2312do
2313 # Extract the first word of "$ac_prog", so it can be a program name with args.
2314set dummy $ac_prog; ac_word=$2
2315echo "$as_me:$LINENO: checking for $ac_word" >&5
2316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320 if test -n "$ac_ct_CXX"; then
2321 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2322else
2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324for as_dir in $PATH
2325do
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330 ac_cv_prog_ac_ct_CXX="$ac_prog"
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 break 2
2333 fi
2334done
2335done
2336
2337fi
2338fi
2339ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2340if test -n "$ac_ct_CXX"; then
2341 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2342echo "${ECHO_T}$ac_ct_CXX" >&6
2343else
2344 echo "$as_me:$LINENO: result: no" >&5
2345echo "${ECHO_T}no" >&6
2346fi
2347
2348 test -n "$ac_ct_CXX" && break
2349done
2350test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2351
2352 CXX=$ac_ct_CXX
2353fi
2354
2355
2356# Provide some information about the compiler.
2357echo "$as_me:$LINENO:" \
2358 "checking for C++ compiler version" >&5
2359ac_compiler=`set X $ac_compile; echo $2`
2360{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2361 (eval $ac_compiler --version </dev/null >&5) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }
2365{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2366 (eval $ac_compiler -v </dev/null >&5) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }
2370{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2371 (eval $ac_compiler -V </dev/null >&5) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }
2375
2376cat >conftest.$ac_ext <<_ACEOF
2377#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002378/* confdefs.h. */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002383
John Criswell7a73b802003-06-30 21:59:07 +00002384int
2385main ()
2386{
2387
2388 ;
2389 return 0;
2390}
2391_ACEOF
2392ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002393ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002394# Try to create an executable without -o first, disregard a.out.
2395# It will help us diagnose broken compilers, and finding out an intuition
2396# of exeext.
2397echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2398echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2399ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2400if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2401 (eval $ac_link_default) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; then
2405 # Find the output, starting from the most likely. This scheme is
2406# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2407# resort.
2408
2409# Be careful to initialize this variable, since it used to be cached.
2410# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2411ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002412# b.out is created by i960 compilers.
2413for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2414do
2415 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002416 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2418 ;;
2419 conftest.$ac_ext )
2420 # This is the source file.
2421 ;;
2422 [ab].out )
2423 # We found the default executable, but exeext='' is most
2424 # certainly right.
2425 break;;
2426 *.* )
2427 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2428 # FIXME: I believe we export ac_cv_exeext for Libtool,
2429 # but it would be cool to find out if it's true. Does anybody
2430 # maintain Libtool? --akim.
2431 export ac_cv_exeext
2432 break;;
2433 * )
2434 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002435 esac
2436done
2437else
2438 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002439sed 's/^/| /' conftest.$ac_ext >&5
2440
2441{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2442See \`config.log' for more details." >&5
2443echo "$as_me: error: C++ compiler cannot create executables
2444See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002445 { (exit 77); exit 77; }; }
2446fi
2447
2448ac_exeext=$ac_cv_exeext
2449echo "$as_me:$LINENO: result: $ac_file" >&5
2450echo "${ECHO_T}$ac_file" >&6
2451
2452# Check the compiler produces executables we can run. If not, either
2453# the compiler is broken, or we cross compile.
2454echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2455echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2456# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2457# If not cross compiling, check that we can run a simple program.
2458if test "$cross_compiling" != yes; then
2459 if { ac_try='./$ac_file'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 cross_compiling=no
2466 else
2467 if test "$cross_compiling" = maybe; then
2468 cross_compiling=yes
2469 else
2470 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002471If you meant to cross compile, use \`--host'.
2472See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002473echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002474If you meant to cross compile, use \`--host'.
2475See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002476 { (exit 1); exit 1; }; }
2477 fi
2478 fi
2479fi
2480echo "$as_me:$LINENO: result: yes" >&5
2481echo "${ECHO_T}yes" >&6
2482
John Criswell0c38eaf2003-09-10 15:17:25 +00002483rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002484ac_clean_files=$ac_clean_files_save
2485# Check the compiler produces executables we can run. If not, either
2486# the compiler is broken, or we cross compile.
2487echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2488echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2489echo "$as_me:$LINENO: result: $cross_compiling" >&5
2490echo "${ECHO_T}$cross_compiling" >&6
2491
2492echo "$as_me:$LINENO: checking for suffix of executables" >&5
2493echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2495 (eval $ac_link) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; then
2499 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2500# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2501# work properly (i.e., refer to `conftest.exe'), while it won't with
2502# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002503for ac_file in conftest.exe conftest conftest.*; do
2504 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002505 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002507 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2508 export ac_cv_exeext
2509 break;;
2510 * ) break;;
2511 esac
2512done
2513else
John Criswell0c38eaf2003-09-10 15:17:25 +00002514 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2515See \`config.log' for more details." >&5
2516echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2517See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002518 { (exit 1); exit 1; }; }
2519fi
2520
2521rm -f conftest$ac_cv_exeext
2522echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2523echo "${ECHO_T}$ac_cv_exeext" >&6
2524
2525rm -f conftest.$ac_ext
2526EXEEXT=$ac_cv_exeext
2527ac_exeext=$EXEEXT
2528echo "$as_me:$LINENO: checking for suffix of object files" >&5
2529echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2530if test "${ac_cv_objext+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533 cat >conftest.$ac_ext <<_ACEOF
2534#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002535/* confdefs.h. */
2536_ACEOF
2537cat confdefs.h >>conftest.$ac_ext
2538cat >>conftest.$ac_ext <<_ACEOF
2539/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002540
John Criswell7a73b802003-06-30 21:59:07 +00002541int
2542main ()
2543{
2544
2545 ;
2546 return 0;
2547}
2548_ACEOF
2549rm -f conftest.o conftest.obj
2550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; then
2555 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2556 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2559 break;;
2560 esac
2561done
2562else
2563 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002564sed 's/^/| /' conftest.$ac_ext >&5
2565
2566{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567See \`config.log' for more details." >&5
2568echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002570 { (exit 1); exit 1; }; }
2571fi
2572
2573rm -f conftest.$ac_cv_objext conftest.$ac_ext
2574fi
2575echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576echo "${ECHO_T}$ac_cv_objext" >&6
2577OBJEXT=$ac_cv_objext
2578ac_objext=$OBJEXT
2579echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2580echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2581if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583else
2584 cat >conftest.$ac_ext <<_ACEOF
2585#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002586/* confdefs.h. */
2587_ACEOF
2588cat confdefs.h >>conftest.$ac_ext
2589cat >>conftest.$ac_ext <<_ACEOF
2590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002591
John Criswell7a73b802003-06-30 21:59:07 +00002592int
2593main ()
2594{
2595#ifndef __GNUC__
2596 choke me
2597#endif
2598
2599 ;
2600 return 0;
2601}
2602_ACEOF
2603rm -f conftest.$ac_objext
2604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2605 (eval $ac_compile) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2615 ac_compiler_gnu=yes
2616else
2617 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002618sed 's/^/| /' conftest.$ac_ext >&5
2619
John Criswell7a73b802003-06-30 21:59:07 +00002620ac_compiler_gnu=no
2621fi
2622rm -f conftest.$ac_objext conftest.$ac_ext
2623ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2624
2625fi
2626echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2627echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2628GXX=`test $ac_compiler_gnu = yes && echo yes`
2629ac_test_CXXFLAGS=${CXXFLAGS+set}
2630ac_save_CXXFLAGS=$CXXFLAGS
2631CXXFLAGS="-g"
2632echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2633echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2634if test "${ac_cv_prog_cxx_g+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637 cat >conftest.$ac_ext <<_ACEOF
2638#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002639/* confdefs.h. */
2640_ACEOF
2641cat confdefs.h >>conftest.$ac_ext
2642cat >>conftest.$ac_ext <<_ACEOF
2643/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002644
John Criswell7a73b802003-06-30 21:59:07 +00002645int
2646main ()
2647{
2648
2649 ;
2650 return 0;
2651}
2652_ACEOF
2653rm -f conftest.$ac_objext
2654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 (eval $ac_try) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 ac_cv_prog_cxx_g=yes
2666else
2667 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002668sed 's/^/| /' conftest.$ac_ext >&5
2669
John Criswell7a73b802003-06-30 21:59:07 +00002670ac_cv_prog_cxx_g=no
2671fi
2672rm -f conftest.$ac_objext conftest.$ac_ext
2673fi
2674echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2675echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2676if test "$ac_test_CXXFLAGS" = set; then
2677 CXXFLAGS=$ac_save_CXXFLAGS
2678elif test $ac_cv_prog_cxx_g = yes; then
2679 if test "$GXX" = yes; then
2680 CXXFLAGS="-g -O2"
2681 else
2682 CXXFLAGS="-g"
2683 fi
2684else
2685 if test "$GXX" = yes; then
2686 CXXFLAGS="-O2"
2687 else
2688 CXXFLAGS=
2689 fi
2690fi
2691for ac_declaration in \
2692 ''\
2693 '#include <stdlib.h>' \
2694 'extern "C" void std::exit (int) throw (); using std::exit;' \
2695 'extern "C" void std::exit (int); using std::exit;' \
2696 'extern "C" void exit (int) throw ();' \
2697 'extern "C" void exit (int);' \
2698 'void exit (int);'
2699do
2700 cat >conftest.$ac_ext <<_ACEOF
2701#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002702/* confdefs.h. */
2703_ACEOF
2704cat confdefs.h >>conftest.$ac_ext
2705cat >>conftest.$ac_ext <<_ACEOF
2706/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002707#include <stdlib.h>
2708$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002709int
2710main ()
2711{
2712exit (42);
2713 ;
2714 return 0;
2715}
2716_ACEOF
2717rm -f conftest.$ac_objext
2718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -s conftest.$ac_objext'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 (eval $ac_try) 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2729 :
2730else
2731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002732sed 's/^/| /' conftest.$ac_ext >&5
2733
John Criswell7a73b802003-06-30 21:59:07 +00002734continue
2735fi
2736rm -f conftest.$ac_objext conftest.$ac_ext
2737 cat >conftest.$ac_ext <<_ACEOF
2738#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002739/* confdefs.h. */
2740_ACEOF
2741cat confdefs.h >>conftest.$ac_ext
2742cat >>conftest.$ac_ext <<_ACEOF
2743/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002744$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002745int
2746main ()
2747{
2748exit (42);
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753rm -f conftest.$ac_objext
2754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755 (eval $ac_compile) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -s conftest.$ac_objext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 (eval $ac_try) 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 break
2766else
2767 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002768sed 's/^/| /' conftest.$ac_ext >&5
2769
John Criswell7a73b802003-06-30 21:59:07 +00002770fi
2771rm -f conftest.$ac_objext conftest.$ac_ext
2772done
2773rm -f conftest*
2774if test -n "$ac_declaration"; then
2775 echo '#ifdef __cplusplus' >>confdefs.h
2776 echo $ac_declaration >>confdefs.h
2777 echo '#endif' >>confdefs.h
2778fi
2779
2780ac_ext=c
2781ac_cpp='$CPP $CPPFLAGS'
2782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785
2786ac_ext=c
2787ac_cpp='$CPP $CPPFLAGS'
2788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2790ac_compiler_gnu=$ac_cv_c_compiler_gnu
2791if test -n "$ac_tool_prefix"; then
2792 for ac_prog in gcc
2793 do
2794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2795set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2796echo "$as_me:$LINENO: checking for $ac_word" >&5
2797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2798if test "${ac_cv_prog_CC+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2800else
2801 if test -n "$CC"; then
2802 ac_cv_prog_CC="$CC" # Let the user override the test.
2803else
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815done
2816done
2817
2818fi
2819fi
2820CC=$ac_cv_prog_CC
2821if test -n "$CC"; then
2822 echo "$as_me:$LINENO: result: $CC" >&5
2823echo "${ECHO_T}$CC" >&6
2824else
2825 echo "$as_me:$LINENO: result: no" >&5
2826echo "${ECHO_T}no" >&6
2827fi
2828
2829 test -n "$CC" && break
2830 done
2831fi
2832if test -z "$CC"; then
2833 ac_ct_CC=$CC
2834 for ac_prog in gcc
2835do
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837set dummy $ac_prog; ac_word=$2
2838echo "$as_me:$LINENO: checking for $ac_word" >&5
2839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2840if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842else
2843 if test -n "$ac_ct_CC"; then
2844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_ac_ct_CC="$ac_prog"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857done
2858done
2859
2860fi
2861fi
2862ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863if test -n "$ac_ct_CC"; then
2864 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2865echo "${ECHO_T}$ac_ct_CC" >&6
2866else
2867 echo "$as_me:$LINENO: result: no" >&5
2868echo "${ECHO_T}no" >&6
2869fi
2870
2871 test -n "$ac_ct_CC" && break
2872done
2873
2874 CC=$ac_ct_CC
2875fi
2876
2877
John Criswell0c38eaf2003-09-10 15:17:25 +00002878test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2879See \`config.log' for more details." >&5
2880echo "$as_me: error: no acceptable C compiler found in \$PATH
2881See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002882 { (exit 1); exit 1; }; }
2883
2884# Provide some information about the compiler.
2885echo "$as_me:$LINENO:" \
2886 "checking for C compiler version" >&5
2887ac_compiler=`set X $ac_compile; echo $2`
2888{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2889 (eval $ac_compiler --version </dev/null >&5) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2894 (eval $ac_compiler -v </dev/null >&5) 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }
2898{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2899 (eval $ac_compiler -V </dev/null >&5) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903
2904echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2905echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2906if test "${ac_cv_c_compiler_gnu+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909 cat >conftest.$ac_ext <<_ACEOF
2910#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002911/* confdefs.h. */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002916
John Criswell7a73b802003-06-30 21:59:07 +00002917int
2918main ()
2919{
2920#ifndef __GNUC__
2921 choke me
2922#endif
2923
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928rm -f conftest.$ac_objext
2929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 ac_compiler_gnu=yes
2941else
2942 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002943sed 's/^/| /' conftest.$ac_ext >&5
2944
John Criswell7a73b802003-06-30 21:59:07 +00002945ac_compiler_gnu=no
2946fi
2947rm -f conftest.$ac_objext conftest.$ac_ext
2948ac_cv_c_compiler_gnu=$ac_compiler_gnu
2949
2950fi
2951echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2952echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2953GCC=`test $ac_compiler_gnu = yes && echo yes`
2954ac_test_CFLAGS=${CFLAGS+set}
2955ac_save_CFLAGS=$CFLAGS
2956CFLAGS="-g"
2957echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2958echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2959if test "${ac_cv_prog_cc_g+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961else
2962 cat >conftest.$ac_ext <<_ACEOF
2963#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002964/* confdefs.h. */
2965_ACEOF
2966cat confdefs.h >>conftest.$ac_ext
2967cat >>conftest.$ac_ext <<_ACEOF
2968/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002969
John Criswell7a73b802003-06-30 21:59:07 +00002970int
2971main ()
2972{
2973
2974 ;
2975 return 0;
2976}
2977_ACEOF
2978rm -f conftest.$ac_objext
2979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980 (eval $ac_compile) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -s conftest.$ac_objext'
2985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 (eval $ac_try) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; }; then
2990 ac_cv_prog_cc_g=yes
2991else
2992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002993sed 's/^/| /' conftest.$ac_ext >&5
2994
John Criswell7a73b802003-06-30 21:59:07 +00002995ac_cv_prog_cc_g=no
2996fi
2997rm -f conftest.$ac_objext conftest.$ac_ext
2998fi
2999echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3000echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3001if test "$ac_test_CFLAGS" = set; then
3002 CFLAGS=$ac_save_CFLAGS
3003elif test $ac_cv_prog_cc_g = yes; then
3004 if test "$GCC" = yes; then
3005 CFLAGS="-g -O2"
3006 else
3007 CFLAGS="-g"
3008 fi
3009else
3010 if test "$GCC" = yes; then
3011 CFLAGS="-O2"
3012 else
3013 CFLAGS=
3014 fi
3015fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003016echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3017echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3018if test "${ac_cv_prog_cc_stdc+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021 ac_cv_prog_cc_stdc=no
3022ac_save_CC=$CC
3023cat >conftest.$ac_ext <<_ACEOF
3024#line $LINENO "configure"
3025/* confdefs.h. */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
3029/* end confdefs.h. */
3030#include <stdarg.h>
3031#include <stdio.h>
3032#include <sys/types.h>
3033#include <sys/stat.h>
3034/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3035struct buf { int x; };
3036FILE * (*rcsopen) (struct buf *, struct stat *, int);
3037static char *e (p, i)
3038 char **p;
3039 int i;
3040{
3041 return p[i];
3042}
3043static char *f (char * (*g) (char **, int), char **p, ...)
3044{
3045 char *s;
3046 va_list v;
3047 va_start (v,p);
3048 s = g (p, va_arg (v,int));
3049 va_end (v);
3050 return s;
3051}
3052int test (int i, double x);
3053struct s1 {int (*f) (int a);};
3054struct s2 {int (*f) (double a);};
3055int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3056int argc;
3057char **argv;
3058int
3059main ()
3060{
3061return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3062 ;
3063 return 0;
3064}
3065_ACEOF
3066# Don't try gcc -ansi; that turns off useful extensions and
3067# breaks some systems' header files.
3068# AIX -qlanglvl=ansi
3069# Ultrix and OSF/1 -std1
3070# HP-UX 10.20 and later -Ae
3071# HP-UX older versions -Aa -D_HPUX_SOURCE
3072# SVR4 -Xc -D__EXTENSIONS__
3073for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3074do
3075 CC="$ac_save_CC $ac_arg"
3076 rm -f conftest.$ac_objext
3077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078 (eval $ac_compile) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_prog_cc_stdc=$ac_arg
3089break
3090else
3091 echo "$as_me: failed program was:" >&5
3092sed 's/^/| /' conftest.$ac_ext >&5
3093
3094fi
3095rm -f conftest.$ac_objext
3096done
3097rm -f conftest.$ac_ext conftest.$ac_objext
3098CC=$ac_save_CC
3099
3100fi
3101
3102case "x$ac_cv_prog_cc_stdc" in
3103 x|xno)
3104 echo "$as_me:$LINENO: result: none needed" >&5
3105echo "${ECHO_T}none needed" >&6 ;;
3106 *)
3107 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3108echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3109 CC="$CC $ac_cv_prog_cc_stdc" ;;
3110esac
3111
John Criswell7a73b802003-06-30 21:59:07 +00003112# Some people use a C++ compiler to compile C. Since we use `exit',
3113# in C++ we need to declare it. In case someone uses the same compiler
3114# for both compiling C and C++ we need to have the C++ compiler decide
3115# the declaration of exit, since it's the most demanding environment.
3116cat >conftest.$ac_ext <<_ACEOF
3117#ifndef __cplusplus
3118 choke me
3119#endif
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3123 (eval $ac_compile) 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -s conftest.$ac_objext'
3128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129 (eval $ac_try) 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3133 for ac_declaration in \
3134 ''\
3135 '#include <stdlib.h>' \
3136 'extern "C" void std::exit (int) throw (); using std::exit;' \
3137 'extern "C" void std::exit (int); using std::exit;' \
3138 'extern "C" void exit (int) throw ();' \
3139 'extern "C" void exit (int);' \
3140 'void exit (int);'
3141do
3142 cat >conftest.$ac_ext <<_ACEOF
3143#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003144/* confdefs.h. */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
3148/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003149#include <stdlib.h>
3150$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003151int
3152main ()
3153{
3154exit (42);
3155 ;
3156 return 0;
3157}
3158_ACEOF
3159rm -f conftest.$ac_objext
3160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161 (eval $ac_compile) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 (eval $ac_try) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3171 :
3172else
3173 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003174sed 's/^/| /' conftest.$ac_ext >&5
3175
John Criswell7a73b802003-06-30 21:59:07 +00003176continue
3177fi
3178rm -f conftest.$ac_objext conftest.$ac_ext
3179 cat >conftest.$ac_ext <<_ACEOF
3180#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003181/* confdefs.h. */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003186$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003187int
3188main ()
3189{
3190exit (42);
3191 ;
3192 return 0;
3193}
3194_ACEOF
3195rm -f conftest.$ac_objext
3196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3197 (eval $ac_compile) 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } &&
3201 { ac_try='test -s conftest.$ac_objext'
3202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203 (eval $ac_try) 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
3207 break
3208else
3209 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003210sed 's/^/| /' conftest.$ac_ext >&5
3211
John Criswell7a73b802003-06-30 21:59:07 +00003212fi
3213rm -f conftest.$ac_objext conftest.$ac_ext
3214done
3215rm -f conftest*
3216if test -n "$ac_declaration"; then
3217 echo '#ifdef __cplusplus' >>confdefs.h
3218 echo $ac_declaration >>confdefs.h
3219 echo '#endif' >>confdefs.h
3220fi
3221
3222else
3223 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003224sed 's/^/| /' conftest.$ac_ext >&5
3225
John Criswell7a73b802003-06-30 21:59:07 +00003226fi
3227rm -f conftest.$ac_objext conftest.$ac_ext
3228ac_ext=c
3229ac_cpp='$CPP $CPPFLAGS'
3230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233
3234ac_ext=c
3235ac_cpp='$CPP $CPPFLAGS'
3236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3240echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3241# On Suns, sometimes $CPP names a directory.
3242if test -n "$CPP" && test -d "$CPP"; then
3243 CPP=
3244fi
3245if test -z "$CPP"; then
3246 if test "${ac_cv_prog_CPP+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248else
3249 # Double quotes because CPP needs to be expanded
3250 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3251 do
3252 ac_preproc_ok=false
3253for ac_c_preproc_warn_flag in '' yes
3254do
3255 # Use a header file that comes with gcc, so configuring glibc
3256 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003259 # On the NeXT, cc -E runs the code through the compiler's parser,
3260 # not just through cpp. "Syntax error" is here to catch this case.
3261 cat >conftest.$ac_ext <<_ACEOF
3262#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003263/* confdefs.h. */
3264_ACEOF
3265cat confdefs.h >>conftest.$ac_ext
3266cat >>conftest.$ac_ext <<_ACEOF
3267/* end confdefs.h. */
3268#ifdef __STDC__
3269# include <limits.h>
3270#else
3271# include <assert.h>
3272#endif
John Criswell7a73b802003-06-30 21:59:07 +00003273 Syntax error
3274_ACEOF
3275if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3277 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003278 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } >/dev/null; then
3283 if test -s conftest.err; then
3284 ac_cpp_err=$ac_c_preproc_warn_flag
3285 else
3286 ac_cpp_err=
3287 fi
3288else
3289 ac_cpp_err=yes
3290fi
3291if test -z "$ac_cpp_err"; then
3292 :
3293else
3294 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003295sed 's/^/| /' conftest.$ac_ext >&5
3296
John Criswell7a73b802003-06-30 21:59:07 +00003297 # Broken: fails on valid input.
3298continue
3299fi
3300rm -f conftest.err conftest.$ac_ext
3301
3302 # OK, works on sane cases. Now check whether non-existent headers
3303 # can be detected and how.
3304 cat >conftest.$ac_ext <<_ACEOF
3305#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003311#include <ac_nonexistent.h>
3312_ACEOF
3313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3315 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003316 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } >/dev/null; then
3321 if test -s conftest.err; then
3322 ac_cpp_err=$ac_c_preproc_warn_flag
3323 else
3324 ac_cpp_err=
3325 fi
3326else
3327 ac_cpp_err=yes
3328fi
3329if test -z "$ac_cpp_err"; then
3330 # Broken: success on invalid input.
3331continue
3332else
3333 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003334sed 's/^/| /' conftest.$ac_ext >&5
3335
John Criswell7a73b802003-06-30 21:59:07 +00003336 # Passes both tests.
3337ac_preproc_ok=:
3338break
3339fi
3340rm -f conftest.err conftest.$ac_ext
3341
3342done
3343# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3344rm -f conftest.err conftest.$ac_ext
3345if $ac_preproc_ok; then
3346 break
3347fi
3348
3349 done
3350 ac_cv_prog_CPP=$CPP
3351
3352fi
3353 CPP=$ac_cv_prog_CPP
3354else
3355 ac_cv_prog_CPP=$CPP
3356fi
3357echo "$as_me:$LINENO: result: $CPP" >&5
3358echo "${ECHO_T}$CPP" >&6
3359ac_preproc_ok=false
3360for ac_c_preproc_warn_flag in '' yes
3361do
3362 # Use a header file that comes with gcc, so configuring glibc
3363 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3365 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003366 # On the NeXT, cc -E runs the code through the compiler's parser,
3367 # not just through cpp. "Syntax error" is here to catch this case.
3368 cat >conftest.$ac_ext <<_ACEOF
3369#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003370/* confdefs.h. */
3371_ACEOF
3372cat confdefs.h >>conftest.$ac_ext
3373cat >>conftest.$ac_ext <<_ACEOF
3374/* end confdefs.h. */
3375#ifdef __STDC__
3376# include <limits.h>
3377#else
3378# include <assert.h>
3379#endif
John Criswell7a73b802003-06-30 21:59:07 +00003380 Syntax error
3381_ACEOF
3382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3384 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003385 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null; then
3390 if test -s conftest.err; then
3391 ac_cpp_err=$ac_c_preproc_warn_flag
3392 else
3393 ac_cpp_err=
3394 fi
3395else
3396 ac_cpp_err=yes
3397fi
3398if test -z "$ac_cpp_err"; then
3399 :
3400else
3401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003402sed 's/^/| /' conftest.$ac_ext >&5
3403
John Criswell7a73b802003-06-30 21:59:07 +00003404 # Broken: fails on valid input.
3405continue
3406fi
3407rm -f conftest.err conftest.$ac_ext
3408
3409 # OK, works on sane cases. Now check whether non-existent headers
3410 # can be detected and how.
3411 cat >conftest.$ac_ext <<_ACEOF
3412#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003413/* confdefs.h. */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
3417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003418#include <ac_nonexistent.h>
3419_ACEOF
3420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3422 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003423 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003424 rm -f conftest.er1
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null; then
3428 if test -s conftest.err; then
3429 ac_cpp_err=$ac_c_preproc_warn_flag
3430 else
3431 ac_cpp_err=
3432 fi
3433else
3434 ac_cpp_err=yes
3435fi
3436if test -z "$ac_cpp_err"; then
3437 # Broken: success on invalid input.
3438continue
3439else
3440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003441sed 's/^/| /' conftest.$ac_ext >&5
3442
John Criswell7a73b802003-06-30 21:59:07 +00003443 # Passes both tests.
3444ac_preproc_ok=:
3445break
3446fi
3447rm -f conftest.err conftest.$ac_ext
3448
3449done
3450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451rm -f conftest.err conftest.$ac_ext
3452if $ac_preproc_ok; then
3453 :
3454else
John Criswell0c38eaf2003-09-10 15:17:25 +00003455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456See \`config.log' for more details." >&5
3457echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003459 { (exit 1); exit 1; }; }
3460fi
3461
3462ac_ext=c
3463ac_cpp='$CPP $CPPFLAGS'
3464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467
3468
3469if test "$GCC" != "yes"
3470then
3471 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3472echo "$as_me: error: gcc required but not found" >&2;}
3473 { (exit 1); exit 1; }; }
3474fi
3475
3476if test "$GXX" != "yes"
3477then
3478 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3479echo "$as_me: error: g++ required but not found" >&2;}
3480 { (exit 1); exit 1; }; }
3481fi
3482
John Criswellde00db22003-08-25 16:49:54 +00003483gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3484if test "$gccmajor" -lt "3"
3485then
3486 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3487echo "$as_me: error: gcc 3.x required" >&2;}
3488 { (exit 1); exit 1; }; }
3489fi
3490
John Criswell7a73b802003-06-30 21:59:07 +00003491 echo "$as_me:$LINENO: checking for GNU make" >&5
3492echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3493if test "${_cv_gnu_make_command+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495else
3496 _cv_gnu_make_command='' ;
3497 for a in "$MAKE" make gmake gnumake ; do
3498 if test -z "$a" ; then continue ; fi ;
3499 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3500 _cv_gnu_make_command=$a ;
3501 break;
3502 fi
3503 done ;
3504
3505fi
3506echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3507echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3508 if test "x$_cv_gnu_make_command" != "x" ; then
3509 ifGNUmake='' ;
3510 else
3511 ifGNUmake='#' ;
3512 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3513echo "${ECHO_T}\"Not found\"" >&6;
3514 fi
3515
3516
3517if test -z "$_cv_gnu_make_command"
3518then
3519 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3520echo "$as_me: error: GNU Make required but not found" >&2;}
3521 { (exit 1); exit 1; }; }
3522fi
3523
3524
3525echo "$as_me:$LINENO: checking " >&5
3526echo $ECHO_N "checking ... $ECHO_C" >&6
3527if test "${ac_cv_has_flex+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529else
3530 for ac_prog in flex lex
3531do
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533set dummy $ac_prog; ac_word=$2
3534echo "$as_me:$LINENO: checking for $ac_word" >&5
3535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3536if test "${ac_cv_prog_LEX+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538else
3539 if test -n "$LEX"; then
3540 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3541else
3542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543for as_dir in $PATH
3544do
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549 ac_cv_prog_LEX="$ac_prog"
3550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3552 fi
3553done
3554done
3555
3556fi
3557fi
3558LEX=$ac_cv_prog_LEX
3559if test -n "$LEX"; then
3560 echo "$as_me:$LINENO: result: $LEX" >&5
3561echo "${ECHO_T}$LEX" >&6
3562else
3563 echo "$as_me:$LINENO: result: no" >&5
3564echo "${ECHO_T}no" >&6
3565fi
3566
3567 test -n "$LEX" && break
3568done
3569test -n "$LEX" || LEX=":"
3570
3571if test -z "$LEXLIB"
3572then
3573 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3574echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3575if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577else
3578 ac_check_lib_save_LIBS=$LIBS
3579LIBS="-lfl $LIBS"
3580cat >conftest.$ac_ext <<_ACEOF
3581#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003582/* confdefs.h. */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
3586/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003587
3588/* Override any gcc2 internal prototype to avoid an error. */
3589#ifdef __cplusplus
3590extern "C"
3591#endif
3592/* We use char because int might match the return type of a gcc2
3593 builtin and then its argument prototype would still apply. */
3594char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003595int
3596main ()
3597{
3598yywrap ();
3599 ;
3600 return 0;
3601}
3602_ACEOF
3603rm -f conftest.$ac_objext conftest$ac_exeext
3604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3605 (eval $ac_link) 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try='test -s conftest$ac_exeext'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3615 ac_cv_lib_fl_yywrap=yes
3616else
3617 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003618sed 's/^/| /' conftest.$ac_ext >&5
3619
John Criswell7a73b802003-06-30 21:59:07 +00003620ac_cv_lib_fl_yywrap=no
3621fi
3622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3623LIBS=$ac_check_lib_save_LIBS
3624fi
3625echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3626echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3627if test $ac_cv_lib_fl_yywrap = yes; then
3628 LEXLIB="-lfl"
3629else
3630 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3631echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3632if test "${ac_cv_lib_l_yywrap+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3634else
3635 ac_check_lib_save_LIBS=$LIBS
3636LIBS="-ll $LIBS"
3637cat >conftest.$ac_ext <<_ACEOF
3638#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003639/* confdefs.h. */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003644
3645/* Override any gcc2 internal prototype to avoid an error. */
3646#ifdef __cplusplus
3647extern "C"
3648#endif
3649/* We use char because int might match the return type of a gcc2
3650 builtin and then its argument prototype would still apply. */
3651char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003652int
3653main ()
3654{
3655yywrap ();
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660rm -f conftest.$ac_objext conftest$ac_exeext
3661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662 (eval $ac_link) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -s conftest$ac_exeext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 ac_cv_lib_l_yywrap=yes
3673else
3674 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003675sed 's/^/| /' conftest.$ac_ext >&5
3676
John Criswell7a73b802003-06-30 21:59:07 +00003677ac_cv_lib_l_yywrap=no
3678fi
3679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3680LIBS=$ac_check_lib_save_LIBS
3681fi
3682echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3683echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3684if test $ac_cv_lib_l_yywrap = yes; then
3685 LEXLIB="-ll"
3686fi
3687
3688fi
3689
3690fi
3691
3692if test "x$LEX" != "x:"; then
3693 echo "$as_me:$LINENO: checking lex output file root" >&5
3694echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3695if test "${ac_cv_prog_lex_root+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697else
3698 # The minimal lex program is just a single line: %%. But some broken lexes
3699# (Solaris, I think it was) want two %% lines, so accommodate them.
3700cat >conftest.l <<_ACEOF
3701%%
3702%%
3703_ACEOF
3704{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3705 (eval $LEX conftest.l) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }
3709if test -f lex.yy.c; then
3710 ac_cv_prog_lex_root=lex.yy
3711elif test -f lexyy.c; then
3712 ac_cv_prog_lex_root=lexyy
3713else
3714 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3715echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3716 { (exit 1); exit 1; }; }
3717fi
3718fi
3719echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3720echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3721rm -f conftest.l
3722LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3723
3724echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3725echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3726if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728else
3729 # POSIX says lex can declare yytext either as a pointer or an array; the
3730# default is implementation-dependent. Figure out which it is, since
3731# not all implementations provide the %pointer and %array declarations.
3732ac_cv_prog_lex_yytext_pointer=no
3733echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3734ac_save_LIBS=$LIBS
3735LIBS="$LIBS $LEXLIB"
3736cat >conftest.$ac_ext <<_ACEOF
3737`cat $LEX_OUTPUT_ROOT.c`
3738_ACEOF
3739rm -f conftest.$ac_objext conftest$ac_exeext
3740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3741 (eval $ac_link) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -s conftest$ac_exeext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 ac_cv_prog_lex_yytext_pointer=yes
3752else
3753 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003754sed 's/^/| /' conftest.$ac_ext >&5
3755
John Criswell7a73b802003-06-30 21:59:07 +00003756fi
3757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3758LIBS=$ac_save_LIBS
3759rm -f "${LEX_OUTPUT_ROOT}.c"
3760
3761fi
3762echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3763echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3764if test $ac_cv_prog_lex_yytext_pointer = yes; then
3765
3766cat >>confdefs.h <<\_ACEOF
3767#define YYTEXT_POINTER 1
3768_ACEOF
3769
3770fi
3771
3772fi
3773
3774fi
3775echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3776echo "${ECHO_T}$ac_cv_has_flex" >&6
3777if test "$LEX" != "flex"; then
3778 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3779echo "$as_me: error: flex not found but required" >&2;}
3780 { (exit 1); exit 1; }; }
3781fi
3782
3783echo "$as_me:$LINENO: checking " >&5
3784echo $ECHO_N "checking ... $ECHO_C" >&6
3785if test "${ac_cv_has_bison+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787else
3788 for ac_prog in 'bison -y' byacc
3789do
3790 # Extract the first word of "$ac_prog", so it can be a program name with args.
3791set dummy $ac_prog; ac_word=$2
3792echo "$as_me:$LINENO: checking for $ac_word" >&5
3793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794if test "${ac_cv_prog_YACC+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797 if test -n "$YACC"; then
3798 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3799else
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807 ac_cv_prog_YACC="$ac_prog"
3808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 break 2
3810 fi
3811done
3812done
3813
3814fi
3815fi
3816YACC=$ac_cv_prog_YACC
3817if test -n "$YACC"; then
3818 echo "$as_me:$LINENO: result: $YACC" >&5
3819echo "${ECHO_T}$YACC" >&6
3820else
3821 echo "$as_me:$LINENO: result: no" >&5
3822echo "${ECHO_T}no" >&6
3823fi
3824
3825 test -n "$YACC" && break
3826done
3827test -n "$YACC" || YACC="yacc"
3828
3829
3830fi
3831echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3832echo "${ECHO_T}$ac_cv_has_bison" >&6
3833if test "$YACC" != "bison -y"; then
3834 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3835echo "$as_me: error: bison not found but required" >&2;}
3836 { (exit 1); exit 1; }; }
3837else
3838 YACC=bison
3839
3840fi
3841
3842
3843# Check whether --enable-shared or --disable-shared was given.
3844if test "${enable_shared+set}" = set; then
3845 enableval="$enable_shared"
3846 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003847 case $enableval in
3848 yes) enable_shared=yes ;;
3849 no) enable_shared=no ;;
3850 *)
3851 enable_shared=no
3852 # Look at the argument we got. We use all the common list separators.
3853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3854 for pkg in $enableval; do
3855 IFS="$lt_save_ifs"
3856 if test "X$pkg" = "X$p"; then
3857 enable_shared=yes
3858 fi
3859 done
3860 IFS="$lt_save_ifs"
3861 ;;
3862 esac
John Criswell7a73b802003-06-30 21:59:07 +00003863else
3864 enable_shared=yes
3865fi;
John Criswell47fdd832003-07-14 16:52:07 +00003866
John Criswell7a73b802003-06-30 21:59:07 +00003867# Check whether --enable-static or --disable-static was given.
3868if test "${enable_static+set}" = set; then
3869 enableval="$enable_static"
3870 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003871 case $enableval in
3872 yes) enable_static=yes ;;
3873 no) enable_static=no ;;
3874 *)
3875 enable_static=no
3876 # Look at the argument we got. We use all the common list separators.
3877 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3878 for pkg in $enableval; do
3879 IFS="$lt_save_ifs"
3880 if test "X$pkg" = "X$p"; then
3881 enable_static=yes
3882 fi
3883 done
3884 IFS="$lt_save_ifs"
3885 ;;
3886 esac
John Criswell7a73b802003-06-30 21:59:07 +00003887else
3888 enable_static=yes
3889fi;
John Criswell47fdd832003-07-14 16:52:07 +00003890
John Criswell7a73b802003-06-30 21:59:07 +00003891# Check whether --enable-fast-install or --disable-fast-install was given.
3892if test "${enable_fast_install+set}" = set; then
3893 enableval="$enable_fast_install"
3894 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003895 case $enableval in
3896 yes) enable_fast_install=yes ;;
3897 no) enable_fast_install=no ;;
3898 *)
3899 enable_fast_install=no
3900 # Look at the argument we got. We use all the common list separators.
3901 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3902 for pkg in $enableval; do
3903 IFS="$lt_save_ifs"
3904 if test "X$pkg" = "X$p"; then
3905 enable_fast_install=yes
3906 fi
3907 done
3908 IFS="$lt_save_ifs"
3909 ;;
3910 esac
John Criswell7a73b802003-06-30 21:59:07 +00003911else
3912 enable_fast_install=yes
3913fi;
John Criswell47fdd832003-07-14 16:52:07 +00003914
3915echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3916echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3917if test "${lt_cv_path_SED+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3919else
3920 # Loop through the user's path and test for sed and gsed.
3921# Then use that list of sed's as ones to test for truncation.
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for lt_ac_prog in sed gsed; do
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3930 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3931 fi
3932 done
3933 done
3934done
3935lt_ac_max=0
3936lt_ac_count=0
3937# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3938# along with /bin/sed that truncates output.
3939for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3940 test ! -f $lt_ac_sed && break
3941 cat /dev/null > conftest.in
3942 lt_ac_count=0
3943 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3944 # Check for GNU sed and select it if it is found.
3945 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3946 lt_cv_path_SED=$lt_ac_sed
3947 break
3948 fi
3949 while true; do
3950 cat conftest.in conftest.in >conftest.tmp
3951 mv conftest.tmp conftest.in
3952 cp conftest.in conftest.nl
3953 echo >>conftest.nl
3954 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3955 cmp -s conftest.out conftest.nl || break
3956 # 10000 chars as input seems more than enough
3957 test $lt_ac_count -gt 10 && break
3958 lt_ac_count=`expr $lt_ac_count + 1`
3959 if test $lt_ac_count -gt $lt_ac_max; then
3960 lt_ac_max=$lt_ac_count
3961 lt_cv_path_SED=$lt_ac_sed
3962 fi
3963 done
3964done
3965SED=$lt_cv_path_SED
3966
John Criswell7a73b802003-06-30 21:59:07 +00003967fi
3968
John Criswell47fdd832003-07-14 16:52:07 +00003969echo "$as_me:$LINENO: result: $SED" >&5
3970echo "${ECHO_T}$SED" >&6
3971
3972echo "$as_me:$LINENO: checking for egrep" >&5
3973echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3974if test "${ac_cv_prog_egrep+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976else
3977 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3978 then ac_cv_prog_egrep='grep -E'
3979 else ac_cv_prog_egrep='egrep'
3980 fi
3981fi
3982echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3983echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3984 EGREP=$ac_cv_prog_egrep
3985
3986
John Criswell7a73b802003-06-30 21:59:07 +00003987
3988# Check whether --with-gnu-ld or --without-gnu-ld was given.
3989if test "${with_gnu_ld+set}" = set; then
3990 withval="$with_gnu_ld"
3991 test "$withval" = no || with_gnu_ld=yes
3992else
3993 with_gnu_ld=no
3994fi;
3995ac_prog=ld
3996if test "$GCC" = yes; then
3997 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003998 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3999echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004000 case $host in
4001 *-*-mingw*)
4002 # gcc leaves a trailing carriage return which upsets mingw
4003 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4004 *)
4005 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4006 esac
4007 case $ac_prog in
4008 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004009 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004010 re_direlt='/[^/][^/]*/\.\./'
4011 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004012 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004013 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004014 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004015 done
4016 test -z "$LD" && LD="$ac_prog"
4017 ;;
4018 "")
4019 # If it fails, then pretend we aren't using GCC.
4020 ac_prog=ld
4021 ;;
4022 *)
4023 # If it is relative, then search for the first ld in PATH.
4024 with_gnu_ld=unknown
4025 ;;
4026 esac
4027elif test "$with_gnu_ld" = yes; then
4028 echo "$as_me:$LINENO: checking for GNU ld" >&5
4029echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4030else
4031 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4032echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4033fi
4034if test "${lt_cv_path_LD+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036else
4037 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004038 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004039 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004040 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004041 test -z "$ac_dir" && ac_dir=.
4042 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4043 lt_cv_path_LD="$ac_dir/$ac_prog"
4044 # Check to see if the program is GNU ld. I'd rather use --version,
4045 # but apparently some GNU ld's only accept -v.
4046 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004047 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4048 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004049 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004050 ;;
4051 *)
John Criswell7a73b802003-06-30 21:59:07 +00004052 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004053 ;;
4054 esac
John Criswell7a73b802003-06-30 21:59:07 +00004055 fi
4056 done
John Criswell47fdd832003-07-14 16:52:07 +00004057 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004058else
4059 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4060fi
4061fi
4062
4063LD="$lt_cv_path_LD"
4064if test -n "$LD"; then
4065 echo "$as_me:$LINENO: result: $LD" >&5
4066echo "${ECHO_T}$LD" >&6
4067else
4068 echo "$as_me:$LINENO: result: no" >&5
4069echo "${ECHO_T}no" >&6
4070fi
4071test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4072echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4073 { (exit 1); exit 1; }; }
4074echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4075echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4076if test "${lt_cv_prog_gnu_ld+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078else
4079 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004080case `"$LD" -v 2>&1 </dev/null` in
4081*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004082 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004083 ;;
4084*)
John Criswell7a73b802003-06-30 21:59:07 +00004085 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004086 ;;
4087esac
John Criswell7a73b802003-06-30 21:59:07 +00004088fi
4089echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4090echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4091with_gnu_ld=$lt_cv_prog_gnu_ld
4092
4093
4094echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4095echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4096if test "${lt_cv_ld_reload_flag+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098else
4099 lt_cv_ld_reload_flag='-r'
4100fi
4101echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4102echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4103reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004104case $reload_flag in
4105"" | " "*) ;;
4106*) reload_flag=" $reload_flag" ;;
4107esac
4108reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004109
4110echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4111echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4112if test "${lt_cv_path_NM+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114else
4115 if test -n "$NM"; then
4116 # Let the user override the test.
4117 lt_cv_path_NM="$NM"
4118else
John Criswell47fdd832003-07-14 16:52:07 +00004119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004120 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004121 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004122 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004123 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4124 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004125 # Check to see if the nm accepts a BSD-compat flag.
4126 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4127 # nm: unknown option "B" ignored
4128 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004129 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4130 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004131 lt_cv_path_NM="$tmp_nm -B"
4132 break
John Criswell47fdd832003-07-14 16:52:07 +00004133 ;;
4134 *)
4135 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4136 */dev/null*)
4137 lt_cv_path_NM="$tmp_nm -p"
4138 break
4139 ;;
4140 *)
4141 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4142 continue # so that we can try to find one that supports BSD flags
4143 ;;
4144 esac
4145 esac
John Criswell7a73b802003-06-30 21:59:07 +00004146 fi
4147 done
John Criswell47fdd832003-07-14 16:52:07 +00004148 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004149 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4150fi
4151fi
John Criswell47fdd832003-07-14 16:52:07 +00004152echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4153echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004154NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004155
4156echo "$as_me:$LINENO: checking whether ln -s works" >&5
4157echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4158LN_S=$as_ln_s
4159if test "$LN_S" = "ln -s"; then
4160 echo "$as_me:$LINENO: result: yes" >&5
4161echo "${ECHO_T}yes" >&6
4162else
4163 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4164echo "${ECHO_T}no, using $LN_S" >&6
4165fi
4166
John Criswell47fdd832003-07-14 16:52:07 +00004167echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4168echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004169if test "${lt_cv_deplibs_check_method+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
4172 lt_cv_file_magic_cmd='$MAGIC_CMD'
4173lt_cv_file_magic_test_file=
4174lt_cv_deplibs_check_method='unknown'
4175# Need to set the preceding variable on all platforms that support
4176# interlibrary dependencies.
4177# 'none' -- dependencies not supported.
4178# `unknown' -- same as none, but documents that we really don't know.
4179# 'pass_all' -- all dependencies passed with no checks.
4180# 'test_compile' -- check by making test program.
4181# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004182# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004183# If you have `file' or equivalent on your system and you're not sure
4184# whether `pass_all' will *always* work, you probably want this one.
4185
4186case $host_os in
4187aix4* | aix5*)
4188 lt_cv_deplibs_check_method=pass_all
4189 ;;
4190
4191beos*)
4192 lt_cv_deplibs_check_method=pass_all
4193 ;;
4194
4195bsdi4*)
4196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4197 lt_cv_file_magic_cmd='/usr/bin/file -L'
4198 lt_cv_file_magic_test_file=/shlib/libc.so
4199 ;;
4200
4201cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004202 # win32_libid is a shell function defined in ltmain.sh
4203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4204 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004205 ;;
4206
4207darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004208 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004209 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4210 lt_cv_file_magic_cmd='/usr/bin/file -L'
4211 case "$host_os" in
4212 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004213 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004214 ;;
4215 *) # Darwin 1.3 on
4216 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4217 ;;
4218 esac
John Criswell47fdd832003-07-14 16:52:07 +00004219 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004220 ;;
4221
4222freebsd*)
4223 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4224 case $host_cpu in
4225 i*86 )
4226 # Not sure whether the presence of OpenBSD here was a mistake.
4227 # Let's accept both of them until this is cleared up.
4228 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4229 lt_cv_file_magic_cmd=/usr/bin/file
4230 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4231 ;;
4232 esac
4233 else
4234 lt_cv_deplibs_check_method=pass_all
4235 fi
4236 ;;
4237
4238gnu*)
4239 lt_cv_deplibs_check_method=pass_all
4240 ;;
4241
John Criswell47fdd832003-07-14 16:52:07 +00004242hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004243 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004244 case "$host_cpu" in
4245 ia64*)
4246 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4247 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4248 ;;
4249 hppa*64*)
4250 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]'
4251 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4252 ;;
4253 *)
4254 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4255 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4256 ;;
4257 esac
John Criswell7a73b802003-06-30 21:59:07 +00004258 ;;
4259
John Criswell47fdd832003-07-14 16:52:07 +00004260irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004261 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004262 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004263 # this will be overridden with pass_all, but let us keep it just in case
4264 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4265 ;;
4266 *)
4267 case $LD in
4268 *-32|*"-32 ") libmagic=32-bit;;
4269 *-n32|*"-n32 ") libmagic=N32;;
4270 *-64|*"-64 ") libmagic=64-bit;;
4271 *) libmagic=never-match;;
4272 esac
4273 # this will be overridden with pass_all, but let us keep it just in case
4274 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4275 ;;
4276 esac
4277 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4278 lt_cv_deplibs_check_method=pass_all
4279 ;;
4280
4281# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004282linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004283 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004284 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004285 lt_cv_deplibs_check_method=pass_all ;;
4286 *)
4287 # glibc up to 2.1.1 does not perform some relocations on ARM
4288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4289 esac
4290 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4291 ;;
4292
4293netbsd*)
4294 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004296 else
John Criswell47fdd832003-07-14 16:52:07 +00004297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004298 fi
4299 ;;
4300
4301newos6*)
4302 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4303 lt_cv_file_magic_cmd=/usr/bin/file
4304 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4305 ;;
4306
John Criswell47fdd832003-07-14 16:52:07 +00004307nto-qnx)
4308 lt_cv_deplibs_check_method=unknown
4309 ;;
4310
John Criswell7a73b802003-06-30 21:59:07 +00004311openbsd*)
4312 lt_cv_file_magic_cmd=/usr/bin/file
4313 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4314 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4316 else
4317 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4318 fi
4319 ;;
4320
4321osf3* | osf4* | osf5*)
4322 # this will be overridden with pass_all, but let us keep it just in case
4323 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4324 lt_cv_file_magic_test_file=/shlib/libc.so
4325 lt_cv_deplibs_check_method=pass_all
4326 ;;
4327
4328sco3.2v5*)
4329 lt_cv_deplibs_check_method=pass_all
4330 ;;
4331
4332solaris*)
4333 lt_cv_deplibs_check_method=pass_all
4334 lt_cv_file_magic_test_file=/lib/libc.so
4335 ;;
4336
John Criswell7a73b802003-06-30 21:59:07 +00004337sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4338 case $host_vendor in
4339 motorola)
4340 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]'
4341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4342 ;;
4343 ncr)
4344 lt_cv_deplibs_check_method=pass_all
4345 ;;
4346 sequent)
4347 lt_cv_file_magic_cmd='/bin/file'
4348 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4349 ;;
4350 sni)
4351 lt_cv_file_magic_cmd='/bin/file'
4352 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4353 lt_cv_file_magic_test_file=/lib/libc.so
4354 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004355 siemens)
4356 lt_cv_deplibs_check_method=pass_all
4357 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004358 esac
4359 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004360
4361sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4362 lt_cv_deplibs_check_method=pass_all
4363 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004364esac
4365
4366fi
4367echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4368echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4369file_magic_cmd=$lt_cv_file_magic_cmd
4370deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004371test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004372
4373
4374
4375
John Criswell47fdd832003-07-14 16:52:07 +00004376# If no C compiler was specified, use CC.
4377LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004378
John Criswell47fdd832003-07-14 16:52:07 +00004379# Allow CC to be a program name with arguments.
4380compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004381
John Criswell47fdd832003-07-14 16:52:07 +00004382# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4383if test "${enable_libtool_lock+set}" = set; then
4384 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004385
John Criswell47fdd832003-07-14 16:52:07 +00004386fi;
4387test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004388
John Criswell47fdd832003-07-14 16:52:07 +00004389# Some flags need to be propagated to the compiler or linker for good
4390# libtool support.
4391case $host in
4392ia64-*-hpux*)
4393 # Find out which ABI we are using.
4394 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004400 case `/usr/bin/file conftest.$ac_objext` in
4401 *ELF-32*)
4402 HPUX_IA64_MODE="32"
4403 ;;
4404 *ELF-64*)
4405 HPUX_IA64_MODE="64"
4406 ;;
4407 esac
4408 fi
4409 rm -rf conftest*
4410 ;;
4411*-*-irix6*)
4412 # Find out which ABI we are using.
John Criswell987e49c2003-10-10 01:11:54 +00004413 echo '#line 4413 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004418 (exit $ac_status); }; then
4419 if test "$lt_cv_prog_gnu_ld" = yes; then
4420 case `/usr/bin/file conftest.$ac_objext` in
4421 *32-bit*)
4422 LD="${LD-ld} -melf32bsmip"
4423 ;;
4424 *N32*)
4425 LD="${LD-ld} -melf32bmipn32"
4426 ;;
4427 *64-bit*)
4428 LD="${LD-ld} -melf64bmip"
4429 ;;
4430 esac
4431 else
4432 case `/usr/bin/file conftest.$ac_objext` in
4433 *32-bit*)
4434 LD="${LD-ld} -32"
4435 ;;
4436 *N32*)
4437 LD="${LD-ld} -n32"
4438 ;;
4439 *64-bit*)
4440 LD="${LD-ld} -64"
4441 ;;
4442 esac
4443 fi
4444 fi
4445 rm -rf conftest*
4446 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004447
John Criswell47fdd832003-07-14 16:52:07 +00004448x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4449 # Find out which ABI we are using.
4450 echo 'int i;' > conftest.$ac_ext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; then
4456 case "`/usr/bin/file conftest.o`" in
4457 *32-bit*)
4458 case $host in
4459 x86_64-*linux*)
4460 LD="${LD-ld} -m elf_i386"
4461 ;;
4462 ppc64-*linux*)
4463 LD="${LD-ld} -m elf32ppclinux"
4464 ;;
4465 s390x-*linux*)
4466 LD="${LD-ld} -m elf_s390"
4467 ;;
4468 sparc64-*linux*)
4469 LD="${LD-ld} -m elf32_sparc"
4470 ;;
4471 esac
4472 ;;
4473 *64-bit*)
4474 case $host in
4475 x86_64-*linux*)
4476 LD="${LD-ld} -m elf_x86_64"
4477 ;;
4478 ppc*-*linux*|powerpc*-*linux*)
4479 LD="${LD-ld} -m elf64ppc"
4480 ;;
4481 s390*-*linux*)
4482 LD="${LD-ld} -m elf64_s390"
4483 ;;
4484 sparc*-*linux*)
4485 LD="${LD-ld} -m elf64_sparc"
4486 ;;
4487 esac
4488 ;;
4489 esac
4490 fi
4491 rm -rf conftest*
4492 ;;
4493
4494*-*-sco3.2v5*)
4495 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4496 SAVE_CFLAGS="$CFLAGS"
4497 CFLAGS="$CFLAGS -belf"
4498 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4499echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4500if test "${lt_cv_cc_needs_belf+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503 ac_ext=c
4504ac_cpp='$CPP $CPPFLAGS'
4505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508
4509 cat >conftest.$ac_ext <<_ACEOF
4510#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004516
John Criswell47fdd832003-07-14 16:52:07 +00004517int
4518main ()
John Criswell7a73b802003-06-30 21:59:07 +00004519{
John Criswell7a73b802003-06-30 21:59:07 +00004520
John Criswell47fdd832003-07-14 16:52:07 +00004521 ;
4522 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004523}
John Criswell47fdd832003-07-14 16:52:07 +00004524_ACEOF
4525rm -f conftest.$ac_objext conftest$ac_exeext
4526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004527 (eval $ac_link) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004530 (exit $ac_status); } &&
4531 { ac_try='test -s conftest$ac_exeext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004538else
John Criswell47fdd832003-07-14 16:52:07 +00004539 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004540sed 's/^/| /' conftest.$ac_ext >&5
4541
John Criswell47fdd832003-07-14 16:52:07 +00004542lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004543fi
John Criswell47fdd832003-07-14 16:52:07 +00004544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4545 ac_ext=c
4546ac_cpp='$CPP $CPPFLAGS'
4547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550
John Criswell7a73b802003-06-30 21:59:07 +00004551fi
John Criswell47fdd832003-07-14 16:52:07 +00004552echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4553echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4554 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4555 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4556 CFLAGS="$SAVE_CFLAGS"
4557 fi
4558 ;;
4559
4560esac
4561
4562need_locks="$enable_libtool_lock"
4563
John Criswell7a73b802003-06-30 21:59:07 +00004564
4565
4566echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4567echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4568if test "${ac_cv_header_stdc+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
4571 cat >conftest.$ac_ext <<_ACEOF
4572#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004573/* confdefs.h. */
4574_ACEOF
4575cat confdefs.h >>conftest.$ac_ext
4576cat >>conftest.$ac_ext <<_ACEOF
4577/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004578#include <stdlib.h>
4579#include <stdarg.h>
4580#include <string.h>
4581#include <float.h>
4582
John Criswell0c38eaf2003-09-10 15:17:25 +00004583int
4584main ()
4585{
4586
4587 ;
4588 return 0;
4589}
John Criswell7a73b802003-06-30 21:59:07 +00004590_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004591rm -f conftest.$ac_objext
4592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004594 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004596 (exit $ac_status); } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004603 ac_cv_header_stdc=yes
4604else
4605 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004606sed 's/^/| /' conftest.$ac_ext >&5
4607
4608ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004609fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004610rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004611
4612if test $ac_cv_header_stdc = yes; then
4613 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4614 cat >conftest.$ac_ext <<_ACEOF
4615#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004616/* confdefs.h. */
4617_ACEOF
4618cat confdefs.h >>conftest.$ac_ext
4619cat >>conftest.$ac_ext <<_ACEOF
4620/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004621#include <string.h>
4622
4623_ACEOF
4624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004625 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004626 :
4627else
4628 ac_cv_header_stdc=no
4629fi
4630rm -f conftest*
4631
4632fi
4633
4634if test $ac_cv_header_stdc = yes; then
4635 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4636 cat >conftest.$ac_ext <<_ACEOF
4637#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004638/* confdefs.h. */
4639_ACEOF
4640cat confdefs.h >>conftest.$ac_ext
4641cat >>conftest.$ac_ext <<_ACEOF
4642/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004643#include <stdlib.h>
4644
4645_ACEOF
4646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004647 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004648 :
4649else
4650 ac_cv_header_stdc=no
4651fi
4652rm -f conftest*
4653
4654fi
4655
4656if test $ac_cv_header_stdc = yes; then
4657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4658 if test "$cross_compiling" = yes; then
4659 :
4660else
4661 cat >conftest.$ac_ext <<_ACEOF
4662#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004663/* confdefs.h. */
4664_ACEOF
4665cat confdefs.h >>conftest.$ac_ext
4666cat >>conftest.$ac_ext <<_ACEOF
4667/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004668#include <ctype.h>
4669#if ((' ' & 0x0FF) == 0x020)
4670# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4671# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4672#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004673# define ISLOWER(c) \
4674 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004675 || ('j' <= (c) && (c) <= 'r') \
4676 || ('s' <= (c) && (c) <= 'z'))
4677# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4678#endif
4679
4680#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4681int
4682main ()
4683{
4684 int i;
4685 for (i = 0; i < 256; i++)
4686 if (XOR (islower (i), ISLOWER (i))
4687 || toupper (i) != TOUPPER (i))
4688 exit(2);
4689 exit (0);
4690}
4691_ACEOF
4692rm -f conftest$ac_exeext
4693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4694 (eval $ac_link) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 :
4704else
4705 echo "$as_me: program exited with status $ac_status" >&5
4706echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004707sed 's/^/| /' conftest.$ac_ext >&5
4708
John Criswell7a73b802003-06-30 21:59:07 +00004709( exit $ac_status )
4710ac_cv_header_stdc=no
4711fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004712rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004713fi
4714fi
4715fi
4716echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4717echo "${ECHO_T}$ac_cv_header_stdc" >&6
4718if test $ac_cv_header_stdc = yes; then
4719
4720cat >>confdefs.h <<\_ACEOF
4721#define STDC_HEADERS 1
4722_ACEOF
4723
4724fi
4725
4726# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4737 inttypes.h stdint.h unistd.h
4738do
4739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4740echo "$as_me:$LINENO: checking for $ac_header" >&5
4741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4742if eval "test \"\${$as_ac_Header+set}\" = set"; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744else
4745 cat >conftest.$ac_ext <<_ACEOF
4746#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004747/* confdefs.h. */
4748_ACEOF
4749cat confdefs.h >>conftest.$ac_ext
4750cat >>conftest.$ac_ext <<_ACEOF
4751/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004752$ac_includes_default
4753
4754#include <$ac_header>
4755_ACEOF
4756rm -f conftest.$ac_objext
4757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } &&
4762 { ac_try='test -s conftest.$ac_objext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 (eval $ac_try) 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 eval "$as_ac_Header=yes"
4769else
4770 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004771sed 's/^/| /' conftest.$ac_ext >&5
4772
John Criswell7a73b802003-06-30 21:59:07 +00004773eval "$as_ac_Header=no"
4774fi
4775rm -f conftest.$ac_objext conftest.$ac_ext
4776fi
4777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4779if test `eval echo '${'$as_ac_Header'}'` = yes; then
4780 cat >>confdefs.h <<_ACEOF
4781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4782_ACEOF
4783
4784fi
4785
4786done
4787
4788
4789
4790for ac_header in dlfcn.h
4791do
4792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4793if eval "test \"\${$as_ac_Header+set}\" = set"; then
4794 echo "$as_me:$LINENO: checking for $ac_header" >&5
4795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4796if eval "test \"\${$as_ac_Header+set}\" = set"; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798fi
4799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4801else
4802 # Is the header compilable?
4803echo "$as_me:$LINENO: checking $ac_header usability" >&5
4804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4805cat >conftest.$ac_ext <<_ACEOF
4806#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004807/* confdefs.h. */
4808_ACEOF
4809cat confdefs.h >>conftest.$ac_ext
4810cat >>conftest.$ac_ext <<_ACEOF
4811/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004812$ac_includes_default
4813#include <$ac_header>
4814_ACEOF
4815rm -f conftest.$ac_objext
4816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 (eval $ac_try) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 ac_header_compiler=yes
4828else
4829 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004830sed 's/^/| /' conftest.$ac_ext >&5
4831
John Criswell7a73b802003-06-30 21:59:07 +00004832ac_header_compiler=no
4833fi
4834rm -f conftest.$ac_objext conftest.$ac_ext
4835echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4836echo "${ECHO_T}$ac_header_compiler" >&6
4837
4838# Is the header present?
4839echo "$as_me:$LINENO: checking $ac_header presence" >&5
4840echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4841cat >conftest.$ac_ext <<_ACEOF
4842#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004843/* confdefs.h. */
4844_ACEOF
4845cat confdefs.h >>conftest.$ac_ext
4846cat >>conftest.$ac_ext <<_ACEOF
4847/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004848#include <$ac_header>
4849_ACEOF
4850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4852 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004853 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004854 rm -f conftest.er1
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } >/dev/null; then
4858 if test -s conftest.err; then
4859 ac_cpp_err=$ac_c_preproc_warn_flag
4860 else
4861 ac_cpp_err=
4862 fi
4863else
4864 ac_cpp_err=yes
4865fi
4866if test -z "$ac_cpp_err"; then
4867 ac_header_preproc=yes
4868else
4869 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004870sed 's/^/| /' conftest.$ac_ext >&5
4871
John Criswell7a73b802003-06-30 21:59:07 +00004872 ac_header_preproc=no
4873fi
4874rm -f conftest.err conftest.$ac_ext
4875echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4876echo "${ECHO_T}$ac_header_preproc" >&6
4877
4878# So? What about this header?
4879case $ac_header_compiler:$ac_header_preproc in
4880 yes:no )
4881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4882echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004884echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4885 (
4886 cat <<\_ASBOX
4887## ------------------------------------ ##
4888## Report this to bug-autoconf@gnu.org. ##
4889## ------------------------------------ ##
4890_ASBOX
4891 ) |
4892 sed "s/^/$as_me: WARNING: /" >&2
4893 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004894 no:yes )
4895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4898echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004900echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4901 (
4902 cat <<\_ASBOX
4903## ------------------------------------ ##
4904## Report this to bug-autoconf@gnu.org. ##
4905## ------------------------------------ ##
4906_ASBOX
4907 ) |
4908 sed "s/^/$as_me: WARNING: /" >&2
4909 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004910esac
4911echo "$as_me:$LINENO: checking for $ac_header" >&5
4912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4913if eval "test \"\${$as_ac_Header+set}\" = set"; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915else
4916 eval "$as_ac_Header=$ac_header_preproc"
4917fi
4918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4920
4921fi
4922if test `eval echo '${'$as_ac_Header'}'` = yes; then
4923 cat >>confdefs.h <<_ACEOF
4924#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4925_ACEOF
4926
4927fi
4928
4929done
4930
John Criswell47fdd832003-07-14 16:52:07 +00004931ac_ext=cc
4932ac_cpp='$CXXCPP $CPPFLAGS'
4933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4936echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4937echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4938if test -z "$CXXCPP"; then
4939 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941else
John Criswell47fdd832003-07-14 16:52:07 +00004942 # Double quotes because CXXCPP needs to be expanded
4943 for CXXCPP in "$CXX -E" "/lib/cpp"
4944 do
4945 ac_preproc_ok=false
4946for ac_cxx_preproc_warn_flag in '' yes
4947do
4948 # Use a header file that comes with gcc, so configuring glibc
4949 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4951 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004952 # On the NeXT, cc -E runs the code through the compiler's parser,
4953 # not just through cpp. "Syntax error" is here to catch this case.
4954 cat >conftest.$ac_ext <<_ACEOF
4955#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004956/* confdefs.h. */
4957_ACEOF
4958cat confdefs.h >>conftest.$ac_ext
4959cat >>conftest.$ac_ext <<_ACEOF
4960/* end confdefs.h. */
4961#ifdef __STDC__
4962# include <limits.h>
4963#else
4964# include <assert.h>
4965#endif
John Criswell47fdd832003-07-14 16:52:07 +00004966 Syntax error
4967_ACEOF
4968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4970 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004971 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } >/dev/null; then
4976 if test -s conftest.err; then
4977 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004978 else
John Criswell47fdd832003-07-14 16:52:07 +00004979 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004980 fi
John Criswell47fdd832003-07-14 16:52:07 +00004981else
4982 ac_cpp_err=yes
4983fi
4984if test -z "$ac_cpp_err"; then
4985 :
4986else
4987 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004988sed 's/^/| /' conftest.$ac_ext >&5
4989
John Criswell47fdd832003-07-14 16:52:07 +00004990 # Broken: fails on valid input.
4991continue
4992fi
4993rm -f conftest.err conftest.$ac_ext
4994
4995 # OK, works on sane cases. Now check whether non-existent headers
4996 # can be detected and how.
4997 cat >conftest.$ac_ext <<_ACEOF
4998#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004999/* confdefs.h. */
5000_ACEOF
5001cat confdefs.h >>conftest.$ac_ext
5002cat >>conftest.$ac_ext <<_ACEOF
5003/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005004#include <ac_nonexistent.h>
5005_ACEOF
5006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5008 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005009 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } >/dev/null; then
5014 if test -s conftest.err; then
5015 ac_cpp_err=$ac_cxx_preproc_warn_flag
5016 else
5017 ac_cpp_err=
5018 fi
5019else
5020 ac_cpp_err=yes
5021fi
5022if test -z "$ac_cpp_err"; then
5023 # Broken: success on invalid input.
5024continue
5025else
5026 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005027sed 's/^/| /' conftest.$ac_ext >&5
5028
John Criswell47fdd832003-07-14 16:52:07 +00005029 # Passes both tests.
5030ac_preproc_ok=:
5031break
5032fi
5033rm -f conftest.err conftest.$ac_ext
5034
5035done
5036# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5037rm -f conftest.err conftest.$ac_ext
5038if $ac_preproc_ok; then
5039 break
John Criswell7a73b802003-06-30 21:59:07 +00005040fi
5041
John Criswell47fdd832003-07-14 16:52:07 +00005042 done
5043 ac_cv_prog_CXXCPP=$CXXCPP
5044
5045fi
5046 CXXCPP=$ac_cv_prog_CXXCPP
5047else
5048 ac_cv_prog_CXXCPP=$CXXCPP
5049fi
5050echo "$as_me:$LINENO: result: $CXXCPP" >&5
5051echo "${ECHO_T}$CXXCPP" >&6
5052ac_preproc_ok=false
5053for ac_cxx_preproc_warn_flag in '' yes
5054do
5055 # Use a header file that comes with gcc, so configuring glibc
5056 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5058 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005059 # On the NeXT, cc -E runs the code through the compiler's parser,
5060 # not just through cpp. "Syntax error" is here to catch this case.
5061 cat >conftest.$ac_ext <<_ACEOF
5062#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005063/* confdefs.h. */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h. */
5068#ifdef __STDC__
5069# include <limits.h>
5070#else
5071# include <assert.h>
5072#endif
John Criswell47fdd832003-07-14 16:52:07 +00005073 Syntax error
5074_ACEOF
5075if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5077 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005078 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } >/dev/null; then
5083 if test -s conftest.err; then
5084 ac_cpp_err=$ac_cxx_preproc_warn_flag
5085 else
5086 ac_cpp_err=
5087 fi
5088else
5089 ac_cpp_err=yes
5090fi
5091if test -z "$ac_cpp_err"; then
5092 :
5093else
5094 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005095sed 's/^/| /' conftest.$ac_ext >&5
5096
John Criswell47fdd832003-07-14 16:52:07 +00005097 # Broken: fails on valid input.
5098continue
5099fi
5100rm -f conftest.err conftest.$ac_ext
5101
5102 # OK, works on sane cases. Now check whether non-existent headers
5103 # can be detected and how.
5104 cat >conftest.$ac_ext <<_ACEOF
5105#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005106/* confdefs.h. */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005111#include <ac_nonexistent.h>
5112_ACEOF
5113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5115 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005116 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005117 rm -f conftest.er1
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } >/dev/null; then
5121 if test -s conftest.err; then
5122 ac_cpp_err=$ac_cxx_preproc_warn_flag
5123 else
5124 ac_cpp_err=
5125 fi
5126else
5127 ac_cpp_err=yes
5128fi
5129if test -z "$ac_cpp_err"; then
5130 # Broken: success on invalid input.
5131continue
5132else
5133 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005134sed 's/^/| /' conftest.$ac_ext >&5
5135
John Criswell47fdd832003-07-14 16:52:07 +00005136 # Passes both tests.
5137ac_preproc_ok=:
5138break
5139fi
5140rm -f conftest.err conftest.$ac_ext
5141
5142done
5143# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5144rm -f conftest.err conftest.$ac_ext
5145if $ac_preproc_ok; then
5146 :
5147else
John Criswell0c38eaf2003-09-10 15:17:25 +00005148 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5149See \`config.log' for more details." >&5
5150echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5151See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005152 { (exit 1); exit 1; }; }
5153fi
5154
5155ac_ext=cc
5156ac_cpp='$CXXCPP $CPPFLAGS'
5157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5160
5161
5162ac_ext=f
5163ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5164ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5166if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005167 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 +00005168 do
5169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5170set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5171echo "$as_me:$LINENO: checking for $ac_word" >&5
5172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5173if test "${ac_cv_prog_F77+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
5176 if test -n "$F77"; then
5177 ac_cv_prog_F77="$F77" # Let the user override the test.
5178else
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5189 fi
5190done
5191done
5192
5193fi
5194fi
5195F77=$ac_cv_prog_F77
5196if test -n "$F77"; then
5197 echo "$as_me:$LINENO: result: $F77" >&5
5198echo "${ECHO_T}$F77" >&6
5199else
5200 echo "$as_me:$LINENO: result: no" >&5
5201echo "${ECHO_T}no" >&6
5202fi
5203
5204 test -n "$F77" && break
5205 done
5206fi
5207if test -z "$F77"; then
5208 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005209 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 +00005210do
5211 # Extract the first word of "$ac_prog", so it can be a program name with args.
5212set dummy $ac_prog; ac_word=$2
5213echo "$as_me:$LINENO: checking for $ac_word" >&5
5214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218 if test -n "$ac_ct_F77"; then
5219 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5220else
5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_ac_ct_F77="$ac_prog"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232done
5233done
5234
5235fi
5236fi
5237ac_ct_F77=$ac_cv_prog_ac_ct_F77
5238if test -n "$ac_ct_F77"; then
5239 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5240echo "${ECHO_T}$ac_ct_F77" >&6
5241else
5242 echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6
5244fi
5245
5246 test -n "$ac_ct_F77" && break
5247done
5248
5249 F77=$ac_ct_F77
5250fi
5251
5252
5253# Provide some information about the compiler.
John Criswell987e49c2003-10-10 01:11:54 +00005254echo "$as_me:5254:" \
John Criswell47fdd832003-07-14 16:52:07 +00005255 "checking for Fortran 77 compiler version" >&5
5256ac_compiler=`set X $ac_compile; echo $2`
5257{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5258 (eval $ac_compiler --version </dev/null >&5) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }
5262{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5263 (eval $ac_compiler -v </dev/null >&5) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }
5267{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5268 (eval $ac_compiler -V </dev/null >&5) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }
5272
5273# If we don't use `.F' as extension, the preprocessor is not run on the
5274# input file.
5275ac_save_ext=$ac_ext
5276ac_ext=F
5277echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5278echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5279if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281else
5282 cat >conftest.$ac_ext <<_ACEOF
5283 program main
5284#ifndef __GNUC__
5285 choke me
5286#endif
5287
5288 end
5289_ACEOF
5290rm -f conftest.$ac_objext
5291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292 (eval $ac_compile) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } &&
5296 { ac_try='test -s conftest.$ac_objext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5302 ac_compiler_gnu=yes
5303else
5304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005305sed 's/^/| /' conftest.$ac_ext >&5
5306
John Criswell47fdd832003-07-14 16:52:07 +00005307ac_compiler_gnu=no
5308fi
5309rm -f conftest.$ac_objext conftest.$ac_ext
5310ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5311
5312fi
5313echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5314echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5315ac_ext=$ac_save_ext
5316G77=`test $ac_compiler_gnu = yes && echo yes`
5317ac_test_FFLAGS=${FFLAGS+set}
5318ac_save_FFLAGS=$FFLAGS
5319FFLAGS=
5320echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5321echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5322if test "${ac_cv_prog_f77_g+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325 FFLAGS=-g
5326cat >conftest.$ac_ext <<_ACEOF
5327 program main
5328
5329 end
5330_ACEOF
5331rm -f conftest.$ac_objext
5332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333 (eval $ac_compile) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -s conftest.$ac_objext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 ac_cv_prog_f77_g=yes
5344else
5345 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005346sed 's/^/| /' conftest.$ac_ext >&5
5347
John Criswell47fdd832003-07-14 16:52:07 +00005348ac_cv_prog_f77_g=no
5349fi
5350rm -f conftest.$ac_objext conftest.$ac_ext
5351
5352fi
5353echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5354echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5355if test "$ac_test_FFLAGS" = set; then
5356 FFLAGS=$ac_save_FFLAGS
5357elif test $ac_cv_prog_f77_g = yes; then
5358 if test "$G77" = yes; then
5359 FFLAGS="-g -O2"
5360 else
5361 FFLAGS="-g"
5362 fi
5363else
5364 if test "$G77" = yes; then
5365 FFLAGS="-O2"
5366 else
5367 FFLAGS=
5368 fi
5369fi
5370ac_ext=c
5371ac_cpp='$CPP $CPPFLAGS'
5372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374ac_compiler_gnu=$ac_cv_c_compiler_gnu
5375
5376
5377
5378# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5379
5380# find the maximum length of command line arguments
5381echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5382echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5383if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385else
5386 i=0
5387 testring="ABCD"
5388
5389 case $build_os in
5390 msdosdjgpp*)
5391 # On DJGPP, this test can blow up pretty badly due to problems in libc
5392 # (any single argument exceeding 2000 bytes causes a buffer overrun
5393 # during glob expansion). Even if it were fixed, the result of this
5394 # check would be larger than it should be.
5395 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5396 ;;
5397
5398 gnu*)
5399 # Under GNU Hurd, this test is not required because there is
5400 # no limit to the length of command line arguments.
5401 # Libtool will interpret -1 as no limit whatsoever
5402 lt_cv_sys_max_cmd_len=-1;
5403 ;;
5404
5405 cygwin* | mingw*)
5406 # On Win9x/ME, this test blows up -- it succeeds, but takes
5407 # about 5 minutes as the teststring grows exponentially.
5408 # Worse, since 9x/ME are not pre-emptively multitasking,
5409 # you end up with a "frozen" computer, even though with patience
5410 # the test eventually succeeds (with a max line length of 256k).
5411 # Instead, let's just punt: use the minimum linelength reported by
5412 # all of the supported platforms: 8192 (on NT/2K/XP).
5413 lt_cv_sys_max_cmd_len=8192;
5414 ;;
5415
5416 *)
5417 # If test is not a shell built-in, we'll probably end up computing a
5418 # maximum length that is only half of the actual maximum length, but
5419 # we can't tell.
5420 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5421 = "XX$testring") >/dev/null 2>&1 &&
5422 new_result=`expr "X$testring" : ".*" 2>&1` &&
5423 lt_cv_sys_max_cmd_len=$new_result &&
5424 test $i != 17 # 1/2 MB should be enough
5425 do
5426 i=`expr $i + 1`
5427 testring=$testring$testring
5428 done
5429 testring=
5430 # Add a significant safety factor because C++ compilers can tack on massive
5431 # amounts of additional arguments before passing them to the linker.
5432 # It appears as though 1/2 is a usable value.
5433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5434 ;;
5435 esac
5436
5437fi
5438
5439if test -n $lt_cv_sys_max_cmd_len ; then
5440 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5441echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5442else
5443 echo "$as_me:$LINENO: result: none" >&5
5444echo "${ECHO_T}none" >&6
5445fi
5446
5447
5448
5449
5450# Check for command to grab the raw symbol name followed by C symbol from nm.
5451echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5452echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5453if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455else
5456
5457# These are sane defaults that work on at least a few old systems.
5458# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5459
5460# Character class describing NM global symbol codes.
5461symcode='[BCDEGRST]'
5462
5463# Regexp to match symbols that can be accessed directly from C.
5464sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5465
5466# Transform the above into a raw symbol and a C symbol.
5467symxfrm='\1 \2\3 \3'
5468
5469# Transform an extracted symbol line into a proper C declaration
5470lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5471
5472# Transform an extracted symbol line into symbol name and symbol address
5473lt_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'"
5474
5475# Define system-specific variables.
5476case $host_os in
5477aix*)
5478 symcode='[BCDT]'
5479 ;;
5480cygwin* | mingw* | pw32*)
5481 symcode='[ABCDGISTW]'
5482 ;;
5483hpux*) # Its linker distinguishes data from code symbols
5484 if test "$host_cpu" = ia64; then
5485 symcode='[ABCDEGRST]'
5486 fi
5487 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5488 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'"
5489 ;;
5490irix* | nonstopux*)
5491 symcode='[BCDEGRST]'
5492 ;;
5493osf*)
5494 symcode='[BCDEGQRST]'
5495 ;;
5496solaris* | sysv5*)
5497 symcode='[BDT]'
5498 ;;
5499sysv4)
5500 symcode='[DFNSTU]'
5501 ;;
5502esac
5503
5504# Handle CRLF in mingw tool chain
5505opt_cr=
5506case $build_os in
5507mingw*)
5508 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5509 ;;
5510esac
5511
5512# If we're using GNU nm, then use its standard symbol codes.
5513case `$NM -V 2>&1` in
5514*GNU* | *'with BFD'*)
5515 symcode='[ABCDGISTW]' ;;
5516esac
5517
5518# Try without a prefix undercore, then with it.
5519for ac_symprfx in "" "_"; do
5520
5521 # Write the raw and C identifiers.
5522 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5523
5524 # Check to see that the pipe works correctly.
5525 pipe_works=no
5526
5527 rm -f conftest*
5528 cat > conftest.$ac_ext <<EOF
5529#ifdef __cplusplus
5530extern "C" {
5531#endif
5532char nm_test_var;
5533void nm_test_func(){}
5534#ifdef __cplusplus
5535}
5536#endif
5537int main(){nm_test_var='a';nm_test_func();return(0);}
5538EOF
5539
5540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5541 (eval $ac_compile) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; then
5545 # Now try to grab the symbols.
5546 nlist=conftest.nm
5547 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5548 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5549 ac_status=$?
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && test -s "$nlist"; then
5552 # Try sorting and uniquifying the output.
5553 if sort "$nlist" | uniq > "$nlist"T; then
5554 mv -f "$nlist"T "$nlist"
5555 else
5556 rm -f "$nlist"T
5557 fi
5558
5559 # Make sure that we snagged all the symbols we need.
5560 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5561 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5562 cat <<EOF > conftest.$ac_ext
5563#ifdef __cplusplus
5564extern "C" {
5565#endif
5566
5567EOF
5568 # Now generate the symbol file.
5569 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5570
5571 cat <<EOF >> conftest.$ac_ext
5572#if defined (__STDC__) && __STDC__
5573# define lt_ptr_t void *
5574#else
5575# define lt_ptr_t char *
5576# define const
5577#endif
5578
5579/* The mapping between symbol names and symbols. */
5580const struct {
5581 const char *name;
5582 lt_ptr_t address;
5583}
5584lt_preloaded_symbols[] =
5585{
5586EOF
5587 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5588 cat <<\EOF >> conftest.$ac_ext
5589 {0, (lt_ptr_t) 0}
5590};
5591
5592#ifdef __cplusplus
5593}
5594#endif
5595EOF
5596 # Now try linking the two files.
5597 mv conftest.$ac_objext conftstm.$ac_objext
5598 lt_save_LIBS="$LIBS"
5599 lt_save_CFLAGS="$CFLAGS"
5600 LIBS="conftstm.$ac_objext"
5601 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603 (eval $ac_link) 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5607 pipe_works=yes
5608 fi
5609 LIBS="$lt_save_LIBS"
5610 CFLAGS="$lt_save_CFLAGS"
5611 else
5612 echo "cannot find nm_test_func in $nlist" >&5
5613 fi
5614 else
5615 echo "cannot find nm_test_var in $nlist" >&5
5616 fi
5617 else
5618 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5619 fi
5620 else
5621 echo "$progname: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5623 fi
5624 rm -f conftest* conftst*
5625
5626 # Do not use the global_symbol_pipe unless it works.
5627 if test "$pipe_works" = yes; then
5628 break
5629 else
5630 lt_cv_sys_global_symbol_pipe=
5631 fi
5632done
5633
5634fi
5635
5636if test -z "$lt_cv_sys_global_symbol_pipe"; then
5637 lt_cv_sys_global_symbol_to_cdecl=
5638fi
5639if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5640 echo "$as_me:$LINENO: result: failed" >&5
5641echo "${ECHO_T}failed" >&6
5642else
5643 echo "$as_me:$LINENO: result: ok" >&5
5644echo "${ECHO_T}ok" >&6
5645fi
5646
5647echo "$as_me:$LINENO: checking for objdir" >&5
5648echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5649if test "${lt_cv_objdir+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651else
5652 rm -f .libs 2>/dev/null
5653mkdir .libs 2>/dev/null
5654if test -d .libs; then
5655 lt_cv_objdir=.libs
5656else
5657 # MS-DOS does not allow filenames that begin with a dot.
5658 lt_cv_objdir=_libs
5659fi
5660rmdir .libs 2>/dev/null
5661fi
5662echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5663echo "${ECHO_T}$lt_cv_objdir" >&6
5664objdir=$lt_cv_objdir
5665
5666
5667
5668
5669
5670case $host_os in
5671aix3*)
5672 # AIX sometimes has problems with the GCC collect2 program. For some
5673 # reason, if we set the COLLECT_NAMES environment variable, the problems
5674 # vanish in a puff of smoke.
5675 if test "X${COLLECT_NAMES+set}" != Xset; then
5676 COLLECT_NAMES=
5677 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005678 fi
5679 ;;
5680esac
5681
John Criswell47fdd832003-07-14 16:52:07 +00005682# Sed substitution that helps us do robust quoting. It backslashifies
5683# metacharacters that are still active within double-quoted strings.
5684Xsed='sed -e s/^X//'
5685sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5686
5687# Same as above, but do not quote variable references.
5688double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5689
5690# Sed substitution to delay expansion of an escaped shell variable in a
5691# double_quote_subst'ed string.
5692delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5693
5694# Sed substitution to avoid accidental globbing in evaled expressions
5695no_glob_subst='s/\*/\\\*/g'
5696
5697# Constants:
5698rm="rm -f"
5699
5700# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005701default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005702can_build_shared=yes
5703
5704# All known linkers require a `.a' archive for static linking (except M$VC,
5705# which needs '.lib').
5706libext=a
5707ltmain="$ac_aux_dir/ltmain.sh"
5708ofile="$default_ofile"
5709with_gnu_ld="$lt_cv_prog_gnu_ld"
5710
5711if test -n "$ac_tool_prefix"; then
5712 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5713set dummy ${ac_tool_prefix}ar; ac_word=$2
5714echo "$as_me:$LINENO: checking for $ac_word" >&5
5715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5716if test "${ac_cv_prog_AR+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718else
5719 if test -n "$AR"; then
5720 ac_cv_prog_AR="$AR" # Let the user override the test.
5721else
5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_AR="${ac_tool_prefix}ar"
5730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733done
5734done
5735
5736fi
5737fi
5738AR=$ac_cv_prog_AR
5739if test -n "$AR"; then
5740 echo "$as_me:$LINENO: result: $AR" >&5
5741echo "${ECHO_T}$AR" >&6
5742else
5743 echo "$as_me:$LINENO: result: no" >&5
5744echo "${ECHO_T}no" >&6
5745fi
5746
5747fi
5748if test -z "$ac_cv_prog_AR"; then
5749 ac_ct_AR=$AR
5750 # Extract the first word of "ar", so it can be a program name with args.
5751set dummy ar; ac_word=$2
5752echo "$as_me:$LINENO: checking for $ac_word" >&5
5753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5754if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
5757 if test -n "$ac_ct_AR"; then
5758 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5759else
5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761for as_dir in $PATH
5762do
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_ac_ct_AR="ar"
5768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5770 fi
5771done
5772done
5773
5774 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5775fi
5776fi
5777ac_ct_AR=$ac_cv_prog_ac_ct_AR
5778if test -n "$ac_ct_AR"; then
5779 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5780echo "${ECHO_T}$ac_ct_AR" >&6
5781else
5782 echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6
5784fi
5785
5786 AR=$ac_ct_AR
5787else
5788 AR="$ac_cv_prog_AR"
5789fi
5790
John Criswell7a73b802003-06-30 21:59:07 +00005791if test -n "$ac_tool_prefix"; then
5792 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5793set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5794echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796if test "${ac_cv_prog_RANLIB+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798else
5799 if test -n "$RANLIB"; then
5800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5801else
5802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH
5804do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813done
5814done
5815
5816fi
5817fi
5818RANLIB=$ac_cv_prog_RANLIB
5819if test -n "$RANLIB"; then
5820 echo "$as_me:$LINENO: result: $RANLIB" >&5
5821echo "${ECHO_T}$RANLIB" >&6
5822else
5823 echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6
5825fi
5826
5827fi
5828if test -z "$ac_cv_prog_RANLIB"; then
5829 ac_ct_RANLIB=$RANLIB
5830 # Extract the first word of "ranlib", so it can be a program name with args.
5831set dummy ranlib; ac_word=$2
5832echo "$as_me:$LINENO: checking for $ac_word" >&5
5833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5834if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837 if test -n "$ac_ct_RANLIB"; then
5838 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5839else
5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847 ac_cv_prog_ac_ct_RANLIB="ranlib"
5848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851done
5852done
5853
5854 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5855fi
5856fi
5857ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5858if test -n "$ac_ct_RANLIB"; then
5859 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5860echo "${ECHO_T}$ac_ct_RANLIB" >&6
5861else
5862 echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6
5864fi
5865
5866 RANLIB=$ac_ct_RANLIB
5867else
5868 RANLIB="$ac_cv_prog_RANLIB"
5869fi
5870
5871if test -n "$ac_tool_prefix"; then
5872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5873set dummy ${ac_tool_prefix}strip; ac_word=$2
5874echo "$as_me:$LINENO: checking for $ac_word" >&5
5875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876if test "${ac_cv_prog_STRIP+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879 if test -n "$STRIP"; then
5880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5881else
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893done
5894done
5895
5896fi
5897fi
5898STRIP=$ac_cv_prog_STRIP
5899if test -n "$STRIP"; then
5900 echo "$as_me:$LINENO: result: $STRIP" >&5
5901echo "${ECHO_T}$STRIP" >&6
5902else
5903 echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6
5905fi
5906
5907fi
5908if test -z "$ac_cv_prog_STRIP"; then
5909 ac_ct_STRIP=$STRIP
5910 # Extract the first word of "strip", so it can be a program name with args.
5911set dummy strip; ac_word=$2
5912echo "$as_me:$LINENO: checking for $ac_word" >&5
5913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5914if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917 if test -n "$ac_ct_STRIP"; then
5918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5919else
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927 ac_cv_prog_ac_ct_STRIP="strip"
5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5930 fi
5931done
5932done
5933
5934 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5935fi
5936fi
5937ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5938if test -n "$ac_ct_STRIP"; then
5939 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5940echo "${ECHO_T}$ac_ct_STRIP" >&6
5941else
5942 echo "$as_me:$LINENO: result: no" >&5
5943echo "${ECHO_T}no" >&6
5944fi
5945
5946 STRIP=$ac_ct_STRIP
5947else
5948 STRIP="$ac_cv_prog_STRIP"
5949fi
5950
5951
John Criswell7a73b802003-06-30 21:59:07 +00005952old_CC="$CC"
5953old_CFLAGS="$CFLAGS"
5954
5955# Set sane defaults for various variables
5956test -z "$AR" && AR=ar
5957test -z "$AR_FLAGS" && AR_FLAGS=cru
5958test -z "$AS" && AS=as
5959test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005960test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005961test -z "$DLLTOOL" && DLLTOOL=dlltool
5962test -z "$LD" && LD=ld
5963test -z "$LN_S" && LN_S="ln -s"
5964test -z "$MAGIC_CMD" && MAGIC_CMD=file
5965test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005966test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005967test -z "$OBJDUMP" && OBJDUMP=objdump
5968test -z "$RANLIB" && RANLIB=:
5969test -z "$STRIP" && STRIP=:
5970test -z "$ac_objext" && ac_objext=o
5971
John Criswell7a73b802003-06-30 21:59:07 +00005972# Determine commands to create old-style static archives.
5973old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5974old_postinstall_cmds='chmod 644 $oldlib'
5975old_postuninstall_cmds=
5976
5977if test -n "$RANLIB"; then
5978 case $host_os in
5979 openbsd*)
5980 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5981 ;;
5982 *)
5983 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5984 ;;
5985 esac
5986 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5987fi
5988
John Criswell47fdd832003-07-14 16:52:07 +00005989# Only perform the check for file, if the check method requires it
5990case $deplibs_check_method in
5991file_magic*)
5992 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5993 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5994echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5995if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005997else
John Criswell47fdd832003-07-14 16:52:07 +00005998 case $MAGIC_CMD in
5999[\\/*] | ?:[\\/]*)
6000 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6001 ;;
6002*)
6003 lt_save_MAGIC_CMD="$MAGIC_CMD"
6004 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6005 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6006 for ac_dir in $ac_dummy; do
6007 IFS="$lt_save_ifs"
6008 test -z "$ac_dir" && ac_dir=.
6009 if test -f $ac_dir/${ac_tool_prefix}file; then
6010 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6011 if test -n "$file_magic_test_file"; then
6012 case $deplibs_check_method in
6013 "file_magic "*)
6014 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6015 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6016 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6017 $EGREP "$file_magic_regex" > /dev/null; then
6018 :
6019 else
6020 cat <<EOF 1>&2
6021
6022*** Warning: the command libtool uses to detect shared libraries,
6023*** $file_magic_cmd, produces output that libtool cannot recognize.
6024*** The result is that libtool may fail to recognize shared libraries
6025*** as such. This will affect the creation of libtool libraries that
6026*** depend on shared libraries, but programs linked with such libtool
6027*** libraries will work regardless of this problem. Nevertheless, you
6028*** may want to report the problem to your system manager and/or to
6029*** bug-libtool@gnu.org
6030
6031EOF
6032 fi ;;
6033 esac
6034 fi
6035 break
6036 fi
6037 done
6038 IFS="$lt_save_ifs"
6039 MAGIC_CMD="$lt_save_MAGIC_CMD"
6040 ;;
6041esac
John Criswell7a73b802003-06-30 21:59:07 +00006042fi
John Criswell7a73b802003-06-30 21:59:07 +00006043
John Criswell47fdd832003-07-14 16:52:07 +00006044MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6045if test -n "$MAGIC_CMD"; then
6046 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6047echo "${ECHO_T}$MAGIC_CMD" >&6
6048else
6049 echo "$as_me:$LINENO: result: no" >&5
6050echo "${ECHO_T}no" >&6
6051fi
John Criswell7a73b802003-06-30 21:59:07 +00006052
John Criswell47fdd832003-07-14 16:52:07 +00006053if test -z "$lt_cv_path_MAGIC_CMD"; then
6054 if test -n "$ac_tool_prefix"; then
6055 echo "$as_me:$LINENO: checking for file" >&5
6056echo $ECHO_N "checking for file... $ECHO_C" >&6
6057if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060 case $MAGIC_CMD in
6061[\\/*] | ?:[\\/]*)
6062 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6063 ;;
6064*)
6065 lt_save_MAGIC_CMD="$MAGIC_CMD"
6066 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6067 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6068 for ac_dir in $ac_dummy; do
6069 IFS="$lt_save_ifs"
6070 test -z "$ac_dir" && ac_dir=.
6071 if test -f $ac_dir/file; then
6072 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6073 if test -n "$file_magic_test_file"; then
6074 case $deplibs_check_method in
6075 "file_magic "*)
6076 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6077 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6078 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6079 $EGREP "$file_magic_regex" > /dev/null; then
6080 :
6081 else
6082 cat <<EOF 1>&2
6083
6084*** Warning: the command libtool uses to detect shared libraries,
6085*** $file_magic_cmd, produces output that libtool cannot recognize.
6086*** The result is that libtool may fail to recognize shared libraries
6087*** as such. This will affect the creation of libtool libraries that
6088*** depend on shared libraries, but programs linked with such libtool
6089*** libraries will work regardless of this problem. Nevertheless, you
6090*** may want to report the problem to your system manager and/or to
6091*** bug-libtool@gnu.org
6092
6093EOF
6094 fi ;;
6095 esac
6096 fi
6097 break
6098 fi
6099 done
6100 IFS="$lt_save_ifs"
6101 MAGIC_CMD="$lt_save_MAGIC_CMD"
6102 ;;
6103esac
6104fi
6105
6106MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6107if test -n "$MAGIC_CMD"; then
6108 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6109echo "${ECHO_T}$MAGIC_CMD" >&6
6110else
6111 echo "$as_me:$LINENO: result: no" >&5
6112echo "${ECHO_T}no" >&6
6113fi
6114
6115 else
6116 MAGIC_CMD=:
6117 fi
6118fi
6119
6120 fi
6121 ;;
6122esac
6123
6124enable_dlopen=no
6125enable_win32_dll=no
6126
6127# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6128if test "${enable_libtool_lock+set}" = set; then
6129 enableval="$enable_libtool_lock"
6130
6131fi;
6132test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6133
John Criswell7a73b802003-06-30 21:59:07 +00006134
6135# Check whether --with-pic or --without-pic was given.
6136if test "${with_pic+set}" = set; then
6137 withval="$with_pic"
6138 pic_mode="$withval"
6139else
6140 pic_mode=default
6141fi;
6142test -z "$pic_mode" && pic_mode=default
6143
John Criswell47fdd832003-07-14 16:52:07 +00006144# Use C for the default configuration in the libtool script
6145tagname=
6146lt_save_CC="$CC"
6147ac_ext=c
6148ac_cpp='$CPP $CPPFLAGS'
6149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151ac_compiler_gnu=$ac_cv_c_compiler_gnu
6152
6153
6154# Source file extension for C test sources.
6155ac_ext=c
6156
6157# Object file extension for compiled C test sources.
6158objext=o
6159objext=$objext
6160
6161# Code to be used in simple compile tests
6162lt_simple_compile_test_code="int some_variable = 0;\n"
6163
6164# Code to be used in simple link tests
6165lt_simple_link_test_code='int main(){return(0);}\n'
6166
6167
6168# If no C compiler was specified, use CC.
6169LTCC=${LTCC-"$CC"}
6170
6171# Allow CC to be a program name with arguments.
6172compiler=$CC
6173
6174
6175#
6176# Check for any special shared library compilation flags.
6177#
6178lt_prog_cc_shlib=
6179if test "$GCC" = no; then
6180 case $host_os in
6181 sco3.2v5*)
6182 lt_prog_cc_shlib='-belf'
6183 ;;
6184 esac
6185fi
6186if test -n "$lt_prog_cc_shlib"; then
6187 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6188echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6189 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6190 else
6191 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6192echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6193 lt_cv_prog_cc_can_build_shared=no
6194 fi
6195fi
6196
6197
6198#
6199# Check to make sure the static flag actually works.
6200#
6201echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6202echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6203if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205else
John Criswell47fdd832003-07-14 16:52:07 +00006206 lt_prog_compiler_static_works=no
6207 save_LDFLAGS="$LDFLAGS"
6208 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6209 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6210 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6211 # The compiler can only warn and ignore the option if not recognized
6212 # So say no if there are warnings
6213 if test -s conftest.err; then
6214 # Append any errors to the config.log.
6215 cat conftest.err 1>&5
6216 else
6217 lt_prog_compiler_static_works=yes
6218 fi
6219 fi
6220 $rm conftest*
6221 LDFLAGS="$save_LDFLAGS"
6222
6223fi
6224echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6225echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6226
6227if test x"$lt_prog_compiler_static_works" = xyes; then
6228 :
6229else
6230 lt_prog_compiler_static=
6231fi
6232
6233
6234
6235## CAVEAT EMPTOR:
6236## There is no encapsulation within the following macros, do not change
6237## the running order or otherwise move them around unless you know exactly
6238## what you are doing...
6239
6240lt_prog_compiler_no_builtin_flag=
6241
6242if test "$GCC" = yes; then
6243 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6244
6245 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6246echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6247if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249else
6250 lt_cv_prog_compiler_rtti_exceptions=no
6251 ac_outfile=conftest.$ac_objext
6252 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6253 lt_compiler_flag="-fno-rtti -fno-exceptions"
6254 # Insert the option either (1) after the last *FLAGS variable, or
6255 # (2) before a word containing "conftest.", or (3) at the end.
6256 # Note that $ac_compile itself does not contain backslashes and begins
6257 # with a dollar sign (not a hyphen), so the echo should work correctly.
6258 # The option is referenced via a variable to avoid confusing sed.
6259 lt_compile=`echo "$ac_compile" | $SED \
6260 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6262 -e 's:$: $lt_compiler_flag:'`
John Criswell987e49c2003-10-10 01:11:54 +00006263 (eval echo "\"\$as_me:6263: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006264 (eval "$lt_compile" 2>conftest.err)
6265 ac_status=$?
6266 cat conftest.err >&5
John Criswell987e49c2003-10-10 01:11:54 +00006267 echo "$as_me:6267: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006268 if (exit $ac_status) && test -s "$ac_outfile"; then
6269 # The compiler can only warn and ignore the option if not recognized
6270 # So say no if there are warnings
6271 if test ! -s conftest.err; then
6272 lt_cv_prog_compiler_rtti_exceptions=yes
6273 fi
6274 fi
6275 $rm conftest*
6276
6277fi
6278echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6279echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6280
6281if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6282 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6283else
6284 :
6285fi
6286
6287fi
6288
6289lt_prog_compiler_wl=
6290lt_prog_compiler_pic=
6291lt_prog_compiler_static=
6292
6293echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6294echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006295
6296 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006297 lt_prog_compiler_wl='-Wl,'
6298 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006299
6300 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006301 aix*)
6302 # All AIX code is PIC.
6303 if test "$host_cpu" = ia64; then
6304 # AIX 5 now supports IA64 processor
6305 lt_prog_compiler_static='-Bstatic'
6306 fi
John Criswell7a73b802003-06-30 21:59:07 +00006307 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006308
John Criswell7a73b802003-06-30 21:59:07 +00006309 amigaos*)
6310 # FIXME: we need at least 68020 code to build shared libraries, but
6311 # adding the `-m68020' flag to GCC prevents building anything better,
6312 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006313 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006314 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006315
6316 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006317 # PIC is the default for these OSes.
6318 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006319
6320 mingw* | pw32* | os2*)
6321 # This hack is so that the source file can tell whether it is being
6322 # built for inclusion in a dll (and should export symbols for example).
6323 lt_prog_compiler_pic='-DDLL_EXPORT'
6324 ;;
6325
John Criswell7a73b802003-06-30 21:59:07 +00006326 darwin* | rhapsody*)
6327 # PIC is the default on this platform
6328 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006329 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006330 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006331
6332 msdosdjgpp*)
6333 # Just because we use GCC doesn't mean we suddenly get shared libraries
6334 # on systems that don't support them.
6335 lt_prog_compiler_can_build_shared=no
6336 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006337 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006338
John Criswell7a73b802003-06-30 21:59:07 +00006339 sysv4*MP*)
6340 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006341 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006342 fi
6343 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006344
6345 hpux*)
6346 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6347 # not for PA HP-UX.
6348 case "$host_cpu" in
6349 hppa*64*|ia64*)
6350 # +Z the default
6351 ;;
6352 *)
6353 lt_prog_compiler_pic='-fPIC'
6354 ;;
6355 esac
6356 ;;
6357
John Criswell7a73b802003-06-30 21:59:07 +00006358 *)
John Criswell47fdd832003-07-14 16:52:07 +00006359 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006360 ;;
6361 esac
6362 else
John Criswell47fdd832003-07-14 16:52:07 +00006363 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006364 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006365 aix*)
6366 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006367 if test "$host_cpu" = ia64; then
6368 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006369 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006370 else
John Criswell47fdd832003-07-14 16:52:07 +00006371 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006372 fi
6373 ;;
6374
John Criswell47fdd832003-07-14 16:52:07 +00006375 mingw* | pw32* | os2*)
6376 # This hack is so that the source file can tell whether it is being
6377 # built for inclusion in a dll (and should export symbols for example).
6378 lt_prog_compiler_pic='-DDLL_EXPORT'
6379 ;;
6380
John Criswell7a73b802003-06-30 21:59:07 +00006381 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006382 lt_prog_compiler_wl='-Wl,'
6383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6384 # not for PA HP-UX.
6385 case "$host_cpu" in
6386 hppa*64*|ia64*)
6387 # +Z the default
6388 ;;
6389 *)
6390 lt_prog_compiler_pic='+Z'
6391 ;;
6392 esac
6393 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6394 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006395 ;;
6396
John Criswell47fdd832003-07-14 16:52:07 +00006397 irix5* | irix6* | nonstopux*)
6398 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006399 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006400 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006401 ;;
6402
6403 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006404 lt_prog_compiler_pic='-KPIC'
6405 lt_prog_compiler_static='-Bstatic'
6406 ;;
6407
6408 linux*)
6409 case $CC in
6410 icc|ecc)
6411 lt_prog_compiler_wl='-Wl,'
6412 lt_prog_compiler_pic='-KPIC'
6413 lt_prog_compiler_static='-static'
6414 ;;
6415 ccc)
6416 lt_prog_compiler_wl='-Wl,'
6417 # All Alpha code is PIC.
6418 lt_prog_compiler_static='-non_shared'
6419 ;;
6420 esac
John Criswell7a73b802003-06-30 21:59:07 +00006421 ;;
6422
6423 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006424 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006425 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006426 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006427 ;;
6428
6429 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006430 lt_prog_compiler_pic='-Kpic'
6431 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006432 ;;
6433
6434 solaris*)
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 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006441 lt_prog_compiler_wl='-Qoption ld '
6442 lt_prog_compiler_pic='-PIC'
6443 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006444 ;;
6445
6446 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006447 lt_prog_compiler_wl='-Wl,'
6448 lt_prog_compiler_pic='-KPIC'
6449 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006450 ;;
6451
6452 sysv4*MP*)
6453 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006454 lt_prog_compiler_pic='-Kconform_pic'
6455 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006456 fi
6457 ;;
6458
John Criswell47fdd832003-07-14 16:52:07 +00006459 uts4*)
6460 lt_prog_compiler_pic='-pic'
6461 lt_prog_compiler_static='-Bstatic'
6462 ;;
6463
John Criswell7a73b802003-06-30 21:59:07 +00006464 *)
John Criswell47fdd832003-07-14 16:52:07 +00006465 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006466 ;;
6467 esac
6468 fi
6469
John Criswell47fdd832003-07-14 16:52:07 +00006470echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6471echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006472
John Criswell47fdd832003-07-14 16:52:07 +00006473#
6474# Check to make sure the PIC flag actually works.
6475#
6476if test -n "$lt_prog_compiler_pic"; then
6477 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6478echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6479if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481else
John Criswell47fdd832003-07-14 16:52:07 +00006482 lt_prog_compiler_pic_works=no
6483 ac_outfile=conftest.$ac_objext
6484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6485 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6486 # Insert the option either (1) after the last *FLAGS variable, or
6487 # (2) before a word containing "conftest.", or (3) at the end.
6488 # Note that $ac_compile itself does not contain backslashes and begins
6489 # with a dollar sign (not a hyphen), so the echo should work correctly.
6490 # The option is referenced via a variable to avoid confusing sed.
6491 lt_compile=`echo "$ac_compile" | $SED \
6492 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6494 -e 's:$: $lt_compiler_flag:'`
John Criswell987e49c2003-10-10 01:11:54 +00006495 (eval echo "\"\$as_me:6495: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006496 (eval "$lt_compile" 2>conftest.err)
6497 ac_status=$?
6498 cat conftest.err >&5
John Criswell987e49c2003-10-10 01:11:54 +00006499 echo "$as_me:6499: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006500 if (exit $ac_status) && test -s "$ac_outfile"; then
6501 # The compiler can only warn and ignore the option if not recognized
6502 # So say no if there are warnings
6503 if test ! -s conftest.err; then
6504 lt_prog_compiler_pic_works=yes
6505 fi
6506 fi
6507 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006508
John Criswell47fdd832003-07-14 16:52:07 +00006509fi
6510echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6511echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006512
John Criswell47fdd832003-07-14 16:52:07 +00006513if test x"$lt_prog_compiler_pic_works" = xyes; then
6514 case $lt_prog_compiler_pic in
6515 "" | " "*) ;;
6516 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6517 esac
John Criswell7a73b802003-06-30 21:59:07 +00006518else
John Criswell47fdd832003-07-14 16:52:07 +00006519 lt_prog_compiler_pic=
6520 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006521fi
6522
John Criswell7a73b802003-06-30 21:59:07 +00006523fi
John Criswell47fdd832003-07-14 16:52:07 +00006524case "$host_os" in
6525 # For platforms which do not support PIC, -DPIC is meaningless:
6526 *djgpp*)
6527 lt_prog_compiler_pic=
6528 ;;
6529 *)
6530 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6531 ;;
6532esac
John Criswell7a73b802003-06-30 21:59:07 +00006533
John Criswell7a73b802003-06-30 21:59:07 +00006534echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6535echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006536if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538else
John Criswell47fdd832003-07-14 16:52:07 +00006539 lt_cv_prog_compiler_c_o=no
6540 $rm -r conftest 2>/dev/null
6541 mkdir conftest
6542 cd conftest
6543 mkdir out
6544 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006545
John Criswell47fdd832003-07-14 16:52:07 +00006546 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6547 # that will create temporary files in the current directory regardless of
6548 # the output directory. Thus, making CWD read-only will cause this test
6549 # to fail, enabling locking or at least warning the user not to do parallel
6550 # builds.
6551 chmod -w .
6552
6553 lt_compiler_flag="-o out/conftest2.$ac_objext"
6554 # Insert the option either (1) after the last *FLAGS variable, or
6555 # (2) before a word containing "conftest.", or (3) at the end.
6556 # Note that $ac_compile itself does not contain backslashes and begins
6557 # with a dollar sign (not a hyphen), so the echo should work correctly.
6558 lt_compile=`echo "$ac_compile" | $SED \
6559 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6561 -e 's:$: $lt_compiler_flag:'`
John Criswell987e49c2003-10-10 01:11:54 +00006562 (eval echo "\"\$as_me:6562: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006563 (eval "$lt_compile" 2>out/conftest.err)
6564 ac_status=$?
6565 cat out/conftest.err >&5
John Criswell987e49c2003-10-10 01:11:54 +00006566 echo "$as_me:6566: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6568 then
6569 # The compiler can only warn and ignore the option if not recognized
6570 # So say no if there are warnings
6571 if test ! -s out/conftest.err; then
6572 lt_cv_prog_compiler_c_o=yes
6573 fi
6574 fi
6575 chmod u+w .
6576 $rm conftest* out/*
6577 rmdir out
6578 cd ..
6579 rmdir conftest
6580 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006581
6582fi
John Criswell47fdd832003-07-14 16:52:07 +00006583echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6584echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006585
John Criswell7a73b802003-06-30 21:59:07 +00006586
John Criswell7a73b802003-06-30 21:59:07 +00006587hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006588if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006589 # do not overwrite the value of need_locks provided by the user
6590 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6591echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6592 hard_links=yes
6593 $rm conftest*
6594 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6595 touch conftest.a
6596 ln conftest.a conftest.b 2>&5 || hard_links=no
6597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6598 echo "$as_me:$LINENO: result: $hard_links" >&5
6599echo "${ECHO_T}$hard_links" >&6
6600 if test "$hard_links" = no; then
6601 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6602echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6603 need_locks=warn
6604 fi
6605else
6606 need_locks=no
6607fi
John Criswell7a73b802003-06-30 21:59:07 +00006608
John Criswell47fdd832003-07-14 16:52:07 +00006609echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6610echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6611
6612 runpath_var=
6613 allow_undefined_flag=
6614 enable_shared_with_static_runtimes=no
6615 archive_cmds=
6616 archive_expsym_cmds=
6617 old_archive_From_new_cmds=
6618 old_archive_from_expsyms_cmds=
6619 export_dynamic_flag_spec=
6620 whole_archive_flag_spec=
6621 thread_safe_flag_spec=
6622 hardcode_libdir_flag_spec=
6623 hardcode_libdir_flag_spec_ld=
6624 hardcode_libdir_separator=
6625 hardcode_direct=no
6626 hardcode_minus_L=no
6627 hardcode_shlibpath_var=unsupported
6628 link_all_deplibs=unknown
6629 hardcode_automatic=no
6630 module_cmds=
6631 module_expsym_cmds=
6632 always_export_symbols=no
6633 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6634 # include_expsyms should be a list of space-separated symbols to be *always*
6635 # included in the symbol list
6636 include_expsyms=
6637 # exclude_expsyms can be an extended regexp of symbols to exclude
6638 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6639 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6640 # as well as any symbol that contains `d'.
6641 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6642 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6643 # platforms (ab)use it in PIC code, but their linkers get confused if
6644 # the symbol is explicitly referenced. Since portable code cannot
6645 # rely on this symbol name, it's probably fine to never include it in
6646 # preloaded symbol tables.
6647 extract_expsyms_cmds=
6648
6649 case $host_os in
6650 cygwin* | mingw* | pw32*)
6651 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6652 # When not using gcc, we currently assume that we are using
6653 # Microsoft Visual C++.
6654 if test "$GCC" != yes; then
6655 with_gnu_ld=no
6656 fi
6657 ;;
6658 openbsd*)
6659 with_gnu_ld=no
6660 ;;
6661 esac
6662
6663 ld_shlibs=yes
6664 if test "$with_gnu_ld" = yes; then
6665 # If archive_cmds runs LD, not CC, wlarc should be empty
6666 wlarc='${wl}'
6667
6668 # See if GNU ld supports shared libraries.
6669 case $host_os in
6670 aix3* | aix4* | aix5*)
6671 # On AIX/PPC, the GNU linker is very broken
6672 if test "$host_cpu" != ia64; then
6673 ld_shlibs=no
6674 cat <<EOF 1>&2
6675
6676*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6677*** to be unable to reliably create shared libraries on AIX.
6678*** Therefore, libtool is disabling shared libraries support. If you
6679*** really care for shared libraries, you may want to modify your PATH
6680*** so that a non-GNU linker is found, and then restart.
6681
6682EOF
6683 fi
6684 ;;
6685
6686 amigaos*)
6687 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)'
6688 hardcode_libdir_flag_spec='-L$libdir'
6689 hardcode_minus_L=yes
6690
6691 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6692 # that the semantics of dynamic libraries on AmigaOS, at least up
6693 # to version 4, is to share data among multiple programs linked
6694 # with the same dynamic library. Since this doesn't match the
6695 # behavior of shared libraries on other platforms, we can't use
6696 # them.
6697 ld_shlibs=no
6698 ;;
6699
6700 beos*)
6701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6702 allow_undefined_flag=unsupported
6703 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6704 # support --undefined. This deserves some investigation. FIXME
6705 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6706 else
6707 ld_shlibs=no
6708 fi
6709 ;;
6710
6711 cygwin* | mingw* | pw32*)
6712 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6713 # as there is no search path for DLLs.
6714 hardcode_libdir_flag_spec='-L$libdir'
6715 allow_undefined_flag=unsupported
6716 always_export_symbols=no
6717 enable_shared_with_static_runtimes=yes
6718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6719
6720 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6722 # If the export-symbols file already is a .def file (1st line
6723 # is EXPORTS), use it as is; otherwise, prepend...
6724 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6725 cp $export_symbols $output_objdir/$soname.def;
6726 else
6727 echo EXPORTS > $output_objdir/$soname.def;
6728 cat $export_symbols >> $output_objdir/$soname.def;
6729 fi~
6730 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6731 else
6732 ld_shlibs=no
6733 fi
6734 ;;
6735
6736 netbsd*)
6737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6738 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6739 wlarc=
6740 else
6741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6743 fi
6744 ;;
6745
6746 solaris* | sysv5*)
6747 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6748 ld_shlibs=no
6749 cat <<EOF 1>&2
6750
6751*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6752*** create shared libraries on Solaris systems. Therefore, libtool
6753*** is disabling shared libraries support. We urge you to upgrade GNU
6754*** binutils to release 2.9.1 or newer. Another option is to modify
6755*** your PATH or compiler configuration so that the native linker is
6756*** used, and then restart.
6757
6758EOF
6759 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6762 else
6763 ld_shlibs=no
6764 fi
6765 ;;
6766
6767 sunos4*)
6768 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6769 wlarc=
6770 hardcode_direct=yes
6771 hardcode_shlibpath_var=no
6772 ;;
6773
6774 *)
6775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6778 else
6779 ld_shlibs=no
6780 fi
6781 ;;
6782 esac
6783
6784 if test "$ld_shlibs" = yes; then
6785 runpath_var=LD_RUN_PATH
6786 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6787 export_dynamic_flag_spec='${wl}--export-dynamic'
6788 # ancient GNU ld didn't support --whole-archive et. al.
6789 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6790 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6791 else
6792 whole_archive_flag_spec=
6793 fi
6794 fi
6795 else
6796 # PORTME fill in a description of your system's linker (not GNU ld)
6797 case $host_os in
6798 aix3*)
6799 allow_undefined_flag=unsupported
6800 always_export_symbols=yes
6801 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'
6802 # Note: this linker hardcodes the directories in LIBPATH if there
6803 # are no directories specified by -L.
6804 hardcode_minus_L=yes
6805 if test "$GCC" = yes && test -z "$link_static_flag"; then
6806 # Neither direct hardcoding nor static linking is supported with a
6807 # broken collect2.
6808 hardcode_direct=unsupported
6809 fi
6810 ;;
6811
6812 aix4* | aix5*)
6813 if test "$host_cpu" = ia64; then
6814 # On IA64, the linker does run time linking by default, so we don't
6815 # have to do anything special.
6816 aix_use_runtimelinking=no
6817 exp_sym_flag='-Bexport'
6818 no_entry_flag=""
6819 else
6820 # If we're using GNU nm, then we don't want the "-C" option.
6821 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6822 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6823 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'
6824 else
6825 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'
6826 fi
6827 aix_use_runtimelinking=no
6828
6829 # Test if we are trying to use run time linking or normal
6830 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6831 # need to do runtime linking.
6832 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6833 for ld_flag in $LDFLAGS; do
6834 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6835 aix_use_runtimelinking=yes
6836 break
6837 fi
6838 done
6839 esac
6840
6841 exp_sym_flag='-bexport'
6842 no_entry_flag='-bnoentry'
6843 fi
6844
6845 # When large executables or shared objects are built, AIX ld can
6846 # have problems creating the table of contents. If linking a library
6847 # or program results in "error TOC overflow" add -mminimal-toc to
6848 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6849 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6850
6851 archive_cmds=''
6852 hardcode_direct=yes
6853 hardcode_libdir_separator=':'
6854 link_all_deplibs=yes
6855
6856 if test "$GCC" = yes; then
6857 case $host_os in aix4.012|aix4.012.*)
6858 # We only want to do this on AIX 4.2 and lower, the check
6859 # below for broken collect2 doesn't work under 4.3+
6860 collect2name=`${CC} -print-prog-name=collect2`
6861 if test -f "$collect2name" && \
6862 strings "$collect2name" | grep resolve_lib_name >/dev/null
6863 then
6864 # We have reworked collect2
6865 hardcode_direct=yes
6866 else
6867 # We have old collect2
6868 hardcode_direct=unsupported
6869 # It fails to find uninstalled libraries when the uninstalled
6870 # path is not listed in the libpath. Setting hardcode_minus_L
6871 # to unsupported forces relinking
6872 hardcode_minus_L=yes
6873 hardcode_libdir_flag_spec='-L$libdir'
6874 hardcode_libdir_separator=
6875 fi
6876 esac
6877 shared_flag='-shared'
6878 else
6879 # not using gcc
6880 if test "$host_cpu" = ia64; then
6881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6882 # chokes on -Wl,-G. The following line is correct:
6883 shared_flag='-G'
6884 else
6885 if test "$aix_use_runtimelinking" = yes; then
6886 shared_flag='${wl}-G'
6887 else
6888 shared_flag='${wl}-bM:SRE'
6889 fi
6890 fi
6891 fi
6892
6893 # It seems that -bexpall does not export symbols beginning with
6894 # underscore (_), so it is better to generate a list of symbols to export.
6895 always_export_symbols=yes
6896 if test "$aix_use_runtimelinking" = yes; then
6897 # Warning - without using the other runtime loading flags (-brtl),
6898 # -berok will link without error, but may produce a broken library.
6899 allow_undefined_flag='-berok'
6900 # Determine the default libpath from the value encoded in an empty executable.
6901 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006902#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006903/* confdefs.h. */
6904_ACEOF
6905cat confdefs.h >>conftest.$ac_ext
6906cat >>conftest.$ac_ext <<_ACEOF
6907/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006908
John Criswell7a73b802003-06-30 21:59:07 +00006909int
6910main ()
6911{
John Criswell47fdd832003-07-14 16:52:07 +00006912
John Criswell7a73b802003-06-30 21:59:07 +00006913 ;
6914 return 0;
6915}
6916_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006917rm -f conftest.$ac_objext conftest$ac_exeext
6918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6919 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006923 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 (eval $ac_try) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006929
John Criswell47fdd832003-07-14 16:52:07 +00006930aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6931}'`
6932# Check for a 64-bit object if we didn't find anything.
6933if 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; }
6934}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006935else
6936 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006937sed 's/^/| /' conftest.$ac_ext >&5
6938
John Criswell7a73b802003-06-30 21:59:07 +00006939fi
John Criswell47fdd832003-07-14 16:52:07 +00006940rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6941if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006942
John Criswell47fdd832003-07-14 16:52:07 +00006943 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6944 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"
6945 else
6946 if test "$host_cpu" = ia64; then
6947 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6948 allow_undefined_flag="-z nodefs"
6949 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"
6950 else
6951 # Determine the default libpath from the value encoded in an empty executable.
6952 cat >conftest.$ac_ext <<_ACEOF
6953#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006954/* confdefs.h. */
6955_ACEOF
6956cat confdefs.h >>conftest.$ac_ext
6957cat >>conftest.$ac_ext <<_ACEOF
6958/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006959
John Criswell47fdd832003-07-14 16:52:07 +00006960int
6961main ()
6962{
John Criswell7a73b802003-06-30 21:59:07 +00006963
John Criswell47fdd832003-07-14 16:52:07 +00006964 ;
6965 return 0;
6966}
6967_ACEOF
6968rm -f conftest.$ac_objext conftest$ac_exeext
6969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6970 (eval $ac_link) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -s conftest$ac_exeext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006980
John Criswell47fdd832003-07-14 16:52:07 +00006981aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6982}'`
6983# Check for a 64-bit object if we didn't find anything.
6984if 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; }
6985}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006986else
John Criswell47fdd832003-07-14 16:52:07 +00006987 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006988sed 's/^/| /' conftest.$ac_ext >&5
6989
John Criswell47fdd832003-07-14 16:52:07 +00006990fi
6991rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6992if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006993
John Criswell47fdd832003-07-14 16:52:07 +00006994 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6995 # Warning - without using the other run time loading flags,
6996 # -berok will link without error, but may produce a broken library.
6997 no_undefined_flag=' ${wl}-bernotok'
6998 allow_undefined_flag=' ${wl}-berok'
6999 # -bexpall does not export symbols beginning with underscore (_)
7000 always_export_symbols=yes
7001 # Exported symbols can be pulled into shared objects from archives
7002 whole_archive_flag_spec=' '
7003 archive_cmds_need_lc=yes
7004 # This is similar to how AIX traditionally builds it's shared libraries.
7005 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 +00007006 fi
7007 fi
John Criswell7a73b802003-06-30 21:59:07 +00007008 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007009
7010 amigaos*)
7011 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)'
7012 hardcode_libdir_flag_spec='-L$libdir'
7013 hardcode_minus_L=yes
7014 # see comment about different semantics on the GNU ld section
7015 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007016 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007017
John Criswell47fdd832003-07-14 16:52:07 +00007018 bsdi4*)
7019 export_dynamic_flag_spec=-rdynamic
7020 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007021
John Criswell47fdd832003-07-14 16:52:07 +00007022 cygwin* | mingw* | pw32*)
7023 # When not using gcc, we currently assume that we are using
7024 # Microsoft Visual C++.
7025 # hardcode_libdir_flag_spec is actually meaningless, as there is
7026 # no search path for DLLs.
7027 hardcode_libdir_flag_spec=' '
7028 allow_undefined_flag=unsupported
7029 # Tell ltmain to make .lib files, not .a files.
7030 libext=lib
7031 # Tell ltmain to make .dll files, not .so files.
7032 shrext=".dll"
7033 # FIXME: Setting linknames here is a bad hack.
7034 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7035 # The linker will automatically build a .lib file if we build a DLL.
7036 old_archive_From_new_cmds='true'
7037 # FIXME: Should let the user specify the lib program.
7038 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7039 fix_srcfile_path='`cygpath -w "$srcfile"`'
7040 enable_shared_with_static_runtimes=yes
7041 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007042
John Criswell47fdd832003-07-14 16:52:07 +00007043 darwin* | rhapsody*)
7044 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7045 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007046 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007047 rhapsody* | darwin1.[012])
7048 allow_undefined_flag='-undefined suppress'
7049 ;;
7050 *) # Darwin 1.3 on
7051 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007052 ;;
7053 esac
John Criswell47fdd832003-07-14 16:52:07 +00007054 # FIXME: Relying on posixy $() will cause problems for
7055 # cross-compilation, but unfortunately the echo tests do not
7056 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7057 # `"' quotes if we put them in here... so don't!
7058 lt_int_apple_cc_single_mod=no
7059 output_verbose_link_cmd='echo'
7060 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7061 lt_int_apple_cc_single_mod=yes
7062 fi
7063 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7064 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7065 else
7066 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'
7067 fi
7068 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7069 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7070 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7071 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}'
7072 else
7073 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}'
7074 fi
7075 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}'
7076 hardcode_direct=no
7077 hardcode_automatic=yes
7078 hardcode_shlibpath_var=unsupported
7079 whole_archive_flag_spec='-all_load $convenience'
7080 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007081 fi
John Criswell47fdd832003-07-14 16:52:07 +00007082 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007083
John Criswell47fdd832003-07-14 16:52:07 +00007084 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007085 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007086 hardcode_libdir_flag_spec='-L$libdir'
7087 hardcode_shlibpath_var=no
7088 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007089
John Criswell47fdd832003-07-14 16:52:07 +00007090 freebsd1*)
7091 ld_shlibs=no
7092 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007093
John Criswell47fdd832003-07-14 16:52:07 +00007094 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7095 # support. Future versions do this automatically, but an explicit c++rt0.o
7096 # does not break anything, and helps significantly (at the cost of a little
7097 # extra space).
7098 freebsd2.2*)
7099 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7100 hardcode_libdir_flag_spec='-R$libdir'
7101 hardcode_direct=yes
7102 hardcode_shlibpath_var=no
7103 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007104
John Criswell47fdd832003-07-14 16:52:07 +00007105 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7106 freebsd2*)
7107 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7108 hardcode_direct=yes
7109 hardcode_minus_L=yes
7110 hardcode_shlibpath_var=no
7111 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007112
John Criswell47fdd832003-07-14 16:52:07 +00007113 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7114 freebsd*)
7115 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7116 hardcode_libdir_flag_spec='-R$libdir'
7117 hardcode_direct=yes
7118 hardcode_shlibpath_var=no
7119 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007120
John Criswell47fdd832003-07-14 16:52:07 +00007121 hpux9*)
7122 if test "$GCC" = yes; then
7123 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'
7124 else
7125 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'
7126 fi
7127 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7128 hardcode_libdir_separator=:
7129 hardcode_direct=yes
7130
7131 # hardcode_minus_L: Not really in the search PATH,
7132 # but as the default location of the library.
7133 hardcode_minus_L=yes
7134 export_dynamic_flag_spec='${wl}-E'
7135 ;;
7136
7137 hpux10* | hpux11*)
7138 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7139 case "$host_cpu" in
7140 hppa*64*|ia64*)
7141 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7142 ;;
7143 *)
7144 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7145 ;;
7146 esac
7147 else
7148 case "$host_cpu" in
7149 hppa*64*|ia64*)
7150 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7151 ;;
7152 *)
7153 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7154 ;;
7155 esac
7156 fi
7157 if test "$with_gnu_ld" = no; then
7158 case "$host_cpu" in
7159 hppa*64*)
7160 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7161 hardcode_libdir_flag_spec_ld='+b $libdir'
7162 hardcode_libdir_separator=:
7163 hardcode_direct=no
7164 hardcode_shlibpath_var=no
7165 ;;
7166 ia64*)
7167 hardcode_libdir_flag_spec='-L$libdir'
7168 hardcode_direct=no
7169 hardcode_shlibpath_var=no
7170
7171 # hardcode_minus_L: Not really in the search PATH,
7172 # but as the default location of the library.
7173 hardcode_minus_L=yes
7174 ;;
7175 *)
7176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7177 hardcode_libdir_separator=:
7178 hardcode_direct=yes
7179 export_dynamic_flag_spec='${wl}-E'
7180
7181 # hardcode_minus_L: Not really in the search PATH,
7182 # but as the default location of the library.
7183 hardcode_minus_L=yes
7184 ;;
7185 esac
7186 fi
7187 ;;
7188
7189 irix5* | irix6* | nonstopux*)
7190 if test "$GCC" = yes; then
7191 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'
7192 else
7193 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'
7194 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7195 fi
7196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7197 hardcode_libdir_separator=:
7198 link_all_deplibs=yes
7199 ;;
7200
7201 netbsd*)
7202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7204 else
7205 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7206 fi
7207 hardcode_libdir_flag_spec='-R$libdir'
7208 hardcode_direct=yes
7209 hardcode_shlibpath_var=no
7210 ;;
7211
7212 newsos6)
7213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7214 hardcode_direct=yes
7215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7216 hardcode_libdir_separator=:
7217 hardcode_shlibpath_var=no
7218 ;;
7219
7220 openbsd*)
7221 hardcode_direct=yes
7222 hardcode_shlibpath_var=no
7223 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7224 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7225 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7226 export_dynamic_flag_spec='${wl}-E'
7227 else
7228 case $host_os in
7229 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7231 hardcode_libdir_flag_spec='-R$libdir'
7232 ;;
7233 *)
7234 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7236 ;;
7237 esac
7238 fi
7239 ;;
7240
7241 os2*)
7242 hardcode_libdir_flag_spec='-L$libdir'
7243 hardcode_minus_L=yes
7244 allow_undefined_flag=unsupported
7245 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'
7246 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7247 ;;
7248
7249 osf3*)
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7253 else
7254 allow_undefined_flag=' -expect_unresolved \*'
7255 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'
7256 fi
7257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7258 hardcode_libdir_separator=:
7259 ;;
7260
7261 osf4* | osf5*) # as osf3* with the addition of -msym flag
7262 if test "$GCC" = yes; then
7263 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7264 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'
7265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7266 else
7267 allow_undefined_flag=' -expect_unresolved \*'
7268 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'
7269 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7270 $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'
7271
7272 # Both c and cxx compiler support -rpath directly
7273 hardcode_libdir_flag_spec='-rpath $libdir'
7274 fi
7275 hardcode_libdir_separator=:
7276 ;;
7277
7278 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7280 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007281 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007282 runpath_var=LD_RUN_PATH
7283 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007284 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007285
John Criswell47fdd832003-07-14 16:52:07 +00007286 solaris*)
7287 no_undefined_flag=' -z text'
7288 if test "$GCC" = yes; then
7289 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7290 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7291 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7292 else
7293 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7294 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7295 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7296 fi
7297 hardcode_libdir_flag_spec='-R$libdir'
7298 hardcode_shlibpath_var=no
7299 case $host_os in
7300 solaris2.[0-5] | solaris2.[0-5].*) ;;
7301 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7302 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7303 esac
7304 link_all_deplibs=yes
7305 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007306
John Criswell47fdd832003-07-14 16:52:07 +00007307 sunos4*)
7308 if test "x$host_vendor" = xsequent; then
7309 # Use $CC to link under sequent, because it throws in some extra .o
7310 # files that make .init and .fini sections work.
7311 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7312 else
7313 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7314 fi
7315 hardcode_libdir_flag_spec='-L$libdir'
7316 hardcode_direct=yes
7317 hardcode_minus_L=yes
7318 hardcode_shlibpath_var=no
7319 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007320
John Criswell47fdd832003-07-14 16:52:07 +00007321 sysv4)
7322 case $host_vendor in
7323 sni)
7324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325 hardcode_direct=yes # is this really true???
7326 ;;
7327 siemens)
7328 ## LD is ld it makes a PLAMLIB
7329 ## CC just makes a GrossModule.
7330 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7331 reload_cmds='$CC -r -o $output$reload_objs'
7332 hardcode_direct=no
7333 ;;
7334 motorola)
7335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7336 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7337 ;;
7338 esac
7339 runpath_var='LD_RUN_PATH'
7340 hardcode_shlibpath_var=no
7341 ;;
7342
7343 sysv4.3*)
7344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7345 hardcode_shlibpath_var=no
7346 export_dynamic_flag_spec='-Bexport'
7347 ;;
7348
7349 sysv4*MP*)
7350 if test -d /usr/nec; then
7351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7352 hardcode_shlibpath_var=no
7353 runpath_var=LD_RUN_PATH
7354 hardcode_runpath_var=yes
7355 ld_shlibs=yes
7356 fi
7357 ;;
7358
7359 sysv4.2uw2*)
7360 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7361 hardcode_direct=yes
7362 hardcode_minus_L=no
7363 hardcode_shlibpath_var=no
7364 hardcode_runpath_var=yes
7365 runpath_var=LD_RUN_PATH
7366 ;;
7367
7368 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7369 no_undefined_flag='${wl}-z ${wl}text'
7370 if test "$GCC" = yes; then
7371 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7372 else
7373 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7374 fi
7375 runpath_var='LD_RUN_PATH'
7376 hardcode_shlibpath_var=no
7377 ;;
7378
7379 sysv5*)
7380 no_undefined_flag=' -z text'
7381 # $CC -shared without GNU ld will not create a library from C++
7382 # object files and a static libstdc++, better avoid it by now
7383 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7384 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7385 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7386 hardcode_libdir_flag_spec=
7387 hardcode_shlibpath_var=no
7388 runpath_var='LD_RUN_PATH'
7389 ;;
7390
7391 uts4*)
7392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7393 hardcode_libdir_flag_spec='-L$libdir'
7394 hardcode_shlibpath_var=no
7395 ;;
7396
7397 *)
7398 ld_shlibs=no
7399 ;;
7400 esac
7401 fi
7402
John Criswell7a73b802003-06-30 21:59:07 +00007403echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7404echo "${ECHO_T}$ld_shlibs" >&6
7405test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007406
John Criswell47fdd832003-07-14 16:52:07 +00007407variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7408if test "$GCC" = yes; then
7409 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7410fi
7411
7412#
7413# Do we need to explicitly link libc?
7414#
7415case "x$archive_cmds_need_lc" in
7416x|xyes)
7417 # Assume -lc should be added
7418 archive_cmds_need_lc=yes
7419
7420 if test "$enable_shared" = yes && test "$GCC" = yes; then
7421 case $archive_cmds in
7422 *'~'*)
7423 # FIXME: we may have to deal with multi-command sequences.
7424 ;;
7425 '$CC '*)
7426 # Test whether the compiler implicitly links with -lc since on some
7427 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7428 # to ld, don't add -lc before -lgcc.
7429 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7430echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7431 $rm conftest*
7432 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7433
7434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7435 (eval $ac_compile) 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } 2>conftest.err; then
7439 soname=conftest
7440 lib=conftest
7441 libobjs=conftest.$ac_objext
7442 deplibs=
7443 wl=$lt_prog_compiler_wl
7444 compiler_flags=-v
7445 linker_flags=-v
7446 verstring=
7447 output_objdir=.
7448 libname=conftest
7449 lt_save_allow_undefined_flag=$allow_undefined_flag
7450 allow_undefined_flag=
7451 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7452 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }
7456 then
7457 archive_cmds_need_lc=no
7458 else
7459 archive_cmds_need_lc=yes
7460 fi
7461 allow_undefined_flag=$lt_save_allow_undefined_flag
7462 else
7463 cat conftest.err 1>&5
7464 fi
7465 $rm conftest*
7466 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7467echo "${ECHO_T}$archive_cmds_need_lc" >&6
7468 ;;
7469 esac
7470 fi
7471 ;;
7472esac
7473
John Criswell7a73b802003-06-30 21:59:07 +00007474echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7475echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7476hardcode_action=
7477if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007478 test -n "$runpath_var " || \
7479 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007480
7481 # We can hardcode non-existant directories.
7482 if test "$hardcode_direct" != no &&
7483 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7484 # have to relink, otherwise we might link with an installed library
7485 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007486 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007487 test "$hardcode_minus_L" != no; then
7488 # Linking always hardcodes the temporary library directory.
7489 hardcode_action=relink
7490 else
7491 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7492 hardcode_action=immediate
7493 fi
7494else
7495 # We cannot hardcode anything, or else we can only hardcode existing
7496 # directories.
7497 hardcode_action=unsupported
7498fi
7499echo "$as_me:$LINENO: result: $hardcode_action" >&5
7500echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007501
John Criswell47fdd832003-07-14 16:52:07 +00007502if test "$hardcode_action" = relink; then
7503 # Fast installation is not supported
7504 enable_fast_install=no
7505elif test "$shlibpath_overrides_runpath" = yes ||
7506 test "$enable_shared" = no; then
7507 # Fast installation is not necessary
7508 enable_fast_install=needless
7509fi
7510
John Criswell7a73b802003-06-30 21:59:07 +00007511striplib=
7512old_striplib=
7513echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7514echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7515if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7516 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7517 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7518 echo "$as_me:$LINENO: result: yes" >&5
7519echo "${ECHO_T}yes" >&6
7520else
John Criswell47fdd832003-07-14 16:52:07 +00007521# FIXME - insert some real tests, host_os isn't really good enough
7522 case $host_os in
7523 darwin*)
7524 if test -n "$STRIP" ; then
7525 striplib="$STRIP -x"
7526 echo "$as_me:$LINENO: result: yes" >&5
7527echo "${ECHO_T}yes" >&6
7528 else
John Criswell7a73b802003-06-30 21:59:07 +00007529 echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6
7531fi
John Criswell47fdd832003-07-14 16:52:07 +00007532 ;;
7533 *)
7534 echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6
7536 ;;
7537 esac
7538fi
John Criswell7a73b802003-06-30 21:59:07 +00007539
John Criswell7a73b802003-06-30 21:59:07 +00007540echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7541echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7542library_names_spec=
7543libname_spec='lib$name'
7544soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007545shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007546postinstall_cmds=
7547postuninstall_cmds=
7548finish_cmds=
7549finish_eval=
7550shlibpath_var=
7551shlibpath_overrides_runpath=unknown
7552version_type=none
7553dynamic_linker="$host_os ld.so"
7554sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007555if test "$GCC" = yes; then
7556 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7557 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7558 # if the path contains ";" then we assume it to be the separator
7559 # otherwise default to the standard path separator (i.e. ":") - it is
7560 # assumed that no part of a normal pathname contains ";" but that should
7561 # okay in the real world where ";" in dirpaths is itself problematic.
7562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7563 else
7564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7565 fi
7566else
7567 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7568fi
7569need_lib_prefix=unknown
7570hardcode_into_libs=no
7571
7572# when you set need_version to no, make sure it does not cause -set_version
7573# flags to be left without arguments
7574need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007575
7576case $host_os in
7577aix3*)
7578 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007579 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007580 shlibpath_var=LIBPATH
7581
John Criswell47fdd832003-07-14 16:52:07 +00007582 # AIX 3 has no versioning support, so we append a major version to the name.
7583 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007584 ;;
7585
7586aix4* | aix5*)
7587 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007588 need_lib_prefix=no
7589 need_version=no
7590 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007591 if test "$host_cpu" = ia64; then
7592 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007593 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007594 shlibpath_var=LD_LIBRARY_PATH
7595 else
7596 # With GCC up to 2.95.x, collect2 would create an import file
7597 # for dependence libraries. The import file would start with
7598 # the line `#! .'. This would cause the generated library to
7599 # depend on `.', always an invalid library. This was fixed in
7600 # development snapshots of GCC prior to 3.0.
7601 case $host_os in
7602 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007603 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7604 echo ' yes '
7605 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7606 :
7607 else
7608 can_build_shared=no
7609 fi
7610 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007611 esac
John Criswell47fdd832003-07-14 16:52:07 +00007612 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7613 # soname into executable. Probably we can add versioning support to
7614 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007615 if test "$aix_use_runtimelinking" = yes; then
7616 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7617 # instead of lib<name>.a to let people know that these are not
7618 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007620 else
7621 # We preserve .a as extension for shared libraries through AIX4.2
7622 # and later when we are not doing run time linking.
7623 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007624 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007625 fi
7626 shlibpath_var=LIBPATH
7627 fi
7628 ;;
7629
7630amigaos*)
7631 library_names_spec='$libname.ixlibrary $libname.a'
7632 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7633 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'
7634 ;;
7635
7636beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007637 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007638 dynamic_linker="$host_os ld.so"
7639 shlibpath_var=LIBRARY_PATH
7640 ;;
7641
7642bsdi4*)
7643 version_type=linux
7644 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7646 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007647 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7648 shlibpath_var=LD_LIBRARY_PATH
7649 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7650 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007651 # the default ld.so.conf also contains /usr/contrib/lib and
7652 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7653 # libtool to hard-code these into programs
7654 ;;
7655
7656cygwin* | mingw* | pw32*)
7657 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007658 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007659 need_version=no
7660 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007661
John Criswell7a73b802003-06-30 21:59:07 +00007662 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007663 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007664 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007665 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7666 postinstall_cmds='base_file=`basename \${file}`~
7667 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007668 dldir=$destdir/`dirname \$dlpath`~
7669 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007670 $install_prog $dir/$dlname \$dldir/$dlname'
7671 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007672 dlpath=$dir/\$dldll~
7673 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007674 shlibpath_overrides_runpath=yes
7675
7676 case $host_os in
7677 cygwin*)
7678 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7679 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7680 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7681 ;;
7682 mingw*)
7683 # MinGW DLLs use traditional 'lib' prefix
7684 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7685 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7686 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7687 # It is most probably a Windows format PATH printed by
7688 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7689 # path with ; separators, and with drive letters. We can handle the
7690 # drive letters (cygwin fileutils understands them), so leave them,
7691 # especially as we might pass files found there to a mingw objdump,
7692 # which wouldn't understand a cygwinified path. Ahh.
7693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7694 else
7695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7696 fi
7697 ;;
7698 pw32*)
7699 # pw32 DLLs use 'pw' prefix rather than 'lib'
7700 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7701 ;;
7702 esac
John Criswell7a73b802003-06-30 21:59:07 +00007703 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007704
John Criswell7a73b802003-06-30 21:59:07 +00007705 *)
John Criswell47fdd832003-07-14 16:52:07 +00007706 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007707 ;;
7708 esac
7709 dynamic_linker='Win32 ld.exe'
7710 # FIXME: first we should search . and the directory the executable is in
7711 shlibpath_var=PATH
7712 ;;
7713
7714darwin* | rhapsody*)
7715 dynamic_linker="$host_os dyld"
7716 version_type=darwin
7717 need_lib_prefix=no
7718 need_version=no
7719 # FIXME: Relying on posixy $() will cause problems for
7720 # cross-compilation, but unfortunately the echo tests do not
7721 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007722 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7723 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007724 shlibpath_overrides_runpath=yes
7725 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007726 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7727 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7728 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7729 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"`
7730 fi
7731 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7732 ;;
7733
7734dgux*)
7735 version_type=linux
7736 need_lib_prefix=no
7737 need_version=no
7738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7739 soname_spec='${libname}${release}${shared_ext}$major'
7740 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007741 ;;
7742
7743freebsd1*)
7744 dynamic_linker=no
7745 ;;
7746
7747freebsd*)
7748 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7749 version_type=freebsd-$objformat
7750 case $version_type in
7751 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007753 need_version=no
7754 need_lib_prefix=no
7755 ;;
7756 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007758 need_version=yes
7759 ;;
7760 esac
7761 shlibpath_var=LD_LIBRARY_PATH
7762 case $host_os in
7763 freebsd2*)
7764 shlibpath_overrides_runpath=yes
7765 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007766 freebsd3.01* | freebsdelf3.01*)
7767 shlibpath_overrides_runpath=yes
7768 hardcode_into_libs=yes
7769 ;;
7770 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007771 shlibpath_overrides_runpath=no
7772 hardcode_into_libs=yes
7773 ;;
7774 esac
7775 ;;
7776
7777gnu*)
7778 version_type=linux
7779 need_lib_prefix=no
7780 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7782 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007783 shlibpath_var=LD_LIBRARY_PATH
7784 hardcode_into_libs=yes
7785 ;;
7786
7787hpux9* | hpux10* | hpux11*)
7788 # Give a soname corresponding to the major version so that dld.sl refuses to
7789 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007790 version_type=sunos
7791 need_lib_prefix=no
7792 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007793 case "$host_cpu" in
7794 ia64*)
7795 shrext='.so'
7796 hardcode_into_libs=yes
7797 dynamic_linker="$host_os dld.so"
7798 shlibpath_var=LD_LIBRARY_PATH
7799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7801 soname_spec='${libname}${release}${shared_ext}$major'
7802 if test "X$HPUX_IA64_MODE" = X32; then
7803 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7804 else
7805 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7806 fi
7807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7808 ;;
7809 hppa*64*)
7810 shrext='.sl'
7811 hardcode_into_libs=yes
7812 dynamic_linker="$host_os dld.sl"
7813 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7816 soname_spec='${libname}${release}${shared_ext}$major'
7817 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7819 ;;
7820 *)
7821 shrext='.sl'
7822 dynamic_linker="$host_os dld.sl"
7823 shlibpath_var=SHLIB_PATH
7824 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7826 soname_spec='${libname}${release}${shared_ext}$major'
7827 ;;
7828 esac
John Criswell7a73b802003-06-30 21:59:07 +00007829 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7830 postinstall_cmds='chmod 555 $lib'
7831 ;;
7832
John Criswell47fdd832003-07-14 16:52:07 +00007833irix5* | irix6* | nonstopux*)
7834 case $host_os in
7835 nonstopux*) version_type=nonstopux ;;
7836 *)
7837 if test "$lt_cv_prog_gnu_ld" = yes; then
7838 version_type=linux
7839 else
7840 version_type=irix
7841 fi ;;
7842 esac
John Criswell7a73b802003-06-30 21:59:07 +00007843 need_lib_prefix=no
7844 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007845 soname_spec='${libname}${release}${shared_ext}$major'
7846 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 +00007847 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007848 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007849 libsuff= shlibsuff=
7850 ;;
7851 *)
7852 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007853 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7854 libsuff= shlibsuff= libmagic=32-bit;;
7855 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7856 libsuff=32 shlibsuff=N32 libmagic=N32;;
7857 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7858 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007859 *) libsuff= shlibsuff= libmagic=never-match;;
7860 esac
7861 ;;
7862 esac
7863 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7864 shlibpath_overrides_runpath=no
7865 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7866 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007867 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007868 ;;
7869
7870# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007871linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007872 dynamic_linker=no
7873 ;;
7874
7875# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007876linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007877 version_type=linux
7878 need_lib_prefix=no
7879 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7881 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7883 shlibpath_var=LD_LIBRARY_PATH
7884 shlibpath_overrides_runpath=no
7885 # This implies no fast_install, which is unacceptable.
7886 # Some rework will be needed to allow for fast_install
7887 # before this can be enabled.
7888 hardcode_into_libs=yes
7889
7890 # We used to test for /lib/ld.so.1 and disable shared libraries on
7891 # powerpc, because MkLinux only supported shared libraries with the
7892 # GNU dynamic linker. Since this was broken with cross compilers,
7893 # most powerpc-linux boxes support dynamic linking these days and
7894 # people can always --disable-shared, the test was removed, and we
7895 # assume the GNU/Linux dynamic linker is in use.
7896 dynamic_linker='GNU/Linux ld.so'
7897 ;;
7898
7899netbsd*)
7900 version_type=sunos
7901 need_lib_prefix=no
7902 need_version=no
7903 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7906 dynamic_linker='NetBSD (a.out) ld.so'
7907 else
John Criswell47fdd832003-07-14 16:52:07 +00007908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7909 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007910 dynamic_linker='NetBSD ld.elf_so'
7911 fi
7912 shlibpath_var=LD_LIBRARY_PATH
7913 shlibpath_overrides_runpath=yes
7914 hardcode_into_libs=yes
7915 ;;
7916
7917newsos6)
7918 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7920 shlibpath_var=LD_LIBRARY_PATH
7921 shlibpath_overrides_runpath=yes
7922 ;;
7923
7924nto-qnx)
7925 version_type=linux
7926 need_lib_prefix=no
7927 need_version=no
7928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7929 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007930 shlibpath_var=LD_LIBRARY_PATH
7931 shlibpath_overrides_runpath=yes
7932 ;;
7933
7934openbsd*)
7935 version_type=sunos
7936 need_lib_prefix=no
7937 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7940 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007941 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 +00007942 case $host_os in
7943 openbsd2.[89] | openbsd2.[89].*)
7944 shlibpath_overrides_runpath=no
7945 ;;
7946 *)
7947 shlibpath_overrides_runpath=yes
7948 ;;
7949 esac
John Criswell7a73b802003-06-30 21:59:07 +00007950 else
7951 shlibpath_overrides_runpath=yes
7952 fi
John Criswell7a73b802003-06-30 21:59:07 +00007953 ;;
7954
7955os2*)
7956 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007957 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007958 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007959 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007960 dynamic_linker='OS/2 ld.exe'
7961 shlibpath_var=LIBPATH
7962 ;;
7963
7964osf3* | osf4* | osf5*)
7965 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007966 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007967 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007968 soname_spec='${libname}${release}${shared_ext}$major'
7969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007970 shlibpath_var=LD_LIBRARY_PATH
7971 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7972 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7973 ;;
7974
7975sco3.2v5*)
7976 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007977 soname_spec='${libname}${release}${shared_ext}$major'
7978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007979 shlibpath_var=LD_LIBRARY_PATH
7980 ;;
7981
7982solaris*)
7983 version_type=linux
7984 need_lib_prefix=no
7985 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7987 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007988 shlibpath_var=LD_LIBRARY_PATH
7989 shlibpath_overrides_runpath=yes
7990 hardcode_into_libs=yes
7991 # ldd complains unless libraries are executable
7992 postinstall_cmds='chmod +x $lib'
7993 ;;
7994
7995sunos4*)
7996 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007998 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7999 shlibpath_var=LD_LIBRARY_PATH
8000 shlibpath_overrides_runpath=yes
8001 if test "$with_gnu_ld" = yes; then
8002 need_lib_prefix=no
8003 fi
8004 need_version=yes
8005 ;;
8006
8007sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8008 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8010 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008011 shlibpath_var=LD_LIBRARY_PATH
8012 case $host_vendor in
8013 sni)
8014 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008015 need_lib_prefix=no
8016 export_dynamic_flag_spec='${wl}-Blargedynsym'
8017 runpath_var=LD_RUN_PATH
8018 ;;
8019 siemens)
8020 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008021 ;;
8022 motorola)
8023 need_lib_prefix=no
8024 need_version=no
8025 shlibpath_overrides_runpath=no
8026 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8027 ;;
8028 esac
8029 ;;
8030
John Criswell7a73b802003-06-30 21:59:07 +00008031sysv4*MP*)
8032 if test -d /usr/nec ;then
8033 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008034 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8035 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008036 shlibpath_var=LD_LIBRARY_PATH
8037 fi
8038 ;;
8039
John Criswell47fdd832003-07-14 16:52:07 +00008040uts4*)
8041 version_type=linux
8042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8043 soname_spec='${libname}${release}${shared_ext}$major'
8044 shlibpath_var=LD_LIBRARY_PATH
8045 ;;
8046
John Criswell7a73b802003-06-30 21:59:07 +00008047*)
8048 dynamic_linker=no
8049 ;;
8050esac
8051echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8052echo "${ECHO_T}$dynamic_linker" >&6
8053test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008054
8055if test "x$enable_dlopen" != xyes; then
8056 enable_dlopen=unknown
8057 enable_dlopen_self=unknown
8058 enable_dlopen_self_static=unknown
8059else
8060 lt_cv_dlopen=no
8061 lt_cv_dlopen_libs=
8062
8063 case $host_os in
8064 beos*)
8065 lt_cv_dlopen="load_add_on"
8066 lt_cv_dlopen_libs=
8067 lt_cv_dlopen_self=yes
8068 ;;
8069
John Criswell47fdd832003-07-14 16:52:07 +00008070 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008071 lt_cv_dlopen="LoadLibrary"
8072 lt_cv_dlopen_libs=
8073 ;;
8074
John Criswell47fdd832003-07-14 16:52:07 +00008075 cygwin*)
8076 lt_cv_dlopen="dlopen"
8077 lt_cv_dlopen_libs=
8078 ;;
8079
8080 darwin*)
8081 # if libdl is installed we need to link against it
8082 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8083echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8084if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8086else
8087 ac_check_lib_save_LIBS=$LIBS
8088LIBS="-ldl $LIBS"
8089cat >conftest.$ac_ext <<_ACEOF
8090#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008091/* confdefs.h. */
8092_ACEOF
8093cat confdefs.h >>conftest.$ac_ext
8094cat >>conftest.$ac_ext <<_ACEOF
8095/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008096
8097/* Override any gcc2 internal prototype to avoid an error. */
8098#ifdef __cplusplus
8099extern "C"
8100#endif
8101/* We use char because int might match the return type of a gcc2
8102 builtin and then its argument prototype would still apply. */
8103char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008104int
8105main ()
8106{
8107dlopen ();
8108 ;
8109 return 0;
8110}
8111_ACEOF
8112rm -f conftest.$ac_objext conftest$ac_exeext
8113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8114 (eval $ac_link) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -s conftest$ac_exeext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_lib_dl_dlopen=yes
8125else
8126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008127sed 's/^/| /' conftest.$ac_ext >&5
8128
John Criswell47fdd832003-07-14 16:52:07 +00008129ac_cv_lib_dl_dlopen=no
8130fi
8131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8132LIBS=$ac_check_lib_save_LIBS
8133fi
8134echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8135echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8136if test $ac_cv_lib_dl_dlopen = yes; then
8137 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8138else
8139
8140 lt_cv_dlopen="dyld"
8141 lt_cv_dlopen_libs=
8142 lt_cv_dlopen_self=yes
8143
8144fi
8145
8146 ;;
8147
John Criswell7a73b802003-06-30 21:59:07 +00008148 *)
8149 echo "$as_me:$LINENO: checking for shl_load" >&5
8150echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8151if test "${ac_cv_func_shl_load+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153else
8154 cat >conftest.$ac_ext <<_ACEOF
8155#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008156/* confdefs.h. */
8157_ACEOF
8158cat confdefs.h >>conftest.$ac_ext
8159cat >>conftest.$ac_ext <<_ACEOF
8160/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008161/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008162 which can conflict with char shl_load (); below.
8163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8164 <limits.h> exists even on freestanding compilers. */
8165#ifdef __STDC__
8166# include <limits.h>
8167#else
8168# include <assert.h>
8169#endif
John Criswell7a73b802003-06-30 21:59:07 +00008170/* Override any gcc2 internal prototype to avoid an error. */
8171#ifdef __cplusplus
8172extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008173{
John Criswell7a73b802003-06-30 21:59:07 +00008174#endif
8175/* We use char because int might match the return type of a gcc2
8176 builtin and then its argument prototype would still apply. */
8177char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008178/* The GNU C library defines this for functions which it implements
8179 to always fail with ENOSYS. Some functions are actually named
8180 something starting with __ and the normal name is an alias. */
8181#if defined (__stub_shl_load) || defined (__stub___shl_load)
8182choke me
8183#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008184char (*f) () = shl_load;
8185#endif
8186#ifdef __cplusplus
8187}
John Criswell7a73b802003-06-30 21:59:07 +00008188#endif
8189
John Criswell0c38eaf2003-09-10 15:17:25 +00008190int
8191main ()
8192{
8193return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008194 ;
8195 return 0;
8196}
8197_ACEOF
8198rm -f conftest.$ac_objext conftest$ac_exeext
8199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8200 (eval $ac_link) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } &&
8204 { ac_try='test -s conftest$ac_exeext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_cv_func_shl_load=yes
8211else
8212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008213sed 's/^/| /' conftest.$ac_ext >&5
8214
John Criswell7a73b802003-06-30 21:59:07 +00008215ac_cv_func_shl_load=no
8216fi
8217rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8218fi
8219echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8220echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8221if test $ac_cv_func_shl_load = yes; then
8222 lt_cv_dlopen="shl_load"
8223else
8224 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8225echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8226if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229 ac_check_lib_save_LIBS=$LIBS
8230LIBS="-ldld $LIBS"
8231cat >conftest.$ac_ext <<_ACEOF
8232#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008233/* confdefs.h. */
8234_ACEOF
8235cat confdefs.h >>conftest.$ac_ext
8236cat >>conftest.$ac_ext <<_ACEOF
8237/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008238
8239/* Override any gcc2 internal prototype to avoid an error. */
8240#ifdef __cplusplus
8241extern "C"
8242#endif
8243/* We use char because int might match the return type of a gcc2
8244 builtin and then its argument prototype would still apply. */
8245char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008246int
8247main ()
8248{
8249shl_load ();
8250 ;
8251 return 0;
8252}
8253_ACEOF
8254rm -f conftest.$ac_objext conftest$ac_exeext
8255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8256 (eval $ac_link) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } &&
8260 { ac_try='test -s conftest$ac_exeext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 ac_cv_lib_dld_shl_load=yes
8267else
8268 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008269sed 's/^/| /' conftest.$ac_ext >&5
8270
John Criswell7a73b802003-06-30 21:59:07 +00008271ac_cv_lib_dld_shl_load=no
8272fi
8273rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8274LIBS=$ac_check_lib_save_LIBS
8275fi
8276echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8277echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8278if test $ac_cv_lib_dld_shl_load = yes; then
8279 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8280else
8281 echo "$as_me:$LINENO: checking for dlopen" >&5
8282echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8283if test "${ac_cv_func_dlopen+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285else
8286 cat >conftest.$ac_ext <<_ACEOF
8287#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008288/* confdefs.h. */
8289_ACEOF
8290cat confdefs.h >>conftest.$ac_ext
8291cat >>conftest.$ac_ext <<_ACEOF
8292/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008293/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008294 which can conflict with char dlopen (); below.
8295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8296 <limits.h> exists even on freestanding compilers. */
8297#ifdef __STDC__
8298# include <limits.h>
8299#else
8300# include <assert.h>
8301#endif
John Criswell7a73b802003-06-30 21:59:07 +00008302/* Override any gcc2 internal prototype to avoid an error. */
8303#ifdef __cplusplus
8304extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008305{
John Criswell7a73b802003-06-30 21:59:07 +00008306#endif
8307/* We use char because int might match the return type of a gcc2
8308 builtin and then its argument prototype would still apply. */
8309char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008310/* The GNU C library defines this for functions which it implements
8311 to always fail with ENOSYS. Some functions are actually named
8312 something starting with __ and the normal name is an alias. */
8313#if defined (__stub_dlopen) || defined (__stub___dlopen)
8314choke me
8315#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008316char (*f) () = dlopen;
8317#endif
8318#ifdef __cplusplus
8319}
John Criswell7a73b802003-06-30 21:59:07 +00008320#endif
8321
John Criswell0c38eaf2003-09-10 15:17:25 +00008322int
8323main ()
8324{
8325return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008326 ;
8327 return 0;
8328}
8329_ACEOF
8330rm -f conftest.$ac_objext conftest$ac_exeext
8331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8332 (eval $ac_link) 2>&5
8333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -s conftest$ac_exeext'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 ac_cv_func_dlopen=yes
8343else
8344 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008345sed 's/^/| /' conftest.$ac_ext >&5
8346
John Criswell7a73b802003-06-30 21:59:07 +00008347ac_cv_func_dlopen=no
8348fi
8349rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8350fi
8351echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8352echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8353if test $ac_cv_func_dlopen = yes; then
8354 lt_cv_dlopen="dlopen"
8355else
8356 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8357echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8358if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8360else
8361 ac_check_lib_save_LIBS=$LIBS
8362LIBS="-ldl $LIBS"
8363cat >conftest.$ac_ext <<_ACEOF
8364#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008365/* confdefs.h. */
8366_ACEOF
8367cat confdefs.h >>conftest.$ac_ext
8368cat >>conftest.$ac_ext <<_ACEOF
8369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008370
8371/* Override any gcc2 internal prototype to avoid an error. */
8372#ifdef __cplusplus
8373extern "C"
8374#endif
8375/* We use char because int might match the return type of a gcc2
8376 builtin and then its argument prototype would still apply. */
8377char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008378int
8379main ()
8380{
8381dlopen ();
8382 ;
8383 return 0;
8384}
8385_ACEOF
8386rm -f conftest.$ac_objext conftest$ac_exeext
8387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388 (eval $ac_link) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -s conftest$ac_exeext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 (eval $ac_try) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 ac_cv_lib_dl_dlopen=yes
8399else
8400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008401sed 's/^/| /' conftest.$ac_ext >&5
8402
John Criswell7a73b802003-06-30 21:59:07 +00008403ac_cv_lib_dl_dlopen=no
8404fi
8405rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8406LIBS=$ac_check_lib_save_LIBS
8407fi
8408echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8409echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8410if test $ac_cv_lib_dl_dlopen = yes; then
8411 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8412else
8413 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8414echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8415if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8417else
8418 ac_check_lib_save_LIBS=$LIBS
8419LIBS="-lsvld $LIBS"
8420cat >conftest.$ac_ext <<_ACEOF
8421#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008422/* confdefs.h. */
8423_ACEOF
8424cat confdefs.h >>conftest.$ac_ext
8425cat >>conftest.$ac_ext <<_ACEOF
8426/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008427
8428/* Override any gcc2 internal prototype to avoid an error. */
8429#ifdef __cplusplus
8430extern "C"
8431#endif
8432/* We use char because int might match the return type of a gcc2
8433 builtin and then its argument prototype would still apply. */
8434char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008435int
8436main ()
8437{
8438dlopen ();
8439 ;
8440 return 0;
8441}
8442_ACEOF
8443rm -f conftest.$ac_objext conftest$ac_exeext
8444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8445 (eval $ac_link) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } &&
8449 { ac_try='test -s conftest$ac_exeext'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 (eval $ac_try) 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; }; then
8455 ac_cv_lib_svld_dlopen=yes
8456else
8457 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008458sed 's/^/| /' conftest.$ac_ext >&5
8459
John Criswell7a73b802003-06-30 21:59:07 +00008460ac_cv_lib_svld_dlopen=no
8461fi
8462rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8463LIBS=$ac_check_lib_save_LIBS
8464fi
8465echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8466echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8467if test $ac_cv_lib_svld_dlopen = yes; then
8468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8469else
8470 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8471echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8472if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8474else
8475 ac_check_lib_save_LIBS=$LIBS
8476LIBS="-ldld $LIBS"
8477cat >conftest.$ac_ext <<_ACEOF
8478#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008479/* confdefs.h. */
8480_ACEOF
8481cat confdefs.h >>conftest.$ac_ext
8482cat >>conftest.$ac_ext <<_ACEOF
8483/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008484
8485/* Override any gcc2 internal prototype to avoid an error. */
8486#ifdef __cplusplus
8487extern "C"
8488#endif
8489/* We use char because int might match the return type of a gcc2
8490 builtin and then its argument prototype would still apply. */
8491char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008492int
8493main ()
8494{
8495dld_link ();
8496 ;
8497 return 0;
8498}
8499_ACEOF
8500rm -f conftest.$ac_objext conftest$ac_exeext
8501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8502 (eval $ac_link) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -s conftest$ac_exeext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 (eval $ac_try) 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_lib_dld_dld_link=yes
8513else
8514 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008515sed 's/^/| /' conftest.$ac_ext >&5
8516
John Criswell7a73b802003-06-30 21:59:07 +00008517ac_cv_lib_dld_dld_link=no
8518fi
8519rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8520LIBS=$ac_check_lib_save_LIBS
8521fi
8522echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8523echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8524if test $ac_cv_lib_dld_dld_link = yes; then
8525 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8526fi
8527
8528
8529fi
8530
8531
8532fi
8533
8534
8535fi
8536
8537
8538fi
8539
8540
8541fi
8542
8543 ;;
8544 esac
8545
8546 if test "x$lt_cv_dlopen" != xno; then
8547 enable_dlopen=yes
8548 else
8549 enable_dlopen=no
8550 fi
8551
8552 case $lt_cv_dlopen in
8553 dlopen)
8554 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008555 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008556
8557 save_LDFLAGS="$LDFLAGS"
8558 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8559
8560 save_LIBS="$LIBS"
8561 LIBS="$lt_cv_dlopen_libs $LIBS"
8562
8563 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8564echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8565if test "${lt_cv_dlopen_self+set}" = set; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8567else
8568 if test "$cross_compiling" = yes; then :
8569 lt_cv_dlopen_self=cross
8570else
John Criswell47fdd832003-07-14 16:52:07 +00008571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008572 lt_status=$lt_dlunknown
8573 cat > conftest.$ac_ext <<EOF
John Criswell987e49c2003-10-10 01:11:54 +00008574#line 8574 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008575#include "confdefs.h"
8576
8577#if HAVE_DLFCN_H
8578#include <dlfcn.h>
8579#endif
8580
8581#include <stdio.h>
8582
8583#ifdef RTLD_GLOBAL
8584# define LT_DLGLOBAL RTLD_GLOBAL
8585#else
8586# ifdef DL_GLOBAL
8587# define LT_DLGLOBAL DL_GLOBAL
8588# else
8589# define LT_DLGLOBAL 0
8590# endif
8591#endif
8592
8593/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8594 find out it does not work in some platform. */
8595#ifndef LT_DLLAZY_OR_NOW
8596# ifdef RTLD_LAZY
8597# define LT_DLLAZY_OR_NOW RTLD_LAZY
8598# else
8599# ifdef DL_LAZY
8600# define LT_DLLAZY_OR_NOW DL_LAZY
8601# else
8602# ifdef RTLD_NOW
8603# define LT_DLLAZY_OR_NOW RTLD_NOW
8604# else
8605# ifdef DL_NOW
8606# define LT_DLLAZY_OR_NOW DL_NOW
8607# else
8608# define LT_DLLAZY_OR_NOW 0
8609# endif
8610# endif
8611# endif
8612# endif
8613#endif
8614
8615#ifdef __cplusplus
8616extern "C" void exit (int);
8617#endif
8618
8619void fnord() { int i=42;}
8620int main ()
8621{
8622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8623 int status = $lt_dlunknown;
8624
8625 if (self)
8626 {
8627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8628 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8629 /* dlclose (self); */
8630 }
8631
8632 exit (status);
8633}
8634EOF
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636 (eval $ac_link) 2>&5
8637 ac_status=$?
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8640 (./conftest; exit; ) 2>/dev/null
8641 lt_status=$?
8642 case x$lt_status in
8643 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8644 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8645 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8646 esac
8647 else :
8648 # compilation failed
8649 lt_cv_dlopen_self=no
8650 fi
8651fi
8652rm -fr conftest*
8653
8654
8655fi
8656echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8657echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8658
8659 if test "x$lt_cv_dlopen_self" = xyes; then
8660 LDFLAGS="$LDFLAGS $link_static_flag"
8661 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8662echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8663if test "${lt_cv_dlopen_self_static+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8665else
8666 if test "$cross_compiling" = yes; then :
8667 lt_cv_dlopen_self_static=cross
8668else
John Criswell47fdd832003-07-14 16:52:07 +00008669 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008670 lt_status=$lt_dlunknown
8671 cat > conftest.$ac_ext <<EOF
John Criswell987e49c2003-10-10 01:11:54 +00008672#line 8672 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008673#include "confdefs.h"
8674
8675#if HAVE_DLFCN_H
8676#include <dlfcn.h>
8677#endif
8678
8679#include <stdio.h>
8680
8681#ifdef RTLD_GLOBAL
8682# define LT_DLGLOBAL RTLD_GLOBAL
8683#else
8684# ifdef DL_GLOBAL
8685# define LT_DLGLOBAL DL_GLOBAL
8686# else
8687# define LT_DLGLOBAL 0
8688# endif
8689#endif
8690
8691/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8692 find out it does not work in some platform. */
8693#ifndef LT_DLLAZY_OR_NOW
8694# ifdef RTLD_LAZY
8695# define LT_DLLAZY_OR_NOW RTLD_LAZY
8696# else
8697# ifdef DL_LAZY
8698# define LT_DLLAZY_OR_NOW DL_LAZY
8699# else
8700# ifdef RTLD_NOW
8701# define LT_DLLAZY_OR_NOW RTLD_NOW
8702# else
8703# ifdef DL_NOW
8704# define LT_DLLAZY_OR_NOW DL_NOW
8705# else
8706# define LT_DLLAZY_OR_NOW 0
8707# endif
8708# endif
8709# endif
8710# endif
8711#endif
8712
8713#ifdef __cplusplus
8714extern "C" void exit (int);
8715#endif
8716
8717void fnord() { int i=42;}
8718int main ()
8719{
8720 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8721 int status = $lt_dlunknown;
8722
8723 if (self)
8724 {
8725 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8726 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8727 /* dlclose (self); */
8728 }
8729
8730 exit (status);
8731}
8732EOF
8733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8734 (eval $ac_link) 2>&5
8735 ac_status=$?
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8738 (./conftest; exit; ) 2>/dev/null
8739 lt_status=$?
8740 case x$lt_status in
8741 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8742 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8743 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8744 esac
8745 else :
8746 # compilation failed
8747 lt_cv_dlopen_self_static=no
8748 fi
8749fi
8750rm -fr conftest*
8751
8752
8753fi
8754echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8755echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8756 fi
8757
8758 CPPFLAGS="$save_CPPFLAGS"
8759 LDFLAGS="$save_LDFLAGS"
8760 LIBS="$save_LIBS"
8761 ;;
8762 esac
8763
8764 case $lt_cv_dlopen_self in
8765 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8766 *) enable_dlopen_self=unknown ;;
8767 esac
8768
8769 case $lt_cv_dlopen_self_static in
8770 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8771 *) enable_dlopen_self_static=unknown ;;
8772 esac
8773fi
8774
8775
John Criswell47fdd832003-07-14 16:52:07 +00008776# Report which librarie types wil actually be built
8777echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8778echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8779echo "$as_me:$LINENO: result: $can_build_shared" >&5
8780echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008781
John Criswell47fdd832003-07-14 16:52:07 +00008782echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8783echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8784test "$can_build_shared" = "no" && enable_shared=no
8785
8786# On AIX, shared libraries and static libraries use the same namespace, and
8787# are all built from PIC.
8788case "$host_os" in
8789aix3*)
8790 test "$enable_shared" = yes && enable_static=no
8791 if test -n "$RANLIB"; then
8792 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8793 postinstall_cmds='$RANLIB $lib'
8794 fi
8795 ;;
8796
8797aix4*)
8798 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8799 test "$enable_shared" = yes && enable_static=no
8800 fi
8801 ;;
8802 darwin* | rhapsody*)
8803 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8804 archive_cmds_need_lc=no
8805 case "$host_os" in
8806 rhapsody* | darwin1.[012])
8807 allow_undefined_flag='-undefined suppress'
8808 ;;
8809 *) # Darwin 1.3 on
8810 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8811 ;;
8812 esac
8813 # FIXME: Relying on posixy $() will cause problems for
8814 # cross-compilation, but unfortunately the echo tests do not
8815 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8816 # `"' quotes if we put them in here... so don't!
8817 output_verbose_link_cmd='echo'
8818 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8819 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8820 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8821 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}'
8822 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}'
8823 hardcode_direct=no
8824 hardcode_automatic=yes
8825 hardcode_shlibpath_var=unsupported
8826 whole_archive_flag_spec='-all_load $convenience'
8827 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008828 fi
John Criswell7a73b802003-06-30 21:59:07 +00008829 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008830esac
8831echo "$as_me:$LINENO: result: $enable_shared" >&5
8832echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008833
John Criswell47fdd832003-07-14 16:52:07 +00008834echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8835echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8836# Make sure either enable_shared or enable_static is yes.
8837test "$enable_shared" = yes || enable_static=yes
8838echo "$as_me:$LINENO: result: $enable_static" >&5
8839echo "${ECHO_T}$enable_static" >&6
8840
8841# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008842# libtool distribution, otherwise you forgot to ship ltmain.sh
8843# with your package, and you will get complaints that there are
8844# no rules to generate ltmain.sh.
8845if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008846 # See if we are running on zsh, and set the options which allow our commands through
8847 # without removal of \ escapes.
8848 if test -n "${ZSH_VERSION+set}" ; then
8849 setopt NO_GLOB_SUBST
8850 fi
John Criswell7a73b802003-06-30 21:59:07 +00008851 # Now quote all the things that may contain metacharacters while being
8852 # careful not to overquote the AC_SUBSTed values. We take copies of the
8853 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008854 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8855 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8856 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8857 deplibs_check_method reload_flag reload_cmds need_locks \
8858 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8859 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008860 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008861 old_postinstall_cmds old_postuninstall_cmds \
8862 compiler \
8863 CC \
8864 LD \
8865 lt_prog_compiler_wl \
8866 lt_prog_compiler_pic \
8867 lt_prog_compiler_static \
8868 lt_prog_compiler_no_builtin_flag \
8869 export_dynamic_flag_spec \
8870 thread_safe_flag_spec \
8871 whole_archive_flag_spec \
8872 enable_shared_with_static_runtimes \
8873 old_archive_cmds \
8874 old_archive_from_new_cmds \
8875 predep_objects \
8876 postdep_objects \
8877 predeps \
8878 postdeps \
8879 compiler_lib_search_path \
8880 archive_cmds \
8881 archive_expsym_cmds \
8882 postinstall_cmds \
8883 postuninstall_cmds \
8884 old_archive_from_expsyms_cmds \
8885 allow_undefined_flag \
8886 no_undefined_flag \
8887 export_symbols_cmds \
8888 hardcode_libdir_flag_spec \
8889 hardcode_libdir_flag_spec_ld \
8890 hardcode_libdir_separator \
8891 hardcode_automatic \
8892 module_cmds \
8893 module_expsym_cmds \
8894 lt_cv_prog_compiler_c_o \
8895 exclude_expsyms \
8896 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008897
8898 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008899 old_archive_cmds | \
8900 old_archive_from_new_cmds | \
8901 archive_cmds | \
8902 archive_expsym_cmds | \
8903 module_cmds | \
8904 module_expsym_cmds | \
8905 old_archive_from_expsyms_cmds | \
8906 export_symbols_cmds | \
8907 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008908 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008909 old_postinstall_cmds | old_postuninstall_cmds | \
8910 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008911 # Double-quote double-evaled strings.
8912 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8913 ;;
8914 *)
8915 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8916 ;;
8917 esac
8918 done
8919
John Criswell47fdd832003-07-14 16:52:07 +00008920 case $lt_echo in
8921 *'\$0 --fallback-echo"')
8922 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8923 ;;
8924 esac
8925
8926cfgfile="${ofile}T"
8927 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8928 $rm -f "$cfgfile"
8929 { echo "$as_me:$LINENO: creating $ofile" >&5
8930echo "$as_me: creating $ofile" >&6;}
8931
8932 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008933#! $SHELL
8934
John Criswell47fdd832003-07-14 16:52:07 +00008935# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008936# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8937# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8938#
John Criswell47fdd832003-07-14 16:52:07 +00008939# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8940# Free Software Foundation, Inc.
8941#
8942# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008943# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8944#
8945# This program is free software; you can redistribute it and/or modify
8946# it under the terms of the GNU General Public License as published by
8947# the Free Software Foundation; either version 2 of the License, or
8948# (at your option) any later version.
8949#
8950# This program is distributed in the hope that it will be useful, but
8951# WITHOUT ANY WARRANTY; without even the implied warranty of
8952# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8953# General Public License for more details.
8954#
8955# You should have received a copy of the GNU General Public License
8956# along with this program; if not, write to the Free Software
8957# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8958#
8959# As a special exception to the GNU General Public License, if you
8960# distribute this file as part of a program that contains a
8961# configuration script generated by Autoconf, you may include it under
8962# the same distribution terms that you use for the rest of that program.
8963
John Criswell47fdd832003-07-14 16:52:07 +00008964# A sed program that does not truncate output.
8965SED=$lt_SED
8966
John Criswell7a73b802003-06-30 21:59:07 +00008967# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008968Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008969
8970# The HP-UX ksh and POSIX shell print the target directory to stdout
8971# if CDPATH is set.
8972if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8973
John Criswell47fdd832003-07-14 16:52:07 +00008974# The names of the tagged configurations supported by this script.
8975available_tags=
8976
John Criswell7a73b802003-06-30 21:59:07 +00008977# ### BEGIN LIBTOOL CONFIG
8978
8979# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8980
8981# Shell to use when invoking shell scripts.
8982SHELL=$lt_SHELL
8983
8984# Whether or not to build shared libraries.
8985build_libtool_libs=$enable_shared
8986
8987# Whether or not to build static libraries.
8988build_old_libs=$enable_static
8989
8990# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008991build_libtool_need_lc=$archive_cmds_need_lc
8992
8993# Whether or not to disallow shared libs when runtime libs are static
8994allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008995
8996# Whether or not to optimize for fast installation.
8997fast_install=$enable_fast_install
8998
8999# The host system.
9000host_alias=$host_alias
9001host=$host
9002
9003# An echo program that does not interpret backslashes.
9004echo=$lt_echo
9005
9006# The archiver.
9007AR=$lt_AR
9008AR_FLAGS=$lt_AR_FLAGS
9009
John Criswell47fdd832003-07-14 16:52:07 +00009010# A C compiler.
9011LTCC=$lt_LTCC
9012
9013# A language-specific compiler.
9014CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009015
9016# Is the compiler the GNU C compiler?
9017with_gcc=$GCC
9018
John Criswell47fdd832003-07-14 16:52:07 +00009019# An ERE matcher.
9020EGREP=$lt_EGREP
9021
John Criswell7a73b802003-06-30 21:59:07 +00009022# The linker used to build libraries.
9023LD=$lt_LD
9024
9025# Whether we need hard or soft links.
9026LN_S=$lt_LN_S
9027
9028# A BSD-compatible nm program.
9029NM=$lt_NM
9030
9031# A symbol stripping program
9032STRIP=$STRIP
9033
9034# Used to examine libraries when file_magic_cmd begins "file"
9035MAGIC_CMD=$MAGIC_CMD
9036
9037# Used on cygwin: DLL creation program.
9038DLLTOOL="$DLLTOOL"
9039
9040# Used on cygwin: object dumper.
9041OBJDUMP="$OBJDUMP"
9042
9043# Used on cygwin: assembler.
9044AS="$AS"
9045
9046# The name of the directory that contains temporary libtool files.
9047objdir=$objdir
9048
9049# How to create reloadable object files.
9050reload_flag=$lt_reload_flag
9051reload_cmds=$lt_reload_cmds
9052
9053# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009054wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009055
9056# Object file suffix (normally "o").
9057objext="$ac_objext"
9058
9059# Old archive suffix (normally "a").
9060libext="$libext"
9061
John Criswell47fdd832003-07-14 16:52:07 +00009062# Shared library suffix (normally ".so").
9063shrext='$shrext'
9064
John Criswell7a73b802003-06-30 21:59:07 +00009065# Executable file suffix (normally "").
9066exeext="$exeext"
9067
9068# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009069pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009070pic_mode=$pic_mode
9071
John Criswell47fdd832003-07-14 16:52:07 +00009072# What is the maximum length of a command?
9073max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009074
John Criswell47fdd832003-07-14 16:52:07 +00009075# Does compiler simultaneously support -c and -o options?
9076compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009077
9078# Must we lock files when doing compilation ?
9079need_locks=$lt_need_locks
9080
9081# Do we need the lib prefix for modules?
9082need_lib_prefix=$need_lib_prefix
9083
9084# Do we need a version for libraries?
9085need_version=$need_version
9086
9087# Whether dlopen is supported.
9088dlopen_support=$enable_dlopen
9089
9090# Whether dlopen of programs is supported.
9091dlopen_self=$enable_dlopen_self
9092
9093# Whether dlopen of statically linked programs is supported.
9094dlopen_self_static=$enable_dlopen_self_static
9095
9096# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009097link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009098
9099# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009100no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009101
9102# Compiler flag to allow reflexive dlopens.
9103export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9104
9105# Compiler flag to generate shared objects directly from archives.
9106whole_archive_flag_spec=$lt_whole_archive_flag_spec
9107
9108# Compiler flag to generate thread-safe objects.
9109thread_safe_flag_spec=$lt_thread_safe_flag_spec
9110
9111# Library versioning type.
9112version_type=$version_type
9113
9114# Format of library name prefix.
9115libname_spec=$lt_libname_spec
9116
9117# List of archive names. First name is the real one, the rest are links.
9118# The last name is the one that the linker finds with -lNAME.
9119library_names_spec=$lt_library_names_spec
9120
9121# The coded name of the library, if different from the real name.
9122soname_spec=$lt_soname_spec
9123
9124# Commands used to build and install an old-style archive.
9125RANLIB=$lt_RANLIB
9126old_archive_cmds=$lt_old_archive_cmds
9127old_postinstall_cmds=$lt_old_postinstall_cmds
9128old_postuninstall_cmds=$lt_old_postuninstall_cmds
9129
9130# Create an old-style archive from a shared archive.
9131old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9132
9133# Create a temporary old-style archive to link instead of a shared archive.
9134old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9135
9136# Commands used to build and install a shared archive.
9137archive_cmds=$lt_archive_cmds
9138archive_expsym_cmds=$lt_archive_expsym_cmds
9139postinstall_cmds=$lt_postinstall_cmds
9140postuninstall_cmds=$lt_postuninstall_cmds
9141
John Criswell47fdd832003-07-14 16:52:07 +00009142# Commands used to build a loadable module (assumed same as above if empty)
9143module_cmds=$lt_module_cmds
9144module_expsym_cmds=$lt_module_expsym_cmds
9145
John Criswell7a73b802003-06-30 21:59:07 +00009146# Commands to strip libraries.
9147old_striplib=$lt_old_striplib
9148striplib=$lt_striplib
9149
John Criswell47fdd832003-07-14 16:52:07 +00009150# Dependencies to place before the objects being linked to create a
9151# shared library.
9152predep_objects=$lt_predep_objects
9153
9154# Dependencies to place after the objects being linked to create a
9155# shared library.
9156postdep_objects=$lt_postdep_objects
9157
9158# Dependencies to place before the objects being linked to create a
9159# shared library.
9160predeps=$lt_predeps
9161
9162# Dependencies to place after the objects being linked to create a
9163# shared library.
9164postdeps=$lt_postdeps
9165
9166# The library search path used internally by the compiler when linking
9167# a shared library.
9168compiler_lib_search_path=$lt_compiler_lib_search_path
9169
John Criswell7a73b802003-06-30 21:59:07 +00009170# Method to check whether dependent libraries are shared objects.
9171deplibs_check_method=$lt_deplibs_check_method
9172
9173# Command to use when deplibs_check_method == file_magic.
9174file_magic_cmd=$lt_file_magic_cmd
9175
9176# Flag that allows shared libraries with undefined symbols to be built.
9177allow_undefined_flag=$lt_allow_undefined_flag
9178
9179# Flag that forces no undefined symbols.
9180no_undefined_flag=$lt_no_undefined_flag
9181
9182# Commands used to finish a libtool library installation in a directory.
9183finish_cmds=$lt_finish_cmds
9184
9185# Same as above, but a single script fragment to be evaled but not shown.
9186finish_eval=$lt_finish_eval
9187
9188# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009189global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009190
9191# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009192global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009193
9194# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009195global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009196
9197# This is the shared library runtime path variable.
9198runpath_var=$runpath_var
9199
9200# This is the shared library path variable.
9201shlibpath_var=$shlibpath_var
9202
9203# Is shlibpath searched before the hard-coded library search path?
9204shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9205
9206# How to hardcode a shared library path into an executable.
9207hardcode_action=$hardcode_action
9208
9209# Whether we should hardcode library paths into libraries.
9210hardcode_into_libs=$hardcode_into_libs
9211
9212# Flag to hardcode \$libdir into a binary during linking.
9213# This must work even if \$libdir does not exist.
9214hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9215
John Criswell47fdd832003-07-14 16:52:07 +00009216# If ld is used when linking, flag to hardcode \$libdir into
9217# a binary during linking. This must work even if \$libdir does
9218# not exist.
9219hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9220
John Criswell7a73b802003-06-30 21:59:07 +00009221# Whether we need a single -rpath flag with a separated argument.
9222hardcode_libdir_separator=$lt_hardcode_libdir_separator
9223
John Criswell47fdd832003-07-14 16:52:07 +00009224# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009225# resulting binary.
9226hardcode_direct=$hardcode_direct
9227
9228# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9229# resulting binary.
9230hardcode_minus_L=$hardcode_minus_L
9231
9232# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9233# the resulting binary.
9234hardcode_shlibpath_var=$hardcode_shlibpath_var
9235
John Criswell47fdd832003-07-14 16:52:07 +00009236# Set to yes if building a shared library automatically hardcodes DIR into the library
9237# and all subsequent libraries and executables linked against it.
9238hardcode_automatic=$hardcode_automatic
9239
John Criswell7a73b802003-06-30 21:59:07 +00009240# Variables whose values should be saved in libtool wrapper scripts and
9241# restored at relink time.
9242variables_saved_for_relink="$variables_saved_for_relink"
9243
9244# Whether libtool must link a program against all its dependency libraries.
9245link_all_deplibs=$link_all_deplibs
9246
9247# Compile-time system search path for libraries
9248sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9249
9250# Run-time system search path for libraries
9251sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9252
9253# Fix the shell variable \$srcfile for the compiler.
9254fix_srcfile_path="$fix_srcfile_path"
9255
9256# Set to yes if exported symbols are required.
9257always_export_symbols=$always_export_symbols
9258
9259# The commands to list exported symbols.
9260export_symbols_cmds=$lt_export_symbols_cmds
9261
9262# The commands to extract the exported symbol list from a shared archive.
9263extract_expsyms_cmds=$lt_extract_expsyms_cmds
9264
9265# Symbols that should not be listed in the preloaded symbols.
9266exclude_expsyms=$lt_exclude_expsyms
9267
9268# Symbols that must always be exported.
9269include_expsyms=$lt_include_expsyms
9270
9271# ### END LIBTOOL CONFIG
9272
9273__EOF__
9274
John Criswell47fdd832003-07-14 16:52:07 +00009275
John Criswell7a73b802003-06-30 21:59:07 +00009276 case $host_os in
9277 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009278 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009279
9280# AIX sometimes has problems with the GCC collect2 program. For some
9281# reason, if we set the COLLECT_NAMES environment variable, the problems
9282# vanish in a puff of smoke.
9283if test "X${COLLECT_NAMES+set}" != Xset; then
9284 COLLECT_NAMES=
9285 export COLLECT_NAMES
9286fi
9287EOF
9288 ;;
9289 esac
9290
John Criswell7a73b802003-06-30 21:59:07 +00009291 # We use sed instead of cat because bash on DJGPP gets confused if
9292 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9293 # text mode, it properly converts lines to CR/LF. This bash problem
9294 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009295 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009296
John Criswell47fdd832003-07-14 16:52:07 +00009297 mv -f "$cfgfile" "$ofile" || \
9298 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009299 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009300
9301else
9302 # If there is no Makefile yet, we rely on a make rule to execute
9303 # `config.status --recheck' to rerun these tests and create the
9304 # libtool script then.
9305 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009306fi
John Criswell7a73b802003-06-30 21:59:07 +00009307
9308
John Criswell47fdd832003-07-14 16:52:07 +00009309ac_ext=c
9310ac_cpp='$CPP $CPPFLAGS'
9311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9313ac_compiler_gnu=$ac_cv_c_compiler_gnu
9314
9315CC="$lt_save_CC"
9316
9317
9318# Check whether --with-tags or --without-tags was given.
9319if test "${with_tags+set}" = set; then
9320 withval="$with_tags"
9321 tagnames="$withval"
9322fi;
9323
9324if test -f "$ltmain" && test -n "$tagnames"; then
9325 if test ! -f "${ofile}"; then
9326 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9327echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9328 fi
9329
9330 if test -z "$LTCC"; then
9331 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9332 if test -z "$LTCC"; then
9333 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9334echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9335 else
9336 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9337echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9338 fi
9339 fi
9340
9341 # Extract list of available tagged configurations in $ofile.
9342 # Note that this assumes the entire list is on one line.
9343 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9344
9345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9346 for tagname in $tagnames; do
9347 IFS="$lt_save_ifs"
9348 # Check whether tagname contains only valid characters
9349 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9350 "") ;;
9351 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9352echo "$as_me: error: invalid tag name: $tagname" >&2;}
9353 { (exit 1); exit 1; }; }
9354 ;;
9355 esac
9356
9357 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9358 then
9359 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9360echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9361 { (exit 1); exit 1; }; }
9362 fi
9363
9364 # Update the list of available tags.
9365 if test -n "$tagname"; then
9366 echo appending configuration tag \"$tagname\" to $ofile
9367
9368 case $tagname in
9369 CXX)
9370 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9371 ac_ext=cc
9372ac_cpp='$CXXCPP $CPPFLAGS'
9373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9376
9377
9378
9379
9380archive_cmds_need_lc_CXX=no
9381allow_undefined_flag_CXX=
9382always_export_symbols_CXX=no
9383archive_expsym_cmds_CXX=
9384export_dynamic_flag_spec_CXX=
9385hardcode_direct_CXX=no
9386hardcode_libdir_flag_spec_CXX=
9387hardcode_libdir_flag_spec_ld_CXX=
9388hardcode_libdir_separator_CXX=
9389hardcode_minus_L_CXX=no
9390hardcode_automatic_CXX=no
9391module_cmds_CXX=
9392module_expsym_cmds_CXX=
9393link_all_deplibs_CXX=unknown
9394old_archive_cmds_CXX=$old_archive_cmds
9395no_undefined_flag_CXX=
9396whole_archive_flag_spec_CXX=
9397enable_shared_with_static_runtimes_CXX=no
9398
9399# Dependencies to place before and after the object being linked:
9400predep_objects_CXX=
9401postdep_objects_CXX=
9402predeps_CXX=
9403postdeps_CXX=
9404compiler_lib_search_path_CXX=
9405
9406# Source file extension for C++ test sources.
9407ac_ext=cc
9408
9409# Object file extension for compiled C++ test sources.
9410objext=o
9411objext_CXX=$objext
9412
9413# Code to be used in simple compile tests
9414lt_simple_compile_test_code="int some_variable = 0;\n"
9415
9416# Code to be used in simple link tests
9417lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9418
9419# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9420
9421# If no C compiler was specified, use CC.
9422LTCC=${LTCC-"$CC"}
9423
9424# Allow CC to be a program name with arguments.
9425compiler=$CC
9426
9427
9428# Allow CC to be a program name with arguments.
9429lt_save_CC=$CC
9430lt_save_LD=$LD
9431lt_save_GCC=$GCC
9432GCC=$GXX
9433lt_save_with_gnu_ld=$with_gnu_ld
9434lt_save_path_LD=$lt_cv_path_LD
9435if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9436 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9437else
9438 unset lt_cv_prog_gnu_ld
9439fi
9440if test -n "${lt_cv_path_LDCXX+set}"; then
9441 lt_cv_path_LD=$lt_cv_path_LDCXX
9442else
9443 unset lt_cv_path_LD
9444fi
9445test -z "${LDCXX+set}" || LD=$LDCXX
9446CC=${CXX-"c++"}
9447compiler=$CC
9448compiler_CXX=$CC
9449cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9450
9451# We don't want -fno-exception wen compiling C++ code, so set the
9452# no_builtin_flag separately
9453if test "$GXX" = yes; then
9454 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9455else
9456 lt_prog_compiler_no_builtin_flag_CXX=
9457fi
9458
9459if test "$GXX" = yes; then
9460 # Set up default GNU C++ configuration
9461
9462
9463# Check whether --with-gnu-ld or --without-gnu-ld was given.
9464if test "${with_gnu_ld+set}" = set; then
9465 withval="$with_gnu_ld"
9466 test "$withval" = no || with_gnu_ld=yes
9467else
9468 with_gnu_ld=no
9469fi;
9470ac_prog=ld
9471if test "$GCC" = yes; then
9472 # Check if gcc -print-prog-name=ld gives a path.
9473 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9474echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9475 case $host in
9476 *-*-mingw*)
9477 # gcc leaves a trailing carriage return which upsets mingw
9478 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9479 *)
9480 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9481 esac
9482 case $ac_prog in
9483 # Accept absolute paths.
9484 [\\/]* | ?:[\\/]*)
9485 re_direlt='/[^/][^/]*/\.\./'
9486 # Canonicalize the path of ld
9487 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9488 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9489 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9490 done
9491 test -z "$LD" && LD="$ac_prog"
9492 ;;
9493 "")
9494 # If it fails, then pretend we aren't using GCC.
9495 ac_prog=ld
9496 ;;
9497 *)
9498 # If it is relative, then search for the first ld in PATH.
9499 with_gnu_ld=unknown
9500 ;;
9501 esac
9502elif test "$with_gnu_ld" = yes; then
9503 echo "$as_me:$LINENO: checking for GNU ld" >&5
9504echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9505else
9506 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9507echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9508fi
9509if test "${lt_cv_path_LD+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9511else
9512 if test -z "$LD"; then
9513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9514 for ac_dir in $PATH; do
9515 IFS="$lt_save_ifs"
9516 test -z "$ac_dir" && ac_dir=.
9517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9518 lt_cv_path_LD="$ac_dir/$ac_prog"
9519 # Check to see if the program is GNU ld. I'd rather use --version,
9520 # but apparently some GNU ld's only accept -v.
9521 # Break only if it was the GNU/non-GNU ld that we prefer.
9522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9523 *GNU* | *'with BFD'*)
9524 test "$with_gnu_ld" != no && break
9525 ;;
9526 *)
9527 test "$with_gnu_ld" != yes && break
9528 ;;
9529 esac
9530 fi
9531 done
9532 IFS="$lt_save_ifs"
9533else
9534 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9535fi
9536fi
9537
9538LD="$lt_cv_path_LD"
9539if test -n "$LD"; then
9540 echo "$as_me:$LINENO: result: $LD" >&5
9541echo "${ECHO_T}$LD" >&6
9542else
9543 echo "$as_me:$LINENO: result: no" >&5
9544echo "${ECHO_T}no" >&6
9545fi
9546test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9547echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9548 { (exit 1); exit 1; }; }
9549echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9550echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9551if test "${lt_cv_prog_gnu_ld+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9553else
9554 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9555case `"$LD" -v 2>&1 </dev/null` in
9556*GNU* | *'with BFD'*)
9557 lt_cv_prog_gnu_ld=yes
9558 ;;
9559*)
9560 lt_cv_prog_gnu_ld=no
9561 ;;
9562esac
9563fi
9564echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9565echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9566with_gnu_ld=$lt_cv_prog_gnu_ld
9567
9568
9569
9570 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9571 # archiving commands below assume that GNU ld is being used.
9572 if test "$with_gnu_ld" = yes; then
9573 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9574 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'
9575
9576 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9577 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9578
9579 # If archive_cmds runs LD, not CC, wlarc should be empty
9580 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9581 # investigate it a little bit more. (MM)
9582 wlarc='${wl}'
9583
9584 # ancient GNU ld didn't support --whole-archive et. al.
9585 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9586 grep 'no-whole-archive' > /dev/null; then
9587 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9588 else
9589 whole_archive_flag_spec_CXX=
9590 fi
9591 else
9592 with_gnu_ld=no
9593 wlarc=
9594
9595 # A generic and very simple default shared library creation
9596 # command for GNU C++ for the case where it uses the native
9597 # linker, instead of GNU ld. If possible, this setting should
9598 # overridden to take advantage of the native linker features on
9599 # the platform it is being used on.
9600 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9601 fi
9602
9603 # Commands to make compiler produce verbose output that lists
9604 # what "hidden" libraries, object files and flags are used when
9605 # linking a shared library.
9606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9607
9608else
9609 GXX=no
9610 with_gnu_ld=no
9611 wlarc=
9612fi
9613
9614# PORTME: fill in a description of your system's C++ link characteristics
9615echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9616echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9617ld_shlibs_CXX=yes
9618case $host_os in
9619 aix3*)
9620 # FIXME: insert proper C++ library support
9621 ld_shlibs_CXX=no
9622 ;;
9623 aix4* | aix5*)
9624 if test "$host_cpu" = ia64; then
9625 # On IA64, the linker does run time linking by default, so we don't
9626 # have to do anything special.
9627 aix_use_runtimelinking=no
9628 exp_sym_flag='-Bexport'
9629 no_entry_flag=""
9630 else
9631 aix_use_runtimelinking=no
9632
9633 # Test if we are trying to use run time linking or normal
9634 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9635 # need to do runtime linking.
9636 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9637 for ld_flag in $LDFLAGS; do
9638 case $ld_flag in
9639 *-brtl*)
9640 aix_use_runtimelinking=yes
9641 break
9642 ;;
9643 esac
9644 done
9645 esac
9646
9647 exp_sym_flag='-bexport'
9648 no_entry_flag='-bnoentry'
9649 fi
9650
9651 # When large executables or shared objects are built, AIX ld can
9652 # have problems creating the table of contents. If linking a library
9653 # or program results in "error TOC overflow" add -mminimal-toc to
9654 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9655 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9656
9657 archive_cmds_CXX=''
9658 hardcode_direct_CXX=yes
9659 hardcode_libdir_separator_CXX=':'
9660 link_all_deplibs_CXX=yes
9661
9662 if test "$GXX" = yes; then
9663 case $host_os in aix4.012|aix4.012.*)
9664 # We only want to do this on AIX 4.2 and lower, the check
9665 # below for broken collect2 doesn't work under 4.3+
9666 collect2name=`${CC} -print-prog-name=collect2`
9667 if test -f "$collect2name" && \
9668 strings "$collect2name" | grep resolve_lib_name >/dev/null
9669 then
9670 # We have reworked collect2
9671 hardcode_direct_CXX=yes
9672 else
9673 # We have old collect2
9674 hardcode_direct_CXX=unsupported
9675 # It fails to find uninstalled libraries when the uninstalled
9676 # path is not listed in the libpath. Setting hardcode_minus_L
9677 # to unsupported forces relinking
9678 hardcode_minus_L_CXX=yes
9679 hardcode_libdir_flag_spec_CXX='-L$libdir'
9680 hardcode_libdir_separator_CXX=
9681 fi
9682 esac
9683 shared_flag='-shared'
9684 else
9685 # not using gcc
9686 if test "$host_cpu" = ia64; then
9687 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9688 # chokes on -Wl,-G. The following line is correct:
9689 shared_flag='-G'
9690 else
9691 if test "$aix_use_runtimelinking" = yes; then
9692 shared_flag='${wl}-G'
9693 else
9694 shared_flag='${wl}-bM:SRE'
9695 fi
9696 fi
9697 fi
9698
9699 # It seems that -bexpall does not export symbols beginning with
9700 # underscore (_), so it is better to generate a list of symbols to export.
9701 always_export_symbols_CXX=yes
9702 if test "$aix_use_runtimelinking" = yes; then
9703 # Warning - without using the other runtime loading flags (-brtl),
9704 # -berok will link without error, but may produce a broken library.
9705 allow_undefined_flag_CXX='-berok'
9706 # Determine the default libpath from the value encoded in an empty executable.
9707 cat >conftest.$ac_ext <<_ACEOF
9708#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009709/* confdefs.h. */
9710_ACEOF
9711cat confdefs.h >>conftest.$ac_ext
9712cat >>conftest.$ac_ext <<_ACEOF
9713/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009714
John Criswell47fdd832003-07-14 16:52:07 +00009715int
9716main ()
9717{
9718
9719 ;
9720 return 0;
9721}
9722_ACEOF
9723rm -f conftest.$ac_objext conftest$ac_exeext
9724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725 (eval $ac_link) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } &&
9729 { ac_try='test -s conftest$ac_exeext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 (eval $ac_try) 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735
9736aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9737}'`
9738# Check for a 64-bit object if we didn't find anything.
9739if 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; }
9740}'`; fi
9741else
9742 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009743sed 's/^/| /' conftest.$ac_ext >&5
9744
John Criswell47fdd832003-07-14 16:52:07 +00009745fi
9746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9747if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9748
9749 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9750
9751 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"
9752 else
9753 if test "$host_cpu" = ia64; then
9754 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9755 allow_undefined_flag_CXX="-z nodefs"
9756 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"
9757 else
9758 # Determine the default libpath from the value encoded in an empty executable.
9759 cat >conftest.$ac_ext <<_ACEOF
9760#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009761/* confdefs.h. */
9762_ACEOF
9763cat confdefs.h >>conftest.$ac_ext
9764cat >>conftest.$ac_ext <<_ACEOF
9765/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009766
John Criswell47fdd832003-07-14 16:52:07 +00009767int
9768main ()
9769{
9770
9771 ;
9772 return 0;
9773}
9774_ACEOF
9775rm -f conftest.$ac_objext conftest$ac_exeext
9776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9777 (eval $ac_link) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
9781 { ac_try='test -s conftest$ac_exeext'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 (eval $ac_try) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; }; then
9787
9788aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9789}'`
9790# Check for a 64-bit object if we didn't find anything.
9791if 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; }
9792}'`; fi
9793else
9794 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009795sed 's/^/| /' conftest.$ac_ext >&5
9796
John Criswell47fdd832003-07-14 16:52:07 +00009797fi
9798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9799if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9800
9801 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9802 # Warning - without using the other run time loading flags,
9803 # -berok will link without error, but may produce a broken library.
9804 no_undefined_flag_CXX=' ${wl}-bernotok'
9805 allow_undefined_flag_CXX=' ${wl}-berok'
9806 # -bexpall does not export symbols beginning with underscore (_)
9807 always_export_symbols_CXX=yes
9808 # Exported symbols can be pulled into shared objects from archives
9809 whole_archive_flag_spec_CXX=' '
9810 archive_cmds_need_lc_CXX=yes
9811 # This is similar to how AIX traditionally builds it's shared libraries.
9812 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'
9813 fi
9814 fi
9815 ;;
9816 chorus*)
9817 case $cc_basename in
9818 *)
9819 # FIXME: insert proper C++ library support
9820 ld_shlibs_CXX=no
9821 ;;
9822 esac
9823 ;;
9824
9825 cygwin* | mingw* | pw32*)
9826 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9827 # as there is no search path for DLLs.
9828 hardcode_libdir_flag_spec_CXX='-L$libdir'
9829 allow_undefined_flag_CXX=unsupported
9830 always_export_symbols_CXX=no
9831 enable_shared_with_static_runtimes_CXX=yes
9832
9833 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9834 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'
9835 # If the export-symbols file already is a .def file (1st line
9836 # is EXPORTS), use it as is; otherwise, prepend...
9837 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9838 cp $export_symbols $output_objdir/$soname.def;
9839 else
9840 echo EXPORTS > $output_objdir/$soname.def;
9841 cat $export_symbols >> $output_objdir/$soname.def;
9842 fi~
9843 $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'
9844 else
9845 ld_shlibs_CXX=no
9846 fi
9847 ;;
9848
9849 darwin* | rhapsody*)
9850 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9851 archive_cmds_need_lc_CXX=no
9852 case "$host_os" in
9853 rhapsody* | darwin1.[012])
9854 allow_undefined_flag_CXX='-undefined suppress'
9855 ;;
9856 *) # Darwin 1.3 on
9857 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9858 ;;
9859 esac
9860 lt_int_apple_cc_single_mod=no
9861 output_verbose_link_cmd='echo'
9862 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9863 lt_int_apple_cc_single_mod=yes
9864 fi
9865 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9866 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9867 else
9868 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'
9869 fi
9870 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9871
9872 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9873 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9874 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}'
9875 else
9876 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}'
9877 fi
9878 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}'
9879 hardcode_direct_CXX=no
9880 hardcode_automatic_CXX=yes
9881 hardcode_shlibpath_var_CXX=unsupported
9882 whole_archive_flag_spec_CXX='-all_load $convenience'
9883 link_all_deplibs_CXX=yes
9884 fi
9885 ;;
9886
9887 dgux*)
9888 case $cc_basename in
9889 ec++)
9890 # FIXME: insert proper C++ library support
9891 ld_shlibs_CXX=no
9892 ;;
9893 ghcx)
9894 # Green Hills C++ Compiler
9895 # FIXME: insert proper C++ library support
9896 ld_shlibs_CXX=no
9897 ;;
9898 *)
9899 # FIXME: insert proper C++ library support
9900 ld_shlibs_CXX=no
9901 ;;
9902 esac
9903 ;;
9904 freebsd12*)
9905 # C++ shared libraries reported to be fairly broken before switch to ELF
9906 ld_shlibs_CXX=no
9907 ;;
9908 freebsd-elf*)
9909 archive_cmds_need_lc_CXX=no
9910 ;;
9911 freebsd*)
9912 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9913 # conventions
9914 ld_shlibs_CXX=yes
9915 ;;
9916 gnu*)
9917 ;;
9918 hpux9*)
9919 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9920 hardcode_libdir_separator_CXX=:
9921 export_dynamic_flag_spec_CXX='${wl}-E'
9922 hardcode_direct_CXX=yes
9923 hardcode_minus_L_CXX=yes # Not in the search PATH,
9924 # but as the default
9925 # location of the library.
9926
9927 case $cc_basename in
9928 CC)
9929 # FIXME: insert proper C++ library support
9930 ld_shlibs_CXX=no
9931 ;;
9932 aCC)
9933 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'
9934 # Commands to make compiler produce verbose output that lists
9935 # what "hidden" libraries, object files and flags are used when
9936 # linking a shared library.
9937 #
9938 # There doesn't appear to be a way to prevent this compiler from
9939 # explicitly linking system object files so we need to strip them
9940 # from the output so that they don't get included in the library
9941 # dependencies.
9942 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'
9943 ;;
9944 *)
9945 if test "$GXX" = yes; then
9946 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'
9947 else
9948 # FIXME: insert proper C++ library support
9949 ld_shlibs_CXX=no
9950 fi
9951 ;;
9952 esac
9953 ;;
9954 hpux10*|hpux11*)
9955 if test $with_gnu_ld = no; then
9956 case "$host_cpu" in
9957 hppa*64*)
9958 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9959 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9960 hardcode_libdir_separator_CXX=:
9961 ;;
9962 ia64*)
9963 hardcode_libdir_flag_spec_CXX='-L$libdir'
9964 ;;
9965 *)
9966 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9967 hardcode_libdir_separator_CXX=:
9968 export_dynamic_flag_spec_CXX='${wl}-E'
9969 ;;
9970 esac
9971 fi
9972 case "$host_cpu" in
9973 hppa*64*)
9974 hardcode_direct_CXX=no
9975 hardcode_shlibpath_var_CXX=no
9976 ;;
9977 ia64*)
9978 hardcode_direct_CXX=no
9979 hardcode_shlibpath_var_CXX=no
9980 hardcode_minus_L_CXX=yes # Not in the search PATH,
9981 # but as the default
9982 # location of the library.
9983 ;;
9984 *)
9985 hardcode_direct_CXX=yes
9986 hardcode_minus_L_CXX=yes # Not in the search PATH,
9987 # but as the default
9988 # location of the library.
9989 ;;
9990 esac
9991
9992 case $cc_basename in
9993 CC)
9994 # FIXME: insert proper C++ library support
9995 ld_shlibs_CXX=no
9996 ;;
9997 aCC)
9998 case "$host_cpu" in
9999 hppa*64*|ia64*)
10000 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10001 ;;
10002 *)
10003 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10004 ;;
10005 esac
10006 # Commands to make compiler produce verbose output that lists
10007 # what "hidden" libraries, object files and flags are used when
10008 # linking a shared library.
10009 #
10010 # There doesn't appear to be a way to prevent this compiler from
10011 # explicitly linking system object files so we need to strip them
10012 # from the output so that they don't get included in the library
10013 # dependencies.
10014 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'
10015 ;;
10016 *)
10017 if test "$GXX" = yes; then
10018 if test $with_gnu_ld = no; then
10019 case "$host_cpu" in
10020 ia64*|hppa*64*)
10021 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10022 ;;
10023 *)
10024 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'
10025 ;;
10026 esac
10027 fi
10028 else
10029 # FIXME: insert proper C++ library support
10030 ld_shlibs_CXX=no
10031 fi
10032 ;;
10033 esac
10034 ;;
10035 irix5* | irix6*)
10036 case $cc_basename in
10037 CC)
10038 # SGI C++
10039 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'
10040
10041 # Archives containing C++ object files must be created using
10042 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10043 # necessary to make sure instantiated templates are included
10044 # in the archive.
10045 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10046 ;;
10047 *)
10048 if test "$GXX" = yes; then
10049 if test "$with_gnu_ld" = no; then
10050 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'
10051 else
10052 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'
10053 fi
10054 fi
10055 link_all_deplibs_CXX=yes
10056 ;;
10057 esac
10058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10059 hardcode_libdir_separator_CXX=:
10060 ;;
10061 linux*)
10062 case $cc_basename in
10063 KCC)
10064 # Kuck and Associates, Inc. (KAI) C++ Compiler
10065
10066 # KCC will only create a shared library if the output file
10067 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10068 # to its proper name (with version) after linking.
10069 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'
10070 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'
10071 # Commands to make compiler produce verbose output that lists
10072 # what "hidden" libraries, object files and flags are used when
10073 # linking a shared library.
10074 #
10075 # There doesn't appear to be a way to prevent this compiler from
10076 # explicitly linking system object files so we need to strip them
10077 # from the output so that they don't get included in the library
10078 # dependencies.
10079 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'
10080
10081 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10082 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10083
10084 # Archives containing C++ object files must be created using
10085 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10086 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10087 ;;
10088 icpc)
10089 # Intel C++
10090 with_gnu_ld=yes
10091 archive_cmds_need_lc_CXX=no
10092 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10093 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'
10094 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10095 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10096 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10097 ;;
10098 cxx)
10099 # Compaq C++
10100 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10101 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'
10102
10103 runpath_var=LD_RUN_PATH
10104 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10105 hardcode_libdir_separator_CXX=:
10106
10107 # Commands to make compiler produce verbose output that lists
10108 # what "hidden" libraries, object files and flags are used when
10109 # linking a shared library.
10110 #
10111 # There doesn't appear to be a way to prevent this compiler from
10112 # explicitly linking system object files so we need to strip them
10113 # from the output so that they don't get included in the library
10114 # dependencies.
10115 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'
10116 ;;
10117 esac
10118 ;;
10119 lynxos*)
10120 # FIXME: insert proper C++ library support
10121 ld_shlibs_CXX=no
10122 ;;
10123 m88k*)
10124 # FIXME: insert proper C++ library support
10125 ld_shlibs_CXX=no
10126 ;;
10127 mvs*)
10128 case $cc_basename in
10129 cxx)
10130 # FIXME: insert proper C++ library support
10131 ld_shlibs_CXX=no
10132 ;;
10133 *)
10134 # FIXME: insert proper C++ library support
10135 ld_shlibs_CXX=no
10136 ;;
10137 esac
10138 ;;
10139 netbsd*)
10140 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10141 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10142 wlarc=
10143 hardcode_libdir_flag_spec_CXX='-R$libdir'
10144 hardcode_direct_CXX=yes
10145 hardcode_shlibpath_var_CXX=no
10146 fi
10147 # Workaround some broken pre-1.5 toolchains
10148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10149 ;;
10150 osf3*)
10151 case $cc_basename in
10152 KCC)
10153 # Kuck and Associates, Inc. (KAI) C++ Compiler
10154
10155 # KCC will only create a shared library if the output file
10156 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10157 # to its proper name (with version) after linking.
10158 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'
10159
10160 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10161 hardcode_libdir_separator_CXX=:
10162
10163 # Archives containing C++ object files must be created using
10164 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10165 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10166
10167 ;;
10168 RCC)
10169 # Rational C++ 2.4.1
10170 # FIXME: insert proper C++ library support
10171 ld_shlibs_CXX=no
10172 ;;
10173 cxx)
10174 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10175 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'
10176
10177 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10178 hardcode_libdir_separator_CXX=:
10179
10180 # Commands to make compiler produce verbose output that lists
10181 # what "hidden" libraries, object files and flags are used when
10182 # linking a shared library.
10183 #
10184 # There doesn't appear to be a way to prevent this compiler from
10185 # explicitly linking system object files so we need to strip them
10186 # from the output so that they don't get included in the library
10187 # dependencies.
10188 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'
10189 ;;
10190 *)
10191 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10192 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10193 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'
10194
10195 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10196 hardcode_libdir_separator_CXX=:
10197
10198 # Commands to make compiler produce verbose output that lists
10199 # what "hidden" libraries, object files and flags are used when
10200 # linking a shared library.
10201 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10202
10203 else
10204 # FIXME: insert proper C++ library support
10205 ld_shlibs_CXX=no
10206 fi
10207 ;;
10208 esac
10209 ;;
10210 osf4* | osf5*)
10211 case $cc_basename in
10212 KCC)
10213 # Kuck and Associates, Inc. (KAI) C++ Compiler
10214
10215 # KCC will only create a shared library if the output file
10216 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10217 # to its proper name (with version) after linking.
10218 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'
10219
10220 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10221 hardcode_libdir_separator_CXX=:
10222
10223 # Archives containing C++ object files must be created using
10224 # the KAI C++ compiler.
10225 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10226 ;;
10227 RCC)
10228 # Rational C++ 2.4.1
10229 # FIXME: insert proper C++ library support
10230 ld_shlibs_CXX=no
10231 ;;
10232 cxx)
10233 allow_undefined_flag_CXX=' -expect_unresolved \*'
10234 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'
10235 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10236 echo "-hidden">> $lib.exp~
10237 $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~
10238 $rm $lib.exp'
10239
10240 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10241 hardcode_libdir_separator_CXX=:
10242
10243 # Commands to make compiler produce verbose output that lists
10244 # what "hidden" libraries, object files and flags are used when
10245 # linking a shared library.
10246 #
10247 # There doesn't appear to be a way to prevent this compiler from
10248 # explicitly linking system object files so we need to strip them
10249 # from the output so that they don't get included in the library
10250 # dependencies.
10251 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'
10252 ;;
10253 *)
10254 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10255 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10256 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'
10257
10258 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10259 hardcode_libdir_separator_CXX=:
10260
10261 # Commands to make compiler produce verbose output that lists
10262 # what "hidden" libraries, object files and flags are used when
10263 # linking a shared library.
10264 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10265
10266 else
10267 # FIXME: insert proper C++ library support
10268 ld_shlibs_CXX=no
10269 fi
10270 ;;
10271 esac
10272 ;;
10273 psos*)
10274 # FIXME: insert proper C++ library support
10275 ld_shlibs_CXX=no
10276 ;;
10277 sco*)
10278 archive_cmds_need_lc_CXX=no
10279 case $cc_basename in
10280 CC)
10281 # FIXME: insert proper C++ library support
10282 ld_shlibs_CXX=no
10283 ;;
10284 *)
10285 # FIXME: insert proper C++ library support
10286 ld_shlibs_CXX=no
10287 ;;
10288 esac
10289 ;;
10290 sunos4*)
10291 case $cc_basename in
10292 CC)
10293 # Sun C++ 4.x
10294 # FIXME: insert proper C++ library support
10295 ld_shlibs_CXX=no
10296 ;;
10297 lcc)
10298 # Lucid
10299 # FIXME: insert proper C++ library support
10300 ld_shlibs_CXX=no
10301 ;;
10302 *)
10303 # FIXME: insert proper C++ library support
10304 ld_shlibs_CXX=no
10305 ;;
10306 esac
10307 ;;
10308 solaris*)
10309 case $cc_basename in
10310 CC)
10311 # Sun C++ 4.2, 5.x and Centerline C++
10312 no_undefined_flag_CXX=' -zdefs'
10313 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10314 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10315 $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'
10316
10317 hardcode_libdir_flag_spec_CXX='-R$libdir'
10318 hardcode_shlibpath_var_CXX=no
10319 case $host_os in
10320 solaris2.0-5 | solaris2.0-5.*) ;;
10321 *)
10322 # The C++ compiler is used as linker so we must use $wl
10323 # flag to pass the commands to the underlying system
10324 # linker.
10325 # Supported since Solaris 2.6 (maybe 2.5.1?)
10326 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10327 ;;
10328 esac
10329 link_all_deplibs_CXX=yes
10330
10331 # Commands to make compiler produce verbose output that lists
10332 # what "hidden" libraries, object files and flags are used when
10333 # linking a shared library.
10334 #
10335 # There doesn't appear to be a way to prevent this compiler from
10336 # explicitly linking system object files so we need to strip them
10337 # from the output so that they don't get included in the library
10338 # dependencies.
10339 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'
10340
10341 # Archives containing C++ object files must be created using
10342 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10343 # necessary to make sure instantiated templates are included
10344 # in the archive.
10345 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10346 ;;
10347 gcx)
10348 # Green Hills C++ Compiler
10349 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10350
10351 # The C++ compiler must be used to create the archive.
10352 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10353 ;;
10354 *)
10355 # GNU C++ compiler with Solaris linker
10356 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10357 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10358 if $CC --version | grep -v '^2\.7' > /dev/null; then
10359 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10360 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10361 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10362
10363 # Commands to make compiler produce verbose output that lists
10364 # what "hidden" libraries, object files and flags are used when
10365 # linking a shared library.
10366 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10367 else
10368 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10369 # platform.
10370 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10371 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10372 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10373
10374 # Commands to make compiler produce verbose output that lists
10375 # what "hidden" libraries, object files and flags are used when
10376 # linking a shared library.
10377 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10378 fi
10379
10380 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10381 fi
10382 ;;
10383 esac
10384 ;;
10385 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10386 archive_cmds_need_lc_CXX=no
10387 ;;
10388 tandem*)
10389 case $cc_basename in
10390 NCC)
10391 # NonStop-UX NCC 3.20
10392 # FIXME: insert proper C++ library support
10393 ld_shlibs_CXX=no
10394 ;;
10395 *)
10396 # FIXME: insert proper C++ library support
10397 ld_shlibs_CXX=no
10398 ;;
10399 esac
10400 ;;
10401 vxworks*)
10402 # FIXME: insert proper C++ library support
10403 ld_shlibs_CXX=no
10404 ;;
10405 *)
10406 # FIXME: insert proper C++ library support
10407 ld_shlibs_CXX=no
10408 ;;
10409esac
10410echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10411echo "${ECHO_T}$ld_shlibs_CXX" >&6
10412test "$ld_shlibs_CXX" = no && can_build_shared=no
10413
10414GCC_CXX="$GXX"
10415LD_CXX="$LD"
10416
10417## CAVEAT EMPTOR:
10418## There is no encapsulation within the following macros, do not change
10419## the running order or otherwise move them around unless you know exactly
10420## what you are doing...
10421
10422cat > conftest.$ac_ext <<EOF
10423class Foo
10424{
10425public:
10426 Foo (void) { a = 0; }
10427private:
10428 int a;
10429};
10430EOF
10431
10432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10433 (eval $ac_compile) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; then
10437 # Parse the compiler output and extract the necessary
10438 # objects, libraries and library flags.
10439
10440 # Sentinel used to keep track of whether or not we are before
10441 # the conftest object file.
10442 pre_test_object_deps_done=no
10443
10444 # The `*' in the case matches for architectures that use `case' in
10445 # $output_verbose_cmd can trigger glob expansion during the loop
10446 # eval without this substitution.
10447 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10448
10449 for p in `eval $output_verbose_link_cmd`; do
10450 case $p in
10451
10452 -L* | -R* | -l*)
10453 # Some compilers place space between "-{L,R}" and the path.
10454 # Remove the space.
10455 if test $p = "-L" \
10456 || test $p = "-R"; then
10457 prev=$p
10458 continue
10459 else
10460 prev=
10461 fi
10462
10463 if test "$pre_test_object_deps_done" = no; then
10464 case $p in
10465 -L* | -R*)
10466 # Internal compiler library paths should come after those
10467 # provided the user. The postdeps already come after the
10468 # user supplied libs so there is no need to process them.
10469 if test -z "$compiler_lib_search_path_CXX"; then
10470 compiler_lib_search_path_CXX="${prev}${p}"
10471 else
10472 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10473 fi
10474 ;;
10475 # The "-l" case would never come before the object being
10476 # linked, so don't bother handling this case.
10477 esac
10478 else
10479 if test -z "$postdeps_CXX"; then
10480 postdeps_CXX="${prev}${p}"
10481 else
10482 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10483 fi
10484 fi
10485 ;;
10486
10487 *.$objext)
10488 # This assumes that the test object file only shows up
10489 # once in the compiler output.
10490 if test "$p" = "conftest.$objext"; then
10491 pre_test_object_deps_done=yes
10492 continue
10493 fi
10494
10495 if test "$pre_test_object_deps_done" = no; then
10496 if test -z "$predep_objects_CXX"; then
10497 predep_objects_CXX="$p"
10498 else
10499 predep_objects_CXX="$predep_objects_CXX $p"
10500 fi
10501 else
10502 if test -z "$postdep_objects_CXX"; then
10503 postdep_objects_CXX="$p"
10504 else
10505 postdep_objects_CXX="$postdep_objects_CXX $p"
10506 fi
10507 fi
10508 ;;
10509
10510 *) ;; # Ignore the rest.
10511
10512 esac
10513 done
10514
10515 # Clean up.
10516 rm -f a.out a.exe
10517else
10518 echo "libtool.m4: error: problem compiling CXX test program"
10519fi
10520
10521$rm -f confest.$objext
10522
10523case " $postdeps_CXX " in
10524*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10525esac
10526
10527lt_prog_compiler_wl_CXX=
10528lt_prog_compiler_pic_CXX=
10529lt_prog_compiler_static_CXX=
10530
10531echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10532echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10533
10534 # C++ specific cases for pic, static, wl, etc.
10535 if test "$GXX" = yes; then
10536 lt_prog_compiler_wl_CXX='-Wl,'
10537 lt_prog_compiler_static_CXX='-static'
10538
10539 case $host_os in
10540 aix*)
10541 # All AIX code is PIC.
10542 if test "$host_cpu" = ia64; then
10543 # AIX 5 now supports IA64 processor
10544 lt_prog_compiler_static_CXX='-Bstatic'
10545 fi
10546 ;;
10547 amigaos*)
10548 # FIXME: we need at least 68020 code to build shared libraries, but
10549 # adding the `-m68020' flag to GCC prevents building anything better,
10550 # like `-m68040'.
10551 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10552 ;;
10553 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10554 # PIC is the default for these OSes.
10555 ;;
10556 mingw* | os2* | pw32*)
10557 # This hack is so that the source file can tell whether it is being
10558 # built for inclusion in a dll (and should export symbols for example).
10559 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10560 ;;
10561 darwin* | rhapsody*)
10562 # PIC is the default on this platform
10563 # Common symbols not allowed in MH_DYLIB files
10564 lt_prog_compiler_pic_CXX='-fno-common'
10565 ;;
10566 *djgpp*)
10567 # DJGPP does not support shared libraries at all
10568 lt_prog_compiler_pic_CXX=
10569 ;;
10570 sysv4*MP*)
10571 if test -d /usr/nec; then
10572 lt_prog_compiler_pic_CXX=-Kconform_pic
10573 fi
10574 ;;
10575 hpux*)
10576 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10577 # not for PA HP-UX.
10578 case "$host_cpu" in
10579 hppa*64*|ia64*)
10580 ;;
10581 *)
10582 lt_prog_compiler_pic_CXX='-fPIC'
10583 ;;
10584 esac
10585 ;;
10586 *)
10587 lt_prog_compiler_pic_CXX='-fPIC'
10588 ;;
10589 esac
10590 else
10591 case $host_os in
10592 aix4* | aix5*)
10593 # All AIX code is PIC.
10594 if test "$host_cpu" = ia64; then
10595 # AIX 5 now supports IA64 processor
10596 lt_prog_compiler_static_CXX='-Bstatic'
10597 else
10598 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10599 fi
10600 ;;
10601 chorus*)
10602 case $cc_basename in
10603 cxch68)
10604 # Green Hills C++ Compiler
10605 # _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"
10606 ;;
10607 esac
10608 ;;
10609 dgux*)
10610 case $cc_basename in
10611 ec++)
10612 lt_prog_compiler_pic_CXX='-KPIC'
10613 ;;
10614 ghcx)
10615 # Green Hills C++ Compiler
10616 lt_prog_compiler_pic_CXX='-pic'
10617 ;;
10618 *)
10619 ;;
10620 esac
10621 ;;
10622 freebsd*)
10623 # FreeBSD uses GNU C++
10624 ;;
10625 hpux9* | hpux10* | hpux11*)
10626 case $cc_basename in
10627 CC)
10628 lt_prog_compiler_wl_CXX='-Wl,'
10629 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10630 if test "$host_cpu" != ia64; then
10631 lt_prog_compiler_pic_CXX='+Z'
10632 fi
10633 ;;
10634 aCC)
10635 lt_prog_compiler_wl_CXX='-Wl,'
10636 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10637 case "$host_cpu" in
10638 hppa*64*|ia64*)
10639 # +Z the default
10640 ;;
10641 *)
10642 lt_prog_compiler_pic_CXX='+Z'
10643 ;;
10644 esac
10645 ;;
10646 *)
10647 ;;
10648 esac
10649 ;;
10650 irix5* | irix6* | nonstopux*)
10651 case $cc_basename in
10652 CC)
10653 lt_prog_compiler_wl_CXX='-Wl,'
10654 lt_prog_compiler_static_CXX='-non_shared'
10655 # CC pic flag -KPIC is the default.
10656 ;;
10657 *)
10658 ;;
10659 esac
10660 ;;
10661 linux*)
10662 case $cc_basename in
10663 KCC)
10664 # KAI C++ Compiler
10665 lt_prog_compiler_wl_CXX='--backend -Wl,'
10666 lt_prog_compiler_pic_CXX='-fPIC'
10667 ;;
10668 icpc)
10669 # Intel C++
10670 lt_prog_compiler_wl_CXX='-Wl,'
10671 lt_prog_compiler_pic_CXX='-KPIC'
10672 lt_prog_compiler_static_CXX='-static'
10673 ;;
10674 cxx)
10675 # Compaq C++
10676 # Make sure the PIC flag is empty. It appears that all Alpha
10677 # Linux and Compaq Tru64 Unix objects are PIC.
10678 lt_prog_compiler_pic_CXX=
10679 lt_prog_compiler_static_CXX='-non_shared'
10680 ;;
10681 *)
10682 ;;
10683 esac
10684 ;;
10685 lynxos*)
10686 ;;
10687 m88k*)
10688 ;;
10689 mvs*)
10690 case $cc_basename in
10691 cxx)
10692 lt_prog_compiler_pic_CXX='-W c,exportall'
10693 ;;
10694 *)
10695 ;;
10696 esac
10697 ;;
10698 netbsd*)
10699 ;;
10700 osf3* | osf4* | osf5*)
10701 case $cc_basename in
10702 KCC)
10703 lt_prog_compiler_wl_CXX='--backend -Wl,'
10704 ;;
10705 RCC)
10706 # Rational C++ 2.4.1
10707 lt_prog_compiler_pic_CXX='-pic'
10708 ;;
10709 cxx)
10710 # Digital/Compaq C++
10711 lt_prog_compiler_wl_CXX='-Wl,'
10712 # Make sure the PIC flag is empty. It appears that all Alpha
10713 # Linux and Compaq Tru64 Unix objects are PIC.
10714 lt_prog_compiler_pic_CXX=
10715 lt_prog_compiler_static_CXX='-non_shared'
10716 ;;
10717 *)
10718 ;;
10719 esac
10720 ;;
10721 psos*)
10722 ;;
10723 sco*)
10724 case $cc_basename in
10725 CC)
10726 lt_prog_compiler_pic_CXX='-fPIC'
10727 ;;
10728 *)
10729 ;;
10730 esac
10731 ;;
10732 solaris*)
10733 case $cc_basename in
10734 CC)
10735 # Sun C++ 4.2, 5.x and Centerline C++
10736 lt_prog_compiler_pic_CXX='-KPIC'
10737 lt_prog_compiler_static_CXX='-Bstatic'
10738 lt_prog_compiler_wl_CXX='-Qoption ld '
10739 ;;
10740 gcx)
10741 # Green Hills C++ Compiler
10742 lt_prog_compiler_pic_CXX='-PIC'
10743 ;;
10744 *)
10745 ;;
10746 esac
10747 ;;
10748 sunos4*)
10749 case $cc_basename in
10750 CC)
10751 # Sun C++ 4.x
10752 lt_prog_compiler_pic_CXX='-pic'
10753 lt_prog_compiler_static_CXX='-Bstatic'
10754 ;;
10755 lcc)
10756 # Lucid
10757 lt_prog_compiler_pic_CXX='-pic'
10758 ;;
10759 *)
10760 ;;
10761 esac
10762 ;;
10763 tandem*)
10764 case $cc_basename in
10765 NCC)
10766 # NonStop-UX NCC 3.20
10767 lt_prog_compiler_pic_CXX='-KPIC'
10768 ;;
10769 *)
10770 ;;
10771 esac
10772 ;;
10773 unixware*)
10774 ;;
10775 vxworks*)
10776 ;;
10777 *)
10778 lt_prog_compiler_can_build_shared_CXX=no
10779 ;;
10780 esac
10781 fi
10782
10783echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10784echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10785
10786#
10787# Check to make sure the PIC flag actually works.
10788#
10789if test -n "$lt_prog_compiler_pic_CXX"; then
10790 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10791echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10792if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10794else
10795 lt_prog_compiler_pic_works_CXX=no
10796 ac_outfile=conftest.$ac_objext
10797 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10798 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10799 # Insert the option either (1) after the last *FLAGS variable, or
10800 # (2) before a word containing "conftest.", or (3) at the end.
10801 # Note that $ac_compile itself does not contain backslashes and begins
10802 # with a dollar sign (not a hyphen), so the echo should work correctly.
10803 # The option is referenced via a variable to avoid confusing sed.
10804 lt_compile=`echo "$ac_compile" | $SED \
10805 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10807 -e 's:$: $lt_compiler_flag:'`
John Criswell987e49c2003-10-10 01:11:54 +000010808 (eval echo "\"\$as_me:10808: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010809 (eval "$lt_compile" 2>conftest.err)
10810 ac_status=$?
10811 cat conftest.err >&5
John Criswell987e49c2003-10-10 01:11:54 +000010812 echo "$as_me:10812: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010813 if (exit $ac_status) && test -s "$ac_outfile"; then
10814 # The compiler can only warn and ignore the option if not recognized
10815 # So say no if there are warnings
10816 if test ! -s conftest.err; then
10817 lt_prog_compiler_pic_works_CXX=yes
10818 fi
10819 fi
10820 $rm conftest*
10821
10822fi
10823echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10824echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10825
10826if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10827 case $lt_prog_compiler_pic_CXX in
10828 "" | " "*) ;;
10829 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10830 esac
10831else
10832 lt_prog_compiler_pic_CXX=
10833 lt_prog_compiler_can_build_shared_CXX=no
10834fi
10835
10836fi
10837case "$host_os" in
10838 # For platforms which do not support PIC, -DPIC is meaningless:
10839 *djgpp*)
10840 lt_prog_compiler_pic_CXX=
10841 ;;
10842 *)
10843 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10844 ;;
10845esac
10846
10847echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10848echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10849if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10851else
10852 lt_cv_prog_compiler_c_o_CXX=no
10853 $rm -r conftest 2>/dev/null
10854 mkdir conftest
10855 cd conftest
10856 mkdir out
10857 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10858
10859 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10860 # that will create temporary files in the current directory regardless of
10861 # the output directory. Thus, making CWD read-only will cause this test
10862 # to fail, enabling locking or at least warning the user not to do parallel
10863 # builds.
10864 chmod -w .
10865
10866 lt_compiler_flag="-o out/conftest2.$ac_objext"
10867 # Insert the option either (1) after the last *FLAGS variable, or
10868 # (2) before a word containing "conftest.", or (3) at the end.
10869 # Note that $ac_compile itself does not contain backslashes and begins
10870 # with a dollar sign (not a hyphen), so the echo should work correctly.
10871 lt_compile=`echo "$ac_compile" | $SED \
10872 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10874 -e 's:$: $lt_compiler_flag:'`
John Criswell987e49c2003-10-10 01:11:54 +000010875 (eval echo "\"\$as_me:10875: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010876 (eval "$lt_compile" 2>out/conftest.err)
10877 ac_status=$?
10878 cat out/conftest.err >&5
John Criswell987e49c2003-10-10 01:11:54 +000010879 echo "$as_me:10879: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10881 then
10882 # The compiler can only warn and ignore the option if not recognized
10883 # So say no if there are warnings
10884 if test ! -s out/conftest.err; then
10885 lt_cv_prog_compiler_c_o_CXX=yes
10886 fi
10887 fi
10888 chmod u+w .
10889 $rm conftest* out/*
10890 rmdir out
10891 cd ..
10892 rmdir conftest
10893 $rm conftest*
10894
10895fi
10896echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10897echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10898
10899
10900hard_links="nottested"
10901if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10902 # do not overwrite the value of need_locks provided by the user
10903 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10904echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10905 hard_links=yes
10906 $rm conftest*
10907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10908 touch conftest.a
10909 ln conftest.a conftest.b 2>&5 || hard_links=no
10910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10911 echo "$as_me:$LINENO: result: $hard_links" >&5
10912echo "${ECHO_T}$hard_links" >&6
10913 if test "$hard_links" = no; then
10914 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10915echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10916 need_locks=warn
10917 fi
10918else
10919 need_locks=no
10920fi
10921
10922echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10923echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10924
10925 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10926 case $host_os in
10927 aix4* | aix5*)
10928 # If we're using GNU nm, then we don't want the "-C" option.
10929 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10930 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10931 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'
10932 else
10933 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'
10934 fi
10935 ;;
10936 pw32*)
10937 export_symbols_cmds_CXX="$ltdll_cmds"
10938 ;;
10939 cygwin* | mingw*)
10940 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10941 ;;
10942 *)
10943 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10944 ;;
10945 esac
10946
10947echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10948echo "${ECHO_T}$ld_shlibs_CXX" >&6
10949test "$ld_shlibs_CXX" = no && can_build_shared=no
10950
10951variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10952if test "$GCC" = yes; then
10953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10954fi
10955
10956#
10957# Do we need to explicitly link libc?
10958#
10959case "x$archive_cmds_need_lc_CXX" in
10960x|xyes)
10961 # Assume -lc should be added
10962 archive_cmds_need_lc_CXX=yes
10963
10964 if test "$enable_shared" = yes && test "$GCC" = yes; then
10965 case $archive_cmds_CXX in
10966 *'~'*)
10967 # FIXME: we may have to deal with multi-command sequences.
10968 ;;
10969 '$CC '*)
10970 # Test whether the compiler implicitly links with -lc since on some
10971 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10972 # to ld, don't add -lc before -lgcc.
10973 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10974echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10975 $rm conftest*
10976 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10977
10978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10979 (eval $ac_compile) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } 2>conftest.err; then
10983 soname=conftest
10984 lib=conftest
10985 libobjs=conftest.$ac_objext
10986 deplibs=
10987 wl=$lt_prog_compiler_wl_CXX
10988 compiler_flags=-v
10989 linker_flags=-v
10990 verstring=
10991 output_objdir=.
10992 libname=conftest
10993 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10994 allow_undefined_flag_CXX=
10995 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10996 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }
11000 then
11001 archive_cmds_need_lc_CXX=no
11002 else
11003 archive_cmds_need_lc_CXX=yes
11004 fi
11005 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11006 else
11007 cat conftest.err 1>&5
11008 fi
11009 $rm conftest*
11010 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11011echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11012 ;;
11013 esac
11014 fi
11015 ;;
11016esac
11017
11018echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11019echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11020hardcode_action_CXX=
11021if test -n "$hardcode_libdir_flag_spec_CXX" || \
11022 test -n "$runpath_var CXX" || \
11023 test "X$hardcode_automatic_CXX"="Xyes" ; then
11024
11025 # We can hardcode non-existant directories.
11026 if test "$hardcode_direct_CXX" != no &&
11027 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11028 # have to relink, otherwise we might link with an installed library
11029 # when we should be linking with a yet-to-be-installed one
11030 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11031 test "$hardcode_minus_L_CXX" != no; then
11032 # Linking always hardcodes the temporary library directory.
11033 hardcode_action_CXX=relink
11034 else
11035 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11036 hardcode_action_CXX=immediate
11037 fi
11038else
11039 # We cannot hardcode anything, or else we can only hardcode existing
11040 # directories.
11041 hardcode_action_CXX=unsupported
11042fi
11043echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11044echo "${ECHO_T}$hardcode_action_CXX" >&6
11045
11046if test "$hardcode_action_CXX" = relink; then
11047 # Fast installation is not supported
11048 enable_fast_install=no
11049elif test "$shlibpath_overrides_runpath" = yes ||
11050 test "$enable_shared" = no; then
11051 # Fast installation is not necessary
11052 enable_fast_install=needless
11053fi
11054
11055striplib=
11056old_striplib=
11057echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11058echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11059if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11060 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11061 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11062 echo "$as_me:$LINENO: result: yes" >&5
11063echo "${ECHO_T}yes" >&6
11064else
11065# FIXME - insert some real tests, host_os isn't really good enough
11066 case $host_os in
11067 darwin*)
11068 if test -n "$STRIP" ; then
11069 striplib="$STRIP -x"
11070 echo "$as_me:$LINENO: result: yes" >&5
11071echo "${ECHO_T}yes" >&6
11072 else
11073 echo "$as_me:$LINENO: result: no" >&5
11074echo "${ECHO_T}no" >&6
11075fi
11076 ;;
11077 *)
11078 echo "$as_me:$LINENO: result: no" >&5
11079echo "${ECHO_T}no" >&6
11080 ;;
11081 esac
11082fi
11083
11084echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11085echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11086library_names_spec=
11087libname_spec='lib$name'
11088soname_spec=
11089shrext=".so"
11090postinstall_cmds=
11091postuninstall_cmds=
11092finish_cmds=
11093finish_eval=
11094shlibpath_var=
11095shlibpath_overrides_runpath=unknown
11096version_type=none
11097dynamic_linker="$host_os ld.so"
11098sys_lib_dlsearch_path_spec="/lib /usr/lib"
11099if test "$GCC" = yes; then
11100 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11101 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11102 # if the path contains ";" then we assume it to be the separator
11103 # otherwise default to the standard path separator (i.e. ":") - it is
11104 # assumed that no part of a normal pathname contains ";" but that should
11105 # okay in the real world where ";" in dirpaths is itself problematic.
11106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11107 else
11108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11109 fi
11110else
11111 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11112fi
11113need_lib_prefix=unknown
11114hardcode_into_libs=no
11115
11116# when you set need_version to no, make sure it does not cause -set_version
11117# flags to be left without arguments
11118need_version=unknown
11119
11120case $host_os in
11121aix3*)
11122 version_type=linux
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11124 shlibpath_var=LIBPATH
11125
11126 # AIX 3 has no versioning support, so we append a major version to the name.
11127 soname_spec='${libname}${release}${shared_ext}$major'
11128 ;;
11129
11130aix4* | aix5*)
11131 version_type=linux
11132 need_lib_prefix=no
11133 need_version=no
11134 hardcode_into_libs=yes
11135 if test "$host_cpu" = ia64; then
11136 # AIX 5 supports IA64
11137 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 else
11140 # With GCC up to 2.95.x, collect2 would create an import file
11141 # for dependence libraries. The import file would start with
11142 # the line `#! .'. This would cause the generated library to
11143 # depend on `.', always an invalid library. This was fixed in
11144 # development snapshots of GCC prior to 3.0.
11145 case $host_os in
11146 aix4 | aix4.[01] | aix4.[01].*)
11147 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11148 echo ' yes '
11149 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11150 :
11151 else
11152 can_build_shared=no
11153 fi
11154 ;;
11155 esac
11156 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11157 # soname into executable. Probably we can add versioning support to
11158 # collect2, so additional links can be useful in future.
11159 if test "$aix_use_runtimelinking" = yes; then
11160 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11161 # instead of lib<name>.a to let people know that these are not
11162 # typical AIX shared libraries.
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 else
11165 # We preserve .a as extension for shared libraries through AIX4.2
11166 # and later when we are not doing run time linking.
11167 library_names_spec='${libname}${release}.a $libname.a'
11168 soname_spec='${libname}${release}${shared_ext}$major'
11169 fi
11170 shlibpath_var=LIBPATH
11171 fi
11172 ;;
11173
11174amigaos*)
11175 library_names_spec='$libname.ixlibrary $libname.a'
11176 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11177 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'
11178 ;;
11179
11180beos*)
11181 library_names_spec='${libname}${shared_ext}'
11182 dynamic_linker="$host_os ld.so"
11183 shlibpath_var=LIBRARY_PATH
11184 ;;
11185
11186bsdi4*)
11187 version_type=linux
11188 need_version=no
11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 soname_spec='${libname}${release}${shared_ext}$major'
11191 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11194 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11195 # the default ld.so.conf also contains /usr/contrib/lib and
11196 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11197 # libtool to hard-code these into programs
11198 ;;
11199
11200cygwin* | mingw* | pw32*)
11201 version_type=windows
11202 shrext=".dll"
11203 need_version=no
11204 need_lib_prefix=no
11205
11206 case $GCC,$host_os in
11207 yes,cygwin* | yes,mingw* | yes,pw32*)
11208 library_names_spec='$libname.dll.a'
11209 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11210 postinstall_cmds='base_file=`basename \${file}`~
11211 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11212 dldir=$destdir/`dirname \$dlpath`~
11213 test -d \$dldir || mkdir -p \$dldir~
11214 $install_prog $dir/$dlname \$dldir/$dlname'
11215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11216 dlpath=$dir/\$dldll~
11217 $rm \$dlpath'
11218 shlibpath_overrides_runpath=yes
11219
11220 case $host_os in
11221 cygwin*)
11222 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11223 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11224 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11225 ;;
11226 mingw*)
11227 # MinGW DLLs use traditional 'lib' prefix
11228 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11229 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11230 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11231 # It is most probably a Windows format PATH printed by
11232 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11233 # path with ; separators, and with drive letters. We can handle the
11234 # drive letters (cygwin fileutils understands them), so leave them,
11235 # especially as we might pass files found there to a mingw objdump,
11236 # which wouldn't understand a cygwinified path. Ahh.
11237 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11238 else
11239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11240 fi
11241 ;;
11242 pw32*)
11243 # pw32 DLLs use 'pw' prefix rather than 'lib'
11244 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11245 ;;
11246 esac
11247 ;;
11248
11249 *)
11250 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11251 ;;
11252 esac
11253 dynamic_linker='Win32 ld.exe'
11254 # FIXME: first we should search . and the directory the executable is in
11255 shlibpath_var=PATH
11256 ;;
11257
11258darwin* | rhapsody*)
11259 dynamic_linker="$host_os dyld"
11260 version_type=darwin
11261 need_lib_prefix=no
11262 need_version=no
11263 # FIXME: Relying on posixy $() will cause problems for
11264 # cross-compilation, but unfortunately the echo tests do not
11265 # yet detect zsh echo's removal of \ escapes.
11266 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11267 soname_spec='${libname}${release}${major}$shared_ext'
11268 shlibpath_overrides_runpath=yes
11269 shlibpath_var=DYLD_LIBRARY_PATH
11270 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11271 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11272 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11273 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"`
11274 fi
11275 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11276 ;;
11277
11278dgux*)
11279 version_type=linux
11280 need_lib_prefix=no
11281 need_version=no
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 shlibpath_var=LD_LIBRARY_PATH
11285 ;;
11286
11287freebsd1*)
11288 dynamic_linker=no
11289 ;;
11290
11291freebsd*)
11292 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11293 version_type=freebsd-$objformat
11294 case $version_type in
11295 freebsd-elf*)
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11297 need_version=no
11298 need_lib_prefix=no
11299 ;;
11300 freebsd-*)
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11302 need_version=yes
11303 ;;
11304 esac
11305 shlibpath_var=LD_LIBRARY_PATH
11306 case $host_os in
11307 freebsd2*)
11308 shlibpath_overrides_runpath=yes
11309 ;;
11310 freebsd3.01* | freebsdelf3.01*)
11311 shlibpath_overrides_runpath=yes
11312 hardcode_into_libs=yes
11313 ;;
11314 *) # from 3.2 on
11315 shlibpath_overrides_runpath=no
11316 hardcode_into_libs=yes
11317 ;;
11318 esac
11319 ;;
11320
11321gnu*)
11322 version_type=linux
11323 need_lib_prefix=no
11324 need_version=no
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11326 soname_spec='${libname}${release}${shared_ext}$major'
11327 shlibpath_var=LD_LIBRARY_PATH
11328 hardcode_into_libs=yes
11329 ;;
11330
11331hpux9* | hpux10* | hpux11*)
11332 # Give a soname corresponding to the major version so that dld.sl refuses to
11333 # link against other versions.
11334 version_type=sunos
11335 need_lib_prefix=no
11336 need_version=no
11337 case "$host_cpu" in
11338 ia64*)
11339 shrext='.so'
11340 hardcode_into_libs=yes
11341 dynamic_linker="$host_os dld.so"
11342 shlibpath_var=LD_LIBRARY_PATH
11343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345 soname_spec='${libname}${release}${shared_ext}$major'
11346 if test "X$HPUX_IA64_MODE" = X32; then
11347 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11348 else
11349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11350 fi
11351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11352 ;;
11353 hppa*64*)
11354 shrext='.sl'
11355 hardcode_into_libs=yes
11356 dynamic_linker="$host_os dld.sl"
11357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11363 ;;
11364 *)
11365 shrext='.sl'
11366 dynamic_linker="$host_os dld.sl"
11367 shlibpath_var=SHLIB_PATH
11368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 ;;
11372 esac
11373 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11374 postinstall_cmds='chmod 555 $lib'
11375 ;;
11376
11377irix5* | irix6* | nonstopux*)
11378 case $host_os in
11379 nonstopux*) version_type=nonstopux ;;
11380 *)
11381 if test "$lt_cv_prog_gnu_ld" = yes; then
11382 version_type=linux
11383 else
11384 version_type=irix
11385 fi ;;
11386 esac
11387 need_lib_prefix=no
11388 need_version=no
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11391 case $host_os in
11392 irix5* | nonstopux*)
11393 libsuff= shlibsuff=
11394 ;;
11395 *)
11396 case $LD in # libtool.m4 will add one of these switches to LD
11397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11398 libsuff= shlibsuff= libmagic=32-bit;;
11399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11400 libsuff=32 shlibsuff=N32 libmagic=N32;;
11401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11403 *) libsuff= shlibsuff= libmagic=never-match;;
11404 esac
11405 ;;
11406 esac
11407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11408 shlibpath_overrides_runpath=no
11409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11411 hardcode_into_libs=yes
11412 ;;
11413
11414# No shared lib support for Linux oldld, aout, or coff.
11415linux*oldld* | linux*aout* | linux*coff*)
11416 dynamic_linker=no
11417 ;;
11418
11419# This must be Linux ELF.
11420linux*)
11421 version_type=linux
11422 need_lib_prefix=no
11423 need_version=no
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11427 shlibpath_var=LD_LIBRARY_PATH
11428 shlibpath_overrides_runpath=no
11429 # This implies no fast_install, which is unacceptable.
11430 # Some rework will be needed to allow for fast_install
11431 # before this can be enabled.
11432 hardcode_into_libs=yes
11433
11434 # We used to test for /lib/ld.so.1 and disable shared libraries on
11435 # powerpc, because MkLinux only supported shared libraries with the
11436 # GNU dynamic linker. Since this was broken with cross compilers,
11437 # most powerpc-linux boxes support dynamic linking these days and
11438 # people can always --disable-shared, the test was removed, and we
11439 # assume the GNU/Linux dynamic linker is in use.
11440 dynamic_linker='GNU/Linux ld.so'
11441 ;;
11442
11443netbsd*)
11444 version_type=sunos
11445 need_lib_prefix=no
11446 need_version=no
11447 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11450 dynamic_linker='NetBSD (a.out) ld.so'
11451 else
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11453 soname_spec='${libname}${release}${shared_ext}$major'
11454 dynamic_linker='NetBSD ld.elf_so'
11455 fi
11456 shlibpath_var=LD_LIBRARY_PATH
11457 shlibpath_overrides_runpath=yes
11458 hardcode_into_libs=yes
11459 ;;
11460
11461newsos6)
11462 version_type=linux
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=yes
11466 ;;
11467
11468nto-qnx)
11469 version_type=linux
11470 need_lib_prefix=no
11471 need_version=no
11472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11473 soname_spec='${libname}${release}${shared_ext}$major'
11474 shlibpath_var=LD_LIBRARY_PATH
11475 shlibpath_overrides_runpath=yes
11476 ;;
11477
11478openbsd*)
11479 version_type=sunos
11480 need_lib_prefix=no
11481 need_version=no
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11484 shlibpath_var=LD_LIBRARY_PATH
11485 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11486 case $host_os in
11487 openbsd2.[89] | openbsd2.[89].*)
11488 shlibpath_overrides_runpath=no
11489 ;;
11490 *)
11491 shlibpath_overrides_runpath=yes
11492 ;;
11493 esac
11494 else
11495 shlibpath_overrides_runpath=yes
11496 fi
11497 ;;
11498
11499os2*)
11500 libname_spec='$name'
11501 shrext=".dll"
11502 need_lib_prefix=no
11503 library_names_spec='$libname${shared_ext} $libname.a'
11504 dynamic_linker='OS/2 ld.exe'
11505 shlibpath_var=LIBPATH
11506 ;;
11507
11508osf3* | osf4* | osf5*)
11509 version_type=osf
11510 need_lib_prefix=no
11511 need_version=no
11512 soname_spec='${libname}${release}${shared_ext}$major'
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11516 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11517 ;;
11518
11519sco3.2v5*)
11520 version_type=osf
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 ;;
11525
11526solaris*)
11527 version_type=linux
11528 need_lib_prefix=no
11529 need_version=no
11530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11531 soname_spec='${libname}${release}${shared_ext}$major'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 shlibpath_overrides_runpath=yes
11534 hardcode_into_libs=yes
11535 # ldd complains unless libraries are executable
11536 postinstall_cmds='chmod +x $lib'
11537 ;;
11538
11539sunos4*)
11540 version_type=sunos
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11542 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11543 shlibpath_var=LD_LIBRARY_PATH
11544 shlibpath_overrides_runpath=yes
11545 if test "$with_gnu_ld" = yes; then
11546 need_lib_prefix=no
11547 fi
11548 need_version=yes
11549 ;;
11550
11551sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11552 version_type=linux
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 case $host_vendor in
11557 sni)
11558 shlibpath_overrides_runpath=no
11559 need_lib_prefix=no
11560 export_dynamic_flag_spec='${wl}-Blargedynsym'
11561 runpath_var=LD_RUN_PATH
11562 ;;
11563 siemens)
11564 need_lib_prefix=no
11565 ;;
11566 motorola)
11567 need_lib_prefix=no
11568 need_version=no
11569 shlibpath_overrides_runpath=no
11570 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11571 ;;
11572 esac
11573 ;;
11574
11575sysv4*MP*)
11576 if test -d /usr/nec ;then
11577 version_type=linux
11578 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11579 soname_spec='$libname${shared_ext}.$major'
11580 shlibpath_var=LD_LIBRARY_PATH
11581 fi
11582 ;;
11583
11584uts4*)
11585 version_type=linux
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587 soname_spec='${libname}${release}${shared_ext}$major'
11588 shlibpath_var=LD_LIBRARY_PATH
11589 ;;
11590
11591*)
11592 dynamic_linker=no
11593 ;;
11594esac
11595echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11596echo "${ECHO_T}$dynamic_linker" >&6
11597test "$dynamic_linker" = no && can_build_shared=no
11598
11599if test "x$enable_dlopen" != xyes; then
11600 enable_dlopen=unknown
11601 enable_dlopen_self=unknown
11602 enable_dlopen_self_static=unknown
11603else
11604 lt_cv_dlopen=no
11605 lt_cv_dlopen_libs=
11606
11607 case $host_os in
11608 beos*)
11609 lt_cv_dlopen="load_add_on"
11610 lt_cv_dlopen_libs=
11611 lt_cv_dlopen_self=yes
11612 ;;
11613
11614 mingw* | pw32*)
11615 lt_cv_dlopen="LoadLibrary"
11616 lt_cv_dlopen_libs=
11617 ;;
11618
11619 cygwin*)
11620 lt_cv_dlopen="dlopen"
11621 lt_cv_dlopen_libs=
11622 ;;
11623
11624 darwin*)
11625 # if libdl is installed we need to link against it
11626 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11627echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11628if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630else
11631 ac_check_lib_save_LIBS=$LIBS
11632LIBS="-ldl $LIBS"
11633cat >conftest.$ac_ext <<_ACEOF
11634#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011635/* confdefs.h. */
11636_ACEOF
11637cat confdefs.h >>conftest.$ac_ext
11638cat >>conftest.$ac_ext <<_ACEOF
11639/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011640
11641/* Override any gcc2 internal prototype to avoid an error. */
11642#ifdef __cplusplus
11643extern "C"
11644#endif
11645/* We use char because int might match the return type of a gcc2
11646 builtin and then its argument prototype would still apply. */
11647char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011648int
11649main ()
11650{
11651dlopen ();
11652 ;
11653 return 0;
11654}
11655_ACEOF
11656rm -f conftest.$ac_objext conftest$ac_exeext
11657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11658 (eval $ac_link) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try='test -s conftest$ac_exeext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_cv_lib_dl_dlopen=yes
11669else
11670 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011671sed 's/^/| /' conftest.$ac_ext >&5
11672
John Criswell47fdd832003-07-14 16:52:07 +000011673ac_cv_lib_dl_dlopen=no
11674fi
11675rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11676LIBS=$ac_check_lib_save_LIBS
11677fi
11678echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11679echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11680if test $ac_cv_lib_dl_dlopen = yes; then
11681 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11682else
11683
11684 lt_cv_dlopen="dyld"
11685 lt_cv_dlopen_libs=
11686 lt_cv_dlopen_self=yes
11687
11688fi
11689
11690 ;;
11691
11692 *)
11693 echo "$as_me:$LINENO: checking for shl_load" >&5
11694echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11695if test "${ac_cv_func_shl_load+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11697else
11698 cat >conftest.$ac_ext <<_ACEOF
11699#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011700/* confdefs.h. */
11701_ACEOF
11702cat confdefs.h >>conftest.$ac_ext
11703cat >>conftest.$ac_ext <<_ACEOF
11704/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011705/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011706 which can conflict with char shl_load (); below.
11707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708 <limits.h> exists even on freestanding compilers. */
11709#ifdef __STDC__
11710# include <limits.h>
11711#else
11712# include <assert.h>
11713#endif
John Criswell47fdd832003-07-14 16:52:07 +000011714/* Override any gcc2 internal prototype to avoid an error. */
11715#ifdef __cplusplus
11716extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011717{
John Criswell47fdd832003-07-14 16:52:07 +000011718#endif
11719/* We use char because int might match the return type of a gcc2
11720 builtin and then its argument prototype would still apply. */
11721char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011722/* The GNU C library defines this for functions which it implements
11723 to always fail with ENOSYS. Some functions are actually named
11724 something starting with __ and the normal name is an alias. */
11725#if defined (__stub_shl_load) || defined (__stub___shl_load)
11726choke me
11727#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011728char (*f) () = shl_load;
11729#endif
11730#ifdef __cplusplus
11731}
John Criswell47fdd832003-07-14 16:52:07 +000011732#endif
11733
John Criswell0c38eaf2003-09-10 15:17:25 +000011734int
11735main ()
11736{
11737return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011738 ;
11739 return 0;
11740}
11741_ACEOF
11742rm -f conftest.$ac_objext conftest$ac_exeext
11743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11744 (eval $ac_link) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } &&
11748 { ac_try='test -s conftest$ac_exeext'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; }; then
11754 ac_cv_func_shl_load=yes
11755else
11756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011757sed 's/^/| /' conftest.$ac_ext >&5
11758
John Criswell47fdd832003-07-14 16:52:07 +000011759ac_cv_func_shl_load=no
11760fi
11761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11762fi
11763echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11764echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11765if test $ac_cv_func_shl_load = yes; then
11766 lt_cv_dlopen="shl_load"
11767else
11768 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11769echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11770if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11772else
11773 ac_check_lib_save_LIBS=$LIBS
11774LIBS="-ldld $LIBS"
11775cat >conftest.$ac_ext <<_ACEOF
11776#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011777/* confdefs.h. */
11778_ACEOF
11779cat confdefs.h >>conftest.$ac_ext
11780cat >>conftest.$ac_ext <<_ACEOF
11781/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011782
11783/* Override any gcc2 internal prototype to avoid an error. */
11784#ifdef __cplusplus
11785extern "C"
11786#endif
11787/* We use char because int might match the return type of a gcc2
11788 builtin and then its argument prototype would still apply. */
11789char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011790int
11791main ()
11792{
11793shl_load ();
11794 ;
11795 return 0;
11796}
11797_ACEOF
11798rm -f conftest.$ac_objext conftest$ac_exeext
11799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11800 (eval $ac_link) 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try='test -s conftest$ac_exeext'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11807 ac_status=$?
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; }; then
11810 ac_cv_lib_dld_shl_load=yes
11811else
11812 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011813sed 's/^/| /' conftest.$ac_ext >&5
11814
John Criswell47fdd832003-07-14 16:52:07 +000011815ac_cv_lib_dld_shl_load=no
11816fi
11817rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11818LIBS=$ac_check_lib_save_LIBS
11819fi
11820echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11821echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11822if test $ac_cv_lib_dld_shl_load = yes; then
11823 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11824else
11825 echo "$as_me:$LINENO: checking for dlopen" >&5
11826echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11827if test "${ac_cv_func_dlopen+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11829else
11830 cat >conftest.$ac_ext <<_ACEOF
11831#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011837/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011838 which can conflict with char dlopen (); below.
11839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11840 <limits.h> exists even on freestanding compilers. */
11841#ifdef __STDC__
11842# include <limits.h>
11843#else
11844# include <assert.h>
11845#endif
John Criswell47fdd832003-07-14 16:52:07 +000011846/* Override any gcc2 internal prototype to avoid an error. */
11847#ifdef __cplusplus
11848extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011849{
John Criswell47fdd832003-07-14 16:52:07 +000011850#endif
11851/* We use char because int might match the return type of a gcc2
11852 builtin and then its argument prototype would still apply. */
11853char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011854/* The GNU C library defines this for functions which it implements
11855 to always fail with ENOSYS. Some functions are actually named
11856 something starting with __ and the normal name is an alias. */
11857#if defined (__stub_dlopen) || defined (__stub___dlopen)
11858choke me
11859#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011860char (*f) () = dlopen;
11861#endif
11862#ifdef __cplusplus
11863}
John Criswell47fdd832003-07-14 16:52:07 +000011864#endif
11865
John Criswell0c38eaf2003-09-10 15:17:25 +000011866int
11867main ()
11868{
11869return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011870 ;
11871 return 0;
11872}
11873_ACEOF
11874rm -f conftest.$ac_objext conftest$ac_exeext
11875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11876 (eval $ac_link) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } &&
11880 { ac_try='test -s conftest$ac_exeext'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11883 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; }; then
11886 ac_cv_func_dlopen=yes
11887else
11888 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011889sed 's/^/| /' conftest.$ac_ext >&5
11890
John Criswell47fdd832003-07-14 16:52:07 +000011891ac_cv_func_dlopen=no
11892fi
11893rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11894fi
11895echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11896echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11897if test $ac_cv_func_dlopen = yes; then
11898 lt_cv_dlopen="dlopen"
11899else
11900 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11901echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11902if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11904else
11905 ac_check_lib_save_LIBS=$LIBS
11906LIBS="-ldl $LIBS"
11907cat >conftest.$ac_ext <<_ACEOF
11908#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011909/* confdefs.h. */
11910_ACEOF
11911cat confdefs.h >>conftest.$ac_ext
11912cat >>conftest.$ac_ext <<_ACEOF
11913/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011914
11915/* Override any gcc2 internal prototype to avoid an error. */
11916#ifdef __cplusplus
11917extern "C"
11918#endif
11919/* We use char because int might match the return type of a gcc2
11920 builtin and then its argument prototype would still apply. */
11921char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011922int
11923main ()
11924{
11925dlopen ();
11926 ;
11927 return 0;
11928}
11929_ACEOF
11930rm -f conftest.$ac_objext conftest$ac_exeext
11931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932 (eval $ac_link) 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -s conftest$ac_exeext'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 ac_cv_lib_dl_dlopen=yes
11943else
11944 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011945sed 's/^/| /' conftest.$ac_ext >&5
11946
John Criswell47fdd832003-07-14 16:52:07 +000011947ac_cv_lib_dl_dlopen=no
11948fi
11949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11950LIBS=$ac_check_lib_save_LIBS
11951fi
11952echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11953echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11954if test $ac_cv_lib_dl_dlopen = yes; then
11955 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11956else
11957 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11958echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11959if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961else
11962 ac_check_lib_save_LIBS=$LIBS
11963LIBS="-lsvld $LIBS"
11964cat >conftest.$ac_ext <<_ACEOF
11965#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011966/* confdefs.h. */
11967_ACEOF
11968cat confdefs.h >>conftest.$ac_ext
11969cat >>conftest.$ac_ext <<_ACEOF
11970/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011971
11972/* Override any gcc2 internal prototype to avoid an error. */
11973#ifdef __cplusplus
11974extern "C"
11975#endif
11976/* We use char because int might match the return type of a gcc2
11977 builtin and then its argument prototype would still apply. */
11978char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011979int
11980main ()
11981{
11982dlopen ();
11983 ;
11984 return 0;
11985}
11986_ACEOF
11987rm -f conftest.$ac_objext conftest$ac_exeext
11988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989 (eval $ac_link) 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try='test -s conftest$ac_exeext'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999 ac_cv_lib_svld_dlopen=yes
12000else
12001 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012002sed 's/^/| /' conftest.$ac_ext >&5
12003
John Criswell47fdd832003-07-14 16:52:07 +000012004ac_cv_lib_svld_dlopen=no
12005fi
12006rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12007LIBS=$ac_check_lib_save_LIBS
12008fi
12009echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12010echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12011if test $ac_cv_lib_svld_dlopen = yes; then
12012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12013else
12014 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12015echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12016if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12018else
12019 ac_check_lib_save_LIBS=$LIBS
12020LIBS="-ldld $LIBS"
12021cat >conftest.$ac_ext <<_ACEOF
12022#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012023/* confdefs.h. */
12024_ACEOF
12025cat confdefs.h >>conftest.$ac_ext
12026cat >>conftest.$ac_ext <<_ACEOF
12027/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012028
12029/* Override any gcc2 internal prototype to avoid an error. */
12030#ifdef __cplusplus
12031extern "C"
12032#endif
12033/* We use char because int might match the return type of a gcc2
12034 builtin and then its argument prototype would still apply. */
12035char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012036int
12037main ()
12038{
12039dld_link ();
12040 ;
12041 return 0;
12042}
12043_ACEOF
12044rm -f conftest.$ac_objext conftest$ac_exeext
12045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12046 (eval $ac_link) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } &&
12050 { ac_try='test -s conftest$ac_exeext'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 ac_cv_lib_dld_dld_link=yes
12057else
12058 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012059sed 's/^/| /' conftest.$ac_ext >&5
12060
John Criswell47fdd832003-07-14 16:52:07 +000012061ac_cv_lib_dld_dld_link=no
12062fi
12063rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12064LIBS=$ac_check_lib_save_LIBS
12065fi
12066echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12067echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12068if test $ac_cv_lib_dld_dld_link = yes; then
12069 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12070fi
12071
12072
12073fi
12074
12075
12076fi
12077
12078
12079fi
12080
12081
12082fi
12083
12084
12085fi
12086
12087 ;;
12088 esac
12089
12090 if test "x$lt_cv_dlopen" != xno; then
12091 enable_dlopen=yes
12092 else
12093 enable_dlopen=no
12094 fi
12095
12096 case $lt_cv_dlopen in
12097 dlopen)
12098 save_CPPFLAGS="$CPPFLAGS"
12099 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12100
12101 save_LDFLAGS="$LDFLAGS"
12102 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12103
12104 save_LIBS="$LIBS"
12105 LIBS="$lt_cv_dlopen_libs $LIBS"
12106
12107 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12108echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12109if test "${lt_cv_dlopen_self+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12111else
12112 if test "$cross_compiling" = yes; then :
12113 lt_cv_dlopen_self=cross
12114else
12115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12116 lt_status=$lt_dlunknown
12117 cat > conftest.$ac_ext <<EOF
John Criswell987e49c2003-10-10 01:11:54 +000012118#line 12118 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012119#include "confdefs.h"
12120
12121#if HAVE_DLFCN_H
12122#include <dlfcn.h>
12123#endif
12124
12125#include <stdio.h>
12126
12127#ifdef RTLD_GLOBAL
12128# define LT_DLGLOBAL RTLD_GLOBAL
12129#else
12130# ifdef DL_GLOBAL
12131# define LT_DLGLOBAL DL_GLOBAL
12132# else
12133# define LT_DLGLOBAL 0
12134# endif
12135#endif
12136
12137/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12138 find out it does not work in some platform. */
12139#ifndef LT_DLLAZY_OR_NOW
12140# ifdef RTLD_LAZY
12141# define LT_DLLAZY_OR_NOW RTLD_LAZY
12142# else
12143# ifdef DL_LAZY
12144# define LT_DLLAZY_OR_NOW DL_LAZY
12145# else
12146# ifdef RTLD_NOW
12147# define LT_DLLAZY_OR_NOW RTLD_NOW
12148# else
12149# ifdef DL_NOW
12150# define LT_DLLAZY_OR_NOW DL_NOW
12151# else
12152# define LT_DLLAZY_OR_NOW 0
12153# endif
12154# endif
12155# endif
12156# endif
12157#endif
12158
12159#ifdef __cplusplus
12160extern "C" void exit (int);
12161#endif
12162
12163void fnord() { int i=42;}
12164int main ()
12165{
12166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12167 int status = $lt_dlunknown;
12168
12169 if (self)
12170 {
12171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12172 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12173 /* dlclose (self); */
12174 }
12175
12176 exit (status);
12177}
12178EOF
12179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12180 (eval $ac_link) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12184 (./conftest; exit; ) 2>/dev/null
12185 lt_status=$?
12186 case x$lt_status in
12187 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12188 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12189 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12190 esac
12191 else :
12192 # compilation failed
12193 lt_cv_dlopen_self=no
12194 fi
12195fi
12196rm -fr conftest*
12197
12198
12199fi
12200echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12201echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12202
12203 if test "x$lt_cv_dlopen_self" = xyes; then
12204 LDFLAGS="$LDFLAGS $link_static_flag"
12205 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12206echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12207if test "${lt_cv_dlopen_self_static+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209else
12210 if test "$cross_compiling" = yes; then :
12211 lt_cv_dlopen_self_static=cross
12212else
12213 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12214 lt_status=$lt_dlunknown
12215 cat > conftest.$ac_ext <<EOF
John Criswell987e49c2003-10-10 01:11:54 +000012216#line 12216 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012217#include "confdefs.h"
12218
12219#if HAVE_DLFCN_H
12220#include <dlfcn.h>
12221#endif
12222
12223#include <stdio.h>
12224
12225#ifdef RTLD_GLOBAL
12226# define LT_DLGLOBAL RTLD_GLOBAL
12227#else
12228# ifdef DL_GLOBAL
12229# define LT_DLGLOBAL DL_GLOBAL
12230# else
12231# define LT_DLGLOBAL 0
12232# endif
12233#endif
12234
12235/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12236 find out it does not work in some platform. */
12237#ifndef LT_DLLAZY_OR_NOW
12238# ifdef RTLD_LAZY
12239# define LT_DLLAZY_OR_NOW RTLD_LAZY
12240# else
12241# ifdef DL_LAZY
12242# define LT_DLLAZY_OR_NOW DL_LAZY
12243# else
12244# ifdef RTLD_NOW
12245# define LT_DLLAZY_OR_NOW RTLD_NOW
12246# else
12247# ifdef DL_NOW
12248# define LT_DLLAZY_OR_NOW DL_NOW
12249# else
12250# define LT_DLLAZY_OR_NOW 0
12251# endif
12252# endif
12253# endif
12254# endif
12255#endif
12256
12257#ifdef __cplusplus
12258extern "C" void exit (int);
12259#endif
12260
12261void fnord() { int i=42;}
12262int main ()
12263{
12264 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12265 int status = $lt_dlunknown;
12266
12267 if (self)
12268 {
12269 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12270 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12271 /* dlclose (self); */
12272 }
12273
12274 exit (status);
12275}
12276EOF
12277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12278 (eval $ac_link) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12282 (./conftest; exit; ) 2>/dev/null
12283 lt_status=$?
12284 case x$lt_status in
12285 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12286 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12287 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12288 esac
12289 else :
12290 # compilation failed
12291 lt_cv_dlopen_self_static=no
12292 fi
12293fi
12294rm -fr conftest*
12295
12296
12297fi
12298echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12299echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12300 fi
12301
12302 CPPFLAGS="$save_CPPFLAGS"
12303 LDFLAGS="$save_LDFLAGS"
12304 LIBS="$save_LIBS"
12305 ;;
12306 esac
12307
12308 case $lt_cv_dlopen_self in
12309 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12310 *) enable_dlopen_self=unknown ;;
12311 esac
12312
12313 case $lt_cv_dlopen_self_static in
12314 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12315 *) enable_dlopen_self_static=unknown ;;
12316 esac
12317fi
12318
12319
12320# The else clause should only fire when bootstrapping the
12321# libtool distribution, otherwise you forgot to ship ltmain.sh
12322# with your package, and you will get complaints that there are
12323# no rules to generate ltmain.sh.
12324if test -f "$ltmain"; then
12325 # See if we are running on zsh, and set the options which allow our commands through
12326 # without removal of \ escapes.
12327 if test -n "${ZSH_VERSION+set}" ; then
12328 setopt NO_GLOB_SUBST
12329 fi
12330 # Now quote all the things that may contain metacharacters while being
12331 # careful not to overquote the AC_SUBSTed values. We take copies of the
12332 # variables and quote the copies for generation of the libtool script.
12333 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12334 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12335 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12336 deplibs_check_method reload_flag reload_cmds need_locks \
12337 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12338 lt_cv_sys_global_symbol_to_c_name_address \
12339 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12340 old_postinstall_cmds old_postuninstall_cmds \
12341 compiler_CXX \
12342 CC_CXX \
12343 LD_CXX \
12344 lt_prog_compiler_wl_CXX \
12345 lt_prog_compiler_pic_CXX \
12346 lt_prog_compiler_static_CXX \
12347 lt_prog_compiler_no_builtin_flag_CXX \
12348 export_dynamic_flag_spec_CXX \
12349 thread_safe_flag_spec_CXX \
12350 whole_archive_flag_spec_CXX \
12351 enable_shared_with_static_runtimes_CXX \
12352 old_archive_cmds_CXX \
12353 old_archive_from_new_cmds_CXX \
12354 predep_objects_CXX \
12355 postdep_objects_CXX \
12356 predeps_CXX \
12357 postdeps_CXX \
12358 compiler_lib_search_path_CXX \
12359 archive_cmds_CXX \
12360 archive_expsym_cmds_CXX \
12361 postinstall_cmds_CXX \
12362 postuninstall_cmds_CXX \
12363 old_archive_from_expsyms_cmds_CXX \
12364 allow_undefined_flag_CXX \
12365 no_undefined_flag_CXX \
12366 export_symbols_cmds_CXX \
12367 hardcode_libdir_flag_spec_CXX \
12368 hardcode_libdir_flag_spec_ld_CXX \
12369 hardcode_libdir_separator_CXX \
12370 hardcode_automatic_CXX \
12371 module_cmds_CXX \
12372 module_expsym_cmds_CXX \
12373 lt_cv_prog_compiler_c_o_CXX \
12374 exclude_expsyms_CXX \
12375 include_expsyms_CXX; do
12376
12377 case $var in
12378 old_archive_cmds_CXX | \
12379 old_archive_from_new_cmds_CXX | \
12380 archive_cmds_CXX | \
12381 archive_expsym_cmds_CXX | \
12382 module_cmds_CXX | \
12383 module_expsym_cmds_CXX | \
12384 old_archive_from_expsyms_cmds_CXX | \
12385 export_symbols_cmds_CXX | \
12386 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12387 postinstall_cmds | postuninstall_cmds | \
12388 old_postinstall_cmds | old_postuninstall_cmds | \
12389 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12390 # Double-quote double-evaled strings.
12391 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12392 ;;
12393 *)
12394 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12395 ;;
12396 esac
12397 done
12398
12399 case $lt_echo in
12400 *'\$0 --fallback-echo"')
12401 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12402 ;;
12403 esac
12404
12405cfgfile="$ofile"
12406
12407 cat <<__EOF__ >> "$cfgfile"
12408# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12409
12410# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12411
12412# Shell to use when invoking shell scripts.
12413SHELL=$lt_SHELL
12414
12415# Whether or not to build shared libraries.
12416build_libtool_libs=$enable_shared
12417
12418# Whether or not to build static libraries.
12419build_old_libs=$enable_static
12420
12421# Whether or not to add -lc for building shared libraries.
12422build_libtool_need_lc=$archive_cmds_need_lc_CXX
12423
12424# Whether or not to disallow shared libs when runtime libs are static
12425allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12426
12427# Whether or not to optimize for fast installation.
12428fast_install=$enable_fast_install
12429
12430# The host system.
12431host_alias=$host_alias
12432host=$host
12433
12434# An echo program that does not interpret backslashes.
12435echo=$lt_echo
12436
12437# The archiver.
12438AR=$lt_AR
12439AR_FLAGS=$lt_AR_FLAGS
12440
12441# A C compiler.
12442LTCC=$lt_LTCC
12443
12444# A language-specific compiler.
12445CC=$lt_compiler_CXX
12446
12447# Is the compiler the GNU C compiler?
12448with_gcc=$GCC_CXX
12449
12450# An ERE matcher.
12451EGREP=$lt_EGREP
12452
12453# The linker used to build libraries.
12454LD=$lt_LD_CXX
12455
12456# Whether we need hard or soft links.
12457LN_S=$lt_LN_S
12458
12459# A BSD-compatible nm program.
12460NM=$lt_NM
12461
12462# A symbol stripping program
12463STRIP=$STRIP
12464
12465# Used to examine libraries when file_magic_cmd begins "file"
12466MAGIC_CMD=$MAGIC_CMD
12467
12468# Used on cygwin: DLL creation program.
12469DLLTOOL="$DLLTOOL"
12470
12471# Used on cygwin: object dumper.
12472OBJDUMP="$OBJDUMP"
12473
12474# Used on cygwin: assembler.
12475AS="$AS"
12476
12477# The name of the directory that contains temporary libtool files.
12478objdir=$objdir
12479
12480# How to create reloadable object files.
12481reload_flag=$lt_reload_flag
12482reload_cmds=$lt_reload_cmds
12483
12484# How to pass a linker flag through the compiler.
12485wl=$lt_lt_prog_compiler_wl_CXX
12486
12487# Object file suffix (normally "o").
12488objext="$ac_objext"
12489
12490# Old archive suffix (normally "a").
12491libext="$libext"
12492
12493# Shared library suffix (normally ".so").
12494shrext='$shrext'
12495
12496# Executable file suffix (normally "").
12497exeext="$exeext"
12498
12499# Additional compiler flags for building library objects.
12500pic_flag=$lt_lt_prog_compiler_pic_CXX
12501pic_mode=$pic_mode
12502
12503# What is the maximum length of a command?
12504max_cmd_len=$lt_cv_sys_max_cmd_len
12505
12506# Does compiler simultaneously support -c and -o options?
12507compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12508
12509# Must we lock files when doing compilation ?
12510need_locks=$lt_need_locks
12511
12512# Do we need the lib prefix for modules?
12513need_lib_prefix=$need_lib_prefix
12514
12515# Do we need a version for libraries?
12516need_version=$need_version
12517
12518# Whether dlopen is supported.
12519dlopen_support=$enable_dlopen
12520
12521# Whether dlopen of programs is supported.
12522dlopen_self=$enable_dlopen_self
12523
12524# Whether dlopen of statically linked programs is supported.
12525dlopen_self_static=$enable_dlopen_self_static
12526
12527# Compiler flag to prevent dynamic linking.
12528link_static_flag=$lt_lt_prog_compiler_static_CXX
12529
12530# Compiler flag to turn off builtin functions.
12531no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12532
12533# Compiler flag to allow reflexive dlopens.
12534export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12535
12536# Compiler flag to generate shared objects directly from archives.
12537whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12538
12539# Compiler flag to generate thread-safe objects.
12540thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12541
12542# Library versioning type.
12543version_type=$version_type
12544
12545# Format of library name prefix.
12546libname_spec=$lt_libname_spec
12547
12548# List of archive names. First name is the real one, the rest are links.
12549# The last name is the one that the linker finds with -lNAME.
12550library_names_spec=$lt_library_names_spec
12551
12552# The coded name of the library, if different from the real name.
12553soname_spec=$lt_soname_spec
12554
12555# Commands used to build and install an old-style archive.
12556RANLIB=$lt_RANLIB
12557old_archive_cmds=$lt_old_archive_cmds_CXX
12558old_postinstall_cmds=$lt_old_postinstall_cmds
12559old_postuninstall_cmds=$lt_old_postuninstall_cmds
12560
12561# Create an old-style archive from a shared archive.
12562old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12563
12564# Create a temporary old-style archive to link instead of a shared archive.
12565old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12566
12567# Commands used to build and install a shared archive.
12568archive_cmds=$lt_archive_cmds_CXX
12569archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12570postinstall_cmds=$lt_postinstall_cmds
12571postuninstall_cmds=$lt_postuninstall_cmds
12572
12573# Commands used to build a loadable module (assumed same as above if empty)
12574module_cmds=$lt_module_cmds_CXX
12575module_expsym_cmds=$lt_module_expsym_cmds_CXX
12576
12577# Commands to strip libraries.
12578old_striplib=$lt_old_striplib
12579striplib=$lt_striplib
12580
12581# Dependencies to place before the objects being linked to create a
12582# shared library.
12583predep_objects=$lt_predep_objects_CXX
12584
12585# Dependencies to place after the objects being linked to create a
12586# shared library.
12587postdep_objects=$lt_postdep_objects_CXX
12588
12589# Dependencies to place before the objects being linked to create a
12590# shared library.
12591predeps=$lt_predeps_CXX
12592
12593# Dependencies to place after the objects being linked to create a
12594# shared library.
12595postdeps=$lt_postdeps_CXX
12596
12597# The library search path used internally by the compiler when linking
12598# a shared library.
12599compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12600
12601# Method to check whether dependent libraries are shared objects.
12602deplibs_check_method=$lt_deplibs_check_method
12603
12604# Command to use when deplibs_check_method == file_magic.
12605file_magic_cmd=$lt_file_magic_cmd
12606
12607# Flag that allows shared libraries with undefined symbols to be built.
12608allow_undefined_flag=$lt_allow_undefined_flag_CXX
12609
12610# Flag that forces no undefined symbols.
12611no_undefined_flag=$lt_no_undefined_flag_CXX
12612
12613# Commands used to finish a libtool library installation in a directory.
12614finish_cmds=$lt_finish_cmds
12615
12616# Same as above, but a single script fragment to be evaled but not shown.
12617finish_eval=$lt_finish_eval
12618
12619# Take the output of nm and produce a listing of raw symbols and C names.
12620global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12621
12622# Transform the output of nm in a proper C declaration
12623global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12624
12625# Transform the output of nm in a C name address pair
12626global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12627
12628# This is the shared library runtime path variable.
12629runpath_var=$runpath_var
12630
12631# This is the shared library path variable.
12632shlibpath_var=$shlibpath_var
12633
12634# Is shlibpath searched before the hard-coded library search path?
12635shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12636
12637# How to hardcode a shared library path into an executable.
12638hardcode_action=$hardcode_action_CXX
12639
12640# Whether we should hardcode library paths into libraries.
12641hardcode_into_libs=$hardcode_into_libs
12642
12643# Flag to hardcode \$libdir into a binary during linking.
12644# This must work even if \$libdir does not exist.
12645hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12646
12647# If ld is used when linking, flag to hardcode \$libdir into
12648# a binary during linking. This must work even if \$libdir does
12649# not exist.
12650hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12651
12652# Whether we need a single -rpath flag with a separated argument.
12653hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12654
12655# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12656# resulting binary.
12657hardcode_direct=$hardcode_direct_CXX
12658
12659# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12660# resulting binary.
12661hardcode_minus_L=$hardcode_minus_L_CXX
12662
12663# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12664# the resulting binary.
12665hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12666
12667# Set to yes if building a shared library automatically hardcodes DIR into the library
12668# and all subsequent libraries and executables linked against it.
12669hardcode_automatic=$hardcode_automatic_CXX
12670
12671# Variables whose values should be saved in libtool wrapper scripts and
12672# restored at relink time.
12673variables_saved_for_relink="$variables_saved_for_relink"
12674
12675# Whether libtool must link a program against all its dependency libraries.
12676link_all_deplibs=$link_all_deplibs_CXX
12677
12678# Compile-time system search path for libraries
12679sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12680
12681# Run-time system search path for libraries
12682sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12683
12684# Fix the shell variable \$srcfile for the compiler.
12685fix_srcfile_path="$fix_srcfile_path_CXX"
12686
12687# Set to yes if exported symbols are required.
12688always_export_symbols=$always_export_symbols_CXX
12689
12690# The commands to list exported symbols.
12691export_symbols_cmds=$lt_export_symbols_cmds_CXX
12692
12693# The commands to extract the exported symbol list from a shared archive.
12694extract_expsyms_cmds=$lt_extract_expsyms_cmds
12695
12696# Symbols that should not be listed in the preloaded symbols.
12697exclude_expsyms=$lt_exclude_expsyms_CXX
12698
12699# Symbols that must always be exported.
12700include_expsyms=$lt_include_expsyms_CXX
12701
12702# ### END LIBTOOL TAG CONFIG: $tagname
12703
12704__EOF__
12705
12706
12707else
12708 # If there is no Makefile yet, we rely on a make rule to execute
12709 # `config.status --recheck' to rerun these tests and create the
12710 # libtool script then.
12711 test -f Makefile && make "$ltmain"
12712fi
12713
12714
12715ac_ext=c
12716ac_cpp='$CPP $CPPFLAGS'
12717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12719ac_compiler_gnu=$ac_cv_c_compiler_gnu
12720
12721CC=$lt_save_CC
12722LDCXX=$LD
12723LD=$lt_save_LD
12724GCC=$lt_save_GCC
12725with_gnu_ldcxx=$with_gnu_ld
12726with_gnu_ld=$lt_save_with_gnu_ld
12727lt_cv_path_LDCXX=$lt_cv_path_LD
12728lt_cv_path_LD=$lt_save_path_LD
12729lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12730lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12731
12732 else
12733 tagname=""
12734 fi
12735 ;;
12736
12737 F77)
12738 if test -n "$F77" && test "X$F77" != "Xno"; then
12739
12740ac_ext=f
12741ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12742ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12743ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12744
12745
12746archive_cmds_need_lc_F77=no
12747allow_undefined_flag_F77=
12748always_export_symbols_F77=no
12749archive_expsym_cmds_F77=
12750export_dynamic_flag_spec_F77=
12751hardcode_direct_F77=no
12752hardcode_libdir_flag_spec_F77=
12753hardcode_libdir_flag_spec_ld_F77=
12754hardcode_libdir_separator_F77=
12755hardcode_minus_L_F77=no
12756hardcode_automatic_F77=no
12757module_cmds_F77=
12758module_expsym_cmds_F77=
12759link_all_deplibs_F77=unknown
12760old_archive_cmds_F77=$old_archive_cmds
12761no_undefined_flag_F77=
12762whole_archive_flag_spec_F77=
12763enable_shared_with_static_runtimes_F77=no
12764
12765# Source file extension for f77 test sources.
12766ac_ext=f
12767
12768# Object file extension for compiled f77 test sources.
12769objext=o
12770objext_F77=$objext
12771
12772# Code to be used in simple compile tests
12773lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12774
12775# Code to be used in simple link tests
12776lt_simple_link_test_code=" program t\n end\n"
12777
12778# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12779
12780# If no C compiler was specified, use CC.
12781LTCC=${LTCC-"$CC"}
12782
12783# Allow CC to be a program name with arguments.
12784compiler=$CC
12785
12786
12787# Allow CC to be a program name with arguments.
12788lt_save_CC="$CC"
12789CC=${F77-"f77"}
12790compiler=$CC
12791compiler_F77=$CC
12792cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12793
12794echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12795echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12796echo "$as_me:$LINENO: result: $can_build_shared" >&5
12797echo "${ECHO_T}$can_build_shared" >&6
12798
12799echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12800echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12801test "$can_build_shared" = "no" && enable_shared=no
12802
12803# On AIX, shared libraries and static libraries use the same namespace, and
12804# are all built from PIC.
12805case "$host_os" in
12806aix3*)
12807 test "$enable_shared" = yes && enable_static=no
12808 if test -n "$RANLIB"; then
12809 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12810 postinstall_cmds='$RANLIB $lib'
12811 fi
12812 ;;
12813aix4*)
12814 test "$enable_shared" = yes && enable_static=no
12815 ;;
12816esac
12817echo "$as_me:$LINENO: result: $enable_shared" >&5
12818echo "${ECHO_T}$enable_shared" >&6
12819
12820echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12821echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12822# Make sure either enable_shared or enable_static is yes.
12823test "$enable_shared" = yes || enable_static=yes
12824echo "$as_me:$LINENO: result: $enable_static" >&5
12825echo "${ECHO_T}$enable_static" >&6
12826
12827test "$ld_shlibs_F77" = no && can_build_shared=no
12828
12829GCC_F77="$G77"
12830LD_F77="$LD"
12831
12832lt_prog_compiler_wl_F77=
12833lt_prog_compiler_pic_F77=
12834lt_prog_compiler_static_F77=
12835
12836echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12837echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12838
12839 if test "$GCC" = yes; then
12840 lt_prog_compiler_wl_F77='-Wl,'
12841 lt_prog_compiler_static_F77='-static'
12842
12843 case $host_os in
12844 aix*)
12845 # All AIX code is PIC.
12846 if test "$host_cpu" = ia64; then
12847 # AIX 5 now supports IA64 processor
12848 lt_prog_compiler_static_F77='-Bstatic'
12849 fi
12850 ;;
12851
12852 amigaos*)
12853 # FIXME: we need at least 68020 code to build shared libraries, but
12854 # adding the `-m68020' flag to GCC prevents building anything better,
12855 # like `-m68040'.
12856 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12857 ;;
12858
12859 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12860 # PIC is the default for these OSes.
12861 ;;
12862
12863 mingw* | pw32* | os2*)
12864 # This hack is so that the source file can tell whether it is being
12865 # built for inclusion in a dll (and should export symbols for example).
12866 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12867 ;;
12868
12869 darwin* | rhapsody*)
12870 # PIC is the default on this platform
12871 # Common symbols not allowed in MH_DYLIB files
12872 lt_prog_compiler_pic_F77='-fno-common'
12873 ;;
12874
12875 msdosdjgpp*)
12876 # Just because we use GCC doesn't mean we suddenly get shared libraries
12877 # on systems that don't support them.
12878 lt_prog_compiler_can_build_shared_F77=no
12879 enable_shared=no
12880 ;;
12881
12882 sysv4*MP*)
12883 if test -d /usr/nec; then
12884 lt_prog_compiler_pic_F77=-Kconform_pic
12885 fi
12886 ;;
12887
12888 hpux*)
12889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12890 # not for PA HP-UX.
12891 case "$host_cpu" in
12892 hppa*64*|ia64*)
12893 # +Z the default
12894 ;;
12895 *)
12896 lt_prog_compiler_pic_F77='-fPIC'
12897 ;;
12898 esac
12899 ;;
12900
12901 *)
12902 lt_prog_compiler_pic_F77='-fPIC'
12903 ;;
12904 esac
12905 else
12906 # PORTME Check for flag to pass linker flags through the system compiler.
12907 case $host_os in
12908 aix*)
12909 lt_prog_compiler_wl_F77='-Wl,'
12910 if test "$host_cpu" = ia64; then
12911 # AIX 5 now supports IA64 processor
12912 lt_prog_compiler_static_F77='-Bstatic'
12913 else
12914 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12915 fi
12916 ;;
12917
12918 mingw* | pw32* | os2*)
12919 # This hack is so that the source file can tell whether it is being
12920 # built for inclusion in a dll (and should export symbols for example).
12921 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12922 ;;
12923
12924 hpux9* | hpux10* | hpux11*)
12925 lt_prog_compiler_wl_F77='-Wl,'
12926 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12927 # not for PA HP-UX.
12928 case "$host_cpu" in
12929 hppa*64*|ia64*)
12930 # +Z the default
12931 ;;
12932 *)
12933 lt_prog_compiler_pic_F77='+Z'
12934 ;;
12935 esac
12936 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12937 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12938 ;;
12939
12940 irix5* | irix6* | nonstopux*)
12941 lt_prog_compiler_wl_F77='-Wl,'
12942 # PIC (with -KPIC) is the default.
12943 lt_prog_compiler_static_F77='-non_shared'
12944 ;;
12945
12946 newsos6)
12947 lt_prog_compiler_pic_F77='-KPIC'
12948 lt_prog_compiler_static_F77='-Bstatic'
12949 ;;
12950
12951 linux*)
12952 case $CC in
12953 icc|ecc)
12954 lt_prog_compiler_wl_F77='-Wl,'
12955 lt_prog_compiler_pic_F77='-KPIC'
12956 lt_prog_compiler_static_F77='-static'
12957 ;;
12958 ccc)
12959 lt_prog_compiler_wl_F77='-Wl,'
12960 # All Alpha code is PIC.
12961 lt_prog_compiler_static_F77='-non_shared'
12962 ;;
12963 esac
12964 ;;
12965
12966 osf3* | osf4* | osf5*)
12967 lt_prog_compiler_wl_F77='-Wl,'
12968 # All OSF/1 code is PIC.
12969 lt_prog_compiler_static_F77='-non_shared'
12970 ;;
12971
12972 sco3.2v5*)
12973 lt_prog_compiler_pic_F77='-Kpic'
12974 lt_prog_compiler_static_F77='-dn'
12975 ;;
12976
12977 solaris*)
12978 lt_prog_compiler_wl_F77='-Wl,'
12979 lt_prog_compiler_pic_F77='-KPIC'
12980 lt_prog_compiler_static_F77='-Bstatic'
12981 ;;
12982
12983 sunos4*)
12984 lt_prog_compiler_wl_F77='-Qoption ld '
12985 lt_prog_compiler_pic_F77='-PIC'
12986 lt_prog_compiler_static_F77='-Bstatic'
12987 ;;
12988
12989 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12990 lt_prog_compiler_wl_F77='-Wl,'
12991 lt_prog_compiler_pic_F77='-KPIC'
12992 lt_prog_compiler_static_F77='-Bstatic'
12993 ;;
12994
12995 sysv4*MP*)
12996 if test -d /usr/nec ;then
12997 lt_prog_compiler_pic_F77='-Kconform_pic'
12998 lt_prog_compiler_static_F77='-Bstatic'
12999 fi
13000 ;;
13001
13002 uts4*)
13003 lt_prog_compiler_pic_F77='-pic'
13004 lt_prog_compiler_static_F77='-Bstatic'
13005 ;;
13006
13007 *)
13008 lt_prog_compiler_can_build_shared_F77=no
13009 ;;
13010 esac
13011 fi
13012
13013echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13014echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13015
13016#
13017# Check to make sure the PIC flag actually works.
13018#
13019if test -n "$lt_prog_compiler_pic_F77"; then
13020 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13021echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13022if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13024else
13025 lt_prog_compiler_pic_works_F77=no
13026 ac_outfile=conftest.$ac_objext
13027 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13028 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13029 # Insert the option either (1) after the last *FLAGS variable, or
13030 # (2) before a word containing "conftest.", or (3) at the end.
13031 # Note that $ac_compile itself does not contain backslashes and begins
13032 # with a dollar sign (not a hyphen), so the echo should work correctly.
13033 # The option is referenced via a variable to avoid confusing sed.
13034 lt_compile=`echo "$ac_compile" | $SED \
13035 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13037 -e 's:$: $lt_compiler_flag:'`
John Criswell987e49c2003-10-10 01:11:54 +000013038 (eval echo "\"\$as_me:13038: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013039 (eval "$lt_compile" 2>conftest.err)
13040 ac_status=$?
13041 cat conftest.err >&5
John Criswell987e49c2003-10-10 01:11:54 +000013042 echo "$as_me:13042: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013043 if (exit $ac_status) && test -s "$ac_outfile"; then
13044 # The compiler can only warn and ignore the option if not recognized
13045 # So say no if there are warnings
13046 if test ! -s conftest.err; then
13047 lt_prog_compiler_pic_works_F77=yes
13048 fi
13049 fi
13050 $rm conftest*
13051
13052fi
13053echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13054echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13055
13056if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13057 case $lt_prog_compiler_pic_F77 in
13058 "" | " "*) ;;
13059 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13060 esac
13061else
13062 lt_prog_compiler_pic_F77=
13063 lt_prog_compiler_can_build_shared_F77=no
13064fi
13065
13066fi
13067case "$host_os" in
13068 # For platforms which do not support PIC, -DPIC is meaningless:
13069 *djgpp*)
13070 lt_prog_compiler_pic_F77=
13071 ;;
13072 *)
13073 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13074 ;;
13075esac
13076
13077echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13078echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13079if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13081else
13082 lt_cv_prog_compiler_c_o_F77=no
13083 $rm -r conftest 2>/dev/null
13084 mkdir conftest
13085 cd conftest
13086 mkdir out
13087 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13088
13089 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13090 # that will create temporary files in the current directory regardless of
13091 # the output directory. Thus, making CWD read-only will cause this test
13092 # to fail, enabling locking or at least warning the user not to do parallel
13093 # builds.
13094 chmod -w .
13095
13096 lt_compiler_flag="-o out/conftest2.$ac_objext"
13097 # Insert the option either (1) after the last *FLAGS variable, or
13098 # (2) before a word containing "conftest.", or (3) at the end.
13099 # Note that $ac_compile itself does not contain backslashes and begins
13100 # with a dollar sign (not a hyphen), so the echo should work correctly.
13101 lt_compile=`echo "$ac_compile" | $SED \
13102 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13104 -e 's:$: $lt_compiler_flag:'`
John Criswell987e49c2003-10-10 01:11:54 +000013105 (eval echo "\"\$as_me:13105: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013106 (eval "$lt_compile" 2>out/conftest.err)
13107 ac_status=$?
13108 cat out/conftest.err >&5
John Criswell987e49c2003-10-10 01:11:54 +000013109 echo "$as_me:13109: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13111 then
13112 # The compiler can only warn and ignore the option if not recognized
13113 # So say no if there are warnings
13114 if test ! -s out/conftest.err; then
13115 lt_cv_prog_compiler_c_o_F77=yes
13116 fi
13117 fi
13118 chmod u+w .
13119 $rm conftest* out/*
13120 rmdir out
13121 cd ..
13122 rmdir conftest
13123 $rm conftest*
13124
13125fi
13126echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13127echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13128
13129
13130hard_links="nottested"
13131if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13132 # do not overwrite the value of need_locks provided by the user
13133 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13134echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13135 hard_links=yes
13136 $rm conftest*
13137 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13138 touch conftest.a
13139 ln conftest.a conftest.b 2>&5 || hard_links=no
13140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13141 echo "$as_me:$LINENO: result: $hard_links" >&5
13142echo "${ECHO_T}$hard_links" >&6
13143 if test "$hard_links" = no; then
13144 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13145echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13146 need_locks=warn
13147 fi
13148else
13149 need_locks=no
13150fi
13151
13152echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13153echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13154
13155 runpath_var=
13156 allow_undefined_flag_F77=
13157 enable_shared_with_static_runtimes_F77=no
13158 archive_cmds_F77=
13159 archive_expsym_cmds_F77=
13160 old_archive_From_new_cmds_F77=
13161 old_archive_from_expsyms_cmds_F77=
13162 export_dynamic_flag_spec_F77=
13163 whole_archive_flag_spec_F77=
13164 thread_safe_flag_spec_F77=
13165 hardcode_libdir_flag_spec_F77=
13166 hardcode_libdir_flag_spec_ld_F77=
13167 hardcode_libdir_separator_F77=
13168 hardcode_direct_F77=no
13169 hardcode_minus_L_F77=no
13170 hardcode_shlibpath_var_F77=unsupported
13171 link_all_deplibs_F77=unknown
13172 hardcode_automatic_F77=no
13173 module_cmds_F77=
13174 module_expsym_cmds_F77=
13175 always_export_symbols_F77=no
13176 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13177 # include_expsyms should be a list of space-separated symbols to be *always*
13178 # included in the symbol list
13179 include_expsyms_F77=
13180 # exclude_expsyms can be an extended regexp of symbols to exclude
13181 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13182 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13183 # as well as any symbol that contains `d'.
13184 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13185 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13186 # platforms (ab)use it in PIC code, but their linkers get confused if
13187 # the symbol is explicitly referenced. Since portable code cannot
13188 # rely on this symbol name, it's probably fine to never include it in
13189 # preloaded symbol tables.
13190 extract_expsyms_cmds=
13191
13192 case $host_os in
13193 cygwin* | mingw* | pw32*)
13194 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13195 # When not using gcc, we currently assume that we are using
13196 # Microsoft Visual C++.
13197 if test "$GCC" != yes; then
13198 with_gnu_ld=no
13199 fi
13200 ;;
13201 openbsd*)
13202 with_gnu_ld=no
13203 ;;
13204 esac
13205
13206 ld_shlibs_F77=yes
13207 if test "$with_gnu_ld" = yes; then
13208 # If archive_cmds runs LD, not CC, wlarc should be empty
13209 wlarc='${wl}'
13210
13211 # See if GNU ld supports shared libraries.
13212 case $host_os in
13213 aix3* | aix4* | aix5*)
13214 # On AIX/PPC, the GNU linker is very broken
13215 if test "$host_cpu" != ia64; then
13216 ld_shlibs_F77=no
13217 cat <<EOF 1>&2
13218
13219*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13220*** to be unable to reliably create shared libraries on AIX.
13221*** Therefore, libtool is disabling shared libraries support. If you
13222*** really care for shared libraries, you may want to modify your PATH
13223*** so that a non-GNU linker is found, and then restart.
13224
13225EOF
13226 fi
13227 ;;
13228
13229 amigaos*)
13230 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)'
13231 hardcode_libdir_flag_spec_F77='-L$libdir'
13232 hardcode_minus_L_F77=yes
13233
13234 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13235 # that the semantics of dynamic libraries on AmigaOS, at least up
13236 # to version 4, is to share data among multiple programs linked
13237 # with the same dynamic library. Since this doesn't match the
13238 # behavior of shared libraries on other platforms, we can't use
13239 # them.
13240 ld_shlibs_F77=no
13241 ;;
13242
13243 beos*)
13244 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13245 allow_undefined_flag_F77=unsupported
13246 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13247 # support --undefined. This deserves some investigation. FIXME
13248 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13249 else
13250 ld_shlibs_F77=no
13251 fi
13252 ;;
13253
13254 cygwin* | mingw* | pw32*)
13255 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13256 # as there is no search path for DLLs.
13257 hardcode_libdir_flag_spec_F77='-L$libdir'
13258 allow_undefined_flag_F77=unsupported
13259 always_export_symbols_F77=no
13260 enable_shared_with_static_runtimes_F77=yes
13261 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13262
13263 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13264 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13265 # If the export-symbols file already is a .def file (1st line
13266 # is EXPORTS), use it as is; otherwise, prepend...
13267 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13268 cp $export_symbols $output_objdir/$soname.def;
13269 else
13270 echo EXPORTS > $output_objdir/$soname.def;
13271 cat $export_symbols >> $output_objdir/$soname.def;
13272 fi~
13273 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13274 else
13275 ld_shlibs=no
13276 fi
13277 ;;
13278
13279 netbsd*)
13280 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13281 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13282 wlarc=
13283 else
13284 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13285 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13286 fi
13287 ;;
13288
13289 solaris* | sysv5*)
13290 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13291 ld_shlibs_F77=no
13292 cat <<EOF 1>&2
13293
13294*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13295*** create shared libraries on Solaris systems. Therefore, libtool
13296*** is disabling shared libraries support. We urge you to upgrade GNU
13297*** binutils to release 2.9.1 or newer. Another option is to modify
13298*** your PATH or compiler configuration so that the native linker is
13299*** used, and then restart.
13300
13301EOF
13302 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13303 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13304 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13305 else
13306 ld_shlibs_F77=no
13307 fi
13308 ;;
13309
13310 sunos4*)
13311 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13312 wlarc=
13313 hardcode_direct_F77=yes
13314 hardcode_shlibpath_var_F77=no
13315 ;;
13316
13317 *)
13318 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13319 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13320 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13321 else
13322 ld_shlibs_F77=no
13323 fi
13324 ;;
13325 esac
13326
13327 if test "$ld_shlibs_F77" = yes; then
13328 runpath_var=LD_RUN_PATH
13329 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13330 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13331 # ancient GNU ld didn't support --whole-archive et. al.
13332 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13333 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13334 else
13335 whole_archive_flag_spec_F77=
13336 fi
13337 fi
13338 else
13339 # PORTME fill in a description of your system's linker (not GNU ld)
13340 case $host_os in
13341 aix3*)
13342 allow_undefined_flag_F77=unsupported
13343 always_export_symbols_F77=yes
13344 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'
13345 # Note: this linker hardcodes the directories in LIBPATH if there
13346 # are no directories specified by -L.
13347 hardcode_minus_L_F77=yes
13348 if test "$GCC" = yes && test -z "$link_static_flag"; then
13349 # Neither direct hardcoding nor static linking is supported with a
13350 # broken collect2.
13351 hardcode_direct_F77=unsupported
13352 fi
13353 ;;
13354
13355 aix4* | aix5*)
13356 if test "$host_cpu" = ia64; then
13357 # On IA64, the linker does run time linking by default, so we don't
13358 # have to do anything special.
13359 aix_use_runtimelinking=no
13360 exp_sym_flag='-Bexport'
13361 no_entry_flag=""
13362 else
13363 # If we're using GNU nm, then we don't want the "-C" option.
13364 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13365 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13366 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'
13367 else
13368 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'
13369 fi
13370 aix_use_runtimelinking=no
13371
13372 # Test if we are trying to use run time linking or normal
13373 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13374 # need to do runtime linking.
13375 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13376 for ld_flag in $LDFLAGS; do
13377 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13378 aix_use_runtimelinking=yes
13379 break
13380 fi
13381 done
13382 esac
13383
13384 exp_sym_flag='-bexport'
13385 no_entry_flag='-bnoentry'
13386 fi
13387
13388 # When large executables or shared objects are built, AIX ld can
13389 # have problems creating the table of contents. If linking a library
13390 # or program results in "error TOC overflow" add -mminimal-toc to
13391 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13392 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13393
13394 archive_cmds_F77=''
13395 hardcode_direct_F77=yes
13396 hardcode_libdir_separator_F77=':'
13397 link_all_deplibs_F77=yes
13398
13399 if test "$GCC" = yes; then
13400 case $host_os in aix4.012|aix4.012.*)
13401 # We only want to do this on AIX 4.2 and lower, the check
13402 # below for broken collect2 doesn't work under 4.3+
13403 collect2name=`${CC} -print-prog-name=collect2`
13404 if test -f "$collect2name" && \
13405 strings "$collect2name" | grep resolve_lib_name >/dev/null
13406 then
13407 # We have reworked collect2
13408 hardcode_direct_F77=yes
13409 else
13410 # We have old collect2
13411 hardcode_direct_F77=unsupported
13412 # It fails to find uninstalled libraries when the uninstalled
13413 # path is not listed in the libpath. Setting hardcode_minus_L
13414 # to unsupported forces relinking
13415 hardcode_minus_L_F77=yes
13416 hardcode_libdir_flag_spec_F77='-L$libdir'
13417 hardcode_libdir_separator_F77=
13418 fi
13419 esac
13420 shared_flag='-shared'
13421 else
13422 # not using gcc
13423 if test "$host_cpu" = ia64; then
13424 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13425 # chokes on -Wl,-G. The following line is correct:
13426 shared_flag='-G'
13427 else
13428 if test "$aix_use_runtimelinking" = yes; then
13429 shared_flag='${wl}-G'
13430 else
13431 shared_flag='${wl}-bM:SRE'
13432 fi
13433 fi
13434 fi
13435
13436 # It seems that -bexpall does not export symbols beginning with
13437 # underscore (_), so it is better to generate a list of symbols to export.
13438 always_export_symbols_F77=yes
13439 if test "$aix_use_runtimelinking" = yes; then
13440 # Warning - without using the other runtime loading flags (-brtl),
13441 # -berok will link without error, but may produce a broken library.
13442 allow_undefined_flag_F77='-berok'
13443 # Determine the default libpath from the value encoded in an empty executable.
13444 cat >conftest.$ac_ext <<_ACEOF
13445 program main
13446
13447 end
13448_ACEOF
13449rm -f conftest.$ac_objext conftest$ac_exeext
13450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13451 (eval $ac_link) 2>&5
13452 ac_status=$?
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -s conftest$ac_exeext'
13456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13458 ac_status=$?
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13461
13462aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13463}'`
13464# Check for a 64-bit object if we didn't find anything.
13465if 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; }
13466}'`; fi
13467else
13468 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013469sed 's/^/| /' conftest.$ac_ext >&5
13470
John Criswell47fdd832003-07-14 16:52:07 +000013471fi
13472rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13474
13475 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13476 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"
13477 else
13478 if test "$host_cpu" = ia64; then
13479 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13480 allow_undefined_flag_F77="-z nodefs"
13481 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"
13482 else
13483 # Determine the default libpath from the value encoded in an empty executable.
13484 cat >conftest.$ac_ext <<_ACEOF
13485 program main
13486
13487 end
13488_ACEOF
13489rm -f conftest.$ac_objext conftest$ac_exeext
13490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13491 (eval $ac_link) 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } &&
13495 { ac_try='test -s conftest$ac_exeext'
13496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497 (eval $ac_try) 2>&5
13498 ac_status=$?
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
13501
13502aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13503}'`
13504# Check for a 64-bit object if we didn't find anything.
13505if 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; }
13506}'`; fi
13507else
13508 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013509sed 's/^/| /' conftest.$ac_ext >&5
13510
John Criswell47fdd832003-07-14 16:52:07 +000013511fi
13512rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13513if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13514
13515 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13516 # Warning - without using the other run time loading flags,
13517 # -berok will link without error, but may produce a broken library.
13518 no_undefined_flag_F77=' ${wl}-bernotok'
13519 allow_undefined_flag_F77=' ${wl}-berok'
13520 # -bexpall does not export symbols beginning with underscore (_)
13521 always_export_symbols_F77=yes
13522 # Exported symbols can be pulled into shared objects from archives
13523 whole_archive_flag_spec_F77=' '
13524 archive_cmds_need_lc_F77=yes
13525 # This is similar to how AIX traditionally builds it's shared libraries.
13526 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'
13527 fi
13528 fi
13529 ;;
13530
13531 amigaos*)
13532 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)'
13533 hardcode_libdir_flag_spec_F77='-L$libdir'
13534 hardcode_minus_L_F77=yes
13535 # see comment about different semantics on the GNU ld section
13536 ld_shlibs_F77=no
13537 ;;
13538
13539 bsdi4*)
13540 export_dynamic_flag_spec_F77=-rdynamic
13541 ;;
13542
13543 cygwin* | mingw* | pw32*)
13544 # When not using gcc, we currently assume that we are using
13545 # Microsoft Visual C++.
13546 # hardcode_libdir_flag_spec is actually meaningless, as there is
13547 # no search path for DLLs.
13548 hardcode_libdir_flag_spec_F77=' '
13549 allow_undefined_flag_F77=unsupported
13550 # Tell ltmain to make .lib files, not .a files.
13551 libext=lib
13552 # Tell ltmain to make .dll files, not .so files.
13553 shrext=".dll"
13554 # FIXME: Setting linknames here is a bad hack.
13555 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13556 # The linker will automatically build a .lib file if we build a DLL.
13557 old_archive_From_new_cmds_F77='true'
13558 # FIXME: Should let the user specify the lib program.
13559 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13560 fix_srcfile_path='`cygpath -w "$srcfile"`'
13561 enable_shared_with_static_runtimes_F77=yes
13562 ;;
13563
13564 darwin* | rhapsody*)
13565 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13566 archive_cmds_need_lc_F77=no
13567 case "$host_os" in
13568 rhapsody* | darwin1.[012])
13569 allow_undefined_flag_F77='-undefined suppress'
13570 ;;
13571 *) # Darwin 1.3 on
13572 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13573 ;;
13574 esac
13575 # FIXME: Relying on posixy $() will cause problems for
13576 # cross-compilation, but unfortunately the echo tests do not
13577 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13578 # `"' quotes if we put them in here... so don't!
13579 lt_int_apple_cc_single_mod=no
13580 output_verbose_link_cmd='echo'
13581 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13582 lt_int_apple_cc_single_mod=yes
13583 fi
13584 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13585 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13586 else
13587 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'
13588 fi
13589 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13590 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13591 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13592 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}'
13593 else
13594 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}'
13595 fi
13596 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}'
13597 hardcode_direct_F77=no
13598 hardcode_automatic_F77=yes
13599 hardcode_shlibpath_var_F77=unsupported
13600 whole_archive_flag_spec_F77='-all_load $convenience'
13601 link_all_deplibs_F77=yes
13602 fi
13603 ;;
13604
13605 dgux*)
13606 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13607 hardcode_libdir_flag_spec_F77='-L$libdir'
13608 hardcode_shlibpath_var_F77=no
13609 ;;
13610
13611 freebsd1*)
13612 ld_shlibs_F77=no
13613 ;;
13614
13615 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13616 # support. Future versions do this automatically, but an explicit c++rt0.o
13617 # does not break anything, and helps significantly (at the cost of a little
13618 # extra space).
13619 freebsd2.2*)
13620 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13621 hardcode_libdir_flag_spec_F77='-R$libdir'
13622 hardcode_direct_F77=yes
13623 hardcode_shlibpath_var_F77=no
13624 ;;
13625
13626 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13627 freebsd2*)
13628 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13629 hardcode_direct_F77=yes
13630 hardcode_minus_L_F77=yes
13631 hardcode_shlibpath_var_F77=no
13632 ;;
13633
13634 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13635 freebsd*)
13636 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13637 hardcode_libdir_flag_spec_F77='-R$libdir'
13638 hardcode_direct_F77=yes
13639 hardcode_shlibpath_var_F77=no
13640 ;;
13641
13642 hpux9*)
13643 if test "$GCC" = yes; then
13644 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'
13645 else
13646 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'
13647 fi
13648 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13649 hardcode_libdir_separator_F77=:
13650 hardcode_direct_F77=yes
13651
13652 # hardcode_minus_L: Not really in the search PATH,
13653 # but as the default location of the library.
13654 hardcode_minus_L_F77=yes
13655 export_dynamic_flag_spec_F77='${wl}-E'
13656 ;;
13657
13658 hpux10* | hpux11*)
13659 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13660 case "$host_cpu" in
13661 hppa*64*|ia64*)
13662 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13663 ;;
13664 *)
13665 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13666 ;;
13667 esac
13668 else
13669 case "$host_cpu" in
13670 hppa*64*|ia64*)
13671 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13672 ;;
13673 *)
13674 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13675 ;;
13676 esac
13677 fi
13678 if test "$with_gnu_ld" = no; then
13679 case "$host_cpu" in
13680 hppa*64*)
13681 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13682 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13683 hardcode_libdir_separator_F77=:
13684 hardcode_direct_F77=no
13685 hardcode_shlibpath_var_F77=no
13686 ;;
13687 ia64*)
13688 hardcode_libdir_flag_spec_F77='-L$libdir'
13689 hardcode_direct_F77=no
13690 hardcode_shlibpath_var_F77=no
13691
13692 # hardcode_minus_L: Not really in the search PATH,
13693 # but as the default location of the library.
13694 hardcode_minus_L_F77=yes
13695 ;;
13696 *)
13697 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13698 hardcode_libdir_separator_F77=:
13699 hardcode_direct_F77=yes
13700 export_dynamic_flag_spec_F77='${wl}-E'
13701
13702 # hardcode_minus_L: Not really in the search PATH,
13703 # but as the default location of the library.
13704 hardcode_minus_L_F77=yes
13705 ;;
13706 esac
13707 fi
13708 ;;
13709
13710 irix5* | irix6* | nonstopux*)
13711 if test "$GCC" = yes; then
13712 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'
13713 else
13714 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'
13715 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13716 fi
13717 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13718 hardcode_libdir_separator_F77=:
13719 link_all_deplibs_F77=yes
13720 ;;
13721
13722 netbsd*)
13723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13724 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13725 else
13726 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13727 fi
13728 hardcode_libdir_flag_spec_F77='-R$libdir'
13729 hardcode_direct_F77=yes
13730 hardcode_shlibpath_var_F77=no
13731 ;;
13732
13733 newsos6)
13734 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13735 hardcode_direct_F77=yes
13736 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13737 hardcode_libdir_separator_F77=:
13738 hardcode_shlibpath_var_F77=no
13739 ;;
13740
13741 openbsd*)
13742 hardcode_direct_F77=yes
13743 hardcode_shlibpath_var_F77=no
13744 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13745 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13746 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13747 export_dynamic_flag_spec_F77='${wl}-E'
13748 else
13749 case $host_os in
13750 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13751 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13752 hardcode_libdir_flag_spec_F77='-R$libdir'
13753 ;;
13754 *)
13755 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13756 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13757 ;;
13758 esac
13759 fi
13760 ;;
13761
13762 os2*)
13763 hardcode_libdir_flag_spec_F77='-L$libdir'
13764 hardcode_minus_L_F77=yes
13765 allow_undefined_flag_F77=unsupported
13766 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'
13767 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13768 ;;
13769
13770 osf3*)
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13774 else
13775 allow_undefined_flag_F77=' -expect_unresolved \*'
13776 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'
13777 fi
13778 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13779 hardcode_libdir_separator_F77=:
13780 ;;
13781
13782 osf4* | osf5*) # as osf3* with the addition of -msym flag
13783 if test "$GCC" = yes; then
13784 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13785 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'
13786 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13787 else
13788 allow_undefined_flag_F77=' -expect_unresolved \*'
13789 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'
13790 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~
13791 $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'
13792
13793 # Both c and cxx compiler support -rpath directly
13794 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13795 fi
13796 hardcode_libdir_separator_F77=:
13797 ;;
13798
13799 sco3.2v5*)
13800 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13801 hardcode_shlibpath_var_F77=no
13802 export_dynamic_flag_spec_F77='${wl}-Bexport'
13803 runpath_var=LD_RUN_PATH
13804 hardcode_runpath_var=yes
13805 ;;
13806
13807 solaris*)
13808 no_undefined_flag_F77=' -z text'
13809 if test "$GCC" = yes; then
13810 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13811 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13812 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13813 else
13814 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13815 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13816 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13817 fi
13818 hardcode_libdir_flag_spec_F77='-R$libdir'
13819 hardcode_shlibpath_var_F77=no
13820 case $host_os in
13821 solaris2.[0-5] | solaris2.[0-5].*) ;;
13822 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13823 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13824 esac
13825 link_all_deplibs_F77=yes
13826 ;;
13827
13828 sunos4*)
13829 if test "x$host_vendor" = xsequent; then
13830 # Use $CC to link under sequent, because it throws in some extra .o
13831 # files that make .init and .fini sections work.
13832 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13833 else
13834 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13835 fi
13836 hardcode_libdir_flag_spec_F77='-L$libdir'
13837 hardcode_direct_F77=yes
13838 hardcode_minus_L_F77=yes
13839 hardcode_shlibpath_var_F77=no
13840 ;;
13841
13842 sysv4)
13843 case $host_vendor in
13844 sni)
13845 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846 hardcode_direct_F77=yes # is this really true???
13847 ;;
13848 siemens)
13849 ## LD is ld it makes a PLAMLIB
13850 ## CC just makes a GrossModule.
13851 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13852 reload_cmds_F77='$CC -r -o $output$reload_objs'
13853 hardcode_direct_F77=no
13854 ;;
13855 motorola)
13856 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13857 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13858 ;;
13859 esac
13860 runpath_var='LD_RUN_PATH'
13861 hardcode_shlibpath_var_F77=no
13862 ;;
13863
13864 sysv4.3*)
13865 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13866 hardcode_shlibpath_var_F77=no
13867 export_dynamic_flag_spec_F77='-Bexport'
13868 ;;
13869
13870 sysv4*MP*)
13871 if test -d /usr/nec; then
13872 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13873 hardcode_shlibpath_var_F77=no
13874 runpath_var=LD_RUN_PATH
13875 hardcode_runpath_var=yes
13876 ld_shlibs_F77=yes
13877 fi
13878 ;;
13879
13880 sysv4.2uw2*)
13881 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13882 hardcode_direct_F77=yes
13883 hardcode_minus_L_F77=no
13884 hardcode_shlibpath_var_F77=no
13885 hardcode_runpath_var=yes
13886 runpath_var=LD_RUN_PATH
13887 ;;
13888
13889 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13890 no_undefined_flag_F77='${wl}-z ${wl}text'
13891 if test "$GCC" = yes; then
13892 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13893 else
13894 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13895 fi
13896 runpath_var='LD_RUN_PATH'
13897 hardcode_shlibpath_var_F77=no
13898 ;;
13899
13900 sysv5*)
13901 no_undefined_flag_F77=' -z text'
13902 # $CC -shared without GNU ld will not create a library from C++
13903 # object files and a static libstdc++, better avoid it by now
13904 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13905 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13906 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13907 hardcode_libdir_flag_spec_F77=
13908 hardcode_shlibpath_var_F77=no
13909 runpath_var='LD_RUN_PATH'
13910 ;;
13911
13912 uts4*)
13913 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13914 hardcode_libdir_flag_spec_F77='-L$libdir'
13915 hardcode_shlibpath_var_F77=no
13916 ;;
13917
13918 *)
13919 ld_shlibs_F77=no
13920 ;;
13921 esac
13922 fi
13923
13924echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13925echo "${ECHO_T}$ld_shlibs_F77" >&6
13926test "$ld_shlibs_F77" = no && can_build_shared=no
13927
13928variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13929if test "$GCC" = yes; then
13930 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13931fi
13932
13933#
13934# Do we need to explicitly link libc?
13935#
13936case "x$archive_cmds_need_lc_F77" in
13937x|xyes)
13938 # Assume -lc should be added
13939 archive_cmds_need_lc_F77=yes
13940
13941 if test "$enable_shared" = yes && test "$GCC" = yes; then
13942 case $archive_cmds_F77 in
13943 *'~'*)
13944 # FIXME: we may have to deal with multi-command sequences.
13945 ;;
13946 '$CC '*)
13947 # Test whether the compiler implicitly links with -lc since on some
13948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13949 # to ld, don't add -lc before -lgcc.
13950 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13951echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13952 $rm conftest*
13953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13954
13955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956 (eval $ac_compile) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } 2>conftest.err; then
13960 soname=conftest
13961 lib=conftest
13962 libobjs=conftest.$ac_objext
13963 deplibs=
13964 wl=$lt_prog_compiler_wl_F77
13965 compiler_flags=-v
13966 linker_flags=-v
13967 verstring=
13968 output_objdir=.
13969 libname=conftest
13970 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13971 allow_undefined_flag_F77=
13972 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13973 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }
13977 then
13978 archive_cmds_need_lc_F77=no
13979 else
13980 archive_cmds_need_lc_F77=yes
13981 fi
13982 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13983 else
13984 cat conftest.err 1>&5
13985 fi
13986 $rm conftest*
13987 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13988echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13989 ;;
13990 esac
13991 fi
13992 ;;
13993esac
13994
13995echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13996echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13997hardcode_action_F77=
13998if test -n "$hardcode_libdir_flag_spec_F77" || \
13999 test -n "$runpath_var F77" || \
14000 test "X$hardcode_automatic_F77"="Xyes" ; then
14001
14002 # We can hardcode non-existant directories.
14003 if test "$hardcode_direct_F77" != no &&
14004 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14005 # have to relink, otherwise we might link with an installed library
14006 # when we should be linking with a yet-to-be-installed one
14007 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14008 test "$hardcode_minus_L_F77" != no; then
14009 # Linking always hardcodes the temporary library directory.
14010 hardcode_action_F77=relink
14011 else
14012 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14013 hardcode_action_F77=immediate
14014 fi
14015else
14016 # We cannot hardcode anything, or else we can only hardcode existing
14017 # directories.
14018 hardcode_action_F77=unsupported
14019fi
14020echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14021echo "${ECHO_T}$hardcode_action_F77" >&6
14022
14023if test "$hardcode_action_F77" = relink; then
14024 # Fast installation is not supported
14025 enable_fast_install=no
14026elif test "$shlibpath_overrides_runpath" = yes ||
14027 test "$enable_shared" = no; then
14028 # Fast installation is not necessary
14029 enable_fast_install=needless
14030fi
14031
14032striplib=
14033old_striplib=
14034echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14035echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14036if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14037 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14038 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14039 echo "$as_me:$LINENO: result: yes" >&5
14040echo "${ECHO_T}yes" >&6
14041else
14042# FIXME - insert some real tests, host_os isn't really good enough
14043 case $host_os in
14044 darwin*)
14045 if test -n "$STRIP" ; then
14046 striplib="$STRIP -x"
14047 echo "$as_me:$LINENO: result: yes" >&5
14048echo "${ECHO_T}yes" >&6
14049 else
14050 echo "$as_me:$LINENO: result: no" >&5
14051echo "${ECHO_T}no" >&6
14052fi
14053 ;;
14054 *)
14055 echo "$as_me:$LINENO: result: no" >&5
14056echo "${ECHO_T}no" >&6
14057 ;;
14058 esac
14059fi
14060
14061echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14062echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14063library_names_spec=
14064libname_spec='lib$name'
14065soname_spec=
14066shrext=".so"
14067postinstall_cmds=
14068postuninstall_cmds=
14069finish_cmds=
14070finish_eval=
14071shlibpath_var=
14072shlibpath_overrides_runpath=unknown
14073version_type=none
14074dynamic_linker="$host_os ld.so"
14075sys_lib_dlsearch_path_spec="/lib /usr/lib"
14076if test "$GCC" = yes; then
14077 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14078 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14079 # if the path contains ";" then we assume it to be the separator
14080 # otherwise default to the standard path separator (i.e. ":") - it is
14081 # assumed that no part of a normal pathname contains ";" but that should
14082 # okay in the real world where ";" in dirpaths is itself problematic.
14083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14084 else
14085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14086 fi
14087else
14088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14089fi
14090need_lib_prefix=unknown
14091hardcode_into_libs=no
14092
14093# when you set need_version to no, make sure it does not cause -set_version
14094# flags to be left without arguments
14095need_version=unknown
14096
14097case $host_os in
14098aix3*)
14099 version_type=linux
14100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14101 shlibpath_var=LIBPATH
14102
14103 # AIX 3 has no versioning support, so we append a major version to the name.
14104 soname_spec='${libname}${release}${shared_ext}$major'
14105 ;;
14106
14107aix4* | aix5*)
14108 version_type=linux
14109 need_lib_prefix=no
14110 need_version=no
14111 hardcode_into_libs=yes
14112 if test "$host_cpu" = ia64; then
14113 # AIX 5 supports IA64
14114 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14115 shlibpath_var=LD_LIBRARY_PATH
14116 else
14117 # With GCC up to 2.95.x, collect2 would create an import file
14118 # for dependence libraries. The import file would start with
14119 # the line `#! .'. This would cause the generated library to
14120 # depend on `.', always an invalid library. This was fixed in
14121 # development snapshots of GCC prior to 3.0.
14122 case $host_os in
14123 aix4 | aix4.[01] | aix4.[01].*)
14124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14125 echo ' yes '
14126 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14127 :
14128 else
14129 can_build_shared=no
14130 fi
14131 ;;
14132 esac
14133 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14134 # soname into executable. Probably we can add versioning support to
14135 # collect2, so additional links can be useful in future.
14136 if test "$aix_use_runtimelinking" = yes; then
14137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14138 # instead of lib<name>.a to let people know that these are not
14139 # typical AIX shared libraries.
14140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14141 else
14142 # We preserve .a as extension for shared libraries through AIX4.2
14143 # and later when we are not doing run time linking.
14144 library_names_spec='${libname}${release}.a $libname.a'
14145 soname_spec='${libname}${release}${shared_ext}$major'
14146 fi
14147 shlibpath_var=LIBPATH
14148 fi
14149 ;;
14150
14151amigaos*)
14152 library_names_spec='$libname.ixlibrary $libname.a'
14153 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14154 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'
14155 ;;
14156
14157beos*)
14158 library_names_spec='${libname}${shared_ext}'
14159 dynamic_linker="$host_os ld.so"
14160 shlibpath_var=LIBRARY_PATH
14161 ;;
14162
14163bsdi4*)
14164 version_type=linux
14165 need_version=no
14166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14167 soname_spec='${libname}${release}${shared_ext}$major'
14168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14172 # the default ld.so.conf also contains /usr/contrib/lib and
14173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14174 # libtool to hard-code these into programs
14175 ;;
14176
14177cygwin* | mingw* | pw32*)
14178 version_type=windows
14179 shrext=".dll"
14180 need_version=no
14181 need_lib_prefix=no
14182
14183 case $GCC,$host_os in
14184 yes,cygwin* | yes,mingw* | yes,pw32*)
14185 library_names_spec='$libname.dll.a'
14186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14187 postinstall_cmds='base_file=`basename \${file}`~
14188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14189 dldir=$destdir/`dirname \$dlpath`~
14190 test -d \$dldir || mkdir -p \$dldir~
14191 $install_prog $dir/$dlname \$dldir/$dlname'
14192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14193 dlpath=$dir/\$dldll~
14194 $rm \$dlpath'
14195 shlibpath_overrides_runpath=yes
14196
14197 case $host_os in
14198 cygwin*)
14199 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14200 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14201 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14202 ;;
14203 mingw*)
14204 # MinGW DLLs use traditional 'lib' prefix
14205 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14206 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14207 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14208 # It is most probably a Windows format PATH printed by
14209 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14210 # path with ; separators, and with drive letters. We can handle the
14211 # drive letters (cygwin fileutils understands them), so leave them,
14212 # especially as we might pass files found there to a mingw objdump,
14213 # which wouldn't understand a cygwinified path. Ahh.
14214 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14215 else
14216 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14217 fi
14218 ;;
14219 pw32*)
14220 # pw32 DLLs use 'pw' prefix rather than 'lib'
14221 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14222 ;;
14223 esac
14224 ;;
14225
14226 *)
14227 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14228 ;;
14229 esac
14230 dynamic_linker='Win32 ld.exe'
14231 # FIXME: first we should search . and the directory the executable is in
14232 shlibpath_var=PATH
14233 ;;
14234
14235darwin* | rhapsody*)
14236 dynamic_linker="$host_os dyld"
14237 version_type=darwin
14238 need_lib_prefix=no
14239 need_version=no
14240 # FIXME: Relying on posixy $() will cause problems for
14241 # cross-compilation, but unfortunately the echo tests do not
14242 # yet detect zsh echo's removal of \ escapes.
14243 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14244 soname_spec='${libname}${release}${major}$shared_ext'
14245 shlibpath_overrides_runpath=yes
14246 shlibpath_var=DYLD_LIBRARY_PATH
14247 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14248 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14249 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14250 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"`
14251 fi
14252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14253 ;;
14254
14255dgux*)
14256 version_type=linux
14257 need_lib_prefix=no
14258 need_version=no
14259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14260 soname_spec='${libname}${release}${shared_ext}$major'
14261 shlibpath_var=LD_LIBRARY_PATH
14262 ;;
14263
14264freebsd1*)
14265 dynamic_linker=no
14266 ;;
14267
14268freebsd*)
14269 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14270 version_type=freebsd-$objformat
14271 case $version_type in
14272 freebsd-elf*)
14273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14274 need_version=no
14275 need_lib_prefix=no
14276 ;;
14277 freebsd-*)
14278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14279 need_version=yes
14280 ;;
14281 esac
14282 shlibpath_var=LD_LIBRARY_PATH
14283 case $host_os in
14284 freebsd2*)
14285 shlibpath_overrides_runpath=yes
14286 ;;
14287 freebsd3.01* | freebsdelf3.01*)
14288 shlibpath_overrides_runpath=yes
14289 hardcode_into_libs=yes
14290 ;;
14291 *) # from 3.2 on
14292 shlibpath_overrides_runpath=no
14293 hardcode_into_libs=yes
14294 ;;
14295 esac
14296 ;;
14297
14298gnu*)
14299 version_type=linux
14300 need_lib_prefix=no
14301 need_version=no
14302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14303 soname_spec='${libname}${release}${shared_ext}$major'
14304 shlibpath_var=LD_LIBRARY_PATH
14305 hardcode_into_libs=yes
14306 ;;
14307
14308hpux9* | hpux10* | hpux11*)
14309 # Give a soname corresponding to the major version so that dld.sl refuses to
14310 # link against other versions.
14311 version_type=sunos
14312 need_lib_prefix=no
14313 need_version=no
14314 case "$host_cpu" in
14315 ia64*)
14316 shrext='.so'
14317 hardcode_into_libs=yes
14318 dynamic_linker="$host_os dld.so"
14319 shlibpath_var=LD_LIBRARY_PATH
14320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14322 soname_spec='${libname}${release}${shared_ext}$major'
14323 if test "X$HPUX_IA64_MODE" = X32; then
14324 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14325 else
14326 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14327 fi
14328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14329 ;;
14330 hppa*64*)
14331 shrext='.sl'
14332 hardcode_into_libs=yes
14333 dynamic_linker="$host_os dld.sl"
14334 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14337 soname_spec='${libname}${release}${shared_ext}$major'
14338 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14340 ;;
14341 *)
14342 shrext='.sl'
14343 dynamic_linker="$host_os dld.sl"
14344 shlibpath_var=SHLIB_PATH
14345 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14347 soname_spec='${libname}${release}${shared_ext}$major'
14348 ;;
14349 esac
14350 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14351 postinstall_cmds='chmod 555 $lib'
14352 ;;
14353
14354irix5* | irix6* | nonstopux*)
14355 case $host_os in
14356 nonstopux*) version_type=nonstopux ;;
14357 *)
14358 if test "$lt_cv_prog_gnu_ld" = yes; then
14359 version_type=linux
14360 else
14361 version_type=irix
14362 fi ;;
14363 esac
14364 need_lib_prefix=no
14365 need_version=no
14366 soname_spec='${libname}${release}${shared_ext}$major'
14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14368 case $host_os in
14369 irix5* | nonstopux*)
14370 libsuff= shlibsuff=
14371 ;;
14372 *)
14373 case $LD in # libtool.m4 will add one of these switches to LD
14374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14375 libsuff= shlibsuff= libmagic=32-bit;;
14376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14377 libsuff=32 shlibsuff=N32 libmagic=N32;;
14378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14379 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14380 *) libsuff= shlibsuff= libmagic=never-match;;
14381 esac
14382 ;;
14383 esac
14384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14385 shlibpath_overrides_runpath=no
14386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14388 hardcode_into_libs=yes
14389 ;;
14390
14391# No shared lib support for Linux oldld, aout, or coff.
14392linux*oldld* | linux*aout* | linux*coff*)
14393 dynamic_linker=no
14394 ;;
14395
14396# This must be Linux ELF.
14397linux*)
14398 version_type=linux
14399 need_lib_prefix=no
14400 need_version=no
14401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14402 soname_spec='${libname}${release}${shared_ext}$major'
14403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14404 shlibpath_var=LD_LIBRARY_PATH
14405 shlibpath_overrides_runpath=no
14406 # This implies no fast_install, which is unacceptable.
14407 # Some rework will be needed to allow for fast_install
14408 # before this can be enabled.
14409 hardcode_into_libs=yes
14410
14411 # We used to test for /lib/ld.so.1 and disable shared libraries on
14412 # powerpc, because MkLinux only supported shared libraries with the
14413 # GNU dynamic linker. Since this was broken with cross compilers,
14414 # most powerpc-linux boxes support dynamic linking these days and
14415 # people can always --disable-shared, the test was removed, and we
14416 # assume the GNU/Linux dynamic linker is in use.
14417 dynamic_linker='GNU/Linux ld.so'
14418 ;;
14419
14420netbsd*)
14421 version_type=sunos
14422 need_lib_prefix=no
14423 need_version=no
14424 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14427 dynamic_linker='NetBSD (a.out) ld.so'
14428 else
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14430 soname_spec='${libname}${release}${shared_ext}$major'
14431 dynamic_linker='NetBSD ld.elf_so'
14432 fi
14433 shlibpath_var=LD_LIBRARY_PATH
14434 shlibpath_overrides_runpath=yes
14435 hardcode_into_libs=yes
14436 ;;
14437
14438newsos6)
14439 version_type=linux
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441 shlibpath_var=LD_LIBRARY_PATH
14442 shlibpath_overrides_runpath=yes
14443 ;;
14444
14445nto-qnx)
14446 version_type=linux
14447 need_lib_prefix=no
14448 need_version=no
14449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14450 soname_spec='${libname}${release}${shared_ext}$major'
14451 shlibpath_var=LD_LIBRARY_PATH
14452 shlibpath_overrides_runpath=yes
14453 ;;
14454
14455openbsd*)
14456 version_type=sunos
14457 need_lib_prefix=no
14458 need_version=no
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14461 shlibpath_var=LD_LIBRARY_PATH
14462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14463 case $host_os in
14464 openbsd2.[89] | openbsd2.[89].*)
14465 shlibpath_overrides_runpath=no
14466 ;;
14467 *)
14468 shlibpath_overrides_runpath=yes
14469 ;;
14470 esac
14471 else
14472 shlibpath_overrides_runpath=yes
14473 fi
14474 ;;
14475
14476os2*)
14477 libname_spec='$name'
14478 shrext=".dll"
14479 need_lib_prefix=no
14480 library_names_spec='$libname${shared_ext} $libname.a'
14481 dynamic_linker='OS/2 ld.exe'
14482 shlibpath_var=LIBPATH
14483 ;;
14484
14485osf3* | osf4* | osf5*)
14486 version_type=osf
14487 need_lib_prefix=no
14488 need_version=no
14489 soname_spec='${libname}${release}${shared_ext}$major'
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 shlibpath_var=LD_LIBRARY_PATH
14492 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14493 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14494 ;;
14495
14496sco3.2v5*)
14497 version_type=osf
14498 soname_spec='${libname}${release}${shared_ext}$major'
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500 shlibpath_var=LD_LIBRARY_PATH
14501 ;;
14502
14503solaris*)
14504 version_type=linux
14505 need_lib_prefix=no
14506 need_version=no
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508 soname_spec='${libname}${release}${shared_ext}$major'
14509 shlibpath_var=LD_LIBRARY_PATH
14510 shlibpath_overrides_runpath=yes
14511 hardcode_into_libs=yes
14512 # ldd complains unless libraries are executable
14513 postinstall_cmds='chmod +x $lib'
14514 ;;
14515
14516sunos4*)
14517 version_type=sunos
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14519 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14520 shlibpath_var=LD_LIBRARY_PATH
14521 shlibpath_overrides_runpath=yes
14522 if test "$with_gnu_ld" = yes; then
14523 need_lib_prefix=no
14524 fi
14525 need_version=yes
14526 ;;
14527
14528sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14529 version_type=linux
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 shlibpath_var=LD_LIBRARY_PATH
14533 case $host_vendor in
14534 sni)
14535 shlibpath_overrides_runpath=no
14536 need_lib_prefix=no
14537 export_dynamic_flag_spec='${wl}-Blargedynsym'
14538 runpath_var=LD_RUN_PATH
14539 ;;
14540 siemens)
14541 need_lib_prefix=no
14542 ;;
14543 motorola)
14544 need_lib_prefix=no
14545 need_version=no
14546 shlibpath_overrides_runpath=no
14547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14548 ;;
14549 esac
14550 ;;
14551
14552sysv4*MP*)
14553 if test -d /usr/nec ;then
14554 version_type=linux
14555 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14556 soname_spec='$libname${shared_ext}.$major'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 fi
14559 ;;
14560
14561uts4*)
14562 version_type=linux
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564 soname_spec='${libname}${release}${shared_ext}$major'
14565 shlibpath_var=LD_LIBRARY_PATH
14566 ;;
14567
14568*)
14569 dynamic_linker=no
14570 ;;
14571esac
14572echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14573echo "${ECHO_T}$dynamic_linker" >&6
14574test "$dynamic_linker" = no && can_build_shared=no
14575
14576
14577# The else clause should only fire when bootstrapping the
14578# libtool distribution, otherwise you forgot to ship ltmain.sh
14579# with your package, and you will get complaints that there are
14580# no rules to generate ltmain.sh.
14581if test -f "$ltmain"; then
14582 # See if we are running on zsh, and set the options which allow our commands through
14583 # without removal of \ escapes.
14584 if test -n "${ZSH_VERSION+set}" ; then
14585 setopt NO_GLOB_SUBST
14586 fi
14587 # Now quote all the things that may contain metacharacters while being
14588 # careful not to overquote the AC_SUBSTed values. We take copies of the
14589 # variables and quote the copies for generation of the libtool script.
14590 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14591 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14592 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14593 deplibs_check_method reload_flag reload_cmds need_locks \
14594 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14595 lt_cv_sys_global_symbol_to_c_name_address \
14596 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14597 old_postinstall_cmds old_postuninstall_cmds \
14598 compiler_F77 \
14599 CC_F77 \
14600 LD_F77 \
14601 lt_prog_compiler_wl_F77 \
14602 lt_prog_compiler_pic_F77 \
14603 lt_prog_compiler_static_F77 \
14604 lt_prog_compiler_no_builtin_flag_F77 \
14605 export_dynamic_flag_spec_F77 \
14606 thread_safe_flag_spec_F77 \
14607 whole_archive_flag_spec_F77 \
14608 enable_shared_with_static_runtimes_F77 \
14609 old_archive_cmds_F77 \
14610 old_archive_from_new_cmds_F77 \
14611 predep_objects_F77 \
14612 postdep_objects_F77 \
14613 predeps_F77 \
14614 postdeps_F77 \
14615 compiler_lib_search_path_F77 \
14616 archive_cmds_F77 \
14617 archive_expsym_cmds_F77 \
14618 postinstall_cmds_F77 \
14619 postuninstall_cmds_F77 \
14620 old_archive_from_expsyms_cmds_F77 \
14621 allow_undefined_flag_F77 \
14622 no_undefined_flag_F77 \
14623 export_symbols_cmds_F77 \
14624 hardcode_libdir_flag_spec_F77 \
14625 hardcode_libdir_flag_spec_ld_F77 \
14626 hardcode_libdir_separator_F77 \
14627 hardcode_automatic_F77 \
14628 module_cmds_F77 \
14629 module_expsym_cmds_F77 \
14630 lt_cv_prog_compiler_c_o_F77 \
14631 exclude_expsyms_F77 \
14632 include_expsyms_F77; do
14633
14634 case $var in
14635 old_archive_cmds_F77 | \
14636 old_archive_from_new_cmds_F77 | \
14637 archive_cmds_F77 | \
14638 archive_expsym_cmds_F77 | \
14639 module_cmds_F77 | \
14640 module_expsym_cmds_F77 | \
14641 old_archive_from_expsyms_cmds_F77 | \
14642 export_symbols_cmds_F77 | \
14643 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14644 postinstall_cmds | postuninstall_cmds | \
14645 old_postinstall_cmds | old_postuninstall_cmds | \
14646 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14647 # Double-quote double-evaled strings.
14648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14649 ;;
14650 *)
14651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14652 ;;
14653 esac
14654 done
14655
14656 case $lt_echo in
14657 *'\$0 --fallback-echo"')
14658 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14659 ;;
14660 esac
14661
14662cfgfile="$ofile"
14663
14664 cat <<__EOF__ >> "$cfgfile"
14665# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14666
14667# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14668
14669# Shell to use when invoking shell scripts.
14670SHELL=$lt_SHELL
14671
14672# Whether or not to build shared libraries.
14673build_libtool_libs=$enable_shared
14674
14675# Whether or not to build static libraries.
14676build_old_libs=$enable_static
14677
14678# Whether or not to add -lc for building shared libraries.
14679build_libtool_need_lc=$archive_cmds_need_lc_F77
14680
14681# Whether or not to disallow shared libs when runtime libs are static
14682allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14683
14684# Whether or not to optimize for fast installation.
14685fast_install=$enable_fast_install
14686
14687# The host system.
14688host_alias=$host_alias
14689host=$host
14690
14691# An echo program that does not interpret backslashes.
14692echo=$lt_echo
14693
14694# The archiver.
14695AR=$lt_AR
14696AR_FLAGS=$lt_AR_FLAGS
14697
14698# A C compiler.
14699LTCC=$lt_LTCC
14700
14701# A language-specific compiler.
14702CC=$lt_compiler_F77
14703
14704# Is the compiler the GNU C compiler?
14705with_gcc=$GCC_F77
14706
14707# An ERE matcher.
14708EGREP=$lt_EGREP
14709
14710# The linker used to build libraries.
14711LD=$lt_LD_F77
14712
14713# Whether we need hard or soft links.
14714LN_S=$lt_LN_S
14715
14716# A BSD-compatible nm program.
14717NM=$lt_NM
14718
14719# A symbol stripping program
14720STRIP=$STRIP
14721
14722# Used to examine libraries when file_magic_cmd begins "file"
14723MAGIC_CMD=$MAGIC_CMD
14724
14725# Used on cygwin: DLL creation program.
14726DLLTOOL="$DLLTOOL"
14727
14728# Used on cygwin: object dumper.
14729OBJDUMP="$OBJDUMP"
14730
14731# Used on cygwin: assembler.
14732AS="$AS"
14733
14734# The name of the directory that contains temporary libtool files.
14735objdir=$objdir
14736
14737# How to create reloadable object files.
14738reload_flag=$lt_reload_flag
14739reload_cmds=$lt_reload_cmds
14740
14741# How to pass a linker flag through the compiler.
14742wl=$lt_lt_prog_compiler_wl_F77
14743
14744# Object file suffix (normally "o").
14745objext="$ac_objext"
14746
14747# Old archive suffix (normally "a").
14748libext="$libext"
14749
14750# Shared library suffix (normally ".so").
14751shrext='$shrext'
14752
14753# Executable file suffix (normally "").
14754exeext="$exeext"
14755
14756# Additional compiler flags for building library objects.
14757pic_flag=$lt_lt_prog_compiler_pic_F77
14758pic_mode=$pic_mode
14759
14760# What is the maximum length of a command?
14761max_cmd_len=$lt_cv_sys_max_cmd_len
14762
14763# Does compiler simultaneously support -c and -o options?
14764compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14765
14766# Must we lock files when doing compilation ?
14767need_locks=$lt_need_locks
14768
14769# Do we need the lib prefix for modules?
14770need_lib_prefix=$need_lib_prefix
14771
14772# Do we need a version for libraries?
14773need_version=$need_version
14774
14775# Whether dlopen is supported.
14776dlopen_support=$enable_dlopen
14777
14778# Whether dlopen of programs is supported.
14779dlopen_self=$enable_dlopen_self
14780
14781# Whether dlopen of statically linked programs is supported.
14782dlopen_self_static=$enable_dlopen_self_static
14783
14784# Compiler flag to prevent dynamic linking.
14785link_static_flag=$lt_lt_prog_compiler_static_F77
14786
14787# Compiler flag to turn off builtin functions.
14788no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14789
14790# Compiler flag to allow reflexive dlopens.
14791export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14792
14793# Compiler flag to generate shared objects directly from archives.
14794whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14795
14796# Compiler flag to generate thread-safe objects.
14797thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14798
14799# Library versioning type.
14800version_type=$version_type
14801
14802# Format of library name prefix.
14803libname_spec=$lt_libname_spec
14804
14805# List of archive names. First name is the real one, the rest are links.
14806# The last name is the one that the linker finds with -lNAME.
14807library_names_spec=$lt_library_names_spec
14808
14809# The coded name of the library, if different from the real name.
14810soname_spec=$lt_soname_spec
14811
14812# Commands used to build and install an old-style archive.
14813RANLIB=$lt_RANLIB
14814old_archive_cmds=$lt_old_archive_cmds_F77
14815old_postinstall_cmds=$lt_old_postinstall_cmds
14816old_postuninstall_cmds=$lt_old_postuninstall_cmds
14817
14818# Create an old-style archive from a shared archive.
14819old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14820
14821# Create a temporary old-style archive to link instead of a shared archive.
14822old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14823
14824# Commands used to build and install a shared archive.
14825archive_cmds=$lt_archive_cmds_F77
14826archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14827postinstall_cmds=$lt_postinstall_cmds
14828postuninstall_cmds=$lt_postuninstall_cmds
14829
14830# Commands used to build a loadable module (assumed same as above if empty)
14831module_cmds=$lt_module_cmds_F77
14832module_expsym_cmds=$lt_module_expsym_cmds_F77
14833
14834# Commands to strip libraries.
14835old_striplib=$lt_old_striplib
14836striplib=$lt_striplib
14837
14838# Dependencies to place before the objects being linked to create a
14839# shared library.
14840predep_objects=$lt_predep_objects_F77
14841
14842# Dependencies to place after the objects being linked to create a
14843# shared library.
14844postdep_objects=$lt_postdep_objects_F77
14845
14846# Dependencies to place before the objects being linked to create a
14847# shared library.
14848predeps=$lt_predeps_F77
14849
14850# Dependencies to place after the objects being linked to create a
14851# shared library.
14852postdeps=$lt_postdeps_F77
14853
14854# The library search path used internally by the compiler when linking
14855# a shared library.
14856compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14857
14858# Method to check whether dependent libraries are shared objects.
14859deplibs_check_method=$lt_deplibs_check_method
14860
14861# Command to use when deplibs_check_method == file_magic.
14862file_magic_cmd=$lt_file_magic_cmd
14863
14864# Flag that allows shared libraries with undefined symbols to be built.
14865allow_undefined_flag=$lt_allow_undefined_flag_F77
14866
14867# Flag that forces no undefined symbols.
14868no_undefined_flag=$lt_no_undefined_flag_F77
14869
14870# Commands used to finish a libtool library installation in a directory.
14871finish_cmds=$lt_finish_cmds
14872
14873# Same as above, but a single script fragment to be evaled but not shown.
14874finish_eval=$lt_finish_eval
14875
14876# Take the output of nm and produce a listing of raw symbols and C names.
14877global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14878
14879# Transform the output of nm in a proper C declaration
14880global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14881
14882# Transform the output of nm in a C name address pair
14883global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14884
14885# This is the shared library runtime path variable.
14886runpath_var=$runpath_var
14887
14888# This is the shared library path variable.
14889shlibpath_var=$shlibpath_var
14890
14891# Is shlibpath searched before the hard-coded library search path?
14892shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14893
14894# How to hardcode a shared library path into an executable.
14895hardcode_action=$hardcode_action_F77
14896
14897# Whether we should hardcode library paths into libraries.
14898hardcode_into_libs=$hardcode_into_libs
14899
14900# Flag to hardcode \$libdir into a binary during linking.
14901# This must work even if \$libdir does not exist.
14902hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14903
14904# If ld is used when linking, flag to hardcode \$libdir into
14905# a binary during linking. This must work even if \$libdir does
14906# not exist.
14907hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14908
14909# Whether we need a single -rpath flag with a separated argument.
14910hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14911
14912# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14913# resulting binary.
14914hardcode_direct=$hardcode_direct_F77
14915
14916# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14917# resulting binary.
14918hardcode_minus_L=$hardcode_minus_L_F77
14919
14920# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14921# the resulting binary.
14922hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14923
14924# Set to yes if building a shared library automatically hardcodes DIR into the library
14925# and all subsequent libraries and executables linked against it.
14926hardcode_automatic=$hardcode_automatic_F77
14927
14928# Variables whose values should be saved in libtool wrapper scripts and
14929# restored at relink time.
14930variables_saved_for_relink="$variables_saved_for_relink"
14931
14932# Whether libtool must link a program against all its dependency libraries.
14933link_all_deplibs=$link_all_deplibs_F77
14934
14935# Compile-time system search path for libraries
14936sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14937
14938# Run-time system search path for libraries
14939sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14940
14941# Fix the shell variable \$srcfile for the compiler.
14942fix_srcfile_path="$fix_srcfile_path_F77"
14943
14944# Set to yes if exported symbols are required.
14945always_export_symbols=$always_export_symbols_F77
14946
14947# The commands to list exported symbols.
14948export_symbols_cmds=$lt_export_symbols_cmds_F77
14949
14950# The commands to extract the exported symbol list from a shared archive.
14951extract_expsyms_cmds=$lt_extract_expsyms_cmds
14952
14953# Symbols that should not be listed in the preloaded symbols.
14954exclude_expsyms=$lt_exclude_expsyms_F77
14955
14956# Symbols that must always be exported.
14957include_expsyms=$lt_include_expsyms_F77
14958
14959# ### END LIBTOOL TAG CONFIG: $tagname
14960
14961__EOF__
14962
14963
14964else
14965 # If there is no Makefile yet, we rely on a make rule to execute
14966 # `config.status --recheck' to rerun these tests and create the
14967 # libtool script then.
14968 test -f Makefile && make "$ltmain"
14969fi
14970
14971
14972ac_ext=c
14973ac_cpp='$CPP $CPPFLAGS'
14974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14976ac_compiler_gnu=$ac_cv_c_compiler_gnu
14977
14978CC="$lt_save_CC"
14979
14980 else
14981 tagname=""
14982 fi
14983 ;;
14984
14985 GCJ)
14986 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14987
14988
14989
14990# Source file extension for Java test sources.
14991ac_ext=java
14992
14993# Object file extension for compiled Java test sources.
14994objext=o
14995objext_GCJ=$objext
14996
14997# Code to be used in simple compile tests
14998lt_simple_compile_test_code="class foo {}\n"
14999
15000# Code to be used in simple link tests
15001lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15002
15003# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15004
15005# If no C compiler was specified, use CC.
15006LTCC=${LTCC-"$CC"}
15007
15008# Allow CC to be a program name with arguments.
15009compiler=$CC
15010
15011
15012# Allow CC to be a program name with arguments.
15013lt_save_CC="$CC"
15014CC=${GCJ-"gcj"}
15015compiler=$CC
15016compiler_GCJ=$CC
15017
15018# GCJ did not exist at the time GCC didn't implicitly link libc in.
15019archive_cmds_need_lc_GCJ=no
15020
15021## CAVEAT EMPTOR:
15022## There is no encapsulation within the following macros, do not change
15023## the running order or otherwise move them around unless you know exactly
15024## what you are doing...
15025
15026lt_prog_compiler_no_builtin_flag_GCJ=
15027
15028if test "$GCC" = yes; then
15029 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15030
15031 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15032echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15033if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15035else
15036 lt_cv_prog_compiler_rtti_exceptions=no
15037 ac_outfile=conftest.$ac_objext
15038 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15039 lt_compiler_flag="-fno-rtti -fno-exceptions"
15040 # Insert the option either (1) after the last *FLAGS variable, or
15041 # (2) before a word containing "conftest.", or (3) at the end.
15042 # Note that $ac_compile itself does not contain backslashes and begins
15043 # with a dollar sign (not a hyphen), so the echo should work correctly.
15044 # The option is referenced via a variable to avoid confusing sed.
15045 lt_compile=`echo "$ac_compile" | $SED \
15046 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15048 -e 's:$: $lt_compiler_flag:'`
John Criswell987e49c2003-10-10 01:11:54 +000015049 (eval echo "\"\$as_me:15049: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015050 (eval "$lt_compile" 2>conftest.err)
15051 ac_status=$?
15052 cat conftest.err >&5
John Criswell987e49c2003-10-10 01:11:54 +000015053 echo "$as_me:15053: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015054 if (exit $ac_status) && test -s "$ac_outfile"; then
15055 # The compiler can only warn and ignore the option if not recognized
15056 # So say no if there are warnings
15057 if test ! -s conftest.err; then
15058 lt_cv_prog_compiler_rtti_exceptions=yes
15059 fi
15060 fi
15061 $rm conftest*
15062
15063fi
15064echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15065echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15066
15067if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15068 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15069else
15070 :
15071fi
15072
15073fi
15074
15075lt_prog_compiler_wl_GCJ=
15076lt_prog_compiler_pic_GCJ=
15077lt_prog_compiler_static_GCJ=
15078
15079echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15080echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15081
15082 if test "$GCC" = yes; then
15083 lt_prog_compiler_wl_GCJ='-Wl,'
15084 lt_prog_compiler_static_GCJ='-static'
15085
15086 case $host_os in
15087 aix*)
15088 # All AIX code is PIC.
15089 if test "$host_cpu" = ia64; then
15090 # AIX 5 now supports IA64 processor
15091 lt_prog_compiler_static_GCJ='-Bstatic'
15092 fi
15093 ;;
15094
15095 amigaos*)
15096 # FIXME: we need at least 68020 code to build shared libraries, but
15097 # adding the `-m68020' flag to GCC prevents building anything better,
15098 # like `-m68040'.
15099 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15100 ;;
15101
15102 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15103 # PIC is the default for these OSes.
15104 ;;
15105
15106 mingw* | pw32* | os2*)
15107 # This hack is so that the source file can tell whether it is being
15108 # built for inclusion in a dll (and should export symbols for example).
15109 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15110 ;;
15111
15112 darwin* | rhapsody*)
15113 # PIC is the default on this platform
15114 # Common symbols not allowed in MH_DYLIB files
15115 lt_prog_compiler_pic_GCJ='-fno-common'
15116 ;;
15117
15118 msdosdjgpp*)
15119 # Just because we use GCC doesn't mean we suddenly get shared libraries
15120 # on systems that don't support them.
15121 lt_prog_compiler_can_build_shared_GCJ=no
15122 enable_shared=no
15123 ;;
15124
15125 sysv4*MP*)
15126 if test -d /usr/nec; then
15127 lt_prog_compiler_pic_GCJ=-Kconform_pic
15128 fi
15129 ;;
15130
15131 hpux*)
15132 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15133 # not for PA HP-UX.
15134 case "$host_cpu" in
15135 hppa*64*|ia64*)
15136 # +Z the default
15137 ;;
15138 *)
15139 lt_prog_compiler_pic_GCJ='-fPIC'
15140 ;;
15141 esac
15142 ;;
15143
15144 *)
15145 lt_prog_compiler_pic_GCJ='-fPIC'
15146 ;;
15147 esac
15148 else
15149 # PORTME Check for flag to pass linker flags through the system compiler.
15150 case $host_os in
15151 aix*)
15152 lt_prog_compiler_wl_GCJ='-Wl,'
15153 if test "$host_cpu" = ia64; then
15154 # AIX 5 now supports IA64 processor
15155 lt_prog_compiler_static_GCJ='-Bstatic'
15156 else
15157 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15158 fi
15159 ;;
15160
15161 mingw* | pw32* | os2*)
15162 # This hack is so that the source file can tell whether it is being
15163 # built for inclusion in a dll (and should export symbols for example).
15164 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15165 ;;
15166
15167 hpux9* | hpux10* | hpux11*)
15168 lt_prog_compiler_wl_GCJ='-Wl,'
15169 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15170 # not for PA HP-UX.
15171 case "$host_cpu" in
15172 hppa*64*|ia64*)
15173 # +Z the default
15174 ;;
15175 *)
15176 lt_prog_compiler_pic_GCJ='+Z'
15177 ;;
15178 esac
15179 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15180 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15181 ;;
15182
15183 irix5* | irix6* | nonstopux*)
15184 lt_prog_compiler_wl_GCJ='-Wl,'
15185 # PIC (with -KPIC) is the default.
15186 lt_prog_compiler_static_GCJ='-non_shared'
15187 ;;
15188
15189 newsos6)
15190 lt_prog_compiler_pic_GCJ='-KPIC'
15191 lt_prog_compiler_static_GCJ='-Bstatic'
15192 ;;
15193
15194 linux*)
15195 case $CC in
15196 icc|ecc)
15197 lt_prog_compiler_wl_GCJ='-Wl,'
15198 lt_prog_compiler_pic_GCJ='-KPIC'
15199 lt_prog_compiler_static_GCJ='-static'
15200 ;;
15201 ccc)
15202 lt_prog_compiler_wl_GCJ='-Wl,'
15203 # All Alpha code is PIC.
15204 lt_prog_compiler_static_GCJ='-non_shared'
15205 ;;
15206 esac
15207 ;;
15208
15209 osf3* | osf4* | osf5*)
15210 lt_prog_compiler_wl_GCJ='-Wl,'
15211 # All OSF/1 code is PIC.
15212 lt_prog_compiler_static_GCJ='-non_shared'
15213 ;;
15214
15215 sco3.2v5*)
15216 lt_prog_compiler_pic_GCJ='-Kpic'
15217 lt_prog_compiler_static_GCJ='-dn'
15218 ;;
15219
15220 solaris*)
15221 lt_prog_compiler_wl_GCJ='-Wl,'
15222 lt_prog_compiler_pic_GCJ='-KPIC'
15223 lt_prog_compiler_static_GCJ='-Bstatic'
15224 ;;
15225
15226 sunos4*)
15227 lt_prog_compiler_wl_GCJ='-Qoption ld '
15228 lt_prog_compiler_pic_GCJ='-PIC'
15229 lt_prog_compiler_static_GCJ='-Bstatic'
15230 ;;
15231
15232 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15233 lt_prog_compiler_wl_GCJ='-Wl,'
15234 lt_prog_compiler_pic_GCJ='-KPIC'
15235 lt_prog_compiler_static_GCJ='-Bstatic'
15236 ;;
15237
15238 sysv4*MP*)
15239 if test -d /usr/nec ;then
15240 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15241 lt_prog_compiler_static_GCJ='-Bstatic'
15242 fi
15243 ;;
15244
15245 uts4*)
15246 lt_prog_compiler_pic_GCJ='-pic'
15247 lt_prog_compiler_static_GCJ='-Bstatic'
15248 ;;
15249
15250 *)
15251 lt_prog_compiler_can_build_shared_GCJ=no
15252 ;;
15253 esac
15254 fi
15255
15256echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15257echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15258
15259#
15260# Check to make sure the PIC flag actually works.
15261#
15262if test -n "$lt_prog_compiler_pic_GCJ"; then
15263 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15264echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15265if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15267else
15268 lt_prog_compiler_pic_works_GCJ=no
15269 ac_outfile=conftest.$ac_objext
15270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15271 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15272 # Insert the option either (1) after the last *FLAGS variable, or
15273 # (2) before a word containing "conftest.", or (3) at the end.
15274 # Note that $ac_compile itself does not contain backslashes and begins
15275 # with a dollar sign (not a hyphen), so the echo should work correctly.
15276 # The option is referenced via a variable to avoid confusing sed.
15277 lt_compile=`echo "$ac_compile" | $SED \
15278 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15280 -e 's:$: $lt_compiler_flag:'`
John Criswell987e49c2003-10-10 01:11:54 +000015281 (eval echo "\"\$as_me:15281: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015282 (eval "$lt_compile" 2>conftest.err)
15283 ac_status=$?
15284 cat conftest.err >&5
John Criswell987e49c2003-10-10 01:11:54 +000015285 echo "$as_me:15285: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015286 if (exit $ac_status) && test -s "$ac_outfile"; then
15287 # The compiler can only warn and ignore the option if not recognized
15288 # So say no if there are warnings
15289 if test ! -s conftest.err; then
15290 lt_prog_compiler_pic_works_GCJ=yes
15291 fi
15292 fi
15293 $rm conftest*
15294
15295fi
15296echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15297echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15298
15299if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15300 case $lt_prog_compiler_pic_GCJ in
15301 "" | " "*) ;;
15302 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15303 esac
15304else
15305 lt_prog_compiler_pic_GCJ=
15306 lt_prog_compiler_can_build_shared_GCJ=no
15307fi
15308
15309fi
15310case "$host_os" in
15311 # For platforms which do not support PIC, -DPIC is meaningless:
15312 *djgpp*)
15313 lt_prog_compiler_pic_GCJ=
15314 ;;
15315 *)
15316 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15317 ;;
15318esac
15319
15320echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15321echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15322if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15324else
15325 lt_cv_prog_compiler_c_o_GCJ=no
15326 $rm -r conftest 2>/dev/null
15327 mkdir conftest
15328 cd conftest
15329 mkdir out
15330 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15331
15332 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15333 # that will create temporary files in the current directory regardless of
15334 # the output directory. Thus, making CWD read-only will cause this test
15335 # to fail, enabling locking or at least warning the user not to do parallel
15336 # builds.
15337 chmod -w .
15338
15339 lt_compiler_flag="-o out/conftest2.$ac_objext"
15340 # Insert the option either (1) after the last *FLAGS variable, or
15341 # (2) before a word containing "conftest.", or (3) at the end.
15342 # Note that $ac_compile itself does not contain backslashes and begins
15343 # with a dollar sign (not a hyphen), so the echo should work correctly.
15344 lt_compile=`echo "$ac_compile" | $SED \
15345 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15347 -e 's:$: $lt_compiler_flag:'`
John Criswell987e49c2003-10-10 01:11:54 +000015348 (eval echo "\"\$as_me:15348: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015349 (eval "$lt_compile" 2>out/conftest.err)
15350 ac_status=$?
15351 cat out/conftest.err >&5
John Criswell987e49c2003-10-10 01:11:54 +000015352 echo "$as_me:15352: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015353 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15354 then
15355 # The compiler can only warn and ignore the option if not recognized
15356 # So say no if there are warnings
15357 if test ! -s out/conftest.err; then
15358 lt_cv_prog_compiler_c_o_GCJ=yes
15359 fi
15360 fi
15361 chmod u+w .
15362 $rm conftest* out/*
15363 rmdir out
15364 cd ..
15365 rmdir conftest
15366 $rm conftest*
15367
15368fi
15369echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15370echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15371
15372
15373hard_links="nottested"
15374if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15375 # do not overwrite the value of need_locks provided by the user
15376 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15377echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15378 hard_links=yes
15379 $rm conftest*
15380 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15381 touch conftest.a
15382 ln conftest.a conftest.b 2>&5 || hard_links=no
15383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15384 echo "$as_me:$LINENO: result: $hard_links" >&5
15385echo "${ECHO_T}$hard_links" >&6
15386 if test "$hard_links" = no; then
15387 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15388echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15389 need_locks=warn
15390 fi
15391else
15392 need_locks=no
15393fi
15394
15395echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15396echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15397
15398 runpath_var=
15399 allow_undefined_flag_GCJ=
15400 enable_shared_with_static_runtimes_GCJ=no
15401 archive_cmds_GCJ=
15402 archive_expsym_cmds_GCJ=
15403 old_archive_From_new_cmds_GCJ=
15404 old_archive_from_expsyms_cmds_GCJ=
15405 export_dynamic_flag_spec_GCJ=
15406 whole_archive_flag_spec_GCJ=
15407 thread_safe_flag_spec_GCJ=
15408 hardcode_libdir_flag_spec_GCJ=
15409 hardcode_libdir_flag_spec_ld_GCJ=
15410 hardcode_libdir_separator_GCJ=
15411 hardcode_direct_GCJ=no
15412 hardcode_minus_L_GCJ=no
15413 hardcode_shlibpath_var_GCJ=unsupported
15414 link_all_deplibs_GCJ=unknown
15415 hardcode_automatic_GCJ=no
15416 module_cmds_GCJ=
15417 module_expsym_cmds_GCJ=
15418 always_export_symbols_GCJ=no
15419 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15420 # include_expsyms should be a list of space-separated symbols to be *always*
15421 # included in the symbol list
15422 include_expsyms_GCJ=
15423 # exclude_expsyms can be an extended regexp of symbols to exclude
15424 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15425 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15426 # as well as any symbol that contains `d'.
15427 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15428 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15429 # platforms (ab)use it in PIC code, but their linkers get confused if
15430 # the symbol is explicitly referenced. Since portable code cannot
15431 # rely on this symbol name, it's probably fine to never include it in
15432 # preloaded symbol tables.
15433 extract_expsyms_cmds=
15434
15435 case $host_os in
15436 cygwin* | mingw* | pw32*)
15437 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15438 # When not using gcc, we currently assume that we are using
15439 # Microsoft Visual C++.
15440 if test "$GCC" != yes; then
15441 with_gnu_ld=no
15442 fi
15443 ;;
15444 openbsd*)
15445 with_gnu_ld=no
15446 ;;
15447 esac
15448
15449 ld_shlibs_GCJ=yes
15450 if test "$with_gnu_ld" = yes; then
15451 # If archive_cmds runs LD, not CC, wlarc should be empty
15452 wlarc='${wl}'
15453
15454 # See if GNU ld supports shared libraries.
15455 case $host_os in
15456 aix3* | aix4* | aix5*)
15457 # On AIX/PPC, the GNU linker is very broken
15458 if test "$host_cpu" != ia64; then
15459 ld_shlibs_GCJ=no
15460 cat <<EOF 1>&2
15461
15462*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15463*** to be unable to reliably create shared libraries on AIX.
15464*** Therefore, libtool is disabling shared libraries support. If you
15465*** really care for shared libraries, you may want to modify your PATH
15466*** so that a non-GNU linker is found, and then restart.
15467
15468EOF
15469 fi
15470 ;;
15471
15472 amigaos*)
15473 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)'
15474 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15475 hardcode_minus_L_GCJ=yes
15476
15477 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15478 # that the semantics of dynamic libraries on AmigaOS, at least up
15479 # to version 4, is to share data among multiple programs linked
15480 # with the same dynamic library. Since this doesn't match the
15481 # behavior of shared libraries on other platforms, we can't use
15482 # them.
15483 ld_shlibs_GCJ=no
15484 ;;
15485
15486 beos*)
15487 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15488 allow_undefined_flag_GCJ=unsupported
15489 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15490 # support --undefined. This deserves some investigation. FIXME
15491 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15492 else
15493 ld_shlibs_GCJ=no
15494 fi
15495 ;;
15496
15497 cygwin* | mingw* | pw32*)
15498 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15499 # as there is no search path for DLLs.
15500 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15501 allow_undefined_flag_GCJ=unsupported
15502 always_export_symbols_GCJ=no
15503 enable_shared_with_static_runtimes_GCJ=yes
15504 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15505
15506 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15507 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15508 # If the export-symbols file already is a .def file (1st line
15509 # is EXPORTS), use it as is; otherwise, prepend...
15510 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15511 cp $export_symbols $output_objdir/$soname.def;
15512 else
15513 echo EXPORTS > $output_objdir/$soname.def;
15514 cat $export_symbols >> $output_objdir/$soname.def;
15515 fi~
15516 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15517 else
15518 ld_shlibs=no
15519 fi
15520 ;;
15521
15522 netbsd*)
15523 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15524 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15525 wlarc=
15526 else
15527 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15528 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15529 fi
15530 ;;
15531
15532 solaris* | sysv5*)
15533 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15534 ld_shlibs_GCJ=no
15535 cat <<EOF 1>&2
15536
15537*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15538*** create shared libraries on Solaris systems. Therefore, libtool
15539*** is disabling shared libraries support. We urge you to upgrade GNU
15540*** binutils to release 2.9.1 or newer. Another option is to modify
15541*** your PATH or compiler configuration so that the native linker is
15542*** used, and then restart.
15543
15544EOF
15545 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15546 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15547 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15548 else
15549 ld_shlibs_GCJ=no
15550 fi
15551 ;;
15552
15553 sunos4*)
15554 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15555 wlarc=
15556 hardcode_direct_GCJ=yes
15557 hardcode_shlibpath_var_GCJ=no
15558 ;;
15559
15560 *)
15561 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15562 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15563 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15564 else
15565 ld_shlibs_GCJ=no
15566 fi
15567 ;;
15568 esac
15569
15570 if test "$ld_shlibs_GCJ" = yes; then
15571 runpath_var=LD_RUN_PATH
15572 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15573 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15574 # ancient GNU ld didn't support --whole-archive et. al.
15575 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15576 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15577 else
15578 whole_archive_flag_spec_GCJ=
15579 fi
15580 fi
15581 else
15582 # PORTME fill in a description of your system's linker (not GNU ld)
15583 case $host_os in
15584 aix3*)
15585 allow_undefined_flag_GCJ=unsupported
15586 always_export_symbols_GCJ=yes
15587 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'
15588 # Note: this linker hardcodes the directories in LIBPATH if there
15589 # are no directories specified by -L.
15590 hardcode_minus_L_GCJ=yes
15591 if test "$GCC" = yes && test -z "$link_static_flag"; then
15592 # Neither direct hardcoding nor static linking is supported with a
15593 # broken collect2.
15594 hardcode_direct_GCJ=unsupported
15595 fi
15596 ;;
15597
15598 aix4* | aix5*)
15599 if test "$host_cpu" = ia64; then
15600 # On IA64, the linker does run time linking by default, so we don't
15601 # have to do anything special.
15602 aix_use_runtimelinking=no
15603 exp_sym_flag='-Bexport'
15604 no_entry_flag=""
15605 else
15606 # If we're using GNU nm, then we don't want the "-C" option.
15607 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15608 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15609 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'
15610 else
15611 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'
15612 fi
15613 aix_use_runtimelinking=no
15614
15615 # Test if we are trying to use run time linking or normal
15616 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15617 # need to do runtime linking.
15618 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15619 for ld_flag in $LDFLAGS; do
15620 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15621 aix_use_runtimelinking=yes
15622 break
15623 fi
15624 done
15625 esac
15626
15627 exp_sym_flag='-bexport'
15628 no_entry_flag='-bnoentry'
15629 fi
15630
15631 # When large executables or shared objects are built, AIX ld can
15632 # have problems creating the table of contents. If linking a library
15633 # or program results in "error TOC overflow" add -mminimal-toc to
15634 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15635 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15636
15637 archive_cmds_GCJ=''
15638 hardcode_direct_GCJ=yes
15639 hardcode_libdir_separator_GCJ=':'
15640 link_all_deplibs_GCJ=yes
15641
15642 if test "$GCC" = yes; then
15643 case $host_os in aix4.012|aix4.012.*)
15644 # We only want to do this on AIX 4.2 and lower, the check
15645 # below for broken collect2 doesn't work under 4.3+
15646 collect2name=`${CC} -print-prog-name=collect2`
15647 if test -f "$collect2name" && \
15648 strings "$collect2name" | grep resolve_lib_name >/dev/null
15649 then
15650 # We have reworked collect2
15651 hardcode_direct_GCJ=yes
15652 else
15653 # We have old collect2
15654 hardcode_direct_GCJ=unsupported
15655 # It fails to find uninstalled libraries when the uninstalled
15656 # path is not listed in the libpath. Setting hardcode_minus_L
15657 # to unsupported forces relinking
15658 hardcode_minus_L_GCJ=yes
15659 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15660 hardcode_libdir_separator_GCJ=
15661 fi
15662 esac
15663 shared_flag='-shared'
15664 else
15665 # not using gcc
15666 if test "$host_cpu" = ia64; then
15667 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15668 # chokes on -Wl,-G. The following line is correct:
15669 shared_flag='-G'
15670 else
15671 if test "$aix_use_runtimelinking" = yes; then
15672 shared_flag='${wl}-G'
15673 else
15674 shared_flag='${wl}-bM:SRE'
15675 fi
15676 fi
15677 fi
15678
15679 # It seems that -bexpall does not export symbols beginning with
15680 # underscore (_), so it is better to generate a list of symbols to export.
15681 always_export_symbols_GCJ=yes
15682 if test "$aix_use_runtimelinking" = yes; then
15683 # Warning - without using the other runtime loading flags (-brtl),
15684 # -berok will link without error, but may produce a broken library.
15685 allow_undefined_flag_GCJ='-berok'
15686 # Determine the default libpath from the value encoded in an empty executable.
15687 cat >conftest.$ac_ext <<_ACEOF
15688#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015689/* confdefs.h. */
15690_ACEOF
15691cat confdefs.h >>conftest.$ac_ext
15692cat >>conftest.$ac_ext <<_ACEOF
15693/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015694
John Criswell47fdd832003-07-14 16:52:07 +000015695int
15696main ()
15697{
15698
15699 ;
15700 return 0;
15701}
15702_ACEOF
15703rm -f conftest.$ac_objext conftest$ac_exeext
15704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15705 (eval $ac_link) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -s conftest$ac_exeext'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715
15716aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15717}'`
15718# Check for a 64-bit object if we didn't find anything.
15719if 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; }
15720}'`; fi
15721else
15722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015723sed 's/^/| /' conftest.$ac_ext >&5
15724
John Criswell47fdd832003-07-14 16:52:07 +000015725fi
15726rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15727if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15728
15729 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15730 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"
15731 else
15732 if test "$host_cpu" = ia64; then
15733 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15734 allow_undefined_flag_GCJ="-z nodefs"
15735 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"
15736 else
15737 # Determine the default libpath from the value encoded in an empty executable.
15738 cat >conftest.$ac_ext <<_ACEOF
15739#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015740/* confdefs.h. */
15741_ACEOF
15742cat confdefs.h >>conftest.$ac_ext
15743cat >>conftest.$ac_ext <<_ACEOF
15744/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015745
John Criswell47fdd832003-07-14 16:52:07 +000015746int
15747main ()
15748{
15749
15750 ;
15751 return 0;
15752}
15753_ACEOF
15754rm -f conftest.$ac_objext conftest$ac_exeext
15755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15756 (eval $ac_link) 2>&5
15757 ac_status=$?
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); } &&
15760 { ac_try='test -s conftest$ac_exeext'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }; then
15766
15767aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15768}'`
15769# Check for a 64-bit object if we didn't find anything.
15770if 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; }
15771}'`; fi
15772else
15773 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015774sed 's/^/| /' conftest.$ac_ext >&5
15775
John Criswell47fdd832003-07-14 16:52:07 +000015776fi
15777rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15778if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15779
15780 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15781 # Warning - without using the other run time loading flags,
15782 # -berok will link without error, but may produce a broken library.
15783 no_undefined_flag_GCJ=' ${wl}-bernotok'
15784 allow_undefined_flag_GCJ=' ${wl}-berok'
15785 # -bexpall does not export symbols beginning with underscore (_)
15786 always_export_symbols_GCJ=yes
15787 # Exported symbols can be pulled into shared objects from archives
15788 whole_archive_flag_spec_GCJ=' '
15789 archive_cmds_need_lc_GCJ=yes
15790 # This is similar to how AIX traditionally builds it's shared libraries.
15791 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'
15792 fi
15793 fi
15794 ;;
15795
15796 amigaos*)
15797 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)'
15798 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15799 hardcode_minus_L_GCJ=yes
15800 # see comment about different semantics on the GNU ld section
15801 ld_shlibs_GCJ=no
15802 ;;
15803
15804 bsdi4*)
15805 export_dynamic_flag_spec_GCJ=-rdynamic
15806 ;;
15807
15808 cygwin* | mingw* | pw32*)
15809 # When not using gcc, we currently assume that we are using
15810 # Microsoft Visual C++.
15811 # hardcode_libdir_flag_spec is actually meaningless, as there is
15812 # no search path for DLLs.
15813 hardcode_libdir_flag_spec_GCJ=' '
15814 allow_undefined_flag_GCJ=unsupported
15815 # Tell ltmain to make .lib files, not .a files.
15816 libext=lib
15817 # Tell ltmain to make .dll files, not .so files.
15818 shrext=".dll"
15819 # FIXME: Setting linknames here is a bad hack.
15820 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15821 # The linker will automatically build a .lib file if we build a DLL.
15822 old_archive_From_new_cmds_GCJ='true'
15823 # FIXME: Should let the user specify the lib program.
15824 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15825 fix_srcfile_path='`cygpath -w "$srcfile"`'
15826 enable_shared_with_static_runtimes_GCJ=yes
15827 ;;
15828
15829 darwin* | rhapsody*)
15830 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15831 archive_cmds_need_lc_GCJ=no
15832 case "$host_os" in
15833 rhapsody* | darwin1.[012])
15834 allow_undefined_flag_GCJ='-undefined suppress'
15835 ;;
15836 *) # Darwin 1.3 on
15837 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15838 ;;
15839 esac
15840 # FIXME: Relying on posixy $() will cause problems for
15841 # cross-compilation, but unfortunately the echo tests do not
15842 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15843 # `"' quotes if we put them in here... so don't!
15844 lt_int_apple_cc_single_mod=no
15845 output_verbose_link_cmd='echo'
15846 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15847 lt_int_apple_cc_single_mod=yes
15848 fi
15849 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15850 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15851 else
15852 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'
15853 fi
15854 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15855 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15856 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15857 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}'
15858 else
15859 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}'
15860 fi
15861 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}'
15862 hardcode_direct_GCJ=no
15863 hardcode_automatic_GCJ=yes
15864 hardcode_shlibpath_var_GCJ=unsupported
15865 whole_archive_flag_spec_GCJ='-all_load $convenience'
15866 link_all_deplibs_GCJ=yes
15867 fi
15868 ;;
15869
15870 dgux*)
15871 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15872 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15873 hardcode_shlibpath_var_GCJ=no
15874 ;;
15875
15876 freebsd1*)
15877 ld_shlibs_GCJ=no
15878 ;;
15879
15880 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15881 # support. Future versions do this automatically, but an explicit c++rt0.o
15882 # does not break anything, and helps significantly (at the cost of a little
15883 # extra space).
15884 freebsd2.2*)
15885 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15886 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15887 hardcode_direct_GCJ=yes
15888 hardcode_shlibpath_var_GCJ=no
15889 ;;
15890
15891 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15892 freebsd2*)
15893 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15894 hardcode_direct_GCJ=yes
15895 hardcode_minus_L_GCJ=yes
15896 hardcode_shlibpath_var_GCJ=no
15897 ;;
15898
15899 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15900 freebsd*)
15901 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15902 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15903 hardcode_direct_GCJ=yes
15904 hardcode_shlibpath_var_GCJ=no
15905 ;;
15906
15907 hpux9*)
15908 if test "$GCC" = yes; then
15909 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'
15910 else
15911 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'
15912 fi
15913 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15914 hardcode_libdir_separator_GCJ=:
15915 hardcode_direct_GCJ=yes
15916
15917 # hardcode_minus_L: Not really in the search PATH,
15918 # but as the default location of the library.
15919 hardcode_minus_L_GCJ=yes
15920 export_dynamic_flag_spec_GCJ='${wl}-E'
15921 ;;
15922
15923 hpux10* | hpux11*)
15924 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15925 case "$host_cpu" in
15926 hppa*64*|ia64*)
15927 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15928 ;;
15929 *)
15930 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15931 ;;
15932 esac
15933 else
15934 case "$host_cpu" in
15935 hppa*64*|ia64*)
15936 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15937 ;;
15938 *)
15939 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15940 ;;
15941 esac
15942 fi
15943 if test "$with_gnu_ld" = no; then
15944 case "$host_cpu" in
15945 hppa*64*)
15946 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15947 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15948 hardcode_libdir_separator_GCJ=:
15949 hardcode_direct_GCJ=no
15950 hardcode_shlibpath_var_GCJ=no
15951 ;;
15952 ia64*)
15953 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15954 hardcode_direct_GCJ=no
15955 hardcode_shlibpath_var_GCJ=no
15956
15957 # hardcode_minus_L: Not really in the search PATH,
15958 # but as the default location of the library.
15959 hardcode_minus_L_GCJ=yes
15960 ;;
15961 *)
15962 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15963 hardcode_libdir_separator_GCJ=:
15964 hardcode_direct_GCJ=yes
15965 export_dynamic_flag_spec_GCJ='${wl}-E'
15966
15967 # hardcode_minus_L: Not really in the search PATH,
15968 # but as the default location of the library.
15969 hardcode_minus_L_GCJ=yes
15970 ;;
15971 esac
15972 fi
15973 ;;
15974
15975 irix5* | irix6* | nonstopux*)
15976 if test "$GCC" = yes; then
15977 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'
15978 else
15979 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'
15980 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15981 fi
15982 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15983 hardcode_libdir_separator_GCJ=:
15984 link_all_deplibs_GCJ=yes
15985 ;;
15986
15987 netbsd*)
15988 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15989 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15990 else
15991 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15992 fi
15993 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15994 hardcode_direct_GCJ=yes
15995 hardcode_shlibpath_var_GCJ=no
15996 ;;
15997
15998 newsos6)
15999 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16000 hardcode_direct_GCJ=yes
16001 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16002 hardcode_libdir_separator_GCJ=:
16003 hardcode_shlibpath_var_GCJ=no
16004 ;;
16005
16006 openbsd*)
16007 hardcode_direct_GCJ=yes
16008 hardcode_shlibpath_var_GCJ=no
16009 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16010 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16011 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16012 export_dynamic_flag_spec_GCJ='${wl}-E'
16013 else
16014 case $host_os in
16015 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16016 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16017 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16018 ;;
16019 *)
16020 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16021 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16022 ;;
16023 esac
16024 fi
16025 ;;
16026
16027 os2*)
16028 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16029 hardcode_minus_L_GCJ=yes
16030 allow_undefined_flag_GCJ=unsupported
16031 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'
16032 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16033 ;;
16034
16035 osf3*)
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16039 else
16040 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16041 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'
16042 fi
16043 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16044 hardcode_libdir_separator_GCJ=:
16045 ;;
16046
16047 osf4* | osf5*) # as osf3* with the addition of -msym flag
16048 if test "$GCC" = yes; then
16049 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16050 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'
16051 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16052 else
16053 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16054 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'
16055 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~
16056 $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'
16057
16058 # Both c and cxx compiler support -rpath directly
16059 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16060 fi
16061 hardcode_libdir_separator_GCJ=:
16062 ;;
16063
16064 sco3.2v5*)
16065 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16066 hardcode_shlibpath_var_GCJ=no
16067 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16068 runpath_var=LD_RUN_PATH
16069 hardcode_runpath_var=yes
16070 ;;
16071
16072 solaris*)
16073 no_undefined_flag_GCJ=' -z text'
16074 if test "$GCC" = yes; then
16075 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16076 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16077 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16078 else
16079 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16080 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16081 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16082 fi
16083 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16084 hardcode_shlibpath_var_GCJ=no
16085 case $host_os in
16086 solaris2.[0-5] | solaris2.[0-5].*) ;;
16087 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16088 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16089 esac
16090 link_all_deplibs_GCJ=yes
16091 ;;
16092
16093 sunos4*)
16094 if test "x$host_vendor" = xsequent; then
16095 # Use $CC to link under sequent, because it throws in some extra .o
16096 # files that make .init and .fini sections work.
16097 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16098 else
16099 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16100 fi
16101 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16102 hardcode_direct_GCJ=yes
16103 hardcode_minus_L_GCJ=yes
16104 hardcode_shlibpath_var_GCJ=no
16105 ;;
16106
16107 sysv4)
16108 case $host_vendor in
16109 sni)
16110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16111 hardcode_direct_GCJ=yes # is this really true???
16112 ;;
16113 siemens)
16114 ## LD is ld it makes a PLAMLIB
16115 ## CC just makes a GrossModule.
16116 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16117 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16118 hardcode_direct_GCJ=no
16119 ;;
16120 motorola)
16121 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16123 ;;
16124 esac
16125 runpath_var='LD_RUN_PATH'
16126 hardcode_shlibpath_var_GCJ=no
16127 ;;
16128
16129 sysv4.3*)
16130 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16131 hardcode_shlibpath_var_GCJ=no
16132 export_dynamic_flag_spec_GCJ='-Bexport'
16133 ;;
16134
16135 sysv4*MP*)
16136 if test -d /usr/nec; then
16137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16138 hardcode_shlibpath_var_GCJ=no
16139 runpath_var=LD_RUN_PATH
16140 hardcode_runpath_var=yes
16141 ld_shlibs_GCJ=yes
16142 fi
16143 ;;
16144
16145 sysv4.2uw2*)
16146 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16147 hardcode_direct_GCJ=yes
16148 hardcode_minus_L_GCJ=no
16149 hardcode_shlibpath_var_GCJ=no
16150 hardcode_runpath_var=yes
16151 runpath_var=LD_RUN_PATH
16152 ;;
16153
16154 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16155 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16156 if test "$GCC" = yes; then
16157 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16158 else
16159 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16160 fi
16161 runpath_var='LD_RUN_PATH'
16162 hardcode_shlibpath_var_GCJ=no
16163 ;;
16164
16165 sysv5*)
16166 no_undefined_flag_GCJ=' -z text'
16167 # $CC -shared without GNU ld will not create a library from C++
16168 # object files and a static libstdc++, better avoid it by now
16169 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16170 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16171 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16172 hardcode_libdir_flag_spec_GCJ=
16173 hardcode_shlibpath_var_GCJ=no
16174 runpath_var='LD_RUN_PATH'
16175 ;;
16176
16177 uts4*)
16178 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16179 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16180 hardcode_shlibpath_var_GCJ=no
16181 ;;
16182
16183 *)
16184 ld_shlibs_GCJ=no
16185 ;;
16186 esac
16187 fi
16188
16189echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16190echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16191test "$ld_shlibs_GCJ" = no && can_build_shared=no
16192
16193variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16194if test "$GCC" = yes; then
16195 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16196fi
16197
16198#
16199# Do we need to explicitly link libc?
16200#
16201case "x$archive_cmds_need_lc_GCJ" in
16202x|xyes)
16203 # Assume -lc should be added
16204 archive_cmds_need_lc_GCJ=yes
16205
16206 if test "$enable_shared" = yes && test "$GCC" = yes; then
16207 case $archive_cmds_GCJ in
16208 *'~'*)
16209 # FIXME: we may have to deal with multi-command sequences.
16210 ;;
16211 '$CC '*)
16212 # Test whether the compiler implicitly links with -lc since on some
16213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16214 # to ld, don't add -lc before -lgcc.
16215 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16216echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16217 $rm conftest*
16218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16219
16220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16221 (eval $ac_compile) 2>&5
16222 ac_status=$?
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } 2>conftest.err; then
16225 soname=conftest
16226 lib=conftest
16227 libobjs=conftest.$ac_objext
16228 deplibs=
16229 wl=$lt_prog_compiler_wl_GCJ
16230 compiler_flags=-v
16231 linker_flags=-v
16232 verstring=
16233 output_objdir=.
16234 libname=conftest
16235 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16236 allow_undefined_flag_GCJ=
16237 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16238 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16239 ac_status=$?
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }
16242 then
16243 archive_cmds_need_lc_GCJ=no
16244 else
16245 archive_cmds_need_lc_GCJ=yes
16246 fi
16247 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16248 else
16249 cat conftest.err 1>&5
16250 fi
16251 $rm conftest*
16252 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16253echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16254 ;;
16255 esac
16256 fi
16257 ;;
16258esac
16259
16260echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16261echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16262hardcode_action_GCJ=
16263if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16264 test -n "$runpath_var GCJ" || \
16265 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16266
16267 # We can hardcode non-existant directories.
16268 if test "$hardcode_direct_GCJ" != no &&
16269 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16270 # have to relink, otherwise we might link with an installed library
16271 # when we should be linking with a yet-to-be-installed one
16272 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16273 test "$hardcode_minus_L_GCJ" != no; then
16274 # Linking always hardcodes the temporary library directory.
16275 hardcode_action_GCJ=relink
16276 else
16277 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16278 hardcode_action_GCJ=immediate
16279 fi
16280else
16281 # We cannot hardcode anything, or else we can only hardcode existing
16282 # directories.
16283 hardcode_action_GCJ=unsupported
16284fi
16285echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16286echo "${ECHO_T}$hardcode_action_GCJ" >&6
16287
16288if test "$hardcode_action_GCJ" = relink; then
16289 # Fast installation is not supported
16290 enable_fast_install=no
16291elif test "$shlibpath_overrides_runpath" = yes ||
16292 test "$enable_shared" = no; then
16293 # Fast installation is not necessary
16294 enable_fast_install=needless
16295fi
16296
16297striplib=
16298old_striplib=
16299echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16300echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16301if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16302 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16303 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16304 echo "$as_me:$LINENO: result: yes" >&5
16305echo "${ECHO_T}yes" >&6
16306else
16307# FIXME - insert some real tests, host_os isn't really good enough
16308 case $host_os in
16309 darwin*)
16310 if test -n "$STRIP" ; then
16311 striplib="$STRIP -x"
16312 echo "$as_me:$LINENO: result: yes" >&5
16313echo "${ECHO_T}yes" >&6
16314 else
16315 echo "$as_me:$LINENO: result: no" >&5
16316echo "${ECHO_T}no" >&6
16317fi
16318 ;;
16319 *)
16320 echo "$as_me:$LINENO: result: no" >&5
16321echo "${ECHO_T}no" >&6
16322 ;;
16323 esac
16324fi
16325
16326echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16327echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16328library_names_spec=
16329libname_spec='lib$name'
16330soname_spec=
16331shrext=".so"
16332postinstall_cmds=
16333postuninstall_cmds=
16334finish_cmds=
16335finish_eval=
16336shlibpath_var=
16337shlibpath_overrides_runpath=unknown
16338version_type=none
16339dynamic_linker="$host_os ld.so"
16340sys_lib_dlsearch_path_spec="/lib /usr/lib"
16341if test "$GCC" = yes; then
16342 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16343 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16344 # if the path contains ";" then we assume it to be the separator
16345 # otherwise default to the standard path separator (i.e. ":") - it is
16346 # assumed that no part of a normal pathname contains ";" but that should
16347 # okay in the real world where ";" in dirpaths is itself problematic.
16348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16349 else
16350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16351 fi
16352else
16353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16354fi
16355need_lib_prefix=unknown
16356hardcode_into_libs=no
16357
16358# when you set need_version to no, make sure it does not cause -set_version
16359# flags to be left without arguments
16360need_version=unknown
16361
16362case $host_os in
16363aix3*)
16364 version_type=linux
16365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16366 shlibpath_var=LIBPATH
16367
16368 # AIX 3 has no versioning support, so we append a major version to the name.
16369 soname_spec='${libname}${release}${shared_ext}$major'
16370 ;;
16371
16372aix4* | aix5*)
16373 version_type=linux
16374 need_lib_prefix=no
16375 need_version=no
16376 hardcode_into_libs=yes
16377 if test "$host_cpu" = ia64; then
16378 # AIX 5 supports IA64
16379 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 else
16382 # With GCC up to 2.95.x, collect2 would create an import file
16383 # for dependence libraries. The import file would start with
16384 # the line `#! .'. This would cause the generated library to
16385 # depend on `.', always an invalid library. This was fixed in
16386 # development snapshots of GCC prior to 3.0.
16387 case $host_os in
16388 aix4 | aix4.[01] | aix4.[01].*)
16389 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16390 echo ' yes '
16391 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16392 :
16393 else
16394 can_build_shared=no
16395 fi
16396 ;;
16397 esac
16398 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16399 # soname into executable. Probably we can add versioning support to
16400 # collect2, so additional links can be useful in future.
16401 if test "$aix_use_runtimelinking" = yes; then
16402 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16403 # instead of lib<name>.a to let people know that these are not
16404 # typical AIX shared libraries.
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406 else
16407 # We preserve .a as extension for shared libraries through AIX4.2
16408 # and later when we are not doing run time linking.
16409 library_names_spec='${libname}${release}.a $libname.a'
16410 soname_spec='${libname}${release}${shared_ext}$major'
16411 fi
16412 shlibpath_var=LIBPATH
16413 fi
16414 ;;
16415
16416amigaos*)
16417 library_names_spec='$libname.ixlibrary $libname.a'
16418 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16419 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'
16420 ;;
16421
16422beos*)
16423 library_names_spec='${libname}${shared_ext}'
16424 dynamic_linker="$host_os ld.so"
16425 shlibpath_var=LIBRARY_PATH
16426 ;;
16427
16428bsdi4*)
16429 version_type=linux
16430 need_version=no
16431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432 soname_spec='${libname}${release}${shared_ext}$major'
16433 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16434 shlibpath_var=LD_LIBRARY_PATH
16435 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16436 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16437 # the default ld.so.conf also contains /usr/contrib/lib and
16438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16439 # libtool to hard-code these into programs
16440 ;;
16441
16442cygwin* | mingw* | pw32*)
16443 version_type=windows
16444 shrext=".dll"
16445 need_version=no
16446 need_lib_prefix=no
16447
16448 case $GCC,$host_os in
16449 yes,cygwin* | yes,mingw* | yes,pw32*)
16450 library_names_spec='$libname.dll.a'
16451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16452 postinstall_cmds='base_file=`basename \${file}`~
16453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16454 dldir=$destdir/`dirname \$dlpath`~
16455 test -d \$dldir || mkdir -p \$dldir~
16456 $install_prog $dir/$dlname \$dldir/$dlname'
16457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16458 dlpath=$dir/\$dldll~
16459 $rm \$dlpath'
16460 shlibpath_overrides_runpath=yes
16461
16462 case $host_os in
16463 cygwin*)
16464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16465 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16466 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16467 ;;
16468 mingw*)
16469 # MinGW DLLs use traditional 'lib' prefix
16470 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16472 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16473 # It is most probably a Windows format PATH printed by
16474 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16475 # path with ; separators, and with drive letters. We can handle the
16476 # drive letters (cygwin fileutils understands them), so leave them,
16477 # especially as we might pass files found there to a mingw objdump,
16478 # which wouldn't understand a cygwinified path. Ahh.
16479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16480 else
16481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16482 fi
16483 ;;
16484 pw32*)
16485 # pw32 DLLs use 'pw' prefix rather than 'lib'
16486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16487 ;;
16488 esac
16489 ;;
16490
16491 *)
16492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16493 ;;
16494 esac
16495 dynamic_linker='Win32 ld.exe'
16496 # FIXME: first we should search . and the directory the executable is in
16497 shlibpath_var=PATH
16498 ;;
16499
16500darwin* | rhapsody*)
16501 dynamic_linker="$host_os dyld"
16502 version_type=darwin
16503 need_lib_prefix=no
16504 need_version=no
16505 # FIXME: Relying on posixy $() will cause problems for
16506 # cross-compilation, but unfortunately the echo tests do not
16507 # yet detect zsh echo's removal of \ escapes.
16508 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16509 soname_spec='${libname}${release}${major}$shared_ext'
16510 shlibpath_overrides_runpath=yes
16511 shlibpath_var=DYLD_LIBRARY_PATH
16512 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16513 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16514 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16515 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"`
16516 fi
16517 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16518 ;;
16519
16520dgux*)
16521 version_type=linux
16522 need_lib_prefix=no
16523 need_version=no
16524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16525 soname_spec='${libname}${release}${shared_ext}$major'
16526 shlibpath_var=LD_LIBRARY_PATH
16527 ;;
16528
16529freebsd1*)
16530 dynamic_linker=no
16531 ;;
16532
16533freebsd*)
16534 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16535 version_type=freebsd-$objformat
16536 case $version_type in
16537 freebsd-elf*)
16538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16539 need_version=no
16540 need_lib_prefix=no
16541 ;;
16542 freebsd-*)
16543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16544 need_version=yes
16545 ;;
16546 esac
16547 shlibpath_var=LD_LIBRARY_PATH
16548 case $host_os in
16549 freebsd2*)
16550 shlibpath_overrides_runpath=yes
16551 ;;
16552 freebsd3.01* | freebsdelf3.01*)
16553 shlibpath_overrides_runpath=yes
16554 hardcode_into_libs=yes
16555 ;;
16556 *) # from 3.2 on
16557 shlibpath_overrides_runpath=no
16558 hardcode_into_libs=yes
16559 ;;
16560 esac
16561 ;;
16562
16563gnu*)
16564 version_type=linux
16565 need_lib_prefix=no
16566 need_version=no
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 shlibpath_var=LD_LIBRARY_PATH
16570 hardcode_into_libs=yes
16571 ;;
16572
16573hpux9* | hpux10* | hpux11*)
16574 # Give a soname corresponding to the major version so that dld.sl refuses to
16575 # link against other versions.
16576 version_type=sunos
16577 need_lib_prefix=no
16578 need_version=no
16579 case "$host_cpu" in
16580 ia64*)
16581 shrext='.so'
16582 hardcode_into_libs=yes
16583 dynamic_linker="$host_os dld.so"
16584 shlibpath_var=LD_LIBRARY_PATH
16585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 if test "X$HPUX_IA64_MODE" = X32; then
16589 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16590 else
16591 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16592 fi
16593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16594 ;;
16595 hppa*64*)
16596 shrext='.sl'
16597 hardcode_into_libs=yes
16598 dynamic_linker="$host_os dld.sl"
16599 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16602 soname_spec='${libname}${release}${shared_ext}$major'
16603 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16605 ;;
16606 *)
16607 shrext='.sl'
16608 dynamic_linker="$host_os dld.sl"
16609 shlibpath_var=SHLIB_PATH
16610 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16612 soname_spec='${libname}${release}${shared_ext}$major'
16613 ;;
16614 esac
16615 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16616 postinstall_cmds='chmod 555 $lib'
16617 ;;
16618
16619irix5* | irix6* | nonstopux*)
16620 case $host_os in
16621 nonstopux*) version_type=nonstopux ;;
16622 *)
16623 if test "$lt_cv_prog_gnu_ld" = yes; then
16624 version_type=linux
16625 else
16626 version_type=irix
16627 fi ;;
16628 esac
16629 need_lib_prefix=no
16630 need_version=no
16631 soname_spec='${libname}${release}${shared_ext}$major'
16632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16633 case $host_os in
16634 irix5* | nonstopux*)
16635 libsuff= shlibsuff=
16636 ;;
16637 *)
16638 case $LD in # libtool.m4 will add one of these switches to LD
16639 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16640 libsuff= shlibsuff= libmagic=32-bit;;
16641 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16642 libsuff=32 shlibsuff=N32 libmagic=N32;;
16643 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16644 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16645 *) libsuff= shlibsuff= libmagic=never-match;;
16646 esac
16647 ;;
16648 esac
16649 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16650 shlibpath_overrides_runpath=no
16651 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16652 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16653 hardcode_into_libs=yes
16654 ;;
16655
16656# No shared lib support for Linux oldld, aout, or coff.
16657linux*oldld* | linux*aout* | linux*coff*)
16658 dynamic_linker=no
16659 ;;
16660
16661# This must be Linux ELF.
16662linux*)
16663 version_type=linux
16664 need_lib_prefix=no
16665 need_version=no
16666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16667 soname_spec='${libname}${release}${shared_ext}$major'
16668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16669 shlibpath_var=LD_LIBRARY_PATH
16670 shlibpath_overrides_runpath=no
16671 # This implies no fast_install, which is unacceptable.
16672 # Some rework will be needed to allow for fast_install
16673 # before this can be enabled.
16674 hardcode_into_libs=yes
16675
16676 # We used to test for /lib/ld.so.1 and disable shared libraries on
16677 # powerpc, because MkLinux only supported shared libraries with the
16678 # GNU dynamic linker. Since this was broken with cross compilers,
16679 # most powerpc-linux boxes support dynamic linking these days and
16680 # people can always --disable-shared, the test was removed, and we
16681 # assume the GNU/Linux dynamic linker is in use.
16682 dynamic_linker='GNU/Linux ld.so'
16683 ;;
16684
16685netbsd*)
16686 version_type=sunos
16687 need_lib_prefix=no
16688 need_version=no
16689 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16692 dynamic_linker='NetBSD (a.out) ld.so'
16693 else
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16695 soname_spec='${libname}${release}${shared_ext}$major'
16696 dynamic_linker='NetBSD ld.elf_so'
16697 fi
16698 shlibpath_var=LD_LIBRARY_PATH
16699 shlibpath_overrides_runpath=yes
16700 hardcode_into_libs=yes
16701 ;;
16702
16703newsos6)
16704 version_type=linux
16705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16706 shlibpath_var=LD_LIBRARY_PATH
16707 shlibpath_overrides_runpath=yes
16708 ;;
16709
16710nto-qnx)
16711 version_type=linux
16712 need_lib_prefix=no
16713 need_version=no
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715 soname_spec='${libname}${release}${shared_ext}$major'
16716 shlibpath_var=LD_LIBRARY_PATH
16717 shlibpath_overrides_runpath=yes
16718 ;;
16719
16720openbsd*)
16721 version_type=sunos
16722 need_lib_prefix=no
16723 need_version=no
16724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16726 shlibpath_var=LD_LIBRARY_PATH
16727 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16728 case $host_os in
16729 openbsd2.[89] | openbsd2.[89].*)
16730 shlibpath_overrides_runpath=no
16731 ;;
16732 *)
16733 shlibpath_overrides_runpath=yes
16734 ;;
16735 esac
16736 else
16737 shlibpath_overrides_runpath=yes
16738 fi
16739 ;;
16740
16741os2*)
16742 libname_spec='$name'
16743 shrext=".dll"
16744 need_lib_prefix=no
16745 library_names_spec='$libname${shared_ext} $libname.a'
16746 dynamic_linker='OS/2 ld.exe'
16747 shlibpath_var=LIBPATH
16748 ;;
16749
16750osf3* | osf4* | osf5*)
16751 version_type=osf
16752 need_lib_prefix=no
16753 need_version=no
16754 soname_spec='${libname}${release}${shared_ext}$major'
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756 shlibpath_var=LD_LIBRARY_PATH
16757 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16758 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16759 ;;
16760
16761sco3.2v5*)
16762 version_type=osf
16763 soname_spec='${libname}${release}${shared_ext}$major'
16764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16765 shlibpath_var=LD_LIBRARY_PATH
16766 ;;
16767
16768solaris*)
16769 version_type=linux
16770 need_lib_prefix=no
16771 need_version=no
16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773 soname_spec='${libname}${release}${shared_ext}$major'
16774 shlibpath_var=LD_LIBRARY_PATH
16775 shlibpath_overrides_runpath=yes
16776 hardcode_into_libs=yes
16777 # ldd complains unless libraries are executable
16778 postinstall_cmds='chmod +x $lib'
16779 ;;
16780
16781sunos4*)
16782 version_type=sunos
16783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16784 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16785 shlibpath_var=LD_LIBRARY_PATH
16786 shlibpath_overrides_runpath=yes
16787 if test "$with_gnu_ld" = yes; then
16788 need_lib_prefix=no
16789 fi
16790 need_version=yes
16791 ;;
16792
16793sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16794 version_type=linux
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16796 soname_spec='${libname}${release}${shared_ext}$major'
16797 shlibpath_var=LD_LIBRARY_PATH
16798 case $host_vendor in
16799 sni)
16800 shlibpath_overrides_runpath=no
16801 need_lib_prefix=no
16802 export_dynamic_flag_spec='${wl}-Blargedynsym'
16803 runpath_var=LD_RUN_PATH
16804 ;;
16805 siemens)
16806 need_lib_prefix=no
16807 ;;
16808 motorola)
16809 need_lib_prefix=no
16810 need_version=no
16811 shlibpath_overrides_runpath=no
16812 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16813 ;;
16814 esac
16815 ;;
16816
16817sysv4*MP*)
16818 if test -d /usr/nec ;then
16819 version_type=linux
16820 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16821 soname_spec='$libname${shared_ext}.$major'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 fi
16824 ;;
16825
16826uts4*)
16827 version_type=linux
16828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16829 soname_spec='${libname}${release}${shared_ext}$major'
16830 shlibpath_var=LD_LIBRARY_PATH
16831 ;;
16832
16833*)
16834 dynamic_linker=no
16835 ;;
16836esac
16837echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16838echo "${ECHO_T}$dynamic_linker" >&6
16839test "$dynamic_linker" = no && can_build_shared=no
16840
16841if test "x$enable_dlopen" != xyes; then
16842 enable_dlopen=unknown
16843 enable_dlopen_self=unknown
16844 enable_dlopen_self_static=unknown
16845else
16846 lt_cv_dlopen=no
16847 lt_cv_dlopen_libs=
16848
16849 case $host_os in
16850 beos*)
16851 lt_cv_dlopen="load_add_on"
16852 lt_cv_dlopen_libs=
16853 lt_cv_dlopen_self=yes
16854 ;;
16855
16856 mingw* | pw32*)
16857 lt_cv_dlopen="LoadLibrary"
16858 lt_cv_dlopen_libs=
16859 ;;
16860
16861 cygwin*)
16862 lt_cv_dlopen="dlopen"
16863 lt_cv_dlopen_libs=
16864 ;;
16865
16866 darwin*)
16867 # if libdl is installed we need to link against it
16868 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16869echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16870if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16872else
16873 ac_check_lib_save_LIBS=$LIBS
16874LIBS="-ldl $LIBS"
16875cat >conftest.$ac_ext <<_ACEOF
16876#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016877/* confdefs.h. */
16878_ACEOF
16879cat confdefs.h >>conftest.$ac_ext
16880cat >>conftest.$ac_ext <<_ACEOF
16881/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016882
16883/* Override any gcc2 internal prototype to avoid an error. */
16884#ifdef __cplusplus
16885extern "C"
16886#endif
16887/* We use char because int might match the return type of a gcc2
16888 builtin and then its argument prototype would still apply. */
16889char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016890int
16891main ()
16892{
16893dlopen ();
16894 ;
16895 return 0;
16896}
16897_ACEOF
16898rm -f conftest.$ac_objext conftest$ac_exeext
16899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16900 (eval $ac_link) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
16904 { ac_try='test -s conftest$ac_exeext'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16907 ac_status=$?
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16910 ac_cv_lib_dl_dlopen=yes
16911else
16912 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016913sed 's/^/| /' conftest.$ac_ext >&5
16914
John Criswell47fdd832003-07-14 16:52:07 +000016915ac_cv_lib_dl_dlopen=no
16916fi
16917rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16918LIBS=$ac_check_lib_save_LIBS
16919fi
16920echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16921echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16922if test $ac_cv_lib_dl_dlopen = yes; then
16923 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16924else
16925
16926 lt_cv_dlopen="dyld"
16927 lt_cv_dlopen_libs=
16928 lt_cv_dlopen_self=yes
16929
16930fi
16931
16932 ;;
16933
16934 *)
16935 echo "$as_me:$LINENO: checking for shl_load" >&5
16936echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16937if test "${ac_cv_func_shl_load+set}" = set; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16939else
16940 cat >conftest.$ac_ext <<_ACEOF
16941#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016942/* confdefs.h. */
16943_ACEOF
16944cat confdefs.h >>conftest.$ac_ext
16945cat >>conftest.$ac_ext <<_ACEOF
16946/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016947/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016948 which can conflict with char shl_load (); below.
16949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16950 <limits.h> exists even on freestanding compilers. */
16951#ifdef __STDC__
16952# include <limits.h>
16953#else
16954# include <assert.h>
16955#endif
John Criswell47fdd832003-07-14 16:52:07 +000016956/* Override any gcc2 internal prototype to avoid an error. */
16957#ifdef __cplusplus
16958extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016959{
John Criswell47fdd832003-07-14 16:52:07 +000016960#endif
16961/* We use char because int might match the return type of a gcc2
16962 builtin and then its argument prototype would still apply. */
16963char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016964/* The GNU C library defines this for functions which it implements
16965 to always fail with ENOSYS. Some functions are actually named
16966 something starting with __ and the normal name is an alias. */
16967#if defined (__stub_shl_load) || defined (__stub___shl_load)
16968choke me
16969#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016970char (*f) () = shl_load;
16971#endif
16972#ifdef __cplusplus
16973}
John Criswell47fdd832003-07-14 16:52:07 +000016974#endif
16975
John Criswell0c38eaf2003-09-10 15:17:25 +000016976int
16977main ()
16978{
16979return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016980 ;
16981 return 0;
16982}
16983_ACEOF
16984rm -f conftest.$ac_objext conftest$ac_exeext
16985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16986 (eval $ac_link) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -s conftest$ac_exeext'
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16993 ac_status=$?
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_cv_func_shl_load=yes
16997else
16998 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016999sed 's/^/| /' conftest.$ac_ext >&5
17000
John Criswell47fdd832003-07-14 16:52:07 +000017001ac_cv_func_shl_load=no
17002fi
17003rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17004fi
17005echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17006echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17007if test $ac_cv_func_shl_load = yes; then
17008 lt_cv_dlopen="shl_load"
17009else
17010 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17011echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17012if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17014else
17015 ac_check_lib_save_LIBS=$LIBS
17016LIBS="-ldld $LIBS"
17017cat >conftest.$ac_ext <<_ACEOF
17018#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017019/* confdefs.h. */
17020_ACEOF
17021cat confdefs.h >>conftest.$ac_ext
17022cat >>conftest.$ac_ext <<_ACEOF
17023/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017024
17025/* Override any gcc2 internal prototype to avoid an error. */
17026#ifdef __cplusplus
17027extern "C"
17028#endif
17029/* We use char because int might match the return type of a gcc2
17030 builtin and then its argument prototype would still apply. */
17031char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017032int
17033main ()
17034{
17035shl_load ();
17036 ;
17037 return 0;
17038}
17039_ACEOF
17040rm -f conftest.$ac_objext conftest$ac_exeext
17041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17042 (eval $ac_link) 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } &&
17046 { ac_try='test -s conftest$ac_exeext'
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; }; then
17052 ac_cv_lib_dld_shl_load=yes
17053else
17054 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017055sed 's/^/| /' conftest.$ac_ext >&5
17056
John Criswell47fdd832003-07-14 16:52:07 +000017057ac_cv_lib_dld_shl_load=no
17058fi
17059rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17060LIBS=$ac_check_lib_save_LIBS
17061fi
17062echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17063echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17064if test $ac_cv_lib_dld_shl_load = yes; then
17065 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17066else
17067 echo "$as_me:$LINENO: checking for dlopen" >&5
17068echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17069if test "${ac_cv_func_dlopen+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17071else
17072 cat >conftest.$ac_ext <<_ACEOF
17073#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017074/* confdefs.h. */
17075_ACEOF
17076cat confdefs.h >>conftest.$ac_ext
17077cat >>conftest.$ac_ext <<_ACEOF
17078/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017079/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017080 which can conflict with char dlopen (); below.
17081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17082 <limits.h> exists even on freestanding compilers. */
17083#ifdef __STDC__
17084# include <limits.h>
17085#else
17086# include <assert.h>
17087#endif
John Criswell47fdd832003-07-14 16:52:07 +000017088/* Override any gcc2 internal prototype to avoid an error. */
17089#ifdef __cplusplus
17090extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017091{
John Criswell47fdd832003-07-14 16:52:07 +000017092#endif
17093/* We use char because int might match the return type of a gcc2
17094 builtin and then its argument prototype would still apply. */
17095char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017096/* The GNU C library defines this for functions which it implements
17097 to always fail with ENOSYS. Some functions are actually named
17098 something starting with __ and the normal name is an alias. */
17099#if defined (__stub_dlopen) || defined (__stub___dlopen)
17100choke me
17101#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017102char (*f) () = dlopen;
17103#endif
17104#ifdef __cplusplus
17105}
John Criswell47fdd832003-07-14 16:52:07 +000017106#endif
17107
John Criswell0c38eaf2003-09-10 15:17:25 +000017108int
17109main ()
17110{
17111return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017112 ;
17113 return 0;
17114}
17115_ACEOF
17116rm -f conftest.$ac_objext conftest$ac_exeext
17117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17118 (eval $ac_link) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -s conftest$ac_exeext'
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
17128 ac_cv_func_dlopen=yes
17129else
17130 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017131sed 's/^/| /' conftest.$ac_ext >&5
17132
John Criswell47fdd832003-07-14 16:52:07 +000017133ac_cv_func_dlopen=no
17134fi
17135rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17136fi
17137echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17138echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17139if test $ac_cv_func_dlopen = yes; then
17140 lt_cv_dlopen="dlopen"
17141else
17142 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17143echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17144if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17145 echo $ECHO_N "(cached) $ECHO_C" >&6
17146else
17147 ac_check_lib_save_LIBS=$LIBS
17148LIBS="-ldl $LIBS"
17149cat >conftest.$ac_ext <<_ACEOF
17150#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017151/* confdefs.h. */
17152_ACEOF
17153cat confdefs.h >>conftest.$ac_ext
17154cat >>conftest.$ac_ext <<_ACEOF
17155/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017156
17157/* Override any gcc2 internal prototype to avoid an error. */
17158#ifdef __cplusplus
17159extern "C"
17160#endif
17161/* We use char because int might match the return type of a gcc2
17162 builtin and then its argument prototype would still apply. */
17163char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017164int
17165main ()
17166{
17167dlopen ();
17168 ;
17169 return 0;
17170}
17171_ACEOF
17172rm -f conftest.$ac_objext conftest$ac_exeext
17173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17174 (eval $ac_link) 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } &&
17178 { ac_try='test -s conftest$ac_exeext'
17179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
17184 ac_cv_lib_dl_dlopen=yes
17185else
17186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017187sed 's/^/| /' conftest.$ac_ext >&5
17188
John Criswell47fdd832003-07-14 16:52:07 +000017189ac_cv_lib_dl_dlopen=no
17190fi
17191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17192LIBS=$ac_check_lib_save_LIBS
17193fi
17194echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17195echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17196if test $ac_cv_lib_dl_dlopen = yes; then
17197 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17198else
17199 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17200echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17201if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17202 echo $ECHO_N "(cached) $ECHO_C" >&6
17203else
17204 ac_check_lib_save_LIBS=$LIBS
17205LIBS="-lsvld $LIBS"
17206cat >conftest.$ac_ext <<_ACEOF
17207#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017208/* confdefs.h. */
17209_ACEOF
17210cat confdefs.h >>conftest.$ac_ext
17211cat >>conftest.$ac_ext <<_ACEOF
17212/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017213
17214/* Override any gcc2 internal prototype to avoid an error. */
17215#ifdef __cplusplus
17216extern "C"
17217#endif
17218/* We use char because int might match the return type of a gcc2
17219 builtin and then its argument prototype would still apply. */
17220char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017221int
17222main ()
17223{
17224dlopen ();
17225 ;
17226 return 0;
17227}
17228_ACEOF
17229rm -f conftest.$ac_objext conftest$ac_exeext
17230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17231 (eval $ac_link) 2>&5
17232 ac_status=$?
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } &&
17235 { ac_try='test -s conftest$ac_exeext'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 ac_cv_lib_svld_dlopen=yes
17242else
17243 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017244sed 's/^/| /' conftest.$ac_ext >&5
17245
John Criswell47fdd832003-07-14 16:52:07 +000017246ac_cv_lib_svld_dlopen=no
17247fi
17248rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17249LIBS=$ac_check_lib_save_LIBS
17250fi
17251echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17252echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17253if test $ac_cv_lib_svld_dlopen = yes; then
17254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17255else
17256 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17257echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17258if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17260else
17261 ac_check_lib_save_LIBS=$LIBS
17262LIBS="-ldld $LIBS"
17263cat >conftest.$ac_ext <<_ACEOF
17264#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017265/* confdefs.h. */
17266_ACEOF
17267cat confdefs.h >>conftest.$ac_ext
17268cat >>conftest.$ac_ext <<_ACEOF
17269/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017270
17271/* Override any gcc2 internal prototype to avoid an error. */
17272#ifdef __cplusplus
17273extern "C"
17274#endif
17275/* We use char because int might match the return type of a gcc2
17276 builtin and then its argument prototype would still apply. */
17277char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017278int
17279main ()
17280{
17281dld_link ();
17282 ;
17283 return 0;
17284}
17285_ACEOF
17286rm -f conftest.$ac_objext conftest$ac_exeext
17287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17288 (eval $ac_link) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } &&
17292 { ac_try='test -s conftest$ac_exeext'
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17295 ac_status=$?
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; }; then
17298 ac_cv_lib_dld_dld_link=yes
17299else
17300 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017301sed 's/^/| /' conftest.$ac_ext >&5
17302
John Criswell47fdd832003-07-14 16:52:07 +000017303ac_cv_lib_dld_dld_link=no
17304fi
17305rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17306LIBS=$ac_check_lib_save_LIBS
17307fi
17308echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17309echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17310if test $ac_cv_lib_dld_dld_link = yes; then
17311 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17312fi
17313
17314
17315fi
17316
17317
17318fi
17319
17320
17321fi
17322
17323
17324fi
17325
17326
17327fi
17328
17329 ;;
17330 esac
17331
17332 if test "x$lt_cv_dlopen" != xno; then
17333 enable_dlopen=yes
17334 else
17335 enable_dlopen=no
17336 fi
17337
17338 case $lt_cv_dlopen in
17339 dlopen)
17340 save_CPPFLAGS="$CPPFLAGS"
17341 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17342
17343 save_LDFLAGS="$LDFLAGS"
17344 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17345
17346 save_LIBS="$LIBS"
17347 LIBS="$lt_cv_dlopen_libs $LIBS"
17348
17349 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17350echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17351if test "${lt_cv_dlopen_self+set}" = set; then
17352 echo $ECHO_N "(cached) $ECHO_C" >&6
17353else
17354 if test "$cross_compiling" = yes; then :
17355 lt_cv_dlopen_self=cross
17356else
17357 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17358 lt_status=$lt_dlunknown
17359 cat > conftest.$ac_ext <<EOF
John Criswell987e49c2003-10-10 01:11:54 +000017360#line 17360 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017361#include "confdefs.h"
17362
17363#if HAVE_DLFCN_H
17364#include <dlfcn.h>
17365#endif
17366
17367#include <stdio.h>
17368
17369#ifdef RTLD_GLOBAL
17370# define LT_DLGLOBAL RTLD_GLOBAL
17371#else
17372# ifdef DL_GLOBAL
17373# define LT_DLGLOBAL DL_GLOBAL
17374# else
17375# define LT_DLGLOBAL 0
17376# endif
17377#endif
17378
17379/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17380 find out it does not work in some platform. */
17381#ifndef LT_DLLAZY_OR_NOW
17382# ifdef RTLD_LAZY
17383# define LT_DLLAZY_OR_NOW RTLD_LAZY
17384# else
17385# ifdef DL_LAZY
17386# define LT_DLLAZY_OR_NOW DL_LAZY
17387# else
17388# ifdef RTLD_NOW
17389# define LT_DLLAZY_OR_NOW RTLD_NOW
17390# else
17391# ifdef DL_NOW
17392# define LT_DLLAZY_OR_NOW DL_NOW
17393# else
17394# define LT_DLLAZY_OR_NOW 0
17395# endif
17396# endif
17397# endif
17398# endif
17399#endif
17400
17401#ifdef __cplusplus
17402extern "C" void exit (int);
17403#endif
17404
17405void fnord() { int i=42;}
17406int main ()
17407{
17408 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17409 int status = $lt_dlunknown;
17410
17411 if (self)
17412 {
17413 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17414 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17415 /* dlclose (self); */
17416 }
17417
17418 exit (status);
17419}
17420EOF
17421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17422 (eval $ac_link) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17426 (./conftest; exit; ) 2>/dev/null
17427 lt_status=$?
17428 case x$lt_status in
17429 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17430 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17431 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17432 esac
17433 else :
17434 # compilation failed
17435 lt_cv_dlopen_self=no
17436 fi
17437fi
17438rm -fr conftest*
17439
17440
17441fi
17442echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17443echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17444
17445 if test "x$lt_cv_dlopen_self" = xyes; then
17446 LDFLAGS="$LDFLAGS $link_static_flag"
17447 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17448echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17449if test "${lt_cv_dlopen_self_static+set}" = set; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17451else
17452 if test "$cross_compiling" = yes; then :
17453 lt_cv_dlopen_self_static=cross
17454else
17455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17456 lt_status=$lt_dlunknown
17457 cat > conftest.$ac_ext <<EOF
John Criswell987e49c2003-10-10 01:11:54 +000017458#line 17458 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017459#include "confdefs.h"
17460
17461#if HAVE_DLFCN_H
17462#include <dlfcn.h>
17463#endif
17464
17465#include <stdio.h>
17466
17467#ifdef RTLD_GLOBAL
17468# define LT_DLGLOBAL RTLD_GLOBAL
17469#else
17470# ifdef DL_GLOBAL
17471# define LT_DLGLOBAL DL_GLOBAL
17472# else
17473# define LT_DLGLOBAL 0
17474# endif
17475#endif
17476
17477/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17478 find out it does not work in some platform. */
17479#ifndef LT_DLLAZY_OR_NOW
17480# ifdef RTLD_LAZY
17481# define LT_DLLAZY_OR_NOW RTLD_LAZY
17482# else
17483# ifdef DL_LAZY
17484# define LT_DLLAZY_OR_NOW DL_LAZY
17485# else
17486# ifdef RTLD_NOW
17487# define LT_DLLAZY_OR_NOW RTLD_NOW
17488# else
17489# ifdef DL_NOW
17490# define LT_DLLAZY_OR_NOW DL_NOW
17491# else
17492# define LT_DLLAZY_OR_NOW 0
17493# endif
17494# endif
17495# endif
17496# endif
17497#endif
17498
17499#ifdef __cplusplus
17500extern "C" void exit (int);
17501#endif
17502
17503void fnord() { int i=42;}
17504int main ()
17505{
17506 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17507 int status = $lt_dlunknown;
17508
17509 if (self)
17510 {
17511 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17512 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17513 /* dlclose (self); */
17514 }
17515
17516 exit (status);
17517}
17518EOF
17519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17520 (eval $ac_link) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17524 (./conftest; exit; ) 2>/dev/null
17525 lt_status=$?
17526 case x$lt_status in
17527 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17528 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17529 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17530 esac
17531 else :
17532 # compilation failed
17533 lt_cv_dlopen_self_static=no
17534 fi
17535fi
17536rm -fr conftest*
17537
17538
17539fi
17540echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17541echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17542 fi
17543
17544 CPPFLAGS="$save_CPPFLAGS"
17545 LDFLAGS="$save_LDFLAGS"
17546 LIBS="$save_LIBS"
17547 ;;
17548 esac
17549
17550 case $lt_cv_dlopen_self in
17551 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17552 *) enable_dlopen_self=unknown ;;
17553 esac
17554
17555 case $lt_cv_dlopen_self_static in
17556 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17557 *) enable_dlopen_self_static=unknown ;;
17558 esac
17559fi
17560
17561
17562# The else clause should only fire when bootstrapping the
17563# libtool distribution, otherwise you forgot to ship ltmain.sh
17564# with your package, and you will get complaints that there are
17565# no rules to generate ltmain.sh.
17566if test -f "$ltmain"; then
17567 # See if we are running on zsh, and set the options which allow our commands through
17568 # without removal of \ escapes.
17569 if test -n "${ZSH_VERSION+set}" ; then
17570 setopt NO_GLOB_SUBST
17571 fi
17572 # Now quote all the things that may contain metacharacters while being
17573 # careful not to overquote the AC_SUBSTed values. We take copies of the
17574 # variables and quote the copies for generation of the libtool script.
17575 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17576 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17577 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17578 deplibs_check_method reload_flag reload_cmds need_locks \
17579 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17580 lt_cv_sys_global_symbol_to_c_name_address \
17581 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17582 old_postinstall_cmds old_postuninstall_cmds \
17583 compiler_GCJ \
17584 CC_GCJ \
17585 LD_GCJ \
17586 lt_prog_compiler_wl_GCJ \
17587 lt_prog_compiler_pic_GCJ \
17588 lt_prog_compiler_static_GCJ \
17589 lt_prog_compiler_no_builtin_flag_GCJ \
17590 export_dynamic_flag_spec_GCJ \
17591 thread_safe_flag_spec_GCJ \
17592 whole_archive_flag_spec_GCJ \
17593 enable_shared_with_static_runtimes_GCJ \
17594 old_archive_cmds_GCJ \
17595 old_archive_from_new_cmds_GCJ \
17596 predep_objects_GCJ \
17597 postdep_objects_GCJ \
17598 predeps_GCJ \
17599 postdeps_GCJ \
17600 compiler_lib_search_path_GCJ \
17601 archive_cmds_GCJ \
17602 archive_expsym_cmds_GCJ \
17603 postinstall_cmds_GCJ \
17604 postuninstall_cmds_GCJ \
17605 old_archive_from_expsyms_cmds_GCJ \
17606 allow_undefined_flag_GCJ \
17607 no_undefined_flag_GCJ \
17608 export_symbols_cmds_GCJ \
17609 hardcode_libdir_flag_spec_GCJ \
17610 hardcode_libdir_flag_spec_ld_GCJ \
17611 hardcode_libdir_separator_GCJ \
17612 hardcode_automatic_GCJ \
17613 module_cmds_GCJ \
17614 module_expsym_cmds_GCJ \
17615 lt_cv_prog_compiler_c_o_GCJ \
17616 exclude_expsyms_GCJ \
17617 include_expsyms_GCJ; do
17618
17619 case $var in
17620 old_archive_cmds_GCJ | \
17621 old_archive_from_new_cmds_GCJ | \
17622 archive_cmds_GCJ | \
17623 archive_expsym_cmds_GCJ | \
17624 module_cmds_GCJ | \
17625 module_expsym_cmds_GCJ | \
17626 old_archive_from_expsyms_cmds_GCJ | \
17627 export_symbols_cmds_GCJ | \
17628 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17629 postinstall_cmds | postuninstall_cmds | \
17630 old_postinstall_cmds | old_postuninstall_cmds | \
17631 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17632 # Double-quote double-evaled strings.
17633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17634 ;;
17635 *)
17636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17637 ;;
17638 esac
17639 done
17640
17641 case $lt_echo in
17642 *'\$0 --fallback-echo"')
17643 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17644 ;;
17645 esac
17646
17647cfgfile="$ofile"
17648
17649 cat <<__EOF__ >> "$cfgfile"
17650# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17651
17652# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17653
17654# Shell to use when invoking shell scripts.
17655SHELL=$lt_SHELL
17656
17657# Whether or not to build shared libraries.
17658build_libtool_libs=$enable_shared
17659
17660# Whether or not to build static libraries.
17661build_old_libs=$enable_static
17662
17663# Whether or not to add -lc for building shared libraries.
17664build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17665
17666# Whether or not to disallow shared libs when runtime libs are static
17667allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17668
17669# Whether or not to optimize for fast installation.
17670fast_install=$enable_fast_install
17671
17672# The host system.
17673host_alias=$host_alias
17674host=$host
17675
17676# An echo program that does not interpret backslashes.
17677echo=$lt_echo
17678
17679# The archiver.
17680AR=$lt_AR
17681AR_FLAGS=$lt_AR_FLAGS
17682
17683# A C compiler.
17684LTCC=$lt_LTCC
17685
17686# A language-specific compiler.
17687CC=$lt_compiler_GCJ
17688
17689# Is the compiler the GNU C compiler?
17690with_gcc=$GCC_GCJ
17691
17692# An ERE matcher.
17693EGREP=$lt_EGREP
17694
17695# The linker used to build libraries.
17696LD=$lt_LD_GCJ
17697
17698# Whether we need hard or soft links.
17699LN_S=$lt_LN_S
17700
17701# A BSD-compatible nm program.
17702NM=$lt_NM
17703
17704# A symbol stripping program
17705STRIP=$STRIP
17706
17707# Used to examine libraries when file_magic_cmd begins "file"
17708MAGIC_CMD=$MAGIC_CMD
17709
17710# Used on cygwin: DLL creation program.
17711DLLTOOL="$DLLTOOL"
17712
17713# Used on cygwin: object dumper.
17714OBJDUMP="$OBJDUMP"
17715
17716# Used on cygwin: assembler.
17717AS="$AS"
17718
17719# The name of the directory that contains temporary libtool files.
17720objdir=$objdir
17721
17722# How to create reloadable object files.
17723reload_flag=$lt_reload_flag
17724reload_cmds=$lt_reload_cmds
17725
17726# How to pass a linker flag through the compiler.
17727wl=$lt_lt_prog_compiler_wl_GCJ
17728
17729# Object file suffix (normally "o").
17730objext="$ac_objext"
17731
17732# Old archive suffix (normally "a").
17733libext="$libext"
17734
17735# Shared library suffix (normally ".so").
17736shrext='$shrext'
17737
17738# Executable file suffix (normally "").
17739exeext="$exeext"
17740
17741# Additional compiler flags for building library objects.
17742pic_flag=$lt_lt_prog_compiler_pic_GCJ
17743pic_mode=$pic_mode
17744
17745# What is the maximum length of a command?
17746max_cmd_len=$lt_cv_sys_max_cmd_len
17747
17748# Does compiler simultaneously support -c and -o options?
17749compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17750
17751# Must we lock files when doing compilation ?
17752need_locks=$lt_need_locks
17753
17754# Do we need the lib prefix for modules?
17755need_lib_prefix=$need_lib_prefix
17756
17757# Do we need a version for libraries?
17758need_version=$need_version
17759
17760# Whether dlopen is supported.
17761dlopen_support=$enable_dlopen
17762
17763# Whether dlopen of programs is supported.
17764dlopen_self=$enable_dlopen_self
17765
17766# Whether dlopen of statically linked programs is supported.
17767dlopen_self_static=$enable_dlopen_self_static
17768
17769# Compiler flag to prevent dynamic linking.
17770link_static_flag=$lt_lt_prog_compiler_static_GCJ
17771
17772# Compiler flag to turn off builtin functions.
17773no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17774
17775# Compiler flag to allow reflexive dlopens.
17776export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17777
17778# Compiler flag to generate shared objects directly from archives.
17779whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17780
17781# Compiler flag to generate thread-safe objects.
17782thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17783
17784# Library versioning type.
17785version_type=$version_type
17786
17787# Format of library name prefix.
17788libname_spec=$lt_libname_spec
17789
17790# List of archive names. First name is the real one, the rest are links.
17791# The last name is the one that the linker finds with -lNAME.
17792library_names_spec=$lt_library_names_spec
17793
17794# The coded name of the library, if different from the real name.
17795soname_spec=$lt_soname_spec
17796
17797# Commands used to build and install an old-style archive.
17798RANLIB=$lt_RANLIB
17799old_archive_cmds=$lt_old_archive_cmds_GCJ
17800old_postinstall_cmds=$lt_old_postinstall_cmds
17801old_postuninstall_cmds=$lt_old_postuninstall_cmds
17802
17803# Create an old-style archive from a shared archive.
17804old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17805
17806# Create a temporary old-style archive to link instead of a shared archive.
17807old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17808
17809# Commands used to build and install a shared archive.
17810archive_cmds=$lt_archive_cmds_GCJ
17811archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17812postinstall_cmds=$lt_postinstall_cmds
17813postuninstall_cmds=$lt_postuninstall_cmds
17814
17815# Commands used to build a loadable module (assumed same as above if empty)
17816module_cmds=$lt_module_cmds_GCJ
17817module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17818
17819# Commands to strip libraries.
17820old_striplib=$lt_old_striplib
17821striplib=$lt_striplib
17822
17823# Dependencies to place before the objects being linked to create a
17824# shared library.
17825predep_objects=$lt_predep_objects_GCJ
17826
17827# Dependencies to place after the objects being linked to create a
17828# shared library.
17829postdep_objects=$lt_postdep_objects_GCJ
17830
17831# Dependencies to place before the objects being linked to create a
17832# shared library.
17833predeps=$lt_predeps_GCJ
17834
17835# Dependencies to place after the objects being linked to create a
17836# shared library.
17837postdeps=$lt_postdeps_GCJ
17838
17839# The library search path used internally by the compiler when linking
17840# a shared library.
17841compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17842
17843# Method to check whether dependent libraries are shared objects.
17844deplibs_check_method=$lt_deplibs_check_method
17845
17846# Command to use when deplibs_check_method == file_magic.
17847file_magic_cmd=$lt_file_magic_cmd
17848
17849# Flag that allows shared libraries with undefined symbols to be built.
17850allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17851
17852# Flag that forces no undefined symbols.
17853no_undefined_flag=$lt_no_undefined_flag_GCJ
17854
17855# Commands used to finish a libtool library installation in a directory.
17856finish_cmds=$lt_finish_cmds
17857
17858# Same as above, but a single script fragment to be evaled but not shown.
17859finish_eval=$lt_finish_eval
17860
17861# Take the output of nm and produce a listing of raw symbols and C names.
17862global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17863
17864# Transform the output of nm in a proper C declaration
17865global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17866
17867# Transform the output of nm in a C name address pair
17868global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17869
17870# This is the shared library runtime path variable.
17871runpath_var=$runpath_var
17872
17873# This is the shared library path variable.
17874shlibpath_var=$shlibpath_var
17875
17876# Is shlibpath searched before the hard-coded library search path?
17877shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17878
17879# How to hardcode a shared library path into an executable.
17880hardcode_action=$hardcode_action_GCJ
17881
17882# Whether we should hardcode library paths into libraries.
17883hardcode_into_libs=$hardcode_into_libs
17884
17885# Flag to hardcode \$libdir into a binary during linking.
17886# This must work even if \$libdir does not exist.
17887hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17888
17889# If ld is used when linking, flag to hardcode \$libdir into
17890# a binary during linking. This must work even if \$libdir does
17891# not exist.
17892hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17893
17894# Whether we need a single -rpath flag with a separated argument.
17895hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17896
17897# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17898# resulting binary.
17899hardcode_direct=$hardcode_direct_GCJ
17900
17901# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17902# resulting binary.
17903hardcode_minus_L=$hardcode_minus_L_GCJ
17904
17905# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17906# the resulting binary.
17907hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17908
17909# Set to yes if building a shared library automatically hardcodes DIR into the library
17910# and all subsequent libraries and executables linked against it.
17911hardcode_automatic=$hardcode_automatic_GCJ
17912
17913# Variables whose values should be saved in libtool wrapper scripts and
17914# restored at relink time.
17915variables_saved_for_relink="$variables_saved_for_relink"
17916
17917# Whether libtool must link a program against all its dependency libraries.
17918link_all_deplibs=$link_all_deplibs_GCJ
17919
17920# Compile-time system search path for libraries
17921sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17922
17923# Run-time system search path for libraries
17924sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17925
17926# Fix the shell variable \$srcfile for the compiler.
17927fix_srcfile_path="$fix_srcfile_path_GCJ"
17928
17929# Set to yes if exported symbols are required.
17930always_export_symbols=$always_export_symbols_GCJ
17931
17932# The commands to list exported symbols.
17933export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17934
17935# The commands to extract the exported symbol list from a shared archive.
17936extract_expsyms_cmds=$lt_extract_expsyms_cmds
17937
17938# Symbols that should not be listed in the preloaded symbols.
17939exclude_expsyms=$lt_exclude_expsyms_GCJ
17940
17941# Symbols that must always be exported.
17942include_expsyms=$lt_include_expsyms_GCJ
17943
17944# ### END LIBTOOL TAG CONFIG: $tagname
17945
17946__EOF__
17947
17948
17949else
17950 # If there is no Makefile yet, we rely on a make rule to execute
17951 # `config.status --recheck' to rerun these tests and create the
17952 # libtool script then.
17953 test -f Makefile && make "$ltmain"
17954fi
17955
17956
17957ac_ext=c
17958ac_cpp='$CPP $CPPFLAGS'
17959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17961ac_compiler_gnu=$ac_cv_c_compiler_gnu
17962
17963CC="$lt_save_CC"
17964
17965 else
17966 tagname=""
17967 fi
17968 ;;
17969
17970 RC)
17971
17972
17973
17974# Source file extension for RC test sources.
17975ac_ext=rc
17976
17977# Object file extension for compiled RC test sources.
17978objext=o
17979objext_RC=$objext
17980
17981# Code to be used in simple compile tests
17982lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17983
17984# Code to be used in simple link tests
17985lt_simple_link_test_code="$lt_simple_compile_test_code"
17986
17987# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17988
17989# If no C compiler was specified, use CC.
17990LTCC=${LTCC-"$CC"}
17991
17992# Allow CC to be a program name with arguments.
17993compiler=$CC
17994
17995
17996# Allow CC to be a program name with arguments.
17997lt_save_CC="$CC"
17998CC=${RC-"windres"}
17999compiler=$CC
18000compiler_RC=$CC
18001lt_cv_prog_compiler_c_o_RC=yes
18002
18003# The else clause should only fire when bootstrapping the
18004# libtool distribution, otherwise you forgot to ship ltmain.sh
18005# with your package, and you will get complaints that there are
18006# no rules to generate ltmain.sh.
18007if test -f "$ltmain"; then
18008 # See if we are running on zsh, and set the options which allow our commands through
18009 # without removal of \ escapes.
18010 if test -n "${ZSH_VERSION+set}" ; then
18011 setopt NO_GLOB_SUBST
18012 fi
18013 # Now quote all the things that may contain metacharacters while being
18014 # careful not to overquote the AC_SUBSTed values. We take copies of the
18015 # variables and quote the copies for generation of the libtool script.
18016 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18017 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18018 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18019 deplibs_check_method reload_flag reload_cmds need_locks \
18020 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18021 lt_cv_sys_global_symbol_to_c_name_address \
18022 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18023 old_postinstall_cmds old_postuninstall_cmds \
18024 compiler_RC \
18025 CC_RC \
18026 LD_RC \
18027 lt_prog_compiler_wl_RC \
18028 lt_prog_compiler_pic_RC \
18029 lt_prog_compiler_static_RC \
18030 lt_prog_compiler_no_builtin_flag_RC \
18031 export_dynamic_flag_spec_RC \
18032 thread_safe_flag_spec_RC \
18033 whole_archive_flag_spec_RC \
18034 enable_shared_with_static_runtimes_RC \
18035 old_archive_cmds_RC \
18036 old_archive_from_new_cmds_RC \
18037 predep_objects_RC \
18038 postdep_objects_RC \
18039 predeps_RC \
18040 postdeps_RC \
18041 compiler_lib_search_path_RC \
18042 archive_cmds_RC \
18043 archive_expsym_cmds_RC \
18044 postinstall_cmds_RC \
18045 postuninstall_cmds_RC \
18046 old_archive_from_expsyms_cmds_RC \
18047 allow_undefined_flag_RC \
18048 no_undefined_flag_RC \
18049 export_symbols_cmds_RC \
18050 hardcode_libdir_flag_spec_RC \
18051 hardcode_libdir_flag_spec_ld_RC \
18052 hardcode_libdir_separator_RC \
18053 hardcode_automatic_RC \
18054 module_cmds_RC \
18055 module_expsym_cmds_RC \
18056 lt_cv_prog_compiler_c_o_RC \
18057 exclude_expsyms_RC \
18058 include_expsyms_RC; do
18059
18060 case $var in
18061 old_archive_cmds_RC | \
18062 old_archive_from_new_cmds_RC | \
18063 archive_cmds_RC | \
18064 archive_expsym_cmds_RC | \
18065 module_cmds_RC | \
18066 module_expsym_cmds_RC | \
18067 old_archive_from_expsyms_cmds_RC | \
18068 export_symbols_cmds_RC | \
18069 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18070 postinstall_cmds | postuninstall_cmds | \
18071 old_postinstall_cmds | old_postuninstall_cmds | \
18072 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18073 # Double-quote double-evaled strings.
18074 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18075 ;;
18076 *)
18077 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18078 ;;
18079 esac
18080 done
18081
18082 case $lt_echo in
18083 *'\$0 --fallback-echo"')
18084 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18085 ;;
18086 esac
18087
18088cfgfile="$ofile"
18089
18090 cat <<__EOF__ >> "$cfgfile"
18091# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18092
18093# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18094
18095# Shell to use when invoking shell scripts.
18096SHELL=$lt_SHELL
18097
18098# Whether or not to build shared libraries.
18099build_libtool_libs=$enable_shared
18100
18101# Whether or not to build static libraries.
18102build_old_libs=$enable_static
18103
18104# Whether or not to add -lc for building shared libraries.
18105build_libtool_need_lc=$archive_cmds_need_lc_RC
18106
18107# Whether or not to disallow shared libs when runtime libs are static
18108allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18109
18110# Whether or not to optimize for fast installation.
18111fast_install=$enable_fast_install
18112
18113# The host system.
18114host_alias=$host_alias
18115host=$host
18116
18117# An echo program that does not interpret backslashes.
18118echo=$lt_echo
18119
18120# The archiver.
18121AR=$lt_AR
18122AR_FLAGS=$lt_AR_FLAGS
18123
18124# A C compiler.
18125LTCC=$lt_LTCC
18126
18127# A language-specific compiler.
18128CC=$lt_compiler_RC
18129
18130# Is the compiler the GNU C compiler?
18131with_gcc=$GCC_RC
18132
18133# An ERE matcher.
18134EGREP=$lt_EGREP
18135
18136# The linker used to build libraries.
18137LD=$lt_LD_RC
18138
18139# Whether we need hard or soft links.
18140LN_S=$lt_LN_S
18141
18142# A BSD-compatible nm program.
18143NM=$lt_NM
18144
18145# A symbol stripping program
18146STRIP=$STRIP
18147
18148# Used to examine libraries when file_magic_cmd begins "file"
18149MAGIC_CMD=$MAGIC_CMD
18150
18151# Used on cygwin: DLL creation program.
18152DLLTOOL="$DLLTOOL"
18153
18154# Used on cygwin: object dumper.
18155OBJDUMP="$OBJDUMP"
18156
18157# Used on cygwin: assembler.
18158AS="$AS"
18159
18160# The name of the directory that contains temporary libtool files.
18161objdir=$objdir
18162
18163# How to create reloadable object files.
18164reload_flag=$lt_reload_flag
18165reload_cmds=$lt_reload_cmds
18166
18167# How to pass a linker flag through the compiler.
18168wl=$lt_lt_prog_compiler_wl_RC
18169
18170# Object file suffix (normally "o").
18171objext="$ac_objext"
18172
18173# Old archive suffix (normally "a").
18174libext="$libext"
18175
18176# Shared library suffix (normally ".so").
18177shrext='$shrext'
18178
18179# Executable file suffix (normally "").
18180exeext="$exeext"
18181
18182# Additional compiler flags for building library objects.
18183pic_flag=$lt_lt_prog_compiler_pic_RC
18184pic_mode=$pic_mode
18185
18186# What is the maximum length of a command?
18187max_cmd_len=$lt_cv_sys_max_cmd_len
18188
18189# Does compiler simultaneously support -c and -o options?
18190compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18191
18192# Must we lock files when doing compilation ?
18193need_locks=$lt_need_locks
18194
18195# Do we need the lib prefix for modules?
18196need_lib_prefix=$need_lib_prefix
18197
18198# Do we need a version for libraries?
18199need_version=$need_version
18200
18201# Whether dlopen is supported.
18202dlopen_support=$enable_dlopen
18203
18204# Whether dlopen of programs is supported.
18205dlopen_self=$enable_dlopen_self
18206
18207# Whether dlopen of statically linked programs is supported.
18208dlopen_self_static=$enable_dlopen_self_static
18209
18210# Compiler flag to prevent dynamic linking.
18211link_static_flag=$lt_lt_prog_compiler_static_RC
18212
18213# Compiler flag to turn off builtin functions.
18214no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18215
18216# Compiler flag to allow reflexive dlopens.
18217export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18218
18219# Compiler flag to generate shared objects directly from archives.
18220whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18221
18222# Compiler flag to generate thread-safe objects.
18223thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18224
18225# Library versioning type.
18226version_type=$version_type
18227
18228# Format of library name prefix.
18229libname_spec=$lt_libname_spec
18230
18231# List of archive names. First name is the real one, the rest are links.
18232# The last name is the one that the linker finds with -lNAME.
18233library_names_spec=$lt_library_names_spec
18234
18235# The coded name of the library, if different from the real name.
18236soname_spec=$lt_soname_spec
18237
18238# Commands used to build and install an old-style archive.
18239RANLIB=$lt_RANLIB
18240old_archive_cmds=$lt_old_archive_cmds_RC
18241old_postinstall_cmds=$lt_old_postinstall_cmds
18242old_postuninstall_cmds=$lt_old_postuninstall_cmds
18243
18244# Create an old-style archive from a shared archive.
18245old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18246
18247# Create a temporary old-style archive to link instead of a shared archive.
18248old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18249
18250# Commands used to build and install a shared archive.
18251archive_cmds=$lt_archive_cmds_RC
18252archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18253postinstall_cmds=$lt_postinstall_cmds
18254postuninstall_cmds=$lt_postuninstall_cmds
18255
18256# Commands used to build a loadable module (assumed same as above if empty)
18257module_cmds=$lt_module_cmds_RC
18258module_expsym_cmds=$lt_module_expsym_cmds_RC
18259
18260# Commands to strip libraries.
18261old_striplib=$lt_old_striplib
18262striplib=$lt_striplib
18263
18264# Dependencies to place before the objects being linked to create a
18265# shared library.
18266predep_objects=$lt_predep_objects_RC
18267
18268# Dependencies to place after the objects being linked to create a
18269# shared library.
18270postdep_objects=$lt_postdep_objects_RC
18271
18272# Dependencies to place before the objects being linked to create a
18273# shared library.
18274predeps=$lt_predeps_RC
18275
18276# Dependencies to place after the objects being linked to create a
18277# shared library.
18278postdeps=$lt_postdeps_RC
18279
18280# The library search path used internally by the compiler when linking
18281# a shared library.
18282compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18283
18284# Method to check whether dependent libraries are shared objects.
18285deplibs_check_method=$lt_deplibs_check_method
18286
18287# Command to use when deplibs_check_method == file_magic.
18288file_magic_cmd=$lt_file_magic_cmd
18289
18290# Flag that allows shared libraries with undefined symbols to be built.
18291allow_undefined_flag=$lt_allow_undefined_flag_RC
18292
18293# Flag that forces no undefined symbols.
18294no_undefined_flag=$lt_no_undefined_flag_RC
18295
18296# Commands used to finish a libtool library installation in a directory.
18297finish_cmds=$lt_finish_cmds
18298
18299# Same as above, but a single script fragment to be evaled but not shown.
18300finish_eval=$lt_finish_eval
18301
18302# Take the output of nm and produce a listing of raw symbols and C names.
18303global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18304
18305# Transform the output of nm in a proper C declaration
18306global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18307
18308# Transform the output of nm in a C name address pair
18309global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18310
18311# This is the shared library runtime path variable.
18312runpath_var=$runpath_var
18313
18314# This is the shared library path variable.
18315shlibpath_var=$shlibpath_var
18316
18317# Is shlibpath searched before the hard-coded library search path?
18318shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18319
18320# How to hardcode a shared library path into an executable.
18321hardcode_action=$hardcode_action_RC
18322
18323# Whether we should hardcode library paths into libraries.
18324hardcode_into_libs=$hardcode_into_libs
18325
18326# Flag to hardcode \$libdir into a binary during linking.
18327# This must work even if \$libdir does not exist.
18328hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18329
18330# If ld is used when linking, flag to hardcode \$libdir into
18331# a binary during linking. This must work even if \$libdir does
18332# not exist.
18333hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18334
18335# Whether we need a single -rpath flag with a separated argument.
18336hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18337
18338# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18339# resulting binary.
18340hardcode_direct=$hardcode_direct_RC
18341
18342# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18343# resulting binary.
18344hardcode_minus_L=$hardcode_minus_L_RC
18345
18346# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18347# the resulting binary.
18348hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18349
18350# Set to yes if building a shared library automatically hardcodes DIR into the library
18351# and all subsequent libraries and executables linked against it.
18352hardcode_automatic=$hardcode_automatic_RC
18353
18354# Variables whose values should be saved in libtool wrapper scripts and
18355# restored at relink time.
18356variables_saved_for_relink="$variables_saved_for_relink"
18357
18358# Whether libtool must link a program against all its dependency libraries.
18359link_all_deplibs=$link_all_deplibs_RC
18360
18361# Compile-time system search path for libraries
18362sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18363
18364# Run-time system search path for libraries
18365sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18366
18367# Fix the shell variable \$srcfile for the compiler.
18368fix_srcfile_path="$fix_srcfile_path_RC"
18369
18370# Set to yes if exported symbols are required.
18371always_export_symbols=$always_export_symbols_RC
18372
18373# The commands to list exported symbols.
18374export_symbols_cmds=$lt_export_symbols_cmds_RC
18375
18376# The commands to extract the exported symbol list from a shared archive.
18377extract_expsyms_cmds=$lt_extract_expsyms_cmds
18378
18379# Symbols that should not be listed in the preloaded symbols.
18380exclude_expsyms=$lt_exclude_expsyms_RC
18381
18382# Symbols that must always be exported.
18383include_expsyms=$lt_include_expsyms_RC
18384
18385# ### END LIBTOOL TAG CONFIG: $tagname
18386
18387__EOF__
18388
18389
18390else
18391 # If there is no Makefile yet, we rely on a make rule to execute
18392 # `config.status --recheck' to rerun these tests and create the
18393 # libtool script then.
18394 test -f Makefile && make "$ltmain"
18395fi
18396
18397
18398ac_ext=c
18399ac_cpp='$CPP $CPPFLAGS'
18400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18402ac_compiler_gnu=$ac_cv_c_compiler_gnu
18403
18404CC="$lt_save_CC"
18405
18406 ;;
18407
18408 *)
18409 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18410echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18411 { (exit 1); exit 1; }; }
18412 ;;
18413 esac
18414
18415 # Append the new tag name to the list of available tags.
18416 if test -n "$tagname" ; then
18417 available_tags="$available_tags $tagname"
18418 fi
18419 fi
18420 done
18421 IFS="$lt_save_ifs"
18422
18423 # Now substitute the updated list of available tags.
18424 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18425 mv "${ofile}T" "$ofile"
18426 chmod +x "$ofile"
18427 else
18428 rm -f "${ofile}T"
18429 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18430echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18431 { (exit 1); exit 1; }; }
18432 fi
18433fi
John Criswell7a73b802003-06-30 21:59:07 +000018434
18435
18436
18437# This can be used to rebuild libtool when needed
18438LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18439
18440# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018441LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018442
18443# Prevent multiple expansion
18444
18445
18446
John Criswell47fdd832003-07-14 16:52:07 +000018447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
John Criswellde00db22003-08-25 16:49:54 +000018465# Extract the first word of "pwd", so it can be a program name with args.
18466set dummy pwd; ac_word=$2
18467echo "$as_me:$LINENO: checking for $ac_word" >&5
18468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18469if test "${ac_cv_path_RPWD+set}" = set; then
18470 echo $ECHO_N "(cached) $ECHO_C" >&6
18471else
18472 case $RPWD in
18473 [\\/]* | ?:[\\/]*)
18474 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18475 ;;
18476 *)
18477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18478for as_dir in $PATH
18479do
18480 IFS=$as_save_IFS
18481 test -z "$as_dir" && as_dir=.
18482 for ac_exec_ext in '' $ac_executable_extensions; do
18483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18484 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18486 break 2
18487 fi
18488done
18489done
18490
John Criswell39827c82003-09-23 15:28:52 +000018491 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018492 ;;
18493esac
18494fi
18495RPWD=$ac_cv_path_RPWD
18496
18497if test -n "$RPWD"; then
18498 echo "$as_me:$LINENO: result: $RPWD" >&5
18499echo "${ECHO_T}$RPWD" >&6
18500else
18501 echo "$as_me:$LINENO: result: no" >&5
18502echo "${ECHO_T}no" >&6
18503fi
18504
John Criswell39827c82003-09-23 15:28:52 +000018505if test ${RPWD} = "false"
18506then
18507 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18508echo "$as_me: error: pwd required but not found" >&2;}
18509 { (exit 1); exit 1; }; }
18510fi
18511
John Criswell7a73b802003-06-30 21:59:07 +000018512# Extract the first word of "ar", so it can be a program name with args.
18513set dummy ar; ac_word=$2
18514echo "$as_me:$LINENO: checking for $ac_word" >&5
18515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18516if test "${ac_cv_path_AR+set}" = set; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18518else
18519 case $AR in
18520 [\\/]* | ?:[\\/]*)
18521 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18522 ;;
18523 *)
18524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18525for as_dir in $PATH
18526do
18527 IFS=$as_save_IFS
18528 test -z "$as_dir" && as_dir=.
18529 for ac_exec_ext in '' $ac_executable_extensions; do
18530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18531 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18533 break 2
18534 fi
18535done
18536done
18537
John Criswell39827c82003-09-23 15:28:52 +000018538 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018539 ;;
18540esac
18541fi
18542AR=$ac_cv_path_AR
18543
18544if test -n "$AR"; then
18545 echo "$as_me:$LINENO: result: $AR" >&5
18546echo "${ECHO_T}$AR" >&6
18547else
18548 echo "$as_me:$LINENO: result: no" >&5
18549echo "${ECHO_T}no" >&6
18550fi
18551
John Criswell39827c82003-09-23 15:28:52 +000018552if test ${AR} = "false"
18553then
18554 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18555echo "$as_me: error: ar required but not found" >&2;}
18556 { (exit 1); exit 1; }; }
18557fi
18558
John Criswell7a73b802003-06-30 21:59:07 +000018559# Extract the first word of "sed", so it can be a program name with args.
18560set dummy sed; ac_word=$2
18561echo "$as_me:$LINENO: checking for $ac_word" >&5
18562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18563if test "${ac_cv_path_SED+set}" = set; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18565else
18566 case $SED in
18567 [\\/]* | ?:[\\/]*)
18568 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18569 ;;
18570 *)
18571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18572for as_dir in $PATH
18573do
18574 IFS=$as_save_IFS
18575 test -z "$as_dir" && as_dir=.
18576 for ac_exec_ext in '' $ac_executable_extensions; do
18577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18578 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18580 break 2
18581 fi
18582done
18583done
18584
John Criswell39827c82003-09-23 15:28:52 +000018585 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018586 ;;
18587esac
18588fi
18589SED=$ac_cv_path_SED
18590
18591if test -n "$SED"; then
18592 echo "$as_me:$LINENO: result: $SED" >&5
18593echo "${ECHO_T}$SED" >&6
18594else
18595 echo "$as_me:$LINENO: result: no" >&5
18596echo "${ECHO_T}no" >&6
18597fi
18598
John Criswell39827c82003-09-23 15:28:52 +000018599if test ${SED} = "false"
18600then
18601 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18602echo "$as_me: error: sed required but not found" >&2;}
18603 { (exit 1); exit 1; }; }
18604fi
18605
John Criswell7a73b802003-06-30 21:59:07 +000018606# Extract the first word of "rm", so it can be a program name with args.
18607set dummy rm; ac_word=$2
18608echo "$as_me:$LINENO: checking for $ac_word" >&5
18609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18610if test "${ac_cv_path_RM+set}" = set; then
18611 echo $ECHO_N "(cached) $ECHO_C" >&6
18612else
18613 case $RM in
18614 [\\/]* | ?:[\\/]*)
18615 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18616 ;;
18617 *)
18618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18619for as_dir in $PATH
18620do
18621 IFS=$as_save_IFS
18622 test -z "$as_dir" && as_dir=.
18623 for ac_exec_ext in '' $ac_executable_extensions; do
18624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18625 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18627 break 2
18628 fi
18629done
18630done
18631
John Criswell39827c82003-09-23 15:28:52 +000018632 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018633 ;;
18634esac
18635fi
18636RM=$ac_cv_path_RM
18637
18638if test -n "$RM"; then
18639 echo "$as_me:$LINENO: result: $RM" >&5
18640echo "${ECHO_T}$RM" >&6
18641else
18642 echo "$as_me:$LINENO: result: no" >&5
18643echo "${ECHO_T}no" >&6
18644fi
18645
John Criswell39827c82003-09-23 15:28:52 +000018646if test ${RM} = "false"
18647then
18648 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18649echo "$as_me: error: rm required but not found" >&2;}
18650 { (exit 1); exit 1; }; }
18651fi
18652
John Criswell7a73b802003-06-30 21:59:07 +000018653# Extract the first word of "echo", so it can be a program name with args.
18654set dummy echo; ac_word=$2
18655echo "$as_me:$LINENO: checking for $ac_word" >&5
18656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18657if test "${ac_cv_path_ECHO+set}" = set; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18659else
18660 case $ECHO in
18661 [\\/]* | ?:[\\/]*)
18662 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18663 ;;
18664 *)
18665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18666for as_dir in $PATH
18667do
18668 IFS=$as_save_IFS
18669 test -z "$as_dir" && as_dir=.
18670 for ac_exec_ext in '' $ac_executable_extensions; do
18671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18672 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18674 break 2
18675 fi
18676done
18677done
18678
John Criswell39827c82003-09-23 15:28:52 +000018679 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018680 ;;
18681esac
18682fi
18683ECHO=$ac_cv_path_ECHO
18684
18685if test -n "$ECHO"; then
18686 echo "$as_me:$LINENO: result: $ECHO" >&5
18687echo "${ECHO_T}$ECHO" >&6
18688else
18689 echo "$as_me:$LINENO: result: no" >&5
18690echo "${ECHO_T}no" >&6
18691fi
18692
John Criswell39827c82003-09-23 15:28:52 +000018693if test ${ECHO} = "false"
18694then
18695 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18696echo "$as_me: error: echo required but not found" >&2;}
18697 { (exit 1); exit 1; }; }
18698fi
18699
John Criswell7a73b802003-06-30 21:59:07 +000018700# Extract the first word of "mkdir", so it can be a program name with args.
18701set dummy mkdir; ac_word=$2
18702echo "$as_me:$LINENO: checking for $ac_word" >&5
18703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18704if test "${ac_cv_path_MKDIR+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18706else
18707 case $MKDIR in
18708 [\\/]* | ?:[\\/]*)
18709 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18710 ;;
18711 *)
18712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18713for as_dir in $PATH
18714do
18715 IFS=$as_save_IFS
18716 test -z "$as_dir" && as_dir=.
18717 for ac_exec_ext in '' $ac_executable_extensions; do
18718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18719 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18721 break 2
18722 fi
18723done
18724done
18725
John Criswell39827c82003-09-23 15:28:52 +000018726 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018727 ;;
18728esac
18729fi
18730MKDIR=$ac_cv_path_MKDIR
18731
18732if test -n "$MKDIR"; then
18733 echo "$as_me:$LINENO: result: $MKDIR" >&5
18734echo "${ECHO_T}$MKDIR" >&6
18735else
18736 echo "$as_me:$LINENO: result: no" >&5
18737echo "${ECHO_T}no" >&6
18738fi
18739
John Criswell39827c82003-09-23 15:28:52 +000018740if test ${MKDIR} = "false"
18741then
18742 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18743echo "$as_me: error: mkdir required but not found" >&2;}
18744 { (exit 1); exit 1; }; }
18745fi
18746
John Criswell7a73b802003-06-30 21:59:07 +000018747# Extract the first word of "date", so it can be a program name with args.
18748set dummy date; ac_word=$2
18749echo "$as_me:$LINENO: checking for $ac_word" >&5
18750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18751if test "${ac_cv_path_DATE+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18753else
18754 case $DATE in
18755 [\\/]* | ?:[\\/]*)
18756 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18757 ;;
18758 *)
18759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18760for as_dir in $PATH
18761do
18762 IFS=$as_save_IFS
18763 test -z "$as_dir" && as_dir=.
18764 for ac_exec_ext in '' $ac_executable_extensions; do
18765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18766 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18768 break 2
18769 fi
18770done
18771done
18772
John Criswell39827c82003-09-23 15:28:52 +000018773 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018774 ;;
18775esac
18776fi
18777DATE=$ac_cv_path_DATE
18778
18779if test -n "$DATE"; then
18780 echo "$as_me:$LINENO: result: $DATE" >&5
18781echo "${ECHO_T}$DATE" >&6
18782else
18783 echo "$as_me:$LINENO: result: no" >&5
18784echo "${ECHO_T}no" >&6
18785fi
18786
John Criswell39827c82003-09-23 15:28:52 +000018787if test ${DATE} = "false"
18788then
18789 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18790echo "$as_me: error: date required but not found" >&2;}
18791 { (exit 1); exit 1; }; }
18792fi
18793
John Criswell7a73b802003-06-30 21:59:07 +000018794# Extract the first word of "mv", so it can be a program name with args.
18795set dummy mv; ac_word=$2
18796echo "$as_me:$LINENO: checking for $ac_word" >&5
18797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18798if test "${ac_cv_path_MV+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18800else
18801 case $MV in
18802 [\\/]* | ?:[\\/]*)
18803 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18804 ;;
18805 *)
18806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18807for as_dir in $PATH
18808do
18809 IFS=$as_save_IFS
18810 test -z "$as_dir" && as_dir=.
18811 for ac_exec_ext in '' $ac_executable_extensions; do
18812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18813 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18815 break 2
18816 fi
18817done
18818done
18819
John Criswell39827c82003-09-23 15:28:52 +000018820 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018821 ;;
18822esac
18823fi
18824MV=$ac_cv_path_MV
18825
18826if test -n "$MV"; then
18827 echo "$as_me:$LINENO: result: $MV" >&5
18828echo "${ECHO_T}$MV" >&6
18829else
18830 echo "$as_me:$LINENO: result: no" >&5
18831echo "${ECHO_T}no" >&6
18832fi
18833
John Criswell39827c82003-09-23 15:28:52 +000018834if test ${MV} = "false"
18835then
18836 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18837echo "$as_me: error: mv required but not found" >&2;}
18838 { (exit 1); exit 1; }; }
18839fi
18840
John Criswell7a73b802003-06-30 21:59:07 +000018841# Extract the first word of "dot", so it can be a program name with args.
18842set dummy dot; ac_word=$2
18843echo "$as_me:$LINENO: checking for $ac_word" >&5
18844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18845if test "${ac_cv_path_DOT+set}" = set; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
18847else
18848 case $DOT in
18849 [\\/]* | ?:[\\/]*)
18850 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18851 ;;
18852 *)
18853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18854for as_dir in $PATH
18855do
18856 IFS=$as_save_IFS
18857 test -z "$as_dir" && as_dir=.
18858 for ac_exec_ext in '' $ac_executable_extensions; do
18859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18860 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18862 break 2
18863 fi
18864done
18865done
18866
John Criswell39827c82003-09-23 15:28:52 +000018867 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018868 ;;
18869esac
18870fi
18871DOT=$ac_cv_path_DOT
18872
18873if test -n "$DOT"; then
18874 echo "$as_me:$LINENO: result: $DOT" >&5
18875echo "${ECHO_T}$DOT" >&6
18876else
18877 echo "$as_me:$LINENO: result: no" >&5
18878echo "${ECHO_T}no" >&6
18879fi
18880
John Criswell39827c82003-09-23 15:28:52 +000018881
John Criswell7a73b802003-06-30 21:59:07 +000018882# Extract the first word of "etags", so it can be a program name with args.
18883set dummy etags; ac_word=$2
18884echo "$as_me:$LINENO: checking for $ac_word" >&5
18885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18886if test "${ac_cv_path_ETAGS+set}" = set; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18888else
18889 case $ETAGS in
18890 [\\/]* | ?:[\\/]*)
18891 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18892 ;;
18893 *)
18894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18895for as_dir in $PATH
18896do
18897 IFS=$as_save_IFS
18898 test -z "$as_dir" && as_dir=.
18899 for ac_exec_ext in '' $ac_executable_extensions; do
18900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18901 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18903 break 2
18904 fi
18905done
18906done
18907
John Criswell39827c82003-09-23 15:28:52 +000018908 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018909 ;;
18910esac
18911fi
18912ETAGS=$ac_cv_path_ETAGS
18913
18914if test -n "$ETAGS"; then
18915 echo "$as_me:$LINENO: result: $ETAGS" >&5
18916echo "${ECHO_T}$ETAGS" >&6
18917else
18918 echo "$as_me:$LINENO: result: no" >&5
18919echo "${ECHO_T}no" >&6
18920fi
18921
John Criswell39827c82003-09-23 15:28:52 +000018922
John Criswellde00db22003-08-25 16:49:54 +000018923# Extract the first word of "python", so it can be a program name with args.
18924set dummy python; ac_word=$2
18925echo "$as_me:$LINENO: checking for $ac_word" >&5
18926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18927if test "${ac_cv_path_PYTHON+set}" = set; then
18928 echo $ECHO_N "(cached) $ECHO_C" >&6
18929else
18930 case $PYTHON in
18931 [\\/]* | ?:[\\/]*)
18932 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18933 ;;
18934 *)
18935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18936for as_dir in $PATH
18937do
18938 IFS=$as_save_IFS
18939 test -z "$as_dir" && as_dir=.
18940 for ac_exec_ext in '' $ac_executable_extensions; do
18941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18942 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18944 break 2
18945 fi
18946done
18947done
18948
John Criswell39827c82003-09-23 15:28:52 +000018949 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018950 ;;
18951esac
18952fi
18953PYTHON=$ac_cv_path_PYTHON
18954
18955if test -n "$PYTHON"; then
18956 echo "$as_me:$LINENO: result: $PYTHON" >&5
18957echo "${ECHO_T}$PYTHON" >&6
18958else
18959 echo "$as_me:$LINENO: result: no" >&5
18960echo "${ECHO_T}no" >&6
18961fi
18962
John Criswell39827c82003-09-23 15:28:52 +000018963if test ${PYTHON} = "false"
18964then
John Criswell61095982003-09-23 20:46:32 +000018965 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18966echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018967fi
18968
John Criswellde00db22003-08-25 16:49:54 +000018969# Extract the first word of "qmtest", so it can be a program name with args.
18970set dummy qmtest; ac_word=$2
18971echo "$as_me:$LINENO: checking for $ac_word" >&5
18972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18973if test "${ac_cv_path_QMTEST+set}" = set; then
18974 echo $ECHO_N "(cached) $ECHO_C" >&6
18975else
18976 case $QMTEST in
18977 [\\/]* | ?:[\\/]*)
18978 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18979 ;;
18980 *)
18981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18982for as_dir in $PATH
18983do
18984 IFS=$as_save_IFS
18985 test -z "$as_dir" && as_dir=.
18986 for ac_exec_ext in '' $ac_executable_extensions; do
18987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18988 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18990 break 2
18991 fi
18992done
18993done
18994
John Criswell39827c82003-09-23 15:28:52 +000018995 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000018996 ;;
18997esac
18998fi
18999QMTEST=$ac_cv_path_QMTEST
19000
19001if test -n "$QMTEST"; then
19002 echo "$as_me:$LINENO: result: $QMTEST" >&5
19003echo "${ECHO_T}$QMTEST" >&6
19004else
19005 echo "$as_me:$LINENO: result: no" >&5
19006echo "${ECHO_T}no" >&6
19007fi
19008
John Criswell39827c82003-09-23 15:28:52 +000019009if test ${QMTEST} = "false"
19010then
John Criswell61095982003-09-23 20:46:32 +000019011 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19012echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019013fi
John Criswellde00db22003-08-25 16:49:54 +000019014
19015pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19016pymajor=`echo $pyversion | cut -d. -f1`
19017pyminor=`echo $pyversion | cut -d. -f2`
19018
19019if test "$pymajor" -ge "2"
19020then
19021 if test "$pymajor" -eq "2"
19022 then
19023 if test "$pyminor" -lt "2"
19024 then
19025 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19026echo "$as_me: error: Python 2.2 or greater required" >&2;}
19027 { (exit 1); exit 1; }; }
19028 fi
19029 fi
19030else
19031 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19032echo "$as_me: error: Python 2.2 or greater required" >&2;}
19033 { (exit 1); exit 1; }; }
19034fi
John Criswell7a73b802003-06-30 21:59:07 +000019035
19036
19037
19038
19039
19040echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19041echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19042if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19044else
19045 ac_check_lib_save_LIBS=$LIBS
19046LIBS="-lelf $LIBS"
19047cat >conftest.$ac_ext <<_ACEOF
19048#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019049/* confdefs.h. */
19050_ACEOF
19051cat confdefs.h >>conftest.$ac_ext
19052cat >>conftest.$ac_ext <<_ACEOF
19053/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019054
19055/* Override any gcc2 internal prototype to avoid an error. */
19056#ifdef __cplusplus
19057extern "C"
19058#endif
19059/* We use char because int might match the return type of a gcc2
19060 builtin and then its argument prototype would still apply. */
19061char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019062int
19063main ()
19064{
19065elf_begin ();
19066 ;
19067 return 0;
19068}
19069_ACEOF
19070rm -f conftest.$ac_objext conftest$ac_exeext
19071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19072 (eval $ac_link) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); } &&
19076 { ac_try='test -s conftest$ac_exeext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19079 ac_status=$?
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_cv_lib_elf_elf_begin=yes
19083else
19084 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019085sed 's/^/| /' conftest.$ac_ext >&5
19086
John Criswell7a73b802003-06-30 21:59:07 +000019087ac_cv_lib_elf_elf_begin=no
19088fi
19089rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19090LIBS=$ac_check_lib_save_LIBS
19091fi
19092echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19093echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19094if test $ac_cv_lib_elf_elf_begin = yes; then
19095 cat >>confdefs.h <<_ACEOF
19096#define HAVE_LIBELF 1
19097_ACEOF
19098
19099 LIBS="-lelf $LIBS"
19100
19101fi
19102
19103
19104echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19105echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19106if test "${ac_cv_search_dlopen+set}" = set; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
19108else
19109 ac_func_search_save_LIBS=$LIBS
19110ac_cv_search_dlopen=no
19111cat >conftest.$ac_ext <<_ACEOF
19112#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019113/* confdefs.h. */
19114_ACEOF
19115cat confdefs.h >>conftest.$ac_ext
19116cat >>conftest.$ac_ext <<_ACEOF
19117/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019118
19119/* Override any gcc2 internal prototype to avoid an error. */
19120#ifdef __cplusplus
19121extern "C"
19122#endif
19123/* We use char because int might match the return type of a gcc2
19124 builtin and then its argument prototype would still apply. */
19125char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019126int
19127main ()
19128{
19129dlopen ();
19130 ;
19131 return 0;
19132}
19133_ACEOF
19134rm -f conftest.$ac_objext conftest$ac_exeext
19135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19136 (eval $ac_link) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -s conftest$ac_exeext'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19143 ac_status=$?
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; }; then
19146 ac_cv_search_dlopen="none required"
19147else
19148 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019149sed 's/^/| /' conftest.$ac_ext >&5
19150
John Criswell7a73b802003-06-30 21:59:07 +000019151fi
19152rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19153if test "$ac_cv_search_dlopen" = no; then
19154 for ac_lib in dl; do
19155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19156 cat >conftest.$ac_ext <<_ACEOF
19157#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019158/* confdefs.h. */
19159_ACEOF
19160cat confdefs.h >>conftest.$ac_ext
19161cat >>conftest.$ac_ext <<_ACEOF
19162/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019163
19164/* Override any gcc2 internal prototype to avoid an error. */
19165#ifdef __cplusplus
19166extern "C"
19167#endif
19168/* We use char because int might match the return type of a gcc2
19169 builtin and then its argument prototype would still apply. */
19170char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019171int
19172main ()
19173{
19174dlopen ();
19175 ;
19176 return 0;
19177}
19178_ACEOF
19179rm -f conftest.$ac_objext conftest$ac_exeext
19180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19181 (eval $ac_link) 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } &&
19185 { ac_try='test -s conftest$ac_exeext'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19191 ac_cv_search_dlopen="-l$ac_lib"
19192break
19193else
19194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019195sed 's/^/| /' conftest.$ac_ext >&5
19196
John Criswell7a73b802003-06-30 21:59:07 +000019197fi
19198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19199 done
19200fi
19201LIBS=$ac_func_search_save_LIBS
19202fi
19203echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19204echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19205if test "$ac_cv_search_dlopen" != no; then
19206 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019207
19208cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019209#define HAVE_DLOPEN 1
19210_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019211
19212else
Brian Gaekec45be042003-10-07 06:01:34 +000019213 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19214echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019215fi
19216
19217
19218echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19219echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19220if test "${ac_cv_search_mallinfo+set}" = set; then
19221 echo $ECHO_N "(cached) $ECHO_C" >&6
19222else
19223 ac_func_search_save_LIBS=$LIBS
19224ac_cv_search_mallinfo=no
19225cat >conftest.$ac_ext <<_ACEOF
19226#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019227/* confdefs.h. */
19228_ACEOF
19229cat confdefs.h >>conftest.$ac_ext
19230cat >>conftest.$ac_ext <<_ACEOF
19231/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019232
19233/* Override any gcc2 internal prototype to avoid an error. */
19234#ifdef __cplusplus
19235extern "C"
19236#endif
19237/* We use char because int might match the return type of a gcc2
19238 builtin and then its argument prototype would still apply. */
19239char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019240int
19241main ()
19242{
19243mallinfo ();
19244 ;
19245 return 0;
19246}
19247_ACEOF
19248rm -f conftest.$ac_objext conftest$ac_exeext
19249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19250 (eval $ac_link) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } &&
19254 { ac_try='test -s conftest$ac_exeext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_cv_search_mallinfo="none required"
19261else
19262 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019263sed 's/^/| /' conftest.$ac_ext >&5
19264
John Criswell7a73b802003-06-30 21:59:07 +000019265fi
19266rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19267if test "$ac_cv_search_mallinfo" = no; then
19268 for ac_lib in malloc; do
19269 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19270 cat >conftest.$ac_ext <<_ACEOF
19271#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019272/* confdefs.h. */
19273_ACEOF
19274cat confdefs.h >>conftest.$ac_ext
19275cat >>conftest.$ac_ext <<_ACEOF
19276/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019277
19278/* Override any gcc2 internal prototype to avoid an error. */
19279#ifdef __cplusplus
19280extern "C"
19281#endif
19282/* We use char because int might match the return type of a gcc2
19283 builtin and then its argument prototype would still apply. */
19284char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019285int
19286main ()
19287{
19288mallinfo ();
19289 ;
19290 return 0;
19291}
19292_ACEOF
19293rm -f conftest.$ac_objext conftest$ac_exeext
19294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19295 (eval $ac_link) 2>&5
19296 ac_status=$?
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } &&
19299 { ac_try='test -s conftest$ac_exeext'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; }; then
19305 ac_cv_search_mallinfo="-l$ac_lib"
19306break
19307else
19308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019309sed 's/^/| /' conftest.$ac_ext >&5
19310
John Criswell7a73b802003-06-30 21:59:07 +000019311fi
19312rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19313 done
19314fi
19315LIBS=$ac_func_search_save_LIBS
19316fi
19317echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19318echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19319if test "$ac_cv_search_mallinfo" != no; then
19320 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019321
19322cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019323#define HAVE_MALLINFO 1
19324_ACEOF
19325
19326fi
19327
19328
19329
19330echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19331echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19332if test "${ac_cv_header_stdc+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19334else
19335 cat >conftest.$ac_ext <<_ACEOF
19336#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019337/* confdefs.h. */
19338_ACEOF
19339cat confdefs.h >>conftest.$ac_ext
19340cat >>conftest.$ac_ext <<_ACEOF
19341/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019342#include <stdlib.h>
19343#include <stdarg.h>
19344#include <string.h>
19345#include <float.h>
19346
John Criswell0c38eaf2003-09-10 15:17:25 +000019347int
19348main ()
19349{
19350
19351 ;
19352 return 0;
19353}
John Criswell7a73b802003-06-30 21:59:07 +000019354_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019355rm -f conftest.$ac_objext
19356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19357 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019358 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019360 (exit $ac_status); } &&
19361 { ac_try='test -s conftest.$ac_objext'
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019367 ac_cv_header_stdc=yes
19368else
19369 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019370sed 's/^/| /' conftest.$ac_ext >&5
19371
19372ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019373fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019374rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019375
19376if test $ac_cv_header_stdc = yes; then
19377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19378 cat >conftest.$ac_ext <<_ACEOF
19379#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019380/* confdefs.h. */
19381_ACEOF
19382cat confdefs.h >>conftest.$ac_ext
19383cat >>conftest.$ac_ext <<_ACEOF
19384/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019385#include <string.h>
19386
19387_ACEOF
19388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019389 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019390 :
19391else
19392 ac_cv_header_stdc=no
19393fi
19394rm -f conftest*
19395
19396fi
19397
19398if test $ac_cv_header_stdc = yes; then
19399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19400 cat >conftest.$ac_ext <<_ACEOF
19401#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019402/* confdefs.h. */
19403_ACEOF
19404cat confdefs.h >>conftest.$ac_ext
19405cat >>conftest.$ac_ext <<_ACEOF
19406/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019407#include <stdlib.h>
19408
19409_ACEOF
19410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019411 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019412 :
19413else
19414 ac_cv_header_stdc=no
19415fi
19416rm -f conftest*
19417
19418fi
19419
19420if test $ac_cv_header_stdc = yes; then
19421 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19422 if test "$cross_compiling" = yes; then
19423 :
19424else
19425 cat >conftest.$ac_ext <<_ACEOF
19426#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019427/* confdefs.h. */
19428_ACEOF
19429cat confdefs.h >>conftest.$ac_ext
19430cat >>conftest.$ac_ext <<_ACEOF
19431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019432#include <ctype.h>
19433#if ((' ' & 0x0FF) == 0x020)
19434# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19435# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19436#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019437# define ISLOWER(c) \
19438 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019439 || ('j' <= (c) && (c) <= 'r') \
19440 || ('s' <= (c) && (c) <= 'z'))
19441# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19442#endif
19443
19444#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19445int
19446main ()
19447{
19448 int i;
19449 for (i = 0; i < 256; i++)
19450 if (XOR (islower (i), ISLOWER (i))
19451 || toupper (i) != TOUPPER (i))
19452 exit(2);
19453 exit (0);
19454}
19455_ACEOF
19456rm -f conftest$ac_exeext
19457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19458 (eval $ac_link) 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463 (eval $ac_try) 2>&5
19464 ac_status=$?
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19467 :
19468else
19469 echo "$as_me: program exited with status $ac_status" >&5
19470echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019471sed 's/^/| /' conftest.$ac_ext >&5
19472
John Criswell7a73b802003-06-30 21:59:07 +000019473( exit $ac_status )
19474ac_cv_header_stdc=no
19475fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019476rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019477fi
19478fi
19479fi
19480echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19481echo "${ECHO_T}$ac_cv_header_stdc" >&6
19482if test $ac_cv_header_stdc = yes; then
19483
19484cat >>confdefs.h <<\_ACEOF
19485#define STDC_HEADERS 1
19486_ACEOF
19487
19488fi
19489
19490echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19491echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19492if test "${ac_cv_header_sys_wait_h+set}" = set; then
19493 echo $ECHO_N "(cached) $ECHO_C" >&6
19494else
19495 cat >conftest.$ac_ext <<_ACEOF
19496#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019497/* confdefs.h. */
19498_ACEOF
19499cat confdefs.h >>conftest.$ac_ext
19500cat >>conftest.$ac_ext <<_ACEOF
19501/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019502#include <sys/types.h>
19503#include <sys/wait.h>
19504#ifndef WEXITSTATUS
19505# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19506#endif
19507#ifndef WIFEXITED
19508# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19509#endif
19510
John Criswell7a73b802003-06-30 21:59:07 +000019511int
19512main ()
19513{
19514 int s;
19515 wait (&s);
19516 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19517 ;
19518 return 0;
19519}
19520_ACEOF
19521rm -f conftest.$ac_objext
19522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19523 (eval $ac_compile) 2>&5
19524 ac_status=$?
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
19527 { ac_try='test -s conftest.$ac_objext'
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; }; then
19533 ac_cv_header_sys_wait_h=yes
19534else
19535 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019536sed 's/^/| /' conftest.$ac_ext >&5
19537
John Criswell7a73b802003-06-30 21:59:07 +000019538ac_cv_header_sys_wait_h=no
19539fi
19540rm -f conftest.$ac_objext conftest.$ac_ext
19541fi
19542echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19543echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19544if test $ac_cv_header_sys_wait_h = yes; then
19545
19546cat >>confdefs.h <<\_ACEOF
19547#define HAVE_SYS_WAIT_H 1
19548_ACEOF
19549
19550fi
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19562do
19563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19564if eval "test \"\${$as_ac_Header+set}\" = set"; then
19565 echo "$as_me:$LINENO: checking for $ac_header" >&5
19566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19567if eval "test \"\${$as_ac_Header+set}\" = set"; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19569fi
19570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19572else
19573 # Is the header compilable?
19574echo "$as_me:$LINENO: checking $ac_header usability" >&5
19575echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19576cat >conftest.$ac_ext <<_ACEOF
19577#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019578/* confdefs.h. */
19579_ACEOF
19580cat confdefs.h >>conftest.$ac_ext
19581cat >>conftest.$ac_ext <<_ACEOF
19582/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019583$ac_includes_default
19584#include <$ac_header>
19585_ACEOF
19586rm -f conftest.$ac_objext
19587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19588 (eval $ac_compile) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -s conftest.$ac_objext'
19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594 (eval $ac_try) 2>&5
19595 ac_status=$?
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; }; then
19598 ac_header_compiler=yes
19599else
19600 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019601sed 's/^/| /' conftest.$ac_ext >&5
19602
John Criswell7a73b802003-06-30 21:59:07 +000019603ac_header_compiler=no
19604fi
19605rm -f conftest.$ac_objext conftest.$ac_ext
19606echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19607echo "${ECHO_T}$ac_header_compiler" >&6
19608
19609# Is the header present?
19610echo "$as_me:$LINENO: checking $ac_header presence" >&5
19611echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19612cat >conftest.$ac_ext <<_ACEOF
19613#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019614/* confdefs.h. */
19615_ACEOF
19616cat confdefs.h >>conftest.$ac_ext
19617cat >>conftest.$ac_ext <<_ACEOF
19618/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019619#include <$ac_header>
19620_ACEOF
19621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19623 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019624 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019625 rm -f conftest.er1
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } >/dev/null; then
19629 if test -s conftest.err; then
19630 ac_cpp_err=$ac_c_preproc_warn_flag
19631 else
19632 ac_cpp_err=
19633 fi
19634else
19635 ac_cpp_err=yes
19636fi
19637if test -z "$ac_cpp_err"; then
19638 ac_header_preproc=yes
19639else
19640 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019641sed 's/^/| /' conftest.$ac_ext >&5
19642
John Criswell7a73b802003-06-30 21:59:07 +000019643 ac_header_preproc=no
19644fi
19645rm -f conftest.err conftest.$ac_ext
19646echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19647echo "${ECHO_T}$ac_header_preproc" >&6
19648
19649# So? What about this header?
19650case $ac_header_compiler:$ac_header_preproc in
19651 yes:no )
19652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19653echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019655echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19656 (
19657 cat <<\_ASBOX
19658## ------------------------------------ ##
19659## Report this to bug-autoconf@gnu.org. ##
19660## ------------------------------------ ##
19661_ASBOX
19662 ) |
19663 sed "s/^/$as_me: WARNING: /" >&2
19664 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019665 no:yes )
19666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19667echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19669echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019671echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19672 (
19673 cat <<\_ASBOX
19674## ------------------------------------ ##
19675## Report this to bug-autoconf@gnu.org. ##
19676## ------------------------------------ ##
19677_ASBOX
19678 ) |
19679 sed "s/^/$as_me: WARNING: /" >&2
19680 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019681esac
19682echo "$as_me:$LINENO: checking for $ac_header" >&5
19683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19684if eval "test \"\${$as_ac_Header+set}\" = set"; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686else
19687 eval "$as_ac_Header=$ac_header_preproc"
19688fi
19689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19691
19692fi
19693if test `eval echo '${'$as_ac_Header'}'` = yes; then
19694 cat >>confdefs.h <<_ACEOF
19695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19696_ACEOF
19697
19698fi
19699
19700done
19701
19702
19703
19704
19705
19706
19707for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19708do
19709as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19710if eval "test \"\${$as_ac_Header+set}\" = set"; then
19711 echo "$as_me:$LINENO: checking for $ac_header" >&5
19712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19713if eval "test \"\${$as_ac_Header+set}\" = set"; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19715fi
19716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19718else
19719 # Is the header compilable?
19720echo "$as_me:$LINENO: checking $ac_header usability" >&5
19721echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19722cat >conftest.$ac_ext <<_ACEOF
19723#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019724/* confdefs.h. */
19725_ACEOF
19726cat confdefs.h >>conftest.$ac_ext
19727cat >>conftest.$ac_ext <<_ACEOF
19728/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019729$ac_includes_default
19730#include <$ac_header>
19731_ACEOF
19732rm -f conftest.$ac_objext
19733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19734 (eval $ac_compile) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } &&
19738 { ac_try='test -s conftest.$ac_objext'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 ac_header_compiler=yes
19745else
19746 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019747sed 's/^/| /' conftest.$ac_ext >&5
19748
John Criswell7a73b802003-06-30 21:59:07 +000019749ac_header_compiler=no
19750fi
19751rm -f conftest.$ac_objext conftest.$ac_ext
19752echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19753echo "${ECHO_T}$ac_header_compiler" >&6
19754
19755# Is the header present?
19756echo "$as_me:$LINENO: checking $ac_header presence" >&5
19757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19758cat >conftest.$ac_ext <<_ACEOF
19759#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019760/* confdefs.h. */
19761_ACEOF
19762cat confdefs.h >>conftest.$ac_ext
19763cat >>conftest.$ac_ext <<_ACEOF
19764/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019765#include <$ac_header>
19766_ACEOF
19767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19769 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019770 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019771 rm -f conftest.er1
19772 cat conftest.err >&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } >/dev/null; then
19775 if test -s conftest.err; then
19776 ac_cpp_err=$ac_c_preproc_warn_flag
19777 else
19778 ac_cpp_err=
19779 fi
19780else
19781 ac_cpp_err=yes
19782fi
19783if test -z "$ac_cpp_err"; then
19784 ac_header_preproc=yes
19785else
19786 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019787sed 's/^/| /' conftest.$ac_ext >&5
19788
John Criswell7a73b802003-06-30 21:59:07 +000019789 ac_header_preproc=no
19790fi
19791rm -f conftest.err conftest.$ac_ext
19792echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19793echo "${ECHO_T}$ac_header_preproc" >&6
19794
19795# So? What about this header?
19796case $ac_header_compiler:$ac_header_preproc in
19797 yes:no )
19798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19799echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19802 (
19803 cat <<\_ASBOX
19804## ------------------------------------ ##
19805## Report this to bug-autoconf@gnu.org. ##
19806## ------------------------------------ ##
19807_ASBOX
19808 ) |
19809 sed "s/^/$as_me: WARNING: /" >&2
19810 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019811 no:yes )
19812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19818 (
19819 cat <<\_ASBOX
19820## ------------------------------------ ##
19821## Report this to bug-autoconf@gnu.org. ##
19822## ------------------------------------ ##
19823_ASBOX
19824 ) |
19825 sed "s/^/$as_me: WARNING: /" >&2
19826 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019827esac
19828echo "$as_me:$LINENO: checking for $ac_header" >&5
19829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19830if eval "test \"\${$as_ac_Header+set}\" = set"; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19832else
19833 eval "$as_ac_Header=$ac_header_preproc"
19834fi
19835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19837
19838fi
19839if test `eval echo '${'$as_ac_Header'}'` = yes; then
19840 cat >>confdefs.h <<_ACEOF
19841#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19842_ACEOF
19843
19844fi
19845
19846done
19847
19848
19849
19850
19851for ac_header in dlfcn.h link.h
19852do
19853as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19854if eval "test \"\${$as_ac_Header+set}\" = set"; then
19855 echo "$as_me:$LINENO: checking for $ac_header" >&5
19856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19857if eval "test \"\${$as_ac_Header+set}\" = set"; then
19858 echo $ECHO_N "(cached) $ECHO_C" >&6
19859fi
19860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19862else
19863 # Is the header compilable?
19864echo "$as_me:$LINENO: checking $ac_header usability" >&5
19865echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19866cat >conftest.$ac_ext <<_ACEOF
19867#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019868/* confdefs.h. */
19869_ACEOF
19870cat confdefs.h >>conftest.$ac_ext
19871cat >>conftest.$ac_ext <<_ACEOF
19872/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019873$ac_includes_default
19874#include <$ac_header>
19875_ACEOF
19876rm -f conftest.$ac_objext
19877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19878 (eval $ac_compile) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } &&
19882 { ac_try='test -s conftest.$ac_objext'
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_header_compiler=yes
19889else
19890 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019891sed 's/^/| /' conftest.$ac_ext >&5
19892
John Criswell7a73b802003-06-30 21:59:07 +000019893ac_header_compiler=no
19894fi
19895rm -f conftest.$ac_objext conftest.$ac_ext
19896echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19897echo "${ECHO_T}$ac_header_compiler" >&6
19898
19899# Is the header present?
19900echo "$as_me:$LINENO: checking $ac_header presence" >&5
19901echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19902cat >conftest.$ac_ext <<_ACEOF
19903#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019904/* confdefs.h. */
19905_ACEOF
19906cat confdefs.h >>conftest.$ac_ext
19907cat >>conftest.$ac_ext <<_ACEOF
19908/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019909#include <$ac_header>
19910_ACEOF
19911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19913 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019914 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019915 rm -f conftest.er1
19916 cat conftest.err >&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } >/dev/null; then
19919 if test -s conftest.err; then
19920 ac_cpp_err=$ac_c_preproc_warn_flag
19921 else
19922 ac_cpp_err=
19923 fi
19924else
19925 ac_cpp_err=yes
19926fi
19927if test -z "$ac_cpp_err"; then
19928 ac_header_preproc=yes
19929else
19930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019931sed 's/^/| /' conftest.$ac_ext >&5
19932
John Criswell7a73b802003-06-30 21:59:07 +000019933 ac_header_preproc=no
19934fi
19935rm -f conftest.err conftest.$ac_ext
19936echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19937echo "${ECHO_T}$ac_header_preproc" >&6
19938
19939# So? What about this header?
19940case $ac_header_compiler:$ac_header_preproc in
19941 yes:no )
19942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19943echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019945echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19946 (
19947 cat <<\_ASBOX
19948## ------------------------------------ ##
19949## Report this to bug-autoconf@gnu.org. ##
19950## ------------------------------------ ##
19951_ASBOX
19952 ) |
19953 sed "s/^/$as_me: WARNING: /" >&2
19954 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019955 no:yes )
19956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19962 (
19963 cat <<\_ASBOX
19964## ------------------------------------ ##
19965## Report this to bug-autoconf@gnu.org. ##
19966## ------------------------------------ ##
19967_ASBOX
19968 ) |
19969 sed "s/^/$as_me: WARNING: /" >&2
19970 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019971esac
19972echo "$as_me:$LINENO: checking for $ac_header" >&5
19973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19974if eval "test \"\${$as_ac_Header+set}\" = set"; then
19975 echo $ECHO_N "(cached) $ECHO_C" >&6
19976else
19977 eval "$as_ac_Header=$ac_header_preproc"
19978fi
19979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19981
19982fi
19983if test `eval echo '${'$as_ac_Header'}'` = yes; then
19984 cat >>confdefs.h <<_ACEOF
19985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19986_ACEOF
19987
19988fi
19989
19990done
19991
19992
19993
John Criswell7a73b802003-06-30 21:59:07 +000019994echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19995echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19996if test "${ac_cv_c_const+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19998else
19999 cat >conftest.$ac_ext <<_ACEOF
20000#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020001/* confdefs.h. */
20002_ACEOF
20003cat confdefs.h >>conftest.$ac_ext
20004cat >>conftest.$ac_ext <<_ACEOF
20005/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020006
John Criswell7a73b802003-06-30 21:59:07 +000020007int
20008main ()
20009{
20010/* FIXME: Include the comments suggested by Paul. */
20011#ifndef __cplusplus
20012 /* Ultrix mips cc rejects this. */
20013 typedef int charset[2];
20014 const charset x;
20015 /* SunOS 4.1.1 cc rejects this. */
20016 char const *const *ccp;
20017 char **p;
20018 /* NEC SVR4.0.2 mips cc rejects this. */
20019 struct point {int x, y;};
20020 static struct point const zero = {0,0};
20021 /* AIX XL C 1.02.0.0 rejects this.
20022 It does not let you subtract one const X* pointer from another in
20023 an arm of an if-expression whose if-part is not a constant
20024 expression */
20025 const char *g = "string";
20026 ccp = &g + (g ? g-g : 0);
20027 /* HPUX 7.0 cc rejects these. */
20028 ++ccp;
20029 p = (char**) ccp;
20030 ccp = (char const *const *) p;
20031 { /* SCO 3.2v4 cc rejects this. */
20032 char *t;
20033 char const *s = 0 ? (char *) 0 : (char const *) 0;
20034
20035 *t++ = 0;
20036 }
20037 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20038 int x[] = {25, 17};
20039 const int *foo = &x[0];
20040 ++foo;
20041 }
20042 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20043 typedef const int *iptr;
20044 iptr p = 0;
20045 ++p;
20046 }
20047 { /* AIX XL C 1.02.0.0 rejects this saying
20048 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20049 struct s { int j; const int *ap[3]; };
20050 struct s *b; b->j = 5;
20051 }
20052 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20053 const int foo = 10;
20054 }
20055#endif
20056
20057 ;
20058 return 0;
20059}
20060_ACEOF
20061rm -f conftest.$ac_objext
20062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063 (eval $ac_compile) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } &&
20067 { ac_try='test -s conftest.$ac_objext'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_c_const=yes
20074else
20075 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020076sed 's/^/| /' conftest.$ac_ext >&5
20077
John Criswell7a73b802003-06-30 21:59:07 +000020078ac_cv_c_const=no
20079fi
20080rm -f conftest.$ac_objext conftest.$ac_ext
20081fi
20082echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20083echo "${ECHO_T}$ac_cv_c_const" >&6
20084if test $ac_cv_c_const = no; then
20085
20086cat >>confdefs.h <<\_ACEOF
20087#define const
20088_ACEOF
20089
20090fi
20091
20092echo "$as_me:$LINENO: checking for inline" >&5
20093echo $ECHO_N "checking for inline... $ECHO_C" >&6
20094if test "${ac_cv_c_inline+set}" = set; then
20095 echo $ECHO_N "(cached) $ECHO_C" >&6
20096else
20097 ac_cv_c_inline=no
20098for ac_kw in inline __inline__ __inline; do
20099 cat >conftest.$ac_ext <<_ACEOF
20100#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020101/* confdefs.h. */
20102_ACEOF
20103cat confdefs.h >>conftest.$ac_ext
20104cat >>conftest.$ac_ext <<_ACEOF
20105/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020106#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020107typedef int foo_t;
20108static $ac_kw foo_t static_foo () {return 0; }
20109$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020110#endif
20111
20112_ACEOF
20113rm -f conftest.$ac_objext
20114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20115 (eval $ac_compile) 2>&5
20116 ac_status=$?
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } &&
20119 { ac_try='test -s conftest.$ac_objext'
20120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20122 ac_status=$?
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; }; then
20125 ac_cv_c_inline=$ac_kw; break
20126else
20127 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020128sed 's/^/| /' conftest.$ac_ext >&5
20129
John Criswell7a73b802003-06-30 21:59:07 +000020130fi
20131rm -f conftest.$ac_objext conftest.$ac_ext
20132done
20133
20134fi
20135echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20136echo "${ECHO_T}$ac_cv_c_inline" >&6
20137case $ac_cv_c_inline in
20138 inline | yes) ;;
20139 no)
20140cat >>confdefs.h <<\_ACEOF
20141#define inline
20142_ACEOF
20143 ;;
20144 *) cat >>confdefs.h <<_ACEOF
20145#define inline $ac_cv_c_inline
20146_ACEOF
20147 ;;
20148esac
20149
20150
20151echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20152echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20153if test "${ac_cv_c_bigendian+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20155else
20156 # See if sys/param.h defines the BYTE_ORDER macro.
20157cat >conftest.$ac_ext <<_ACEOF
20158#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020159/* confdefs.h. */
20160_ACEOF
20161cat confdefs.h >>conftest.$ac_ext
20162cat >>conftest.$ac_ext <<_ACEOF
20163/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020164#include <sys/types.h>
20165#include <sys/param.h>
20166
John Criswell7a73b802003-06-30 21:59:07 +000020167int
20168main ()
20169{
20170#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20171 bogus endian macros
20172#endif
20173
20174 ;
20175 return 0;
20176}
20177_ACEOF
20178rm -f conftest.$ac_objext
20179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20180 (eval $ac_compile) 2>&5
20181 ac_status=$?
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } &&
20184 { ac_try='test -s conftest.$ac_objext'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20187 ac_status=$?
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; }; then
20190 # It does; now see whether it defined to BIG_ENDIAN or not.
20191cat >conftest.$ac_ext <<_ACEOF
20192#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020193/* confdefs.h. */
20194_ACEOF
20195cat confdefs.h >>conftest.$ac_ext
20196cat >>conftest.$ac_ext <<_ACEOF
20197/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020198#include <sys/types.h>
20199#include <sys/param.h>
20200
John Criswell7a73b802003-06-30 21:59:07 +000020201int
20202main ()
20203{
20204#if BYTE_ORDER != BIG_ENDIAN
20205 not big endian
20206#endif
20207
20208 ;
20209 return 0;
20210}
20211_ACEOF
20212rm -f conftest.$ac_objext
20213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20214 (eval $ac_compile) 2>&5
20215 ac_status=$?
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } &&
20218 { ac_try='test -s conftest.$ac_objext'
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20221 ac_status=$?
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; }; then
20224 ac_cv_c_bigendian=yes
20225else
20226 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020227sed 's/^/| /' conftest.$ac_ext >&5
20228
John Criswell7a73b802003-06-30 21:59:07 +000020229ac_cv_c_bigendian=no
20230fi
20231rm -f conftest.$ac_objext conftest.$ac_ext
20232else
20233 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020234sed 's/^/| /' conftest.$ac_ext >&5
20235
John Criswell7a73b802003-06-30 21:59:07 +000020236# It does not; compile a test program.
20237if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020238 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020239 ac_cv_c_bigendian=unknown
20240 cat >conftest.$ac_ext <<_ACEOF
20241#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020242/* confdefs.h. */
20243_ACEOF
20244cat confdefs.h >>conftest.$ac_ext
20245cat >>conftest.$ac_ext <<_ACEOF
20246/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020247short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20248short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20249void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20250short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20251short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20252void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020253int
20254main ()
20255{
20256 _ascii (); _ebcdic ();
20257 ;
20258 return 0;
20259}
20260_ACEOF
20261rm -f conftest.$ac_objext
20262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20263 (eval $ac_compile) 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } &&
20267 { ac_try='test -s conftest.$ac_objext'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020273 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020274 ac_cv_c_bigendian=yes
20275fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020276if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020277 if test "$ac_cv_c_bigendian" = unknown; then
20278 ac_cv_c_bigendian=no
20279 else
20280 # finding both strings is unlikely to happen, but who knows?
20281 ac_cv_c_bigendian=unknown
20282 fi
20283fi
20284else
20285 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020286sed 's/^/| /' conftest.$ac_ext >&5
20287
John Criswell7a73b802003-06-30 21:59:07 +000020288fi
20289rm -f conftest.$ac_objext conftest.$ac_ext
20290else
20291 cat >conftest.$ac_ext <<_ACEOF
20292#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020293/* confdefs.h. */
20294_ACEOF
20295cat confdefs.h >>conftest.$ac_ext
20296cat >>conftest.$ac_ext <<_ACEOF
20297/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020298int
20299main ()
20300{
20301 /* Are we little or big endian? From Harbison&Steele. */
20302 union
20303 {
20304 long l;
20305 char c[sizeof (long)];
20306 } u;
20307 u.l = 1;
20308 exit (u.c[sizeof (long) - 1] == 1);
20309}
20310_ACEOF
20311rm -f conftest$ac_exeext
20312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20313 (eval $ac_link) 2>&5
20314 ac_status=$?
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20319 ac_status=$?
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; }; then
20322 ac_cv_c_bigendian=no
20323else
20324 echo "$as_me: program exited with status $ac_status" >&5
20325echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020326sed 's/^/| /' conftest.$ac_ext >&5
20327
John Criswell7a73b802003-06-30 21:59:07 +000020328( exit $ac_status )
20329ac_cv_c_bigendian=yes
20330fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020331rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020332fi
20333fi
20334rm -f conftest.$ac_objext conftest.$ac_ext
20335fi
20336echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20337echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20338case $ac_cv_c_bigendian in
20339 yes)
John Criswell5ab73462003-10-09 15:44:28 +000020340
20341cat >>confdefs.h <<\_ACEOF
20342#define ENDIAN_BIG
John Criswell7a73b802003-06-30 21:59:07 +000020343_ACEOF
20344 ;;
20345 no)
John Criswell5ab73462003-10-09 15:44:28 +000020346
20347cat >>confdefs.h <<\_ACEOF
20348#define ENDIAN_LITTLE
John Criswell7a73b802003-06-30 21:59:07 +000020349_ACEOF
20350 ;;
20351 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020352 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020353presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020354echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020355presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20356 { (exit 1); exit 1; }; } ;;
20357esac
20358
20359
20360echo "$as_me:$LINENO: checking for pid_t" >&5
20361echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20362if test "${ac_cv_type_pid_t+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20364else
20365 cat >conftest.$ac_ext <<_ACEOF
20366#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020367/* confdefs.h. */
20368_ACEOF
20369cat confdefs.h >>conftest.$ac_ext
20370cat >>conftest.$ac_ext <<_ACEOF
20371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020372$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020373int
20374main ()
20375{
20376if ((pid_t *) 0)
20377 return 0;
20378if (sizeof (pid_t))
20379 return 0;
20380 ;
20381 return 0;
20382}
20383_ACEOF
20384rm -f conftest.$ac_objext
20385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20386 (eval $ac_compile) 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } &&
20390 { ac_try='test -s conftest.$ac_objext'
20391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20392 (eval $ac_try) 2>&5
20393 ac_status=$?
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); }; }; then
20396 ac_cv_type_pid_t=yes
20397else
20398 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020399sed 's/^/| /' conftest.$ac_ext >&5
20400
John Criswell7a73b802003-06-30 21:59:07 +000020401ac_cv_type_pid_t=no
20402fi
20403rm -f conftest.$ac_objext conftest.$ac_ext
20404fi
20405echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20406echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20407if test $ac_cv_type_pid_t = yes; then
20408 :
20409else
20410
20411cat >>confdefs.h <<_ACEOF
20412#define pid_t int
20413_ACEOF
20414
20415fi
20416
20417echo "$as_me:$LINENO: checking for size_t" >&5
20418echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20419if test "${ac_cv_type_size_t+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20421else
20422 cat >conftest.$ac_ext <<_ACEOF
20423#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020424/* confdefs.h. */
20425_ACEOF
20426cat confdefs.h >>conftest.$ac_ext
20427cat >>conftest.$ac_ext <<_ACEOF
20428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020429$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020430int
20431main ()
20432{
20433if ((size_t *) 0)
20434 return 0;
20435if (sizeof (size_t))
20436 return 0;
20437 ;
20438 return 0;
20439}
20440_ACEOF
20441rm -f conftest.$ac_objext
20442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20443 (eval $ac_compile) 2>&5
20444 ac_status=$?
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } &&
20447 { ac_try='test -s conftest.$ac_objext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_cv_type_size_t=yes
20454else
20455 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020456sed 's/^/| /' conftest.$ac_ext >&5
20457
John Criswell7a73b802003-06-30 21:59:07 +000020458ac_cv_type_size_t=no
20459fi
20460rm -f conftest.$ac_objext conftest.$ac_ext
20461fi
20462echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20463echo "${ECHO_T}$ac_cv_type_size_t" >&6
20464if test $ac_cv_type_size_t = yes; then
20465 :
20466else
20467
20468cat >>confdefs.h <<_ACEOF
20469#define size_t unsigned
20470_ACEOF
20471
20472fi
20473
20474echo "$as_me:$LINENO: checking for int64_t" >&5
20475echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20476if test "${ac_cv_type_int64_t+set}" = set; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20478else
20479 cat >conftest.$ac_ext <<_ACEOF
20480#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020481/* confdefs.h. */
20482_ACEOF
20483cat confdefs.h >>conftest.$ac_ext
20484cat >>conftest.$ac_ext <<_ACEOF
20485/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020486$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020487int
20488main ()
20489{
20490if ((int64_t *) 0)
20491 return 0;
20492if (sizeof (int64_t))
20493 return 0;
20494 ;
20495 return 0;
20496}
20497_ACEOF
20498rm -f conftest.$ac_objext
20499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20500 (eval $ac_compile) 2>&5
20501 ac_status=$?
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } &&
20504 { ac_try='test -s conftest.$ac_objext'
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20507 ac_status=$?
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; }; then
20510 ac_cv_type_int64_t=yes
20511else
20512 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020513sed 's/^/| /' conftest.$ac_ext >&5
20514
John Criswell7a73b802003-06-30 21:59:07 +000020515ac_cv_type_int64_t=no
20516fi
20517rm -f conftest.$ac_objext conftest.$ac_ext
20518fi
20519echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20520echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20521if test $ac_cv_type_int64_t = yes; then
20522
20523cat >>confdefs.h <<_ACEOF
20524#define HAVE_INT64_T 1
20525_ACEOF
20526
20527
20528else
20529 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20530echo "$as_me: error: Type int64_t required but not found" >&2;}
20531 { (exit 1); exit 1; }; }
20532fi
20533
20534echo "$as_me:$LINENO: checking for uint64_t" >&5
20535echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20536if test "${ac_cv_type_uint64_t+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20538else
20539 cat >conftest.$ac_ext <<_ACEOF
20540#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020541/* confdefs.h. */
20542_ACEOF
20543cat confdefs.h >>conftest.$ac_ext
20544cat >>conftest.$ac_ext <<_ACEOF
20545/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020546$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020547int
20548main ()
20549{
20550if ((uint64_t *) 0)
20551 return 0;
20552if (sizeof (uint64_t))
20553 return 0;
20554 ;
20555 return 0;
20556}
20557_ACEOF
20558rm -f conftest.$ac_objext
20559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20560 (eval $ac_compile) 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } &&
20564 { ac_try='test -s conftest.$ac_objext'
20565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566 (eval $ac_try) 2>&5
20567 ac_status=$?
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; }; then
20570 ac_cv_type_uint64_t=yes
20571else
20572 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020573sed 's/^/| /' conftest.$ac_ext >&5
20574
John Criswell7a73b802003-06-30 21:59:07 +000020575ac_cv_type_uint64_t=no
20576fi
20577rm -f conftest.$ac_objext conftest.$ac_ext
20578fi
20579echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20580echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20581if test $ac_cv_type_uint64_t = yes; then
20582
20583cat >>confdefs.h <<_ACEOF
20584#define HAVE_UINT64_T 1
20585_ACEOF
20586
20587
20588else
20589 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20590echo "$as_me: error: Type uint64_t required but not found" >&2;}
20591 { (exit 1); exit 1; }; }
20592fi
20593
20594echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20595echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20596if test "${ac_cv_header_time+set}" = set; then
20597 echo $ECHO_N "(cached) $ECHO_C" >&6
20598else
20599 cat >conftest.$ac_ext <<_ACEOF
20600#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020601/* confdefs.h. */
20602_ACEOF
20603cat confdefs.h >>conftest.$ac_ext
20604cat >>conftest.$ac_ext <<_ACEOF
20605/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020606#include <sys/types.h>
20607#include <sys/time.h>
20608#include <time.h>
20609
John Criswell7a73b802003-06-30 21:59:07 +000020610int
20611main ()
20612{
20613if ((struct tm *) 0)
20614return 0;
20615 ;
20616 return 0;
20617}
20618_ACEOF
20619rm -f conftest.$ac_objext
20620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20621 (eval $ac_compile) 2>&5
20622 ac_status=$?
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); } &&
20625 { ac_try='test -s conftest.$ac_objext'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 ac_cv_header_time=yes
20632else
20633 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020634sed 's/^/| /' conftest.$ac_ext >&5
20635
John Criswell7a73b802003-06-30 21:59:07 +000020636ac_cv_header_time=no
20637fi
20638rm -f conftest.$ac_objext conftest.$ac_ext
20639fi
20640echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20641echo "${ECHO_T}$ac_cv_header_time" >&6
20642if test $ac_cv_header_time = yes; then
20643
20644cat >>confdefs.h <<\_ACEOF
20645#define TIME_WITH_SYS_TIME 1
20646_ACEOF
20647
20648fi
20649
20650echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20651echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20652if test "${ac_cv_struct_tm+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20654else
20655 cat >conftest.$ac_ext <<_ACEOF
20656#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020657/* confdefs.h. */
20658_ACEOF
20659cat confdefs.h >>conftest.$ac_ext
20660cat >>conftest.$ac_ext <<_ACEOF
20661/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020662#include <sys/types.h>
20663#include <time.h>
20664
John Criswell7a73b802003-06-30 21:59:07 +000020665int
20666main ()
20667{
20668struct tm *tp; tp->tm_sec;
20669 ;
20670 return 0;
20671}
20672_ACEOF
20673rm -f conftest.$ac_objext
20674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20675 (eval $ac_compile) 2>&5
20676 ac_status=$?
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); } &&
20679 { ac_try='test -s conftest.$ac_objext'
20680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681 (eval $ac_try) 2>&5
20682 ac_status=$?
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; }; then
20685 ac_cv_struct_tm=time.h
20686else
20687 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020688sed 's/^/| /' conftest.$ac_ext >&5
20689
John Criswell7a73b802003-06-30 21:59:07 +000020690ac_cv_struct_tm=sys/time.h
20691fi
20692rm -f conftest.$ac_objext conftest.$ac_ext
20693fi
20694echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20695echo "${ECHO_T}$ac_cv_struct_tm" >&6
20696if test $ac_cv_struct_tm = sys/time.h; then
20697
20698cat >>confdefs.h <<\_ACEOF
20699#define TM_IN_SYS_TIME 1
20700_ACEOF
20701
20702fi
20703
20704
John Criswella0137d32003-10-13 16:22:01 +000020705
20706
20707
20708 ac_ext=c
20709ac_cpp='$CPP $CPPFLAGS'
20710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20712ac_compiler_gnu=$ac_cv_c_compiler_gnu
20713
20714 if test "$cross_compiling" = yes; then
20715 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20716See \`config.log' for more details." >&5
20717echo "$as_me: error: cannot run test program while cross compiling
20718See \`config.log' for more details." >&2;}
20719 { (exit 1); exit 1; }; }
20720else
20721 cat >conftest.$ac_ext <<_ACEOF
20722#line $LINENO "configure"
20723/* confdefs.h. */
20724_ACEOF
20725cat confdefs.h >>conftest.$ac_ext
20726cat >>conftest.$ac_ext <<_ACEOF
20727/* end confdefs.h. */
20728#include <stdio.h>
20729 #include <stdlib.h>
20730int
20731main ()
20732{
20733
20734 volatile double A, B;
20735 char Buffer[100];
20736 A = 1;
20737 A /= 10.0;
20738 sprintf(Buffer, "%a", A);
20739 B = atof(Buffer);
20740 if (A != B)
20741 return (1);
20742 if (A != 0x1.999999999999ap-4)
20743 return (1);
20744 return (0);
20745 ;
20746 return 0;
20747}
20748_ACEOF
20749rm -f conftest$ac_exeext
20750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20751 (eval $ac_link) 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20757 ac_status=$?
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; }; then
20760 ac_c_printf_a=yes
20761else
20762 echo "$as_me: program exited with status $ac_status" >&5
20763echo "$as_me: failed program was:" >&5
20764sed 's/^/| /' conftest.$ac_ext >&5
20765
20766( exit $ac_status )
20767ac_c_printf_a=no
20768fi
20769rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20770fi
20771 ac_ext=c
20772ac_cpp='$CPP $CPPFLAGS'
20773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20775ac_compiler_gnu=$ac_cv_c_compiler_gnu
20776
20777 if test "$ac_c_printf_a" = "yes"; then
20778
20779cat >>confdefs.h <<\_ACEOF
20780#define HAVE_PRINTF_A 1
20781_ACEOF
20782
20783 fi
20784
20785
John Criswell7a73b802003-06-30 21:59:07 +000020786echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20787echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20788if test "${ac_cv_cxx_namespaces+set}" = set; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20790else
20791
20792
20793 ac_ext=cc
20794ac_cpp='$CXXCPP $CPPFLAGS'
20795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20798
20799 cat >conftest.$ac_ext <<_ACEOF
20800#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020801/* confdefs.h. */
20802_ACEOF
20803cat confdefs.h >>conftest.$ac_ext
20804cat >>conftest.$ac_ext <<_ACEOF
20805/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020806namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020807int
20808main ()
20809{
20810using namespace Outer::Inner; return i;
20811 ;
20812 return 0;
20813}
20814_ACEOF
20815rm -f conftest.$ac_objext
20816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20817 (eval $ac_compile) 2>&5
20818 ac_status=$?
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } &&
20821 { ac_try='test -s conftest.$ac_objext'
20822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20823 (eval $ac_try) 2>&5
20824 ac_status=$?
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; }; then
20827 ac_cv_cxx_namespaces=yes
20828else
20829 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020830sed 's/^/| /' conftest.$ac_ext >&5
20831
John Criswell7a73b802003-06-30 21:59:07 +000020832ac_cv_cxx_namespaces=no
20833fi
20834rm -f conftest.$ac_objext conftest.$ac_ext
20835 ac_ext=c
20836ac_cpp='$CPP $CPPFLAGS'
20837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20839ac_compiler_gnu=$ac_cv_c_compiler_gnu
20840
20841
20842fi
20843echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20844echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20845if test "$ac_cv_cxx_namespaces" = yes; then
20846
20847cat >>confdefs.h <<\_ACEOF
20848#define HAVE_NAMESPACES
20849_ACEOF
20850
20851fi
20852
20853echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20854echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20855if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20857else
20858
20859
20860
20861 ac_ext=cc
20862ac_cpp='$CXXCPP $CPPFLAGS'
20863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20866
20867 cat >conftest.$ac_ext <<_ACEOF
20868#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020869/* confdefs.h. */
20870_ACEOF
20871cat confdefs.h >>conftest.$ac_ext
20872cat >>conftest.$ac_ext <<_ACEOF
20873/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020874#include <ext/hash_map>
20875#ifdef HAVE_NAMESPACES
20876using namespace std;
20877#endif
John Criswell7a73b802003-06-30 21:59:07 +000020878int
20879main ()
20880{
20881hash_map<int, int> t; return 0;
20882 ;
20883 return 0;
20884}
20885_ACEOF
20886rm -f conftest.$ac_objext
20887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20888 (eval $ac_compile) 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } &&
20892 { ac_try='test -s conftest.$ac_objext'
20893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894 (eval $ac_try) 2>&5
20895 ac_status=$?
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; }; then
20898 ac_cv_cxx_have_ext_hash_map=std
20899else
20900 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020901sed 's/^/| /' conftest.$ac_ext >&5
20902
John Criswell7a73b802003-06-30 21:59:07 +000020903ac_cv_cxx_have_ext_hash_map=no
20904fi
20905rm -f conftest.$ac_objext conftest.$ac_ext
20906 cat >conftest.$ac_ext <<_ACEOF
20907#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020908/* confdefs.h. */
20909_ACEOF
20910cat confdefs.h >>conftest.$ac_ext
20911cat >>conftest.$ac_ext <<_ACEOF
20912/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020913#include <ext/hash_map>
20914#ifdef HAVE_NAMESPACES
20915using namespace __gnu_cxx;
20916#endif
John Criswell7a73b802003-06-30 21:59:07 +000020917int
20918main ()
20919{
20920hash_map<int, int> t; return 0;
20921 ;
20922 return 0;
20923}
20924_ACEOF
20925rm -f conftest.$ac_objext
20926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20927 (eval $ac_compile) 2>&5
20928 ac_status=$?
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } &&
20931 { ac_try='test -s conftest.$ac_objext'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; }; then
20937 ac_cv_cxx_have_ext_hash_map=gnu
20938else
20939 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020940sed 's/^/| /' conftest.$ac_ext >&5
20941
John Criswell7a73b802003-06-30 21:59:07 +000020942ac_cv_cxx_have_ext_hash_map=no
20943fi
20944rm -f conftest.$ac_objext conftest.$ac_ext
20945 ac_ext=c
20946ac_cpp='$CPP $CPPFLAGS'
20947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20949ac_compiler_gnu=$ac_cv_c_compiler_gnu
20950
20951
20952fi
20953echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20954echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20955if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20956
20957cat >>confdefs.h <<\_ACEOF
20958#define HAVE_STD_EXT_HASH_MAP
20959_ACEOF
20960
20961fi
20962if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20963
20964cat >>confdefs.h <<\_ACEOF
20965#define HAVE_GNU_EXT_HASH_MAP
20966_ACEOF
20967
20968fi
20969
20970echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20971echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20972if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20974else
20975
20976
20977
20978 ac_ext=cc
20979ac_cpp='$CXXCPP $CPPFLAGS'
20980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20983
20984 cat >conftest.$ac_ext <<_ACEOF
20985#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020986/* confdefs.h. */
20987_ACEOF
20988cat confdefs.h >>conftest.$ac_ext
20989cat >>conftest.$ac_ext <<_ACEOF
20990/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020991#include <ext/hash_set>
20992#ifdef HAVE_NAMESPACES
20993using namespace std;
20994#endif
John Criswell7a73b802003-06-30 21:59:07 +000020995int
20996main ()
20997{
20998hash_set<int> t; return 0;
20999 ;
21000 return 0;
21001}
21002_ACEOF
21003rm -f conftest.$ac_objext
21004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21005 (eval $ac_compile) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
21009 { ac_try='test -s conftest.$ac_objext'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; }; then
21015 ac_cv_cxx_have_ext_hash_set=std
21016else
21017 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021018sed 's/^/| /' conftest.$ac_ext >&5
21019
John Criswell7a73b802003-06-30 21:59:07 +000021020ac_cv_cxx_have_ext_hash_set=no
21021fi
21022rm -f conftest.$ac_objext conftest.$ac_ext
21023 cat >conftest.$ac_ext <<_ACEOF
21024#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021025/* confdefs.h. */
21026_ACEOF
21027cat confdefs.h >>conftest.$ac_ext
21028cat >>conftest.$ac_ext <<_ACEOF
21029/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021030#include <ext/hash_set>
21031#ifdef HAVE_NAMESPACES
21032using namespace __gnu_cxx;
21033#endif
John Criswell7a73b802003-06-30 21:59:07 +000021034int
21035main ()
21036{
21037hash_set<int> t; return 0;
21038 ;
21039 return 0;
21040}
21041_ACEOF
21042rm -f conftest.$ac_objext
21043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21044 (eval $ac_compile) 2>&5
21045 ac_status=$?
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } &&
21048 { ac_try='test -s conftest.$ac_objext'
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; }; then
21054 ac_cv_cxx_have_ext_hash_set=gnu
21055else
21056 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021057sed 's/^/| /' conftest.$ac_ext >&5
21058
John Criswell7a73b802003-06-30 21:59:07 +000021059ac_cv_cxx_have_ext_hash_set=no
21060fi
21061rm -f conftest.$ac_objext conftest.$ac_ext
21062 ac_ext=c
21063ac_cpp='$CPP $CPPFLAGS'
21064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21066ac_compiler_gnu=$ac_cv_c_compiler_gnu
21067
21068
21069fi
21070echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21071echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21072if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21073
21074cat >>confdefs.h <<\_ACEOF
21075#define HAVE_STD_EXT_HASH_SET
21076_ACEOF
21077
21078fi
21079if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21080
21081cat >>confdefs.h <<\_ACEOF
21082#define HAVE_GNU_EXT_HASH_SET
21083_ACEOF
21084
21085fi
21086
21087echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21088echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21089if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21090 echo $ECHO_N "(cached) $ECHO_C" >&6
21091else
21092
21093
21094
21095 ac_ext=cc
21096ac_cpp='$CXXCPP $CPPFLAGS'
21097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21100
21101 cat >conftest.$ac_ext <<_ACEOF
21102#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021103/* confdefs.h. */
21104_ACEOF
21105cat confdefs.h >>conftest.$ac_ext
21106cat >>conftest.$ac_ext <<_ACEOF
21107/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021108#include <ext/slist>
21109#ifdef HAVE_NAMESPACES
21110using namespace std;
21111#endif
John Criswell7a73b802003-06-30 21:59:07 +000021112int
21113main ()
21114{
21115slist<int> s; return 0;
21116 ;
21117 return 0;
21118}
21119_ACEOF
21120rm -f conftest.$ac_objext
21121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21122 (eval $ac_compile) 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); } &&
21126 { ac_try='test -s conftest.$ac_objext'
21127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128 (eval $ac_try) 2>&5
21129 ac_status=$?
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; }; then
21132 ac_cv_cxx_have_ext_slist=std
21133else
21134 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021135sed 's/^/| /' conftest.$ac_ext >&5
21136
John Criswell7a73b802003-06-30 21:59:07 +000021137ac_cv_cxx_have_ext_slist=no
21138fi
21139rm -f conftest.$ac_objext conftest.$ac_ext
21140 cat >conftest.$ac_ext <<_ACEOF
21141#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021142/* confdefs.h. */
21143_ACEOF
21144cat confdefs.h >>conftest.$ac_ext
21145cat >>conftest.$ac_ext <<_ACEOF
21146/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021147#include <ext/slist>
21148#ifdef HAVE_NAMESPACES
21149using namespace __gnu_cxx;
21150#endif
John Criswell7a73b802003-06-30 21:59:07 +000021151int
21152main ()
21153{
21154slist<int> s; return 0;
21155 ;
21156 return 0;
21157}
21158_ACEOF
21159rm -f conftest.$ac_objext
21160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21161 (eval $ac_compile) 2>&5
21162 ac_status=$?
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); } &&
21165 { ac_try='test -s conftest.$ac_objext'
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21168 ac_status=$?
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; }; then
21171 ac_cv_cxx_have_ext_slist=gnu
21172else
21173 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021174sed 's/^/| /' conftest.$ac_ext >&5
21175
John Criswell7a73b802003-06-30 21:59:07 +000021176ac_cv_cxx_have_ext_slist=no
21177fi
21178rm -f conftest.$ac_objext conftest.$ac_ext
21179
21180 ac_ext=c
21181ac_cpp='$CPP $CPPFLAGS'
21182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21184ac_compiler_gnu=$ac_cv_c_compiler_gnu
21185
21186
21187fi
21188echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21189echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21190if test "$ac_cv_cxx_have_ext_slist" = std; then
21191
21192cat >>confdefs.h <<\_ACEOF
21193#define HAVE_EXT_SLIST std
21194_ACEOF
21195
21196fi
21197if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21198
21199cat >>confdefs.h <<\_ACEOF
21200#define HAVE_EXT_SLIST gnu
21201_ACEOF
21202
21203fi
21204
21205echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21206echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21207if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21208 echo $ECHO_N "(cached) $ECHO_C" >&6
21209else
21210
21211
21212
21213 ac_ext=cc
21214ac_cpp='$CXXCPP $CPPFLAGS'
21215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21218
21219 cat >conftest.$ac_ext <<_ACEOF
21220#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021221/* confdefs.h. */
21222_ACEOF
21223cat confdefs.h >>conftest.$ac_ext
21224cat >>conftest.$ac_ext <<_ACEOF
21225/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021226#include <iterator>
21227#ifdef HAVE_NAMESPACES
21228using namespace std;
21229#endif
John Criswell7a73b802003-06-30 21:59:07 +000021230int
21231main ()
21232{
21233iterator<int,int,int> t; return 0;
21234 ;
21235 return 0;
21236}
21237_ACEOF
21238rm -f conftest.$ac_objext
21239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21240 (eval $ac_compile) 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } &&
21244 { ac_try='test -s conftest.$ac_objext'
21245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246 (eval $ac_try) 2>&5
21247 ac_status=$?
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; }; then
21250 ac_cv_cxx_have_std_iterator=yes
21251else
21252 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021253sed 's/^/| /' conftest.$ac_ext >&5
21254
John Criswell7a73b802003-06-30 21:59:07 +000021255ac_cv_cxx_have_std_iterator=no
21256fi
21257rm -f conftest.$ac_objext conftest.$ac_ext
21258 ac_ext=c
21259ac_cpp='$CPP $CPPFLAGS'
21260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21262ac_compiler_gnu=$ac_cv_c_compiler_gnu
21263
21264
21265fi
21266echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21267echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21268if test "$ac_cv_cxx_have_std_iterator" = yes; then
21269
21270cat >>confdefs.h <<\_ACEOF
21271#define HAVE_STD_ITERATOR
21272_ACEOF
21273
21274fi
21275
21276echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21277echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21278if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21280else
21281
21282
21283
21284 ac_ext=cc
21285ac_cpp='$CXXCPP $CPPFLAGS'
21286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21289
21290 cat >conftest.$ac_ext <<_ACEOF
21291#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021292/* confdefs.h. */
21293_ACEOF
21294cat confdefs.h >>conftest.$ac_ext
21295cat >>conftest.$ac_ext <<_ACEOF
21296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021297#include <iterator>
21298#ifdef HAVE_NAMESPACES
21299using namespace std;
21300#endif
John Criswell7a73b802003-06-30 21:59:07 +000021301int
21302main ()
21303{
John Criswellc78022e2003-07-29 19:11:58 +000021304bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021305 ;
21306 return 0;
21307}
21308_ACEOF
21309rm -f conftest.$ac_objext
21310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21311 (eval $ac_compile) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); } &&
21315 { ac_try='test -s conftest.$ac_objext'
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21318 ac_status=$?
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
21321 ac_cv_cxx_have_bi_iterator=yes
21322else
21323 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021324sed 's/^/| /' conftest.$ac_ext >&5
21325
John Criswell7a73b802003-06-30 21:59:07 +000021326ac_cv_cxx_have_bi_iterator=no
21327fi
21328rm -f conftest.$ac_objext conftest.$ac_ext
21329 ac_ext=c
21330ac_cpp='$CPP $CPPFLAGS'
21331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21333ac_compiler_gnu=$ac_cv_c_compiler_gnu
21334
21335
21336fi
21337echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21338echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21339if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21340
21341cat >>confdefs.h <<\_ACEOF
21342#define HAVE_BI_ITERATOR
21343_ACEOF
21344
21345fi
21346
21347echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21348echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21349if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21351else
21352
21353
21354
21355 ac_ext=cc
21356ac_cpp='$CXXCPP $CPPFLAGS'
21357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21360
21361 cat >conftest.$ac_ext <<_ACEOF
21362#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021363/* confdefs.h. */
21364_ACEOF
21365cat confdefs.h >>conftest.$ac_ext
21366cat >>conftest.$ac_ext <<_ACEOF
21367/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021368#include <iterator>
21369#ifdef HAVE_NAMESPACES
21370using namespace std;
21371#endif
John Criswell7a73b802003-06-30 21:59:07 +000021372int
21373main ()
21374{
John Criswellc78022e2003-07-29 19:11:58 +000021375forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021376 ;
21377 return 0;
21378}
21379_ACEOF
21380rm -f conftest.$ac_objext
21381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21382 (eval $ac_compile) 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } &&
21386 { ac_try='test -s conftest.$ac_objext'
21387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21388 (eval $ac_try) 2>&5
21389 ac_status=$?
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); }; }; then
21392 ac_cv_cxx_have_fwd_iterator=yes
21393else
21394 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021395sed 's/^/| /' conftest.$ac_ext >&5
21396
John Criswell7a73b802003-06-30 21:59:07 +000021397ac_cv_cxx_have_fwd_iterator=no
21398fi
21399rm -f conftest.$ac_objext conftest.$ac_ext
21400 ac_ext=c
21401ac_cpp='$CPP $CPPFLAGS'
21402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21404ac_compiler_gnu=$ac_cv_c_compiler_gnu
21405
21406
21407fi
21408echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21409echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21410if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21411
21412cat >>confdefs.h <<\_ACEOF
21413#define HAVE_FWD_ITERATOR
21414_ACEOF
21415
21416fi
21417
21418
21419# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21420# for constant arguments. Useless!
21421echo "$as_me:$LINENO: checking for working alloca.h" >&5
21422echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21423if test "${ac_cv_working_alloca_h+set}" = set; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21425else
21426 cat >conftest.$ac_ext <<_ACEOF
21427#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021428/* confdefs.h. */
21429_ACEOF
21430cat confdefs.h >>conftest.$ac_ext
21431cat >>conftest.$ac_ext <<_ACEOF
21432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021433#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021434int
21435main ()
21436{
21437char *p = (char *) alloca (2 * sizeof (int));
21438 ;
21439 return 0;
21440}
21441_ACEOF
21442rm -f conftest.$ac_objext conftest$ac_exeext
21443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21444 (eval $ac_link) 2>&5
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } &&
21448 { ac_try='test -s conftest$ac_exeext'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 ac_cv_working_alloca_h=yes
21455else
21456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021457sed 's/^/| /' conftest.$ac_ext >&5
21458
John Criswell7a73b802003-06-30 21:59:07 +000021459ac_cv_working_alloca_h=no
21460fi
21461rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21462fi
21463echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21464echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21465if test $ac_cv_working_alloca_h = yes; then
21466
21467cat >>confdefs.h <<\_ACEOF
21468#define HAVE_ALLOCA_H 1
21469_ACEOF
21470
21471fi
21472
21473echo "$as_me:$LINENO: checking for alloca" >&5
21474echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21475if test "${ac_cv_func_alloca_works+set}" = set; then
21476 echo $ECHO_N "(cached) $ECHO_C" >&6
21477else
21478 cat >conftest.$ac_ext <<_ACEOF
21479#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021480/* confdefs.h. */
21481_ACEOF
21482cat confdefs.h >>conftest.$ac_ext
21483cat >>conftest.$ac_ext <<_ACEOF
21484/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021485#ifdef __GNUC__
21486# define alloca __builtin_alloca
21487#else
21488# ifdef _MSC_VER
21489# include <malloc.h>
21490# define alloca _alloca
21491# else
21492# if HAVE_ALLOCA_H
21493# include <alloca.h>
21494# else
21495# ifdef _AIX
21496 #pragma alloca
21497# else
21498# ifndef alloca /* predefined by HP cc +Olibcalls */
21499char *alloca ();
21500# endif
21501# endif
21502# endif
21503# endif
21504#endif
21505
John Criswell7a73b802003-06-30 21:59:07 +000021506int
21507main ()
21508{
21509char *p = (char *) alloca (1);
21510 ;
21511 return 0;
21512}
21513_ACEOF
21514rm -f conftest.$ac_objext conftest$ac_exeext
21515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21516 (eval $ac_link) 2>&5
21517 ac_status=$?
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); } &&
21520 { ac_try='test -s conftest$ac_exeext'
21521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522 (eval $ac_try) 2>&5
21523 ac_status=$?
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
21526 ac_cv_func_alloca_works=yes
21527else
21528 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021529sed 's/^/| /' conftest.$ac_ext >&5
21530
John Criswell7a73b802003-06-30 21:59:07 +000021531ac_cv_func_alloca_works=no
21532fi
21533rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21534fi
21535echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21536echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21537
21538if test $ac_cv_func_alloca_works = yes; then
21539
21540cat >>confdefs.h <<\_ACEOF
21541#define HAVE_ALLOCA 1
21542_ACEOF
21543
21544else
21545 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21546# that cause trouble. Some versions do not even contain alloca or
21547# contain a buggy version. If you still want to use their alloca,
21548# use ar to extract alloca.o from them instead of compiling alloca.c.
21549
21550ALLOCA=alloca.$ac_objext
21551
21552cat >>confdefs.h <<\_ACEOF
21553#define C_ALLOCA 1
21554_ACEOF
21555
21556
21557echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21558echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21559if test "${ac_cv_os_cray+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21561else
21562 cat >conftest.$ac_ext <<_ACEOF
21563#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021564/* confdefs.h. */
21565_ACEOF
21566cat confdefs.h >>conftest.$ac_ext
21567cat >>conftest.$ac_ext <<_ACEOF
21568/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021569#if defined(CRAY) && ! defined(CRAY2)
21570webecray
21571#else
21572wenotbecray
21573#endif
21574
21575_ACEOF
21576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021577 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021578 ac_cv_os_cray=yes
21579else
21580 ac_cv_os_cray=no
21581fi
21582rm -f conftest*
21583
21584fi
21585echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21586echo "${ECHO_T}$ac_cv_os_cray" >&6
21587if test $ac_cv_os_cray = yes; then
21588 for ac_func in _getb67 GETB67 getb67; do
21589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21590echo "$as_me:$LINENO: checking for $ac_func" >&5
21591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21592if eval "test \"\${$as_ac_var+set}\" = set"; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21594else
21595 cat >conftest.$ac_ext <<_ACEOF
21596#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021597/* confdefs.h. */
21598_ACEOF
21599cat confdefs.h >>conftest.$ac_ext
21600cat >>conftest.$ac_ext <<_ACEOF
21601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021602/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021603 which can conflict with char $ac_func (); below.
21604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21605 <limits.h> exists even on freestanding compilers. */
21606#ifdef __STDC__
21607# include <limits.h>
21608#else
21609# include <assert.h>
21610#endif
John Criswell7a73b802003-06-30 21:59:07 +000021611/* Override any gcc2 internal prototype to avoid an error. */
21612#ifdef __cplusplus
21613extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021614{
John Criswell7a73b802003-06-30 21:59:07 +000021615#endif
21616/* We use char because int might match the return type of a gcc2
21617 builtin and then its argument prototype would still apply. */
21618char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021619/* The GNU C library defines this for functions which it implements
21620 to always fail with ENOSYS. Some functions are actually named
21621 something starting with __ and the normal name is an alias. */
21622#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21623choke me
21624#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021625char (*f) () = $ac_func;
21626#endif
21627#ifdef __cplusplus
21628}
John Criswell7a73b802003-06-30 21:59:07 +000021629#endif
21630
John Criswell0c38eaf2003-09-10 15:17:25 +000021631int
21632main ()
21633{
21634return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021635 ;
21636 return 0;
21637}
21638_ACEOF
21639rm -f conftest.$ac_objext conftest$ac_exeext
21640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21641 (eval $ac_link) 2>&5
21642 ac_status=$?
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } &&
21645 { ac_try='test -s conftest$ac_exeext'
21646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647 (eval $ac_try) 2>&5
21648 ac_status=$?
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); }; }; then
21651 eval "$as_ac_var=yes"
21652else
21653 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021654sed 's/^/| /' conftest.$ac_ext >&5
21655
John Criswell7a73b802003-06-30 21:59:07 +000021656eval "$as_ac_var=no"
21657fi
21658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21659fi
21660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21661echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21662if test `eval echo '${'$as_ac_var'}'` = yes; then
21663
21664cat >>confdefs.h <<_ACEOF
21665#define CRAY_STACKSEG_END $ac_func
21666_ACEOF
21667
21668 break
21669fi
21670
21671 done
21672fi
21673
21674echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21675echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21676if test "${ac_cv_c_stack_direction+set}" = set; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21678else
21679 if test "$cross_compiling" = yes; then
21680 ac_cv_c_stack_direction=0
21681else
21682 cat >conftest.$ac_ext <<_ACEOF
21683#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021684/* confdefs.h. */
21685_ACEOF
21686cat confdefs.h >>conftest.$ac_ext
21687cat >>conftest.$ac_ext <<_ACEOF
21688/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021689int
21690find_stack_direction ()
21691{
21692 static char *addr = 0;
21693 auto char dummy;
21694 if (addr == 0)
21695 {
21696 addr = &dummy;
21697 return find_stack_direction ();
21698 }
21699 else
21700 return (&dummy > addr) ? 1 : -1;
21701}
21702
21703int
21704main ()
21705{
21706 exit (find_stack_direction () < 0);
21707}
21708_ACEOF
21709rm -f conftest$ac_exeext
21710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21711 (eval $ac_link) 2>&5
21712 ac_status=$?
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21716 (eval $ac_try) 2>&5
21717 ac_status=$?
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); }; }; then
21720 ac_cv_c_stack_direction=1
21721else
21722 echo "$as_me: program exited with status $ac_status" >&5
21723echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021724sed 's/^/| /' conftest.$ac_ext >&5
21725
John Criswell7a73b802003-06-30 21:59:07 +000021726( exit $ac_status )
21727ac_cv_c_stack_direction=-1
21728fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021729rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021730fi
21731fi
21732echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21733echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21734
21735cat >>confdefs.h <<_ACEOF
21736#define STACK_DIRECTION $ac_cv_c_stack_direction
21737_ACEOF
21738
21739
21740fi
21741
21742if test $ac_cv_c_compiler_gnu = yes; then
21743 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21744echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21745if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21747else
21748 ac_pattern="Autoconf.*'x'"
21749 cat >conftest.$ac_ext <<_ACEOF
21750#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021751/* confdefs.h. */
21752_ACEOF
21753cat confdefs.h >>conftest.$ac_ext
21754cat >>conftest.$ac_ext <<_ACEOF
21755/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021756#include <sgtty.h>
21757Autoconf TIOCGETP
21758_ACEOF
21759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021760 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021761 ac_cv_prog_gcc_traditional=yes
21762else
21763 ac_cv_prog_gcc_traditional=no
21764fi
21765rm -f conftest*
21766
21767
21768 if test $ac_cv_prog_gcc_traditional = no; then
21769 cat >conftest.$ac_ext <<_ACEOF
21770#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021771/* confdefs.h. */
21772_ACEOF
21773cat confdefs.h >>conftest.$ac_ext
21774cat >>conftest.$ac_ext <<_ACEOF
21775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021776#include <termio.h>
21777Autoconf TCGETA
21778_ACEOF
21779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021780 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021781 ac_cv_prog_gcc_traditional=yes
21782fi
21783rm -f conftest*
21784
21785 fi
21786fi
21787echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21788echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21789 if test $ac_cv_prog_gcc_traditional = yes; then
21790 CC="$CC -traditional"
21791 fi
21792fi
21793
21794echo "$as_me:$LINENO: checking for working memcmp" >&5
21795echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21796if test "${ac_cv_func_memcmp_working+set}" = set; then
21797 echo $ECHO_N "(cached) $ECHO_C" >&6
21798else
21799 if test "$cross_compiling" = yes; then
21800 ac_cv_func_memcmp_working=no
21801else
21802 cat >conftest.$ac_ext <<_ACEOF
21803#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021804/* confdefs.h. */
21805_ACEOF
21806cat confdefs.h >>conftest.$ac_ext
21807cat >>conftest.$ac_ext <<_ACEOF
21808/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021809
John Criswell7a73b802003-06-30 21:59:07 +000021810int
21811main ()
21812{
21813
21814 /* Some versions of memcmp are not 8-bit clean. */
21815 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21816 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21817 exit (1);
21818
21819 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21820 or more and with at least one buffer not starting on a 4-byte boundary.
21821 William Lewis provided this test program. */
21822 {
21823 char foo[21];
21824 char bar[21];
21825 int i;
21826 for (i = 0; i < 4; i++)
21827 {
21828 char *a = foo + i;
21829 char *b = bar + i;
21830 strcpy (a, "--------01111111");
21831 strcpy (b, "--------10000000");
21832 if (memcmp (a, b, 16) >= 0)
21833 exit (1);
21834 }
21835 exit (0);
21836 }
21837
21838 ;
21839 return 0;
21840}
21841_ACEOF
21842rm -f conftest$ac_exeext
21843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21844 (eval $ac_link) 2>&5
21845 ac_status=$?
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849 (eval $ac_try) 2>&5
21850 ac_status=$?
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21853 ac_cv_func_memcmp_working=yes
21854else
21855 echo "$as_me: program exited with status $ac_status" >&5
21856echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021857sed 's/^/| /' conftest.$ac_ext >&5
21858
John Criswell7a73b802003-06-30 21:59:07 +000021859( exit $ac_status )
21860ac_cv_func_memcmp_working=no
21861fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021862rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021863fi
21864fi
21865echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21866echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21867test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21868
21869
21870
21871for ac_header in stdlib.h unistd.h
21872do
21873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21874if eval "test \"\${$as_ac_Header+set}\" = set"; then
21875 echo "$as_me:$LINENO: checking for $ac_header" >&5
21876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21877if eval "test \"\${$as_ac_Header+set}\" = set"; then
21878 echo $ECHO_N "(cached) $ECHO_C" >&6
21879fi
21880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21882else
21883 # Is the header compilable?
21884echo "$as_me:$LINENO: checking $ac_header usability" >&5
21885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21886cat >conftest.$ac_ext <<_ACEOF
21887#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021888/* confdefs.h. */
21889_ACEOF
21890cat confdefs.h >>conftest.$ac_ext
21891cat >>conftest.$ac_ext <<_ACEOF
21892/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021893$ac_includes_default
21894#include <$ac_header>
21895_ACEOF
21896rm -f conftest.$ac_objext
21897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21898 (eval $ac_compile) 2>&5
21899 ac_status=$?
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } &&
21902 { ac_try='test -s conftest.$ac_objext'
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21905 ac_status=$?
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; }; then
21908 ac_header_compiler=yes
21909else
21910 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021911sed 's/^/| /' conftest.$ac_ext >&5
21912
John Criswell7a73b802003-06-30 21:59:07 +000021913ac_header_compiler=no
21914fi
21915rm -f conftest.$ac_objext conftest.$ac_ext
21916echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21917echo "${ECHO_T}$ac_header_compiler" >&6
21918
21919# Is the header present?
21920echo "$as_me:$LINENO: checking $ac_header presence" >&5
21921echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21922cat >conftest.$ac_ext <<_ACEOF
21923#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021924/* confdefs.h. */
21925_ACEOF
21926cat confdefs.h >>conftest.$ac_ext
21927cat >>conftest.$ac_ext <<_ACEOF
21928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021929#include <$ac_header>
21930_ACEOF
21931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21933 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021934 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021935 rm -f conftest.er1
21936 cat conftest.err >&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } >/dev/null; then
21939 if test -s conftest.err; then
21940 ac_cpp_err=$ac_c_preproc_warn_flag
21941 else
21942 ac_cpp_err=
21943 fi
21944else
21945 ac_cpp_err=yes
21946fi
21947if test -z "$ac_cpp_err"; then
21948 ac_header_preproc=yes
21949else
21950 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021951sed 's/^/| /' conftest.$ac_ext >&5
21952
John Criswell7a73b802003-06-30 21:59:07 +000021953 ac_header_preproc=no
21954fi
21955rm -f conftest.err conftest.$ac_ext
21956echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21957echo "${ECHO_T}$ac_header_preproc" >&6
21958
21959# So? What about this header?
21960case $ac_header_compiler:$ac_header_preproc in
21961 yes:no )
21962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21963echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21966 (
21967 cat <<\_ASBOX
21968## ------------------------------------ ##
21969## Report this to bug-autoconf@gnu.org. ##
21970## ------------------------------------ ##
21971_ASBOX
21972 ) |
21973 sed "s/^/$as_me: WARNING: /" >&2
21974 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021975 no:yes )
21976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21977echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21979echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21982 (
21983 cat <<\_ASBOX
21984## ------------------------------------ ##
21985## Report this to bug-autoconf@gnu.org. ##
21986## ------------------------------------ ##
21987_ASBOX
21988 ) |
21989 sed "s/^/$as_me: WARNING: /" >&2
21990 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021991esac
21992echo "$as_me:$LINENO: checking for $ac_header" >&5
21993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21994if eval "test \"\${$as_ac_Header+set}\" = set"; then
21995 echo $ECHO_N "(cached) $ECHO_C" >&6
21996else
21997 eval "$as_ac_Header=$ac_header_preproc"
21998fi
21999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22001
22002fi
22003if test `eval echo '${'$as_ac_Header'}'` = yes; then
22004 cat >>confdefs.h <<_ACEOF
22005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22006_ACEOF
22007
22008fi
22009
22010done
22011
22012
22013for ac_func in getpagesize
22014do
22015as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22016echo "$as_me:$LINENO: checking for $ac_func" >&5
22017echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22018if eval "test \"\${$as_ac_var+set}\" = set"; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22020else
22021 cat >conftest.$ac_ext <<_ACEOF
22022#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022023/* confdefs.h. */
22024_ACEOF
22025cat confdefs.h >>conftest.$ac_ext
22026cat >>conftest.$ac_ext <<_ACEOF
22027/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022028/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022029 which can conflict with char $ac_func (); below.
22030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22031 <limits.h> exists even on freestanding compilers. */
22032#ifdef __STDC__
22033# include <limits.h>
22034#else
22035# include <assert.h>
22036#endif
John Criswell7a73b802003-06-30 21:59:07 +000022037/* Override any gcc2 internal prototype to avoid an error. */
22038#ifdef __cplusplus
22039extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022040{
John Criswell7a73b802003-06-30 21:59:07 +000022041#endif
22042/* We use char because int might match the return type of a gcc2
22043 builtin and then its argument prototype would still apply. */
22044char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022045/* The GNU C library defines this for functions which it implements
22046 to always fail with ENOSYS. Some functions are actually named
22047 something starting with __ and the normal name is an alias. */
22048#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22049choke me
22050#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022051char (*f) () = $ac_func;
22052#endif
22053#ifdef __cplusplus
22054}
John Criswell7a73b802003-06-30 21:59:07 +000022055#endif
22056
John Criswell0c38eaf2003-09-10 15:17:25 +000022057int
22058main ()
22059{
22060return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022061 ;
22062 return 0;
22063}
22064_ACEOF
22065rm -f conftest.$ac_objext conftest$ac_exeext
22066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22067 (eval $ac_link) 2>&5
22068 ac_status=$?
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } &&
22071 { ac_try='test -s conftest$ac_exeext'
22072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073 (eval $ac_try) 2>&5
22074 ac_status=$?
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; }; then
22077 eval "$as_ac_var=yes"
22078else
22079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022080sed 's/^/| /' conftest.$ac_ext >&5
22081
John Criswell7a73b802003-06-30 21:59:07 +000022082eval "$as_ac_var=no"
22083fi
22084rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22085fi
22086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22087echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22088if test `eval echo '${'$as_ac_var'}'` = yes; then
22089 cat >>confdefs.h <<_ACEOF
22090#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22091_ACEOF
22092
22093fi
22094done
22095
22096echo "$as_me:$LINENO: checking for working mmap" >&5
22097echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22098if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22099 echo $ECHO_N "(cached) $ECHO_C" >&6
22100else
22101 if test "$cross_compiling" = yes; then
22102 ac_cv_func_mmap_fixed_mapped=no
22103else
22104 cat >conftest.$ac_ext <<_ACEOF
22105#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022106/* confdefs.h. */
22107_ACEOF
22108cat confdefs.h >>conftest.$ac_ext
22109cat >>conftest.$ac_ext <<_ACEOF
22110/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022111$ac_includes_default
22112/* malloc might have been renamed as rpl_malloc. */
22113#undef malloc
22114
22115/* Thanks to Mike Haertel and Jim Avera for this test.
22116 Here is a matrix of mmap possibilities:
22117 mmap private not fixed
22118 mmap private fixed at somewhere currently unmapped
22119 mmap private fixed at somewhere already mapped
22120 mmap shared not fixed
22121 mmap shared fixed at somewhere currently unmapped
22122 mmap shared fixed at somewhere already mapped
22123 For private mappings, we should verify that changes cannot be read()
22124 back from the file, nor mmap's back from the file at a different
22125 address. (There have been systems where private was not correctly
22126 implemented like the infamous i386 svr4.0, and systems where the
22127 VM page cache was not coherent with the file system buffer cache
22128 like early versions of FreeBSD and possibly contemporary NetBSD.)
22129 For shared mappings, we should conversely verify that changes get
22130 propagated back to all the places they're supposed to be.
22131
22132 Grep wants private fixed already mapped.
22133 The main things grep needs to know about mmap are:
22134 * does it exist and is it safe to write into the mmap'd area
22135 * how to use it (BSD variants) */
22136
22137#include <fcntl.h>
22138#include <sys/mman.h>
22139
22140#if !STDC_HEADERS && !HAVE_STDLIB_H
22141char *malloc ();
22142#endif
22143
22144/* This mess was copied from the GNU getpagesize.h. */
22145#if !HAVE_GETPAGESIZE
22146/* Assume that all systems that can run configure have sys/param.h. */
22147# if !HAVE_SYS_PARAM_H
22148# define HAVE_SYS_PARAM_H 1
22149# endif
22150
22151# ifdef _SC_PAGESIZE
22152# define getpagesize() sysconf(_SC_PAGESIZE)
22153# else /* no _SC_PAGESIZE */
22154# if HAVE_SYS_PARAM_H
22155# include <sys/param.h>
22156# ifdef EXEC_PAGESIZE
22157# define getpagesize() EXEC_PAGESIZE
22158# else /* no EXEC_PAGESIZE */
22159# ifdef NBPG
22160# define getpagesize() NBPG * CLSIZE
22161# ifndef CLSIZE
22162# define CLSIZE 1
22163# endif /* no CLSIZE */
22164# else /* no NBPG */
22165# ifdef NBPC
22166# define getpagesize() NBPC
22167# else /* no NBPC */
22168# ifdef PAGESIZE
22169# define getpagesize() PAGESIZE
22170# endif /* PAGESIZE */
22171# endif /* no NBPC */
22172# endif /* no NBPG */
22173# endif /* no EXEC_PAGESIZE */
22174# else /* no HAVE_SYS_PARAM_H */
22175# define getpagesize() 8192 /* punt totally */
22176# endif /* no HAVE_SYS_PARAM_H */
22177# endif /* no _SC_PAGESIZE */
22178
22179#endif /* no HAVE_GETPAGESIZE */
22180
22181int
22182main ()
22183{
22184 char *data, *data2, *data3;
22185 int i, pagesize;
22186 int fd;
22187
22188 pagesize = getpagesize ();
22189
22190 /* First, make a file with some known garbage in it. */
22191 data = (char *) malloc (pagesize);
22192 if (!data)
22193 exit (1);
22194 for (i = 0; i < pagesize; ++i)
22195 *(data + i) = rand ();
22196 umask (0);
22197 fd = creat ("conftest.mmap", 0600);
22198 if (fd < 0)
22199 exit (1);
22200 if (write (fd, data, pagesize) != pagesize)
22201 exit (1);
22202 close (fd);
22203
22204 /* Next, try to mmap the file at a fixed address which already has
22205 something else allocated at it. If we can, also make sure that
22206 we see the same garbage. */
22207 fd = open ("conftest.mmap", O_RDWR);
22208 if (fd < 0)
22209 exit (1);
22210 data2 = (char *) malloc (2 * pagesize);
22211 if (!data2)
22212 exit (1);
22213 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22214 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22215 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22216 exit (1);
22217 for (i = 0; i < pagesize; ++i)
22218 if (*(data + i) != *(data2 + i))
22219 exit (1);
22220
22221 /* Finally, make sure that changes to the mapped area do not
22222 percolate back to the file as seen by read(). (This is a bug on
22223 some variants of i386 svr4.0.) */
22224 for (i = 0; i < pagesize; ++i)
22225 *(data2 + i) = *(data2 + i) + 1;
22226 data3 = (char *) malloc (pagesize);
22227 if (!data3)
22228 exit (1);
22229 if (read (fd, data3, pagesize) != pagesize)
22230 exit (1);
22231 for (i = 0; i < pagesize; ++i)
22232 if (*(data + i) != *(data3 + i))
22233 exit (1);
22234 close (fd);
22235 exit (0);
22236}
22237_ACEOF
22238rm -f conftest$ac_exeext
22239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22240 (eval $ac_link) 2>&5
22241 ac_status=$?
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245 (eval $ac_try) 2>&5
22246 ac_status=$?
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; }; then
22249 ac_cv_func_mmap_fixed_mapped=yes
22250else
22251 echo "$as_me: program exited with status $ac_status" >&5
22252echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022253sed 's/^/| /' conftest.$ac_ext >&5
22254
John Criswell7a73b802003-06-30 21:59:07 +000022255( exit $ac_status )
22256ac_cv_func_mmap_fixed_mapped=no
22257fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022258rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022259fi
22260fi
22261echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22262echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22263if test $ac_cv_func_mmap_fixed_mapped = yes; then
22264
22265cat >>confdefs.h <<\_ACEOF
22266#define HAVE_MMAP 1
22267_ACEOF
22268
22269fi
22270rm -f conftest.mmap
22271
22272echo "$as_me:$LINENO: checking for mmap of files" >&5
22273echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22274if test "${ac_cv_func_mmap_file+set}" = set; then
22275 echo $ECHO_N "(cached) $ECHO_C" >&6
22276else
22277
22278
22279 ac_ext=c
22280ac_cpp='$CPP $CPPFLAGS'
22281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22283ac_compiler_gnu=$ac_cv_c_compiler_gnu
22284
22285 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022286 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22287See \`config.log' for more details." >&5
22288echo "$as_me: error: cannot run test program while cross compiling
22289See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022290 { (exit 1); exit 1; }; }
22291else
22292 cat >conftest.$ac_ext <<_ACEOF
22293#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022294/* confdefs.h. */
22295_ACEOF
22296cat confdefs.h >>conftest.$ac_ext
22297cat >>conftest.$ac_ext <<_ACEOF
22298/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022299
John Criswell7a73b802003-06-30 21:59:07 +000022300#ifdef HAVE_SYS_TYPES_H
22301#include <sys/types.h>
22302#endif
22303
John Criswell5ab73462003-10-09 15:44:28 +000022304#ifdef HAVE_SYS_MMAN_H
22305#include <sys/mman.h>
22306#endif
22307
John Criswell7a73b802003-06-30 21:59:07 +000022308#ifdef HAVE_FCNTL_H
22309#include <fcntl.h>
22310#endif
22311
22312 int fd;
22313 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022314 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 +000022315_ACEOF
22316rm -f conftest$ac_exeext
22317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22318 (eval $ac_link) 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323 (eval $ac_try) 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); }; }; then
22327 ac_cv_func_mmap_file=yes
22328else
22329 echo "$as_me: program exited with status $ac_status" >&5
22330echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022331sed 's/^/| /' conftest.$ac_ext >&5
22332
John Criswell7a73b802003-06-30 21:59:07 +000022333( exit $ac_status )
22334ac_cv_func_mmap_file=no
22335fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022336rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022337fi
22338 ac_ext=c
22339ac_cpp='$CPP $CPPFLAGS'
22340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22342ac_compiler_gnu=$ac_cv_c_compiler_gnu
22343
22344
22345fi
22346echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22347echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22348if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022349
22350cat >>confdefs.h <<\_ACEOF
22351#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000022352_ACEOF
22353
22354 MMAP_FILE=yes
22355
22356fi
22357
22358if test ${ac_cv_func_mmap_file} = "no"
22359then
22360 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22361echo "$as_me: error: mmap() of files required but not found" >&2;}
22362 { (exit 1); exit 1; }; }
22363fi
22364echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22365echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22366if test "${ac_cv_header_mmap_anon+set}" = set; then
22367 echo $ECHO_N "(cached) $ECHO_C" >&6
22368else
22369
22370
22371 ac_ext=c
22372ac_cpp='$CPP $CPPFLAGS'
22373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22375ac_compiler_gnu=$ac_cv_c_compiler_gnu
22376
22377 cat >conftest.$ac_ext <<_ACEOF
22378#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022379/* confdefs.h. */
22380_ACEOF
22381cat confdefs.h >>conftest.$ac_ext
22382cat >>conftest.$ac_ext <<_ACEOF
22383/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022384#include <sys/mman.h>
22385 #include <unistd.h>
22386 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022387int
22388main ()
22389{
22390mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22391 ;
22392 return 0;
22393}
22394_ACEOF
22395rm -f conftest.$ac_objext
22396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22397 (eval $ac_compile) 2>&5
22398 ac_status=$?
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } &&
22401 { ac_try='test -s conftest.$ac_objext'
22402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403 (eval $ac_try) 2>&5
22404 ac_status=$?
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; }; then
22407 ac_cv_header_mmap_anon=yes
22408else
22409 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022410sed 's/^/| /' conftest.$ac_ext >&5
22411
John Criswell7a73b802003-06-30 21:59:07 +000022412ac_cv_header_mmap_anon=no
22413fi
22414rm -f conftest.$ac_objext conftest.$ac_ext
22415 ac_ext=c
22416ac_cpp='$CPP $CPPFLAGS'
22417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22419ac_compiler_gnu=$ac_cv_c_compiler_gnu
22420
22421
22422fi
22423echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22424echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22425if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022426
22427cat >>confdefs.h <<\_ACEOF
22428#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000022429_ACEOF
22430
22431fi
22432
22433echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22434echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22435if test "${ac_cv_type_signal+set}" = set; then
22436 echo $ECHO_N "(cached) $ECHO_C" >&6
22437else
22438 cat >conftest.$ac_ext <<_ACEOF
22439#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022440/* confdefs.h. */
22441_ACEOF
22442cat confdefs.h >>conftest.$ac_ext
22443cat >>conftest.$ac_ext <<_ACEOF
22444/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022445#include <sys/types.h>
22446#include <signal.h>
22447#ifdef signal
22448# undef signal
22449#endif
22450#ifdef __cplusplus
22451extern "C" void (*signal (int, void (*)(int)))(int);
22452#else
22453void (*signal ()) ();
22454#endif
22455
John Criswell7a73b802003-06-30 21:59:07 +000022456int
22457main ()
22458{
22459int i;
22460 ;
22461 return 0;
22462}
22463_ACEOF
22464rm -f conftest.$ac_objext
22465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22466 (eval $ac_compile) 2>&5
22467 ac_status=$?
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try='test -s conftest.$ac_objext'
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 ac_cv_type_signal=void
22477else
22478 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022479sed 's/^/| /' conftest.$ac_ext >&5
22480
John Criswell7a73b802003-06-30 21:59:07 +000022481ac_cv_type_signal=int
22482fi
22483rm -f conftest.$ac_objext conftest.$ac_ext
22484fi
22485echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22486echo "${ECHO_T}$ac_cv_type_signal" >&6
22487
22488cat >>confdefs.h <<_ACEOF
22489#define RETSIGTYPE $ac_cv_type_signal
22490_ACEOF
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
Brian Gaekec45be042003-10-07 06:01:34 +000022502
22503
John Criswella0137d32003-10-13 16:22:01 +000022504for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
John Criswell7a73b802003-06-30 21:59:07 +000022505do
22506as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22507echo "$as_me:$LINENO: checking for $ac_func" >&5
22508echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22509if eval "test \"\${$as_ac_var+set}\" = set"; then
22510 echo $ECHO_N "(cached) $ECHO_C" >&6
22511else
22512 cat >conftest.$ac_ext <<_ACEOF
22513#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022514/* confdefs.h. */
22515_ACEOF
22516cat confdefs.h >>conftest.$ac_ext
22517cat >>conftest.$ac_ext <<_ACEOF
22518/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022519/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022520 which can conflict with char $ac_func (); below.
22521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22522 <limits.h> exists even on freestanding compilers. */
22523#ifdef __STDC__
22524# include <limits.h>
22525#else
22526# include <assert.h>
22527#endif
John Criswell7a73b802003-06-30 21:59:07 +000022528/* Override any gcc2 internal prototype to avoid an error. */
22529#ifdef __cplusplus
22530extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022531{
John Criswell7a73b802003-06-30 21:59:07 +000022532#endif
22533/* We use char because int might match the return type of a gcc2
22534 builtin and then its argument prototype would still apply. */
22535char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022536/* The GNU C library defines this for functions which it implements
22537 to always fail with ENOSYS. Some functions are actually named
22538 something starting with __ and the normal name is an alias. */
22539#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22540choke me
22541#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022542char (*f) () = $ac_func;
22543#endif
22544#ifdef __cplusplus
22545}
John Criswell7a73b802003-06-30 21:59:07 +000022546#endif
22547
John Criswell0c38eaf2003-09-10 15:17:25 +000022548int
22549main ()
22550{
22551return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022552 ;
22553 return 0;
22554}
22555_ACEOF
22556rm -f conftest.$ac_objext conftest$ac_exeext
22557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22558 (eval $ac_link) 2>&5
22559 ac_status=$?
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } &&
22562 { ac_try='test -s conftest$ac_exeext'
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22565 ac_status=$?
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; }; then
22568 eval "$as_ac_var=yes"
22569else
22570 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022571sed 's/^/| /' conftest.$ac_ext >&5
22572
John Criswell7a73b802003-06-30 21:59:07 +000022573eval "$as_ac_var=no"
22574fi
22575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22576fi
22577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22578echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22579if test `eval echo '${'$as_ac_var'}'` = yes; then
22580 cat >>confdefs.h <<_ACEOF
22581#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22582_ACEOF
22583
22584fi
22585done
22586
22587
22588
22589echo "$as_me:$LINENO: checking for mmap" >&5
22590echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22591if test "${ac_cv_func_mmap+set}" = set; then
22592 echo $ECHO_N "(cached) $ECHO_C" >&6
22593else
22594 cat >conftest.$ac_ext <<_ACEOF
22595#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022596/* confdefs.h. */
22597_ACEOF
22598cat confdefs.h >>conftest.$ac_ext
22599cat >>conftest.$ac_ext <<_ACEOF
22600/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022601/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022602 which can conflict with char mmap (); below.
22603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22604 <limits.h> exists even on freestanding compilers. */
22605#ifdef __STDC__
22606# include <limits.h>
22607#else
22608# include <assert.h>
22609#endif
John Criswell7a73b802003-06-30 21:59:07 +000022610/* Override any gcc2 internal prototype to avoid an error. */
22611#ifdef __cplusplus
22612extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022613{
John Criswell7a73b802003-06-30 21:59:07 +000022614#endif
22615/* We use char because int might match the return type of a gcc2
22616 builtin and then its argument prototype would still apply. */
22617char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022618/* The GNU C library defines this for functions which it implements
22619 to always fail with ENOSYS. Some functions are actually named
22620 something starting with __ and the normal name is an alias. */
22621#if defined (__stub_mmap) || defined (__stub___mmap)
22622choke me
22623#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022624char (*f) () = mmap;
22625#endif
22626#ifdef __cplusplus
22627}
John Criswell7a73b802003-06-30 21:59:07 +000022628#endif
22629
John Criswell0c38eaf2003-09-10 15:17:25 +000022630int
22631main ()
22632{
22633return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022634 ;
22635 return 0;
22636}
22637_ACEOF
22638rm -f conftest.$ac_objext conftest$ac_exeext
22639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22640 (eval $ac_link) 2>&5
22641 ac_status=$?
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } &&
22644 { ac_try='test -s conftest$ac_exeext'
22645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646 (eval $ac_try) 2>&5
22647 ac_status=$?
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); }; }; then
22650 ac_cv_func_mmap=yes
22651else
22652 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022653sed 's/^/| /' conftest.$ac_ext >&5
22654
John Criswell7a73b802003-06-30 21:59:07 +000022655ac_cv_func_mmap=no
22656fi
22657rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22658fi
22659echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22660echo "${ECHO_T}$ac_cv_func_mmap" >&6
22661if test $ac_cv_func_mmap = yes; then
22662 :
22663else
22664 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22665echo "$as_me: error: Function mmap() required but not found" >&2;}
22666 { (exit 1); exit 1; }; }
22667fi
22668
22669echo "$as_me:$LINENO: checking for mprotect" >&5
22670echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22671if test "${ac_cv_func_mprotect+set}" = set; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22673else
22674 cat >conftest.$ac_ext <<_ACEOF
22675#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022676/* confdefs.h. */
22677_ACEOF
22678cat confdefs.h >>conftest.$ac_ext
22679cat >>conftest.$ac_ext <<_ACEOF
22680/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022681/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022682 which can conflict with char mprotect (); below.
22683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22684 <limits.h> exists even on freestanding compilers. */
22685#ifdef __STDC__
22686# include <limits.h>
22687#else
22688# include <assert.h>
22689#endif
John Criswell7a73b802003-06-30 21:59:07 +000022690/* Override any gcc2 internal prototype to avoid an error. */
22691#ifdef __cplusplus
22692extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022693{
John Criswell7a73b802003-06-30 21:59:07 +000022694#endif
22695/* We use char because int might match the return type of a gcc2
22696 builtin and then its argument prototype would still apply. */
22697char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022698/* The GNU C library defines this for functions which it implements
22699 to always fail with ENOSYS. Some functions are actually named
22700 something starting with __ and the normal name is an alias. */
22701#if defined (__stub_mprotect) || defined (__stub___mprotect)
22702choke me
22703#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022704char (*f) () = mprotect;
22705#endif
22706#ifdef __cplusplus
22707}
John Criswell7a73b802003-06-30 21:59:07 +000022708#endif
22709
John Criswell0c38eaf2003-09-10 15:17:25 +000022710int
22711main ()
22712{
22713return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022714 ;
22715 return 0;
22716}
22717_ACEOF
22718rm -f conftest.$ac_objext conftest$ac_exeext
22719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22720 (eval $ac_link) 2>&5
22721 ac_status=$?
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } &&
22724 { ac_try='test -s conftest$ac_exeext'
22725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726 (eval $ac_try) 2>&5
22727 ac_status=$?
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); }; }; then
22730 ac_cv_func_mprotect=yes
22731else
22732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022733sed 's/^/| /' conftest.$ac_ext >&5
22734
John Criswell7a73b802003-06-30 21:59:07 +000022735ac_cv_func_mprotect=no
22736fi
22737rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22738fi
22739echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22740echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22741if test $ac_cv_func_mprotect = yes; then
22742 :
22743else
22744 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22745echo "$as_me: error: Function mprotect() required but not found" >&2;}
22746 { (exit 1); exit 1; }; }
22747fi
22748
22749
John Criswellb13092b2003-07-22 21:00:24 +000022750
John Criswell7a73b802003-06-30 21:59:07 +000022751# Check whether --enable-purify or --disable-purify was given.
22752if test "${enable_purify+set}" = set; then
22753 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022754
22755else
John Criswellb13092b2003-07-22 21:00:24 +000022756 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022757fi;
John Criswellb13092b2003-07-22 21:00:24 +000022758if test ${enableval} = "no"
22759then
22760 ENABLE_PURIFY=
22761
22762else
22763 ENABLE_PURIFY=ENABLE_PURIFY=1
22764
22765fi
22766
John Criswell7a73b802003-06-30 21:59:07 +000022767# Check whether --enable-optimized or --disable-optimized was given.
22768if test "${enable_optimized+set}" = set; then
22769 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022770
22771else
John Criswellb13092b2003-07-22 21:00:24 +000022772 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022773fi;
John Criswellb13092b2003-07-22 21:00:24 +000022774if test ${enableval} = "no"
22775then
22776 ENABLE_OPTIMIZED=
22777
22778else
22779 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22780
22781fi
22782
John Criswell55126592003-10-07 21:57:39 +000022783# Check whether --enable-spec2000 or --disable-spec2000 was given.
22784if test "${enable_spec2000+set}" = set; then
22785 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000022786
22787else
John Criswellb13092b2003-07-22 21:00:24 +000022788 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022789fi;
John Criswellb13092b2003-07-22 21:00:24 +000022790if test ${enableval} = "no"
22791then
John Criswell55126592003-10-07 21:57:39 +000022792 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22793 then
22794 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000022795
John Criswell55126592003-10-07 21:57:39 +000022796 USE_SPEC=USE_SPEC=1
22797
22798 else
22799 USE_SPEC=
22800
22801
22802 fi
John Criswellb13092b2003-07-22 21:00:24 +000022803else
John Criswell55126592003-10-07 21:57:39 +000022804 if test ${enableval} = ""
22805 then
22806 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22807
22808 else
22809 SPEC_ROOT=${enableval}
22810
22811 fi
John Criswellb13092b2003-07-22 21:00:24 +000022812 USE_SPEC=USE_SPEC=1
22813
22814fi
22815
John Criswell7a73b802003-06-30 21:59:07 +000022816# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22817if test "${enable_precompiled_bytecode+set}" = set; then
22818 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022819
22820else
John Criswellb13092b2003-07-22 21:00:24 +000022821 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022822fi;
John Criswellb13092b2003-07-22 21:00:24 +000022823if test ${enableval} = "no"
22824then
22825 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022826
John Criswellb13092b2003-07-22 21:00:24 +000022827else
22828 UPB=USE_PRECOMPILED_BYTECODE=1
22829
22830fi
John Criswellf02dbf02003-07-22 20:07:49 +000022831
22832
22833# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22834if test "${enable_llc_diffs+set}" = set; then
22835 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022836
22837else
John Criswellb13092b2003-07-22 21:00:24 +000022838 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022839fi;
John Criswellb13092b2003-07-22 21:00:24 +000022840if test ${enableval} = "no"
22841then
22842 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022843
John Criswellb13092b2003-07-22 21:00:24 +000022844else
22845 DISABLE_LLC_DIFFS=
22846
22847fi
22848
22849# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022850if test "${enable_jit+set}" = set; then
22851 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022852
22853else
John Criswellc78022e2003-07-29 19:11:58 +000022854 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022855fi;
John Criswellb13092b2003-07-22 21:00:24 +000022856
22857if test ${enableval} = "no"
22858then
22859 JIT=
22860
22861else
John Criswellc78022e2003-07-29 19:11:58 +000022862 case $target in
22863 *i*86*)
22864 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022865
John Criswellc78022e2003-07-29 19:11:58 +000022866 ;;
22867 *sparc*)
22868 JIT=TARGET_HAS_JIT=1
22869
22870 ;;
22871 *)
22872 JIT=
22873
22874 ;;
22875 esac
John Criswellb13092b2003-07-22 21:00:24 +000022876fi
John Criswell7a73b802003-06-30 21:59:07 +000022877
22878
John Criswellc78022e2003-07-29 19:11:58 +000022879
John Criswell7a73b802003-06-30 21:59:07 +000022880# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22881if test "${with_llvmgccdir+set}" = set; then
22882 withval="$with_llvmgccdir"
22883 LLVMGCCDIR=$withval
22884
22885fi;
22886
John Criswellc78022e2003-07-29 19:11:58 +000022887
John Criswell7a73b802003-06-30 21:59:07 +000022888# Check whether --with-bcrepos or --without-bcrepos was given.
22889if test "${with_bcrepos+set}" = set; then
22890 withval="$with_bcrepos"
22891 BCR=$withval
22892
22893else
22894 BCR=/home/vadve/lattner/LLVMPrograms
22895
22896fi;
22897
John Criswellc78022e2003-07-29 19:11:58 +000022898
John Criswell7a73b802003-06-30 21:59:07 +000022899# Check whether --with-papi or --without-papi was given.
22900if test "${with_papi+set}" = set; then
22901 withval="$with_papi"
22902 PAPIDIR=$withval
22903
22904else
John Criswellde00db22003-08-25 16:49:54 +000022905 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022906
22907fi;
22908
John Criswell7a73b802003-06-30 21:59:07 +000022909
22910# Check whether --with-purify or --without-purify was given.
22911if test "${with_purify+set}" = set; then
22912 withval="$with_purify"
22913 PURIFY=$withval
22914
22915fi;
22916
John Criswellde00db22003-08-25 16:49:54 +000022917
John Criswell0c38eaf2003-09-10 15:17:25 +000022918 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022919cat >confcache <<\_ACEOF
22920# This file is a shell script that caches the results of configure
22921# tests run on this system so they can be shared between configure
22922# scripts and configure runs, see configure's option --config-cache.
22923# It is not useful on other systems. If it contains results you don't
22924# want to keep, you may remove or edit it.
22925#
22926# config.status only pays attention to the cache file if you give it
22927# the --recheck option to rerun configure.
22928#
John Criswell0c38eaf2003-09-10 15:17:25 +000022929# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022930# loading this file, other *unset* `ac_cv_foo' will be assigned the
22931# following values.
22932
22933_ACEOF
22934
22935# The following way of writing the cache mishandles newlines in values,
22936# but we know of no workaround that is simple, portable, and efficient.
22937# So, don't put newlines in cache variables' values.
22938# Ultrix sh set writes to stderr and can't be redirected directly,
22939# and sets the high bit in the cache file unless we assign to the vars.
22940{
22941 (set) 2>&1 |
22942 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22943 *ac_space=\ *)
22944 # `set' does not quote correctly, so add quotes (double-quote
22945 # substitution turns \\\\ into \\, and sed turns \\ into \).
22946 sed -n \
22947 "s/'/'\\\\''/g;
22948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22949 ;;
22950 *)
22951 # `set' quotes correctly as required by POSIX, so do not add quotes.
22952 sed -n \
22953 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22954 ;;
22955 esac;
22956} |
22957 sed '
22958 t clear
22959 : clear
22960 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22961 t end
22962 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22963 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022964if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022965 if test -w $cache_file; then
22966 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22967 cat confcache >$cache_file
22968 else
22969 echo "not updating unwritable cache $cache_file"
22970 fi
22971fi
22972rm -f confcache
22973
22974test "x$prefix" = xNONE && prefix=$ac_default_prefix
22975# Let make expand exec_prefix.
22976test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22977
22978# VPATH may cause trouble with some makes, so we remove $(srcdir),
22979# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22980# trailing colons and then remove the whole line if VPATH becomes empty
22981# (actually we leave an empty line to preserve line numbers).
22982if test "x$srcdir" = x.; then
22983 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22984s/:*\$(srcdir):*/:/;
22985s/:*\${srcdir}:*/:/;
22986s/:*@srcdir@:*/:/;
22987s/^\([^=]*=[ ]*\):*/\1/;
22988s/:*$//;
22989s/^[^=]*=[ ]*$//;
22990}'
22991fi
22992
22993DEFS=-DHAVE_CONFIG_H
22994
John Criswell0c38eaf2003-09-10 15:17:25 +000022995ac_libobjs=
22996ac_ltlibobjs=
22997for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22998 # 1. Remove the extension, and $U if already installed.
22999 ac_i=`echo "$ac_i" |
23000 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23001 # 2. Add them.
23002 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23003 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23004done
23005LIBOBJS=$ac_libobjs
23006
23007LTLIBOBJS=$ac_ltlibobjs
23008
23009
John Criswell7a73b802003-06-30 21:59:07 +000023010
23011: ${CONFIG_STATUS=./config.status}
23012ac_clean_files_save=$ac_clean_files
23013ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23014{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23015echo "$as_me: creating $CONFIG_STATUS" >&6;}
23016cat >$CONFIG_STATUS <<_ACEOF
23017#! $SHELL
23018# Generated by $as_me.
23019# Run this file to recreate the current configuration.
23020# Compiler output produced by configure, useful for debugging
23021# configure, is in config.log if it exists.
23022
23023debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023024ac_cs_recheck=false
23025ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023026SHELL=\${CONFIG_SHELL-$SHELL}
23027_ACEOF
23028
23029cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023030## --------------------- ##
23031## M4sh Initialization. ##
23032## --------------------- ##
23033
23034# Be Bourne compatible
23035if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23036 emulate sh
23037 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023038 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23039 # is contrary to our usage. Disable this feature.
23040 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023041elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23042 set -o posix
23043fi
23044
John Criswell7a73b802003-06-30 21:59:07 +000023045# Support unset when possible.
23046if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23047 as_unset=unset
23048else
23049 as_unset=false
23050fi
23051
John Criswell0c38eaf2003-09-10 15:17:25 +000023052
23053# Work around bugs in pre-3.0 UWIN ksh.
23054$as_unset ENV MAIL MAILPATH
23055PS1='$ '
23056PS2='> '
23057PS4='+ '
23058
23059# NLS nuisances.
23060for as_var in \
23061 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23062 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23063 LC_TELEPHONE LC_TIME
23064do
23065 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23066 eval $as_var=C; export $as_var
23067 else
23068 $as_unset $as_var
23069 fi
23070done
23071
23072# Required to use basename.
23073if expr a : '\(a\)' >/dev/null 2>&1; then
23074 as_expr=expr
23075else
23076 as_expr=false
23077fi
23078
23079if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23080 as_basename=basename
23081else
23082 as_basename=false
23083fi
John Criswell7a73b802003-06-30 21:59:07 +000023084
23085
23086# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023087as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023088$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23089 X"$0" : 'X\(//\)$' \| \
23090 X"$0" : 'X\(/\)$' \| \
23091 . : '\(.\)' 2>/dev/null ||
23092echo X/"$0" |
23093 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23094 /^X\/\(\/\/\)$/{ s//\1/; q; }
23095 /^X\/\(\/\).*/{ s//\1/; q; }
23096 s/.*/./; q'`
23097
John Criswell0c38eaf2003-09-10 15:17:25 +000023098
John Criswell7a73b802003-06-30 21:59:07 +000023099# PATH needs CR, and LINENO needs CR and PATH.
23100# Avoid depending upon Character Ranges.
23101as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23102as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23103as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23104as_cr_digits='0123456789'
23105as_cr_alnum=$as_cr_Letters$as_cr_digits
23106
23107# The user is always right.
23108if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023109 echo "#! /bin/sh" >conf$$.sh
23110 echo "exit 0" >>conf$$.sh
23111 chmod +x conf$$.sh
23112 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023113 PATH_SEPARATOR=';'
23114 else
23115 PATH_SEPARATOR=:
23116 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023117 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023118fi
23119
23120
23121 as_lineno_1=$LINENO
23122 as_lineno_2=$LINENO
23123 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23124 test "x$as_lineno_1" != "x$as_lineno_2" &&
23125 test "x$as_lineno_3" = "x$as_lineno_2" || {
23126 # Find who we are. Look in the path if we contain no path at all
23127 # relative or not.
23128 case $0 in
23129 *[\\/]* ) as_myself=$0 ;;
23130 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23131for as_dir in $PATH
23132do
23133 IFS=$as_save_IFS
23134 test -z "$as_dir" && as_dir=.
23135 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23136done
23137
23138 ;;
23139 esac
23140 # We did not find ourselves, most probably we were run as `sh COMMAND'
23141 # in which case we are not to be found in the path.
23142 if test "x$as_myself" = x; then
23143 as_myself=$0
23144 fi
23145 if test ! -f "$as_myself"; then
23146 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23147echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23148 { (exit 1); exit 1; }; }
23149 fi
23150 case $CONFIG_SHELL in
23151 '')
23152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23153for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23154do
23155 IFS=$as_save_IFS
23156 test -z "$as_dir" && as_dir=.
23157 for as_base in sh bash ksh sh5; do
23158 case $as_dir in
23159 /*)
23160 if ("$as_dir/$as_base" -c '
23161 as_lineno_1=$LINENO
23162 as_lineno_2=$LINENO
23163 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23164 test "x$as_lineno_1" != "x$as_lineno_2" &&
23165 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023166 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23167 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023168 CONFIG_SHELL=$as_dir/$as_base
23169 export CONFIG_SHELL
23170 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23171 fi;;
23172 esac
23173 done
23174done
23175;;
23176 esac
23177
23178 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23179 # uniformly replaced by the line number. The first 'sed' inserts a
23180 # line-number line before each line; the second 'sed' does the real
23181 # work. The second script uses 'N' to pair each line-number line
23182 # with the numbered line, and appends trailing '-' during
23183 # substitution so that $LINENO is not a special case at line end.
23184 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23185 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23186 sed '=' <$as_myself |
23187 sed '
23188 N
23189 s,$,-,
23190 : loop
23191 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23192 t loop
23193 s,-$,,
23194 s,^['$as_cr_digits']*\n,,
23195 ' >$as_me.lineno &&
23196 chmod +x $as_me.lineno ||
23197 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23198echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23199 { (exit 1); exit 1; }; }
23200
23201 # Don't try to exec as it changes $[0], causing all sort of problems
23202 # (the dirname of $[0] is not the place where we might find the
23203 # original and so on. Autoconf is especially sensible to this).
23204 . ./$as_me.lineno
23205 # Exit status is that of the last command.
23206 exit
23207}
23208
23209
23210case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23211 *c*,-n*) ECHO_N= ECHO_C='
23212' ECHO_T=' ' ;;
23213 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23214 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23215esac
23216
23217if expr a : '\(a\)' >/dev/null 2>&1; then
23218 as_expr=expr
23219else
23220 as_expr=false
23221fi
23222
23223rm -f conf$$ conf$$.exe conf$$.file
23224echo >conf$$.file
23225if ln -s conf$$.file conf$$ 2>/dev/null; then
23226 # We could just check for DJGPP; but this test a) works b) is more generic
23227 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23228 if test -f conf$$.exe; then
23229 # Don't use ln at all; we don't have any links
23230 as_ln_s='cp -p'
23231 else
23232 as_ln_s='ln -s'
23233 fi
23234elif ln conf$$.file conf$$ 2>/dev/null; then
23235 as_ln_s=ln
23236else
23237 as_ln_s='cp -p'
23238fi
23239rm -f conf$$ conf$$.exe conf$$.file
23240
John Criswell0c38eaf2003-09-10 15:17:25 +000023241if mkdir -p . 2>/dev/null; then
23242 as_mkdir_p=:
23243else
23244 as_mkdir_p=false
23245fi
23246
John Criswell7a73b802003-06-30 21:59:07 +000023247as_executable_p="test -f"
23248
23249# Sed expression to map a string onto a valid CPP name.
23250as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23251
23252# Sed expression to map a string onto a valid variable name.
23253as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23254
23255
23256# IFS
23257# We need space, tab and new line, in precisely that order.
23258as_nl='
23259'
23260IFS=" $as_nl"
23261
23262# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023263$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023264
23265exec 6>&1
23266
23267# Open the log real soon, to keep \$[0] and so on meaningful, and to
23268# report actual input values of CONFIG_FILES etc. instead of their
23269# values after options handling. Logging --version etc. is OK.
23270exec 5>>config.log
23271{
23272 echo
23273 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23274## Running $as_me. ##
23275_ASBOX
23276} >&5
23277cat >&5 <<_CSEOF
23278
23279This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023280generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023281
23282 CONFIG_FILES = $CONFIG_FILES
23283 CONFIG_HEADERS = $CONFIG_HEADERS
23284 CONFIG_LINKS = $CONFIG_LINKS
23285 CONFIG_COMMANDS = $CONFIG_COMMANDS
23286 $ $0 $@
23287
23288_CSEOF
23289echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23290echo >&5
23291_ACEOF
23292
23293# Files that config.status was made for.
23294if test -n "$ac_config_files"; then
23295 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23296fi
23297
23298if test -n "$ac_config_headers"; then
23299 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23300fi
23301
23302if test -n "$ac_config_links"; then
23303 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23304fi
23305
23306if test -n "$ac_config_commands"; then
23307 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23308fi
23309
23310cat >>$CONFIG_STATUS <<\_ACEOF
23311
23312ac_cs_usage="\
23313\`$as_me' instantiates files from templates according to the
23314current configuration.
23315
23316Usage: $0 [OPTIONS] [FILE]...
23317
23318 -h, --help print this help, then exit
23319 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023320 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023321 -d, --debug don't remove temporary files
23322 --recheck update $as_me by reconfiguring in the same conditions
23323 --file=FILE[:TEMPLATE]
23324 instantiate the configuration file FILE
23325 --header=FILE[:TEMPLATE]
23326 instantiate the configuration header FILE
23327
23328Configuration files:
23329$config_files
23330
23331Configuration headers:
23332$config_headers
23333
John Criswellc764fbc2003-09-06 15:17:13 +000023334Configuration commands:
23335$config_commands
23336
John Criswell7a73b802003-06-30 21:59:07 +000023337Report bugs to <bug-autoconf@gnu.org>."
23338_ACEOF
23339
23340cat >>$CONFIG_STATUS <<_ACEOF
23341ac_cs_version="\\
23342[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023343configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023344 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23345
23346Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23347Free Software Foundation, Inc.
23348This config.status script is free software; the Free Software Foundation
23349gives unlimited permission to copy, distribute and modify it."
23350srcdir=$srcdir
23351INSTALL="$INSTALL"
23352_ACEOF
23353
23354cat >>$CONFIG_STATUS <<\_ACEOF
23355# If no file are specified by the user, then we need to provide default
23356# value. By we need to know if files were specified by the user.
23357ac_need_defaults=:
23358while test $# != 0
23359do
23360 case $1 in
23361 --*=*)
23362 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23363 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023364 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023365 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023366 -*)
23367 ac_option=$1
23368 ac_optarg=$2
23369 ac_shift=shift
23370 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023371 *) # This is not an option, so the user has probably given explicit
23372 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023373 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023374 ac_need_defaults=false;;
23375 esac
23376
John Criswell0c38eaf2003-09-10 15:17:25 +000023377 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023378 # Handling of the options.
23379_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023380cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23382 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023383 --version | --vers* | -V )
23384 echo "$ac_cs_version"; exit 0 ;;
23385 --he | --h)
23386 # Conflict between --help and --header
23387 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23388Try \`$0 --help' for more information." >&5
23389echo "$as_me: error: ambiguous option: $1
23390Try \`$0 --help' for more information." >&2;}
23391 { (exit 1); exit 1; }; };;
23392 --help | --hel | -h )
23393 echo "$ac_cs_usage"; exit 0 ;;
23394 --debug | --d* | -d )
23395 debug=: ;;
23396 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023397 $ac_shift
23398 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023399 ac_need_defaults=false;;
23400 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023401 $ac_shift
23402 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023403 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23406 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023407
23408 # This is an error.
23409 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23410Try \`$0 --help' for more information." >&5
23411echo "$as_me: error: unrecognized option: $1
23412Try \`$0 --help' for more information." >&2;}
23413 { (exit 1); exit 1; }; } ;;
23414
23415 *) ac_config_targets="$ac_config_targets $1" ;;
23416
23417 esac
23418 shift
23419done
23420
John Criswell0c38eaf2003-09-10 15:17:25 +000023421ac_configure_extra_args=
23422
23423if $ac_cs_silent; then
23424 exec 6>/dev/null
23425 ac_configure_extra_args="$ac_configure_extra_args --silent"
23426fi
23427
23428_ACEOF
23429cat >>$CONFIG_STATUS <<_ACEOF
23430if \$ac_cs_recheck; then
23431 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23432 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23433fi
23434
John Criswell7a73b802003-06-30 21:59:07 +000023435_ACEOF
23436
John Criswellc764fbc2003-09-06 15:17:13 +000023437cat >>$CONFIG_STATUS <<_ACEOF
23438#
23439# INIT-COMMANDS section.
23440#
John Criswell7a73b802003-06-30 21:59:07 +000023441
John Criswellc764fbc2003-09-06 15:17:13 +000023442${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23444${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23445${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023459${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23461${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023464${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023465${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23466${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23468${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23471${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23474${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23475${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23476${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23477${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023480${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023481${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23482${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023485${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023486${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023487${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23488${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023489${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23492${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023493${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23494${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23511${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23512${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023513${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023514${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
John Criswell5ab73462003-10-09 15:44:28 +000023515${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023516${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23517${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23518${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23519${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23520${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23521${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23522${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23523${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23524${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23525${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
John Criswell987e49c2003-10-10 01:11:54 +000023526${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23527${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023528${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23529${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23530${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23532${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23533${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23534${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023535${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23536${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023537${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23538${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023539${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23540${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23541${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23542${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23543${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23544${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23545${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23546${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23547${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23548${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23549${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23550${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23551${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23552${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23553${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23554${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23555${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23556${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23557${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23558${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23559${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23560${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23561${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23562${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023563${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023564${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23565${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23566${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23567${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23568${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23569${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023570${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023571${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023572${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23573${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023574${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23575${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23576${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23577${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23578${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23579${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023580${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023581${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023582${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023583${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023584${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23585${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023586${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023587${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23588${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023589${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023590${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23591${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23592${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023593${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023594${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023595${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023596${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023597${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023598${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023599${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23600${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023601${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23602${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23603${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23604${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023605${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23606${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23607${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23608${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23609${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23610${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23611${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23612${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23613${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23614${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23615${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23616${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23617
23618_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023619
23620
23621
23622cat >>$CONFIG_STATUS <<\_ACEOF
23623for ac_config_target in $ac_config_targets
23624do
23625 case "$ac_config_target" in
23626 # Handling of arguments.
23627 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023628 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23629 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23630 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23631 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23632 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23633 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23634 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23635 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23636 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23637 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23638 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23639 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23640 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23641 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23642 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23643 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23644 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023645 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23646 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23647 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23648 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23649 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023650 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023651 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23652 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23653 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23654 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23655 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23656 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23657 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23658 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23659 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23660 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23661 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23662 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23663 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23664 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23665 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023666 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023667 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23668 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23669 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23670 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023671 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023672 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023673 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23674 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023675 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23676 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23677 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23678 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023679 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23680 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023681 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23682 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23683 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23684 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23685 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23686 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23687 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23688 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23689 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23690 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23691 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23692 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23693 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23694 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23695 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23696 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23697 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23698 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023699 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023700 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
John Criswell5ab73462003-10-09 15:44:28 +000023701 "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 +000023702 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23703 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23704 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23705 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23706 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23707 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23708 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23709 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23710 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23711 "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 +000023712 "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
23713 "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 +000023714 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23715 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23716 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23717 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23718 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23719 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23720 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023721 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23722 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023723 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23724 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023725 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23726 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23727 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23728 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23729 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23730 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23731 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23732 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23733 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23734 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23735 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23736 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23737 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23738 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23739 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23740 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23741 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23742 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23743 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23744 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23745 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23746 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23747 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23748 "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 +000023749 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023750 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23751 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23752 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23753 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23754 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23755 "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 +000023756 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023757 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023758 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23759 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023760 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23761 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23762 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23763 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23764 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23765 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023766 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023767 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023768 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023769 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023770 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23771 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000023772 "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 +000023773 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23774 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023775 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023776 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23777 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23778 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023779 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023780 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023781 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023782 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023783 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023784 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023785 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23786 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023787 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23788 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23789 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23790 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023791 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23792 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23793 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23794 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23795 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23796 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23797 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23798 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23799 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23800 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23801 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23802 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023803 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23804 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23805echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23806 { (exit 1); exit 1; }; };;
23807 esac
23808done
23809
23810# If the user did not use the arguments to specify the items to instantiate,
23811# then the envvar interface is used. Set only those that are not.
23812# We use the long form for the default assignment because of an extremely
23813# bizarre bug on SunOS 4.1.3.
23814if $ac_need_defaults; then
23815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23816 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023817 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023818fi
23819
John Criswell0c38eaf2003-09-10 15:17:25 +000023820# Have a temporary directory for convenience. Make it in the build tree
23821# simply because there is no reason to put it here, and in addition,
23822# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023823# Create a temporary directory, and hook for its removal unless debugging.
23824$debug ||
23825{
23826 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23827 trap '{ (exit 1); exit 1; }' 1 2 13 15
23828}
23829
23830# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023831
John Criswell7a73b802003-06-30 21:59:07 +000023832{
John Criswell0c38eaf2003-09-10 15:17:25 +000023833 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023834 test -n "$tmp" && test -d "$tmp"
23835} ||
23836{
John Criswell0c38eaf2003-09-10 15:17:25 +000023837 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023838 (umask 077 && mkdir $tmp)
23839} ||
23840{
John Criswell0c38eaf2003-09-10 15:17:25 +000023841 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023842 { (exit 1); exit 1; }
23843}
23844
23845_ACEOF
23846
23847cat >>$CONFIG_STATUS <<_ACEOF
23848
23849#
23850# CONFIG_FILES section.
23851#
23852
23853# No need to generate the scripts if there are no CONFIG_FILES.
23854# This happens for instance when ./config.status config.h
23855if test -n "\$CONFIG_FILES"; then
23856 # Protect against being on the right side of a sed subst in config.status.
23857 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23858 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23859s,@SHELL@,$SHELL,;t t
23860s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23861s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23862s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23863s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23864s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23865s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23866s,@exec_prefix@,$exec_prefix,;t t
23867s,@prefix@,$prefix,;t t
23868s,@program_transform_name@,$program_transform_name,;t t
23869s,@bindir@,$bindir,;t t
23870s,@sbindir@,$sbindir,;t t
23871s,@libexecdir@,$libexecdir,;t t
23872s,@datadir@,$datadir,;t t
23873s,@sysconfdir@,$sysconfdir,;t t
23874s,@sharedstatedir@,$sharedstatedir,;t t
23875s,@localstatedir@,$localstatedir,;t t
23876s,@libdir@,$libdir,;t t
23877s,@includedir@,$includedir,;t t
23878s,@oldincludedir@,$oldincludedir,;t t
23879s,@infodir@,$infodir,;t t
23880s,@mandir@,$mandir,;t t
23881s,@build_alias@,$build_alias,;t t
23882s,@host_alias@,$host_alias,;t t
23883s,@target_alias@,$target_alias,;t t
23884s,@DEFS@,$DEFS,;t t
23885s,@ECHO_C@,$ECHO_C,;t t
23886s,@ECHO_N@,$ECHO_N,;t t
23887s,@ECHO_T@,$ECHO_T,;t t
23888s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023889s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023890s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23891s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23892s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23893s,@build@,$build,;t t
23894s,@build_cpu@,$build_cpu,;t t
23895s,@build_vendor@,$build_vendor,;t t
23896s,@build_os@,$build_os,;t t
23897s,@host@,$host,;t t
23898s,@host_cpu@,$host_cpu,;t t
23899s,@host_vendor@,$host_vendor,;t t
23900s,@host_os@,$host_os,;t t
23901s,@target@,$target,;t t
23902s,@target_cpu@,$target_cpu,;t t
23903s,@target_vendor@,$target_vendor,;t t
23904s,@target_os@,$target_os,;t t
23905s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023906s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023907s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023908s,@CXX@,$CXX,;t t
23909s,@CXXFLAGS@,$CXXFLAGS,;t t
23910s,@LDFLAGS@,$LDFLAGS,;t t
23911s,@CPPFLAGS@,$CPPFLAGS,;t t
23912s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23913s,@EXEEXT@,$EXEEXT,;t t
23914s,@OBJEXT@,$OBJEXT,;t t
23915s,@CC@,$CC,;t t
23916s,@CFLAGS@,$CFLAGS,;t t
23917s,@ac_ct_CC@,$ac_ct_CC,;t t
23918s,@CPP@,$CPP,;t t
23919s,@ifGNUmake@,$ifGNUmake,;t t
23920s,@LEX@,$LEX,;t t
23921s,@LEXLIB@,$LEXLIB,;t t
23922s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23923s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023924s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023925s,@LN_S@,$LN_S,;t t
23926s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023927s,@AR@,$AR,;t t
23928s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023929s,@RANLIB@,$RANLIB,;t t
23930s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23931s,@STRIP@,$STRIP,;t t
23932s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023933s,@CXXCPP@,$CXXCPP,;t t
23934s,@F77@,$F77,;t t
23935s,@FFLAGS@,$FFLAGS,;t t
23936s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023937s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023938s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023939s,@SED@,$SED,;t t
23940s,@RM@,$RM,;t t
23941s,@MKDIR@,$MKDIR,;t t
23942s,@DATE@,$DATE,;t t
23943s,@MV@,$MV,;t t
23944s,@DOT@,$DOT,;t t
23945s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000023946s,@PYTHON@,$PYTHON,;t t
23947s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023948s,@ALLOCA@,$ALLOCA,;t t
23949s,@LIBOBJS@,$LIBOBJS,;t t
23950s,@MMAP_FILE@,$MMAP_FILE,;t t
23951s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023952s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000023953s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023954s,@USE_SPEC@,$USE_SPEC,;t t
23955s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023956s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023957s,@JIT@,$JIT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023958s,@BCR@,$BCR,;t t
23959s,@PAPIDIR@,$PAPIDIR,;t t
John Criswellce2141f2003-10-02 19:02:30 +000023960s,@PURIFY@,$PURIFY,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023961s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023962CEOF
23963
23964_ACEOF
23965
23966 cat >>$CONFIG_STATUS <<\_ACEOF
23967 # Split the substitutions into bite-sized pieces for seds with
23968 # small command number limits, like on Digital OSF/1 and HP-UX.
23969 ac_max_sed_lines=48
23970 ac_sed_frag=1 # Number of current file.
23971 ac_beg=1 # First line for current file.
23972 ac_end=$ac_max_sed_lines # Line after last line for current file.
23973 ac_more_lines=:
23974 ac_sed_cmds=
23975 while $ac_more_lines; do
23976 if test $ac_beg -gt 1; then
23977 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23978 else
23979 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23980 fi
23981 if test ! -s $tmp/subs.frag; then
23982 ac_more_lines=false
23983 else
23984 # The purpose of the label and of the branching condition is to
23985 # speed up the sed processing (if there are no `@' at all, there
23986 # is no need to browse any of the substitutions).
23987 # These are the two extra sed commands mentioned above.
23988 (echo ':t
23989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23990 if test -z "$ac_sed_cmds"; then
23991 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23992 else
23993 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23994 fi
23995 ac_sed_frag=`expr $ac_sed_frag + 1`
23996 ac_beg=$ac_end
23997 ac_end=`expr $ac_end + $ac_max_sed_lines`
23998 fi
23999 done
24000 if test -z "$ac_sed_cmds"; then
24001 ac_sed_cmds=cat
24002 fi
24003fi # test -n "$CONFIG_FILES"
24004
24005_ACEOF
24006cat >>$CONFIG_STATUS <<\_ACEOF
24007for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24008 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24009 case $ac_file in
24010 - | *:- | *:-:* ) # input from stdin
24011 cat >$tmp/stdin
24012 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24013 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24014 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24015 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24016 * ) ac_file_in=$ac_file.in ;;
24017 esac
24018
24019 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24020 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24021$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24022 X"$ac_file" : 'X\(//\)[^/]' \| \
24023 X"$ac_file" : 'X\(//\)$' \| \
24024 X"$ac_file" : 'X\(/\)' \| \
24025 . : '\(.\)' 2>/dev/null ||
24026echo X"$ac_file" |
24027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24029 /^X\(\/\/\)$/{ s//\1/; q; }
24030 /^X\(\/\).*/{ s//\1/; q; }
24031 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024032 { if $as_mkdir_p; then
24033 mkdir -p "$ac_dir"
24034 else
24035 as_dir="$ac_dir"
24036 as_dirs=
24037 while test ! -d "$as_dir"; do
24038 as_dirs="$as_dir $as_dirs"
24039 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24040$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24041 X"$as_dir" : 'X\(//\)[^/]' \| \
24042 X"$as_dir" : 'X\(//\)$' \| \
24043 X"$as_dir" : 'X\(/\)' \| \
24044 . : '\(.\)' 2>/dev/null ||
24045echo X"$as_dir" |
24046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24047 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24048 /^X\(\/\/\)$/{ s//\1/; q; }
24049 /^X\(\/\).*/{ s//\1/; q; }
24050 s/.*/./; q'`
24051 done
24052 test ! -n "$as_dirs" || mkdir $as_dirs
24053 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24054echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24055 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024056
24057 ac_builddir=.
24058
24059if test "$ac_dir" != .; then
24060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24061 # A "../" for each directory in $ac_dir_suffix.
24062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24063else
24064 ac_dir_suffix= ac_top_builddir=
24065fi
24066
24067case $srcdir in
24068 .) # No --srcdir option. We are building in place.
24069 ac_srcdir=.
24070 if test -z "$ac_top_builddir"; then
24071 ac_top_srcdir=.
24072 else
24073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24074 fi ;;
24075 [\\/]* | ?:[\\/]* ) # Absolute path.
24076 ac_srcdir=$srcdir$ac_dir_suffix;
24077 ac_top_srcdir=$srcdir ;;
24078 *) # Relative path.
24079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24081esac
24082# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24083# absolute.
24084ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024085ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024086ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24087ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24088
24089
24090 case $INSTALL in
24091 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24092 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24093 esac
24094
24095 if test x"$ac_file" != x-; then
24096 { echo "$as_me:$LINENO: creating $ac_file" >&5
24097echo "$as_me: creating $ac_file" >&6;}
24098 rm -f "$ac_file"
24099 fi
24100 # Let's still pretend it is `configure' which instantiates (i.e., don't
24101 # use $as_me), people would be surprised to read:
24102 # /* config.h. Generated by config.status. */
24103 if test x"$ac_file" = x-; then
24104 configure_input=
24105 else
24106 configure_input="$ac_file. "
24107 fi
24108 configure_input=$configure_input"Generated from `echo $ac_file_in |
24109 sed 's,.*/,,'` by configure."
24110
24111 # First look for the input files in the build tree, otherwise in the
24112 # src tree.
24113 ac_file_inputs=`IFS=:
24114 for f in $ac_file_in; do
24115 case $f in
24116 -) echo $tmp/stdin ;;
24117 [\\/$]*)
24118 # Absolute (can't be DOS-style, as IFS=:)
24119 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24120echo "$as_me: error: cannot find input file: $f" >&2;}
24121 { (exit 1); exit 1; }; }
24122 echo $f;;
24123 *) # Relative
24124 if test -f "$f"; then
24125 # Build tree
24126 echo $f
24127 elif test -f "$srcdir/$f"; then
24128 # Source tree
24129 echo $srcdir/$f
24130 else
24131 # /dev/null tree
24132 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24133echo "$as_me: error: cannot find input file: $f" >&2;}
24134 { (exit 1); exit 1; }; }
24135 fi;;
24136 esac
24137 done` || { (exit 1); exit 1; }
24138_ACEOF
24139cat >>$CONFIG_STATUS <<_ACEOF
24140 sed "$ac_vpsub
24141$extrasub
24142_ACEOF
24143cat >>$CONFIG_STATUS <<\_ACEOF
24144:t
24145/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24146s,@configure_input@,$configure_input,;t t
24147s,@srcdir@,$ac_srcdir,;t t
24148s,@abs_srcdir@,$ac_abs_srcdir,;t t
24149s,@top_srcdir@,$ac_top_srcdir,;t t
24150s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24151s,@builddir@,$ac_builddir,;t t
24152s,@abs_builddir@,$ac_abs_builddir,;t t
24153s,@top_builddir@,$ac_top_builddir,;t t
24154s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24155s,@INSTALL@,$ac_INSTALL,;t t
24156" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24157 rm -f $tmp/stdin
24158 if test x"$ac_file" != x-; then
24159 mv $tmp/out $ac_file
24160 else
24161 cat $tmp/out
24162 rm -f $tmp/out
24163 fi
24164
24165done
24166_ACEOF
24167cat >>$CONFIG_STATUS <<\_ACEOF
24168
24169#
24170# CONFIG_HEADER section.
24171#
24172
24173# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24174# NAME is the cpp macro being defined and VALUE is the value it is being given.
24175#
24176# ac_d sets the value in "#define NAME VALUE" lines.
24177ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24178ac_dB='[ ].*$,\1#\2'
24179ac_dC=' '
24180ac_dD=',;t'
24181# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24182ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24183ac_uB='$,\1#\2define\3'
24184ac_uC=' '
24185ac_uD=',;t'
24186
24187for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24188 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24189 case $ac_file in
24190 - | *:- | *:-:* ) # input from stdin
24191 cat >$tmp/stdin
24192 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24193 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24194 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24195 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24196 * ) ac_file_in=$ac_file.in ;;
24197 esac
24198
24199 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24200echo "$as_me: creating $ac_file" >&6;}
24201
24202 # First look for the input files in the build tree, otherwise in the
24203 # src tree.
24204 ac_file_inputs=`IFS=:
24205 for f in $ac_file_in; do
24206 case $f in
24207 -) echo $tmp/stdin ;;
24208 [\\/$]*)
24209 # Absolute (can't be DOS-style, as IFS=:)
24210 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24211echo "$as_me: error: cannot find input file: $f" >&2;}
24212 { (exit 1); exit 1; }; }
24213 echo $f;;
24214 *) # Relative
24215 if test -f "$f"; then
24216 # Build tree
24217 echo $f
24218 elif test -f "$srcdir/$f"; then
24219 # Source tree
24220 echo $srcdir/$f
24221 else
24222 # /dev/null tree
24223 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24224echo "$as_me: error: cannot find input file: $f" >&2;}
24225 { (exit 1); exit 1; }; }
24226 fi;;
24227 esac
24228 done` || { (exit 1); exit 1; }
24229 # Remove the trailing spaces.
24230 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24231
24232_ACEOF
24233
24234# Transform confdefs.h into two sed scripts, `conftest.defines' and
24235# `conftest.undefs', that substitutes the proper values into
24236# config.h.in to produce config.h. The first handles `#define'
24237# templates, and the second `#undef' templates.
24238# And first: Protect against being on the right side of a sed subst in
24239# config.status. Protect against being in an unquoted here document
24240# in config.status.
24241rm -f conftest.defines conftest.undefs
24242# Using a here document instead of a string reduces the quoting nightmare.
24243# Putting comments in sed scripts is not portable.
24244#
24245# `end' is used to avoid that the second main sed command (meant for
24246# 0-ary CPP macros) applies to n-ary macro definitions.
24247# See the Autoconf documentation for `clear'.
24248cat >confdef2sed.sed <<\_ACEOF
24249s/[\\&,]/\\&/g
24250s,[\\$`],\\&,g
24251t clear
24252: clear
24253s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24254t end
24255s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24256: end
24257_ACEOF
24258# If some macros were called several times there might be several times
24259# the same #defines, which is useless. Nevertheless, we may not want to
24260# sort them, since we want the *last* AC-DEFINE to be honored.
24261uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24262sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24263rm -f confdef2sed.sed
24264
24265# This sed command replaces #undef with comments. This is necessary, for
24266# example, in the case of _POSIX_SOURCE, which is predefined and required
24267# on some systems where configure will not decide to define it.
24268cat >>conftest.undefs <<\_ACEOF
24269s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24270_ACEOF
24271
24272# Break up conftest.defines because some shells have a limit on the size
24273# of here documents, and old seds have small limits too (100 cmds).
24274echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024275echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024276echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24277echo ' :' >>$CONFIG_STATUS
24278rm -f conftest.tail
24279while grep . conftest.defines >/dev/null
24280do
24281 # Write a limited-size here document to $tmp/defines.sed.
24282 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24283 # Speed up: don't consider the non `#define' lines.
24284 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24285 # Work around the forget-to-reset-the-flag bug.
24286 echo 't clr' >>$CONFIG_STATUS
24287 echo ': clr' >>$CONFIG_STATUS
24288 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24289 echo 'CEOF
24290 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24291 rm -f $tmp/in
24292 mv $tmp/out $tmp/in
24293' >>$CONFIG_STATUS
24294 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24295 rm -f conftest.defines
24296 mv conftest.tail conftest.defines
24297done
24298rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024299echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024300echo >>$CONFIG_STATUS
24301
24302# Break up conftest.undefs because some shells have a limit on the size
24303# of here documents, and old seds have small limits too (100 cmds).
24304echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24305rm -f conftest.tail
24306while grep . conftest.undefs >/dev/null
24307do
24308 # Write a limited-size here document to $tmp/undefs.sed.
24309 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24310 # Speed up: don't consider the non `#undef'
24311 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24312 # Work around the forget-to-reset-the-flag bug.
24313 echo 't clr' >>$CONFIG_STATUS
24314 echo ': clr' >>$CONFIG_STATUS
24315 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24316 echo 'CEOF
24317 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24318 rm -f $tmp/in
24319 mv $tmp/out $tmp/in
24320' >>$CONFIG_STATUS
24321 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24322 rm -f conftest.undefs
24323 mv conftest.tail conftest.undefs
24324done
24325rm -f conftest.undefs
24326
24327cat >>$CONFIG_STATUS <<\_ACEOF
24328 # Let's still pretend it is `configure' which instantiates (i.e., don't
24329 # use $as_me), people would be surprised to read:
24330 # /* config.h. Generated by config.status. */
24331 if test x"$ac_file" = x-; then
24332 echo "/* Generated by configure. */" >$tmp/config.h
24333 else
24334 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24335 fi
24336 cat $tmp/in >>$tmp/config.h
24337 rm -f $tmp/in
24338 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024339 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024340 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24341echo "$as_me: $ac_file is unchanged" >&6;}
24342 else
24343 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24344$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24345 X"$ac_file" : 'X\(//\)[^/]' \| \
24346 X"$ac_file" : 'X\(//\)$' \| \
24347 X"$ac_file" : 'X\(/\)' \| \
24348 . : '\(.\)' 2>/dev/null ||
24349echo X"$ac_file" |
24350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24351 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24352 /^X\(\/\/\)$/{ s//\1/; q; }
24353 /^X\(\/\).*/{ s//\1/; q; }
24354 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024355 { if $as_mkdir_p; then
24356 mkdir -p "$ac_dir"
24357 else
24358 as_dir="$ac_dir"
24359 as_dirs=
24360 while test ! -d "$as_dir"; do
24361 as_dirs="$as_dir $as_dirs"
24362 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24363$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24364 X"$as_dir" : 'X\(//\)[^/]' \| \
24365 X"$as_dir" : 'X\(//\)$' \| \
24366 X"$as_dir" : 'X\(/\)' \| \
24367 . : '\(.\)' 2>/dev/null ||
24368echo X"$as_dir" |
24369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24371 /^X\(\/\/\)$/{ s//\1/; q; }
24372 /^X\(\/\).*/{ s//\1/; q; }
24373 s/.*/./; q'`
24374 done
24375 test ! -n "$as_dirs" || mkdir $as_dirs
24376 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24377echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24378 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024379
24380 rm -f $ac_file
24381 mv $tmp/config.h $ac_file
24382 fi
24383 else
24384 cat $tmp/config.h
24385 rm -f $tmp/config.h
24386 fi
24387done
24388_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024389cat >>$CONFIG_STATUS <<\_ACEOF
24390
24391#
24392# CONFIG_COMMANDS section.
24393#
24394for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24395 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24396 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24397 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24398$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24399 X"$ac_dest" : 'X\(//\)[^/]' \| \
24400 X"$ac_dest" : 'X\(//\)$' \| \
24401 X"$ac_dest" : 'X\(/\)' \| \
24402 . : '\(.\)' 2>/dev/null ||
24403echo X"$ac_dest" |
24404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24405 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24406 /^X\(\/\/\)$/{ s//\1/; q; }
24407 /^X\(\/\).*/{ s//\1/; q; }
24408 s/.*/./; q'`
24409 ac_builddir=.
24410
24411if test "$ac_dir" != .; then
24412 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24413 # A "../" for each directory in $ac_dir_suffix.
24414 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24415else
24416 ac_dir_suffix= ac_top_builddir=
24417fi
24418
24419case $srcdir in
24420 .) # No --srcdir option. We are building in place.
24421 ac_srcdir=.
24422 if test -z "$ac_top_builddir"; then
24423 ac_top_srcdir=.
24424 else
24425 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24426 fi ;;
24427 [\\/]* | ?:[\\/]* ) # Absolute path.
24428 ac_srcdir=$srcdir$ac_dir_suffix;
24429 ac_top_srcdir=$srcdir ;;
24430 *) # Relative path.
24431 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24432 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24433esac
24434# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24435# absolute.
24436ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024437ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024438ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24439ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24440
24441
24442 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24443echo "$as_me: executing $ac_dest commands" >&6;}
24444 case $ac_dest in
24445 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24446 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24447 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24448 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24449 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24450 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24451 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24452 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24453 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24454 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24455 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24456 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24457 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24458 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24459 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24460 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24461 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 +000024462 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24463 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24464 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24465 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24466 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 +000024467 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024468 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24469 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24470 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24471 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24472 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24473 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24474 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24475 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24476 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24477 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24478 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24479 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24480 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24481 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24482 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 +000024483 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 +000024484 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24485 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24486 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24487 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 +000024488 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 +000024489 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 +000024490 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24491 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 +000024492 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24493 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24494 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24495 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000024496 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24497 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 +000024498 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24499 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24500 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24501 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24502 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24503 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24504 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24505 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24506 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24507 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24508 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24509 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24510 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24511 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24512 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24513 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24514 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24515 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 +000024516 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 +000024517 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 +000024518 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 +000024519 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 ;;
24520 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 ;;
24521 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 ;;
24522 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 ;;
24523 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 ;;
24524 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 ;;
24525 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 ;;
24526 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 ;;
24527 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 ;;
24528 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 +000024529 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 ;;
24530 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 +000024531 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 ;;
24532 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 ;;
24533 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 ;;
24534 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 ;;
24535 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24536 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24537 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 +000024538 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24539 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 +000024540 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 ;;
24541 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 +000024542 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24543 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 ;;
24544 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 ;;
24545 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 ;;
24546 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 ;;
24547 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 ;;
24548 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 ;;
24549 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 ;;
24550 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 ;;
24551 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 ;;
24552 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 ;;
24553 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 ;;
24554 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 ;;
24555 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 ;;
24556 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 ;;
24557 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 ;;
24558 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 ;;
24559 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 ;;
24560 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 ;;
24561 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 ;;
24562 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 ;;
24563 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 ;;
24564 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 ;;
24565 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 +000024566 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 +000024567 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 ;;
24568 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 ;;
24569 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 ;;
24570 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 ;;
24571 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 ;;
24572 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 +000024573 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 +000024574 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 +000024575 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24576 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 +000024577 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24578 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24579 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 ;;
24580 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 ;;
24581 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 ;;
24582 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 +000024583 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 +000024584 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 +000024585 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 +000024586 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 +000024587 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 ;;
24588 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 +000024589 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 +000024590 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24591 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024592 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024593 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24594 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24595 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024596 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024597 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024598 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024599 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 +000024600 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 +000024601 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 +000024602 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24603 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024604 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24605 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24606 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24607 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024608 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24609 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24610 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24611 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24612 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24613 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24614 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24615 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24616 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24617 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24618 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24619 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24620 esac
24621done
24622_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024623
24624cat >>$CONFIG_STATUS <<\_ACEOF
24625
24626{ (exit 0); exit 0; }
24627_ACEOF
24628chmod +x $CONFIG_STATUS
24629ac_clean_files=$ac_clean_files_save
24630
24631
24632# configure is writing to config.log, and then calls config.status.
24633# config.status does its own redirection, appending to config.log.
24634# Unfortunately, on DOS this fails, as config.log is still kept open
24635# by configure, so config.status won't be able to write to it; its
24636# output is simply discarded. So we exec the FD to /dev/null,
24637# effectively closing config.log, so it can be properly (re)opened and
24638# appended to by config.status. When coming back to configure, we
24639# need to make the FD available again.
24640if test "$no_create" != yes; then
24641 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024642 ac_config_status_args=
24643 test "$silent" = yes &&
24644 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024645 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024646 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024647 exec 5>>config.log
24648 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24649 # would make configure fail if this is the last instruction.
24650 $ac_cs_success || { (exit 1); exit 1; }
24651fi
24652
John Criswell12399a12003-09-30 15:55:44 +000024653#
24654# CONFIG_SUBDIRS section.
24655#
24656if test "$no_recursion" != yes; then
24657
24658 # Remove --cache-file and --srcdir arguments so they do not pile up.
24659 ac_sub_configure_args=
24660 ac_prev=
24661 for ac_arg in $ac_configure_args; do
24662 if test -n "$ac_prev"; then
24663 ac_prev=
24664 continue
24665 fi
24666 case $ac_arg in
24667 -cache-file | --cache-file | --cache-fil | --cache-fi \
24668 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24669 ac_prev=cache_file ;;
24670 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24671 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24672 | --c=*)
24673 ;;
24674 --config-cache | -C)
24675 ;;
24676 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24677 ac_prev=srcdir ;;
24678 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24679 ;;
24680 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24681 ac_prev=prefix ;;
24682 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24683 ;;
24684 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24685 esac
24686 done
24687
24688 # Always prepend --prefix to ensure using the same prefix
24689 # in subdir configurations.
24690 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24691
24692 ac_popdir=`pwd`
24693 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24694
24695 # Do not complain, so a configure script can configure whichever
24696 # parts of a large source tree are present.
24697 test -d $srcdir/$ac_dir || continue
24698
24699 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24700echo "$as_me: configuring in $ac_dir" >&6;}
24701 { if $as_mkdir_p; then
24702 mkdir -p "$ac_dir"
24703 else
24704 as_dir="$ac_dir"
24705 as_dirs=
24706 while test ! -d "$as_dir"; do
24707 as_dirs="$as_dir $as_dirs"
24708 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24709$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24710 X"$as_dir" : 'X\(//\)[^/]' \| \
24711 X"$as_dir" : 'X\(//\)$' \| \
24712 X"$as_dir" : 'X\(/\)' \| \
24713 . : '\(.\)' 2>/dev/null ||
24714echo X"$as_dir" |
24715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24717 /^X\(\/\/\)$/{ s//\1/; q; }
24718 /^X\(\/\).*/{ s//\1/; q; }
24719 s/.*/./; q'`
24720 done
24721 test ! -n "$as_dirs" || mkdir $as_dirs
24722 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24723echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24724 { (exit 1); exit 1; }; }; }
24725
24726 ac_builddir=.
24727
24728if test "$ac_dir" != .; then
24729 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24730 # A "../" for each directory in $ac_dir_suffix.
24731 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24732else
24733 ac_dir_suffix= ac_top_builddir=
24734fi
24735
24736case $srcdir in
24737 .) # No --srcdir option. We are building in place.
24738 ac_srcdir=.
24739 if test -z "$ac_top_builddir"; then
24740 ac_top_srcdir=.
24741 else
24742 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24743 fi ;;
24744 [\\/]* | ?:[\\/]* ) # Absolute path.
24745 ac_srcdir=$srcdir$ac_dir_suffix;
24746 ac_top_srcdir=$srcdir ;;
24747 *) # Relative path.
24748 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24749 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24750esac
24751# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24752# absolute.
24753ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24754ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24755ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24756ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24757
24758
24759 cd $ac_dir
24760
24761 # Check for guested configure; otherwise get Cygnus style configure.
24762 if test -f $ac_srcdir/configure.gnu; then
24763 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24764 elif test -f $ac_srcdir/configure; then
24765 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24766 elif test -f $ac_srcdir/configure.in; then
24767 ac_sub_configure=$ac_configure
24768 else
24769 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24770echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24771 ac_sub_configure=
24772 fi
24773
24774 # The recursion is here.
24775 if test -n "$ac_sub_configure"; then
24776 # Make the cache file name correct relative to the subdirectory.
24777 case $cache_file in
24778 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24779 *) # Relative path.
24780 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24781 esac
24782
24783 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24784echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24785 # The eval makes quoting arguments work.
24786 eval $ac_sub_configure $ac_sub_configure_args \
24787 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24788 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24789echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24790 { (exit 1); exit 1; }; }
24791 fi
24792
24793 cd $ac_popdir
24794 done
24795fi
24796