blob: 3b80b5652dec6b4d55eeebf65964f54cdaf4389e [file] [log] [blame]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003# Generated by GNU Autoconf 2.54.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
mostang.com!davidma8db0b32003-02-08 10:10:59 +000039for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000040do
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
43 else
44 $as_unset $as_var
45 fi
46done
47
48# Required to use basename.
49if expr a : '\(a\)' >/dev/null 2>&1; then
50 as_expr=expr
51else
52 as_expr=false
53fi
54
55if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56 as_basename=basename
57else
58 as_basename=false
59fi
60
61
62# Name of the executable.
63as_me=`$as_basename "$0" ||
64$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
68echo X/"$0" |
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
72 s/.*/./; q'`
73
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +000085 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000089 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +000093 rm -f conftest.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000094fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149done
150;;
151 esac
152
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
163 N
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
174
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
181}
182
183
184case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189esac
190
191if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193else
194 as_expr=false
195fi
196
197rm -f conf$$ conf$$.exe conf$$.file
198echo >conf$$.file
199if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
207 fi
208elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210else
211 as_ln_s='cp -p'
212fi
213rm -f conf$$ conf$$.exe conf$$.file
214
215if mkdir -p . 2>/dev/null; then
216 as_mkdir_p=:
217else
218 as_mkdir_p=false
219fi
220
221as_executable_p="test -f"
222
223# Sed expression to map a string onto a valid CPP name.
224as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226# Sed expression to map a string onto a valid variable name.
227as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230# IFS
231# We need space, tab and new line, in precisely that order.
232as_nl='
233'
234IFS=" $as_nl"
235
236# CDPATH.
237$as_unset CDPATH
238
239
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000240# Find the correct PATH separator. Usually this is `:', but
241# DJGPP uses `;' like DOS.
242if test "X${PATH_SEPARATOR+set}" != Xset; then
243 UNAME=${UNAME-`uname 2>/dev/null`}
244 case X$UNAME in
245 *-DOS) lt_cv_sys_path_separator=';' ;;
246 *) lt_cv_sys_path_separator=':' ;;
247 esac
248 PATH_SEPARATOR=$lt_cv_sys_path_separator
249fi
250
251
252# Check that we are running under the correct shell.
253SHELL=${CONFIG_SHELL-/bin/sh}
254
255case X$ECHO in
256X*--fallback-echo)
257 # Remove one level of quotation (which was required for Make).
258 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259 ;;
260esac
261
262echo=${ECHO-echo}
263if test "X$1" = X--no-reexec; then
264 # Discard the --no-reexec flag, and continue.
265 shift
266elif test "X$1" = X--fallback-echo; then
267 # Avoid inline document here, it may be left over
268 :
269elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
270 # Yippee, $echo works!
271 :
272else
273 # Restart under the correct shell.
274 exec $SHELL "$0" --no-reexec ${1+"$@"}
275fi
276
277if test "X$1" = X--fallback-echo; then
278 # used as fallback echo
279 shift
280 cat <<EOF
281
282EOF
283 exit 0
284fi
285
286# The HP-UX ksh and POSIX shell print the target directory to stdout
287# if CDPATH is set.
288if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
289
290if test -z "$ECHO"; then
291if test "X${echo_test_string+set}" != Xset; then
292# find a string as large as possible, as long as the shell can cope with it
293 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
294 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
295 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
296 echo_test_string="`eval $cmd`" &&
297 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 then
299 break
300 fi
301 done
302fi
303
304if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
305 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
306 test "X$echo_testing_string" = "X$echo_test_string"; then
307 :
308else
309 # The Solaris, AIX, and Digital Unix default echo programs unquote
310 # backslashes. This makes it impossible to quote backslashes using
311 # echo "$something" | sed 's/\\/\\\\/g'
312 #
313 # So, first we look for a working echo in the user's PATH.
314
315 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
316 for dir in $PATH /usr/ucb; do
317 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
318 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
319 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
320 test "X$echo_testing_string" = "X$echo_test_string"; then
321 echo="$dir/echo"
322 break
323 fi
324 done
325 IFS="$save_ifs"
326
327 if test "X$echo" = Xecho; then
328 # We didn't find a better echo, so look for alternatives.
329 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
330 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
331 test "X$echo_testing_string" = "X$echo_test_string"; then
332 # This shell has a builtin print -r that does the trick.
333 echo='print -r'
334 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
335 test "X$CONFIG_SHELL" != X/bin/ksh; then
336 # If we have ksh, try running configure again with it.
337 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
338 export ORIGINAL_CONFIG_SHELL
339 CONFIG_SHELL=/bin/ksh
340 export CONFIG_SHELL
341 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342 else
343 # Try using printf.
344 echo='printf %s\n'
345 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
346 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 # Cool, printf works
349 :
350 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
351 test "X$echo_testing_string" = 'X\t' &&
352 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
353 test "X$echo_testing_string" = "X$echo_test_string"; then
354 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
355 export CONFIG_SHELL
356 SHELL="$CONFIG_SHELL"
357 export SHELL
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
360 test "X$echo_testing_string" = 'X\t' &&
361 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
362 test "X$echo_testing_string" = "X$echo_test_string"; then
363 echo="$CONFIG_SHELL $0 --fallback-echo"
364 else
365 # maybe with a smaller string...
366 prev=:
367
368 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
369 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 then
371 break
372 fi
373 prev="$cmd"
374 done
375
376 if test "$prev" != 'sed 50q "$0"'; then
377 echo_test_string=`eval $prev`
378 export echo_test_string
379 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
380 else
381 # Oops. We lost completely, so just stick with echo.
382 echo=echo
383 fi
384 fi
385 fi
386 fi
387fi
388fi
389
390# Copy echo and quote the copy suitably for passing to libtool from
391# the Makefile, instead of quoting the original, which is used later.
392ECHO=$echo
393if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
394 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395fi
396
397
398
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +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
410ac_config_libobj_dir=.
411cross_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=
424PACKAGE_TARNAME=
425PACKAGE_VERSION=
426PACKAGE_STRING=
427PACKAGE_BUGREPORT=
428
429ac_unique_file="src/backtrace.c"
430# 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
mostang.com!davidm4f17bce2003-03-28 07:43:22 +0000467ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL CCAS CCASFLAGS LIBOBJS REMOTE_ONLY_TRUE REMOTE_ONLY_FALSE ARCH_IA64_TRUE ARCH_IA64_FALSE ARCH_HPPA_TRUE ARCH_HPPA_FALSE ARCH_X86_TRUE ARCH_X86_FALSE OS_LINUX_TRUE OS_LINUX_FALSE arch ARCH LTLIBOBJS'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case $ac_option in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
549
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
558
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
591
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
740
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
753
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
780
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
784 ;;
785
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
796 *)
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 ;;
803
804 esac
805done
806
807if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880else
881 ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
890 fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
mostang.com!davidm4f17bce2003-03-28 07:43:22 +0000924ac_env_CXX_set=${CXX+set}
925ac_env_CXX_value=$CXX
926ac_cv_env_CXX_set=${CXX+set}
927ac_cv_env_CXX_value=$CXX
928ac_env_CXXFLAGS_set=${CXXFLAGS+set}
929ac_env_CXXFLAGS_value=$CXXFLAGS
930ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
931ac_cv_env_CXXFLAGS_value=$CXXFLAGS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000932ac_env_CPP_set=${CPP+set}
933ac_env_CPP_value=$CPP
934ac_cv_env_CPP_set=${CPP+set}
935ac_cv_env_CPP_value=$CPP
936
937#
938# Report the --help message.
939#
940if test "$ac_init_help" = "long"; then
941 # Omit some internal or obsolete options to make the list less imposing.
942 # This message is too long to be a string in the A/UX 3.1 sh.
943 cat <<_ACEOF
944\`configure' configures this package to adapt to many kinds of systems.
945
946Usage: $0 [OPTION]... [VAR=VALUE]...
947
948To assign environment variables (e.g., CC, CFLAGS...), specify them as
949VAR=VALUE. See below for descriptions of some of the useful variables.
950
951Defaults for the options are specified in brackets.
952
953Configuration:
954 -h, --help display this help and exit
955 --help=short display options specific to this package
956 --help=recursive display the short help of all the included packages
957 -V, --version display version information and exit
958 -q, --quiet, --silent do not print \`checking...' messages
959 --cache-file=FILE cache test results in FILE [disabled]
960 -C, --config-cache alias for \`--cache-file=config.cache'
961 -n, --no-create do not create output files
962 --srcdir=DIR find the sources in DIR [configure dir or \`..']
963
964_ACEOF
965
966 cat <<_ACEOF
967Installation directories:
968 --prefix=PREFIX install architecture-independent files in PREFIX
969 [$ac_default_prefix]
970 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
971 [PREFIX]
972
973By default, \`make install' will install all the files in
974\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
975an installation prefix other than \`$ac_default_prefix' using \`--prefix',
976for instance \`--prefix=\$HOME'.
977
978For better control, use the options below.
979
980Fine tuning of the installation directories:
981 --bindir=DIR user executables [EPREFIX/bin]
982 --sbindir=DIR system admin executables [EPREFIX/sbin]
983 --libexecdir=DIR program executables [EPREFIX/libexec]
984 --datadir=DIR read-only architecture-independent data [PREFIX/share]
985 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
986 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
987 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
988 --libdir=DIR object code libraries [EPREFIX/lib]
989 --includedir=DIR C header files [PREFIX/include]
990 --oldincludedir=DIR C header files for non-gcc [/usr/include]
991 --infodir=DIR info documentation [PREFIX/info]
992 --mandir=DIR man documentation [PREFIX/man]
993_ACEOF
994
995 cat <<\_ACEOF
996
997Program names:
998 --program-prefix=PREFIX prepend PREFIX to installed program names
999 --program-suffix=SUFFIX append SUFFIX to installed program names
1000 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1001
1002System types:
1003 --build=BUILD configure for building on BUILD [guessed]
1004 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1005 --target=TARGET configure for building compilers for TARGET [HOST]
1006_ACEOF
1007fi
1008
1009if test -n "$ac_init_help"; then
1010
1011 cat <<\_ACEOF
1012
1013Optional Features:
1014 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1015 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001016 --enable-maintainer-mode enable make rules and dependencies not useful
1017 (and sometimes confusing) to the casual installer
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001018 --disable-dependency-tracking Speeds up one-time builds
1019 --enable-dependency-tracking Do not reject slow dependency extractors
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001020 --enable-shared=PKGS build shared libraries default=yes
1021 --enable-static=PKGS build static libraries default=yes
1022 --enable-fast-install=PKGS optimize for fast installation default=yes
1023 --disable-libtool-lock avoid locking (might break parallel builds)
1024 --enable-debug turn on debug support (slows down execution)
1025
1026Optional Packages:
1027 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1028 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1029 --with-gnu-ld assume the C compiler uses GNU ld default=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00001030 --with-pic try to use only PIC/non-PIC objects default=use both
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001031
1032Some influential environment variables:
1033 CC C compiler command
1034 CFLAGS C compiler flags
1035 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1036 nonstandard directory <lib dir>
1037 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038 headers in a nonstandard directory <include dir>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00001039 CXX C++ compiler command
1040 CXXFLAGS C++ compiler flags
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001041 CPP C preprocessor
1042
1043Use these variables to override the choices made by `configure' or to help
1044it to find libraries and programs with nonstandard names/locations.
1045
1046_ACEOF
1047fi
1048
1049if test "$ac_init_help" = "recursive"; then
1050 # If there are subdirs, report their specific --help.
1051 ac_popdir=`pwd`
1052 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1053 test -d $ac_dir || continue
1054 ac_builddir=.
1055
1056if test "$ac_dir" != .; then
1057 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1058 # A "../" for each directory in $ac_dir_suffix.
1059 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1060else
1061 ac_dir_suffix= ac_top_builddir=
1062fi
1063
1064case $srcdir in
1065 .) # No --srcdir option. We are building in place.
1066 ac_srcdir=.
1067 if test -z "$ac_top_builddir"; then
1068 ac_top_srcdir=.
1069 else
1070 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1071 fi ;;
1072 [\\/]* | ?:[\\/]* ) # Absolute path.
1073 ac_srcdir=$srcdir$ac_dir_suffix;
1074 ac_top_srcdir=$srcdir ;;
1075 *) # Relative path.
1076 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1077 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1078esac
1079# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1080# absolute.
1081ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1082ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1083ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1084ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1085
1086 cd $ac_dir
1087 # Check for guested configure; otherwise get Cygnus style configure.
1088 if test -f $ac_srcdir/configure.gnu; then
1089 echo
1090 $SHELL $ac_srcdir/configure.gnu --help=recursive
1091 elif test -f $ac_srcdir/configure; then
1092 echo
1093 $SHELL $ac_srcdir/configure --help=recursive
1094 elif test -f $ac_srcdir/configure.ac ||
1095 test -f $ac_srcdir/configure.in; then
1096 echo
1097 $ac_configure --help
1098 else
1099 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1100 fi
1101 cd $ac_popdir
1102 done
1103fi
1104
1105test -n "$ac_init_help" && exit 0
1106if $ac_init_version; then
1107 cat <<\_ACEOF
1108
1109Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1110Free Software Foundation, Inc.
1111This configure script is free software; the Free Software Foundation
1112gives unlimited permission to copy, distribute and modify it.
1113_ACEOF
1114 exit 0
1115fi
1116exec 5>config.log
1117cat >&5 <<_ACEOF
1118This file contains any messages produced by compilers while
1119running configure, to aid debugging if configure makes a mistake.
1120
1121It was created by $as_me, which was
mostang.com!davidma8db0b32003-02-08 10:10:59 +00001122generated by GNU Autoconf 2.54. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001123
1124 $ $0 $@
1125
1126_ACEOF
1127{
1128cat <<_ASUNAME
1129## --------- ##
1130## Platform. ##
1131## --------- ##
1132
1133hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1134uname -m = `(uname -m) 2>/dev/null || echo unknown`
1135uname -r = `(uname -r) 2>/dev/null || echo unknown`
1136uname -s = `(uname -s) 2>/dev/null || echo unknown`
1137uname -v = `(uname -v) 2>/dev/null || echo unknown`
1138
1139/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1140/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1141
1142/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1143/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1144/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1145hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1146/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1147/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1148/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1149
1150_ASUNAME
1151
1152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1153for as_dir in $PATH
1154do
1155 IFS=$as_save_IFS
1156 test -z "$as_dir" && as_dir=.
1157 echo "PATH: $as_dir"
1158done
1159
1160} >&5
1161
1162cat >&5 <<_ACEOF
1163
1164
1165## ----------- ##
1166## Core tests. ##
1167## ----------- ##
1168
1169_ACEOF
1170
1171
1172# Keep a trace of the command line.
1173# Strip out --no-create and --no-recursion so they do not pile up.
1174# Also quote any args containing shell meta-characters.
1175ac_configure_args=
1176ac_sep=
mostang.com!davidma8db0b32003-02-08 10:10:59 +00001177for ac_arg
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001178do
mostang.com!davidma8db0b32003-02-08 10:10:59 +00001179 case $ac_arg in
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n ) continue ;;
1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 continue ;;
1185 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1186 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1187 esac
1188 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1189 # Get rid of the leading space.
1190 ac_sep=" "
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001191done
1192
1193# When interrupted or exit'd, cleanup temporary files, and complete
1194# config.log. We remove comments because anyway the quotes in there
1195# would cause problems or look ugly.
1196# WARNING: Be sure not to use single quotes in there, as some shells,
1197# such as our DU 5.0 friend, will then `close' the trap.
1198trap 'exit_status=$?
1199 # Save into config.log some information that might help in debugging.
1200 {
1201 echo
1202
1203 cat <<\_ASBOX
1204## ---------------- ##
1205## Cache variables. ##
1206## ---------------- ##
1207_ASBOX
1208 echo
1209 # The following way of writing the cache mishandles newlines in values,
1210{
1211 (set) 2>&1 |
1212 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1213 *ac_space=\ *)
1214 sed -n \
1215 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1217 ;;
1218 *)
1219 sed -n \
1220 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1221 ;;
1222 esac;
1223}
1224 echo
1225
1226 cat <<\_ASBOX
1227## ----------------- ##
1228## Output variables. ##
1229## ----------------- ##
1230_ASBOX
1231 echo
1232 for ac_var in $ac_subst_vars
1233 do
1234 eval ac_val=$`echo $ac_var`
1235 echo "$ac_var='"'"'$ac_val'"'"'"
1236 done | sort
1237 echo
1238
1239 if test -n "$ac_subst_files"; then
1240 cat <<\_ASBOX
1241## ------------- ##
1242## Output files. ##
1243## ------------- ##
1244_ASBOX
1245 echo
1246 for ac_var in $ac_subst_files
1247 do
1248 eval ac_val=$`echo $ac_var`
1249 echo "$ac_var='"'"'$ac_val'"'"'"
1250 done | sort
1251 echo
1252 fi
1253
1254 if test -s confdefs.h; then
1255 cat <<\_ASBOX
1256## ----------- ##
1257## confdefs.h. ##
1258## ----------- ##
1259_ASBOX
1260 echo
1261 sed "/^$/d" confdefs.h | sort
1262 echo
1263 fi
1264 test "$ac_signal" != 0 &&
1265 echo "$as_me: caught signal $ac_signal"
1266 echo "$as_me: exit $exit_status"
1267 } >&5
1268 rm -f core core.* *.core &&
1269 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1270 exit $exit_status
1271 ' 0
1272for ac_signal in 1 2 13 15; do
1273 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1274done
1275ac_signal=0
1276
1277# confdefs.h avoids OS command line length limits that DEFS can exceed.
1278rm -rf conftest* confdefs.h
1279# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1280echo >confdefs.h
1281
1282# Predefined preprocessor variables.
1283
1284cat >>confdefs.h <<_ACEOF
1285#define PACKAGE_NAME "$PACKAGE_NAME"
1286_ACEOF
1287
1288
1289cat >>confdefs.h <<_ACEOF
1290#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1291_ACEOF
1292
1293
1294cat >>confdefs.h <<_ACEOF
1295#define PACKAGE_VERSION "$PACKAGE_VERSION"
1296_ACEOF
1297
1298
1299cat >>confdefs.h <<_ACEOF
1300#define PACKAGE_STRING "$PACKAGE_STRING"
1301_ACEOF
1302
1303
1304cat >>confdefs.h <<_ACEOF
1305#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1306_ACEOF
1307
1308
1309# Let the site file select an alternate cache file if it wants to.
1310# Prefer explicitly selected file to automatically selected ones.
1311if test -z "$CONFIG_SITE"; then
1312 if test "x$prefix" != xNONE; then
1313 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1314 else
1315 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1316 fi
1317fi
1318for ac_site_file in $CONFIG_SITE; do
1319 if test -r "$ac_site_file"; then
1320 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1321echo "$as_me: loading site script $ac_site_file" >&6;}
1322 sed 's/^/| /' "$ac_site_file" >&5
1323 . "$ac_site_file"
1324 fi
1325done
1326
1327if test -r "$cache_file"; then
1328 # Some versions of bash will fail to source /dev/null (special
1329 # files actually), so we avoid doing that.
1330 if test -f "$cache_file"; then
1331 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1332echo "$as_me: loading cache $cache_file" >&6;}
1333 case $cache_file in
1334 [\\/]* | ?:[\\/]* ) . $cache_file;;
1335 *) . ./$cache_file;;
1336 esac
1337 fi
1338else
1339 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1340echo "$as_me: creating cache $cache_file" >&6;}
1341 >$cache_file
1342fi
1343
1344# Check that the precious variables saved in the cache have kept the same
1345# value.
1346ac_cache_corrupted=false
1347for ac_var in `(set) 2>&1 |
1348 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1349 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1350 eval ac_new_set=\$ac_env_${ac_var}_set
1351 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1352 eval ac_new_val="\$ac_env_${ac_var}_value"
1353 case $ac_old_set,$ac_new_set in
1354 set,)
1355 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1356echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1357 ac_cache_corrupted=: ;;
1358 ,set)
1359 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1360echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1361 ac_cache_corrupted=: ;;
1362 ,);;
1363 *)
1364 if test "x$ac_old_val" != "x$ac_new_val"; then
1365 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1366echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1367 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1368echo "$as_me: former value: $ac_old_val" >&2;}
1369 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1370echo "$as_me: current value: $ac_new_val" >&2;}
1371 ac_cache_corrupted=:
1372 fi;;
1373 esac
1374 # Pass precious variables to config.status.
1375 if test "$ac_new_set" = set; then
1376 case $ac_new_val in
1377 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1378 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1379 *) ac_arg=$ac_var=$ac_new_val ;;
1380 esac
1381 case " $ac_configure_args " in
1382 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1383 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1384 esac
1385 fi
1386done
1387if $ac_cache_corrupted; then
1388 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1389echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1390 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1391echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1392 { (exit 1); exit 1; }; }
1393fi
1394
1395ac_ext=c
1396ac_cpp='$CPP $CPPFLAGS'
1397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1399ac_compiler_gnu=$ac_cv_c_compiler_gnu
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419ac_aux_dir=
1420for ac_dir in aux $srcdir/aux; do
1421 if test -f $ac_dir/install-sh; then
1422 ac_aux_dir=$ac_dir
1423 ac_install_sh="$ac_aux_dir/install-sh -c"
1424 break
1425 elif test -f $ac_dir/install.sh; then
1426 ac_aux_dir=$ac_dir
1427 ac_install_sh="$ac_aux_dir/install.sh -c"
1428 break
1429 elif test -f $ac_dir/shtool; then
1430 ac_aux_dir=$ac_dir
1431 ac_install_sh="$ac_aux_dir/shtool install -c"
1432 break
1433 fi
1434done
1435if test -z "$ac_aux_dir"; then
1436 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
1437echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
1438 { (exit 1); exit 1; }; }
1439fi
1440ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1441ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1442ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1443
1444# Make sure we can run config.sub.
1445$ac_config_sub sun4 >/dev/null 2>&1 ||
1446 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1447echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1448 { (exit 1); exit 1; }; }
1449
1450echo "$as_me:$LINENO: checking build system type" >&5
1451echo $ECHO_N "checking build system type... $ECHO_C" >&6
1452if test "${ac_cv_build+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1454else
1455 ac_cv_build_alias=$build_alias
1456test -z "$ac_cv_build_alias" &&
1457 ac_cv_build_alias=`$ac_config_guess`
1458test -z "$ac_cv_build_alias" &&
1459 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1460echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1461 { (exit 1); exit 1; }; }
1462ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1463 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1464echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1465 { (exit 1); exit 1; }; }
1466
1467fi
1468echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1469echo "${ECHO_T}$ac_cv_build" >&6
1470build=$ac_cv_build
1471build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1474
1475
1476echo "$as_me:$LINENO: checking host system type" >&5
1477echo $ECHO_N "checking host system type... $ECHO_C" >&6
1478if test "${ac_cv_host+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480else
1481 ac_cv_host_alias=$host_alias
1482test -z "$ac_cv_host_alias" &&
1483 ac_cv_host_alias=$ac_cv_build_alias
1484ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1485 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1486echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1487 { (exit 1); exit 1; }; }
1488
1489fi
1490echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1491echo "${ECHO_T}$ac_cv_host" >&6
1492host=$ac_cv_host
1493host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1494host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1495host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1496
1497
1498echo "$as_me:$LINENO: checking target system type" >&5
1499echo $ECHO_N "checking target system type... $ECHO_C" >&6
1500if test "${ac_cv_target+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1502else
1503 ac_cv_target_alias=$target_alias
1504test "x$ac_cv_target_alias" = "x" &&
1505 ac_cv_target_alias=$ac_cv_host_alias
1506ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1507 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1508echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1509 { (exit 1); exit 1; }; }
1510
1511fi
1512echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1513echo "${ECHO_T}$ac_cv_target" >&6
1514target=$ac_cv_target
1515target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1516target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1517target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1518
1519
1520# The aliases save the names the user supplied, while $host etc.
1521# will get canonicalized.
1522test -n "$target_alias" &&
1523 test "$program_prefix$program_suffix$program_transform_name" = \
1524 NONENONEs,x,x, &&
1525 program_prefix=${target_alias}-
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001526am__api_version="1.6"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001527# Find a good install program. We prefer a C program (faster),
1528# so one script is as good as another. But avoid the broken or
1529# incompatible versions:
1530# SysV /etc/install, /usr/sbin/install
1531# SunOS /usr/etc/install
1532# IRIX /sbin/install
1533# AIX /bin/install
1534# AmigaOS /C/install, which installs bootblocks on floppy discs
1535# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1536# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1537# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1538# ./install, which can be erroneously created by make from ./install.sh.
1539echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1540echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1541if test -z "$INSTALL"; then
1542if test "${ac_cv_path_install+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1544else
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546for as_dir in $PATH
1547do
1548 IFS=$as_save_IFS
1549 test -z "$as_dir" && as_dir=.
1550 # Account for people who put trailing slashes in PATH elements.
1551case $as_dir/ in
1552 ./ | .// | /cC/* | \
1553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1554 /usr/ucb/* ) ;;
1555 *)
1556 # OSF1 and SCO ODT 3.0 have their own names for install.
1557 # Don't use installbsd from OSF since it installs stuff as root
1558 # by default.
1559 for ac_prog in ginstall scoinst install; do
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1562 if test $ac_prog = install &&
1563 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1564 # AIX install. It has an incompatible calling convention.
1565 :
1566 elif test $ac_prog = install &&
1567 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568 # program-specific install script used by HP pwplus--don't use.
1569 :
1570 else
1571 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1572 break 3
1573 fi
1574 fi
1575 done
1576 done
1577 ;;
1578esac
1579done
1580
1581
1582fi
1583 if test "${ac_cv_path_install+set}" = set; then
1584 INSTALL=$ac_cv_path_install
1585 else
1586 # As a last resort, use the slow shell script. We don't cache a
1587 # path for INSTALL within a source directory, because that will
1588 # break other packages using the cache if that directory is
1589 # removed, or if the path is relative.
1590 INSTALL=$ac_install_sh
1591 fi
1592fi
1593echo "$as_me:$LINENO: result: $INSTALL" >&5
1594echo "${ECHO_T}$INSTALL" >&6
1595
1596# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1597# It thinks the first close brace ends the variable substitution.
1598test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1599
1600test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1601
1602test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1603
1604echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1605echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1606# Just in case
1607sleep 1
1608echo timestamp > conftest.file
1609# Do `set' in a subshell so we don't clobber the current shell's
1610# arguments. Must try -L first in case configure is actually a
1611# symlink; some systems play weird games with the mod time of symlinks
1612# (eg FreeBSD returns the mod time of the symlink's containing
1613# directory).
1614if (
1615 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1616 if test "$*" = "X"; then
1617 # -L didn't work.
1618 set X `ls -t $srcdir/configure conftest.file`
1619 fi
1620 rm -f conftest.file
1621 if test "$*" != "X $srcdir/configure conftest.file" \
1622 && test "$*" != "X conftest.file $srcdir/configure"; then
1623
1624 # If neither matched, then we have a broken ls. This can happen
1625 # if, for instance, CONFIG_SHELL is bash and it inherits a
1626 # broken ls alias from the environment. This has actually
1627 # happened. Such a system could not be considered "sane".
1628 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1629alias in your environment" >&5
1630echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1631alias in your environment" >&2;}
1632 { (exit 1); exit 1; }; }
1633 fi
1634
1635 test "$2" = conftest.file
1636 )
1637then
1638 # Ok.
1639 :
1640else
1641 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1642Check your system clock" >&5
1643echo "$as_me: error: newly created file is older than distributed files!
1644Check your system clock" >&2;}
1645 { (exit 1); exit 1; }; }
1646fi
1647echo "$as_me:$LINENO: result: yes" >&5
1648echo "${ECHO_T}yes" >&6
1649test "$program_prefix" != NONE &&
1650 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1651# Use a double $ so make ignores it.
1652test "$program_suffix" != NONE &&
1653 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1654# Double any \ or $. echo might interpret backslashes.
1655# By default was `s,x,x', remove it if useless.
1656cat <<\_ACEOF >conftest.sed
1657s/[\\$]/&&/g;s/;s,x,x,$//
1658_ACEOF
1659program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1660rm conftest.sed
1661
1662
1663# expand $ac_aux_dir to an absolute path
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001664am_aux_dir=`cd $ac_aux_dir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001665
1666test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1667# Use eval to expand $SHELL
1668if eval "$MISSING --run true"; then
1669 am_missing_run="$MISSING --run "
1670else
1671 am_missing_run=
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001672 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1673echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001674fi
1675
1676for ac_prog in gawk mawk nawk awk
1677do
1678 # Extract the first word of "$ac_prog", so it can be a program name with args.
1679set dummy $ac_prog; ac_word=$2
1680echo "$as_me:$LINENO: checking for $ac_word" >&5
1681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682if test "${ac_cv_prog_AWK+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684else
1685 if test -n "$AWK"; then
1686 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1687else
1688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_AWK="$ac_prog"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 break 2
1698 fi
1699done
1700done
1701
1702fi
1703fi
1704AWK=$ac_cv_prog_AWK
1705if test -n "$AWK"; then
1706 echo "$as_me:$LINENO: result: $AWK" >&5
1707echo "${ECHO_T}$AWK" >&6
1708else
1709 echo "$as_me:$LINENO: result: no" >&5
1710echo "${ECHO_T}no" >&6
1711fi
1712
1713 test -n "$AWK" && break
1714done
1715
mostang.com!davidma8db0b32003-02-08 10:10:59 +00001716echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1717echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001718set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1719if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1721else
1722 cat >conftest.make <<\_ACEOF
1723all:
mostang.com!davidma8db0b32003-02-08 10:10:59 +00001724 @echo 'ac_maketemp="${MAKE}"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001725_ACEOF
1726# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1727eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1728if test -n "$ac_maketemp"; then
1729 eval ac_cv_prog_make_${ac_make}_set=yes
1730else
1731 eval ac_cv_prog_make_${ac_make}_set=no
1732fi
1733rm -f conftest.make
1734fi
1735if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1736 echo "$as_me:$LINENO: result: yes" >&5
1737echo "${ECHO_T}yes" >&6
1738 SET_MAKE=
1739else
1740 echo "$as_me:$LINENO: result: no" >&5
1741echo "${ECHO_T}no" >&6
1742 SET_MAKE="MAKE=${MAKE-make}"
1743fi
1744
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001745 # test to see if srcdir already configured
1746if test "`cd $srcdir && pwd`" != "`pwd`" &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001747 test -f $srcdir/config.status; then
1748 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1749echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1750 { (exit 1); exit 1; }; }
1751fi
1752
1753# Define the identity of the package.
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001754 PACKAGE=libunwind
mostang.com!davidm46149fd2003-03-31 18:16:54 +00001755 VERSION=0.92
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001756
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001757
1758cat >>confdefs.h <<_ACEOF
1759#define PACKAGE "$PACKAGE"
1760_ACEOF
1761
1762
1763cat >>confdefs.h <<_ACEOF
1764#define VERSION "$VERSION"
1765_ACEOF
1766
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001767# Some tools Automake needs.
1768
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001769ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001770
1771
1772AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1773
1774
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001775AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001776
1777
1778AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1779
1780
1781MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1782
1783
1784AMTAR=${AMTAR-"${am_missing_run}tar"}
1785
1786install_sh=${install_sh-"$am_aux_dir/install-sh"}
1787
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001788# Installed binaries are usually stripped using `strip' when the user
1789# run `make install-strip'. However `strip' might not be the right
1790# tool to use in cross-compilation environments, therefore Automake
1791# will honor the `STRIP' environment variable to overrule this program.
1792if test "$cross_compiling" != no; then
1793 if test -n "$ac_tool_prefix"; then
1794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1795set dummy ${ac_tool_prefix}strip; ac_word=$2
1796echo "$as_me:$LINENO: checking for $ac_word" >&5
1797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1798if test "${ac_cv_prog_STRIP+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800else
1801 if test -n "$STRIP"; then
1802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1803else
1804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805for as_dir in $PATH
1806do
1807 IFS=$as_save_IFS
1808 test -z "$as_dir" && as_dir=.
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 break 2
1814 fi
1815done
1816done
1817
1818fi
1819fi
1820STRIP=$ac_cv_prog_STRIP
1821if test -n "$STRIP"; then
1822 echo "$as_me:$LINENO: result: $STRIP" >&5
1823echo "${ECHO_T}$STRIP" >&6
1824else
1825 echo "$as_me:$LINENO: result: no" >&5
1826echo "${ECHO_T}no" >&6
1827fi
1828
1829fi
1830if test -z "$ac_cv_prog_STRIP"; then
1831 ac_ct_STRIP=$STRIP
1832 # Extract the first word of "strip", so it can be a program name with args.
1833set dummy strip; ac_word=$2
1834echo "$as_me:$LINENO: checking for $ac_word" >&5
1835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838else
1839 if test -n "$ac_ct_STRIP"; then
1840 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1841else
1842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843for as_dir in $PATH
1844do
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_ac_ct_STRIP="strip"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 break 2
1852 fi
1853done
1854done
1855
1856 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1857fi
1858fi
1859ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1860if test -n "$ac_ct_STRIP"; then
1861 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1862echo "${ECHO_T}$ac_ct_STRIP" >&6
1863else
1864 echo "$as_me:$LINENO: result: no" >&5
1865echo "${ECHO_T}no" >&6
1866fi
1867
1868 STRIP=$ac_ct_STRIP
1869else
1870 STRIP="$ac_cv_prog_STRIP"
1871fi
1872
1873fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001874INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1875
1876# We need awk for the "check" target. The system "awk" is bad on
1877# some platforms.
1878
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001879
1880
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001881echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1882echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1883 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1884if test "${enable_maintainer_mode+set}" = set; then
1885 enableval="$enable_maintainer_mode"
1886 USE_MAINTAINER_MODE=$enableval
1887else
1888 USE_MAINTAINER_MODE=no
1889fi;
1890 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1891echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1892
1893
1894if test $USE_MAINTAINER_MODE = yes; then
1895 MAINTAINER_MODE_TRUE=
1896 MAINTAINER_MODE_FALSE='#'
1897else
1898 MAINTAINER_MODE_TRUE='#'
1899 MAINTAINER_MODE_FALSE=
1900fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001901
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001902 MAINT=$MAINTAINER_MODE_TRUE
1903
1904
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001905# Add the stamp file to the list of files AC keeps track of,
1906# along with our hook.
1907 ac_config_headers="$ac_config_headers include/config.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001908
1909
1910
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001911
1912ac_ext=c
1913ac_cpp='$CPP $CPPFLAGS'
1914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1916ac_compiler_gnu=$ac_cv_c_compiler_gnu
1917if test -n "$ac_tool_prefix"; then
1918 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1919set dummy ${ac_tool_prefix}gcc; ac_word=$2
1920echo "$as_me:$LINENO: checking for $ac_word" >&5
1921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922if test "${ac_cv_prog_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925 if test -n "$CC"; then
1926 ac_cv_prog_CC="$CC" # Let the user override the test.
1927else
1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931 IFS=$as_save_IFS
1932 test -z "$as_dir" && as_dir=.
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1935 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 break 2
1938 fi
1939done
1940done
1941
1942fi
1943fi
1944CC=$ac_cv_prog_CC
1945if test -n "$CC"; then
1946 echo "$as_me:$LINENO: result: $CC" >&5
1947echo "${ECHO_T}$CC" >&6
1948else
1949 echo "$as_me:$LINENO: result: no" >&5
1950echo "${ECHO_T}no" >&6
1951fi
1952
1953fi
1954if test -z "$ac_cv_prog_CC"; then
1955 ac_ct_CC=$CC
1956 # Extract the first word of "gcc", so it can be a program name with args.
1957set dummy gcc; ac_word=$2
1958echo "$as_me:$LINENO: checking for $ac_word" >&5
1959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962else
1963 if test -n "$ac_ct_CC"; then
1964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1965else
1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967for as_dir in $PATH
1968do
1969 IFS=$as_save_IFS
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973 ac_cv_prog_ac_ct_CC="gcc"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 break 2
1976 fi
1977done
1978done
1979
1980fi
1981fi
1982ac_ct_CC=$ac_cv_prog_ac_ct_CC
1983if test -n "$ac_ct_CC"; then
1984 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1985echo "${ECHO_T}$ac_ct_CC" >&6
1986else
1987 echo "$as_me:$LINENO: result: no" >&5
1988echo "${ECHO_T}no" >&6
1989fi
1990
1991 CC=$ac_ct_CC
1992else
1993 CC="$ac_cv_prog_CC"
1994fi
1995
1996if test -z "$CC"; then
1997 if test -n "$ac_tool_prefix"; then
1998 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1999set dummy ${ac_tool_prefix}cc; ac_word=$2
2000echo "$as_me:$LINENO: checking for $ac_word" >&5
2001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002if test "${ac_cv_prog_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
2007else
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015 ac_cv_prog_CC="${ac_tool_prefix}cc"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 break 2
2018 fi
2019done
2020done
2021
2022fi
2023fi
2024CC=$ac_cv_prog_CC
2025if test -n "$CC"; then
2026 echo "$as_me:$LINENO: result: $CC" >&5
2027echo "${ECHO_T}$CC" >&6
2028else
2029 echo "$as_me:$LINENO: result: no" >&5
2030echo "${ECHO_T}no" >&6
2031fi
2032
2033fi
2034if test -z "$ac_cv_prog_CC"; then
2035 ac_ct_CC=$CC
2036 # Extract the first word of "cc", so it can be a program name with args.
2037set dummy cc; ac_word=$2
2038echo "$as_me:$LINENO: checking for $ac_word" >&5
2039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045else
2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC="cc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2056 fi
2057done
2058done
2059
2060fi
2061fi
2062ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065echo "${ECHO_T}$ac_ct_CC" >&6
2066else
2067 echo "$as_me:$LINENO: result: no" >&5
2068echo "${ECHO_T}no" >&6
2069fi
2070
2071 CC=$ac_ct_CC
2072else
2073 CC="$ac_cv_prog_CC"
2074fi
2075
2076fi
2077if test -z "$CC"; then
2078 # Extract the first word of "cc", so it can be a program name with args.
2079set dummy cc; ac_word=$2
2080echo "$as_me:$LINENO: checking for $ac_word" >&5
2081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082if test "${ac_cv_prog_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084else
2085 if test -n "$CC"; then
2086 ac_cv_prog_CC="$CC" # Let the user override the test.
2087else
2088 ac_prog_rejected=no
2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090for as_dir in $PATH
2091do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2097 ac_prog_rejected=yes
2098 continue
2099 fi
2100 ac_cv_prog_CC="cc"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 break 2
2103 fi
2104done
2105done
2106
2107if test $ac_prog_rejected = yes; then
2108 # We found a bogon in the path, so make sure we never use it.
2109 set dummy $ac_cv_prog_CC
2110 shift
2111 if test $# != 0; then
2112 # We chose a different compiler from the bogus one.
2113 # However, it has the same basename, so the bogon will be chosen
2114 # first if we set CC to just the basename; use the full file name.
2115 shift
2116 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2117 fi
2118fi
2119fi
2120fi
2121CC=$ac_cv_prog_CC
2122if test -n "$CC"; then
2123 echo "$as_me:$LINENO: result: $CC" >&5
2124echo "${ECHO_T}$CC" >&6
2125else
2126 echo "$as_me:$LINENO: result: no" >&5
2127echo "${ECHO_T}no" >&6
2128fi
2129
2130fi
2131if test -z "$CC"; then
2132 if test -n "$ac_tool_prefix"; then
2133 for ac_prog in cl
2134 do
2135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2136set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2137echo "$as_me:$LINENO: checking for $ac_word" >&5
2138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2139if test "${ac_cv_prog_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141else
2142 if test -n "$CC"; then
2143 ac_cv_prog_CC="$CC" # Let the user override the test.
2144else
2145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146for as_dir in $PATH
2147do
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2152 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 break 2
2155 fi
2156done
2157done
2158
2159fi
2160fi
2161CC=$ac_cv_prog_CC
2162if test -n "$CC"; then
2163 echo "$as_me:$LINENO: result: $CC" >&5
2164echo "${ECHO_T}$CC" >&6
2165else
2166 echo "$as_me:$LINENO: result: no" >&5
2167echo "${ECHO_T}no" >&6
2168fi
2169
2170 test -n "$CC" && break
2171 done
2172fi
2173if test -z "$CC"; then
2174 ac_ct_CC=$CC
2175 for ac_prog in cl
2176do
2177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2178set dummy $ac_prog; ac_word=$2
2179echo "$as_me:$LINENO: checking for $ac_word" >&5
2180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2181if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
2184 if test -n "$ac_ct_CC"; then
2185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2186else
2187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188for as_dir in $PATH
2189do
2190 IFS=$as_save_IFS
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2194 ac_cv_prog_ac_ct_CC="$ac_prog"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2197 fi
2198done
2199done
2200
2201fi
2202fi
2203ac_ct_CC=$ac_cv_prog_ac_ct_CC
2204if test -n "$ac_ct_CC"; then
2205 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2206echo "${ECHO_T}$ac_ct_CC" >&6
2207else
2208 echo "$as_me:$LINENO: result: no" >&5
2209echo "${ECHO_T}no" >&6
2210fi
2211
2212 test -n "$ac_ct_CC" && break
2213done
2214
2215 CC=$ac_ct_CC
2216fi
2217
2218fi
2219
2220
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002221test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2222echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002223 { (exit 1); exit 1; }; }
2224
2225# Provide some information about the compiler.
2226echo "$as_me:$LINENO:" \
2227 "checking for C compiler version" >&5
2228ac_compiler=`set X $ac_compile; echo $2`
2229{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2230 (eval $ac_compiler --version </dev/null >&5) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }
2234{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2235 (eval $ac_compiler -v </dev/null >&5) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }
2239{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2240 (eval $ac_compiler -V </dev/null >&5) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }
2244
2245cat >conftest.$ac_ext <<_ACEOF
2246#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002247#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002248
2249int
2250main ()
2251{
2252
2253 ;
2254 return 0;
2255}
2256_ACEOF
2257ac_clean_files_save=$ac_clean_files
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002258ac_clean_files="$ac_clean_files a.out a.exe"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002259# Try to create an executable without -o first, disregard a.out.
2260# It will help us diagnose broken compilers, and finding out an intuition
2261# of exeext.
2262echo "$as_me:$LINENO: checking for C compiler default output" >&5
2263echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2264ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2265if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2266 (eval $ac_link_default) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; then
2270 # Find the output, starting from the most likely. This scheme is
2271# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2272# resort.
2273
2274# Be careful to initialize this variable, since it used to be cached.
2275# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2276ac_cv_exeext=
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002277for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002278 test -f "$ac_file" || continue
2279 case $ac_file in
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2281 a.out ) # We found the default executable, but exeext='' is most
2282 # certainly right.
2283 break;;
2284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2286 export ac_cv_exeext
2287 break;;
2288 * ) break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002289 esac
2290done
2291else
2292 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002293cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002294{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002295check \`config.log' for details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002296echo "$as_me: error: C compiler cannot create executables
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002297check \`config.log' for details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002298 { (exit 77); exit 77; }; }
2299fi
2300
2301ac_exeext=$ac_cv_exeext
2302echo "$as_me:$LINENO: result: $ac_file" >&5
2303echo "${ECHO_T}$ac_file" >&6
2304
2305# Check the compiler produces executables we can run. If not, either
2306# the compiler is broken, or we cross compile.
2307echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2308echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2309# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2310# If not cross compiling, check that we can run a simple program.
2311if test "$cross_compiling" != yes; then
2312 if { ac_try='./$ac_file'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 cross_compiling=no
2319 else
2320 if test "$cross_compiling" = maybe; then
2321 cross_compiling=yes
2322 else
2323 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002324If you meant to cross compile, use \`--host'." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002325echo "$as_me: error: cannot run C compiled programs.
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002326If you meant to cross compile, use \`--host'." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002327 { (exit 1); exit 1; }; }
2328 fi
2329 fi
2330fi
2331echo "$as_me:$LINENO: result: yes" >&5
2332echo "${ECHO_T}yes" >&6
2333
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002334rm -f a.out a.exe conftest$ac_cv_exeext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002335ac_clean_files=$ac_clean_files_save
2336# Check the compiler produces executables we can run. If not, either
2337# the compiler is broken, or we cross compile.
2338echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2339echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2340echo "$as_me:$LINENO: result: $cross_compiling" >&5
2341echo "${ECHO_T}$cross_compiling" >&6
2342
2343echo "$as_me:$LINENO: checking for suffix of executables" >&5
2344echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2346 (eval $ac_link) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; then
2350 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2351# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2352# work properly (i.e., refer to `conftest.exe'), while it won't with
2353# `rm'.
2354for ac_file in conftest.exe conftest conftest.*; do
2355 test -f "$ac_file" || continue
2356 case $ac_file in
2357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2358 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2359 export ac_cv_exeext
2360 break;;
2361 * ) break;;
2362 esac
2363done
2364else
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002365 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2366echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002367 { (exit 1); exit 1; }; }
2368fi
2369
2370rm -f conftest$ac_cv_exeext
2371echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2372echo "${ECHO_T}$ac_cv_exeext" >&6
2373
2374rm -f conftest.$ac_ext
2375EXEEXT=$ac_cv_exeext
2376ac_exeext=$EXEEXT
2377echo "$as_me:$LINENO: checking for suffix of object files" >&5
2378echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2379if test "${ac_cv_objext+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381else
2382 cat >conftest.$ac_ext <<_ACEOF
2383#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002384#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002385
2386int
2387main ()
2388{
2389
2390 ;
2391 return 0;
2392}
2393_ACEOF
2394rm -f conftest.o conftest.obj
2395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396 (eval $ac_compile) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; then
2400 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2401 case $ac_file in
2402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2403 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2404 break;;
2405 esac
2406done
2407else
2408 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002409cat conftest.$ac_ext >&5
2410{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2411echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002412 { (exit 1); exit 1; }; }
2413fi
2414
2415rm -f conftest.$ac_cv_objext conftest.$ac_ext
2416fi
2417echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2418echo "${ECHO_T}$ac_cv_objext" >&6
2419OBJEXT=$ac_cv_objext
2420ac_objext=$OBJEXT
2421echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2422echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2423if test "${ac_cv_c_compiler_gnu+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2425else
2426 cat >conftest.$ac_ext <<_ACEOF
2427#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002428#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002429
2430int
2431main ()
2432{
2433#ifndef __GNUC__
2434 choke me
2435#endif
2436
2437 ;
2438 return 0;
2439}
2440_ACEOF
2441rm -f conftest.$ac_objext
2442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443 (eval $ac_compile) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
2447 { ac_try='test -s conftest.$ac_objext'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 (eval $ac_try) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2453 ac_compiler_gnu=yes
2454else
2455 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002456cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002457ac_compiler_gnu=no
2458fi
2459rm -f conftest.$ac_objext conftest.$ac_ext
2460ac_cv_c_compiler_gnu=$ac_compiler_gnu
2461
2462fi
2463echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2464echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2465GCC=`test $ac_compiler_gnu = yes && echo yes`
2466ac_test_CFLAGS=${CFLAGS+set}
2467ac_save_CFLAGS=$CFLAGS
2468CFLAGS="-g"
2469echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2470echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2471if test "${ac_cv_prog_cc_g+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474 cat >conftest.$ac_ext <<_ACEOF
2475#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002476#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002477
2478int
2479main ()
2480{
2481
2482 ;
2483 return 0;
2484}
2485_ACEOF
2486rm -f conftest.$ac_objext
2487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); } &&
2492 { ac_try='test -s conftest.$ac_objext'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 (eval $ac_try) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2498 ac_cv_prog_cc_g=yes
2499else
2500 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002501cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002502ac_cv_prog_cc_g=no
2503fi
2504rm -f conftest.$ac_objext conftest.$ac_ext
2505fi
2506echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2507echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2508if test "$ac_test_CFLAGS" = set; then
2509 CFLAGS=$ac_save_CFLAGS
2510elif test $ac_cv_prog_cc_g = yes; then
2511 if test "$GCC" = yes; then
2512 CFLAGS="-g -O2"
2513 else
2514 CFLAGS="-g"
2515 fi
2516else
2517 if test "$GCC" = yes; then
2518 CFLAGS="-O2"
2519 else
2520 CFLAGS=
2521 fi
2522fi
2523echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2524echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2525if test "${ac_cv_prog_cc_stdc+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
2528 ac_cv_prog_cc_stdc=no
2529ac_save_CC=$CC
2530cat >conftest.$ac_ext <<_ACEOF
2531#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002532#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002533#include <stdarg.h>
2534#include <stdio.h>
2535#include <sys/types.h>
2536#include <sys/stat.h>
2537/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2538struct buf { int x; };
2539FILE * (*rcsopen) (struct buf *, struct stat *, int);
2540static char *e (p, i)
2541 char **p;
2542 int i;
2543{
2544 return p[i];
2545}
2546static char *f (char * (*g) (char **, int), char **p, ...)
2547{
2548 char *s;
2549 va_list v;
2550 va_start (v,p);
2551 s = g (p, va_arg (v,int));
2552 va_end (v);
2553 return s;
2554}
2555int test (int i, double x);
2556struct s1 {int (*f) (int a);};
2557struct s2 {int (*f) (double a);};
2558int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2559int argc;
2560char **argv;
2561int
2562main ()
2563{
2564return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2565 ;
2566 return 0;
2567}
2568_ACEOF
2569# Don't try gcc -ansi; that turns off useful extensions and
2570# breaks some systems' header files.
2571# AIX -qlanglvl=ansi
2572# Ultrix and OSF/1 -std1
2573# HP-UX 10.20 and later -Ae
2574# HP-UX older versions -Aa -D_HPUX_SOURCE
2575# SVR4 -Xc -D__EXTENSIONS__
2576for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2577do
2578 CC="$ac_save_CC $ac_arg"
2579 rm -f conftest.$ac_objext
2580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_cv_prog_cc_stdc=$ac_arg
2592break
2593else
2594 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002595cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002596fi
2597rm -f conftest.$ac_objext
2598done
2599rm -f conftest.$ac_ext conftest.$ac_objext
2600CC=$ac_save_CC
2601
2602fi
2603
2604case "x$ac_cv_prog_cc_stdc" in
2605 x|xno)
2606 echo "$as_me:$LINENO: result: none needed" >&5
2607echo "${ECHO_T}none needed" >&6 ;;
2608 *)
2609 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2610echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2611 CC="$CC $ac_cv_prog_cc_stdc" ;;
2612esac
2613
2614# Some people use a C++ compiler to compile C. Since we use `exit',
2615# in C++ we need to declare it. In case someone uses the same compiler
2616# for both compiling C and C++ we need to have the C++ compiler decide
2617# the declaration of exit, since it's the most demanding environment.
2618cat >conftest.$ac_ext <<_ACEOF
2619#ifndef __cplusplus
2620 choke me
2621#endif
2622_ACEOF
2623rm -f conftest.$ac_objext
2624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625 (eval $ac_compile) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -s conftest.$ac_objext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 for ac_declaration in \
2636 ''\
2637 '#include <stdlib.h>' \
2638 'extern "C" void std::exit (int) throw (); using std::exit;' \
2639 'extern "C" void std::exit (int); using std::exit;' \
2640 'extern "C" void exit (int) throw ();' \
2641 'extern "C" void exit (int);' \
2642 'void exit (int);'
2643do
2644 cat >conftest.$ac_ext <<_ACEOF
2645#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002646#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002647#include <stdlib.h>
2648$ac_declaration
2649int
2650main ()
2651{
2652exit (42);
2653 ;
2654 return 0;
2655}
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 :
2670else
2671 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002672cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002673continue
2674fi
2675rm -f conftest.$ac_objext conftest.$ac_ext
2676 cat >conftest.$ac_ext <<_ACEOF
2677#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002678#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002679$ac_declaration
2680int
2681main ()
2682{
2683exit (42);
2684 ;
2685 return 0;
2686}
2687_ACEOF
2688rm -f conftest.$ac_objext
2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } &&
2694 { ac_try='test -s conftest.$ac_objext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2700 break
2701else
2702 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002703cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002704fi
2705rm -f conftest.$ac_objext conftest.$ac_ext
2706done
2707rm -f conftest*
2708if test -n "$ac_declaration"; then
2709 echo '#ifdef __cplusplus' >>confdefs.h
2710 echo $ac_declaration >>confdefs.h
2711 echo '#endif' >>confdefs.h
2712fi
2713
2714else
2715 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002716cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002717fi
2718rm -f conftest.$ac_objext conftest.$ac_ext
2719ac_ext=c
2720ac_cpp='$CPP $CPPFLAGS'
2721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002724rm -f .deps 2>/dev/null
2725mkdir .deps 2>/dev/null
2726if test -d .deps; then
2727 DEPDIR=.deps
2728else
2729 # MS-DOS does not allow filenames that begin with a dot.
2730 DEPDIR=_deps
2731fi
2732rmdir .deps 2>/dev/null
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002733
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002734
2735 ac_config_commands="$ac_config_commands depfiles"
2736
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002737
2738am_make=${MAKE-make}
2739cat > confinc << 'END'
2740doit:
2741 @echo done
2742END
2743# If we don't find an include directive, just comment out the code.
2744echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2745echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002746am__include="#"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002747am__quote=
2748_am_result=none
2749# First try GNU make style include.
2750echo "include confinc" > confmf
2751# We grep out `Entering directory' and `Leaving directory'
2752# messages which can occur if `w' ends up in MAKEFLAGS.
2753# In particular we don't look at `^make:' because GNU make might
2754# be invoked under some other name (usually "gmake"), in which
2755# case it prints its new name instead of `make'.
2756if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2757 am__include=include
2758 am__quote=
2759 _am_result=GNU
2760fi
2761# Now try BSD make style include.
2762if test "$am__include" = "#"; then
2763 echo '.include "confinc"' > confmf
2764 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2765 am__include=.include
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002766 am__quote="\""
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002767 _am_result=BSD
2768 fi
2769fi
2770
2771
2772echo "$as_me:$LINENO: result: $_am_result" >&5
2773echo "${ECHO_T}$_am_result" >&6
2774rm -f confinc confmf
2775
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002776# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2777if test "${enable_dependency_tracking+set}" = set; then
2778 enableval="$enable_dependency_tracking"
2779
2780fi;
2781if test "x$enable_dependency_tracking" != xno; then
2782 am_depcomp="$ac_aux_dir/depcomp"
2783 AMDEPBACKSLASH='\'
2784fi
2785
2786
2787if test "x$enable_dependency_tracking" != xno; then
2788 AMDEP_TRUE=
2789 AMDEP_FALSE='#'
2790else
2791 AMDEP_TRUE='#'
2792 AMDEP_FALSE=
2793fi
2794
2795
2796
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002797
2798depcc="$CC" am_compiler_list=
2799
2800echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2801echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2802if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2804else
2805 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2806 # We make a subdir and do the tests there. Otherwise we can end up
2807 # making bogus files that we don't know about and never remove. For
2808 # instance it was reported that on HP-UX the gcc test will end up
2809 # making a dummy file named `D' -- because `-MD' means `put the output
2810 # in D'.
2811 mkdir conftest.dir
2812 # Copy depcomp to subdir because otherwise we won't find it if we're
2813 # using a relative directory.
2814 cp "$am_depcomp" conftest.dir
2815 cd conftest.dir
2816
2817 am_cv_CC_dependencies_compiler_type=none
2818 if test "$am_compiler_list" = ""; then
2819 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2820 fi
2821 for depmode in $am_compiler_list; do
2822 # We need to recreate these files for each test, as the compiler may
2823 # overwrite some of them when testing with obscure command lines.
2824 # This happens at least with the AIX C compiler.
2825 echo '#include "conftest.h"' > conftest.c
2826 echo 'int i;' > conftest.h
2827 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2828
2829 case $depmode in
2830 nosideeffect)
2831 # after this tag, mechanisms are not by side-effect, so they'll
2832 # only be used when explicitly requested
2833 if test "x$enable_dependency_tracking" = xyes; then
2834 continue
2835 else
2836 break
2837 fi
2838 ;;
2839 none) break ;;
2840 esac
2841 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2842 # mode. It turns out that the SunPro C++ compiler does not properly
2843 # handle `-M -o', and we need to detect this.
2844 if depmode=$depmode \
2845 source=conftest.c object=conftest.o \
2846 depfile=conftest.Po tmpdepfile=conftest.TPo \
2847 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2848 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2849 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2850 am_cv_CC_dependencies_compiler_type=$depmode
2851 break
2852 fi
2853 done
2854
2855 cd ..
2856 rm -rf conftest.dir
2857else
2858 am_cv_CC_dependencies_compiler_type=none
2859fi
2860
2861fi
2862echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2863echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002864CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002865
2866
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00002867ac_ext=cc
2868ac_cpp='$CXXCPP $CPPFLAGS'
2869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2872if test -n "$ac_tool_prefix"; then
2873 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2874 do
2875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877echo "$as_me:$LINENO: checking for $ac_word" >&5
2878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879if test "${ac_cv_prog_CXX+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882 if test -n "$CXX"; then
2883 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896done
2897done
2898
2899fi
2900fi
2901CXX=$ac_cv_prog_CXX
2902if test -n "$CXX"; then
2903 echo "$as_me:$LINENO: result: $CXX" >&5
2904echo "${ECHO_T}$CXX" >&6
2905else
2906 echo "$as_me:$LINENO: result: no" >&5
2907echo "${ECHO_T}no" >&6
2908fi
2909
2910 test -n "$CXX" && break
2911 done
2912fi
2913if test -z "$CXX"; then
2914 ac_ct_CXX=$CXX
2915 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2916do
2917 # Extract the first word of "$ac_prog", so it can be a program name with args.
2918set dummy $ac_prog; ac_word=$2
2919echo "$as_me:$LINENO: checking for $ac_word" >&5
2920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923else
2924 if test -n "$ac_ct_CXX"; then
2925 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2926else
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_ac_ct_CXX="$ac_prog"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2937 fi
2938done
2939done
2940
2941fi
2942fi
2943ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2944if test -n "$ac_ct_CXX"; then
2945 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2946echo "${ECHO_T}$ac_ct_CXX" >&6
2947else
2948 echo "$as_me:$LINENO: result: no" >&5
2949echo "${ECHO_T}no" >&6
2950fi
2951
2952 test -n "$ac_ct_CXX" && break
2953done
2954test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2955
2956 CXX=$ac_ct_CXX
2957fi
2958
2959
2960# Provide some information about the compiler.
2961echo "$as_me:$LINENO:" \
2962 "checking for C++ compiler version" >&5
2963ac_compiler=`set X $ac_compile; echo $2`
2964{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2965 (eval $ac_compiler --version </dev/null >&5) 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }
2969{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2970 (eval $ac_compiler -v </dev/null >&5) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }
2974{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2975 (eval $ac_compiler -V </dev/null >&5) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
2979
2980echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2981echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2982if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984else
2985 cat >conftest.$ac_ext <<_ACEOF
2986#line $LINENO "configure"
2987#include "confdefs.h"
2988
2989int
2990main ()
2991{
2992#ifndef __GNUC__
2993 choke me
2994#endif
2995
2996 ;
2997 return 0;
2998}
2999_ACEOF
3000rm -f conftest.$ac_objext
3001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3002 (eval $ac_compile) 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -s conftest.$ac_objext'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 (eval $ac_try) 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 ac_compiler_gnu=yes
3013else
3014 echo "$as_me: failed program was:" >&5
3015cat conftest.$ac_ext >&5
3016ac_compiler_gnu=no
3017fi
3018rm -f conftest.$ac_objext conftest.$ac_ext
3019ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3020
3021fi
3022echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3023echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3024GXX=`test $ac_compiler_gnu = yes && echo yes`
3025ac_test_CXXFLAGS=${CXXFLAGS+set}
3026ac_save_CXXFLAGS=$CXXFLAGS
3027CXXFLAGS="-g"
3028echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3029echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3030if test "${ac_cv_prog_cxx_g+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032else
3033 cat >conftest.$ac_ext <<_ACEOF
3034#line $LINENO "configure"
3035#include "confdefs.h"
3036
3037int
3038main ()
3039{
3040
3041 ;
3042 return 0;
3043}
3044_ACEOF
3045rm -f conftest.$ac_objext
3046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3047 (eval $ac_compile) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 ac_cv_prog_cxx_g=yes
3058else
3059 echo "$as_me: failed program was:" >&5
3060cat conftest.$ac_ext >&5
3061ac_cv_prog_cxx_g=no
3062fi
3063rm -f conftest.$ac_objext conftest.$ac_ext
3064fi
3065echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3066echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3067if test "$ac_test_CXXFLAGS" = set; then
3068 CXXFLAGS=$ac_save_CXXFLAGS
3069elif test $ac_cv_prog_cxx_g = yes; then
3070 if test "$GXX" = yes; then
3071 CXXFLAGS="-g -O2"
3072 else
3073 CXXFLAGS="-g"
3074 fi
3075else
3076 if test "$GXX" = yes; then
3077 CXXFLAGS="-O2"
3078 else
3079 CXXFLAGS=
3080 fi
3081fi
3082for ac_declaration in \
3083 ''\
3084 '#include <stdlib.h>' \
3085 'extern "C" void std::exit (int) throw (); using std::exit;' \
3086 'extern "C" void std::exit (int); using std::exit;' \
3087 'extern "C" void exit (int) throw ();' \
3088 'extern "C" void exit (int);' \
3089 'void exit (int);'
3090do
3091 cat >conftest.$ac_ext <<_ACEOF
3092#line $LINENO "configure"
3093#include "confdefs.h"
3094#include <stdlib.h>
3095$ac_declaration
3096int
3097main ()
3098{
3099exit (42);
3100 ;
3101 return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext
3105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3106 (eval $ac_compile) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112 (eval $ac_try) 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 :
3117else
3118 echo "$as_me: failed program was:" >&5
3119cat conftest.$ac_ext >&5
3120continue
3121fi
3122rm -f conftest.$ac_objext conftest.$ac_ext
3123 cat >conftest.$ac_ext <<_ACEOF
3124#line $LINENO "configure"
3125#include "confdefs.h"
3126$ac_declaration
3127int
3128main ()
3129{
3130exit (42);
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
3136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137 (eval $ac_compile) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 (eval $ac_try) 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 break
3148else
3149 echo "$as_me: failed program was:" >&5
3150cat conftest.$ac_ext >&5
3151fi
3152rm -f conftest.$ac_objext conftest.$ac_ext
3153done
3154rm -f conftest*
3155if test -n "$ac_declaration"; then
3156 echo '#ifdef __cplusplus' >>confdefs.h
3157 echo $ac_declaration >>confdefs.h
3158 echo '#endif' >>confdefs.h
3159fi
3160
3161ac_ext=c
3162ac_cpp='$CPP $CPPFLAGS'
3163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166
3167depcc="$CXX" am_compiler_list=
3168
3169echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3170echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3171if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3175 # We make a subdir and do the tests there. Otherwise we can end up
3176 # making bogus files that we don't know about and never remove. For
3177 # instance it was reported that on HP-UX the gcc test will end up
3178 # making a dummy file named `D' -- because `-MD' means `put the output
3179 # in D'.
3180 mkdir conftest.dir
3181 # Copy depcomp to subdir because otherwise we won't find it if we're
3182 # using a relative directory.
3183 cp "$am_depcomp" conftest.dir
3184 cd conftest.dir
3185
3186 am_cv_CXX_dependencies_compiler_type=none
3187 if test "$am_compiler_list" = ""; then
3188 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3189 fi
3190 for depmode in $am_compiler_list; do
3191 # We need to recreate these files for each test, as the compiler may
3192 # overwrite some of them when testing with obscure command lines.
3193 # This happens at least with the AIX C compiler.
3194 echo '#include "conftest.h"' > conftest.c
3195 echo 'int i;' > conftest.h
3196 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3197
3198 case $depmode in
3199 nosideeffect)
3200 # after this tag, mechanisms are not by side-effect, so they'll
3201 # only be used when explicitly requested
3202 if test "x$enable_dependency_tracking" = xyes; then
3203 continue
3204 else
3205 break
3206 fi
3207 ;;
3208 none) break ;;
3209 esac
3210 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3211 # mode. It turns out that the SunPro C++ compiler does not properly
3212 # handle `-M -o', and we need to detect this.
3213 if depmode=$depmode \
3214 source=conftest.c object=conftest.o \
3215 depfile=conftest.Po tmpdepfile=conftest.TPo \
3216 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3217 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3219 am_cv_CXX_dependencies_compiler_type=$depmode
3220 break
3221 fi
3222 done
3223
3224 cd ..
3225 rm -rf conftest.dir
3226else
3227 am_cv_CXX_dependencies_compiler_type=none
3228fi
3229
3230fi
3231echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3232echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3233CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3234
3235
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003236# Find a good install program. We prefer a C program (faster),
3237# so one script is as good as another. But avoid the broken or
3238# incompatible versions:
3239# SysV /etc/install, /usr/sbin/install
3240# SunOS /usr/etc/install
3241# IRIX /sbin/install
3242# AIX /bin/install
3243# AmigaOS /C/install, which installs bootblocks on floppy discs
3244# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3245# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3246# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3247# ./install, which can be erroneously created by make from ./install.sh.
3248echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3249echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3250if test -z "$INSTALL"; then
3251if test "${ac_cv_path_install+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255for as_dir in $PATH
3256do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 # Account for people who put trailing slashes in PATH elements.
3260case $as_dir/ in
3261 ./ | .// | /cC/* | \
3262 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3263 /usr/ucb/* ) ;;
3264 *)
3265 # OSF1 and SCO ODT 3.0 have their own names for install.
3266 # Don't use installbsd from OSF since it installs stuff as root
3267 # by default.
3268 for ac_prog in ginstall scoinst install; do
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3271 if test $ac_prog = install &&
3272 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3273 # AIX install. It has an incompatible calling convention.
3274 :
3275 elif test $ac_prog = install &&
3276 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3277 # program-specific install script used by HP pwplus--don't use.
3278 :
3279 else
3280 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3281 break 3
3282 fi
3283 fi
3284 done
3285 done
3286 ;;
3287esac
3288done
3289
3290
3291fi
3292 if test "${ac_cv_path_install+set}" = set; then
3293 INSTALL=$ac_cv_path_install
3294 else
3295 # As a last resort, use the slow shell script. We don't cache a
3296 # path for INSTALL within a source directory, because that will
3297 # break other packages using the cache if that directory is
3298 # removed, or if the path is relative.
3299 INSTALL=$ac_install_sh
3300 fi
3301fi
3302echo "$as_me:$LINENO: result: $INSTALL" >&5
3303echo "${ECHO_T}$INSTALL" >&6
3304
3305# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3306# It thinks the first close brace ends the variable substitution.
3307test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3308
3309test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3310
3311test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3312
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003313echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
3314echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003315set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3316if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318else
3319 cat >conftest.make <<\_ACEOF
3320all:
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003321 @echo 'ac_maketemp="${MAKE}"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003322_ACEOF
3323# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3324eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3325if test -n "$ac_maketemp"; then
3326 eval ac_cv_prog_make_${ac_make}_set=yes
3327else
3328 eval ac_cv_prog_make_${ac_make}_set=no
3329fi
3330rm -f conftest.make
3331fi
3332if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3333 echo "$as_me:$LINENO: result: yes" >&5
3334echo "${ECHO_T}yes" >&6
3335 SET_MAKE=
3336else
3337 echo "$as_me:$LINENO: result: no" >&5
3338echo "${ECHO_T}no" >&6
3339 SET_MAKE="MAKE=${MAKE-make}"
3340fi
3341
3342# Check whether --enable-shared or --disable-shared was given.
3343if test "${enable_shared+set}" = set; then
3344 enableval="$enable_shared"
3345 p=${PACKAGE-default}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003346case $enableval in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003347yes) enable_shared=yes ;;
3348no) enable_shared=no ;;
3349*)
3350 enable_shared=no
3351 # Look at the argument we got. We use all the common list separators.
3352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3353 for pkg in $enableval; do
3354 if test "X$pkg" = "X$p"; then
3355 enable_shared=yes
3356 fi
3357 done
3358 IFS="$ac_save_ifs"
3359 ;;
3360esac
3361else
3362 enable_shared=yes
3363fi;
3364# Check whether --enable-static or --disable-static was given.
3365if test "${enable_static+set}" = set; then
3366 enableval="$enable_static"
3367 p=${PACKAGE-default}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003368case $enableval in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003369yes) enable_static=yes ;;
3370no) enable_static=no ;;
3371*)
3372 enable_static=no
3373 # Look at the argument we got. We use all the common list separators.
3374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3375 for pkg in $enableval; do
3376 if test "X$pkg" = "X$p"; then
3377 enable_static=yes
3378 fi
3379 done
3380 IFS="$ac_save_ifs"
3381 ;;
3382esac
3383else
3384 enable_static=yes
3385fi;
3386# Check whether --enable-fast-install or --disable-fast-install was given.
3387if test "${enable_fast_install+set}" = set; then
3388 enableval="$enable_fast_install"
3389 p=${PACKAGE-default}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003390case $enableval in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003391yes) enable_fast_install=yes ;;
3392no) enable_fast_install=no ;;
3393*)
3394 enable_fast_install=no
3395 # Look at the argument we got. We use all the common list separators.
3396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3397 for pkg in $enableval; do
3398 if test "X$pkg" = "X$p"; then
3399 enable_fast_install=yes
3400 fi
3401 done
3402 IFS="$ac_save_ifs"
3403 ;;
3404esac
3405else
3406 enable_fast_install=yes
3407fi;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003408# Find the correct PATH separator. Usually this is `:', but
3409# DJGPP uses `;' like DOS.
3410if test "X${PATH_SEPARATOR+set}" != Xset; then
3411 UNAME=${UNAME-`uname 2>/dev/null`}
3412 case X$UNAME in
3413 *-DOS) lt_cv_sys_path_separator=';' ;;
3414 *) lt_cv_sys_path_separator=':' ;;
3415 esac
3416 PATH_SEPARATOR=$lt_cv_sys_path_separator
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003417fi
3418
3419
3420# Check whether --with-gnu-ld or --without-gnu-ld was given.
3421if test "${with_gnu_ld+set}" = set; then
3422 withval="$with_gnu_ld"
3423 test "$withval" = no || with_gnu_ld=yes
3424else
3425 with_gnu_ld=no
3426fi;
3427ac_prog=ld
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003428if test "$GCC" = yes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003429 # Check if gcc -print-prog-name=ld gives a path.
3430 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3431echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003432 case $host in
3433 *-*-mingw*)
3434 # gcc leaves a trailing carriage return which upsets mingw
3435 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3436 *)
3437 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3438 esac
3439 case $ac_prog in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003440 # Accept absolute paths.
3441 [\\/]* | [A-Za-z]:[\\/]*)
3442 re_direlt='/[^/][^/]*/\.\./'
3443 # Canonicalize the path of ld
3444 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3445 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3446 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3447 done
3448 test -z "$LD" && LD="$ac_prog"
3449 ;;
3450 "")
3451 # If it fails, then pretend we aren't using GCC.
3452 ac_prog=ld
3453 ;;
3454 *)
3455 # If it is relative, then search for the first ld in PATH.
3456 with_gnu_ld=unknown
3457 ;;
3458 esac
3459elif test "$with_gnu_ld" = yes; then
3460 echo "$as_me:$LINENO: checking for GNU ld" >&5
3461echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3462else
3463 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3464echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3465fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003466if test "${lt_cv_path_LD+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469 if test -z "$LD"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003471 for ac_dir in $PATH; do
3472 test -z "$ac_dir" && ac_dir=.
3473 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003474 lt_cv_path_LD="$ac_dir/$ac_prog"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003475 # Check to see if the program is GNU ld. I'd rather use --version,
3476 # but apparently some GNU ld's only accept -v.
3477 # Break only if it was the GNU/non-GNU ld that we prefer.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003478 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003479 test "$with_gnu_ld" != no && break
3480 else
3481 test "$with_gnu_ld" != yes && break
3482 fi
3483 fi
3484 done
3485 IFS="$ac_save_ifs"
3486else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003487 lt_cv_path_LD="$LD" # Let the user override the test with a path.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003488fi
3489fi
3490
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003491LD="$lt_cv_path_LD"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003492if test -n "$LD"; then
3493 echo "$as_me:$LINENO: result: $LD" >&5
3494echo "${ECHO_T}$LD" >&6
3495else
3496 echo "$as_me:$LINENO: result: no" >&5
3497echo "${ECHO_T}no" >&6
3498fi
3499test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3500echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3501 { (exit 1); exit 1; }; }
3502echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3503echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003504if test "${lt_cv_prog_gnu_ld+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3508if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003509 lt_cv_prog_gnu_ld=yes
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003510else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003511 lt_cv_prog_gnu_ld=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003512fi
3513fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003514echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3515echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3516with_gnu_ld=$lt_cv_prog_gnu_ld
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003517
3518
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003519echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3520echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3521if test "${lt_cv_ld_reload_flag+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524 lt_cv_ld_reload_flag='-r'
3525fi
3526echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3527echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3528reload_flag=$lt_cv_ld_reload_flag
3529test -n "$reload_flag" && reload_flag=" $reload_flag"
3530
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003531echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3532echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003533if test "${lt_cv_path_NM+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535else
3536 if test -n "$NM"; then
3537 # Let the user override the test.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003538 lt_cv_path_NM="$NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003539else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003541 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3542 test -z "$ac_dir" && ac_dir=.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003543 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3544 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003545 # Check to see if the nm accepts a BSD-compat flag.
3546 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3547 # nm: unknown option "B" ignored
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003548 # Tru64's nm complains that /dev/null is an invalid object file
3549 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3550 lt_cv_path_NM="$tmp_nm -B"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003551 break
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003552 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3553 lt_cv_path_NM="$tmp_nm -p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003554 break
3555 else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003556 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003557 continue # so that we can try to find one that supports BSD flags
3558 fi
3559 fi
3560 done
3561 IFS="$ac_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003562 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003563fi
3564fi
3565
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003566NM="$lt_cv_path_NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003567echo "$as_me:$LINENO: result: $NM" >&5
3568echo "${ECHO_T}$NM" >&6
3569
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003570echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3571echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3572if test "${lt_cv_path_SED+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574else
3575 # Loop through the user's path and test for sed and gsed.
3576# Then use that list of sed's as ones to test for truncation.
3577as_executable_p="test -f"
3578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH
3580do
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_prog in sed gsed; do
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3586 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3587 fi
3588 done
3589 done
3590done
3591
3592 # Create a temporary directory, and hook for its removal unless debugging.
3593$debug ||
3594{
3595 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3596 trap '{ (exit 1); exit 1; }' 1 2 13 15
3597}
3598
3599# Create a (secure) tmp directory for tmp files.
3600: ${TMPDIR=/tmp}
3601{
3602 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3603 test -n "$tmp" && test -d "$tmp"
3604} ||
3605{
3606 tmp=$TMPDIR/sed$$-$RANDOM
3607 (umask 077 && mkdir $tmp)
3608} ||
3609{
3610 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3611 { (exit 1); exit 1; }
3612}
3613 _max=0
3614 _count=0
3615 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3616 # along with /bin/sed that truncates output.
3617 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3618 test ! -f ${_sed} && break
3619 cat /dev/null > "$tmp/sed.in"
3620 _count=0
3621 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3622 # Check for GNU sed and select it if it is found.
3623 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3624 lt_cv_path_SED=${_sed}
3625 break
3626 fi
3627 while true; do
3628 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3629 mv "$tmp/sed.tmp" "$tmp/sed.in"
3630 cp "$tmp/sed.in" "$tmp/sed.nl"
3631 echo >>"$tmp/sed.nl"
3632 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3633 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3634 # 40000 chars as input seems more than enough
3635 test $_count -gt 10 && break
3636 _count=`expr $_count + 1`
3637 if test $_count -gt $_max; then
3638 _max=$_count
3639 lt_cv_path_SED=$_sed
3640 fi
3641 done
3642 done
3643 rm -rf "$tmp"
3644
3645fi
3646
3647if test "X$SED" != "X"; then
3648 lt_cv_path_SED=$SED
3649else
3650 SED=$lt_cv_path_SED
3651fi
3652echo "$as_me:$LINENO: result: $SED" >&5
3653echo "${ECHO_T}$SED" >&6
3654
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003655echo "$as_me:$LINENO: checking whether ln -s works" >&5
3656echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3657LN_S=$as_ln_s
3658if test "$LN_S" = "ln -s"; then
3659 echo "$as_me:$LINENO: result: yes" >&5
3660echo "${ECHO_T}yes" >&6
3661else
3662 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3663echo "${ECHO_T}no, using $LN_S" >&6
3664fi
3665
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003666echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3667echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3668if test "${lt_cv_deplibs_check_method+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670else
3671 lt_cv_file_magic_cmd='$MAGIC_CMD'
3672lt_cv_file_magic_test_file=
3673lt_cv_deplibs_check_method='unknown'
3674# Need to set the preceding variable on all platforms that support
3675# interlibrary dependencies.
3676# 'none' -- dependencies not supported.
3677# `unknown' -- same as none, but documents that we really don't know.
3678# 'pass_all' -- all dependencies passed with no checks.
3679# 'test_compile' -- check by making test program.
3680# 'file_magic [[regex]]' -- check by looking for files in library path
3681# which responds to the $file_magic_cmd with a given egrep regex.
3682# If you have `file' or equivalent on your system and you're not sure
3683# whether `pass_all' will *always* work, you probably want this one.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003684
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003685case $host_os in
3686aix4* | aix5*)
3687 lt_cv_deplibs_check_method=pass_all
3688 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003689
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003690beos*)
3691 lt_cv_deplibs_check_method=pass_all
3692 ;;
3693
3694bsdi4*)
3695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3696 lt_cv_file_magic_cmd='/usr/bin/file -L'
3697 lt_cv_file_magic_test_file=/shlib/libc.so
3698 ;;
3699
3700cygwin* | mingw* | pw32*)
3701 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3702 lt_cv_file_magic_cmd='$OBJDUMP -f'
3703 ;;
3704
3705darwin* | rhapsody*)
3706 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3707 lt_cv_file_magic_cmd='/usr/bin/file -L'
3708 case "$host_os" in
3709 rhapsody* | darwin1.[012])
3710 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3711 ;;
3712 *) # Darwin 1.3 on
3713 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3714 ;;
3715 esac
3716 ;;
3717
3718freebsd*)
3719 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3720 case $host_cpu in
3721 i*86 )
3722 # Not sure whether the presence of OpenBSD here was a mistake.
3723 # Let's accept both of them until this is cleared up.
3724 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3725 lt_cv_file_magic_cmd=/usr/bin/file
3726 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3727 ;;
3728 esac
3729 else
3730 lt_cv_deplibs_check_method=pass_all
3731 fi
3732 ;;
3733
3734gnu*)
3735 lt_cv_deplibs_check_method=pass_all
3736 ;;
3737
3738hpux10.20*|hpux11*)
3739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3740 lt_cv_file_magic_cmd=/usr/bin/file
3741 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3742 ;;
3743
3744irix5* | irix6* | nonstopux*)
3745 case $host_os in
3746 irix5* | nonstopux*)
3747 # this will be overridden with pass_all, but let us keep it just in case
3748 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3749 ;;
3750 *)
3751 case $LD in
3752 *-32|*"-32 ") libmagic=32-bit;;
3753 *-n32|*"-n32 ") libmagic=N32;;
3754 *-64|*"-64 ") libmagic=64-bit;;
3755 *) libmagic=never-match;;
3756 esac
3757 # this will be overridden with pass_all, but let us keep it just in case
3758 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3759 ;;
3760 esac
3761 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3762 lt_cv_deplibs_check_method=pass_all
3763 ;;
3764
3765# This must be Linux ELF.
3766linux-gnu*)
3767 case $host_cpu in
3768 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3769 lt_cv_deplibs_check_method=pass_all ;;
3770 *)
3771 # glibc up to 2.1.1 does not perform some relocations on ARM
3772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3773 esac
3774 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3775 ;;
3776
3777netbsd*)
3778 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3779 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3780 else
3781 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3782 fi
3783 ;;
3784
3785newos6*)
3786 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3787 lt_cv_file_magic_cmd=/usr/bin/file
3788 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3789 ;;
3790
3791openbsd*)
3792 lt_cv_file_magic_cmd=/usr/bin/file
3793 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3795 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3796 else
3797 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3798 fi
3799 ;;
3800
3801osf3* | osf4* | osf5*)
3802 # this will be overridden with pass_all, but let us keep it just in case
3803 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3804 lt_cv_file_magic_test_file=/shlib/libc.so
3805 lt_cv_deplibs_check_method=pass_all
3806 ;;
3807
3808sco3.2v5*)
3809 lt_cv_deplibs_check_method=pass_all
3810 ;;
3811
3812solaris*)
3813 lt_cv_deplibs_check_method=pass_all
3814 lt_cv_file_magic_test_file=/lib/libc.so
3815 ;;
3816
3817sysv5uw[78]* | sysv4*uw2*)
3818 lt_cv_deplibs_check_method=pass_all
3819 ;;
3820
3821sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3822 case $host_vendor in
3823 motorola)
3824 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]'
3825 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3826 ;;
3827 ncr)
3828 lt_cv_deplibs_check_method=pass_all
3829 ;;
3830 sequent)
3831 lt_cv_file_magic_cmd='/bin/file'
3832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3833 ;;
3834 sni)
3835 lt_cv_file_magic_cmd='/bin/file'
3836 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3837 lt_cv_file_magic_test_file=/lib/libc.so
3838 ;;
3839 siemens)
3840 lt_cv_deplibs_check_method=pass_all
3841 ;;
3842 esac
3843 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003844esac
3845
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003846fi
3847echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3848echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3849file_magic_cmd=$lt_cv_file_magic_cmd
3850deplibs_check_method=$lt_cv_deplibs_check_method
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003851
3852
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003853
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003854
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003855
3856
3857
3858
3859# Check for command to grab the raw symbol name followed by C symbol from nm.
3860echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3861echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3862if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864else
3865
3866# These are sane defaults that work on at least a few old systems.
3867# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3868
3869# Character class describing NM global symbol codes.
3870symcode='[BCDEGRST]'
3871
3872# Regexp to match symbols that can be accessed directly from C.
3873sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3874
3875# Transform the above into a raw symbol and a C symbol.
3876symxfrm='\1 \2\3 \3'
3877
3878# Transform an extracted symbol line into a proper C declaration
3879lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3880
3881# Transform an extracted symbol line into symbol name and symbol address
3882lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3883
3884# Define system-specific variables.
3885case $host_os in
3886aix*)
3887 symcode='[BCDT]'
3888 ;;
3889cygwin* | mingw* | pw32*)
3890 symcode='[ABCDGISTW]'
3891 ;;
3892hpux*) # Its linker distinguishes data from code symbols
3893 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3894 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3895 ;;
3896irix* | nonstopux*)
3897 symcode='[BCDEGRST]'
3898 ;;
3899osf*)
3900 symcode='[BCDEGQRST]'
3901 ;;
3902solaris* | sysv5*)
3903 symcode='[BDT]'
3904 ;;
3905sysv4)
3906 symcode='[DFNSTU]'
3907 ;;
3908esac
3909
3910# Handle CRLF in mingw tool chain
3911opt_cr=
3912case $host_os in
3913mingw*)
3914 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3915 ;;
3916esac
3917
3918# If we're using GNU nm, then use its standard symbol codes.
3919if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3920 symcode='[ABCDGISTW]'
3921fi
3922
3923# Try without a prefix undercore, then with it.
3924for ac_symprfx in "" "_"; do
3925
3926 # Write the raw and C identifiers.
3927lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3928
3929 # Check to see that the pipe works correctly.
3930 pipe_works=no
3931 rm -f conftest*
3932 cat > conftest.$ac_ext <<EOF
3933#ifdef __cplusplus
3934extern "C" {
3935#endif
3936char nm_test_var;
3937void nm_test_func(){}
3938#ifdef __cplusplus
3939}
3940#endif
3941int main(){nm_test_var='a';nm_test_func();return(0);}
3942EOF
3943
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3945 (eval $ac_compile) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003949 # Now try to grab the symbols.
3950 nlist=conftest.nm
3951 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3952 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } && test -s "$nlist"; then
3956 # Try sorting and uniquifying the output.
3957 if sort "$nlist" | uniq > "$nlist"T; then
3958 mv -f "$nlist"T "$nlist"
3959 else
3960 rm -f "$nlist"T
3961 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003962
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003963 # Make sure that we snagged all the symbols we need.
3964 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3965 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3966 cat <<EOF > conftest.$ac_ext
3967#ifdef __cplusplus
3968extern "C" {
3969#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003970
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003971EOF
3972 # Now generate the symbol file.
3973 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003974
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003975 cat <<EOF >> conftest.$ac_ext
3976#if defined (__STDC__) && __STDC__
3977# define lt_ptr void *
3978#else
3979# define lt_ptr char *
3980# define const
3981#endif
3982
3983/* The mapping between symbol names and symbols. */
3984const struct {
3985 const char *name;
3986 lt_ptr address;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003987}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003988lt_preloaded_symbols[] =
3989{
3990EOF
3991 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3992 cat <<\EOF >> conftest.$ac_ext
3993 {0, (lt_ptr) 0}
3994};
3995
3996#ifdef __cplusplus
3997}
3998#endif
3999EOF
4000 # Now try linking the two files.
4001 mv conftest.$ac_objext conftstm.$ac_objext
4002 save_LIBS="$LIBS"
4003 save_CFLAGS="$CFLAGS"
4004 LIBS="conftstm.$ac_objext"
4005 CFLAGS="$CFLAGS$no_builtin_flag"
4006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004007 (eval $ac_link) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004010 (exit $ac_status); } && test -s conftest$ac_exeext; then
4011 pipe_works=yes
4012 fi
4013 LIBS="$save_LIBS"
4014 CFLAGS="$save_CFLAGS"
4015 else
4016 echo "cannot find nm_test_func in $nlist" >&5
4017 fi
4018 else
4019 echo "cannot find nm_test_var in $nlist" >&5
4020 fi
4021 else
4022 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4023 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004024 else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004025 echo "$progname: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004027 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004028 rm -f conftest* conftst*
4029
4030 # Do not use the global_symbol_pipe unless it works.
4031 if test "$pipe_works" = yes; then
4032 break
4033 else
4034 lt_cv_sys_global_symbol_pipe=
4035 fi
4036done
4037
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004038fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004039
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004040global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4041if test -z "$lt_cv_sys_global_symbol_pipe"; then
4042 global_symbol_to_cdecl=
4043 global_symbol_to_c_name_address=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004044else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004045 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4046 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004047fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004048if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4049then
4050 echo "$as_me:$LINENO: result: failed" >&5
4051echo "${ECHO_T}failed" >&6
4052else
4053 echo "$as_me:$LINENO: result: ok" >&5
4054echo "${ECHO_T}ok" >&6
4055fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004056
4057ac_ext=c
4058ac_cpp='$CPP $CPPFLAGS'
4059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4063echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4064# On Suns, sometimes $CPP names a directory.
4065if test -n "$CPP" && test -d "$CPP"; then
4066 CPP=
4067fi
4068if test -z "$CPP"; then
4069 if test "${ac_cv_prog_CPP+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071else
4072 # Double quotes because CPP needs to be expanded
4073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4074 do
4075 ac_preproc_ok=false
4076for ac_c_preproc_warn_flag in '' yes
4077do
4078 # Use a header file that comes with gcc, so configuring glibc
4079 # with a fresh cross-compiler works.
4080 # On the NeXT, cc -E runs the code through the compiler's parser,
4081 # not just through cpp. "Syntax error" is here to catch this case.
4082 cat >conftest.$ac_ext <<_ACEOF
4083#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004084#include "confdefs.h"
4085#include <assert.h>
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004086 Syntax error
4087_ACEOF
4088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4090 ac_status=$?
4091 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -f conftest.er1
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } >/dev/null; then
4096 if test -s conftest.err; then
4097 ac_cpp_err=$ac_c_preproc_warn_flag
4098 else
4099 ac_cpp_err=
4100 fi
4101else
4102 ac_cpp_err=yes
4103fi
4104if test -z "$ac_cpp_err"; then
4105 :
4106else
4107 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004108 cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004109 # Broken: fails on valid input.
4110continue
4111fi
4112rm -f conftest.err conftest.$ac_ext
4113
4114 # OK, works on sane cases. Now check whether non-existent headers
4115 # can be detected and how.
4116 cat >conftest.$ac_ext <<_ACEOF
4117#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004118#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004119#include <ac_nonexistent.h>
4120_ACEOF
4121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4123 ac_status=$?
4124 grep -v '^ *+' conftest.er1 >conftest.err
4125 rm -f conftest.er1
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } >/dev/null; then
4129 if test -s conftest.err; then
4130 ac_cpp_err=$ac_c_preproc_warn_flag
4131 else
4132 ac_cpp_err=
4133 fi
4134else
4135 ac_cpp_err=yes
4136fi
4137if test -z "$ac_cpp_err"; then
4138 # Broken: success on invalid input.
4139continue
4140else
4141 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004142 cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004143 # Passes both tests.
4144ac_preproc_ok=:
4145break
4146fi
4147rm -f conftest.err conftest.$ac_ext
4148
4149done
4150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151rm -f conftest.err conftest.$ac_ext
4152if $ac_preproc_ok; then
4153 break
4154fi
4155
4156 done
4157 ac_cv_prog_CPP=$CPP
4158
4159fi
4160 CPP=$ac_cv_prog_CPP
4161else
4162 ac_cv_prog_CPP=$CPP
4163fi
4164echo "$as_me:$LINENO: result: $CPP" >&5
4165echo "${ECHO_T}$CPP" >&6
4166ac_preproc_ok=false
4167for ac_c_preproc_warn_flag in '' yes
4168do
4169 # Use a header file that comes with gcc, so configuring glibc
4170 # with a fresh cross-compiler works.
4171 # On the NeXT, cc -E runs the code through the compiler's parser,
4172 # not just through cpp. "Syntax error" is here to catch this case.
4173 cat >conftest.$ac_ext <<_ACEOF
4174#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004175#include "confdefs.h"
4176#include <assert.h>
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004177 Syntax error
4178_ACEOF
4179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev/null; then
4187 if test -s conftest.err; then
4188 ac_cpp_err=$ac_c_preproc_warn_flag
4189 else
4190 ac_cpp_err=
4191 fi
4192else
4193 ac_cpp_err=yes
4194fi
4195if test -z "$ac_cpp_err"; then
4196 :
4197else
4198 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004199 cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004200 # Broken: fails on valid input.
4201continue
4202fi
4203rm -f conftest.err conftest.$ac_ext
4204
4205 # OK, works on sane cases. Now check whether non-existent headers
4206 # can be detected and how.
4207 cat >conftest.$ac_ext <<_ACEOF
4208#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004209#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004210#include <ac_nonexistent.h>
4211_ACEOF
4212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } >/dev/null; then
4220 if test -s conftest.err; then
4221 ac_cpp_err=$ac_c_preproc_warn_flag
4222 else
4223 ac_cpp_err=
4224 fi
4225else
4226 ac_cpp_err=yes
4227fi
4228if test -z "$ac_cpp_err"; then
4229 # Broken: success on invalid input.
4230continue
4231else
4232 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004233 cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004234 # Passes both tests.
4235ac_preproc_ok=:
4236break
4237fi
4238rm -f conftest.err conftest.$ac_ext
4239
4240done
4241# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4242rm -f conftest.err conftest.$ac_ext
4243if $ac_preproc_ok; then
4244 :
4245else
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004246 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
4247echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004248 { (exit 1); exit 1; }; }
4249fi
4250
4251ac_ext=c
4252ac_cpp='$CPP $CPPFLAGS'
4253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
4257
4258echo "$as_me:$LINENO: checking for egrep" >&5
4259echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4260if test "${ac_cv_prog_egrep+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262else
4263 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4264 then ac_cv_prog_egrep='grep -E'
4265 else ac_cv_prog_egrep='egrep'
4266 fi
4267fi
4268echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4269echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4270 EGREP=$ac_cv_prog_egrep
4271
4272
4273echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4274echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4275if test "${ac_cv_header_stdc+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277else
4278 cat >conftest.$ac_ext <<_ACEOF
4279#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004280#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004281#include <stdlib.h>
4282#include <stdarg.h>
4283#include <string.h>
4284#include <float.h>
4285
4286_ACEOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004289 ac_status=$?
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004294 (exit $ac_status); } >/dev/null; then
4295 if test -s conftest.err; then
4296 ac_cpp_err=$ac_c_preproc_warn_flag
4297 else
4298 ac_cpp_err=
4299 fi
4300else
4301 ac_cpp_err=yes
4302fi
4303if test -z "$ac_cpp_err"; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004304 ac_cv_header_stdc=yes
4305else
4306 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004307 cat conftest.$ac_ext >&5
4308 ac_cv_header_stdc=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004309fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004310rm -f conftest.err conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004311
4312if test $ac_cv_header_stdc = yes; then
4313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4314 cat >conftest.$ac_ext <<_ACEOF
4315#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004316#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004317#include <string.h>
4318
4319_ACEOF
4320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 $EGREP "memchr" >/dev/null 2>&1; then
4322 :
4323else
4324 ac_cv_header_stdc=no
4325fi
4326rm -f conftest*
4327
4328fi
4329
4330if test $ac_cv_header_stdc = yes; then
4331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4332 cat >conftest.$ac_ext <<_ACEOF
4333#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004334#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004335#include <stdlib.h>
4336
4337_ACEOF
4338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4339 $EGREP "free" >/dev/null 2>&1; then
4340 :
4341else
4342 ac_cv_header_stdc=no
4343fi
4344rm -f conftest*
4345
4346fi
4347
4348if test $ac_cv_header_stdc = yes; then
4349 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4350 if test "$cross_compiling" = yes; then
4351 :
4352else
4353 cat >conftest.$ac_ext <<_ACEOF
4354#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004355#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004356#include <ctype.h>
4357#if ((' ' & 0x0FF) == 0x020)
4358# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4359# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4360#else
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004361# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004362 || ('j' <= (c) && (c) <= 'r') \
4363 || ('s' <= (c) && (c) <= 'z'))
4364# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4365#endif
4366
4367#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4368int
4369main ()
4370{
4371 int i;
4372 for (i = 0; i < 256; i++)
4373 if (XOR (islower (i), ISLOWER (i))
4374 || toupper (i) != TOUPPER (i))
4375 exit(2);
4376 exit (0);
4377}
4378_ACEOF
4379rm -f conftest$ac_exeext
4380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4381 (eval $ac_link) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 :
4391else
4392 echo "$as_me: program exited with status $ac_status" >&5
4393echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004394cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004395( exit $ac_status )
4396ac_cv_header_stdc=no
4397fi
4398rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4399fi
4400fi
4401fi
4402echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4403echo "${ECHO_T}$ac_cv_header_stdc" >&6
4404if test $ac_cv_header_stdc = yes; then
4405
4406cat >>confdefs.h <<\_ACEOF
4407#define STDC_HEADERS 1
4408_ACEOF
4409
4410fi
4411
4412# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4423 inttypes.h stdint.h unistd.h
4424do
4425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4426echo "$as_me:$LINENO: checking for $ac_header" >&5
4427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4428if eval "test \"\${$as_ac_Header+set}\" = set"; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430else
4431 cat >conftest.$ac_ext <<_ACEOF
4432#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004433#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004434$ac_includes_default
4435
4436#include <$ac_header>
4437_ACEOF
4438rm -f conftest.$ac_objext
4439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440 (eval $ac_compile) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try='test -s conftest.$ac_objext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 eval "$as_ac_Header=yes"
4451else
4452 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004453cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004454eval "$as_ac_Header=no"
4455fi
4456rm -f conftest.$ac_objext conftest.$ac_ext
4457fi
4458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4460if test `eval echo '${'$as_ac_Header'}'` = yes; then
4461 cat >>confdefs.h <<_ACEOF
4462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4463_ACEOF
4464
4465fi
4466
4467done
4468
4469
4470
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004471for ac_header in dlfcn.h
4472do
4473as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4474if eval "test \"\${$as_ac_Header+set}\" = set"; then
4475 echo "$as_me:$LINENO: checking for $ac_header" >&5
4476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4477if eval "test \"\${$as_ac_Header+set}\" = set"; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479fi
4480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4482else
4483 # Is the header compilable?
4484echo "$as_me:$LINENO: checking $ac_header usability" >&5
4485echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4486cat >conftest.$ac_ext <<_ACEOF
4487#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004488#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004489$ac_includes_default
4490#include <$ac_header>
4491_ACEOF
4492rm -f conftest.$ac_objext
4493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4494 (eval $ac_compile) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } &&
4498 { ac_try='test -s conftest.$ac_objext'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 ac_header_compiler=yes
4505else
4506 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004507cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004508ac_header_compiler=no
4509fi
4510rm -f conftest.$ac_objext conftest.$ac_ext
4511echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4512echo "${ECHO_T}$ac_header_compiler" >&6
4513
4514# Is the header present?
4515echo "$as_me:$LINENO: checking $ac_header presence" >&5
4516echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4517cat >conftest.$ac_ext <<_ACEOF
4518#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004519#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004520#include <$ac_header>
4521_ACEOF
4522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4524 ac_status=$?
4525 grep -v '^ *+' conftest.er1 >conftest.err
4526 rm -f conftest.er1
4527 cat conftest.err >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } >/dev/null; then
4530 if test -s conftest.err; then
4531 ac_cpp_err=$ac_c_preproc_warn_flag
4532 else
4533 ac_cpp_err=
4534 fi
4535else
4536 ac_cpp_err=yes
4537fi
4538if test -z "$ac_cpp_err"; then
4539 ac_header_preproc=yes
4540else
4541 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004542 cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004543 ac_header_preproc=no
4544fi
4545rm -f conftest.err conftest.$ac_ext
4546echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4547echo "${ECHO_T}$ac_header_preproc" >&6
4548
4549# So? What about this header?
4550case $ac_header_compiler:$ac_header_preproc in
4551 yes:no )
4552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4553echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004556 no:yes )
4557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4558echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4560echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004562echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004563esac
4564echo "$as_me:$LINENO: checking for $ac_header" >&5
4565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4566if eval "test \"\${$as_ac_Header+set}\" = set"; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568else
4569 eval "$as_ac_Header=$ac_header_preproc"
4570fi
4571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4573
4574fi
4575if test `eval echo '${'$as_ac_Header'}'` = yes; then
4576 cat >>confdefs.h <<_ACEOF
4577#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578_ACEOF
4579
4580fi
4581
4582done
4583
4584
4585
4586
4587
4588
4589# Only perform the check for file, if the check method requires it
4590case $deplibs_check_method in
4591file_magic*)
4592 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4593 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4594echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4595if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597else
4598 case $MAGIC_CMD in
4599 /*)
4600 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4601 ;;
4602 ?:/*)
4603 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4604 ;;
4605 *)
4606 ac_save_MAGIC_CMD="$MAGIC_CMD"
4607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4608 ac_dummy="/usr/bin:$PATH"
4609 for ac_dir in $ac_dummy; do
4610 test -z "$ac_dir" && ac_dir=.
4611 if test -f $ac_dir/${ac_tool_prefix}file; then
4612 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4613 if test -n "$file_magic_test_file"; then
4614 case $deplibs_check_method in
4615 "file_magic "*)
4616 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4618 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4619 egrep "$file_magic_regex" > /dev/null; then
4620 :
4621 else
4622 cat <<EOF 1>&2
4623
4624*** Warning: the command libtool uses to detect shared libraries,
4625*** $file_magic_cmd, produces output that libtool cannot recognize.
4626*** The result is that libtool may fail to recognize shared libraries
4627*** as such. This will affect the creation of libtool libraries that
4628*** depend on shared libraries, but programs linked with such libtool
4629*** libraries will work regardless of this problem. Nevertheless, you
4630*** may want to report the problem to your system manager and/or to
4631*** bug-libtool@gnu.org
4632
4633EOF
4634 fi ;;
4635 esac
4636 fi
4637 break
4638 fi
4639 done
4640 IFS="$ac_save_ifs"
4641 MAGIC_CMD="$ac_save_MAGIC_CMD"
4642 ;;
4643esac
4644fi
4645
4646MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4647if test -n "$MAGIC_CMD"; then
4648 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4649echo "${ECHO_T}$MAGIC_CMD" >&6
4650else
4651 echo "$as_me:$LINENO: result: no" >&5
4652echo "${ECHO_T}no" >&6
4653fi
4654
4655if test -z "$lt_cv_path_MAGIC_CMD"; then
4656 if test -n "$ac_tool_prefix"; then
4657 echo "$as_me:$LINENO: checking for file" >&5
4658echo $ECHO_N "checking for file... $ECHO_C" >&6
4659if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661else
4662 case $MAGIC_CMD in
4663 /*)
4664 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4665 ;;
4666 ?:/*)
4667 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4668 ;;
4669 *)
4670 ac_save_MAGIC_CMD="$MAGIC_CMD"
4671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4672 ac_dummy="/usr/bin:$PATH"
4673 for ac_dir in $ac_dummy; do
4674 test -z "$ac_dir" && ac_dir=.
4675 if test -f $ac_dir/file; then
4676 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4677 if test -n "$file_magic_test_file"; then
4678 case $deplibs_check_method in
4679 "file_magic "*)
4680 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4681 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4682 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4683 egrep "$file_magic_regex" > /dev/null; then
4684 :
4685 else
4686 cat <<EOF 1>&2
4687
4688*** Warning: the command libtool uses to detect shared libraries,
4689*** $file_magic_cmd, produces output that libtool cannot recognize.
4690*** The result is that libtool may fail to recognize shared libraries
4691*** as such. This will affect the creation of libtool libraries that
4692*** depend on shared libraries, but programs linked with such libtool
4693*** libraries will work regardless of this problem. Nevertheless, you
4694*** may want to report the problem to your system manager and/or to
4695*** bug-libtool@gnu.org
4696
4697EOF
4698 fi ;;
4699 esac
4700 fi
4701 break
4702 fi
4703 done
4704 IFS="$ac_save_ifs"
4705 MAGIC_CMD="$ac_save_MAGIC_CMD"
4706 ;;
4707esac
4708fi
4709
4710MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4711if test -n "$MAGIC_CMD"; then
4712 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4713echo "${ECHO_T}$MAGIC_CMD" >&6
4714else
4715 echo "$as_me:$LINENO: result: no" >&5
4716echo "${ECHO_T}no" >&6
4717fi
4718
4719 else
4720 MAGIC_CMD=:
4721 fi
4722fi
4723
4724 fi
4725 ;;
4726esac
4727
4728if test -n "$ac_tool_prefix"; then
4729 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4730set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4731echo "$as_me:$LINENO: checking for $ac_word" >&5
4732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733if test "${ac_cv_prog_RANLIB+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
4736 if test -n "$RANLIB"; then
4737 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4738else
4739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740for as_dir in $PATH
4741do
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4746 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4749 fi
4750done
4751done
4752
4753fi
4754fi
4755RANLIB=$ac_cv_prog_RANLIB
4756if test -n "$RANLIB"; then
4757 echo "$as_me:$LINENO: result: $RANLIB" >&5
4758echo "${ECHO_T}$RANLIB" >&6
4759else
4760 echo "$as_me:$LINENO: result: no" >&5
4761echo "${ECHO_T}no" >&6
4762fi
4763
4764fi
4765if test -z "$ac_cv_prog_RANLIB"; then
4766 ac_ct_RANLIB=$RANLIB
4767 # Extract the first word of "ranlib", so it can be a program name with args.
4768set dummy ranlib; ac_word=$2
4769echo "$as_me:$LINENO: checking for $ac_word" >&5
4770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4771if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774 if test -n "$ac_ct_RANLIB"; then
4775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4776else
4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4784 ac_cv_prog_ac_ct_RANLIB="ranlib"
4785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4787 fi
4788done
4789done
4790
4791 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4792fi
4793fi
4794ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4795if test -n "$ac_ct_RANLIB"; then
4796 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4797echo "${ECHO_T}$ac_ct_RANLIB" >&6
4798else
4799 echo "$as_me:$LINENO: result: no" >&5
4800echo "${ECHO_T}no" >&6
4801fi
4802
4803 RANLIB=$ac_ct_RANLIB
4804else
4805 RANLIB="$ac_cv_prog_RANLIB"
4806fi
4807
4808if test -n "$ac_tool_prefix"; then
4809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4810set dummy ${ac_tool_prefix}strip; ac_word=$2
4811echo "$as_me:$LINENO: checking for $ac_word" >&5
4812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813if test "${ac_cv_prog_STRIP+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816 if test -n "$STRIP"; then
4817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4818else
4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820for as_dir in $PATH
4821do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830done
4831done
4832
4833fi
4834fi
4835STRIP=$ac_cv_prog_STRIP
4836if test -n "$STRIP"; then
4837 echo "$as_me:$LINENO: result: $STRIP" >&5
4838echo "${ECHO_T}$STRIP" >&6
4839else
4840 echo "$as_me:$LINENO: result: no" >&5
4841echo "${ECHO_T}no" >&6
4842fi
4843
4844fi
4845if test -z "$ac_cv_prog_STRIP"; then
4846 ac_ct_STRIP=$STRIP
4847 # Extract the first word of "strip", so it can be a program name with args.
4848set dummy strip; ac_word=$2
4849echo "$as_me:$LINENO: checking for $ac_word" >&5
4850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4851if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853else
4854 if test -n "$ac_ct_STRIP"; then
4855 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4856else
4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864 ac_cv_prog_ac_ct_STRIP="strip"
4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4867 fi
4868done
4869done
4870
4871 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4872fi
4873fi
4874ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4875if test -n "$ac_ct_STRIP"; then
4876 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4877echo "${ECHO_T}$ac_ct_STRIP" >&6
4878else
4879 echo "$as_me:$LINENO: result: no" >&5
4880echo "${ECHO_T}no" >&6
4881fi
4882
4883 STRIP=$ac_ct_STRIP
4884else
4885 STRIP="$ac_cv_prog_STRIP"
4886fi
4887
4888
4889enable_dlopen=no
4890enable_win32_dll=no
4891
4892# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4893if test "${enable_libtool_lock+set}" = set; then
4894 enableval="$enable_libtool_lock"
4895
4896fi;
4897test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4898
4899# Some flags need to be propagated to the compiler or linker for good
4900# libtool support.
4901case $host in
4902*-*-irix6*)
4903 # Find out which ABI we are using.
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00004904 echo '#line 4904 "configure"' > conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906 (eval $ac_compile) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; then
4910 case `/usr/bin/file conftest.$ac_objext` in
4911 *32-bit*)
4912 LD="${LD-ld} -32"
4913 ;;
4914 *N32*)
4915 LD="${LD-ld} -n32"
4916 ;;
4917 *64-bit*)
4918 LD="${LD-ld} -64"
4919 ;;
4920 esac
4921 fi
4922 rm -rf conftest*
4923 ;;
4924
4925*-*-sco3.2v5*)
4926 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4927 SAVE_CFLAGS="$CFLAGS"
4928 CFLAGS="$CFLAGS -belf"
4929 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4930echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4931if test "${lt_cv_cc_needs_belf+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933else
4934
4935
4936 ac_ext=c
4937ac_cpp='$CPP $CPPFLAGS'
4938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940ac_compiler_gnu=$ac_cv_c_compiler_gnu
4941
4942 cat >conftest.$ac_ext <<_ACEOF
4943#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004944#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004945
4946int
4947main ()
4948{
4949
4950 ;
4951 return 0;
4952}
4953_ACEOF
4954rm -f conftest.$ac_objext conftest$ac_exeext
4955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4956 (eval $ac_link) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
4960 { ac_try='test -s conftest$ac_exeext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 (eval $ac_try) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4966 lt_cv_cc_needs_belf=yes
4967else
4968 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004969cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004970lt_cv_cc_needs_belf=no
4971fi
4972rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4973 ac_ext=c
4974ac_cpp='$CPP $CPPFLAGS'
4975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978
4979fi
4980echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4981echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4982 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4983 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4984 CFLAGS="$SAVE_CFLAGS"
4985 fi
4986 ;;
4987
4988
4989esac
4990
4991# Sed substitution that helps us do robust quoting. It backslashifies
4992# metacharacters that are still active within double-quoted strings.
4993Xsed='sed -e s/^X//'
4994sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4995
4996# Same as above, but do not quote variable references.
4997double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4998
4999# Sed substitution to delay expansion of an escaped shell variable in a
5000# double_quote_subst'ed string.
5001delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5002
5003# Constants:
5004rm="rm -f"
5005
5006# Global variables:
5007default_ofile=libtool
5008can_build_shared=yes
5009
5010# All known linkers require a `.a' archive for static linking (except M$VC,
5011# which needs '.lib').
5012libext=a
5013ltmain="$ac_aux_dir/ltmain.sh"
5014ofile="$default_ofile"
5015with_gnu_ld="$lt_cv_prog_gnu_ld"
5016need_locks="$enable_libtool_lock"
5017
5018old_CC="$CC"
5019old_CFLAGS="$CFLAGS"
5020
5021# Set sane defaults for various variables
5022test -z "$AR" && AR=ar
5023test -z "$AR_FLAGS" && AR_FLAGS=cru
5024test -z "$AS" && AS=as
5025test -z "$CC" && CC=cc
5026test -z "$DLLTOOL" && DLLTOOL=dlltool
5027test -z "$LD" && LD=ld
5028test -z "$LN_S" && LN_S="ln -s"
5029test -z "$MAGIC_CMD" && MAGIC_CMD=file
5030test -z "$NM" && NM=nm
5031test -z "$OBJDUMP" && OBJDUMP=objdump
5032test -z "$RANLIB" && RANLIB=:
5033test -z "$STRIP" && STRIP=:
5034test -z "$ac_objext" && ac_objext=o
5035
5036if test x"$host" != x"$build"; then
5037 ac_tool_prefix=${host_alias}-
5038else
5039 ac_tool_prefix=
5040fi
5041
5042# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5043case $host_os in
5044linux-gnu*) ;;
5045linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5046esac
5047
5048case $host_os in
5049aix3*)
5050 # AIX sometimes has problems with the GCC collect2 program. For some
5051 # reason, if we set the COLLECT_NAMES environment variable, the problems
5052 # vanish in a puff of smoke.
5053 if test "X${COLLECT_NAMES+set}" != Xset; then
5054 COLLECT_NAMES=
5055 export COLLECT_NAMES
5056 fi
5057 ;;
5058esac
5059
5060# Determine commands to create old-style static archives.
5061old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5062old_postinstall_cmds='chmod 644 $oldlib'
5063old_postuninstall_cmds=
5064
5065if test -n "$RANLIB"; then
5066 case $host_os in
5067 openbsd*)
5068 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5069 ;;
5070 *)
5071 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5072 ;;
5073 esac
5074 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5075fi
5076
5077# Allow CC to be a program name with arguments.
5078set dummy $CC
5079compiler="$2"
5080
5081echo "$as_me:$LINENO: checking for objdir" >&5
5082echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5083rm -f .libs 2>/dev/null
5084mkdir .libs 2>/dev/null
5085if test -d .libs; then
5086 objdir=.libs
5087else
5088 # MS-DOS does not allow filenames that begin with a dot.
5089 objdir=_libs
5090fi
5091rmdir .libs 2>/dev/null
5092echo "$as_me:$LINENO: result: $objdir" >&5
5093echo "${ECHO_T}$objdir" >&6
5094
5095
5096
5097# Check whether --with-pic or --without-pic was given.
5098if test "${with_pic+set}" = set; then
5099 withval="$with_pic"
5100 pic_mode="$withval"
5101else
5102 pic_mode=default
5103fi;
5104test -z "$pic_mode" && pic_mode=default
5105
5106# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5107# in isolation, and that seeing it set (from the cache) indicates that
5108# the associated values are set (in the cache) correctly too.
5109echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5110echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5111if test "${lt_cv_prog_cc_pic+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5113else
5114 lt_cv_prog_cc_pic=
5115 lt_cv_prog_cc_shlib=
5116 lt_cv_prog_cc_wl=
5117 lt_cv_prog_cc_static=
5118 lt_cv_prog_cc_no_builtin=
5119 lt_cv_prog_cc_can_build_shared=$can_build_shared
5120
5121 if test "$GCC" = yes; then
5122 lt_cv_prog_cc_wl='-Wl,'
5123 lt_cv_prog_cc_static='-static'
5124
5125 case $host_os in
5126 aix*)
5127 # Below there is a dirty hack to force normal static linking with -ldl
5128 # The problem is because libdl dynamically linked with both libc and
5129 # libC (AIX C++ library), which obviously doesn't included in libraries
5130 # list by gcc. This cause undefined symbols with -static flags.
5131 # This hack allows C programs to be linked with "-static -ldl", but
5132 # not sure about C++ programs.
5133 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5134 ;;
5135 amigaos*)
5136 # FIXME: we need at least 68020 code to build shared libraries, but
5137 # adding the `-m68020' flag to GCC prevents building anything better,
5138 # like `-m68040'.
5139 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5140 ;;
5141 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5142 # PIC is the default for these OSes.
5143 ;;
5144 darwin* | rhapsody*)
5145 # PIC is the default on this platform
5146 # Common symbols not allowed in MH_DYLIB files
5147 lt_cv_prog_cc_pic='-fno-common'
5148 ;;
5149 cygwin* | mingw* | pw32* | os2*)
5150 # This hack is so that the source file can tell whether it is being
5151 # built for inclusion in a dll (and should export symbols for example).
5152 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5153 ;;
5154 sysv4*MP*)
5155 if test -d /usr/nec; then
5156 lt_cv_prog_cc_pic=-Kconform_pic
5157 fi
5158 ;;
5159 *)
5160 lt_cv_prog_cc_pic='-fPIC'
5161 ;;
5162 esac
5163 else
5164 # PORTME Check for PIC flags for the system compiler.
5165 case $host_os in
5166 aix3* | aix4* | aix5*)
5167 lt_cv_prog_cc_wl='-Wl,'
5168 # All AIX code is PIC.
5169 if test "$host_cpu" = ia64; then
5170 # AIX 5 now supports IA64 processor
5171 lt_cv_prog_cc_static='-Bstatic'
5172 else
5173 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5174 fi
5175 ;;
5176
5177 hpux9* | hpux10* | hpux11*)
5178 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5179 lt_cv_prog_cc_wl='-Wl,'
5180 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5181 lt_cv_prog_cc_pic='+Z'
5182 ;;
5183
5184 irix5* | irix6* | nonstopux*)
5185 lt_cv_prog_cc_wl='-Wl,'
5186 lt_cv_prog_cc_static='-non_shared'
5187 # PIC (with -KPIC) is the default.
5188 ;;
5189
5190 cygwin* | mingw* | pw32* | os2*)
5191 # This hack is so that the source file can tell whether it is being
5192 # built for inclusion in a dll (and should export symbols for example).
5193 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5194 ;;
5195
5196 newsos6)
5197 lt_cv_prog_cc_pic='-KPIC'
5198 lt_cv_prog_cc_static='-Bstatic'
5199 ;;
5200
5201 osf3* | osf4* | osf5*)
5202 # All OSF/1 code is PIC.
5203 lt_cv_prog_cc_wl='-Wl,'
5204 lt_cv_prog_cc_static='-non_shared'
5205 ;;
5206
5207 sco3.2v5*)
5208 lt_cv_prog_cc_pic='-Kpic'
5209 lt_cv_prog_cc_static='-dn'
5210 lt_cv_prog_cc_shlib='-belf'
5211 ;;
5212
5213 solaris*)
5214 lt_cv_prog_cc_pic='-KPIC'
5215 lt_cv_prog_cc_static='-Bstatic'
5216 lt_cv_prog_cc_wl='-Wl,'
5217 ;;
5218
5219 sunos4*)
5220 lt_cv_prog_cc_pic='-PIC'
5221 lt_cv_prog_cc_static='-Bstatic'
5222 lt_cv_prog_cc_wl='-Qoption ld '
5223 ;;
5224
5225 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5226 lt_cv_prog_cc_pic='-KPIC'
5227 lt_cv_prog_cc_static='-Bstatic'
5228 lt_cv_prog_cc_wl='-Wl,'
5229 ;;
5230
5231 uts4*)
5232 lt_cv_prog_cc_pic='-pic'
5233 lt_cv_prog_cc_static='-Bstatic'
5234 ;;
5235
5236 sysv4*MP*)
5237 if test -d /usr/nec ;then
5238 lt_cv_prog_cc_pic='-Kconform_pic'
5239 lt_cv_prog_cc_static='-Bstatic'
5240 fi
5241 ;;
5242
5243 *)
5244 lt_cv_prog_cc_can_build_shared=no
5245 ;;
5246 esac
5247 fi
5248
5249fi
5250
5251if test -z "$lt_cv_prog_cc_pic"; then
5252 echo "$as_me:$LINENO: result: none" >&5
5253echo "${ECHO_T}none" >&6
5254else
5255 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5256echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5257
5258 # Check to make sure the pic_flag actually works.
5259 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5260echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5261 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263else
5264 save_CFLAGS="$CFLAGS"
5265 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5266 cat >conftest.$ac_ext <<_ACEOF
5267#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00005268#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005269
5270int
5271main ()
5272{
5273
5274 ;
5275 return 0;
5276}
5277_ACEOF
5278rm -f conftest.$ac_objext
5279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280 (eval $ac_compile) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } &&
5284 { ac_try='test -s conftest.$ac_objext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 (eval $ac_try) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 case $host_os in
5291 hpux9* | hpux10* | hpux11*)
5292 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5293 # they create non-PIC objects. So, if there were any warnings, we
5294 # assume that PIC is not supported.
5295 if test -s conftest.err; then
5296 lt_cv_prog_cc_pic_works=no
5297 else
5298 lt_cv_prog_cc_pic_works=yes
5299 fi
5300 ;;
5301 *)
5302 lt_cv_prog_cc_pic_works=yes
5303 ;;
5304 esac
5305
5306else
5307 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00005308cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005309 lt_cv_prog_cc_pic_works=no
5310
5311fi
5312rm -f conftest.$ac_objext conftest.$ac_ext
5313 CFLAGS="$save_CFLAGS"
5314
5315fi
5316
5317
5318 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5319 lt_cv_prog_cc_pic=
5320 lt_cv_prog_cc_can_build_shared=no
5321 else
5322 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5323 fi
5324
5325 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5326echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5327fi
5328
5329# Check for any special shared library compilation flags.
5330if test -n "$lt_cv_prog_cc_shlib"; then
5331 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5332echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5333 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5334 else
5335 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5336echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5337 lt_cv_prog_cc_can_build_shared=no
5338 fi
5339fi
5340
5341echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5342echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5343if test "${lt_cv_prog_cc_static_works+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345else
5346 lt_cv_prog_cc_static_works=no
5347 save_LDFLAGS="$LDFLAGS"
5348 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5349 cat >conftest.$ac_ext <<_ACEOF
5350#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00005351#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005352
5353int
5354main ()
5355{
5356
5357 ;
5358 return 0;
5359}
5360_ACEOF
5361rm -f conftest.$ac_objext conftest$ac_exeext
5362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363 (eval $ac_link) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -s conftest$ac_exeext'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 (eval $ac_try) 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5373 lt_cv_prog_cc_static_works=yes
5374else
5375 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00005376cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005377fi
5378rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5379 LDFLAGS="$save_LDFLAGS"
5380
5381fi
5382
5383
5384# Belt *and* braces to stop my trousers falling down:
5385test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5386echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5387echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5388
5389pic_flag="$lt_cv_prog_cc_pic"
5390special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5391wl="$lt_cv_prog_cc_wl"
5392link_static_flag="$lt_cv_prog_cc_static"
5393no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5394can_build_shared="$lt_cv_prog_cc_can_build_shared"
5395
5396
5397# Check to see if options -o and -c are simultaneously supported by compiler
5398echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5399echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5400if test "${lt_cv_compiler_c_o+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402else
5403
5404$rm -r conftest 2>/dev/null
5405mkdir conftest
5406cd conftest
5407echo "int some_variable = 0;" > conftest.$ac_ext
5408mkdir out
5409# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5410# that will create temporary files in the current directory regardless of
5411# the output directory. Thus, making CWD read-only will cause this test
5412# to fail, enabling locking or at least warning the user not to do parallel
5413# builds.
5414chmod -w .
5415save_CFLAGS="$CFLAGS"
5416CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5417compiler_c_o=no
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00005418if { (eval echo configure:5418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005419 # The compiler can only warn and ignore the option if not recognized
5420 # So say no if there are warnings
5421 if test -s out/conftest.err; then
5422 lt_cv_compiler_c_o=no
5423 else
5424 lt_cv_compiler_c_o=yes
5425 fi
5426else
5427 # Append any errors to the config.log.
5428 cat out/conftest.err 1>&5
5429 lt_cv_compiler_c_o=no
5430fi
5431CFLAGS="$save_CFLAGS"
5432chmod u+w .
5433$rm conftest* out/*
5434rmdir out
5435cd ..
5436rmdir conftest
5437$rm -r conftest 2>/dev/null
5438
5439fi
5440
5441compiler_c_o=$lt_cv_compiler_c_o
5442echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5443echo "${ECHO_T}$compiler_c_o" >&6
5444
5445if test x"$compiler_c_o" = x"yes"; then
5446 # Check to see if we can write to a .lo
5447 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5448echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5449 if test "${lt_cv_compiler_o_lo+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5452
5453 lt_cv_compiler_o_lo=no
5454 save_CFLAGS="$CFLAGS"
5455 CFLAGS="$CFLAGS -c -o conftest.lo"
5456 save_objext="$ac_objext"
5457 ac_objext=lo
5458 cat >conftest.$ac_ext <<_ACEOF
5459#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00005460#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005461
5462int
5463main ()
5464{
5465int some_variable = 0;
5466 ;
5467 return 0;
5468}
5469_ACEOF
5470rm -f conftest.$ac_objext
5471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5472 (eval $ac_compile) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } &&
5476 { ac_try='test -s conftest.$ac_objext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 (eval $ac_try) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5482 # The compiler can only warn and ignore the option if not recognized
5483 # So say no if there are warnings
5484 if test -s conftest.err; then
5485 lt_cv_compiler_o_lo=no
5486 else
5487 lt_cv_compiler_o_lo=yes
5488 fi
5489
5490else
5491 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00005492cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005493fi
5494rm -f conftest.$ac_objext conftest.$ac_ext
5495 ac_objext="$save_objext"
5496 CFLAGS="$save_CFLAGS"
5497
5498fi
5499
5500 compiler_o_lo=$lt_cv_compiler_o_lo
5501 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5502echo "${ECHO_T}$compiler_o_lo" >&6
5503else
5504 compiler_o_lo=no
5505fi
5506
5507# Check to see if we can do hard links to lock some files if needed
5508hard_links="nottested"
5509if test "$compiler_c_o" = no && test "$need_locks" != no; then
5510 # do not overwrite the value of need_locks provided by the user
5511 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5512echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5513 hard_links=yes
5514 $rm conftest*
5515 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5516 touch conftest.a
5517 ln conftest.a conftest.b 2>&5 || hard_links=no
5518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5519 echo "$as_me:$LINENO: result: $hard_links" >&5
5520echo "${ECHO_T}$hard_links" >&6
5521 if test "$hard_links" = no; then
5522 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5523echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5524 need_locks=warn
5525 fi
5526else
5527 need_locks=no
5528fi
5529
5530if test "$GCC" = yes; then
5531 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5532 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5533echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5534 echo "int some_variable = 0;" > conftest.$ac_ext
5535 save_CFLAGS="$CFLAGS"
5536 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5537 compiler_rtti_exceptions=no
5538 cat >conftest.$ac_ext <<_ACEOF
5539#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00005540#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005541
5542int
5543main ()
5544{
5545int some_variable = 0;
5546 ;
5547 return 0;
5548}
5549_ACEOF
5550rm -f conftest.$ac_objext
5551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } &&
5556 { ac_try='test -s conftest.$ac_objext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 (eval $ac_try) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 # The compiler can only warn and ignore the option if not recognized
5563 # So say no if there are warnings
5564 if test -s conftest.err; then
5565 compiler_rtti_exceptions=no
5566 else
5567 compiler_rtti_exceptions=yes
5568 fi
5569
5570else
5571 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00005572cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005573fi
5574rm -f conftest.$ac_objext conftest.$ac_ext
5575 CFLAGS="$save_CFLAGS"
5576 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5577echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5578
5579 if test "$compiler_rtti_exceptions" = "yes"; then
5580 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5581 else
5582 no_builtin_flag=' -fno-builtin'
5583 fi
5584fi
5585
5586# See if the linker supports building shared libraries.
5587echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5588echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5589
5590allow_undefined_flag=
5591no_undefined_flag=
5592need_lib_prefix=unknown
5593need_version=unknown
5594# when you set need_version to no, make sure it does not cause -set_version
5595# flags to be left without arguments
5596archive_cmds=
5597archive_expsym_cmds=
5598old_archive_from_new_cmds=
5599old_archive_from_expsyms_cmds=
5600export_dynamic_flag_spec=
5601whole_archive_flag_spec=
5602thread_safe_flag_spec=
5603hardcode_into_libs=no
5604hardcode_libdir_flag_spec=
5605hardcode_libdir_separator=
5606hardcode_direct=no
5607hardcode_minus_L=no
5608hardcode_shlibpath_var=unsupported
5609runpath_var=
5610link_all_deplibs=unknown
5611always_export_symbols=no
5612export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5613# include_expsyms should be a list of space-separated symbols to be *always*
5614# included in the symbol list
5615include_expsyms=
5616# exclude_expsyms can be an egrep regular expression of symbols to exclude
5617# it will be wrapped by ` (' and `)$', so one must not match beginning or
5618# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5619# as well as any symbol that contains `d'.
5620exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5621# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5622# platforms (ab)use it in PIC code, but their linkers get confused if
5623# the symbol is explicitly referenced. Since portable code cannot
5624# rely on this symbol name, it's probably fine to never include it in
5625# preloaded symbol tables.
5626extract_expsyms_cmds=
5627
5628case $host_os in
5629cygwin* | mingw* | pw32*)
5630 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5631 # When not using gcc, we currently assume that we are using
5632 # Microsoft Visual C++.
5633 if test "$GCC" != yes; then
5634 with_gnu_ld=no
5635 fi
5636 ;;
5637openbsd*)
5638 with_gnu_ld=no
5639 ;;
5640esac
5641
5642ld_shlibs=yes
5643if test "$with_gnu_ld" = yes; then
5644 # If archive_cmds runs LD, not CC, wlarc should be empty
5645 wlarc='${wl}'
5646
5647 # See if GNU ld supports shared libraries.
5648 case $host_os in
5649 aix3* | aix4* | aix5*)
5650 # On AIX, the GNU linker is very broken
5651 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5652 ld_shlibs=no
5653 cat <<EOF 1>&2
5654
5655*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5656*** to be unable to reliably create shared libraries on AIX.
5657*** Therefore, libtool is disabling shared libraries support. If you
5658*** really care for shared libraries, you may want to modify your PATH
5659*** so that a non-GNU linker is found, and then restart.
5660
5661EOF
5662 ;;
5663
5664 amigaos*)
5665 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)'
5666 hardcode_libdir_flag_spec='-L$libdir'
5667 hardcode_minus_L=yes
5668
5669 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5670 # that the semantics of dynamic libraries on AmigaOS, at least up
5671 # to version 4, is to share data among multiple programs linked
5672 # with the same dynamic library. Since this doesn't match the
5673 # behavior of shared libraries on other platforms, we can use
5674 # them.
5675 ld_shlibs=no
5676 ;;
5677
5678 beos*)
5679 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5680 allow_undefined_flag=unsupported
5681 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5682 # support --undefined. This deserves some investigation. FIXME
5683 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5684 else
5685 ld_shlibs=no
5686 fi
5687 ;;
5688
5689 cygwin* | mingw* | pw32*)
5690 # hardcode_libdir_flag_spec is actually meaningless, as there is
5691 # no search path for DLLs.
5692 hardcode_libdir_flag_spec='-L$libdir'
5693 allow_undefined_flag=unsupported
5694 always_export_symbols=yes
5695
5696 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5697 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5698 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5699 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5700 else $CC -o impgen impgen.c ; fi)~
5701 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5702
5703 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5704
5705 # cygwin and mingw dlls have different entry points and sets of symbols
5706 # to exclude.
5707 # FIXME: what about values for MSVC?
5708 dll_entry=__cygwin_dll_entry@12
5709 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5710 case $host_os in
5711 mingw*)
5712 # mingw values
5713 dll_entry=_DllMainCRTStartup@12
5714 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5715 ;;
5716 esac
5717
5718 # mingw and cygwin differ, and it's simplest to just exclude the union
5719 # of the two symbol sets.
5720 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5721
5722 # recent cygwin and mingw systems supply a stub DllMain which the user
5723 # can override, but on older systems we have to supply one (in ltdll.c)
5724 if test "x$lt_cv_need_dllmain" = "xyes"; then
5725 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5726 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5727 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5728 else
5729 ltdll_obj=
5730 ltdll_cmds=
5731 fi
5732
5733 # Extract the symbol export list from an `--export-all' def file,
5734 # then regenerate the def file from the symbol export list, so that
5735 # the compiled dll only exports the symbol export list.
5736 # Be careful not to strip the DATA tag left be newer dlltools.
5737 export_symbols_cmds="$ltdll_cmds"'
5738 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5739 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5740
5741 # If the export-symbols file already is a .def file (1st line
5742 # is EXPORTS), use it as is.
5743 # If DATA tags from a recent dlltool are present, honour them!
5744 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5745 cp $export_symbols $output_objdir/$soname-def;
5746 else
5747 echo EXPORTS > $output_objdir/$soname-def;
5748 _lt_hint=1;
5749 cat $export_symbols | while read symbol; do
5750 set dummy \$symbol;
5751 case \$# in
5752 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5753 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5754 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5755 esac;
5756 _lt_hint=`expr 1 + \$_lt_hint`;
5757 done;
5758 fi~
5759 '"$ltdll_cmds"'
5760 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5761 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5762 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5763 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5764 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5765 ;;
5766
5767 netbsd*)
5768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5769 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5770 wlarc=
5771 else
5772 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5773 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5774 fi
5775 ;;
5776
5777 solaris* | sysv5*)
5778 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5779 ld_shlibs=no
5780 cat <<EOF 1>&2
5781
5782*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5783*** create shared libraries on Solaris systems. Therefore, libtool
5784*** is disabling shared libraries support. We urge you to upgrade GNU
5785*** binutils to release 2.9.1 or newer. Another option is to modify
5786*** your PATH or compiler configuration so that the native linker is
5787*** used, and then restart.
5788
5789EOF
5790 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5792 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5793 else
5794 ld_shlibs=no
5795 fi
5796 ;;
5797
5798 sunos4*)
5799 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5800 wlarc=
5801 hardcode_direct=yes
5802 hardcode_shlibpath_var=no
5803 ;;
5804
5805 *)
5806 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5808 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5809 else
5810 ld_shlibs=no
5811 fi
5812 ;;
5813 esac
5814
5815 if test "$ld_shlibs" = yes; then
5816 runpath_var=LD_RUN_PATH
5817 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5818 export_dynamic_flag_spec='${wl}--export-dynamic'
5819 case $host_os in
5820 cygwin* | mingw* | pw32*)
5821 # dlltool doesn't understand --whole-archive et. al.
5822 whole_archive_flag_spec=
5823 ;;
5824 *)
5825 # ancient GNU ld didn't support --whole-archive et. al.
5826 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5827 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5828 else
5829 whole_archive_flag_spec=
5830 fi
5831 ;;
5832 esac
5833 fi
5834else
5835 # PORTME fill in a description of your system's linker (not GNU ld)
5836 case $host_os in
5837 aix3*)
5838 allow_undefined_flag=unsupported
5839 always_export_symbols=yes
5840 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'
5841 # Note: this linker hardcodes the directories in LIBPATH if there
5842 # are no directories specified by -L.
5843 hardcode_minus_L=yes
5844 if test "$GCC" = yes && test -z "$link_static_flag"; then
5845 # Neither direct hardcoding nor static linking is supported with a
5846 # broken collect2.
5847 hardcode_direct=unsupported
5848 fi
5849 ;;
5850
5851 aix4* | aix5*)
5852 if test "$host_cpu" = ia64; then
5853 # On IA64, the linker does run time linking by default, so we don't
5854 # have to do anything special.
5855 aix_use_runtimelinking=no
5856 exp_sym_flag='-Bexport'
5857 no_entry_flag=""
5858 else
5859 aix_use_runtimelinking=no
5860
5861 # Test if we are trying to use run time linking or normal
5862 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5863 # need to do runtime linking.
5864 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5865 for ld_flag in $LDFLAGS; do
5866 case $ld_flag in
5867 *-brtl*)
5868 aix_use_runtimelinking=yes
5869 break
5870 ;;
5871 esac
5872 done
5873 esac
5874
5875 exp_sym_flag='-bexport'
5876 no_entry_flag='-bnoentry'
5877 fi
5878
5879 # When large executables or shared objects are built, AIX ld can
5880 # have problems creating the table of contents. If linking a library
5881 # or program results in "error TOC overflow" add -mminimal-toc to
5882 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5883 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5884
5885 hardcode_direct=yes
5886 archive_cmds=''
5887 hardcode_libdir_separator=':'
5888 if test "$GCC" = yes; then
5889 case $host_os in aix4.[012]|aix4.[012].*)
5890 collect2name=`${CC} -print-prog-name=collect2`
5891 if test -f "$collect2name" && \
5892 strings "$collect2name" | grep resolve_lib_name >/dev/null
5893 then
5894 # We have reworked collect2
5895 hardcode_direct=yes
5896 else
5897 # We have old collect2
5898 hardcode_direct=unsupported
5899 # It fails to find uninstalled libraries when the uninstalled
5900 # path is not listed in the libpath. Setting hardcode_minus_L
5901 # to unsupported forces relinking
5902 hardcode_minus_L=yes
5903 hardcode_libdir_flag_spec='-L$libdir'
5904 hardcode_libdir_separator=
5905 fi
5906 esac
5907
5908 shared_flag='-shared'
5909 else
5910 # not using gcc
5911 if test "$host_cpu" = ia64; then
5912 shared_flag='${wl}-G'
5913 else
5914 if test "$aix_use_runtimelinking" = yes; then
5915 shared_flag='${wl}-G'
5916 else
5917 shared_flag='${wl}-bM:SRE'
5918 fi
5919 fi
5920 fi
5921
5922 # It seems that -bexpall can do strange things, so it is better to
5923 # generate a list of symbols to export.
5924 always_export_symbols=yes
5925 if test "$aix_use_runtimelinking" = yes; then
5926 # Warning - without using the other runtime loading flags (-brtl),
5927 # -berok will link without error, but may produce a broken library.
5928 allow_undefined_flag='-berok'
5929 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5930 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"
5931 else
5932 if test "$host_cpu" = ia64; then
5933 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5934 allow_undefined_flag="-z nodefs"
5935 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5936 else
5937 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5938 # Warning - without using the other run time loading flags,
5939 # -berok will link without error, but may produce a broken library.
5940 allow_undefined_flag='${wl}-berok'
5941 # This is a bit strange, but is similar to how AIX traditionally builds
5942 # it's shared libraries.
5943 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5944 fi
5945 fi
5946 ;;
5947
5948 amigaos*)
5949 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)'
5950 hardcode_libdir_flag_spec='-L$libdir'
5951 hardcode_minus_L=yes
5952 # see comment about different semantics on the GNU ld section
5953 ld_shlibs=no
5954 ;;
5955
5956 cygwin* | mingw* | pw32*)
5957 # When not using gcc, we currently assume that we are using
5958 # Microsoft Visual C++.
5959 # hardcode_libdir_flag_spec is actually meaningless, as there is
5960 # no search path for DLLs.
5961 hardcode_libdir_flag_spec=' '
5962 allow_undefined_flag=unsupported
5963 # Tell ltmain to make .lib files, not .a files.
5964 libext=lib
5965 # FIXME: Setting linknames here is a bad hack.
5966 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5967 # The linker will automatically build a .lib file if we build a DLL.
5968 old_archive_from_new_cmds='true'
5969 # FIXME: Should let the user specify the lib program.
5970 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5971 fix_srcfile_path='`cygpath -w "$srcfile"`'
5972 ;;
5973
5974 darwin* | rhapsody*)
5975 case "$host_os" in
5976 rhapsody* | darwin1.[012])
5977 allow_undefined_flag='-undefined suppress'
5978 ;;
5979 *) # Darwin 1.3 on
5980 allow_undefined_flag='-flat_namespace -undefined suppress'
5981 ;;
5982 esac
5983 # FIXME: Relying on posixy $() will cause problems for
5984 # cross-compilation, but unfortunately the echo tests do not
5985 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5986 # `"' quotes if we put them in here... so don't!
5987 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5988 # We need to add '_' to the symbols in $export_symbols first
5989 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5990 hardcode_direct=yes
5991 hardcode_shlibpath_var=no
5992 whole_archive_flag_spec='-all_load $convenience'
5993 ;;
5994
5995 freebsd1*)
5996 ld_shlibs=no
5997 ;;
5998
5999 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6000 # support. Future versions do this automatically, but an explicit c++rt0.o
6001 # does not break anything, and helps significantly (at the cost of a little
6002 # extra space).
6003 freebsd2.2*)
6004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6005 hardcode_libdir_flag_spec='-R$libdir'
6006 hardcode_direct=yes
6007 hardcode_shlibpath_var=no
6008 ;;
6009
6010 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6011 freebsd2*)
6012 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6013 hardcode_direct=yes
6014 hardcode_minus_L=yes
6015 hardcode_shlibpath_var=no
6016 ;;
6017
6018 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6019 freebsd*)
6020 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6021 hardcode_libdir_flag_spec='-R$libdir'
6022 hardcode_direct=yes
6023 hardcode_shlibpath_var=no
6024 ;;
6025
6026 hpux9* | hpux10* | hpux11*)
6027 case $host_os in
6028 hpux9*) 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' ;;
6029 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6030 esac
6031 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6032 hardcode_libdir_separator=:
6033 hardcode_direct=yes
6034 hardcode_minus_L=yes # Not in the search PATH, but as the default
6035 # location of the library.
6036 export_dynamic_flag_spec='${wl}-E'
6037 ;;
6038
6039 irix5* | irix6* | nonstopux*)
6040 if test "$GCC" = yes; then
6041 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'
6042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6043 else
6044 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'
6045 hardcode_libdir_flag_spec='-rpath $libdir'
6046 fi
6047 hardcode_libdir_separator=:
6048 link_all_deplibs=yes
6049 ;;
6050
6051 netbsd*)
6052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6054 else
6055 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6056 fi
6057 hardcode_libdir_flag_spec='-R$libdir'
6058 hardcode_direct=yes
6059 hardcode_shlibpath_var=no
6060 ;;
6061
6062 newsos6)
6063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6064 hardcode_direct=yes
6065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6066 hardcode_libdir_separator=:
6067 hardcode_shlibpath_var=no
6068 ;;
6069
6070 openbsd*)
6071 hardcode_direct=yes
6072 hardcode_shlibpath_var=no
6073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6074 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6075 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6076 export_dynamic_flag_spec='${wl}-E'
6077 else
6078 case "$host_os" in
6079 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6080 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6081 hardcode_libdir_flag_spec='-R$libdir'
6082 ;;
6083 *)
6084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6086 ;;
6087 esac
6088 fi
6089 ;;
6090
6091 os2*)
6092 hardcode_libdir_flag_spec='-L$libdir'
6093 hardcode_minus_L=yes
6094 allow_undefined_flag=unsupported
6095 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'
6096 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6097 ;;
6098
6099 osf3*)
6100 if test "$GCC" = yes; then
6101 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6102 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'
6103 else
6104 allow_undefined_flag=' -expect_unresolved \*'
6105 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'
6106 fi
6107 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6108 hardcode_libdir_separator=:
6109 ;;
6110
6111 osf4* | osf5*) # as osf3* with the addition of -msym flag
6112 if test "$GCC" = yes; then
6113 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6114 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'
6115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6116 else
6117 allow_undefined_flag=' -expect_unresolved \*'
6118 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'
6119 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6120 $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'
6121
6122 #Both c and cxx compiler support -rpath directly
6123 hardcode_libdir_flag_spec='-rpath $libdir'
6124 fi
6125 hardcode_libdir_separator=:
6126 ;;
6127
6128 sco3.2v5*)
6129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6130 hardcode_shlibpath_var=no
6131 runpath_var=LD_RUN_PATH
6132 hardcode_runpath_var=yes
6133 export_dynamic_flag_spec='${wl}-Bexport'
6134 ;;
6135
6136 solaris*)
6137 # gcc --version < 3.0 without binutils cannot create self contained
6138 # shared libraries reliably, requiring libgcc.a to resolve some of
6139 # the object symbols generated in some cases. Libraries that use
6140 # assert need libgcc.a to resolve __eprintf, for example. Linking
6141 # a copy of libgcc.a into every shared library to guarantee resolving
6142 # such symbols causes other problems: According to Tim Van Holder
6143 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6144 # (to the application) exception stack for one thing.
6145 no_undefined_flag=' -z defs'
6146 if test "$GCC" = yes; then
6147 case `$CC --version 2>/dev/null` in
6148 [12].*)
6149 cat <<EOF 1>&2
6150
6151*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6152*** create self contained shared libraries on Solaris systems, without
6153*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6154*** -no-undefined support, which will at least allow you to build shared
6155*** libraries. However, you may find that when you link such libraries
6156*** into an application without using GCC, you have to manually add
6157*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6158*** upgrade to a newer version of GCC. Another option is to rebuild your
6159*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6160
6161EOF
6162 no_undefined_flag=
6163 ;;
6164 esac
6165 fi
6166 # $CC -shared without GNU ld will not create a library from C++
6167 # object files and a static libstdc++, better avoid it by now
6168 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6169 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6170 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6171 hardcode_libdir_flag_spec='-R$libdir'
6172 hardcode_shlibpath_var=no
6173 case $host_os in
6174 solaris2.[0-5] | solaris2.[0-5].*) ;;
6175 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6176 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6177 esac
6178 link_all_deplibs=yes
6179 ;;
6180
6181 sunos4*)
6182 if test "x$host_vendor" = xsequent; then
6183 # Use $CC to link under sequent, because it throws in some extra .o
6184 # files that make .init and .fini sections work.
6185 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6186 else
6187 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6188 fi
6189 hardcode_libdir_flag_spec='-L$libdir'
6190 hardcode_direct=yes
6191 hardcode_minus_L=yes
6192 hardcode_shlibpath_var=no
6193 ;;
6194
6195 sysv4)
6196 case $host_vendor in
6197 sni)
6198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6199 hardcode_direct=yes # is this really true???
6200 ;;
6201 siemens)
6202 ## LD is ld it makes a PLAMLIB
6203 ## CC just makes a GrossModule.
6204 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6205 reload_cmds='$CC -r -o $output$reload_objs'
6206 hardcode_direct=no
6207 ;;
6208 motorola)
6209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6210 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6211 ;;
6212 esac
6213 runpath_var='LD_RUN_PATH'
6214 hardcode_shlibpath_var=no
6215 ;;
6216
6217 sysv4.3*)
6218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6219 hardcode_shlibpath_var=no
6220 export_dynamic_flag_spec='-Bexport'
6221 ;;
6222
6223 sysv5*)
6224 no_undefined_flag=' -z text'
6225 # $CC -shared without GNU ld will not create a library from C++
6226 # object files and a static libstdc++, better avoid it by now
6227 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6228 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6229 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6230 hardcode_libdir_flag_spec=
6231 hardcode_shlibpath_var=no
6232 runpath_var='LD_RUN_PATH'
6233 ;;
6234
6235 uts4*)
6236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6237 hardcode_libdir_flag_spec='-L$libdir'
6238 hardcode_shlibpath_var=no
6239 ;;
6240
6241 dgux*)
6242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6243 hardcode_libdir_flag_spec='-L$libdir'
6244 hardcode_shlibpath_var=no
6245 ;;
6246
6247 sysv4*MP*)
6248 if test -d /usr/nec; then
6249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6250 hardcode_shlibpath_var=no
6251 runpath_var=LD_RUN_PATH
6252 hardcode_runpath_var=yes
6253 ld_shlibs=yes
6254 fi
6255 ;;
6256
6257 sysv4.2uw2*)
6258 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6259 hardcode_direct=yes
6260 hardcode_minus_L=no
6261 hardcode_shlibpath_var=no
6262 hardcode_runpath_var=yes
6263 runpath_var=LD_RUN_PATH
6264 ;;
6265
6266 sysv5uw7* | unixware7*)
6267 no_undefined_flag='${wl}-z ${wl}text'
6268 if test "$GCC" = yes; then
6269 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6270 else
6271 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6272 fi
6273 runpath_var='LD_RUN_PATH'
6274 hardcode_shlibpath_var=no
6275 ;;
6276
6277 *)
6278 ld_shlibs=no
6279 ;;
6280 esac
6281fi
6282echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6283echo "${ECHO_T}$ld_shlibs" >&6
6284test "$ld_shlibs" = no && can_build_shared=no
6285
6286# Check hardcoding attributes.
6287echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6288echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6289hardcode_action=
6290if test -n "$hardcode_libdir_flag_spec" || \
6291 test -n "$runpath_var"; then
6292
6293 # We can hardcode non-existant directories.
6294 if test "$hardcode_direct" != no &&
6295 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6296 # have to relink, otherwise we might link with an installed library
6297 # when we should be linking with a yet-to-be-installed one
6298 ## test "$hardcode_shlibpath_var" != no &&
6299 test "$hardcode_minus_L" != no; then
6300 # Linking always hardcodes the temporary library directory.
6301 hardcode_action=relink
6302 else
6303 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6304 hardcode_action=immediate
6305 fi
6306else
6307 # We cannot hardcode anything, or else we can only hardcode existing
6308 # directories.
6309 hardcode_action=unsupported
6310fi
6311echo "$as_me:$LINENO: result: $hardcode_action" >&5
6312echo "${ECHO_T}$hardcode_action" >&6
6313
6314striplib=
6315old_striplib=
6316echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6317echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6318if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6319 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6320 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6321 echo "$as_me:$LINENO: result: yes" >&5
6322echo "${ECHO_T}yes" >&6
6323else
6324 echo "$as_me:$LINENO: result: no" >&5
6325echo "${ECHO_T}no" >&6
6326fi
6327
6328reload_cmds='$LD$reload_flag -o $output$reload_objs'
6329test -z "$deplibs_check_method" && deplibs_check_method=unknown
6330
6331# PORTME Fill in your ld.so characteristics
6332echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6333echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6334library_names_spec=
6335libname_spec='lib$name'
6336soname_spec=
6337postinstall_cmds=
6338postuninstall_cmds=
6339finish_cmds=
6340finish_eval=
6341shlibpath_var=
6342shlibpath_overrides_runpath=unknown
6343version_type=none
6344dynamic_linker="$host_os ld.so"
6345sys_lib_dlsearch_path_spec="/lib /usr/lib"
6346sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6347
6348case $host_os in
6349aix3*)
6350 version_type=linux
6351 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6352 shlibpath_var=LIBPATH
6353
6354 # AIX has no versioning support, so we append a major version to the name.
6355 soname_spec='${libname}${release}.so$major'
6356 ;;
6357
6358aix4* | aix5*)
6359 version_type=linux
6360 need_lib_prefix=no
6361 need_version=no
6362 hardcode_into_libs=yes
6363 if test "$host_cpu" = ia64; then
6364 # AIX 5 supports IA64
6365 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6366 shlibpath_var=LD_LIBRARY_PATH
6367 else
6368 # With GCC up to 2.95.x, collect2 would create an import file
6369 # for dependence libraries. The import file would start with
6370 # the line `#! .'. This would cause the generated library to
6371 # depend on `.', always an invalid library. This was fixed in
6372 # development snapshots of GCC prior to 3.0.
6373 case $host_os in
6374 aix4 | aix4.[01] | aix4.[01].*)
6375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6376 echo ' yes '
6377 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6378 :
6379 else
6380 can_build_shared=no
6381 fi
6382 ;;
6383 esac
6384 # AIX (on Power*) has no versioning support, so currently we can
6385 # not hardcode correct soname into executable. Probably we can
6386 # add versioning support to collect2, so additional links can
6387 # be useful in future.
6388 if test "$aix_use_runtimelinking" = yes; then
6389 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6390 # instead of lib<name>.a to let people know that these are not
6391 # typical AIX shared libraries.
6392 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6393 else
6394 # We preserve .a as extension for shared libraries through AIX4.2
6395 # and later when we are not doing run time linking.
6396 library_names_spec='${libname}${release}.a $libname.a'
6397 soname_spec='${libname}${release}.so$major'
6398 fi
6399 shlibpath_var=LIBPATH
6400 fi
6401 hardcode_into_libs=yes
6402 ;;
6403
6404amigaos*)
6405 library_names_spec='$libname.ixlibrary $libname.a'
6406 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6407 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'
6408 ;;
6409
6410beos*)
6411 library_names_spec='${libname}.so'
6412 dynamic_linker="$host_os ld.so"
6413 shlibpath_var=LIBRARY_PATH
6414 ;;
6415
6416bsdi4*)
6417 version_type=linux
6418 need_version=no
6419 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6420 soname_spec='${libname}${release}.so$major'
6421 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6422 shlibpath_var=LD_LIBRARY_PATH
6423 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6424 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6425 export_dynamic_flag_spec=-rdynamic
6426 # the default ld.so.conf also contains /usr/contrib/lib and
6427 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6428 # libtool to hard-code these into programs
6429 ;;
6430
6431cygwin* | mingw* | pw32*)
6432 version_type=windows
6433 need_version=no
6434 need_lib_prefix=no
6435 case $GCC,$host_os in
6436 yes,cygwin*)
6437 library_names_spec='$libname.dll.a'
6438 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6439 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6440 dldir=$destdir/`dirname \$dlpath`~
6441 test -d \$dldir || mkdir -p \$dldir~
6442 $install_prog .libs/$dlname \$dldir/$dlname'
6443 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6444 dlpath=$dir/\$dldll~
6445 $rm \$dlpath'
6446 ;;
6447 yes,mingw*)
6448 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6449 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6450 ;;
6451 yes,pw32*)
6452 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6453 ;;
6454 *)
6455 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6456 ;;
6457 esac
6458 dynamic_linker='Win32 ld.exe'
6459 # FIXME: first we should search . and the directory the executable is in
6460 shlibpath_var=PATH
6461 ;;
6462
6463darwin* | rhapsody*)
6464 dynamic_linker="$host_os dyld"
6465 version_type=darwin
6466 need_lib_prefix=no
6467 need_version=no
6468 # FIXME: Relying on posixy $() will cause problems for
6469 # cross-compilation, but unfortunately the echo tests do not
6470 # yet detect zsh echo's removal of \ escapes.
6471 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6472 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6473 shlibpath_overrides_runpath=yes
6474 shlibpath_var=DYLD_LIBRARY_PATH
6475 ;;
6476
6477freebsd1*)
6478 dynamic_linker=no
6479 ;;
6480
6481freebsd*-gnu*)
6482 version_type=linux
6483 need_lib_prefix=no
6484 need_version=no
6485 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6486 soname_spec='${libname}${release}.so$major'
6487 shlibpath_var=LD_LIBRARY_PATH
6488 shlibpath_overrides_runpath=no
6489 hardcode_into_libs=yes
6490 dynamic_linker='GNU/FreeBSD ld.so'
6491 ;;
6492
6493freebsd*)
6494 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6495 version_type=freebsd-$objformat
6496 case $version_type in
6497 freebsd-elf*)
6498 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6499 need_version=no
6500 need_lib_prefix=no
6501 ;;
6502 freebsd-*)
6503 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6504 need_version=yes
6505 ;;
6506 esac
6507 shlibpath_var=LD_LIBRARY_PATH
6508 case $host_os in
6509 freebsd2*)
6510 shlibpath_overrides_runpath=yes
6511 ;;
6512 *)
6513 shlibpath_overrides_runpath=no
6514 hardcode_into_libs=yes
6515 ;;
6516 esac
6517 ;;
6518
6519gnu*)
6520 version_type=linux
6521 need_lib_prefix=no
6522 need_version=no
6523 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6524 soname_spec='${libname}${release}.so$major'
6525 shlibpath_var=LD_LIBRARY_PATH
6526 hardcode_into_libs=yes
6527 ;;
6528
6529hpux9* | hpux10* | hpux11*)
6530 # Give a soname corresponding to the major version so that dld.sl refuses to
6531 # link against other versions.
6532 dynamic_linker="$host_os dld.sl"
6533 version_type=sunos
6534 need_lib_prefix=no
6535 need_version=no
6536 shlibpath_var=SHLIB_PATH
6537 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6538 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6539 soname_spec='${libname}${release}.sl$major'
6540 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6541 postinstall_cmds='chmod 555 $lib'
6542 ;;
6543
6544irix5* | irix6* | nonstopux*)
6545 case $host_os in
6546 nonstopux*) version_type=nonstopux ;;
6547 *) version_type=irix ;;
6548 esac
6549 need_lib_prefix=no
6550 need_version=no
6551 soname_spec='${libname}${release}.so$major'
6552 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6553 case $host_os in
6554 irix5* | nonstopux*)
6555 libsuff= shlibsuff=
6556 ;;
6557 *)
6558 case $LD in # libtool.m4 will add one of these switches to LD
6559 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6560 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6561 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6562 *) libsuff= shlibsuff= libmagic=never-match;;
6563 esac
6564 ;;
6565 esac
6566 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6567 shlibpath_overrides_runpath=no
6568 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6569 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6570 ;;
6571
6572# No shared lib support for Linux oldld, aout, or coff.
6573linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6574 dynamic_linker=no
6575 ;;
6576
6577# This must be Linux ELF.
6578linux-gnu*)
6579 version_type=linux
6580 need_lib_prefix=no
6581 need_version=no
6582 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6583 soname_spec='${libname}${release}.so$major'
6584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6585 shlibpath_var=LD_LIBRARY_PATH
6586 shlibpath_overrides_runpath=no
6587 # This implies no fast_install, which is unacceptable.
6588 # Some rework will be needed to allow for fast_install
6589 # before this can be enabled.
6590 hardcode_into_libs=yes
6591
6592 # We used to test for /lib/ld.so.1 and disable shared libraries on
6593 # powerpc, because MkLinux only supported shared libraries with the
6594 # GNU dynamic linker. Since this was broken with cross compilers,
6595 # most powerpc-linux boxes support dynamic linking these days and
6596 # people can always --disable-shared, the test was removed, and we
6597 # assume the GNU/Linux dynamic linker is in use.
6598 dynamic_linker='GNU/Linux ld.so'
6599 ;;
6600
6601netbsd*)
6602 version_type=sunos
6603 need_lib_prefix=no
6604 need_version=no
6605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6606 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6608 dynamic_linker='NetBSD (a.out) ld.so'
6609 else
6610 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6611 soname_spec='${libname}${release}.so$major'
6612 dynamic_linker='NetBSD ld.elf_so'
6613 fi
6614 shlibpath_var=LD_LIBRARY_PATH
6615 shlibpath_overrides_runpath=yes
6616 hardcode_into_libs=yes
6617 ;;
6618
6619newsos6)
6620 version_type=linux
6621 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6622 shlibpath_var=LD_LIBRARY_PATH
6623 shlibpath_overrides_runpath=yes
6624 ;;
6625
6626openbsd*)
6627 version_type=sunos
6628 need_lib_prefix=no
6629 need_version=no
6630 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6631 case "$host_os" in
6632 openbsd2.[89] | openbsd2.[89].*)
6633 shlibpath_overrides_runpath=no
6634 ;;
6635 *)
6636 shlibpath_overrides_runpath=yes
6637 ;;
6638 esac
6639 else
6640 shlibpath_overrides_runpath=yes
6641 fi
6642 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6644 shlibpath_var=LD_LIBRARY_PATH
6645 ;;
6646
6647os2*)
6648 libname_spec='$name'
6649 need_lib_prefix=no
6650 library_names_spec='$libname.dll $libname.a'
6651 dynamic_linker='OS/2 ld.exe'
6652 shlibpath_var=LIBPATH
6653 ;;
6654
6655osf3* | osf4* | osf5*)
6656 version_type=osf
6657 need_version=no
6658 need_lib_prefix=no
6659 soname_spec='${libname}${release}.so$major'
6660 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6661 shlibpath_var=LD_LIBRARY_PATH
6662 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6663 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6664 hardcode_into_libs=yes
6665 ;;
6666
6667sco3.2v5*)
6668 version_type=osf
6669 soname_spec='${libname}${release}.so$major'
6670 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6671 shlibpath_var=LD_LIBRARY_PATH
6672 ;;
6673
6674solaris*)
6675 version_type=linux
6676 need_lib_prefix=no
6677 need_version=no
6678 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6679 soname_spec='${libname}${release}.so$major'
6680 shlibpath_var=LD_LIBRARY_PATH
6681 shlibpath_overrides_runpath=yes
6682 hardcode_into_libs=yes
6683 # ldd complains unless libraries are executable
6684 postinstall_cmds='chmod +x $lib'
6685 ;;
6686
6687sunos4*)
6688 version_type=sunos
6689 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6690 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6691 shlibpath_var=LD_LIBRARY_PATH
6692 shlibpath_overrides_runpath=yes
6693 if test "$with_gnu_ld" = yes; then
6694 need_lib_prefix=no
6695 fi
6696 need_version=yes
6697 ;;
6698
6699sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6700 version_type=linux
6701 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6702 soname_spec='${libname}${release}.so$major'
6703 shlibpath_var=LD_LIBRARY_PATH
6704 case $host_vendor in
6705 sni)
6706 shlibpath_overrides_runpath=no
6707 need_lib_prefix=no
6708 export_dynamic_flag_spec='${wl}-Blargedynsym'
6709 runpath_var=LD_RUN_PATH
6710 ;;
6711 siemens)
6712 need_lib_prefix=no
6713 ;;
6714 motorola)
6715 need_lib_prefix=no
6716 need_version=no
6717 shlibpath_overrides_runpath=no
6718 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6719 ;;
6720 esac
6721 ;;
6722
6723uts4*)
6724 version_type=linux
6725 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6726 soname_spec='${libname}${release}.so$major'
6727 shlibpath_var=LD_LIBRARY_PATH
6728 ;;
6729
6730dgux*)
6731 version_type=linux
6732 need_lib_prefix=no
6733 need_version=no
6734 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6735 soname_spec='${libname}${release}.so$major'
6736 shlibpath_var=LD_LIBRARY_PATH
6737 ;;
6738
6739sysv4*MP*)
6740 if test -d /usr/nec ;then
6741 version_type=linux
6742 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6743 soname_spec='$libname.so.$major'
6744 shlibpath_var=LD_LIBRARY_PATH
6745 fi
6746 ;;
6747
6748*)
6749 dynamic_linker=no
6750 ;;
6751esac
6752echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6753echo "${ECHO_T}$dynamic_linker" >&6
6754test "$dynamic_linker" = no && can_build_shared=no
6755
6756# Report the final consequences.
6757echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6758echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6759echo "$as_me:$LINENO: result: $can_build_shared" >&5
6760echo "${ECHO_T}$can_build_shared" >&6
6761
6762echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6763echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6764test "$can_build_shared" = "no" && enable_shared=no
6765
6766# On AIX, shared libraries and static libraries use the same namespace, and
6767# are all built from PIC.
6768case "$host_os" in
6769aix3*)
6770 test "$enable_shared" = yes && enable_static=no
6771 if test -n "$RANLIB"; then
6772 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6773 postinstall_cmds='$RANLIB $lib'
6774 fi
6775 ;;
6776
6777aix4*)
6778 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6779 test "$enable_shared" = yes && enable_static=no
6780 fi
6781 ;;
6782esac
6783echo "$as_me:$LINENO: result: $enable_shared" >&5
6784echo "${ECHO_T}$enable_shared" >&6
6785
6786echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6787echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6788# Make sure either enable_shared or enable_static is yes.
6789test "$enable_shared" = yes || enable_static=yes
6790echo "$as_me:$LINENO: result: $enable_static" >&5
6791echo "${ECHO_T}$enable_static" >&6
6792
6793if test "$hardcode_action" = relink; then
6794 # Fast installation is not supported
6795 enable_fast_install=no
6796elif test "$shlibpath_overrides_runpath" = yes ||
6797 test "$enable_shared" = no; then
6798 # Fast installation is not necessary
6799 enable_fast_install=needless
6800fi
6801
6802variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6803if test "$GCC" = yes; then
6804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6805fi
6806
6807if test "x$enable_dlopen" != xyes; then
6808 enable_dlopen=unknown
6809 enable_dlopen_self=unknown
6810 enable_dlopen_self_static=unknown
6811else
6812 lt_cv_dlopen=no
6813 lt_cv_dlopen_libs=
6814
6815 case $host_os in
6816 beos*)
6817 lt_cv_dlopen="load_add_on"
6818 lt_cv_dlopen_libs=
6819 lt_cv_dlopen_self=yes
6820 ;;
6821
6822 cygwin* | mingw* | pw32*)
6823 lt_cv_dlopen="LoadLibrary"
6824 lt_cv_dlopen_libs=
6825 ;;
6826
6827 *)
6828 echo "$as_me:$LINENO: checking for shl_load" >&5
6829echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6830if test "${ac_cv_func_shl_load+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832else
6833 cat >conftest.$ac_ext <<_ACEOF
6834#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006835#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006836/* System header to define __stub macros and hopefully few prototypes,
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006837 which can conflict with char shl_load (); below. */
6838#include <assert.h>
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006839/* Override any gcc2 internal prototype to avoid an error. */
6840#ifdef __cplusplus
6841extern "C"
6842#endif
6843/* We use char because int might match the return type of a gcc2
6844 builtin and then its argument prototype would still apply. */
6845char shl_load ();
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006846char (*f) ();
6847
6848int
6849main ()
6850{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006851/* The GNU C library defines this for functions which it implements
6852 to always fail with ENOSYS. Some functions are actually named
6853 something starting with __ and the normal name is an alias. */
6854#if defined (__stub_shl_load) || defined (__stub___shl_load)
6855choke me
6856#else
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006857f = shl_load;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006858#endif
6859
6860 ;
6861 return 0;
6862}
6863_ACEOF
6864rm -f conftest.$ac_objext conftest$ac_exeext
6865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6866 (eval $ac_link) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try='test -s conftest$ac_exeext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_cv_func_shl_load=yes
6877else
6878 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006879cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006880ac_cv_func_shl_load=no
6881fi
6882rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6883fi
6884echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6885echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6886if test $ac_cv_func_shl_load = yes; then
6887 lt_cv_dlopen="shl_load"
6888else
6889 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6890echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6891if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893else
6894 ac_check_lib_save_LIBS=$LIBS
6895LIBS="-ldld $LIBS"
6896cat >conftest.$ac_ext <<_ACEOF
6897#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006898#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006899
6900/* Override any gcc2 internal prototype to avoid an error. */
6901#ifdef __cplusplus
6902extern "C"
6903#endif
6904/* We use char because int might match the return type of a gcc2
6905 builtin and then its argument prototype would still apply. */
6906char shl_load ();
6907int
6908main ()
6909{
6910shl_load ();
6911 ;
6912 return 0;
6913}
6914_ACEOF
6915rm -f conftest.$ac_objext conftest$ac_exeext
6916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6917 (eval $ac_link) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try='test -s conftest$ac_exeext'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 (eval $ac_try) 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; }; then
6927 ac_cv_lib_dld_shl_load=yes
6928else
6929 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006930cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006931ac_cv_lib_dld_shl_load=no
6932fi
6933rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6934LIBS=$ac_check_lib_save_LIBS
6935fi
6936echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6937echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6938if test $ac_cv_lib_dld_shl_load = yes; then
6939 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6940else
6941 echo "$as_me:$LINENO: checking for dlopen" >&5
6942echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6943if test "${ac_cv_func_dlopen+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945else
6946 cat >conftest.$ac_ext <<_ACEOF
6947#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006948#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006949/* System header to define __stub macros and hopefully few prototypes,
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006950 which can conflict with char dlopen (); below. */
6951#include <assert.h>
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006952/* Override any gcc2 internal prototype to avoid an error. */
6953#ifdef __cplusplus
6954extern "C"
6955#endif
6956/* We use char because int might match the return type of a gcc2
6957 builtin and then its argument prototype would still apply. */
6958char dlopen ();
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006959char (*f) ();
6960
6961int
6962main ()
6963{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006964/* The GNU C library defines this for functions which it implements
6965 to always fail with ENOSYS. Some functions are actually named
6966 something starting with __ and the normal name is an alias. */
6967#if defined (__stub_dlopen) || defined (__stub___dlopen)
6968choke me
6969#else
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006970f = dlopen;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006971#endif
6972
6973 ;
6974 return 0;
6975}
6976_ACEOF
6977rm -f conftest.$ac_objext conftest$ac_exeext
6978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6979 (eval $ac_link) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } &&
6983 { ac_try='test -s conftest$ac_exeext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6989 ac_cv_func_dlopen=yes
6990else
6991 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006992cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006993ac_cv_func_dlopen=no
6994fi
6995rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6996fi
6997echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6998echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6999if test $ac_cv_func_dlopen = yes; then
7000 lt_cv_dlopen="dlopen"
7001else
7002 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7003echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7004if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006else
7007 ac_check_lib_save_LIBS=$LIBS
7008LIBS="-ldl $LIBS"
7009cat >conftest.$ac_ext <<_ACEOF
7010#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007011#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007012
7013/* Override any gcc2 internal prototype to avoid an error. */
7014#ifdef __cplusplus
7015extern "C"
7016#endif
7017/* We use char because int might match the return type of a gcc2
7018 builtin and then its argument prototype would still apply. */
7019char dlopen ();
7020int
7021main ()
7022{
7023dlopen ();
7024 ;
7025 return 0;
7026}
7027_ACEOF
7028rm -f conftest.$ac_objext conftest$ac_exeext
7029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7030 (eval $ac_link) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -s conftest$ac_exeext'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 (eval $ac_try) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7040 ac_cv_lib_dl_dlopen=yes
7041else
7042 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007043cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007044ac_cv_lib_dl_dlopen=no
7045fi
7046rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7047LIBS=$ac_check_lib_save_LIBS
7048fi
7049echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7050echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7051if test $ac_cv_lib_dl_dlopen = yes; then
7052 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7053else
7054 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7055echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7056if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058else
7059 ac_check_lib_save_LIBS=$LIBS
7060LIBS="-lsvld $LIBS"
7061cat >conftest.$ac_ext <<_ACEOF
7062#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007063#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007064
7065/* Override any gcc2 internal prototype to avoid an error. */
7066#ifdef __cplusplus
7067extern "C"
7068#endif
7069/* We use char because int might match the return type of a gcc2
7070 builtin and then its argument prototype would still apply. */
7071char dlopen ();
7072int
7073main ()
7074{
7075dlopen ();
7076 ;
7077 return 0;
7078}
7079_ACEOF
7080rm -f conftest.$ac_objext conftest$ac_exeext
7081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7082 (eval $ac_link) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } &&
7086 { ac_try='test -s conftest$ac_exeext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 ac_cv_lib_svld_dlopen=yes
7093else
7094 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007095cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007096ac_cv_lib_svld_dlopen=no
7097fi
7098rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7099LIBS=$ac_check_lib_save_LIBS
7100fi
7101echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7102echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7103if test $ac_cv_lib_svld_dlopen = yes; then
7104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7105else
7106 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7107echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7108if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110else
7111 ac_check_lib_save_LIBS=$LIBS
7112LIBS="-ldld $LIBS"
7113cat >conftest.$ac_ext <<_ACEOF
7114#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007115#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007116
7117/* Override any gcc2 internal prototype to avoid an error. */
7118#ifdef __cplusplus
7119extern "C"
7120#endif
7121/* We use char because int might match the return type of a gcc2
7122 builtin and then its argument prototype would still apply. */
7123char dld_link ();
7124int
7125main ()
7126{
7127dld_link ();
7128 ;
7129 return 0;
7130}
7131_ACEOF
7132rm -f conftest.$ac_objext conftest$ac_exeext
7133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7134 (eval $ac_link) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try='test -s conftest$ac_exeext'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 ac_cv_lib_dld_dld_link=yes
7145else
7146 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007147cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007148ac_cv_lib_dld_dld_link=no
7149fi
7150rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7151LIBS=$ac_check_lib_save_LIBS
7152fi
7153echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7154echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7155if test $ac_cv_lib_dld_dld_link = yes; then
7156 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7157fi
7158
7159
7160fi
7161
7162
7163fi
7164
7165
7166fi
7167
7168
7169fi
7170
7171
7172fi
7173
7174 ;;
7175 esac
7176
7177 if test "x$lt_cv_dlopen" != xno; then
7178 enable_dlopen=yes
7179 else
7180 enable_dlopen=no
7181 fi
7182
7183 case $lt_cv_dlopen in
7184 dlopen)
7185 save_CPPFLAGS="$CPPFLAGS"
7186 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7187
7188 save_LDFLAGS="$LDFLAGS"
7189 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7190
7191 save_LIBS="$LIBS"
7192 LIBS="$lt_cv_dlopen_libs $LIBS"
7193
7194 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7195echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7196if test "${lt_cv_dlopen_self+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198else
7199 if test "$cross_compiling" = yes; then :
7200 lt_cv_dlopen_self=cross
7201else
7202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7203 lt_status=$lt_dlunknown
7204 cat > conftest.$ac_ext <<EOF
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00007205#line 7205 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007206#include "confdefs.h"
7207
7208#if HAVE_DLFCN_H
7209#include <dlfcn.h>
7210#endif
7211
7212#include <stdio.h>
7213
7214#ifdef RTLD_GLOBAL
7215# define LT_DLGLOBAL RTLD_GLOBAL
7216#else
7217# ifdef DL_GLOBAL
7218# define LT_DLGLOBAL DL_GLOBAL
7219# else
7220# define LT_DLGLOBAL 0
7221# endif
7222#endif
7223
7224/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7225 find out it does not work in some platform. */
7226#ifndef LT_DLLAZY_OR_NOW
7227# ifdef RTLD_LAZY
7228# define LT_DLLAZY_OR_NOW RTLD_LAZY
7229# else
7230# ifdef DL_LAZY
7231# define LT_DLLAZY_OR_NOW DL_LAZY
7232# else
7233# ifdef RTLD_NOW
7234# define LT_DLLAZY_OR_NOW RTLD_NOW
7235# else
7236# ifdef DL_NOW
7237# define LT_DLLAZY_OR_NOW DL_NOW
7238# else
7239# define LT_DLLAZY_OR_NOW 0
7240# endif
7241# endif
7242# endif
7243# endif
7244#endif
7245
7246#ifdef __cplusplus
7247extern "C" void exit (int);
7248#endif
7249
7250void fnord() { int i=42;}
7251int main ()
7252{
7253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7254 int status = $lt_dlunknown;
7255
7256 if (self)
7257 {
7258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7259 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7260 /* dlclose (self); */
7261 }
7262
7263 exit (status);
7264}
7265EOF
7266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7267 (eval $ac_link) 2>&5
7268 ac_status=$?
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7271 (./conftest; exit; ) 2>/dev/null
7272 lt_status=$?
7273 case x$lt_status in
7274 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7275 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7276 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7277 esac
7278 else :
7279 # compilation failed
7280 lt_cv_dlopen_self=no
7281 fi
7282fi
7283rm -fr conftest*
7284
7285
7286fi
7287echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7288echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7289
7290 if test "x$lt_cv_dlopen_self" = xyes; then
7291 LDFLAGS="$LDFLAGS $link_static_flag"
7292 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7293echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7294if test "${lt_cv_dlopen_self_static+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296else
7297 if test "$cross_compiling" = yes; then :
7298 lt_cv_dlopen_self_static=cross
7299else
7300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7301 lt_status=$lt_dlunknown
7302 cat > conftest.$ac_ext <<EOF
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00007303#line 7303 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007304#include "confdefs.h"
7305
7306#if HAVE_DLFCN_H
7307#include <dlfcn.h>
7308#endif
7309
7310#include <stdio.h>
7311
7312#ifdef RTLD_GLOBAL
7313# define LT_DLGLOBAL RTLD_GLOBAL
7314#else
7315# ifdef DL_GLOBAL
7316# define LT_DLGLOBAL DL_GLOBAL
7317# else
7318# define LT_DLGLOBAL 0
7319# endif
7320#endif
7321
7322/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7323 find out it does not work in some platform. */
7324#ifndef LT_DLLAZY_OR_NOW
7325# ifdef RTLD_LAZY
7326# define LT_DLLAZY_OR_NOW RTLD_LAZY
7327# else
7328# ifdef DL_LAZY
7329# define LT_DLLAZY_OR_NOW DL_LAZY
7330# else
7331# ifdef RTLD_NOW
7332# define LT_DLLAZY_OR_NOW RTLD_NOW
7333# else
7334# ifdef DL_NOW
7335# define LT_DLLAZY_OR_NOW DL_NOW
7336# else
7337# define LT_DLLAZY_OR_NOW 0
7338# endif
7339# endif
7340# endif
7341# endif
7342#endif
7343
7344#ifdef __cplusplus
7345extern "C" void exit (int);
7346#endif
7347
7348void fnord() { int i=42;}
7349int main ()
7350{
7351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7352 int status = $lt_dlunknown;
7353
7354 if (self)
7355 {
7356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7357 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7358 /* dlclose (self); */
7359 }
7360
7361 exit (status);
7362}
7363EOF
7364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7365 (eval $ac_link) 2>&5
7366 ac_status=$?
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7369 (./conftest; exit; ) 2>/dev/null
7370 lt_status=$?
7371 case x$lt_status in
7372 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7373 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7374 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7375 esac
7376 else :
7377 # compilation failed
7378 lt_cv_dlopen_self_static=no
7379 fi
7380fi
7381rm -fr conftest*
7382
7383
7384fi
7385echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7386echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7387 fi
7388
7389 CPPFLAGS="$save_CPPFLAGS"
7390 LDFLAGS="$save_LDFLAGS"
7391 LIBS="$save_LIBS"
7392 ;;
7393 esac
7394
7395 case $lt_cv_dlopen_self in
7396 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7397 *) enable_dlopen_self=unknown ;;
7398 esac
7399
7400 case $lt_cv_dlopen_self_static in
7401 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7402 *) enable_dlopen_self_static=unknown ;;
7403 esac
7404fi
7405
7406
7407if test "$enable_shared" = yes && test "$GCC" = yes; then
7408 case $archive_cmds in
7409 *'~'*)
7410 # FIXME: we may have to deal with multi-command sequences.
7411 ;;
7412 '$CC '*)
7413 # Test whether the compiler implicitly links with -lc since on some
7414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7415 # to ld, don't add -lc before -lgcc.
7416 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7417echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7418 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7420else
7421 $rm conftest*
7422 echo 'static int dummy;' > conftest.$ac_ext
7423
7424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7425 (eval $ac_compile) 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; then
7429 soname=conftest
7430 lib=conftest
7431 libobjs=conftest.$ac_objext
7432 deplibs=
7433 wl=$lt_cv_prog_cc_wl
7434 compiler_flags=-v
7435 linker_flags=-v
7436 verstring=
7437 output_objdir=.
7438 libname=conftest
7439 save_allow_undefined_flag=$allow_undefined_flag
7440 allow_undefined_flag=
7441 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7442 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }
7446 then
7447 lt_cv_archive_cmds_need_lc=no
7448 else
7449 lt_cv_archive_cmds_need_lc=yes
7450 fi
7451 allow_undefined_flag=$save_allow_undefined_flag
7452 else
7453 cat conftest.err 1>&5
7454 fi
7455fi
7456
7457 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7458echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7459 ;;
7460 esac
7461fi
7462need_lc=${lt_cv_archive_cmds_need_lc-yes}
7463
7464# The second clause should only fire when bootstrapping the
7465# libtool distribution, otherwise you forgot to ship ltmain.sh
7466# with your package, and you will get complaints that there are
7467# no rules to generate ltmain.sh.
7468if test -f "$ltmain"; then
7469 :
7470else
7471 # If there is no Makefile yet, we rely on a make rule to execute
7472 # `config.status --recheck' to rerun these tests and create the
7473 # libtool script then.
7474 test -f Makefile && make "$ltmain"
7475fi
7476
7477if test -f "$ltmain"; then
7478 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7479 $rm -f "${ofile}T"
7480
7481 echo creating $ofile
7482
7483 # Now quote all the things that may contain metacharacters while being
7484 # careful not to overquote the AC_SUBSTed values. We take copies of the
7485 # variables and quote the copies for generation of the libtool script.
7486 for var in echo old_CC old_CFLAGS SED \
7487 AR AR_FLAGS CC LD LN_S NM SHELL \
7488 reload_flag reload_cmds wl \
7489 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7490 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7491 library_names_spec soname_spec \
7492 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7493 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7494 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7495 old_striplib striplib file_magic_cmd export_symbols_cmds \
7496 deplibs_check_method allow_undefined_flag no_undefined_flag \
7497 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7498 global_symbol_to_c_name_address \
7499 hardcode_libdir_flag_spec hardcode_libdir_separator \
7500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7501 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7502
7503 case $var in
7504 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7505 old_postinstall_cmds | old_postuninstall_cmds | \
7506 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7507 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7508 postinstall_cmds | postuninstall_cmds | \
7509 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7510 # Double-quote double-evaled strings.
7511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7512 ;;
7513 *)
7514 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7515 ;;
7516 esac
7517 done
7518
7519 cat <<__EOF__ > "${ofile}T"
7520#! $SHELL
7521
7522# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7523# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7524# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7525#
7526# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7527# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7528#
7529# This program is free software; you can redistribute it and/or modify
7530# it under the terms of the GNU General Public License as published by
7531# the Free Software Foundation; either version 2 of the License, or
7532# (at your option) any later version.
7533#
7534# This program is distributed in the hope that it will be useful, but
7535# WITHOUT ANY WARRANTY; without even the implied warranty of
7536# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7537# General Public License for more details.
7538#
7539# You should have received a copy of the GNU General Public License
7540# along with this program; if not, write to the Free Software
7541# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7542#
7543# As a special exception to the GNU General Public License, if you
7544# distribute this file as part of a program that contains a
7545# configuration script generated by Autoconf, you may include it under
7546# the same distribution terms that you use for the rest of that program.
7547
7548# A sed that does not truncate output.
7549SED=$lt_SED
7550
7551# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7552Xsed="${SED} -e s/^X//"
7553
7554# The HP-UX ksh and POSIX shell print the target directory to stdout
7555# if CDPATH is set.
7556if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7557
7558# ### BEGIN LIBTOOL CONFIG
7559
7560# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7561
7562# Shell to use when invoking shell scripts.
7563SHELL=$lt_SHELL
7564
7565# Whether or not to build shared libraries.
7566build_libtool_libs=$enable_shared
7567
7568# Whether or not to build static libraries.
7569build_old_libs=$enable_static
7570
7571# Whether or not to add -lc for building shared libraries.
7572build_libtool_need_lc=$need_lc
7573
7574# Whether or not to optimize for fast installation.
7575fast_install=$enable_fast_install
7576
7577# The host system.
7578host_alias=$host_alias
7579host=$host
7580
7581# An echo program that does not interpret backslashes.
7582echo=$lt_echo
7583
7584# The archiver.
7585AR=$lt_AR
7586AR_FLAGS=$lt_AR_FLAGS
7587
7588# The default C compiler.
7589CC=$lt_CC
7590
7591# Is the compiler the GNU C compiler?
7592with_gcc=$GCC
7593
7594# The linker used to build libraries.
7595LD=$lt_LD
7596
7597# Whether we need hard or soft links.
7598LN_S=$lt_LN_S
7599
7600# A BSD-compatible nm program.
7601NM=$lt_NM
7602
7603# A symbol stripping program
7604STRIP=$STRIP
7605
7606# Used to examine libraries when file_magic_cmd begins "file"
7607MAGIC_CMD=$MAGIC_CMD
7608
7609# Used on cygwin: DLL creation program.
7610DLLTOOL="$DLLTOOL"
7611
7612# Used on cygwin: object dumper.
7613OBJDUMP="$OBJDUMP"
7614
7615# Used on cygwin: assembler.
7616AS="$AS"
7617
7618# The name of the directory that contains temporary libtool files.
7619objdir=$objdir
7620
7621# How to create reloadable object files.
7622reload_flag=$lt_reload_flag
7623reload_cmds=$lt_reload_cmds
7624
7625# How to pass a linker flag through the compiler.
7626wl=$lt_wl
7627
7628# Object file suffix (normally "o").
7629objext="$ac_objext"
7630
7631# Old archive suffix (normally "a").
7632libext="$libext"
7633
7634# Executable file suffix (normally "").
7635exeext="$exeext"
7636
7637# Additional compiler flags for building library objects.
7638pic_flag=$lt_pic_flag
7639pic_mode=$pic_mode
7640
7641# Does compiler simultaneously support -c and -o options?
7642compiler_c_o=$lt_compiler_c_o
7643
7644# Can we write directly to a .lo ?
7645compiler_o_lo=$lt_compiler_o_lo
7646
7647# Must we lock files when doing compilation ?
7648need_locks=$lt_need_locks
7649
7650# Do we need the lib prefix for modules?
7651need_lib_prefix=$need_lib_prefix
7652
7653# Do we need a version for libraries?
7654need_version=$need_version
7655
7656# Whether dlopen is supported.
7657dlopen_support=$enable_dlopen
7658
7659# Whether dlopen of programs is supported.
7660dlopen_self=$enable_dlopen_self
7661
7662# Whether dlopen of statically linked programs is supported.
7663dlopen_self_static=$enable_dlopen_self_static
7664
7665# Compiler flag to prevent dynamic linking.
7666link_static_flag=$lt_link_static_flag
7667
7668# Compiler flag to turn off builtin functions.
7669no_builtin_flag=$lt_no_builtin_flag
7670
7671# Compiler flag to allow reflexive dlopens.
7672export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7673
7674# Compiler flag to generate shared objects directly from archives.
7675whole_archive_flag_spec=$lt_whole_archive_flag_spec
7676
7677# Compiler flag to generate thread-safe objects.
7678thread_safe_flag_spec=$lt_thread_safe_flag_spec
7679
7680# Library versioning type.
7681version_type=$version_type
7682
7683# Format of library name prefix.
7684libname_spec=$lt_libname_spec
7685
7686# List of archive names. First name is the real one, the rest are links.
7687# The last name is the one that the linker finds with -lNAME.
7688library_names_spec=$lt_library_names_spec
7689
7690# The coded name of the library, if different from the real name.
7691soname_spec=$lt_soname_spec
7692
7693# Commands used to build and install an old-style archive.
7694RANLIB=$lt_RANLIB
7695old_archive_cmds=$lt_old_archive_cmds
7696old_postinstall_cmds=$lt_old_postinstall_cmds
7697old_postuninstall_cmds=$lt_old_postuninstall_cmds
7698
7699# Create an old-style archive from a shared archive.
7700old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7701
7702# Create a temporary old-style archive to link instead of a shared archive.
7703old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7704
7705# Commands used to build and install a shared archive.
7706archive_cmds=$lt_archive_cmds
7707archive_expsym_cmds=$lt_archive_expsym_cmds
7708postinstall_cmds=$lt_postinstall_cmds
7709postuninstall_cmds=$lt_postuninstall_cmds
7710
7711# Commands to strip libraries.
7712old_striplib=$lt_old_striplib
7713striplib=$lt_striplib
7714
7715# Method to check whether dependent libraries are shared objects.
7716deplibs_check_method=$lt_deplibs_check_method
7717
7718# Command to use when deplibs_check_method == file_magic.
7719file_magic_cmd=$lt_file_magic_cmd
7720
7721# Flag that allows shared libraries with undefined symbols to be built.
7722allow_undefined_flag=$lt_allow_undefined_flag
7723
7724# Flag that forces no undefined symbols.
7725no_undefined_flag=$lt_no_undefined_flag
7726
7727# Commands used to finish a libtool library installation in a directory.
7728finish_cmds=$lt_finish_cmds
7729
7730# Same as above, but a single script fragment to be evaled but not shown.
7731finish_eval=$lt_finish_eval
7732
7733# Take the output of nm and produce a listing of raw symbols and C names.
7734global_symbol_pipe=$lt_global_symbol_pipe
7735
7736# Transform the output of nm in a proper C declaration
7737global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7738
7739# Transform the output of nm in a C name address pair
7740global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7741
7742# This is the shared library runtime path variable.
7743runpath_var=$runpath_var
7744
7745# This is the shared library path variable.
7746shlibpath_var=$shlibpath_var
7747
7748# Is shlibpath searched before the hard-coded library search path?
7749shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7750
7751# How to hardcode a shared library path into an executable.
7752hardcode_action=$hardcode_action
7753
7754# Whether we should hardcode library paths into libraries.
7755hardcode_into_libs=$hardcode_into_libs
7756
7757# Flag to hardcode \$libdir into a binary during linking.
7758# This must work even if \$libdir does not exist.
7759hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7760
7761# Whether we need a single -rpath flag with a separated argument.
7762hardcode_libdir_separator=$lt_hardcode_libdir_separator
7763
7764# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7765# resulting binary.
7766hardcode_direct=$hardcode_direct
7767
7768# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7769# resulting binary.
7770hardcode_minus_L=$hardcode_minus_L
7771
7772# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7773# the resulting binary.
7774hardcode_shlibpath_var=$hardcode_shlibpath_var
7775
7776# Variables whose values should be saved in libtool wrapper scripts and
7777# restored at relink time.
7778variables_saved_for_relink="$variables_saved_for_relink"
7779
7780# Whether libtool must link a program against all its dependency libraries.
7781link_all_deplibs=$link_all_deplibs
7782
7783# Compile-time system search path for libraries
7784sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7785
7786# Run-time system search path for libraries
7787sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7788
7789# Fix the shell variable \$srcfile for the compiler.
7790fix_srcfile_path="$fix_srcfile_path"
7791
7792# Set to yes if exported symbols are required.
7793always_export_symbols=$always_export_symbols
7794
7795# The commands to list exported symbols.
7796export_symbols_cmds=$lt_export_symbols_cmds
7797
7798# The commands to extract the exported symbol list from a shared archive.
7799extract_expsyms_cmds=$lt_extract_expsyms_cmds
7800
7801# Symbols that should not be listed in the preloaded symbols.
7802exclude_expsyms=$lt_exclude_expsyms
7803
7804# Symbols that must always be exported.
7805include_expsyms=$lt_include_expsyms
7806
7807# ### END LIBTOOL CONFIG
7808
7809__EOF__
7810
7811 case $host_os in
7812 aix3*)
7813 cat <<\EOF >> "${ofile}T"
7814
7815# AIX sometimes has problems with the GCC collect2 program. For some
7816# reason, if we set the COLLECT_NAMES environment variable, the problems
7817# vanish in a puff of smoke.
7818if test "X${COLLECT_NAMES+set}" != Xset; then
7819 COLLECT_NAMES=
7820 export COLLECT_NAMES
7821fi
7822EOF
7823 ;;
7824 esac
7825
7826 case $host_os in
7827 cygwin* | mingw* | pw32* | os2*)
7828 cat <<'EOF' >> "${ofile}T"
7829 # This is a source program that is used to create dlls on Windows
7830 # Don't remove nor modify the starting and closing comments
7831# /* ltdll.c starts here */
7832# #define WIN32_LEAN_AND_MEAN
7833# #include <windows.h>
7834# #undef WIN32_LEAN_AND_MEAN
7835# #include <stdio.h>
7836#
7837# #ifndef __CYGWIN__
7838# # ifdef __CYGWIN32__
7839# # define __CYGWIN__ __CYGWIN32__
7840# # endif
7841# #endif
7842#
7843# #ifdef __cplusplus
7844# extern "C" {
7845# #endif
7846# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7847# #ifdef __cplusplus
7848# }
7849# #endif
7850#
7851# #ifdef __CYGWIN__
7852# #include <cygwin/cygwin_dll.h>
7853# DECLARE_CYGWIN_DLL( DllMain );
7854# #endif
7855# HINSTANCE __hDllInstance_base;
7856#
7857# BOOL APIENTRY
7858# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7859# {
7860# __hDllInstance_base = hInst;
7861# return TRUE;
7862# }
7863# /* ltdll.c ends here */
7864 # This is a source program that is used to create import libraries
7865 # on Windows for dlls which lack them. Don't remove nor modify the
7866 # starting and closing comments
7867# /* impgen.c starts here */
7868# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7869#
7870# This file is part of GNU libtool.
7871#
7872# This program is free software; you can redistribute it and/or modify
7873# it under the terms of the GNU General Public License as published by
7874# the Free Software Foundation; either version 2 of the License, or
7875# (at your option) any later version.
7876#
7877# This program is distributed in the hope that it will be useful,
7878# but WITHOUT ANY WARRANTY; without even the implied warranty of
7879# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7880# GNU General Public License for more details.
7881#
7882# You should have received a copy of the GNU General Public License
7883# along with this program; if not, write to the Free Software
7884# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7885# */
7886#
7887# #include <stdio.h> /* for printf() */
7888# #include <unistd.h> /* for open(), lseek(), read() */
7889# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7890# #include <string.h> /* for strdup() */
7891#
7892# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7893# #ifndef O_BINARY
7894# #define O_BINARY 0
7895# #endif
7896#
7897# static unsigned int
7898# pe_get16 (fd, offset)
7899# int fd;
7900# int offset;
7901# {
7902# unsigned char b[2];
7903# lseek (fd, offset, SEEK_SET);
7904# read (fd, b, 2);
7905# return b[0] + (b[1]<<8);
7906# }
7907#
7908# static unsigned int
7909# pe_get32 (fd, offset)
7910# int fd;
7911# int offset;
7912# {
7913# unsigned char b[4];
7914# lseek (fd, offset, SEEK_SET);
7915# read (fd, b, 4);
7916# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7917# }
7918#
7919# static unsigned int
7920# pe_as32 (ptr)
7921# void *ptr;
7922# {
7923# unsigned char *b = ptr;
7924# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7925# }
7926#
7927# int
7928# main (argc, argv)
7929# int argc;
7930# char *argv[];
7931# {
7932# int dll;
7933# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7934# unsigned long export_rva, export_size, nsections, secptr, expptr;
7935# unsigned long name_rvas, nexp;
7936# unsigned char *expdata, *erva;
7937# char *filename, *dll_name;
7938#
7939# filename = argv[1];
7940#
7941# dll = open(filename, O_RDONLY|O_BINARY);
7942# if (dll < 1)
7943# return 1;
7944#
7945# dll_name = filename;
7946#
7947# for (i=0; filename[i]; i++)
7948# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7949# dll_name = filename + i +1;
7950#
7951# pe_header_offset = pe_get32 (dll, 0x3c);
7952# opthdr_ofs = pe_header_offset + 4 + 20;
7953# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7954#
7955# if (num_entries < 1) /* no exports */
7956# return 1;
7957#
7958# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7959# export_size = pe_get32 (dll, opthdr_ofs + 100);
7960# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7961# secptr = (pe_header_offset + 4 + 20 +
7962# pe_get16 (dll, pe_header_offset + 4 + 16));
7963#
7964# expptr = 0;
7965# for (i = 0; i < nsections; i++)
7966# {
7967# char sname[8];
7968# unsigned long secptr1 = secptr + 40 * i;
7969# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7970# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7971# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7972# lseek(dll, secptr1, SEEK_SET);
7973# read(dll, sname, 8);
7974# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7975# {
7976# expptr = fptr + (export_rva - vaddr);
7977# if (export_rva + export_size > vaddr + vsize)
7978# export_size = vsize - (export_rva - vaddr);
7979# break;
7980# }
7981# }
7982#
7983# expdata = (unsigned char*)malloc(export_size);
7984# lseek (dll, expptr, SEEK_SET);
7985# read (dll, expdata, export_size);
7986# erva = expdata - export_rva;
7987#
7988# nexp = pe_as32 (expdata+24);
7989# name_rvas = pe_as32 (expdata+32);
7990#
7991# printf ("EXPORTS\n");
7992# for (i = 0; i<nexp; i++)
7993# {
7994# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7995# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7996# }
7997#
7998# return 0;
7999# }
8000# /* impgen.c ends here */
8001
8002EOF
8003 ;;
8004 esac
8005
8006 # We use sed instead of cat because bash on DJGPP gets confused if
8007 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8008 # text mode, it properly converts lines to CR/LF. This bash problem
8009 # is reportedly fixed, but why not run on old versions too?
8010 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8011
8012 mv -f "${ofile}T" "$ofile" || \
8013 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8014 chmod +x "$ofile"
8015fi
8016
8017
8018
8019
8020
8021# This can be used to rebuild libtool when needed
8022LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8023
8024# Always use our own libtool.
8025LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8026
8027# Prevent multiple expansion
8028
8029
mostang.com!davidm6af90d02003-02-15 08:53:55 +00008030# By default we simply use the C compiler to build assembly code.
8031
8032: ${CCAS='$(CC)'}
8033# Set ASFLAGS if not already set.
8034: ${CCASFLAGS='$(CFLAGS)'}
8035
8036
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008037
8038
8039echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8040echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8041if test "${ac_cv_header_stdc+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043else
8044 cat >conftest.$ac_ext <<_ACEOF
8045#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008046#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008047#include <stdlib.h>
8048#include <stdarg.h>
8049#include <string.h>
8050#include <float.h>
8051
8052_ACEOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008055 ac_status=$?
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008060 (exit $ac_status); } >/dev/null; then
8061 if test -s conftest.err; then
8062 ac_cpp_err=$ac_c_preproc_warn_flag
8063 else
8064 ac_cpp_err=
8065 fi
8066else
8067 ac_cpp_err=yes
8068fi
8069if test -z "$ac_cpp_err"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008070 ac_cv_header_stdc=yes
8071else
8072 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008073 cat conftest.$ac_ext >&5
8074 ac_cv_header_stdc=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008075fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008076rm -f conftest.err conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008077
8078if test $ac_cv_header_stdc = yes; then
8079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8080 cat >conftest.$ac_ext <<_ACEOF
8081#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008082#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008083#include <string.h>
8084
8085_ACEOF
8086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8087 $EGREP "memchr" >/dev/null 2>&1; then
8088 :
8089else
8090 ac_cv_header_stdc=no
8091fi
8092rm -f conftest*
8093
8094fi
8095
8096if test $ac_cv_header_stdc = yes; then
8097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8098 cat >conftest.$ac_ext <<_ACEOF
8099#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008100#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008101#include <stdlib.h>
8102
8103_ACEOF
8104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8105 $EGREP "free" >/dev/null 2>&1; then
8106 :
8107else
8108 ac_cv_header_stdc=no
8109fi
8110rm -f conftest*
8111
8112fi
8113
8114if test $ac_cv_header_stdc = yes; then
8115 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8116 if test "$cross_compiling" = yes; then
8117 :
8118else
8119 cat >conftest.$ac_ext <<_ACEOF
8120#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008121#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008122#include <ctype.h>
8123#if ((' ' & 0x0FF) == 0x020)
8124# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8125# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8126#else
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008127# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008128 || ('j' <= (c) && (c) <= 'r') \
8129 || ('s' <= (c) && (c) <= 'z'))
8130# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8131#endif
8132
8133#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8134int
8135main ()
8136{
8137 int i;
8138 for (i = 0; i < 256; i++)
8139 if (XOR (islower (i), ISLOWER (i))
8140 || toupper (i) != TOUPPER (i))
8141 exit(2);
8142 exit (0);
8143}
8144_ACEOF
8145rm -f conftest$ac_exeext
8146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8147 (eval $ac_link) 2>&5
8148 ac_status=$?
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; }; then
8156 :
8157else
8158 echo "$as_me: program exited with status $ac_status" >&5
8159echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008160cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008161( exit $ac_status )
8162ac_cv_header_stdc=no
8163fi
8164rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8165fi
8166fi
8167fi
8168echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8169echo "${ECHO_T}$ac_cv_header_stdc" >&6
8170if test $ac_cv_header_stdc = yes; then
8171
8172cat >>confdefs.h <<\_ACEOF
8173#define STDC_HEADERS 1
8174_ACEOF
8175
8176fi
8177
8178
mostang.com!davidm6af90d02003-02-15 08:53:55 +00008179
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008180
8181
8182
8183for ac_header in asm/ptrace_offsets.h endian.h execinfo.h ia64intrin.h \
8184 unistd.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008185do
8186as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8187if eval "test \"\${$as_ac_Header+set}\" = set"; then
8188 echo "$as_me:$LINENO: checking for $ac_header" >&5
8189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8190if eval "test \"\${$as_ac_Header+set}\" = set"; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192fi
8193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8194echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8195else
8196 # Is the header compilable?
8197echo "$as_me:$LINENO: checking $ac_header usability" >&5
8198echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8199cat >conftest.$ac_ext <<_ACEOF
8200#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008201#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008202$ac_includes_default
8203#include <$ac_header>
8204_ACEOF
8205rm -f conftest.$ac_objext
8206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8207 (eval $ac_compile) 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -s conftest.$ac_objext'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 (eval $ac_try) 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8217 ac_header_compiler=yes
8218else
8219 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008220cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008221ac_header_compiler=no
8222fi
8223rm -f conftest.$ac_objext conftest.$ac_ext
8224echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8225echo "${ECHO_T}$ac_header_compiler" >&6
8226
8227# Is the header present?
8228echo "$as_me:$LINENO: checking $ac_header presence" >&5
8229echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8230cat >conftest.$ac_ext <<_ACEOF
8231#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008232#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008233#include <$ac_header>
8234_ACEOF
8235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } >/dev/null; then
8243 if test -s conftest.err; then
8244 ac_cpp_err=$ac_c_preproc_warn_flag
8245 else
8246 ac_cpp_err=
8247 fi
8248else
8249 ac_cpp_err=yes
8250fi
8251if test -z "$ac_cpp_err"; then
8252 ac_header_preproc=yes
8253else
8254 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008255 cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008256 ac_header_preproc=no
8257fi
8258rm -f conftest.err conftest.$ac_ext
8259echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8260echo "${ECHO_T}$ac_header_preproc" >&6
8261
8262# So? What about this header?
8263case $ac_header_compiler:$ac_header_preproc in
8264 yes:no )
8265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8266echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008269 no:yes )
8270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8271echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8273echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008276esac
8277echo "$as_me:$LINENO: checking for $ac_header" >&5
8278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8279if eval "test \"\${$as_ac_Header+set}\" = set"; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8281else
8282 eval "$as_ac_Header=$ac_header_preproc"
8283fi
8284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8285echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8286
8287fi
8288if test `eval echo '${'$as_ac_Header'}'` = yes; then
8289 cat >>confdefs.h <<_ACEOF
8290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8291_ACEOF
8292
8293fi
8294
8295done
8296
8297
8298echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8299echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8300if test "${ac_cv_c_const+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
8303 cat >conftest.$ac_ext <<_ACEOF
8304#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008305#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008306
8307int
8308main ()
8309{
8310/* FIXME: Include the comments suggested by Paul. */
8311#ifndef __cplusplus
8312 /* Ultrix mips cc rejects this. */
8313 typedef int charset[2];
8314 const charset x;
8315 /* SunOS 4.1.1 cc rejects this. */
8316 char const *const *ccp;
8317 char **p;
8318 /* NEC SVR4.0.2 mips cc rejects this. */
8319 struct point {int x, y;};
8320 static struct point const zero = {0,0};
8321 /* AIX XL C 1.02.0.0 rejects this.
8322 It does not let you subtract one const X* pointer from another in
8323 an arm of an if-expression whose if-part is not a constant
8324 expression */
8325 const char *g = "string";
8326 ccp = &g + (g ? g-g : 0);
8327 /* HPUX 7.0 cc rejects these. */
8328 ++ccp;
8329 p = (char**) ccp;
8330 ccp = (char const *const *) p;
8331 { /* SCO 3.2v4 cc rejects this. */
8332 char *t;
8333 char const *s = 0 ? (char *) 0 : (char const *) 0;
8334
8335 *t++ = 0;
8336 }
8337 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8338 int x[] = {25, 17};
8339 const int *foo = &x[0];
8340 ++foo;
8341 }
8342 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8343 typedef const int *iptr;
8344 iptr p = 0;
8345 ++p;
8346 }
8347 { /* AIX XL C 1.02.0.0 rejects this saying
8348 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8349 struct s { int j; const int *ap[3]; };
8350 struct s *b; b->j = 5;
8351 }
8352 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8353 const int foo = 10;
8354 }
8355#endif
8356
8357 ;
8358 return 0;
8359}
8360_ACEOF
8361rm -f conftest.$ac_objext
8362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8363 (eval $ac_compile) 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try='test -s conftest.$ac_objext'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 (eval $ac_try) 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then
8373 ac_cv_c_const=yes
8374else
8375 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008376cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008377ac_cv_c_const=no
8378fi
8379rm -f conftest.$ac_objext conftest.$ac_ext
8380fi
8381echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8382echo "${ECHO_T}$ac_cv_c_const" >&6
8383if test $ac_cv_c_const = no; then
8384
8385cat >>confdefs.h <<\_ACEOF
8386#define const
8387_ACEOF
8388
8389fi
8390
8391echo "$as_me:$LINENO: checking for inline" >&5
8392echo $ECHO_N "checking for inline... $ECHO_C" >&6
8393if test "${ac_cv_c_inline+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8395else
8396 ac_cv_c_inline=no
8397for ac_kw in inline __inline__ __inline; do
8398 cat >conftest.$ac_ext <<_ACEOF
8399#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008400#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008401#ifndef __cplusplus
8402typedef int foo_t;
8403static $ac_kw foo_t static_foo () {return 0; }
8404$ac_kw foo_t foo () {return 0; }
8405#endif
8406
8407_ACEOF
8408rm -f conftest.$ac_objext
8409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410 (eval $ac_compile) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_c_inline=$ac_kw; break
8421else
8422 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008423cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008424fi
8425rm -f conftest.$ac_objext conftest.$ac_ext
8426done
8427
8428fi
8429echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8430echo "${ECHO_T}$ac_cv_c_inline" >&6
8431case $ac_cv_c_inline in
8432 inline | yes) ;;
8433 no)
8434cat >>confdefs.h <<\_ACEOF
8435#define inline
8436_ACEOF
8437 ;;
8438 *) cat >>confdefs.h <<_ACEOF
8439#define inline $ac_cv_c_inline
8440_ACEOF
8441 ;;
8442esac
8443
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008444echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8445echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8446if test "${ac_cv_type_signal+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448else
8449 cat >conftest.$ac_ext <<_ACEOF
8450#line $LINENO "configure"
8451#include "confdefs.h"
8452#include <sys/types.h>
8453#include <signal.h>
8454#ifdef signal
8455# undef signal
8456#endif
8457#ifdef __cplusplus
8458extern "C" void (*signal (int, void (*)(int)))(int);
8459#else
8460void (*signal ()) ();
8461#endif
8462
8463int
8464main ()
8465{
8466int i;
8467 ;
8468 return 0;
8469}
8470_ACEOF
8471rm -f conftest.$ac_objext
8472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -s conftest.$ac_objext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 (eval $ac_try) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_cv_type_signal=void
8484else
8485 echo "$as_me: failed program was:" >&5
8486cat conftest.$ac_ext >&5
8487ac_cv_type_signal=int
8488fi
8489rm -f conftest.$ac_objext conftest.$ac_ext
8490fi
8491echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8492echo "${ECHO_T}$ac_cv_type_signal" >&6
8493
8494cat >>confdefs.h <<_ACEOF
8495#define RETSIGTYPE $ac_cv_type_signal
8496_ACEOF
8497
8498
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008499echo "$as_me:$LINENO: checking for size_t" >&5
8500echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8501if test "${ac_cv_type_size_t+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8503else
8504 cat >conftest.$ac_ext <<_ACEOF
8505#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008506#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008507$ac_includes_default
8508int
8509main ()
8510{
8511if ((size_t *) 0)
8512 return 0;
8513if (sizeof (size_t))
8514 return 0;
8515 ;
8516 return 0;
8517}
8518_ACEOF
8519rm -f conftest.$ac_objext
8520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8521 (eval $ac_compile) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -s conftest.$ac_objext'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
8531 ac_cv_type_size_t=yes
8532else
8533 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008534cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008535ac_cv_type_size_t=no
8536fi
8537rm -f conftest.$ac_objext conftest.$ac_ext
8538fi
8539echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8540echo "${ECHO_T}$ac_cv_type_size_t" >&6
8541if test $ac_cv_type_size_t = yes; then
8542 :
8543else
8544
8545cat >>confdefs.h <<_ACEOF
8546#define size_t unsigned
8547_ACEOF
8548
8549fi
8550
8551
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008552echo "$as_me:$LINENO: checking for sighandler_t" >&5
8553echo $ECHO_N "checking for sighandler_t... $ECHO_C" >&6
8554if test "${ac_cv_type_sighandler_t+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556else
8557 cat >conftest.$ac_ext <<_ACEOF
8558#line $LINENO "configure"
8559#include "confdefs.h"
8560$ac_includes_default
8561int
8562main ()
8563{
8564if ((sighandler_t *) 0)
8565 return 0;
8566if (sizeof (sighandler_t))
8567 return 0;
8568 ;
8569 return 0;
8570}
8571_ACEOF
8572rm -f conftest.$ac_objext
8573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } &&
8578 { ac_try='test -s conftest.$ac_objext'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 (eval $ac_try) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; }; then
8584 ac_cv_type_sighandler_t=yes
8585else
8586 echo "$as_me: failed program was:" >&5
8587cat conftest.$ac_ext >&5
8588ac_cv_type_sighandler_t=no
8589fi
8590rm -f conftest.$ac_objext conftest.$ac_ext
8591fi
8592echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5
8593echo "${ECHO_T}$ac_cv_type_sighandler_t" >&6
mostang.com!davidm46149fd2003-03-31 18:16:54 +00008594if test $ac_cv_type_sighandler_t = yes; then
8595
8596cat >>confdefs.h <<_ACEOF
8597#define HAVE_SIGHANDLER_T 1
8598_ACEOF
8599
8600
8601fi
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008602
8603
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008604echo "$as_me:$LINENO: checking for working memcmp" >&5
8605echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8606if test "${ac_cv_func_memcmp_working+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8608else
8609 if test "$cross_compiling" = yes; then
8610 ac_cv_func_memcmp_working=no
8611else
8612 cat >conftest.$ac_ext <<_ACEOF
8613#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008614#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008615
8616int
8617main ()
8618{
8619
8620 /* Some versions of memcmp are not 8-bit clean. */
8621 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8622 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8623 exit (1);
8624
8625 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8626 or more and with at least one buffer not starting on a 4-byte boundary.
8627 William Lewis provided this test program. */
8628 {
8629 char foo[21];
8630 char bar[21];
8631 int i;
8632 for (i = 0; i < 4; i++)
8633 {
8634 char *a = foo + i;
8635 char *b = bar + i;
8636 strcpy (a, "--------01111111");
8637 strcpy (b, "--------10000000");
8638 if (memcmp (a, b, 16) >= 0)
8639 exit (1);
8640 }
8641 exit (0);
8642 }
8643
8644 ;
8645 return 0;
8646}
8647_ACEOF
8648rm -f conftest$ac_exeext
8649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650 (eval $ac_link) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_cv_func_memcmp_working=yes
8660else
8661 echo "$as_me: program exited with status $ac_status" >&5
8662echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008663cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008664( exit $ac_status )
8665ac_cv_func_memcmp_working=no
8666fi
8667rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8668fi
8669fi
8670echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8671echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8672test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8673
8674echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8675echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8676if test "${ac_cv_type_signal+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678else
8679 cat >conftest.$ac_ext <<_ACEOF
8680#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008681#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008682#include <sys/types.h>
8683#include <signal.h>
8684#ifdef signal
8685# undef signal
8686#endif
8687#ifdef __cplusplus
8688extern "C" void (*signal (int, void (*)(int)))(int);
8689#else
8690void (*signal ()) ();
8691#endif
8692
8693int
8694main ()
8695{
8696int i;
8697 ;
8698 return 0;
8699}
8700_ACEOF
8701rm -f conftest.$ac_objext
8702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8703 (eval $ac_compile) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try='test -s conftest.$ac_objext'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 (eval $ac_try) 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 ac_cv_type_signal=void
8714else
8715 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008716cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008717ac_cv_type_signal=int
8718fi
8719rm -f conftest.$ac_objext conftest.$ac_ext
8720fi
8721echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8722echo "${ECHO_T}$ac_cv_type_signal" >&6
8723
8724cat >>confdefs.h <<_ACEOF
8725#define RETSIGTYPE $ac_cv_type_signal
8726_ACEOF
8727
8728
8729
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008730
8731
8732
8733for ac_func in dl_iterate_phdr dlmodinfo getunwind ttrace
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008734do
8735as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8736echo "$as_me:$LINENO: checking for $ac_func" >&5
8737echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8738if eval "test \"\${$as_ac_var+set}\" = set"; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8740else
8741 cat >conftest.$ac_ext <<_ACEOF
8742#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008743#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008744/* System header to define __stub macros and hopefully few prototypes,
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008745 which can conflict with char $ac_func (); below. */
8746#include <assert.h>
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008747/* Override any gcc2 internal prototype to avoid an error. */
8748#ifdef __cplusplus
8749extern "C"
8750#endif
8751/* We use char because int might match the return type of a gcc2
8752 builtin and then its argument prototype would still apply. */
8753char $ac_func ();
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008754char (*f) ();
8755
8756int
8757main ()
8758{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008759/* The GNU C library defines this for functions which it implements
8760 to always fail with ENOSYS. Some functions are actually named
8761 something starting with __ and the normal name is an alias. */
8762#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8763choke me
8764#else
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008765f = $ac_func;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008766#endif
8767
8768 ;
8769 return 0;
8770}
8771_ACEOF
8772rm -f conftest.$ac_objext conftest$ac_exeext
8773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8774 (eval $ac_link) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } &&
8778 { ac_try='test -s conftest$ac_exeext'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 (eval $ac_try) 2>&5
8781 ac_status=$?
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; }; then
8784 eval "$as_ac_var=yes"
8785else
8786 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008787cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008788eval "$as_ac_var=no"
8789fi
8790rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8791fi
8792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8793echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8794if test `eval echo '${'$as_ac_var'}'` = yes; then
8795 cat >>confdefs.h <<_ACEOF
8796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8797_ACEOF
8798
8799fi
8800done
8801
8802
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008803get_arch() {
8804 case "$1" in
8805 i?86) echo x86;;
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00008806 hppa*) echo hppa;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008807 *) echo $1;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008808 esac
8809}
8810
8811build_arch=`get_arch $build_cpu`
8812target_arch=`get_arch $target_cpu`
8813
8814
8815
8816if test x$target_arch != x$build_arch; then
8817 REMOTE_ONLY_TRUE=
8818 REMOTE_ONLY_FALSE='#'
8819else
8820 REMOTE_ONLY_TRUE='#'
8821 REMOTE_ONLY_FALSE=
8822fi
8823
8824
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008825
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008826if test x$target_arch = xia64; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008827 ARCH_IA64_TRUE=
8828 ARCH_IA64_FALSE='#'
8829else
8830 ARCH_IA64_TRUE='#'
8831 ARCH_IA64_FALSE=
8832fi
8833
8834
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008835
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008836if test x$target_arch = xhppa; then
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00008837 ARCH_HPPA_TRUE=
8838 ARCH_HPPA_FALSE='#'
8839else
8840 ARCH_HPPA_TRUE='#'
8841 ARCH_HPPA_FALSE=
8842fi
8843
8844
8845
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008846if test x$target_arch = xx86; then
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008847 ARCH_X86_TRUE=
8848 ARCH_X86_FALSE='#'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008849else
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008850 ARCH_X86_TRUE='#'
8851 ARCH_X86_FALSE=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008852fi
8853
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008854
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008855
8856if expr x$target_os : xlinux >/dev/null; then
8857 OS_LINUX_TRUE=
8858 OS_LINUX_FALSE='#'
8859else
8860 OS_LINUX_TRUE='#'
8861 OS_LINUX_FALSE=
8862fi
8863
8864
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008865if test x$target_arch != x$build_arch; then
8866 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008867fi
mostang.com!davidm51e4d342002-12-12 09:17:41 +00008868 ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h"
8869
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008870
8871# Check whether --enable-debug or --disable-debug was given.
8872if test "${enable_debug+set}" = set; then
8873 enableval="$enable_debug"
8874 enable_debug=yes
8875fi;
8876
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +00008877if test "x$use__thread" != xno; then
8878 echo "$as_me:$LINENO: checking for __thread" >&5
8879echo $ECHO_N "checking for __thread... $ECHO_C" >&6
8880if test "${libc_cv_gcc___thread+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8882else
8883 cat > conftest.c <<\EOF
8884 __thread int a = 42;
8885EOF
8886 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 (eval $ac_try) 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; }; then
8892 libc_cv_gcc___thread=yes
8893 else
8894 libc_cv_gcc___thread=no
8895 fi
8896 rm -f conftest*
8897fi
8898echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
8899echo "${ECHO_T}$libc_cv_gcc___thread" >&6
8900 if test "$libc_cv_gcc___thread" = yes; then
mostang.com!davidm57f5fae2002-12-03 08:19:58 +00008901
8902cat >>confdefs.h <<\_ACEOF
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +00008903#define HAVE___THREAD 1
8904_ACEOF
8905
8906 fi
8907else
8908 libc_cv_gcc___thread=no
8909fi
8910
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008911CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008912if test x$enable_debug = xyes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008913 CPPFLAGS="${CPPFLAGS} -DDEBUG"
8914else
8915 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
8916fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008917
8918if test x$GCC = xyes; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008919 CFLAGS="${CFLAGS} -Wall -Wsign-compare"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008920fi
8921
mostang.com!davidm6af90d02003-02-15 08:53:55 +00008922CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
8923
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008924arch="$target_arch"
8925ARCH=`echo $target_arch | tr a-z A-Z`
8926
8927
8928
mostang.com!davidmf648f6f2003-01-17 07:48:52 +00008929
8930 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile doc/common.tex"
8931
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008932cat >confcache <<\_ACEOF
8933# This file is a shell script that caches the results of configure
8934# tests run on this system so they can be shared between configure
8935# scripts and configure runs, see configure's option --config-cache.
8936# It is not useful on other systems. If it contains results you don't
8937# want to keep, you may remove or edit it.
8938#
8939# config.status only pays attention to the cache file if you give it
8940# the --recheck option to rerun configure.
8941#
8942# `ac_cv_env_foo' variables (set or unset) will be overridden when
8943# loading this file, other *unset* `ac_cv_foo' will be assigned the
8944# following values.
8945
8946_ACEOF
8947
8948# The following way of writing the cache mishandles newlines in values,
8949# but we know of no workaround that is simple, portable, and efficient.
8950# So, don't put newlines in cache variables' values.
8951# Ultrix sh set writes to stderr and can't be redirected directly,
8952# and sets the high bit in the cache file unless we assign to the vars.
8953{
8954 (set) 2>&1 |
8955 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8956 *ac_space=\ *)
8957 # `set' does not quote correctly, so add quotes (double-quote
8958 # substitution turns \\\\ into \\, and sed turns \\ into \).
8959 sed -n \
8960 "s/'/'\\\\''/g;
8961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8962 ;;
8963 *)
8964 # `set' quotes correctly as required by POSIX, so do not add quotes.
8965 sed -n \
8966 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8967 ;;
8968 esac;
8969} |
8970 sed '
8971 t clear
8972 : clear
8973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8974 t end
8975 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8976 : end' >>confcache
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008977if cmp -s $cache_file confcache; then :; else
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008978 if test -w $cache_file; then
8979 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8980 cat confcache >$cache_file
8981 else
8982 echo "not updating unwritable cache $cache_file"
8983 fi
8984fi
8985rm -f confcache
8986
8987test "x$prefix" = xNONE && prefix=$ac_default_prefix
8988# Let make expand exec_prefix.
8989test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8990
8991# VPATH may cause trouble with some makes, so we remove $(srcdir),
8992# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8993# trailing colons and then remove the whole line if VPATH becomes empty
8994# (actually we leave an empty line to preserve line numbers).
8995if test "x$srcdir" = x.; then
8996 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8997s/:*\$(srcdir):*/:/;
8998s/:*\${srcdir}:*/:/;
8999s/:*@srcdir@:*/:/;
9000s/^\([^=]*=[ ]*\):*/\1/;
9001s/:*$//;
9002s/^[^=]*=[ ]*$//;
9003}'
9004fi
9005
9006DEFS=-DHAVE_CONFIG_H
9007
9008ac_libobjs=
9009ac_ltlibobjs=
9010for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9011 # 1. Remove the extension, and $U if already installed.
9012 ac_i=`echo "$ac_i" |
9013 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9014 # 2. Add them.
9015 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9016 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9017done
9018LIBOBJS=$ac_libobjs
9019
9020LTLIBOBJS=$ac_ltlibobjs
9021
9022
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009023if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9024 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9025Usually this means the macro was only invoked conditionally." >&5
9026echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9027Usually this means the macro was only invoked conditionally." >&2;}
9028 { (exit 1); exit 1; }; }
9029fi
9030if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9031 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9032Usually this means the macro was only invoked conditionally." >&5
9033echo "$as_me: error: conditional \"AMDEP\" was never defined.
9034Usually this means the macro was only invoked conditionally." >&2;}
9035 { (exit 1); exit 1; }; }
9036fi
9037if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
9038 { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined.
9039Usually this means the macro was only invoked conditionally." >&5
9040echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined.
9041Usually this means the macro was only invoked conditionally." >&2;}
9042 { (exit 1); exit 1; }; }
9043fi
9044if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
9045 { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
9046Usually this means the macro was only invoked conditionally." >&5
9047echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
9048Usually this means the macro was only invoked conditionally." >&2;}
9049 { (exit 1); exit 1; }; }
9050fi
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00009051if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
9052 { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
9053Usually this means the macro was only invoked conditionally." >&5
9054echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
9055Usually this means the macro was only invoked conditionally." >&2;}
9056 { (exit 1); exit 1; }; }
9057fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009058if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
9059 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
9060Usually this means the macro was only invoked conditionally." >&5
9061echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
9062Usually this means the macro was only invoked conditionally." >&2;}
9063 { (exit 1); exit 1; }; }
9064fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009065if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
9066 { { echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined.
9067Usually this means the macro was only invoked conditionally." >&5
9068echo "$as_me: error: conditional \"OS_LINUX\" was never defined.
9069Usually this means the macro was only invoked conditionally." >&2;}
9070 { (exit 1); exit 1; }; }
9071fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009072
9073: ${CONFIG_STATUS=./config.status}
9074ac_clean_files_save=$ac_clean_files
9075ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9076{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9077echo "$as_me: creating $CONFIG_STATUS" >&6;}
9078cat >$CONFIG_STATUS <<_ACEOF
9079#! $SHELL
9080# Generated by $as_me.
9081# Run this file to recreate the current configuration.
9082# Compiler output produced by configure, useful for debugging
9083# configure, is in config.log if it exists.
9084
9085debug=false
9086SHELL=\${CONFIG_SHELL-$SHELL}
9087_ACEOF
9088
9089cat >>$CONFIG_STATUS <<\_ACEOF
9090## --------------------- ##
9091## M4sh Initialization. ##
9092## --------------------- ##
9093
9094# Be Bourne compatible
9095if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9096 emulate sh
9097 NULLCMD=:
9098 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9099 # is contrary to our usage. Disable this feature.
9100 alias -g '${1+"$@"}'='"$@"'
9101elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9102 set -o posix
9103fi
9104
9105# Support unset when possible.
9106if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9107 as_unset=unset
9108else
9109 as_unset=false
9110fi
9111
9112
9113# Work around bugs in pre-3.0 UWIN ksh.
9114$as_unset ENV MAIL MAILPATH
9115PS1='$ '
9116PS2='> '
9117PS4='+ '
9118
9119# NLS nuisances.
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009120for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009121do
9122 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9123 eval $as_var=C; export $as_var
9124 else
9125 $as_unset $as_var
9126 fi
9127done
9128
9129# Required to use basename.
9130if expr a : '\(a\)' >/dev/null 2>&1; then
9131 as_expr=expr
9132else
9133 as_expr=false
9134fi
9135
9136if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9137 as_basename=basename
9138else
9139 as_basename=false
9140fi
9141
9142
9143# Name of the executable.
9144as_me=`$as_basename "$0" ||
9145$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9146 X"$0" : 'X\(//\)$' \| \
9147 X"$0" : 'X\(/\)$' \| \
9148 . : '\(.\)' 2>/dev/null ||
9149echo X/"$0" |
9150 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9151 /^X\/\(\/\/\)$/{ s//\1/; q; }
9152 /^X\/\(\/\).*/{ s//\1/; q; }
9153 s/.*/./; q'`
9154
9155
9156# PATH needs CR, and LINENO needs CR and PATH.
9157# Avoid depending upon Character Ranges.
9158as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9159as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9160as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9161as_cr_digits='0123456789'
9162as_cr_alnum=$as_cr_Letters$as_cr_digits
9163
9164# The user is always right.
9165if test "${PATH_SEPARATOR+set}" != set; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009166 echo "#! /bin/sh" >conftest.sh
9167 echo "exit 0" >>conftest.sh
9168 chmod +x conftest.sh
9169 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009170 PATH_SEPARATOR=';'
9171 else
9172 PATH_SEPARATOR=:
9173 fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009174 rm -f conftest.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009175fi
9176
9177
9178 as_lineno_1=$LINENO
9179 as_lineno_2=$LINENO
9180 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9181 test "x$as_lineno_1" != "x$as_lineno_2" &&
9182 test "x$as_lineno_3" = "x$as_lineno_2" || {
9183 # Find who we are. Look in the path if we contain no path at all
9184 # relative or not.
9185 case $0 in
9186 *[\\/]* ) as_myself=$0 ;;
9187 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188for as_dir in $PATH
9189do
9190 IFS=$as_save_IFS
9191 test -z "$as_dir" && as_dir=.
9192 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9193done
9194
9195 ;;
9196 esac
9197 # We did not find ourselves, most probably we were run as `sh COMMAND'
9198 # in which case we are not to be found in the path.
9199 if test "x$as_myself" = x; then
9200 as_myself=$0
9201 fi
9202 if test ! -f "$as_myself"; then
9203 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9204echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9205 { (exit 1); exit 1; }; }
9206 fi
9207 case $CONFIG_SHELL in
9208 '')
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9211do
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
9214 for as_base in sh bash ksh sh5; do
9215 case $as_dir in
9216 /*)
9217 if ("$as_dir/$as_base" -c '
9218 as_lineno_1=$LINENO
9219 as_lineno_2=$LINENO
9220 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9221 test "x$as_lineno_1" != "x$as_lineno_2" &&
9222 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9223 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9224 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9225 CONFIG_SHELL=$as_dir/$as_base
9226 export CONFIG_SHELL
9227 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9228 fi;;
9229 esac
9230 done
9231done
9232;;
9233 esac
9234
9235 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9236 # uniformly replaced by the line number. The first 'sed' inserts a
9237 # line-number line before each line; the second 'sed' does the real
9238 # work. The second script uses 'N' to pair each line-number line
9239 # with the numbered line, and appends trailing '-' during
9240 # substitution so that $LINENO is not a special case at line end.
9241 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9242 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9243 sed '=' <$as_myself |
9244 sed '
9245 N
9246 s,$,-,
9247 : loop
9248 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9249 t loop
9250 s,-$,,
9251 s,^['$as_cr_digits']*\n,,
9252 ' >$as_me.lineno &&
9253 chmod +x $as_me.lineno ||
9254 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9255echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9256 { (exit 1); exit 1; }; }
9257
9258 # Don't try to exec as it changes $[0], causing all sort of problems
9259 # (the dirname of $[0] is not the place where we might find the
9260 # original and so on. Autoconf is especially sensible to this).
9261 . ./$as_me.lineno
9262 # Exit status is that of the last command.
9263 exit
9264}
9265
9266
9267case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9268 *c*,-n*) ECHO_N= ECHO_C='
9269' ECHO_T=' ' ;;
9270 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9271 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9272esac
9273
9274if expr a : '\(a\)' >/dev/null 2>&1; then
9275 as_expr=expr
9276else
9277 as_expr=false
9278fi
9279
9280rm -f conf$$ conf$$.exe conf$$.file
9281echo >conf$$.file
9282if ln -s conf$$.file conf$$ 2>/dev/null; then
9283 # We could just check for DJGPP; but this test a) works b) is more generic
9284 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9285 if test -f conf$$.exe; then
9286 # Don't use ln at all; we don't have any links
9287 as_ln_s='cp -p'
9288 else
9289 as_ln_s='ln -s'
9290 fi
9291elif ln conf$$.file conf$$ 2>/dev/null; then
9292 as_ln_s=ln
9293else
9294 as_ln_s='cp -p'
9295fi
9296rm -f conf$$ conf$$.exe conf$$.file
9297
9298if mkdir -p . 2>/dev/null; then
9299 as_mkdir_p=:
9300else
9301 as_mkdir_p=false
9302fi
9303
9304as_executable_p="test -f"
9305
9306# Sed expression to map a string onto a valid CPP name.
9307as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9308
9309# Sed expression to map a string onto a valid variable name.
9310as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9311
9312
9313# IFS
9314# We need space, tab and new line, in precisely that order.
9315as_nl='
9316'
9317IFS=" $as_nl"
9318
9319# CDPATH.
9320$as_unset CDPATH
9321
9322exec 6>&1
9323
9324# Open the log real soon, to keep \$[0] and so on meaningful, and to
9325# report actual input values of CONFIG_FILES etc. instead of their
9326# values after options handling. Logging --version etc. is OK.
9327exec 5>>config.log
9328{
9329 echo
9330 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9331## Running $as_me. ##
9332_ASBOX
9333} >&5
9334cat >&5 <<_CSEOF
9335
9336This file was extended by $as_me, which was
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009337generated by GNU Autoconf 2.54. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009338
9339 CONFIG_FILES = $CONFIG_FILES
9340 CONFIG_HEADERS = $CONFIG_HEADERS
9341 CONFIG_LINKS = $CONFIG_LINKS
9342 CONFIG_COMMANDS = $CONFIG_COMMANDS
9343 $ $0 $@
9344
9345_CSEOF
9346echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9347echo >&5
9348_ACEOF
9349
9350# Files that config.status was made for.
9351if test -n "$ac_config_files"; then
9352 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9353fi
9354
9355if test -n "$ac_config_headers"; then
9356 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9357fi
9358
9359if test -n "$ac_config_links"; then
9360 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9361fi
9362
9363if test -n "$ac_config_commands"; then
9364 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9365fi
9366
9367cat >>$CONFIG_STATUS <<\_ACEOF
9368
9369ac_cs_usage="\
9370\`$as_me' instantiates files from templates according to the
9371current configuration.
9372
9373Usage: $0 [OPTIONS] [FILE]...
9374
9375 -h, --help print this help, then exit
9376 -V, --version print version number, then exit
9377 -d, --debug don't remove temporary files
9378 --recheck update $as_me by reconfiguring in the same conditions
9379 --file=FILE[:TEMPLATE]
9380 instantiate the configuration file FILE
9381 --header=FILE[:TEMPLATE]
9382 instantiate the configuration header FILE
9383
9384Configuration files:
9385$config_files
9386
9387Configuration headers:
9388$config_headers
9389
9390Configuration links:
9391$config_links
9392
9393Configuration commands:
9394$config_commands
9395
9396Report bugs to <bug-autoconf@gnu.org>."
9397_ACEOF
9398
9399cat >>$CONFIG_STATUS <<_ACEOF
9400ac_cs_version="\\
9401config.status
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009402configured by $0, generated by GNU Autoconf 2.54,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009403 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9404
9405Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9406Free Software Foundation, Inc.
9407This config.status script is free software; the Free Software Foundation
9408gives unlimited permission to copy, distribute and modify it."
9409srcdir=$srcdir
9410INSTALL="$INSTALL"
9411_ACEOF
9412
9413cat >>$CONFIG_STATUS <<\_ACEOF
9414# If no file are specified by the user, then we need to provide default
9415# value. By we need to know if files were specified by the user.
9416ac_need_defaults=:
9417while test $# != 0
9418do
9419 case $1 in
9420 --*=*)
9421 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9422 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9423 ac_shift=:
9424 ;;
9425 -*)
9426 ac_option=$1
9427 ac_optarg=$2
9428 ac_shift=shift
9429 ;;
9430 *) # This is not an option, so the user has probably given explicit
9431 # arguments.
9432 ac_option=$1
9433 ac_need_defaults=false;;
9434 esac
9435
9436 case $ac_option in
9437 # Handling of the options.
9438_ACEOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009439cat >>$CONFIG_STATUS <<_ACEOF
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009440 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009441 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9442 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9443_ACEOF
9444cat >>$CONFIG_STATUS <<\_ACEOF
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009445 --version | --vers* | -V )
9446 echo "$ac_cs_version"; exit 0 ;;
9447 --he | --h)
9448 # Conflict between --help and --header
9449 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9450Try \`$0 --help' for more information." >&5
9451echo "$as_me: error: ambiguous option: $1
9452Try \`$0 --help' for more information." >&2;}
9453 { (exit 1); exit 1; }; };;
9454 --help | --hel | -h )
9455 echo "$ac_cs_usage"; exit 0 ;;
9456 --debug | --d* | -d )
9457 debug=: ;;
9458 --file | --fil | --fi | --f )
9459 $ac_shift
9460 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9461 ac_need_defaults=false;;
9462 --header | --heade | --head | --hea )
9463 $ac_shift
9464 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9465 ac_need_defaults=false;;
9466
9467 # This is an error.
9468 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9469Try \`$0 --help' for more information." >&5
9470echo "$as_me: error: unrecognized option: $1
9471Try \`$0 --help' for more information." >&2;}
9472 { (exit 1); exit 1; }; } ;;
9473
9474 *) ac_config_targets="$ac_config_targets $1" ;;
9475
9476 esac
9477 shift
9478done
9479
9480_ACEOF
9481
9482cat >>$CONFIG_STATUS <<_ACEOF
9483#
9484# INIT-COMMANDS section.
9485#
9486
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009487AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009488
9489_ACEOF
9490
9491
9492
9493cat >>$CONFIG_STATUS <<\_ACEOF
9494for ac_config_target in $ac_config_targets
9495do
9496 case "$ac_config_target" in
9497 # Handling of arguments.
9498 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9499 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9500 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9501 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
mostang.com!davidmf648f6f2003-01-17 07:48:52 +00009502 "doc/common.tex" ) CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009503 "include/libunwind.h" ) CONFIG_LINKS="$CONFIG_LINKS include/libunwind.h:include/libunwind-$target_arch.h" ;;
mostang.com!davidm51e4d342002-12-12 09:17:41 +00009504 "include/tdep.h" ) CONFIG_LINKS="$CONFIG_LINKS include/tdep.h:include/tdep-$target_arch.h" ;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009505 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009506 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
9507 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9508echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9509 { (exit 1); exit 1; }; };;
9510 esac
9511done
9512
9513# If the user did not use the arguments to specify the items to instantiate,
9514# then the envvar interface is used. Set only those that are not.
9515# We use the long form for the default assignment because of an extremely
9516# bizarre bug on SunOS 4.1.3.
9517if $ac_need_defaults; then
9518 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9519 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9520 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9521 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9522fi
9523
9524# Create a temporary directory, and hook for its removal unless debugging.
9525$debug ||
9526{
9527 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9528 trap '{ (exit 1); exit 1; }' 1 2 13 15
9529}
9530
9531# Create a (secure) tmp directory for tmp files.
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009532: ${TMPDIR=/tmp}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009533{
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009534 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009535 test -n "$tmp" && test -d "$tmp"
9536} ||
9537{
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009538 tmp=$TMPDIR/cs$$-$RANDOM
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009539 (umask 077 && mkdir $tmp)
9540} ||
9541{
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009542 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009543 { (exit 1); exit 1; }
9544}
9545
9546_ACEOF
9547
9548cat >>$CONFIG_STATUS <<_ACEOF
9549
9550#
9551# CONFIG_FILES section.
9552#
9553
9554# No need to generate the scripts if there are no CONFIG_FILES.
9555# This happens for instance when ./config.status config.h
9556if test -n "\$CONFIG_FILES"; then
9557 # Protect against being on the right side of a sed subst in config.status.
9558 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9559 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9560s,@SHELL@,$SHELL,;t t
9561s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9562s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9563s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9564s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9565s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9566s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9567s,@exec_prefix@,$exec_prefix,;t t
9568s,@prefix@,$prefix,;t t
9569s,@program_transform_name@,$program_transform_name,;t t
9570s,@bindir@,$bindir,;t t
9571s,@sbindir@,$sbindir,;t t
9572s,@libexecdir@,$libexecdir,;t t
9573s,@datadir@,$datadir,;t t
9574s,@sysconfdir@,$sysconfdir,;t t
9575s,@sharedstatedir@,$sharedstatedir,;t t
9576s,@localstatedir@,$localstatedir,;t t
9577s,@libdir@,$libdir,;t t
9578s,@includedir@,$includedir,;t t
9579s,@oldincludedir@,$oldincludedir,;t t
9580s,@infodir@,$infodir,;t t
9581s,@mandir@,$mandir,;t t
9582s,@build_alias@,$build_alias,;t t
9583s,@host_alias@,$host_alias,;t t
9584s,@target_alias@,$target_alias,;t t
9585s,@DEFS@,$DEFS,;t t
9586s,@ECHO_C@,$ECHO_C,;t t
9587s,@ECHO_N@,$ECHO_N,;t t
9588s,@ECHO_T@,$ECHO_T,;t t
9589s,@LIBS@,$LIBS,;t t
9590s,@build@,$build,;t t
9591s,@build_cpu@,$build_cpu,;t t
9592s,@build_vendor@,$build_vendor,;t t
9593s,@build_os@,$build_os,;t t
9594s,@host@,$host,;t t
9595s,@host_cpu@,$host_cpu,;t t
9596s,@host_vendor@,$host_vendor,;t t
9597s,@host_os@,$host_os,;t t
9598s,@target@,$target,;t t
9599s,@target_cpu@,$target_cpu,;t t
9600s,@target_vendor@,$target_vendor,;t t
9601s,@target_os@,$target_os,;t t
9602s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9603s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9604s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9605s,@PACKAGE@,$PACKAGE,;t t
9606s,@VERSION@,$VERSION,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009607s,@ACLOCAL@,$ACLOCAL,;t t
9608s,@AUTOCONF@,$AUTOCONF,;t t
9609s,@AUTOMAKE@,$AUTOMAKE,;t t
9610s,@AUTOHEADER@,$AUTOHEADER,;t t
9611s,@MAKEINFO@,$MAKEINFO,;t t
9612s,@AMTAR@,$AMTAR,;t t
9613s,@install_sh@,$install_sh,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009614s,@STRIP@,$STRIP,;t t
9615s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009616s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9617s,@AWK@,$AWK,;t t
9618s,@SET_MAKE@,$SET_MAKE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009619s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9620s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9621s,@MAINT@,$MAINT,;t t
9622s,@CC@,$CC,;t t
9623s,@CFLAGS@,$CFLAGS,;t t
9624s,@LDFLAGS@,$LDFLAGS,;t t
9625s,@CPPFLAGS@,$CPPFLAGS,;t t
9626s,@ac_ct_CC@,$ac_ct_CC,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009627s,@EXEEXT@,$EXEEXT,;t t
9628s,@OBJEXT@,$OBJEXT,;t t
9629s,@DEPDIR@,$DEPDIR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009630s,@am__include@,$am__include,;t t
9631s,@am__quote@,$am__quote,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009632s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9633s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9634s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009635s,@CCDEPMODE@,$CCDEPMODE,;t t
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00009636s,@CXX@,$CXX,;t t
9637s,@CXXFLAGS@,$CXXFLAGS,;t t
9638s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9639s,@CXXDEPMODE@,$CXXDEPMODE,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009640s,@LN_S@,$LN_S,;t t
9641s,@ECHO@,$ECHO,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009642s,@RANLIB@,$RANLIB,;t t
9643s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009644s,@CPP@,$CPP,;t t
9645s,@EGREP@,$EGREP,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009646s,@LIBTOOL@,$LIBTOOL,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009647s,@CCAS@,$CCAS,;t t
9648s,@CCASFLAGS@,$CCASFLAGS,;t t
mostang.com!davidm6af90d02003-02-15 08:53:55 +00009649s,@LIBOBJS@,$LIBOBJS,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009650s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t
9651s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t
9652s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t
9653s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00009654s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t
9655s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009656s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
9657s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009658s,@OS_LINUX_TRUE@,$OS_LINUX_TRUE,;t t
9659s,@OS_LINUX_FALSE@,$OS_LINUX_FALSE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009660s,@arch@,$arch,;t t
9661s,@ARCH@,$ARCH,;t t
9662s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9663CEOF
9664
9665_ACEOF
9666
9667 cat >>$CONFIG_STATUS <<\_ACEOF
9668 # Split the substitutions into bite-sized pieces for seds with
9669 # small command number limits, like on Digital OSF/1 and HP-UX.
9670 ac_max_sed_lines=48
9671 ac_sed_frag=1 # Number of current file.
9672 ac_beg=1 # First line for current file.
9673 ac_end=$ac_max_sed_lines # Line after last line for current file.
9674 ac_more_lines=:
9675 ac_sed_cmds=
9676 while $ac_more_lines; do
9677 if test $ac_beg -gt 1; then
9678 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9679 else
9680 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9681 fi
9682 if test ! -s $tmp/subs.frag; then
9683 ac_more_lines=false
9684 else
9685 # The purpose of the label and of the branching condition is to
9686 # speed up the sed processing (if there are no `@' at all, there
9687 # is no need to browse any of the substitutions).
9688 # These are the two extra sed commands mentioned above.
9689 (echo ':t
9690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9691 if test -z "$ac_sed_cmds"; then
9692 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9693 else
9694 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9695 fi
9696 ac_sed_frag=`expr $ac_sed_frag + 1`
9697 ac_beg=$ac_end
9698 ac_end=`expr $ac_end + $ac_max_sed_lines`
9699 fi
9700 done
9701 if test -z "$ac_sed_cmds"; then
9702 ac_sed_cmds=cat
9703 fi
9704fi # test -n "$CONFIG_FILES"
9705
9706_ACEOF
9707cat >>$CONFIG_STATUS <<\_ACEOF
9708for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9709 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9710 case $ac_file in
9711 - | *:- | *:-:* ) # input from stdin
9712 cat >$tmp/stdin
9713 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9714 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9715 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9716 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9717 * ) ac_file_in=$ac_file.in ;;
9718 esac
9719
9720 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9721 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9722$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9723 X"$ac_file" : 'X\(//\)[^/]' \| \
9724 X"$ac_file" : 'X\(//\)$' \| \
9725 X"$ac_file" : 'X\(/\)' \| \
9726 . : '\(.\)' 2>/dev/null ||
9727echo X"$ac_file" |
9728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9730 /^X\(\/\/\)$/{ s//\1/; q; }
9731 /^X\(\/\).*/{ s//\1/; q; }
9732 s/.*/./; q'`
9733 { if $as_mkdir_p; then
9734 mkdir -p "$ac_dir"
9735 else
9736 as_dir="$ac_dir"
9737 as_dirs=
9738 while test ! -d "$as_dir"; do
9739 as_dirs="$as_dir $as_dirs"
9740 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9741$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9742 X"$as_dir" : 'X\(//\)[^/]' \| \
9743 X"$as_dir" : 'X\(//\)$' \| \
9744 X"$as_dir" : 'X\(/\)' \| \
9745 . : '\(.\)' 2>/dev/null ||
9746echo X"$as_dir" |
9747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9749 /^X\(\/\/\)$/{ s//\1/; q; }
9750 /^X\(\/\).*/{ s//\1/; q; }
9751 s/.*/./; q'`
9752 done
9753 test ! -n "$as_dirs" || mkdir $as_dirs
9754 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9755echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9756 { (exit 1); exit 1; }; }; }
9757
9758 ac_builddir=.
9759
9760if test "$ac_dir" != .; then
9761 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9762 # A "../" for each directory in $ac_dir_suffix.
9763 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9764else
9765 ac_dir_suffix= ac_top_builddir=
9766fi
9767
9768case $srcdir in
9769 .) # No --srcdir option. We are building in place.
9770 ac_srcdir=.
9771 if test -z "$ac_top_builddir"; then
9772 ac_top_srcdir=.
9773 else
9774 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9775 fi ;;
9776 [\\/]* | ?:[\\/]* ) # Absolute path.
9777 ac_srcdir=$srcdir$ac_dir_suffix;
9778 ac_top_srcdir=$srcdir ;;
9779 *) # Relative path.
9780 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9781 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9782esac
9783# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9784# absolute.
9785ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9786ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9787ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9788ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9789
9790
9791 case $INSTALL in
9792 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9793 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9794 esac
9795
9796 if test x"$ac_file" != x-; then
9797 { echo "$as_me:$LINENO: creating $ac_file" >&5
9798echo "$as_me: creating $ac_file" >&6;}
9799 rm -f "$ac_file"
9800 fi
9801 # Let's still pretend it is `configure' which instantiates (i.e., don't
9802 # use $as_me), people would be surprised to read:
9803 # /* config.h. Generated by config.status. */
9804 if test x"$ac_file" = x-; then
9805 configure_input=
9806 else
9807 configure_input="$ac_file. "
9808 fi
9809 configure_input=$configure_input"Generated from `echo $ac_file_in |
9810 sed 's,.*/,,'` by configure."
9811
9812 # First look for the input files in the build tree, otherwise in the
9813 # src tree.
9814 ac_file_inputs=`IFS=:
9815 for f in $ac_file_in; do
9816 case $f in
9817 -) echo $tmp/stdin ;;
9818 [\\/$]*)
9819 # Absolute (can't be DOS-style, as IFS=:)
9820 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9821echo "$as_me: error: cannot find input file: $f" >&2;}
9822 { (exit 1); exit 1; }; }
9823 echo $f;;
9824 *) # Relative
9825 if test -f "$f"; then
9826 # Build tree
9827 echo $f
9828 elif test -f "$srcdir/$f"; then
9829 # Source tree
9830 echo $srcdir/$f
9831 else
9832 # /dev/null tree
9833 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9834echo "$as_me: error: cannot find input file: $f" >&2;}
9835 { (exit 1); exit 1; }; }
9836 fi;;
9837 esac
9838 done` || { (exit 1); exit 1; }
9839_ACEOF
9840cat >>$CONFIG_STATUS <<_ACEOF
9841 sed "$ac_vpsub
9842$extrasub
9843_ACEOF
9844cat >>$CONFIG_STATUS <<\_ACEOF
9845:t
9846/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9847s,@configure_input@,$configure_input,;t t
9848s,@srcdir@,$ac_srcdir,;t t
9849s,@abs_srcdir@,$ac_abs_srcdir,;t t
9850s,@top_srcdir@,$ac_top_srcdir,;t t
9851s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9852s,@builddir@,$ac_builddir,;t t
9853s,@abs_builddir@,$ac_abs_builddir,;t t
9854s,@top_builddir@,$ac_top_builddir,;t t
9855s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9856s,@INSTALL@,$ac_INSTALL,;t t
9857" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9858 rm -f $tmp/stdin
9859 if test x"$ac_file" != x-; then
9860 mv $tmp/out $ac_file
9861 else
9862 cat $tmp/out
9863 rm -f $tmp/out
9864 fi
9865
9866done
9867_ACEOF
9868cat >>$CONFIG_STATUS <<\_ACEOF
9869
9870#
9871# CONFIG_HEADER section.
9872#
9873
9874# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9875# NAME is the cpp macro being defined and VALUE is the value it is being given.
9876#
9877# ac_d sets the value in "#define NAME VALUE" lines.
9878ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9879ac_dB='[ ].*$,\1#\2'
9880ac_dC=' '
9881ac_dD=',;t'
9882# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9883ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9884ac_uB='$,\1#\2define\3'
9885ac_uC=' '
9886ac_uD=',;t'
9887
9888for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9889 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9890 case $ac_file in
9891 - | *:- | *:-:* ) # input from stdin
9892 cat >$tmp/stdin
9893 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9894 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9895 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9896 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9897 * ) ac_file_in=$ac_file.in ;;
9898 esac
9899
9900 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9901echo "$as_me: creating $ac_file" >&6;}
9902
9903 # First look for the input files in the build tree, otherwise in the
9904 # src tree.
9905 ac_file_inputs=`IFS=:
9906 for f in $ac_file_in; do
9907 case $f in
9908 -) echo $tmp/stdin ;;
9909 [\\/$]*)
9910 # Absolute (can't be DOS-style, as IFS=:)
9911 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9912echo "$as_me: error: cannot find input file: $f" >&2;}
9913 { (exit 1); exit 1; }; }
9914 echo $f;;
9915 *) # Relative
9916 if test -f "$f"; then
9917 # Build tree
9918 echo $f
9919 elif test -f "$srcdir/$f"; then
9920 # Source tree
9921 echo $srcdir/$f
9922 else
9923 # /dev/null tree
9924 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9925echo "$as_me: error: cannot find input file: $f" >&2;}
9926 { (exit 1); exit 1; }; }
9927 fi;;
9928 esac
9929 done` || { (exit 1); exit 1; }
9930 # Remove the trailing spaces.
9931 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9932
9933_ACEOF
9934
9935# Transform confdefs.h into two sed scripts, `conftest.defines' and
9936# `conftest.undefs', that substitutes the proper values into
9937# config.h.in to produce config.h. The first handles `#define'
9938# templates, and the second `#undef' templates.
9939# And first: Protect against being on the right side of a sed subst in
9940# config.status. Protect against being in an unquoted here document
9941# in config.status.
9942rm -f conftest.defines conftest.undefs
9943# Using a here document instead of a string reduces the quoting nightmare.
9944# Putting comments in sed scripts is not portable.
9945#
9946# `end' is used to avoid that the second main sed command (meant for
9947# 0-ary CPP macros) applies to n-ary macro definitions.
9948# See the Autoconf documentation for `clear'.
9949cat >confdef2sed.sed <<\_ACEOF
9950s/[\\&,]/\\&/g
9951s,[\\$`],\\&,g
9952t clear
9953: clear
9954s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9955t end
9956s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9957: end
9958_ACEOF
9959# If some macros were called several times there might be several times
9960# the same #defines, which is useless. Nevertheless, we may not want to
9961# sort them, since we want the *last* AC-DEFINE to be honored.
9962uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9963sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9964rm -f confdef2sed.sed
9965
9966# This sed command replaces #undef with comments. This is necessary, for
9967# example, in the case of _POSIX_SOURCE, which is predefined and required
9968# on some systems where configure will not decide to define it.
9969cat >>conftest.undefs <<\_ACEOF
9970s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9971_ACEOF
9972
9973# Break up conftest.defines because some shells have a limit on the size
9974# of here documents, and old seds have small limits too (100 cmds).
9975echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9976echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9977echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9978echo ' :' >>$CONFIG_STATUS
9979rm -f conftest.tail
9980while grep . conftest.defines >/dev/null
9981do
9982 # Write a limited-size here document to $tmp/defines.sed.
9983 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9984 # Speed up: don't consider the non `#define' lines.
9985 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9986 # Work around the forget-to-reset-the-flag bug.
9987 echo 't clr' >>$CONFIG_STATUS
9988 echo ': clr' >>$CONFIG_STATUS
9989 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9990 echo 'CEOF
9991 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9992 rm -f $tmp/in
9993 mv $tmp/out $tmp/in
9994' >>$CONFIG_STATUS
9995 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9996 rm -f conftest.defines
9997 mv conftest.tail conftest.defines
9998done
9999rm -f conftest.defines
10000echo ' fi # grep' >>$CONFIG_STATUS
10001echo >>$CONFIG_STATUS
10002
10003# Break up conftest.undefs because some shells have a limit on the size
10004# of here documents, and old seds have small limits too (100 cmds).
10005echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10006rm -f conftest.tail
10007while grep . conftest.undefs >/dev/null
10008do
10009 # Write a limited-size here document to $tmp/undefs.sed.
10010 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10011 # Speed up: don't consider the non `#undef'
10012 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10013 # Work around the forget-to-reset-the-flag bug.
10014 echo 't clr' >>$CONFIG_STATUS
10015 echo ': clr' >>$CONFIG_STATUS
10016 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10017 echo 'CEOF
10018 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10019 rm -f $tmp/in
10020 mv $tmp/out $tmp/in
10021' >>$CONFIG_STATUS
10022 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10023 rm -f conftest.undefs
10024 mv conftest.tail conftest.undefs
10025done
10026rm -f conftest.undefs
10027
10028cat >>$CONFIG_STATUS <<\_ACEOF
10029 # Let's still pretend it is `configure' which instantiates (i.e., don't
10030 # use $as_me), people would be surprised to read:
10031 # /* config.h. Generated by config.status. */
10032 if test x"$ac_file" = x-; then
10033 echo "/* Generated by configure. */" >$tmp/config.h
10034 else
10035 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10036 fi
10037 cat $tmp/in >>$tmp/config.h
10038 rm -f $tmp/in
10039 if test x"$ac_file" != x-; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +000010040 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010041 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10042echo "$as_me: $ac_file is unchanged" >&6;}
10043 else
10044 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10045$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10046 X"$ac_file" : 'X\(//\)[^/]' \| \
10047 X"$ac_file" : 'X\(//\)$' \| \
10048 X"$ac_file" : 'X\(/\)' \| \
10049 . : '\(.\)' 2>/dev/null ||
10050echo X"$ac_file" |
10051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10053 /^X\(\/\/\)$/{ s//\1/; q; }
10054 /^X\(\/\).*/{ s//\1/; q; }
10055 s/.*/./; q'`
10056 { if $as_mkdir_p; then
10057 mkdir -p "$ac_dir"
10058 else
10059 as_dir="$ac_dir"
10060 as_dirs=
10061 while test ! -d "$as_dir"; do
10062 as_dirs="$as_dir $as_dirs"
10063 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10064$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10065 X"$as_dir" : 'X\(//\)[^/]' \| \
10066 X"$as_dir" : 'X\(//\)$' \| \
10067 X"$as_dir" : 'X\(/\)' \| \
10068 . : '\(.\)' 2>/dev/null ||
10069echo X"$as_dir" |
10070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10072 /^X\(\/\/\)$/{ s//\1/; q; }
10073 /^X\(\/\).*/{ s//\1/; q; }
10074 s/.*/./; q'`
10075 done
10076 test ! -n "$as_dirs" || mkdir $as_dirs
10077 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10078echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10079 { (exit 1); exit 1; }; }; }
10080
10081 rm -f $ac_file
10082 mv $tmp/config.h $ac_file
10083 fi
10084 else
10085 cat $tmp/config.h
10086 rm -f $tmp/config.h
10087 fi
10088 # Run the commands associated with the file.
10089 case $ac_file in
10090 include/config.h ) # update the timestamp
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000010091echo 'timestamp for include/config.h' >"include/stamp-h1"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010092 ;;
10093 esac
10094done
10095_ACEOF
10096cat >>$CONFIG_STATUS <<\_ACEOF
10097
10098#
10099# CONFIG_LINKS section.
10100#
10101
10102for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
10103 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10104 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10105
10106 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
10107echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
10108
10109 if test ! -r $srcdir/$ac_source; then
10110 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
10111echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
10112 { (exit 1); exit 1; }; }
10113 fi
10114 rm -f $ac_dest
10115
10116 # Make relative symlinks.
10117 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
10118$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10119 X"$ac_dest" : 'X\(//\)[^/]' \| \
10120 X"$ac_dest" : 'X\(//\)$' \| \
10121 X"$ac_dest" : 'X\(/\)' \| \
10122 . : '\(.\)' 2>/dev/null ||
10123echo X"$ac_dest" |
10124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10126 /^X\(\/\/\)$/{ s//\1/; q; }
10127 /^X\(\/\).*/{ s//\1/; q; }
10128 s/.*/./; q'`
10129 { if $as_mkdir_p; then
10130 mkdir -p "$ac_dest_dir"
10131 else
10132 as_dir="$ac_dest_dir"
10133 as_dirs=
10134 while test ! -d "$as_dir"; do
10135 as_dirs="$as_dir $as_dirs"
10136 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10137$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10138 X"$as_dir" : 'X\(//\)[^/]' \| \
10139 X"$as_dir" : 'X\(//\)$' \| \
10140 X"$as_dir" : 'X\(/\)' \| \
10141 . : '\(.\)' 2>/dev/null ||
10142echo X"$as_dir" |
10143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10145 /^X\(\/\/\)$/{ s//\1/; q; }
10146 /^X\(\/\).*/{ s//\1/; q; }
10147 s/.*/./; q'`
10148 done
10149 test ! -n "$as_dirs" || mkdir $as_dirs
10150 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
10151echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
10152 { (exit 1); exit 1; }; }; }
10153
10154 ac_builddir=.
10155
10156if test "$ac_dest_dir" != .; then
10157 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
10158 # A "../" for each directory in $ac_dir_suffix.
10159 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10160else
10161 ac_dir_suffix= ac_top_builddir=
10162fi
10163
10164case $srcdir in
10165 .) # No --srcdir option. We are building in place.
10166 ac_srcdir=.
10167 if test -z "$ac_top_builddir"; then
10168 ac_top_srcdir=.
10169 else
10170 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10171 fi ;;
10172 [\\/]* | ?:[\\/]* ) # Absolute path.
10173 ac_srcdir=$srcdir$ac_dir_suffix;
10174 ac_top_srcdir=$srcdir ;;
10175 *) # Relative path.
10176 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10177 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10178esac
10179# Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
10180# absolute.
10181ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
10182ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
10183ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
10184ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
10185
10186
10187 case $srcdir in
10188 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
10189 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
10190 esac
10191
10192 # Try a symlink, then a hard link, then a copy.
10193 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10194 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
10195 cp -p $srcdir/$ac_source $ac_dest ||
10196 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
10197echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
10198 { (exit 1); exit 1; }; }
10199done
10200_ACEOF
10201cat >>$CONFIG_STATUS <<\_ACEOF
10202
10203#
10204# CONFIG_COMMANDS section.
10205#
10206for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10207 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10208 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10209 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10210$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10211 X"$ac_dest" : 'X\(//\)[^/]' \| \
10212 X"$ac_dest" : 'X\(//\)$' \| \
10213 X"$ac_dest" : 'X\(/\)' \| \
10214 . : '\(.\)' 2>/dev/null ||
10215echo X"$ac_dest" |
10216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10218 /^X\(\/\/\)$/{ s//\1/; q; }
10219 /^X\(\/\).*/{ s//\1/; q; }
10220 s/.*/./; q'`
10221 ac_builddir=.
10222
10223if test "$ac_dir" != .; then
10224 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10225 # A "../" for each directory in $ac_dir_suffix.
10226 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10227else
10228 ac_dir_suffix= ac_top_builddir=
10229fi
10230
10231case $srcdir in
10232 .) # No --srcdir option. We are building in place.
10233 ac_srcdir=.
10234 if test -z "$ac_top_builddir"; then
10235 ac_top_srcdir=.
10236 else
10237 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10238 fi ;;
10239 [\\/]* | ?:[\\/]* ) # Absolute path.
10240 ac_srcdir=$srcdir$ac_dir_suffix;
10241 ac_top_srcdir=$srcdir ;;
10242 *) # Relative path.
10243 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10244 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10245esac
10246# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10247# absolute.
10248ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10249ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10250ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10251ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10252
10253
10254 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10255echo "$as_me: executing $ac_dest commands" >&6;}
10256 case $ac_dest in
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000010257 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10258 # Strip MF so we end up with the name of the file.
10259 mf=`echo "$mf" | sed -e 's/:.*$//'`
10260 # Check whether this is an Automake generated Makefile or not.
10261 # We used to match only the files named `Makefile.in', but
10262 # some people rename them; so instead we look at the file content.
10263 # Grep'ing the first line is not enough: some people post-process
10264 # each Makefile.in and add a new line on top of each file to say so.
10265 # So let's grep whole file.
10266 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10267 dirpart=`(dirname "$mf") 2>/dev/null ||
10268$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10269 X"$mf" : 'X\(//\)[^/]' \| \
10270 X"$mf" : 'X\(//\)$' \| \
10271 X"$mf" : 'X\(/\)' \| \
10272 . : '\(.\)' 2>/dev/null ||
10273echo X"$mf" |
10274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10276 /^X\(\/\/\)$/{ s//\1/; q; }
10277 /^X\(\/\).*/{ s//\1/; q; }
10278 s/.*/./; q'`
10279 else
10280 continue
10281 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010282 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10283 # Extract the definition of DEP_FILES from the Makefile without
10284 # running `make'.
10285 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10286 test -z "$DEPDIR" && continue
10287 # When using ansi2knr, U may be empty or an underscore; expand it
10288 U=`sed -n -e '/^U = / s///p' < "$mf"`
10289 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10290 # We invoke sed twice because it is the simplest approach to
10291 # changing $(DEPDIR) to its actual value in the expansion.
10292 for file in `sed -n -e '
10293 /^DEP_FILES = .*\\\\$/ {
10294 s/^DEP_FILES = //
10295 :loop
10296 s/\\\\$//
10297 p
10298 n
10299 /\\\\$/ b loop
10300 p
10301 }
10302 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10303 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10304 # Make sure the directory exists.
10305 test -f "$dirpart/$file" && continue
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000010306 fdir=`(dirname "$file") 2>/dev/null ||
10307$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10308 X"$file" : 'X\(//\)[^/]' \| \
10309 X"$file" : 'X\(//\)$' \| \
10310 X"$file" : 'X\(/\)' \| \
10311 . : '\(.\)' 2>/dev/null ||
10312echo X"$file" |
10313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10315 /^X\(\/\/\)$/{ s//\1/; q; }
10316 /^X\(\/\).*/{ s//\1/; q; }
10317 s/.*/./; q'`
10318 { if $as_mkdir_p; then
10319 mkdir -p $dirpart/$fdir
10320 else
10321 as_dir=$dirpart/$fdir
10322 as_dirs=
10323 while test ! -d "$as_dir"; do
10324 as_dirs="$as_dir $as_dirs"
10325 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10326$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10327 X"$as_dir" : 'X\(//\)[^/]' \| \
10328 X"$as_dir" : 'X\(//\)$' \| \
10329 X"$as_dir" : 'X\(/\)' \| \
10330 . : '\(.\)' 2>/dev/null ||
10331echo X"$as_dir" |
10332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10334 /^X\(\/\/\)$/{ s//\1/; q; }
10335 /^X\(\/\).*/{ s//\1/; q; }
10336 s/.*/./; q'`
10337 done
10338 test ! -n "$as_dirs" || mkdir $as_dirs
10339 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10340echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10341 { (exit 1); exit 1; }; }; }
10342
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010343 # echo "creating $dirpart/$file"
10344 echo '# dummy' > "$dirpart/$file"
10345 done
10346done
10347 ;;
10348 esac
10349done
10350_ACEOF
10351
10352cat >>$CONFIG_STATUS <<\_ACEOF
10353
10354{ (exit 0); exit 0; }
10355_ACEOF
10356chmod +x $CONFIG_STATUS
10357ac_clean_files=$ac_clean_files_save
10358
10359
10360# configure is writing to config.log, and then calls config.status.
10361# config.status does its own redirection, appending to config.log.
10362# Unfortunately, on DOS this fails, as config.log is still kept open
10363# by configure, so config.status won't be able to write to it; its
10364# output is simply discarded. So we exec the FD to /dev/null,
10365# effectively closing config.log, so it can be properly (re)opened and
10366# appended to by config.status. When coming back to configure, we
10367# need to make the FD available again.
10368if test "$no_create" != yes; then
10369 ac_cs_success=:
10370 exec 5>/dev/null
mostang.com!davidma8db0b32003-02-08 10:10:59 +000010371 $SHELL $CONFIG_STATUS || ac_cs_success=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010372 exec 5>>config.log
10373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10374 # would make configure fail if this is the last instruction.
10375 $ac_cs_success || { (exit 1); exit 1; }
10376fi
10377