blob: b88fe2db5ec4e6a9b5139369ce38e44afcf31b7a [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 Criswell7a73b802003-06-30 21:59:07 +0000430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444# include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449# include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460# include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_unique_file=""Makefile.config.in""
John Criswell12399a12003-09-30 15:55:44 +0000468ac_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 PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000469ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CXX_set=${CXX+set}
910ac_env_CXX_value=$CXX
911ac_cv_env_CXX_set=${CXX+set}
912ac_cv_env_CXX_value=$CXX
913ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914ac_env_CXXFLAGS_value=$CXXFLAGS
915ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CC_set=${CC+set}
926ac_env_CC_value=$CC
927ac_cv_env_CC_set=${CC+set}
928ac_cv_env_CC_value=$CC
929ac_env_CFLAGS_set=${CFLAGS+set}
930ac_env_CFLAGS_value=$CFLAGS
931ac_cv_env_CFLAGS_set=${CFLAGS+set}
932ac_cv_env_CFLAGS_value=$CFLAGS
933ac_env_CPP_set=${CPP+set}
934ac_env_CPP_value=$CPP
935ac_cv_env_CPP_set=${CPP+set}
936ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
1009
1010System types:
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1013 --target=TARGET configure for building compilers for TARGET [HOST]
1014_ACEOF
1015fi
1016
1017if test -n "$ac_init_help"; then
1018 case $ac_init_help in
1019 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1020 esac
1021 cat <<\_ACEOF
1022
1023Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001032 --disable-libtool-lock avoid locking (might break parallel builds)
1033 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001034 --enable-optimized Compile with optimizations enabled (default is NO)
1035 --enable-spec Compile SPEC benchmarks (default is NO)
1036 --enable-precompiled_bytecode
1037 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001038 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001039 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001040
1041Optional Packages:
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1046 both]
1047 --with-tags[=TAGS]
1048 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001049 --with-spec Location of SPEC benchmarks
1050 --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 Criswell0c38eaf2003-09-10 15:17:25 +00001531 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001532
John Criswell0c38eaf2003-09-10 15:17:25 +00001533 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001534
1535
John Criswell0c38eaf2003-09-10 15:17:25 +00001536 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001537
1538
John Criswell0c38eaf2003-09-10 15:17:25 +00001539 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001540
1541
John Criswell0c38eaf2003-09-10 15:17:25 +00001542 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001543
1544
John Criswell0c38eaf2003-09-10 15:17:25 +00001545 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001546
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001549
1550
John Criswell0c38eaf2003-09-10 15:17:25 +00001551 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001552
1553
John Criswell0c38eaf2003-09-10 15:17:25 +00001554 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001555
1556
John Criswell0c38eaf2003-09-10 15:17:25 +00001557 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001558
1559
John Criswell0c38eaf2003-09-10 15:17:25 +00001560 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001561
1562
John Criswell0c38eaf2003-09-10 15:17:25 +00001563 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001564
1565
John Criswell0c38eaf2003-09-10 15:17:25 +00001566 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001567
1568
John Criswell0c38eaf2003-09-10 15:17:25 +00001569 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001570
1571
John Criswell0c38eaf2003-09-10 15:17:25 +00001572 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001573
1574
John Criswell0c38eaf2003-09-10 15:17:25 +00001575 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001576
1577
John Criswell0c38eaf2003-09-10 15:17:25 +00001578 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001579
1580
John Criswell0c38eaf2003-09-10 15:17:25 +00001581 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001582
1583
John Criswell0c38eaf2003-09-10 15:17:25 +00001584 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001585
1586
John Criswell0c38eaf2003-09-10 15:17:25 +00001587 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001588
1589
John Criswell0c38eaf2003-09-10 15:17:25 +00001590 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001591
1592
John Criswell0c38eaf2003-09-10 15:17:25 +00001593 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001594
1595
John Criswell0c38eaf2003-09-10 15:17:25 +00001596 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001597
1598
John Criswell0c38eaf2003-09-10 15:17:25 +00001599 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001600
1601
John Criswell0c38eaf2003-09-10 15:17:25 +00001602 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001603
1604
John Criswell0c38eaf2003-09-10 15:17:25 +00001605 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001606
1607
John Criswell0c38eaf2003-09-10 15:17:25 +00001608 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001609
1610
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001612
1613
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001624
1625
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001627
1628
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001630
1631
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001636
1637
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001642
1643
John Criswell613758d2003-09-11 18:03:50 +00001644 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1645
1646
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001648
1649
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001651
1652
John Criswell0c38eaf2003-09-10 15:17:25 +00001653 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001654
1655
John Criswell0c38eaf2003-09-10 15:17:25 +00001656 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001657
1658
John Criswell613758d2003-09-11 18:03:50 +00001659 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1660
1661
John Criswell0c38eaf2003-09-10 15:17:25 +00001662 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001663
1664
John Criswell613758d2003-09-11 18:03:50 +00001665 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1666
1667
1668 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1669
1670
John Criswell0c38eaf2003-09-10 15:17:25 +00001671 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001672
1673
John Criswell0c38eaf2003-09-10 15:17:25 +00001674 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001675
1676
John Criswell0c38eaf2003-09-10 15:17:25 +00001677 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001678
1679
John Criswell0c38eaf2003-09-10 15:17:25 +00001680 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001681
1682
John Criswell08acb9b2003-09-16 02:12:45 +00001683 ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1684
1685
John Criswell0c38eaf2003-09-10 15:17:25 +00001686 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001687
1688
John Criswell0c38eaf2003-09-10 15:17:25 +00001689 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001690
1691
John Criswell0c38eaf2003-09-10 15:17:25 +00001692 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001693
1694
John Criswell0c38eaf2003-09-10 15:17:25 +00001695 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001696
1697
John Criswell0c38eaf2003-09-10 15:17:25 +00001698 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001699
1700
John Criswell0c38eaf2003-09-10 15:17:25 +00001701 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001702
1703
John Criswell0c38eaf2003-09-10 15:17:25 +00001704 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001705
1706
John Criswell0c38eaf2003-09-10 15:17:25 +00001707 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001708
1709
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001711
1712
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001714
1715
John Criswell0c38eaf2003-09-10 15:17:25 +00001716 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001717
1718
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001720
1721
John Criswell0c38eaf2003-09-10 15:17:25 +00001722 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001723
1724
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001726
1727
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001729
1730
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001732
1733
John Criswell0c38eaf2003-09-10 15:17:25 +00001734 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001735
1736
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001738
1739
John Criswell613758d2003-09-11 18:03:50 +00001740 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1741
1742
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001744
1745
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001747
1748
John Criswell0c38eaf2003-09-10 15:17:25 +00001749 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001750
1751
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001753
1754
John Criswell0c38eaf2003-09-10 15:17:25 +00001755 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001756
1757
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001759
1760
John Criswell0c38eaf2003-09-10 15:17:25 +00001761 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001762
1763
John Criswell0c38eaf2003-09-10 15:17:25 +00001764 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001765
1766
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001768
1769
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001771
1772
John Criswell0c38eaf2003-09-10 15:17:25 +00001773 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001774
1775
John Criswell0c38eaf2003-09-10 15:17:25 +00001776 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001777
1778
John Criswell0c38eaf2003-09-10 15:17:25 +00001779 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001780
1781
John Criswell0c38eaf2003-09-10 15:17:25 +00001782 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001783
1784
John Criswell0c38eaf2003-09-10 15:17:25 +00001785 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001786
1787
John Criswell0c38eaf2003-09-10 15:17:25 +00001788 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001789
1790
John Criswell0c38eaf2003-09-10 15:17:25 +00001791 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001792
1793
John Criswell0c38eaf2003-09-10 15:17:25 +00001794 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001795
1796
John Criswell48e3cb92003-09-12 16:31:43 +00001797 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001798
1799
John Criswell48e3cb92003-09-12 16:31:43 +00001800 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001801
1802
John Criswell39e83892003-09-12 16:36:17 +00001803 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1804
1805
1806 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1807
1808
John Criswell48e3cb92003-09-12 16:31:43 +00001809 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001810
1811
John Criswell48e3cb92003-09-12 16:31:43 +00001812 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001813
1814
John Criswell48e3cb92003-09-12 16:31:43 +00001815 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001816
1817
John Criswell48e3cb92003-09-12 16:31:43 +00001818 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001819
1820
John Criswell48e3cb92003-09-12 16:31:43 +00001821 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001822
1823
John Criswell48e3cb92003-09-12 16:31:43 +00001824 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001825
1826
John Criswell48e3cb92003-09-12 16:31:43 +00001827 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001828
1829
John Criswell48e3cb92003-09-12 16:31:43 +00001830 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001831
1832
John Criswell48e3cb92003-09-12 16:31:43 +00001833 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001834
1835
John Criswell48e3cb92003-09-12 16:31:43 +00001836 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001837
1838
John Criswell48e3cb92003-09-12 16:31:43 +00001839 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001840
1841
John Criswell48e3cb92003-09-12 16:31:43 +00001842 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001843
1844
John Criswell48e3cb92003-09-12 16:31:43 +00001845 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001846
1847
John Criswell48e3cb92003-09-12 16:31:43 +00001848 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001849
1850
John Criswell48e3cb92003-09-12 16:31:43 +00001851 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001852
1853
John Criswell48e3cb92003-09-12 16:31:43 +00001854 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001855
1856
John Criswell48e3cb92003-09-12 16:31:43 +00001857 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001858
1859
John Criswell48e3cb92003-09-12 16:31:43 +00001860 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001861
1862
John Criswell48e3cb92003-09-12 16:31:43 +00001863 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001864
1865
John Criswell48e3cb92003-09-12 16:31:43 +00001866 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001867
1868
John Criswell48e3cb92003-09-12 16:31:43 +00001869 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001870
1871
John Criswell48e3cb92003-09-12 16:31:43 +00001872 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1873
1874
1875 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1876
1877
1878 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001879
1880
John Criswell39e83892003-09-12 16:36:17 +00001881 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001882
1883
John Criswell48e3cb92003-09-12 16:31:43 +00001884 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001885
1886
John Criswell48e3cb92003-09-12 16:31:43 +00001887 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001888
1889
John Criswell48e3cb92003-09-12 16:31:43 +00001890 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001891
1892
John Criswell48e3cb92003-09-12 16:31:43 +00001893 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001894
1895
John Criswell48e3cb92003-09-12 16:31:43 +00001896 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001897
1898
John Criswell48e3cb92003-09-12 16:31:43 +00001899 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001900
1901
John Criswell48e3cb92003-09-12 16:31:43 +00001902 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001903
1904
John Criswell48e3cb92003-09-12 16:31:43 +00001905 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001906
1907
John Criswell0c38eaf2003-09-10 15:17:25 +00001908 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001909
1910
John Criswell0c38eaf2003-09-10 15:17:25 +00001911 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001912
1913
John Criswell0c38eaf2003-09-10 15:17:25 +00001914 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001915
1916
John Criswell0c38eaf2003-09-10 15:17:25 +00001917 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001918
1919
John Criswell0c38eaf2003-09-10 15:17:25 +00001920 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001921
1922
John Criswell0c38eaf2003-09-10 15:17:25 +00001923 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001924
1925
John Criswell0c38eaf2003-09-10 15:17:25 +00001926 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001927
1928
John Criswell0c38eaf2003-09-10 15:17:25 +00001929 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001930
1931
John Criswellffaaf3b2003-09-10 18:38:44 +00001932 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1933
1934
1935 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1936
1937
1938 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1939
1940
1941 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1942
1943
1944 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1945
1946
1947 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1948
1949
John Criswell0c38eaf2003-09-10 15:17:25 +00001950 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001951
1952
John Criswell0c38eaf2003-09-10 15:17:25 +00001953 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001954
1955
John Criswell0afe8252003-09-11 20:53:48 +00001956 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1957
1958
John Criswell67181ca2003-09-26 14:53:17 +00001959 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1960
1961
John Criswell68886d42003-09-26 19:51:42 +00001962 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1963
1964
1965 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1966
1967
John Criswellc66bbd52003-09-29 21:35:32 +00001968 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1969
1970
1971 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/CompileFail/Makefile"
1972
1973
John Criswell0c38eaf2003-09-10 15:17:25 +00001974 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001975
1976
John Criswell0c38eaf2003-09-10 15:17:25 +00001977 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001978
1979
John Criswell0c38eaf2003-09-10 15:17:25 +00001980 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001981
1982
John Criswell0c38eaf2003-09-10 15:17:25 +00001983 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001984
1985
John Criswell0c38eaf2003-09-10 15:17:25 +00001986 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001987
1988
John Criswell0c38eaf2003-09-10 15:17:25 +00001989 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001990
1991
John Criswell0c38eaf2003-09-10 15:17:25 +00001992 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001993
1994
John Criswell0c38eaf2003-09-10 15:17:25 +00001995 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001996
1997
John Criswellddb7b4e2003-09-16 15:54:19 +00001998 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001999
2000
Chris Lattnerebd70302003-09-13 03:29:53 +00002001 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2002
2003
John Criswellddb7b4e2003-09-16 15:54:19 +00002004 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2005
2006
John Criswell0c38eaf2003-09-10 15:17:25 +00002007 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002008
2009
John Criswellddb7b4e2003-09-16 15:54:19 +00002010 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2011
2012
2013 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2014
2015
John Criswell0c38eaf2003-09-10 15:17:25 +00002016 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002017
2018
John Criswell0c38eaf2003-09-10 15:17:25 +00002019 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002020
2021
John Criswell0c38eaf2003-09-10 15:17:25 +00002022 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002023
2024
John Criswell0c38eaf2003-09-10 15:17:25 +00002025 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002026
2027
John Criswell0c38eaf2003-09-10 15:17:25 +00002028 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002029
2030
John Criswell0c38eaf2003-09-10 15:17:25 +00002031 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002032
2033
John Criswell0c38eaf2003-09-10 15:17:25 +00002034 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002035
2036
John Criswell0c38eaf2003-09-10 15:17:25 +00002037 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002038
2039
John Criswell0c38eaf2003-09-10 15:17:25 +00002040 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002041
2042
John Criswell0c38eaf2003-09-10 15:17:25 +00002043 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002044
2045
John Criswell0c38eaf2003-09-10 15:17:25 +00002046 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002047
2048
John Criswell0c38eaf2003-09-10 15:17:25 +00002049 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002050
2051
John Criswell0c38eaf2003-09-10 15:17:25 +00002052 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002053
2054
John Criswell4e079782003-09-29 14:52:28 +00002055 ac_config_commands="$ac_config_commands support/Makefile"
2056
2057
2058 ac_config_commands="$ac_config_commands support/lib/Makefile"
2059
2060
2061 ac_config_commands="$ac_config_commands support/lib/Support/Makefile"
2062
2063
2064 ac_config_commands="$ac_config_commands support/tools/Makefile"
2065
2066
2067 ac_config_commands="$ac_config_commands support/tools/Burg/Makefile"
2068
2069
2070 ac_config_commands="$ac_config_commands support/tools/Burg/Doc/Makefile"
2071
2072
2073 ac_config_commands="$ac_config_commands support/tools/TableGen/Makefile"
2074
2075
John Criswell392aaa32003-07-22 19:18:09 +00002076
2077
John Criswell7a73b802003-06-30 21:59:07 +00002078# Find a good install program. We prefer a C program (faster),
2079# so one script is as good as another. But avoid the broken or
2080# incompatible versions:
2081# SysV /etc/install, /usr/sbin/install
2082# SunOS /usr/etc/install
2083# IRIX /sbin/install
2084# AIX /bin/install
2085# AmigaOS /C/install, which installs bootblocks on floppy discs
2086# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2087# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2088# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2089# ./install, which can be erroneously created by make from ./install.sh.
2090echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2091echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2092if test -z "$INSTALL"; then
2093if test "${ac_cv_path_install+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097for as_dir in $PATH
2098do
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 # Account for people who put trailing slashes in PATH elements.
2102case $as_dir/ in
2103 ./ | .// | /cC/* | \
2104 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2105 /usr/ucb/* ) ;;
2106 *)
2107 # OSF1 and SCO ODT 3.0 have their own names for install.
2108 # Don't use installbsd from OSF since it installs stuff as root
2109 # by default.
2110 for ac_prog in ginstall scoinst install; do
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2113 if test $ac_prog = install &&
2114 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2115 # AIX install. It has an incompatible calling convention.
2116 :
2117 elif test $ac_prog = install &&
2118 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2119 # program-specific install script used by HP pwplus--don't use.
2120 :
2121 else
2122 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2123 break 3
2124 fi
2125 fi
2126 done
2127 done
2128 ;;
2129esac
2130done
2131
2132
2133fi
2134 if test "${ac_cv_path_install+set}" = set; then
2135 INSTALL=$ac_cv_path_install
2136 else
2137 # As a last resort, use the slow shell script. We don't cache a
2138 # path for INSTALL within a source directory, because that will
2139 # break other packages using the cache if that directory is
2140 # removed, or if the path is relative.
2141 INSTALL=$ac_install_sh
2142 fi
2143fi
2144echo "$as_me:$LINENO: result: $INSTALL" >&5
2145echo "${ECHO_T}$INSTALL" >&6
2146
2147# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2148# It thinks the first close brace ends the variable substitution.
2149test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2150
2151test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2152
2153test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2154
2155
2156# Make sure we can run config.sub.
2157$ac_config_sub sun4 >/dev/null 2>&1 ||
2158 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2159echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2160 { (exit 1); exit 1; }; }
2161
2162echo "$as_me:$LINENO: checking build system type" >&5
2163echo $ECHO_N "checking build system type... $ECHO_C" >&6
2164if test "${ac_cv_build+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
2167 ac_cv_build_alias=$build_alias
2168test -z "$ac_cv_build_alias" &&
2169 ac_cv_build_alias=`$ac_config_guess`
2170test -z "$ac_cv_build_alias" &&
2171 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2172echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2173 { (exit 1); exit 1; }; }
2174ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2175 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2176echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2177 { (exit 1); exit 1; }; }
2178
2179fi
2180echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2181echo "${ECHO_T}$ac_cv_build" >&6
2182build=$ac_cv_build
2183build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2184build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2185build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2186
2187
2188echo "$as_me:$LINENO: checking host system type" >&5
2189echo $ECHO_N "checking host system type... $ECHO_C" >&6
2190if test "${ac_cv_host+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193 ac_cv_host_alias=$host_alias
2194test -z "$ac_cv_host_alias" &&
2195 ac_cv_host_alias=$ac_cv_build_alias
2196ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2197 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2198echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2200
2201fi
2202echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2203echo "${ECHO_T}$ac_cv_host" >&6
2204host=$ac_cv_host
2205host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2206host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2207host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2208
2209
2210echo "$as_me:$LINENO: checking target system type" >&5
2211echo $ECHO_N "checking target system type... $ECHO_C" >&6
2212if test "${ac_cv_target+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214else
2215 ac_cv_target_alias=$target_alias
2216test "x$ac_cv_target_alias" = "x" &&
2217 ac_cv_target_alias=$ac_cv_host_alias
2218ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2219 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2220echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2221 { (exit 1); exit 1; }; }
2222
2223fi
2224echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2225echo "${ECHO_T}$ac_cv_target" >&6
2226target=$ac_cv_target
2227target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2228target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2229target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2230
2231
2232# The aliases save the names the user supplied, while $host etc.
2233# will get canonicalized.
2234test -n "$target_alias" &&
2235 test "$program_prefix$program_suffix$program_transform_name" = \
2236 NONENONEs,x,x, &&
2237 program_prefix=${target_alias}-
2238
2239case $build in
2240 *i*86*) OS=Linux
2241
John Criswellf02dbf02003-07-22 20:07:49 +00002242 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002243
2244 ;;
2245
2246 *sparc*) OS=SunOS
2247
2248 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2249
2250 ;;
2251
2252 *) OS=Unknown
2253
2254 ;;
2255esac
2256
2257case $target in
2258 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2259
2260 ;;
2261esac
2262
John Criswell76595452003-07-01 22:07:39 +00002263case $target in
2264 *i*86*) ARCH=x86
2265
2266 ;;
2267 *sparc*solaris*) ARCH=Sparc
2268
2269 ;;
2270esac
2271
John Criswell7a73b802003-06-30 21:59:07 +00002272
2273ac_ext=cc
2274ac_cpp='$CXXCPP $CPPFLAGS'
2275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2278if test -n "$ac_tool_prefix"; then
2279 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2280 do
2281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2282set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2283echo "$as_me:$LINENO: checking for $ac_word" >&5
2284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285if test "${ac_cv_prog_CXX+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287else
2288 if test -n "$CXX"; then
2289 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2290else
2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH
2293do
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2298 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 break 2
2301 fi
2302done
2303done
2304
2305fi
2306fi
2307CXX=$ac_cv_prog_CXX
2308if test -n "$CXX"; then
2309 echo "$as_me:$LINENO: result: $CXX" >&5
2310echo "${ECHO_T}$CXX" >&6
2311else
2312 echo "$as_me:$LINENO: result: no" >&5
2313echo "${ECHO_T}no" >&6
2314fi
2315
2316 test -n "$CXX" && break
2317 done
2318fi
2319if test -z "$CXX"; then
2320 ac_ct_CXX=$CXX
2321 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2322do
2323 # Extract the first word of "$ac_prog", so it can be a program name with args.
2324set dummy $ac_prog; ac_word=$2
2325echo "$as_me:$LINENO: checking for $ac_word" >&5
2326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329else
2330 if test -n "$ac_ct_CXX"; then
2331 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2332else
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340 ac_cv_prog_ac_ct_CXX="$ac_prog"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2343 fi
2344done
2345done
2346
2347fi
2348fi
2349ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2350if test -n "$ac_ct_CXX"; then
2351 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2352echo "${ECHO_T}$ac_ct_CXX" >&6
2353else
2354 echo "$as_me:$LINENO: result: no" >&5
2355echo "${ECHO_T}no" >&6
2356fi
2357
2358 test -n "$ac_ct_CXX" && break
2359done
2360test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2361
2362 CXX=$ac_ct_CXX
2363fi
2364
2365
2366# Provide some information about the compiler.
2367echo "$as_me:$LINENO:" \
2368 "checking for C++ compiler version" >&5
2369ac_compiler=`set X $ac_compile; echo $2`
2370{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2371 (eval $ac_compiler --version </dev/null >&5) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }
2375{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2376 (eval $ac_compiler -v </dev/null >&5) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }
2380{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2381 (eval $ac_compiler -V </dev/null >&5) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }
2385
2386cat >conftest.$ac_ext <<_ACEOF
2387#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002388/* confdefs.h. */
2389_ACEOF
2390cat confdefs.h >>conftest.$ac_ext
2391cat >>conftest.$ac_ext <<_ACEOF
2392/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002393
John Criswell7a73b802003-06-30 21:59:07 +00002394int
2395main ()
2396{
2397
2398 ;
2399 return 0;
2400}
2401_ACEOF
2402ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002403ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002404# Try to create an executable without -o first, disregard a.out.
2405# It will help us diagnose broken compilers, and finding out an intuition
2406# of exeext.
2407echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2408echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2409ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411 (eval $ac_link_default) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; then
2415 # Find the output, starting from the most likely. This scheme is
2416# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2417# resort.
2418
2419# Be careful to initialize this variable, since it used to be cached.
2420# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2421ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002422# b.out is created by i960 compilers.
2423for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2424do
2425 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002426 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2428 ;;
2429 conftest.$ac_ext )
2430 # This is the source file.
2431 ;;
2432 [ab].out )
2433 # We found the default executable, but exeext='' is most
2434 # certainly right.
2435 break;;
2436 *.* )
2437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438 # FIXME: I believe we export ac_cv_exeext for Libtool,
2439 # but it would be cool to find out if it's true. Does anybody
2440 # maintain Libtool? --akim.
2441 export ac_cv_exeext
2442 break;;
2443 * )
2444 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002445 esac
2446done
2447else
2448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002449sed 's/^/| /' conftest.$ac_ext >&5
2450
2451{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2452See \`config.log' for more details." >&5
2453echo "$as_me: error: C++ compiler cannot create executables
2454See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002455 { (exit 77); exit 77; }; }
2456fi
2457
2458ac_exeext=$ac_cv_exeext
2459echo "$as_me:$LINENO: result: $ac_file" >&5
2460echo "${ECHO_T}$ac_file" >&6
2461
2462# Check the compiler produces executables we can run. If not, either
2463# the compiler is broken, or we cross compile.
2464echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2465echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2466# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2467# If not cross compiling, check that we can run a simple program.
2468if test "$cross_compiling" != yes; then
2469 if { ac_try='./$ac_file'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 cross_compiling=no
2476 else
2477 if test "$cross_compiling" = maybe; then
2478 cross_compiling=yes
2479 else
2480 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002481If you meant to cross compile, use \`--host'.
2482See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002483echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002484If you meant to cross compile, use \`--host'.
2485See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002486 { (exit 1); exit 1; }; }
2487 fi
2488 fi
2489fi
2490echo "$as_me:$LINENO: result: yes" >&5
2491echo "${ECHO_T}yes" >&6
2492
John Criswell0c38eaf2003-09-10 15:17:25 +00002493rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002494ac_clean_files=$ac_clean_files_save
2495# Check the compiler produces executables we can run. If not, either
2496# the compiler is broken, or we cross compile.
2497echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2498echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2499echo "$as_me:$LINENO: result: $cross_compiling" >&5
2500echo "${ECHO_T}$cross_compiling" >&6
2501
2502echo "$as_me:$LINENO: checking for suffix of executables" >&5
2503echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2505 (eval $ac_link) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; then
2509 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2510# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2511# work properly (i.e., refer to `conftest.exe'), while it won't with
2512# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002513for ac_file in conftest.exe conftest conftest.*; do
2514 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002515 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002517 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2518 export ac_cv_exeext
2519 break;;
2520 * ) break;;
2521 esac
2522done
2523else
John Criswell0c38eaf2003-09-10 15:17:25 +00002524 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2525See \`config.log' for more details." >&5
2526echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2527See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002528 { (exit 1); exit 1; }; }
2529fi
2530
2531rm -f conftest$ac_cv_exeext
2532echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2533echo "${ECHO_T}$ac_cv_exeext" >&6
2534
2535rm -f conftest.$ac_ext
2536EXEEXT=$ac_cv_exeext
2537ac_exeext=$EXEEXT
2538echo "$as_me:$LINENO: checking for suffix of object files" >&5
2539echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2540if test "${ac_cv_objext+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542else
2543 cat >conftest.$ac_ext <<_ACEOF
2544#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002545/* confdefs.h. */
2546_ACEOF
2547cat confdefs.h >>conftest.$ac_ext
2548cat >>conftest.$ac_ext <<_ACEOF
2549/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002550
John Criswell7a73b802003-06-30 21:59:07 +00002551int
2552main ()
2553{
2554
2555 ;
2556 return 0;
2557}
2558_ACEOF
2559rm -f conftest.o conftest.obj
2560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; then
2565 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2566 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002568 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2569 break;;
2570 esac
2571done
2572else
2573 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002574sed 's/^/| /' conftest.$ac_ext >&5
2575
2576{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2577See \`config.log' for more details." >&5
2578echo "$as_me: error: cannot compute suffix of object files: cannot compile
2579See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002580 { (exit 1); exit 1; }; }
2581fi
2582
2583rm -f conftest.$ac_cv_objext conftest.$ac_ext
2584fi
2585echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2586echo "${ECHO_T}$ac_cv_objext" >&6
2587OBJEXT=$ac_cv_objext
2588ac_objext=$OBJEXT
2589echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2590echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2591if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593else
2594 cat >conftest.$ac_ext <<_ACEOF
2595#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002601
John Criswell7a73b802003-06-30 21:59:07 +00002602int
2603main ()
2604{
2605#ifndef __GNUC__
2606 choke me
2607#endif
2608
2609 ;
2610 return 0;
2611}
2612_ACEOF
2613rm -f conftest.$ac_objext
2614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2625 ac_compiler_gnu=yes
2626else
2627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002628sed 's/^/| /' conftest.$ac_ext >&5
2629
John Criswell7a73b802003-06-30 21:59:07 +00002630ac_compiler_gnu=no
2631fi
2632rm -f conftest.$ac_objext conftest.$ac_ext
2633ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2634
2635fi
2636echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2637echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2638GXX=`test $ac_compiler_gnu = yes && echo yes`
2639ac_test_CXXFLAGS=${CXXFLAGS+set}
2640ac_save_CXXFLAGS=$CXXFLAGS
2641CXXFLAGS="-g"
2642echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2643echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2644if test "${ac_cv_prog_cxx_g+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646else
2647 cat >conftest.$ac_ext <<_ACEOF
2648#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002649/* confdefs.h. */
2650_ACEOF
2651cat confdefs.h >>conftest.$ac_ext
2652cat >>conftest.$ac_ext <<_ACEOF
2653/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002654
John Criswell7a73b802003-06-30 21:59:07 +00002655int
2656main ()
2657{
2658
2659 ;
2660 return 0;
2661}
2662_ACEOF
2663rm -f conftest.$ac_objext
2664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665 (eval $ac_compile) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try='test -s conftest.$ac_objext'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; }; then
2675 ac_cv_prog_cxx_g=yes
2676else
2677 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002678sed 's/^/| /' conftest.$ac_ext >&5
2679
John Criswell7a73b802003-06-30 21:59:07 +00002680ac_cv_prog_cxx_g=no
2681fi
2682rm -f conftest.$ac_objext conftest.$ac_ext
2683fi
2684echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2685echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2686if test "$ac_test_CXXFLAGS" = set; then
2687 CXXFLAGS=$ac_save_CXXFLAGS
2688elif test $ac_cv_prog_cxx_g = yes; then
2689 if test "$GXX" = yes; then
2690 CXXFLAGS="-g -O2"
2691 else
2692 CXXFLAGS="-g"
2693 fi
2694else
2695 if test "$GXX" = yes; then
2696 CXXFLAGS="-O2"
2697 else
2698 CXXFLAGS=
2699 fi
2700fi
2701for ac_declaration in \
2702 ''\
2703 '#include <stdlib.h>' \
2704 'extern "C" void std::exit (int) throw (); using std::exit;' \
2705 'extern "C" void std::exit (int); using std::exit;' \
2706 'extern "C" void exit (int) throw ();' \
2707 'extern "C" void exit (int);' \
2708 'void exit (int);'
2709do
2710 cat >conftest.$ac_ext <<_ACEOF
2711#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002712/* confdefs.h. */
2713_ACEOF
2714cat confdefs.h >>conftest.$ac_ext
2715cat >>conftest.$ac_ext <<_ACEOF
2716/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002717#include <stdlib.h>
2718$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002719int
2720main ()
2721{
2722exit (42);
2723 ;
2724 return 0;
2725}
2726_ACEOF
2727rm -f conftest.$ac_objext
2728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 :
2740else
2741 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002742sed 's/^/| /' conftest.$ac_ext >&5
2743
John Criswell7a73b802003-06-30 21:59:07 +00002744continue
2745fi
2746rm -f conftest.$ac_objext conftest.$ac_ext
2747 cat >conftest.$ac_ext <<_ACEOF
2748#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002749/* confdefs.h. */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002754$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002755int
2756main ()
2757{
2758exit (42);
2759 ;
2760 return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext
2764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -s conftest.$ac_objext'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 (eval $ac_try) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; }; then
2775 break
2776else
2777 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002778sed 's/^/| /' conftest.$ac_ext >&5
2779
John Criswell7a73b802003-06-30 21:59:07 +00002780fi
2781rm -f conftest.$ac_objext conftest.$ac_ext
2782done
2783rm -f conftest*
2784if test -n "$ac_declaration"; then
2785 echo '#ifdef __cplusplus' >>confdefs.h
2786 echo $ac_declaration >>confdefs.h
2787 echo '#endif' >>confdefs.h
2788fi
2789
2790ac_ext=c
2791ac_cpp='$CPP $CPPFLAGS'
2792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795
2796ac_ext=c
2797ac_cpp='$CPP $CPPFLAGS'
2798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801if test -n "$ac_tool_prefix"; then
2802 for ac_prog in gcc
2803 do
2804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2806echo "$as_me:$LINENO: checking for $ac_word" >&5
2807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810else
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825done
2826done
2827
2828fi
2829fi
2830CC=$ac_cv_prog_CC
2831if test -n "$CC"; then
2832 echo "$as_me:$LINENO: result: $CC" >&5
2833echo "${ECHO_T}$CC" >&6
2834else
2835 echo "$as_me:$LINENO: result: no" >&5
2836echo "${ECHO_T}no" >&6
2837fi
2838
2839 test -n "$CC" && break
2840 done
2841fi
2842if test -z "$CC"; then
2843 ac_ct_CC=$CC
2844 for ac_prog in gcc
2845do
2846 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847set dummy $ac_prog; ac_word=$2
2848echo "$as_me:$LINENO: checking for $ac_word" >&5
2849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852else
2853 if test -n "$ac_ct_CC"; then
2854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2855else
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_ac_ct_CC="$ac_prog"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867done
2868done
2869
2870fi
2871fi
2872ac_ct_CC=$ac_cv_prog_ac_ct_CC
2873if test -n "$ac_ct_CC"; then
2874 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2875echo "${ECHO_T}$ac_ct_CC" >&6
2876else
2877 echo "$as_me:$LINENO: result: no" >&5
2878echo "${ECHO_T}no" >&6
2879fi
2880
2881 test -n "$ac_ct_CC" && break
2882done
2883
2884 CC=$ac_ct_CC
2885fi
2886
2887
John Criswell0c38eaf2003-09-10 15:17:25 +00002888test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2889See \`config.log' for more details." >&5
2890echo "$as_me: error: no acceptable C compiler found in \$PATH
2891See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002892 { (exit 1); exit 1; }; }
2893
2894# Provide some information about the compiler.
2895echo "$as_me:$LINENO:" \
2896 "checking for C compiler version" >&5
2897ac_compiler=`set X $ac_compile; echo $2`
2898{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2899 (eval $ac_compiler --version </dev/null >&5) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2904 (eval $ac_compiler -v </dev/null >&5) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2909 (eval $ac_compiler -V </dev/null >&5) 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913
2914echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2915echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2916if test "${ac_cv_c_compiler_gnu+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919 cat >conftest.$ac_ext <<_ACEOF
2920#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002921/* confdefs.h. */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
2925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002926
John Criswell7a73b802003-06-30 21:59:07 +00002927int
2928main ()
2929{
2930#ifndef __GNUC__
2931 choke me
2932#endif
2933
2934 ;
2935 return 0;
2936}
2937_ACEOF
2938rm -f conftest.$ac_objext
2939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2940 (eval $ac_compile) 2>&5
2941 ac_status=$?
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -s conftest.$ac_objext'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 ac_compiler_gnu=yes
2951else
2952 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002953sed 's/^/| /' conftest.$ac_ext >&5
2954
John Criswell7a73b802003-06-30 21:59:07 +00002955ac_compiler_gnu=no
2956fi
2957rm -f conftest.$ac_objext conftest.$ac_ext
2958ac_cv_c_compiler_gnu=$ac_compiler_gnu
2959
2960fi
2961echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2962echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2963GCC=`test $ac_compiler_gnu = yes && echo yes`
2964ac_test_CFLAGS=${CFLAGS+set}
2965ac_save_CFLAGS=$CFLAGS
2966CFLAGS="-g"
2967echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2968echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2969if test "${ac_cv_prog_cc_g+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971else
2972 cat >conftest.$ac_ext <<_ACEOF
2973#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002974/* confdefs.h. */
2975_ACEOF
2976cat confdefs.h >>conftest.$ac_ext
2977cat >>conftest.$ac_ext <<_ACEOF
2978/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002979
John Criswell7a73b802003-06-30 21:59:07 +00002980int
2981main ()
2982{
2983
2984 ;
2985 return 0;
2986}
2987_ACEOF
2988rm -f conftest.$ac_objext
2989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 ac_cv_prog_cc_g=yes
3001else
3002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003003sed 's/^/| /' conftest.$ac_ext >&5
3004
John Criswell7a73b802003-06-30 21:59:07 +00003005ac_cv_prog_cc_g=no
3006fi
3007rm -f conftest.$ac_objext conftest.$ac_ext
3008fi
3009echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3010echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3011if test "$ac_test_CFLAGS" = set; then
3012 CFLAGS=$ac_save_CFLAGS
3013elif test $ac_cv_prog_cc_g = yes; then
3014 if test "$GCC" = yes; then
3015 CFLAGS="-g -O2"
3016 else
3017 CFLAGS="-g"
3018 fi
3019else
3020 if test "$GCC" = yes; then
3021 CFLAGS="-O2"
3022 else
3023 CFLAGS=
3024 fi
3025fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003026echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3027echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3028if test "${ac_cv_prog_cc_stdc+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3030else
3031 ac_cv_prog_cc_stdc=no
3032ac_save_CC=$CC
3033cat >conftest.$ac_ext <<_ACEOF
3034#line $LINENO "configure"
3035/* confdefs.h. */
3036_ACEOF
3037cat confdefs.h >>conftest.$ac_ext
3038cat >>conftest.$ac_ext <<_ACEOF
3039/* end confdefs.h. */
3040#include <stdarg.h>
3041#include <stdio.h>
3042#include <sys/types.h>
3043#include <sys/stat.h>
3044/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3045struct buf { int x; };
3046FILE * (*rcsopen) (struct buf *, struct stat *, int);
3047static char *e (p, i)
3048 char **p;
3049 int i;
3050{
3051 return p[i];
3052}
3053static char *f (char * (*g) (char **, int), char **p, ...)
3054{
3055 char *s;
3056 va_list v;
3057 va_start (v,p);
3058 s = g (p, va_arg (v,int));
3059 va_end (v);
3060 return s;
3061}
3062int test (int i, double x);
3063struct s1 {int (*f) (int a);};
3064struct s2 {int (*f) (double a);};
3065int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3066int argc;
3067char **argv;
3068int
3069main ()
3070{
3071return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076# Don't try gcc -ansi; that turns off useful extensions and
3077# breaks some systems' header files.
3078# AIX -qlanglvl=ansi
3079# Ultrix and OSF/1 -std1
3080# HP-UX 10.20 and later -Ae
3081# HP-UX older versions -Aa -D_HPUX_SOURCE
3082# SVR4 -Xc -D__EXTENSIONS__
3083for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3084do
3085 CC="$ac_save_CC $ac_arg"
3086 rm -f conftest.$ac_objext
3087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3088 (eval $ac_compile) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 ac_cv_prog_cc_stdc=$ac_arg
3099break
3100else
3101 echo "$as_me: failed program was:" >&5
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104fi
3105rm -f conftest.$ac_objext
3106done
3107rm -f conftest.$ac_ext conftest.$ac_objext
3108CC=$ac_save_CC
3109
3110fi
3111
3112case "x$ac_cv_prog_cc_stdc" in
3113 x|xno)
3114 echo "$as_me:$LINENO: result: none needed" >&5
3115echo "${ECHO_T}none needed" >&6 ;;
3116 *)
3117 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3118echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3119 CC="$CC $ac_cv_prog_cc_stdc" ;;
3120esac
3121
John Criswell7a73b802003-06-30 21:59:07 +00003122# Some people use a C++ compiler to compile C. Since we use `exit',
3123# in C++ we need to declare it. In case someone uses the same compiler
3124# for both compiling C and C++ we need to have the C++ compiler decide
3125# the declaration of exit, since it's the most demanding environment.
3126cat >conftest.$ac_ext <<_ACEOF
3127#ifndef __cplusplus
3128 choke me
3129#endif
3130_ACEOF
3131rm -f conftest.$ac_objext
3132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 (eval $ac_try) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3143 for ac_declaration in \
3144 ''\
3145 '#include <stdlib.h>' \
3146 'extern "C" void std::exit (int) throw (); using std::exit;' \
3147 'extern "C" void std::exit (int); using std::exit;' \
3148 'extern "C" void exit (int) throw ();' \
3149 'extern "C" void exit (int);' \
3150 'void exit (int);'
3151do
3152 cat >conftest.$ac_ext <<_ACEOF
3153#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003159#include <stdlib.h>
3160$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003161int
3162main ()
3163{
3164exit (42);
3165 ;
3166 return 0;
3167}
3168_ACEOF
3169rm -f conftest.$ac_objext
3170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 :
3182else
3183 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003184sed 's/^/| /' conftest.$ac_ext >&5
3185
John Criswell7a73b802003-06-30 21:59:07 +00003186continue
3187fi
3188rm -f conftest.$ac_objext conftest.$ac_ext
3189 cat >conftest.$ac_ext <<_ACEOF
3190#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003191/* confdefs.h. */
3192_ACEOF
3193cat confdefs.h >>conftest.$ac_ext
3194cat >>conftest.$ac_ext <<_ACEOF
3195/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003196$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003197int
3198main ()
3199{
3200exit (42);
3201 ;
3202 return 0;
3203}
3204_ACEOF
3205rm -f conftest.$ac_objext
3206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3207 (eval $ac_compile) 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 { ac_try='test -s conftest.$ac_objext'
3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213 (eval $ac_try) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; }; then
3217 break
3218else
3219 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003220sed 's/^/| /' conftest.$ac_ext >&5
3221
John Criswell7a73b802003-06-30 21:59:07 +00003222fi
3223rm -f conftest.$ac_objext conftest.$ac_ext
3224done
3225rm -f conftest*
3226if test -n "$ac_declaration"; then
3227 echo '#ifdef __cplusplus' >>confdefs.h
3228 echo $ac_declaration >>confdefs.h
3229 echo '#endif' >>confdefs.h
3230fi
3231
3232else
3233 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003234sed 's/^/| /' conftest.$ac_ext >&5
3235
John Criswell7a73b802003-06-30 21:59:07 +00003236fi
3237rm -f conftest.$ac_objext conftest.$ac_ext
3238ac_ext=c
3239ac_cpp='$CPP $CPPFLAGS'
3240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243
3244ac_ext=c
3245ac_cpp='$CPP $CPPFLAGS'
3246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3250echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3251# On Suns, sometimes $CPP names a directory.
3252if test -n "$CPP" && test -d "$CPP"; then
3253 CPP=
3254fi
3255if test -z "$CPP"; then
3256 if test "${ac_cv_prog_CPP+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258else
3259 # Double quotes because CPP needs to be expanded
3260 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3261 do
3262 ac_preproc_ok=false
3263for ac_c_preproc_warn_flag in '' yes
3264do
3265 # Use a header file that comes with gcc, so configuring glibc
3266 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3268 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003269 # On the NeXT, cc -E runs the code through the compiler's parser,
3270 # not just through cpp. "Syntax error" is here to catch this case.
3271 cat >conftest.$ac_ext <<_ACEOF
3272#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003273/* confdefs.h. */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h. */
3278#ifdef __STDC__
3279# include <limits.h>
3280#else
3281# include <assert.h>
3282#endif
John Criswell7a73b802003-06-30 21:59:07 +00003283 Syntax error
3284_ACEOF
3285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3287 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003288 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003289 rm -f conftest.er1
3290 cat conftest.err >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } >/dev/null; then
3293 if test -s conftest.err; then
3294 ac_cpp_err=$ac_c_preproc_warn_flag
3295 else
3296 ac_cpp_err=
3297 fi
3298else
3299 ac_cpp_err=yes
3300fi
3301if test -z "$ac_cpp_err"; then
3302 :
3303else
3304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003305sed 's/^/| /' conftest.$ac_ext >&5
3306
John Criswell7a73b802003-06-30 21:59:07 +00003307 # Broken: fails on valid input.
3308continue
3309fi
3310rm -f conftest.err conftest.$ac_ext
3311
3312 # OK, works on sane cases. Now check whether non-existent headers
3313 # can be detected and how.
3314 cat >conftest.$ac_ext <<_ACEOF
3315#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003316/* confdefs.h. */
3317_ACEOF
3318cat confdefs.h >>conftest.$ac_ext
3319cat >>conftest.$ac_ext <<_ACEOF
3320/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003321#include <ac_nonexistent.h>
3322_ACEOF
3323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3325 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003326 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } >/dev/null; then
3331 if test -s conftest.err; then
3332 ac_cpp_err=$ac_c_preproc_warn_flag
3333 else
3334 ac_cpp_err=
3335 fi
3336else
3337 ac_cpp_err=yes
3338fi
3339if test -z "$ac_cpp_err"; then
3340 # Broken: success on invalid input.
3341continue
3342else
3343 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003344sed 's/^/| /' conftest.$ac_ext >&5
3345
John Criswell7a73b802003-06-30 21:59:07 +00003346 # Passes both tests.
3347ac_preproc_ok=:
3348break
3349fi
3350rm -f conftest.err conftest.$ac_ext
3351
3352done
3353# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3354rm -f conftest.err conftest.$ac_ext
3355if $ac_preproc_ok; then
3356 break
3357fi
3358
3359 done
3360 ac_cv_prog_CPP=$CPP
3361
3362fi
3363 CPP=$ac_cv_prog_CPP
3364else
3365 ac_cv_prog_CPP=$CPP
3366fi
3367echo "$as_me:$LINENO: result: $CPP" >&5
3368echo "${ECHO_T}$CPP" >&6
3369ac_preproc_ok=false
3370for ac_c_preproc_warn_flag in '' yes
3371do
3372 # Use a header file that comes with gcc, so configuring glibc
3373 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3375 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003376 # On the NeXT, cc -E runs the code through the compiler's parser,
3377 # not just through cpp. "Syntax error" is here to catch this case.
3378 cat >conftest.$ac_ext <<_ACEOF
3379#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003380/* confdefs.h. */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
3384/* end confdefs.h. */
3385#ifdef __STDC__
3386# include <limits.h>
3387#else
3388# include <assert.h>
3389#endif
John Criswell7a73b802003-06-30 21:59:07 +00003390 Syntax error
3391_ACEOF
3392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3394 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003395 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } >/dev/null; then
3400 if test -s conftest.err; then
3401 ac_cpp_err=$ac_c_preproc_warn_flag
3402 else
3403 ac_cpp_err=
3404 fi
3405else
3406 ac_cpp_err=yes
3407fi
3408if test -z "$ac_cpp_err"; then
3409 :
3410else
3411 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003412sed 's/^/| /' conftest.$ac_ext >&5
3413
John Criswell7a73b802003-06-30 21:59:07 +00003414 # Broken: fails on valid input.
3415continue
3416fi
3417rm -f conftest.err conftest.$ac_ext
3418
3419 # OK, works on sane cases. Now check whether non-existent headers
3420 # can be detected and how.
3421 cat >conftest.$ac_ext <<_ACEOF
3422#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003423/* confdefs.h. */
3424_ACEOF
3425cat confdefs.h >>conftest.$ac_ext
3426cat >>conftest.$ac_ext <<_ACEOF
3427/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003428#include <ac_nonexistent.h>
3429_ACEOF
3430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3432 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003433 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } >/dev/null; then
3438 if test -s conftest.err; then
3439 ac_cpp_err=$ac_c_preproc_warn_flag
3440 else
3441 ac_cpp_err=
3442 fi
3443else
3444 ac_cpp_err=yes
3445fi
3446if test -z "$ac_cpp_err"; then
3447 # Broken: success on invalid input.
3448continue
3449else
3450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003451sed 's/^/| /' conftest.$ac_ext >&5
3452
John Criswell7a73b802003-06-30 21:59:07 +00003453 # Passes both tests.
3454ac_preproc_ok=:
3455break
3456fi
3457rm -f conftest.err conftest.$ac_ext
3458
3459done
3460# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461rm -f conftest.err conftest.$ac_ext
3462if $ac_preproc_ok; then
3463 :
3464else
John Criswell0c38eaf2003-09-10 15:17:25 +00003465 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3466See \`config.log' for more details." >&5
3467echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3468See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003469 { (exit 1); exit 1; }; }
3470fi
3471
3472ac_ext=c
3473ac_cpp='$CPP $CPPFLAGS'
3474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477
3478
3479if test "$GCC" != "yes"
3480then
3481 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3482echo "$as_me: error: gcc required but not found" >&2;}
3483 { (exit 1); exit 1; }; }
3484fi
3485
3486if test "$GXX" != "yes"
3487then
3488 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3489echo "$as_me: error: g++ required but not found" >&2;}
3490 { (exit 1); exit 1; }; }
3491fi
3492
John Criswellde00db22003-08-25 16:49:54 +00003493gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3494if test "$gccmajor" -lt "3"
3495then
3496 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3497echo "$as_me: error: gcc 3.x required" >&2;}
3498 { (exit 1); exit 1; }; }
3499fi
3500
John Criswell7a73b802003-06-30 21:59:07 +00003501 echo "$as_me:$LINENO: checking for GNU make" >&5
3502echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3503if test "${_cv_gnu_make_command+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506 _cv_gnu_make_command='' ;
3507 for a in "$MAKE" make gmake gnumake ; do
3508 if test -z "$a" ; then continue ; fi ;
3509 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3510 _cv_gnu_make_command=$a ;
3511 break;
3512 fi
3513 done ;
3514
3515fi
3516echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3517echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3518 if test "x$_cv_gnu_make_command" != "x" ; then
3519 ifGNUmake='' ;
3520 else
3521 ifGNUmake='#' ;
3522 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3523echo "${ECHO_T}\"Not found\"" >&6;
3524 fi
3525
3526
3527if test -z "$_cv_gnu_make_command"
3528then
3529 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3530echo "$as_me: error: GNU Make required but not found" >&2;}
3531 { (exit 1); exit 1; }; }
3532fi
3533
3534
3535echo "$as_me:$LINENO: checking " >&5
3536echo $ECHO_N "checking ... $ECHO_C" >&6
3537if test "${ac_cv_has_flex+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540 for ac_prog in flex lex
3541do
3542 # Extract the first word of "$ac_prog", so it can be a program name with args.
3543set dummy $ac_prog; ac_word=$2
3544echo "$as_me:$LINENO: checking for $ac_word" >&5
3545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3546if test "${ac_cv_prog_LEX+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 if test -n "$LEX"; then
3550 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3551else
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH
3554do
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_LEX="$ac_prog"
3560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 break 2
3562 fi
3563done
3564done
3565
3566fi
3567fi
3568LEX=$ac_cv_prog_LEX
3569if test -n "$LEX"; then
3570 echo "$as_me:$LINENO: result: $LEX" >&5
3571echo "${ECHO_T}$LEX" >&6
3572else
3573 echo "$as_me:$LINENO: result: no" >&5
3574echo "${ECHO_T}no" >&6
3575fi
3576
3577 test -n "$LEX" && break
3578done
3579test -n "$LEX" || LEX=":"
3580
3581if test -z "$LEXLIB"
3582then
3583 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3584echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3585if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587else
3588 ac_check_lib_save_LIBS=$LIBS
3589LIBS="-lfl $LIBS"
3590cat >conftest.$ac_ext <<_ACEOF
3591#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003592/* confdefs.h. */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003597
3598/* Override any gcc2 internal prototype to avoid an error. */
3599#ifdef __cplusplus
3600extern "C"
3601#endif
3602/* We use char because int might match the return type of a gcc2
3603 builtin and then its argument prototype would still apply. */
3604char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003605int
3606main ()
3607{
3608yywrap ();
3609 ;
3610 return 0;
3611}
3612_ACEOF
3613rm -f conftest.$ac_objext conftest$ac_exeext
3614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3615 (eval $ac_link) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
3619 { ac_try='test -s conftest$ac_exeext'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 (eval $ac_try) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3625 ac_cv_lib_fl_yywrap=yes
3626else
3627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003628sed 's/^/| /' conftest.$ac_ext >&5
3629
John Criswell7a73b802003-06-30 21:59:07 +00003630ac_cv_lib_fl_yywrap=no
3631fi
3632rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3633LIBS=$ac_check_lib_save_LIBS
3634fi
3635echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3636echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3637if test $ac_cv_lib_fl_yywrap = yes; then
3638 LEXLIB="-lfl"
3639else
3640 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3641echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3642if test "${ac_cv_lib_l_yywrap+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645 ac_check_lib_save_LIBS=$LIBS
3646LIBS="-ll $LIBS"
3647cat >conftest.$ac_ext <<_ACEOF
3648#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003649/* confdefs.h. */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003654
3655/* Override any gcc2 internal prototype to avoid an error. */
3656#ifdef __cplusplus
3657extern "C"
3658#endif
3659/* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3661char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003662int
3663main ()
3664{
3665yywrap ();
3666 ;
3667 return 0;
3668}
3669_ACEOF
3670rm -f conftest.$ac_objext conftest$ac_exeext
3671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3672 (eval $ac_link) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -s conftest$ac_exeext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_cv_lib_l_yywrap=yes
3683else
3684 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003685sed 's/^/| /' conftest.$ac_ext >&5
3686
John Criswell7a73b802003-06-30 21:59:07 +00003687ac_cv_lib_l_yywrap=no
3688fi
3689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3690LIBS=$ac_check_lib_save_LIBS
3691fi
3692echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3693echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3694if test $ac_cv_lib_l_yywrap = yes; then
3695 LEXLIB="-ll"
3696fi
3697
3698fi
3699
3700fi
3701
3702if test "x$LEX" != "x:"; then
3703 echo "$as_me:$LINENO: checking lex output file root" >&5
3704echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3705if test "${ac_cv_prog_lex_root+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707else
3708 # The minimal lex program is just a single line: %%. But some broken lexes
3709# (Solaris, I think it was) want two %% lines, so accommodate them.
3710cat >conftest.l <<_ACEOF
3711%%
3712%%
3713_ACEOF
3714{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3715 (eval $LEX conftest.l) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }
3719if test -f lex.yy.c; then
3720 ac_cv_prog_lex_root=lex.yy
3721elif test -f lexyy.c; then
3722 ac_cv_prog_lex_root=lexyy
3723else
3724 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3725echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3726 { (exit 1); exit 1; }; }
3727fi
3728fi
3729echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3730echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3731rm -f conftest.l
3732LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3733
3734echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3735echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3736if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739 # POSIX says lex can declare yytext either as a pointer or an array; the
3740# default is implementation-dependent. Figure out which it is, since
3741# not all implementations provide the %pointer and %array declarations.
3742ac_cv_prog_lex_yytext_pointer=no
3743echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3744ac_save_LIBS=$LIBS
3745LIBS="$LIBS $LEXLIB"
3746cat >conftest.$ac_ext <<_ACEOF
3747`cat $LEX_OUTPUT_ROOT.c`
3748_ACEOF
3749rm -f conftest.$ac_objext conftest$ac_exeext
3750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3751 (eval $ac_link) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 { ac_try='test -s conftest$ac_exeext'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3761 ac_cv_prog_lex_yytext_pointer=yes
3762else
3763 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003764sed 's/^/| /' conftest.$ac_ext >&5
3765
John Criswell7a73b802003-06-30 21:59:07 +00003766fi
3767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3768LIBS=$ac_save_LIBS
3769rm -f "${LEX_OUTPUT_ROOT}.c"
3770
3771fi
3772echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3773echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3774if test $ac_cv_prog_lex_yytext_pointer = yes; then
3775
3776cat >>confdefs.h <<\_ACEOF
3777#define YYTEXT_POINTER 1
3778_ACEOF
3779
3780fi
3781
3782fi
3783
3784fi
3785echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3786echo "${ECHO_T}$ac_cv_has_flex" >&6
3787if test "$LEX" != "flex"; then
3788 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3789echo "$as_me: error: flex not found but required" >&2;}
3790 { (exit 1); exit 1; }; }
3791fi
3792
3793echo "$as_me:$LINENO: checking " >&5
3794echo $ECHO_N "checking ... $ECHO_C" >&6
3795if test "${ac_cv_has_bison+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 for ac_prog in 'bison -y' byacc
3799do
3800 # Extract the first word of "$ac_prog", so it can be a program name with args.
3801set dummy $ac_prog; ac_word=$2
3802echo "$as_me:$LINENO: checking for $ac_word" >&5
3803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804if test "${ac_cv_prog_YACC+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807 if test -n "$YACC"; then
3808 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3809else
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_YACC="$ac_prog"
3818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3820 fi
3821done
3822done
3823
3824fi
3825fi
3826YACC=$ac_cv_prog_YACC
3827if test -n "$YACC"; then
3828 echo "$as_me:$LINENO: result: $YACC" >&5
3829echo "${ECHO_T}$YACC" >&6
3830else
3831 echo "$as_me:$LINENO: result: no" >&5
3832echo "${ECHO_T}no" >&6
3833fi
3834
3835 test -n "$YACC" && break
3836done
3837test -n "$YACC" || YACC="yacc"
3838
3839
3840fi
3841echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3842echo "${ECHO_T}$ac_cv_has_bison" >&6
3843if test "$YACC" != "bison -y"; then
3844 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3845echo "$as_me: error: bison not found but required" >&2;}
3846 { (exit 1); exit 1; }; }
3847else
3848 YACC=bison
3849
3850fi
3851
3852
3853# Check whether --enable-shared or --disable-shared was given.
3854if test "${enable_shared+set}" = set; then
3855 enableval="$enable_shared"
3856 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003857 case $enableval in
3858 yes) enable_shared=yes ;;
3859 no) enable_shared=no ;;
3860 *)
3861 enable_shared=no
3862 # Look at the argument we got. We use all the common list separators.
3863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3864 for pkg in $enableval; do
3865 IFS="$lt_save_ifs"
3866 if test "X$pkg" = "X$p"; then
3867 enable_shared=yes
3868 fi
3869 done
3870 IFS="$lt_save_ifs"
3871 ;;
3872 esac
John Criswell7a73b802003-06-30 21:59:07 +00003873else
3874 enable_shared=yes
3875fi;
John Criswell47fdd832003-07-14 16:52:07 +00003876
John Criswell7a73b802003-06-30 21:59:07 +00003877# Check whether --enable-static or --disable-static was given.
3878if test "${enable_static+set}" = set; then
3879 enableval="$enable_static"
3880 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003881 case $enableval in
3882 yes) enable_static=yes ;;
3883 no) enable_static=no ;;
3884 *)
3885 enable_static=no
3886 # Look at the argument we got. We use all the common list separators.
3887 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3888 for pkg in $enableval; do
3889 IFS="$lt_save_ifs"
3890 if test "X$pkg" = "X$p"; then
3891 enable_static=yes
3892 fi
3893 done
3894 IFS="$lt_save_ifs"
3895 ;;
3896 esac
John Criswell7a73b802003-06-30 21:59:07 +00003897else
3898 enable_static=yes
3899fi;
John Criswell47fdd832003-07-14 16:52:07 +00003900
John Criswell7a73b802003-06-30 21:59:07 +00003901# Check whether --enable-fast-install or --disable-fast-install was given.
3902if test "${enable_fast_install+set}" = set; then
3903 enableval="$enable_fast_install"
3904 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003905 case $enableval in
3906 yes) enable_fast_install=yes ;;
3907 no) enable_fast_install=no ;;
3908 *)
3909 enable_fast_install=no
3910 # Look at the argument we got. We use all the common list separators.
3911 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3912 for pkg in $enableval; do
3913 IFS="$lt_save_ifs"
3914 if test "X$pkg" = "X$p"; then
3915 enable_fast_install=yes
3916 fi
3917 done
3918 IFS="$lt_save_ifs"
3919 ;;
3920 esac
John Criswell7a73b802003-06-30 21:59:07 +00003921else
3922 enable_fast_install=yes
3923fi;
John Criswell47fdd832003-07-14 16:52:07 +00003924
3925echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3926echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3927if test "${lt_cv_path_SED+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929else
3930 # Loop through the user's path and test for sed and gsed.
3931# Then use that list of sed's as ones to test for truncation.
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for lt_ac_prog in sed gsed; do
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3940 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3941 fi
3942 done
3943 done
3944done
3945lt_ac_max=0
3946lt_ac_count=0
3947# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3948# along with /bin/sed that truncates output.
3949for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3950 test ! -f $lt_ac_sed && break
3951 cat /dev/null > conftest.in
3952 lt_ac_count=0
3953 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3954 # Check for GNU sed and select it if it is found.
3955 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3956 lt_cv_path_SED=$lt_ac_sed
3957 break
3958 fi
3959 while true; do
3960 cat conftest.in conftest.in >conftest.tmp
3961 mv conftest.tmp conftest.in
3962 cp conftest.in conftest.nl
3963 echo >>conftest.nl
3964 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3965 cmp -s conftest.out conftest.nl || break
3966 # 10000 chars as input seems more than enough
3967 test $lt_ac_count -gt 10 && break
3968 lt_ac_count=`expr $lt_ac_count + 1`
3969 if test $lt_ac_count -gt $lt_ac_max; then
3970 lt_ac_max=$lt_ac_count
3971 lt_cv_path_SED=$lt_ac_sed
3972 fi
3973 done
3974done
3975SED=$lt_cv_path_SED
3976
John Criswell7a73b802003-06-30 21:59:07 +00003977fi
3978
John Criswell47fdd832003-07-14 16:52:07 +00003979echo "$as_me:$LINENO: result: $SED" >&5
3980echo "${ECHO_T}$SED" >&6
3981
3982echo "$as_me:$LINENO: checking for egrep" >&5
3983echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3984if test "${ac_cv_prog_egrep+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3988 then ac_cv_prog_egrep='grep -E'
3989 else ac_cv_prog_egrep='egrep'
3990 fi
3991fi
3992echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3993echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3994 EGREP=$ac_cv_prog_egrep
3995
3996
John Criswell7a73b802003-06-30 21:59:07 +00003997
3998# Check whether --with-gnu-ld or --without-gnu-ld was given.
3999if test "${with_gnu_ld+set}" = set; then
4000 withval="$with_gnu_ld"
4001 test "$withval" = no || with_gnu_ld=yes
4002else
4003 with_gnu_ld=no
4004fi;
4005ac_prog=ld
4006if test "$GCC" = yes; then
4007 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00004008 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4009echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004010 case $host in
4011 *-*-mingw*)
4012 # gcc leaves a trailing carriage return which upsets mingw
4013 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4014 *)
4015 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4016 esac
4017 case $ac_prog in
4018 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004019 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004020 re_direlt='/[^/][^/]*/\.\./'
4021 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004022 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004023 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004024 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004025 done
4026 test -z "$LD" && LD="$ac_prog"
4027 ;;
4028 "")
4029 # If it fails, then pretend we aren't using GCC.
4030 ac_prog=ld
4031 ;;
4032 *)
4033 # If it is relative, then search for the first ld in PATH.
4034 with_gnu_ld=unknown
4035 ;;
4036 esac
4037elif test "$with_gnu_ld" = yes; then
4038 echo "$as_me:$LINENO: checking for GNU ld" >&5
4039echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4040else
4041 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4042echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4043fi
4044if test "${lt_cv_path_LD+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046else
4047 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004049 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004050 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004051 test -z "$ac_dir" && ac_dir=.
4052 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4053 lt_cv_path_LD="$ac_dir/$ac_prog"
4054 # Check to see if the program is GNU ld. I'd rather use --version,
4055 # but apparently some GNU ld's only accept -v.
4056 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004057 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4058 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004059 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004060 ;;
4061 *)
John Criswell7a73b802003-06-30 21:59:07 +00004062 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004063 ;;
4064 esac
John Criswell7a73b802003-06-30 21:59:07 +00004065 fi
4066 done
John Criswell47fdd832003-07-14 16:52:07 +00004067 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004068else
4069 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4070fi
4071fi
4072
4073LD="$lt_cv_path_LD"
4074if test -n "$LD"; then
4075 echo "$as_me:$LINENO: result: $LD" >&5
4076echo "${ECHO_T}$LD" >&6
4077else
4078 echo "$as_me:$LINENO: result: no" >&5
4079echo "${ECHO_T}no" >&6
4080fi
4081test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4082echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4083 { (exit 1); exit 1; }; }
4084echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4085echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4086if test "${lt_cv_prog_gnu_ld+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088else
4089 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004090case `"$LD" -v 2>&1 </dev/null` in
4091*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004092 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004093 ;;
4094*)
John Criswell7a73b802003-06-30 21:59:07 +00004095 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004096 ;;
4097esac
John Criswell7a73b802003-06-30 21:59:07 +00004098fi
4099echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4100echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4101with_gnu_ld=$lt_cv_prog_gnu_ld
4102
4103
4104echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4105echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4106if test "${lt_cv_ld_reload_flag+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109 lt_cv_ld_reload_flag='-r'
4110fi
4111echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4112echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4113reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004114case $reload_flag in
4115"" | " "*) ;;
4116*) reload_flag=" $reload_flag" ;;
4117esac
4118reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004119
4120echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4121echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4122if test "${lt_cv_path_NM+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125 if test -n "$NM"; then
4126 # Let the user override the test.
4127 lt_cv_path_NM="$NM"
4128else
John Criswell47fdd832003-07-14 16:52:07 +00004129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004130 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004131 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004132 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004133 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4134 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004135 # Check to see if the nm accepts a BSD-compat flag.
4136 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4137 # nm: unknown option "B" ignored
4138 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004139 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4140 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004141 lt_cv_path_NM="$tmp_nm -B"
4142 break
John Criswell47fdd832003-07-14 16:52:07 +00004143 ;;
4144 *)
4145 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4146 */dev/null*)
4147 lt_cv_path_NM="$tmp_nm -p"
4148 break
4149 ;;
4150 *)
4151 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4152 continue # so that we can try to find one that supports BSD flags
4153 ;;
4154 esac
4155 esac
John Criswell7a73b802003-06-30 21:59:07 +00004156 fi
4157 done
John Criswell47fdd832003-07-14 16:52:07 +00004158 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004159 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4160fi
4161fi
John Criswell47fdd832003-07-14 16:52:07 +00004162echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4163echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004164NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004165
4166echo "$as_me:$LINENO: checking whether ln -s works" >&5
4167echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4168LN_S=$as_ln_s
4169if test "$LN_S" = "ln -s"; then
4170 echo "$as_me:$LINENO: result: yes" >&5
4171echo "${ECHO_T}yes" >&6
4172else
4173 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4174echo "${ECHO_T}no, using $LN_S" >&6
4175fi
4176
John Criswell47fdd832003-07-14 16:52:07 +00004177echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4178echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004179if test "${lt_cv_deplibs_check_method+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181else
4182 lt_cv_file_magic_cmd='$MAGIC_CMD'
4183lt_cv_file_magic_test_file=
4184lt_cv_deplibs_check_method='unknown'
4185# Need to set the preceding variable on all platforms that support
4186# interlibrary dependencies.
4187# 'none' -- dependencies not supported.
4188# `unknown' -- same as none, but documents that we really don't know.
4189# 'pass_all' -- all dependencies passed with no checks.
4190# 'test_compile' -- check by making test program.
4191# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004192# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004193# If you have `file' or equivalent on your system and you're not sure
4194# whether `pass_all' will *always* work, you probably want this one.
4195
4196case $host_os in
4197aix4* | aix5*)
4198 lt_cv_deplibs_check_method=pass_all
4199 ;;
4200
4201beos*)
4202 lt_cv_deplibs_check_method=pass_all
4203 ;;
4204
4205bsdi4*)
4206 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4207 lt_cv_file_magic_cmd='/usr/bin/file -L'
4208 lt_cv_file_magic_test_file=/shlib/libc.so
4209 ;;
4210
4211cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004212 # win32_libid is a shell function defined in ltmain.sh
4213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4214 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004215 ;;
4216
4217darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004218 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004219 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4220 lt_cv_file_magic_cmd='/usr/bin/file -L'
4221 case "$host_os" in
4222 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004223 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004224 ;;
4225 *) # Darwin 1.3 on
4226 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4227 ;;
4228 esac
John Criswell47fdd832003-07-14 16:52:07 +00004229 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004230 ;;
4231
4232freebsd*)
4233 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4234 case $host_cpu in
4235 i*86 )
4236 # Not sure whether the presence of OpenBSD here was a mistake.
4237 # Let's accept both of them until this is cleared up.
4238 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4239 lt_cv_file_magic_cmd=/usr/bin/file
4240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4241 ;;
4242 esac
4243 else
4244 lt_cv_deplibs_check_method=pass_all
4245 fi
4246 ;;
4247
4248gnu*)
4249 lt_cv_deplibs_check_method=pass_all
4250 ;;
4251
John Criswell47fdd832003-07-14 16:52:07 +00004252hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004253 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004254 case "$host_cpu" in
4255 ia64*)
4256 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4257 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4258 ;;
4259 hppa*64*)
4260 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]'
4261 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4262 ;;
4263 *)
4264 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4265 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4266 ;;
4267 esac
John Criswell7a73b802003-06-30 21:59:07 +00004268 ;;
4269
John Criswell47fdd832003-07-14 16:52:07 +00004270irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004271 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004272 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004273 # this will be overridden with pass_all, but let us keep it just in case
4274 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4275 ;;
4276 *)
4277 case $LD in
4278 *-32|*"-32 ") libmagic=32-bit;;
4279 *-n32|*"-n32 ") libmagic=N32;;
4280 *-64|*"-64 ") libmagic=64-bit;;
4281 *) libmagic=never-match;;
4282 esac
4283 # this will be overridden with pass_all, but let us keep it just in case
4284 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4285 ;;
4286 esac
4287 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4288 lt_cv_deplibs_check_method=pass_all
4289 ;;
4290
4291# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004292linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004293 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004294 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004295 lt_cv_deplibs_check_method=pass_all ;;
4296 *)
4297 # glibc up to 2.1.1 does not perform some relocations on ARM
4298 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4299 esac
4300 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4301 ;;
4302
4303netbsd*)
4304 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004306 else
John Criswell47fdd832003-07-14 16:52:07 +00004307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004308 fi
4309 ;;
4310
4311newos6*)
4312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4313 lt_cv_file_magic_cmd=/usr/bin/file
4314 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4315 ;;
4316
John Criswell47fdd832003-07-14 16:52:07 +00004317nto-qnx)
4318 lt_cv_deplibs_check_method=unknown
4319 ;;
4320
John Criswell7a73b802003-06-30 21:59:07 +00004321openbsd*)
4322 lt_cv_file_magic_cmd=/usr/bin/file
4323 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4326 else
4327 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4328 fi
4329 ;;
4330
4331osf3* | osf4* | osf5*)
4332 # this will be overridden with pass_all, but let us keep it just in case
4333 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4334 lt_cv_file_magic_test_file=/shlib/libc.so
4335 lt_cv_deplibs_check_method=pass_all
4336 ;;
4337
4338sco3.2v5*)
4339 lt_cv_deplibs_check_method=pass_all
4340 ;;
4341
4342solaris*)
4343 lt_cv_deplibs_check_method=pass_all
4344 lt_cv_file_magic_test_file=/lib/libc.so
4345 ;;
4346
John Criswell7a73b802003-06-30 21:59:07 +00004347sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4348 case $host_vendor in
4349 motorola)
4350 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]'
4351 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4352 ;;
4353 ncr)
4354 lt_cv_deplibs_check_method=pass_all
4355 ;;
4356 sequent)
4357 lt_cv_file_magic_cmd='/bin/file'
4358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4359 ;;
4360 sni)
4361 lt_cv_file_magic_cmd='/bin/file'
4362 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4363 lt_cv_file_magic_test_file=/lib/libc.so
4364 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004365 siemens)
4366 lt_cv_deplibs_check_method=pass_all
4367 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004368 esac
4369 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004370
4371sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4372 lt_cv_deplibs_check_method=pass_all
4373 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004374esac
4375
4376fi
4377echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4378echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4379file_magic_cmd=$lt_cv_file_magic_cmd
4380deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004381test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004382
4383
4384
4385
John Criswell47fdd832003-07-14 16:52:07 +00004386# If no C compiler was specified, use CC.
4387LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004388
John Criswell47fdd832003-07-14 16:52:07 +00004389# Allow CC to be a program name with arguments.
4390compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004391
John Criswell47fdd832003-07-14 16:52:07 +00004392# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4393if test "${enable_libtool_lock+set}" = set; then
4394 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004395
John Criswell47fdd832003-07-14 16:52:07 +00004396fi;
4397test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004398
John Criswell47fdd832003-07-14 16:52:07 +00004399# Some flags need to be propagated to the compiler or linker for good
4400# libtool support.
4401case $host in
4402ia64-*-hpux*)
4403 # Find out which ABI we are using.
4404 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406 (eval $ac_compile) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004410 case `/usr/bin/file conftest.$ac_objext` in
4411 *ELF-32*)
4412 HPUX_IA64_MODE="32"
4413 ;;
4414 *ELF-64*)
4415 HPUX_IA64_MODE="64"
4416 ;;
4417 esac
4418 fi
4419 rm -rf conftest*
4420 ;;
4421*-*-irix6*)
4422 # Find out which ABI we are using.
John Criswell12399a12003-09-30 15:55:44 +00004423 echo '#line 4423 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4425 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004428 (exit $ac_status); }; then
4429 if test "$lt_cv_prog_gnu_ld" = yes; then
4430 case `/usr/bin/file conftest.$ac_objext` in
4431 *32-bit*)
4432 LD="${LD-ld} -melf32bsmip"
4433 ;;
4434 *N32*)
4435 LD="${LD-ld} -melf32bmipn32"
4436 ;;
4437 *64-bit*)
4438 LD="${LD-ld} -melf64bmip"
4439 ;;
4440 esac
4441 else
4442 case `/usr/bin/file conftest.$ac_objext` in
4443 *32-bit*)
4444 LD="${LD-ld} -32"
4445 ;;
4446 *N32*)
4447 LD="${LD-ld} -n32"
4448 ;;
4449 *64-bit*)
4450 LD="${LD-ld} -64"
4451 ;;
4452 esac
4453 fi
4454 fi
4455 rm -rf conftest*
4456 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004457
John Criswell47fdd832003-07-14 16:52:07 +00004458x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4459 # Find out which ABI we are using.
4460 echo 'int i;' > conftest.$ac_ext
4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462 (eval $ac_compile) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; then
4466 case "`/usr/bin/file conftest.o`" in
4467 *32-bit*)
4468 case $host in
4469 x86_64-*linux*)
4470 LD="${LD-ld} -m elf_i386"
4471 ;;
4472 ppc64-*linux*)
4473 LD="${LD-ld} -m elf32ppclinux"
4474 ;;
4475 s390x-*linux*)
4476 LD="${LD-ld} -m elf_s390"
4477 ;;
4478 sparc64-*linux*)
4479 LD="${LD-ld} -m elf32_sparc"
4480 ;;
4481 esac
4482 ;;
4483 *64-bit*)
4484 case $host in
4485 x86_64-*linux*)
4486 LD="${LD-ld} -m elf_x86_64"
4487 ;;
4488 ppc*-*linux*|powerpc*-*linux*)
4489 LD="${LD-ld} -m elf64ppc"
4490 ;;
4491 s390*-*linux*)
4492 LD="${LD-ld} -m elf64_s390"
4493 ;;
4494 sparc*-*linux*)
4495 LD="${LD-ld} -m elf64_sparc"
4496 ;;
4497 esac
4498 ;;
4499 esac
4500 fi
4501 rm -rf conftest*
4502 ;;
4503
4504*-*-sco3.2v5*)
4505 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4506 SAVE_CFLAGS="$CFLAGS"
4507 CFLAGS="$CFLAGS -belf"
4508 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4509echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4510if test "${lt_cv_cc_needs_belf+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
4513 ac_ext=c
4514ac_cpp='$CPP $CPPFLAGS'
4515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518
4519 cat >conftest.$ac_ext <<_ACEOF
4520#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004521/* confdefs.h. */
4522_ACEOF
4523cat confdefs.h >>conftest.$ac_ext
4524cat >>conftest.$ac_ext <<_ACEOF
4525/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004526
John Criswell47fdd832003-07-14 16:52:07 +00004527int
4528main ()
John Criswell7a73b802003-06-30 21:59:07 +00004529{
John Criswell7a73b802003-06-30 21:59:07 +00004530
John Criswell47fdd832003-07-14 16:52:07 +00004531 ;
4532 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004533}
John Criswell47fdd832003-07-14 16:52:07 +00004534_ACEOF
4535rm -f conftest.$ac_objext conftest$ac_exeext
4536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004537 (eval $ac_link) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004540 (exit $ac_status); } &&
4541 { ac_try='test -s conftest$ac_exeext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004548else
John Criswell47fdd832003-07-14 16:52:07 +00004549 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004550sed 's/^/| /' conftest.$ac_ext >&5
4551
John Criswell47fdd832003-07-14 16:52:07 +00004552lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004553fi
John Criswell47fdd832003-07-14 16:52:07 +00004554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4555 ac_ext=c
4556ac_cpp='$CPP $CPPFLAGS'
4557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560
John Criswell7a73b802003-06-30 21:59:07 +00004561fi
John Criswell47fdd832003-07-14 16:52:07 +00004562echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4563echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4564 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4565 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4566 CFLAGS="$SAVE_CFLAGS"
4567 fi
4568 ;;
4569
4570esac
4571
4572need_locks="$enable_libtool_lock"
4573
John Criswell7a73b802003-06-30 21:59:07 +00004574
4575
4576echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4577echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4578if test "${ac_cv_header_stdc+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581 cat >conftest.$ac_ext <<_ACEOF
4582#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004583/* confdefs.h. */
4584_ACEOF
4585cat confdefs.h >>conftest.$ac_ext
4586cat >>conftest.$ac_ext <<_ACEOF
4587/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004588#include <stdlib.h>
4589#include <stdarg.h>
4590#include <string.h>
4591#include <float.h>
4592
John Criswell0c38eaf2003-09-10 15:17:25 +00004593int
4594main ()
4595{
4596
4597 ;
4598 return 0;
4599}
John Criswell7a73b802003-06-30 21:59:07 +00004600_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004601rm -f conftest.$ac_objext
4602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004604 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004606 (exit $ac_status); } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004613 ac_cv_header_stdc=yes
4614else
4615 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004619fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004620rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004621
4622if test $ac_cv_header_stdc = yes; then
4623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4624 cat >conftest.$ac_ext <<_ACEOF
4625#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004626/* confdefs.h. */
4627_ACEOF
4628cat confdefs.h >>conftest.$ac_ext
4629cat >>conftest.$ac_ext <<_ACEOF
4630/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004631#include <string.h>
4632
4633_ACEOF
4634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004635 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004636 :
4637else
4638 ac_cv_header_stdc=no
4639fi
4640rm -f conftest*
4641
4642fi
4643
4644if test $ac_cv_header_stdc = yes; then
4645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4646 cat >conftest.$ac_ext <<_ACEOF
4647#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004648/* confdefs.h. */
4649_ACEOF
4650cat confdefs.h >>conftest.$ac_ext
4651cat >>conftest.$ac_ext <<_ACEOF
4652/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004653#include <stdlib.h>
4654
4655_ACEOF
4656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004657 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004658 :
4659else
4660 ac_cv_header_stdc=no
4661fi
4662rm -f conftest*
4663
4664fi
4665
4666if test $ac_cv_header_stdc = yes; then
4667 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4668 if test "$cross_compiling" = yes; then
4669 :
4670else
4671 cat >conftest.$ac_ext <<_ACEOF
4672#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004673/* confdefs.h. */
4674_ACEOF
4675cat confdefs.h >>conftest.$ac_ext
4676cat >>conftest.$ac_ext <<_ACEOF
4677/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004678#include <ctype.h>
4679#if ((' ' & 0x0FF) == 0x020)
4680# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4681# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4682#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004683# define ISLOWER(c) \
4684 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004685 || ('j' <= (c) && (c) <= 'r') \
4686 || ('s' <= (c) && (c) <= 'z'))
4687# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4688#endif
4689
4690#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4691int
4692main ()
4693{
4694 int i;
4695 for (i = 0; i < 256; i++)
4696 if (XOR (islower (i), ISLOWER (i))
4697 || toupper (i) != TOUPPER (i))
4698 exit(2);
4699 exit (0);
4700}
4701_ACEOF
4702rm -f conftest$ac_exeext
4703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4704 (eval $ac_link) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 :
4714else
4715 echo "$as_me: program exited with status $ac_status" >&5
4716echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004717sed 's/^/| /' conftest.$ac_ext >&5
4718
John Criswell7a73b802003-06-30 21:59:07 +00004719( exit $ac_status )
4720ac_cv_header_stdc=no
4721fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004722rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004723fi
4724fi
4725fi
4726echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4727echo "${ECHO_T}$ac_cv_header_stdc" >&6
4728if test $ac_cv_header_stdc = yes; then
4729
4730cat >>confdefs.h <<\_ACEOF
4731#define STDC_HEADERS 1
4732_ACEOF
4733
4734fi
4735
4736# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4747 inttypes.h stdint.h unistd.h
4748do
4749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4750echo "$as_me:$LINENO: checking for $ac_header" >&5
4751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4752if eval "test \"\${$as_ac_Header+set}\" = set"; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754else
4755 cat >conftest.$ac_ext <<_ACEOF
4756#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004757/* confdefs.h. */
4758_ACEOF
4759cat confdefs.h >>conftest.$ac_ext
4760cat >>conftest.$ac_ext <<_ACEOF
4761/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004762$ac_includes_default
4763
4764#include <$ac_header>
4765_ACEOF
4766rm -f conftest.$ac_objext
4767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768 (eval $ac_compile) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } &&
4772 { ac_try='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 (eval $ac_try) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 eval "$as_ac_Header=yes"
4779else
4780 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004781sed 's/^/| /' conftest.$ac_ext >&5
4782
John Criswell7a73b802003-06-30 21:59:07 +00004783eval "$as_ac_Header=no"
4784fi
4785rm -f conftest.$ac_objext conftest.$ac_ext
4786fi
4787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4789if test `eval echo '${'$as_ac_Header'}'` = yes; then
4790 cat >>confdefs.h <<_ACEOF
4791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4792_ACEOF
4793
4794fi
4795
4796done
4797
4798
4799
4800for ac_header in dlfcn.h
4801do
4802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4803if eval "test \"\${$as_ac_Header+set}\" = set"; then
4804 echo "$as_me:$LINENO: checking for $ac_header" >&5
4805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4806if eval "test \"\${$as_ac_Header+set}\" = set"; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808fi
4809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4811else
4812 # Is the header compilable?
4813echo "$as_me:$LINENO: checking $ac_header usability" >&5
4814echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4815cat >conftest.$ac_ext <<_ACEOF
4816#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004817/* confdefs.h. */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004822$ac_includes_default
4823#include <$ac_header>
4824_ACEOF
4825rm -f conftest.$ac_objext
4826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 ac_header_compiler=yes
4838else
4839 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004840sed 's/^/| /' conftest.$ac_ext >&5
4841
John Criswell7a73b802003-06-30 21:59:07 +00004842ac_header_compiler=no
4843fi
4844rm -f conftest.$ac_objext conftest.$ac_ext
4845echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4846echo "${ECHO_T}$ac_header_compiler" >&6
4847
4848# Is the header present?
4849echo "$as_me:$LINENO: checking $ac_header presence" >&5
4850echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4851cat >conftest.$ac_ext <<_ACEOF
4852#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004853/* confdefs.h. */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004858#include <$ac_header>
4859_ACEOF
4860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4862 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004863 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004864 rm -f conftest.er1
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } >/dev/null; then
4868 if test -s conftest.err; then
4869 ac_cpp_err=$ac_c_preproc_warn_flag
4870 else
4871 ac_cpp_err=
4872 fi
4873else
4874 ac_cpp_err=yes
4875fi
4876if test -z "$ac_cpp_err"; then
4877 ac_header_preproc=yes
4878else
4879 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004880sed 's/^/| /' conftest.$ac_ext >&5
4881
John Criswell7a73b802003-06-30 21:59:07 +00004882 ac_header_preproc=no
4883fi
4884rm -f conftest.err conftest.$ac_ext
4885echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4886echo "${ECHO_T}$ac_header_preproc" >&6
4887
4888# So? What about this header?
4889case $ac_header_compiler:$ac_header_preproc in
4890 yes:no )
4891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4892echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4895 (
4896 cat <<\_ASBOX
4897## ------------------------------------ ##
4898## Report this to bug-autoconf@gnu.org. ##
4899## ------------------------------------ ##
4900_ASBOX
4901 ) |
4902 sed "s/^/$as_me: WARNING: /" >&2
4903 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004904 no:yes )
4905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4911 (
4912 cat <<\_ASBOX
4913## ------------------------------------ ##
4914## Report this to bug-autoconf@gnu.org. ##
4915## ------------------------------------ ##
4916_ASBOX
4917 ) |
4918 sed "s/^/$as_me: WARNING: /" >&2
4919 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004920esac
4921echo "$as_me:$LINENO: checking for $ac_header" >&5
4922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4923if eval "test \"\${$as_ac_Header+set}\" = set"; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926 eval "$as_ac_Header=$ac_header_preproc"
4927fi
4928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4930
4931fi
4932if test `eval echo '${'$as_ac_Header'}'` = yes; then
4933 cat >>confdefs.h <<_ACEOF
4934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4935_ACEOF
4936
4937fi
4938
4939done
4940
John Criswell47fdd832003-07-14 16:52:07 +00004941ac_ext=cc
4942ac_cpp='$CXXCPP $CPPFLAGS'
4943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4946echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4947echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4948if test -z "$CXXCPP"; then
4949 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951else
John Criswell47fdd832003-07-14 16:52:07 +00004952 # Double quotes because CXXCPP needs to be expanded
4953 for CXXCPP in "$CXX -E" "/lib/cpp"
4954 do
4955 ac_preproc_ok=false
4956for ac_cxx_preproc_warn_flag in '' yes
4957do
4958 # Use a header file that comes with gcc, so configuring glibc
4959 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4961 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004962 # On the NeXT, cc -E runs the code through the compiler's parser,
4963 # not just through cpp. "Syntax error" is here to catch this case.
4964 cat >conftest.$ac_ext <<_ACEOF
4965#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004966/* confdefs.h. */
4967_ACEOF
4968cat confdefs.h >>conftest.$ac_ext
4969cat >>conftest.$ac_ext <<_ACEOF
4970/* end confdefs.h. */
4971#ifdef __STDC__
4972# include <limits.h>
4973#else
4974# include <assert.h>
4975#endif
John Criswell47fdd832003-07-14 16:52:07 +00004976 Syntax error
4977_ACEOF
4978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4980 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004981 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } >/dev/null; then
4986 if test -s conftest.err; then
4987 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004988 else
John Criswell47fdd832003-07-14 16:52:07 +00004989 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004990 fi
John Criswell47fdd832003-07-14 16:52:07 +00004991else
4992 ac_cpp_err=yes
4993fi
4994if test -z "$ac_cpp_err"; then
4995 :
4996else
4997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004998sed 's/^/| /' conftest.$ac_ext >&5
4999
John Criswell47fdd832003-07-14 16:52:07 +00005000 # Broken: fails on valid input.
5001continue
5002fi
5003rm -f conftest.err conftest.$ac_ext
5004
5005 # OK, works on sane cases. Now check whether non-existent headers
5006 # can be detected and how.
5007 cat >conftest.$ac_ext <<_ACEOF
5008#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005009/* confdefs.h. */
5010_ACEOF
5011cat confdefs.h >>conftest.$ac_ext
5012cat >>conftest.$ac_ext <<_ACEOF
5013/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005014#include <ac_nonexistent.h>
5015_ACEOF
5016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5018 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005019 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } >/dev/null; then
5024 if test -s conftest.err; then
5025 ac_cpp_err=$ac_cxx_preproc_warn_flag
5026 else
5027 ac_cpp_err=
5028 fi
5029else
5030 ac_cpp_err=yes
5031fi
5032if test -z "$ac_cpp_err"; then
5033 # Broken: success on invalid input.
5034continue
5035else
5036 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005037sed 's/^/| /' conftest.$ac_ext >&5
5038
John Criswell47fdd832003-07-14 16:52:07 +00005039 # Passes both tests.
5040ac_preproc_ok=:
5041break
5042fi
5043rm -f conftest.err conftest.$ac_ext
5044
5045done
5046# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5047rm -f conftest.err conftest.$ac_ext
5048if $ac_preproc_ok; then
5049 break
John Criswell7a73b802003-06-30 21:59:07 +00005050fi
5051
John Criswell47fdd832003-07-14 16:52:07 +00005052 done
5053 ac_cv_prog_CXXCPP=$CXXCPP
5054
5055fi
5056 CXXCPP=$ac_cv_prog_CXXCPP
5057else
5058 ac_cv_prog_CXXCPP=$CXXCPP
5059fi
5060echo "$as_me:$LINENO: result: $CXXCPP" >&5
5061echo "${ECHO_T}$CXXCPP" >&6
5062ac_preproc_ok=false
5063for ac_cxx_preproc_warn_flag in '' yes
5064do
5065 # Use a header file that comes with gcc, so configuring glibc
5066 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5068 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005069 # On the NeXT, cc -E runs the code through the compiler's parser,
5070 # not just through cpp. "Syntax error" is here to catch this case.
5071 cat >conftest.$ac_ext <<_ACEOF
5072#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005073/* confdefs.h. */
5074_ACEOF
5075cat confdefs.h >>conftest.$ac_ext
5076cat >>conftest.$ac_ext <<_ACEOF
5077/* end confdefs.h. */
5078#ifdef __STDC__
5079# include <limits.h>
5080#else
5081# include <assert.h>
5082#endif
John Criswell47fdd832003-07-14 16:52:07 +00005083 Syntax error
5084_ACEOF
5085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5087 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005088 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005089 rm -f conftest.er1
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } >/dev/null; then
5093 if test -s conftest.err; then
5094 ac_cpp_err=$ac_cxx_preproc_warn_flag
5095 else
5096 ac_cpp_err=
5097 fi
5098else
5099 ac_cpp_err=yes
5100fi
5101if test -z "$ac_cpp_err"; then
5102 :
5103else
5104 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005105sed 's/^/| /' conftest.$ac_ext >&5
5106
John Criswell47fdd832003-07-14 16:52:07 +00005107 # Broken: fails on valid input.
5108continue
5109fi
5110rm -f conftest.err conftest.$ac_ext
5111
5112 # OK, works on sane cases. Now check whether non-existent headers
5113 # can be detected and how.
5114 cat >conftest.$ac_ext <<_ACEOF
5115#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005116/* confdefs.h. */
5117_ACEOF
5118cat confdefs.h >>conftest.$ac_ext
5119cat >>conftest.$ac_ext <<_ACEOF
5120/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005121#include <ac_nonexistent.h>
5122_ACEOF
5123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5125 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005126 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } >/dev/null; then
5131 if test -s conftest.err; then
5132 ac_cpp_err=$ac_cxx_preproc_warn_flag
5133 else
5134 ac_cpp_err=
5135 fi
5136else
5137 ac_cpp_err=yes
5138fi
5139if test -z "$ac_cpp_err"; then
5140 # Broken: success on invalid input.
5141continue
5142else
5143 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005144sed 's/^/| /' conftest.$ac_ext >&5
5145
John Criswell47fdd832003-07-14 16:52:07 +00005146 # Passes both tests.
5147ac_preproc_ok=:
5148break
5149fi
5150rm -f conftest.err conftest.$ac_ext
5151
5152done
5153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5154rm -f conftest.err conftest.$ac_ext
5155if $ac_preproc_ok; then
5156 :
5157else
John Criswell0c38eaf2003-09-10 15:17:25 +00005158 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5159See \`config.log' for more details." >&5
5160echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5161See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005162 { (exit 1); exit 1; }; }
5163fi
5164
5165ac_ext=cc
5166ac_cpp='$CXXCPP $CPPFLAGS'
5167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5170
5171
5172ac_ext=f
5173ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5174ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5176if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005177 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 +00005178 do
5179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5181echo "$as_me:$LINENO: checking for $ac_word" >&5
5182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183if test "${ac_cv_prog_F77+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186 if test -n "$F77"; then
5187 ac_cv_prog_F77="$F77" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200done
5201done
5202
5203fi
5204fi
5205F77=$ac_cv_prog_F77
5206if test -n "$F77"; then
5207 echo "$as_me:$LINENO: result: $F77" >&5
5208echo "${ECHO_T}$F77" >&6
5209else
5210 echo "$as_me:$LINENO: result: no" >&5
5211echo "${ECHO_T}no" >&6
5212fi
5213
5214 test -n "$F77" && break
5215 done
5216fi
5217if test -z "$F77"; then
5218 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005219 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 +00005220do
5221 # Extract the first word of "$ac_prog", so it can be a program name with args.
5222set dummy $ac_prog; ac_word=$2
5223echo "$as_me:$LINENO: checking for $ac_word" >&5
5224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227else
5228 if test -n "$ac_ct_F77"; then
5229 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5230else
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_ac_ct_F77="$ac_prog"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242done
5243done
5244
5245fi
5246fi
5247ac_ct_F77=$ac_cv_prog_ac_ct_F77
5248if test -n "$ac_ct_F77"; then
5249 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5250echo "${ECHO_T}$ac_ct_F77" >&6
5251else
5252 echo "$as_me:$LINENO: result: no" >&5
5253echo "${ECHO_T}no" >&6
5254fi
5255
5256 test -n "$ac_ct_F77" && break
5257done
5258
5259 F77=$ac_ct_F77
5260fi
5261
5262
5263# Provide some information about the compiler.
John Criswell12399a12003-09-30 15:55:44 +00005264echo "$as_me:5264:" \
John Criswell47fdd832003-07-14 16:52:07 +00005265 "checking for Fortran 77 compiler version" >&5
5266ac_compiler=`set X $ac_compile; echo $2`
5267{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5268 (eval $ac_compiler --version </dev/null >&5) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }
5272{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5273 (eval $ac_compiler -v </dev/null >&5) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }
5277{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5278 (eval $ac_compiler -V </dev/null >&5) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }
5282
5283# If we don't use `.F' as extension, the preprocessor is not run on the
5284# input file.
5285ac_save_ext=$ac_ext
5286ac_ext=F
5287echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5288echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5289if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5291else
5292 cat >conftest.$ac_ext <<_ACEOF
5293 program main
5294#ifndef __GNUC__
5295 choke me
5296#endif
5297
5298 end
5299_ACEOF
5300rm -f conftest.$ac_objext
5301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } &&
5306 { ac_try='test -s conftest.$ac_objext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 ac_compiler_gnu=yes
5313else
5314 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005315sed 's/^/| /' conftest.$ac_ext >&5
5316
John Criswell47fdd832003-07-14 16:52:07 +00005317ac_compiler_gnu=no
5318fi
5319rm -f conftest.$ac_objext conftest.$ac_ext
5320ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5321
5322fi
5323echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5324echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5325ac_ext=$ac_save_ext
5326G77=`test $ac_compiler_gnu = yes && echo yes`
5327ac_test_FFLAGS=${FFLAGS+set}
5328ac_save_FFLAGS=$FFLAGS
5329FFLAGS=
5330echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5331echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5332if test "${ac_cv_prog_f77_g+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334else
5335 FFLAGS=-g
5336cat >conftest.$ac_ext <<_ACEOF
5337 program main
5338
5339 end
5340_ACEOF
5341rm -f conftest.$ac_objext
5342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5343 (eval $ac_compile) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -s conftest.$ac_objext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 (eval $ac_try) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 ac_cv_prog_f77_g=yes
5354else
5355 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005356sed 's/^/| /' conftest.$ac_ext >&5
5357
John Criswell47fdd832003-07-14 16:52:07 +00005358ac_cv_prog_f77_g=no
5359fi
5360rm -f conftest.$ac_objext conftest.$ac_ext
5361
5362fi
5363echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5364echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5365if test "$ac_test_FFLAGS" = set; then
5366 FFLAGS=$ac_save_FFLAGS
5367elif test $ac_cv_prog_f77_g = yes; then
5368 if test "$G77" = yes; then
5369 FFLAGS="-g -O2"
5370 else
5371 FFLAGS="-g"
5372 fi
5373else
5374 if test "$G77" = yes; then
5375 FFLAGS="-O2"
5376 else
5377 FFLAGS=
5378 fi
5379fi
5380ac_ext=c
5381ac_cpp='$CPP $CPPFLAGS'
5382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385
5386
5387
5388# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5389
5390# find the maximum length of command line arguments
5391echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5392echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5393if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5395else
5396 i=0
5397 testring="ABCD"
5398
5399 case $build_os in
5400 msdosdjgpp*)
5401 # On DJGPP, this test can blow up pretty badly due to problems in libc
5402 # (any single argument exceeding 2000 bytes causes a buffer overrun
5403 # during glob expansion). Even if it were fixed, the result of this
5404 # check would be larger than it should be.
5405 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5406 ;;
5407
5408 gnu*)
5409 # Under GNU Hurd, this test is not required because there is
5410 # no limit to the length of command line arguments.
5411 # Libtool will interpret -1 as no limit whatsoever
5412 lt_cv_sys_max_cmd_len=-1;
5413 ;;
5414
5415 cygwin* | mingw*)
5416 # On Win9x/ME, this test blows up -- it succeeds, but takes
5417 # about 5 minutes as the teststring grows exponentially.
5418 # Worse, since 9x/ME are not pre-emptively multitasking,
5419 # you end up with a "frozen" computer, even though with patience
5420 # the test eventually succeeds (with a max line length of 256k).
5421 # Instead, let's just punt: use the minimum linelength reported by
5422 # all of the supported platforms: 8192 (on NT/2K/XP).
5423 lt_cv_sys_max_cmd_len=8192;
5424 ;;
5425
5426 *)
5427 # If test is not a shell built-in, we'll probably end up computing a
5428 # maximum length that is only half of the actual maximum length, but
5429 # we can't tell.
5430 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5431 = "XX$testring") >/dev/null 2>&1 &&
5432 new_result=`expr "X$testring" : ".*" 2>&1` &&
5433 lt_cv_sys_max_cmd_len=$new_result &&
5434 test $i != 17 # 1/2 MB should be enough
5435 do
5436 i=`expr $i + 1`
5437 testring=$testring$testring
5438 done
5439 testring=
5440 # Add a significant safety factor because C++ compilers can tack on massive
5441 # amounts of additional arguments before passing them to the linker.
5442 # It appears as though 1/2 is a usable value.
5443 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5444 ;;
5445 esac
5446
5447fi
5448
5449if test -n $lt_cv_sys_max_cmd_len ; then
5450 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5451echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5452else
5453 echo "$as_me:$LINENO: result: none" >&5
5454echo "${ECHO_T}none" >&6
5455fi
5456
5457
5458
5459
5460# Check for command to grab the raw symbol name followed by C symbol from nm.
5461echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5462echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5463if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466
5467# These are sane defaults that work on at least a few old systems.
5468# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5469
5470# Character class describing NM global symbol codes.
5471symcode='[BCDEGRST]'
5472
5473# Regexp to match symbols that can be accessed directly from C.
5474sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5475
5476# Transform the above into a raw symbol and a C symbol.
5477symxfrm='\1 \2\3 \3'
5478
5479# Transform an extracted symbol line into a proper C declaration
5480lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5481
5482# Transform an extracted symbol line into symbol name and symbol address
5483lt_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'"
5484
5485# Define system-specific variables.
5486case $host_os in
5487aix*)
5488 symcode='[BCDT]'
5489 ;;
5490cygwin* | mingw* | pw32*)
5491 symcode='[ABCDGISTW]'
5492 ;;
5493hpux*) # Its linker distinguishes data from code symbols
5494 if test "$host_cpu" = ia64; then
5495 symcode='[ABCDEGRST]'
5496 fi
5497 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5498 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'"
5499 ;;
5500irix* | nonstopux*)
5501 symcode='[BCDEGRST]'
5502 ;;
5503osf*)
5504 symcode='[BCDEGQRST]'
5505 ;;
5506solaris* | sysv5*)
5507 symcode='[BDT]'
5508 ;;
5509sysv4)
5510 symcode='[DFNSTU]'
5511 ;;
5512esac
5513
5514# Handle CRLF in mingw tool chain
5515opt_cr=
5516case $build_os in
5517mingw*)
5518 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5519 ;;
5520esac
5521
5522# If we're using GNU nm, then use its standard symbol codes.
5523case `$NM -V 2>&1` in
5524*GNU* | *'with BFD'*)
5525 symcode='[ABCDGISTW]' ;;
5526esac
5527
5528# Try without a prefix undercore, then with it.
5529for ac_symprfx in "" "_"; do
5530
5531 # Write the raw and C identifiers.
5532 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5533
5534 # Check to see that the pipe works correctly.
5535 pipe_works=no
5536
5537 rm -f conftest*
5538 cat > conftest.$ac_ext <<EOF
5539#ifdef __cplusplus
5540extern "C" {
5541#endif
5542char nm_test_var;
5543void nm_test_func(){}
5544#ifdef __cplusplus
5545}
5546#endif
5547int main(){nm_test_var='a';nm_test_func();return(0);}
5548EOF
5549
5550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551 (eval $ac_compile) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; then
5555 # Now try to grab the symbols.
5556 nlist=conftest.nm
5557 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5558 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } && test -s "$nlist"; then
5562 # Try sorting and uniquifying the output.
5563 if sort "$nlist" | uniq > "$nlist"T; then
5564 mv -f "$nlist"T "$nlist"
5565 else
5566 rm -f "$nlist"T
5567 fi
5568
5569 # Make sure that we snagged all the symbols we need.
5570 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5571 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5572 cat <<EOF > conftest.$ac_ext
5573#ifdef __cplusplus
5574extern "C" {
5575#endif
5576
5577EOF
5578 # Now generate the symbol file.
5579 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5580
5581 cat <<EOF >> conftest.$ac_ext
5582#if defined (__STDC__) && __STDC__
5583# define lt_ptr_t void *
5584#else
5585# define lt_ptr_t char *
5586# define const
5587#endif
5588
5589/* The mapping between symbol names and symbols. */
5590const struct {
5591 const char *name;
5592 lt_ptr_t address;
5593}
5594lt_preloaded_symbols[] =
5595{
5596EOF
5597 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5598 cat <<\EOF >> conftest.$ac_ext
5599 {0, (lt_ptr_t) 0}
5600};
5601
5602#ifdef __cplusplus
5603}
5604#endif
5605EOF
5606 # Now try linking the two files.
5607 mv conftest.$ac_objext conftstm.$ac_objext
5608 lt_save_LIBS="$LIBS"
5609 lt_save_CFLAGS="$CFLAGS"
5610 LIBS="conftstm.$ac_objext"
5611 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613 (eval $ac_link) 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5617 pipe_works=yes
5618 fi
5619 LIBS="$lt_save_LIBS"
5620 CFLAGS="$lt_save_CFLAGS"
5621 else
5622 echo "cannot find nm_test_func in $nlist" >&5
5623 fi
5624 else
5625 echo "cannot find nm_test_var in $nlist" >&5
5626 fi
5627 else
5628 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5629 fi
5630 else
5631 echo "$progname: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5633 fi
5634 rm -f conftest* conftst*
5635
5636 # Do not use the global_symbol_pipe unless it works.
5637 if test "$pipe_works" = yes; then
5638 break
5639 else
5640 lt_cv_sys_global_symbol_pipe=
5641 fi
5642done
5643
5644fi
5645
5646if test -z "$lt_cv_sys_global_symbol_pipe"; then
5647 lt_cv_sys_global_symbol_to_cdecl=
5648fi
5649if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5650 echo "$as_me:$LINENO: result: failed" >&5
5651echo "${ECHO_T}failed" >&6
5652else
5653 echo "$as_me:$LINENO: result: ok" >&5
5654echo "${ECHO_T}ok" >&6
5655fi
5656
5657echo "$as_me:$LINENO: checking for objdir" >&5
5658echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5659if test "${lt_cv_objdir+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661else
5662 rm -f .libs 2>/dev/null
5663mkdir .libs 2>/dev/null
5664if test -d .libs; then
5665 lt_cv_objdir=.libs
5666else
5667 # MS-DOS does not allow filenames that begin with a dot.
5668 lt_cv_objdir=_libs
5669fi
5670rmdir .libs 2>/dev/null
5671fi
5672echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5673echo "${ECHO_T}$lt_cv_objdir" >&6
5674objdir=$lt_cv_objdir
5675
5676
5677
5678
5679
5680case $host_os in
5681aix3*)
5682 # AIX sometimes has problems with the GCC collect2 program. For some
5683 # reason, if we set the COLLECT_NAMES environment variable, the problems
5684 # vanish in a puff of smoke.
5685 if test "X${COLLECT_NAMES+set}" != Xset; then
5686 COLLECT_NAMES=
5687 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005688 fi
5689 ;;
5690esac
5691
John Criswell47fdd832003-07-14 16:52:07 +00005692# Sed substitution that helps us do robust quoting. It backslashifies
5693# metacharacters that are still active within double-quoted strings.
5694Xsed='sed -e s/^X//'
5695sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5696
5697# Same as above, but do not quote variable references.
5698double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5699
5700# Sed substitution to delay expansion of an escaped shell variable in a
5701# double_quote_subst'ed string.
5702delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5703
5704# Sed substitution to avoid accidental globbing in evaled expressions
5705no_glob_subst='s/\*/\\\*/g'
5706
5707# Constants:
5708rm="rm -f"
5709
5710# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005711default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005712can_build_shared=yes
5713
5714# All known linkers require a `.a' archive for static linking (except M$VC,
5715# which needs '.lib').
5716libext=a
5717ltmain="$ac_aux_dir/ltmain.sh"
5718ofile="$default_ofile"
5719with_gnu_ld="$lt_cv_prog_gnu_ld"
5720
5721if test -n "$ac_tool_prefix"; then
5722 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5723set dummy ${ac_tool_prefix}ar; ac_word=$2
5724echo "$as_me:$LINENO: checking for $ac_word" >&5
5725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5726if test "${ac_cv_prog_AR+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728else
5729 if test -n "$AR"; then
5730 ac_cv_prog_AR="$AR" # Let the user override the test.
5731else
5732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733for as_dir in $PATH
5734do
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_prog_AR="${ac_tool_prefix}ar"
5740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5742 fi
5743done
5744done
5745
5746fi
5747fi
5748AR=$ac_cv_prog_AR
5749if test -n "$AR"; then
5750 echo "$as_me:$LINENO: result: $AR" >&5
5751echo "${ECHO_T}$AR" >&6
5752else
5753 echo "$as_me:$LINENO: result: no" >&5
5754echo "${ECHO_T}no" >&6
5755fi
5756
5757fi
5758if test -z "$ac_cv_prog_AR"; then
5759 ac_ct_AR=$AR
5760 # Extract the first word of "ar", so it can be a program name with args.
5761set dummy ar; ac_word=$2
5762echo "$as_me:$LINENO: checking for $ac_word" >&5
5763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5764if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767 if test -n "$ac_ct_AR"; then
5768 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5769else
5770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771for as_dir in $PATH
5772do
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_ac_ct_AR="ar"
5778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 break 2
5780 fi
5781done
5782done
5783
5784 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5785fi
5786fi
5787ac_ct_AR=$ac_cv_prog_ac_ct_AR
5788if test -n "$ac_ct_AR"; then
5789 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5790echo "${ECHO_T}$ac_ct_AR" >&6
5791else
5792 echo "$as_me:$LINENO: result: no" >&5
5793echo "${ECHO_T}no" >&6
5794fi
5795
5796 AR=$ac_ct_AR
5797else
5798 AR="$ac_cv_prog_AR"
5799fi
5800
John Criswell7a73b802003-06-30 21:59:07 +00005801if test -n "$ac_tool_prefix"; then
5802 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5803set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5804echo "$as_me:$LINENO: checking for $ac_word" >&5
5805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5806if test "${ac_cv_prog_RANLIB+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809 if test -n "$RANLIB"; then
5810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5811else
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823done
5824done
5825
5826fi
5827fi
5828RANLIB=$ac_cv_prog_RANLIB
5829if test -n "$RANLIB"; then
5830 echo "$as_me:$LINENO: result: $RANLIB" >&5
5831echo "${ECHO_T}$RANLIB" >&6
5832else
5833 echo "$as_me:$LINENO: result: no" >&5
5834echo "${ECHO_T}no" >&6
5835fi
5836
5837fi
5838if test -z "$ac_cv_prog_RANLIB"; then
5839 ac_ct_RANLIB=$RANLIB
5840 # Extract the first word of "ranlib", so it can be a program name with args.
5841set dummy ranlib; ac_word=$2
5842echo "$as_me:$LINENO: checking for $ac_word" >&5
5843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5844if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846else
5847 if test -n "$ac_ct_RANLIB"; then
5848 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_ac_ct_RANLIB="ranlib"
5858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861done
5862done
5863
5864 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5865fi
5866fi
5867ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5868if test -n "$ac_ct_RANLIB"; then
5869 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5870echo "${ECHO_T}$ac_ct_RANLIB" >&6
5871else
5872 echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6
5874fi
5875
5876 RANLIB=$ac_ct_RANLIB
5877else
5878 RANLIB="$ac_cv_prog_RANLIB"
5879fi
5880
5881if test -n "$ac_tool_prefix"; then
5882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5883set dummy ${ac_tool_prefix}strip; ac_word=$2
5884echo "$as_me:$LINENO: checking for $ac_word" >&5
5885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886if test "${ac_cv_prog_STRIP+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889 if test -n "$STRIP"; then
5890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5891else
5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 break 2
5902 fi
5903done
5904done
5905
5906fi
5907fi
5908STRIP=$ac_cv_prog_STRIP
5909if test -n "$STRIP"; then
5910 echo "$as_me:$LINENO: result: $STRIP" >&5
5911echo "${ECHO_T}$STRIP" >&6
5912else
5913 echo "$as_me:$LINENO: result: no" >&5
5914echo "${ECHO_T}no" >&6
5915fi
5916
5917fi
5918if test -z "$ac_cv_prog_STRIP"; then
5919 ac_ct_STRIP=$STRIP
5920 # Extract the first word of "strip", so it can be a program name with args.
5921set dummy strip; ac_word=$2
5922echo "$as_me:$LINENO: checking for $ac_word" >&5
5923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5924if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926else
5927 if test -n "$ac_ct_STRIP"; then
5928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5929else
5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937 ac_cv_prog_ac_ct_STRIP="strip"
5938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941done
5942done
5943
5944 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5945fi
5946fi
5947ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5948if test -n "$ac_ct_STRIP"; then
5949 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5950echo "${ECHO_T}$ac_ct_STRIP" >&6
5951else
5952 echo "$as_me:$LINENO: result: no" >&5
5953echo "${ECHO_T}no" >&6
5954fi
5955
5956 STRIP=$ac_ct_STRIP
5957else
5958 STRIP="$ac_cv_prog_STRIP"
5959fi
5960
5961
John Criswell7a73b802003-06-30 21:59:07 +00005962old_CC="$CC"
5963old_CFLAGS="$CFLAGS"
5964
5965# Set sane defaults for various variables
5966test -z "$AR" && AR=ar
5967test -z "$AR_FLAGS" && AR_FLAGS=cru
5968test -z "$AS" && AS=as
5969test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005970test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005971test -z "$DLLTOOL" && DLLTOOL=dlltool
5972test -z "$LD" && LD=ld
5973test -z "$LN_S" && LN_S="ln -s"
5974test -z "$MAGIC_CMD" && MAGIC_CMD=file
5975test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005976test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005977test -z "$OBJDUMP" && OBJDUMP=objdump
5978test -z "$RANLIB" && RANLIB=:
5979test -z "$STRIP" && STRIP=:
5980test -z "$ac_objext" && ac_objext=o
5981
John Criswell7a73b802003-06-30 21:59:07 +00005982# Determine commands to create old-style static archives.
5983old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5984old_postinstall_cmds='chmod 644 $oldlib'
5985old_postuninstall_cmds=
5986
5987if test -n "$RANLIB"; then
5988 case $host_os in
5989 openbsd*)
5990 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5991 ;;
5992 *)
5993 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5994 ;;
5995 esac
5996 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5997fi
5998
John Criswell47fdd832003-07-14 16:52:07 +00005999# Only perform the check for file, if the check method requires it
6000case $deplibs_check_method in
6001file_magic*)
6002 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6003 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6004echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6005if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006007else
John Criswell47fdd832003-07-14 16:52:07 +00006008 case $MAGIC_CMD in
6009[\\/*] | ?:[\\/]*)
6010 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6011 ;;
6012*)
6013 lt_save_MAGIC_CMD="$MAGIC_CMD"
6014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6015 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6016 for ac_dir in $ac_dummy; do
6017 IFS="$lt_save_ifs"
6018 test -z "$ac_dir" && ac_dir=.
6019 if test -f $ac_dir/${ac_tool_prefix}file; then
6020 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6021 if test -n "$file_magic_test_file"; then
6022 case $deplibs_check_method in
6023 "file_magic "*)
6024 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6026 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6027 $EGREP "$file_magic_regex" > /dev/null; then
6028 :
6029 else
6030 cat <<EOF 1>&2
6031
6032*** Warning: the command libtool uses to detect shared libraries,
6033*** $file_magic_cmd, produces output that libtool cannot recognize.
6034*** The result is that libtool may fail to recognize shared libraries
6035*** as such. This will affect the creation of libtool libraries that
6036*** depend on shared libraries, but programs linked with such libtool
6037*** libraries will work regardless of this problem. Nevertheless, you
6038*** may want to report the problem to your system manager and/or to
6039*** bug-libtool@gnu.org
6040
6041EOF
6042 fi ;;
6043 esac
6044 fi
6045 break
6046 fi
6047 done
6048 IFS="$lt_save_ifs"
6049 MAGIC_CMD="$lt_save_MAGIC_CMD"
6050 ;;
6051esac
John Criswell7a73b802003-06-30 21:59:07 +00006052fi
John Criswell7a73b802003-06-30 21:59:07 +00006053
John Criswell47fdd832003-07-14 16:52:07 +00006054MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6055if test -n "$MAGIC_CMD"; then
6056 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6057echo "${ECHO_T}$MAGIC_CMD" >&6
6058else
6059 echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6
6061fi
John Criswell7a73b802003-06-30 21:59:07 +00006062
John Criswell47fdd832003-07-14 16:52:07 +00006063if test -z "$lt_cv_path_MAGIC_CMD"; then
6064 if test -n "$ac_tool_prefix"; then
6065 echo "$as_me:$LINENO: checking for file" >&5
6066echo $ECHO_N "checking for file... $ECHO_C" >&6
6067if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069else
6070 case $MAGIC_CMD in
6071[\\/*] | ?:[\\/]*)
6072 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6073 ;;
6074*)
6075 lt_save_MAGIC_CMD="$MAGIC_CMD"
6076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6077 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6078 for ac_dir in $ac_dummy; do
6079 IFS="$lt_save_ifs"
6080 test -z "$ac_dir" && ac_dir=.
6081 if test -f $ac_dir/file; then
6082 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6083 if test -n "$file_magic_test_file"; then
6084 case $deplibs_check_method in
6085 "file_magic "*)
6086 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6088 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6089 $EGREP "$file_magic_regex" > /dev/null; then
6090 :
6091 else
6092 cat <<EOF 1>&2
6093
6094*** Warning: the command libtool uses to detect shared libraries,
6095*** $file_magic_cmd, produces output that libtool cannot recognize.
6096*** The result is that libtool may fail to recognize shared libraries
6097*** as such. This will affect the creation of libtool libraries that
6098*** depend on shared libraries, but programs linked with such libtool
6099*** libraries will work regardless of this problem. Nevertheless, you
6100*** may want to report the problem to your system manager and/or to
6101*** bug-libtool@gnu.org
6102
6103EOF
6104 fi ;;
6105 esac
6106 fi
6107 break
6108 fi
6109 done
6110 IFS="$lt_save_ifs"
6111 MAGIC_CMD="$lt_save_MAGIC_CMD"
6112 ;;
6113esac
6114fi
6115
6116MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6117if test -n "$MAGIC_CMD"; then
6118 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6119echo "${ECHO_T}$MAGIC_CMD" >&6
6120else
6121 echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6
6123fi
6124
6125 else
6126 MAGIC_CMD=:
6127 fi
6128fi
6129
6130 fi
6131 ;;
6132esac
6133
6134enable_dlopen=no
6135enable_win32_dll=no
6136
6137# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6138if test "${enable_libtool_lock+set}" = set; then
6139 enableval="$enable_libtool_lock"
6140
6141fi;
6142test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6143
John Criswell7a73b802003-06-30 21:59:07 +00006144
6145# Check whether --with-pic or --without-pic was given.
6146if test "${with_pic+set}" = set; then
6147 withval="$with_pic"
6148 pic_mode="$withval"
6149else
6150 pic_mode=default
6151fi;
6152test -z "$pic_mode" && pic_mode=default
6153
John Criswell47fdd832003-07-14 16:52:07 +00006154# Use C for the default configuration in the libtool script
6155tagname=
6156lt_save_CC="$CC"
6157ac_ext=c
6158ac_cpp='$CPP $CPPFLAGS'
6159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161ac_compiler_gnu=$ac_cv_c_compiler_gnu
6162
6163
6164# Source file extension for C test sources.
6165ac_ext=c
6166
6167# Object file extension for compiled C test sources.
6168objext=o
6169objext=$objext
6170
6171# Code to be used in simple compile tests
6172lt_simple_compile_test_code="int some_variable = 0;\n"
6173
6174# Code to be used in simple link tests
6175lt_simple_link_test_code='int main(){return(0);}\n'
6176
6177
6178# If no C compiler was specified, use CC.
6179LTCC=${LTCC-"$CC"}
6180
6181# Allow CC to be a program name with arguments.
6182compiler=$CC
6183
6184
6185#
6186# Check for any special shared library compilation flags.
6187#
6188lt_prog_cc_shlib=
6189if test "$GCC" = no; then
6190 case $host_os in
6191 sco3.2v5*)
6192 lt_prog_cc_shlib='-belf'
6193 ;;
6194 esac
6195fi
6196if test -n "$lt_prog_cc_shlib"; then
6197 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6198echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6199 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6200 else
6201 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6202echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6203 lt_cv_prog_cc_can_build_shared=no
6204 fi
6205fi
6206
6207
6208#
6209# Check to make sure the static flag actually works.
6210#
6211echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6212echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6213if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215else
John Criswell47fdd832003-07-14 16:52:07 +00006216 lt_prog_compiler_static_works=no
6217 save_LDFLAGS="$LDFLAGS"
6218 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6219 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6220 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6221 # The compiler can only warn and ignore the option if not recognized
6222 # So say no if there are warnings
6223 if test -s conftest.err; then
6224 # Append any errors to the config.log.
6225 cat conftest.err 1>&5
6226 else
6227 lt_prog_compiler_static_works=yes
6228 fi
6229 fi
6230 $rm conftest*
6231 LDFLAGS="$save_LDFLAGS"
6232
6233fi
6234echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6235echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6236
6237if test x"$lt_prog_compiler_static_works" = xyes; then
6238 :
6239else
6240 lt_prog_compiler_static=
6241fi
6242
6243
6244
6245## CAVEAT EMPTOR:
6246## There is no encapsulation within the following macros, do not change
6247## the running order or otherwise move them around unless you know exactly
6248## what you are doing...
6249
6250lt_prog_compiler_no_builtin_flag=
6251
6252if test "$GCC" = yes; then
6253 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6254
6255 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6256echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6257if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260 lt_cv_prog_compiler_rtti_exceptions=no
6261 ac_outfile=conftest.$ac_objext
6262 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6263 lt_compiler_flag="-fno-rtti -fno-exceptions"
6264 # Insert the option either (1) after the last *FLAGS variable, or
6265 # (2) before a word containing "conftest.", or (3) at the end.
6266 # Note that $ac_compile itself does not contain backslashes and begins
6267 # with a dollar sign (not a hyphen), so the echo should work correctly.
6268 # The option is referenced via a variable to avoid confusing sed.
6269 lt_compile=`echo "$ac_compile" | $SED \
6270 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6272 -e 's:$: $lt_compiler_flag:'`
John Criswell12399a12003-09-30 15:55:44 +00006273 (eval echo "\"\$as_me:6273: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006274 (eval "$lt_compile" 2>conftest.err)
6275 ac_status=$?
6276 cat conftest.err >&5
John Criswell12399a12003-09-30 15:55:44 +00006277 echo "$as_me:6277: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006278 if (exit $ac_status) && test -s "$ac_outfile"; then
6279 # The compiler can only warn and ignore the option if not recognized
6280 # So say no if there are warnings
6281 if test ! -s conftest.err; then
6282 lt_cv_prog_compiler_rtti_exceptions=yes
6283 fi
6284 fi
6285 $rm conftest*
6286
6287fi
6288echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6289echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6290
6291if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6292 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6293else
6294 :
6295fi
6296
6297fi
6298
6299lt_prog_compiler_wl=
6300lt_prog_compiler_pic=
6301lt_prog_compiler_static=
6302
6303echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6304echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006305
6306 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006307 lt_prog_compiler_wl='-Wl,'
6308 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006309
6310 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006311 aix*)
6312 # All AIX code is PIC.
6313 if test "$host_cpu" = ia64; then
6314 # AIX 5 now supports IA64 processor
6315 lt_prog_compiler_static='-Bstatic'
6316 fi
John Criswell7a73b802003-06-30 21:59:07 +00006317 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006318
John Criswell7a73b802003-06-30 21:59:07 +00006319 amigaos*)
6320 # FIXME: we need at least 68020 code to build shared libraries, but
6321 # adding the `-m68020' flag to GCC prevents building anything better,
6322 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006323 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006324 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006325
6326 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006327 # PIC is the default for these OSes.
6328 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006329
6330 mingw* | pw32* | os2*)
6331 # This hack is so that the source file can tell whether it is being
6332 # built for inclusion in a dll (and should export symbols for example).
6333 lt_prog_compiler_pic='-DDLL_EXPORT'
6334 ;;
6335
John Criswell7a73b802003-06-30 21:59:07 +00006336 darwin* | rhapsody*)
6337 # PIC is the default on this platform
6338 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006339 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006340 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006341
6342 msdosdjgpp*)
6343 # Just because we use GCC doesn't mean we suddenly get shared libraries
6344 # on systems that don't support them.
6345 lt_prog_compiler_can_build_shared=no
6346 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006347 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006348
John Criswell7a73b802003-06-30 21:59:07 +00006349 sysv4*MP*)
6350 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006351 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006352 fi
6353 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006354
6355 hpux*)
6356 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6357 # not for PA HP-UX.
6358 case "$host_cpu" in
6359 hppa*64*|ia64*)
6360 # +Z the default
6361 ;;
6362 *)
6363 lt_prog_compiler_pic='-fPIC'
6364 ;;
6365 esac
6366 ;;
6367
John Criswell7a73b802003-06-30 21:59:07 +00006368 *)
John Criswell47fdd832003-07-14 16:52:07 +00006369 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006370 ;;
6371 esac
6372 else
John Criswell47fdd832003-07-14 16:52:07 +00006373 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006374 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006375 aix*)
6376 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006377 if test "$host_cpu" = ia64; then
6378 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006379 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006380 else
John Criswell47fdd832003-07-14 16:52:07 +00006381 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006382 fi
6383 ;;
6384
John Criswell47fdd832003-07-14 16:52:07 +00006385 mingw* | pw32* | os2*)
6386 # This hack is so that the source file can tell whether it is being
6387 # built for inclusion in a dll (and should export symbols for example).
6388 lt_prog_compiler_pic='-DDLL_EXPORT'
6389 ;;
6390
John Criswell7a73b802003-06-30 21:59:07 +00006391 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006392 lt_prog_compiler_wl='-Wl,'
6393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6394 # not for PA HP-UX.
6395 case "$host_cpu" in
6396 hppa*64*|ia64*)
6397 # +Z the default
6398 ;;
6399 *)
6400 lt_prog_compiler_pic='+Z'
6401 ;;
6402 esac
6403 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6404 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006405 ;;
6406
John Criswell47fdd832003-07-14 16:52:07 +00006407 irix5* | irix6* | nonstopux*)
6408 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006409 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006410 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006411 ;;
6412
6413 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006414 lt_prog_compiler_pic='-KPIC'
6415 lt_prog_compiler_static='-Bstatic'
6416 ;;
6417
6418 linux*)
6419 case $CC in
6420 icc|ecc)
6421 lt_prog_compiler_wl='-Wl,'
6422 lt_prog_compiler_pic='-KPIC'
6423 lt_prog_compiler_static='-static'
6424 ;;
6425 ccc)
6426 lt_prog_compiler_wl='-Wl,'
6427 # All Alpha code is PIC.
6428 lt_prog_compiler_static='-non_shared'
6429 ;;
6430 esac
John Criswell7a73b802003-06-30 21:59:07 +00006431 ;;
6432
6433 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006434 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006435 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006436 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006437 ;;
6438
6439 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006440 lt_prog_compiler_pic='-Kpic'
6441 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006442 ;;
6443
6444 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006445 lt_prog_compiler_wl='-Wl,'
6446 lt_prog_compiler_pic='-KPIC'
6447 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006448 ;;
6449
6450 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006451 lt_prog_compiler_wl='-Qoption ld '
6452 lt_prog_compiler_pic='-PIC'
6453 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006454 ;;
6455
6456 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006457 lt_prog_compiler_wl='-Wl,'
6458 lt_prog_compiler_pic='-KPIC'
6459 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006460 ;;
6461
6462 sysv4*MP*)
6463 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006464 lt_prog_compiler_pic='-Kconform_pic'
6465 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006466 fi
6467 ;;
6468
John Criswell47fdd832003-07-14 16:52:07 +00006469 uts4*)
6470 lt_prog_compiler_pic='-pic'
6471 lt_prog_compiler_static='-Bstatic'
6472 ;;
6473
John Criswell7a73b802003-06-30 21:59:07 +00006474 *)
John Criswell47fdd832003-07-14 16:52:07 +00006475 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006476 ;;
6477 esac
6478 fi
6479
John Criswell47fdd832003-07-14 16:52:07 +00006480echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6481echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006482
John Criswell47fdd832003-07-14 16:52:07 +00006483#
6484# Check to make sure the PIC flag actually works.
6485#
6486if test -n "$lt_prog_compiler_pic"; then
6487 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6488echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6489if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491else
John Criswell47fdd832003-07-14 16:52:07 +00006492 lt_prog_compiler_pic_works=no
6493 ac_outfile=conftest.$ac_objext
6494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6495 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6496 # Insert the option either (1) after the last *FLAGS variable, or
6497 # (2) before a word containing "conftest.", or (3) at the end.
6498 # Note that $ac_compile itself does not contain backslashes and begins
6499 # with a dollar sign (not a hyphen), so the echo should work correctly.
6500 # The option is referenced via a variable to avoid confusing sed.
6501 lt_compile=`echo "$ac_compile" | $SED \
6502 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6504 -e 's:$: $lt_compiler_flag:'`
John Criswell12399a12003-09-30 15:55:44 +00006505 (eval echo "\"\$as_me:6505: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006506 (eval "$lt_compile" 2>conftest.err)
6507 ac_status=$?
6508 cat conftest.err >&5
John Criswell12399a12003-09-30 15:55:44 +00006509 echo "$as_me:6509: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006510 if (exit $ac_status) && test -s "$ac_outfile"; then
6511 # The compiler can only warn and ignore the option if not recognized
6512 # So say no if there are warnings
6513 if test ! -s conftest.err; then
6514 lt_prog_compiler_pic_works=yes
6515 fi
6516 fi
6517 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006518
John Criswell47fdd832003-07-14 16:52:07 +00006519fi
6520echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6521echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006522
John Criswell47fdd832003-07-14 16:52:07 +00006523if test x"$lt_prog_compiler_pic_works" = xyes; then
6524 case $lt_prog_compiler_pic in
6525 "" | " "*) ;;
6526 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6527 esac
John Criswell7a73b802003-06-30 21:59:07 +00006528else
John Criswell47fdd832003-07-14 16:52:07 +00006529 lt_prog_compiler_pic=
6530 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006531fi
6532
John Criswell7a73b802003-06-30 21:59:07 +00006533fi
John Criswell47fdd832003-07-14 16:52:07 +00006534case "$host_os" in
6535 # For platforms which do not support PIC, -DPIC is meaningless:
6536 *djgpp*)
6537 lt_prog_compiler_pic=
6538 ;;
6539 *)
6540 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6541 ;;
6542esac
John Criswell7a73b802003-06-30 21:59:07 +00006543
John Criswell7a73b802003-06-30 21:59:07 +00006544echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6545echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006546if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548else
John Criswell47fdd832003-07-14 16:52:07 +00006549 lt_cv_prog_compiler_c_o=no
6550 $rm -r conftest 2>/dev/null
6551 mkdir conftest
6552 cd conftest
6553 mkdir out
6554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006555
John Criswell47fdd832003-07-14 16:52:07 +00006556 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6557 # that will create temporary files in the current directory regardless of
6558 # the output directory. Thus, making CWD read-only will cause this test
6559 # to fail, enabling locking or at least warning the user not to do parallel
6560 # builds.
6561 chmod -w .
6562
6563 lt_compiler_flag="-o out/conftest2.$ac_objext"
6564 # Insert the option either (1) after the last *FLAGS variable, or
6565 # (2) before a word containing "conftest.", or (3) at the end.
6566 # Note that $ac_compile itself does not contain backslashes and begins
6567 # with a dollar sign (not a hyphen), so the echo should work correctly.
6568 lt_compile=`echo "$ac_compile" | $SED \
6569 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6571 -e 's:$: $lt_compiler_flag:'`
John Criswell12399a12003-09-30 15:55:44 +00006572 (eval echo "\"\$as_me:6572: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006573 (eval "$lt_compile" 2>out/conftest.err)
6574 ac_status=$?
6575 cat out/conftest.err >&5
John Criswell12399a12003-09-30 15:55:44 +00006576 echo "$as_me:6576: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006577 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6578 then
6579 # The compiler can only warn and ignore the option if not recognized
6580 # So say no if there are warnings
6581 if test ! -s out/conftest.err; then
6582 lt_cv_prog_compiler_c_o=yes
6583 fi
6584 fi
6585 chmod u+w .
6586 $rm conftest* out/*
6587 rmdir out
6588 cd ..
6589 rmdir conftest
6590 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006591
6592fi
John Criswell47fdd832003-07-14 16:52:07 +00006593echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6594echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006595
John Criswell7a73b802003-06-30 21:59:07 +00006596
John Criswell7a73b802003-06-30 21:59:07 +00006597hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006598if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006599 # do not overwrite the value of need_locks provided by the user
6600 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6601echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6602 hard_links=yes
6603 $rm conftest*
6604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6605 touch conftest.a
6606 ln conftest.a conftest.b 2>&5 || hard_links=no
6607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6608 echo "$as_me:$LINENO: result: $hard_links" >&5
6609echo "${ECHO_T}$hard_links" >&6
6610 if test "$hard_links" = no; then
6611 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6612echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6613 need_locks=warn
6614 fi
6615else
6616 need_locks=no
6617fi
John Criswell7a73b802003-06-30 21:59:07 +00006618
John Criswell47fdd832003-07-14 16:52:07 +00006619echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6620echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6621
6622 runpath_var=
6623 allow_undefined_flag=
6624 enable_shared_with_static_runtimes=no
6625 archive_cmds=
6626 archive_expsym_cmds=
6627 old_archive_From_new_cmds=
6628 old_archive_from_expsyms_cmds=
6629 export_dynamic_flag_spec=
6630 whole_archive_flag_spec=
6631 thread_safe_flag_spec=
6632 hardcode_libdir_flag_spec=
6633 hardcode_libdir_flag_spec_ld=
6634 hardcode_libdir_separator=
6635 hardcode_direct=no
6636 hardcode_minus_L=no
6637 hardcode_shlibpath_var=unsupported
6638 link_all_deplibs=unknown
6639 hardcode_automatic=no
6640 module_cmds=
6641 module_expsym_cmds=
6642 always_export_symbols=no
6643 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6644 # include_expsyms should be a list of space-separated symbols to be *always*
6645 # included in the symbol list
6646 include_expsyms=
6647 # exclude_expsyms can be an extended regexp of symbols to exclude
6648 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6649 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6650 # as well as any symbol that contains `d'.
6651 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6652 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6653 # platforms (ab)use it in PIC code, but their linkers get confused if
6654 # the symbol is explicitly referenced. Since portable code cannot
6655 # rely on this symbol name, it's probably fine to never include it in
6656 # preloaded symbol tables.
6657 extract_expsyms_cmds=
6658
6659 case $host_os in
6660 cygwin* | mingw* | pw32*)
6661 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6662 # When not using gcc, we currently assume that we are using
6663 # Microsoft Visual C++.
6664 if test "$GCC" != yes; then
6665 with_gnu_ld=no
6666 fi
6667 ;;
6668 openbsd*)
6669 with_gnu_ld=no
6670 ;;
6671 esac
6672
6673 ld_shlibs=yes
6674 if test "$with_gnu_ld" = yes; then
6675 # If archive_cmds runs LD, not CC, wlarc should be empty
6676 wlarc='${wl}'
6677
6678 # See if GNU ld supports shared libraries.
6679 case $host_os in
6680 aix3* | aix4* | aix5*)
6681 # On AIX/PPC, the GNU linker is very broken
6682 if test "$host_cpu" != ia64; then
6683 ld_shlibs=no
6684 cat <<EOF 1>&2
6685
6686*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6687*** to be unable to reliably create shared libraries on AIX.
6688*** Therefore, libtool is disabling shared libraries support. If you
6689*** really care for shared libraries, you may want to modify your PATH
6690*** so that a non-GNU linker is found, and then restart.
6691
6692EOF
6693 fi
6694 ;;
6695
6696 amigaos*)
6697 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)'
6698 hardcode_libdir_flag_spec='-L$libdir'
6699 hardcode_minus_L=yes
6700
6701 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6702 # that the semantics of dynamic libraries on AmigaOS, at least up
6703 # to version 4, is to share data among multiple programs linked
6704 # with the same dynamic library. Since this doesn't match the
6705 # behavior of shared libraries on other platforms, we can't use
6706 # them.
6707 ld_shlibs=no
6708 ;;
6709
6710 beos*)
6711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6712 allow_undefined_flag=unsupported
6713 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6714 # support --undefined. This deserves some investigation. FIXME
6715 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6716 else
6717 ld_shlibs=no
6718 fi
6719 ;;
6720
6721 cygwin* | mingw* | pw32*)
6722 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6723 # as there is no search path for DLLs.
6724 hardcode_libdir_flag_spec='-L$libdir'
6725 allow_undefined_flag=unsupported
6726 always_export_symbols=no
6727 enable_shared_with_static_runtimes=yes
6728 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6729
6730 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6732 # If the export-symbols file already is a .def file (1st line
6733 # is EXPORTS), use it as is; otherwise, prepend...
6734 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6735 cp $export_symbols $output_objdir/$soname.def;
6736 else
6737 echo EXPORTS > $output_objdir/$soname.def;
6738 cat $export_symbols >> $output_objdir/$soname.def;
6739 fi~
6740 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6741 else
6742 ld_shlibs=no
6743 fi
6744 ;;
6745
6746 netbsd*)
6747 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6748 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6749 wlarc=
6750 else
6751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6752 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6753 fi
6754 ;;
6755
6756 solaris* | sysv5*)
6757 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6758 ld_shlibs=no
6759 cat <<EOF 1>&2
6760
6761*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6762*** create shared libraries on Solaris systems. Therefore, libtool
6763*** is disabling shared libraries support. We urge you to upgrade GNU
6764*** binutils to release 2.9.1 or newer. Another option is to modify
6765*** your PATH or compiler configuration so that the native linker is
6766*** used, and then restart.
6767
6768EOF
6769 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6771 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6772 else
6773 ld_shlibs=no
6774 fi
6775 ;;
6776
6777 sunos4*)
6778 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6779 wlarc=
6780 hardcode_direct=yes
6781 hardcode_shlibpath_var=no
6782 ;;
6783
6784 *)
6785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6787 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6788 else
6789 ld_shlibs=no
6790 fi
6791 ;;
6792 esac
6793
6794 if test "$ld_shlibs" = yes; then
6795 runpath_var=LD_RUN_PATH
6796 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6797 export_dynamic_flag_spec='${wl}--export-dynamic'
6798 # ancient GNU ld didn't support --whole-archive et. al.
6799 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6800 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6801 else
6802 whole_archive_flag_spec=
6803 fi
6804 fi
6805 else
6806 # PORTME fill in a description of your system's linker (not GNU ld)
6807 case $host_os in
6808 aix3*)
6809 allow_undefined_flag=unsupported
6810 always_export_symbols=yes
6811 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'
6812 # Note: this linker hardcodes the directories in LIBPATH if there
6813 # are no directories specified by -L.
6814 hardcode_minus_L=yes
6815 if test "$GCC" = yes && test -z "$link_static_flag"; then
6816 # Neither direct hardcoding nor static linking is supported with a
6817 # broken collect2.
6818 hardcode_direct=unsupported
6819 fi
6820 ;;
6821
6822 aix4* | aix5*)
6823 if test "$host_cpu" = ia64; then
6824 # On IA64, the linker does run time linking by default, so we don't
6825 # have to do anything special.
6826 aix_use_runtimelinking=no
6827 exp_sym_flag='-Bexport'
6828 no_entry_flag=""
6829 else
6830 # If we're using GNU nm, then we don't want the "-C" option.
6831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6832 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6833 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'
6834 else
6835 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'
6836 fi
6837 aix_use_runtimelinking=no
6838
6839 # Test if we are trying to use run time linking or normal
6840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6841 # need to do runtime linking.
6842 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6843 for ld_flag in $LDFLAGS; do
6844 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6845 aix_use_runtimelinking=yes
6846 break
6847 fi
6848 done
6849 esac
6850
6851 exp_sym_flag='-bexport'
6852 no_entry_flag='-bnoentry'
6853 fi
6854
6855 # When large executables or shared objects are built, AIX ld can
6856 # have problems creating the table of contents. If linking a library
6857 # or program results in "error TOC overflow" add -mminimal-toc to
6858 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6859 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6860
6861 archive_cmds=''
6862 hardcode_direct=yes
6863 hardcode_libdir_separator=':'
6864 link_all_deplibs=yes
6865
6866 if test "$GCC" = yes; then
6867 case $host_os in aix4.012|aix4.012.*)
6868 # We only want to do this on AIX 4.2 and lower, the check
6869 # below for broken collect2 doesn't work under 4.3+
6870 collect2name=`${CC} -print-prog-name=collect2`
6871 if test -f "$collect2name" && \
6872 strings "$collect2name" | grep resolve_lib_name >/dev/null
6873 then
6874 # We have reworked collect2
6875 hardcode_direct=yes
6876 else
6877 # We have old collect2
6878 hardcode_direct=unsupported
6879 # It fails to find uninstalled libraries when the uninstalled
6880 # path is not listed in the libpath. Setting hardcode_minus_L
6881 # to unsupported forces relinking
6882 hardcode_minus_L=yes
6883 hardcode_libdir_flag_spec='-L$libdir'
6884 hardcode_libdir_separator=
6885 fi
6886 esac
6887 shared_flag='-shared'
6888 else
6889 # not using gcc
6890 if test "$host_cpu" = ia64; then
6891 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6892 # chokes on -Wl,-G. The following line is correct:
6893 shared_flag='-G'
6894 else
6895 if test "$aix_use_runtimelinking" = yes; then
6896 shared_flag='${wl}-G'
6897 else
6898 shared_flag='${wl}-bM:SRE'
6899 fi
6900 fi
6901 fi
6902
6903 # It seems that -bexpall does not export symbols beginning with
6904 # underscore (_), so it is better to generate a list of symbols to export.
6905 always_export_symbols=yes
6906 if test "$aix_use_runtimelinking" = yes; then
6907 # Warning - without using the other runtime loading flags (-brtl),
6908 # -berok will link without error, but may produce a broken library.
6909 allow_undefined_flag='-berok'
6910 # Determine the default libpath from the value encoded in an empty executable.
6911 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006912#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006913/* confdefs.h. */
6914_ACEOF
6915cat confdefs.h >>conftest.$ac_ext
6916cat >>conftest.$ac_ext <<_ACEOF
6917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006918
John Criswell7a73b802003-06-30 21:59:07 +00006919int
6920main ()
6921{
John Criswell47fdd832003-07-14 16:52:07 +00006922
John Criswell7a73b802003-06-30 21:59:07 +00006923 ;
6924 return 0;
6925}
6926_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006927rm -f conftest.$ac_objext conftest$ac_exeext
6928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6929 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006933 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 (eval $ac_try) 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006939
John Criswell47fdd832003-07-14 16:52:07 +00006940aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6941}'`
6942# Check for a 64-bit object if we didn't find anything.
6943if 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; }
6944}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006945else
6946 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006947sed 's/^/| /' conftest.$ac_ext >&5
6948
John Criswell7a73b802003-06-30 21:59:07 +00006949fi
John Criswell47fdd832003-07-14 16:52:07 +00006950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6951if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006952
John Criswell47fdd832003-07-14 16:52:07 +00006953 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6954 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"
6955 else
6956 if test "$host_cpu" = ia64; then
6957 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6958 allow_undefined_flag="-z nodefs"
6959 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"
6960 else
6961 # Determine the default libpath from the value encoded in an empty executable.
6962 cat >conftest.$ac_ext <<_ACEOF
6963#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006964/* confdefs.h. */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006969
John Criswell47fdd832003-07-14 16:52:07 +00006970int
6971main ()
6972{
John Criswell7a73b802003-06-30 21:59:07 +00006973
John Criswell47fdd832003-07-14 16:52:07 +00006974 ;
6975 return 0;
6976}
6977_ACEOF
6978rm -f conftest.$ac_objext conftest$ac_exeext
6979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6980 (eval $ac_link) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
6984 { ac_try='test -s conftest$ac_exeext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 (eval $ac_try) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006990
John Criswell47fdd832003-07-14 16:52:07 +00006991aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6992}'`
6993# Check for a 64-bit object if we didn't find anything.
6994if 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; }
6995}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006996else
John Criswell47fdd832003-07-14 16:52:07 +00006997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006998sed 's/^/| /' conftest.$ac_ext >&5
6999
John Criswell47fdd832003-07-14 16:52:07 +00007000fi
7001rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7002if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007003
John Criswell47fdd832003-07-14 16:52:07 +00007004 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7005 # Warning - without using the other run time loading flags,
7006 # -berok will link without error, but may produce a broken library.
7007 no_undefined_flag=' ${wl}-bernotok'
7008 allow_undefined_flag=' ${wl}-berok'
7009 # -bexpall does not export symbols beginning with underscore (_)
7010 always_export_symbols=yes
7011 # Exported symbols can be pulled into shared objects from archives
7012 whole_archive_flag_spec=' '
7013 archive_cmds_need_lc=yes
7014 # This is similar to how AIX traditionally builds it's shared libraries.
7015 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 +00007016 fi
7017 fi
John Criswell7a73b802003-06-30 21:59:07 +00007018 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007019
7020 amigaos*)
7021 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)'
7022 hardcode_libdir_flag_spec='-L$libdir'
7023 hardcode_minus_L=yes
7024 # see comment about different semantics on the GNU ld section
7025 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007026 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007027
John Criswell47fdd832003-07-14 16:52:07 +00007028 bsdi4*)
7029 export_dynamic_flag_spec=-rdynamic
7030 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007031
John Criswell47fdd832003-07-14 16:52:07 +00007032 cygwin* | mingw* | pw32*)
7033 # When not using gcc, we currently assume that we are using
7034 # Microsoft Visual C++.
7035 # hardcode_libdir_flag_spec is actually meaningless, as there is
7036 # no search path for DLLs.
7037 hardcode_libdir_flag_spec=' '
7038 allow_undefined_flag=unsupported
7039 # Tell ltmain to make .lib files, not .a files.
7040 libext=lib
7041 # Tell ltmain to make .dll files, not .so files.
7042 shrext=".dll"
7043 # FIXME: Setting linknames here is a bad hack.
7044 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7045 # The linker will automatically build a .lib file if we build a DLL.
7046 old_archive_From_new_cmds='true'
7047 # FIXME: Should let the user specify the lib program.
7048 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7049 fix_srcfile_path='`cygpath -w "$srcfile"`'
7050 enable_shared_with_static_runtimes=yes
7051 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007052
John Criswell47fdd832003-07-14 16:52:07 +00007053 darwin* | rhapsody*)
7054 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7055 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007056 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007057 rhapsody* | darwin1.[012])
7058 allow_undefined_flag='-undefined suppress'
7059 ;;
7060 *) # Darwin 1.3 on
7061 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007062 ;;
7063 esac
John Criswell47fdd832003-07-14 16:52:07 +00007064 # FIXME: Relying on posixy $() will cause problems for
7065 # cross-compilation, but unfortunately the echo tests do not
7066 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7067 # `"' quotes if we put them in here... so don't!
7068 lt_int_apple_cc_single_mod=no
7069 output_verbose_link_cmd='echo'
7070 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7071 lt_int_apple_cc_single_mod=yes
7072 fi
7073 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7074 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7075 else
7076 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'
7077 fi
7078 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7079 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7080 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7081 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}'
7082 else
7083 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}'
7084 fi
7085 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}'
7086 hardcode_direct=no
7087 hardcode_automatic=yes
7088 hardcode_shlibpath_var=unsupported
7089 whole_archive_flag_spec='-all_load $convenience'
7090 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007091 fi
John Criswell47fdd832003-07-14 16:52:07 +00007092 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007093
John Criswell47fdd832003-07-14 16:52:07 +00007094 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007096 hardcode_libdir_flag_spec='-L$libdir'
7097 hardcode_shlibpath_var=no
7098 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007099
John Criswell47fdd832003-07-14 16:52:07 +00007100 freebsd1*)
7101 ld_shlibs=no
7102 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007103
John Criswell47fdd832003-07-14 16:52:07 +00007104 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7105 # support. Future versions do this automatically, but an explicit c++rt0.o
7106 # does not break anything, and helps significantly (at the cost of a little
7107 # extra space).
7108 freebsd2.2*)
7109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7110 hardcode_libdir_flag_spec='-R$libdir'
7111 hardcode_direct=yes
7112 hardcode_shlibpath_var=no
7113 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007114
John Criswell47fdd832003-07-14 16:52:07 +00007115 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7116 freebsd2*)
7117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7118 hardcode_direct=yes
7119 hardcode_minus_L=yes
7120 hardcode_shlibpath_var=no
7121 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007122
John Criswell47fdd832003-07-14 16:52:07 +00007123 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7124 freebsd*)
7125 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7126 hardcode_libdir_flag_spec='-R$libdir'
7127 hardcode_direct=yes
7128 hardcode_shlibpath_var=no
7129 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007130
John Criswell47fdd832003-07-14 16:52:07 +00007131 hpux9*)
7132 if test "$GCC" = yes; then
7133 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'
7134 else
7135 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'
7136 fi
7137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7138 hardcode_libdir_separator=:
7139 hardcode_direct=yes
7140
7141 # hardcode_minus_L: Not really in the search PATH,
7142 # but as the default location of the library.
7143 hardcode_minus_L=yes
7144 export_dynamic_flag_spec='${wl}-E'
7145 ;;
7146
7147 hpux10* | hpux11*)
7148 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7149 case "$host_cpu" in
7150 hppa*64*|ia64*)
7151 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7152 ;;
7153 *)
7154 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7155 ;;
7156 esac
7157 else
7158 case "$host_cpu" in
7159 hppa*64*|ia64*)
7160 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7161 ;;
7162 *)
7163 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7164 ;;
7165 esac
7166 fi
7167 if test "$with_gnu_ld" = no; then
7168 case "$host_cpu" in
7169 hppa*64*)
7170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7171 hardcode_libdir_flag_spec_ld='+b $libdir'
7172 hardcode_libdir_separator=:
7173 hardcode_direct=no
7174 hardcode_shlibpath_var=no
7175 ;;
7176 ia64*)
7177 hardcode_libdir_flag_spec='-L$libdir'
7178 hardcode_direct=no
7179 hardcode_shlibpath_var=no
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 *)
7186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7187 hardcode_libdir_separator=:
7188 hardcode_direct=yes
7189 export_dynamic_flag_spec='${wl}-E'
7190
7191 # hardcode_minus_L: Not really in the search PATH,
7192 # but as the default location of the library.
7193 hardcode_minus_L=yes
7194 ;;
7195 esac
7196 fi
7197 ;;
7198
7199 irix5* | irix6* | nonstopux*)
7200 if test "$GCC" = yes; then
7201 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'
7202 else
7203 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'
7204 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7205 fi
7206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7207 hardcode_libdir_separator=:
7208 link_all_deplibs=yes
7209 ;;
7210
7211 netbsd*)
7212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7213 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7214 else
7215 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7216 fi
7217 hardcode_libdir_flag_spec='-R$libdir'
7218 hardcode_direct=yes
7219 hardcode_shlibpath_var=no
7220 ;;
7221
7222 newsos6)
7223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7224 hardcode_direct=yes
7225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7226 hardcode_libdir_separator=:
7227 hardcode_shlibpath_var=no
7228 ;;
7229
7230 openbsd*)
7231 hardcode_direct=yes
7232 hardcode_shlibpath_var=no
7233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7234 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7236 export_dynamic_flag_spec='${wl}-E'
7237 else
7238 case $host_os in
7239 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7240 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7241 hardcode_libdir_flag_spec='-R$libdir'
7242 ;;
7243 *)
7244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7245 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7246 ;;
7247 esac
7248 fi
7249 ;;
7250
7251 os2*)
7252 hardcode_libdir_flag_spec='-L$libdir'
7253 hardcode_minus_L=yes
7254 allow_undefined_flag=unsupported
7255 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'
7256 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7257 ;;
7258
7259 osf3*)
7260 if test "$GCC" = yes; then
7261 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7262 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'
7263 else
7264 allow_undefined_flag=' -expect_unresolved \*'
7265 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'
7266 fi
7267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7268 hardcode_libdir_separator=:
7269 ;;
7270
7271 osf4* | osf5*) # as osf3* with the addition of -msym flag
7272 if test "$GCC" = yes; then
7273 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7274 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'
7275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7276 else
7277 allow_undefined_flag=' -expect_unresolved \*'
7278 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'
7279 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7280 $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'
7281
7282 # Both c and cxx compiler support -rpath directly
7283 hardcode_libdir_flag_spec='-rpath $libdir'
7284 fi
7285 hardcode_libdir_separator=:
7286 ;;
7287
7288 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7290 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007291 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007292 runpath_var=LD_RUN_PATH
7293 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007294 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007295
John Criswell47fdd832003-07-14 16:52:07 +00007296 solaris*)
7297 no_undefined_flag=' -z text'
7298 if test "$GCC" = yes; then
7299 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7300 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7301 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7302 else
7303 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7304 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7305 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7306 fi
7307 hardcode_libdir_flag_spec='-R$libdir'
7308 hardcode_shlibpath_var=no
7309 case $host_os in
7310 solaris2.[0-5] | solaris2.[0-5].*) ;;
7311 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7312 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7313 esac
7314 link_all_deplibs=yes
7315 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007316
John Criswell47fdd832003-07-14 16:52:07 +00007317 sunos4*)
7318 if test "x$host_vendor" = xsequent; then
7319 # Use $CC to link under sequent, because it throws in some extra .o
7320 # files that make .init and .fini sections work.
7321 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7322 else
7323 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7324 fi
7325 hardcode_libdir_flag_spec='-L$libdir'
7326 hardcode_direct=yes
7327 hardcode_minus_L=yes
7328 hardcode_shlibpath_var=no
7329 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007330
John Criswell47fdd832003-07-14 16:52:07 +00007331 sysv4)
7332 case $host_vendor in
7333 sni)
7334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7335 hardcode_direct=yes # is this really true???
7336 ;;
7337 siemens)
7338 ## LD is ld it makes a PLAMLIB
7339 ## CC just makes a GrossModule.
7340 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7341 reload_cmds='$CC -r -o $output$reload_objs'
7342 hardcode_direct=no
7343 ;;
7344 motorola)
7345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7346 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7347 ;;
7348 esac
7349 runpath_var='LD_RUN_PATH'
7350 hardcode_shlibpath_var=no
7351 ;;
7352
7353 sysv4.3*)
7354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7355 hardcode_shlibpath_var=no
7356 export_dynamic_flag_spec='-Bexport'
7357 ;;
7358
7359 sysv4*MP*)
7360 if test -d /usr/nec; then
7361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7362 hardcode_shlibpath_var=no
7363 runpath_var=LD_RUN_PATH
7364 hardcode_runpath_var=yes
7365 ld_shlibs=yes
7366 fi
7367 ;;
7368
7369 sysv4.2uw2*)
7370 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7371 hardcode_direct=yes
7372 hardcode_minus_L=no
7373 hardcode_shlibpath_var=no
7374 hardcode_runpath_var=yes
7375 runpath_var=LD_RUN_PATH
7376 ;;
7377
7378 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7379 no_undefined_flag='${wl}-z ${wl}text'
7380 if test "$GCC" = yes; then
7381 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7382 else
7383 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7384 fi
7385 runpath_var='LD_RUN_PATH'
7386 hardcode_shlibpath_var=no
7387 ;;
7388
7389 sysv5*)
7390 no_undefined_flag=' -z text'
7391 # $CC -shared without GNU ld will not create a library from C++
7392 # object files and a static libstdc++, better avoid it by now
7393 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7394 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7396 hardcode_libdir_flag_spec=
7397 hardcode_shlibpath_var=no
7398 runpath_var='LD_RUN_PATH'
7399 ;;
7400
7401 uts4*)
7402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7403 hardcode_libdir_flag_spec='-L$libdir'
7404 hardcode_shlibpath_var=no
7405 ;;
7406
7407 *)
7408 ld_shlibs=no
7409 ;;
7410 esac
7411 fi
7412
John Criswell7a73b802003-06-30 21:59:07 +00007413echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7414echo "${ECHO_T}$ld_shlibs" >&6
7415test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007416
John Criswell47fdd832003-07-14 16:52:07 +00007417variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7418if test "$GCC" = yes; then
7419 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7420fi
7421
7422#
7423# Do we need to explicitly link libc?
7424#
7425case "x$archive_cmds_need_lc" in
7426x|xyes)
7427 # Assume -lc should be added
7428 archive_cmds_need_lc=yes
7429
7430 if test "$enable_shared" = yes && test "$GCC" = yes; then
7431 case $archive_cmds in
7432 *'~'*)
7433 # FIXME: we may have to deal with multi-command sequences.
7434 ;;
7435 '$CC '*)
7436 # Test whether the compiler implicitly links with -lc since on some
7437 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7438 # to ld, don't add -lc before -lgcc.
7439 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7440echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7441 $rm conftest*
7442 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7443
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445 (eval $ac_compile) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } 2>conftest.err; then
7449 soname=conftest
7450 lib=conftest
7451 libobjs=conftest.$ac_objext
7452 deplibs=
7453 wl=$lt_prog_compiler_wl
7454 compiler_flags=-v
7455 linker_flags=-v
7456 verstring=
7457 output_objdir=.
7458 libname=conftest
7459 lt_save_allow_undefined_flag=$allow_undefined_flag
7460 allow_undefined_flag=
7461 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7462 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7463 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }
7466 then
7467 archive_cmds_need_lc=no
7468 else
7469 archive_cmds_need_lc=yes
7470 fi
7471 allow_undefined_flag=$lt_save_allow_undefined_flag
7472 else
7473 cat conftest.err 1>&5
7474 fi
7475 $rm conftest*
7476 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7477echo "${ECHO_T}$archive_cmds_need_lc" >&6
7478 ;;
7479 esac
7480 fi
7481 ;;
7482esac
7483
John Criswell7a73b802003-06-30 21:59:07 +00007484echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7485echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7486hardcode_action=
7487if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007488 test -n "$runpath_var " || \
7489 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007490
7491 # We can hardcode non-existant directories.
7492 if test "$hardcode_direct" != no &&
7493 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7494 # have to relink, otherwise we might link with an installed library
7495 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007496 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007497 test "$hardcode_minus_L" != no; then
7498 # Linking always hardcodes the temporary library directory.
7499 hardcode_action=relink
7500 else
7501 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7502 hardcode_action=immediate
7503 fi
7504else
7505 # We cannot hardcode anything, or else we can only hardcode existing
7506 # directories.
7507 hardcode_action=unsupported
7508fi
7509echo "$as_me:$LINENO: result: $hardcode_action" >&5
7510echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007511
John Criswell47fdd832003-07-14 16:52:07 +00007512if test "$hardcode_action" = relink; then
7513 # Fast installation is not supported
7514 enable_fast_install=no
7515elif test "$shlibpath_overrides_runpath" = yes ||
7516 test "$enable_shared" = no; then
7517 # Fast installation is not necessary
7518 enable_fast_install=needless
7519fi
7520
John Criswell7a73b802003-06-30 21:59:07 +00007521striplib=
7522old_striplib=
7523echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7524echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7525if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7526 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7527 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7528 echo "$as_me:$LINENO: result: yes" >&5
7529echo "${ECHO_T}yes" >&6
7530else
John Criswell47fdd832003-07-14 16:52:07 +00007531# FIXME - insert some real tests, host_os isn't really good enough
7532 case $host_os in
7533 darwin*)
7534 if test -n "$STRIP" ; then
7535 striplib="$STRIP -x"
7536 echo "$as_me:$LINENO: result: yes" >&5
7537echo "${ECHO_T}yes" >&6
7538 else
John Criswell7a73b802003-06-30 21:59:07 +00007539 echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6
7541fi
John Criswell47fdd832003-07-14 16:52:07 +00007542 ;;
7543 *)
7544 echo "$as_me:$LINENO: result: no" >&5
7545echo "${ECHO_T}no" >&6
7546 ;;
7547 esac
7548fi
John Criswell7a73b802003-06-30 21:59:07 +00007549
John Criswell7a73b802003-06-30 21:59:07 +00007550echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7551echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7552library_names_spec=
7553libname_spec='lib$name'
7554soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007555shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007556postinstall_cmds=
7557postuninstall_cmds=
7558finish_cmds=
7559finish_eval=
7560shlibpath_var=
7561shlibpath_overrides_runpath=unknown
7562version_type=none
7563dynamic_linker="$host_os ld.so"
7564sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007565if test "$GCC" = yes; then
7566 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7567 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7568 # if the path contains ";" then we assume it to be the separator
7569 # otherwise default to the standard path separator (i.e. ":") - it is
7570 # assumed that no part of a normal pathname contains ";" but that should
7571 # okay in the real world where ";" in dirpaths is itself problematic.
7572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7573 else
7574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7575 fi
7576else
7577 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7578fi
7579need_lib_prefix=unknown
7580hardcode_into_libs=no
7581
7582# when you set need_version to no, make sure it does not cause -set_version
7583# flags to be left without arguments
7584need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007585
7586case $host_os in
7587aix3*)
7588 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007590 shlibpath_var=LIBPATH
7591
John Criswell47fdd832003-07-14 16:52:07 +00007592 # AIX 3 has no versioning support, so we append a major version to the name.
7593 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007594 ;;
7595
7596aix4* | aix5*)
7597 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007598 need_lib_prefix=no
7599 need_version=no
7600 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007601 if test "$host_cpu" = ia64; then
7602 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007603 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007604 shlibpath_var=LD_LIBRARY_PATH
7605 else
7606 # With GCC up to 2.95.x, collect2 would create an import file
7607 # for dependence libraries. The import file would start with
7608 # the line `#! .'. This would cause the generated library to
7609 # depend on `.', always an invalid library. This was fixed in
7610 # development snapshots of GCC prior to 3.0.
7611 case $host_os in
7612 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007613 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7614 echo ' yes '
7615 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7616 :
7617 else
7618 can_build_shared=no
7619 fi
7620 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007621 esac
John Criswell47fdd832003-07-14 16:52:07 +00007622 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7623 # soname into executable. Probably we can add versioning support to
7624 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007625 if test "$aix_use_runtimelinking" = yes; then
7626 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7627 # instead of lib<name>.a to let people know that these are not
7628 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007630 else
7631 # We preserve .a as extension for shared libraries through AIX4.2
7632 # and later when we are not doing run time linking.
7633 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007634 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007635 fi
7636 shlibpath_var=LIBPATH
7637 fi
7638 ;;
7639
7640amigaos*)
7641 library_names_spec='$libname.ixlibrary $libname.a'
7642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7643 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'
7644 ;;
7645
7646beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007647 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007648 dynamic_linker="$host_os ld.so"
7649 shlibpath_var=LIBRARY_PATH
7650 ;;
7651
7652bsdi4*)
7653 version_type=linux
7654 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7656 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007657 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7658 shlibpath_var=LD_LIBRARY_PATH
7659 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7660 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007661 # the default ld.so.conf also contains /usr/contrib/lib and
7662 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7663 # libtool to hard-code these into programs
7664 ;;
7665
7666cygwin* | mingw* | pw32*)
7667 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007668 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007669 need_version=no
7670 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007671
John Criswell7a73b802003-06-30 21:59:07 +00007672 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007673 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007674 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007675 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7676 postinstall_cmds='base_file=`basename \${file}`~
7677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007678 dldir=$destdir/`dirname \$dlpath`~
7679 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007680 $install_prog $dir/$dlname \$dldir/$dlname'
7681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007682 dlpath=$dir/\$dldll~
7683 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007684 shlibpath_overrides_runpath=yes
7685
7686 case $host_os in
7687 cygwin*)
7688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7689 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7690 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7691 ;;
7692 mingw*)
7693 # MinGW DLLs use traditional 'lib' prefix
7694 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7696 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7697 # It is most probably a Windows format PATH printed by
7698 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7699 # path with ; separators, and with drive letters. We can handle the
7700 # drive letters (cygwin fileutils understands them), so leave them,
7701 # especially as we might pass files found there to a mingw objdump,
7702 # which wouldn't understand a cygwinified path. Ahh.
7703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7704 else
7705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7706 fi
7707 ;;
7708 pw32*)
7709 # pw32 DLLs use 'pw' prefix rather than 'lib'
7710 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7711 ;;
7712 esac
John Criswell7a73b802003-06-30 21:59:07 +00007713 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007714
John Criswell7a73b802003-06-30 21:59:07 +00007715 *)
John Criswell47fdd832003-07-14 16:52:07 +00007716 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007717 ;;
7718 esac
7719 dynamic_linker='Win32 ld.exe'
7720 # FIXME: first we should search . and the directory the executable is in
7721 shlibpath_var=PATH
7722 ;;
7723
7724darwin* | rhapsody*)
7725 dynamic_linker="$host_os dyld"
7726 version_type=darwin
7727 need_lib_prefix=no
7728 need_version=no
7729 # FIXME: Relying on posixy $() will cause problems for
7730 # cross-compilation, but unfortunately the echo tests do not
7731 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007732 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7733 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007734 shlibpath_overrides_runpath=yes
7735 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007736 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7737 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7738 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7739 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"`
7740 fi
7741 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7742 ;;
7743
7744dgux*)
7745 version_type=linux
7746 need_lib_prefix=no
7747 need_version=no
7748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7749 soname_spec='${libname}${release}${shared_ext}$major'
7750 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007751 ;;
7752
7753freebsd1*)
7754 dynamic_linker=no
7755 ;;
7756
7757freebsd*)
7758 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7759 version_type=freebsd-$objformat
7760 case $version_type in
7761 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007763 need_version=no
7764 need_lib_prefix=no
7765 ;;
7766 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007768 need_version=yes
7769 ;;
7770 esac
7771 shlibpath_var=LD_LIBRARY_PATH
7772 case $host_os in
7773 freebsd2*)
7774 shlibpath_overrides_runpath=yes
7775 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007776 freebsd3.01* | freebsdelf3.01*)
7777 shlibpath_overrides_runpath=yes
7778 hardcode_into_libs=yes
7779 ;;
7780 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007781 shlibpath_overrides_runpath=no
7782 hardcode_into_libs=yes
7783 ;;
7784 esac
7785 ;;
7786
7787gnu*)
7788 version_type=linux
7789 need_lib_prefix=no
7790 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7792 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007793 shlibpath_var=LD_LIBRARY_PATH
7794 hardcode_into_libs=yes
7795 ;;
7796
7797hpux9* | hpux10* | hpux11*)
7798 # Give a soname corresponding to the major version so that dld.sl refuses to
7799 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007800 version_type=sunos
7801 need_lib_prefix=no
7802 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007803 case "$host_cpu" in
7804 ia64*)
7805 shrext='.so'
7806 hardcode_into_libs=yes
7807 dynamic_linker="$host_os dld.so"
7808 shlibpath_var=LD_LIBRARY_PATH
7809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7811 soname_spec='${libname}${release}${shared_ext}$major'
7812 if test "X$HPUX_IA64_MODE" = X32; then
7813 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7814 else
7815 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7816 fi
7817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7818 ;;
7819 hppa*64*)
7820 shrext='.sl'
7821 hardcode_into_libs=yes
7822 dynamic_linker="$host_os dld.sl"
7823 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7829 ;;
7830 *)
7831 shrext='.sl'
7832 dynamic_linker="$host_os dld.sl"
7833 shlibpath_var=SHLIB_PATH
7834 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7836 soname_spec='${libname}${release}${shared_ext}$major'
7837 ;;
7838 esac
John Criswell7a73b802003-06-30 21:59:07 +00007839 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7840 postinstall_cmds='chmod 555 $lib'
7841 ;;
7842
John Criswell47fdd832003-07-14 16:52:07 +00007843irix5* | irix6* | nonstopux*)
7844 case $host_os in
7845 nonstopux*) version_type=nonstopux ;;
7846 *)
7847 if test "$lt_cv_prog_gnu_ld" = yes; then
7848 version_type=linux
7849 else
7850 version_type=irix
7851 fi ;;
7852 esac
John Criswell7a73b802003-06-30 21:59:07 +00007853 need_lib_prefix=no
7854 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007855 soname_spec='${libname}${release}${shared_ext}$major'
7856 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 +00007857 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007858 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007859 libsuff= shlibsuff=
7860 ;;
7861 *)
7862 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7864 libsuff= shlibsuff= libmagic=32-bit;;
7865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7866 libsuff=32 shlibsuff=N32 libmagic=N32;;
7867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007869 *) libsuff= shlibsuff= libmagic=never-match;;
7870 esac
7871 ;;
7872 esac
7873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7874 shlibpath_overrides_runpath=no
7875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007877 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007878 ;;
7879
7880# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007881linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007882 dynamic_linker=no
7883 ;;
7884
7885# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007886linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007887 version_type=linux
7888 need_lib_prefix=no
7889 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7891 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7893 shlibpath_var=LD_LIBRARY_PATH
7894 shlibpath_overrides_runpath=no
7895 # This implies no fast_install, which is unacceptable.
7896 # Some rework will be needed to allow for fast_install
7897 # before this can be enabled.
7898 hardcode_into_libs=yes
7899
7900 # We used to test for /lib/ld.so.1 and disable shared libraries on
7901 # powerpc, because MkLinux only supported shared libraries with the
7902 # GNU dynamic linker. Since this was broken with cross compilers,
7903 # most powerpc-linux boxes support dynamic linking these days and
7904 # people can always --disable-shared, the test was removed, and we
7905 # assume the GNU/Linux dynamic linker is in use.
7906 dynamic_linker='GNU/Linux ld.so'
7907 ;;
7908
7909netbsd*)
7910 version_type=sunos
7911 need_lib_prefix=no
7912 need_version=no
7913 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7916 dynamic_linker='NetBSD (a.out) ld.so'
7917 else
John Criswell47fdd832003-07-14 16:52:07 +00007918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7919 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007920 dynamic_linker='NetBSD ld.elf_so'
7921 fi
7922 shlibpath_var=LD_LIBRARY_PATH
7923 shlibpath_overrides_runpath=yes
7924 hardcode_into_libs=yes
7925 ;;
7926
7927newsos6)
7928 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930 shlibpath_var=LD_LIBRARY_PATH
7931 shlibpath_overrides_runpath=yes
7932 ;;
7933
7934nto-qnx)
7935 version_type=linux
7936 need_lib_prefix=no
7937 need_version=no
7938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7939 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007940 shlibpath_var=LD_LIBRARY_PATH
7941 shlibpath_overrides_runpath=yes
7942 ;;
7943
7944openbsd*)
7945 version_type=sunos
7946 need_lib_prefix=no
7947 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7950 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007951 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 +00007952 case $host_os in
7953 openbsd2.[89] | openbsd2.[89].*)
7954 shlibpath_overrides_runpath=no
7955 ;;
7956 *)
7957 shlibpath_overrides_runpath=yes
7958 ;;
7959 esac
John Criswell7a73b802003-06-30 21:59:07 +00007960 else
7961 shlibpath_overrides_runpath=yes
7962 fi
John Criswell7a73b802003-06-30 21:59:07 +00007963 ;;
7964
7965os2*)
7966 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007967 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007968 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007969 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007970 dynamic_linker='OS/2 ld.exe'
7971 shlibpath_var=LIBPATH
7972 ;;
7973
7974osf3* | osf4* | osf5*)
7975 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007976 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007977 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007978 soname_spec='${libname}${release}${shared_ext}$major'
7979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007980 shlibpath_var=LD_LIBRARY_PATH
7981 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7982 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7983 ;;
7984
7985sco3.2v5*)
7986 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007987 soname_spec='${libname}${release}${shared_ext}$major'
7988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007989 shlibpath_var=LD_LIBRARY_PATH
7990 ;;
7991
7992solaris*)
7993 version_type=linux
7994 need_lib_prefix=no
7995 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7997 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007998 shlibpath_var=LD_LIBRARY_PATH
7999 shlibpath_overrides_runpath=yes
8000 hardcode_into_libs=yes
8001 # ldd complains unless libraries are executable
8002 postinstall_cmds='chmod +x $lib'
8003 ;;
8004
8005sunos4*)
8006 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00008007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008008 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8009 shlibpath_var=LD_LIBRARY_PATH
8010 shlibpath_overrides_runpath=yes
8011 if test "$with_gnu_ld" = yes; then
8012 need_lib_prefix=no
8013 fi
8014 need_version=yes
8015 ;;
8016
8017sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8018 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008021 shlibpath_var=LD_LIBRARY_PATH
8022 case $host_vendor in
8023 sni)
8024 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008025 need_lib_prefix=no
8026 export_dynamic_flag_spec='${wl}-Blargedynsym'
8027 runpath_var=LD_RUN_PATH
8028 ;;
8029 siemens)
8030 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008031 ;;
8032 motorola)
8033 need_lib_prefix=no
8034 need_version=no
8035 shlibpath_overrides_runpath=no
8036 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8037 ;;
8038 esac
8039 ;;
8040
John Criswell7a73b802003-06-30 21:59:07 +00008041sysv4*MP*)
8042 if test -d /usr/nec ;then
8043 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008044 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8045 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008046 shlibpath_var=LD_LIBRARY_PATH
8047 fi
8048 ;;
8049
John Criswell47fdd832003-07-14 16:52:07 +00008050uts4*)
8051 version_type=linux
8052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8053 soname_spec='${libname}${release}${shared_ext}$major'
8054 shlibpath_var=LD_LIBRARY_PATH
8055 ;;
8056
John Criswell7a73b802003-06-30 21:59:07 +00008057*)
8058 dynamic_linker=no
8059 ;;
8060esac
8061echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8062echo "${ECHO_T}$dynamic_linker" >&6
8063test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008064
8065if test "x$enable_dlopen" != xyes; then
8066 enable_dlopen=unknown
8067 enable_dlopen_self=unknown
8068 enable_dlopen_self_static=unknown
8069else
8070 lt_cv_dlopen=no
8071 lt_cv_dlopen_libs=
8072
8073 case $host_os in
8074 beos*)
8075 lt_cv_dlopen="load_add_on"
8076 lt_cv_dlopen_libs=
8077 lt_cv_dlopen_self=yes
8078 ;;
8079
John Criswell47fdd832003-07-14 16:52:07 +00008080 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008081 lt_cv_dlopen="LoadLibrary"
8082 lt_cv_dlopen_libs=
8083 ;;
8084
John Criswell47fdd832003-07-14 16:52:07 +00008085 cygwin*)
8086 lt_cv_dlopen="dlopen"
8087 lt_cv_dlopen_libs=
8088 ;;
8089
8090 darwin*)
8091 # if libdl is installed we need to link against it
8092 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8093echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8094if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097 ac_check_lib_save_LIBS=$LIBS
8098LIBS="-ldl $LIBS"
8099cat >conftest.$ac_ext <<_ACEOF
8100#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008101/* confdefs.h. */
8102_ACEOF
8103cat confdefs.h >>conftest.$ac_ext
8104cat >>conftest.$ac_ext <<_ACEOF
8105/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008106
8107/* Override any gcc2 internal prototype to avoid an error. */
8108#ifdef __cplusplus
8109extern "C"
8110#endif
8111/* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8113char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008114int
8115main ()
8116{
8117dlopen ();
8118 ;
8119 return 0;
8120}
8121_ACEOF
8122rm -f conftest.$ac_objext conftest$ac_exeext
8123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124 (eval $ac_link) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -s conftest$ac_exeext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_cv_lib_dl_dlopen=yes
8135else
8136 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008137sed 's/^/| /' conftest.$ac_ext >&5
8138
John Criswell47fdd832003-07-14 16:52:07 +00008139ac_cv_lib_dl_dlopen=no
8140fi
8141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8142LIBS=$ac_check_lib_save_LIBS
8143fi
8144echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8145echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8146if test $ac_cv_lib_dl_dlopen = yes; then
8147 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8148else
8149
8150 lt_cv_dlopen="dyld"
8151 lt_cv_dlopen_libs=
8152 lt_cv_dlopen_self=yes
8153
8154fi
8155
8156 ;;
8157
John Criswell7a73b802003-06-30 21:59:07 +00008158 *)
8159 echo "$as_me:$LINENO: checking for shl_load" >&5
8160echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8161if test "${ac_cv_func_shl_load+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163else
8164 cat >conftest.$ac_ext <<_ACEOF
8165#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008166/* confdefs.h. */
8167_ACEOF
8168cat confdefs.h >>conftest.$ac_ext
8169cat >>conftest.$ac_ext <<_ACEOF
8170/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008171/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008172 which can conflict with char shl_load (); below.
8173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8174 <limits.h> exists even on freestanding compilers. */
8175#ifdef __STDC__
8176# include <limits.h>
8177#else
8178# include <assert.h>
8179#endif
John Criswell7a73b802003-06-30 21:59:07 +00008180/* Override any gcc2 internal prototype to avoid an error. */
8181#ifdef __cplusplus
8182extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008183{
John Criswell7a73b802003-06-30 21:59:07 +00008184#endif
8185/* We use char because int might match the return type of a gcc2
8186 builtin and then its argument prototype would still apply. */
8187char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008188/* The GNU C library defines this for functions which it implements
8189 to always fail with ENOSYS. Some functions are actually named
8190 something starting with __ and the normal name is an alias. */
8191#if defined (__stub_shl_load) || defined (__stub___shl_load)
8192choke me
8193#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008194char (*f) () = shl_load;
8195#endif
8196#ifdef __cplusplus
8197}
John Criswell7a73b802003-06-30 21:59:07 +00008198#endif
8199
John Criswell0c38eaf2003-09-10 15:17:25 +00008200int
8201main ()
8202{
8203return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008204 ;
8205 return 0;
8206}
8207_ACEOF
8208rm -f conftest.$ac_objext conftest$ac_exeext
8209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8210 (eval $ac_link) 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -s conftest$ac_exeext'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 ac_cv_func_shl_load=yes
8221else
8222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008223sed 's/^/| /' conftest.$ac_ext >&5
8224
John Criswell7a73b802003-06-30 21:59:07 +00008225ac_cv_func_shl_load=no
8226fi
8227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8228fi
8229echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8230echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8231if test $ac_cv_func_shl_load = yes; then
8232 lt_cv_dlopen="shl_load"
8233else
8234 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8235echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8236if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238else
8239 ac_check_lib_save_LIBS=$LIBS
8240LIBS="-ldld $LIBS"
8241cat >conftest.$ac_ext <<_ACEOF
8242#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008243/* confdefs.h. */
8244_ACEOF
8245cat confdefs.h >>conftest.$ac_ext
8246cat >>conftest.$ac_ext <<_ACEOF
8247/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008248
8249/* Override any gcc2 internal prototype to avoid an error. */
8250#ifdef __cplusplus
8251extern "C"
8252#endif
8253/* We use char because int might match the return type of a gcc2
8254 builtin and then its argument prototype would still apply. */
8255char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008256int
8257main ()
8258{
8259shl_load ();
8260 ;
8261 return 0;
8262}
8263_ACEOF
8264rm -f conftest.$ac_objext conftest$ac_exeext
8265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>&5
8267 ac_status=$?
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -s conftest$ac_exeext'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 (eval $ac_try) 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; }; then
8276 ac_cv_lib_dld_shl_load=yes
8277else
8278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008279sed 's/^/| /' conftest.$ac_ext >&5
8280
John Criswell7a73b802003-06-30 21:59:07 +00008281ac_cv_lib_dld_shl_load=no
8282fi
8283rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8284LIBS=$ac_check_lib_save_LIBS
8285fi
8286echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8287echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8288if test $ac_cv_lib_dld_shl_load = yes; then
8289 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8290else
8291 echo "$as_me:$LINENO: checking for dlopen" >&5
8292echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8293if test "${ac_cv_func_dlopen+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8295else
8296 cat >conftest.$ac_ext <<_ACEOF
8297#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008298/* confdefs.h. */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008303/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008304 which can conflict with char dlopen (); below.
8305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8306 <limits.h> exists even on freestanding compilers. */
8307#ifdef __STDC__
8308# include <limits.h>
8309#else
8310# include <assert.h>
8311#endif
John Criswell7a73b802003-06-30 21:59:07 +00008312/* Override any gcc2 internal prototype to avoid an error. */
8313#ifdef __cplusplus
8314extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008315{
John Criswell7a73b802003-06-30 21:59:07 +00008316#endif
8317/* We use char because int might match the return type of a gcc2
8318 builtin and then its argument prototype would still apply. */
8319char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008320/* The GNU C library defines this for functions which it implements
8321 to always fail with ENOSYS. Some functions are actually named
8322 something starting with __ and the normal name is an alias. */
8323#if defined (__stub_dlopen) || defined (__stub___dlopen)
8324choke me
8325#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008326char (*f) () = dlopen;
8327#endif
8328#ifdef __cplusplus
8329}
John Criswell7a73b802003-06-30 21:59:07 +00008330#endif
8331
John Criswell0c38eaf2003-09-10 15:17:25 +00008332int
8333main ()
8334{
8335return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008336 ;
8337 return 0;
8338}
8339_ACEOF
8340rm -f conftest.$ac_objext conftest$ac_exeext
8341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342 (eval $ac_link) 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -s conftest$ac_exeext'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 (eval $ac_try) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; }; then
8352 ac_cv_func_dlopen=yes
8353else
8354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008355sed 's/^/| /' conftest.$ac_ext >&5
8356
John Criswell7a73b802003-06-30 21:59:07 +00008357ac_cv_func_dlopen=no
8358fi
8359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8360fi
8361echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8362echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8363if test $ac_cv_func_dlopen = yes; then
8364 lt_cv_dlopen="dlopen"
8365else
8366 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8367echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8368if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370else
8371 ac_check_lib_save_LIBS=$LIBS
8372LIBS="-ldl $LIBS"
8373cat >conftest.$ac_ext <<_ACEOF
8374#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008375/* confdefs.h. */
8376_ACEOF
8377cat confdefs.h >>conftest.$ac_ext
8378cat >>conftest.$ac_ext <<_ACEOF
8379/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008380
8381/* Override any gcc2 internal prototype to avoid an error. */
8382#ifdef __cplusplus
8383extern "C"
8384#endif
8385/* We use char because int might match the return type of a gcc2
8386 builtin and then its argument prototype would still apply. */
8387char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008388int
8389main ()
8390{
8391dlopen ();
8392 ;
8393 return 0;
8394}
8395_ACEOF
8396rm -f conftest.$ac_objext conftest$ac_exeext
8397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8398 (eval $ac_link) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 (eval $ac_try) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_cv_lib_dl_dlopen=yes
8409else
8410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008411sed 's/^/| /' conftest.$ac_ext >&5
8412
John Criswell7a73b802003-06-30 21:59:07 +00008413ac_cv_lib_dl_dlopen=no
8414fi
8415rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8416LIBS=$ac_check_lib_save_LIBS
8417fi
8418echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8419echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8420if test $ac_cv_lib_dl_dlopen = yes; then
8421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8422else
8423 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8424echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8425if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427else
8428 ac_check_lib_save_LIBS=$LIBS
8429LIBS="-lsvld $LIBS"
8430cat >conftest.$ac_ext <<_ACEOF
8431#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008432/* confdefs.h. */
8433_ACEOF
8434cat confdefs.h >>conftest.$ac_ext
8435cat >>conftest.$ac_ext <<_ACEOF
8436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008437
8438/* Override any gcc2 internal prototype to avoid an error. */
8439#ifdef __cplusplus
8440extern "C"
8441#endif
8442/* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8444char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008445int
8446main ()
8447{
8448dlopen ();
8449 ;
8450 return 0;
8451}
8452_ACEOF
8453rm -f conftest.$ac_objext conftest$ac_exeext
8454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } &&
8459 { ac_try='test -s conftest$ac_exeext'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 (eval $ac_try) 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 ac_cv_lib_svld_dlopen=yes
8466else
8467 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008468sed 's/^/| /' conftest.$ac_ext >&5
8469
John Criswell7a73b802003-06-30 21:59:07 +00008470ac_cv_lib_svld_dlopen=no
8471fi
8472rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8473LIBS=$ac_check_lib_save_LIBS
8474fi
8475echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8476echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8477if test $ac_cv_lib_svld_dlopen = yes; then
8478 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8479else
8480 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8481echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8482if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8484else
8485 ac_check_lib_save_LIBS=$LIBS
8486LIBS="-ldld $LIBS"
8487cat >conftest.$ac_ext <<_ACEOF
8488#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008489/* confdefs.h. */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008494
8495/* Override any gcc2 internal prototype to avoid an error. */
8496#ifdef __cplusplus
8497extern "C"
8498#endif
8499/* We use char because int might match the return type of a gcc2
8500 builtin and then its argument prototype would still apply. */
8501char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008502int
8503main ()
8504{
8505dld_link ();
8506 ;
8507 return 0;
8508}
8509_ACEOF
8510rm -f conftest.$ac_objext conftest$ac_exeext
8511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8512 (eval $ac_link) 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } &&
8516 { ac_try='test -s conftest$ac_exeext'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 (eval $ac_try) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
8522 ac_cv_lib_dld_dld_link=yes
8523else
8524 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008525sed 's/^/| /' conftest.$ac_ext >&5
8526
John Criswell7a73b802003-06-30 21:59:07 +00008527ac_cv_lib_dld_dld_link=no
8528fi
8529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8530LIBS=$ac_check_lib_save_LIBS
8531fi
8532echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8533echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8534if test $ac_cv_lib_dld_dld_link = yes; then
8535 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8536fi
8537
8538
8539fi
8540
8541
8542fi
8543
8544
8545fi
8546
8547
8548fi
8549
8550
8551fi
8552
8553 ;;
8554 esac
8555
8556 if test "x$lt_cv_dlopen" != xno; then
8557 enable_dlopen=yes
8558 else
8559 enable_dlopen=no
8560 fi
8561
8562 case $lt_cv_dlopen in
8563 dlopen)
8564 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008565 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008566
8567 save_LDFLAGS="$LDFLAGS"
8568 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8569
8570 save_LIBS="$LIBS"
8571 LIBS="$lt_cv_dlopen_libs $LIBS"
8572
8573 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8574echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8575if test "${lt_cv_dlopen_self+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8577else
8578 if test "$cross_compiling" = yes; then :
8579 lt_cv_dlopen_self=cross
8580else
John Criswell47fdd832003-07-14 16:52:07 +00008581 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008582 lt_status=$lt_dlunknown
8583 cat > conftest.$ac_ext <<EOF
John Criswell12399a12003-09-30 15:55:44 +00008584#line 8584 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008585#include "confdefs.h"
8586
8587#if HAVE_DLFCN_H
8588#include <dlfcn.h>
8589#endif
8590
8591#include <stdio.h>
8592
8593#ifdef RTLD_GLOBAL
8594# define LT_DLGLOBAL RTLD_GLOBAL
8595#else
8596# ifdef DL_GLOBAL
8597# define LT_DLGLOBAL DL_GLOBAL
8598# else
8599# define LT_DLGLOBAL 0
8600# endif
8601#endif
8602
8603/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8604 find out it does not work in some platform. */
8605#ifndef LT_DLLAZY_OR_NOW
8606# ifdef RTLD_LAZY
8607# define LT_DLLAZY_OR_NOW RTLD_LAZY
8608# else
8609# ifdef DL_LAZY
8610# define LT_DLLAZY_OR_NOW DL_LAZY
8611# else
8612# ifdef RTLD_NOW
8613# define LT_DLLAZY_OR_NOW RTLD_NOW
8614# else
8615# ifdef DL_NOW
8616# define LT_DLLAZY_OR_NOW DL_NOW
8617# else
8618# define LT_DLLAZY_OR_NOW 0
8619# endif
8620# endif
8621# endif
8622# endif
8623#endif
8624
8625#ifdef __cplusplus
8626extern "C" void exit (int);
8627#endif
8628
8629void fnord() { int i=42;}
8630int main ()
8631{
8632 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8633 int status = $lt_dlunknown;
8634
8635 if (self)
8636 {
8637 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8638 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8639 /* dlclose (self); */
8640 }
8641
8642 exit (status);
8643}
8644EOF
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646 (eval $ac_link) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8650 (./conftest; exit; ) 2>/dev/null
8651 lt_status=$?
8652 case x$lt_status in
8653 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8654 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8655 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8656 esac
8657 else :
8658 # compilation failed
8659 lt_cv_dlopen_self=no
8660 fi
8661fi
8662rm -fr conftest*
8663
8664
8665fi
8666echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8667echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8668
8669 if test "x$lt_cv_dlopen_self" = xyes; then
8670 LDFLAGS="$LDFLAGS $link_static_flag"
8671 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8672echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8673if test "${lt_cv_dlopen_self_static+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8675else
8676 if test "$cross_compiling" = yes; then :
8677 lt_cv_dlopen_self_static=cross
8678else
John Criswell47fdd832003-07-14 16:52:07 +00008679 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008680 lt_status=$lt_dlunknown
8681 cat > conftest.$ac_ext <<EOF
John Criswell12399a12003-09-30 15:55:44 +00008682#line 8682 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008683#include "confdefs.h"
8684
8685#if HAVE_DLFCN_H
8686#include <dlfcn.h>
8687#endif
8688
8689#include <stdio.h>
8690
8691#ifdef RTLD_GLOBAL
8692# define LT_DLGLOBAL RTLD_GLOBAL
8693#else
8694# ifdef DL_GLOBAL
8695# define LT_DLGLOBAL DL_GLOBAL
8696# else
8697# define LT_DLGLOBAL 0
8698# endif
8699#endif
8700
8701/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8702 find out it does not work in some platform. */
8703#ifndef LT_DLLAZY_OR_NOW
8704# ifdef RTLD_LAZY
8705# define LT_DLLAZY_OR_NOW RTLD_LAZY
8706# else
8707# ifdef DL_LAZY
8708# define LT_DLLAZY_OR_NOW DL_LAZY
8709# else
8710# ifdef RTLD_NOW
8711# define LT_DLLAZY_OR_NOW RTLD_NOW
8712# else
8713# ifdef DL_NOW
8714# define LT_DLLAZY_OR_NOW DL_NOW
8715# else
8716# define LT_DLLAZY_OR_NOW 0
8717# endif
8718# endif
8719# endif
8720# endif
8721#endif
8722
8723#ifdef __cplusplus
8724extern "C" void exit (int);
8725#endif
8726
8727void fnord() { int i=42;}
8728int main ()
8729{
8730 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8731 int status = $lt_dlunknown;
8732
8733 if (self)
8734 {
8735 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8736 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8737 /* dlclose (self); */
8738 }
8739
8740 exit (status);
8741}
8742EOF
8743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744 (eval $ac_link) 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8748 (./conftest; exit; ) 2>/dev/null
8749 lt_status=$?
8750 case x$lt_status in
8751 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8752 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8753 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8754 esac
8755 else :
8756 # compilation failed
8757 lt_cv_dlopen_self_static=no
8758 fi
8759fi
8760rm -fr conftest*
8761
8762
8763fi
8764echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8765echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8766 fi
8767
8768 CPPFLAGS="$save_CPPFLAGS"
8769 LDFLAGS="$save_LDFLAGS"
8770 LIBS="$save_LIBS"
8771 ;;
8772 esac
8773
8774 case $lt_cv_dlopen_self in
8775 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8776 *) enable_dlopen_self=unknown ;;
8777 esac
8778
8779 case $lt_cv_dlopen_self_static in
8780 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8781 *) enable_dlopen_self_static=unknown ;;
8782 esac
8783fi
8784
8785
John Criswell47fdd832003-07-14 16:52:07 +00008786# Report which librarie types wil actually be built
8787echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8788echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8789echo "$as_me:$LINENO: result: $can_build_shared" >&5
8790echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008791
John Criswell47fdd832003-07-14 16:52:07 +00008792echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8793echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8794test "$can_build_shared" = "no" && enable_shared=no
8795
8796# On AIX, shared libraries and static libraries use the same namespace, and
8797# are all built from PIC.
8798case "$host_os" in
8799aix3*)
8800 test "$enable_shared" = yes && enable_static=no
8801 if test -n "$RANLIB"; then
8802 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8803 postinstall_cmds='$RANLIB $lib'
8804 fi
8805 ;;
8806
8807aix4*)
8808 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8809 test "$enable_shared" = yes && enable_static=no
8810 fi
8811 ;;
8812 darwin* | rhapsody*)
8813 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8814 archive_cmds_need_lc=no
8815 case "$host_os" in
8816 rhapsody* | darwin1.[012])
8817 allow_undefined_flag='-undefined suppress'
8818 ;;
8819 *) # Darwin 1.3 on
8820 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8821 ;;
8822 esac
8823 # FIXME: Relying on posixy $() will cause problems for
8824 # cross-compilation, but unfortunately the echo tests do not
8825 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8826 # `"' quotes if we put them in here... so don't!
8827 output_verbose_link_cmd='echo'
8828 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8829 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8830 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8831 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}'
8832 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}'
8833 hardcode_direct=no
8834 hardcode_automatic=yes
8835 hardcode_shlibpath_var=unsupported
8836 whole_archive_flag_spec='-all_load $convenience'
8837 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008838 fi
John Criswell7a73b802003-06-30 21:59:07 +00008839 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008840esac
8841echo "$as_me:$LINENO: result: $enable_shared" >&5
8842echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008843
John Criswell47fdd832003-07-14 16:52:07 +00008844echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8845echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8846# Make sure either enable_shared or enable_static is yes.
8847test "$enable_shared" = yes || enable_static=yes
8848echo "$as_me:$LINENO: result: $enable_static" >&5
8849echo "${ECHO_T}$enable_static" >&6
8850
8851# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008852# libtool distribution, otherwise you forgot to ship ltmain.sh
8853# with your package, and you will get complaints that there are
8854# no rules to generate ltmain.sh.
8855if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008856 # See if we are running on zsh, and set the options which allow our commands through
8857 # without removal of \ escapes.
8858 if test -n "${ZSH_VERSION+set}" ; then
8859 setopt NO_GLOB_SUBST
8860 fi
John Criswell7a73b802003-06-30 21:59:07 +00008861 # Now quote all the things that may contain metacharacters while being
8862 # careful not to overquote the AC_SUBSTed values. We take copies of the
8863 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008864 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8865 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8866 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8867 deplibs_check_method reload_flag reload_cmds need_locks \
8868 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8869 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008870 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008871 old_postinstall_cmds old_postuninstall_cmds \
8872 compiler \
8873 CC \
8874 LD \
8875 lt_prog_compiler_wl \
8876 lt_prog_compiler_pic \
8877 lt_prog_compiler_static \
8878 lt_prog_compiler_no_builtin_flag \
8879 export_dynamic_flag_spec \
8880 thread_safe_flag_spec \
8881 whole_archive_flag_spec \
8882 enable_shared_with_static_runtimes \
8883 old_archive_cmds \
8884 old_archive_from_new_cmds \
8885 predep_objects \
8886 postdep_objects \
8887 predeps \
8888 postdeps \
8889 compiler_lib_search_path \
8890 archive_cmds \
8891 archive_expsym_cmds \
8892 postinstall_cmds \
8893 postuninstall_cmds \
8894 old_archive_from_expsyms_cmds \
8895 allow_undefined_flag \
8896 no_undefined_flag \
8897 export_symbols_cmds \
8898 hardcode_libdir_flag_spec \
8899 hardcode_libdir_flag_spec_ld \
8900 hardcode_libdir_separator \
8901 hardcode_automatic \
8902 module_cmds \
8903 module_expsym_cmds \
8904 lt_cv_prog_compiler_c_o \
8905 exclude_expsyms \
8906 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008907
8908 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008909 old_archive_cmds | \
8910 old_archive_from_new_cmds | \
8911 archive_cmds | \
8912 archive_expsym_cmds | \
8913 module_cmds | \
8914 module_expsym_cmds | \
8915 old_archive_from_expsyms_cmds | \
8916 export_symbols_cmds | \
8917 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008918 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008919 old_postinstall_cmds | old_postuninstall_cmds | \
8920 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008921 # Double-quote double-evaled strings.
8922 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8923 ;;
8924 *)
8925 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8926 ;;
8927 esac
8928 done
8929
John Criswell47fdd832003-07-14 16:52:07 +00008930 case $lt_echo in
8931 *'\$0 --fallback-echo"')
8932 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8933 ;;
8934 esac
8935
8936cfgfile="${ofile}T"
8937 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8938 $rm -f "$cfgfile"
8939 { echo "$as_me:$LINENO: creating $ofile" >&5
8940echo "$as_me: creating $ofile" >&6;}
8941
8942 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008943#! $SHELL
8944
John Criswell47fdd832003-07-14 16:52:07 +00008945# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008946# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8947# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8948#
John Criswell47fdd832003-07-14 16:52:07 +00008949# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8950# Free Software Foundation, Inc.
8951#
8952# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008953# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8954#
8955# This program is free software; you can redistribute it and/or modify
8956# it under the terms of the GNU General Public License as published by
8957# the Free Software Foundation; either version 2 of the License, or
8958# (at your option) any later version.
8959#
8960# This program is distributed in the hope that it will be useful, but
8961# WITHOUT ANY WARRANTY; without even the implied warranty of
8962# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8963# General Public License for more details.
8964#
8965# You should have received a copy of the GNU General Public License
8966# along with this program; if not, write to the Free Software
8967# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8968#
8969# As a special exception to the GNU General Public License, if you
8970# distribute this file as part of a program that contains a
8971# configuration script generated by Autoconf, you may include it under
8972# the same distribution terms that you use for the rest of that program.
8973
John Criswell47fdd832003-07-14 16:52:07 +00008974# A sed program that does not truncate output.
8975SED=$lt_SED
8976
John Criswell7a73b802003-06-30 21:59:07 +00008977# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008978Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008979
8980# The HP-UX ksh and POSIX shell print the target directory to stdout
8981# if CDPATH is set.
8982if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8983
John Criswell47fdd832003-07-14 16:52:07 +00008984# The names of the tagged configurations supported by this script.
8985available_tags=
8986
John Criswell7a73b802003-06-30 21:59:07 +00008987# ### BEGIN LIBTOOL CONFIG
8988
8989# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8990
8991# Shell to use when invoking shell scripts.
8992SHELL=$lt_SHELL
8993
8994# Whether or not to build shared libraries.
8995build_libtool_libs=$enable_shared
8996
8997# Whether or not to build static libraries.
8998build_old_libs=$enable_static
8999
9000# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00009001build_libtool_need_lc=$archive_cmds_need_lc
9002
9003# Whether or not to disallow shared libs when runtime libs are static
9004allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00009005
9006# Whether or not to optimize for fast installation.
9007fast_install=$enable_fast_install
9008
9009# The host system.
9010host_alias=$host_alias
9011host=$host
9012
9013# An echo program that does not interpret backslashes.
9014echo=$lt_echo
9015
9016# The archiver.
9017AR=$lt_AR
9018AR_FLAGS=$lt_AR_FLAGS
9019
John Criswell47fdd832003-07-14 16:52:07 +00009020# A C compiler.
9021LTCC=$lt_LTCC
9022
9023# A language-specific compiler.
9024CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009025
9026# Is the compiler the GNU C compiler?
9027with_gcc=$GCC
9028
John Criswell47fdd832003-07-14 16:52:07 +00009029# An ERE matcher.
9030EGREP=$lt_EGREP
9031
John Criswell7a73b802003-06-30 21:59:07 +00009032# The linker used to build libraries.
9033LD=$lt_LD
9034
9035# Whether we need hard or soft links.
9036LN_S=$lt_LN_S
9037
9038# A BSD-compatible nm program.
9039NM=$lt_NM
9040
9041# A symbol stripping program
9042STRIP=$STRIP
9043
9044# Used to examine libraries when file_magic_cmd begins "file"
9045MAGIC_CMD=$MAGIC_CMD
9046
9047# Used on cygwin: DLL creation program.
9048DLLTOOL="$DLLTOOL"
9049
9050# Used on cygwin: object dumper.
9051OBJDUMP="$OBJDUMP"
9052
9053# Used on cygwin: assembler.
9054AS="$AS"
9055
9056# The name of the directory that contains temporary libtool files.
9057objdir=$objdir
9058
9059# How to create reloadable object files.
9060reload_flag=$lt_reload_flag
9061reload_cmds=$lt_reload_cmds
9062
9063# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009064wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009065
9066# Object file suffix (normally "o").
9067objext="$ac_objext"
9068
9069# Old archive suffix (normally "a").
9070libext="$libext"
9071
John Criswell47fdd832003-07-14 16:52:07 +00009072# Shared library suffix (normally ".so").
9073shrext='$shrext'
9074
John Criswell7a73b802003-06-30 21:59:07 +00009075# Executable file suffix (normally "").
9076exeext="$exeext"
9077
9078# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009079pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009080pic_mode=$pic_mode
9081
John Criswell47fdd832003-07-14 16:52:07 +00009082# What is the maximum length of a command?
9083max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009084
John Criswell47fdd832003-07-14 16:52:07 +00009085# Does compiler simultaneously support -c and -o options?
9086compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009087
9088# Must we lock files when doing compilation ?
9089need_locks=$lt_need_locks
9090
9091# Do we need the lib prefix for modules?
9092need_lib_prefix=$need_lib_prefix
9093
9094# Do we need a version for libraries?
9095need_version=$need_version
9096
9097# Whether dlopen is supported.
9098dlopen_support=$enable_dlopen
9099
9100# Whether dlopen of programs is supported.
9101dlopen_self=$enable_dlopen_self
9102
9103# Whether dlopen of statically linked programs is supported.
9104dlopen_self_static=$enable_dlopen_self_static
9105
9106# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009107link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009108
9109# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009110no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009111
9112# Compiler flag to allow reflexive dlopens.
9113export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9114
9115# Compiler flag to generate shared objects directly from archives.
9116whole_archive_flag_spec=$lt_whole_archive_flag_spec
9117
9118# Compiler flag to generate thread-safe objects.
9119thread_safe_flag_spec=$lt_thread_safe_flag_spec
9120
9121# Library versioning type.
9122version_type=$version_type
9123
9124# Format of library name prefix.
9125libname_spec=$lt_libname_spec
9126
9127# List of archive names. First name is the real one, the rest are links.
9128# The last name is the one that the linker finds with -lNAME.
9129library_names_spec=$lt_library_names_spec
9130
9131# The coded name of the library, if different from the real name.
9132soname_spec=$lt_soname_spec
9133
9134# Commands used to build and install an old-style archive.
9135RANLIB=$lt_RANLIB
9136old_archive_cmds=$lt_old_archive_cmds
9137old_postinstall_cmds=$lt_old_postinstall_cmds
9138old_postuninstall_cmds=$lt_old_postuninstall_cmds
9139
9140# Create an old-style archive from a shared archive.
9141old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9142
9143# Create a temporary old-style archive to link instead of a shared archive.
9144old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9145
9146# Commands used to build and install a shared archive.
9147archive_cmds=$lt_archive_cmds
9148archive_expsym_cmds=$lt_archive_expsym_cmds
9149postinstall_cmds=$lt_postinstall_cmds
9150postuninstall_cmds=$lt_postuninstall_cmds
9151
John Criswell47fdd832003-07-14 16:52:07 +00009152# Commands used to build a loadable module (assumed same as above if empty)
9153module_cmds=$lt_module_cmds
9154module_expsym_cmds=$lt_module_expsym_cmds
9155
John Criswell7a73b802003-06-30 21:59:07 +00009156# Commands to strip libraries.
9157old_striplib=$lt_old_striplib
9158striplib=$lt_striplib
9159
John Criswell47fdd832003-07-14 16:52:07 +00009160# Dependencies to place before the objects being linked to create a
9161# shared library.
9162predep_objects=$lt_predep_objects
9163
9164# Dependencies to place after the objects being linked to create a
9165# shared library.
9166postdep_objects=$lt_postdep_objects
9167
9168# Dependencies to place before the objects being linked to create a
9169# shared library.
9170predeps=$lt_predeps
9171
9172# Dependencies to place after the objects being linked to create a
9173# shared library.
9174postdeps=$lt_postdeps
9175
9176# The library search path used internally by the compiler when linking
9177# a shared library.
9178compiler_lib_search_path=$lt_compiler_lib_search_path
9179
John Criswell7a73b802003-06-30 21:59:07 +00009180# Method to check whether dependent libraries are shared objects.
9181deplibs_check_method=$lt_deplibs_check_method
9182
9183# Command to use when deplibs_check_method == file_magic.
9184file_magic_cmd=$lt_file_magic_cmd
9185
9186# Flag that allows shared libraries with undefined symbols to be built.
9187allow_undefined_flag=$lt_allow_undefined_flag
9188
9189# Flag that forces no undefined symbols.
9190no_undefined_flag=$lt_no_undefined_flag
9191
9192# Commands used to finish a libtool library installation in a directory.
9193finish_cmds=$lt_finish_cmds
9194
9195# Same as above, but a single script fragment to be evaled but not shown.
9196finish_eval=$lt_finish_eval
9197
9198# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009199global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009200
9201# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009202global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009203
9204# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009205global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009206
9207# This is the shared library runtime path variable.
9208runpath_var=$runpath_var
9209
9210# This is the shared library path variable.
9211shlibpath_var=$shlibpath_var
9212
9213# Is shlibpath searched before the hard-coded library search path?
9214shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9215
9216# How to hardcode a shared library path into an executable.
9217hardcode_action=$hardcode_action
9218
9219# Whether we should hardcode library paths into libraries.
9220hardcode_into_libs=$hardcode_into_libs
9221
9222# Flag to hardcode \$libdir into a binary during linking.
9223# This must work even if \$libdir does not exist.
9224hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9225
John Criswell47fdd832003-07-14 16:52:07 +00009226# If ld is used when linking, flag to hardcode \$libdir into
9227# a binary during linking. This must work even if \$libdir does
9228# not exist.
9229hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9230
John Criswell7a73b802003-06-30 21:59:07 +00009231# Whether we need a single -rpath flag with a separated argument.
9232hardcode_libdir_separator=$lt_hardcode_libdir_separator
9233
John Criswell47fdd832003-07-14 16:52:07 +00009234# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009235# resulting binary.
9236hardcode_direct=$hardcode_direct
9237
9238# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9239# resulting binary.
9240hardcode_minus_L=$hardcode_minus_L
9241
9242# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9243# the resulting binary.
9244hardcode_shlibpath_var=$hardcode_shlibpath_var
9245
John Criswell47fdd832003-07-14 16:52:07 +00009246# Set to yes if building a shared library automatically hardcodes DIR into the library
9247# and all subsequent libraries and executables linked against it.
9248hardcode_automatic=$hardcode_automatic
9249
John Criswell7a73b802003-06-30 21:59:07 +00009250# Variables whose values should be saved in libtool wrapper scripts and
9251# restored at relink time.
9252variables_saved_for_relink="$variables_saved_for_relink"
9253
9254# Whether libtool must link a program against all its dependency libraries.
9255link_all_deplibs=$link_all_deplibs
9256
9257# Compile-time system search path for libraries
9258sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9259
9260# Run-time system search path for libraries
9261sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9262
9263# Fix the shell variable \$srcfile for the compiler.
9264fix_srcfile_path="$fix_srcfile_path"
9265
9266# Set to yes if exported symbols are required.
9267always_export_symbols=$always_export_symbols
9268
9269# The commands to list exported symbols.
9270export_symbols_cmds=$lt_export_symbols_cmds
9271
9272# The commands to extract the exported symbol list from a shared archive.
9273extract_expsyms_cmds=$lt_extract_expsyms_cmds
9274
9275# Symbols that should not be listed in the preloaded symbols.
9276exclude_expsyms=$lt_exclude_expsyms
9277
9278# Symbols that must always be exported.
9279include_expsyms=$lt_include_expsyms
9280
9281# ### END LIBTOOL CONFIG
9282
9283__EOF__
9284
John Criswell47fdd832003-07-14 16:52:07 +00009285
John Criswell7a73b802003-06-30 21:59:07 +00009286 case $host_os in
9287 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009288 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009289
9290# AIX sometimes has problems with the GCC collect2 program. For some
9291# reason, if we set the COLLECT_NAMES environment variable, the problems
9292# vanish in a puff of smoke.
9293if test "X${COLLECT_NAMES+set}" != Xset; then
9294 COLLECT_NAMES=
9295 export COLLECT_NAMES
9296fi
9297EOF
9298 ;;
9299 esac
9300
John Criswell7a73b802003-06-30 21:59:07 +00009301 # We use sed instead of cat because bash on DJGPP gets confused if
9302 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9303 # text mode, it properly converts lines to CR/LF. This bash problem
9304 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009305 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009306
John Criswell47fdd832003-07-14 16:52:07 +00009307 mv -f "$cfgfile" "$ofile" || \
9308 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009309 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009310
9311else
9312 # If there is no Makefile yet, we rely on a make rule to execute
9313 # `config.status --recheck' to rerun these tests and create the
9314 # libtool script then.
9315 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009316fi
John Criswell7a73b802003-06-30 21:59:07 +00009317
9318
John Criswell47fdd832003-07-14 16:52:07 +00009319ac_ext=c
9320ac_cpp='$CPP $CPPFLAGS'
9321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9323ac_compiler_gnu=$ac_cv_c_compiler_gnu
9324
9325CC="$lt_save_CC"
9326
9327
9328# Check whether --with-tags or --without-tags was given.
9329if test "${with_tags+set}" = set; then
9330 withval="$with_tags"
9331 tagnames="$withval"
9332fi;
9333
9334if test -f "$ltmain" && test -n "$tagnames"; then
9335 if test ! -f "${ofile}"; then
9336 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9337echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9338 fi
9339
9340 if test -z "$LTCC"; then
9341 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9342 if test -z "$LTCC"; then
9343 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9344echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9345 else
9346 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9347echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9348 fi
9349 fi
9350
9351 # Extract list of available tagged configurations in $ofile.
9352 # Note that this assumes the entire list is on one line.
9353 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9354
9355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9356 for tagname in $tagnames; do
9357 IFS="$lt_save_ifs"
9358 # Check whether tagname contains only valid characters
9359 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9360 "") ;;
9361 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9362echo "$as_me: error: invalid tag name: $tagname" >&2;}
9363 { (exit 1); exit 1; }; }
9364 ;;
9365 esac
9366
9367 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9368 then
9369 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9370echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9371 { (exit 1); exit 1; }; }
9372 fi
9373
9374 # Update the list of available tags.
9375 if test -n "$tagname"; then
9376 echo appending configuration tag \"$tagname\" to $ofile
9377
9378 case $tagname in
9379 CXX)
9380 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9381 ac_ext=cc
9382ac_cpp='$CXXCPP $CPPFLAGS'
9383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9386
9387
9388
9389
9390archive_cmds_need_lc_CXX=no
9391allow_undefined_flag_CXX=
9392always_export_symbols_CXX=no
9393archive_expsym_cmds_CXX=
9394export_dynamic_flag_spec_CXX=
9395hardcode_direct_CXX=no
9396hardcode_libdir_flag_spec_CXX=
9397hardcode_libdir_flag_spec_ld_CXX=
9398hardcode_libdir_separator_CXX=
9399hardcode_minus_L_CXX=no
9400hardcode_automatic_CXX=no
9401module_cmds_CXX=
9402module_expsym_cmds_CXX=
9403link_all_deplibs_CXX=unknown
9404old_archive_cmds_CXX=$old_archive_cmds
9405no_undefined_flag_CXX=
9406whole_archive_flag_spec_CXX=
9407enable_shared_with_static_runtimes_CXX=no
9408
9409# Dependencies to place before and after the object being linked:
9410predep_objects_CXX=
9411postdep_objects_CXX=
9412predeps_CXX=
9413postdeps_CXX=
9414compiler_lib_search_path_CXX=
9415
9416# Source file extension for C++ test sources.
9417ac_ext=cc
9418
9419# Object file extension for compiled C++ test sources.
9420objext=o
9421objext_CXX=$objext
9422
9423# Code to be used in simple compile tests
9424lt_simple_compile_test_code="int some_variable = 0;\n"
9425
9426# Code to be used in simple link tests
9427lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9428
9429# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9430
9431# If no C compiler was specified, use CC.
9432LTCC=${LTCC-"$CC"}
9433
9434# Allow CC to be a program name with arguments.
9435compiler=$CC
9436
9437
9438# Allow CC to be a program name with arguments.
9439lt_save_CC=$CC
9440lt_save_LD=$LD
9441lt_save_GCC=$GCC
9442GCC=$GXX
9443lt_save_with_gnu_ld=$with_gnu_ld
9444lt_save_path_LD=$lt_cv_path_LD
9445if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9446 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9447else
9448 unset lt_cv_prog_gnu_ld
9449fi
9450if test -n "${lt_cv_path_LDCXX+set}"; then
9451 lt_cv_path_LD=$lt_cv_path_LDCXX
9452else
9453 unset lt_cv_path_LD
9454fi
9455test -z "${LDCXX+set}" || LD=$LDCXX
9456CC=${CXX-"c++"}
9457compiler=$CC
9458compiler_CXX=$CC
9459cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9460
9461# We don't want -fno-exception wen compiling C++ code, so set the
9462# no_builtin_flag separately
9463if test "$GXX" = yes; then
9464 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9465else
9466 lt_prog_compiler_no_builtin_flag_CXX=
9467fi
9468
9469if test "$GXX" = yes; then
9470 # Set up default GNU C++ configuration
9471
9472
9473# Check whether --with-gnu-ld or --without-gnu-ld was given.
9474if test "${with_gnu_ld+set}" = set; then
9475 withval="$with_gnu_ld"
9476 test "$withval" = no || with_gnu_ld=yes
9477else
9478 with_gnu_ld=no
9479fi;
9480ac_prog=ld
9481if test "$GCC" = yes; then
9482 # Check if gcc -print-prog-name=ld gives a path.
9483 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9484echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9485 case $host in
9486 *-*-mingw*)
9487 # gcc leaves a trailing carriage return which upsets mingw
9488 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9489 *)
9490 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9491 esac
9492 case $ac_prog in
9493 # Accept absolute paths.
9494 [\\/]* | ?:[\\/]*)
9495 re_direlt='/[^/][^/]*/\.\./'
9496 # Canonicalize the path of ld
9497 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9498 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9499 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9500 done
9501 test -z "$LD" && LD="$ac_prog"
9502 ;;
9503 "")
9504 # If it fails, then pretend we aren't using GCC.
9505 ac_prog=ld
9506 ;;
9507 *)
9508 # If it is relative, then search for the first ld in PATH.
9509 with_gnu_ld=unknown
9510 ;;
9511 esac
9512elif test "$with_gnu_ld" = yes; then
9513 echo "$as_me:$LINENO: checking for GNU ld" >&5
9514echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9515else
9516 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9517echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9518fi
9519if test "${lt_cv_path_LD+set}" = set; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9521else
9522 if test -z "$LD"; then
9523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9524 for ac_dir in $PATH; do
9525 IFS="$lt_save_ifs"
9526 test -z "$ac_dir" && ac_dir=.
9527 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9528 lt_cv_path_LD="$ac_dir/$ac_prog"
9529 # Check to see if the program is GNU ld. I'd rather use --version,
9530 # but apparently some GNU ld's only accept -v.
9531 # Break only if it was the GNU/non-GNU ld that we prefer.
9532 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9533 *GNU* | *'with BFD'*)
9534 test "$with_gnu_ld" != no && break
9535 ;;
9536 *)
9537 test "$with_gnu_ld" != yes && break
9538 ;;
9539 esac
9540 fi
9541 done
9542 IFS="$lt_save_ifs"
9543else
9544 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9545fi
9546fi
9547
9548LD="$lt_cv_path_LD"
9549if test -n "$LD"; then
9550 echo "$as_me:$LINENO: result: $LD" >&5
9551echo "${ECHO_T}$LD" >&6
9552else
9553 echo "$as_me:$LINENO: result: no" >&5
9554echo "${ECHO_T}no" >&6
9555fi
9556test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9557echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9558 { (exit 1); exit 1; }; }
9559echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9560echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9561if test "${lt_cv_prog_gnu_ld+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563else
9564 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9565case `"$LD" -v 2>&1 </dev/null` in
9566*GNU* | *'with BFD'*)
9567 lt_cv_prog_gnu_ld=yes
9568 ;;
9569*)
9570 lt_cv_prog_gnu_ld=no
9571 ;;
9572esac
9573fi
9574echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9575echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9576with_gnu_ld=$lt_cv_prog_gnu_ld
9577
9578
9579
9580 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9581 # archiving commands below assume that GNU ld is being used.
9582 if test "$with_gnu_ld" = yes; then
9583 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584 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'
9585
9586 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9587 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9588
9589 # If archive_cmds runs LD, not CC, wlarc should be empty
9590 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9591 # investigate it a little bit more. (MM)
9592 wlarc='${wl}'
9593
9594 # ancient GNU ld didn't support --whole-archive et. al.
9595 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9596 grep 'no-whole-archive' > /dev/null; then
9597 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9598 else
9599 whole_archive_flag_spec_CXX=
9600 fi
9601 else
9602 with_gnu_ld=no
9603 wlarc=
9604
9605 # A generic and very simple default shared library creation
9606 # command for GNU C++ for the case where it uses the native
9607 # linker, instead of GNU ld. If possible, this setting should
9608 # overridden to take advantage of the native linker features on
9609 # the platform it is being used on.
9610 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9611 fi
9612
9613 # Commands to make compiler produce verbose output that lists
9614 # what "hidden" libraries, object files and flags are used when
9615 # linking a shared library.
9616 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9617
9618else
9619 GXX=no
9620 with_gnu_ld=no
9621 wlarc=
9622fi
9623
9624# PORTME: fill in a description of your system's C++ link characteristics
9625echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9626echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9627ld_shlibs_CXX=yes
9628case $host_os in
9629 aix3*)
9630 # FIXME: insert proper C++ library support
9631 ld_shlibs_CXX=no
9632 ;;
9633 aix4* | aix5*)
9634 if test "$host_cpu" = ia64; then
9635 # On IA64, the linker does run time linking by default, so we don't
9636 # have to do anything special.
9637 aix_use_runtimelinking=no
9638 exp_sym_flag='-Bexport'
9639 no_entry_flag=""
9640 else
9641 aix_use_runtimelinking=no
9642
9643 # Test if we are trying to use run time linking or normal
9644 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9645 # need to do runtime linking.
9646 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9647 for ld_flag in $LDFLAGS; do
9648 case $ld_flag in
9649 *-brtl*)
9650 aix_use_runtimelinking=yes
9651 break
9652 ;;
9653 esac
9654 done
9655 esac
9656
9657 exp_sym_flag='-bexport'
9658 no_entry_flag='-bnoentry'
9659 fi
9660
9661 # When large executables or shared objects are built, AIX ld can
9662 # have problems creating the table of contents. If linking a library
9663 # or program results in "error TOC overflow" add -mminimal-toc to
9664 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9665 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9666
9667 archive_cmds_CXX=''
9668 hardcode_direct_CXX=yes
9669 hardcode_libdir_separator_CXX=':'
9670 link_all_deplibs_CXX=yes
9671
9672 if test "$GXX" = yes; then
9673 case $host_os in aix4.012|aix4.012.*)
9674 # We only want to do this on AIX 4.2 and lower, the check
9675 # below for broken collect2 doesn't work under 4.3+
9676 collect2name=`${CC} -print-prog-name=collect2`
9677 if test -f "$collect2name" && \
9678 strings "$collect2name" | grep resolve_lib_name >/dev/null
9679 then
9680 # We have reworked collect2
9681 hardcode_direct_CXX=yes
9682 else
9683 # We have old collect2
9684 hardcode_direct_CXX=unsupported
9685 # It fails to find uninstalled libraries when the uninstalled
9686 # path is not listed in the libpath. Setting hardcode_minus_L
9687 # to unsupported forces relinking
9688 hardcode_minus_L_CXX=yes
9689 hardcode_libdir_flag_spec_CXX='-L$libdir'
9690 hardcode_libdir_separator_CXX=
9691 fi
9692 esac
9693 shared_flag='-shared'
9694 else
9695 # not using gcc
9696 if test "$host_cpu" = ia64; then
9697 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9698 # chokes on -Wl,-G. The following line is correct:
9699 shared_flag='-G'
9700 else
9701 if test "$aix_use_runtimelinking" = yes; then
9702 shared_flag='${wl}-G'
9703 else
9704 shared_flag='${wl}-bM:SRE'
9705 fi
9706 fi
9707 fi
9708
9709 # It seems that -bexpall does not export symbols beginning with
9710 # underscore (_), so it is better to generate a list of symbols to export.
9711 always_export_symbols_CXX=yes
9712 if test "$aix_use_runtimelinking" = yes; then
9713 # Warning - without using the other runtime loading flags (-brtl),
9714 # -berok will link without error, but may produce a broken library.
9715 allow_undefined_flag_CXX='-berok'
9716 # Determine the default libpath from the value encoded in an empty executable.
9717 cat >conftest.$ac_ext <<_ACEOF
9718#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009719/* confdefs.h. */
9720_ACEOF
9721cat confdefs.h >>conftest.$ac_ext
9722cat >>conftest.$ac_ext <<_ACEOF
9723/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009724
John Criswell47fdd832003-07-14 16:52:07 +00009725int
9726main ()
9727{
9728
9729 ;
9730 return 0;
9731}
9732_ACEOF
9733rm -f conftest.$ac_objext conftest$ac_exeext
9734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -s conftest$ac_exeext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745
9746aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9747}'`
9748# Check for a 64-bit object if we didn't find anything.
9749if 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; }
9750}'`; fi
9751else
9752 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009753sed 's/^/| /' conftest.$ac_ext >&5
9754
John Criswell47fdd832003-07-14 16:52:07 +00009755fi
9756rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9757if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9758
9759 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9760
9761 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"
9762 else
9763 if test "$host_cpu" = ia64; then
9764 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9765 allow_undefined_flag_CXX="-z nodefs"
9766 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"
9767 else
9768 # Determine the default libpath from the value encoded in an empty executable.
9769 cat >conftest.$ac_ext <<_ACEOF
9770#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009771/* confdefs.h. */
9772_ACEOF
9773cat confdefs.h >>conftest.$ac_ext
9774cat >>conftest.$ac_ext <<_ACEOF
9775/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009776
John Criswell47fdd832003-07-14 16:52:07 +00009777int
9778main ()
9779{
9780
9781 ;
9782 return 0;
9783}
9784_ACEOF
9785rm -f conftest.$ac_objext conftest$ac_exeext
9786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787 (eval $ac_link) 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
9791 { ac_try='test -s conftest$ac_exeext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 (eval $ac_try) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9797
9798aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9799}'`
9800# Check for a 64-bit object if we didn't find anything.
9801if 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; }
9802}'`; fi
9803else
9804 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009805sed 's/^/| /' conftest.$ac_ext >&5
9806
John Criswell47fdd832003-07-14 16:52:07 +00009807fi
9808rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9809if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9810
9811 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9812 # Warning - without using the other run time loading flags,
9813 # -berok will link without error, but may produce a broken library.
9814 no_undefined_flag_CXX=' ${wl}-bernotok'
9815 allow_undefined_flag_CXX=' ${wl}-berok'
9816 # -bexpall does not export symbols beginning with underscore (_)
9817 always_export_symbols_CXX=yes
9818 # Exported symbols can be pulled into shared objects from archives
9819 whole_archive_flag_spec_CXX=' '
9820 archive_cmds_need_lc_CXX=yes
9821 # This is similar to how AIX traditionally builds it's shared libraries.
9822 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'
9823 fi
9824 fi
9825 ;;
9826 chorus*)
9827 case $cc_basename in
9828 *)
9829 # FIXME: insert proper C++ library support
9830 ld_shlibs_CXX=no
9831 ;;
9832 esac
9833 ;;
9834
9835 cygwin* | mingw* | pw32*)
9836 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9837 # as there is no search path for DLLs.
9838 hardcode_libdir_flag_spec_CXX='-L$libdir'
9839 allow_undefined_flag_CXX=unsupported
9840 always_export_symbols_CXX=no
9841 enable_shared_with_static_runtimes_CXX=yes
9842
9843 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9844 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'
9845 # If the export-symbols file already is a .def file (1st line
9846 # is EXPORTS), use it as is; otherwise, prepend...
9847 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9848 cp $export_symbols $output_objdir/$soname.def;
9849 else
9850 echo EXPORTS > $output_objdir/$soname.def;
9851 cat $export_symbols >> $output_objdir/$soname.def;
9852 fi~
9853 $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'
9854 else
9855 ld_shlibs_CXX=no
9856 fi
9857 ;;
9858
9859 darwin* | rhapsody*)
9860 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9861 archive_cmds_need_lc_CXX=no
9862 case "$host_os" in
9863 rhapsody* | darwin1.[012])
9864 allow_undefined_flag_CXX='-undefined suppress'
9865 ;;
9866 *) # Darwin 1.3 on
9867 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9868 ;;
9869 esac
9870 lt_int_apple_cc_single_mod=no
9871 output_verbose_link_cmd='echo'
9872 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9873 lt_int_apple_cc_single_mod=yes
9874 fi
9875 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9876 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9877 else
9878 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'
9879 fi
9880 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9881
9882 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9883 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9884 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}'
9885 else
9886 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}'
9887 fi
9888 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}'
9889 hardcode_direct_CXX=no
9890 hardcode_automatic_CXX=yes
9891 hardcode_shlibpath_var_CXX=unsupported
9892 whole_archive_flag_spec_CXX='-all_load $convenience'
9893 link_all_deplibs_CXX=yes
9894 fi
9895 ;;
9896
9897 dgux*)
9898 case $cc_basename in
9899 ec++)
9900 # FIXME: insert proper C++ library support
9901 ld_shlibs_CXX=no
9902 ;;
9903 ghcx)
9904 # Green Hills C++ Compiler
9905 # FIXME: insert proper C++ library support
9906 ld_shlibs_CXX=no
9907 ;;
9908 *)
9909 # FIXME: insert proper C++ library support
9910 ld_shlibs_CXX=no
9911 ;;
9912 esac
9913 ;;
9914 freebsd12*)
9915 # C++ shared libraries reported to be fairly broken before switch to ELF
9916 ld_shlibs_CXX=no
9917 ;;
9918 freebsd-elf*)
9919 archive_cmds_need_lc_CXX=no
9920 ;;
9921 freebsd*)
9922 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9923 # conventions
9924 ld_shlibs_CXX=yes
9925 ;;
9926 gnu*)
9927 ;;
9928 hpux9*)
9929 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9930 hardcode_libdir_separator_CXX=:
9931 export_dynamic_flag_spec_CXX='${wl}-E'
9932 hardcode_direct_CXX=yes
9933 hardcode_minus_L_CXX=yes # Not in the search PATH,
9934 # but as the default
9935 # location of the library.
9936
9937 case $cc_basename in
9938 CC)
9939 # FIXME: insert proper C++ library support
9940 ld_shlibs_CXX=no
9941 ;;
9942 aCC)
9943 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'
9944 # Commands to make compiler produce verbose output that lists
9945 # what "hidden" libraries, object files and flags are used when
9946 # linking a shared library.
9947 #
9948 # There doesn't appear to be a way to prevent this compiler from
9949 # explicitly linking system object files so we need to strip them
9950 # from the output so that they don't get included in the library
9951 # dependencies.
9952 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'
9953 ;;
9954 *)
9955 if test "$GXX" = yes; then
9956 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'
9957 else
9958 # FIXME: insert proper C++ library support
9959 ld_shlibs_CXX=no
9960 fi
9961 ;;
9962 esac
9963 ;;
9964 hpux10*|hpux11*)
9965 if test $with_gnu_ld = no; then
9966 case "$host_cpu" in
9967 hppa*64*)
9968 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9969 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9970 hardcode_libdir_separator_CXX=:
9971 ;;
9972 ia64*)
9973 hardcode_libdir_flag_spec_CXX='-L$libdir'
9974 ;;
9975 *)
9976 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9977 hardcode_libdir_separator_CXX=:
9978 export_dynamic_flag_spec_CXX='${wl}-E'
9979 ;;
9980 esac
9981 fi
9982 case "$host_cpu" in
9983 hppa*64*)
9984 hardcode_direct_CXX=no
9985 hardcode_shlibpath_var_CXX=no
9986 ;;
9987 ia64*)
9988 hardcode_direct_CXX=no
9989 hardcode_shlibpath_var_CXX=no
9990 hardcode_minus_L_CXX=yes # Not in the search PATH,
9991 # but as the default
9992 # location of the library.
9993 ;;
9994 *)
9995 hardcode_direct_CXX=yes
9996 hardcode_minus_L_CXX=yes # Not in the search PATH,
9997 # but as the default
9998 # location of the library.
9999 ;;
10000 esac
10001
10002 case $cc_basename in
10003 CC)
10004 # FIXME: insert proper C++ library support
10005 ld_shlibs_CXX=no
10006 ;;
10007 aCC)
10008 case "$host_cpu" in
10009 hppa*64*|ia64*)
10010 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10011 ;;
10012 *)
10013 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10014 ;;
10015 esac
10016 # Commands to make compiler produce verbose output that lists
10017 # what "hidden" libraries, object files and flags are used when
10018 # linking a shared library.
10019 #
10020 # There doesn't appear to be a way to prevent this compiler from
10021 # explicitly linking system object files so we need to strip them
10022 # from the output so that they don't get included in the library
10023 # dependencies.
10024 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'
10025 ;;
10026 *)
10027 if test "$GXX" = yes; then
10028 if test $with_gnu_ld = no; then
10029 case "$host_cpu" in
10030 ia64*|hppa*64*)
10031 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10032 ;;
10033 *)
10034 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'
10035 ;;
10036 esac
10037 fi
10038 else
10039 # FIXME: insert proper C++ library support
10040 ld_shlibs_CXX=no
10041 fi
10042 ;;
10043 esac
10044 ;;
10045 irix5* | irix6*)
10046 case $cc_basename in
10047 CC)
10048 # SGI C++
10049 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'
10050
10051 # Archives containing C++ object files must be created using
10052 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10053 # necessary to make sure instantiated templates are included
10054 # in the archive.
10055 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10056 ;;
10057 *)
10058 if test "$GXX" = yes; then
10059 if test "$with_gnu_ld" = no; then
10060 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'
10061 else
10062 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'
10063 fi
10064 fi
10065 link_all_deplibs_CXX=yes
10066 ;;
10067 esac
10068 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10069 hardcode_libdir_separator_CXX=:
10070 ;;
10071 linux*)
10072 case $cc_basename in
10073 KCC)
10074 # Kuck and Associates, Inc. (KAI) C++ Compiler
10075
10076 # KCC will only create a shared library if the output file
10077 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10078 # to its proper name (with version) after linking.
10079 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'
10080 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'
10081 # Commands to make compiler produce verbose output that lists
10082 # what "hidden" libraries, object files and flags are used when
10083 # linking a shared library.
10084 #
10085 # There doesn't appear to be a way to prevent this compiler from
10086 # explicitly linking system object files so we need to strip them
10087 # from the output so that they don't get included in the library
10088 # dependencies.
10089 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'
10090
10091 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10092 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10093
10094 # Archives containing C++ object files must be created using
10095 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10096 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10097 ;;
10098 icpc)
10099 # Intel C++
10100 with_gnu_ld=yes
10101 archive_cmds_need_lc_CXX=no
10102 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10103 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'
10104 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10105 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10106 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10107 ;;
10108 cxx)
10109 # Compaq C++
10110 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10111 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'
10112
10113 runpath_var=LD_RUN_PATH
10114 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10115 hardcode_libdir_separator_CXX=:
10116
10117 # Commands to make compiler produce verbose output that lists
10118 # what "hidden" libraries, object files and flags are used when
10119 # linking a shared library.
10120 #
10121 # There doesn't appear to be a way to prevent this compiler from
10122 # explicitly linking system object files so we need to strip them
10123 # from the output so that they don't get included in the library
10124 # dependencies.
10125 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'
10126 ;;
10127 esac
10128 ;;
10129 lynxos*)
10130 # FIXME: insert proper C++ library support
10131 ld_shlibs_CXX=no
10132 ;;
10133 m88k*)
10134 # FIXME: insert proper C++ library support
10135 ld_shlibs_CXX=no
10136 ;;
10137 mvs*)
10138 case $cc_basename in
10139 cxx)
10140 # FIXME: insert proper C++ library support
10141 ld_shlibs_CXX=no
10142 ;;
10143 *)
10144 # FIXME: insert proper C++ library support
10145 ld_shlibs_CXX=no
10146 ;;
10147 esac
10148 ;;
10149 netbsd*)
10150 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10151 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10152 wlarc=
10153 hardcode_libdir_flag_spec_CXX='-R$libdir'
10154 hardcode_direct_CXX=yes
10155 hardcode_shlibpath_var_CXX=no
10156 fi
10157 # Workaround some broken pre-1.5 toolchains
10158 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10159 ;;
10160 osf3*)
10161 case $cc_basename in
10162 KCC)
10163 # Kuck and Associates, Inc. (KAI) C++ Compiler
10164
10165 # KCC will only create a shared library if the output file
10166 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10167 # to its proper name (with version) after linking.
10168 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'
10169
10170 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10171 hardcode_libdir_separator_CXX=:
10172
10173 # Archives containing C++ object files must be created using
10174 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10175 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10176
10177 ;;
10178 RCC)
10179 # Rational C++ 2.4.1
10180 # FIXME: insert proper C++ library support
10181 ld_shlibs_CXX=no
10182 ;;
10183 cxx)
10184 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10185 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'
10186
10187 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10188 hardcode_libdir_separator_CXX=:
10189
10190 # Commands to make compiler produce verbose output that lists
10191 # what "hidden" libraries, object files and flags are used when
10192 # linking a shared library.
10193 #
10194 # There doesn't appear to be a way to prevent this compiler from
10195 # explicitly linking system object files so we need to strip them
10196 # from the output so that they don't get included in the library
10197 # dependencies.
10198 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'
10199 ;;
10200 *)
10201 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10202 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10203 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'
10204
10205 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10206 hardcode_libdir_separator_CXX=:
10207
10208 # Commands to make compiler produce verbose output that lists
10209 # what "hidden" libraries, object files and flags are used when
10210 # linking a shared library.
10211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10212
10213 else
10214 # FIXME: insert proper C++ library support
10215 ld_shlibs_CXX=no
10216 fi
10217 ;;
10218 esac
10219 ;;
10220 osf4* | osf5*)
10221 case $cc_basename in
10222 KCC)
10223 # Kuck and Associates, Inc. (KAI) C++ Compiler
10224
10225 # KCC will only create a shared library if the output file
10226 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10227 # to its proper name (with version) after linking.
10228 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'
10229
10230 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10231 hardcode_libdir_separator_CXX=:
10232
10233 # Archives containing C++ object files must be created using
10234 # the KAI C++ compiler.
10235 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10236 ;;
10237 RCC)
10238 # Rational C++ 2.4.1
10239 # FIXME: insert proper C++ library support
10240 ld_shlibs_CXX=no
10241 ;;
10242 cxx)
10243 allow_undefined_flag_CXX=' -expect_unresolved \*'
10244 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'
10245 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10246 echo "-hidden">> $lib.exp~
10247 $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~
10248 $rm $lib.exp'
10249
10250 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10251 hardcode_libdir_separator_CXX=:
10252
10253 # Commands to make compiler produce verbose output that lists
10254 # what "hidden" libraries, object files and flags are used when
10255 # linking a shared library.
10256 #
10257 # There doesn't appear to be a way to prevent this compiler from
10258 # explicitly linking system object files so we need to strip them
10259 # from the output so that they don't get included in the library
10260 # dependencies.
10261 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'
10262 ;;
10263 *)
10264 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10265 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10266 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'
10267
10268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10269 hardcode_libdir_separator_CXX=:
10270
10271 # Commands to make compiler produce verbose output that lists
10272 # what "hidden" libraries, object files and flags are used when
10273 # linking a shared library.
10274 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10275
10276 else
10277 # FIXME: insert proper C++ library support
10278 ld_shlibs_CXX=no
10279 fi
10280 ;;
10281 esac
10282 ;;
10283 psos*)
10284 # FIXME: insert proper C++ library support
10285 ld_shlibs_CXX=no
10286 ;;
10287 sco*)
10288 archive_cmds_need_lc_CXX=no
10289 case $cc_basename in
10290 CC)
10291 # FIXME: insert proper C++ library support
10292 ld_shlibs_CXX=no
10293 ;;
10294 *)
10295 # FIXME: insert proper C++ library support
10296 ld_shlibs_CXX=no
10297 ;;
10298 esac
10299 ;;
10300 sunos4*)
10301 case $cc_basename in
10302 CC)
10303 # Sun C++ 4.x
10304 # FIXME: insert proper C++ library support
10305 ld_shlibs_CXX=no
10306 ;;
10307 lcc)
10308 # Lucid
10309 # FIXME: insert proper C++ library support
10310 ld_shlibs_CXX=no
10311 ;;
10312 *)
10313 # FIXME: insert proper C++ library support
10314 ld_shlibs_CXX=no
10315 ;;
10316 esac
10317 ;;
10318 solaris*)
10319 case $cc_basename in
10320 CC)
10321 # Sun C++ 4.2, 5.x and Centerline C++
10322 no_undefined_flag_CXX=' -zdefs'
10323 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10324 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10325 $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'
10326
10327 hardcode_libdir_flag_spec_CXX='-R$libdir'
10328 hardcode_shlibpath_var_CXX=no
10329 case $host_os in
10330 solaris2.0-5 | solaris2.0-5.*) ;;
10331 *)
10332 # The C++ compiler is used as linker so we must use $wl
10333 # flag to pass the commands to the underlying system
10334 # linker.
10335 # Supported since Solaris 2.6 (maybe 2.5.1?)
10336 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10337 ;;
10338 esac
10339 link_all_deplibs_CXX=yes
10340
10341 # Commands to make compiler produce verbose output that lists
10342 # what "hidden" libraries, object files and flags are used when
10343 # linking a shared library.
10344 #
10345 # There doesn't appear to be a way to prevent this compiler from
10346 # explicitly linking system object files so we need to strip them
10347 # from the output so that they don't get included in the library
10348 # dependencies.
10349 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'
10350
10351 # Archives containing C++ object files must be created using
10352 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10353 # necessary to make sure instantiated templates are included
10354 # in the archive.
10355 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10356 ;;
10357 gcx)
10358 # Green Hills C++ Compiler
10359 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10360
10361 # The C++ compiler must be used to create the archive.
10362 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10363 ;;
10364 *)
10365 # GNU C++ compiler with Solaris linker
10366 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10367 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10368 if $CC --version | grep -v '^2\.7' > /dev/null; then
10369 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10370 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10371 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10372
10373 # Commands to make compiler produce verbose output that lists
10374 # what "hidden" libraries, object files and flags are used when
10375 # linking a shared library.
10376 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10377 else
10378 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10379 # platform.
10380 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10381 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10382 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10383
10384 # Commands to make compiler produce verbose output that lists
10385 # what "hidden" libraries, object files and flags are used when
10386 # linking a shared library.
10387 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10388 fi
10389
10390 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10391 fi
10392 ;;
10393 esac
10394 ;;
10395 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10396 archive_cmds_need_lc_CXX=no
10397 ;;
10398 tandem*)
10399 case $cc_basename in
10400 NCC)
10401 # NonStop-UX NCC 3.20
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 ;;
10409 esac
10410 ;;
10411 vxworks*)
10412 # FIXME: insert proper C++ library support
10413 ld_shlibs_CXX=no
10414 ;;
10415 *)
10416 # FIXME: insert proper C++ library support
10417 ld_shlibs_CXX=no
10418 ;;
10419esac
10420echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10421echo "${ECHO_T}$ld_shlibs_CXX" >&6
10422test "$ld_shlibs_CXX" = no && can_build_shared=no
10423
10424GCC_CXX="$GXX"
10425LD_CXX="$LD"
10426
10427## CAVEAT EMPTOR:
10428## There is no encapsulation within the following macros, do not change
10429## the running order or otherwise move them around unless you know exactly
10430## what you are doing...
10431
10432cat > conftest.$ac_ext <<EOF
10433class Foo
10434{
10435public:
10436 Foo (void) { a = 0; }
10437private:
10438 int a;
10439};
10440EOF
10441
10442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10443 (eval $ac_compile) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; then
10447 # Parse the compiler output and extract the necessary
10448 # objects, libraries and library flags.
10449
10450 # Sentinel used to keep track of whether or not we are before
10451 # the conftest object file.
10452 pre_test_object_deps_done=no
10453
10454 # The `*' in the case matches for architectures that use `case' in
10455 # $output_verbose_cmd can trigger glob expansion during the loop
10456 # eval without this substitution.
10457 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10458
10459 for p in `eval $output_verbose_link_cmd`; do
10460 case $p in
10461
10462 -L* | -R* | -l*)
10463 # Some compilers place space between "-{L,R}" and the path.
10464 # Remove the space.
10465 if test $p = "-L" \
10466 || test $p = "-R"; then
10467 prev=$p
10468 continue
10469 else
10470 prev=
10471 fi
10472
10473 if test "$pre_test_object_deps_done" = no; then
10474 case $p in
10475 -L* | -R*)
10476 # Internal compiler library paths should come after those
10477 # provided the user. The postdeps already come after the
10478 # user supplied libs so there is no need to process them.
10479 if test -z "$compiler_lib_search_path_CXX"; then
10480 compiler_lib_search_path_CXX="${prev}${p}"
10481 else
10482 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10483 fi
10484 ;;
10485 # The "-l" case would never come before the object being
10486 # linked, so don't bother handling this case.
10487 esac
10488 else
10489 if test -z "$postdeps_CXX"; then
10490 postdeps_CXX="${prev}${p}"
10491 else
10492 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10493 fi
10494 fi
10495 ;;
10496
10497 *.$objext)
10498 # This assumes that the test object file only shows up
10499 # once in the compiler output.
10500 if test "$p" = "conftest.$objext"; then
10501 pre_test_object_deps_done=yes
10502 continue
10503 fi
10504
10505 if test "$pre_test_object_deps_done" = no; then
10506 if test -z "$predep_objects_CXX"; then
10507 predep_objects_CXX="$p"
10508 else
10509 predep_objects_CXX="$predep_objects_CXX $p"
10510 fi
10511 else
10512 if test -z "$postdep_objects_CXX"; then
10513 postdep_objects_CXX="$p"
10514 else
10515 postdep_objects_CXX="$postdep_objects_CXX $p"
10516 fi
10517 fi
10518 ;;
10519
10520 *) ;; # Ignore the rest.
10521
10522 esac
10523 done
10524
10525 # Clean up.
10526 rm -f a.out a.exe
10527else
10528 echo "libtool.m4: error: problem compiling CXX test program"
10529fi
10530
10531$rm -f confest.$objext
10532
10533case " $postdeps_CXX " in
10534*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10535esac
10536
10537lt_prog_compiler_wl_CXX=
10538lt_prog_compiler_pic_CXX=
10539lt_prog_compiler_static_CXX=
10540
10541echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10542echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10543
10544 # C++ specific cases for pic, static, wl, etc.
10545 if test "$GXX" = yes; then
10546 lt_prog_compiler_wl_CXX='-Wl,'
10547 lt_prog_compiler_static_CXX='-static'
10548
10549 case $host_os in
10550 aix*)
10551 # All AIX code is PIC.
10552 if test "$host_cpu" = ia64; then
10553 # AIX 5 now supports IA64 processor
10554 lt_prog_compiler_static_CXX='-Bstatic'
10555 fi
10556 ;;
10557 amigaos*)
10558 # FIXME: we need at least 68020 code to build shared libraries, but
10559 # adding the `-m68020' flag to GCC prevents building anything better,
10560 # like `-m68040'.
10561 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10562 ;;
10563 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10564 # PIC is the default for these OSes.
10565 ;;
10566 mingw* | os2* | pw32*)
10567 # This hack is so that the source file can tell whether it is being
10568 # built for inclusion in a dll (and should export symbols for example).
10569 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10570 ;;
10571 darwin* | rhapsody*)
10572 # PIC is the default on this platform
10573 # Common symbols not allowed in MH_DYLIB files
10574 lt_prog_compiler_pic_CXX='-fno-common'
10575 ;;
10576 *djgpp*)
10577 # DJGPP does not support shared libraries at all
10578 lt_prog_compiler_pic_CXX=
10579 ;;
10580 sysv4*MP*)
10581 if test -d /usr/nec; then
10582 lt_prog_compiler_pic_CXX=-Kconform_pic
10583 fi
10584 ;;
10585 hpux*)
10586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10587 # not for PA HP-UX.
10588 case "$host_cpu" in
10589 hppa*64*|ia64*)
10590 ;;
10591 *)
10592 lt_prog_compiler_pic_CXX='-fPIC'
10593 ;;
10594 esac
10595 ;;
10596 *)
10597 lt_prog_compiler_pic_CXX='-fPIC'
10598 ;;
10599 esac
10600 else
10601 case $host_os in
10602 aix4* | aix5*)
10603 # All AIX code is PIC.
10604 if test "$host_cpu" = ia64; then
10605 # AIX 5 now supports IA64 processor
10606 lt_prog_compiler_static_CXX='-Bstatic'
10607 else
10608 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10609 fi
10610 ;;
10611 chorus*)
10612 case $cc_basename in
10613 cxch68)
10614 # Green Hills C++ Compiler
10615 # _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"
10616 ;;
10617 esac
10618 ;;
10619 dgux*)
10620 case $cc_basename in
10621 ec++)
10622 lt_prog_compiler_pic_CXX='-KPIC'
10623 ;;
10624 ghcx)
10625 # Green Hills C++ Compiler
10626 lt_prog_compiler_pic_CXX='-pic'
10627 ;;
10628 *)
10629 ;;
10630 esac
10631 ;;
10632 freebsd*)
10633 # FreeBSD uses GNU C++
10634 ;;
10635 hpux9* | hpux10* | hpux11*)
10636 case $cc_basename in
10637 CC)
10638 lt_prog_compiler_wl_CXX='-Wl,'
10639 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10640 if test "$host_cpu" != ia64; then
10641 lt_prog_compiler_pic_CXX='+Z'
10642 fi
10643 ;;
10644 aCC)
10645 lt_prog_compiler_wl_CXX='-Wl,'
10646 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10647 case "$host_cpu" in
10648 hppa*64*|ia64*)
10649 # +Z the default
10650 ;;
10651 *)
10652 lt_prog_compiler_pic_CXX='+Z'
10653 ;;
10654 esac
10655 ;;
10656 *)
10657 ;;
10658 esac
10659 ;;
10660 irix5* | irix6* | nonstopux*)
10661 case $cc_basename in
10662 CC)
10663 lt_prog_compiler_wl_CXX='-Wl,'
10664 lt_prog_compiler_static_CXX='-non_shared'
10665 # CC pic flag -KPIC is the default.
10666 ;;
10667 *)
10668 ;;
10669 esac
10670 ;;
10671 linux*)
10672 case $cc_basename in
10673 KCC)
10674 # KAI C++ Compiler
10675 lt_prog_compiler_wl_CXX='--backend -Wl,'
10676 lt_prog_compiler_pic_CXX='-fPIC'
10677 ;;
10678 icpc)
10679 # Intel C++
10680 lt_prog_compiler_wl_CXX='-Wl,'
10681 lt_prog_compiler_pic_CXX='-KPIC'
10682 lt_prog_compiler_static_CXX='-static'
10683 ;;
10684 cxx)
10685 # Compaq C++
10686 # Make sure the PIC flag is empty. It appears that all Alpha
10687 # Linux and Compaq Tru64 Unix objects are PIC.
10688 lt_prog_compiler_pic_CXX=
10689 lt_prog_compiler_static_CXX='-non_shared'
10690 ;;
10691 *)
10692 ;;
10693 esac
10694 ;;
10695 lynxos*)
10696 ;;
10697 m88k*)
10698 ;;
10699 mvs*)
10700 case $cc_basename in
10701 cxx)
10702 lt_prog_compiler_pic_CXX='-W c,exportall'
10703 ;;
10704 *)
10705 ;;
10706 esac
10707 ;;
10708 netbsd*)
10709 ;;
10710 osf3* | osf4* | osf5*)
10711 case $cc_basename in
10712 KCC)
10713 lt_prog_compiler_wl_CXX='--backend -Wl,'
10714 ;;
10715 RCC)
10716 # Rational C++ 2.4.1
10717 lt_prog_compiler_pic_CXX='-pic'
10718 ;;
10719 cxx)
10720 # Digital/Compaq C++
10721 lt_prog_compiler_wl_CXX='-Wl,'
10722 # Make sure the PIC flag is empty. It appears that all Alpha
10723 # Linux and Compaq Tru64 Unix objects are PIC.
10724 lt_prog_compiler_pic_CXX=
10725 lt_prog_compiler_static_CXX='-non_shared'
10726 ;;
10727 *)
10728 ;;
10729 esac
10730 ;;
10731 psos*)
10732 ;;
10733 sco*)
10734 case $cc_basename in
10735 CC)
10736 lt_prog_compiler_pic_CXX='-fPIC'
10737 ;;
10738 *)
10739 ;;
10740 esac
10741 ;;
10742 solaris*)
10743 case $cc_basename in
10744 CC)
10745 # Sun C++ 4.2, 5.x and Centerline C++
10746 lt_prog_compiler_pic_CXX='-KPIC'
10747 lt_prog_compiler_static_CXX='-Bstatic'
10748 lt_prog_compiler_wl_CXX='-Qoption ld '
10749 ;;
10750 gcx)
10751 # Green Hills C++ Compiler
10752 lt_prog_compiler_pic_CXX='-PIC'
10753 ;;
10754 *)
10755 ;;
10756 esac
10757 ;;
10758 sunos4*)
10759 case $cc_basename in
10760 CC)
10761 # Sun C++ 4.x
10762 lt_prog_compiler_pic_CXX='-pic'
10763 lt_prog_compiler_static_CXX='-Bstatic'
10764 ;;
10765 lcc)
10766 # Lucid
10767 lt_prog_compiler_pic_CXX='-pic'
10768 ;;
10769 *)
10770 ;;
10771 esac
10772 ;;
10773 tandem*)
10774 case $cc_basename in
10775 NCC)
10776 # NonStop-UX NCC 3.20
10777 lt_prog_compiler_pic_CXX='-KPIC'
10778 ;;
10779 *)
10780 ;;
10781 esac
10782 ;;
10783 unixware*)
10784 ;;
10785 vxworks*)
10786 ;;
10787 *)
10788 lt_prog_compiler_can_build_shared_CXX=no
10789 ;;
10790 esac
10791 fi
10792
10793echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10794echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10795
10796#
10797# Check to make sure the PIC flag actually works.
10798#
10799if test -n "$lt_prog_compiler_pic_CXX"; then
10800 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10801echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10802if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 lt_prog_compiler_pic_works_CXX=no
10806 ac_outfile=conftest.$ac_objext
10807 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10808 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10809 # Insert the option either (1) after the last *FLAGS variable, or
10810 # (2) before a word containing "conftest.", or (3) at the end.
10811 # Note that $ac_compile itself does not contain backslashes and begins
10812 # with a dollar sign (not a hyphen), so the echo should work correctly.
10813 # The option is referenced via a variable to avoid confusing sed.
10814 lt_compile=`echo "$ac_compile" | $SED \
10815 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10817 -e 's:$: $lt_compiler_flag:'`
John Criswell12399a12003-09-30 15:55:44 +000010818 (eval echo "\"\$as_me:10818: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010819 (eval "$lt_compile" 2>conftest.err)
10820 ac_status=$?
10821 cat conftest.err >&5
John Criswell12399a12003-09-30 15:55:44 +000010822 echo "$as_me:10822: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010823 if (exit $ac_status) && test -s "$ac_outfile"; then
10824 # The compiler can only warn and ignore the option if not recognized
10825 # So say no if there are warnings
10826 if test ! -s conftest.err; then
10827 lt_prog_compiler_pic_works_CXX=yes
10828 fi
10829 fi
10830 $rm conftest*
10831
10832fi
10833echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10834echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10835
10836if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10837 case $lt_prog_compiler_pic_CXX in
10838 "" | " "*) ;;
10839 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10840 esac
10841else
10842 lt_prog_compiler_pic_CXX=
10843 lt_prog_compiler_can_build_shared_CXX=no
10844fi
10845
10846fi
10847case "$host_os" in
10848 # For platforms which do not support PIC, -DPIC is meaningless:
10849 *djgpp*)
10850 lt_prog_compiler_pic_CXX=
10851 ;;
10852 *)
10853 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10854 ;;
10855esac
10856
10857echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10858echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10859if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10861else
10862 lt_cv_prog_compiler_c_o_CXX=no
10863 $rm -r conftest 2>/dev/null
10864 mkdir conftest
10865 cd conftest
10866 mkdir out
10867 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10868
10869 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10870 # that will create temporary files in the current directory regardless of
10871 # the output directory. Thus, making CWD read-only will cause this test
10872 # to fail, enabling locking or at least warning the user not to do parallel
10873 # builds.
10874 chmod -w .
10875
10876 lt_compiler_flag="-o out/conftest2.$ac_objext"
10877 # Insert the option either (1) after the last *FLAGS variable, or
10878 # (2) before a word containing "conftest.", or (3) at the end.
10879 # Note that $ac_compile itself does not contain backslashes and begins
10880 # with a dollar sign (not a hyphen), so the echo should work correctly.
10881 lt_compile=`echo "$ac_compile" | $SED \
10882 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10884 -e 's:$: $lt_compiler_flag:'`
John Criswell12399a12003-09-30 15:55:44 +000010885 (eval echo "\"\$as_me:10885: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010886 (eval "$lt_compile" 2>out/conftest.err)
10887 ac_status=$?
10888 cat out/conftest.err >&5
John Criswell12399a12003-09-30 15:55:44 +000010889 echo "$as_me:10889: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010890 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10891 then
10892 # The compiler can only warn and ignore the option if not recognized
10893 # So say no if there are warnings
10894 if test ! -s out/conftest.err; then
10895 lt_cv_prog_compiler_c_o_CXX=yes
10896 fi
10897 fi
10898 chmod u+w .
10899 $rm conftest* out/*
10900 rmdir out
10901 cd ..
10902 rmdir conftest
10903 $rm conftest*
10904
10905fi
10906echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10907echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10908
10909
10910hard_links="nottested"
10911if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10912 # do not overwrite the value of need_locks provided by the user
10913 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10914echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10915 hard_links=yes
10916 $rm conftest*
10917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10918 touch conftest.a
10919 ln conftest.a conftest.b 2>&5 || hard_links=no
10920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10921 echo "$as_me:$LINENO: result: $hard_links" >&5
10922echo "${ECHO_T}$hard_links" >&6
10923 if test "$hard_links" = no; then
10924 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10925echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10926 need_locks=warn
10927 fi
10928else
10929 need_locks=no
10930fi
10931
10932echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10933echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10934
10935 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10936 case $host_os in
10937 aix4* | aix5*)
10938 # If we're using GNU nm, then we don't want the "-C" option.
10939 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10940 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10941 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'
10942 else
10943 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'
10944 fi
10945 ;;
10946 pw32*)
10947 export_symbols_cmds_CXX="$ltdll_cmds"
10948 ;;
10949 cygwin* | mingw*)
10950 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10951 ;;
10952 *)
10953 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10954 ;;
10955 esac
10956
10957echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10958echo "${ECHO_T}$ld_shlibs_CXX" >&6
10959test "$ld_shlibs_CXX" = no && can_build_shared=no
10960
10961variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10962if test "$GCC" = yes; then
10963 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10964fi
10965
10966#
10967# Do we need to explicitly link libc?
10968#
10969case "x$archive_cmds_need_lc_CXX" in
10970x|xyes)
10971 # Assume -lc should be added
10972 archive_cmds_need_lc_CXX=yes
10973
10974 if test "$enable_shared" = yes && test "$GCC" = yes; then
10975 case $archive_cmds_CXX in
10976 *'~'*)
10977 # FIXME: we may have to deal with multi-command sequences.
10978 ;;
10979 '$CC '*)
10980 # Test whether the compiler implicitly links with -lc since on some
10981 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10982 # to ld, don't add -lc before -lgcc.
10983 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10984echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10985 $rm conftest*
10986 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10987
10988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10989 (eval $ac_compile) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } 2>conftest.err; then
10993 soname=conftest
10994 lib=conftest
10995 libobjs=conftest.$ac_objext
10996 deplibs=
10997 wl=$lt_prog_compiler_wl_CXX
10998 compiler_flags=-v
10999 linker_flags=-v
11000 verstring=
11001 output_objdir=.
11002 libname=conftest
11003 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11004 allow_undefined_flag_CXX=
11005 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11006 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }
11010 then
11011 archive_cmds_need_lc_CXX=no
11012 else
11013 archive_cmds_need_lc_CXX=yes
11014 fi
11015 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11016 else
11017 cat conftest.err 1>&5
11018 fi
11019 $rm conftest*
11020 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11021echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11022 ;;
11023 esac
11024 fi
11025 ;;
11026esac
11027
11028echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11029echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11030hardcode_action_CXX=
11031if test -n "$hardcode_libdir_flag_spec_CXX" || \
11032 test -n "$runpath_var CXX" || \
11033 test "X$hardcode_automatic_CXX"="Xyes" ; then
11034
11035 # We can hardcode non-existant directories.
11036 if test "$hardcode_direct_CXX" != no &&
11037 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11038 # have to relink, otherwise we might link with an installed library
11039 # when we should be linking with a yet-to-be-installed one
11040 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11041 test "$hardcode_minus_L_CXX" != no; then
11042 # Linking always hardcodes the temporary library directory.
11043 hardcode_action_CXX=relink
11044 else
11045 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11046 hardcode_action_CXX=immediate
11047 fi
11048else
11049 # We cannot hardcode anything, or else we can only hardcode existing
11050 # directories.
11051 hardcode_action_CXX=unsupported
11052fi
11053echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11054echo "${ECHO_T}$hardcode_action_CXX" >&6
11055
11056if test "$hardcode_action_CXX" = relink; then
11057 # Fast installation is not supported
11058 enable_fast_install=no
11059elif test "$shlibpath_overrides_runpath" = yes ||
11060 test "$enable_shared" = no; then
11061 # Fast installation is not necessary
11062 enable_fast_install=needless
11063fi
11064
11065striplib=
11066old_striplib=
11067echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11068echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11069if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11070 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11071 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11072 echo "$as_me:$LINENO: result: yes" >&5
11073echo "${ECHO_T}yes" >&6
11074else
11075# FIXME - insert some real tests, host_os isn't really good enough
11076 case $host_os in
11077 darwin*)
11078 if test -n "$STRIP" ; then
11079 striplib="$STRIP -x"
11080 echo "$as_me:$LINENO: result: yes" >&5
11081echo "${ECHO_T}yes" >&6
11082 else
11083 echo "$as_me:$LINENO: result: no" >&5
11084echo "${ECHO_T}no" >&6
11085fi
11086 ;;
11087 *)
11088 echo "$as_me:$LINENO: result: no" >&5
11089echo "${ECHO_T}no" >&6
11090 ;;
11091 esac
11092fi
11093
11094echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11095echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11096library_names_spec=
11097libname_spec='lib$name'
11098soname_spec=
11099shrext=".so"
11100postinstall_cmds=
11101postuninstall_cmds=
11102finish_cmds=
11103finish_eval=
11104shlibpath_var=
11105shlibpath_overrides_runpath=unknown
11106version_type=none
11107dynamic_linker="$host_os ld.so"
11108sys_lib_dlsearch_path_spec="/lib /usr/lib"
11109if test "$GCC" = yes; then
11110 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11111 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11112 # if the path contains ";" then we assume it to be the separator
11113 # otherwise default to the standard path separator (i.e. ":") - it is
11114 # assumed that no part of a normal pathname contains ";" but that should
11115 # okay in the real world where ";" in dirpaths is itself problematic.
11116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11117 else
11118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11119 fi
11120else
11121 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11122fi
11123need_lib_prefix=unknown
11124hardcode_into_libs=no
11125
11126# when you set need_version to no, make sure it does not cause -set_version
11127# flags to be left without arguments
11128need_version=unknown
11129
11130case $host_os in
11131aix3*)
11132 version_type=linux
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11134 shlibpath_var=LIBPATH
11135
11136 # AIX 3 has no versioning support, so we append a major version to the name.
11137 soname_spec='${libname}${release}${shared_ext}$major'
11138 ;;
11139
11140aix4* | aix5*)
11141 version_type=linux
11142 need_lib_prefix=no
11143 need_version=no
11144 hardcode_into_libs=yes
11145 if test "$host_cpu" = ia64; then
11146 # AIX 5 supports IA64
11147 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 else
11150 # With GCC up to 2.95.x, collect2 would create an import file
11151 # for dependence libraries. The import file would start with
11152 # the line `#! .'. This would cause the generated library to
11153 # depend on `.', always an invalid library. This was fixed in
11154 # development snapshots of GCC prior to 3.0.
11155 case $host_os in
11156 aix4 | aix4.[01] | aix4.[01].*)
11157 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11158 echo ' yes '
11159 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11160 :
11161 else
11162 can_build_shared=no
11163 fi
11164 ;;
11165 esac
11166 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11167 # soname into executable. Probably we can add versioning support to
11168 # collect2, so additional links can be useful in future.
11169 if test "$aix_use_runtimelinking" = yes; then
11170 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11171 # instead of lib<name>.a to let people know that these are not
11172 # typical AIX shared libraries.
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174 else
11175 # We preserve .a as extension for shared libraries through AIX4.2
11176 # and later when we are not doing run time linking.
11177 library_names_spec='${libname}${release}.a $libname.a'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 fi
11180 shlibpath_var=LIBPATH
11181 fi
11182 ;;
11183
11184amigaos*)
11185 library_names_spec='$libname.ixlibrary $libname.a'
11186 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11187 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'
11188 ;;
11189
11190beos*)
11191 library_names_spec='${libname}${shared_ext}'
11192 dynamic_linker="$host_os ld.so"
11193 shlibpath_var=LIBRARY_PATH
11194 ;;
11195
11196bsdi4*)
11197 version_type=linux
11198 need_version=no
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 soname_spec='${libname}${release}${shared_ext}$major'
11201 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11204 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11205 # the default ld.so.conf also contains /usr/contrib/lib and
11206 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11207 # libtool to hard-code these into programs
11208 ;;
11209
11210cygwin* | mingw* | pw32*)
11211 version_type=windows
11212 shrext=".dll"
11213 need_version=no
11214 need_lib_prefix=no
11215
11216 case $GCC,$host_os in
11217 yes,cygwin* | yes,mingw* | yes,pw32*)
11218 library_names_spec='$libname.dll.a'
11219 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11220 postinstall_cmds='base_file=`basename \${file}`~
11221 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11222 dldir=$destdir/`dirname \$dlpath`~
11223 test -d \$dldir || mkdir -p \$dldir~
11224 $install_prog $dir/$dlname \$dldir/$dlname'
11225 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11226 dlpath=$dir/\$dldll~
11227 $rm \$dlpath'
11228 shlibpath_overrides_runpath=yes
11229
11230 case $host_os in
11231 cygwin*)
11232 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11233 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11234 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11235 ;;
11236 mingw*)
11237 # MinGW DLLs use traditional 'lib' prefix
11238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11239 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11240 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11241 # It is most probably a Windows format PATH printed by
11242 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11243 # path with ; separators, and with drive letters. We can handle the
11244 # drive letters (cygwin fileutils understands them), so leave them,
11245 # especially as we might pass files found there to a mingw objdump,
11246 # which wouldn't understand a cygwinified path. Ahh.
11247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11248 else
11249 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11250 fi
11251 ;;
11252 pw32*)
11253 # pw32 DLLs use 'pw' prefix rather than 'lib'
11254 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11255 ;;
11256 esac
11257 ;;
11258
11259 *)
11260 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11261 ;;
11262 esac
11263 dynamic_linker='Win32 ld.exe'
11264 # FIXME: first we should search . and the directory the executable is in
11265 shlibpath_var=PATH
11266 ;;
11267
11268darwin* | rhapsody*)
11269 dynamic_linker="$host_os dyld"
11270 version_type=darwin
11271 need_lib_prefix=no
11272 need_version=no
11273 # FIXME: Relying on posixy $() will cause problems for
11274 # cross-compilation, but unfortunately the echo tests do not
11275 # yet detect zsh echo's removal of \ escapes.
11276 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11277 soname_spec='${libname}${release}${major}$shared_ext'
11278 shlibpath_overrides_runpath=yes
11279 shlibpath_var=DYLD_LIBRARY_PATH
11280 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11281 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11282 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11283 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"`
11284 fi
11285 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11286 ;;
11287
11288dgux*)
11289 version_type=linux
11290 need_lib_prefix=no
11291 need_version=no
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11293 soname_spec='${libname}${release}${shared_ext}$major'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 ;;
11296
11297freebsd1*)
11298 dynamic_linker=no
11299 ;;
11300
11301freebsd*)
11302 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11303 version_type=freebsd-$objformat
11304 case $version_type in
11305 freebsd-elf*)
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11307 need_version=no
11308 need_lib_prefix=no
11309 ;;
11310 freebsd-*)
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11312 need_version=yes
11313 ;;
11314 esac
11315 shlibpath_var=LD_LIBRARY_PATH
11316 case $host_os in
11317 freebsd2*)
11318 shlibpath_overrides_runpath=yes
11319 ;;
11320 freebsd3.01* | freebsdelf3.01*)
11321 shlibpath_overrides_runpath=yes
11322 hardcode_into_libs=yes
11323 ;;
11324 *) # from 3.2 on
11325 shlibpath_overrides_runpath=no
11326 hardcode_into_libs=yes
11327 ;;
11328 esac
11329 ;;
11330
11331gnu*)
11332 version_type=linux
11333 need_lib_prefix=no
11334 need_version=no
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 shlibpath_var=LD_LIBRARY_PATH
11338 hardcode_into_libs=yes
11339 ;;
11340
11341hpux9* | hpux10* | hpux11*)
11342 # Give a soname corresponding to the major version so that dld.sl refuses to
11343 # link against other versions.
11344 version_type=sunos
11345 need_lib_prefix=no
11346 need_version=no
11347 case "$host_cpu" in
11348 ia64*)
11349 shrext='.so'
11350 hardcode_into_libs=yes
11351 dynamic_linker="$host_os dld.so"
11352 shlibpath_var=LD_LIBRARY_PATH
11353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 if test "X$HPUX_IA64_MODE" = X32; then
11357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11358 else
11359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11360 fi
11361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11362 ;;
11363 hppa*64*)
11364 shrext='.sl'
11365 hardcode_into_libs=yes
11366 dynamic_linker="$host_os dld.sl"
11367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11373 ;;
11374 *)
11375 shrext='.sl'
11376 dynamic_linker="$host_os dld.sl"
11377 shlibpath_var=SHLIB_PATH
11378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 ;;
11382 esac
11383 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11384 postinstall_cmds='chmod 555 $lib'
11385 ;;
11386
11387irix5* | irix6* | nonstopux*)
11388 case $host_os in
11389 nonstopux*) version_type=nonstopux ;;
11390 *)
11391 if test "$lt_cv_prog_gnu_ld" = yes; then
11392 version_type=linux
11393 else
11394 version_type=irix
11395 fi ;;
11396 esac
11397 need_lib_prefix=no
11398 need_version=no
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11401 case $host_os in
11402 irix5* | nonstopux*)
11403 libsuff= shlibsuff=
11404 ;;
11405 *)
11406 case $LD in # libtool.m4 will add one of these switches to LD
11407 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11408 libsuff= shlibsuff= libmagic=32-bit;;
11409 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11410 libsuff=32 shlibsuff=N32 libmagic=N32;;
11411 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11412 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11413 *) libsuff= shlibsuff= libmagic=never-match;;
11414 esac
11415 ;;
11416 esac
11417 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11418 shlibpath_overrides_runpath=no
11419 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11420 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11421 hardcode_into_libs=yes
11422 ;;
11423
11424# No shared lib support for Linux oldld, aout, or coff.
11425linux*oldld* | linux*aout* | linux*coff*)
11426 dynamic_linker=no
11427 ;;
11428
11429# This must be Linux ELF.
11430linux*)
11431 version_type=linux
11432 need_lib_prefix=no
11433 need_version=no
11434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435 soname_spec='${libname}${release}${shared_ext}$major'
11436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 shlibpath_overrides_runpath=no
11439 # This implies no fast_install, which is unacceptable.
11440 # Some rework will be needed to allow for fast_install
11441 # before this can be enabled.
11442 hardcode_into_libs=yes
11443
11444 # We used to test for /lib/ld.so.1 and disable shared libraries on
11445 # powerpc, because MkLinux only supported shared libraries with the
11446 # GNU dynamic linker. Since this was broken with cross compilers,
11447 # most powerpc-linux boxes support dynamic linking these days and
11448 # people can always --disable-shared, the test was removed, and we
11449 # assume the GNU/Linux dynamic linker is in use.
11450 dynamic_linker='GNU/Linux ld.so'
11451 ;;
11452
11453netbsd*)
11454 version_type=sunos
11455 need_lib_prefix=no
11456 need_version=no
11457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11460 dynamic_linker='NetBSD (a.out) ld.so'
11461 else
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11463 soname_spec='${libname}${release}${shared_ext}$major'
11464 dynamic_linker='NetBSD ld.elf_so'
11465 fi
11466 shlibpath_var=LD_LIBRARY_PATH
11467 shlibpath_overrides_runpath=yes
11468 hardcode_into_libs=yes
11469 ;;
11470
11471newsos6)
11472 version_type=linux
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11474 shlibpath_var=LD_LIBRARY_PATH
11475 shlibpath_overrides_runpath=yes
11476 ;;
11477
11478nto-qnx)
11479 version_type=linux
11480 need_lib_prefix=no
11481 need_version=no
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483 soname_spec='${libname}${release}${shared_ext}$major'
11484 shlibpath_var=LD_LIBRARY_PATH
11485 shlibpath_overrides_runpath=yes
11486 ;;
11487
11488openbsd*)
11489 version_type=sunos
11490 need_lib_prefix=no
11491 need_version=no
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11494 shlibpath_var=LD_LIBRARY_PATH
11495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11496 case $host_os in
11497 openbsd2.[89] | openbsd2.[89].*)
11498 shlibpath_overrides_runpath=no
11499 ;;
11500 *)
11501 shlibpath_overrides_runpath=yes
11502 ;;
11503 esac
11504 else
11505 shlibpath_overrides_runpath=yes
11506 fi
11507 ;;
11508
11509os2*)
11510 libname_spec='$name'
11511 shrext=".dll"
11512 need_lib_prefix=no
11513 library_names_spec='$libname${shared_ext} $libname.a'
11514 dynamic_linker='OS/2 ld.exe'
11515 shlibpath_var=LIBPATH
11516 ;;
11517
11518osf3* | osf4* | osf5*)
11519 version_type=osf
11520 need_lib_prefix=no
11521 need_version=no
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 shlibpath_var=LD_LIBRARY_PATH
11525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11527 ;;
11528
11529sco3.2v5*)
11530 version_type=osf
11531 soname_spec='${libname}${release}${shared_ext}$major'
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 ;;
11535
11536solaris*)
11537 version_type=linux
11538 need_lib_prefix=no
11539 need_version=no
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11542 shlibpath_var=LD_LIBRARY_PATH
11543 shlibpath_overrides_runpath=yes
11544 hardcode_into_libs=yes
11545 # ldd complains unless libraries are executable
11546 postinstall_cmds='chmod +x $lib'
11547 ;;
11548
11549sunos4*)
11550 version_type=sunos
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=yes
11555 if test "$with_gnu_ld" = yes; then
11556 need_lib_prefix=no
11557 fi
11558 need_version=yes
11559 ;;
11560
11561sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11562 version_type=linux
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 shlibpath_var=LD_LIBRARY_PATH
11566 case $host_vendor in
11567 sni)
11568 shlibpath_overrides_runpath=no
11569 need_lib_prefix=no
11570 export_dynamic_flag_spec='${wl}-Blargedynsym'
11571 runpath_var=LD_RUN_PATH
11572 ;;
11573 siemens)
11574 need_lib_prefix=no
11575 ;;
11576 motorola)
11577 need_lib_prefix=no
11578 need_version=no
11579 shlibpath_overrides_runpath=no
11580 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11581 ;;
11582 esac
11583 ;;
11584
11585sysv4*MP*)
11586 if test -d /usr/nec ;then
11587 version_type=linux
11588 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11589 soname_spec='$libname${shared_ext}.$major'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 fi
11592 ;;
11593
11594uts4*)
11595 version_type=linux
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 ;;
11600
11601*)
11602 dynamic_linker=no
11603 ;;
11604esac
11605echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11606echo "${ECHO_T}$dynamic_linker" >&6
11607test "$dynamic_linker" = no && can_build_shared=no
11608
11609if test "x$enable_dlopen" != xyes; then
11610 enable_dlopen=unknown
11611 enable_dlopen_self=unknown
11612 enable_dlopen_self_static=unknown
11613else
11614 lt_cv_dlopen=no
11615 lt_cv_dlopen_libs=
11616
11617 case $host_os in
11618 beos*)
11619 lt_cv_dlopen="load_add_on"
11620 lt_cv_dlopen_libs=
11621 lt_cv_dlopen_self=yes
11622 ;;
11623
11624 mingw* | pw32*)
11625 lt_cv_dlopen="LoadLibrary"
11626 lt_cv_dlopen_libs=
11627 ;;
11628
11629 cygwin*)
11630 lt_cv_dlopen="dlopen"
11631 lt_cv_dlopen_libs=
11632 ;;
11633
11634 darwin*)
11635 # if libdl is installed we need to link against it
11636 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11637echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11638if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640else
11641 ac_check_lib_save_LIBS=$LIBS
11642LIBS="-ldl $LIBS"
11643cat >conftest.$ac_ext <<_ACEOF
11644#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011645/* confdefs.h. */
11646_ACEOF
11647cat confdefs.h >>conftest.$ac_ext
11648cat >>conftest.$ac_ext <<_ACEOF
11649/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011650
11651/* Override any gcc2 internal prototype to avoid an error. */
11652#ifdef __cplusplus
11653extern "C"
11654#endif
11655/* We use char because int might match the return type of a gcc2
11656 builtin and then its argument prototype would still apply. */
11657char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011658int
11659main ()
11660{
11661dlopen ();
11662 ;
11663 return 0;
11664}
11665_ACEOF
11666rm -f conftest.$ac_objext conftest$ac_exeext
11667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11668 (eval $ac_link) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -s conftest$ac_exeext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_lib_dl_dlopen=yes
11679else
11680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011681sed 's/^/| /' conftest.$ac_ext >&5
11682
John Criswell47fdd832003-07-14 16:52:07 +000011683ac_cv_lib_dl_dlopen=no
11684fi
11685rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11686LIBS=$ac_check_lib_save_LIBS
11687fi
11688echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11689echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11690if test $ac_cv_lib_dl_dlopen = yes; then
11691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11692else
11693
11694 lt_cv_dlopen="dyld"
11695 lt_cv_dlopen_libs=
11696 lt_cv_dlopen_self=yes
11697
11698fi
11699
11700 ;;
11701
11702 *)
11703 echo "$as_me:$LINENO: checking for shl_load" >&5
11704echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11705if test "${ac_cv_func_shl_load+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11707else
11708 cat >conftest.$ac_ext <<_ACEOF
11709#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011715/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011716 which can conflict with char shl_load (); below.
11717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11718 <limits.h> exists even on freestanding compilers. */
11719#ifdef __STDC__
11720# include <limits.h>
11721#else
11722# include <assert.h>
11723#endif
John Criswell47fdd832003-07-14 16:52:07 +000011724/* Override any gcc2 internal prototype to avoid an error. */
11725#ifdef __cplusplus
11726extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011727{
John Criswell47fdd832003-07-14 16:52:07 +000011728#endif
11729/* We use char because int might match the return type of a gcc2
11730 builtin and then its argument prototype would still apply. */
11731char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011732/* The GNU C library defines this for functions which it implements
11733 to always fail with ENOSYS. Some functions are actually named
11734 something starting with __ and the normal name is an alias. */
11735#if defined (__stub_shl_load) || defined (__stub___shl_load)
11736choke me
11737#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011738char (*f) () = shl_load;
11739#endif
11740#ifdef __cplusplus
11741}
John Criswell47fdd832003-07-14 16:52:07 +000011742#endif
11743
John Criswell0c38eaf2003-09-10 15:17:25 +000011744int
11745main ()
11746{
11747return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011748 ;
11749 return 0;
11750}
11751_ACEOF
11752rm -f conftest.$ac_objext conftest$ac_exeext
11753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754 (eval $ac_link) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -s conftest$ac_exeext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11761 ac_status=$?
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 ac_cv_func_shl_load=yes
11765else
11766 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011767sed 's/^/| /' conftest.$ac_ext >&5
11768
John Criswell47fdd832003-07-14 16:52:07 +000011769ac_cv_func_shl_load=no
11770fi
11771rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11772fi
11773echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11774echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11775if test $ac_cv_func_shl_load = yes; then
11776 lt_cv_dlopen="shl_load"
11777else
11778 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11779echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11780if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782else
11783 ac_check_lib_save_LIBS=$LIBS
11784LIBS="-ldld $LIBS"
11785cat >conftest.$ac_ext <<_ACEOF
11786#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011787/* confdefs.h. */
11788_ACEOF
11789cat confdefs.h >>conftest.$ac_ext
11790cat >>conftest.$ac_ext <<_ACEOF
11791/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011792
11793/* Override any gcc2 internal prototype to avoid an error. */
11794#ifdef __cplusplus
11795extern "C"
11796#endif
11797/* We use char because int might match the return type of a gcc2
11798 builtin and then its argument prototype would still apply. */
11799char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011800int
11801main ()
11802{
11803shl_load ();
11804 ;
11805 return 0;
11806}
11807_ACEOF
11808rm -f conftest.$ac_objext conftest$ac_exeext
11809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11810 (eval $ac_link) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try='test -s conftest$ac_exeext'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 ac_cv_lib_dld_shl_load=yes
11821else
11822 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011823sed 's/^/| /' conftest.$ac_ext >&5
11824
John Criswell47fdd832003-07-14 16:52:07 +000011825ac_cv_lib_dld_shl_load=no
11826fi
11827rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11828LIBS=$ac_check_lib_save_LIBS
11829fi
11830echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11831echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11832if test $ac_cv_lib_dld_shl_load = yes; then
11833 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11834else
11835 echo "$as_me:$LINENO: checking for dlopen" >&5
11836echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11837if test "${ac_cv_func_dlopen+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11839else
11840 cat >conftest.$ac_ext <<_ACEOF
11841#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011842/* confdefs.h. */
11843_ACEOF
11844cat confdefs.h >>conftest.$ac_ext
11845cat >>conftest.$ac_ext <<_ACEOF
11846/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011847/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011848 which can conflict with char dlopen (); below.
11849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11850 <limits.h> exists even on freestanding compilers. */
11851#ifdef __STDC__
11852# include <limits.h>
11853#else
11854# include <assert.h>
11855#endif
John Criswell47fdd832003-07-14 16:52:07 +000011856/* Override any gcc2 internal prototype to avoid an error. */
11857#ifdef __cplusplus
11858extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011859{
John Criswell47fdd832003-07-14 16:52:07 +000011860#endif
11861/* We use char because int might match the return type of a gcc2
11862 builtin and then its argument prototype would still apply. */
11863char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011864/* The GNU C library defines this for functions which it implements
11865 to always fail with ENOSYS. Some functions are actually named
11866 something starting with __ and the normal name is an alias. */
11867#if defined (__stub_dlopen) || defined (__stub___dlopen)
11868choke me
11869#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011870char (*f) () = dlopen;
11871#endif
11872#ifdef __cplusplus
11873}
John Criswell47fdd832003-07-14 16:52:07 +000011874#endif
11875
John Criswell0c38eaf2003-09-10 15:17:25 +000011876int
11877main ()
11878{
11879return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011880 ;
11881 return 0;
11882}
11883_ACEOF
11884rm -f conftest.$ac_objext conftest$ac_exeext
11885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886 (eval $ac_link) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try='test -s conftest$ac_exeext'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896 ac_cv_func_dlopen=yes
11897else
11898 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011899sed 's/^/| /' conftest.$ac_ext >&5
11900
John Criswell47fdd832003-07-14 16:52:07 +000011901ac_cv_func_dlopen=no
11902fi
11903rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11904fi
11905echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11906echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11907if test $ac_cv_func_dlopen = yes; then
11908 lt_cv_dlopen="dlopen"
11909else
11910 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11911echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11912if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11914else
11915 ac_check_lib_save_LIBS=$LIBS
11916LIBS="-ldl $LIBS"
11917cat >conftest.$ac_ext <<_ACEOF
11918#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011919/* confdefs.h. */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011924
11925/* Override any gcc2 internal prototype to avoid an error. */
11926#ifdef __cplusplus
11927extern "C"
11928#endif
11929/* We use char because int might match the return type of a gcc2
11930 builtin and then its argument prototype would still apply. */
11931char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011932int
11933main ()
11934{
11935dlopen ();
11936 ;
11937 return 0;
11938}
11939_ACEOF
11940rm -f conftest.$ac_objext conftest$ac_exeext
11941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11942 (eval $ac_link) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -s conftest$ac_exeext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_cv_lib_dl_dlopen=yes
11953else
11954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011955sed 's/^/| /' conftest.$ac_ext >&5
11956
John Criswell47fdd832003-07-14 16:52:07 +000011957ac_cv_lib_dl_dlopen=no
11958fi
11959rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11960LIBS=$ac_check_lib_save_LIBS
11961fi
11962echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11963echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11964if test $ac_cv_lib_dl_dlopen = yes; then
11965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11966else
11967 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11968echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11969if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11971else
11972 ac_check_lib_save_LIBS=$LIBS
11973LIBS="-lsvld $LIBS"
11974cat >conftest.$ac_ext <<_ACEOF
11975#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011976/* confdefs.h. */
11977_ACEOF
11978cat confdefs.h >>conftest.$ac_ext
11979cat >>conftest.$ac_ext <<_ACEOF
11980/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011981
11982/* Override any gcc2 internal prototype to avoid an error. */
11983#ifdef __cplusplus
11984extern "C"
11985#endif
11986/* We use char because int might match the return type of a gcc2
11987 builtin and then its argument prototype would still apply. */
11988char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011989int
11990main ()
11991{
11992dlopen ();
11993 ;
11994 return 0;
11995}
11996_ACEOF
11997rm -f conftest.$ac_objext conftest$ac_exeext
11998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11999 (eval $ac_link) 2>&5
12000 ac_status=$?
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
12003 { ac_try='test -s conftest$ac_exeext'
12004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005 (eval $ac_try) 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
12009 ac_cv_lib_svld_dlopen=yes
12010else
12011 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012012sed 's/^/| /' conftest.$ac_ext >&5
12013
John Criswell47fdd832003-07-14 16:52:07 +000012014ac_cv_lib_svld_dlopen=no
12015fi
12016rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12017LIBS=$ac_check_lib_save_LIBS
12018fi
12019echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12020echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12021if test $ac_cv_lib_svld_dlopen = yes; then
12022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12023else
12024 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12025echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12026if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12028else
12029 ac_check_lib_save_LIBS=$LIBS
12030LIBS="-ldld $LIBS"
12031cat >conftest.$ac_ext <<_ACEOF
12032#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012033/* confdefs.h. */
12034_ACEOF
12035cat confdefs.h >>conftest.$ac_ext
12036cat >>conftest.$ac_ext <<_ACEOF
12037/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012038
12039/* Override any gcc2 internal prototype to avoid an error. */
12040#ifdef __cplusplus
12041extern "C"
12042#endif
12043/* We use char because int might match the return type of a gcc2
12044 builtin and then its argument prototype would still apply. */
12045char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012046int
12047main ()
12048{
12049dld_link ();
12050 ;
12051 return 0;
12052}
12053_ACEOF
12054rm -f conftest.$ac_objext conftest$ac_exeext
12055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056 (eval $ac_link) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try='test -s conftest$ac_exeext'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; }; then
12066 ac_cv_lib_dld_dld_link=yes
12067else
12068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012069sed 's/^/| /' conftest.$ac_ext >&5
12070
John Criswell47fdd832003-07-14 16:52:07 +000012071ac_cv_lib_dld_dld_link=no
12072fi
12073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12074LIBS=$ac_check_lib_save_LIBS
12075fi
12076echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12077echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12078if test $ac_cv_lib_dld_dld_link = yes; then
12079 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12080fi
12081
12082
12083fi
12084
12085
12086fi
12087
12088
12089fi
12090
12091
12092fi
12093
12094
12095fi
12096
12097 ;;
12098 esac
12099
12100 if test "x$lt_cv_dlopen" != xno; then
12101 enable_dlopen=yes
12102 else
12103 enable_dlopen=no
12104 fi
12105
12106 case $lt_cv_dlopen in
12107 dlopen)
12108 save_CPPFLAGS="$CPPFLAGS"
12109 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12110
12111 save_LDFLAGS="$LDFLAGS"
12112 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12113
12114 save_LIBS="$LIBS"
12115 LIBS="$lt_cv_dlopen_libs $LIBS"
12116
12117 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12118echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12119if test "${lt_cv_dlopen_self+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121else
12122 if test "$cross_compiling" = yes; then :
12123 lt_cv_dlopen_self=cross
12124else
12125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12126 lt_status=$lt_dlunknown
12127 cat > conftest.$ac_ext <<EOF
John Criswell12399a12003-09-30 15:55:44 +000012128#line 12128 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012129#include "confdefs.h"
12130
12131#if HAVE_DLFCN_H
12132#include <dlfcn.h>
12133#endif
12134
12135#include <stdio.h>
12136
12137#ifdef RTLD_GLOBAL
12138# define LT_DLGLOBAL RTLD_GLOBAL
12139#else
12140# ifdef DL_GLOBAL
12141# define LT_DLGLOBAL DL_GLOBAL
12142# else
12143# define LT_DLGLOBAL 0
12144# endif
12145#endif
12146
12147/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12148 find out it does not work in some platform. */
12149#ifndef LT_DLLAZY_OR_NOW
12150# ifdef RTLD_LAZY
12151# define LT_DLLAZY_OR_NOW RTLD_LAZY
12152# else
12153# ifdef DL_LAZY
12154# define LT_DLLAZY_OR_NOW DL_LAZY
12155# else
12156# ifdef RTLD_NOW
12157# define LT_DLLAZY_OR_NOW RTLD_NOW
12158# else
12159# ifdef DL_NOW
12160# define LT_DLLAZY_OR_NOW DL_NOW
12161# else
12162# define LT_DLLAZY_OR_NOW 0
12163# endif
12164# endif
12165# endif
12166# endif
12167#endif
12168
12169#ifdef __cplusplus
12170extern "C" void exit (int);
12171#endif
12172
12173void fnord() { int i=42;}
12174int main ()
12175{
12176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12177 int status = $lt_dlunknown;
12178
12179 if (self)
12180 {
12181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12182 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12183 /* dlclose (self); */
12184 }
12185
12186 exit (status);
12187}
12188EOF
12189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12190 (eval $ac_link) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12194 (./conftest; exit; ) 2>/dev/null
12195 lt_status=$?
12196 case x$lt_status in
12197 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12198 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12199 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12200 esac
12201 else :
12202 # compilation failed
12203 lt_cv_dlopen_self=no
12204 fi
12205fi
12206rm -fr conftest*
12207
12208
12209fi
12210echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12211echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12212
12213 if test "x$lt_cv_dlopen_self" = xyes; then
12214 LDFLAGS="$LDFLAGS $link_static_flag"
12215 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12216echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12217if test "${lt_cv_dlopen_self_static+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12219else
12220 if test "$cross_compiling" = yes; then :
12221 lt_cv_dlopen_self_static=cross
12222else
12223 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12224 lt_status=$lt_dlunknown
12225 cat > conftest.$ac_ext <<EOF
John Criswell12399a12003-09-30 15:55:44 +000012226#line 12226 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012227#include "confdefs.h"
12228
12229#if HAVE_DLFCN_H
12230#include <dlfcn.h>
12231#endif
12232
12233#include <stdio.h>
12234
12235#ifdef RTLD_GLOBAL
12236# define LT_DLGLOBAL RTLD_GLOBAL
12237#else
12238# ifdef DL_GLOBAL
12239# define LT_DLGLOBAL DL_GLOBAL
12240# else
12241# define LT_DLGLOBAL 0
12242# endif
12243#endif
12244
12245/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12246 find out it does not work in some platform. */
12247#ifndef LT_DLLAZY_OR_NOW
12248# ifdef RTLD_LAZY
12249# define LT_DLLAZY_OR_NOW RTLD_LAZY
12250# else
12251# ifdef DL_LAZY
12252# define LT_DLLAZY_OR_NOW DL_LAZY
12253# else
12254# ifdef RTLD_NOW
12255# define LT_DLLAZY_OR_NOW RTLD_NOW
12256# else
12257# ifdef DL_NOW
12258# define LT_DLLAZY_OR_NOW DL_NOW
12259# else
12260# define LT_DLLAZY_OR_NOW 0
12261# endif
12262# endif
12263# endif
12264# endif
12265#endif
12266
12267#ifdef __cplusplus
12268extern "C" void exit (int);
12269#endif
12270
12271void fnord() { int i=42;}
12272int main ()
12273{
12274 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12275 int status = $lt_dlunknown;
12276
12277 if (self)
12278 {
12279 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12280 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12281 /* dlclose (self); */
12282 }
12283
12284 exit (status);
12285}
12286EOF
12287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12288 (eval $ac_link) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12292 (./conftest; exit; ) 2>/dev/null
12293 lt_status=$?
12294 case x$lt_status in
12295 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12296 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12297 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12298 esac
12299 else :
12300 # compilation failed
12301 lt_cv_dlopen_self_static=no
12302 fi
12303fi
12304rm -fr conftest*
12305
12306
12307fi
12308echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12309echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12310 fi
12311
12312 CPPFLAGS="$save_CPPFLAGS"
12313 LDFLAGS="$save_LDFLAGS"
12314 LIBS="$save_LIBS"
12315 ;;
12316 esac
12317
12318 case $lt_cv_dlopen_self in
12319 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12320 *) enable_dlopen_self=unknown ;;
12321 esac
12322
12323 case $lt_cv_dlopen_self_static in
12324 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12325 *) enable_dlopen_self_static=unknown ;;
12326 esac
12327fi
12328
12329
12330# The else clause should only fire when bootstrapping the
12331# libtool distribution, otherwise you forgot to ship ltmain.sh
12332# with your package, and you will get complaints that there are
12333# no rules to generate ltmain.sh.
12334if test -f "$ltmain"; then
12335 # See if we are running on zsh, and set the options which allow our commands through
12336 # without removal of \ escapes.
12337 if test -n "${ZSH_VERSION+set}" ; then
12338 setopt NO_GLOB_SUBST
12339 fi
12340 # Now quote all the things that may contain metacharacters while being
12341 # careful not to overquote the AC_SUBSTed values. We take copies of the
12342 # variables and quote the copies for generation of the libtool script.
12343 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12344 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12345 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12346 deplibs_check_method reload_flag reload_cmds need_locks \
12347 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12348 lt_cv_sys_global_symbol_to_c_name_address \
12349 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12350 old_postinstall_cmds old_postuninstall_cmds \
12351 compiler_CXX \
12352 CC_CXX \
12353 LD_CXX \
12354 lt_prog_compiler_wl_CXX \
12355 lt_prog_compiler_pic_CXX \
12356 lt_prog_compiler_static_CXX \
12357 lt_prog_compiler_no_builtin_flag_CXX \
12358 export_dynamic_flag_spec_CXX \
12359 thread_safe_flag_spec_CXX \
12360 whole_archive_flag_spec_CXX \
12361 enable_shared_with_static_runtimes_CXX \
12362 old_archive_cmds_CXX \
12363 old_archive_from_new_cmds_CXX \
12364 predep_objects_CXX \
12365 postdep_objects_CXX \
12366 predeps_CXX \
12367 postdeps_CXX \
12368 compiler_lib_search_path_CXX \
12369 archive_cmds_CXX \
12370 archive_expsym_cmds_CXX \
12371 postinstall_cmds_CXX \
12372 postuninstall_cmds_CXX \
12373 old_archive_from_expsyms_cmds_CXX \
12374 allow_undefined_flag_CXX \
12375 no_undefined_flag_CXX \
12376 export_symbols_cmds_CXX \
12377 hardcode_libdir_flag_spec_CXX \
12378 hardcode_libdir_flag_spec_ld_CXX \
12379 hardcode_libdir_separator_CXX \
12380 hardcode_automatic_CXX \
12381 module_cmds_CXX \
12382 module_expsym_cmds_CXX \
12383 lt_cv_prog_compiler_c_o_CXX \
12384 exclude_expsyms_CXX \
12385 include_expsyms_CXX; do
12386
12387 case $var in
12388 old_archive_cmds_CXX | \
12389 old_archive_from_new_cmds_CXX | \
12390 archive_cmds_CXX | \
12391 archive_expsym_cmds_CXX | \
12392 module_cmds_CXX | \
12393 module_expsym_cmds_CXX | \
12394 old_archive_from_expsyms_cmds_CXX | \
12395 export_symbols_cmds_CXX | \
12396 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12397 postinstall_cmds | postuninstall_cmds | \
12398 old_postinstall_cmds | old_postuninstall_cmds | \
12399 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12400 # Double-quote double-evaled strings.
12401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12402 ;;
12403 *)
12404 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12405 ;;
12406 esac
12407 done
12408
12409 case $lt_echo in
12410 *'\$0 --fallback-echo"')
12411 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12412 ;;
12413 esac
12414
12415cfgfile="$ofile"
12416
12417 cat <<__EOF__ >> "$cfgfile"
12418# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12419
12420# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12421
12422# Shell to use when invoking shell scripts.
12423SHELL=$lt_SHELL
12424
12425# Whether or not to build shared libraries.
12426build_libtool_libs=$enable_shared
12427
12428# Whether or not to build static libraries.
12429build_old_libs=$enable_static
12430
12431# Whether or not to add -lc for building shared libraries.
12432build_libtool_need_lc=$archive_cmds_need_lc_CXX
12433
12434# Whether or not to disallow shared libs when runtime libs are static
12435allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12436
12437# Whether or not to optimize for fast installation.
12438fast_install=$enable_fast_install
12439
12440# The host system.
12441host_alias=$host_alias
12442host=$host
12443
12444# An echo program that does not interpret backslashes.
12445echo=$lt_echo
12446
12447# The archiver.
12448AR=$lt_AR
12449AR_FLAGS=$lt_AR_FLAGS
12450
12451# A C compiler.
12452LTCC=$lt_LTCC
12453
12454# A language-specific compiler.
12455CC=$lt_compiler_CXX
12456
12457# Is the compiler the GNU C compiler?
12458with_gcc=$GCC_CXX
12459
12460# An ERE matcher.
12461EGREP=$lt_EGREP
12462
12463# The linker used to build libraries.
12464LD=$lt_LD_CXX
12465
12466# Whether we need hard or soft links.
12467LN_S=$lt_LN_S
12468
12469# A BSD-compatible nm program.
12470NM=$lt_NM
12471
12472# A symbol stripping program
12473STRIP=$STRIP
12474
12475# Used to examine libraries when file_magic_cmd begins "file"
12476MAGIC_CMD=$MAGIC_CMD
12477
12478# Used on cygwin: DLL creation program.
12479DLLTOOL="$DLLTOOL"
12480
12481# Used on cygwin: object dumper.
12482OBJDUMP="$OBJDUMP"
12483
12484# Used on cygwin: assembler.
12485AS="$AS"
12486
12487# The name of the directory that contains temporary libtool files.
12488objdir=$objdir
12489
12490# How to create reloadable object files.
12491reload_flag=$lt_reload_flag
12492reload_cmds=$lt_reload_cmds
12493
12494# How to pass a linker flag through the compiler.
12495wl=$lt_lt_prog_compiler_wl_CXX
12496
12497# Object file suffix (normally "o").
12498objext="$ac_objext"
12499
12500# Old archive suffix (normally "a").
12501libext="$libext"
12502
12503# Shared library suffix (normally ".so").
12504shrext='$shrext'
12505
12506# Executable file suffix (normally "").
12507exeext="$exeext"
12508
12509# Additional compiler flags for building library objects.
12510pic_flag=$lt_lt_prog_compiler_pic_CXX
12511pic_mode=$pic_mode
12512
12513# What is the maximum length of a command?
12514max_cmd_len=$lt_cv_sys_max_cmd_len
12515
12516# Does compiler simultaneously support -c and -o options?
12517compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12518
12519# Must we lock files when doing compilation ?
12520need_locks=$lt_need_locks
12521
12522# Do we need the lib prefix for modules?
12523need_lib_prefix=$need_lib_prefix
12524
12525# Do we need a version for libraries?
12526need_version=$need_version
12527
12528# Whether dlopen is supported.
12529dlopen_support=$enable_dlopen
12530
12531# Whether dlopen of programs is supported.
12532dlopen_self=$enable_dlopen_self
12533
12534# Whether dlopen of statically linked programs is supported.
12535dlopen_self_static=$enable_dlopen_self_static
12536
12537# Compiler flag to prevent dynamic linking.
12538link_static_flag=$lt_lt_prog_compiler_static_CXX
12539
12540# Compiler flag to turn off builtin functions.
12541no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12542
12543# Compiler flag to allow reflexive dlopens.
12544export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12545
12546# Compiler flag to generate shared objects directly from archives.
12547whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12548
12549# Compiler flag to generate thread-safe objects.
12550thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12551
12552# Library versioning type.
12553version_type=$version_type
12554
12555# Format of library name prefix.
12556libname_spec=$lt_libname_spec
12557
12558# List of archive names. First name is the real one, the rest are links.
12559# The last name is the one that the linker finds with -lNAME.
12560library_names_spec=$lt_library_names_spec
12561
12562# The coded name of the library, if different from the real name.
12563soname_spec=$lt_soname_spec
12564
12565# Commands used to build and install an old-style archive.
12566RANLIB=$lt_RANLIB
12567old_archive_cmds=$lt_old_archive_cmds_CXX
12568old_postinstall_cmds=$lt_old_postinstall_cmds
12569old_postuninstall_cmds=$lt_old_postuninstall_cmds
12570
12571# Create an old-style archive from a shared archive.
12572old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12573
12574# Create a temporary old-style archive to link instead of a shared archive.
12575old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12576
12577# Commands used to build and install a shared archive.
12578archive_cmds=$lt_archive_cmds_CXX
12579archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12580postinstall_cmds=$lt_postinstall_cmds
12581postuninstall_cmds=$lt_postuninstall_cmds
12582
12583# Commands used to build a loadable module (assumed same as above if empty)
12584module_cmds=$lt_module_cmds_CXX
12585module_expsym_cmds=$lt_module_expsym_cmds_CXX
12586
12587# Commands to strip libraries.
12588old_striplib=$lt_old_striplib
12589striplib=$lt_striplib
12590
12591# Dependencies to place before the objects being linked to create a
12592# shared library.
12593predep_objects=$lt_predep_objects_CXX
12594
12595# Dependencies to place after the objects being linked to create a
12596# shared library.
12597postdep_objects=$lt_postdep_objects_CXX
12598
12599# Dependencies to place before the objects being linked to create a
12600# shared library.
12601predeps=$lt_predeps_CXX
12602
12603# Dependencies to place after the objects being linked to create a
12604# shared library.
12605postdeps=$lt_postdeps_CXX
12606
12607# The library search path used internally by the compiler when linking
12608# a shared library.
12609compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12610
12611# Method to check whether dependent libraries are shared objects.
12612deplibs_check_method=$lt_deplibs_check_method
12613
12614# Command to use when deplibs_check_method == file_magic.
12615file_magic_cmd=$lt_file_magic_cmd
12616
12617# Flag that allows shared libraries with undefined symbols to be built.
12618allow_undefined_flag=$lt_allow_undefined_flag_CXX
12619
12620# Flag that forces no undefined symbols.
12621no_undefined_flag=$lt_no_undefined_flag_CXX
12622
12623# Commands used to finish a libtool library installation in a directory.
12624finish_cmds=$lt_finish_cmds
12625
12626# Same as above, but a single script fragment to be evaled but not shown.
12627finish_eval=$lt_finish_eval
12628
12629# Take the output of nm and produce a listing of raw symbols and C names.
12630global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12631
12632# Transform the output of nm in a proper C declaration
12633global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12634
12635# Transform the output of nm in a C name address pair
12636global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12637
12638# This is the shared library runtime path variable.
12639runpath_var=$runpath_var
12640
12641# This is the shared library path variable.
12642shlibpath_var=$shlibpath_var
12643
12644# Is shlibpath searched before the hard-coded library search path?
12645shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12646
12647# How to hardcode a shared library path into an executable.
12648hardcode_action=$hardcode_action_CXX
12649
12650# Whether we should hardcode library paths into libraries.
12651hardcode_into_libs=$hardcode_into_libs
12652
12653# Flag to hardcode \$libdir into a binary during linking.
12654# This must work even if \$libdir does not exist.
12655hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12656
12657# If ld is used when linking, flag to hardcode \$libdir into
12658# a binary during linking. This must work even if \$libdir does
12659# not exist.
12660hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12661
12662# Whether we need a single -rpath flag with a separated argument.
12663hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12664
12665# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12666# resulting binary.
12667hardcode_direct=$hardcode_direct_CXX
12668
12669# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12670# resulting binary.
12671hardcode_minus_L=$hardcode_minus_L_CXX
12672
12673# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12674# the resulting binary.
12675hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12676
12677# Set to yes if building a shared library automatically hardcodes DIR into the library
12678# and all subsequent libraries and executables linked against it.
12679hardcode_automatic=$hardcode_automatic_CXX
12680
12681# Variables whose values should be saved in libtool wrapper scripts and
12682# restored at relink time.
12683variables_saved_for_relink="$variables_saved_for_relink"
12684
12685# Whether libtool must link a program against all its dependency libraries.
12686link_all_deplibs=$link_all_deplibs_CXX
12687
12688# Compile-time system search path for libraries
12689sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12690
12691# Run-time system search path for libraries
12692sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12693
12694# Fix the shell variable \$srcfile for the compiler.
12695fix_srcfile_path="$fix_srcfile_path_CXX"
12696
12697# Set to yes if exported symbols are required.
12698always_export_symbols=$always_export_symbols_CXX
12699
12700# The commands to list exported symbols.
12701export_symbols_cmds=$lt_export_symbols_cmds_CXX
12702
12703# The commands to extract the exported symbol list from a shared archive.
12704extract_expsyms_cmds=$lt_extract_expsyms_cmds
12705
12706# Symbols that should not be listed in the preloaded symbols.
12707exclude_expsyms=$lt_exclude_expsyms_CXX
12708
12709# Symbols that must always be exported.
12710include_expsyms=$lt_include_expsyms_CXX
12711
12712# ### END LIBTOOL TAG CONFIG: $tagname
12713
12714__EOF__
12715
12716
12717else
12718 # If there is no Makefile yet, we rely on a make rule to execute
12719 # `config.status --recheck' to rerun these tests and create the
12720 # libtool script then.
12721 test -f Makefile && make "$ltmain"
12722fi
12723
12724
12725ac_ext=c
12726ac_cpp='$CPP $CPPFLAGS'
12727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12729ac_compiler_gnu=$ac_cv_c_compiler_gnu
12730
12731CC=$lt_save_CC
12732LDCXX=$LD
12733LD=$lt_save_LD
12734GCC=$lt_save_GCC
12735with_gnu_ldcxx=$with_gnu_ld
12736with_gnu_ld=$lt_save_with_gnu_ld
12737lt_cv_path_LDCXX=$lt_cv_path_LD
12738lt_cv_path_LD=$lt_save_path_LD
12739lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12740lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12741
12742 else
12743 tagname=""
12744 fi
12745 ;;
12746
12747 F77)
12748 if test -n "$F77" && test "X$F77" != "Xno"; then
12749
12750ac_ext=f
12751ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12752ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12753ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12754
12755
12756archive_cmds_need_lc_F77=no
12757allow_undefined_flag_F77=
12758always_export_symbols_F77=no
12759archive_expsym_cmds_F77=
12760export_dynamic_flag_spec_F77=
12761hardcode_direct_F77=no
12762hardcode_libdir_flag_spec_F77=
12763hardcode_libdir_flag_spec_ld_F77=
12764hardcode_libdir_separator_F77=
12765hardcode_minus_L_F77=no
12766hardcode_automatic_F77=no
12767module_cmds_F77=
12768module_expsym_cmds_F77=
12769link_all_deplibs_F77=unknown
12770old_archive_cmds_F77=$old_archive_cmds
12771no_undefined_flag_F77=
12772whole_archive_flag_spec_F77=
12773enable_shared_with_static_runtimes_F77=no
12774
12775# Source file extension for f77 test sources.
12776ac_ext=f
12777
12778# Object file extension for compiled f77 test sources.
12779objext=o
12780objext_F77=$objext
12781
12782# Code to be used in simple compile tests
12783lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12784
12785# Code to be used in simple link tests
12786lt_simple_link_test_code=" program t\n end\n"
12787
12788# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12789
12790# If no C compiler was specified, use CC.
12791LTCC=${LTCC-"$CC"}
12792
12793# Allow CC to be a program name with arguments.
12794compiler=$CC
12795
12796
12797# Allow CC to be a program name with arguments.
12798lt_save_CC="$CC"
12799CC=${F77-"f77"}
12800compiler=$CC
12801compiler_F77=$CC
12802cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12803
12804echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12805echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12806echo "$as_me:$LINENO: result: $can_build_shared" >&5
12807echo "${ECHO_T}$can_build_shared" >&6
12808
12809echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12810echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12811test "$can_build_shared" = "no" && enable_shared=no
12812
12813# On AIX, shared libraries and static libraries use the same namespace, and
12814# are all built from PIC.
12815case "$host_os" in
12816aix3*)
12817 test "$enable_shared" = yes && enable_static=no
12818 if test -n "$RANLIB"; then
12819 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12820 postinstall_cmds='$RANLIB $lib'
12821 fi
12822 ;;
12823aix4*)
12824 test "$enable_shared" = yes && enable_static=no
12825 ;;
12826esac
12827echo "$as_me:$LINENO: result: $enable_shared" >&5
12828echo "${ECHO_T}$enable_shared" >&6
12829
12830echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12831echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12832# Make sure either enable_shared or enable_static is yes.
12833test "$enable_shared" = yes || enable_static=yes
12834echo "$as_me:$LINENO: result: $enable_static" >&5
12835echo "${ECHO_T}$enable_static" >&6
12836
12837test "$ld_shlibs_F77" = no && can_build_shared=no
12838
12839GCC_F77="$G77"
12840LD_F77="$LD"
12841
12842lt_prog_compiler_wl_F77=
12843lt_prog_compiler_pic_F77=
12844lt_prog_compiler_static_F77=
12845
12846echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12847echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12848
12849 if test "$GCC" = yes; then
12850 lt_prog_compiler_wl_F77='-Wl,'
12851 lt_prog_compiler_static_F77='-static'
12852
12853 case $host_os in
12854 aix*)
12855 # All AIX code is PIC.
12856 if test "$host_cpu" = ia64; then
12857 # AIX 5 now supports IA64 processor
12858 lt_prog_compiler_static_F77='-Bstatic'
12859 fi
12860 ;;
12861
12862 amigaos*)
12863 # FIXME: we need at least 68020 code to build shared libraries, but
12864 # adding the `-m68020' flag to GCC prevents building anything better,
12865 # like `-m68040'.
12866 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12867 ;;
12868
12869 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12870 # PIC is the default for these OSes.
12871 ;;
12872
12873 mingw* | pw32* | os2*)
12874 # This hack is so that the source file can tell whether it is being
12875 # built for inclusion in a dll (and should export symbols for example).
12876 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12877 ;;
12878
12879 darwin* | rhapsody*)
12880 # PIC is the default on this platform
12881 # Common symbols not allowed in MH_DYLIB files
12882 lt_prog_compiler_pic_F77='-fno-common'
12883 ;;
12884
12885 msdosdjgpp*)
12886 # Just because we use GCC doesn't mean we suddenly get shared libraries
12887 # on systems that don't support them.
12888 lt_prog_compiler_can_build_shared_F77=no
12889 enable_shared=no
12890 ;;
12891
12892 sysv4*MP*)
12893 if test -d /usr/nec; then
12894 lt_prog_compiler_pic_F77=-Kconform_pic
12895 fi
12896 ;;
12897
12898 hpux*)
12899 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12900 # not for PA HP-UX.
12901 case "$host_cpu" in
12902 hppa*64*|ia64*)
12903 # +Z the default
12904 ;;
12905 *)
12906 lt_prog_compiler_pic_F77='-fPIC'
12907 ;;
12908 esac
12909 ;;
12910
12911 *)
12912 lt_prog_compiler_pic_F77='-fPIC'
12913 ;;
12914 esac
12915 else
12916 # PORTME Check for flag to pass linker flags through the system compiler.
12917 case $host_os in
12918 aix*)
12919 lt_prog_compiler_wl_F77='-Wl,'
12920 if test "$host_cpu" = ia64; then
12921 # AIX 5 now supports IA64 processor
12922 lt_prog_compiler_static_F77='-Bstatic'
12923 else
12924 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12925 fi
12926 ;;
12927
12928 mingw* | pw32* | os2*)
12929 # This hack is so that the source file can tell whether it is being
12930 # built for inclusion in a dll (and should export symbols for example).
12931 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12932 ;;
12933
12934 hpux9* | hpux10* | hpux11*)
12935 lt_prog_compiler_wl_F77='-Wl,'
12936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12937 # not for PA HP-UX.
12938 case "$host_cpu" in
12939 hppa*64*|ia64*)
12940 # +Z the default
12941 ;;
12942 *)
12943 lt_prog_compiler_pic_F77='+Z'
12944 ;;
12945 esac
12946 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12947 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12948 ;;
12949
12950 irix5* | irix6* | nonstopux*)
12951 lt_prog_compiler_wl_F77='-Wl,'
12952 # PIC (with -KPIC) is the default.
12953 lt_prog_compiler_static_F77='-non_shared'
12954 ;;
12955
12956 newsos6)
12957 lt_prog_compiler_pic_F77='-KPIC'
12958 lt_prog_compiler_static_F77='-Bstatic'
12959 ;;
12960
12961 linux*)
12962 case $CC in
12963 icc|ecc)
12964 lt_prog_compiler_wl_F77='-Wl,'
12965 lt_prog_compiler_pic_F77='-KPIC'
12966 lt_prog_compiler_static_F77='-static'
12967 ;;
12968 ccc)
12969 lt_prog_compiler_wl_F77='-Wl,'
12970 # All Alpha code is PIC.
12971 lt_prog_compiler_static_F77='-non_shared'
12972 ;;
12973 esac
12974 ;;
12975
12976 osf3* | osf4* | osf5*)
12977 lt_prog_compiler_wl_F77='-Wl,'
12978 # All OSF/1 code is PIC.
12979 lt_prog_compiler_static_F77='-non_shared'
12980 ;;
12981
12982 sco3.2v5*)
12983 lt_prog_compiler_pic_F77='-Kpic'
12984 lt_prog_compiler_static_F77='-dn'
12985 ;;
12986
12987 solaris*)
12988 lt_prog_compiler_wl_F77='-Wl,'
12989 lt_prog_compiler_pic_F77='-KPIC'
12990 lt_prog_compiler_static_F77='-Bstatic'
12991 ;;
12992
12993 sunos4*)
12994 lt_prog_compiler_wl_F77='-Qoption ld '
12995 lt_prog_compiler_pic_F77='-PIC'
12996 lt_prog_compiler_static_F77='-Bstatic'
12997 ;;
12998
12999 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13000 lt_prog_compiler_wl_F77='-Wl,'
13001 lt_prog_compiler_pic_F77='-KPIC'
13002 lt_prog_compiler_static_F77='-Bstatic'
13003 ;;
13004
13005 sysv4*MP*)
13006 if test -d /usr/nec ;then
13007 lt_prog_compiler_pic_F77='-Kconform_pic'
13008 lt_prog_compiler_static_F77='-Bstatic'
13009 fi
13010 ;;
13011
13012 uts4*)
13013 lt_prog_compiler_pic_F77='-pic'
13014 lt_prog_compiler_static_F77='-Bstatic'
13015 ;;
13016
13017 *)
13018 lt_prog_compiler_can_build_shared_F77=no
13019 ;;
13020 esac
13021 fi
13022
13023echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13024echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13025
13026#
13027# Check to make sure the PIC flag actually works.
13028#
13029if test -n "$lt_prog_compiler_pic_F77"; then
13030 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13031echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13032if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034else
13035 lt_prog_compiler_pic_works_F77=no
13036 ac_outfile=conftest.$ac_objext
13037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13038 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13039 # Insert the option either (1) after the last *FLAGS variable, or
13040 # (2) before a word containing "conftest.", or (3) at the end.
13041 # Note that $ac_compile itself does not contain backslashes and begins
13042 # with a dollar sign (not a hyphen), so the echo should work correctly.
13043 # The option is referenced via a variable to avoid confusing sed.
13044 lt_compile=`echo "$ac_compile" | $SED \
13045 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13047 -e 's:$: $lt_compiler_flag:'`
John Criswell12399a12003-09-30 15:55:44 +000013048 (eval echo "\"\$as_me:13048: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013049 (eval "$lt_compile" 2>conftest.err)
13050 ac_status=$?
13051 cat conftest.err >&5
John Criswell12399a12003-09-30 15:55:44 +000013052 echo "$as_me:13052: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013053 if (exit $ac_status) && test -s "$ac_outfile"; then
13054 # The compiler can only warn and ignore the option if not recognized
13055 # So say no if there are warnings
13056 if test ! -s conftest.err; then
13057 lt_prog_compiler_pic_works_F77=yes
13058 fi
13059 fi
13060 $rm conftest*
13061
13062fi
13063echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13064echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13065
13066if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13067 case $lt_prog_compiler_pic_F77 in
13068 "" | " "*) ;;
13069 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13070 esac
13071else
13072 lt_prog_compiler_pic_F77=
13073 lt_prog_compiler_can_build_shared_F77=no
13074fi
13075
13076fi
13077case "$host_os" in
13078 # For platforms which do not support PIC, -DPIC is meaningless:
13079 *djgpp*)
13080 lt_prog_compiler_pic_F77=
13081 ;;
13082 *)
13083 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13084 ;;
13085esac
13086
13087echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13088echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13089if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13091else
13092 lt_cv_prog_compiler_c_o_F77=no
13093 $rm -r conftest 2>/dev/null
13094 mkdir conftest
13095 cd conftest
13096 mkdir out
13097 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13098
13099 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13100 # that will create temporary files in the current directory regardless of
13101 # the output directory. Thus, making CWD read-only will cause this test
13102 # to fail, enabling locking or at least warning the user not to do parallel
13103 # builds.
13104 chmod -w .
13105
13106 lt_compiler_flag="-o out/conftest2.$ac_objext"
13107 # Insert the option either (1) after the last *FLAGS variable, or
13108 # (2) before a word containing "conftest.", or (3) at the end.
13109 # Note that $ac_compile itself does not contain backslashes and begins
13110 # with a dollar sign (not a hyphen), so the echo should work correctly.
13111 lt_compile=`echo "$ac_compile" | $SED \
13112 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13114 -e 's:$: $lt_compiler_flag:'`
John Criswell12399a12003-09-30 15:55:44 +000013115 (eval echo "\"\$as_me:13115: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013116 (eval "$lt_compile" 2>out/conftest.err)
13117 ac_status=$?
13118 cat out/conftest.err >&5
John Criswell12399a12003-09-30 15:55:44 +000013119 echo "$as_me:13119: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13121 then
13122 # The compiler can only warn and ignore the option if not recognized
13123 # So say no if there are warnings
13124 if test ! -s out/conftest.err; then
13125 lt_cv_prog_compiler_c_o_F77=yes
13126 fi
13127 fi
13128 chmod u+w .
13129 $rm conftest* out/*
13130 rmdir out
13131 cd ..
13132 rmdir conftest
13133 $rm conftest*
13134
13135fi
13136echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13137echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13138
13139
13140hard_links="nottested"
13141if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13142 # do not overwrite the value of need_locks provided by the user
13143 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13144echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13145 hard_links=yes
13146 $rm conftest*
13147 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13148 touch conftest.a
13149 ln conftest.a conftest.b 2>&5 || hard_links=no
13150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13151 echo "$as_me:$LINENO: result: $hard_links" >&5
13152echo "${ECHO_T}$hard_links" >&6
13153 if test "$hard_links" = no; then
13154 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13155echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13156 need_locks=warn
13157 fi
13158else
13159 need_locks=no
13160fi
13161
13162echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13163echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13164
13165 runpath_var=
13166 allow_undefined_flag_F77=
13167 enable_shared_with_static_runtimes_F77=no
13168 archive_cmds_F77=
13169 archive_expsym_cmds_F77=
13170 old_archive_From_new_cmds_F77=
13171 old_archive_from_expsyms_cmds_F77=
13172 export_dynamic_flag_spec_F77=
13173 whole_archive_flag_spec_F77=
13174 thread_safe_flag_spec_F77=
13175 hardcode_libdir_flag_spec_F77=
13176 hardcode_libdir_flag_spec_ld_F77=
13177 hardcode_libdir_separator_F77=
13178 hardcode_direct_F77=no
13179 hardcode_minus_L_F77=no
13180 hardcode_shlibpath_var_F77=unsupported
13181 link_all_deplibs_F77=unknown
13182 hardcode_automatic_F77=no
13183 module_cmds_F77=
13184 module_expsym_cmds_F77=
13185 always_export_symbols_F77=no
13186 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13187 # include_expsyms should be a list of space-separated symbols to be *always*
13188 # included in the symbol list
13189 include_expsyms_F77=
13190 # exclude_expsyms can be an extended regexp of symbols to exclude
13191 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13192 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13193 # as well as any symbol that contains `d'.
13194 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13195 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13196 # platforms (ab)use it in PIC code, but their linkers get confused if
13197 # the symbol is explicitly referenced. Since portable code cannot
13198 # rely on this symbol name, it's probably fine to never include it in
13199 # preloaded symbol tables.
13200 extract_expsyms_cmds=
13201
13202 case $host_os in
13203 cygwin* | mingw* | pw32*)
13204 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13205 # When not using gcc, we currently assume that we are using
13206 # Microsoft Visual C++.
13207 if test "$GCC" != yes; then
13208 with_gnu_ld=no
13209 fi
13210 ;;
13211 openbsd*)
13212 with_gnu_ld=no
13213 ;;
13214 esac
13215
13216 ld_shlibs_F77=yes
13217 if test "$with_gnu_ld" = yes; then
13218 # If archive_cmds runs LD, not CC, wlarc should be empty
13219 wlarc='${wl}'
13220
13221 # See if GNU ld supports shared libraries.
13222 case $host_os in
13223 aix3* | aix4* | aix5*)
13224 # On AIX/PPC, the GNU linker is very broken
13225 if test "$host_cpu" != ia64; then
13226 ld_shlibs_F77=no
13227 cat <<EOF 1>&2
13228
13229*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13230*** to be unable to reliably create shared libraries on AIX.
13231*** Therefore, libtool is disabling shared libraries support. If you
13232*** really care for shared libraries, you may want to modify your PATH
13233*** so that a non-GNU linker is found, and then restart.
13234
13235EOF
13236 fi
13237 ;;
13238
13239 amigaos*)
13240 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)'
13241 hardcode_libdir_flag_spec_F77='-L$libdir'
13242 hardcode_minus_L_F77=yes
13243
13244 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13245 # that the semantics of dynamic libraries on AmigaOS, at least up
13246 # to version 4, is to share data among multiple programs linked
13247 # with the same dynamic library. Since this doesn't match the
13248 # behavior of shared libraries on other platforms, we can't use
13249 # them.
13250 ld_shlibs_F77=no
13251 ;;
13252
13253 beos*)
13254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13255 allow_undefined_flag_F77=unsupported
13256 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13257 # support --undefined. This deserves some investigation. FIXME
13258 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13259 else
13260 ld_shlibs_F77=no
13261 fi
13262 ;;
13263
13264 cygwin* | mingw* | pw32*)
13265 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13266 # as there is no search path for DLLs.
13267 hardcode_libdir_flag_spec_F77='-L$libdir'
13268 allow_undefined_flag_F77=unsupported
13269 always_export_symbols_F77=no
13270 enable_shared_with_static_runtimes_F77=yes
13271 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13272
13273 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13274 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13275 # If the export-symbols file already is a .def file (1st line
13276 # is EXPORTS), use it as is; otherwise, prepend...
13277 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13278 cp $export_symbols $output_objdir/$soname.def;
13279 else
13280 echo EXPORTS > $output_objdir/$soname.def;
13281 cat $export_symbols >> $output_objdir/$soname.def;
13282 fi~
13283 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13284 else
13285 ld_shlibs=no
13286 fi
13287 ;;
13288
13289 netbsd*)
13290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13291 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13292 wlarc=
13293 else
13294 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13295 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13296 fi
13297 ;;
13298
13299 solaris* | sysv5*)
13300 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13301 ld_shlibs_F77=no
13302 cat <<EOF 1>&2
13303
13304*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13305*** create shared libraries on Solaris systems. Therefore, libtool
13306*** is disabling shared libraries support. We urge you to upgrade GNU
13307*** binutils to release 2.9.1 or newer. Another option is to modify
13308*** your PATH or compiler configuration so that the native linker is
13309*** used, and then restart.
13310
13311EOF
13312 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13313 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13314 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13315 else
13316 ld_shlibs_F77=no
13317 fi
13318 ;;
13319
13320 sunos4*)
13321 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13322 wlarc=
13323 hardcode_direct_F77=yes
13324 hardcode_shlibpath_var_F77=no
13325 ;;
13326
13327 *)
13328 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13329 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13330 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13331 else
13332 ld_shlibs_F77=no
13333 fi
13334 ;;
13335 esac
13336
13337 if test "$ld_shlibs_F77" = yes; then
13338 runpath_var=LD_RUN_PATH
13339 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13340 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13341 # ancient GNU ld didn't support --whole-archive et. al.
13342 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13343 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13344 else
13345 whole_archive_flag_spec_F77=
13346 fi
13347 fi
13348 else
13349 # PORTME fill in a description of your system's linker (not GNU ld)
13350 case $host_os in
13351 aix3*)
13352 allow_undefined_flag_F77=unsupported
13353 always_export_symbols_F77=yes
13354 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'
13355 # Note: this linker hardcodes the directories in LIBPATH if there
13356 # are no directories specified by -L.
13357 hardcode_minus_L_F77=yes
13358 if test "$GCC" = yes && test -z "$link_static_flag"; then
13359 # Neither direct hardcoding nor static linking is supported with a
13360 # broken collect2.
13361 hardcode_direct_F77=unsupported
13362 fi
13363 ;;
13364
13365 aix4* | aix5*)
13366 if test "$host_cpu" = ia64; then
13367 # On IA64, the linker does run time linking by default, so we don't
13368 # have to do anything special.
13369 aix_use_runtimelinking=no
13370 exp_sym_flag='-Bexport'
13371 no_entry_flag=""
13372 else
13373 # If we're using GNU nm, then we don't want the "-C" option.
13374 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13375 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13376 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'
13377 else
13378 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'
13379 fi
13380 aix_use_runtimelinking=no
13381
13382 # Test if we are trying to use run time linking or normal
13383 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13384 # need to do runtime linking.
13385 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13386 for ld_flag in $LDFLAGS; do
13387 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13388 aix_use_runtimelinking=yes
13389 break
13390 fi
13391 done
13392 esac
13393
13394 exp_sym_flag='-bexport'
13395 no_entry_flag='-bnoentry'
13396 fi
13397
13398 # When large executables or shared objects are built, AIX ld can
13399 # have problems creating the table of contents. If linking a library
13400 # or program results in "error TOC overflow" add -mminimal-toc to
13401 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13402 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13403
13404 archive_cmds_F77=''
13405 hardcode_direct_F77=yes
13406 hardcode_libdir_separator_F77=':'
13407 link_all_deplibs_F77=yes
13408
13409 if test "$GCC" = yes; then
13410 case $host_os in aix4.012|aix4.012.*)
13411 # We only want to do this on AIX 4.2 and lower, the check
13412 # below for broken collect2 doesn't work under 4.3+
13413 collect2name=`${CC} -print-prog-name=collect2`
13414 if test -f "$collect2name" && \
13415 strings "$collect2name" | grep resolve_lib_name >/dev/null
13416 then
13417 # We have reworked collect2
13418 hardcode_direct_F77=yes
13419 else
13420 # We have old collect2
13421 hardcode_direct_F77=unsupported
13422 # It fails to find uninstalled libraries when the uninstalled
13423 # path is not listed in the libpath. Setting hardcode_minus_L
13424 # to unsupported forces relinking
13425 hardcode_minus_L_F77=yes
13426 hardcode_libdir_flag_spec_F77='-L$libdir'
13427 hardcode_libdir_separator_F77=
13428 fi
13429 esac
13430 shared_flag='-shared'
13431 else
13432 # not using gcc
13433 if test "$host_cpu" = ia64; then
13434 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13435 # chokes on -Wl,-G. The following line is correct:
13436 shared_flag='-G'
13437 else
13438 if test "$aix_use_runtimelinking" = yes; then
13439 shared_flag='${wl}-G'
13440 else
13441 shared_flag='${wl}-bM:SRE'
13442 fi
13443 fi
13444 fi
13445
13446 # It seems that -bexpall does not export symbols beginning with
13447 # underscore (_), so it is better to generate a list of symbols to export.
13448 always_export_symbols_F77=yes
13449 if test "$aix_use_runtimelinking" = yes; then
13450 # Warning - without using the other runtime loading flags (-brtl),
13451 # -berok will link without error, but may produce a broken library.
13452 allow_undefined_flag_F77='-berok'
13453 # Determine the default libpath from the value encoded in an empty executable.
13454 cat >conftest.$ac_ext <<_ACEOF
13455 program main
13456
13457 end
13458_ACEOF
13459rm -f conftest.$ac_objext conftest$ac_exeext
13460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13461 (eval $ac_link) 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -s conftest$ac_exeext'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471
13472aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13473}'`
13474# Check for a 64-bit object if we didn't find anything.
13475if 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; }
13476}'`; fi
13477else
13478 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013479sed 's/^/| /' conftest.$ac_ext >&5
13480
John Criswell47fdd832003-07-14 16:52:07 +000013481fi
13482rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13483if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13484
13485 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13486 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"
13487 else
13488 if test "$host_cpu" = ia64; then
13489 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13490 allow_undefined_flag_F77="-z nodefs"
13491 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"
13492 else
13493 # Determine the default libpath from the value encoded in an empty executable.
13494 cat >conftest.$ac_ext <<_ACEOF
13495 program main
13496
13497 end
13498_ACEOF
13499rm -f conftest.$ac_objext conftest$ac_exeext
13500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13501 (eval $ac_link) 2>&5
13502 ac_status=$?
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
13505 { ac_try='test -s conftest$ac_exeext'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13511
13512aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13513}'`
13514# Check for a 64-bit object if we didn't find anything.
13515if 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; }
13516}'`; fi
13517else
13518 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013519sed 's/^/| /' conftest.$ac_ext >&5
13520
John Criswell47fdd832003-07-14 16:52:07 +000013521fi
13522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13524
13525 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13526 # Warning - without using the other run time loading flags,
13527 # -berok will link without error, but may produce a broken library.
13528 no_undefined_flag_F77=' ${wl}-bernotok'
13529 allow_undefined_flag_F77=' ${wl}-berok'
13530 # -bexpall does not export symbols beginning with underscore (_)
13531 always_export_symbols_F77=yes
13532 # Exported symbols can be pulled into shared objects from archives
13533 whole_archive_flag_spec_F77=' '
13534 archive_cmds_need_lc_F77=yes
13535 # This is similar to how AIX traditionally builds it's shared libraries.
13536 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'
13537 fi
13538 fi
13539 ;;
13540
13541 amigaos*)
13542 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)'
13543 hardcode_libdir_flag_spec_F77='-L$libdir'
13544 hardcode_minus_L_F77=yes
13545 # see comment about different semantics on the GNU ld section
13546 ld_shlibs_F77=no
13547 ;;
13548
13549 bsdi4*)
13550 export_dynamic_flag_spec_F77=-rdynamic
13551 ;;
13552
13553 cygwin* | mingw* | pw32*)
13554 # When not using gcc, we currently assume that we are using
13555 # Microsoft Visual C++.
13556 # hardcode_libdir_flag_spec is actually meaningless, as there is
13557 # no search path for DLLs.
13558 hardcode_libdir_flag_spec_F77=' '
13559 allow_undefined_flag_F77=unsupported
13560 # Tell ltmain to make .lib files, not .a files.
13561 libext=lib
13562 # Tell ltmain to make .dll files, not .so files.
13563 shrext=".dll"
13564 # FIXME: Setting linknames here is a bad hack.
13565 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13566 # The linker will automatically build a .lib file if we build a DLL.
13567 old_archive_From_new_cmds_F77='true'
13568 # FIXME: Should let the user specify the lib program.
13569 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13570 fix_srcfile_path='`cygpath -w "$srcfile"`'
13571 enable_shared_with_static_runtimes_F77=yes
13572 ;;
13573
13574 darwin* | rhapsody*)
13575 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13576 archive_cmds_need_lc_F77=no
13577 case "$host_os" in
13578 rhapsody* | darwin1.[012])
13579 allow_undefined_flag_F77='-undefined suppress'
13580 ;;
13581 *) # Darwin 1.3 on
13582 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13583 ;;
13584 esac
13585 # FIXME: Relying on posixy $() will cause problems for
13586 # cross-compilation, but unfortunately the echo tests do not
13587 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13588 # `"' quotes if we put them in here... so don't!
13589 lt_int_apple_cc_single_mod=no
13590 output_verbose_link_cmd='echo'
13591 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13592 lt_int_apple_cc_single_mod=yes
13593 fi
13594 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13595 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13596 else
13597 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'
13598 fi
13599 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13600 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13601 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13602 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}'
13603 else
13604 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}'
13605 fi
13606 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}'
13607 hardcode_direct_F77=no
13608 hardcode_automatic_F77=yes
13609 hardcode_shlibpath_var_F77=unsupported
13610 whole_archive_flag_spec_F77='-all_load $convenience'
13611 link_all_deplibs_F77=yes
13612 fi
13613 ;;
13614
13615 dgux*)
13616 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13617 hardcode_libdir_flag_spec_F77='-L$libdir'
13618 hardcode_shlibpath_var_F77=no
13619 ;;
13620
13621 freebsd1*)
13622 ld_shlibs_F77=no
13623 ;;
13624
13625 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13626 # support. Future versions do this automatically, but an explicit c++rt0.o
13627 # does not break anything, and helps significantly (at the cost of a little
13628 # extra space).
13629 freebsd2.2*)
13630 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13631 hardcode_libdir_flag_spec_F77='-R$libdir'
13632 hardcode_direct_F77=yes
13633 hardcode_shlibpath_var_F77=no
13634 ;;
13635
13636 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13637 freebsd2*)
13638 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13639 hardcode_direct_F77=yes
13640 hardcode_minus_L_F77=yes
13641 hardcode_shlibpath_var_F77=no
13642 ;;
13643
13644 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13645 freebsd*)
13646 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13647 hardcode_libdir_flag_spec_F77='-R$libdir'
13648 hardcode_direct_F77=yes
13649 hardcode_shlibpath_var_F77=no
13650 ;;
13651
13652 hpux9*)
13653 if test "$GCC" = yes; then
13654 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'
13655 else
13656 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'
13657 fi
13658 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13659 hardcode_libdir_separator_F77=:
13660 hardcode_direct_F77=yes
13661
13662 # hardcode_minus_L: Not really in the search PATH,
13663 # but as the default location of the library.
13664 hardcode_minus_L_F77=yes
13665 export_dynamic_flag_spec_F77='${wl}-E'
13666 ;;
13667
13668 hpux10* | hpux11*)
13669 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13670 case "$host_cpu" in
13671 hppa*64*|ia64*)
13672 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 ;;
13674 *)
13675 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13676 ;;
13677 esac
13678 else
13679 case "$host_cpu" in
13680 hppa*64*|ia64*)
13681 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13682 ;;
13683 *)
13684 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13685 ;;
13686 esac
13687 fi
13688 if test "$with_gnu_ld" = no; then
13689 case "$host_cpu" in
13690 hppa*64*)
13691 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13692 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13693 hardcode_libdir_separator_F77=:
13694 hardcode_direct_F77=no
13695 hardcode_shlibpath_var_F77=no
13696 ;;
13697 ia64*)
13698 hardcode_libdir_flag_spec_F77='-L$libdir'
13699 hardcode_direct_F77=no
13700 hardcode_shlibpath_var_F77=no
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 *)
13707 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13708 hardcode_libdir_separator_F77=:
13709 hardcode_direct_F77=yes
13710 export_dynamic_flag_spec_F77='${wl}-E'
13711
13712 # hardcode_minus_L: Not really in the search PATH,
13713 # but as the default location of the library.
13714 hardcode_minus_L_F77=yes
13715 ;;
13716 esac
13717 fi
13718 ;;
13719
13720 irix5* | irix6* | nonstopux*)
13721 if test "$GCC" = yes; then
13722 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'
13723 else
13724 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'
13725 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13726 fi
13727 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13728 hardcode_libdir_separator_F77=:
13729 link_all_deplibs_F77=yes
13730 ;;
13731
13732 netbsd*)
13733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13734 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13735 else
13736 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13737 fi
13738 hardcode_libdir_flag_spec_F77='-R$libdir'
13739 hardcode_direct_F77=yes
13740 hardcode_shlibpath_var_F77=no
13741 ;;
13742
13743 newsos6)
13744 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13745 hardcode_direct_F77=yes
13746 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13747 hardcode_libdir_separator_F77=:
13748 hardcode_shlibpath_var_F77=no
13749 ;;
13750
13751 openbsd*)
13752 hardcode_direct_F77=yes
13753 hardcode_shlibpath_var_F77=no
13754 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13755 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13756 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13757 export_dynamic_flag_spec_F77='${wl}-E'
13758 else
13759 case $host_os in
13760 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13761 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13762 hardcode_libdir_flag_spec_F77='-R$libdir'
13763 ;;
13764 *)
13765 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13766 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13767 ;;
13768 esac
13769 fi
13770 ;;
13771
13772 os2*)
13773 hardcode_libdir_flag_spec_F77='-L$libdir'
13774 hardcode_minus_L_F77=yes
13775 allow_undefined_flag_F77=unsupported
13776 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'
13777 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13778 ;;
13779
13780 osf3*)
13781 if test "$GCC" = yes; then
13782 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13783 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'
13784 else
13785 allow_undefined_flag_F77=' -expect_unresolved \*'
13786 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'
13787 fi
13788 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13789 hardcode_libdir_separator_F77=:
13790 ;;
13791
13792 osf4* | osf5*) # as osf3* with the addition of -msym flag
13793 if test "$GCC" = yes; then
13794 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13795 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'
13796 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13797 else
13798 allow_undefined_flag_F77=' -expect_unresolved \*'
13799 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'
13800 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~
13801 $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'
13802
13803 # Both c and cxx compiler support -rpath directly
13804 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13805 fi
13806 hardcode_libdir_separator_F77=:
13807 ;;
13808
13809 sco3.2v5*)
13810 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13811 hardcode_shlibpath_var_F77=no
13812 export_dynamic_flag_spec_F77='${wl}-Bexport'
13813 runpath_var=LD_RUN_PATH
13814 hardcode_runpath_var=yes
13815 ;;
13816
13817 solaris*)
13818 no_undefined_flag_F77=' -z text'
13819 if test "$GCC" = yes; then
13820 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13821 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13822 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13823 else
13824 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13825 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13826 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13827 fi
13828 hardcode_libdir_flag_spec_F77='-R$libdir'
13829 hardcode_shlibpath_var_F77=no
13830 case $host_os in
13831 solaris2.[0-5] | solaris2.[0-5].*) ;;
13832 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13833 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13834 esac
13835 link_all_deplibs_F77=yes
13836 ;;
13837
13838 sunos4*)
13839 if test "x$host_vendor" = xsequent; then
13840 # Use $CC to link under sequent, because it throws in some extra .o
13841 # files that make .init and .fini sections work.
13842 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13843 else
13844 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13845 fi
13846 hardcode_libdir_flag_spec_F77='-L$libdir'
13847 hardcode_direct_F77=yes
13848 hardcode_minus_L_F77=yes
13849 hardcode_shlibpath_var_F77=no
13850 ;;
13851
13852 sysv4)
13853 case $host_vendor in
13854 sni)
13855 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13856 hardcode_direct_F77=yes # is this really true???
13857 ;;
13858 siemens)
13859 ## LD is ld it makes a PLAMLIB
13860 ## CC just makes a GrossModule.
13861 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13862 reload_cmds_F77='$CC -r -o $output$reload_objs'
13863 hardcode_direct_F77=no
13864 ;;
13865 motorola)
13866 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13867 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13868 ;;
13869 esac
13870 runpath_var='LD_RUN_PATH'
13871 hardcode_shlibpath_var_F77=no
13872 ;;
13873
13874 sysv4.3*)
13875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13876 hardcode_shlibpath_var_F77=no
13877 export_dynamic_flag_spec_F77='-Bexport'
13878 ;;
13879
13880 sysv4*MP*)
13881 if test -d /usr/nec; then
13882 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13883 hardcode_shlibpath_var_F77=no
13884 runpath_var=LD_RUN_PATH
13885 hardcode_runpath_var=yes
13886 ld_shlibs_F77=yes
13887 fi
13888 ;;
13889
13890 sysv4.2uw2*)
13891 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13892 hardcode_direct_F77=yes
13893 hardcode_minus_L_F77=no
13894 hardcode_shlibpath_var_F77=no
13895 hardcode_runpath_var=yes
13896 runpath_var=LD_RUN_PATH
13897 ;;
13898
13899 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13900 no_undefined_flag_F77='${wl}-z ${wl}text'
13901 if test "$GCC" = yes; then
13902 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13903 else
13904 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13905 fi
13906 runpath_var='LD_RUN_PATH'
13907 hardcode_shlibpath_var_F77=no
13908 ;;
13909
13910 sysv5*)
13911 no_undefined_flag_F77=' -z text'
13912 # $CC -shared without GNU ld will not create a library from C++
13913 # object files and a static libstdc++, better avoid it by now
13914 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13915 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13916 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13917 hardcode_libdir_flag_spec_F77=
13918 hardcode_shlibpath_var_F77=no
13919 runpath_var='LD_RUN_PATH'
13920 ;;
13921
13922 uts4*)
13923 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13924 hardcode_libdir_flag_spec_F77='-L$libdir'
13925 hardcode_shlibpath_var_F77=no
13926 ;;
13927
13928 *)
13929 ld_shlibs_F77=no
13930 ;;
13931 esac
13932 fi
13933
13934echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13935echo "${ECHO_T}$ld_shlibs_F77" >&6
13936test "$ld_shlibs_F77" = no && can_build_shared=no
13937
13938variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13939if test "$GCC" = yes; then
13940 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13941fi
13942
13943#
13944# Do we need to explicitly link libc?
13945#
13946case "x$archive_cmds_need_lc_F77" in
13947x|xyes)
13948 # Assume -lc should be added
13949 archive_cmds_need_lc_F77=yes
13950
13951 if test "$enable_shared" = yes && test "$GCC" = yes; then
13952 case $archive_cmds_F77 in
13953 *'~'*)
13954 # FIXME: we may have to deal with multi-command sequences.
13955 ;;
13956 '$CC '*)
13957 # Test whether the compiler implicitly links with -lc since on some
13958 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13959 # to ld, don't add -lc before -lgcc.
13960 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13961echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13962 $rm conftest*
13963 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13964
13965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13966 (eval $ac_compile) 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } 2>conftest.err; then
13970 soname=conftest
13971 lib=conftest
13972 libobjs=conftest.$ac_objext
13973 deplibs=
13974 wl=$lt_prog_compiler_wl_F77
13975 compiler_flags=-v
13976 linker_flags=-v
13977 verstring=
13978 output_objdir=.
13979 libname=conftest
13980 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13981 allow_undefined_flag_F77=
13982 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13983 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }
13987 then
13988 archive_cmds_need_lc_F77=no
13989 else
13990 archive_cmds_need_lc_F77=yes
13991 fi
13992 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13993 else
13994 cat conftest.err 1>&5
13995 fi
13996 $rm conftest*
13997 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13998echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13999 ;;
14000 esac
14001 fi
14002 ;;
14003esac
14004
14005echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14006echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14007hardcode_action_F77=
14008if test -n "$hardcode_libdir_flag_spec_F77" || \
14009 test -n "$runpath_var F77" || \
14010 test "X$hardcode_automatic_F77"="Xyes" ; then
14011
14012 # We can hardcode non-existant directories.
14013 if test "$hardcode_direct_F77" != no &&
14014 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14015 # have to relink, otherwise we might link with an installed library
14016 # when we should be linking with a yet-to-be-installed one
14017 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14018 test "$hardcode_minus_L_F77" != no; then
14019 # Linking always hardcodes the temporary library directory.
14020 hardcode_action_F77=relink
14021 else
14022 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14023 hardcode_action_F77=immediate
14024 fi
14025else
14026 # We cannot hardcode anything, or else we can only hardcode existing
14027 # directories.
14028 hardcode_action_F77=unsupported
14029fi
14030echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14031echo "${ECHO_T}$hardcode_action_F77" >&6
14032
14033if test "$hardcode_action_F77" = relink; then
14034 # Fast installation is not supported
14035 enable_fast_install=no
14036elif test "$shlibpath_overrides_runpath" = yes ||
14037 test "$enable_shared" = no; then
14038 # Fast installation is not necessary
14039 enable_fast_install=needless
14040fi
14041
14042striplib=
14043old_striplib=
14044echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14045echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14046if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14047 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14048 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14049 echo "$as_me:$LINENO: result: yes" >&5
14050echo "${ECHO_T}yes" >&6
14051else
14052# FIXME - insert some real tests, host_os isn't really good enough
14053 case $host_os in
14054 darwin*)
14055 if test -n "$STRIP" ; then
14056 striplib="$STRIP -x"
14057 echo "$as_me:$LINENO: result: yes" >&5
14058echo "${ECHO_T}yes" >&6
14059 else
14060 echo "$as_me:$LINENO: result: no" >&5
14061echo "${ECHO_T}no" >&6
14062fi
14063 ;;
14064 *)
14065 echo "$as_me:$LINENO: result: no" >&5
14066echo "${ECHO_T}no" >&6
14067 ;;
14068 esac
14069fi
14070
14071echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14072echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14073library_names_spec=
14074libname_spec='lib$name'
14075soname_spec=
14076shrext=".so"
14077postinstall_cmds=
14078postuninstall_cmds=
14079finish_cmds=
14080finish_eval=
14081shlibpath_var=
14082shlibpath_overrides_runpath=unknown
14083version_type=none
14084dynamic_linker="$host_os ld.so"
14085sys_lib_dlsearch_path_spec="/lib /usr/lib"
14086if test "$GCC" = yes; then
14087 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14088 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14089 # if the path contains ";" then we assume it to be the separator
14090 # otherwise default to the standard path separator (i.e. ":") - it is
14091 # assumed that no part of a normal pathname contains ";" but that should
14092 # okay in the real world where ";" in dirpaths is itself problematic.
14093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14094 else
14095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14096 fi
14097else
14098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14099fi
14100need_lib_prefix=unknown
14101hardcode_into_libs=no
14102
14103# when you set need_version to no, make sure it does not cause -set_version
14104# flags to be left without arguments
14105need_version=unknown
14106
14107case $host_os in
14108aix3*)
14109 version_type=linux
14110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14111 shlibpath_var=LIBPATH
14112
14113 # AIX 3 has no versioning support, so we append a major version to the name.
14114 soname_spec='${libname}${release}${shared_ext}$major'
14115 ;;
14116
14117aix4* | aix5*)
14118 version_type=linux
14119 need_lib_prefix=no
14120 need_version=no
14121 hardcode_into_libs=yes
14122 if test "$host_cpu" = ia64; then
14123 # AIX 5 supports IA64
14124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14125 shlibpath_var=LD_LIBRARY_PATH
14126 else
14127 # With GCC up to 2.95.x, collect2 would create an import file
14128 # for dependence libraries. The import file would start with
14129 # the line `#! .'. This would cause the generated library to
14130 # depend on `.', always an invalid library. This was fixed in
14131 # development snapshots of GCC prior to 3.0.
14132 case $host_os in
14133 aix4 | aix4.[01] | aix4.[01].*)
14134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14135 echo ' yes '
14136 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14137 :
14138 else
14139 can_build_shared=no
14140 fi
14141 ;;
14142 esac
14143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14144 # soname into executable. Probably we can add versioning support to
14145 # collect2, so additional links can be useful in future.
14146 if test "$aix_use_runtimelinking" = yes; then
14147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14148 # instead of lib<name>.a to let people know that these are not
14149 # typical AIX shared libraries.
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14151 else
14152 # We preserve .a as extension for shared libraries through AIX4.2
14153 # and later when we are not doing run time linking.
14154 library_names_spec='${libname}${release}.a $libname.a'
14155 soname_spec='${libname}${release}${shared_ext}$major'
14156 fi
14157 shlibpath_var=LIBPATH
14158 fi
14159 ;;
14160
14161amigaos*)
14162 library_names_spec='$libname.ixlibrary $libname.a'
14163 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14164 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'
14165 ;;
14166
14167beos*)
14168 library_names_spec='${libname}${shared_ext}'
14169 dynamic_linker="$host_os ld.so"
14170 shlibpath_var=LIBRARY_PATH
14171 ;;
14172
14173bsdi4*)
14174 version_type=linux
14175 need_version=no
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177 soname_spec='${libname}${release}${shared_ext}$major'
14178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14179 shlibpath_var=LD_LIBRARY_PATH
14180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14182 # the default ld.so.conf also contains /usr/contrib/lib and
14183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14184 # libtool to hard-code these into programs
14185 ;;
14186
14187cygwin* | mingw* | pw32*)
14188 version_type=windows
14189 shrext=".dll"
14190 need_version=no
14191 need_lib_prefix=no
14192
14193 case $GCC,$host_os in
14194 yes,cygwin* | yes,mingw* | yes,pw32*)
14195 library_names_spec='$libname.dll.a'
14196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14197 postinstall_cmds='base_file=`basename \${file}`~
14198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14199 dldir=$destdir/`dirname \$dlpath`~
14200 test -d \$dldir || mkdir -p \$dldir~
14201 $install_prog $dir/$dlname \$dldir/$dlname'
14202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14203 dlpath=$dir/\$dldll~
14204 $rm \$dlpath'
14205 shlibpath_overrides_runpath=yes
14206
14207 case $host_os in
14208 cygwin*)
14209 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14210 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14211 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14212 ;;
14213 mingw*)
14214 # MinGW DLLs use traditional 'lib' prefix
14215 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14216 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14217 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14218 # It is most probably a Windows format PATH printed by
14219 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14220 # path with ; separators, and with drive letters. We can handle the
14221 # drive letters (cygwin fileutils understands them), so leave them,
14222 # especially as we might pass files found there to a mingw objdump,
14223 # which wouldn't understand a cygwinified path. Ahh.
14224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14225 else
14226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14227 fi
14228 ;;
14229 pw32*)
14230 # pw32 DLLs use 'pw' prefix rather than 'lib'
14231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14232 ;;
14233 esac
14234 ;;
14235
14236 *)
14237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14238 ;;
14239 esac
14240 dynamic_linker='Win32 ld.exe'
14241 # FIXME: first we should search . and the directory the executable is in
14242 shlibpath_var=PATH
14243 ;;
14244
14245darwin* | rhapsody*)
14246 dynamic_linker="$host_os dyld"
14247 version_type=darwin
14248 need_lib_prefix=no
14249 need_version=no
14250 # FIXME: Relying on posixy $() will cause problems for
14251 # cross-compilation, but unfortunately the echo tests do not
14252 # yet detect zsh echo's removal of \ escapes.
14253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14254 soname_spec='${libname}${release}${major}$shared_ext'
14255 shlibpath_overrides_runpath=yes
14256 shlibpath_var=DYLD_LIBRARY_PATH
14257 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14258 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14259 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14260 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"`
14261 fi
14262 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14263 ;;
14264
14265dgux*)
14266 version_type=linux
14267 need_lib_prefix=no
14268 need_version=no
14269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14270 soname_spec='${libname}${release}${shared_ext}$major'
14271 shlibpath_var=LD_LIBRARY_PATH
14272 ;;
14273
14274freebsd1*)
14275 dynamic_linker=no
14276 ;;
14277
14278freebsd*)
14279 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14280 version_type=freebsd-$objformat
14281 case $version_type in
14282 freebsd-elf*)
14283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14284 need_version=no
14285 need_lib_prefix=no
14286 ;;
14287 freebsd-*)
14288 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14289 need_version=yes
14290 ;;
14291 esac
14292 shlibpath_var=LD_LIBRARY_PATH
14293 case $host_os in
14294 freebsd2*)
14295 shlibpath_overrides_runpath=yes
14296 ;;
14297 freebsd3.01* | freebsdelf3.01*)
14298 shlibpath_overrides_runpath=yes
14299 hardcode_into_libs=yes
14300 ;;
14301 *) # from 3.2 on
14302 shlibpath_overrides_runpath=no
14303 hardcode_into_libs=yes
14304 ;;
14305 esac
14306 ;;
14307
14308gnu*)
14309 version_type=linux
14310 need_lib_prefix=no
14311 need_version=no
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14313 soname_spec='${libname}${release}${shared_ext}$major'
14314 shlibpath_var=LD_LIBRARY_PATH
14315 hardcode_into_libs=yes
14316 ;;
14317
14318hpux9* | hpux10* | hpux11*)
14319 # Give a soname corresponding to the major version so that dld.sl refuses to
14320 # link against other versions.
14321 version_type=sunos
14322 need_lib_prefix=no
14323 need_version=no
14324 case "$host_cpu" in
14325 ia64*)
14326 shrext='.so'
14327 hardcode_into_libs=yes
14328 dynamic_linker="$host_os dld.so"
14329 shlibpath_var=LD_LIBRARY_PATH
14330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14332 soname_spec='${libname}${release}${shared_ext}$major'
14333 if test "X$HPUX_IA64_MODE" = X32; then
14334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14335 else
14336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14337 fi
14338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14339 ;;
14340 hppa*64*)
14341 shrext='.sl'
14342 hardcode_into_libs=yes
14343 dynamic_linker="$host_os dld.sl"
14344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14350 ;;
14351 *)
14352 shrext='.sl'
14353 dynamic_linker="$host_os dld.sl"
14354 shlibpath_var=SHLIB_PATH
14355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357 soname_spec='${libname}${release}${shared_ext}$major'
14358 ;;
14359 esac
14360 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14361 postinstall_cmds='chmod 555 $lib'
14362 ;;
14363
14364irix5* | irix6* | nonstopux*)
14365 case $host_os in
14366 nonstopux*) version_type=nonstopux ;;
14367 *)
14368 if test "$lt_cv_prog_gnu_ld" = yes; then
14369 version_type=linux
14370 else
14371 version_type=irix
14372 fi ;;
14373 esac
14374 need_lib_prefix=no
14375 need_version=no
14376 soname_spec='${libname}${release}${shared_ext}$major'
14377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14378 case $host_os in
14379 irix5* | nonstopux*)
14380 libsuff= shlibsuff=
14381 ;;
14382 *)
14383 case $LD in # libtool.m4 will add one of these switches to LD
14384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14385 libsuff= shlibsuff= libmagic=32-bit;;
14386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14387 libsuff=32 shlibsuff=N32 libmagic=N32;;
14388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14389 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14390 *) libsuff= shlibsuff= libmagic=never-match;;
14391 esac
14392 ;;
14393 esac
14394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14395 shlibpath_overrides_runpath=no
14396 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14397 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14398 hardcode_into_libs=yes
14399 ;;
14400
14401# No shared lib support for Linux oldld, aout, or coff.
14402linux*oldld* | linux*aout* | linux*coff*)
14403 dynamic_linker=no
14404 ;;
14405
14406# This must be Linux ELF.
14407linux*)
14408 version_type=linux
14409 need_lib_prefix=no
14410 need_version=no
14411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14412 soname_spec='${libname}${release}${shared_ext}$major'
14413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14414 shlibpath_var=LD_LIBRARY_PATH
14415 shlibpath_overrides_runpath=no
14416 # This implies no fast_install, which is unacceptable.
14417 # Some rework will be needed to allow for fast_install
14418 # before this can be enabled.
14419 hardcode_into_libs=yes
14420
14421 # We used to test for /lib/ld.so.1 and disable shared libraries on
14422 # powerpc, because MkLinux only supported shared libraries with the
14423 # GNU dynamic linker. Since this was broken with cross compilers,
14424 # most powerpc-linux boxes support dynamic linking these days and
14425 # people can always --disable-shared, the test was removed, and we
14426 # assume the GNU/Linux dynamic linker is in use.
14427 dynamic_linker='GNU/Linux ld.so'
14428 ;;
14429
14430netbsd*)
14431 version_type=sunos
14432 need_lib_prefix=no
14433 need_version=no
14434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14437 dynamic_linker='NetBSD (a.out) ld.so'
14438 else
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14440 soname_spec='${libname}${release}${shared_ext}$major'
14441 dynamic_linker='NetBSD ld.elf_so'
14442 fi
14443 shlibpath_var=LD_LIBRARY_PATH
14444 shlibpath_overrides_runpath=yes
14445 hardcode_into_libs=yes
14446 ;;
14447
14448newsos6)
14449 version_type=linux
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451 shlibpath_var=LD_LIBRARY_PATH
14452 shlibpath_overrides_runpath=yes
14453 ;;
14454
14455nto-qnx)
14456 version_type=linux
14457 need_lib_prefix=no
14458 need_version=no
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460 soname_spec='${libname}${release}${shared_ext}$major'
14461 shlibpath_var=LD_LIBRARY_PATH
14462 shlibpath_overrides_runpath=yes
14463 ;;
14464
14465openbsd*)
14466 version_type=sunos
14467 need_lib_prefix=no
14468 need_version=no
14469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14471 shlibpath_var=LD_LIBRARY_PATH
14472 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14473 case $host_os in
14474 openbsd2.[89] | openbsd2.[89].*)
14475 shlibpath_overrides_runpath=no
14476 ;;
14477 *)
14478 shlibpath_overrides_runpath=yes
14479 ;;
14480 esac
14481 else
14482 shlibpath_overrides_runpath=yes
14483 fi
14484 ;;
14485
14486os2*)
14487 libname_spec='$name'
14488 shrext=".dll"
14489 need_lib_prefix=no
14490 library_names_spec='$libname${shared_ext} $libname.a'
14491 dynamic_linker='OS/2 ld.exe'
14492 shlibpath_var=LIBPATH
14493 ;;
14494
14495osf3* | osf4* | osf5*)
14496 version_type=osf
14497 need_lib_prefix=no
14498 need_version=no
14499 soname_spec='${libname}${release}${shared_ext}$major'
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501 shlibpath_var=LD_LIBRARY_PATH
14502 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14503 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14504 ;;
14505
14506sco3.2v5*)
14507 version_type=osf
14508 soname_spec='${libname}${release}${shared_ext}$major'
14509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510 shlibpath_var=LD_LIBRARY_PATH
14511 ;;
14512
14513solaris*)
14514 version_type=linux
14515 need_lib_prefix=no
14516 need_version=no
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 shlibpath_overrides_runpath=yes
14521 hardcode_into_libs=yes
14522 # ldd complains unless libraries are executable
14523 postinstall_cmds='chmod +x $lib'
14524 ;;
14525
14526sunos4*)
14527 version_type=sunos
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14530 shlibpath_var=LD_LIBRARY_PATH
14531 shlibpath_overrides_runpath=yes
14532 if test "$with_gnu_ld" = yes; then
14533 need_lib_prefix=no
14534 fi
14535 need_version=yes
14536 ;;
14537
14538sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14539 version_type=linux
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 shlibpath_var=LD_LIBRARY_PATH
14543 case $host_vendor in
14544 sni)
14545 shlibpath_overrides_runpath=no
14546 need_lib_prefix=no
14547 export_dynamic_flag_spec='${wl}-Blargedynsym'
14548 runpath_var=LD_RUN_PATH
14549 ;;
14550 siemens)
14551 need_lib_prefix=no
14552 ;;
14553 motorola)
14554 need_lib_prefix=no
14555 need_version=no
14556 shlibpath_overrides_runpath=no
14557 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14558 ;;
14559 esac
14560 ;;
14561
14562sysv4*MP*)
14563 if test -d /usr/nec ;then
14564 version_type=linux
14565 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14566 soname_spec='$libname${shared_ext}.$major'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 fi
14569 ;;
14570
14571uts4*)
14572 version_type=linux
14573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14574 soname_spec='${libname}${release}${shared_ext}$major'
14575 shlibpath_var=LD_LIBRARY_PATH
14576 ;;
14577
14578*)
14579 dynamic_linker=no
14580 ;;
14581esac
14582echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14583echo "${ECHO_T}$dynamic_linker" >&6
14584test "$dynamic_linker" = no && can_build_shared=no
14585
14586
14587# The else clause should only fire when bootstrapping the
14588# libtool distribution, otherwise you forgot to ship ltmain.sh
14589# with your package, and you will get complaints that there are
14590# no rules to generate ltmain.sh.
14591if test -f "$ltmain"; then
14592 # See if we are running on zsh, and set the options which allow our commands through
14593 # without removal of \ escapes.
14594 if test -n "${ZSH_VERSION+set}" ; then
14595 setopt NO_GLOB_SUBST
14596 fi
14597 # Now quote all the things that may contain metacharacters while being
14598 # careful not to overquote the AC_SUBSTed values. We take copies of the
14599 # variables and quote the copies for generation of the libtool script.
14600 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14601 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14602 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14603 deplibs_check_method reload_flag reload_cmds need_locks \
14604 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14605 lt_cv_sys_global_symbol_to_c_name_address \
14606 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14607 old_postinstall_cmds old_postuninstall_cmds \
14608 compiler_F77 \
14609 CC_F77 \
14610 LD_F77 \
14611 lt_prog_compiler_wl_F77 \
14612 lt_prog_compiler_pic_F77 \
14613 lt_prog_compiler_static_F77 \
14614 lt_prog_compiler_no_builtin_flag_F77 \
14615 export_dynamic_flag_spec_F77 \
14616 thread_safe_flag_spec_F77 \
14617 whole_archive_flag_spec_F77 \
14618 enable_shared_with_static_runtimes_F77 \
14619 old_archive_cmds_F77 \
14620 old_archive_from_new_cmds_F77 \
14621 predep_objects_F77 \
14622 postdep_objects_F77 \
14623 predeps_F77 \
14624 postdeps_F77 \
14625 compiler_lib_search_path_F77 \
14626 archive_cmds_F77 \
14627 archive_expsym_cmds_F77 \
14628 postinstall_cmds_F77 \
14629 postuninstall_cmds_F77 \
14630 old_archive_from_expsyms_cmds_F77 \
14631 allow_undefined_flag_F77 \
14632 no_undefined_flag_F77 \
14633 export_symbols_cmds_F77 \
14634 hardcode_libdir_flag_spec_F77 \
14635 hardcode_libdir_flag_spec_ld_F77 \
14636 hardcode_libdir_separator_F77 \
14637 hardcode_automatic_F77 \
14638 module_cmds_F77 \
14639 module_expsym_cmds_F77 \
14640 lt_cv_prog_compiler_c_o_F77 \
14641 exclude_expsyms_F77 \
14642 include_expsyms_F77; do
14643
14644 case $var in
14645 old_archive_cmds_F77 | \
14646 old_archive_from_new_cmds_F77 | \
14647 archive_cmds_F77 | \
14648 archive_expsym_cmds_F77 | \
14649 module_cmds_F77 | \
14650 module_expsym_cmds_F77 | \
14651 old_archive_from_expsyms_cmds_F77 | \
14652 export_symbols_cmds_F77 | \
14653 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14654 postinstall_cmds | postuninstall_cmds | \
14655 old_postinstall_cmds | old_postuninstall_cmds | \
14656 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14657 # Double-quote double-evaled strings.
14658 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14659 ;;
14660 *)
14661 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14662 ;;
14663 esac
14664 done
14665
14666 case $lt_echo in
14667 *'\$0 --fallback-echo"')
14668 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14669 ;;
14670 esac
14671
14672cfgfile="$ofile"
14673
14674 cat <<__EOF__ >> "$cfgfile"
14675# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14676
14677# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14678
14679# Shell to use when invoking shell scripts.
14680SHELL=$lt_SHELL
14681
14682# Whether or not to build shared libraries.
14683build_libtool_libs=$enable_shared
14684
14685# Whether or not to build static libraries.
14686build_old_libs=$enable_static
14687
14688# Whether or not to add -lc for building shared libraries.
14689build_libtool_need_lc=$archive_cmds_need_lc_F77
14690
14691# Whether or not to disallow shared libs when runtime libs are static
14692allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14693
14694# Whether or not to optimize for fast installation.
14695fast_install=$enable_fast_install
14696
14697# The host system.
14698host_alias=$host_alias
14699host=$host
14700
14701# An echo program that does not interpret backslashes.
14702echo=$lt_echo
14703
14704# The archiver.
14705AR=$lt_AR
14706AR_FLAGS=$lt_AR_FLAGS
14707
14708# A C compiler.
14709LTCC=$lt_LTCC
14710
14711# A language-specific compiler.
14712CC=$lt_compiler_F77
14713
14714# Is the compiler the GNU C compiler?
14715with_gcc=$GCC_F77
14716
14717# An ERE matcher.
14718EGREP=$lt_EGREP
14719
14720# The linker used to build libraries.
14721LD=$lt_LD_F77
14722
14723# Whether we need hard or soft links.
14724LN_S=$lt_LN_S
14725
14726# A BSD-compatible nm program.
14727NM=$lt_NM
14728
14729# A symbol stripping program
14730STRIP=$STRIP
14731
14732# Used to examine libraries when file_magic_cmd begins "file"
14733MAGIC_CMD=$MAGIC_CMD
14734
14735# Used on cygwin: DLL creation program.
14736DLLTOOL="$DLLTOOL"
14737
14738# Used on cygwin: object dumper.
14739OBJDUMP="$OBJDUMP"
14740
14741# Used on cygwin: assembler.
14742AS="$AS"
14743
14744# The name of the directory that contains temporary libtool files.
14745objdir=$objdir
14746
14747# How to create reloadable object files.
14748reload_flag=$lt_reload_flag
14749reload_cmds=$lt_reload_cmds
14750
14751# How to pass a linker flag through the compiler.
14752wl=$lt_lt_prog_compiler_wl_F77
14753
14754# Object file suffix (normally "o").
14755objext="$ac_objext"
14756
14757# Old archive suffix (normally "a").
14758libext="$libext"
14759
14760# Shared library suffix (normally ".so").
14761shrext='$shrext'
14762
14763# Executable file suffix (normally "").
14764exeext="$exeext"
14765
14766# Additional compiler flags for building library objects.
14767pic_flag=$lt_lt_prog_compiler_pic_F77
14768pic_mode=$pic_mode
14769
14770# What is the maximum length of a command?
14771max_cmd_len=$lt_cv_sys_max_cmd_len
14772
14773# Does compiler simultaneously support -c and -o options?
14774compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14775
14776# Must we lock files when doing compilation ?
14777need_locks=$lt_need_locks
14778
14779# Do we need the lib prefix for modules?
14780need_lib_prefix=$need_lib_prefix
14781
14782# Do we need a version for libraries?
14783need_version=$need_version
14784
14785# Whether dlopen is supported.
14786dlopen_support=$enable_dlopen
14787
14788# Whether dlopen of programs is supported.
14789dlopen_self=$enable_dlopen_self
14790
14791# Whether dlopen of statically linked programs is supported.
14792dlopen_self_static=$enable_dlopen_self_static
14793
14794# Compiler flag to prevent dynamic linking.
14795link_static_flag=$lt_lt_prog_compiler_static_F77
14796
14797# Compiler flag to turn off builtin functions.
14798no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14799
14800# Compiler flag to allow reflexive dlopens.
14801export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14802
14803# Compiler flag to generate shared objects directly from archives.
14804whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14805
14806# Compiler flag to generate thread-safe objects.
14807thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14808
14809# Library versioning type.
14810version_type=$version_type
14811
14812# Format of library name prefix.
14813libname_spec=$lt_libname_spec
14814
14815# List of archive names. First name is the real one, the rest are links.
14816# The last name is the one that the linker finds with -lNAME.
14817library_names_spec=$lt_library_names_spec
14818
14819# The coded name of the library, if different from the real name.
14820soname_spec=$lt_soname_spec
14821
14822# Commands used to build and install an old-style archive.
14823RANLIB=$lt_RANLIB
14824old_archive_cmds=$lt_old_archive_cmds_F77
14825old_postinstall_cmds=$lt_old_postinstall_cmds
14826old_postuninstall_cmds=$lt_old_postuninstall_cmds
14827
14828# Create an old-style archive from a shared archive.
14829old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14830
14831# Create a temporary old-style archive to link instead of a shared archive.
14832old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14833
14834# Commands used to build and install a shared archive.
14835archive_cmds=$lt_archive_cmds_F77
14836archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14837postinstall_cmds=$lt_postinstall_cmds
14838postuninstall_cmds=$lt_postuninstall_cmds
14839
14840# Commands used to build a loadable module (assumed same as above if empty)
14841module_cmds=$lt_module_cmds_F77
14842module_expsym_cmds=$lt_module_expsym_cmds_F77
14843
14844# Commands to strip libraries.
14845old_striplib=$lt_old_striplib
14846striplib=$lt_striplib
14847
14848# Dependencies to place before the objects being linked to create a
14849# shared library.
14850predep_objects=$lt_predep_objects_F77
14851
14852# Dependencies to place after the objects being linked to create a
14853# shared library.
14854postdep_objects=$lt_postdep_objects_F77
14855
14856# Dependencies to place before the objects being linked to create a
14857# shared library.
14858predeps=$lt_predeps_F77
14859
14860# Dependencies to place after the objects being linked to create a
14861# shared library.
14862postdeps=$lt_postdeps_F77
14863
14864# The library search path used internally by the compiler when linking
14865# a shared library.
14866compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14867
14868# Method to check whether dependent libraries are shared objects.
14869deplibs_check_method=$lt_deplibs_check_method
14870
14871# Command to use when deplibs_check_method == file_magic.
14872file_magic_cmd=$lt_file_magic_cmd
14873
14874# Flag that allows shared libraries with undefined symbols to be built.
14875allow_undefined_flag=$lt_allow_undefined_flag_F77
14876
14877# Flag that forces no undefined symbols.
14878no_undefined_flag=$lt_no_undefined_flag_F77
14879
14880# Commands used to finish a libtool library installation in a directory.
14881finish_cmds=$lt_finish_cmds
14882
14883# Same as above, but a single script fragment to be evaled but not shown.
14884finish_eval=$lt_finish_eval
14885
14886# Take the output of nm and produce a listing of raw symbols and C names.
14887global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14888
14889# Transform the output of nm in a proper C declaration
14890global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14891
14892# Transform the output of nm in a C name address pair
14893global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14894
14895# This is the shared library runtime path variable.
14896runpath_var=$runpath_var
14897
14898# This is the shared library path variable.
14899shlibpath_var=$shlibpath_var
14900
14901# Is shlibpath searched before the hard-coded library search path?
14902shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14903
14904# How to hardcode a shared library path into an executable.
14905hardcode_action=$hardcode_action_F77
14906
14907# Whether we should hardcode library paths into libraries.
14908hardcode_into_libs=$hardcode_into_libs
14909
14910# Flag to hardcode \$libdir into a binary during linking.
14911# This must work even if \$libdir does not exist.
14912hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14913
14914# If ld is used when linking, flag to hardcode \$libdir into
14915# a binary during linking. This must work even if \$libdir does
14916# not exist.
14917hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14918
14919# Whether we need a single -rpath flag with a separated argument.
14920hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14921
14922# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14923# resulting binary.
14924hardcode_direct=$hardcode_direct_F77
14925
14926# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14927# resulting binary.
14928hardcode_minus_L=$hardcode_minus_L_F77
14929
14930# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14931# the resulting binary.
14932hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14933
14934# Set to yes if building a shared library automatically hardcodes DIR into the library
14935# and all subsequent libraries and executables linked against it.
14936hardcode_automatic=$hardcode_automatic_F77
14937
14938# Variables whose values should be saved in libtool wrapper scripts and
14939# restored at relink time.
14940variables_saved_for_relink="$variables_saved_for_relink"
14941
14942# Whether libtool must link a program against all its dependency libraries.
14943link_all_deplibs=$link_all_deplibs_F77
14944
14945# Compile-time system search path for libraries
14946sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14947
14948# Run-time system search path for libraries
14949sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14950
14951# Fix the shell variable \$srcfile for the compiler.
14952fix_srcfile_path="$fix_srcfile_path_F77"
14953
14954# Set to yes if exported symbols are required.
14955always_export_symbols=$always_export_symbols_F77
14956
14957# The commands to list exported symbols.
14958export_symbols_cmds=$lt_export_symbols_cmds_F77
14959
14960# The commands to extract the exported symbol list from a shared archive.
14961extract_expsyms_cmds=$lt_extract_expsyms_cmds
14962
14963# Symbols that should not be listed in the preloaded symbols.
14964exclude_expsyms=$lt_exclude_expsyms_F77
14965
14966# Symbols that must always be exported.
14967include_expsyms=$lt_include_expsyms_F77
14968
14969# ### END LIBTOOL TAG CONFIG: $tagname
14970
14971__EOF__
14972
14973
14974else
14975 # If there is no Makefile yet, we rely on a make rule to execute
14976 # `config.status --recheck' to rerun these tests and create the
14977 # libtool script then.
14978 test -f Makefile && make "$ltmain"
14979fi
14980
14981
14982ac_ext=c
14983ac_cpp='$CPP $CPPFLAGS'
14984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14986ac_compiler_gnu=$ac_cv_c_compiler_gnu
14987
14988CC="$lt_save_CC"
14989
14990 else
14991 tagname=""
14992 fi
14993 ;;
14994
14995 GCJ)
14996 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14997
14998
14999
15000# Source file extension for Java test sources.
15001ac_ext=java
15002
15003# Object file extension for compiled Java test sources.
15004objext=o
15005objext_GCJ=$objext
15006
15007# Code to be used in simple compile tests
15008lt_simple_compile_test_code="class foo {}\n"
15009
15010# Code to be used in simple link tests
15011lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15012
15013# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15014
15015# If no C compiler was specified, use CC.
15016LTCC=${LTCC-"$CC"}
15017
15018# Allow CC to be a program name with arguments.
15019compiler=$CC
15020
15021
15022# Allow CC to be a program name with arguments.
15023lt_save_CC="$CC"
15024CC=${GCJ-"gcj"}
15025compiler=$CC
15026compiler_GCJ=$CC
15027
15028# GCJ did not exist at the time GCC didn't implicitly link libc in.
15029archive_cmds_need_lc_GCJ=no
15030
15031## CAVEAT EMPTOR:
15032## There is no encapsulation within the following macros, do not change
15033## the running order or otherwise move them around unless you know exactly
15034## what you are doing...
15035
15036lt_prog_compiler_no_builtin_flag_GCJ=
15037
15038if test "$GCC" = yes; then
15039 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15040
15041 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15042echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15043if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15045else
15046 lt_cv_prog_compiler_rtti_exceptions=no
15047 ac_outfile=conftest.$ac_objext
15048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15049 lt_compiler_flag="-fno-rtti -fno-exceptions"
15050 # Insert the option either (1) after the last *FLAGS variable, or
15051 # (2) before a word containing "conftest.", or (3) at the end.
15052 # Note that $ac_compile itself does not contain backslashes and begins
15053 # with a dollar sign (not a hyphen), so the echo should work correctly.
15054 # The option is referenced via a variable to avoid confusing sed.
15055 lt_compile=`echo "$ac_compile" | $SED \
15056 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15058 -e 's:$: $lt_compiler_flag:'`
John Criswell12399a12003-09-30 15:55:44 +000015059 (eval echo "\"\$as_me:15059: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015060 (eval "$lt_compile" 2>conftest.err)
15061 ac_status=$?
15062 cat conftest.err >&5
John Criswell12399a12003-09-30 15:55:44 +000015063 echo "$as_me:15063: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015064 if (exit $ac_status) && test -s "$ac_outfile"; then
15065 # The compiler can only warn and ignore the option if not recognized
15066 # So say no if there are warnings
15067 if test ! -s conftest.err; then
15068 lt_cv_prog_compiler_rtti_exceptions=yes
15069 fi
15070 fi
15071 $rm conftest*
15072
15073fi
15074echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15075echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15076
15077if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15078 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15079else
15080 :
15081fi
15082
15083fi
15084
15085lt_prog_compiler_wl_GCJ=
15086lt_prog_compiler_pic_GCJ=
15087lt_prog_compiler_static_GCJ=
15088
15089echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15090echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15091
15092 if test "$GCC" = yes; then
15093 lt_prog_compiler_wl_GCJ='-Wl,'
15094 lt_prog_compiler_static_GCJ='-static'
15095
15096 case $host_os in
15097 aix*)
15098 # All AIX code is PIC.
15099 if test "$host_cpu" = ia64; then
15100 # AIX 5 now supports IA64 processor
15101 lt_prog_compiler_static_GCJ='-Bstatic'
15102 fi
15103 ;;
15104
15105 amigaos*)
15106 # FIXME: we need at least 68020 code to build shared libraries, but
15107 # adding the `-m68020' flag to GCC prevents building anything better,
15108 # like `-m68040'.
15109 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15110 ;;
15111
15112 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15113 # PIC is the default for these OSes.
15114 ;;
15115
15116 mingw* | pw32* | os2*)
15117 # This hack is so that the source file can tell whether it is being
15118 # built for inclusion in a dll (and should export symbols for example).
15119 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15120 ;;
15121
15122 darwin* | rhapsody*)
15123 # PIC is the default on this platform
15124 # Common symbols not allowed in MH_DYLIB files
15125 lt_prog_compiler_pic_GCJ='-fno-common'
15126 ;;
15127
15128 msdosdjgpp*)
15129 # Just because we use GCC doesn't mean we suddenly get shared libraries
15130 # on systems that don't support them.
15131 lt_prog_compiler_can_build_shared_GCJ=no
15132 enable_shared=no
15133 ;;
15134
15135 sysv4*MP*)
15136 if test -d /usr/nec; then
15137 lt_prog_compiler_pic_GCJ=-Kconform_pic
15138 fi
15139 ;;
15140
15141 hpux*)
15142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15143 # not for PA HP-UX.
15144 case "$host_cpu" in
15145 hppa*64*|ia64*)
15146 # +Z the default
15147 ;;
15148 *)
15149 lt_prog_compiler_pic_GCJ='-fPIC'
15150 ;;
15151 esac
15152 ;;
15153
15154 *)
15155 lt_prog_compiler_pic_GCJ='-fPIC'
15156 ;;
15157 esac
15158 else
15159 # PORTME Check for flag to pass linker flags through the system compiler.
15160 case $host_os in
15161 aix*)
15162 lt_prog_compiler_wl_GCJ='-Wl,'
15163 if test "$host_cpu" = ia64; then
15164 # AIX 5 now supports IA64 processor
15165 lt_prog_compiler_static_GCJ='-Bstatic'
15166 else
15167 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15168 fi
15169 ;;
15170
15171 mingw* | pw32* | os2*)
15172 # This hack is so that the source file can tell whether it is being
15173 # built for inclusion in a dll (and should export symbols for example).
15174 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15175 ;;
15176
15177 hpux9* | hpux10* | hpux11*)
15178 lt_prog_compiler_wl_GCJ='-Wl,'
15179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15180 # not for PA HP-UX.
15181 case "$host_cpu" in
15182 hppa*64*|ia64*)
15183 # +Z the default
15184 ;;
15185 *)
15186 lt_prog_compiler_pic_GCJ='+Z'
15187 ;;
15188 esac
15189 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15190 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15191 ;;
15192
15193 irix5* | irix6* | nonstopux*)
15194 lt_prog_compiler_wl_GCJ='-Wl,'
15195 # PIC (with -KPIC) is the default.
15196 lt_prog_compiler_static_GCJ='-non_shared'
15197 ;;
15198
15199 newsos6)
15200 lt_prog_compiler_pic_GCJ='-KPIC'
15201 lt_prog_compiler_static_GCJ='-Bstatic'
15202 ;;
15203
15204 linux*)
15205 case $CC in
15206 icc|ecc)
15207 lt_prog_compiler_wl_GCJ='-Wl,'
15208 lt_prog_compiler_pic_GCJ='-KPIC'
15209 lt_prog_compiler_static_GCJ='-static'
15210 ;;
15211 ccc)
15212 lt_prog_compiler_wl_GCJ='-Wl,'
15213 # All Alpha code is PIC.
15214 lt_prog_compiler_static_GCJ='-non_shared'
15215 ;;
15216 esac
15217 ;;
15218
15219 osf3* | osf4* | osf5*)
15220 lt_prog_compiler_wl_GCJ='-Wl,'
15221 # All OSF/1 code is PIC.
15222 lt_prog_compiler_static_GCJ='-non_shared'
15223 ;;
15224
15225 sco3.2v5*)
15226 lt_prog_compiler_pic_GCJ='-Kpic'
15227 lt_prog_compiler_static_GCJ='-dn'
15228 ;;
15229
15230 solaris*)
15231 lt_prog_compiler_wl_GCJ='-Wl,'
15232 lt_prog_compiler_pic_GCJ='-KPIC'
15233 lt_prog_compiler_static_GCJ='-Bstatic'
15234 ;;
15235
15236 sunos4*)
15237 lt_prog_compiler_wl_GCJ='-Qoption ld '
15238 lt_prog_compiler_pic_GCJ='-PIC'
15239 lt_prog_compiler_static_GCJ='-Bstatic'
15240 ;;
15241
15242 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15243 lt_prog_compiler_wl_GCJ='-Wl,'
15244 lt_prog_compiler_pic_GCJ='-KPIC'
15245 lt_prog_compiler_static_GCJ='-Bstatic'
15246 ;;
15247
15248 sysv4*MP*)
15249 if test -d /usr/nec ;then
15250 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15251 lt_prog_compiler_static_GCJ='-Bstatic'
15252 fi
15253 ;;
15254
15255 uts4*)
15256 lt_prog_compiler_pic_GCJ='-pic'
15257 lt_prog_compiler_static_GCJ='-Bstatic'
15258 ;;
15259
15260 *)
15261 lt_prog_compiler_can_build_shared_GCJ=no
15262 ;;
15263 esac
15264 fi
15265
15266echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15267echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15268
15269#
15270# Check to make sure the PIC flag actually works.
15271#
15272if test -n "$lt_prog_compiler_pic_GCJ"; then
15273 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15274echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15275if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15277else
15278 lt_prog_compiler_pic_works_GCJ=no
15279 ac_outfile=conftest.$ac_objext
15280 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15281 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15282 # Insert the option either (1) after the last *FLAGS variable, or
15283 # (2) before a word containing "conftest.", or (3) at the end.
15284 # Note that $ac_compile itself does not contain backslashes and begins
15285 # with a dollar sign (not a hyphen), so the echo should work correctly.
15286 # The option is referenced via a variable to avoid confusing sed.
15287 lt_compile=`echo "$ac_compile" | $SED \
15288 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15290 -e 's:$: $lt_compiler_flag:'`
John Criswell12399a12003-09-30 15:55:44 +000015291 (eval echo "\"\$as_me:15291: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015292 (eval "$lt_compile" 2>conftest.err)
15293 ac_status=$?
15294 cat conftest.err >&5
John Criswell12399a12003-09-30 15:55:44 +000015295 echo "$as_me:15295: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015296 if (exit $ac_status) && test -s "$ac_outfile"; then
15297 # The compiler can only warn and ignore the option if not recognized
15298 # So say no if there are warnings
15299 if test ! -s conftest.err; then
15300 lt_prog_compiler_pic_works_GCJ=yes
15301 fi
15302 fi
15303 $rm conftest*
15304
15305fi
15306echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15307echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15308
15309if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15310 case $lt_prog_compiler_pic_GCJ in
15311 "" | " "*) ;;
15312 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15313 esac
15314else
15315 lt_prog_compiler_pic_GCJ=
15316 lt_prog_compiler_can_build_shared_GCJ=no
15317fi
15318
15319fi
15320case "$host_os" in
15321 # For platforms which do not support PIC, -DPIC is meaningless:
15322 *djgpp*)
15323 lt_prog_compiler_pic_GCJ=
15324 ;;
15325 *)
15326 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15327 ;;
15328esac
15329
15330echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15331echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15332if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15334else
15335 lt_cv_prog_compiler_c_o_GCJ=no
15336 $rm -r conftest 2>/dev/null
15337 mkdir conftest
15338 cd conftest
15339 mkdir out
15340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15341
15342 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15343 # that will create temporary files in the current directory regardless of
15344 # the output directory. Thus, making CWD read-only will cause this test
15345 # to fail, enabling locking or at least warning the user not to do parallel
15346 # builds.
15347 chmod -w .
15348
15349 lt_compiler_flag="-o out/conftest2.$ac_objext"
15350 # Insert the option either (1) after the last *FLAGS variable, or
15351 # (2) before a word containing "conftest.", or (3) at the end.
15352 # Note that $ac_compile itself does not contain backslashes and begins
15353 # with a dollar sign (not a hyphen), so the echo should work correctly.
15354 lt_compile=`echo "$ac_compile" | $SED \
15355 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15357 -e 's:$: $lt_compiler_flag:'`
John Criswell12399a12003-09-30 15:55:44 +000015358 (eval echo "\"\$as_me:15358: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015359 (eval "$lt_compile" 2>out/conftest.err)
15360 ac_status=$?
15361 cat out/conftest.err >&5
John Criswell12399a12003-09-30 15:55:44 +000015362 echo "$as_me:15362: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15364 then
15365 # The compiler can only warn and ignore the option if not recognized
15366 # So say no if there are warnings
15367 if test ! -s out/conftest.err; then
15368 lt_cv_prog_compiler_c_o_GCJ=yes
15369 fi
15370 fi
15371 chmod u+w .
15372 $rm conftest* out/*
15373 rmdir out
15374 cd ..
15375 rmdir conftest
15376 $rm conftest*
15377
15378fi
15379echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15380echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15381
15382
15383hard_links="nottested"
15384if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15385 # do not overwrite the value of need_locks provided by the user
15386 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15387echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15388 hard_links=yes
15389 $rm conftest*
15390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15391 touch conftest.a
15392 ln conftest.a conftest.b 2>&5 || hard_links=no
15393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15394 echo "$as_me:$LINENO: result: $hard_links" >&5
15395echo "${ECHO_T}$hard_links" >&6
15396 if test "$hard_links" = no; then
15397 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15398echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15399 need_locks=warn
15400 fi
15401else
15402 need_locks=no
15403fi
15404
15405echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15406echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15407
15408 runpath_var=
15409 allow_undefined_flag_GCJ=
15410 enable_shared_with_static_runtimes_GCJ=no
15411 archive_cmds_GCJ=
15412 archive_expsym_cmds_GCJ=
15413 old_archive_From_new_cmds_GCJ=
15414 old_archive_from_expsyms_cmds_GCJ=
15415 export_dynamic_flag_spec_GCJ=
15416 whole_archive_flag_spec_GCJ=
15417 thread_safe_flag_spec_GCJ=
15418 hardcode_libdir_flag_spec_GCJ=
15419 hardcode_libdir_flag_spec_ld_GCJ=
15420 hardcode_libdir_separator_GCJ=
15421 hardcode_direct_GCJ=no
15422 hardcode_minus_L_GCJ=no
15423 hardcode_shlibpath_var_GCJ=unsupported
15424 link_all_deplibs_GCJ=unknown
15425 hardcode_automatic_GCJ=no
15426 module_cmds_GCJ=
15427 module_expsym_cmds_GCJ=
15428 always_export_symbols_GCJ=no
15429 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15430 # include_expsyms should be a list of space-separated symbols to be *always*
15431 # included in the symbol list
15432 include_expsyms_GCJ=
15433 # exclude_expsyms can be an extended regexp of symbols to exclude
15434 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15435 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15436 # as well as any symbol that contains `d'.
15437 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15438 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15439 # platforms (ab)use it in PIC code, but their linkers get confused if
15440 # the symbol is explicitly referenced. Since portable code cannot
15441 # rely on this symbol name, it's probably fine to never include it in
15442 # preloaded symbol tables.
15443 extract_expsyms_cmds=
15444
15445 case $host_os in
15446 cygwin* | mingw* | pw32*)
15447 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15448 # When not using gcc, we currently assume that we are using
15449 # Microsoft Visual C++.
15450 if test "$GCC" != yes; then
15451 with_gnu_ld=no
15452 fi
15453 ;;
15454 openbsd*)
15455 with_gnu_ld=no
15456 ;;
15457 esac
15458
15459 ld_shlibs_GCJ=yes
15460 if test "$with_gnu_ld" = yes; then
15461 # If archive_cmds runs LD, not CC, wlarc should be empty
15462 wlarc='${wl}'
15463
15464 # See if GNU ld supports shared libraries.
15465 case $host_os in
15466 aix3* | aix4* | aix5*)
15467 # On AIX/PPC, the GNU linker is very broken
15468 if test "$host_cpu" != ia64; then
15469 ld_shlibs_GCJ=no
15470 cat <<EOF 1>&2
15471
15472*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15473*** to be unable to reliably create shared libraries on AIX.
15474*** Therefore, libtool is disabling shared libraries support. If you
15475*** really care for shared libraries, you may want to modify your PATH
15476*** so that a non-GNU linker is found, and then restart.
15477
15478EOF
15479 fi
15480 ;;
15481
15482 amigaos*)
15483 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)'
15484 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15485 hardcode_minus_L_GCJ=yes
15486
15487 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15488 # that the semantics of dynamic libraries on AmigaOS, at least up
15489 # to version 4, is to share data among multiple programs linked
15490 # with the same dynamic library. Since this doesn't match the
15491 # behavior of shared libraries on other platforms, we can't use
15492 # them.
15493 ld_shlibs_GCJ=no
15494 ;;
15495
15496 beos*)
15497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15498 allow_undefined_flag_GCJ=unsupported
15499 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15500 # support --undefined. This deserves some investigation. FIXME
15501 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15502 else
15503 ld_shlibs_GCJ=no
15504 fi
15505 ;;
15506
15507 cygwin* | mingw* | pw32*)
15508 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15509 # as there is no search path for DLLs.
15510 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15511 allow_undefined_flag_GCJ=unsupported
15512 always_export_symbols_GCJ=no
15513 enable_shared_with_static_runtimes_GCJ=yes
15514 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15515
15516 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15517 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15518 # If the export-symbols file already is a .def file (1st line
15519 # is EXPORTS), use it as is; otherwise, prepend...
15520 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15521 cp $export_symbols $output_objdir/$soname.def;
15522 else
15523 echo EXPORTS > $output_objdir/$soname.def;
15524 cat $export_symbols >> $output_objdir/$soname.def;
15525 fi~
15526 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15527 else
15528 ld_shlibs=no
15529 fi
15530 ;;
15531
15532 netbsd*)
15533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15534 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15535 wlarc=
15536 else
15537 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15539 fi
15540 ;;
15541
15542 solaris* | sysv5*)
15543 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15544 ld_shlibs_GCJ=no
15545 cat <<EOF 1>&2
15546
15547*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15548*** create shared libraries on Solaris systems. Therefore, libtool
15549*** is disabling shared libraries support. We urge you to upgrade GNU
15550*** binutils to release 2.9.1 or newer. Another option is to modify
15551*** your PATH or compiler configuration so that the native linker is
15552*** used, and then restart.
15553
15554EOF
15555 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15556 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15557 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15558 else
15559 ld_shlibs_GCJ=no
15560 fi
15561 ;;
15562
15563 sunos4*)
15564 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15565 wlarc=
15566 hardcode_direct_GCJ=yes
15567 hardcode_shlibpath_var_GCJ=no
15568 ;;
15569
15570 *)
15571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15572 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15573 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15574 else
15575 ld_shlibs_GCJ=no
15576 fi
15577 ;;
15578 esac
15579
15580 if test "$ld_shlibs_GCJ" = yes; then
15581 runpath_var=LD_RUN_PATH
15582 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15583 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15584 # ancient GNU ld didn't support --whole-archive et. al.
15585 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15586 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15587 else
15588 whole_archive_flag_spec_GCJ=
15589 fi
15590 fi
15591 else
15592 # PORTME fill in a description of your system's linker (not GNU ld)
15593 case $host_os in
15594 aix3*)
15595 allow_undefined_flag_GCJ=unsupported
15596 always_export_symbols_GCJ=yes
15597 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'
15598 # Note: this linker hardcodes the directories in LIBPATH if there
15599 # are no directories specified by -L.
15600 hardcode_minus_L_GCJ=yes
15601 if test "$GCC" = yes && test -z "$link_static_flag"; then
15602 # Neither direct hardcoding nor static linking is supported with a
15603 # broken collect2.
15604 hardcode_direct_GCJ=unsupported
15605 fi
15606 ;;
15607
15608 aix4* | aix5*)
15609 if test "$host_cpu" = ia64; then
15610 # On IA64, the linker does run time linking by default, so we don't
15611 # have to do anything special.
15612 aix_use_runtimelinking=no
15613 exp_sym_flag='-Bexport'
15614 no_entry_flag=""
15615 else
15616 # If we're using GNU nm, then we don't want the "-C" option.
15617 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15618 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15619 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'
15620 else
15621 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'
15622 fi
15623 aix_use_runtimelinking=no
15624
15625 # Test if we are trying to use run time linking or normal
15626 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15627 # need to do runtime linking.
15628 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15629 for ld_flag in $LDFLAGS; do
15630 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15631 aix_use_runtimelinking=yes
15632 break
15633 fi
15634 done
15635 esac
15636
15637 exp_sym_flag='-bexport'
15638 no_entry_flag='-bnoentry'
15639 fi
15640
15641 # When large executables or shared objects are built, AIX ld can
15642 # have problems creating the table of contents. If linking a library
15643 # or program results in "error TOC overflow" add -mminimal-toc to
15644 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15645 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15646
15647 archive_cmds_GCJ=''
15648 hardcode_direct_GCJ=yes
15649 hardcode_libdir_separator_GCJ=':'
15650 link_all_deplibs_GCJ=yes
15651
15652 if test "$GCC" = yes; then
15653 case $host_os in aix4.012|aix4.012.*)
15654 # We only want to do this on AIX 4.2 and lower, the check
15655 # below for broken collect2 doesn't work under 4.3+
15656 collect2name=`${CC} -print-prog-name=collect2`
15657 if test -f "$collect2name" && \
15658 strings "$collect2name" | grep resolve_lib_name >/dev/null
15659 then
15660 # We have reworked collect2
15661 hardcode_direct_GCJ=yes
15662 else
15663 # We have old collect2
15664 hardcode_direct_GCJ=unsupported
15665 # It fails to find uninstalled libraries when the uninstalled
15666 # path is not listed in the libpath. Setting hardcode_minus_L
15667 # to unsupported forces relinking
15668 hardcode_minus_L_GCJ=yes
15669 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15670 hardcode_libdir_separator_GCJ=
15671 fi
15672 esac
15673 shared_flag='-shared'
15674 else
15675 # not using gcc
15676 if test "$host_cpu" = ia64; then
15677 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15678 # chokes on -Wl,-G. The following line is correct:
15679 shared_flag='-G'
15680 else
15681 if test "$aix_use_runtimelinking" = yes; then
15682 shared_flag='${wl}-G'
15683 else
15684 shared_flag='${wl}-bM:SRE'
15685 fi
15686 fi
15687 fi
15688
15689 # It seems that -bexpall does not export symbols beginning with
15690 # underscore (_), so it is better to generate a list of symbols to export.
15691 always_export_symbols_GCJ=yes
15692 if test "$aix_use_runtimelinking" = yes; then
15693 # Warning - without using the other runtime loading flags (-brtl),
15694 # -berok will link without error, but may produce a broken library.
15695 allow_undefined_flag_GCJ='-berok'
15696 # Determine the default libpath from the value encoded in an empty executable.
15697 cat >conftest.$ac_ext <<_ACEOF
15698#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015699/* confdefs.h. */
15700_ACEOF
15701cat confdefs.h >>conftest.$ac_ext
15702cat >>conftest.$ac_ext <<_ACEOF
15703/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015704
John Criswell47fdd832003-07-14 16:52:07 +000015705int
15706main ()
15707{
15708
15709 ;
15710 return 0;
15711}
15712_ACEOF
15713rm -f conftest.$ac_objext conftest$ac_exeext
15714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15715 (eval $ac_link) 2>&5
15716 ac_status=$?
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
15719 { ac_try='test -s conftest$ac_exeext'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15725
15726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15727}'`
15728# Check for a 64-bit object if we didn't find anything.
15729if 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; }
15730}'`; fi
15731else
15732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015733sed 's/^/| /' conftest.$ac_ext >&5
15734
John Criswell47fdd832003-07-14 16:52:07 +000015735fi
15736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15737if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15738
15739 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15740 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"
15741 else
15742 if test "$host_cpu" = ia64; then
15743 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15744 allow_undefined_flag_GCJ="-z nodefs"
15745 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"
15746 else
15747 # Determine the default libpath from the value encoded in an empty executable.
15748 cat >conftest.$ac_ext <<_ACEOF
15749#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015750/* confdefs.h. */
15751_ACEOF
15752cat confdefs.h >>conftest.$ac_ext
15753cat >>conftest.$ac_ext <<_ACEOF
15754/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015755
John Criswell47fdd832003-07-14 16:52:07 +000015756int
15757main ()
15758{
15759
15760 ;
15761 return 0;
15762}
15763_ACEOF
15764rm -f conftest.$ac_objext conftest$ac_exeext
15765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15766 (eval $ac_link) 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -s conftest$ac_exeext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776
15777aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15778}'`
15779# Check for a 64-bit object if we didn't find anything.
15780if 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; }
15781}'`; fi
15782else
15783 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015784sed 's/^/| /' conftest.$ac_ext >&5
15785
John Criswell47fdd832003-07-14 16:52:07 +000015786fi
15787rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15788if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15789
15790 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15791 # Warning - without using the other run time loading flags,
15792 # -berok will link without error, but may produce a broken library.
15793 no_undefined_flag_GCJ=' ${wl}-bernotok'
15794 allow_undefined_flag_GCJ=' ${wl}-berok'
15795 # -bexpall does not export symbols beginning with underscore (_)
15796 always_export_symbols_GCJ=yes
15797 # Exported symbols can be pulled into shared objects from archives
15798 whole_archive_flag_spec_GCJ=' '
15799 archive_cmds_need_lc_GCJ=yes
15800 # This is similar to how AIX traditionally builds it's shared libraries.
15801 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'
15802 fi
15803 fi
15804 ;;
15805
15806 amigaos*)
15807 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)'
15808 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15809 hardcode_minus_L_GCJ=yes
15810 # see comment about different semantics on the GNU ld section
15811 ld_shlibs_GCJ=no
15812 ;;
15813
15814 bsdi4*)
15815 export_dynamic_flag_spec_GCJ=-rdynamic
15816 ;;
15817
15818 cygwin* | mingw* | pw32*)
15819 # When not using gcc, we currently assume that we are using
15820 # Microsoft Visual C++.
15821 # hardcode_libdir_flag_spec is actually meaningless, as there is
15822 # no search path for DLLs.
15823 hardcode_libdir_flag_spec_GCJ=' '
15824 allow_undefined_flag_GCJ=unsupported
15825 # Tell ltmain to make .lib files, not .a files.
15826 libext=lib
15827 # Tell ltmain to make .dll files, not .so files.
15828 shrext=".dll"
15829 # FIXME: Setting linknames here is a bad hack.
15830 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15831 # The linker will automatically build a .lib file if we build a DLL.
15832 old_archive_From_new_cmds_GCJ='true'
15833 # FIXME: Should let the user specify the lib program.
15834 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15835 fix_srcfile_path='`cygpath -w "$srcfile"`'
15836 enable_shared_with_static_runtimes_GCJ=yes
15837 ;;
15838
15839 darwin* | rhapsody*)
15840 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15841 archive_cmds_need_lc_GCJ=no
15842 case "$host_os" in
15843 rhapsody* | darwin1.[012])
15844 allow_undefined_flag_GCJ='-undefined suppress'
15845 ;;
15846 *) # Darwin 1.3 on
15847 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15848 ;;
15849 esac
15850 # FIXME: Relying on posixy $() will cause problems for
15851 # cross-compilation, but unfortunately the echo tests do not
15852 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15853 # `"' quotes if we put them in here... so don't!
15854 lt_int_apple_cc_single_mod=no
15855 output_verbose_link_cmd='echo'
15856 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15857 lt_int_apple_cc_single_mod=yes
15858 fi
15859 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15860 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15861 else
15862 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'
15863 fi
15864 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15865 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15866 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15867 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}'
15868 else
15869 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}'
15870 fi
15871 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}'
15872 hardcode_direct_GCJ=no
15873 hardcode_automatic_GCJ=yes
15874 hardcode_shlibpath_var_GCJ=unsupported
15875 whole_archive_flag_spec_GCJ='-all_load $convenience'
15876 link_all_deplibs_GCJ=yes
15877 fi
15878 ;;
15879
15880 dgux*)
15881 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15882 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15883 hardcode_shlibpath_var_GCJ=no
15884 ;;
15885
15886 freebsd1*)
15887 ld_shlibs_GCJ=no
15888 ;;
15889
15890 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15891 # support. Future versions do this automatically, but an explicit c++rt0.o
15892 # does not break anything, and helps significantly (at the cost of a little
15893 # extra space).
15894 freebsd2.2*)
15895 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15896 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15897 hardcode_direct_GCJ=yes
15898 hardcode_shlibpath_var_GCJ=no
15899 ;;
15900
15901 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15902 freebsd2*)
15903 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15904 hardcode_direct_GCJ=yes
15905 hardcode_minus_L_GCJ=yes
15906 hardcode_shlibpath_var_GCJ=no
15907 ;;
15908
15909 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15910 freebsd*)
15911 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15912 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15913 hardcode_direct_GCJ=yes
15914 hardcode_shlibpath_var_GCJ=no
15915 ;;
15916
15917 hpux9*)
15918 if test "$GCC" = yes; then
15919 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'
15920 else
15921 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'
15922 fi
15923 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15924 hardcode_libdir_separator_GCJ=:
15925 hardcode_direct_GCJ=yes
15926
15927 # hardcode_minus_L: Not really in the search PATH,
15928 # but as the default location of the library.
15929 hardcode_minus_L_GCJ=yes
15930 export_dynamic_flag_spec_GCJ='${wl}-E'
15931 ;;
15932
15933 hpux10* | hpux11*)
15934 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15935 case "$host_cpu" in
15936 hppa*64*|ia64*)
15937 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15938 ;;
15939 *)
15940 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15941 ;;
15942 esac
15943 else
15944 case "$host_cpu" in
15945 hppa*64*|ia64*)
15946 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15947 ;;
15948 *)
15949 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15950 ;;
15951 esac
15952 fi
15953 if test "$with_gnu_ld" = no; then
15954 case "$host_cpu" in
15955 hppa*64*)
15956 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15957 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15958 hardcode_libdir_separator_GCJ=:
15959 hardcode_direct_GCJ=no
15960 hardcode_shlibpath_var_GCJ=no
15961 ;;
15962 ia64*)
15963 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15964 hardcode_direct_GCJ=no
15965 hardcode_shlibpath_var_GCJ=no
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 *)
15972 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15973 hardcode_libdir_separator_GCJ=:
15974 hardcode_direct_GCJ=yes
15975 export_dynamic_flag_spec_GCJ='${wl}-E'
15976
15977 # hardcode_minus_L: Not really in the search PATH,
15978 # but as the default location of the library.
15979 hardcode_minus_L_GCJ=yes
15980 ;;
15981 esac
15982 fi
15983 ;;
15984
15985 irix5* | irix6* | nonstopux*)
15986 if test "$GCC" = yes; then
15987 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'
15988 else
15989 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'
15990 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15991 fi
15992 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15993 hardcode_libdir_separator_GCJ=:
15994 link_all_deplibs_GCJ=yes
15995 ;;
15996
15997 netbsd*)
15998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15999 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16000 else
16001 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16002 fi
16003 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16004 hardcode_direct_GCJ=yes
16005 hardcode_shlibpath_var_GCJ=no
16006 ;;
16007
16008 newsos6)
16009 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16010 hardcode_direct_GCJ=yes
16011 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16012 hardcode_libdir_separator_GCJ=:
16013 hardcode_shlibpath_var_GCJ=no
16014 ;;
16015
16016 openbsd*)
16017 hardcode_direct_GCJ=yes
16018 hardcode_shlibpath_var_GCJ=no
16019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16020 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16021 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16022 export_dynamic_flag_spec_GCJ='${wl}-E'
16023 else
16024 case $host_os in
16025 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16026 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16027 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16028 ;;
16029 *)
16030 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16031 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16032 ;;
16033 esac
16034 fi
16035 ;;
16036
16037 os2*)
16038 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16039 hardcode_minus_L_GCJ=yes
16040 allow_undefined_flag_GCJ=unsupported
16041 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'
16042 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16043 ;;
16044
16045 osf3*)
16046 if test "$GCC" = yes; then
16047 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16048 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'
16049 else
16050 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16051 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'
16052 fi
16053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16054 hardcode_libdir_separator_GCJ=:
16055 ;;
16056
16057 osf4* | osf5*) # as osf3* with the addition of -msym flag
16058 if test "$GCC" = yes; then
16059 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16060 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'
16061 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16062 else
16063 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16064 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'
16065 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~
16066 $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'
16067
16068 # Both c and cxx compiler support -rpath directly
16069 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16070 fi
16071 hardcode_libdir_separator_GCJ=:
16072 ;;
16073
16074 sco3.2v5*)
16075 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16076 hardcode_shlibpath_var_GCJ=no
16077 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16078 runpath_var=LD_RUN_PATH
16079 hardcode_runpath_var=yes
16080 ;;
16081
16082 solaris*)
16083 no_undefined_flag_GCJ=' -z text'
16084 if test "$GCC" = yes; then
16085 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16086 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16087 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16088 else
16089 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16090 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16091 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16092 fi
16093 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16094 hardcode_shlibpath_var_GCJ=no
16095 case $host_os in
16096 solaris2.[0-5] | solaris2.[0-5].*) ;;
16097 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16098 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16099 esac
16100 link_all_deplibs_GCJ=yes
16101 ;;
16102
16103 sunos4*)
16104 if test "x$host_vendor" = xsequent; then
16105 # Use $CC to link under sequent, because it throws in some extra .o
16106 # files that make .init and .fini sections work.
16107 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16108 else
16109 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16110 fi
16111 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16112 hardcode_direct_GCJ=yes
16113 hardcode_minus_L_GCJ=yes
16114 hardcode_shlibpath_var_GCJ=no
16115 ;;
16116
16117 sysv4)
16118 case $host_vendor in
16119 sni)
16120 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16121 hardcode_direct_GCJ=yes # is this really true???
16122 ;;
16123 siemens)
16124 ## LD is ld it makes a PLAMLIB
16125 ## CC just makes a GrossModule.
16126 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16127 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16128 hardcode_direct_GCJ=no
16129 ;;
16130 motorola)
16131 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16132 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16133 ;;
16134 esac
16135 runpath_var='LD_RUN_PATH'
16136 hardcode_shlibpath_var_GCJ=no
16137 ;;
16138
16139 sysv4.3*)
16140 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16141 hardcode_shlibpath_var_GCJ=no
16142 export_dynamic_flag_spec_GCJ='-Bexport'
16143 ;;
16144
16145 sysv4*MP*)
16146 if test -d /usr/nec; then
16147 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16148 hardcode_shlibpath_var_GCJ=no
16149 runpath_var=LD_RUN_PATH
16150 hardcode_runpath_var=yes
16151 ld_shlibs_GCJ=yes
16152 fi
16153 ;;
16154
16155 sysv4.2uw2*)
16156 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16157 hardcode_direct_GCJ=yes
16158 hardcode_minus_L_GCJ=no
16159 hardcode_shlibpath_var_GCJ=no
16160 hardcode_runpath_var=yes
16161 runpath_var=LD_RUN_PATH
16162 ;;
16163
16164 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16165 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16166 if test "$GCC" = yes; then
16167 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16168 else
16169 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16170 fi
16171 runpath_var='LD_RUN_PATH'
16172 hardcode_shlibpath_var_GCJ=no
16173 ;;
16174
16175 sysv5*)
16176 no_undefined_flag_GCJ=' -z text'
16177 # $CC -shared without GNU ld will not create a library from C++
16178 # object files and a static libstdc++, better avoid it by now
16179 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16181 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16182 hardcode_libdir_flag_spec_GCJ=
16183 hardcode_shlibpath_var_GCJ=no
16184 runpath_var='LD_RUN_PATH'
16185 ;;
16186
16187 uts4*)
16188 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16189 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16190 hardcode_shlibpath_var_GCJ=no
16191 ;;
16192
16193 *)
16194 ld_shlibs_GCJ=no
16195 ;;
16196 esac
16197 fi
16198
16199echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16200echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16201test "$ld_shlibs_GCJ" = no && can_build_shared=no
16202
16203variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16204if test "$GCC" = yes; then
16205 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16206fi
16207
16208#
16209# Do we need to explicitly link libc?
16210#
16211case "x$archive_cmds_need_lc_GCJ" in
16212x|xyes)
16213 # Assume -lc should be added
16214 archive_cmds_need_lc_GCJ=yes
16215
16216 if test "$enable_shared" = yes && test "$GCC" = yes; then
16217 case $archive_cmds_GCJ in
16218 *'~'*)
16219 # FIXME: we may have to deal with multi-command sequences.
16220 ;;
16221 '$CC '*)
16222 # Test whether the compiler implicitly links with -lc since on some
16223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16224 # to ld, don't add -lc before -lgcc.
16225 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16226echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16227 $rm conftest*
16228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16229
16230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16231 (eval $ac_compile) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } 2>conftest.err; then
16235 soname=conftest
16236 lib=conftest
16237 libobjs=conftest.$ac_objext
16238 deplibs=
16239 wl=$lt_prog_compiler_wl_GCJ
16240 compiler_flags=-v
16241 linker_flags=-v
16242 verstring=
16243 output_objdir=.
16244 libname=conftest
16245 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16246 allow_undefined_flag_GCJ=
16247 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16248 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }
16252 then
16253 archive_cmds_need_lc_GCJ=no
16254 else
16255 archive_cmds_need_lc_GCJ=yes
16256 fi
16257 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16258 else
16259 cat conftest.err 1>&5
16260 fi
16261 $rm conftest*
16262 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16263echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16264 ;;
16265 esac
16266 fi
16267 ;;
16268esac
16269
16270echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16271echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16272hardcode_action_GCJ=
16273if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16274 test -n "$runpath_var GCJ" || \
16275 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16276
16277 # We can hardcode non-existant directories.
16278 if test "$hardcode_direct_GCJ" != no &&
16279 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16280 # have to relink, otherwise we might link with an installed library
16281 # when we should be linking with a yet-to-be-installed one
16282 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16283 test "$hardcode_minus_L_GCJ" != no; then
16284 # Linking always hardcodes the temporary library directory.
16285 hardcode_action_GCJ=relink
16286 else
16287 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16288 hardcode_action_GCJ=immediate
16289 fi
16290else
16291 # We cannot hardcode anything, or else we can only hardcode existing
16292 # directories.
16293 hardcode_action_GCJ=unsupported
16294fi
16295echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16296echo "${ECHO_T}$hardcode_action_GCJ" >&6
16297
16298if test "$hardcode_action_GCJ" = relink; then
16299 # Fast installation is not supported
16300 enable_fast_install=no
16301elif test "$shlibpath_overrides_runpath" = yes ||
16302 test "$enable_shared" = no; then
16303 # Fast installation is not necessary
16304 enable_fast_install=needless
16305fi
16306
16307striplib=
16308old_striplib=
16309echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16310echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16311if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16312 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16313 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16314 echo "$as_me:$LINENO: result: yes" >&5
16315echo "${ECHO_T}yes" >&6
16316else
16317# FIXME - insert some real tests, host_os isn't really good enough
16318 case $host_os in
16319 darwin*)
16320 if test -n "$STRIP" ; then
16321 striplib="$STRIP -x"
16322 echo "$as_me:$LINENO: result: yes" >&5
16323echo "${ECHO_T}yes" >&6
16324 else
16325 echo "$as_me:$LINENO: result: no" >&5
16326echo "${ECHO_T}no" >&6
16327fi
16328 ;;
16329 *)
16330 echo "$as_me:$LINENO: result: no" >&5
16331echo "${ECHO_T}no" >&6
16332 ;;
16333 esac
16334fi
16335
16336echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16337echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16338library_names_spec=
16339libname_spec='lib$name'
16340soname_spec=
16341shrext=".so"
16342postinstall_cmds=
16343postuninstall_cmds=
16344finish_cmds=
16345finish_eval=
16346shlibpath_var=
16347shlibpath_overrides_runpath=unknown
16348version_type=none
16349dynamic_linker="$host_os ld.so"
16350sys_lib_dlsearch_path_spec="/lib /usr/lib"
16351if test "$GCC" = yes; then
16352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16353 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16354 # if the path contains ";" then we assume it to be the separator
16355 # otherwise default to the standard path separator (i.e. ":") - it is
16356 # assumed that no part of a normal pathname contains ";" but that should
16357 # okay in the real world where ";" in dirpaths is itself problematic.
16358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16359 else
16360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16361 fi
16362else
16363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16364fi
16365need_lib_prefix=unknown
16366hardcode_into_libs=no
16367
16368# when you set need_version to no, make sure it does not cause -set_version
16369# flags to be left without arguments
16370need_version=unknown
16371
16372case $host_os in
16373aix3*)
16374 version_type=linux
16375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16376 shlibpath_var=LIBPATH
16377
16378 # AIX 3 has no versioning support, so we append a major version to the name.
16379 soname_spec='${libname}${release}${shared_ext}$major'
16380 ;;
16381
16382aix4* | aix5*)
16383 version_type=linux
16384 need_lib_prefix=no
16385 need_version=no
16386 hardcode_into_libs=yes
16387 if test "$host_cpu" = ia64; then
16388 # AIX 5 supports IA64
16389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 else
16392 # With GCC up to 2.95.x, collect2 would create an import file
16393 # for dependence libraries. The import file would start with
16394 # the line `#! .'. This would cause the generated library to
16395 # depend on `.', always an invalid library. This was fixed in
16396 # development snapshots of GCC prior to 3.0.
16397 case $host_os in
16398 aix4 | aix4.[01] | aix4.[01].*)
16399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16400 echo ' yes '
16401 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16402 :
16403 else
16404 can_build_shared=no
16405 fi
16406 ;;
16407 esac
16408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16409 # soname into executable. Probably we can add versioning support to
16410 # collect2, so additional links can be useful in future.
16411 if test "$aix_use_runtimelinking" = yes; then
16412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16413 # instead of lib<name>.a to let people know that these are not
16414 # typical AIX shared libraries.
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416 else
16417 # We preserve .a as extension for shared libraries through AIX4.2
16418 # and later when we are not doing run time linking.
16419 library_names_spec='${libname}${release}.a $libname.a'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 fi
16422 shlibpath_var=LIBPATH
16423 fi
16424 ;;
16425
16426amigaos*)
16427 library_names_spec='$libname.ixlibrary $libname.a'
16428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16429 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'
16430 ;;
16431
16432beos*)
16433 library_names_spec='${libname}${shared_ext}'
16434 dynamic_linker="$host_os ld.so"
16435 shlibpath_var=LIBRARY_PATH
16436 ;;
16437
16438bsdi4*)
16439 version_type=linux
16440 need_version=no
16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442 soname_spec='${libname}${release}${shared_ext}$major'
16443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16447 # the default ld.so.conf also contains /usr/contrib/lib and
16448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16449 # libtool to hard-code these into programs
16450 ;;
16451
16452cygwin* | mingw* | pw32*)
16453 version_type=windows
16454 shrext=".dll"
16455 need_version=no
16456 need_lib_prefix=no
16457
16458 case $GCC,$host_os in
16459 yes,cygwin* | yes,mingw* | yes,pw32*)
16460 library_names_spec='$libname.dll.a'
16461 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16462 postinstall_cmds='base_file=`basename \${file}`~
16463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16464 dldir=$destdir/`dirname \$dlpath`~
16465 test -d \$dldir || mkdir -p \$dldir~
16466 $install_prog $dir/$dlname \$dldir/$dlname'
16467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16468 dlpath=$dir/\$dldll~
16469 $rm \$dlpath'
16470 shlibpath_overrides_runpath=yes
16471
16472 case $host_os in
16473 cygwin*)
16474 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16476 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16477 ;;
16478 mingw*)
16479 # MinGW DLLs use traditional 'lib' prefix
16480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16481 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16482 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16483 # It is most probably a Windows format PATH printed by
16484 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16485 # path with ; separators, and with drive letters. We can handle the
16486 # drive letters (cygwin fileutils understands them), so leave them,
16487 # especially as we might pass files found there to a mingw objdump,
16488 # which wouldn't understand a cygwinified path. Ahh.
16489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16490 else
16491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16492 fi
16493 ;;
16494 pw32*)
16495 # pw32 DLLs use 'pw' prefix rather than 'lib'
16496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16497 ;;
16498 esac
16499 ;;
16500
16501 *)
16502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16503 ;;
16504 esac
16505 dynamic_linker='Win32 ld.exe'
16506 # FIXME: first we should search . and the directory the executable is in
16507 shlibpath_var=PATH
16508 ;;
16509
16510darwin* | rhapsody*)
16511 dynamic_linker="$host_os dyld"
16512 version_type=darwin
16513 need_lib_prefix=no
16514 need_version=no
16515 # FIXME: Relying on posixy $() will cause problems for
16516 # cross-compilation, but unfortunately the echo tests do not
16517 # yet detect zsh echo's removal of \ escapes.
16518 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16519 soname_spec='${libname}${release}${major}$shared_ext'
16520 shlibpath_overrides_runpath=yes
16521 shlibpath_var=DYLD_LIBRARY_PATH
16522 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16523 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16524 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16525 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"`
16526 fi
16527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16528 ;;
16529
16530dgux*)
16531 version_type=linux
16532 need_lib_prefix=no
16533 need_version=no
16534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16535 soname_spec='${libname}${release}${shared_ext}$major'
16536 shlibpath_var=LD_LIBRARY_PATH
16537 ;;
16538
16539freebsd1*)
16540 dynamic_linker=no
16541 ;;
16542
16543freebsd*)
16544 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16545 version_type=freebsd-$objformat
16546 case $version_type in
16547 freebsd-elf*)
16548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16549 need_version=no
16550 need_lib_prefix=no
16551 ;;
16552 freebsd-*)
16553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16554 need_version=yes
16555 ;;
16556 esac
16557 shlibpath_var=LD_LIBRARY_PATH
16558 case $host_os in
16559 freebsd2*)
16560 shlibpath_overrides_runpath=yes
16561 ;;
16562 freebsd3.01* | freebsdelf3.01*)
16563 shlibpath_overrides_runpath=yes
16564 hardcode_into_libs=yes
16565 ;;
16566 *) # from 3.2 on
16567 shlibpath_overrides_runpath=no
16568 hardcode_into_libs=yes
16569 ;;
16570 esac
16571 ;;
16572
16573gnu*)
16574 version_type=linux
16575 need_lib_prefix=no
16576 need_version=no
16577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16578 soname_spec='${libname}${release}${shared_ext}$major'
16579 shlibpath_var=LD_LIBRARY_PATH
16580 hardcode_into_libs=yes
16581 ;;
16582
16583hpux9* | hpux10* | hpux11*)
16584 # Give a soname corresponding to the major version so that dld.sl refuses to
16585 # link against other versions.
16586 version_type=sunos
16587 need_lib_prefix=no
16588 need_version=no
16589 case "$host_cpu" in
16590 ia64*)
16591 shrext='.so'
16592 hardcode_into_libs=yes
16593 dynamic_linker="$host_os dld.so"
16594 shlibpath_var=LD_LIBRARY_PATH
16595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16597 soname_spec='${libname}${release}${shared_ext}$major'
16598 if test "X$HPUX_IA64_MODE" = X32; then
16599 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16600 else
16601 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16602 fi
16603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16604 ;;
16605 hppa*64*)
16606 shrext='.sl'
16607 hardcode_into_libs=yes
16608 dynamic_linker="$host_os dld.sl"
16609 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16615 ;;
16616 *)
16617 shrext='.sl'
16618 dynamic_linker="$host_os dld.sl"
16619 shlibpath_var=SHLIB_PATH
16620 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16622 soname_spec='${libname}${release}${shared_ext}$major'
16623 ;;
16624 esac
16625 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16626 postinstall_cmds='chmod 555 $lib'
16627 ;;
16628
16629irix5* | irix6* | nonstopux*)
16630 case $host_os in
16631 nonstopux*) version_type=nonstopux ;;
16632 *)
16633 if test "$lt_cv_prog_gnu_ld" = yes; then
16634 version_type=linux
16635 else
16636 version_type=irix
16637 fi ;;
16638 esac
16639 need_lib_prefix=no
16640 need_version=no
16641 soname_spec='${libname}${release}${shared_ext}$major'
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16643 case $host_os in
16644 irix5* | nonstopux*)
16645 libsuff= shlibsuff=
16646 ;;
16647 *)
16648 case $LD in # libtool.m4 will add one of these switches to LD
16649 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16650 libsuff= shlibsuff= libmagic=32-bit;;
16651 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16652 libsuff=32 shlibsuff=N32 libmagic=N32;;
16653 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16654 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16655 *) libsuff= shlibsuff= libmagic=never-match;;
16656 esac
16657 ;;
16658 esac
16659 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16660 shlibpath_overrides_runpath=no
16661 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16662 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16663 hardcode_into_libs=yes
16664 ;;
16665
16666# No shared lib support for Linux oldld, aout, or coff.
16667linux*oldld* | linux*aout* | linux*coff*)
16668 dynamic_linker=no
16669 ;;
16670
16671# This must be Linux ELF.
16672linux*)
16673 version_type=linux
16674 need_lib_prefix=no
16675 need_version=no
16676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16677 soname_spec='${libname}${release}${shared_ext}$major'
16678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16679 shlibpath_var=LD_LIBRARY_PATH
16680 shlibpath_overrides_runpath=no
16681 # This implies no fast_install, which is unacceptable.
16682 # Some rework will be needed to allow for fast_install
16683 # before this can be enabled.
16684 hardcode_into_libs=yes
16685
16686 # We used to test for /lib/ld.so.1 and disable shared libraries on
16687 # powerpc, because MkLinux only supported shared libraries with the
16688 # GNU dynamic linker. Since this was broken with cross compilers,
16689 # most powerpc-linux boxes support dynamic linking these days and
16690 # people can always --disable-shared, the test was removed, and we
16691 # assume the GNU/Linux dynamic linker is in use.
16692 dynamic_linker='GNU/Linux ld.so'
16693 ;;
16694
16695netbsd*)
16696 version_type=sunos
16697 need_lib_prefix=no
16698 need_version=no
16699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16702 dynamic_linker='NetBSD (a.out) ld.so'
16703 else
16704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16705 soname_spec='${libname}${release}${shared_ext}$major'
16706 dynamic_linker='NetBSD ld.elf_so'
16707 fi
16708 shlibpath_var=LD_LIBRARY_PATH
16709 shlibpath_overrides_runpath=yes
16710 hardcode_into_libs=yes
16711 ;;
16712
16713newsos6)
16714 version_type=linux
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716 shlibpath_var=LD_LIBRARY_PATH
16717 shlibpath_overrides_runpath=yes
16718 ;;
16719
16720nto-qnx)
16721 version_type=linux
16722 need_lib_prefix=no
16723 need_version=no
16724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16725 soname_spec='${libname}${release}${shared_ext}$major'
16726 shlibpath_var=LD_LIBRARY_PATH
16727 shlibpath_overrides_runpath=yes
16728 ;;
16729
16730openbsd*)
16731 version_type=sunos
16732 need_lib_prefix=no
16733 need_version=no
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16736 shlibpath_var=LD_LIBRARY_PATH
16737 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16738 case $host_os in
16739 openbsd2.[89] | openbsd2.[89].*)
16740 shlibpath_overrides_runpath=no
16741 ;;
16742 *)
16743 shlibpath_overrides_runpath=yes
16744 ;;
16745 esac
16746 else
16747 shlibpath_overrides_runpath=yes
16748 fi
16749 ;;
16750
16751os2*)
16752 libname_spec='$name'
16753 shrext=".dll"
16754 need_lib_prefix=no
16755 library_names_spec='$libname${shared_ext} $libname.a'
16756 dynamic_linker='OS/2 ld.exe'
16757 shlibpath_var=LIBPATH
16758 ;;
16759
16760osf3* | osf4* | osf5*)
16761 version_type=osf
16762 need_lib_prefix=no
16763 need_version=no
16764 soname_spec='${libname}${release}${shared_ext}$major'
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766 shlibpath_var=LD_LIBRARY_PATH
16767 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16768 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16769 ;;
16770
16771sco3.2v5*)
16772 version_type=osf
16773 soname_spec='${libname}${release}${shared_ext}$major'
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775 shlibpath_var=LD_LIBRARY_PATH
16776 ;;
16777
16778solaris*)
16779 version_type=linux
16780 need_lib_prefix=no
16781 need_version=no
16782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16783 soname_spec='${libname}${release}${shared_ext}$major'
16784 shlibpath_var=LD_LIBRARY_PATH
16785 shlibpath_overrides_runpath=yes
16786 hardcode_into_libs=yes
16787 # ldd complains unless libraries are executable
16788 postinstall_cmds='chmod +x $lib'
16789 ;;
16790
16791sunos4*)
16792 version_type=sunos
16793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16794 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16795 shlibpath_var=LD_LIBRARY_PATH
16796 shlibpath_overrides_runpath=yes
16797 if test "$with_gnu_ld" = yes; then
16798 need_lib_prefix=no
16799 fi
16800 need_version=yes
16801 ;;
16802
16803sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16804 version_type=linux
16805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16806 soname_spec='${libname}${release}${shared_ext}$major'
16807 shlibpath_var=LD_LIBRARY_PATH
16808 case $host_vendor in
16809 sni)
16810 shlibpath_overrides_runpath=no
16811 need_lib_prefix=no
16812 export_dynamic_flag_spec='${wl}-Blargedynsym'
16813 runpath_var=LD_RUN_PATH
16814 ;;
16815 siemens)
16816 need_lib_prefix=no
16817 ;;
16818 motorola)
16819 need_lib_prefix=no
16820 need_version=no
16821 shlibpath_overrides_runpath=no
16822 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16823 ;;
16824 esac
16825 ;;
16826
16827sysv4*MP*)
16828 if test -d /usr/nec ;then
16829 version_type=linux
16830 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16831 soname_spec='$libname${shared_ext}.$major'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 fi
16834 ;;
16835
16836uts4*)
16837 version_type=linux
16838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16839 soname_spec='${libname}${release}${shared_ext}$major'
16840 shlibpath_var=LD_LIBRARY_PATH
16841 ;;
16842
16843*)
16844 dynamic_linker=no
16845 ;;
16846esac
16847echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16848echo "${ECHO_T}$dynamic_linker" >&6
16849test "$dynamic_linker" = no && can_build_shared=no
16850
16851if test "x$enable_dlopen" != xyes; then
16852 enable_dlopen=unknown
16853 enable_dlopen_self=unknown
16854 enable_dlopen_self_static=unknown
16855else
16856 lt_cv_dlopen=no
16857 lt_cv_dlopen_libs=
16858
16859 case $host_os in
16860 beos*)
16861 lt_cv_dlopen="load_add_on"
16862 lt_cv_dlopen_libs=
16863 lt_cv_dlopen_self=yes
16864 ;;
16865
16866 mingw* | pw32*)
16867 lt_cv_dlopen="LoadLibrary"
16868 lt_cv_dlopen_libs=
16869 ;;
16870
16871 cygwin*)
16872 lt_cv_dlopen="dlopen"
16873 lt_cv_dlopen_libs=
16874 ;;
16875
16876 darwin*)
16877 # if libdl is installed we need to link against it
16878 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16879echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16880if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16882else
16883 ac_check_lib_save_LIBS=$LIBS
16884LIBS="-ldl $LIBS"
16885cat >conftest.$ac_ext <<_ACEOF
16886#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016887/* confdefs.h. */
16888_ACEOF
16889cat confdefs.h >>conftest.$ac_ext
16890cat >>conftest.$ac_ext <<_ACEOF
16891/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016892
16893/* Override any gcc2 internal prototype to avoid an error. */
16894#ifdef __cplusplus
16895extern "C"
16896#endif
16897/* We use char because int might match the return type of a gcc2
16898 builtin and then its argument prototype would still apply. */
16899char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016900int
16901main ()
16902{
16903dlopen ();
16904 ;
16905 return 0;
16906}
16907_ACEOF
16908rm -f conftest.$ac_objext conftest$ac_exeext
16909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16910 (eval $ac_link) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
16914 { ac_try='test -s conftest$ac_exeext'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920 ac_cv_lib_dl_dlopen=yes
16921else
16922 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016923sed 's/^/| /' conftest.$ac_ext >&5
16924
John Criswell47fdd832003-07-14 16:52:07 +000016925ac_cv_lib_dl_dlopen=no
16926fi
16927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16928LIBS=$ac_check_lib_save_LIBS
16929fi
16930echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16931echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16932if test $ac_cv_lib_dl_dlopen = yes; then
16933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16934else
16935
16936 lt_cv_dlopen="dyld"
16937 lt_cv_dlopen_libs=
16938 lt_cv_dlopen_self=yes
16939
16940fi
16941
16942 ;;
16943
16944 *)
16945 echo "$as_me:$LINENO: checking for shl_load" >&5
16946echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16947if test "${ac_cv_func_shl_load+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16949else
16950 cat >conftest.$ac_ext <<_ACEOF
16951#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016952/* confdefs.h. */
16953_ACEOF
16954cat confdefs.h >>conftest.$ac_ext
16955cat >>conftest.$ac_ext <<_ACEOF
16956/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016957/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016958 which can conflict with char shl_load (); below.
16959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16960 <limits.h> exists even on freestanding compilers. */
16961#ifdef __STDC__
16962# include <limits.h>
16963#else
16964# include <assert.h>
16965#endif
John Criswell47fdd832003-07-14 16:52:07 +000016966/* Override any gcc2 internal prototype to avoid an error. */
16967#ifdef __cplusplus
16968extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016969{
John Criswell47fdd832003-07-14 16:52:07 +000016970#endif
16971/* We use char because int might match the return type of a gcc2
16972 builtin and then its argument prototype would still apply. */
16973char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016974/* The GNU C library defines this for functions which it implements
16975 to always fail with ENOSYS. Some functions are actually named
16976 something starting with __ and the normal name is an alias. */
16977#if defined (__stub_shl_load) || defined (__stub___shl_load)
16978choke me
16979#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016980char (*f) () = shl_load;
16981#endif
16982#ifdef __cplusplus
16983}
John Criswell47fdd832003-07-14 16:52:07 +000016984#endif
16985
John Criswell0c38eaf2003-09-10 15:17:25 +000016986int
16987main ()
16988{
16989return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016990 ;
16991 return 0;
16992}
16993_ACEOF
16994rm -f conftest.$ac_objext conftest$ac_exeext
16995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16996 (eval $ac_link) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } &&
17000 { ac_try='test -s conftest$ac_exeext'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; }; then
17006 ac_cv_func_shl_load=yes
17007else
17008 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017009sed 's/^/| /' conftest.$ac_ext >&5
17010
John Criswell47fdd832003-07-14 16:52:07 +000017011ac_cv_func_shl_load=no
17012fi
17013rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17014fi
17015echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17016echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17017if test $ac_cv_func_shl_load = yes; then
17018 lt_cv_dlopen="shl_load"
17019else
17020 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17021echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17022if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17024else
17025 ac_check_lib_save_LIBS=$LIBS
17026LIBS="-ldld $LIBS"
17027cat >conftest.$ac_ext <<_ACEOF
17028#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017029/* confdefs.h. */
17030_ACEOF
17031cat confdefs.h >>conftest.$ac_ext
17032cat >>conftest.$ac_ext <<_ACEOF
17033/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017034
17035/* Override any gcc2 internal prototype to avoid an error. */
17036#ifdef __cplusplus
17037extern "C"
17038#endif
17039/* We use char because int might match the return type of a gcc2
17040 builtin and then its argument prototype would still apply. */
17041char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017042int
17043main ()
17044{
17045shl_load ();
17046 ;
17047 return 0;
17048}
17049_ACEOF
17050rm -f conftest.$ac_objext conftest$ac_exeext
17051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052 (eval $ac_link) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
17056 { ac_try='test -s conftest$ac_exeext'
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 ac_cv_lib_dld_shl_load=yes
17063else
17064 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017065sed 's/^/| /' conftest.$ac_ext >&5
17066
John Criswell47fdd832003-07-14 16:52:07 +000017067ac_cv_lib_dld_shl_load=no
17068fi
17069rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17070LIBS=$ac_check_lib_save_LIBS
17071fi
17072echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17073echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17074if test $ac_cv_lib_dld_shl_load = yes; then
17075 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17076else
17077 echo "$as_me:$LINENO: checking for dlopen" >&5
17078echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17079if test "${ac_cv_func_dlopen+set}" = set; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17081else
17082 cat >conftest.$ac_ext <<_ACEOF
17083#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017084/* confdefs.h. */
17085_ACEOF
17086cat confdefs.h >>conftest.$ac_ext
17087cat >>conftest.$ac_ext <<_ACEOF
17088/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017089/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017090 which can conflict with char dlopen (); below.
17091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17092 <limits.h> exists even on freestanding compilers. */
17093#ifdef __STDC__
17094# include <limits.h>
17095#else
17096# include <assert.h>
17097#endif
John Criswell47fdd832003-07-14 16:52:07 +000017098/* Override any gcc2 internal prototype to avoid an error. */
17099#ifdef __cplusplus
17100extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017101{
John Criswell47fdd832003-07-14 16:52:07 +000017102#endif
17103/* We use char because int might match the return type of a gcc2
17104 builtin and then its argument prototype would still apply. */
17105char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017106/* The GNU C library defines this for functions which it implements
17107 to always fail with ENOSYS. Some functions are actually named
17108 something starting with __ and the normal name is an alias. */
17109#if defined (__stub_dlopen) || defined (__stub___dlopen)
17110choke me
17111#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017112char (*f) () = dlopen;
17113#endif
17114#ifdef __cplusplus
17115}
John Criswell47fdd832003-07-14 16:52:07 +000017116#endif
17117
John Criswell0c38eaf2003-09-10 15:17:25 +000017118int
17119main ()
17120{
17121return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017122 ;
17123 return 0;
17124}
17125_ACEOF
17126rm -f conftest.$ac_objext conftest$ac_exeext
17127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17128 (eval $ac_link) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } &&
17132 { ac_try='test -s conftest$ac_exeext'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 ac_cv_func_dlopen=yes
17139else
17140 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017141sed 's/^/| /' conftest.$ac_ext >&5
17142
John Criswell47fdd832003-07-14 16:52:07 +000017143ac_cv_func_dlopen=no
17144fi
17145rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17146fi
17147echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17148echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17149if test $ac_cv_func_dlopen = yes; then
17150 lt_cv_dlopen="dlopen"
17151else
17152 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17153echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17154if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17156else
17157 ac_check_lib_save_LIBS=$LIBS
17158LIBS="-ldl $LIBS"
17159cat >conftest.$ac_ext <<_ACEOF
17160#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017161/* confdefs.h. */
17162_ACEOF
17163cat confdefs.h >>conftest.$ac_ext
17164cat >>conftest.$ac_ext <<_ACEOF
17165/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017166
17167/* Override any gcc2 internal prototype to avoid an error. */
17168#ifdef __cplusplus
17169extern "C"
17170#endif
17171/* We use char because int might match the return type of a gcc2
17172 builtin and then its argument prototype would still apply. */
17173char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017174int
17175main ()
17176{
17177dlopen ();
17178 ;
17179 return 0;
17180}
17181_ACEOF
17182rm -f conftest.$ac_objext conftest$ac_exeext
17183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17184 (eval $ac_link) 2>&5
17185 ac_status=$?
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } &&
17188 { ac_try='test -s conftest$ac_exeext'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
17194 ac_cv_lib_dl_dlopen=yes
17195else
17196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017197sed 's/^/| /' conftest.$ac_ext >&5
17198
John Criswell47fdd832003-07-14 16:52:07 +000017199ac_cv_lib_dl_dlopen=no
17200fi
17201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17202LIBS=$ac_check_lib_save_LIBS
17203fi
17204echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17205echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17206if test $ac_cv_lib_dl_dlopen = yes; then
17207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17208else
17209 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17210echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17211if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17213else
17214 ac_check_lib_save_LIBS=$LIBS
17215LIBS="-lsvld $LIBS"
17216cat >conftest.$ac_ext <<_ACEOF
17217#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017218/* confdefs.h. */
17219_ACEOF
17220cat confdefs.h >>conftest.$ac_ext
17221cat >>conftest.$ac_ext <<_ACEOF
17222/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017223
17224/* Override any gcc2 internal prototype to avoid an error. */
17225#ifdef __cplusplus
17226extern "C"
17227#endif
17228/* We use char because int might match the return type of a gcc2
17229 builtin and then its argument prototype would still apply. */
17230char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017231int
17232main ()
17233{
17234dlopen ();
17235 ;
17236 return 0;
17237}
17238_ACEOF
17239rm -f conftest.$ac_objext conftest$ac_exeext
17240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17241 (eval $ac_link) 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } &&
17245 { ac_try='test -s conftest$ac_exeext'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; }; then
17251 ac_cv_lib_svld_dlopen=yes
17252else
17253 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017254sed 's/^/| /' conftest.$ac_ext >&5
17255
John Criswell47fdd832003-07-14 16:52:07 +000017256ac_cv_lib_svld_dlopen=no
17257fi
17258rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17259LIBS=$ac_check_lib_save_LIBS
17260fi
17261echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17262echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17263if test $ac_cv_lib_svld_dlopen = yes; then
17264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17265else
17266 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17267echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17268if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17270else
17271 ac_check_lib_save_LIBS=$LIBS
17272LIBS="-ldld $LIBS"
17273cat >conftest.$ac_ext <<_ACEOF
17274#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017275/* confdefs.h. */
17276_ACEOF
17277cat confdefs.h >>conftest.$ac_ext
17278cat >>conftest.$ac_ext <<_ACEOF
17279/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017280
17281/* Override any gcc2 internal prototype to avoid an error. */
17282#ifdef __cplusplus
17283extern "C"
17284#endif
17285/* We use char because int might match the return type of a gcc2
17286 builtin and then its argument prototype would still apply. */
17287char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017288int
17289main ()
17290{
17291dld_link ();
17292 ;
17293 return 0;
17294}
17295_ACEOF
17296rm -f conftest.$ac_objext conftest$ac_exeext
17297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17298 (eval $ac_link) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
17302 { ac_try='test -s conftest$ac_exeext'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; }; then
17308 ac_cv_lib_dld_dld_link=yes
17309else
17310 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017311sed 's/^/| /' conftest.$ac_ext >&5
17312
John Criswell47fdd832003-07-14 16:52:07 +000017313ac_cv_lib_dld_dld_link=no
17314fi
17315rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17316LIBS=$ac_check_lib_save_LIBS
17317fi
17318echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17319echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17320if test $ac_cv_lib_dld_dld_link = yes; then
17321 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17322fi
17323
17324
17325fi
17326
17327
17328fi
17329
17330
17331fi
17332
17333
17334fi
17335
17336
17337fi
17338
17339 ;;
17340 esac
17341
17342 if test "x$lt_cv_dlopen" != xno; then
17343 enable_dlopen=yes
17344 else
17345 enable_dlopen=no
17346 fi
17347
17348 case $lt_cv_dlopen in
17349 dlopen)
17350 save_CPPFLAGS="$CPPFLAGS"
17351 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17352
17353 save_LDFLAGS="$LDFLAGS"
17354 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17355
17356 save_LIBS="$LIBS"
17357 LIBS="$lt_cv_dlopen_libs $LIBS"
17358
17359 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17360echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17361if test "${lt_cv_dlopen_self+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17363else
17364 if test "$cross_compiling" = yes; then :
17365 lt_cv_dlopen_self=cross
17366else
17367 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17368 lt_status=$lt_dlunknown
17369 cat > conftest.$ac_ext <<EOF
John Criswell12399a12003-09-30 15:55:44 +000017370#line 17370 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017371#include "confdefs.h"
17372
17373#if HAVE_DLFCN_H
17374#include <dlfcn.h>
17375#endif
17376
17377#include <stdio.h>
17378
17379#ifdef RTLD_GLOBAL
17380# define LT_DLGLOBAL RTLD_GLOBAL
17381#else
17382# ifdef DL_GLOBAL
17383# define LT_DLGLOBAL DL_GLOBAL
17384# else
17385# define LT_DLGLOBAL 0
17386# endif
17387#endif
17388
17389/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17390 find out it does not work in some platform. */
17391#ifndef LT_DLLAZY_OR_NOW
17392# ifdef RTLD_LAZY
17393# define LT_DLLAZY_OR_NOW RTLD_LAZY
17394# else
17395# ifdef DL_LAZY
17396# define LT_DLLAZY_OR_NOW DL_LAZY
17397# else
17398# ifdef RTLD_NOW
17399# define LT_DLLAZY_OR_NOW RTLD_NOW
17400# else
17401# ifdef DL_NOW
17402# define LT_DLLAZY_OR_NOW DL_NOW
17403# else
17404# define LT_DLLAZY_OR_NOW 0
17405# endif
17406# endif
17407# endif
17408# endif
17409#endif
17410
17411#ifdef __cplusplus
17412extern "C" void exit (int);
17413#endif
17414
17415void fnord() { int i=42;}
17416int main ()
17417{
17418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17419 int status = $lt_dlunknown;
17420
17421 if (self)
17422 {
17423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17424 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17425 /* dlclose (self); */
17426 }
17427
17428 exit (status);
17429}
17430EOF
17431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17432 (eval $ac_link) 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17436 (./conftest; exit; ) 2>/dev/null
17437 lt_status=$?
17438 case x$lt_status in
17439 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17440 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17441 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17442 esac
17443 else :
17444 # compilation failed
17445 lt_cv_dlopen_self=no
17446 fi
17447fi
17448rm -fr conftest*
17449
17450
17451fi
17452echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17453echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17454
17455 if test "x$lt_cv_dlopen_self" = xyes; then
17456 LDFLAGS="$LDFLAGS $link_static_flag"
17457 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17458echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17459if test "${lt_cv_dlopen_self_static+set}" = set; then
17460 echo $ECHO_N "(cached) $ECHO_C" >&6
17461else
17462 if test "$cross_compiling" = yes; then :
17463 lt_cv_dlopen_self_static=cross
17464else
17465 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17466 lt_status=$lt_dlunknown
17467 cat > conftest.$ac_ext <<EOF
John Criswell12399a12003-09-30 15:55:44 +000017468#line 17468 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017469#include "confdefs.h"
17470
17471#if HAVE_DLFCN_H
17472#include <dlfcn.h>
17473#endif
17474
17475#include <stdio.h>
17476
17477#ifdef RTLD_GLOBAL
17478# define LT_DLGLOBAL RTLD_GLOBAL
17479#else
17480# ifdef DL_GLOBAL
17481# define LT_DLGLOBAL DL_GLOBAL
17482# else
17483# define LT_DLGLOBAL 0
17484# endif
17485#endif
17486
17487/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17488 find out it does not work in some platform. */
17489#ifndef LT_DLLAZY_OR_NOW
17490# ifdef RTLD_LAZY
17491# define LT_DLLAZY_OR_NOW RTLD_LAZY
17492# else
17493# ifdef DL_LAZY
17494# define LT_DLLAZY_OR_NOW DL_LAZY
17495# else
17496# ifdef RTLD_NOW
17497# define LT_DLLAZY_OR_NOW RTLD_NOW
17498# else
17499# ifdef DL_NOW
17500# define LT_DLLAZY_OR_NOW DL_NOW
17501# else
17502# define LT_DLLAZY_OR_NOW 0
17503# endif
17504# endif
17505# endif
17506# endif
17507#endif
17508
17509#ifdef __cplusplus
17510extern "C" void exit (int);
17511#endif
17512
17513void fnord() { int i=42;}
17514int main ()
17515{
17516 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17517 int status = $lt_dlunknown;
17518
17519 if (self)
17520 {
17521 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17522 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17523 /* dlclose (self); */
17524 }
17525
17526 exit (status);
17527}
17528EOF
17529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530 (eval $ac_link) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17534 (./conftest; exit; ) 2>/dev/null
17535 lt_status=$?
17536 case x$lt_status in
17537 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17538 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17539 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17540 esac
17541 else :
17542 # compilation failed
17543 lt_cv_dlopen_self_static=no
17544 fi
17545fi
17546rm -fr conftest*
17547
17548
17549fi
17550echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17551echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17552 fi
17553
17554 CPPFLAGS="$save_CPPFLAGS"
17555 LDFLAGS="$save_LDFLAGS"
17556 LIBS="$save_LIBS"
17557 ;;
17558 esac
17559
17560 case $lt_cv_dlopen_self in
17561 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17562 *) enable_dlopen_self=unknown ;;
17563 esac
17564
17565 case $lt_cv_dlopen_self_static in
17566 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17567 *) enable_dlopen_self_static=unknown ;;
17568 esac
17569fi
17570
17571
17572# The else clause should only fire when bootstrapping the
17573# libtool distribution, otherwise you forgot to ship ltmain.sh
17574# with your package, and you will get complaints that there are
17575# no rules to generate ltmain.sh.
17576if test -f "$ltmain"; then
17577 # See if we are running on zsh, and set the options which allow our commands through
17578 # without removal of \ escapes.
17579 if test -n "${ZSH_VERSION+set}" ; then
17580 setopt NO_GLOB_SUBST
17581 fi
17582 # Now quote all the things that may contain metacharacters while being
17583 # careful not to overquote the AC_SUBSTed values. We take copies of the
17584 # variables and quote the copies for generation of the libtool script.
17585 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17586 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17587 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17588 deplibs_check_method reload_flag reload_cmds need_locks \
17589 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17590 lt_cv_sys_global_symbol_to_c_name_address \
17591 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17592 old_postinstall_cmds old_postuninstall_cmds \
17593 compiler_GCJ \
17594 CC_GCJ \
17595 LD_GCJ \
17596 lt_prog_compiler_wl_GCJ \
17597 lt_prog_compiler_pic_GCJ \
17598 lt_prog_compiler_static_GCJ \
17599 lt_prog_compiler_no_builtin_flag_GCJ \
17600 export_dynamic_flag_spec_GCJ \
17601 thread_safe_flag_spec_GCJ \
17602 whole_archive_flag_spec_GCJ \
17603 enable_shared_with_static_runtimes_GCJ \
17604 old_archive_cmds_GCJ \
17605 old_archive_from_new_cmds_GCJ \
17606 predep_objects_GCJ \
17607 postdep_objects_GCJ \
17608 predeps_GCJ \
17609 postdeps_GCJ \
17610 compiler_lib_search_path_GCJ \
17611 archive_cmds_GCJ \
17612 archive_expsym_cmds_GCJ \
17613 postinstall_cmds_GCJ \
17614 postuninstall_cmds_GCJ \
17615 old_archive_from_expsyms_cmds_GCJ \
17616 allow_undefined_flag_GCJ \
17617 no_undefined_flag_GCJ \
17618 export_symbols_cmds_GCJ \
17619 hardcode_libdir_flag_spec_GCJ \
17620 hardcode_libdir_flag_spec_ld_GCJ \
17621 hardcode_libdir_separator_GCJ \
17622 hardcode_automatic_GCJ \
17623 module_cmds_GCJ \
17624 module_expsym_cmds_GCJ \
17625 lt_cv_prog_compiler_c_o_GCJ \
17626 exclude_expsyms_GCJ \
17627 include_expsyms_GCJ; do
17628
17629 case $var in
17630 old_archive_cmds_GCJ | \
17631 old_archive_from_new_cmds_GCJ | \
17632 archive_cmds_GCJ | \
17633 archive_expsym_cmds_GCJ | \
17634 module_cmds_GCJ | \
17635 module_expsym_cmds_GCJ | \
17636 old_archive_from_expsyms_cmds_GCJ | \
17637 export_symbols_cmds_GCJ | \
17638 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17639 postinstall_cmds | postuninstall_cmds | \
17640 old_postinstall_cmds | old_postuninstall_cmds | \
17641 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17642 # Double-quote double-evaled strings.
17643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17644 ;;
17645 *)
17646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17647 ;;
17648 esac
17649 done
17650
17651 case $lt_echo in
17652 *'\$0 --fallback-echo"')
17653 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17654 ;;
17655 esac
17656
17657cfgfile="$ofile"
17658
17659 cat <<__EOF__ >> "$cfgfile"
17660# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17661
17662# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17663
17664# Shell to use when invoking shell scripts.
17665SHELL=$lt_SHELL
17666
17667# Whether or not to build shared libraries.
17668build_libtool_libs=$enable_shared
17669
17670# Whether or not to build static libraries.
17671build_old_libs=$enable_static
17672
17673# Whether or not to add -lc for building shared libraries.
17674build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17675
17676# Whether or not to disallow shared libs when runtime libs are static
17677allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17678
17679# Whether or not to optimize for fast installation.
17680fast_install=$enable_fast_install
17681
17682# The host system.
17683host_alias=$host_alias
17684host=$host
17685
17686# An echo program that does not interpret backslashes.
17687echo=$lt_echo
17688
17689# The archiver.
17690AR=$lt_AR
17691AR_FLAGS=$lt_AR_FLAGS
17692
17693# A C compiler.
17694LTCC=$lt_LTCC
17695
17696# A language-specific compiler.
17697CC=$lt_compiler_GCJ
17698
17699# Is the compiler the GNU C compiler?
17700with_gcc=$GCC_GCJ
17701
17702# An ERE matcher.
17703EGREP=$lt_EGREP
17704
17705# The linker used to build libraries.
17706LD=$lt_LD_GCJ
17707
17708# Whether we need hard or soft links.
17709LN_S=$lt_LN_S
17710
17711# A BSD-compatible nm program.
17712NM=$lt_NM
17713
17714# A symbol stripping program
17715STRIP=$STRIP
17716
17717# Used to examine libraries when file_magic_cmd begins "file"
17718MAGIC_CMD=$MAGIC_CMD
17719
17720# Used on cygwin: DLL creation program.
17721DLLTOOL="$DLLTOOL"
17722
17723# Used on cygwin: object dumper.
17724OBJDUMP="$OBJDUMP"
17725
17726# Used on cygwin: assembler.
17727AS="$AS"
17728
17729# The name of the directory that contains temporary libtool files.
17730objdir=$objdir
17731
17732# How to create reloadable object files.
17733reload_flag=$lt_reload_flag
17734reload_cmds=$lt_reload_cmds
17735
17736# How to pass a linker flag through the compiler.
17737wl=$lt_lt_prog_compiler_wl_GCJ
17738
17739# Object file suffix (normally "o").
17740objext="$ac_objext"
17741
17742# Old archive suffix (normally "a").
17743libext="$libext"
17744
17745# Shared library suffix (normally ".so").
17746shrext='$shrext'
17747
17748# Executable file suffix (normally "").
17749exeext="$exeext"
17750
17751# Additional compiler flags for building library objects.
17752pic_flag=$lt_lt_prog_compiler_pic_GCJ
17753pic_mode=$pic_mode
17754
17755# What is the maximum length of a command?
17756max_cmd_len=$lt_cv_sys_max_cmd_len
17757
17758# Does compiler simultaneously support -c and -o options?
17759compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17760
17761# Must we lock files when doing compilation ?
17762need_locks=$lt_need_locks
17763
17764# Do we need the lib prefix for modules?
17765need_lib_prefix=$need_lib_prefix
17766
17767# Do we need a version for libraries?
17768need_version=$need_version
17769
17770# Whether dlopen is supported.
17771dlopen_support=$enable_dlopen
17772
17773# Whether dlopen of programs is supported.
17774dlopen_self=$enable_dlopen_self
17775
17776# Whether dlopen of statically linked programs is supported.
17777dlopen_self_static=$enable_dlopen_self_static
17778
17779# Compiler flag to prevent dynamic linking.
17780link_static_flag=$lt_lt_prog_compiler_static_GCJ
17781
17782# Compiler flag to turn off builtin functions.
17783no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17784
17785# Compiler flag to allow reflexive dlopens.
17786export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17787
17788# Compiler flag to generate shared objects directly from archives.
17789whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17790
17791# Compiler flag to generate thread-safe objects.
17792thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17793
17794# Library versioning type.
17795version_type=$version_type
17796
17797# Format of library name prefix.
17798libname_spec=$lt_libname_spec
17799
17800# List of archive names. First name is the real one, the rest are links.
17801# The last name is the one that the linker finds with -lNAME.
17802library_names_spec=$lt_library_names_spec
17803
17804# The coded name of the library, if different from the real name.
17805soname_spec=$lt_soname_spec
17806
17807# Commands used to build and install an old-style archive.
17808RANLIB=$lt_RANLIB
17809old_archive_cmds=$lt_old_archive_cmds_GCJ
17810old_postinstall_cmds=$lt_old_postinstall_cmds
17811old_postuninstall_cmds=$lt_old_postuninstall_cmds
17812
17813# Create an old-style archive from a shared archive.
17814old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17815
17816# Create a temporary old-style archive to link instead of a shared archive.
17817old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17818
17819# Commands used to build and install a shared archive.
17820archive_cmds=$lt_archive_cmds_GCJ
17821archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17822postinstall_cmds=$lt_postinstall_cmds
17823postuninstall_cmds=$lt_postuninstall_cmds
17824
17825# Commands used to build a loadable module (assumed same as above if empty)
17826module_cmds=$lt_module_cmds_GCJ
17827module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17828
17829# Commands to strip libraries.
17830old_striplib=$lt_old_striplib
17831striplib=$lt_striplib
17832
17833# Dependencies to place before the objects being linked to create a
17834# shared library.
17835predep_objects=$lt_predep_objects_GCJ
17836
17837# Dependencies to place after the objects being linked to create a
17838# shared library.
17839postdep_objects=$lt_postdep_objects_GCJ
17840
17841# Dependencies to place before the objects being linked to create a
17842# shared library.
17843predeps=$lt_predeps_GCJ
17844
17845# Dependencies to place after the objects being linked to create a
17846# shared library.
17847postdeps=$lt_postdeps_GCJ
17848
17849# The library search path used internally by the compiler when linking
17850# a shared library.
17851compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17852
17853# Method to check whether dependent libraries are shared objects.
17854deplibs_check_method=$lt_deplibs_check_method
17855
17856# Command to use when deplibs_check_method == file_magic.
17857file_magic_cmd=$lt_file_magic_cmd
17858
17859# Flag that allows shared libraries with undefined symbols to be built.
17860allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17861
17862# Flag that forces no undefined symbols.
17863no_undefined_flag=$lt_no_undefined_flag_GCJ
17864
17865# Commands used to finish a libtool library installation in a directory.
17866finish_cmds=$lt_finish_cmds
17867
17868# Same as above, but a single script fragment to be evaled but not shown.
17869finish_eval=$lt_finish_eval
17870
17871# Take the output of nm and produce a listing of raw symbols and C names.
17872global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17873
17874# Transform the output of nm in a proper C declaration
17875global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17876
17877# Transform the output of nm in a C name address pair
17878global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17879
17880# This is the shared library runtime path variable.
17881runpath_var=$runpath_var
17882
17883# This is the shared library path variable.
17884shlibpath_var=$shlibpath_var
17885
17886# Is shlibpath searched before the hard-coded library search path?
17887shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17888
17889# How to hardcode a shared library path into an executable.
17890hardcode_action=$hardcode_action_GCJ
17891
17892# Whether we should hardcode library paths into libraries.
17893hardcode_into_libs=$hardcode_into_libs
17894
17895# Flag to hardcode \$libdir into a binary during linking.
17896# This must work even if \$libdir does not exist.
17897hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17898
17899# If ld is used when linking, flag to hardcode \$libdir into
17900# a binary during linking. This must work even if \$libdir does
17901# not exist.
17902hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17903
17904# Whether we need a single -rpath flag with a separated argument.
17905hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17906
17907# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17908# resulting binary.
17909hardcode_direct=$hardcode_direct_GCJ
17910
17911# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17912# resulting binary.
17913hardcode_minus_L=$hardcode_minus_L_GCJ
17914
17915# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17916# the resulting binary.
17917hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17918
17919# Set to yes if building a shared library automatically hardcodes DIR into the library
17920# and all subsequent libraries and executables linked against it.
17921hardcode_automatic=$hardcode_automatic_GCJ
17922
17923# Variables whose values should be saved in libtool wrapper scripts and
17924# restored at relink time.
17925variables_saved_for_relink="$variables_saved_for_relink"
17926
17927# Whether libtool must link a program against all its dependency libraries.
17928link_all_deplibs=$link_all_deplibs_GCJ
17929
17930# Compile-time system search path for libraries
17931sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17932
17933# Run-time system search path for libraries
17934sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17935
17936# Fix the shell variable \$srcfile for the compiler.
17937fix_srcfile_path="$fix_srcfile_path_GCJ"
17938
17939# Set to yes if exported symbols are required.
17940always_export_symbols=$always_export_symbols_GCJ
17941
17942# The commands to list exported symbols.
17943export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17944
17945# The commands to extract the exported symbol list from a shared archive.
17946extract_expsyms_cmds=$lt_extract_expsyms_cmds
17947
17948# Symbols that should not be listed in the preloaded symbols.
17949exclude_expsyms=$lt_exclude_expsyms_GCJ
17950
17951# Symbols that must always be exported.
17952include_expsyms=$lt_include_expsyms_GCJ
17953
17954# ### END LIBTOOL TAG CONFIG: $tagname
17955
17956__EOF__
17957
17958
17959else
17960 # If there is no Makefile yet, we rely on a make rule to execute
17961 # `config.status --recheck' to rerun these tests and create the
17962 # libtool script then.
17963 test -f Makefile && make "$ltmain"
17964fi
17965
17966
17967ac_ext=c
17968ac_cpp='$CPP $CPPFLAGS'
17969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17971ac_compiler_gnu=$ac_cv_c_compiler_gnu
17972
17973CC="$lt_save_CC"
17974
17975 else
17976 tagname=""
17977 fi
17978 ;;
17979
17980 RC)
17981
17982
17983
17984# Source file extension for RC test sources.
17985ac_ext=rc
17986
17987# Object file extension for compiled RC test sources.
17988objext=o
17989objext_RC=$objext
17990
17991# Code to be used in simple compile tests
17992lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17993
17994# Code to be used in simple link tests
17995lt_simple_link_test_code="$lt_simple_compile_test_code"
17996
17997# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17998
17999# If no C compiler was specified, use CC.
18000LTCC=${LTCC-"$CC"}
18001
18002# Allow CC to be a program name with arguments.
18003compiler=$CC
18004
18005
18006# Allow CC to be a program name with arguments.
18007lt_save_CC="$CC"
18008CC=${RC-"windres"}
18009compiler=$CC
18010compiler_RC=$CC
18011lt_cv_prog_compiler_c_o_RC=yes
18012
18013# The else clause should only fire when bootstrapping the
18014# libtool distribution, otherwise you forgot to ship ltmain.sh
18015# with your package, and you will get complaints that there are
18016# no rules to generate ltmain.sh.
18017if test -f "$ltmain"; then
18018 # See if we are running on zsh, and set the options which allow our commands through
18019 # without removal of \ escapes.
18020 if test -n "${ZSH_VERSION+set}" ; then
18021 setopt NO_GLOB_SUBST
18022 fi
18023 # Now quote all the things that may contain metacharacters while being
18024 # careful not to overquote the AC_SUBSTed values. We take copies of the
18025 # variables and quote the copies for generation of the libtool script.
18026 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18027 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18028 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18029 deplibs_check_method reload_flag reload_cmds need_locks \
18030 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18031 lt_cv_sys_global_symbol_to_c_name_address \
18032 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18033 old_postinstall_cmds old_postuninstall_cmds \
18034 compiler_RC \
18035 CC_RC \
18036 LD_RC \
18037 lt_prog_compiler_wl_RC \
18038 lt_prog_compiler_pic_RC \
18039 lt_prog_compiler_static_RC \
18040 lt_prog_compiler_no_builtin_flag_RC \
18041 export_dynamic_flag_spec_RC \
18042 thread_safe_flag_spec_RC \
18043 whole_archive_flag_spec_RC \
18044 enable_shared_with_static_runtimes_RC \
18045 old_archive_cmds_RC \
18046 old_archive_from_new_cmds_RC \
18047 predep_objects_RC \
18048 postdep_objects_RC \
18049 predeps_RC \
18050 postdeps_RC \
18051 compiler_lib_search_path_RC \
18052 archive_cmds_RC \
18053 archive_expsym_cmds_RC \
18054 postinstall_cmds_RC \
18055 postuninstall_cmds_RC \
18056 old_archive_from_expsyms_cmds_RC \
18057 allow_undefined_flag_RC \
18058 no_undefined_flag_RC \
18059 export_symbols_cmds_RC \
18060 hardcode_libdir_flag_spec_RC \
18061 hardcode_libdir_flag_spec_ld_RC \
18062 hardcode_libdir_separator_RC \
18063 hardcode_automatic_RC \
18064 module_cmds_RC \
18065 module_expsym_cmds_RC \
18066 lt_cv_prog_compiler_c_o_RC \
18067 exclude_expsyms_RC \
18068 include_expsyms_RC; do
18069
18070 case $var in
18071 old_archive_cmds_RC | \
18072 old_archive_from_new_cmds_RC | \
18073 archive_cmds_RC | \
18074 archive_expsym_cmds_RC | \
18075 module_cmds_RC | \
18076 module_expsym_cmds_RC | \
18077 old_archive_from_expsyms_cmds_RC | \
18078 export_symbols_cmds_RC | \
18079 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18080 postinstall_cmds | postuninstall_cmds | \
18081 old_postinstall_cmds | old_postuninstall_cmds | \
18082 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18083 # Double-quote double-evaled strings.
18084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18085 ;;
18086 *)
18087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18088 ;;
18089 esac
18090 done
18091
18092 case $lt_echo in
18093 *'\$0 --fallback-echo"')
18094 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18095 ;;
18096 esac
18097
18098cfgfile="$ofile"
18099
18100 cat <<__EOF__ >> "$cfgfile"
18101# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18102
18103# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18104
18105# Shell to use when invoking shell scripts.
18106SHELL=$lt_SHELL
18107
18108# Whether or not to build shared libraries.
18109build_libtool_libs=$enable_shared
18110
18111# Whether or not to build static libraries.
18112build_old_libs=$enable_static
18113
18114# Whether or not to add -lc for building shared libraries.
18115build_libtool_need_lc=$archive_cmds_need_lc_RC
18116
18117# Whether or not to disallow shared libs when runtime libs are static
18118allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18119
18120# Whether or not to optimize for fast installation.
18121fast_install=$enable_fast_install
18122
18123# The host system.
18124host_alias=$host_alias
18125host=$host
18126
18127# An echo program that does not interpret backslashes.
18128echo=$lt_echo
18129
18130# The archiver.
18131AR=$lt_AR
18132AR_FLAGS=$lt_AR_FLAGS
18133
18134# A C compiler.
18135LTCC=$lt_LTCC
18136
18137# A language-specific compiler.
18138CC=$lt_compiler_RC
18139
18140# Is the compiler the GNU C compiler?
18141with_gcc=$GCC_RC
18142
18143# An ERE matcher.
18144EGREP=$lt_EGREP
18145
18146# The linker used to build libraries.
18147LD=$lt_LD_RC
18148
18149# Whether we need hard or soft links.
18150LN_S=$lt_LN_S
18151
18152# A BSD-compatible nm program.
18153NM=$lt_NM
18154
18155# A symbol stripping program
18156STRIP=$STRIP
18157
18158# Used to examine libraries when file_magic_cmd begins "file"
18159MAGIC_CMD=$MAGIC_CMD
18160
18161# Used on cygwin: DLL creation program.
18162DLLTOOL="$DLLTOOL"
18163
18164# Used on cygwin: object dumper.
18165OBJDUMP="$OBJDUMP"
18166
18167# Used on cygwin: assembler.
18168AS="$AS"
18169
18170# The name of the directory that contains temporary libtool files.
18171objdir=$objdir
18172
18173# How to create reloadable object files.
18174reload_flag=$lt_reload_flag
18175reload_cmds=$lt_reload_cmds
18176
18177# How to pass a linker flag through the compiler.
18178wl=$lt_lt_prog_compiler_wl_RC
18179
18180# Object file suffix (normally "o").
18181objext="$ac_objext"
18182
18183# Old archive suffix (normally "a").
18184libext="$libext"
18185
18186# Shared library suffix (normally ".so").
18187shrext='$shrext'
18188
18189# Executable file suffix (normally "").
18190exeext="$exeext"
18191
18192# Additional compiler flags for building library objects.
18193pic_flag=$lt_lt_prog_compiler_pic_RC
18194pic_mode=$pic_mode
18195
18196# What is the maximum length of a command?
18197max_cmd_len=$lt_cv_sys_max_cmd_len
18198
18199# Does compiler simultaneously support -c and -o options?
18200compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18201
18202# Must we lock files when doing compilation ?
18203need_locks=$lt_need_locks
18204
18205# Do we need the lib prefix for modules?
18206need_lib_prefix=$need_lib_prefix
18207
18208# Do we need a version for libraries?
18209need_version=$need_version
18210
18211# Whether dlopen is supported.
18212dlopen_support=$enable_dlopen
18213
18214# Whether dlopen of programs is supported.
18215dlopen_self=$enable_dlopen_self
18216
18217# Whether dlopen of statically linked programs is supported.
18218dlopen_self_static=$enable_dlopen_self_static
18219
18220# Compiler flag to prevent dynamic linking.
18221link_static_flag=$lt_lt_prog_compiler_static_RC
18222
18223# Compiler flag to turn off builtin functions.
18224no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18225
18226# Compiler flag to allow reflexive dlopens.
18227export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18228
18229# Compiler flag to generate shared objects directly from archives.
18230whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18231
18232# Compiler flag to generate thread-safe objects.
18233thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18234
18235# Library versioning type.
18236version_type=$version_type
18237
18238# Format of library name prefix.
18239libname_spec=$lt_libname_spec
18240
18241# List of archive names. First name is the real one, the rest are links.
18242# The last name is the one that the linker finds with -lNAME.
18243library_names_spec=$lt_library_names_spec
18244
18245# The coded name of the library, if different from the real name.
18246soname_spec=$lt_soname_spec
18247
18248# Commands used to build and install an old-style archive.
18249RANLIB=$lt_RANLIB
18250old_archive_cmds=$lt_old_archive_cmds_RC
18251old_postinstall_cmds=$lt_old_postinstall_cmds
18252old_postuninstall_cmds=$lt_old_postuninstall_cmds
18253
18254# Create an old-style archive from a shared archive.
18255old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18256
18257# Create a temporary old-style archive to link instead of a shared archive.
18258old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18259
18260# Commands used to build and install a shared archive.
18261archive_cmds=$lt_archive_cmds_RC
18262archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18263postinstall_cmds=$lt_postinstall_cmds
18264postuninstall_cmds=$lt_postuninstall_cmds
18265
18266# Commands used to build a loadable module (assumed same as above if empty)
18267module_cmds=$lt_module_cmds_RC
18268module_expsym_cmds=$lt_module_expsym_cmds_RC
18269
18270# Commands to strip libraries.
18271old_striplib=$lt_old_striplib
18272striplib=$lt_striplib
18273
18274# Dependencies to place before the objects being linked to create a
18275# shared library.
18276predep_objects=$lt_predep_objects_RC
18277
18278# Dependencies to place after the objects being linked to create a
18279# shared library.
18280postdep_objects=$lt_postdep_objects_RC
18281
18282# Dependencies to place before the objects being linked to create a
18283# shared library.
18284predeps=$lt_predeps_RC
18285
18286# Dependencies to place after the objects being linked to create a
18287# shared library.
18288postdeps=$lt_postdeps_RC
18289
18290# The library search path used internally by the compiler when linking
18291# a shared library.
18292compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18293
18294# Method to check whether dependent libraries are shared objects.
18295deplibs_check_method=$lt_deplibs_check_method
18296
18297# Command to use when deplibs_check_method == file_magic.
18298file_magic_cmd=$lt_file_magic_cmd
18299
18300# Flag that allows shared libraries with undefined symbols to be built.
18301allow_undefined_flag=$lt_allow_undefined_flag_RC
18302
18303# Flag that forces no undefined symbols.
18304no_undefined_flag=$lt_no_undefined_flag_RC
18305
18306# Commands used to finish a libtool library installation in a directory.
18307finish_cmds=$lt_finish_cmds
18308
18309# Same as above, but a single script fragment to be evaled but not shown.
18310finish_eval=$lt_finish_eval
18311
18312# Take the output of nm and produce a listing of raw symbols and C names.
18313global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18314
18315# Transform the output of nm in a proper C declaration
18316global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18317
18318# Transform the output of nm in a C name address pair
18319global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18320
18321# This is the shared library runtime path variable.
18322runpath_var=$runpath_var
18323
18324# This is the shared library path variable.
18325shlibpath_var=$shlibpath_var
18326
18327# Is shlibpath searched before the hard-coded library search path?
18328shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18329
18330# How to hardcode a shared library path into an executable.
18331hardcode_action=$hardcode_action_RC
18332
18333# Whether we should hardcode library paths into libraries.
18334hardcode_into_libs=$hardcode_into_libs
18335
18336# Flag to hardcode \$libdir into a binary during linking.
18337# This must work even if \$libdir does not exist.
18338hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18339
18340# If ld is used when linking, flag to hardcode \$libdir into
18341# a binary during linking. This must work even if \$libdir does
18342# not exist.
18343hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18344
18345# Whether we need a single -rpath flag with a separated argument.
18346hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18347
18348# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18349# resulting binary.
18350hardcode_direct=$hardcode_direct_RC
18351
18352# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18353# resulting binary.
18354hardcode_minus_L=$hardcode_minus_L_RC
18355
18356# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18357# the resulting binary.
18358hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18359
18360# Set to yes if building a shared library automatically hardcodes DIR into the library
18361# and all subsequent libraries and executables linked against it.
18362hardcode_automatic=$hardcode_automatic_RC
18363
18364# Variables whose values should be saved in libtool wrapper scripts and
18365# restored at relink time.
18366variables_saved_for_relink="$variables_saved_for_relink"
18367
18368# Whether libtool must link a program against all its dependency libraries.
18369link_all_deplibs=$link_all_deplibs_RC
18370
18371# Compile-time system search path for libraries
18372sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18373
18374# Run-time system search path for libraries
18375sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18376
18377# Fix the shell variable \$srcfile for the compiler.
18378fix_srcfile_path="$fix_srcfile_path_RC"
18379
18380# Set to yes if exported symbols are required.
18381always_export_symbols=$always_export_symbols_RC
18382
18383# The commands to list exported symbols.
18384export_symbols_cmds=$lt_export_symbols_cmds_RC
18385
18386# The commands to extract the exported symbol list from a shared archive.
18387extract_expsyms_cmds=$lt_extract_expsyms_cmds
18388
18389# Symbols that should not be listed in the preloaded symbols.
18390exclude_expsyms=$lt_exclude_expsyms_RC
18391
18392# Symbols that must always be exported.
18393include_expsyms=$lt_include_expsyms_RC
18394
18395# ### END LIBTOOL TAG CONFIG: $tagname
18396
18397__EOF__
18398
18399
18400else
18401 # If there is no Makefile yet, we rely on a make rule to execute
18402 # `config.status --recheck' to rerun these tests and create the
18403 # libtool script then.
18404 test -f Makefile && make "$ltmain"
18405fi
18406
18407
18408ac_ext=c
18409ac_cpp='$CPP $CPPFLAGS'
18410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18412ac_compiler_gnu=$ac_cv_c_compiler_gnu
18413
18414CC="$lt_save_CC"
18415
18416 ;;
18417
18418 *)
18419 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18420echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18421 { (exit 1); exit 1; }; }
18422 ;;
18423 esac
18424
18425 # Append the new tag name to the list of available tags.
18426 if test -n "$tagname" ; then
18427 available_tags="$available_tags $tagname"
18428 fi
18429 fi
18430 done
18431 IFS="$lt_save_ifs"
18432
18433 # Now substitute the updated list of available tags.
18434 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18435 mv "${ofile}T" "$ofile"
18436 chmod +x "$ofile"
18437 else
18438 rm -f "${ofile}T"
18439 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18440echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18441 { (exit 1); exit 1; }; }
18442 fi
18443fi
John Criswell7a73b802003-06-30 21:59:07 +000018444
18445
18446
18447# This can be used to rebuild libtool when needed
18448LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18449
18450# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018451LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018452
18453# Prevent multiple expansion
18454
18455
18456
John Criswell47fdd832003-07-14 16:52:07 +000018457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
John Criswellde00db22003-08-25 16:49:54 +000018475# Extract the first word of "pwd", so it can be a program name with args.
18476set dummy pwd; ac_word=$2
18477echo "$as_me:$LINENO: checking for $ac_word" >&5
18478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18479if test "${ac_cv_path_RPWD+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18481else
18482 case $RPWD in
18483 [\\/]* | ?:[\\/]*)
18484 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18485 ;;
18486 *)
18487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18488for as_dir in $PATH
18489do
18490 IFS=$as_save_IFS
18491 test -z "$as_dir" && as_dir=.
18492 for ac_exec_ext in '' $ac_executable_extensions; do
18493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18494 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18496 break 2
18497 fi
18498done
18499done
18500
John Criswell39827c82003-09-23 15:28:52 +000018501 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018502 ;;
18503esac
18504fi
18505RPWD=$ac_cv_path_RPWD
18506
18507if test -n "$RPWD"; then
18508 echo "$as_me:$LINENO: result: $RPWD" >&5
18509echo "${ECHO_T}$RPWD" >&6
18510else
18511 echo "$as_me:$LINENO: result: no" >&5
18512echo "${ECHO_T}no" >&6
18513fi
18514
John Criswell39827c82003-09-23 15:28:52 +000018515if test ${RPWD} = "false"
18516then
18517 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18518echo "$as_me: error: pwd required but not found" >&2;}
18519 { (exit 1); exit 1; }; }
18520fi
18521
John Criswell7a73b802003-06-30 21:59:07 +000018522# Extract the first word of "ar", so it can be a program name with args.
18523set dummy ar; ac_word=$2
18524echo "$as_me:$LINENO: checking for $ac_word" >&5
18525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18526if test "${ac_cv_path_AR+set}" = set; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18528else
18529 case $AR in
18530 [\\/]* | ?:[\\/]*)
18531 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18532 ;;
18533 *)
18534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18535for as_dir in $PATH
18536do
18537 IFS=$as_save_IFS
18538 test -z "$as_dir" && as_dir=.
18539 for ac_exec_ext in '' $ac_executable_extensions; do
18540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18541 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18543 break 2
18544 fi
18545done
18546done
18547
John Criswell39827c82003-09-23 15:28:52 +000018548 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018549 ;;
18550esac
18551fi
18552AR=$ac_cv_path_AR
18553
18554if test -n "$AR"; then
18555 echo "$as_me:$LINENO: result: $AR" >&5
18556echo "${ECHO_T}$AR" >&6
18557else
18558 echo "$as_me:$LINENO: result: no" >&5
18559echo "${ECHO_T}no" >&6
18560fi
18561
John Criswell39827c82003-09-23 15:28:52 +000018562if test ${AR} = "false"
18563then
18564 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18565echo "$as_me: error: ar required but not found" >&2;}
18566 { (exit 1); exit 1; }; }
18567fi
18568
John Criswell7a73b802003-06-30 21:59:07 +000018569# Extract the first word of "sed", so it can be a program name with args.
18570set dummy sed; ac_word=$2
18571echo "$as_me:$LINENO: checking for $ac_word" >&5
18572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18573if test "${ac_cv_path_SED+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18575else
18576 case $SED in
18577 [\\/]* | ?:[\\/]*)
18578 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18579 ;;
18580 *)
18581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18582for as_dir in $PATH
18583do
18584 IFS=$as_save_IFS
18585 test -z "$as_dir" && as_dir=.
18586 for ac_exec_ext in '' $ac_executable_extensions; do
18587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18588 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18590 break 2
18591 fi
18592done
18593done
18594
John Criswell39827c82003-09-23 15:28:52 +000018595 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018596 ;;
18597esac
18598fi
18599SED=$ac_cv_path_SED
18600
18601if test -n "$SED"; then
18602 echo "$as_me:$LINENO: result: $SED" >&5
18603echo "${ECHO_T}$SED" >&6
18604else
18605 echo "$as_me:$LINENO: result: no" >&5
18606echo "${ECHO_T}no" >&6
18607fi
18608
John Criswell39827c82003-09-23 15:28:52 +000018609if test ${SED} = "false"
18610then
18611 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18612echo "$as_me: error: sed required but not found" >&2;}
18613 { (exit 1); exit 1; }; }
18614fi
18615
John Criswell7a73b802003-06-30 21:59:07 +000018616# Extract the first word of "rm", so it can be a program name with args.
18617set dummy rm; ac_word=$2
18618echo "$as_me:$LINENO: checking for $ac_word" >&5
18619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18620if test "${ac_cv_path_RM+set}" = set; then
18621 echo $ECHO_N "(cached) $ECHO_C" >&6
18622else
18623 case $RM in
18624 [\\/]* | ?:[\\/]*)
18625 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18626 ;;
18627 *)
18628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18629for as_dir in $PATH
18630do
18631 IFS=$as_save_IFS
18632 test -z "$as_dir" && as_dir=.
18633 for ac_exec_ext in '' $ac_executable_extensions; do
18634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18635 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18637 break 2
18638 fi
18639done
18640done
18641
John Criswell39827c82003-09-23 15:28:52 +000018642 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018643 ;;
18644esac
18645fi
18646RM=$ac_cv_path_RM
18647
18648if test -n "$RM"; then
18649 echo "$as_me:$LINENO: result: $RM" >&5
18650echo "${ECHO_T}$RM" >&6
18651else
18652 echo "$as_me:$LINENO: result: no" >&5
18653echo "${ECHO_T}no" >&6
18654fi
18655
John Criswell39827c82003-09-23 15:28:52 +000018656if test ${RM} = "false"
18657then
18658 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18659echo "$as_me: error: rm required but not found" >&2;}
18660 { (exit 1); exit 1; }; }
18661fi
18662
John Criswell7a73b802003-06-30 21:59:07 +000018663# Extract the first word of "echo", so it can be a program name with args.
18664set dummy echo; ac_word=$2
18665echo "$as_me:$LINENO: checking for $ac_word" >&5
18666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18667if test "${ac_cv_path_ECHO+set}" = set; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18669else
18670 case $ECHO in
18671 [\\/]* | ?:[\\/]*)
18672 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18673 ;;
18674 *)
18675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18676for as_dir in $PATH
18677do
18678 IFS=$as_save_IFS
18679 test -z "$as_dir" && as_dir=.
18680 for ac_exec_ext in '' $ac_executable_extensions; do
18681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18682 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18684 break 2
18685 fi
18686done
18687done
18688
John Criswell39827c82003-09-23 15:28:52 +000018689 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018690 ;;
18691esac
18692fi
18693ECHO=$ac_cv_path_ECHO
18694
18695if test -n "$ECHO"; then
18696 echo "$as_me:$LINENO: result: $ECHO" >&5
18697echo "${ECHO_T}$ECHO" >&6
18698else
18699 echo "$as_me:$LINENO: result: no" >&5
18700echo "${ECHO_T}no" >&6
18701fi
18702
John Criswell39827c82003-09-23 15:28:52 +000018703if test ${ECHO} = "false"
18704then
18705 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18706echo "$as_me: error: echo required but not found" >&2;}
18707 { (exit 1); exit 1; }; }
18708fi
18709
John Criswell7a73b802003-06-30 21:59:07 +000018710# Extract the first word of "mkdir", so it can be a program name with args.
18711set dummy mkdir; ac_word=$2
18712echo "$as_me:$LINENO: checking for $ac_word" >&5
18713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18714if test "${ac_cv_path_MKDIR+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18716else
18717 case $MKDIR in
18718 [\\/]* | ?:[\\/]*)
18719 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18720 ;;
18721 *)
18722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18723for as_dir in $PATH
18724do
18725 IFS=$as_save_IFS
18726 test -z "$as_dir" && as_dir=.
18727 for ac_exec_ext in '' $ac_executable_extensions; do
18728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18729 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18731 break 2
18732 fi
18733done
18734done
18735
John Criswell39827c82003-09-23 15:28:52 +000018736 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018737 ;;
18738esac
18739fi
18740MKDIR=$ac_cv_path_MKDIR
18741
18742if test -n "$MKDIR"; then
18743 echo "$as_me:$LINENO: result: $MKDIR" >&5
18744echo "${ECHO_T}$MKDIR" >&6
18745else
18746 echo "$as_me:$LINENO: result: no" >&5
18747echo "${ECHO_T}no" >&6
18748fi
18749
John Criswell39827c82003-09-23 15:28:52 +000018750if test ${MKDIR} = "false"
18751then
18752 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18753echo "$as_me: error: mkdir required but not found" >&2;}
18754 { (exit 1); exit 1; }; }
18755fi
18756
John Criswell7a73b802003-06-30 21:59:07 +000018757# Extract the first word of "date", so it can be a program name with args.
18758set dummy date; ac_word=$2
18759echo "$as_me:$LINENO: checking for $ac_word" >&5
18760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18761if test "${ac_cv_path_DATE+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18763else
18764 case $DATE in
18765 [\\/]* | ?:[\\/]*)
18766 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18767 ;;
18768 *)
18769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770for as_dir in $PATH
18771do
18772 IFS=$as_save_IFS
18773 test -z "$as_dir" && as_dir=.
18774 for ac_exec_ext in '' $ac_executable_extensions; do
18775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18776 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18778 break 2
18779 fi
18780done
18781done
18782
John Criswell39827c82003-09-23 15:28:52 +000018783 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018784 ;;
18785esac
18786fi
18787DATE=$ac_cv_path_DATE
18788
18789if test -n "$DATE"; then
18790 echo "$as_me:$LINENO: result: $DATE" >&5
18791echo "${ECHO_T}$DATE" >&6
18792else
18793 echo "$as_me:$LINENO: result: no" >&5
18794echo "${ECHO_T}no" >&6
18795fi
18796
John Criswell39827c82003-09-23 15:28:52 +000018797if test ${DATE} = "false"
18798then
18799 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18800echo "$as_me: error: date required but not found" >&2;}
18801 { (exit 1); exit 1; }; }
18802fi
18803
John Criswell7a73b802003-06-30 21:59:07 +000018804# Extract the first word of "mv", so it can be a program name with args.
18805set dummy mv; ac_word=$2
18806echo "$as_me:$LINENO: checking for $ac_word" >&5
18807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18808if test "${ac_cv_path_MV+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18810else
18811 case $MV in
18812 [\\/]* | ?:[\\/]*)
18813 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18814 ;;
18815 *)
18816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18817for as_dir in $PATH
18818do
18819 IFS=$as_save_IFS
18820 test -z "$as_dir" && as_dir=.
18821 for ac_exec_ext in '' $ac_executable_extensions; do
18822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18823 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18825 break 2
18826 fi
18827done
18828done
18829
John Criswell39827c82003-09-23 15:28:52 +000018830 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018831 ;;
18832esac
18833fi
18834MV=$ac_cv_path_MV
18835
18836if test -n "$MV"; then
18837 echo "$as_me:$LINENO: result: $MV" >&5
18838echo "${ECHO_T}$MV" >&6
18839else
18840 echo "$as_me:$LINENO: result: no" >&5
18841echo "${ECHO_T}no" >&6
18842fi
18843
John Criswell39827c82003-09-23 15:28:52 +000018844if test ${MV} = "false"
18845then
18846 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18847echo "$as_me: error: mv required but not found" >&2;}
18848 { (exit 1); exit 1; }; }
18849fi
18850
John Criswell7a73b802003-06-30 21:59:07 +000018851# Extract the first word of "dot", so it can be a program name with args.
18852set dummy dot; ac_word=$2
18853echo "$as_me:$LINENO: checking for $ac_word" >&5
18854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18855if test "${ac_cv_path_DOT+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18857else
18858 case $DOT in
18859 [\\/]* | ?:[\\/]*)
18860 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18861 ;;
18862 *)
18863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18864for as_dir in $PATH
18865do
18866 IFS=$as_save_IFS
18867 test -z "$as_dir" && as_dir=.
18868 for ac_exec_ext in '' $ac_executable_extensions; do
18869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18870 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18872 break 2
18873 fi
18874done
18875done
18876
John Criswell39827c82003-09-23 15:28:52 +000018877 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018878 ;;
18879esac
18880fi
18881DOT=$ac_cv_path_DOT
18882
18883if test -n "$DOT"; then
18884 echo "$as_me:$LINENO: result: $DOT" >&5
18885echo "${ECHO_T}$DOT" >&6
18886else
18887 echo "$as_me:$LINENO: result: no" >&5
18888echo "${ECHO_T}no" >&6
18889fi
18890
John Criswell39827c82003-09-23 15:28:52 +000018891
John Criswell7a73b802003-06-30 21:59:07 +000018892# Extract the first word of "etags", so it can be a program name with args.
18893set dummy etags; ac_word=$2
18894echo "$as_me:$LINENO: checking for $ac_word" >&5
18895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18896if test "${ac_cv_path_ETAGS+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18898else
18899 case $ETAGS in
18900 [\\/]* | ?:[\\/]*)
18901 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18902 ;;
18903 *)
18904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18905for as_dir in $PATH
18906do
18907 IFS=$as_save_IFS
18908 test -z "$as_dir" && as_dir=.
18909 for ac_exec_ext in '' $ac_executable_extensions; do
18910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18911 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18913 break 2
18914 fi
18915done
18916done
18917
John Criswell39827c82003-09-23 15:28:52 +000018918 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018919 ;;
18920esac
18921fi
18922ETAGS=$ac_cv_path_ETAGS
18923
18924if test -n "$ETAGS"; then
18925 echo "$as_me:$LINENO: result: $ETAGS" >&5
18926echo "${ECHO_T}$ETAGS" >&6
18927else
18928 echo "$as_me:$LINENO: result: no" >&5
18929echo "${ECHO_T}no" >&6
18930fi
18931
John Criswell39827c82003-09-23 15:28:52 +000018932
John Criswell7a73b802003-06-30 21:59:07 +000018933# Extract the first word of "purify", so it can be a program name with args.
18934set dummy purify; ac_word=$2
18935echo "$as_me:$LINENO: checking for $ac_word" >&5
18936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18937if test "${ac_cv_path_PURIFY+set}" = set; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18939else
18940 case $PURIFY in
18941 [\\/]* | ?:[\\/]*)
18942 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18943 ;;
18944 *)
18945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18946for as_dir in $PATH
18947do
18948 IFS=$as_save_IFS
18949 test -z "$as_dir" && as_dir=.
18950 for ac_exec_ext in '' $ac_executable_extensions; do
18951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18952 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18954 break 2
18955 fi
18956done
18957done
18958
John Criswell39827c82003-09-23 15:28:52 +000018959 test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
John Criswell7a73b802003-06-30 21:59:07 +000018960 ;;
18961esac
18962fi
18963PURIFY=$ac_cv_path_PURIFY
18964
18965if test -n "$PURIFY"; then
18966 echo "$as_me:$LINENO: result: $PURIFY" >&5
18967echo "${ECHO_T}$PURIFY" >&6
18968else
18969 echo "$as_me:$LINENO: result: no" >&5
18970echo "${ECHO_T}no" >&6
18971fi
18972
John Criswell39827c82003-09-23 15:28:52 +000018973
John Criswellde00db22003-08-25 16:49:54 +000018974# Extract the first word of "python", so it can be a program name with args.
18975set dummy python; ac_word=$2
18976echo "$as_me:$LINENO: checking for $ac_word" >&5
18977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18978if test "${ac_cv_path_PYTHON+set}" = set; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18980else
18981 case $PYTHON in
18982 [\\/]* | ?:[\\/]*)
18983 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18984 ;;
18985 *)
18986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18987for as_dir in $PATH
18988do
18989 IFS=$as_save_IFS
18990 test -z "$as_dir" && as_dir=.
18991 for ac_exec_ext in '' $ac_executable_extensions; do
18992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18993 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18995 break 2
18996 fi
18997done
18998done
18999
John Criswell39827c82003-09-23 15:28:52 +000019000 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000019001 ;;
19002esac
19003fi
19004PYTHON=$ac_cv_path_PYTHON
19005
19006if test -n "$PYTHON"; then
19007 echo "$as_me:$LINENO: result: $PYTHON" >&5
19008echo "${ECHO_T}$PYTHON" >&6
19009else
19010 echo "$as_me:$LINENO: result: no" >&5
19011echo "${ECHO_T}no" >&6
19012fi
19013
John Criswell39827c82003-09-23 15:28:52 +000019014if test ${PYTHON} = "false"
19015then
John Criswell61095982003-09-23 20:46:32 +000019016 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19017echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019018fi
19019
John Criswellde00db22003-08-25 16:49:54 +000019020# Extract the first word of "qmtest", so it can be a program name with args.
19021set dummy qmtest; ac_word=$2
19022echo "$as_me:$LINENO: checking for $ac_word" >&5
19023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19024if test "${ac_cv_path_QMTEST+set}" = set; then
19025 echo $ECHO_N "(cached) $ECHO_C" >&6
19026else
19027 case $QMTEST in
19028 [\\/]* | ?:[\\/]*)
19029 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19030 ;;
19031 *)
19032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19033for as_dir in $PATH
19034do
19035 IFS=$as_save_IFS
19036 test -z "$as_dir" && as_dir=.
19037 for ac_exec_ext in '' $ac_executable_extensions; do
19038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19039 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19041 break 2
19042 fi
19043done
19044done
19045
John Criswell39827c82003-09-23 15:28:52 +000019046 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019047 ;;
19048esac
19049fi
19050QMTEST=$ac_cv_path_QMTEST
19051
19052if test -n "$QMTEST"; then
19053 echo "$as_me:$LINENO: result: $QMTEST" >&5
19054echo "${ECHO_T}$QMTEST" >&6
19055else
19056 echo "$as_me:$LINENO: result: no" >&5
19057echo "${ECHO_T}no" >&6
19058fi
19059
John Criswell39827c82003-09-23 15:28:52 +000019060if test ${QMTEST} = "false"
19061then
John Criswell61095982003-09-23 20:46:32 +000019062 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19063echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019064fi
John Criswellde00db22003-08-25 16:49:54 +000019065
19066pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19067pymajor=`echo $pyversion | cut -d. -f1`
19068pyminor=`echo $pyversion | cut -d. -f2`
19069
19070if test "$pymajor" -ge "2"
19071then
19072 if test "$pymajor" -eq "2"
19073 then
19074 if test "$pyminor" -lt "2"
19075 then
19076 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19077echo "$as_me: error: Python 2.2 or greater required" >&2;}
19078 { (exit 1); exit 1; }; }
19079 fi
19080 fi
19081else
19082 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19083echo "$as_me: error: Python 2.2 or greater required" >&2;}
19084 { (exit 1); exit 1; }; }
19085fi
John Criswell7a73b802003-06-30 21:59:07 +000019086
19087
19088
19089
19090
19091echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19092echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19093if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19095else
19096 ac_check_lib_save_LIBS=$LIBS
19097LIBS="-lelf $LIBS"
19098cat >conftest.$ac_ext <<_ACEOF
19099#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019100/* confdefs.h. */
19101_ACEOF
19102cat confdefs.h >>conftest.$ac_ext
19103cat >>conftest.$ac_ext <<_ACEOF
19104/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019105
19106/* Override any gcc2 internal prototype to avoid an error. */
19107#ifdef __cplusplus
19108extern "C"
19109#endif
19110/* We use char because int might match the return type of a gcc2
19111 builtin and then its argument prototype would still apply. */
19112char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019113int
19114main ()
19115{
19116elf_begin ();
19117 ;
19118 return 0;
19119}
19120_ACEOF
19121rm -f conftest.$ac_objext conftest$ac_exeext
19122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19123 (eval $ac_link) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } &&
19127 { ac_try='test -s conftest$ac_exeext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_cv_lib_elf_elf_begin=yes
19134else
19135 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019136sed 's/^/| /' conftest.$ac_ext >&5
19137
John Criswell7a73b802003-06-30 21:59:07 +000019138ac_cv_lib_elf_elf_begin=no
19139fi
19140rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19141LIBS=$ac_check_lib_save_LIBS
19142fi
19143echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19144echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19145if test $ac_cv_lib_elf_elf_begin = yes; then
19146 cat >>confdefs.h <<_ACEOF
19147#define HAVE_LIBELF 1
19148_ACEOF
19149
19150 LIBS="-lelf $LIBS"
19151
19152fi
19153
19154
19155echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19156echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19157if test "${ac_cv_search_dlopen+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19159else
19160 ac_func_search_save_LIBS=$LIBS
19161ac_cv_search_dlopen=no
19162cat >conftest.$ac_ext <<_ACEOF
19163#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019164/* confdefs.h. */
19165_ACEOF
19166cat confdefs.h >>conftest.$ac_ext
19167cat >>conftest.$ac_ext <<_ACEOF
19168/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019169
19170/* Override any gcc2 internal prototype to avoid an error. */
19171#ifdef __cplusplus
19172extern "C"
19173#endif
19174/* We use char because int might match the return type of a gcc2
19175 builtin and then its argument prototype would still apply. */
19176char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019177int
19178main ()
19179{
19180dlopen ();
19181 ;
19182 return 0;
19183}
19184_ACEOF
19185rm -f conftest.$ac_objext conftest$ac_exeext
19186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19187 (eval $ac_link) 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } &&
19191 { ac_try='test -s conftest$ac_exeext'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_cv_search_dlopen="none required"
19198else
19199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019200sed 's/^/| /' conftest.$ac_ext >&5
19201
John Criswell7a73b802003-06-30 21:59:07 +000019202fi
19203rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19204if test "$ac_cv_search_dlopen" = no; then
19205 for ac_lib in dl; do
19206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19207 cat >conftest.$ac_ext <<_ACEOF
19208#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019209/* confdefs.h. */
19210_ACEOF
19211cat confdefs.h >>conftest.$ac_ext
19212cat >>conftest.$ac_ext <<_ACEOF
19213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019214
19215/* Override any gcc2 internal prototype to avoid an error. */
19216#ifdef __cplusplus
19217extern "C"
19218#endif
19219/* We use char because int might match the return type of a gcc2
19220 builtin and then its argument prototype would still apply. */
19221char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019222int
19223main ()
19224{
19225dlopen ();
19226 ;
19227 return 0;
19228}
19229_ACEOF
19230rm -f conftest.$ac_objext conftest$ac_exeext
19231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19232 (eval $ac_link) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try='test -s conftest$ac_exeext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 ac_cv_search_dlopen="-l$ac_lib"
19243break
19244else
19245 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019246sed 's/^/| /' conftest.$ac_ext >&5
19247
John Criswell7a73b802003-06-30 21:59:07 +000019248fi
19249rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19250 done
19251fi
19252LIBS=$ac_func_search_save_LIBS
19253fi
19254echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19255echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19256if test "$ac_cv_search_dlopen" != no; then
19257 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19258
19259else
19260 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19261echo "$as_me: error: dlopen() required but not found" >&2;}
19262 { (exit 1); exit 1; }; }
19263fi
19264
19265
19266echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19267echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19268if test "${ac_cv_search_mallinfo+set}" = set; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19270else
19271 ac_func_search_save_LIBS=$LIBS
19272ac_cv_search_mallinfo=no
19273cat >conftest.$ac_ext <<_ACEOF
19274#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019275/* confdefs.h. */
19276_ACEOF
19277cat confdefs.h >>conftest.$ac_ext
19278cat >>conftest.$ac_ext <<_ACEOF
19279/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019280
19281/* Override any gcc2 internal prototype to avoid an error. */
19282#ifdef __cplusplus
19283extern "C"
19284#endif
19285/* We use char because int might match the return type of a gcc2
19286 builtin and then its argument prototype would still apply. */
19287char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019288int
19289main ()
19290{
19291mallinfo ();
19292 ;
19293 return 0;
19294}
19295_ACEOF
19296rm -f conftest.$ac_objext conftest$ac_exeext
19297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19298 (eval $ac_link) 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } &&
19302 { ac_try='test -s conftest$ac_exeext'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19305 ac_status=$?
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; }; then
19308 ac_cv_search_mallinfo="none required"
19309else
19310 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019311sed 's/^/| /' conftest.$ac_ext >&5
19312
John Criswell7a73b802003-06-30 21:59:07 +000019313fi
19314rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19315if test "$ac_cv_search_mallinfo" = no; then
19316 for ac_lib in malloc; do
19317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19318 cat >conftest.$ac_ext <<_ACEOF
19319#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019320/* confdefs.h. */
19321_ACEOF
19322cat confdefs.h >>conftest.$ac_ext
19323cat >>conftest.$ac_ext <<_ACEOF
19324/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019325
19326/* Override any gcc2 internal prototype to avoid an error. */
19327#ifdef __cplusplus
19328extern "C"
19329#endif
19330/* We use char because int might match the return type of a gcc2
19331 builtin and then its argument prototype would still apply. */
19332char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019333int
19334main ()
19335{
19336mallinfo ();
19337 ;
19338 return 0;
19339}
19340_ACEOF
19341rm -f conftest.$ac_objext conftest$ac_exeext
19342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19343 (eval $ac_link) 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); } &&
19347 { ac_try='test -s conftest$ac_exeext'
19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349 (eval $ac_try) 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
19353 ac_cv_search_mallinfo="-l$ac_lib"
19354break
19355else
19356 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019357sed 's/^/| /' conftest.$ac_ext >&5
19358
John Criswell7a73b802003-06-30 21:59:07 +000019359fi
19360rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19361 done
19362fi
19363LIBS=$ac_func_search_save_LIBS
19364fi
19365echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19366echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19367if test "$ac_cv_search_mallinfo" != no; then
19368 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19369 cat >>confdefs.h <<\_ACEOF
19370#define HAVE_MALLINFO 1
19371_ACEOF
19372
19373fi
19374
19375
19376
19377echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19378echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19379if test "${ac_cv_header_stdc+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19381else
19382 cat >conftest.$ac_ext <<_ACEOF
19383#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019384/* confdefs.h. */
19385_ACEOF
19386cat confdefs.h >>conftest.$ac_ext
19387cat >>conftest.$ac_ext <<_ACEOF
19388/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019389#include <stdlib.h>
19390#include <stdarg.h>
19391#include <string.h>
19392#include <float.h>
19393
John Criswell0c38eaf2003-09-10 15:17:25 +000019394int
19395main ()
19396{
19397
19398 ;
19399 return 0;
19400}
John Criswell7a73b802003-06-30 21:59:07 +000019401_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019402rm -f conftest.$ac_objext
19403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19404 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019405 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019407 (exit $ac_status); } &&
19408 { ac_try='test -s conftest.$ac_objext'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019414 ac_cv_header_stdc=yes
19415else
19416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019417sed 's/^/| /' conftest.$ac_ext >&5
19418
19419ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019420fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019421rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019422
19423if test $ac_cv_header_stdc = yes; then
19424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
19433
19434_ACEOF
19435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019436 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019437 :
19438else
19439 ac_cv_header_stdc=no
19440fi
19441rm -f conftest*
19442
19443fi
19444
19445if test $ac_cv_header_stdc = yes; then
19446 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19447 cat >conftest.$ac_ext <<_ACEOF
19448#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019449/* confdefs.h. */
19450_ACEOF
19451cat confdefs.h >>conftest.$ac_ext
19452cat >>conftest.$ac_ext <<_ACEOF
19453/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019454#include <stdlib.h>
19455
19456_ACEOF
19457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019458 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019459 :
19460else
19461 ac_cv_header_stdc=no
19462fi
19463rm -f conftest*
19464
19465fi
19466
19467if test $ac_cv_header_stdc = yes; then
19468 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19469 if test "$cross_compiling" = yes; then
19470 :
19471else
19472 cat >conftest.$ac_ext <<_ACEOF
19473#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019474/* confdefs.h. */
19475_ACEOF
19476cat confdefs.h >>conftest.$ac_ext
19477cat >>conftest.$ac_ext <<_ACEOF
19478/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019479#include <ctype.h>
19480#if ((' ' & 0x0FF) == 0x020)
19481# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19482# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19483#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019484# define ISLOWER(c) \
19485 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019486 || ('j' <= (c) && (c) <= 'r') \
19487 || ('s' <= (c) && (c) <= 'z'))
19488# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19489#endif
19490
19491#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19492int
19493main ()
19494{
19495 int i;
19496 for (i = 0; i < 256; i++)
19497 if (XOR (islower (i), ISLOWER (i))
19498 || toupper (i) != TOUPPER (i))
19499 exit(2);
19500 exit (0);
19501}
19502_ACEOF
19503rm -f conftest$ac_exeext
19504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19505 (eval $ac_link) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510 (eval $ac_try) 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; }; then
19514 :
19515else
19516 echo "$as_me: program exited with status $ac_status" >&5
19517echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019518sed 's/^/| /' conftest.$ac_ext >&5
19519
John Criswell7a73b802003-06-30 21:59:07 +000019520( exit $ac_status )
19521ac_cv_header_stdc=no
19522fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019523rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019524fi
19525fi
19526fi
19527echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19528echo "${ECHO_T}$ac_cv_header_stdc" >&6
19529if test $ac_cv_header_stdc = yes; then
19530
19531cat >>confdefs.h <<\_ACEOF
19532#define STDC_HEADERS 1
19533_ACEOF
19534
19535fi
19536
19537echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19538echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19539if test "${ac_cv_header_sys_wait_h+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19541else
19542 cat >conftest.$ac_ext <<_ACEOF
19543#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019544/* confdefs.h. */
19545_ACEOF
19546cat confdefs.h >>conftest.$ac_ext
19547cat >>conftest.$ac_ext <<_ACEOF
19548/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019549#include <sys/types.h>
19550#include <sys/wait.h>
19551#ifndef WEXITSTATUS
19552# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19553#endif
19554#ifndef WIFEXITED
19555# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19556#endif
19557
John Criswell7a73b802003-06-30 21:59:07 +000019558int
19559main ()
19560{
19561 int s;
19562 wait (&s);
19563 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19564 ;
19565 return 0;
19566}
19567_ACEOF
19568rm -f conftest.$ac_objext
19569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19570 (eval $ac_compile) 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } &&
19574 { ac_try='test -s conftest.$ac_objext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 ac_cv_header_sys_wait_h=yes
19581else
19582 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019583sed 's/^/| /' conftest.$ac_ext >&5
19584
John Criswell7a73b802003-06-30 21:59:07 +000019585ac_cv_header_sys_wait_h=no
19586fi
19587rm -f conftest.$ac_objext conftest.$ac_ext
19588fi
19589echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19590echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19591if test $ac_cv_header_sys_wait_h = yes; then
19592
19593cat >>confdefs.h <<\_ACEOF
19594#define HAVE_SYS_WAIT_H 1
19595_ACEOF
19596
19597fi
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19609do
19610as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19611if eval "test \"\${$as_ac_Header+set}\" = set"; then
19612 echo "$as_me:$LINENO: checking for $ac_header" >&5
19613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19614if eval "test \"\${$as_ac_Header+set}\" = set"; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19616fi
19617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19619else
19620 # Is the header compilable?
19621echo "$as_me:$LINENO: checking $ac_header usability" >&5
19622echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19623cat >conftest.$ac_ext <<_ACEOF
19624#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019625/* confdefs.h. */
19626_ACEOF
19627cat confdefs.h >>conftest.$ac_ext
19628cat >>conftest.$ac_ext <<_ACEOF
19629/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019630$ac_includes_default
19631#include <$ac_header>
19632_ACEOF
19633rm -f conftest.$ac_objext
19634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19635 (eval $ac_compile) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
19639 { ac_try='test -s conftest.$ac_objext'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; }; then
19645 ac_header_compiler=yes
19646else
19647 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019648sed 's/^/| /' conftest.$ac_ext >&5
19649
John Criswell7a73b802003-06-30 21:59:07 +000019650ac_header_compiler=no
19651fi
19652rm -f conftest.$ac_objext conftest.$ac_ext
19653echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19654echo "${ECHO_T}$ac_header_compiler" >&6
19655
19656# Is the header present?
19657echo "$as_me:$LINENO: checking $ac_header presence" >&5
19658echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19659cat >conftest.$ac_ext <<_ACEOF
19660#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019661/* confdefs.h. */
19662_ACEOF
19663cat confdefs.h >>conftest.$ac_ext
19664cat >>conftest.$ac_ext <<_ACEOF
19665/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019666#include <$ac_header>
19667_ACEOF
19668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19670 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019671 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019672 rm -f conftest.er1
19673 cat conftest.err >&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } >/dev/null; then
19676 if test -s conftest.err; then
19677 ac_cpp_err=$ac_c_preproc_warn_flag
19678 else
19679 ac_cpp_err=
19680 fi
19681else
19682 ac_cpp_err=yes
19683fi
19684if test -z "$ac_cpp_err"; then
19685 ac_header_preproc=yes
19686else
19687 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019688sed 's/^/| /' conftest.$ac_ext >&5
19689
John Criswell7a73b802003-06-30 21:59:07 +000019690 ac_header_preproc=no
19691fi
19692rm -f conftest.err conftest.$ac_ext
19693echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19694echo "${ECHO_T}$ac_header_preproc" >&6
19695
19696# So? What about this header?
19697case $ac_header_compiler:$ac_header_preproc in
19698 yes:no )
19699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19700echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19703 (
19704 cat <<\_ASBOX
19705## ------------------------------------ ##
19706## Report this to bug-autoconf@gnu.org. ##
19707## ------------------------------------ ##
19708_ASBOX
19709 ) |
19710 sed "s/^/$as_me: WARNING: /" >&2
19711 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019712 no:yes )
19713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019718echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19719 (
19720 cat <<\_ASBOX
19721## ------------------------------------ ##
19722## Report this to bug-autoconf@gnu.org. ##
19723## ------------------------------------ ##
19724_ASBOX
19725 ) |
19726 sed "s/^/$as_me: WARNING: /" >&2
19727 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019728esac
19729echo "$as_me:$LINENO: checking for $ac_header" >&5
19730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19731if eval "test \"\${$as_ac_Header+set}\" = set"; then
19732 echo $ECHO_N "(cached) $ECHO_C" >&6
19733else
19734 eval "$as_ac_Header=$ac_header_preproc"
19735fi
19736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19738
19739fi
19740if test `eval echo '${'$as_ac_Header'}'` = yes; then
19741 cat >>confdefs.h <<_ACEOF
19742#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19743_ACEOF
19744
19745fi
19746
19747done
19748
19749
19750
19751
19752
19753
19754for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19755do
19756as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19757if eval "test \"\${$as_ac_Header+set}\" = set"; then
19758 echo "$as_me:$LINENO: checking for $ac_header" >&5
19759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19760if eval "test \"\${$as_ac_Header+set}\" = set"; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762fi
19763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19765else
19766 # Is the header compilable?
19767echo "$as_me:$LINENO: checking $ac_header usability" >&5
19768echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19769cat >conftest.$ac_ext <<_ACEOF
19770#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019771/* confdefs.h. */
19772_ACEOF
19773cat confdefs.h >>conftest.$ac_ext
19774cat >>conftest.$ac_ext <<_ACEOF
19775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019776$ac_includes_default
19777#include <$ac_header>
19778_ACEOF
19779rm -f conftest.$ac_objext
19780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19781 (eval $ac_compile) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } &&
19785 { ac_try='test -s conftest.$ac_objext'
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19791 ac_header_compiler=yes
19792else
19793 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019794sed 's/^/| /' conftest.$ac_ext >&5
19795
John Criswell7a73b802003-06-30 21:59:07 +000019796ac_header_compiler=no
19797fi
19798rm -f conftest.$ac_objext conftest.$ac_ext
19799echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19800echo "${ECHO_T}$ac_header_compiler" >&6
19801
19802# Is the header present?
19803echo "$as_me:$LINENO: checking $ac_header presence" >&5
19804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19805cat >conftest.$ac_ext <<_ACEOF
19806#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019807/* confdefs.h. */
19808_ACEOF
19809cat confdefs.h >>conftest.$ac_ext
19810cat >>conftest.$ac_ext <<_ACEOF
19811/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019812#include <$ac_header>
19813_ACEOF
19814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19816 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019817 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019818 rm -f conftest.er1
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } >/dev/null; then
19822 if test -s conftest.err; then
19823 ac_cpp_err=$ac_c_preproc_warn_flag
19824 else
19825 ac_cpp_err=
19826 fi
19827else
19828 ac_cpp_err=yes
19829fi
19830if test -z "$ac_cpp_err"; then
19831 ac_header_preproc=yes
19832else
19833 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019834sed 's/^/| /' conftest.$ac_ext >&5
19835
John Criswell7a73b802003-06-30 21:59:07 +000019836 ac_header_preproc=no
19837fi
19838rm -f conftest.err conftest.$ac_ext
19839echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19840echo "${ECHO_T}$ac_header_preproc" >&6
19841
19842# So? What about this header?
19843case $ac_header_compiler:$ac_header_preproc in
19844 yes:no )
19845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19846echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19849 (
19850 cat <<\_ASBOX
19851## ------------------------------------ ##
19852## Report this to bug-autoconf@gnu.org. ##
19853## ------------------------------------ ##
19854_ASBOX
19855 ) |
19856 sed "s/^/$as_me: WARNING: /" >&2
19857 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019858 no:yes )
19859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19860echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19862echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19865 (
19866 cat <<\_ASBOX
19867## ------------------------------------ ##
19868## Report this to bug-autoconf@gnu.org. ##
19869## ------------------------------------ ##
19870_ASBOX
19871 ) |
19872 sed "s/^/$as_me: WARNING: /" >&2
19873 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019874esac
19875echo "$as_me:$LINENO: checking for $ac_header" >&5
19876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19877if eval "test \"\${$as_ac_Header+set}\" = set"; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19879else
19880 eval "$as_ac_Header=$ac_header_preproc"
19881fi
19882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19884
19885fi
19886if test `eval echo '${'$as_ac_Header'}'` = yes; then
19887 cat >>confdefs.h <<_ACEOF
19888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19889_ACEOF
19890
19891fi
19892
19893done
19894
19895
19896
19897
19898for ac_header in dlfcn.h link.h
19899do
19900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19901if eval "test \"\${$as_ac_Header+set}\" = set"; then
19902 echo "$as_me:$LINENO: checking for $ac_header" >&5
19903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19904if eval "test \"\${$as_ac_Header+set}\" = set"; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19906fi
19907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19909else
19910 # Is the header compilable?
19911echo "$as_me:$LINENO: checking $ac_header usability" >&5
19912echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19913cat >conftest.$ac_ext <<_ACEOF
19914#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019915/* confdefs.h. */
19916_ACEOF
19917cat confdefs.h >>conftest.$ac_ext
19918cat >>conftest.$ac_ext <<_ACEOF
19919/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019920$ac_includes_default
19921#include <$ac_header>
19922_ACEOF
19923rm -f conftest.$ac_objext
19924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925 (eval $ac_compile) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } &&
19929 { ac_try='test -s conftest.$ac_objext'
19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; }; then
19935 ac_header_compiler=yes
19936else
19937 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019938sed 's/^/| /' conftest.$ac_ext >&5
19939
John Criswell7a73b802003-06-30 21:59:07 +000019940ac_header_compiler=no
19941fi
19942rm -f conftest.$ac_objext conftest.$ac_ext
19943echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19944echo "${ECHO_T}$ac_header_compiler" >&6
19945
19946# Is the header present?
19947echo "$as_me:$LINENO: checking $ac_header presence" >&5
19948echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19949cat >conftest.$ac_ext <<_ACEOF
19950#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019951/* confdefs.h. */
19952_ACEOF
19953cat confdefs.h >>conftest.$ac_ext
19954cat >>conftest.$ac_ext <<_ACEOF
19955/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019956#include <$ac_header>
19957_ACEOF
19958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19960 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019961 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019962 rm -f conftest.er1
19963 cat conftest.err >&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } >/dev/null; then
19966 if test -s conftest.err; then
19967 ac_cpp_err=$ac_c_preproc_warn_flag
19968 else
19969 ac_cpp_err=
19970 fi
19971else
19972 ac_cpp_err=yes
19973fi
19974if test -z "$ac_cpp_err"; then
19975 ac_header_preproc=yes
19976else
19977 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019978sed 's/^/| /' conftest.$ac_ext >&5
19979
John Criswell7a73b802003-06-30 21:59:07 +000019980 ac_header_preproc=no
19981fi
19982rm -f conftest.err conftest.$ac_ext
19983echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19984echo "${ECHO_T}$ac_header_preproc" >&6
19985
19986# So? What about this header?
19987case $ac_header_compiler:$ac_header_preproc in
19988 yes:no )
19989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19990echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019992echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19993 (
19994 cat <<\_ASBOX
19995## ------------------------------------ ##
19996## Report this to bug-autoconf@gnu.org. ##
19997## ------------------------------------ ##
19998_ASBOX
19999 ) |
20000 sed "s/^/$as_me: WARNING: /" >&2
20001 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020002 no:yes )
20003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020008echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20009 (
20010 cat <<\_ASBOX
20011## ------------------------------------ ##
20012## Report this to bug-autoconf@gnu.org. ##
20013## ------------------------------------ ##
20014_ASBOX
20015 ) |
20016 sed "s/^/$as_me: WARNING: /" >&2
20017 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020018esac
20019echo "$as_me:$LINENO: checking for $ac_header" >&5
20020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20021if eval "test \"\${$as_ac_Header+set}\" = set"; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023else
20024 eval "$as_ac_Header=$ac_header_preproc"
20025fi
20026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20028
20029fi
20030if test `eval echo '${'$as_ac_Header'}'` = yes; then
20031 cat >>confdefs.h <<_ACEOF
20032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20033_ACEOF
20034
20035fi
20036
20037done
20038
20039
20040
John Criswell7a73b802003-06-30 21:59:07 +000020041echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20042echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20043if test "${ac_cv_c_const+set}" = set; then
20044 echo $ECHO_N "(cached) $ECHO_C" >&6
20045else
20046 cat >conftest.$ac_ext <<_ACEOF
20047#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020048/* confdefs.h. */
20049_ACEOF
20050cat confdefs.h >>conftest.$ac_ext
20051cat >>conftest.$ac_ext <<_ACEOF
20052/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020053
John Criswell7a73b802003-06-30 21:59:07 +000020054int
20055main ()
20056{
20057/* FIXME: Include the comments suggested by Paul. */
20058#ifndef __cplusplus
20059 /* Ultrix mips cc rejects this. */
20060 typedef int charset[2];
20061 const charset x;
20062 /* SunOS 4.1.1 cc rejects this. */
20063 char const *const *ccp;
20064 char **p;
20065 /* NEC SVR4.0.2 mips cc rejects this. */
20066 struct point {int x, y;};
20067 static struct point const zero = {0,0};
20068 /* AIX XL C 1.02.0.0 rejects this.
20069 It does not let you subtract one const X* pointer from another in
20070 an arm of an if-expression whose if-part is not a constant
20071 expression */
20072 const char *g = "string";
20073 ccp = &g + (g ? g-g : 0);
20074 /* HPUX 7.0 cc rejects these. */
20075 ++ccp;
20076 p = (char**) ccp;
20077 ccp = (char const *const *) p;
20078 { /* SCO 3.2v4 cc rejects this. */
20079 char *t;
20080 char const *s = 0 ? (char *) 0 : (char const *) 0;
20081
20082 *t++ = 0;
20083 }
20084 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20085 int x[] = {25, 17};
20086 const int *foo = &x[0];
20087 ++foo;
20088 }
20089 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20090 typedef const int *iptr;
20091 iptr p = 0;
20092 ++p;
20093 }
20094 { /* AIX XL C 1.02.0.0 rejects this saying
20095 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20096 struct s { int j; const int *ap[3]; };
20097 struct s *b; b->j = 5;
20098 }
20099 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20100 const int foo = 10;
20101 }
20102#endif
20103
20104 ;
20105 return 0;
20106}
20107_ACEOF
20108rm -f conftest.$ac_objext
20109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20110 (eval $ac_compile) 2>&5
20111 ac_status=$?
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } &&
20114 { ac_try='test -s conftest.$ac_objext'
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20117 ac_status=$?
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; }; then
20120 ac_cv_c_const=yes
20121else
20122 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020123sed 's/^/| /' conftest.$ac_ext >&5
20124
John Criswell7a73b802003-06-30 21:59:07 +000020125ac_cv_c_const=no
20126fi
20127rm -f conftest.$ac_objext conftest.$ac_ext
20128fi
20129echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20130echo "${ECHO_T}$ac_cv_c_const" >&6
20131if test $ac_cv_c_const = no; then
20132
20133cat >>confdefs.h <<\_ACEOF
20134#define const
20135_ACEOF
20136
20137fi
20138
20139echo "$as_me:$LINENO: checking for inline" >&5
20140echo $ECHO_N "checking for inline... $ECHO_C" >&6
20141if test "${ac_cv_c_inline+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20143else
20144 ac_cv_c_inline=no
20145for ac_kw in inline __inline__ __inline; do
20146 cat >conftest.$ac_ext <<_ACEOF
20147#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020148/* confdefs.h. */
20149_ACEOF
20150cat confdefs.h >>conftest.$ac_ext
20151cat >>conftest.$ac_ext <<_ACEOF
20152/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020153#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020154typedef int foo_t;
20155static $ac_kw foo_t static_foo () {return 0; }
20156$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020157#endif
20158
20159_ACEOF
20160rm -f conftest.$ac_objext
20161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20162 (eval $ac_compile) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } &&
20166 { ac_try='test -s conftest.$ac_objext'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20172 ac_cv_c_inline=$ac_kw; break
20173else
20174 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020175sed 's/^/| /' conftest.$ac_ext >&5
20176
John Criswell7a73b802003-06-30 21:59:07 +000020177fi
20178rm -f conftest.$ac_objext conftest.$ac_ext
20179done
20180
20181fi
20182echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20183echo "${ECHO_T}$ac_cv_c_inline" >&6
20184case $ac_cv_c_inline in
20185 inline | yes) ;;
20186 no)
20187cat >>confdefs.h <<\_ACEOF
20188#define inline
20189_ACEOF
20190 ;;
20191 *) cat >>confdefs.h <<_ACEOF
20192#define inline $ac_cv_c_inline
20193_ACEOF
20194 ;;
20195esac
20196
20197
20198echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20199echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20200if test "${ac_cv_c_bigendian+set}" = set; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20202else
20203 # See if sys/param.h defines the BYTE_ORDER macro.
20204cat >conftest.$ac_ext <<_ACEOF
20205#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020206/* confdefs.h. */
20207_ACEOF
20208cat confdefs.h >>conftest.$ac_ext
20209cat >>conftest.$ac_ext <<_ACEOF
20210/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020211#include <sys/types.h>
20212#include <sys/param.h>
20213
John Criswell7a73b802003-06-30 21:59:07 +000020214int
20215main ()
20216{
20217#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20218 bogus endian macros
20219#endif
20220
20221 ;
20222 return 0;
20223}
20224_ACEOF
20225rm -f conftest.$ac_objext
20226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227 (eval $ac_compile) 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
20231 { ac_try='test -s conftest.$ac_objext'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; }; then
20237 # It does; now see whether it defined to BIG_ENDIAN or not.
20238cat >conftest.$ac_ext <<_ACEOF
20239#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020240/* confdefs.h. */
20241_ACEOF
20242cat confdefs.h >>conftest.$ac_ext
20243cat >>conftest.$ac_ext <<_ACEOF
20244/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020245#include <sys/types.h>
20246#include <sys/param.h>
20247
John Criswell7a73b802003-06-30 21:59:07 +000020248int
20249main ()
20250{
20251#if BYTE_ORDER != BIG_ENDIAN
20252 not big endian
20253#endif
20254
20255 ;
20256 return 0;
20257}
20258_ACEOF
20259rm -f conftest.$ac_objext
20260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20261 (eval $ac_compile) 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } &&
20265 { ac_try='test -s conftest.$ac_objext'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; }; then
20271 ac_cv_c_bigendian=yes
20272else
20273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020274sed 's/^/| /' conftest.$ac_ext >&5
20275
John Criswell7a73b802003-06-30 21:59:07 +000020276ac_cv_c_bigendian=no
20277fi
20278rm -f conftest.$ac_objext conftest.$ac_ext
20279else
20280 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020281sed 's/^/| /' conftest.$ac_ext >&5
20282
John Criswell7a73b802003-06-30 21:59:07 +000020283# It does not; compile a test program.
20284if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020285 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020286 ac_cv_c_bigendian=unknown
20287 cat >conftest.$ac_ext <<_ACEOF
20288#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020289/* confdefs.h. */
20290_ACEOF
20291cat confdefs.h >>conftest.$ac_ext
20292cat >>conftest.$ac_ext <<_ACEOF
20293/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020294short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20295short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20296void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20297short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20298short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20299void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020300int
20301main ()
20302{
20303 _ascii (); _ebcdic ();
20304 ;
20305 return 0;
20306}
20307_ACEOF
20308rm -f conftest.$ac_objext
20309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20310 (eval $ac_compile) 2>&5
20311 ac_status=$?
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } &&
20314 { ac_try='test -s conftest.$ac_objext'
20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020320 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020321 ac_cv_c_bigendian=yes
20322fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020323if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020324 if test "$ac_cv_c_bigendian" = unknown; then
20325 ac_cv_c_bigendian=no
20326 else
20327 # finding both strings is unlikely to happen, but who knows?
20328 ac_cv_c_bigendian=unknown
20329 fi
20330fi
20331else
20332 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020333sed 's/^/| /' conftest.$ac_ext >&5
20334
John Criswell7a73b802003-06-30 21:59:07 +000020335fi
20336rm -f conftest.$ac_objext conftest.$ac_ext
20337else
20338 cat >conftest.$ac_ext <<_ACEOF
20339#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020340/* confdefs.h. */
20341_ACEOF
20342cat confdefs.h >>conftest.$ac_ext
20343cat >>conftest.$ac_ext <<_ACEOF
20344/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020345int
20346main ()
20347{
20348 /* Are we little or big endian? From Harbison&Steele. */
20349 union
20350 {
20351 long l;
20352 char c[sizeof (long)];
20353 } u;
20354 u.l = 1;
20355 exit (u.c[sizeof (long) - 1] == 1);
20356}
20357_ACEOF
20358rm -f conftest$ac_exeext
20359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20360 (eval $ac_link) 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369 ac_cv_c_bigendian=no
20370else
20371 echo "$as_me: program exited with status $ac_status" >&5
20372echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020373sed 's/^/| /' conftest.$ac_ext >&5
20374
John Criswell7a73b802003-06-30 21:59:07 +000020375( exit $ac_status )
20376ac_cv_c_bigendian=yes
20377fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020378rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020379fi
20380fi
20381rm -f conftest.$ac_objext conftest.$ac_ext
20382fi
20383echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20384echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20385case $ac_cv_c_bigendian in
20386 yes)
20387 cat >>confdefs.h <<\_ACEOF
20388#define ENDIAN_BIG 1
20389_ACEOF
20390 ;;
20391 no)
20392 cat >>confdefs.h <<\_ACEOF
20393#define ENDIAN_LITTLE 1
20394_ACEOF
20395 ;;
20396 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020397 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020398presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020399echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020400presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20401 { (exit 1); exit 1; }; } ;;
20402esac
20403
20404
20405echo "$as_me:$LINENO: checking for pid_t" >&5
20406echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20407if test "${ac_cv_type_pid_t+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20409else
20410 cat >conftest.$ac_ext <<_ACEOF
20411#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020412/* confdefs.h. */
20413_ACEOF
20414cat confdefs.h >>conftest.$ac_ext
20415cat >>conftest.$ac_ext <<_ACEOF
20416/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020417$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020418int
20419main ()
20420{
20421if ((pid_t *) 0)
20422 return 0;
20423if (sizeof (pid_t))
20424 return 0;
20425 ;
20426 return 0;
20427}
20428_ACEOF
20429rm -f conftest.$ac_objext
20430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20431 (eval $ac_compile) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } &&
20435 { ac_try='test -s conftest.$ac_objext'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20438 ac_status=$?
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20441 ac_cv_type_pid_t=yes
20442else
20443 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020444sed 's/^/| /' conftest.$ac_ext >&5
20445
John Criswell7a73b802003-06-30 21:59:07 +000020446ac_cv_type_pid_t=no
20447fi
20448rm -f conftest.$ac_objext conftest.$ac_ext
20449fi
20450echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20451echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20452if test $ac_cv_type_pid_t = yes; then
20453 :
20454else
20455
20456cat >>confdefs.h <<_ACEOF
20457#define pid_t int
20458_ACEOF
20459
20460fi
20461
20462echo "$as_me:$LINENO: checking for size_t" >&5
20463echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20464if test "${ac_cv_type_size_t+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20466else
20467 cat >conftest.$ac_ext <<_ACEOF
20468#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020469/* confdefs.h. */
20470_ACEOF
20471cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020474$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020475int
20476main ()
20477{
20478if ((size_t *) 0)
20479 return 0;
20480if (sizeof (size_t))
20481 return 0;
20482 ;
20483 return 0;
20484}
20485_ACEOF
20486rm -f conftest.$ac_objext
20487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488 (eval $ac_compile) 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } &&
20492 { ac_try='test -s conftest.$ac_objext'
20493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494 (eval $ac_try) 2>&5
20495 ac_status=$?
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; }; then
20498 ac_cv_type_size_t=yes
20499else
20500 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020501sed 's/^/| /' conftest.$ac_ext >&5
20502
John Criswell7a73b802003-06-30 21:59:07 +000020503ac_cv_type_size_t=no
20504fi
20505rm -f conftest.$ac_objext conftest.$ac_ext
20506fi
20507echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20508echo "${ECHO_T}$ac_cv_type_size_t" >&6
20509if test $ac_cv_type_size_t = yes; then
20510 :
20511else
20512
20513cat >>confdefs.h <<_ACEOF
20514#define size_t unsigned
20515_ACEOF
20516
20517fi
20518
20519echo "$as_me:$LINENO: checking for int64_t" >&5
20520echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20521if test "${ac_cv_type_int64_t+set}" = set; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20523else
20524 cat >conftest.$ac_ext <<_ACEOF
20525#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020526/* confdefs.h. */
20527_ACEOF
20528cat confdefs.h >>conftest.$ac_ext
20529cat >>conftest.$ac_ext <<_ACEOF
20530/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020531$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020532int
20533main ()
20534{
20535if ((int64_t *) 0)
20536 return 0;
20537if (sizeof (int64_t))
20538 return 0;
20539 ;
20540 return 0;
20541}
20542_ACEOF
20543rm -f conftest.$ac_objext
20544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20545 (eval $ac_compile) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } &&
20549 { ac_try='test -s conftest.$ac_objext'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_type_int64_t=yes
20556else
20557 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020558sed 's/^/| /' conftest.$ac_ext >&5
20559
John Criswell7a73b802003-06-30 21:59:07 +000020560ac_cv_type_int64_t=no
20561fi
20562rm -f conftest.$ac_objext conftest.$ac_ext
20563fi
20564echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20565echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20566if test $ac_cv_type_int64_t = yes; then
20567
20568cat >>confdefs.h <<_ACEOF
20569#define HAVE_INT64_T 1
20570_ACEOF
20571
20572
20573else
20574 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20575echo "$as_me: error: Type int64_t required but not found" >&2;}
20576 { (exit 1); exit 1; }; }
20577fi
20578
20579echo "$as_me:$LINENO: checking for uint64_t" >&5
20580echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20581if test "${ac_cv_type_uint64_t+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20583else
20584 cat >conftest.$ac_ext <<_ACEOF
20585#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020586/* confdefs.h. */
20587_ACEOF
20588cat confdefs.h >>conftest.$ac_ext
20589cat >>conftest.$ac_ext <<_ACEOF
20590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020591$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020592int
20593main ()
20594{
20595if ((uint64_t *) 0)
20596 return 0;
20597if (sizeof (uint64_t))
20598 return 0;
20599 ;
20600 return 0;
20601}
20602_ACEOF
20603rm -f conftest.$ac_objext
20604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20605 (eval $ac_compile) 2>&5
20606 ac_status=$?
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } &&
20609 { ac_try='test -s conftest.$ac_objext'
20610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611 (eval $ac_try) 2>&5
20612 ac_status=$?
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; }; then
20615 ac_cv_type_uint64_t=yes
20616else
20617 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020618sed 's/^/| /' conftest.$ac_ext >&5
20619
John Criswell7a73b802003-06-30 21:59:07 +000020620ac_cv_type_uint64_t=no
20621fi
20622rm -f conftest.$ac_objext conftest.$ac_ext
20623fi
20624echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20625echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20626if test $ac_cv_type_uint64_t = yes; then
20627
20628cat >>confdefs.h <<_ACEOF
20629#define HAVE_UINT64_T 1
20630_ACEOF
20631
20632
20633else
20634 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20635echo "$as_me: error: Type uint64_t required but not found" >&2;}
20636 { (exit 1); exit 1; }; }
20637fi
20638
20639echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20640echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20641if test "${ac_cv_header_time+set}" = set; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20643else
20644 cat >conftest.$ac_ext <<_ACEOF
20645#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020646/* confdefs.h. */
20647_ACEOF
20648cat confdefs.h >>conftest.$ac_ext
20649cat >>conftest.$ac_ext <<_ACEOF
20650/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020651#include <sys/types.h>
20652#include <sys/time.h>
20653#include <time.h>
20654
John Criswell7a73b802003-06-30 21:59:07 +000020655int
20656main ()
20657{
20658if ((struct tm *) 0)
20659return 0;
20660 ;
20661 return 0;
20662}
20663_ACEOF
20664rm -f conftest.$ac_objext
20665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20666 (eval $ac_compile) 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } &&
20670 { ac_try='test -s conftest.$ac_objext'
20671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672 (eval $ac_try) 2>&5
20673 ac_status=$?
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; }; then
20676 ac_cv_header_time=yes
20677else
20678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020679sed 's/^/| /' conftest.$ac_ext >&5
20680
John Criswell7a73b802003-06-30 21:59:07 +000020681ac_cv_header_time=no
20682fi
20683rm -f conftest.$ac_objext conftest.$ac_ext
20684fi
20685echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20686echo "${ECHO_T}$ac_cv_header_time" >&6
20687if test $ac_cv_header_time = yes; then
20688
20689cat >>confdefs.h <<\_ACEOF
20690#define TIME_WITH_SYS_TIME 1
20691_ACEOF
20692
20693fi
20694
20695echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20696echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20697if test "${ac_cv_struct_tm+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20699else
20700 cat >conftest.$ac_ext <<_ACEOF
20701#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020702/* confdefs.h. */
20703_ACEOF
20704cat confdefs.h >>conftest.$ac_ext
20705cat >>conftest.$ac_ext <<_ACEOF
20706/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020707#include <sys/types.h>
20708#include <time.h>
20709
John Criswell7a73b802003-06-30 21:59:07 +000020710int
20711main ()
20712{
20713struct tm *tp; tp->tm_sec;
20714 ;
20715 return 0;
20716}
20717_ACEOF
20718rm -f conftest.$ac_objext
20719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20720 (eval $ac_compile) 2>&5
20721 ac_status=$?
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } &&
20724 { ac_try='test -s conftest.$ac_objext'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; }; then
20730 ac_cv_struct_tm=time.h
20731else
20732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020733sed 's/^/| /' conftest.$ac_ext >&5
20734
John Criswell7a73b802003-06-30 21:59:07 +000020735ac_cv_struct_tm=sys/time.h
20736fi
20737rm -f conftest.$ac_objext conftest.$ac_ext
20738fi
20739echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20740echo "${ECHO_T}$ac_cv_struct_tm" >&6
20741if test $ac_cv_struct_tm = sys/time.h; then
20742
20743cat >>confdefs.h <<\_ACEOF
20744#define TM_IN_SYS_TIME 1
20745_ACEOF
20746
20747fi
20748
20749
John Criswell7a73b802003-06-30 21:59:07 +000020750echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20751echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20752if test "${ac_cv_cxx_namespaces+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20754else
20755
20756
20757 ac_ext=cc
20758ac_cpp='$CXXCPP $CPPFLAGS'
20759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20762
20763 cat >conftest.$ac_ext <<_ACEOF
20764#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020765/* confdefs.h. */
20766_ACEOF
20767cat confdefs.h >>conftest.$ac_ext
20768cat >>conftest.$ac_ext <<_ACEOF
20769/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020770namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020771int
20772main ()
20773{
20774using namespace Outer::Inner; return i;
20775 ;
20776 return 0;
20777}
20778_ACEOF
20779rm -f conftest.$ac_objext
20780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20781 (eval $ac_compile) 2>&5
20782 ac_status=$?
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } &&
20785 { ac_try='test -s conftest.$ac_objext'
20786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20787 (eval $ac_try) 2>&5
20788 ac_status=$?
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; }; then
20791 ac_cv_cxx_namespaces=yes
20792else
20793 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020794sed 's/^/| /' conftest.$ac_ext >&5
20795
John Criswell7a73b802003-06-30 21:59:07 +000020796ac_cv_cxx_namespaces=no
20797fi
20798rm -f conftest.$ac_objext conftest.$ac_ext
20799 ac_ext=c
20800ac_cpp='$CPP $CPPFLAGS'
20801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20803ac_compiler_gnu=$ac_cv_c_compiler_gnu
20804
20805
20806fi
20807echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20808echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20809if test "$ac_cv_cxx_namespaces" = yes; then
20810
20811cat >>confdefs.h <<\_ACEOF
20812#define HAVE_NAMESPACES
20813_ACEOF
20814
20815fi
20816
20817echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20818echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20819if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20820 echo $ECHO_N "(cached) $ECHO_C" >&6
20821else
20822
20823
20824
20825 ac_ext=cc
20826ac_cpp='$CXXCPP $CPPFLAGS'
20827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20830
20831 cat >conftest.$ac_ext <<_ACEOF
20832#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020833/* confdefs.h. */
20834_ACEOF
20835cat confdefs.h >>conftest.$ac_ext
20836cat >>conftest.$ac_ext <<_ACEOF
20837/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020838#include <ext/hash_map>
20839#ifdef HAVE_NAMESPACES
20840using namespace std;
20841#endif
John Criswell7a73b802003-06-30 21:59:07 +000020842int
20843main ()
20844{
20845hash_map<int, int> t; return 0;
20846 ;
20847 return 0;
20848}
20849_ACEOF
20850rm -f conftest.$ac_objext
20851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20852 (eval $ac_compile) 2>&5
20853 ac_status=$?
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } &&
20856 { ac_try='test -s conftest.$ac_objext'
20857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858 (eval $ac_try) 2>&5
20859 ac_status=$?
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); }; }; then
20862 ac_cv_cxx_have_ext_hash_map=std
20863else
20864 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020865sed 's/^/| /' conftest.$ac_ext >&5
20866
John Criswell7a73b802003-06-30 21:59:07 +000020867ac_cv_cxx_have_ext_hash_map=no
20868fi
20869rm -f conftest.$ac_objext conftest.$ac_ext
20870 cat >conftest.$ac_ext <<_ACEOF
20871#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020872/* confdefs.h. */
20873_ACEOF
20874cat confdefs.h >>conftest.$ac_ext
20875cat >>conftest.$ac_ext <<_ACEOF
20876/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020877#include <ext/hash_map>
20878#ifdef HAVE_NAMESPACES
20879using namespace __gnu_cxx;
20880#endif
John Criswell7a73b802003-06-30 21:59:07 +000020881int
20882main ()
20883{
20884hash_map<int, int> t; return 0;
20885 ;
20886 return 0;
20887}
20888_ACEOF
20889rm -f conftest.$ac_objext
20890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20891 (eval $ac_compile) 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } &&
20895 { ac_try='test -s conftest.$ac_objext'
20896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20897 (eval $ac_try) 2>&5
20898 ac_status=$?
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; }; then
20901 ac_cv_cxx_have_ext_hash_map=gnu
20902else
20903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020904sed 's/^/| /' conftest.$ac_ext >&5
20905
John Criswell7a73b802003-06-30 21:59:07 +000020906ac_cv_cxx_have_ext_hash_map=no
20907fi
20908rm -f conftest.$ac_objext conftest.$ac_ext
20909 ac_ext=c
20910ac_cpp='$CPP $CPPFLAGS'
20911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20913ac_compiler_gnu=$ac_cv_c_compiler_gnu
20914
20915
20916fi
20917echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20918echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20919if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20920
20921cat >>confdefs.h <<\_ACEOF
20922#define HAVE_STD_EXT_HASH_MAP
20923_ACEOF
20924
20925fi
20926if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20927
20928cat >>confdefs.h <<\_ACEOF
20929#define HAVE_GNU_EXT_HASH_MAP
20930_ACEOF
20931
20932fi
20933
20934echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20935echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20936if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20937 echo $ECHO_N "(cached) $ECHO_C" >&6
20938else
20939
20940
20941
20942 ac_ext=cc
20943ac_cpp='$CXXCPP $CPPFLAGS'
20944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20947
20948 cat >conftest.$ac_ext <<_ACEOF
20949#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020950/* confdefs.h. */
20951_ACEOF
20952cat confdefs.h >>conftest.$ac_ext
20953cat >>conftest.$ac_ext <<_ACEOF
20954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020955#include <ext/hash_set>
20956#ifdef HAVE_NAMESPACES
20957using namespace std;
20958#endif
John Criswell7a73b802003-06-30 21:59:07 +000020959int
20960main ()
20961{
20962hash_set<int> t; return 0;
20963 ;
20964 return 0;
20965}
20966_ACEOF
20967rm -f conftest.$ac_objext
20968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20969 (eval $ac_compile) 2>&5
20970 ac_status=$?
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } &&
20973 { ac_try='test -s conftest.$ac_objext'
20974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20975 (eval $ac_try) 2>&5
20976 ac_status=$?
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; }; then
20979 ac_cv_cxx_have_ext_hash_set=std
20980else
20981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020982sed 's/^/| /' conftest.$ac_ext >&5
20983
John Criswell7a73b802003-06-30 21:59:07 +000020984ac_cv_cxx_have_ext_hash_set=no
20985fi
20986rm -f conftest.$ac_objext conftest.$ac_ext
20987 cat >conftest.$ac_ext <<_ACEOF
20988#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020989/* confdefs.h. */
20990_ACEOF
20991cat confdefs.h >>conftest.$ac_ext
20992cat >>conftest.$ac_ext <<_ACEOF
20993/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020994#include <ext/hash_set>
20995#ifdef HAVE_NAMESPACES
20996using namespace __gnu_cxx;
20997#endif
John Criswell7a73b802003-06-30 21:59:07 +000020998int
20999main ()
21000{
21001hash_set<int> t; return 0;
21002 ;
21003 return 0;
21004}
21005_ACEOF
21006rm -f conftest.$ac_objext
21007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21008 (eval $ac_compile) 2>&5
21009 ac_status=$?
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } &&
21012 { ac_try='test -s conftest.$ac_objext'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21015 ac_status=$?
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; }; then
21018 ac_cv_cxx_have_ext_hash_set=gnu
21019else
21020 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021021sed 's/^/| /' conftest.$ac_ext >&5
21022
John Criswell7a73b802003-06-30 21:59:07 +000021023ac_cv_cxx_have_ext_hash_set=no
21024fi
21025rm -f conftest.$ac_objext conftest.$ac_ext
21026 ac_ext=c
21027ac_cpp='$CPP $CPPFLAGS'
21028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21030ac_compiler_gnu=$ac_cv_c_compiler_gnu
21031
21032
21033fi
21034echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21035echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21036if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21037
21038cat >>confdefs.h <<\_ACEOF
21039#define HAVE_STD_EXT_HASH_SET
21040_ACEOF
21041
21042fi
21043if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21044
21045cat >>confdefs.h <<\_ACEOF
21046#define HAVE_GNU_EXT_HASH_SET
21047_ACEOF
21048
21049fi
21050
21051echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21052echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21053if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21054 echo $ECHO_N "(cached) $ECHO_C" >&6
21055else
21056
21057
21058
21059 ac_ext=cc
21060ac_cpp='$CXXCPP $CPPFLAGS'
21061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21064
21065 cat >conftest.$ac_ext <<_ACEOF
21066#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021067/* confdefs.h. */
21068_ACEOF
21069cat confdefs.h >>conftest.$ac_ext
21070cat >>conftest.$ac_ext <<_ACEOF
21071/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021072#include <ext/slist>
21073#ifdef HAVE_NAMESPACES
21074using namespace std;
21075#endif
John Criswell7a73b802003-06-30 21:59:07 +000021076int
21077main ()
21078{
21079slist<int> s; return 0;
21080 ;
21081 return 0;
21082}
21083_ACEOF
21084rm -f conftest.$ac_objext
21085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21086 (eval $ac_compile) 2>&5
21087 ac_status=$?
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); } &&
21090 { ac_try='test -s conftest.$ac_objext'
21091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092 (eval $ac_try) 2>&5
21093 ac_status=$?
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); }; }; then
21096 ac_cv_cxx_have_ext_slist=std
21097else
21098 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021099sed 's/^/| /' conftest.$ac_ext >&5
21100
John Criswell7a73b802003-06-30 21:59:07 +000021101ac_cv_cxx_have_ext_slist=no
21102fi
21103rm -f conftest.$ac_objext conftest.$ac_ext
21104 cat >conftest.$ac_ext <<_ACEOF
21105#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021106/* confdefs.h. */
21107_ACEOF
21108cat confdefs.h >>conftest.$ac_ext
21109cat >>conftest.$ac_ext <<_ACEOF
21110/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021111#include <ext/slist>
21112#ifdef HAVE_NAMESPACES
21113using namespace __gnu_cxx;
21114#endif
John Criswell7a73b802003-06-30 21:59:07 +000021115int
21116main ()
21117{
21118slist<int> s; return 0;
21119 ;
21120 return 0;
21121}
21122_ACEOF
21123rm -f conftest.$ac_objext
21124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21125 (eval $ac_compile) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } &&
21129 { ac_try='test -s conftest.$ac_objext'
21130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131 (eval $ac_try) 2>&5
21132 ac_status=$?
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; }; then
21135 ac_cv_cxx_have_ext_slist=gnu
21136else
21137 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021138sed 's/^/| /' conftest.$ac_ext >&5
21139
John Criswell7a73b802003-06-30 21:59:07 +000021140ac_cv_cxx_have_ext_slist=no
21141fi
21142rm -f conftest.$ac_objext conftest.$ac_ext
21143
21144 ac_ext=c
21145ac_cpp='$CPP $CPPFLAGS'
21146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21148ac_compiler_gnu=$ac_cv_c_compiler_gnu
21149
21150
21151fi
21152echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21153echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21154if test "$ac_cv_cxx_have_ext_slist" = std; then
21155
21156cat >>confdefs.h <<\_ACEOF
21157#define HAVE_EXT_SLIST std
21158_ACEOF
21159
21160fi
21161if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21162
21163cat >>confdefs.h <<\_ACEOF
21164#define HAVE_EXT_SLIST gnu
21165_ACEOF
21166
21167fi
21168
21169echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21170echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21171if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21172 echo $ECHO_N "(cached) $ECHO_C" >&6
21173else
21174
21175
21176
21177 ac_ext=cc
21178ac_cpp='$CXXCPP $CPPFLAGS'
21179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21182
21183 cat >conftest.$ac_ext <<_ACEOF
21184#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021185/* confdefs.h. */
21186_ACEOF
21187cat confdefs.h >>conftest.$ac_ext
21188cat >>conftest.$ac_ext <<_ACEOF
21189/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021190#include <iterator>
21191#ifdef HAVE_NAMESPACES
21192using namespace std;
21193#endif
John Criswell7a73b802003-06-30 21:59:07 +000021194int
21195main ()
21196{
21197iterator<int,int,int> t; return 0;
21198 ;
21199 return 0;
21200}
21201_ACEOF
21202rm -f conftest.$ac_objext
21203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21204 (eval $ac_compile) 2>&5
21205 ac_status=$?
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } &&
21208 { ac_try='test -s conftest.$ac_objext'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; }; then
21214 ac_cv_cxx_have_std_iterator=yes
21215else
21216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021217sed 's/^/| /' conftest.$ac_ext >&5
21218
John Criswell7a73b802003-06-30 21:59:07 +000021219ac_cv_cxx_have_std_iterator=no
21220fi
21221rm -f conftest.$ac_objext conftest.$ac_ext
21222 ac_ext=c
21223ac_cpp='$CPP $CPPFLAGS'
21224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21226ac_compiler_gnu=$ac_cv_c_compiler_gnu
21227
21228
21229fi
21230echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21231echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21232if test "$ac_cv_cxx_have_std_iterator" = yes; then
21233
21234cat >>confdefs.h <<\_ACEOF
21235#define HAVE_STD_ITERATOR
21236_ACEOF
21237
21238fi
21239
21240echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21241echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21242if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21244else
21245
21246
21247
21248 ac_ext=cc
21249ac_cpp='$CXXCPP $CPPFLAGS'
21250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21253
21254 cat >conftest.$ac_ext <<_ACEOF
21255#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021256/* confdefs.h. */
21257_ACEOF
21258cat confdefs.h >>conftest.$ac_ext
21259cat >>conftest.$ac_ext <<_ACEOF
21260/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021261#include <iterator>
21262#ifdef HAVE_NAMESPACES
21263using namespace std;
21264#endif
John Criswell7a73b802003-06-30 21:59:07 +000021265int
21266main ()
21267{
John Criswellc78022e2003-07-29 19:11:58 +000021268bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021269 ;
21270 return 0;
21271}
21272_ACEOF
21273rm -f conftest.$ac_objext
21274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21275 (eval $ac_compile) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } &&
21279 { ac_try='test -s conftest.$ac_objext'
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 ac_cv_cxx_have_bi_iterator=yes
21286else
21287 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021288sed 's/^/| /' conftest.$ac_ext >&5
21289
John Criswell7a73b802003-06-30 21:59:07 +000021290ac_cv_cxx_have_bi_iterator=no
21291fi
21292rm -f conftest.$ac_objext conftest.$ac_ext
21293 ac_ext=c
21294ac_cpp='$CPP $CPPFLAGS'
21295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21297ac_compiler_gnu=$ac_cv_c_compiler_gnu
21298
21299
21300fi
21301echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21302echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21303if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21304
21305cat >>confdefs.h <<\_ACEOF
21306#define HAVE_BI_ITERATOR
21307_ACEOF
21308
21309fi
21310
21311echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21312echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21313if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21315else
21316
21317
21318
21319 ac_ext=cc
21320ac_cpp='$CXXCPP $CPPFLAGS'
21321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21324
21325 cat >conftest.$ac_ext <<_ACEOF
21326#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021327/* confdefs.h. */
21328_ACEOF
21329cat confdefs.h >>conftest.$ac_ext
21330cat >>conftest.$ac_ext <<_ACEOF
21331/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021332#include <iterator>
21333#ifdef HAVE_NAMESPACES
21334using namespace std;
21335#endif
John Criswell7a73b802003-06-30 21:59:07 +000021336int
21337main ()
21338{
John Criswellc78022e2003-07-29 19:11:58 +000021339forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021340 ;
21341 return 0;
21342}
21343_ACEOF
21344rm -f conftest.$ac_objext
21345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21346 (eval $ac_compile) 2>&5
21347 ac_status=$?
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); } &&
21350 { ac_try='test -s conftest.$ac_objext'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 ac_cv_cxx_have_fwd_iterator=yes
21357else
21358 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021359sed 's/^/| /' conftest.$ac_ext >&5
21360
John Criswell7a73b802003-06-30 21:59:07 +000021361ac_cv_cxx_have_fwd_iterator=no
21362fi
21363rm -f conftest.$ac_objext conftest.$ac_ext
21364 ac_ext=c
21365ac_cpp='$CPP $CPPFLAGS'
21366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21368ac_compiler_gnu=$ac_cv_c_compiler_gnu
21369
21370
21371fi
21372echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21373echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21374if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21375
21376cat >>confdefs.h <<\_ACEOF
21377#define HAVE_FWD_ITERATOR
21378_ACEOF
21379
21380fi
21381
21382
21383# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21384# for constant arguments. Useless!
21385echo "$as_me:$LINENO: checking for working alloca.h" >&5
21386echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21387if test "${ac_cv_working_alloca_h+set}" = set; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21389else
21390 cat >conftest.$ac_ext <<_ACEOF
21391#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021392/* confdefs.h. */
21393_ACEOF
21394cat confdefs.h >>conftest.$ac_ext
21395cat >>conftest.$ac_ext <<_ACEOF
21396/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021397#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021398int
21399main ()
21400{
21401char *p = (char *) alloca (2 * sizeof (int));
21402 ;
21403 return 0;
21404}
21405_ACEOF
21406rm -f conftest.$ac_objext conftest$ac_exeext
21407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21408 (eval $ac_link) 2>&5
21409 ac_status=$?
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } &&
21412 { ac_try='test -s conftest$ac_exeext'
21413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21414 (eval $ac_try) 2>&5
21415 ac_status=$?
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); }; }; then
21418 ac_cv_working_alloca_h=yes
21419else
21420 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021421sed 's/^/| /' conftest.$ac_ext >&5
21422
John Criswell7a73b802003-06-30 21:59:07 +000021423ac_cv_working_alloca_h=no
21424fi
21425rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21426fi
21427echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21428echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21429if test $ac_cv_working_alloca_h = yes; then
21430
21431cat >>confdefs.h <<\_ACEOF
21432#define HAVE_ALLOCA_H 1
21433_ACEOF
21434
21435fi
21436
21437echo "$as_me:$LINENO: checking for alloca" >&5
21438echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21439if test "${ac_cv_func_alloca_works+set}" = set; then
21440 echo $ECHO_N "(cached) $ECHO_C" >&6
21441else
21442 cat >conftest.$ac_ext <<_ACEOF
21443#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021444/* confdefs.h. */
21445_ACEOF
21446cat confdefs.h >>conftest.$ac_ext
21447cat >>conftest.$ac_ext <<_ACEOF
21448/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021449#ifdef __GNUC__
21450# define alloca __builtin_alloca
21451#else
21452# ifdef _MSC_VER
21453# include <malloc.h>
21454# define alloca _alloca
21455# else
21456# if HAVE_ALLOCA_H
21457# include <alloca.h>
21458# else
21459# ifdef _AIX
21460 #pragma alloca
21461# else
21462# ifndef alloca /* predefined by HP cc +Olibcalls */
21463char *alloca ();
21464# endif
21465# endif
21466# endif
21467# endif
21468#endif
21469
John Criswell7a73b802003-06-30 21:59:07 +000021470int
21471main ()
21472{
21473char *p = (char *) alloca (1);
21474 ;
21475 return 0;
21476}
21477_ACEOF
21478rm -f conftest.$ac_objext conftest$ac_exeext
21479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21480 (eval $ac_link) 2>&5
21481 ac_status=$?
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } &&
21484 { ac_try='test -s conftest$ac_exeext'
21485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486 (eval $ac_try) 2>&5
21487 ac_status=$?
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); }; }; then
21490 ac_cv_func_alloca_works=yes
21491else
21492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021493sed 's/^/| /' conftest.$ac_ext >&5
21494
John Criswell7a73b802003-06-30 21:59:07 +000021495ac_cv_func_alloca_works=no
21496fi
21497rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21498fi
21499echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21500echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21501
21502if test $ac_cv_func_alloca_works = yes; then
21503
21504cat >>confdefs.h <<\_ACEOF
21505#define HAVE_ALLOCA 1
21506_ACEOF
21507
21508else
21509 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21510# that cause trouble. Some versions do not even contain alloca or
21511# contain a buggy version. If you still want to use their alloca,
21512# use ar to extract alloca.o from them instead of compiling alloca.c.
21513
21514ALLOCA=alloca.$ac_objext
21515
21516cat >>confdefs.h <<\_ACEOF
21517#define C_ALLOCA 1
21518_ACEOF
21519
21520
21521echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21522echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21523if test "${ac_cv_os_cray+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21525else
21526 cat >conftest.$ac_ext <<_ACEOF
21527#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021528/* confdefs.h. */
21529_ACEOF
21530cat confdefs.h >>conftest.$ac_ext
21531cat >>conftest.$ac_ext <<_ACEOF
21532/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021533#if defined(CRAY) && ! defined(CRAY2)
21534webecray
21535#else
21536wenotbecray
21537#endif
21538
21539_ACEOF
21540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021541 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021542 ac_cv_os_cray=yes
21543else
21544 ac_cv_os_cray=no
21545fi
21546rm -f conftest*
21547
21548fi
21549echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21550echo "${ECHO_T}$ac_cv_os_cray" >&6
21551if test $ac_cv_os_cray = yes; then
21552 for ac_func in _getb67 GETB67 getb67; do
21553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21554echo "$as_me:$LINENO: checking for $ac_func" >&5
21555echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21556if eval "test \"\${$as_ac_var+set}\" = set"; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21558else
21559 cat >conftest.$ac_ext <<_ACEOF
21560#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021561/* confdefs.h. */
21562_ACEOF
21563cat confdefs.h >>conftest.$ac_ext
21564cat >>conftest.$ac_ext <<_ACEOF
21565/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021566/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021567 which can conflict with char $ac_func (); below.
21568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21569 <limits.h> exists even on freestanding compilers. */
21570#ifdef __STDC__
21571# include <limits.h>
21572#else
21573# include <assert.h>
21574#endif
John Criswell7a73b802003-06-30 21:59:07 +000021575/* Override any gcc2 internal prototype to avoid an error. */
21576#ifdef __cplusplus
21577extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021578{
John Criswell7a73b802003-06-30 21:59:07 +000021579#endif
21580/* We use char because int might match the return type of a gcc2
21581 builtin and then its argument prototype would still apply. */
21582char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021583/* The GNU C library defines this for functions which it implements
21584 to always fail with ENOSYS. Some functions are actually named
21585 something starting with __ and the normal name is an alias. */
21586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21587choke me
21588#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021589char (*f) () = $ac_func;
21590#endif
21591#ifdef __cplusplus
21592}
John Criswell7a73b802003-06-30 21:59:07 +000021593#endif
21594
John Criswell0c38eaf2003-09-10 15:17:25 +000021595int
21596main ()
21597{
21598return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021599 ;
21600 return 0;
21601}
21602_ACEOF
21603rm -f conftest.$ac_objext conftest$ac_exeext
21604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21605 (eval $ac_link) 2>&5
21606 ac_status=$?
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } &&
21609 { ac_try='test -s conftest$ac_exeext'
21610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21612 ac_status=$?
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); }; }; then
21615 eval "$as_ac_var=yes"
21616else
21617 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021618sed 's/^/| /' conftest.$ac_ext >&5
21619
John Criswell7a73b802003-06-30 21:59:07 +000021620eval "$as_ac_var=no"
21621fi
21622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21623fi
21624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21625echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21626if test `eval echo '${'$as_ac_var'}'` = yes; then
21627
21628cat >>confdefs.h <<_ACEOF
21629#define CRAY_STACKSEG_END $ac_func
21630_ACEOF
21631
21632 break
21633fi
21634
21635 done
21636fi
21637
21638echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21639echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21640if test "${ac_cv_c_stack_direction+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21642else
21643 if test "$cross_compiling" = yes; then
21644 ac_cv_c_stack_direction=0
21645else
21646 cat >conftest.$ac_ext <<_ACEOF
21647#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021648/* confdefs.h. */
21649_ACEOF
21650cat confdefs.h >>conftest.$ac_ext
21651cat >>conftest.$ac_ext <<_ACEOF
21652/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021653int
21654find_stack_direction ()
21655{
21656 static char *addr = 0;
21657 auto char dummy;
21658 if (addr == 0)
21659 {
21660 addr = &dummy;
21661 return find_stack_direction ();
21662 }
21663 else
21664 return (&dummy > addr) ? 1 : -1;
21665}
21666
21667int
21668main ()
21669{
21670 exit (find_stack_direction () < 0);
21671}
21672_ACEOF
21673rm -f conftest$ac_exeext
21674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21675 (eval $ac_link) 2>&5
21676 ac_status=$?
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21681 ac_status=$?
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 ac_cv_c_stack_direction=1
21685else
21686 echo "$as_me: program exited with status $ac_status" >&5
21687echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021688sed 's/^/| /' conftest.$ac_ext >&5
21689
John Criswell7a73b802003-06-30 21:59:07 +000021690( exit $ac_status )
21691ac_cv_c_stack_direction=-1
21692fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021693rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021694fi
21695fi
21696echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21697echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21698
21699cat >>confdefs.h <<_ACEOF
21700#define STACK_DIRECTION $ac_cv_c_stack_direction
21701_ACEOF
21702
21703
21704fi
21705
21706if test $ac_cv_c_compiler_gnu = yes; then
21707 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21708echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21709if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21711else
21712 ac_pattern="Autoconf.*'x'"
21713 cat >conftest.$ac_ext <<_ACEOF
21714#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021715/* confdefs.h. */
21716_ACEOF
21717cat confdefs.h >>conftest.$ac_ext
21718cat >>conftest.$ac_ext <<_ACEOF
21719/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021720#include <sgtty.h>
21721Autoconf TIOCGETP
21722_ACEOF
21723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021724 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021725 ac_cv_prog_gcc_traditional=yes
21726else
21727 ac_cv_prog_gcc_traditional=no
21728fi
21729rm -f conftest*
21730
21731
21732 if test $ac_cv_prog_gcc_traditional = no; then
21733 cat >conftest.$ac_ext <<_ACEOF
21734#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021735/* confdefs.h. */
21736_ACEOF
21737cat confdefs.h >>conftest.$ac_ext
21738cat >>conftest.$ac_ext <<_ACEOF
21739/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021740#include <termio.h>
21741Autoconf TCGETA
21742_ACEOF
21743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021744 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021745 ac_cv_prog_gcc_traditional=yes
21746fi
21747rm -f conftest*
21748
21749 fi
21750fi
21751echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21752echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21753 if test $ac_cv_prog_gcc_traditional = yes; then
21754 CC="$CC -traditional"
21755 fi
21756fi
21757
21758echo "$as_me:$LINENO: checking for working memcmp" >&5
21759echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21760if test "${ac_cv_func_memcmp_working+set}" = set; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21762else
21763 if test "$cross_compiling" = yes; then
21764 ac_cv_func_memcmp_working=no
21765else
21766 cat >conftest.$ac_ext <<_ACEOF
21767#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021768/* confdefs.h. */
21769_ACEOF
21770cat confdefs.h >>conftest.$ac_ext
21771cat >>conftest.$ac_ext <<_ACEOF
21772/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021773
John Criswell7a73b802003-06-30 21:59:07 +000021774int
21775main ()
21776{
21777
21778 /* Some versions of memcmp are not 8-bit clean. */
21779 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21780 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21781 exit (1);
21782
21783 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21784 or more and with at least one buffer not starting on a 4-byte boundary.
21785 William Lewis provided this test program. */
21786 {
21787 char foo[21];
21788 char bar[21];
21789 int i;
21790 for (i = 0; i < 4; i++)
21791 {
21792 char *a = foo + i;
21793 char *b = bar + i;
21794 strcpy (a, "--------01111111");
21795 strcpy (b, "--------10000000");
21796 if (memcmp (a, b, 16) >= 0)
21797 exit (1);
21798 }
21799 exit (0);
21800 }
21801
21802 ;
21803 return 0;
21804}
21805_ACEOF
21806rm -f conftest$ac_exeext
21807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21808 (eval $ac_link) 2>&5
21809 ac_status=$?
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813 (eval $ac_try) 2>&5
21814 ac_status=$?
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
21817 ac_cv_func_memcmp_working=yes
21818else
21819 echo "$as_me: program exited with status $ac_status" >&5
21820echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021821sed 's/^/| /' conftest.$ac_ext >&5
21822
John Criswell7a73b802003-06-30 21:59:07 +000021823( exit $ac_status )
21824ac_cv_func_memcmp_working=no
21825fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021826rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021827fi
21828fi
21829echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21830echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21831test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21832
21833
21834
21835for ac_header in stdlib.h unistd.h
21836do
21837as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21838if eval "test \"\${$as_ac_Header+set}\" = set"; then
21839 echo "$as_me:$LINENO: checking for $ac_header" >&5
21840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21841if eval "test \"\${$as_ac_Header+set}\" = set"; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21843fi
21844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21845echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21846else
21847 # Is the header compilable?
21848echo "$as_me:$LINENO: checking $ac_header usability" >&5
21849echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21850cat >conftest.$ac_ext <<_ACEOF
21851#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021852/* confdefs.h. */
21853_ACEOF
21854cat confdefs.h >>conftest.$ac_ext
21855cat >>conftest.$ac_ext <<_ACEOF
21856/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021857$ac_includes_default
21858#include <$ac_header>
21859_ACEOF
21860rm -f conftest.$ac_objext
21861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21862 (eval $ac_compile) 2>&5
21863 ac_status=$?
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } &&
21866 { ac_try='test -s conftest.$ac_objext'
21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21869 ac_status=$?
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; }; then
21872 ac_header_compiler=yes
21873else
21874 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021875sed 's/^/| /' conftest.$ac_ext >&5
21876
John Criswell7a73b802003-06-30 21:59:07 +000021877ac_header_compiler=no
21878fi
21879rm -f conftest.$ac_objext conftest.$ac_ext
21880echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21881echo "${ECHO_T}$ac_header_compiler" >&6
21882
21883# Is the header present?
21884echo "$as_me:$LINENO: checking $ac_header presence" >&5
21885echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
21894_ACEOF
21895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21897 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021898 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021899 rm -f conftest.er1
21900 cat conftest.err >&5
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); } >/dev/null; then
21903 if test -s conftest.err; then
21904 ac_cpp_err=$ac_c_preproc_warn_flag
21905 else
21906 ac_cpp_err=
21907 fi
21908else
21909 ac_cpp_err=yes
21910fi
21911if test -z "$ac_cpp_err"; then
21912 ac_header_preproc=yes
21913else
21914 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021915sed 's/^/| /' conftest.$ac_ext >&5
21916
John Criswell7a73b802003-06-30 21:59:07 +000021917 ac_header_preproc=no
21918fi
21919rm -f conftest.err conftest.$ac_ext
21920echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21921echo "${ECHO_T}$ac_header_preproc" >&6
21922
21923# So? What about this header?
21924case $ac_header_compiler:$ac_header_preproc in
21925 yes:no )
21926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21927echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21930 (
21931 cat <<\_ASBOX
21932## ------------------------------------ ##
21933## Report this to bug-autoconf@gnu.org. ##
21934## ------------------------------------ ##
21935_ASBOX
21936 ) |
21937 sed "s/^/$as_me: WARNING: /" >&2
21938 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021939 no:yes )
21940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21943echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021945echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21946 (
21947 cat <<\_ASBOX
21948## ------------------------------------ ##
21949## Report this to bug-autoconf@gnu.org. ##
21950## ------------------------------------ ##
21951_ASBOX
21952 ) |
21953 sed "s/^/$as_me: WARNING: /" >&2
21954 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021955esac
21956echo "$as_me:$LINENO: checking for $ac_header" >&5
21957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21958if eval "test \"\${$as_ac_Header+set}\" = set"; then
21959 echo $ECHO_N "(cached) $ECHO_C" >&6
21960else
21961 eval "$as_ac_Header=$ac_header_preproc"
21962fi
21963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21965
21966fi
21967if test `eval echo '${'$as_ac_Header'}'` = yes; then
21968 cat >>confdefs.h <<_ACEOF
21969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21970_ACEOF
21971
21972fi
21973
21974done
21975
21976
21977for ac_func in getpagesize
21978do
21979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21980echo "$as_me:$LINENO: checking for $ac_func" >&5
21981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21982if eval "test \"\${$as_ac_var+set}\" = set"; then
21983 echo $ECHO_N "(cached) $ECHO_C" >&6
21984else
21985 cat >conftest.$ac_ext <<_ACEOF
21986#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021987/* confdefs.h. */
21988_ACEOF
21989cat confdefs.h >>conftest.$ac_ext
21990cat >>conftest.$ac_ext <<_ACEOF
21991/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021992/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021993 which can conflict with char $ac_func (); below.
21994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21995 <limits.h> exists even on freestanding compilers. */
21996#ifdef __STDC__
21997# include <limits.h>
21998#else
21999# include <assert.h>
22000#endif
John Criswell7a73b802003-06-30 21:59:07 +000022001/* Override any gcc2 internal prototype to avoid an error. */
22002#ifdef __cplusplus
22003extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022004{
John Criswell7a73b802003-06-30 21:59:07 +000022005#endif
22006/* We use char because int might match the return type of a gcc2
22007 builtin and then its argument prototype would still apply. */
22008char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022009/* The GNU C library defines this for functions which it implements
22010 to always fail with ENOSYS. Some functions are actually named
22011 something starting with __ and the normal name is an alias. */
22012#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22013choke me
22014#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022015char (*f) () = $ac_func;
22016#endif
22017#ifdef __cplusplus
22018}
John Criswell7a73b802003-06-30 21:59:07 +000022019#endif
22020
John Criswell0c38eaf2003-09-10 15:17:25 +000022021int
22022main ()
22023{
22024return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022025 ;
22026 return 0;
22027}
22028_ACEOF
22029rm -f conftest.$ac_objext conftest$ac_exeext
22030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22031 (eval $ac_link) 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try='test -s conftest$ac_exeext'
22036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037 (eval $ac_try) 2>&5
22038 ac_status=$?
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; }; then
22041 eval "$as_ac_var=yes"
22042else
22043 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022044sed 's/^/| /' conftest.$ac_ext >&5
22045
John Criswell7a73b802003-06-30 21:59:07 +000022046eval "$as_ac_var=no"
22047fi
22048rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22049fi
22050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22051echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22052if test `eval echo '${'$as_ac_var'}'` = yes; then
22053 cat >>confdefs.h <<_ACEOF
22054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22055_ACEOF
22056
22057fi
22058done
22059
22060echo "$as_me:$LINENO: checking for working mmap" >&5
22061echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22062if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22063 echo $ECHO_N "(cached) $ECHO_C" >&6
22064else
22065 if test "$cross_compiling" = yes; then
22066 ac_cv_func_mmap_fixed_mapped=no
22067else
22068 cat >conftest.$ac_ext <<_ACEOF
22069#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022070/* confdefs.h. */
22071_ACEOF
22072cat confdefs.h >>conftest.$ac_ext
22073cat >>conftest.$ac_ext <<_ACEOF
22074/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022075$ac_includes_default
22076/* malloc might have been renamed as rpl_malloc. */
22077#undef malloc
22078
22079/* Thanks to Mike Haertel and Jim Avera for this test.
22080 Here is a matrix of mmap possibilities:
22081 mmap private not fixed
22082 mmap private fixed at somewhere currently unmapped
22083 mmap private fixed at somewhere already mapped
22084 mmap shared not fixed
22085 mmap shared fixed at somewhere currently unmapped
22086 mmap shared fixed at somewhere already mapped
22087 For private mappings, we should verify that changes cannot be read()
22088 back from the file, nor mmap's back from the file at a different
22089 address. (There have been systems where private was not correctly
22090 implemented like the infamous i386 svr4.0, and systems where the
22091 VM page cache was not coherent with the file system buffer cache
22092 like early versions of FreeBSD and possibly contemporary NetBSD.)
22093 For shared mappings, we should conversely verify that changes get
22094 propagated back to all the places they're supposed to be.
22095
22096 Grep wants private fixed already mapped.
22097 The main things grep needs to know about mmap are:
22098 * does it exist and is it safe to write into the mmap'd area
22099 * how to use it (BSD variants) */
22100
22101#include <fcntl.h>
22102#include <sys/mman.h>
22103
22104#if !STDC_HEADERS && !HAVE_STDLIB_H
22105char *malloc ();
22106#endif
22107
22108/* This mess was copied from the GNU getpagesize.h. */
22109#if !HAVE_GETPAGESIZE
22110/* Assume that all systems that can run configure have sys/param.h. */
22111# if !HAVE_SYS_PARAM_H
22112# define HAVE_SYS_PARAM_H 1
22113# endif
22114
22115# ifdef _SC_PAGESIZE
22116# define getpagesize() sysconf(_SC_PAGESIZE)
22117# else /* no _SC_PAGESIZE */
22118# if HAVE_SYS_PARAM_H
22119# include <sys/param.h>
22120# ifdef EXEC_PAGESIZE
22121# define getpagesize() EXEC_PAGESIZE
22122# else /* no EXEC_PAGESIZE */
22123# ifdef NBPG
22124# define getpagesize() NBPG * CLSIZE
22125# ifndef CLSIZE
22126# define CLSIZE 1
22127# endif /* no CLSIZE */
22128# else /* no NBPG */
22129# ifdef NBPC
22130# define getpagesize() NBPC
22131# else /* no NBPC */
22132# ifdef PAGESIZE
22133# define getpagesize() PAGESIZE
22134# endif /* PAGESIZE */
22135# endif /* no NBPC */
22136# endif /* no NBPG */
22137# endif /* no EXEC_PAGESIZE */
22138# else /* no HAVE_SYS_PARAM_H */
22139# define getpagesize() 8192 /* punt totally */
22140# endif /* no HAVE_SYS_PARAM_H */
22141# endif /* no _SC_PAGESIZE */
22142
22143#endif /* no HAVE_GETPAGESIZE */
22144
22145int
22146main ()
22147{
22148 char *data, *data2, *data3;
22149 int i, pagesize;
22150 int fd;
22151
22152 pagesize = getpagesize ();
22153
22154 /* First, make a file with some known garbage in it. */
22155 data = (char *) malloc (pagesize);
22156 if (!data)
22157 exit (1);
22158 for (i = 0; i < pagesize; ++i)
22159 *(data + i) = rand ();
22160 umask (0);
22161 fd = creat ("conftest.mmap", 0600);
22162 if (fd < 0)
22163 exit (1);
22164 if (write (fd, data, pagesize) != pagesize)
22165 exit (1);
22166 close (fd);
22167
22168 /* Next, try to mmap the file at a fixed address which already has
22169 something else allocated at it. If we can, also make sure that
22170 we see the same garbage. */
22171 fd = open ("conftest.mmap", O_RDWR);
22172 if (fd < 0)
22173 exit (1);
22174 data2 = (char *) malloc (2 * pagesize);
22175 if (!data2)
22176 exit (1);
22177 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22178 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22179 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22180 exit (1);
22181 for (i = 0; i < pagesize; ++i)
22182 if (*(data + i) != *(data2 + i))
22183 exit (1);
22184
22185 /* Finally, make sure that changes to the mapped area do not
22186 percolate back to the file as seen by read(). (This is a bug on
22187 some variants of i386 svr4.0.) */
22188 for (i = 0; i < pagesize; ++i)
22189 *(data2 + i) = *(data2 + i) + 1;
22190 data3 = (char *) malloc (pagesize);
22191 if (!data3)
22192 exit (1);
22193 if (read (fd, data3, pagesize) != pagesize)
22194 exit (1);
22195 for (i = 0; i < pagesize; ++i)
22196 if (*(data + i) != *(data3 + i))
22197 exit (1);
22198 close (fd);
22199 exit (0);
22200}
22201_ACEOF
22202rm -f conftest$ac_exeext
22203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22204 (eval $ac_link) 2>&5
22205 ac_status=$?
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22209 (eval $ac_try) 2>&5
22210 ac_status=$?
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); }; }; then
22213 ac_cv_func_mmap_fixed_mapped=yes
22214else
22215 echo "$as_me: program exited with status $ac_status" >&5
22216echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022217sed 's/^/| /' conftest.$ac_ext >&5
22218
John Criswell7a73b802003-06-30 21:59:07 +000022219( exit $ac_status )
22220ac_cv_func_mmap_fixed_mapped=no
22221fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022222rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022223fi
22224fi
22225echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22226echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22227if test $ac_cv_func_mmap_fixed_mapped = yes; then
22228
22229cat >>confdefs.h <<\_ACEOF
22230#define HAVE_MMAP 1
22231_ACEOF
22232
22233fi
22234rm -f conftest.mmap
22235
22236echo "$as_me:$LINENO: checking for mmap of files" >&5
22237echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22238if test "${ac_cv_func_mmap_file+set}" = set; then
22239 echo $ECHO_N "(cached) $ECHO_C" >&6
22240else
22241
22242
22243 ac_ext=c
22244ac_cpp='$CPP $CPPFLAGS'
22245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22247ac_compiler_gnu=$ac_cv_c_compiler_gnu
22248
22249 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022250 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22251See \`config.log' for more details." >&5
22252echo "$as_me: error: cannot run test program while cross compiling
22253See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022254 { (exit 1); exit 1; }; }
22255else
22256 cat >conftest.$ac_ext <<_ACEOF
22257#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022258/* confdefs.h. */
22259_ACEOF
22260cat confdefs.h >>conftest.$ac_ext
22261cat >>conftest.$ac_ext <<_ACEOF
22262/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022263
22264#ifdef HAVE_SYS_MMAN_H
22265#include <sys/mman.h>
22266#endif
22267
22268#ifdef HAVE_SYS_TYPES_H
22269#include <sys/types.h>
22270#endif
22271
22272#ifdef HAVE_FCNTL_H
22273#include <fcntl.h>
22274#endif
22275
22276 int fd;
22277 int main () {
22278 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22279_ACEOF
22280rm -f conftest$ac_exeext
22281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22282 (eval $ac_link) 2>&5
22283 ac_status=$?
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; }; then
22291 ac_cv_func_mmap_file=yes
22292else
22293 echo "$as_me: program exited with status $ac_status" >&5
22294echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022295sed 's/^/| /' conftest.$ac_ext >&5
22296
John Criswell7a73b802003-06-30 21:59:07 +000022297( exit $ac_status )
22298ac_cv_func_mmap_file=no
22299fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022300rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022301fi
22302 ac_ext=c
22303ac_cpp='$CPP $CPPFLAGS'
22304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22306ac_compiler_gnu=$ac_cv_c_compiler_gnu
22307
22308
22309fi
22310echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22311echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22312if test "$ac_cv_func_mmap_file" = yes; then
22313 cat >>confdefs.h <<\_ACEOF
22314#define HAVE_MMAP_FILE 1
22315_ACEOF
22316
22317 MMAP_FILE=yes
22318
22319fi
22320
22321if test ${ac_cv_func_mmap_file} = "no"
22322then
22323 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22324echo "$as_me: error: mmap() of files required but not found" >&2;}
22325 { (exit 1); exit 1; }; }
22326fi
22327echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22328echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22329if test "${ac_cv_header_mmap_anon+set}" = set; then
22330 echo $ECHO_N "(cached) $ECHO_C" >&6
22331else
22332
22333
22334 ac_ext=c
22335ac_cpp='$CPP $CPPFLAGS'
22336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22338ac_compiler_gnu=$ac_cv_c_compiler_gnu
22339
22340 cat >conftest.$ac_ext <<_ACEOF
22341#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022342/* confdefs.h. */
22343_ACEOF
22344cat confdefs.h >>conftest.$ac_ext
22345cat >>conftest.$ac_ext <<_ACEOF
22346/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022347#include <sys/mman.h>
22348 #include <unistd.h>
22349 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022350int
22351main ()
22352{
22353mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22354 ;
22355 return 0;
22356}
22357_ACEOF
22358rm -f conftest.$ac_objext
22359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22360 (eval $ac_compile) 2>&5
22361 ac_status=$?
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); } &&
22364 { ac_try='test -s conftest.$ac_objext'
22365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22366 (eval $ac_try) 2>&5
22367 ac_status=$?
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); }; }; then
22370 ac_cv_header_mmap_anon=yes
22371else
22372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022373sed 's/^/| /' conftest.$ac_ext >&5
22374
John Criswell7a73b802003-06-30 21:59:07 +000022375ac_cv_header_mmap_anon=no
22376fi
22377rm -f conftest.$ac_objext conftest.$ac_ext
22378 ac_ext=c
22379ac_cpp='$CPP $CPPFLAGS'
22380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22382ac_compiler_gnu=$ac_cv_c_compiler_gnu
22383
22384
22385fi
22386echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22387echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22388if test "$ac_cv_header_mmap_anon" = yes; then
22389 cat >>confdefs.h <<\_ACEOF
22390#define HAVE_MMAP_ANONYMOUS 1
22391_ACEOF
22392
22393fi
22394
22395echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22396echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22397if test "${ac_cv_type_signal+set}" = set; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22399else
22400 cat >conftest.$ac_ext <<_ACEOF
22401#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022402/* confdefs.h. */
22403_ACEOF
22404cat confdefs.h >>conftest.$ac_ext
22405cat >>conftest.$ac_ext <<_ACEOF
22406/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022407#include <sys/types.h>
22408#include <signal.h>
22409#ifdef signal
22410# undef signal
22411#endif
22412#ifdef __cplusplus
22413extern "C" void (*signal (int, void (*)(int)))(int);
22414#else
22415void (*signal ()) ();
22416#endif
22417
John Criswell7a73b802003-06-30 21:59:07 +000022418int
22419main ()
22420{
22421int i;
22422 ;
22423 return 0;
22424}
22425_ACEOF
22426rm -f conftest.$ac_objext
22427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22428 (eval $ac_compile) 2>&5
22429 ac_status=$?
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } &&
22432 { ac_try='test -s conftest.$ac_objext'
22433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22434 (eval $ac_try) 2>&5
22435 ac_status=$?
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); }; }; then
22438 ac_cv_type_signal=void
22439else
22440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022441sed 's/^/| /' conftest.$ac_ext >&5
22442
John Criswell7a73b802003-06-30 21:59:07 +000022443ac_cv_type_signal=int
22444fi
22445rm -f conftest.$ac_objext conftest.$ac_ext
22446fi
22447echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22448echo "${ECHO_T}$ac_cv_type_signal" >&6
22449
22450cat >>confdefs.h <<_ACEOF
22451#define RETSIGTYPE $ac_cv_type_signal
22452_ACEOF
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22465do
22466as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22467echo "$as_me:$LINENO: checking for $ac_func" >&5
22468echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22469if eval "test \"\${$as_ac_var+set}\" = set"; then
22470 echo $ECHO_N "(cached) $ECHO_C" >&6
22471else
22472 cat >conftest.$ac_ext <<_ACEOF
22473#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022474/* confdefs.h. */
22475_ACEOF
22476cat confdefs.h >>conftest.$ac_ext
22477cat >>conftest.$ac_ext <<_ACEOF
22478/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022479/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022480 which can conflict with char $ac_func (); below.
22481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22482 <limits.h> exists even on freestanding compilers. */
22483#ifdef __STDC__
22484# include <limits.h>
22485#else
22486# include <assert.h>
22487#endif
John Criswell7a73b802003-06-30 21:59:07 +000022488/* Override any gcc2 internal prototype to avoid an error. */
22489#ifdef __cplusplus
22490extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022491{
John Criswell7a73b802003-06-30 21:59:07 +000022492#endif
22493/* We use char because int might match the return type of a gcc2
22494 builtin and then its argument prototype would still apply. */
22495char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022496/* The GNU C library defines this for functions which it implements
22497 to always fail with ENOSYS. Some functions are actually named
22498 something starting with __ and the normal name is an alias. */
22499#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22500choke me
22501#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022502char (*f) () = $ac_func;
22503#endif
22504#ifdef __cplusplus
22505}
John Criswell7a73b802003-06-30 21:59:07 +000022506#endif
22507
John Criswell0c38eaf2003-09-10 15:17:25 +000022508int
22509main ()
22510{
22511return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022512 ;
22513 return 0;
22514}
22515_ACEOF
22516rm -f conftest.$ac_objext conftest$ac_exeext
22517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22518 (eval $ac_link) 2>&5
22519 ac_status=$?
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); } &&
22522 { ac_try='test -s conftest$ac_exeext'
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 eval "$as_ac_var=yes"
22529else
22530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022531sed 's/^/| /' conftest.$ac_ext >&5
22532
John Criswell7a73b802003-06-30 21:59:07 +000022533eval "$as_ac_var=no"
22534fi
22535rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22536fi
22537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22538echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22539if test `eval echo '${'$as_ac_var'}'` = yes; then
22540 cat >>confdefs.h <<_ACEOF
22541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22542_ACEOF
22543
22544fi
22545done
22546
22547
22548
22549echo "$as_me:$LINENO: checking for mmap" >&5
22550echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22551if test "${ac_cv_func_mmap+set}" = set; then
22552 echo $ECHO_N "(cached) $ECHO_C" >&6
22553else
22554 cat >conftest.$ac_ext <<_ACEOF
22555#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022556/* confdefs.h. */
22557_ACEOF
22558cat confdefs.h >>conftest.$ac_ext
22559cat >>conftest.$ac_ext <<_ACEOF
22560/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022561/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022562 which can conflict with char mmap (); below.
22563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22564 <limits.h> exists even on freestanding compilers. */
22565#ifdef __STDC__
22566# include <limits.h>
22567#else
22568# include <assert.h>
22569#endif
John Criswell7a73b802003-06-30 21:59:07 +000022570/* Override any gcc2 internal prototype to avoid an error. */
22571#ifdef __cplusplus
22572extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022573{
John Criswell7a73b802003-06-30 21:59:07 +000022574#endif
22575/* We use char because int might match the return type of a gcc2
22576 builtin and then its argument prototype would still apply. */
22577char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022578/* The GNU C library defines this for functions which it implements
22579 to always fail with ENOSYS. Some functions are actually named
22580 something starting with __ and the normal name is an alias. */
22581#if defined (__stub_mmap) || defined (__stub___mmap)
22582choke me
22583#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022584char (*f) () = mmap;
22585#endif
22586#ifdef __cplusplus
22587}
John Criswell7a73b802003-06-30 21:59:07 +000022588#endif
22589
John Criswell0c38eaf2003-09-10 15:17:25 +000022590int
22591main ()
22592{
22593return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022594 ;
22595 return 0;
22596}
22597_ACEOF
22598rm -f conftest.$ac_objext conftest$ac_exeext
22599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22600 (eval $ac_link) 2>&5
22601 ac_status=$?
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } &&
22604 { ac_try='test -s conftest$ac_exeext'
22605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606 (eval $ac_try) 2>&5
22607 ac_status=$?
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); }; }; then
22610 ac_cv_func_mmap=yes
22611else
22612 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022613sed 's/^/| /' conftest.$ac_ext >&5
22614
John Criswell7a73b802003-06-30 21:59:07 +000022615ac_cv_func_mmap=no
22616fi
22617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22618fi
22619echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22620echo "${ECHO_T}$ac_cv_func_mmap" >&6
22621if test $ac_cv_func_mmap = yes; then
22622 :
22623else
22624 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22625echo "$as_me: error: Function mmap() required but not found" >&2;}
22626 { (exit 1); exit 1; }; }
22627fi
22628
22629echo "$as_me:$LINENO: checking for mprotect" >&5
22630echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22631if test "${ac_cv_func_mprotect+set}" = set; then
22632 echo $ECHO_N "(cached) $ECHO_C" >&6
22633else
22634 cat >conftest.$ac_ext <<_ACEOF
22635#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022636/* confdefs.h. */
22637_ACEOF
22638cat confdefs.h >>conftest.$ac_ext
22639cat >>conftest.$ac_ext <<_ACEOF
22640/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022641/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022642 which can conflict with char mprotect (); below.
22643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22644 <limits.h> exists even on freestanding compilers. */
22645#ifdef __STDC__
22646# include <limits.h>
22647#else
22648# include <assert.h>
22649#endif
John Criswell7a73b802003-06-30 21:59:07 +000022650/* Override any gcc2 internal prototype to avoid an error. */
22651#ifdef __cplusplus
22652extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022653{
John Criswell7a73b802003-06-30 21:59:07 +000022654#endif
22655/* We use char because int might match the return type of a gcc2
22656 builtin and then its argument prototype would still apply. */
22657char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022658/* The GNU C library defines this for functions which it implements
22659 to always fail with ENOSYS. Some functions are actually named
22660 something starting with __ and the normal name is an alias. */
22661#if defined (__stub_mprotect) || defined (__stub___mprotect)
22662choke me
22663#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022664char (*f) () = mprotect;
22665#endif
22666#ifdef __cplusplus
22667}
John Criswell7a73b802003-06-30 21:59:07 +000022668#endif
22669
John Criswell0c38eaf2003-09-10 15:17:25 +000022670int
22671main ()
22672{
22673return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022674 ;
22675 return 0;
22676}
22677_ACEOF
22678rm -f conftest.$ac_objext conftest$ac_exeext
22679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22680 (eval $ac_link) 2>&5
22681 ac_status=$?
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); } &&
22684 { ac_try='test -s conftest$ac_exeext'
22685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22686 (eval $ac_try) 2>&5
22687 ac_status=$?
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); }; }; then
22690 ac_cv_func_mprotect=yes
22691else
22692 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022693sed 's/^/| /' conftest.$ac_ext >&5
22694
John Criswell7a73b802003-06-30 21:59:07 +000022695ac_cv_func_mprotect=no
22696fi
22697rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22698fi
22699echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22700echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22701if test $ac_cv_func_mprotect = yes; then
22702 :
22703else
22704 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22705echo "$as_me: error: Function mprotect() required but not found" >&2;}
22706 { (exit 1); exit 1; }; }
22707fi
22708
22709
John Criswellb13092b2003-07-22 21:00:24 +000022710
John Criswell7a73b802003-06-30 21:59:07 +000022711# Check whether --enable-purify or --disable-purify was given.
22712if test "${enable_purify+set}" = set; then
22713 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022714
22715else
John Criswellb13092b2003-07-22 21:00:24 +000022716 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022717fi;
John Criswellb13092b2003-07-22 21:00:24 +000022718if test ${enableval} = "no"
22719then
22720 ENABLE_PURIFY=
22721
22722else
22723 ENABLE_PURIFY=ENABLE_PURIFY=1
22724
22725fi
22726
John Criswell7a73b802003-06-30 21:59:07 +000022727# Check whether --enable-optimized or --disable-optimized was given.
22728if test "${enable_optimized+set}" = set; then
22729 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022730
22731else
John Criswellb13092b2003-07-22 21:00:24 +000022732 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022733fi;
John Criswellb13092b2003-07-22 21:00:24 +000022734if test ${enableval} = "no"
22735then
22736 ENABLE_OPTIMIZED=
22737
22738else
22739 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22740
22741fi
22742
John Criswell7a73b802003-06-30 21:59:07 +000022743# Check whether --enable-spec or --disable-spec was given.
22744if test "${enable_spec+set}" = set; then
22745 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022746
22747else
John Criswellb13092b2003-07-22 21:00:24 +000022748 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022749fi;
John Criswellb13092b2003-07-22 21:00:24 +000022750if test ${enableval} = "no"
22751then
22752 USE_SPEC=
22753
22754else
22755 USE_SPEC=USE_SPEC=1
22756
22757fi
22758
John Criswell7a73b802003-06-30 21:59:07 +000022759# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22760if test "${enable_precompiled_bytecode+set}" = set; then
22761 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022762
22763else
John Criswellb13092b2003-07-22 21:00:24 +000022764 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022765fi;
John Criswellb13092b2003-07-22 21:00:24 +000022766if test ${enableval} = "no"
22767then
22768 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022769
John Criswellb13092b2003-07-22 21:00:24 +000022770else
22771 UPB=USE_PRECOMPILED_BYTECODE=1
22772
22773fi
John Criswellf02dbf02003-07-22 20:07:49 +000022774
22775
22776# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22777if test "${enable_llc_diffs+set}" = set; then
22778 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022779
22780else
John Criswellb13092b2003-07-22 21:00:24 +000022781 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022782fi;
John Criswellb13092b2003-07-22 21:00:24 +000022783if test ${enableval} = "no"
22784then
22785 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022786
John Criswellb13092b2003-07-22 21:00:24 +000022787else
22788 DISABLE_LLC_DIFFS=
22789
22790fi
22791
22792# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022793if test "${enable_jit+set}" = set; then
22794 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022795
22796else
John Criswellc78022e2003-07-29 19:11:58 +000022797 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022798fi;
John Criswellb13092b2003-07-22 21:00:24 +000022799
22800if test ${enableval} = "no"
22801then
22802 JIT=
22803
22804else
John Criswellc78022e2003-07-29 19:11:58 +000022805 case $target in
22806 *i*86*)
22807 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022808
John Criswellc78022e2003-07-29 19:11:58 +000022809 ;;
22810 *sparc*)
22811 JIT=TARGET_HAS_JIT=1
22812
22813 ;;
22814 *)
22815 JIT=
22816
22817 ;;
22818 esac
John Criswellb13092b2003-07-22 21:00:24 +000022819fi
John Criswell7a73b802003-06-30 21:59:07 +000022820
22821
John Criswellc78022e2003-07-29 19:11:58 +000022822
John Criswell7a73b802003-06-30 21:59:07 +000022823# Check whether --with-spec or --without-spec was given.
22824if test "${with_spec+set}" = set; then
22825 withval="$with_spec"
22826 SPEC_ROOT=$withval
22827
22828else
22829 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22830
22831fi;
22832
John Criswellc78022e2003-07-29 19:11:58 +000022833
John Criswell7a73b802003-06-30 21:59:07 +000022834# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22835if test "${with_llvmgccdir+set}" = set; then
22836 withval="$with_llvmgccdir"
22837 LLVMGCCDIR=$withval
22838
22839fi;
22840
John Criswellc78022e2003-07-29 19:11:58 +000022841
John Criswell7a73b802003-06-30 21:59:07 +000022842# Check whether --with-bcrepos or --without-bcrepos was given.
22843if test "${with_bcrepos+set}" = set; then
22844 withval="$with_bcrepos"
22845 BCR=$withval
22846
22847else
22848 BCR=/home/vadve/lattner/LLVMPrograms
22849
22850fi;
22851
John Criswellc78022e2003-07-29 19:11:58 +000022852
John Criswell7a73b802003-06-30 21:59:07 +000022853# Check whether --with-papi or --without-papi was given.
22854if test "${with_papi+set}" = set; then
22855 withval="$with_papi"
22856 PAPIDIR=$withval
22857
22858else
John Criswellde00db22003-08-25 16:49:54 +000022859 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022860
22861fi;
22862
John Criswell7a73b802003-06-30 21:59:07 +000022863
22864# Check whether --with-purify or --without-purify was given.
22865if test "${with_purify+set}" = set; then
22866 withval="$with_purify"
22867 PURIFY=$withval
22868
22869fi;
22870
John Criswellde00db22003-08-25 16:49:54 +000022871
John Criswell0c38eaf2003-09-10 15:17:25 +000022872 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022873cat >confcache <<\_ACEOF
22874# This file is a shell script that caches the results of configure
22875# tests run on this system so they can be shared between configure
22876# scripts and configure runs, see configure's option --config-cache.
22877# It is not useful on other systems. If it contains results you don't
22878# want to keep, you may remove or edit it.
22879#
22880# config.status only pays attention to the cache file if you give it
22881# the --recheck option to rerun configure.
22882#
John Criswell0c38eaf2003-09-10 15:17:25 +000022883# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022884# loading this file, other *unset* `ac_cv_foo' will be assigned the
22885# following values.
22886
22887_ACEOF
22888
22889# The following way of writing the cache mishandles newlines in values,
22890# but we know of no workaround that is simple, portable, and efficient.
22891# So, don't put newlines in cache variables' values.
22892# Ultrix sh set writes to stderr and can't be redirected directly,
22893# and sets the high bit in the cache file unless we assign to the vars.
22894{
22895 (set) 2>&1 |
22896 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22897 *ac_space=\ *)
22898 # `set' does not quote correctly, so add quotes (double-quote
22899 # substitution turns \\\\ into \\, and sed turns \\ into \).
22900 sed -n \
22901 "s/'/'\\\\''/g;
22902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22903 ;;
22904 *)
22905 # `set' quotes correctly as required by POSIX, so do not add quotes.
22906 sed -n \
22907 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22908 ;;
22909 esac;
22910} |
22911 sed '
22912 t clear
22913 : clear
22914 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22915 t end
22916 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22917 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022918if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022919 if test -w $cache_file; then
22920 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22921 cat confcache >$cache_file
22922 else
22923 echo "not updating unwritable cache $cache_file"
22924 fi
22925fi
22926rm -f confcache
22927
22928test "x$prefix" = xNONE && prefix=$ac_default_prefix
22929# Let make expand exec_prefix.
22930test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22931
22932# VPATH may cause trouble with some makes, so we remove $(srcdir),
22933# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22934# trailing colons and then remove the whole line if VPATH becomes empty
22935# (actually we leave an empty line to preserve line numbers).
22936if test "x$srcdir" = x.; then
22937 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22938s/:*\$(srcdir):*/:/;
22939s/:*\${srcdir}:*/:/;
22940s/:*@srcdir@:*/:/;
22941s/^\([^=]*=[ ]*\):*/\1/;
22942s/:*$//;
22943s/^[^=]*=[ ]*$//;
22944}'
22945fi
22946
22947DEFS=-DHAVE_CONFIG_H
22948
John Criswell0c38eaf2003-09-10 15:17:25 +000022949ac_libobjs=
22950ac_ltlibobjs=
22951for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22952 # 1. Remove the extension, and $U if already installed.
22953 ac_i=`echo "$ac_i" |
22954 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22955 # 2. Add them.
22956 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22957 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22958done
22959LIBOBJS=$ac_libobjs
22960
22961LTLIBOBJS=$ac_ltlibobjs
22962
22963
John Criswell7a73b802003-06-30 21:59:07 +000022964
22965: ${CONFIG_STATUS=./config.status}
22966ac_clean_files_save=$ac_clean_files
22967ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22968{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22969echo "$as_me: creating $CONFIG_STATUS" >&6;}
22970cat >$CONFIG_STATUS <<_ACEOF
22971#! $SHELL
22972# Generated by $as_me.
22973# Run this file to recreate the current configuration.
22974# Compiler output produced by configure, useful for debugging
22975# configure, is in config.log if it exists.
22976
22977debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022978ac_cs_recheck=false
22979ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022980SHELL=\${CONFIG_SHELL-$SHELL}
22981_ACEOF
22982
22983cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022984## --------------------- ##
22985## M4sh Initialization. ##
22986## --------------------- ##
22987
22988# Be Bourne compatible
22989if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22990 emulate sh
22991 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022992 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22993 # is contrary to our usage. Disable this feature.
22994 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022995elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22996 set -o posix
22997fi
22998
John Criswell7a73b802003-06-30 21:59:07 +000022999# Support unset when possible.
23000if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23001 as_unset=unset
23002else
23003 as_unset=false
23004fi
23005
John Criswell0c38eaf2003-09-10 15:17:25 +000023006
23007# Work around bugs in pre-3.0 UWIN ksh.
23008$as_unset ENV MAIL MAILPATH
23009PS1='$ '
23010PS2='> '
23011PS4='+ '
23012
23013# NLS nuisances.
23014for as_var in \
23015 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23016 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23017 LC_TELEPHONE LC_TIME
23018do
23019 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23020 eval $as_var=C; export $as_var
23021 else
23022 $as_unset $as_var
23023 fi
23024done
23025
23026# Required to use basename.
23027if expr a : '\(a\)' >/dev/null 2>&1; then
23028 as_expr=expr
23029else
23030 as_expr=false
23031fi
23032
23033if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23034 as_basename=basename
23035else
23036 as_basename=false
23037fi
John Criswell7a73b802003-06-30 21:59:07 +000023038
23039
23040# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023041as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023042$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23043 X"$0" : 'X\(//\)$' \| \
23044 X"$0" : 'X\(/\)$' \| \
23045 . : '\(.\)' 2>/dev/null ||
23046echo X/"$0" |
23047 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23048 /^X\/\(\/\/\)$/{ s//\1/; q; }
23049 /^X\/\(\/\).*/{ s//\1/; q; }
23050 s/.*/./; q'`
23051
John Criswell0c38eaf2003-09-10 15:17:25 +000023052
John Criswell7a73b802003-06-30 21:59:07 +000023053# PATH needs CR, and LINENO needs CR and PATH.
23054# Avoid depending upon Character Ranges.
23055as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23056as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23057as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23058as_cr_digits='0123456789'
23059as_cr_alnum=$as_cr_Letters$as_cr_digits
23060
23061# The user is always right.
23062if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023063 echo "#! /bin/sh" >conf$$.sh
23064 echo "exit 0" >>conf$$.sh
23065 chmod +x conf$$.sh
23066 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023067 PATH_SEPARATOR=';'
23068 else
23069 PATH_SEPARATOR=:
23070 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023071 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023072fi
23073
23074
23075 as_lineno_1=$LINENO
23076 as_lineno_2=$LINENO
23077 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23078 test "x$as_lineno_1" != "x$as_lineno_2" &&
23079 test "x$as_lineno_3" = "x$as_lineno_2" || {
23080 # Find who we are. Look in the path if we contain no path at all
23081 # relative or not.
23082 case $0 in
23083 *[\\/]* ) as_myself=$0 ;;
23084 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23085for as_dir in $PATH
23086do
23087 IFS=$as_save_IFS
23088 test -z "$as_dir" && as_dir=.
23089 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23090done
23091
23092 ;;
23093 esac
23094 # We did not find ourselves, most probably we were run as `sh COMMAND'
23095 # in which case we are not to be found in the path.
23096 if test "x$as_myself" = x; then
23097 as_myself=$0
23098 fi
23099 if test ! -f "$as_myself"; then
23100 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23101echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23102 { (exit 1); exit 1; }; }
23103 fi
23104 case $CONFIG_SHELL in
23105 '')
23106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23107for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23108do
23109 IFS=$as_save_IFS
23110 test -z "$as_dir" && as_dir=.
23111 for as_base in sh bash ksh sh5; do
23112 case $as_dir in
23113 /*)
23114 if ("$as_dir/$as_base" -c '
23115 as_lineno_1=$LINENO
23116 as_lineno_2=$LINENO
23117 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23118 test "x$as_lineno_1" != "x$as_lineno_2" &&
23119 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023120 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23121 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023122 CONFIG_SHELL=$as_dir/$as_base
23123 export CONFIG_SHELL
23124 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23125 fi;;
23126 esac
23127 done
23128done
23129;;
23130 esac
23131
23132 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23133 # uniformly replaced by the line number. The first 'sed' inserts a
23134 # line-number line before each line; the second 'sed' does the real
23135 # work. The second script uses 'N' to pair each line-number line
23136 # with the numbered line, and appends trailing '-' during
23137 # substitution so that $LINENO is not a special case at line end.
23138 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23139 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23140 sed '=' <$as_myself |
23141 sed '
23142 N
23143 s,$,-,
23144 : loop
23145 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23146 t loop
23147 s,-$,,
23148 s,^['$as_cr_digits']*\n,,
23149 ' >$as_me.lineno &&
23150 chmod +x $as_me.lineno ||
23151 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23152echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23153 { (exit 1); exit 1; }; }
23154
23155 # Don't try to exec as it changes $[0], causing all sort of problems
23156 # (the dirname of $[0] is not the place where we might find the
23157 # original and so on. Autoconf is especially sensible to this).
23158 . ./$as_me.lineno
23159 # Exit status is that of the last command.
23160 exit
23161}
23162
23163
23164case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23165 *c*,-n*) ECHO_N= ECHO_C='
23166' ECHO_T=' ' ;;
23167 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23168 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23169esac
23170
23171if expr a : '\(a\)' >/dev/null 2>&1; then
23172 as_expr=expr
23173else
23174 as_expr=false
23175fi
23176
23177rm -f conf$$ conf$$.exe conf$$.file
23178echo >conf$$.file
23179if ln -s conf$$.file conf$$ 2>/dev/null; then
23180 # We could just check for DJGPP; but this test a) works b) is more generic
23181 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23182 if test -f conf$$.exe; then
23183 # Don't use ln at all; we don't have any links
23184 as_ln_s='cp -p'
23185 else
23186 as_ln_s='ln -s'
23187 fi
23188elif ln conf$$.file conf$$ 2>/dev/null; then
23189 as_ln_s=ln
23190else
23191 as_ln_s='cp -p'
23192fi
23193rm -f conf$$ conf$$.exe conf$$.file
23194
John Criswell0c38eaf2003-09-10 15:17:25 +000023195if mkdir -p . 2>/dev/null; then
23196 as_mkdir_p=:
23197else
23198 as_mkdir_p=false
23199fi
23200
John Criswell7a73b802003-06-30 21:59:07 +000023201as_executable_p="test -f"
23202
23203# Sed expression to map a string onto a valid CPP name.
23204as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23205
23206# Sed expression to map a string onto a valid variable name.
23207as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23208
23209
23210# IFS
23211# We need space, tab and new line, in precisely that order.
23212as_nl='
23213'
23214IFS=" $as_nl"
23215
23216# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023217$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023218
23219exec 6>&1
23220
23221# Open the log real soon, to keep \$[0] and so on meaningful, and to
23222# report actual input values of CONFIG_FILES etc. instead of their
23223# values after options handling. Logging --version etc. is OK.
23224exec 5>>config.log
23225{
23226 echo
23227 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23228## Running $as_me. ##
23229_ASBOX
23230} >&5
23231cat >&5 <<_CSEOF
23232
23233This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023234generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023235
23236 CONFIG_FILES = $CONFIG_FILES
23237 CONFIG_HEADERS = $CONFIG_HEADERS
23238 CONFIG_LINKS = $CONFIG_LINKS
23239 CONFIG_COMMANDS = $CONFIG_COMMANDS
23240 $ $0 $@
23241
23242_CSEOF
23243echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23244echo >&5
23245_ACEOF
23246
23247# Files that config.status was made for.
23248if test -n "$ac_config_files"; then
23249 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23250fi
23251
23252if test -n "$ac_config_headers"; then
23253 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23254fi
23255
23256if test -n "$ac_config_links"; then
23257 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23258fi
23259
23260if test -n "$ac_config_commands"; then
23261 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23262fi
23263
23264cat >>$CONFIG_STATUS <<\_ACEOF
23265
23266ac_cs_usage="\
23267\`$as_me' instantiates files from templates according to the
23268current configuration.
23269
23270Usage: $0 [OPTIONS] [FILE]...
23271
23272 -h, --help print this help, then exit
23273 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023274 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023275 -d, --debug don't remove temporary files
23276 --recheck update $as_me by reconfiguring in the same conditions
23277 --file=FILE[:TEMPLATE]
23278 instantiate the configuration file FILE
23279 --header=FILE[:TEMPLATE]
23280 instantiate the configuration header FILE
23281
23282Configuration files:
23283$config_files
23284
23285Configuration headers:
23286$config_headers
23287
John Criswellc764fbc2003-09-06 15:17:13 +000023288Configuration commands:
23289$config_commands
23290
John Criswell7a73b802003-06-30 21:59:07 +000023291Report bugs to <bug-autoconf@gnu.org>."
23292_ACEOF
23293
23294cat >>$CONFIG_STATUS <<_ACEOF
23295ac_cs_version="\\
23296[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023297configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023298 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23299
23300Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23301Free Software Foundation, Inc.
23302This config.status script is free software; the Free Software Foundation
23303gives unlimited permission to copy, distribute and modify it."
23304srcdir=$srcdir
23305INSTALL="$INSTALL"
23306_ACEOF
23307
23308cat >>$CONFIG_STATUS <<\_ACEOF
23309# If no file are specified by the user, then we need to provide default
23310# value. By we need to know if files were specified by the user.
23311ac_need_defaults=:
23312while test $# != 0
23313do
23314 case $1 in
23315 --*=*)
23316 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23317 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023318 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023319 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023320 -*)
23321 ac_option=$1
23322 ac_optarg=$2
23323 ac_shift=shift
23324 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023325 *) # This is not an option, so the user has probably given explicit
23326 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023327 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023328 ac_need_defaults=false;;
23329 esac
23330
John Criswell0c38eaf2003-09-10 15:17:25 +000023331 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023332 # Handling of the options.
23333_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023334cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023335 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23336 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023337 --version | --vers* | -V )
23338 echo "$ac_cs_version"; exit 0 ;;
23339 --he | --h)
23340 # Conflict between --help and --header
23341 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23342Try \`$0 --help' for more information." >&5
23343echo "$as_me: error: ambiguous option: $1
23344Try \`$0 --help' for more information." >&2;}
23345 { (exit 1); exit 1; }; };;
23346 --help | --hel | -h )
23347 echo "$ac_cs_usage"; exit 0 ;;
23348 --debug | --d* | -d )
23349 debug=: ;;
23350 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023351 $ac_shift
23352 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023353 ac_need_defaults=false;;
23354 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023355 $ac_shift
23356 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023357 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23359 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23360 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023361
23362 # This is an error.
23363 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23364Try \`$0 --help' for more information." >&5
23365echo "$as_me: error: unrecognized option: $1
23366Try \`$0 --help' for more information." >&2;}
23367 { (exit 1); exit 1; }; } ;;
23368
23369 *) ac_config_targets="$ac_config_targets $1" ;;
23370
23371 esac
23372 shift
23373done
23374
John Criswell0c38eaf2003-09-10 15:17:25 +000023375ac_configure_extra_args=
23376
23377if $ac_cs_silent; then
23378 exec 6>/dev/null
23379 ac_configure_extra_args="$ac_configure_extra_args --silent"
23380fi
23381
23382_ACEOF
23383cat >>$CONFIG_STATUS <<_ACEOF
23384if \$ac_cs_recheck; then
23385 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23386 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23387fi
23388
John Criswell7a73b802003-06-30 21:59:07 +000023389_ACEOF
23390
John Criswellc764fbc2003-09-06 15:17:13 +000023391cat >>$CONFIG_STATUS <<_ACEOF
23392#
23393# INIT-COMMANDS section.
23394#
John Criswell7a73b802003-06-30 21:59:07 +000023395
John Criswellc764fbc2003-09-06 15:17:13 +000023396${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23398${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23399${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23401${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23405${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23407${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023413${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023418${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23419${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23420${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23422${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23424${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23426${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023433${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023434${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023438${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023439${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023440${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023442${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswell08acb9b2003-09-16 02:12:45 +000023446${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023447${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23449${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23451${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23452${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23511${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023512${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023513${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23514${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23515${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23516${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23517${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23518${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023519${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023520${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023521${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23522${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23523${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23524${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23525${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023526${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23527${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23528${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023529${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23530${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23532${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23533${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23534${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023535${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023536${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023537${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023538${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023539${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23540${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023541${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23542${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/CompileFail/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023543${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23544${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023545${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023546${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23547${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23548${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023549${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023550${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023551${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023552${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023553${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023554${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023555${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23556${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023557${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23558${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23559${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23560${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23561${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23562${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23563${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23564${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23565${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23566${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23567${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23568${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23569${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
John Criswell4e079782003-09-29 14:52:28 +000023570${srcdir}/autoconf/mkinstalldirs `dirname support/Makefile`
23571${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Makefile`
23572${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Support/Makefile`
23573${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Makefile`
23574${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Makefile`
23575${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Doc/Makefile`
23576${srcdir}/autoconf/mkinstalldirs `dirname support/tools/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023577
23578_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023579
23580
23581
23582cat >>$CONFIG_STATUS <<\_ACEOF
23583for ac_config_target in $ac_config_targets
23584do
23585 case "$ac_config_target" in
23586 # Handling of arguments.
23587 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023588 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23589 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23590 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23591 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23592 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23593 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23594 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23595 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23596 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23597 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23598 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23599 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23600 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23601 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23602 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23603 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23604 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023605 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23606 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23607 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23608 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23609 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023610 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23611 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23612 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23613 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23614 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23615 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23616 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23617 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23618 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23619 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23620 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23621 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23622 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23623 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23624 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023625 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023626 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23627 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23628 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23629 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023630 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023631 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023632 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23633 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023634 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23635 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23636 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23637 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswell08acb9b2003-09-16 02:12:45 +000023638 "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023639 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23640 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23641 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23642 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23643 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23644 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23645 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23646 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23647 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23648 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23649 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23650 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23651 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23652 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23653 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23654 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23655 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23656 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023657 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023658 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23659 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23660 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23661 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23662 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23663 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23664 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23665 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23666 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23667 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23668 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23669 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23670 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23671 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23672 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23673 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23674 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23675 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023676 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23677 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023678 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23679 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023680 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23681 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23682 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23683 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23684 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23685 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23686 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23687 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23688 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23689 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23690 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23691 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23692 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23693 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23694 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23695 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23696 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23697 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23698 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23699 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23700 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23701 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23702 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23703 "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 +000023704 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023705 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23706 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23707 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23708 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23709 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23710 "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 +000023711 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023712 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023713 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23714 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23715 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23716 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23717 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023718 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23719 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23720 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023721 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23722 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23723 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23724 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23725 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23726 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023727 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023728 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023729 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023730 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023731 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23732 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000023733 "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23734 "test/Programs/SingleSource/Regression/C++/CompileFail/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/CompileFail/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023735 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23736 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023737 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023738 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23739 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23740 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023741 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023742 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023743 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023744 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023745 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023746 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023747 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23748 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023749 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23750 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23751 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23752 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23753 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23754 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23755 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23756 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23757 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23758 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23759 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23760 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23761 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell4e079782003-09-29 14:52:28 +000023762 "support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/Makefile" ;;
23763 "support/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Makefile" ;;
23764 "support/lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Support/Makefile" ;;
23765 "support/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Makefile" ;;
23766 "support/tools/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Makefile" ;;
23767 "support/tools/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Doc/Makefile" ;;
23768 "support/tools/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/TableGen/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023769 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23770 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23771echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23772 { (exit 1); exit 1; }; };;
23773 esac
23774done
23775
23776# If the user did not use the arguments to specify the items to instantiate,
23777# then the envvar interface is used. Set only those that are not.
23778# We use the long form for the default assignment because of an extremely
23779# bizarre bug on SunOS 4.1.3.
23780if $ac_need_defaults; then
23781 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23782 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023783 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023784fi
23785
John Criswell0c38eaf2003-09-10 15:17:25 +000023786# Have a temporary directory for convenience. Make it in the build tree
23787# simply because there is no reason to put it here, and in addition,
23788# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023789# Create a temporary directory, and hook for its removal unless debugging.
23790$debug ||
23791{
23792 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23793 trap '{ (exit 1); exit 1; }' 1 2 13 15
23794}
23795
23796# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023797
John Criswell7a73b802003-06-30 21:59:07 +000023798{
John Criswell0c38eaf2003-09-10 15:17:25 +000023799 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023800 test -n "$tmp" && test -d "$tmp"
23801} ||
23802{
John Criswell0c38eaf2003-09-10 15:17:25 +000023803 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023804 (umask 077 && mkdir $tmp)
23805} ||
23806{
John Criswell0c38eaf2003-09-10 15:17:25 +000023807 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023808 { (exit 1); exit 1; }
23809}
23810
23811_ACEOF
23812
23813cat >>$CONFIG_STATUS <<_ACEOF
23814
23815#
23816# CONFIG_FILES section.
23817#
23818
23819# No need to generate the scripts if there are no CONFIG_FILES.
23820# This happens for instance when ./config.status config.h
23821if test -n "\$CONFIG_FILES"; then
23822 # Protect against being on the right side of a sed subst in config.status.
23823 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23824 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23825s,@SHELL@,$SHELL,;t t
23826s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23827s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23828s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23829s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23830s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23831s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23832s,@exec_prefix@,$exec_prefix,;t t
23833s,@prefix@,$prefix,;t t
23834s,@program_transform_name@,$program_transform_name,;t t
23835s,@bindir@,$bindir,;t t
23836s,@sbindir@,$sbindir,;t t
23837s,@libexecdir@,$libexecdir,;t t
23838s,@datadir@,$datadir,;t t
23839s,@sysconfdir@,$sysconfdir,;t t
23840s,@sharedstatedir@,$sharedstatedir,;t t
23841s,@localstatedir@,$localstatedir,;t t
23842s,@libdir@,$libdir,;t t
23843s,@includedir@,$includedir,;t t
23844s,@oldincludedir@,$oldincludedir,;t t
23845s,@infodir@,$infodir,;t t
23846s,@mandir@,$mandir,;t t
23847s,@build_alias@,$build_alias,;t t
23848s,@host_alias@,$host_alias,;t t
23849s,@target_alias@,$target_alias,;t t
23850s,@DEFS@,$DEFS,;t t
23851s,@ECHO_C@,$ECHO_C,;t t
23852s,@ECHO_N@,$ECHO_N,;t t
23853s,@ECHO_T@,$ECHO_T,;t t
23854s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023855s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023856s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23857s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23858s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23859s,@build@,$build,;t t
23860s,@build_cpu@,$build_cpu,;t t
23861s,@build_vendor@,$build_vendor,;t t
23862s,@build_os@,$build_os,;t t
23863s,@host@,$host,;t t
23864s,@host_cpu@,$host_cpu,;t t
23865s,@host_vendor@,$host_vendor,;t t
23866s,@host_os@,$host_os,;t t
23867s,@target@,$target,;t t
23868s,@target_cpu@,$target_cpu,;t t
23869s,@target_vendor@,$target_vendor,;t t
23870s,@target_os@,$target_os,;t t
23871s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023872s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023873s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023874s,@CXX@,$CXX,;t t
23875s,@CXXFLAGS@,$CXXFLAGS,;t t
23876s,@LDFLAGS@,$LDFLAGS,;t t
23877s,@CPPFLAGS@,$CPPFLAGS,;t t
23878s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23879s,@EXEEXT@,$EXEEXT,;t t
23880s,@OBJEXT@,$OBJEXT,;t t
23881s,@CC@,$CC,;t t
23882s,@CFLAGS@,$CFLAGS,;t t
23883s,@ac_ct_CC@,$ac_ct_CC,;t t
23884s,@CPP@,$CPP,;t t
23885s,@ifGNUmake@,$ifGNUmake,;t t
23886s,@LEX@,$LEX,;t t
23887s,@LEXLIB@,$LEXLIB,;t t
23888s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23889s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023890s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023891s,@LN_S@,$LN_S,;t t
23892s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023893s,@AR@,$AR,;t t
23894s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023895s,@RANLIB@,$RANLIB,;t t
23896s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23897s,@STRIP@,$STRIP,;t t
23898s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023899s,@CXXCPP@,$CXXCPP,;t t
23900s,@F77@,$F77,;t t
23901s,@FFLAGS@,$FFLAGS,;t t
23902s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023903s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023904s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023905s,@SED@,$SED,;t t
23906s,@RM@,$RM,;t t
23907s,@MKDIR@,$MKDIR,;t t
23908s,@DATE@,$DATE,;t t
23909s,@MV@,$MV,;t t
23910s,@DOT@,$DOT,;t t
23911s,@ETAGS@,$ETAGS,;t t
23912s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023913s,@PYTHON@,$PYTHON,;t t
23914s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023915s,@ALLOCA@,$ALLOCA,;t t
23916s,@LIBOBJS@,$LIBOBJS,;t t
23917s,@MMAP_FILE@,$MMAP_FILE,;t t
23918s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023919s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23920s,@USE_SPEC@,$USE_SPEC,;t t
23921s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023922s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023923s,@JIT@,$JIT,;t t
23924s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23925s,@BCR@,$BCR,;t t
23926s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023927s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023928CEOF
23929
23930_ACEOF
23931
23932 cat >>$CONFIG_STATUS <<\_ACEOF
23933 # Split the substitutions into bite-sized pieces for seds with
23934 # small command number limits, like on Digital OSF/1 and HP-UX.
23935 ac_max_sed_lines=48
23936 ac_sed_frag=1 # Number of current file.
23937 ac_beg=1 # First line for current file.
23938 ac_end=$ac_max_sed_lines # Line after last line for current file.
23939 ac_more_lines=:
23940 ac_sed_cmds=
23941 while $ac_more_lines; do
23942 if test $ac_beg -gt 1; then
23943 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23944 else
23945 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23946 fi
23947 if test ! -s $tmp/subs.frag; then
23948 ac_more_lines=false
23949 else
23950 # The purpose of the label and of the branching condition is to
23951 # speed up the sed processing (if there are no `@' at all, there
23952 # is no need to browse any of the substitutions).
23953 # These are the two extra sed commands mentioned above.
23954 (echo ':t
23955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23956 if test -z "$ac_sed_cmds"; then
23957 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23958 else
23959 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23960 fi
23961 ac_sed_frag=`expr $ac_sed_frag + 1`
23962 ac_beg=$ac_end
23963 ac_end=`expr $ac_end + $ac_max_sed_lines`
23964 fi
23965 done
23966 if test -z "$ac_sed_cmds"; then
23967 ac_sed_cmds=cat
23968 fi
23969fi # test -n "$CONFIG_FILES"
23970
23971_ACEOF
23972cat >>$CONFIG_STATUS <<\_ACEOF
23973for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23974 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23975 case $ac_file in
23976 - | *:- | *:-:* ) # input from stdin
23977 cat >$tmp/stdin
23978 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23979 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23980 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23981 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23982 * ) ac_file_in=$ac_file.in ;;
23983 esac
23984
23985 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23986 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23987$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23988 X"$ac_file" : 'X\(//\)[^/]' \| \
23989 X"$ac_file" : 'X\(//\)$' \| \
23990 X"$ac_file" : 'X\(/\)' \| \
23991 . : '\(.\)' 2>/dev/null ||
23992echo X"$ac_file" |
23993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23995 /^X\(\/\/\)$/{ s//\1/; q; }
23996 /^X\(\/\).*/{ s//\1/; q; }
23997 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023998 { if $as_mkdir_p; then
23999 mkdir -p "$ac_dir"
24000 else
24001 as_dir="$ac_dir"
24002 as_dirs=
24003 while test ! -d "$as_dir"; do
24004 as_dirs="$as_dir $as_dirs"
24005 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24006$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24007 X"$as_dir" : 'X\(//\)[^/]' \| \
24008 X"$as_dir" : 'X\(//\)$' \| \
24009 X"$as_dir" : 'X\(/\)' \| \
24010 . : '\(.\)' 2>/dev/null ||
24011echo X"$as_dir" |
24012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24014 /^X\(\/\/\)$/{ s//\1/; q; }
24015 /^X\(\/\).*/{ s//\1/; q; }
24016 s/.*/./; q'`
24017 done
24018 test ! -n "$as_dirs" || mkdir $as_dirs
24019 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24020echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24021 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024022
24023 ac_builddir=.
24024
24025if test "$ac_dir" != .; then
24026 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24027 # A "../" for each directory in $ac_dir_suffix.
24028 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24029else
24030 ac_dir_suffix= ac_top_builddir=
24031fi
24032
24033case $srcdir in
24034 .) # No --srcdir option. We are building in place.
24035 ac_srcdir=.
24036 if test -z "$ac_top_builddir"; then
24037 ac_top_srcdir=.
24038 else
24039 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24040 fi ;;
24041 [\\/]* | ?:[\\/]* ) # Absolute path.
24042 ac_srcdir=$srcdir$ac_dir_suffix;
24043 ac_top_srcdir=$srcdir ;;
24044 *) # Relative path.
24045 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24046 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24047esac
24048# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24049# absolute.
24050ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024051ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024052ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24053ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24054
24055
24056 case $INSTALL in
24057 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24058 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24059 esac
24060
24061 if test x"$ac_file" != x-; then
24062 { echo "$as_me:$LINENO: creating $ac_file" >&5
24063echo "$as_me: creating $ac_file" >&6;}
24064 rm -f "$ac_file"
24065 fi
24066 # Let's still pretend it is `configure' which instantiates (i.e., don't
24067 # use $as_me), people would be surprised to read:
24068 # /* config.h. Generated by config.status. */
24069 if test x"$ac_file" = x-; then
24070 configure_input=
24071 else
24072 configure_input="$ac_file. "
24073 fi
24074 configure_input=$configure_input"Generated from `echo $ac_file_in |
24075 sed 's,.*/,,'` by configure."
24076
24077 # First look for the input files in the build tree, otherwise in the
24078 # src tree.
24079 ac_file_inputs=`IFS=:
24080 for f in $ac_file_in; do
24081 case $f in
24082 -) echo $tmp/stdin ;;
24083 [\\/$]*)
24084 # Absolute (can't be DOS-style, as IFS=:)
24085 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24086echo "$as_me: error: cannot find input file: $f" >&2;}
24087 { (exit 1); exit 1; }; }
24088 echo $f;;
24089 *) # Relative
24090 if test -f "$f"; then
24091 # Build tree
24092 echo $f
24093 elif test -f "$srcdir/$f"; then
24094 # Source tree
24095 echo $srcdir/$f
24096 else
24097 # /dev/null tree
24098 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24099echo "$as_me: error: cannot find input file: $f" >&2;}
24100 { (exit 1); exit 1; }; }
24101 fi;;
24102 esac
24103 done` || { (exit 1); exit 1; }
24104_ACEOF
24105cat >>$CONFIG_STATUS <<_ACEOF
24106 sed "$ac_vpsub
24107$extrasub
24108_ACEOF
24109cat >>$CONFIG_STATUS <<\_ACEOF
24110:t
24111/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24112s,@configure_input@,$configure_input,;t t
24113s,@srcdir@,$ac_srcdir,;t t
24114s,@abs_srcdir@,$ac_abs_srcdir,;t t
24115s,@top_srcdir@,$ac_top_srcdir,;t t
24116s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24117s,@builddir@,$ac_builddir,;t t
24118s,@abs_builddir@,$ac_abs_builddir,;t t
24119s,@top_builddir@,$ac_top_builddir,;t t
24120s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24121s,@INSTALL@,$ac_INSTALL,;t t
24122" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24123 rm -f $tmp/stdin
24124 if test x"$ac_file" != x-; then
24125 mv $tmp/out $ac_file
24126 else
24127 cat $tmp/out
24128 rm -f $tmp/out
24129 fi
24130
24131done
24132_ACEOF
24133cat >>$CONFIG_STATUS <<\_ACEOF
24134
24135#
24136# CONFIG_HEADER section.
24137#
24138
24139# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24140# NAME is the cpp macro being defined and VALUE is the value it is being given.
24141#
24142# ac_d sets the value in "#define NAME VALUE" lines.
24143ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24144ac_dB='[ ].*$,\1#\2'
24145ac_dC=' '
24146ac_dD=',;t'
24147# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24148ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24149ac_uB='$,\1#\2define\3'
24150ac_uC=' '
24151ac_uD=',;t'
24152
24153for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24154 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24155 case $ac_file in
24156 - | *:- | *:-:* ) # input from stdin
24157 cat >$tmp/stdin
24158 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24159 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24160 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24161 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24162 * ) ac_file_in=$ac_file.in ;;
24163 esac
24164
24165 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24166echo "$as_me: creating $ac_file" >&6;}
24167
24168 # First look for the input files in the build tree, otherwise in the
24169 # src tree.
24170 ac_file_inputs=`IFS=:
24171 for f in $ac_file_in; do
24172 case $f in
24173 -) echo $tmp/stdin ;;
24174 [\\/$]*)
24175 # Absolute (can't be DOS-style, as IFS=:)
24176 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24177echo "$as_me: error: cannot find input file: $f" >&2;}
24178 { (exit 1); exit 1; }; }
24179 echo $f;;
24180 *) # Relative
24181 if test -f "$f"; then
24182 # Build tree
24183 echo $f
24184 elif test -f "$srcdir/$f"; then
24185 # Source tree
24186 echo $srcdir/$f
24187 else
24188 # /dev/null tree
24189 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24190echo "$as_me: error: cannot find input file: $f" >&2;}
24191 { (exit 1); exit 1; }; }
24192 fi;;
24193 esac
24194 done` || { (exit 1); exit 1; }
24195 # Remove the trailing spaces.
24196 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24197
24198_ACEOF
24199
24200# Transform confdefs.h into two sed scripts, `conftest.defines' and
24201# `conftest.undefs', that substitutes the proper values into
24202# config.h.in to produce config.h. The first handles `#define'
24203# templates, and the second `#undef' templates.
24204# And first: Protect against being on the right side of a sed subst in
24205# config.status. Protect against being in an unquoted here document
24206# in config.status.
24207rm -f conftest.defines conftest.undefs
24208# Using a here document instead of a string reduces the quoting nightmare.
24209# Putting comments in sed scripts is not portable.
24210#
24211# `end' is used to avoid that the second main sed command (meant for
24212# 0-ary CPP macros) applies to n-ary macro definitions.
24213# See the Autoconf documentation for `clear'.
24214cat >confdef2sed.sed <<\_ACEOF
24215s/[\\&,]/\\&/g
24216s,[\\$`],\\&,g
24217t clear
24218: clear
24219s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24220t end
24221s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24222: end
24223_ACEOF
24224# If some macros were called several times there might be several times
24225# the same #defines, which is useless. Nevertheless, we may not want to
24226# sort them, since we want the *last* AC-DEFINE to be honored.
24227uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24228sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24229rm -f confdef2sed.sed
24230
24231# This sed command replaces #undef with comments. This is necessary, for
24232# example, in the case of _POSIX_SOURCE, which is predefined and required
24233# on some systems where configure will not decide to define it.
24234cat >>conftest.undefs <<\_ACEOF
24235s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24236_ACEOF
24237
24238# Break up conftest.defines because some shells have a limit on the size
24239# of here documents, and old seds have small limits too (100 cmds).
24240echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024241echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024242echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24243echo ' :' >>$CONFIG_STATUS
24244rm -f conftest.tail
24245while grep . conftest.defines >/dev/null
24246do
24247 # Write a limited-size here document to $tmp/defines.sed.
24248 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24249 # Speed up: don't consider the non `#define' lines.
24250 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24251 # Work around the forget-to-reset-the-flag bug.
24252 echo 't clr' >>$CONFIG_STATUS
24253 echo ': clr' >>$CONFIG_STATUS
24254 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24255 echo 'CEOF
24256 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24257 rm -f $tmp/in
24258 mv $tmp/out $tmp/in
24259' >>$CONFIG_STATUS
24260 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24261 rm -f conftest.defines
24262 mv conftest.tail conftest.defines
24263done
24264rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024265echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024266echo >>$CONFIG_STATUS
24267
24268# Break up conftest.undefs because some shells have a limit on the size
24269# of here documents, and old seds have small limits too (100 cmds).
24270echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24271rm -f conftest.tail
24272while grep . conftest.undefs >/dev/null
24273do
24274 # Write a limited-size here document to $tmp/undefs.sed.
24275 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24276 # Speed up: don't consider the non `#undef'
24277 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24278 # Work around the forget-to-reset-the-flag bug.
24279 echo 't clr' >>$CONFIG_STATUS
24280 echo ': clr' >>$CONFIG_STATUS
24281 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24282 echo 'CEOF
24283 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24284 rm -f $tmp/in
24285 mv $tmp/out $tmp/in
24286' >>$CONFIG_STATUS
24287 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24288 rm -f conftest.undefs
24289 mv conftest.tail conftest.undefs
24290done
24291rm -f conftest.undefs
24292
24293cat >>$CONFIG_STATUS <<\_ACEOF
24294 # Let's still pretend it is `configure' which instantiates (i.e., don't
24295 # use $as_me), people would be surprised to read:
24296 # /* config.h. Generated by config.status. */
24297 if test x"$ac_file" = x-; then
24298 echo "/* Generated by configure. */" >$tmp/config.h
24299 else
24300 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24301 fi
24302 cat $tmp/in >>$tmp/config.h
24303 rm -f $tmp/in
24304 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024305 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024306 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24307echo "$as_me: $ac_file is unchanged" >&6;}
24308 else
24309 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24310$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24311 X"$ac_file" : 'X\(//\)[^/]' \| \
24312 X"$ac_file" : 'X\(//\)$' \| \
24313 X"$ac_file" : 'X\(/\)' \| \
24314 . : '\(.\)' 2>/dev/null ||
24315echo X"$ac_file" |
24316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24318 /^X\(\/\/\)$/{ s//\1/; q; }
24319 /^X\(\/\).*/{ s//\1/; q; }
24320 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024321 { if $as_mkdir_p; then
24322 mkdir -p "$ac_dir"
24323 else
24324 as_dir="$ac_dir"
24325 as_dirs=
24326 while test ! -d "$as_dir"; do
24327 as_dirs="$as_dir $as_dirs"
24328 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24330 X"$as_dir" : 'X\(//\)[^/]' \| \
24331 X"$as_dir" : 'X\(//\)$' \| \
24332 X"$as_dir" : 'X\(/\)' \| \
24333 . : '\(.\)' 2>/dev/null ||
24334echo X"$as_dir" |
24335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24337 /^X\(\/\/\)$/{ s//\1/; q; }
24338 /^X\(\/\).*/{ s//\1/; q; }
24339 s/.*/./; q'`
24340 done
24341 test ! -n "$as_dirs" || mkdir $as_dirs
24342 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24343echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24344 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024345
24346 rm -f $ac_file
24347 mv $tmp/config.h $ac_file
24348 fi
24349 else
24350 cat $tmp/config.h
24351 rm -f $tmp/config.h
24352 fi
24353done
24354_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024355cat >>$CONFIG_STATUS <<\_ACEOF
24356
24357#
24358# CONFIG_COMMANDS section.
24359#
24360for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24361 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24362 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24363 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24364$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24365 X"$ac_dest" : 'X\(//\)[^/]' \| \
24366 X"$ac_dest" : 'X\(//\)$' \| \
24367 X"$ac_dest" : 'X\(/\)' \| \
24368 . : '\(.\)' 2>/dev/null ||
24369echo X"$ac_dest" |
24370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24372 /^X\(\/\/\)$/{ s//\1/; q; }
24373 /^X\(\/\).*/{ s//\1/; q; }
24374 s/.*/./; q'`
24375 ac_builddir=.
24376
24377if test "$ac_dir" != .; then
24378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24379 # A "../" for each directory in $ac_dir_suffix.
24380 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24381else
24382 ac_dir_suffix= ac_top_builddir=
24383fi
24384
24385case $srcdir in
24386 .) # No --srcdir option. We are building in place.
24387 ac_srcdir=.
24388 if test -z "$ac_top_builddir"; then
24389 ac_top_srcdir=.
24390 else
24391 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24392 fi ;;
24393 [\\/]* | ?:[\\/]* ) # Absolute path.
24394 ac_srcdir=$srcdir$ac_dir_suffix;
24395 ac_top_srcdir=$srcdir ;;
24396 *) # Relative path.
24397 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24398 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24399esac
24400# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24401# absolute.
24402ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024403ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024404ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24405ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24406
24407
24408 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24409echo "$as_me: executing $ac_dest commands" >&6;}
24410 case $ac_dest in
24411 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24412 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24413 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24414 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24415 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24416 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24417 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24418 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24419 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24420 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24421 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24422 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24423 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24424 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24425 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24426 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24427 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 +000024428 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24429 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24430 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24431 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24432 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024433 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24434 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24435 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24436 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24437 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24438 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24439 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24440 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24441 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24442 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24443 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24444 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24445 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24446 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24447 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 +000024448 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 +000024449 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24450 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24451 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24452 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 +000024453 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 +000024454 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 +000024455 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24456 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 +000024457 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24458 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24459 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24460 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswell08acb9b2003-09-16 02:12:45 +000024461 test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024462 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24463 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24464 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24465 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24466 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24467 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24468 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24469 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24470 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24471 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24472 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24473 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24474 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24475 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24476 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24477 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24478 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24479 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 +000024480 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 +000024481 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 ;;
24482 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 ;;
24483 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 ;;
24484 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 ;;
24485 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 ;;
24486 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 ;;
24487 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 ;;
24488 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 ;;
24489 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 ;;
24490 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 ;;
24491 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 ;;
24492 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 ;;
24493 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 ;;
24494 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 ;;
24495 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 ;;
24496 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24497 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24498 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 +000024499 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24500 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 +000024501 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 ;;
24502 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 +000024503 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24504 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 ;;
24505 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 ;;
24506 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 ;;
24507 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 ;;
24508 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 ;;
24509 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 ;;
24510 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 ;;
24511 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 ;;
24512 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 ;;
24513 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 ;;
24514 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 ;;
24515 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 ;;
24516 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 ;;
24517 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 ;;
24518 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 ;;
24519 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 ;;
24520 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 ;;
24521 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 ;;
24522 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 ;;
24523 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 ;;
24524 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 ;;
24525 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 ;;
24526 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 +000024527 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 +000024528 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 ;;
24529 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 ;;
24530 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 ;;
24531 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 ;;
24532 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 ;;
24533 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 +000024534 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 +000024535 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 +000024536 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24537 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24538 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24539 test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
24540 test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024541 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24542 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24543 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 +000024544 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24545 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24546 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 ;;
24547 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 ;;
24548 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 ;;
24549 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 +000024550 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 +000024551 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 +000024552 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 +000024553 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 +000024554 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 ;;
24555 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 +000024556 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 ;;
24557 test/Programs/SingleSource/Regression/C++/CompileFail/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/CompileFail/Makefile test/Programs/SingleSource/Regression/C++/CompileFail/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024558 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24559 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024560 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024561 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24562 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24563 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024564 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024565 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024566 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024567 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 +000024568 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 +000024569 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 +000024570 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24571 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024572 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24573 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24574 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24575 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24576 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24577 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24578 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24579 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24580 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24581 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24582 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24583 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24584 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
John Criswell4e079782003-09-29 14:52:28 +000024585 support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/Makefile support/Makefile ;;
24586 support/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Makefile support/lib/Makefile ;;
24587 support/lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Support/Makefile support/lib/Support/Makefile ;;
24588 support/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Makefile support/tools/Makefile ;;
24589 support/tools/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Makefile support/tools/Burg/Makefile ;;
24590 support/tools/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Doc/Makefile support/tools/Burg/Doc/Makefile ;;
24591 support/tools/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/TableGen/Makefile support/tools/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024592 esac
24593done
24594_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024595
24596cat >>$CONFIG_STATUS <<\_ACEOF
24597
24598{ (exit 0); exit 0; }
24599_ACEOF
24600chmod +x $CONFIG_STATUS
24601ac_clean_files=$ac_clean_files_save
24602
24603
24604# configure is writing to config.log, and then calls config.status.
24605# config.status does its own redirection, appending to config.log.
24606# Unfortunately, on DOS this fails, as config.log is still kept open
24607# by configure, so config.status won't be able to write to it; its
24608# output is simply discarded. So we exec the FD to /dev/null,
24609# effectively closing config.log, so it can be properly (re)opened and
24610# appended to by config.status. When coming back to configure, we
24611# need to make the FD available again.
24612if test "$no_create" != yes; then
24613 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024614 ac_config_status_args=
24615 test "$silent" = yes &&
24616 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024617 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024618 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024619 exec 5>>config.log
24620 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24621 # would make configure fail if this is the last instruction.
24622 $ac_cs_success || { (exit 1); exit 1; }
24623fi
24624
John Criswell12399a12003-09-30 15:55:44 +000024625#
24626# CONFIG_SUBDIRS section.
24627#
24628if test "$no_recursion" != yes; then
24629
24630 # Remove --cache-file and --srcdir arguments so they do not pile up.
24631 ac_sub_configure_args=
24632 ac_prev=
24633 for ac_arg in $ac_configure_args; do
24634 if test -n "$ac_prev"; then
24635 ac_prev=
24636 continue
24637 fi
24638 case $ac_arg in
24639 -cache-file | --cache-file | --cache-fil | --cache-fi \
24640 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24641 ac_prev=cache_file ;;
24642 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24643 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24644 | --c=*)
24645 ;;
24646 --config-cache | -C)
24647 ;;
24648 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24649 ac_prev=srcdir ;;
24650 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24651 ;;
24652 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24653 ac_prev=prefix ;;
24654 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24655 ;;
24656 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24657 esac
24658 done
24659
24660 # Always prepend --prefix to ensure using the same prefix
24661 # in subdir configurations.
24662 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24663
24664 ac_popdir=`pwd`
24665 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24666
24667 # Do not complain, so a configure script can configure whichever
24668 # parts of a large source tree are present.
24669 test -d $srcdir/$ac_dir || continue
24670
24671 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24672echo "$as_me: configuring in $ac_dir" >&6;}
24673 { if $as_mkdir_p; then
24674 mkdir -p "$ac_dir"
24675 else
24676 as_dir="$ac_dir"
24677 as_dirs=
24678 while test ! -d "$as_dir"; do
24679 as_dirs="$as_dir $as_dirs"
24680 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24681$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24682 X"$as_dir" : 'X\(//\)[^/]' \| \
24683 X"$as_dir" : 'X\(//\)$' \| \
24684 X"$as_dir" : 'X\(/\)' \| \
24685 . : '\(.\)' 2>/dev/null ||
24686echo X"$as_dir" |
24687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24689 /^X\(\/\/\)$/{ s//\1/; q; }
24690 /^X\(\/\).*/{ s//\1/; q; }
24691 s/.*/./; q'`
24692 done
24693 test ! -n "$as_dirs" || mkdir $as_dirs
24694 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24695echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24696 { (exit 1); exit 1; }; }; }
24697
24698 ac_builddir=.
24699
24700if test "$ac_dir" != .; then
24701 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24702 # A "../" for each directory in $ac_dir_suffix.
24703 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24704else
24705 ac_dir_suffix= ac_top_builddir=
24706fi
24707
24708case $srcdir in
24709 .) # No --srcdir option. We are building in place.
24710 ac_srcdir=.
24711 if test -z "$ac_top_builddir"; then
24712 ac_top_srcdir=.
24713 else
24714 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24715 fi ;;
24716 [\\/]* | ?:[\\/]* ) # Absolute path.
24717 ac_srcdir=$srcdir$ac_dir_suffix;
24718 ac_top_srcdir=$srcdir ;;
24719 *) # Relative path.
24720 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24721 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24722esac
24723# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24724# absolute.
24725ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24726ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24727ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24728ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24729
24730
24731 cd $ac_dir
24732
24733 # Check for guested configure; otherwise get Cygnus style configure.
24734 if test -f $ac_srcdir/configure.gnu; then
24735 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24736 elif test -f $ac_srcdir/configure; then
24737 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24738 elif test -f $ac_srcdir/configure.in; then
24739 ac_sub_configure=$ac_configure
24740 else
24741 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24742echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24743 ac_sub_configure=
24744 fi
24745
24746 # The recursion is here.
24747 if test -n "$ac_sub_configure"; then
24748 # Make the cache file name correct relative to the subdirectory.
24749 case $cache_file in
24750 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24751 *) # Relative path.
24752 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24753 esac
24754
24755 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24756echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24757 # The eval makes quoting arguments work.
24758 eval $ac_sub_configure $ac_sub_configure_args \
24759 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24760 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24761echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24762 { (exit 1); exit 1; }; }
24763 fi
24764
24765 cd $ac_popdir
24766 done
24767fi
24768