blob: 8beceaf123d1042ba1649dc8010b955c60636557 [file] [log] [blame]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003# Generated by GNU Autoconf 2.57.
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.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000039for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000043do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000088 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000092 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
hp.com!davidm01b02dd2003-09-24 21:51:53 +000096 rm -f conf$$.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000097fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000243# Find the correct PATH separator. Usually this is `:', but
244# DJGPP uses `;' like DOS.
245if test "X${PATH_SEPARATOR+set}" != Xset; then
246 UNAME=${UNAME-`uname 2>/dev/null`}
247 case X$UNAME in
248 *-DOS) lt_cv_sys_path_separator=';' ;;
249 *) lt_cv_sys_path_separator=':' ;;
250 esac
251 PATH_SEPARATOR=$lt_cv_sys_path_separator
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case X$ECHO in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
284
285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running configure again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
413ac_config_libobj_dir=.
414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
426PACKAGE_NAME=
427PACKAGE_TARNAME=
428PACKAGE_VERSION=
429PACKAGE_STRING=
430PACKAGE_BUGREPORT=
431
432ac_unique_file="src/backtrace.c"
433# Factoring default headers for most tests.
434ac_includes_default="\
435#include <stdio.h>
436#if HAVE_SYS_TYPES_H
437# include <sys/types.h>
438#endif
439#if HAVE_SYS_STAT_H
440# include <sys/stat.h>
441#endif
442#if STDC_HEADERS
443# include <stdlib.h>
444# include <stddef.h>
445#else
446# if HAVE_STDLIB_H
447# include <stdlib.h>
448# endif
449#endif
450#if HAVE_STRING_H
451# if !STDC_HEADERS && HAVE_MEMORY_H
452# include <memory.h>
453# endif
454# include <string.h>
455#endif
456#if HAVE_STRINGS_H
457# include <strings.h>
458#endif
459#if HAVE_INTTYPES_H
460# include <inttypes.h>
461#else
462# if HAVE_STDINT_H
463# include <stdint.h>
464# endif
465#endif
466#if HAVE_UNISTD_H
467# include <unistd.h>
468#endif"
469
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +0000470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 OS_HPUX_TRUE OS_HPUX_FALSE arch ARCH LTLIBOBJS'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000471ac_subst_files=''
472
473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
476# The variables have the same names as the options, with
477# dashes changed to underlines.
478cache_file=/dev/null
479exec_prefix=NONE
480no_create=
481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
489verbose=
490x_includes=NONE
491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
511ac_prev=
512for ac_option
513do
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
517 ac_prev=
518 continue
519 fi
520
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523 # Accept the important Cygnus configure options, so we can diagnose typos.
524
525 case $ac_option in
526
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 ac_prev=bindir ;;
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 bindir=$ac_optarg ;;
531
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
536
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
543
544 --config-cache | -C)
545 cache_file=config.cache ;;
546
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 ac_prev=datadir ;;
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 | --da=*)
551 datadir=$ac_optarg ;;
552
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
561
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 case $ac_option in
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 *) ac_optarg=yes ;;
572 esac
573 eval "enable_$ac_feature='$ac_optarg'" ;;
574
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
583
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
586 with_gas=yes ;;
587
588 -help | --help | --hel | --he | -h)
589 ac_init_help=long ;;
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
594
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
599
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
606
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 ac_prev=infodir ;;
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
611
612 -libdir | --libdir | --libdi | --libd)
613 ac_prev=libdir ;;
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 libdir=$ac_optarg ;;
616
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
623
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
632
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 ac_prev=mandir ;;
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 mandir=$ac_optarg ;;
637
638 -nfp | --nfp | --nf)
639 # Obsolete; use --without-fp.
640 with_fp=no ;;
641
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
644 no_create=yes ;;
645
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 no_recursion=yes ;;
649
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
658
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 ac_prev=prefix ;;
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 prefix=$ac_optarg ;;
663
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
670
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
677
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
694
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
697 silent=yes ;;
698
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 ac_prev=sbindir ;;
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 | --sbi=* | --sb=*)
703 sbindir=$ac_optarg ;;
704
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
708 | --sha | --sh)
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 | --sha=* | --sh=*)
714 sharedstatedir=$ac_optarg ;;
715
716 -site | --site | --sit)
717 ac_prev=site ;;
718 -site=* | --site=* | --sit=*)
719 site=$ac_optarg ;;
720
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 ac_prev=srcdir ;;
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 srcdir=$ac_optarg ;;
725
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
732
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
737
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 verbose=yes ;;
740
741 -version | --version | --versio | --versi | --vers | -V)
742 ac_init_version=: ;;
743
744 -with-* | --with-*)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 case $ac_option in
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 *) ac_optarg=yes ;;
754 esac
755 eval "with_$ac_package='$ac_optarg'" ;;
756
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
765
766 --x)
767 # Obsolete; use --with-x.
768 with_x=yes ;;
769
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
776
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
783
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
787 ;;
788
789 *=*)
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
797 export $ac_envvar ;;
798
799 *)
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 ;;
806
807 esac
808done
809
810if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
814fi
815
816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
818do
819 eval ac_val=$`echo $ac_var`
820 case $ac_val in
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
824 esac
825done
826
827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
830do
831 eval ac_val=$`echo $ac_var`
832 case $ac_val in
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
836 esac
837done
838
839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
841# FIXME: To remove some day.
842build=$build_alias
843host=$host_alias
844target=$target_alias
845
846# FIXME: To remove some day.
847if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
853 cross_compiling=yes
854 fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
862
863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
878 s/.*/./; q'`
879 srcdir=$ac_confdir
880 if test ! -r $srcdir/$ac_unique_file; then
881 srcdir=..
882 fi
883else
884 ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
890 else
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
893 fi
894fi
895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CC_set=${CC+set}
912ac_env_CC_value=$CC
913ac_cv_env_CC_set=${CC+set}
914ac_cv_env_CC_value=$CC
915ac_env_CFLAGS_set=${CFLAGS+set}
916ac_env_CFLAGS_value=$CFLAGS
917ac_cv_env_CFLAGS_set=${CFLAGS+set}
918ac_cv_env_CFLAGS_value=$CFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
mostang.com!davidm4f17bce2003-03-28 07:43:22 +0000927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
939
940#
941# Report the --help message.
942#
943if test "$ac_init_help" = "long"; then
944 # Omit some internal or obsolete options to make the list less imposing.
945 # This message is too long to be a string in the A/UX 3.1 sh.
946 cat <<_ACEOF
947\`configure' configures this package to adapt to many kinds of systems.
948
949Usage: $0 [OPTION]... [VAR=VALUE]...
950
951To assign environment variables (e.g., CC, CFLAGS...), specify them as
952VAR=VALUE. See below for descriptions of some of the useful variables.
953
954Defaults for the options are specified in brackets.
955
956Configuration:
957 -h, --help display this help and exit
958 --help=short display options specific to this package
959 --help=recursive display the short help of all the included packages
960 -V, --version display version information and exit
961 -q, --quiet, --silent do not print \`checking...' messages
962 --cache-file=FILE cache test results in FILE [disabled]
963 -C, --config-cache alias for \`--cache-file=config.cache'
964 -n, --no-create do not create output files
965 --srcdir=DIR find the sources in DIR [configure dir or \`..']
966
967_ACEOF
968
969 cat <<_ACEOF
970Installation directories:
971 --prefix=PREFIX install architecture-independent files in PREFIX
972 [$ac_default_prefix]
973 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
974 [PREFIX]
975
976By default, \`make install' will install all the files in
977\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
978an installation prefix other than \`$ac_default_prefix' using \`--prefix',
979for instance \`--prefix=\$HOME'.
980
981For better control, use the options below.
982
983Fine tuning of the installation directories:
984 --bindir=DIR user executables [EPREFIX/bin]
985 --sbindir=DIR system admin executables [EPREFIX/sbin]
986 --libexecdir=DIR program executables [EPREFIX/libexec]
987 --datadir=DIR read-only architecture-independent data [PREFIX/share]
988 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
989 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
990 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
991 --libdir=DIR object code libraries [EPREFIX/lib]
992 --includedir=DIR C header files [PREFIX/include]
993 --oldincludedir=DIR C header files for non-gcc [/usr/include]
994 --infodir=DIR info documentation [PREFIX/info]
995 --mandir=DIR man documentation [PREFIX/man]
996_ACEOF
997
998 cat <<\_ACEOF
999
1000Program names:
1001 --program-prefix=PREFIX prepend PREFIX to installed program names
1002 --program-suffix=SUFFIX append SUFFIX to installed program names
1003 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1004
1005System types:
1006 --build=BUILD configure for building on BUILD [guessed]
1007 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1008 --target=TARGET configure for building compilers for TARGET [HOST]
1009_ACEOF
1010fi
1011
1012if test -n "$ac_init_help"; then
1013
1014 cat <<\_ACEOF
1015
1016Optional Features:
1017 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1018 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001019 --enable-maintainer-mode enable make rules and dependencies not useful
1020 (and sometimes confusing) to the casual installer
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001021 --disable-dependency-tracking Speeds up one-time builds
1022 --enable-dependency-tracking Do not reject slow dependency extractors
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001023 --enable-shared=PKGS build shared libraries default=yes
1024 --enable-static=PKGS build static libraries default=yes
1025 --enable-fast-install=PKGS optimize for fast installation default=yes
1026 --disable-libtool-lock avoid locking (might break parallel builds)
1027 --enable-debug turn on debug support (slows down execution)
1028
1029Optional Packages:
1030 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1031 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1032 --with-gnu-ld assume the C compiler uses GNU ld default=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00001033 --with-pic try to use only PIC/non-PIC objects default=use both
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001034
1035Some influential environment variables:
1036 CC C compiler command
1037 CFLAGS C compiler flags
1038 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1039 nonstandard directory <lib dir>
1040 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041 headers in a nonstandard directory <include dir>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00001042 CXX C++ compiler command
1043 CXXFLAGS C++ compiler flags
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001044 CPP C preprocessor
1045
1046Use these variables to override the choices made by `configure' or to help
1047it to find libraries and programs with nonstandard names/locations.
1048
1049_ACEOF
1050fi
1051
1052if test "$ac_init_help" = "recursive"; then
1053 # If there are subdirs, report their specific --help.
1054 ac_popdir=`pwd`
1055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056 test -d $ac_dir || continue
1057 ac_builddir=.
1058
1059if test "$ac_dir" != .; then
1060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061 # A "../" for each directory in $ac_dir_suffix.
1062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063else
1064 ac_dir_suffix= ac_top_builddir=
1065fi
1066
1067case $srcdir in
1068 .) # No --srcdir option. We are building in place.
1069 ac_srcdir=.
1070 if test -z "$ac_top_builddir"; then
1071 ac_top_srcdir=.
1072 else
1073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074 fi ;;
1075 [\\/]* | ?:[\\/]* ) # Absolute path.
1076 ac_srcdir=$srcdir$ac_dir_suffix;
1077 ac_top_srcdir=$srcdir ;;
1078 *) # Relative path.
1079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081esac
1082# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1083# absolute.
1084ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1085ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1086ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1087ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1088
1089 cd $ac_dir
1090 # Check for guested configure; otherwise get Cygnus style configure.
1091 if test -f $ac_srcdir/configure.gnu; then
1092 echo
1093 $SHELL $ac_srcdir/configure.gnu --help=recursive
1094 elif test -f $ac_srcdir/configure; then
1095 echo
1096 $SHELL $ac_srcdir/configure --help=recursive
1097 elif test -f $ac_srcdir/configure.ac ||
1098 test -f $ac_srcdir/configure.in; then
1099 echo
1100 $ac_configure --help
1101 else
1102 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1103 fi
1104 cd $ac_popdir
1105 done
1106fi
1107
1108test -n "$ac_init_help" && exit 0
1109if $ac_init_version; then
1110 cat <<\_ACEOF
1111
1112Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1113Free Software Foundation, Inc.
1114This configure script is free software; the Free Software Foundation
1115gives unlimited permission to copy, distribute and modify it.
1116_ACEOF
1117 exit 0
1118fi
1119exec 5>config.log
1120cat >&5 <<_ACEOF
1121This file contains any messages produced by compilers while
1122running configure, to aid debugging if configure makes a mistake.
1123
1124It was created by $as_me, which was
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001125generated by GNU Autoconf 2.57. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001126
1127 $ $0 $@
1128
1129_ACEOF
1130{
1131cat <<_ASUNAME
1132## --------- ##
1133## Platform. ##
1134## --------- ##
1135
1136hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1137uname -m = `(uname -m) 2>/dev/null || echo unknown`
1138uname -r = `(uname -r) 2>/dev/null || echo unknown`
1139uname -s = `(uname -s) 2>/dev/null || echo unknown`
1140uname -v = `(uname -v) 2>/dev/null || echo unknown`
1141
1142/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1143/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1144
1145/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1146/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1147/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1148hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1149/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1150/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1151/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1152
1153_ASUNAME
1154
1155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1156for as_dir in $PATH
1157do
1158 IFS=$as_save_IFS
1159 test -z "$as_dir" && as_dir=.
1160 echo "PATH: $as_dir"
1161done
1162
1163} >&5
1164
1165cat >&5 <<_ACEOF
1166
1167
1168## ----------- ##
1169## Core tests. ##
1170## ----------- ##
1171
1172_ACEOF
1173
1174
1175# Keep a trace of the command line.
1176# Strip out --no-create and --no-recursion so they do not pile up.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001177# Strip out --silent because we don't want to record it for future runs.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001178# Also quote any args containing shell meta-characters.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001179# Make two passes to allow for proper duplicate-argument suppression.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001180ac_configure_args=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001181ac_configure_args0=
1182ac_configure_args1=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001183ac_sep=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001184ac_must_keep_next=false
1185for ac_pass in 1 2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001186do
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001187 for ac_arg
1188 do
1189 case $ac_arg in
1190 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 continue ;;
1194 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1195 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1196 esac
1197 case $ac_pass in
1198 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1199 2)
1200 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1201 if test $ac_must_keep_next = true; then
1202 ac_must_keep_next=false # Got value, back to normal.
1203 else
1204 case $ac_arg in
1205 *=* | --config-cache | -C | -disable-* | --disable-* \
1206 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1207 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1208 | -with-* | --with-* | -without-* | --without-* | --x)
1209 case "$ac_configure_args0 " in
1210 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1211 esac
1212 ;;
1213 -* ) ac_must_keep_next=true ;;
1214 esac
1215 fi
1216 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1217 # Get rid of the leading space.
1218 ac_sep=" "
1219 ;;
1220 esac
1221 done
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001222done
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001223$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1224$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001225
1226# When interrupted or exit'd, cleanup temporary files, and complete
1227# config.log. We remove comments because anyway the quotes in there
1228# would cause problems or look ugly.
1229# WARNING: Be sure not to use single quotes in there, as some shells,
1230# such as our DU 5.0 friend, will then `close' the trap.
1231trap 'exit_status=$?
1232 # Save into config.log some information that might help in debugging.
1233 {
1234 echo
1235
1236 cat <<\_ASBOX
1237## ---------------- ##
1238## Cache variables. ##
1239## ---------------- ##
1240_ASBOX
1241 echo
1242 # The following way of writing the cache mishandles newlines in values,
1243{
1244 (set) 2>&1 |
1245 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1246 *ac_space=\ *)
1247 sed -n \
1248 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1250 ;;
1251 *)
1252 sed -n \
1253 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1254 ;;
1255 esac;
1256}
1257 echo
1258
1259 cat <<\_ASBOX
1260## ----------------- ##
1261## Output variables. ##
1262## ----------------- ##
1263_ASBOX
1264 echo
1265 for ac_var in $ac_subst_vars
1266 do
1267 eval ac_val=$`echo $ac_var`
1268 echo "$ac_var='"'"'$ac_val'"'"'"
1269 done | sort
1270 echo
1271
1272 if test -n "$ac_subst_files"; then
1273 cat <<\_ASBOX
1274## ------------- ##
1275## Output files. ##
1276## ------------- ##
1277_ASBOX
1278 echo
1279 for ac_var in $ac_subst_files
1280 do
1281 eval ac_val=$`echo $ac_var`
1282 echo "$ac_var='"'"'$ac_val'"'"'"
1283 done | sort
1284 echo
1285 fi
1286
1287 if test -s confdefs.h; then
1288 cat <<\_ASBOX
1289## ----------- ##
1290## confdefs.h. ##
1291## ----------- ##
1292_ASBOX
1293 echo
1294 sed "/^$/d" confdefs.h | sort
1295 echo
1296 fi
1297 test "$ac_signal" != 0 &&
1298 echo "$as_me: caught signal $ac_signal"
1299 echo "$as_me: exit $exit_status"
1300 } >&5
1301 rm -f core core.* *.core &&
1302 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1303 exit $exit_status
1304 ' 0
1305for ac_signal in 1 2 13 15; do
1306 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1307done
1308ac_signal=0
1309
1310# confdefs.h avoids OS command line length limits that DEFS can exceed.
1311rm -rf conftest* confdefs.h
1312# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1313echo >confdefs.h
1314
1315# Predefined preprocessor variables.
1316
1317cat >>confdefs.h <<_ACEOF
1318#define PACKAGE_NAME "$PACKAGE_NAME"
1319_ACEOF
1320
1321
1322cat >>confdefs.h <<_ACEOF
1323#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1324_ACEOF
1325
1326
1327cat >>confdefs.h <<_ACEOF
1328#define PACKAGE_VERSION "$PACKAGE_VERSION"
1329_ACEOF
1330
1331
1332cat >>confdefs.h <<_ACEOF
1333#define PACKAGE_STRING "$PACKAGE_STRING"
1334_ACEOF
1335
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1339_ACEOF
1340
1341
1342# Let the site file select an alternate cache file if it wants to.
1343# Prefer explicitly selected file to automatically selected ones.
1344if test -z "$CONFIG_SITE"; then
1345 if test "x$prefix" != xNONE; then
1346 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1347 else
1348 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1349 fi
1350fi
1351for ac_site_file in $CONFIG_SITE; do
1352 if test -r "$ac_site_file"; then
1353 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1354echo "$as_me: loading site script $ac_site_file" >&6;}
1355 sed 's/^/| /' "$ac_site_file" >&5
1356 . "$ac_site_file"
1357 fi
1358done
1359
1360if test -r "$cache_file"; then
1361 # Some versions of bash will fail to source /dev/null (special
1362 # files actually), so we avoid doing that.
1363 if test -f "$cache_file"; then
1364 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1365echo "$as_me: loading cache $cache_file" >&6;}
1366 case $cache_file in
1367 [\\/]* | ?:[\\/]* ) . $cache_file;;
1368 *) . ./$cache_file;;
1369 esac
1370 fi
1371else
1372 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1373echo "$as_me: creating cache $cache_file" >&6;}
1374 >$cache_file
1375fi
1376
1377# Check that the precious variables saved in the cache have kept the same
1378# value.
1379ac_cache_corrupted=false
1380for ac_var in `(set) 2>&1 |
1381 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1382 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1383 eval ac_new_set=\$ac_env_${ac_var}_set
1384 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1385 eval ac_new_val="\$ac_env_${ac_var}_value"
1386 case $ac_old_set,$ac_new_set in
1387 set,)
1388 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1389echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1390 ac_cache_corrupted=: ;;
1391 ,set)
1392 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1393echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1394 ac_cache_corrupted=: ;;
1395 ,);;
1396 *)
1397 if test "x$ac_old_val" != "x$ac_new_val"; then
1398 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1399echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1400 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1401echo "$as_me: former value: $ac_old_val" >&2;}
1402 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1403echo "$as_me: current value: $ac_new_val" >&2;}
1404 ac_cache_corrupted=:
1405 fi;;
1406 esac
1407 # Pass precious variables to config.status.
1408 if test "$ac_new_set" = set; then
1409 case $ac_new_val in
1410 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1411 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1412 *) ac_arg=$ac_var=$ac_new_val ;;
1413 esac
1414 case " $ac_configure_args " in
1415 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1416 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1417 esac
1418 fi
1419done
1420if $ac_cache_corrupted; then
1421 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1422echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1423 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1424echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1425 { (exit 1); exit 1; }; }
1426fi
1427
1428ac_ext=c
1429ac_cpp='$CPP $CPPFLAGS'
1430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432ac_compiler_gnu=$ac_cv_c_compiler_gnu
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452ac_aux_dir=
1453for ac_dir in aux $srcdir/aux; do
1454 if test -f $ac_dir/install-sh; then
1455 ac_aux_dir=$ac_dir
1456 ac_install_sh="$ac_aux_dir/install-sh -c"
1457 break
1458 elif test -f $ac_dir/install.sh; then
1459 ac_aux_dir=$ac_dir
1460 ac_install_sh="$ac_aux_dir/install.sh -c"
1461 break
1462 elif test -f $ac_dir/shtool; then
1463 ac_aux_dir=$ac_dir
1464 ac_install_sh="$ac_aux_dir/shtool install -c"
1465 break
1466 fi
1467done
1468if test -z "$ac_aux_dir"; then
1469 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
1470echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
1471 { (exit 1); exit 1; }; }
1472fi
1473ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1474ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1475ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1476
1477# Make sure we can run config.sub.
1478$ac_config_sub sun4 >/dev/null 2>&1 ||
1479 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1480echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1481 { (exit 1); exit 1; }; }
1482
1483echo "$as_me:$LINENO: checking build system type" >&5
1484echo $ECHO_N "checking build system type... $ECHO_C" >&6
1485if test "${ac_cv_build+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487else
1488 ac_cv_build_alias=$build_alias
1489test -z "$ac_cv_build_alias" &&
1490 ac_cv_build_alias=`$ac_config_guess`
1491test -z "$ac_cv_build_alias" &&
1492 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1493echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1494 { (exit 1); exit 1; }; }
1495ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1496 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1497echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1498 { (exit 1); exit 1; }; }
1499
1500fi
1501echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1502echo "${ECHO_T}$ac_cv_build" >&6
1503build=$ac_cv_build
1504build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1505build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1506build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1507
1508
1509echo "$as_me:$LINENO: checking host system type" >&5
1510echo $ECHO_N "checking host system type... $ECHO_C" >&6
1511if test "${ac_cv_host+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514 ac_cv_host_alias=$host_alias
1515test -z "$ac_cv_host_alias" &&
1516 ac_cv_host_alias=$ac_cv_build_alias
1517ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1518 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1519echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1520 { (exit 1); exit 1; }; }
1521
1522fi
1523echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1524echo "${ECHO_T}$ac_cv_host" >&6
1525host=$ac_cv_host
1526host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1527host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1528host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1529
1530
1531echo "$as_me:$LINENO: checking target system type" >&5
1532echo $ECHO_N "checking target system type... $ECHO_C" >&6
1533if test "${ac_cv_target+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1535else
1536 ac_cv_target_alias=$target_alias
1537test "x$ac_cv_target_alias" = "x" &&
1538 ac_cv_target_alias=$ac_cv_host_alias
1539ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1540 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1541echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1542 { (exit 1); exit 1; }; }
1543
1544fi
1545echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1546echo "${ECHO_T}$ac_cv_target" >&6
1547target=$ac_cv_target
1548target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1549target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1550target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1551
1552
1553# The aliases save the names the user supplied, while $host etc.
1554# will get canonicalized.
1555test -n "$target_alias" &&
1556 test "$program_prefix$program_suffix$program_transform_name" = \
1557 NONENONEs,x,x, &&
1558 program_prefix=${target_alias}-
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001559am__api_version="1.6"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001560# Find a good install program. We prefer a C program (faster),
1561# so one script is as good as another. But avoid the broken or
1562# incompatible versions:
1563# SysV /etc/install, /usr/sbin/install
1564# SunOS /usr/etc/install
1565# IRIX /sbin/install
1566# AIX /bin/install
1567# AmigaOS /C/install, which installs bootblocks on floppy discs
1568# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1569# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1570# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1571# ./install, which can be erroneously created by make from ./install.sh.
1572echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1573echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1574if test -z "$INSTALL"; then
1575if test "${ac_cv_path_install+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579for as_dir in $PATH
1580do
1581 IFS=$as_save_IFS
1582 test -z "$as_dir" && as_dir=.
1583 # Account for people who put trailing slashes in PATH elements.
1584case $as_dir/ in
1585 ./ | .// | /cC/* | \
1586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1587 /usr/ucb/* ) ;;
1588 *)
1589 # OSF1 and SCO ODT 3.0 have their own names for install.
1590 # Don't use installbsd from OSF since it installs stuff as root
1591 # by default.
1592 for ac_prog in ginstall scoinst install; do
1593 for ac_exec_ext in '' $ac_executable_extensions; do
1594 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1595 if test $ac_prog = install &&
1596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1597 # AIX install. It has an incompatible calling convention.
1598 :
1599 elif test $ac_prog = install &&
1600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1601 # program-specific install script used by HP pwplus--don't use.
1602 :
1603 else
1604 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1605 break 3
1606 fi
1607 fi
1608 done
1609 done
1610 ;;
1611esac
1612done
1613
1614
1615fi
1616 if test "${ac_cv_path_install+set}" = set; then
1617 INSTALL=$ac_cv_path_install
1618 else
1619 # As a last resort, use the slow shell script. We don't cache a
1620 # path for INSTALL within a source directory, because that will
1621 # break other packages using the cache if that directory is
1622 # removed, or if the path is relative.
1623 INSTALL=$ac_install_sh
1624 fi
1625fi
1626echo "$as_me:$LINENO: result: $INSTALL" >&5
1627echo "${ECHO_T}$INSTALL" >&6
1628
1629# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1630# It thinks the first close brace ends the variable substitution.
1631test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1632
1633test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1634
1635test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1636
1637echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1638echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1639# Just in case
1640sleep 1
1641echo timestamp > conftest.file
1642# Do `set' in a subshell so we don't clobber the current shell's
1643# arguments. Must try -L first in case configure is actually a
1644# symlink; some systems play weird games with the mod time of symlinks
1645# (eg FreeBSD returns the mod time of the symlink's containing
1646# directory).
1647if (
1648 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1649 if test "$*" = "X"; then
1650 # -L didn't work.
1651 set X `ls -t $srcdir/configure conftest.file`
1652 fi
1653 rm -f conftest.file
1654 if test "$*" != "X $srcdir/configure conftest.file" \
1655 && test "$*" != "X conftest.file $srcdir/configure"; then
1656
1657 # If neither matched, then we have a broken ls. This can happen
1658 # if, for instance, CONFIG_SHELL is bash and it inherits a
1659 # broken ls alias from the environment. This has actually
1660 # happened. Such a system could not be considered "sane".
1661 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1662alias in your environment" >&5
1663echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1664alias in your environment" >&2;}
1665 { (exit 1); exit 1; }; }
1666 fi
1667
1668 test "$2" = conftest.file
1669 )
1670then
1671 # Ok.
1672 :
1673else
1674 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1675Check your system clock" >&5
1676echo "$as_me: error: newly created file is older than distributed files!
1677Check your system clock" >&2;}
1678 { (exit 1); exit 1; }; }
1679fi
1680echo "$as_me:$LINENO: result: yes" >&5
1681echo "${ECHO_T}yes" >&6
1682test "$program_prefix" != NONE &&
1683 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1684# Use a double $ so make ignores it.
1685test "$program_suffix" != NONE &&
1686 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1687# Double any \ or $. echo might interpret backslashes.
1688# By default was `s,x,x', remove it if useless.
1689cat <<\_ACEOF >conftest.sed
1690s/[\\$]/&&/g;s/;s,x,x,$//
1691_ACEOF
1692program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1693rm conftest.sed
1694
1695
1696# expand $ac_aux_dir to an absolute path
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001697am_aux_dir=`cd $ac_aux_dir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001698
1699test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1700# Use eval to expand $SHELL
1701if eval "$MISSING --run true"; then
1702 am_missing_run="$MISSING --run "
1703else
1704 am_missing_run=
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001705 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1706echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001707fi
1708
1709for ac_prog in gawk mawk nawk awk
1710do
1711 # Extract the first word of "$ac_prog", so it can be a program name with args.
1712set dummy $ac_prog; ac_word=$2
1713echo "$as_me:$LINENO: checking for $ac_word" >&5
1714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715if test "${ac_cv_prog_AWK+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718 if test -n "$AWK"; then
1719 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1720else
1721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722for as_dir in $PATH
1723do
1724 IFS=$as_save_IFS
1725 test -z "$as_dir" && as_dir=.
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_AWK="$ac_prog"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730 break 2
1731 fi
1732done
1733done
1734
1735fi
1736fi
1737AWK=$ac_cv_prog_AWK
1738if test -n "$AWK"; then
1739 echo "$as_me:$LINENO: result: $AWK" >&5
1740echo "${ECHO_T}$AWK" >&6
1741else
1742 echo "$as_me:$LINENO: result: no" >&5
1743echo "${ECHO_T}no" >&6
1744fi
1745
1746 test -n "$AWK" && break
1747done
1748
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001749echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1750echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001751set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1752if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755 cat >conftest.make <<\_ACEOF
1756all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001757 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001758_ACEOF
1759# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1760eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1761if test -n "$ac_maketemp"; then
1762 eval ac_cv_prog_make_${ac_make}_set=yes
1763else
1764 eval ac_cv_prog_make_${ac_make}_set=no
1765fi
1766rm -f conftest.make
1767fi
1768if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1769 echo "$as_me:$LINENO: result: yes" >&5
1770echo "${ECHO_T}yes" >&6
1771 SET_MAKE=
1772else
1773 echo "$as_me:$LINENO: result: no" >&5
1774echo "${ECHO_T}no" >&6
1775 SET_MAKE="MAKE=${MAKE-make}"
1776fi
1777
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001778 # test to see if srcdir already configured
1779if test "`cd $srcdir && pwd`" != "`pwd`" &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001780 test -f $srcdir/config.status; then
1781 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1782echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1783 { (exit 1); exit 1; }; }
1784fi
1785
1786# Define the identity of the package.
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001787 PACKAGE=libunwind
mostang.com!davidmc784d062003-04-24 20:45:07 +00001788 VERSION=0.93
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001789
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001790
1791cat >>confdefs.h <<_ACEOF
1792#define PACKAGE "$PACKAGE"
1793_ACEOF
1794
1795
1796cat >>confdefs.h <<_ACEOF
1797#define VERSION "$VERSION"
1798_ACEOF
1799
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001800# Some tools Automake needs.
1801
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001802ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001803
1804
1805AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1806
1807
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001808AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001809
1810
1811AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1812
1813
1814MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1815
1816
1817AMTAR=${AMTAR-"${am_missing_run}tar"}
1818
1819install_sh=${install_sh-"$am_aux_dir/install-sh"}
1820
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001821# Installed binaries are usually stripped using `strip' when the user
1822# run `make install-strip'. However `strip' might not be the right
1823# tool to use in cross-compilation environments, therefore Automake
1824# will honor the `STRIP' environment variable to overrule this program.
1825if test "$cross_compiling" != no; then
1826 if test -n "$ac_tool_prefix"; then
1827 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1828set dummy ${ac_tool_prefix}strip; ac_word=$2
1829echo "$as_me:$LINENO: checking for $ac_word" >&5
1830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831if test "${ac_cv_prog_STRIP+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1833else
1834 if test -n "$STRIP"; then
1835 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1836else
1837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838for as_dir in $PATH
1839do
1840 IFS=$as_save_IFS
1841 test -z "$as_dir" && as_dir=.
1842 for ac_exec_ext in '' $ac_executable_extensions; do
1843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 break 2
1847 fi
1848done
1849done
1850
1851fi
1852fi
1853STRIP=$ac_cv_prog_STRIP
1854if test -n "$STRIP"; then
1855 echo "$as_me:$LINENO: result: $STRIP" >&5
1856echo "${ECHO_T}$STRIP" >&6
1857else
1858 echo "$as_me:$LINENO: result: no" >&5
1859echo "${ECHO_T}no" >&6
1860fi
1861
1862fi
1863if test -z "$ac_cv_prog_STRIP"; then
1864 ac_ct_STRIP=$STRIP
1865 # Extract the first word of "strip", so it can be a program name with args.
1866set dummy strip; ac_word=$2
1867echo "$as_me:$LINENO: checking for $ac_word" >&5
1868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871else
1872 if test -n "$ac_ct_STRIP"; then
1873 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1874else
1875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876for as_dir in $PATH
1877do
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_ac_ct_STRIP="strip"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 break 2
1885 fi
1886done
1887done
1888
1889 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1890fi
1891fi
1892ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1893if test -n "$ac_ct_STRIP"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1895echo "${ECHO_T}$ac_ct_STRIP" >&6
1896else
1897 echo "$as_me:$LINENO: result: no" >&5
1898echo "${ECHO_T}no" >&6
1899fi
1900
1901 STRIP=$ac_ct_STRIP
1902else
1903 STRIP="$ac_cv_prog_STRIP"
1904fi
1905
1906fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001907INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1908
1909# We need awk for the "check" target. The system "awk" is bad on
1910# some platforms.
1911
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001912
1913
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001914echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1915echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1916 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1917if test "${enable_maintainer_mode+set}" = set; then
1918 enableval="$enable_maintainer_mode"
1919 USE_MAINTAINER_MODE=$enableval
1920else
1921 USE_MAINTAINER_MODE=no
1922fi;
1923 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1924echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1925
1926
1927if test $USE_MAINTAINER_MODE = yes; then
1928 MAINTAINER_MODE_TRUE=
1929 MAINTAINER_MODE_FALSE='#'
1930else
1931 MAINTAINER_MODE_TRUE='#'
1932 MAINTAINER_MODE_FALSE=
1933fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001934
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001935 MAINT=$MAINTAINER_MODE_TRUE
1936
1937
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001938# Add the stamp file to the list of files AC keeps track of,
1939# along with our hook.
1940 ac_config_headers="$ac_config_headers include/config.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001941
1942
1943
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001944
1945ac_ext=c
1946ac_cpp='$CPP $CPPFLAGS'
1947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1949ac_compiler_gnu=$ac_cv_c_compiler_gnu
1950if test -n "$ac_tool_prefix"; then
1951 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1952set dummy ${ac_tool_prefix}gcc; ac_word=$2
1953echo "$as_me:$LINENO: checking for $ac_word" >&5
1954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955if test "${ac_cv_prog_CC+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957else
1958 if test -n "$CC"; then
1959 ac_cv_prog_CC="$CC" # Let the user override the test.
1960else
1961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962for as_dir in $PATH
1963do
1964 IFS=$as_save_IFS
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970 break 2
1971 fi
1972done
1973done
1974
1975fi
1976fi
1977CC=$ac_cv_prog_CC
1978if test -n "$CC"; then
1979 echo "$as_me:$LINENO: result: $CC" >&5
1980echo "${ECHO_T}$CC" >&6
1981else
1982 echo "$as_me:$LINENO: result: no" >&5
1983echo "${ECHO_T}no" >&6
1984fi
1985
1986fi
1987if test -z "$ac_cv_prog_CC"; then
1988 ac_ct_CC=$CC
1989 # Extract the first word of "gcc", so it can be a program name with args.
1990set dummy gcc; ac_word=$2
1991echo "$as_me:$LINENO: checking for $ac_word" >&5
1992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995else
1996 if test -n "$ac_ct_CC"; then
1997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1998else
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH
2001do
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 ac_cv_prog_ac_ct_CC="gcc"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 break 2
2009 fi
2010done
2011done
2012
2013fi
2014fi
2015ac_ct_CC=$ac_cv_prog_ac_ct_CC
2016if test -n "$ac_ct_CC"; then
2017 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2018echo "${ECHO_T}$ac_ct_CC" >&6
2019else
2020 echo "$as_me:$LINENO: result: no" >&5
2021echo "${ECHO_T}no" >&6
2022fi
2023
2024 CC=$ac_ct_CC
2025else
2026 CC="$ac_cv_prog_CC"
2027fi
2028
2029if test -z "$CC"; then
2030 if test -n "$ac_tool_prefix"; then
2031 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2032set dummy ${ac_tool_prefix}cc; ac_word=$2
2033echo "$as_me:$LINENO: checking for $ac_word" >&5
2034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035if test "${ac_cv_prog_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037else
2038 if test -n "$CC"; then
2039 ac_cv_prog_CC="$CC" # Let the user override the test.
2040else
2041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042for as_dir in $PATH
2043do
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048 ac_cv_prog_CC="${ac_tool_prefix}cc"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 break 2
2051 fi
2052done
2053done
2054
2055fi
2056fi
2057CC=$ac_cv_prog_CC
2058if test -n "$CC"; then
2059 echo "$as_me:$LINENO: result: $CC" >&5
2060echo "${ECHO_T}$CC" >&6
2061else
2062 echo "$as_me:$LINENO: result: no" >&5
2063echo "${ECHO_T}no" >&6
2064fi
2065
2066fi
2067if test -z "$ac_cv_prog_CC"; then
2068 ac_ct_CC=$CC
2069 # Extract the first word of "cc", so it can be a program name with args.
2070set dummy cc; ac_word=$2
2071echo "$as_me:$LINENO: checking for $ac_word" >&5
2072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2073if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076 if test -n "$ac_ct_CC"; then
2077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078else
2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086 ac_cv_prog_ac_ct_CC="cc"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 break 2
2089 fi
2090done
2091done
2092
2093fi
2094fi
2095ac_ct_CC=$ac_cv_prog_ac_ct_CC
2096if test -n "$ac_ct_CC"; then
2097 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2098echo "${ECHO_T}$ac_ct_CC" >&6
2099else
2100 echo "$as_me:$LINENO: result: no" >&5
2101echo "${ECHO_T}no" >&6
2102fi
2103
2104 CC=$ac_ct_CC
2105else
2106 CC="$ac_cv_prog_CC"
2107fi
2108
2109fi
2110if test -z "$CC"; then
2111 # Extract the first word of "cc", so it can be a program name with args.
2112set dummy cc; ac_word=$2
2113echo "$as_me:$LINENO: checking for $ac_word" >&5
2114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2115if test "${ac_cv_prog_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117else
2118 if test -n "$CC"; then
2119 ac_cv_prog_CC="$CC" # Let the user override the test.
2120else
2121 ac_prog_rejected=no
2122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123for as_dir in $PATH
2124do
2125 IFS=$as_save_IFS
2126 test -z "$as_dir" && as_dir=.
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2130 ac_prog_rejected=yes
2131 continue
2132 fi
2133 ac_cv_prog_CC="cc"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 break 2
2136 fi
2137done
2138done
2139
2140if test $ac_prog_rejected = yes; then
2141 # We found a bogon in the path, so make sure we never use it.
2142 set dummy $ac_cv_prog_CC
2143 shift
2144 if test $# != 0; then
2145 # We chose a different compiler from the bogus one.
2146 # However, it has the same basename, so the bogon will be chosen
2147 # first if we set CC to just the basename; use the full file name.
2148 shift
2149 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2150 fi
2151fi
2152fi
2153fi
2154CC=$ac_cv_prog_CC
2155if test -n "$CC"; then
2156 echo "$as_me:$LINENO: result: $CC" >&5
2157echo "${ECHO_T}$CC" >&6
2158else
2159 echo "$as_me:$LINENO: result: no" >&5
2160echo "${ECHO_T}no" >&6
2161fi
2162
2163fi
2164if test -z "$CC"; then
2165 if test -n "$ac_tool_prefix"; then
2166 for ac_prog in cl
2167 do
2168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2169set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2170echo "$as_me:$LINENO: checking for $ac_word" >&5
2171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172if test "${ac_cv_prog_CC+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2174else
2175 if test -n "$CC"; then
2176 ac_cv_prog_CC="$CC" # Let the user override the test.
2177else
2178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179for as_dir in $PATH
2180do
2181 IFS=$as_save_IFS
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 break 2
2188 fi
2189done
2190done
2191
2192fi
2193fi
2194CC=$ac_cv_prog_CC
2195if test -n "$CC"; then
2196 echo "$as_me:$LINENO: result: $CC" >&5
2197echo "${ECHO_T}$CC" >&6
2198else
2199 echo "$as_me:$LINENO: result: no" >&5
2200echo "${ECHO_T}no" >&6
2201fi
2202
2203 test -n "$CC" && break
2204 done
2205fi
2206if test -z "$CC"; then
2207 ac_ct_CC=$CC
2208 for ac_prog in cl
2209do
2210 # Extract the first word of "$ac_prog", so it can be a program name with args.
2211set dummy $ac_prog; ac_word=$2
2212echo "$as_me:$LINENO: checking for $ac_word" >&5
2213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216else
2217 if test -n "$ac_ct_CC"; then
2218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2219else
2220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221for as_dir in $PATH
2222do
2223 IFS=$as_save_IFS
2224 test -z "$as_dir" && as_dir=.
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227 ac_cv_prog_ac_ct_CC="$ac_prog"
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 break 2
2230 fi
2231done
2232done
2233
2234fi
2235fi
2236ac_ct_CC=$ac_cv_prog_ac_ct_CC
2237if test -n "$ac_ct_CC"; then
2238 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2239echo "${ECHO_T}$ac_ct_CC" >&6
2240else
2241 echo "$as_me:$LINENO: result: no" >&5
2242echo "${ECHO_T}no" >&6
2243fi
2244
2245 test -n "$ac_ct_CC" && break
2246done
2247
2248 CC=$ac_ct_CC
2249fi
2250
2251fi
2252
2253
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002254test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2255See \`config.log' for more details." >&5
2256echo "$as_me: error: no acceptable C compiler found in \$PATH
2257See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002258 { (exit 1); exit 1; }; }
2259
2260# Provide some information about the compiler.
2261echo "$as_me:$LINENO:" \
2262 "checking for C compiler version" >&5
2263ac_compiler=`set X $ac_compile; echo $2`
2264{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2265 (eval $ac_compiler --version </dev/null >&5) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }
2269{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2270 (eval $ac_compiler -v </dev/null >&5) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }
2274{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2275 (eval $ac_compiler -V </dev/null >&5) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }
2279
2280cat >conftest.$ac_ext <<_ACEOF
2281#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002282/* confdefs.h. */
2283_ACEOF
2284cat confdefs.h >>conftest.$ac_ext
2285cat >>conftest.$ac_ext <<_ACEOF
2286/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002287
2288int
2289main ()
2290{
2291
2292 ;
2293 return 0;
2294}
2295_ACEOF
2296ac_clean_files_save=$ac_clean_files
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002297ac_clean_files="$ac_clean_files a.out a.exe b.out"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002298# Try to create an executable without -o first, disregard a.out.
2299# It will help us diagnose broken compilers, and finding out an intuition
2300# of exeext.
2301echo "$as_me:$LINENO: checking for C compiler default output" >&5
2302echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2303ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2304if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2305 (eval $ac_link_default) 2>&5
2306 ac_status=$?
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; then
2309 # Find the output, starting from the most likely. This scheme is
2310# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2311# resort.
2312
2313# Be careful to initialize this variable, since it used to be cached.
2314# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2315ac_cv_exeext=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002316# b.out is created by i960 compilers.
2317for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2318do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002319 test -f "$ac_file" || continue
2320 case $ac_file in
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2322 ;;
2323 conftest.$ac_ext )
2324 # This is the source file.
2325 ;;
2326 [ab].out )
2327 # We found the default executable, but exeext='' is most
2328 # certainly right.
2329 break;;
2330 *.* )
2331 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2332 # FIXME: I believe we export ac_cv_exeext for Libtool,
2333 # but it would be cool to find out if it's true. Does anybody
2334 # maintain Libtool? --akim.
2335 export ac_cv_exeext
2336 break;;
2337 * )
2338 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002339 esac
2340done
2341else
2342 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002343sed 's/^/| /' conftest.$ac_ext >&5
2344
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002345{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002346See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002347echo "$as_me: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002348See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002349 { (exit 77); exit 77; }; }
2350fi
2351
2352ac_exeext=$ac_cv_exeext
2353echo "$as_me:$LINENO: result: $ac_file" >&5
2354echo "${ECHO_T}$ac_file" >&6
2355
2356# Check the compiler produces executables we can run. If not, either
2357# the compiler is broken, or we cross compile.
2358echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2359echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2360# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2361# If not cross compiling, check that we can run a simple program.
2362if test "$cross_compiling" != yes; then
2363 if { ac_try='./$ac_file'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2369 cross_compiling=no
2370 else
2371 if test "$cross_compiling" = maybe; then
2372 cross_compiling=yes
2373 else
2374 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002375If you meant to cross compile, use \`--host'.
2376See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002377echo "$as_me: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002378If you meant to cross compile, use \`--host'.
2379See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002380 { (exit 1); exit 1; }; }
2381 fi
2382 fi
2383fi
2384echo "$as_me:$LINENO: result: yes" >&5
2385echo "${ECHO_T}yes" >&6
2386
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002387rm -f a.out a.exe conftest$ac_cv_exeext b.out
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002388ac_clean_files=$ac_clean_files_save
2389# Check the compiler produces executables we can run. If not, either
2390# the compiler is broken, or we cross compile.
2391echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2392echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2393echo "$as_me:$LINENO: result: $cross_compiling" >&5
2394echo "${ECHO_T}$cross_compiling" >&6
2395
2396echo "$as_me:$LINENO: checking for suffix of executables" >&5
2397echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2399 (eval $ac_link) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; then
2403 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2404# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2405# work properly (i.e., refer to `conftest.exe'), while it won't with
2406# `rm'.
2407for ac_file in conftest.exe conftest conftest.*; do
2408 test -f "$ac_file" || continue
2409 case $ac_file in
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2411 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2412 export ac_cv_exeext
2413 break;;
2414 * ) break;;
2415 esac
2416done
2417else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002418 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2419See \`config.log' for more details." >&5
2420echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2421See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002422 { (exit 1); exit 1; }; }
2423fi
2424
2425rm -f conftest$ac_cv_exeext
2426echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2427echo "${ECHO_T}$ac_cv_exeext" >&6
2428
2429rm -f conftest.$ac_ext
2430EXEEXT=$ac_cv_exeext
2431ac_exeext=$EXEEXT
2432echo "$as_me:$LINENO: checking for suffix of object files" >&5
2433echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2434if test "${ac_cv_objext+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436else
2437 cat >conftest.$ac_ext <<_ACEOF
2438#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002439/* confdefs.h. */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002444
2445int
2446main ()
2447{
2448
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453rm -f conftest.o conftest.obj
2454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; then
2459 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2460 case $ac_file in
2461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2462 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2463 break;;
2464 esac
2465done
2466else
2467 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002468sed 's/^/| /' conftest.$ac_ext >&5
2469
2470{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2471See \`config.log' for more details." >&5
2472echo "$as_me: error: cannot compute suffix of object files: cannot compile
2473See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002474 { (exit 1); exit 1; }; }
2475fi
2476
2477rm -f conftest.$ac_cv_objext conftest.$ac_ext
2478fi
2479echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2480echo "${ECHO_T}$ac_cv_objext" >&6
2481OBJEXT=$ac_cv_objext
2482ac_objext=$OBJEXT
2483echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2484echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2485if test "${ac_cv_c_compiler_gnu+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488 cat >conftest.$ac_ext <<_ACEOF
2489#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002490/* confdefs.h. */
2491_ACEOF
2492cat confdefs.h >>conftest.$ac_ext
2493cat >>conftest.$ac_ext <<_ACEOF
2494/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002495
2496int
2497main ()
2498{
2499#ifndef __GNUC__
2500 choke me
2501#endif
2502
2503 ;
2504 return 0;
2505}
2506_ACEOF
2507rm -f conftest.$ac_objext
2508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_compiler_gnu=yes
2520else
2521 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002522sed 's/^/| /' conftest.$ac_ext >&5
2523
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002524ac_compiler_gnu=no
2525fi
2526rm -f conftest.$ac_objext conftest.$ac_ext
2527ac_cv_c_compiler_gnu=$ac_compiler_gnu
2528
2529fi
2530echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2531echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2532GCC=`test $ac_compiler_gnu = yes && echo yes`
2533ac_test_CFLAGS=${CFLAGS+set}
2534ac_save_CFLAGS=$CFLAGS
2535CFLAGS="-g"
2536echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2537echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2538if test "${ac_cv_prog_cc_g+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540else
2541 cat >conftest.$ac_ext <<_ACEOF
2542#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002543/* confdefs.h. */
2544_ACEOF
2545cat confdefs.h >>conftest.$ac_ext
2546cat >>conftest.$ac_ext <<_ACEOF
2547/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002548
2549int
2550main ()
2551{
2552
2553 ;
2554 return 0;
2555}
2556_ACEOF
2557rm -f conftest.$ac_objext
2558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -s conftest.$ac_objext'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2569 ac_cv_prog_cc_g=yes
2570else
2571 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002572sed 's/^/| /' conftest.$ac_ext >&5
2573
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002574ac_cv_prog_cc_g=no
2575fi
2576rm -f conftest.$ac_objext conftest.$ac_ext
2577fi
2578echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2579echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2580if test "$ac_test_CFLAGS" = set; then
2581 CFLAGS=$ac_save_CFLAGS
2582elif test $ac_cv_prog_cc_g = yes; then
2583 if test "$GCC" = yes; then
2584 CFLAGS="-g -O2"
2585 else
2586 CFLAGS="-g"
2587 fi
2588else
2589 if test "$GCC" = yes; then
2590 CFLAGS="-O2"
2591 else
2592 CFLAGS=
2593 fi
2594fi
2595echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2596echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2597if test "${ac_cv_prog_cc_stdc+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599else
2600 ac_cv_prog_cc_stdc=no
2601ac_save_CC=$CC
2602cat >conftest.$ac_ext <<_ACEOF
2603#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002604/* confdefs.h. */
2605_ACEOF
2606cat confdefs.h >>conftest.$ac_ext
2607cat >>conftest.$ac_ext <<_ACEOF
2608/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002609#include <stdarg.h>
2610#include <stdio.h>
2611#include <sys/types.h>
2612#include <sys/stat.h>
2613/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2614struct buf { int x; };
2615FILE * (*rcsopen) (struct buf *, struct stat *, int);
2616static char *e (p, i)
2617 char **p;
2618 int i;
2619{
2620 return p[i];
2621}
2622static char *f (char * (*g) (char **, int), char **p, ...)
2623{
2624 char *s;
2625 va_list v;
2626 va_start (v,p);
2627 s = g (p, va_arg (v,int));
2628 va_end (v);
2629 return s;
2630}
2631int test (int i, double x);
2632struct s1 {int (*f) (int a);};
2633struct s2 {int (*f) (double a);};
2634int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2635int argc;
2636char **argv;
2637int
2638main ()
2639{
2640return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645# Don't try gcc -ansi; that turns off useful extensions and
2646# breaks some systems' header files.
2647# AIX -qlanglvl=ansi
2648# Ultrix and OSF/1 -std1
2649# HP-UX 10.20 and later -Ae
2650# HP-UX older versions -Aa -D_HPUX_SOURCE
2651# SVR4 -Xc -D__EXTENSIONS__
2652for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2653do
2654 CC="$ac_save_CC $ac_arg"
2655 rm -f conftest.$ac_objext
2656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -s conftest.$ac_objext'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2667 ac_cv_prog_cc_stdc=$ac_arg
2668break
2669else
2670 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002671sed 's/^/| /' conftest.$ac_ext >&5
2672
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002673fi
2674rm -f conftest.$ac_objext
2675done
2676rm -f conftest.$ac_ext conftest.$ac_objext
2677CC=$ac_save_CC
2678
2679fi
2680
2681case "x$ac_cv_prog_cc_stdc" in
2682 x|xno)
2683 echo "$as_me:$LINENO: result: none needed" >&5
2684echo "${ECHO_T}none needed" >&6 ;;
2685 *)
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2687echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2688 CC="$CC $ac_cv_prog_cc_stdc" ;;
2689esac
2690
2691# Some people use a C++ compiler to compile C. Since we use `exit',
2692# in C++ we need to declare it. In case someone uses the same compiler
2693# for both compiling C and C++ we need to have the C++ compiler decide
2694# the declaration of exit, since it's the most demanding environment.
2695cat >conftest.$ac_ext <<_ACEOF
2696#ifndef __cplusplus
2697 choke me
2698#endif
2699_ACEOF
2700rm -f conftest.$ac_objext
2701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
2706 { ac_try='test -s conftest.$ac_objext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 for ac_declaration in \
2713 ''\
2714 '#include <stdlib.h>' \
2715 'extern "C" void std::exit (int) throw (); using std::exit;' \
2716 'extern "C" void std::exit (int); using std::exit;' \
2717 'extern "C" void exit (int) throw ();' \
2718 'extern "C" void exit (int);' \
2719 'void exit (int);'
2720do
2721 cat >conftest.$ac_ext <<_ACEOF
2722#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002723/* confdefs.h. */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002728#include <stdlib.h>
2729$ac_declaration
2730int
2731main ()
2732{
2733exit (42);
2734 ;
2735 return 0;
2736}
2737_ACEOF
2738rm -f conftest.$ac_objext
2739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740 (eval $ac_compile) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -s conftest.$ac_objext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2750 :
2751else
2752 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002753sed 's/^/| /' conftest.$ac_ext >&5
2754
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002755continue
2756fi
2757rm -f conftest.$ac_objext conftest.$ac_ext
2758 cat >conftest.$ac_ext <<_ACEOF
2759#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002760/* confdefs.h. */
2761_ACEOF
2762cat confdefs.h >>conftest.$ac_ext
2763cat >>conftest.$ac_ext <<_ACEOF
2764/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002765$ac_declaration
2766int
2767main ()
2768{
2769exit (42);
2770 ;
2771 return 0;
2772}
2773_ACEOF
2774rm -f conftest.$ac_objext
2775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776 (eval $ac_compile) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 break
2787else
2788 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002789sed 's/^/| /' conftest.$ac_ext >&5
2790
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002791fi
2792rm -f conftest.$ac_objext conftest.$ac_ext
2793done
2794rm -f conftest*
2795if test -n "$ac_declaration"; then
2796 echo '#ifdef __cplusplus' >>confdefs.h
2797 echo $ac_declaration >>confdefs.h
2798 echo '#endif' >>confdefs.h
2799fi
2800
2801else
2802 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002803sed 's/^/| /' conftest.$ac_ext >&5
2804
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002805fi
2806rm -f conftest.$ac_objext conftest.$ac_ext
2807ac_ext=c
2808ac_cpp='$CPP $CPPFLAGS'
2809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002812rm -f .deps 2>/dev/null
2813mkdir .deps 2>/dev/null
2814if test -d .deps; then
2815 DEPDIR=.deps
2816else
2817 # MS-DOS does not allow filenames that begin with a dot.
2818 DEPDIR=_deps
2819fi
2820rmdir .deps 2>/dev/null
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002821
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002822
2823 ac_config_commands="$ac_config_commands depfiles"
2824
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002825
2826am_make=${MAKE-make}
2827cat > confinc << 'END'
2828doit:
2829 @echo done
2830END
2831# If we don't find an include directive, just comment out the code.
2832echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2833echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002834am__include="#"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002835am__quote=
2836_am_result=none
2837# First try GNU make style include.
2838echo "include confinc" > confmf
2839# We grep out `Entering directory' and `Leaving directory'
2840# messages which can occur if `w' ends up in MAKEFLAGS.
2841# In particular we don't look at `^make:' because GNU make might
2842# be invoked under some other name (usually "gmake"), in which
2843# case it prints its new name instead of `make'.
2844if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2845 am__include=include
2846 am__quote=
2847 _am_result=GNU
2848fi
2849# Now try BSD make style include.
2850if test "$am__include" = "#"; then
2851 echo '.include "confinc"' > confmf
2852 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2853 am__include=.include
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002854 am__quote="\""
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002855 _am_result=BSD
2856 fi
2857fi
2858
2859
2860echo "$as_me:$LINENO: result: $_am_result" >&5
2861echo "${ECHO_T}$_am_result" >&6
2862rm -f confinc confmf
2863
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002864# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2865if test "${enable_dependency_tracking+set}" = set; then
2866 enableval="$enable_dependency_tracking"
2867
2868fi;
2869if test "x$enable_dependency_tracking" != xno; then
2870 am_depcomp="$ac_aux_dir/depcomp"
2871 AMDEPBACKSLASH='\'
2872fi
2873
2874
2875if test "x$enable_dependency_tracking" != xno; then
2876 AMDEP_TRUE=
2877 AMDEP_FALSE='#'
2878else
2879 AMDEP_TRUE='#'
2880 AMDEP_FALSE=
2881fi
2882
2883
2884
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002885
2886depcc="$CC" am_compiler_list=
2887
2888echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2889echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2890if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892else
2893 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2894 # We make a subdir and do the tests there. Otherwise we can end up
2895 # making bogus files that we don't know about and never remove. For
2896 # instance it was reported that on HP-UX the gcc test will end up
2897 # making a dummy file named `D' -- because `-MD' means `put the output
2898 # in D'.
2899 mkdir conftest.dir
2900 # Copy depcomp to subdir because otherwise we won't find it if we're
2901 # using a relative directory.
2902 cp "$am_depcomp" conftest.dir
2903 cd conftest.dir
2904
2905 am_cv_CC_dependencies_compiler_type=none
2906 if test "$am_compiler_list" = ""; then
2907 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2908 fi
2909 for depmode in $am_compiler_list; do
2910 # We need to recreate these files for each test, as the compiler may
2911 # overwrite some of them when testing with obscure command lines.
2912 # This happens at least with the AIX C compiler.
2913 echo '#include "conftest.h"' > conftest.c
2914 echo 'int i;' > conftest.h
2915 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2916
2917 case $depmode in
2918 nosideeffect)
2919 # after this tag, mechanisms are not by side-effect, so they'll
2920 # only be used when explicitly requested
2921 if test "x$enable_dependency_tracking" = xyes; then
2922 continue
2923 else
2924 break
2925 fi
2926 ;;
2927 none) break ;;
2928 esac
2929 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2930 # mode. It turns out that the SunPro C++ compiler does not properly
2931 # handle `-M -o', and we need to detect this.
2932 if depmode=$depmode \
2933 source=conftest.c object=conftest.o \
2934 depfile=conftest.Po tmpdepfile=conftest.TPo \
2935 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2936 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2937 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2938 am_cv_CC_dependencies_compiler_type=$depmode
2939 break
2940 fi
2941 done
2942
2943 cd ..
2944 rm -rf conftest.dir
2945else
2946 am_cv_CC_dependencies_compiler_type=none
2947fi
2948
2949fi
2950echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2951echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002952CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002953
2954
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00002955ac_ext=cc
2956ac_cpp='$CXXCPP $CPPFLAGS'
2957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2960if test -n "$ac_tool_prefix"; then
2961 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2962 do
2963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2964set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2965echo "$as_me:$LINENO: checking for $ac_word" >&5
2966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967if test "${ac_cv_prog_CXX+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969else
2970 if test -n "$CXX"; then
2971 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984done
2985done
2986
2987fi
2988fi
2989CXX=$ac_cv_prog_CXX
2990if test -n "$CXX"; then
2991 echo "$as_me:$LINENO: result: $CXX" >&5
2992echo "${ECHO_T}$CXX" >&6
2993else
2994 echo "$as_me:$LINENO: result: no" >&5
2995echo "${ECHO_T}no" >&6
2996fi
2997
2998 test -n "$CXX" && break
2999 done
3000fi
3001if test -z "$CXX"; then
3002 ac_ct_CXX=$CXX
3003 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3004do
3005 # Extract the first word of "$ac_prog", so it can be a program name with args.
3006set dummy $ac_prog; ac_word=$2
3007echo "$as_me:$LINENO: checking for $ac_word" >&5
3008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3009if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011else
3012 if test -n "$ac_ct_CXX"; then
3013 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3014else
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_ac_ct_CXX="$ac_prog"
3023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026done
3027done
3028
3029fi
3030fi
3031ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3032if test -n "$ac_ct_CXX"; then
3033 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3034echo "${ECHO_T}$ac_ct_CXX" >&6
3035else
3036 echo "$as_me:$LINENO: result: no" >&5
3037echo "${ECHO_T}no" >&6
3038fi
3039
3040 test -n "$ac_ct_CXX" && break
3041done
3042test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3043
3044 CXX=$ac_ct_CXX
3045fi
3046
3047
3048# Provide some information about the compiler.
3049echo "$as_me:$LINENO:" \
3050 "checking for C++ compiler version" >&5
3051ac_compiler=`set X $ac_compile; echo $2`
3052{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3053 (eval $ac_compiler --version </dev/null >&5) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }
3057{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3058 (eval $ac_compiler -v </dev/null >&5) 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }
3062{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3063 (eval $ac_compiler -V </dev/null >&5) 2>&5
3064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }
3067
3068echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3069echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3070if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073 cat >conftest.$ac_ext <<_ACEOF
3074#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003080
3081int
3082main ()
3083{
3084#ifndef __GNUC__
3085 choke me
3086#endif
3087
3088 ;
3089 return 0;
3090}
3091_ACEOF
3092rm -f conftest.$ac_objext
3093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_compiler_gnu=yes
3105else
3106 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003107sed 's/^/| /' conftest.$ac_ext >&5
3108
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003109ac_compiler_gnu=no
3110fi
3111rm -f conftest.$ac_objext conftest.$ac_ext
3112ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3113
3114fi
3115echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3116echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3117GXX=`test $ac_compiler_gnu = yes && echo yes`
3118ac_test_CXXFLAGS=${CXXFLAGS+set}
3119ac_save_CXXFLAGS=$CXXFLAGS
3120CXXFLAGS="-g"
3121echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3122echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3123if test "${ac_cv_prog_cxx_g+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125else
3126 cat >conftest.$ac_ext <<_ACEOF
3127#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003128/* confdefs.h. */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003133
3134int
3135main ()
3136{
3137
3138 ;
3139 return 0;
3140}
3141_ACEOF
3142rm -f conftest.$ac_objext
3143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3144 (eval $ac_compile) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3154 ac_cv_prog_cxx_g=yes
3155else
3156 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003157sed 's/^/| /' conftest.$ac_ext >&5
3158
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003159ac_cv_prog_cxx_g=no
3160fi
3161rm -f conftest.$ac_objext conftest.$ac_ext
3162fi
3163echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3164echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3165if test "$ac_test_CXXFLAGS" = set; then
3166 CXXFLAGS=$ac_save_CXXFLAGS
3167elif test $ac_cv_prog_cxx_g = yes; then
3168 if test "$GXX" = yes; then
3169 CXXFLAGS="-g -O2"
3170 else
3171 CXXFLAGS="-g"
3172 fi
3173else
3174 if test "$GXX" = yes; then
3175 CXXFLAGS="-O2"
3176 else
3177 CXXFLAGS=
3178 fi
3179fi
3180for ac_declaration in \
3181 ''\
3182 '#include <stdlib.h>' \
3183 'extern "C" void std::exit (int) throw (); using std::exit;' \
3184 'extern "C" void std::exit (int); using std::exit;' \
3185 'extern "C" void exit (int) throw ();' \
3186 'extern "C" void exit (int);' \
3187 'void exit (int);'
3188do
3189 cat >conftest.$ac_ext <<_ACEOF
3190#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003191/* confdefs.h. */
3192_ACEOF
3193cat confdefs.h >>conftest.$ac_ext
3194cat >>conftest.$ac_ext <<_ACEOF
3195/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003196#include <stdlib.h>
3197$ac_declaration
3198int
3199main ()
3200{
3201exit (42);
3202 ;
3203 return 0;
3204}
3205_ACEOF
3206rm -f conftest.$ac_objext
3207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208 (eval $ac_compile) 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } &&
3212 { ac_try='test -s conftest.$ac_objext'
3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 (eval $ac_try) 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; }; then
3218 :
3219else
3220 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003221sed 's/^/| /' conftest.$ac_ext >&5
3222
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003223continue
3224fi
3225rm -f conftest.$ac_objext conftest.$ac_ext
3226 cat >conftest.$ac_ext <<_ACEOF
3227#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003228/* confdefs.h. */
3229_ACEOF
3230cat confdefs.h >>conftest.$ac_ext
3231cat >>conftest.$ac_ext <<_ACEOF
3232/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003233$ac_declaration
3234int
3235main ()
3236{
3237exit (42);
3238 ;
3239 return 0;
3240}
3241_ACEOF
3242rm -f conftest.$ac_objext
3243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3244 (eval $ac_compile) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 (eval $ac_try) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 break
3255else
3256 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003257sed 's/^/| /' conftest.$ac_ext >&5
3258
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003259fi
3260rm -f conftest.$ac_objext conftest.$ac_ext
3261done
3262rm -f conftest*
3263if test -n "$ac_declaration"; then
3264 echo '#ifdef __cplusplus' >>confdefs.h
3265 echo $ac_declaration >>confdefs.h
3266 echo '#endif' >>confdefs.h
3267fi
3268
3269ac_ext=c
3270ac_cpp='$CPP $CPPFLAGS'
3271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274
3275depcc="$CXX" am_compiler_list=
3276
3277echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3278echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3279if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281else
3282 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3283 # We make a subdir and do the tests there. Otherwise we can end up
3284 # making bogus files that we don't know about and never remove. For
3285 # instance it was reported that on HP-UX the gcc test will end up
3286 # making a dummy file named `D' -- because `-MD' means `put the output
3287 # in D'.
3288 mkdir conftest.dir
3289 # Copy depcomp to subdir because otherwise we won't find it if we're
3290 # using a relative directory.
3291 cp "$am_depcomp" conftest.dir
3292 cd conftest.dir
3293
3294 am_cv_CXX_dependencies_compiler_type=none
3295 if test "$am_compiler_list" = ""; then
3296 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3297 fi
3298 for depmode in $am_compiler_list; do
3299 # We need to recreate these files for each test, as the compiler may
3300 # overwrite some of them when testing with obscure command lines.
3301 # This happens at least with the AIX C compiler.
3302 echo '#include "conftest.h"' > conftest.c
3303 echo 'int i;' > conftest.h
3304 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3305
3306 case $depmode in
3307 nosideeffect)
3308 # after this tag, mechanisms are not by side-effect, so they'll
3309 # only be used when explicitly requested
3310 if test "x$enable_dependency_tracking" = xyes; then
3311 continue
3312 else
3313 break
3314 fi
3315 ;;
3316 none) break ;;
3317 esac
3318 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3319 # mode. It turns out that the SunPro C++ compiler does not properly
3320 # handle `-M -o', and we need to detect this.
3321 if depmode=$depmode \
3322 source=conftest.c object=conftest.o \
3323 depfile=conftest.Po tmpdepfile=conftest.TPo \
3324 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3325 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3326 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3327 am_cv_CXX_dependencies_compiler_type=$depmode
3328 break
3329 fi
3330 done
3331
3332 cd ..
3333 rm -rf conftest.dir
3334else
3335 am_cv_CXX_dependencies_compiler_type=none
3336fi
3337
3338fi
3339echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3340echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3341CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3342
3343
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003344# Find a good install program. We prefer a C program (faster),
3345# so one script is as good as another. But avoid the broken or
3346# incompatible versions:
3347# SysV /etc/install, /usr/sbin/install
3348# SunOS /usr/etc/install
3349# IRIX /sbin/install
3350# AIX /bin/install
3351# AmigaOS /C/install, which installs bootblocks on floppy discs
3352# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3353# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3354# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3355# ./install, which can be erroneously created by make from ./install.sh.
3356echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3357echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3358if test -z "$INSTALL"; then
3359if test "${ac_cv_path_install+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 # Account for people who put trailing slashes in PATH elements.
3368case $as_dir/ in
3369 ./ | .// | /cC/* | \
3370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3371 /usr/ucb/* ) ;;
3372 *)
3373 # OSF1 and SCO ODT 3.0 have their own names for install.
3374 # Don't use installbsd from OSF since it installs stuff as root
3375 # by default.
3376 for ac_prog in ginstall scoinst install; do
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3379 if test $ac_prog = install &&
3380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3381 # AIX install. It has an incompatible calling convention.
3382 :
3383 elif test $ac_prog = install &&
3384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3385 # program-specific install script used by HP pwplus--don't use.
3386 :
3387 else
3388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3389 break 3
3390 fi
3391 fi
3392 done
3393 done
3394 ;;
3395esac
3396done
3397
3398
3399fi
3400 if test "${ac_cv_path_install+set}" = set; then
3401 INSTALL=$ac_cv_path_install
3402 else
3403 # As a last resort, use the slow shell script. We don't cache a
3404 # path for INSTALL within a source directory, because that will
3405 # break other packages using the cache if that directory is
3406 # removed, or if the path is relative.
3407 INSTALL=$ac_install_sh
3408 fi
3409fi
3410echo "$as_me:$LINENO: result: $INSTALL" >&5
3411echo "${ECHO_T}$INSTALL" >&6
3412
3413# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3414# It thinks the first close brace ends the variable substitution.
3415test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3416
3417test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3418
3419test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3420
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003421echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3422echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003423set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3424if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427 cat >conftest.make <<\_ACEOF
3428all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003429 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003430_ACEOF
3431# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3432eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3433if test -n "$ac_maketemp"; then
3434 eval ac_cv_prog_make_${ac_make}_set=yes
3435else
3436 eval ac_cv_prog_make_${ac_make}_set=no
3437fi
3438rm -f conftest.make
3439fi
3440if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3441 echo "$as_me:$LINENO: result: yes" >&5
3442echo "${ECHO_T}yes" >&6
3443 SET_MAKE=
3444else
3445 echo "$as_me:$LINENO: result: no" >&5
3446echo "${ECHO_T}no" >&6
3447 SET_MAKE="MAKE=${MAKE-make}"
3448fi
3449
3450# Check whether --enable-shared or --disable-shared was given.
3451if test "${enable_shared+set}" = set; then
3452 enableval="$enable_shared"
3453 p=${PACKAGE-default}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003454case $enableval in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003455yes) enable_shared=yes ;;
3456no) enable_shared=no ;;
3457*)
3458 enable_shared=no
3459 # Look at the argument we got. We use all the common list separators.
3460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3461 for pkg in $enableval; do
3462 if test "X$pkg" = "X$p"; then
3463 enable_shared=yes
3464 fi
3465 done
3466 IFS="$ac_save_ifs"
3467 ;;
3468esac
3469else
3470 enable_shared=yes
3471fi;
3472# Check whether --enable-static or --disable-static was given.
3473if test "${enable_static+set}" = set; then
3474 enableval="$enable_static"
3475 p=${PACKAGE-default}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003476case $enableval in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003477yes) enable_static=yes ;;
3478no) enable_static=no ;;
3479*)
3480 enable_static=no
3481 # Look at the argument we got. We use all the common list separators.
3482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3483 for pkg in $enableval; do
3484 if test "X$pkg" = "X$p"; then
3485 enable_static=yes
3486 fi
3487 done
3488 IFS="$ac_save_ifs"
3489 ;;
3490esac
3491else
3492 enable_static=yes
3493fi;
3494# Check whether --enable-fast-install or --disable-fast-install was given.
3495if test "${enable_fast_install+set}" = set; then
3496 enableval="$enable_fast_install"
3497 p=${PACKAGE-default}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003498case $enableval in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003499yes) enable_fast_install=yes ;;
3500no) enable_fast_install=no ;;
3501*)
3502 enable_fast_install=no
3503 # Look at the argument we got. We use all the common list separators.
3504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3505 for pkg in $enableval; do
3506 if test "X$pkg" = "X$p"; then
3507 enable_fast_install=yes
3508 fi
3509 done
3510 IFS="$ac_save_ifs"
3511 ;;
3512esac
3513else
3514 enable_fast_install=yes
3515fi;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003516# Find the correct PATH separator. Usually this is `:', but
3517# DJGPP uses `;' like DOS.
3518if test "X${PATH_SEPARATOR+set}" != Xset; then
3519 UNAME=${UNAME-`uname 2>/dev/null`}
3520 case X$UNAME in
3521 *-DOS) lt_cv_sys_path_separator=';' ;;
3522 *) lt_cv_sys_path_separator=':' ;;
3523 esac
3524 PATH_SEPARATOR=$lt_cv_sys_path_separator
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003525fi
3526
3527
3528# Check whether --with-gnu-ld or --without-gnu-ld was given.
3529if test "${with_gnu_ld+set}" = set; then
3530 withval="$with_gnu_ld"
3531 test "$withval" = no || with_gnu_ld=yes
3532else
3533 with_gnu_ld=no
3534fi;
3535ac_prog=ld
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003536if test "$GCC" = yes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003537 # Check if gcc -print-prog-name=ld gives a path.
3538 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3539echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003540 case $host in
3541 *-*-mingw*)
3542 # gcc leaves a trailing carriage return which upsets mingw
3543 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3544 *)
3545 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3546 esac
3547 case $ac_prog in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003548 # Accept absolute paths.
3549 [\\/]* | [A-Za-z]:[\\/]*)
3550 re_direlt='/[^/][^/]*/\.\./'
3551 # Canonicalize the path of ld
3552 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3553 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3554 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3555 done
3556 test -z "$LD" && LD="$ac_prog"
3557 ;;
3558 "")
3559 # If it fails, then pretend we aren't using GCC.
3560 ac_prog=ld
3561 ;;
3562 *)
3563 # If it is relative, then search for the first ld in PATH.
3564 with_gnu_ld=unknown
3565 ;;
3566 esac
3567elif test "$with_gnu_ld" = yes; then
3568 echo "$as_me:$LINENO: checking for GNU ld" >&5
3569echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3570else
3571 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3572echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3573fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003574if test "${lt_cv_path_LD+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577 if test -z "$LD"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003579 for ac_dir in $PATH; do
3580 test -z "$ac_dir" && ac_dir=.
3581 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003582 lt_cv_path_LD="$ac_dir/$ac_prog"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003583 # Check to see if the program is GNU ld. I'd rather use --version,
3584 # but apparently some GNU ld's only accept -v.
3585 # Break only if it was the GNU/non-GNU ld that we prefer.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003586 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 +00003587 test "$with_gnu_ld" != no && break
3588 else
3589 test "$with_gnu_ld" != yes && break
3590 fi
3591 fi
3592 done
3593 IFS="$ac_save_ifs"
3594else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003595 lt_cv_path_LD="$LD" # Let the user override the test with a path.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003596fi
3597fi
3598
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003599LD="$lt_cv_path_LD"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003600if test -n "$LD"; then
3601 echo "$as_me:$LINENO: result: $LD" >&5
3602echo "${ECHO_T}$LD" >&6
3603else
3604 echo "$as_me:$LINENO: result: no" >&5
3605echo "${ECHO_T}no" >&6
3606fi
3607test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3608echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3609 { (exit 1); exit 1; }; }
3610echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3611echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003612if test "${lt_cv_prog_gnu_ld+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614else
3615 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3616if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003617 lt_cv_prog_gnu_ld=yes
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003618else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003619 lt_cv_prog_gnu_ld=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003620fi
3621fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003622echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3623echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3624with_gnu_ld=$lt_cv_prog_gnu_ld
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003625
3626
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003627echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3628echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3629if test "${lt_cv_ld_reload_flag+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3631else
3632 lt_cv_ld_reload_flag='-r'
3633fi
3634echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3635echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3636reload_flag=$lt_cv_ld_reload_flag
3637test -n "$reload_flag" && reload_flag=" $reload_flag"
3638
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003639echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3640echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003641if test "${lt_cv_path_NM+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643else
3644 if test -n "$NM"; then
3645 # Let the user override the test.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003646 lt_cv_path_NM="$NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003647else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003649 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3650 test -z "$ac_dir" && ac_dir=.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003651 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3652 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003653 # Check to see if the nm accepts a BSD-compat flag.
3654 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3655 # nm: unknown option "B" ignored
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003656 # Tru64's nm complains that /dev/null is an invalid object file
3657 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3658 lt_cv_path_NM="$tmp_nm -B"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003659 break
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003660 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3661 lt_cv_path_NM="$tmp_nm -p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003662 break
3663 else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003664 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003665 continue # so that we can try to find one that supports BSD flags
3666 fi
3667 fi
3668 done
3669 IFS="$ac_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003670 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003671fi
3672fi
3673
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003674NM="$lt_cv_path_NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003675echo "$as_me:$LINENO: result: $NM" >&5
3676echo "${ECHO_T}$NM" >&6
3677
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003678echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3679echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3680if test "${lt_cv_path_SED+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682else
3683 # Loop through the user's path and test for sed and gsed.
3684# Then use that list of sed's as ones to test for truncation.
3685as_executable_p="test -f"
3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687for as_dir in $PATH
3688do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_prog in sed gsed; do
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3694 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3695 fi
3696 done
3697 done
3698done
3699
3700 # Create a temporary directory, and hook for its removal unless debugging.
3701$debug ||
3702{
3703 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3704 trap '{ (exit 1); exit 1; }' 1 2 13 15
3705}
3706
3707# Create a (secure) tmp directory for tmp files.
3708: ${TMPDIR=/tmp}
3709{
3710 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3711 test -n "$tmp" && test -d "$tmp"
3712} ||
3713{
3714 tmp=$TMPDIR/sed$$-$RANDOM
3715 (umask 077 && mkdir $tmp)
3716} ||
3717{
3718 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3719 { (exit 1); exit 1; }
3720}
3721 _max=0
3722 _count=0
3723 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3724 # along with /bin/sed that truncates output.
3725 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3726 test ! -f ${_sed} && break
3727 cat /dev/null > "$tmp/sed.in"
3728 _count=0
3729 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3730 # Check for GNU sed and select it if it is found.
3731 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3732 lt_cv_path_SED=${_sed}
3733 break
3734 fi
3735 while true; do
3736 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3737 mv "$tmp/sed.tmp" "$tmp/sed.in"
3738 cp "$tmp/sed.in" "$tmp/sed.nl"
3739 echo >>"$tmp/sed.nl"
3740 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3741 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3742 # 40000 chars as input seems more than enough
3743 test $_count -gt 10 && break
3744 _count=`expr $_count + 1`
3745 if test $_count -gt $_max; then
3746 _max=$_count
3747 lt_cv_path_SED=$_sed
3748 fi
3749 done
3750 done
3751 rm -rf "$tmp"
3752
3753fi
3754
3755if test "X$SED" != "X"; then
3756 lt_cv_path_SED=$SED
3757else
3758 SED=$lt_cv_path_SED
3759fi
3760echo "$as_me:$LINENO: result: $SED" >&5
3761echo "${ECHO_T}$SED" >&6
3762
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003763echo "$as_me:$LINENO: checking whether ln -s works" >&5
3764echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3765LN_S=$as_ln_s
3766if test "$LN_S" = "ln -s"; then
3767 echo "$as_me:$LINENO: result: yes" >&5
3768echo "${ECHO_T}yes" >&6
3769else
3770 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3771echo "${ECHO_T}no, using $LN_S" >&6
3772fi
3773
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003774echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3775echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3776if test "${lt_cv_deplibs_check_method+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 lt_cv_file_magic_cmd='$MAGIC_CMD'
3780lt_cv_file_magic_test_file=
3781lt_cv_deplibs_check_method='unknown'
3782# Need to set the preceding variable on all platforms that support
3783# interlibrary dependencies.
3784# 'none' -- dependencies not supported.
3785# `unknown' -- same as none, but documents that we really don't know.
3786# 'pass_all' -- all dependencies passed with no checks.
3787# 'test_compile' -- check by making test program.
3788# 'file_magic [[regex]]' -- check by looking for files in library path
3789# which responds to the $file_magic_cmd with a given egrep regex.
3790# If you have `file' or equivalent on your system and you're not sure
3791# whether `pass_all' will *always* work, you probably want this one.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003792
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003793case $host_os in
3794aix4* | aix5*)
3795 lt_cv_deplibs_check_method=pass_all
3796 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003797
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003798beos*)
3799 lt_cv_deplibs_check_method=pass_all
3800 ;;
3801
3802bsdi4*)
3803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3804 lt_cv_file_magic_cmd='/usr/bin/file -L'
3805 lt_cv_file_magic_test_file=/shlib/libc.so
3806 ;;
3807
3808cygwin* | mingw* | pw32*)
3809 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3810 lt_cv_file_magic_cmd='$OBJDUMP -f'
3811 ;;
3812
3813darwin* | rhapsody*)
3814 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3815 lt_cv_file_magic_cmd='/usr/bin/file -L'
3816 case "$host_os" in
3817 rhapsody* | darwin1.[012])
3818 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3819 ;;
3820 *) # Darwin 1.3 on
3821 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3822 ;;
3823 esac
3824 ;;
3825
3826freebsd*)
3827 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3828 case $host_cpu in
3829 i*86 )
3830 # Not sure whether the presence of OpenBSD here was a mistake.
3831 # Let's accept both of them until this is cleared up.
3832 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3833 lt_cv_file_magic_cmd=/usr/bin/file
3834 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3835 ;;
3836 esac
3837 else
3838 lt_cv_deplibs_check_method=pass_all
3839 fi
3840 ;;
3841
3842gnu*)
3843 lt_cv_deplibs_check_method=pass_all
3844 ;;
3845
3846hpux10.20*|hpux11*)
3847 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3848 lt_cv_file_magic_cmd=/usr/bin/file
3849 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3850 ;;
3851
3852irix5* | irix6* | nonstopux*)
3853 case $host_os in
3854 irix5* | nonstopux*)
3855 # this will be overridden with pass_all, but let us keep it just in case
3856 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3857 ;;
3858 *)
3859 case $LD in
3860 *-32|*"-32 ") libmagic=32-bit;;
3861 *-n32|*"-n32 ") libmagic=N32;;
3862 *-64|*"-64 ") libmagic=64-bit;;
3863 *) libmagic=never-match;;
3864 esac
3865 # this will be overridden with pass_all, but let us keep it just in case
3866 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3867 ;;
3868 esac
3869 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3870 lt_cv_deplibs_check_method=pass_all
3871 ;;
3872
3873# This must be Linux ELF.
3874linux-gnu*)
3875 case $host_cpu in
3876 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3877 lt_cv_deplibs_check_method=pass_all ;;
3878 *)
3879 # glibc up to 2.1.1 does not perform some relocations on ARM
3880 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3881 esac
3882 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3883 ;;
3884
3885netbsd*)
3886 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3887 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3888 else
3889 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3890 fi
3891 ;;
3892
3893newos6*)
3894 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3895 lt_cv_file_magic_cmd=/usr/bin/file
3896 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3897 ;;
3898
3899openbsd*)
3900 lt_cv_file_magic_cmd=/usr/bin/file
3901 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3902 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3904 else
3905 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3906 fi
3907 ;;
3908
3909osf3* | osf4* | osf5*)
3910 # this will be overridden with pass_all, but let us keep it just in case
3911 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3912 lt_cv_file_magic_test_file=/shlib/libc.so
3913 lt_cv_deplibs_check_method=pass_all
3914 ;;
3915
3916sco3.2v5*)
3917 lt_cv_deplibs_check_method=pass_all
3918 ;;
3919
3920solaris*)
3921 lt_cv_deplibs_check_method=pass_all
3922 lt_cv_file_magic_test_file=/lib/libc.so
3923 ;;
3924
3925sysv5uw[78]* | sysv4*uw2*)
3926 lt_cv_deplibs_check_method=pass_all
3927 ;;
3928
3929sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3930 case $host_vendor in
3931 motorola)
3932 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]'
3933 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3934 ;;
3935 ncr)
3936 lt_cv_deplibs_check_method=pass_all
3937 ;;
3938 sequent)
3939 lt_cv_file_magic_cmd='/bin/file'
3940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3941 ;;
3942 sni)
3943 lt_cv_file_magic_cmd='/bin/file'
3944 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3945 lt_cv_file_magic_test_file=/lib/libc.so
3946 ;;
3947 siemens)
3948 lt_cv_deplibs_check_method=pass_all
3949 ;;
3950 esac
3951 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003952esac
3953
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003954fi
3955echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3956echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3957file_magic_cmd=$lt_cv_file_magic_cmd
3958deplibs_check_method=$lt_cv_deplibs_check_method
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003959
3960
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003961
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003962
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003963
3964
3965
3966
3967# Check for command to grab the raw symbol name followed by C symbol from nm.
3968echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3969echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3970if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972else
3973
3974# These are sane defaults that work on at least a few old systems.
3975# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3976
3977# Character class describing NM global symbol codes.
3978symcode='[BCDEGRST]'
3979
3980# Regexp to match symbols that can be accessed directly from C.
3981sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3982
3983# Transform the above into a raw symbol and a C symbol.
3984symxfrm='\1 \2\3 \3'
3985
3986# Transform an extracted symbol line into a proper C declaration
3987lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3988
3989# Transform an extracted symbol line into symbol name and symbol address
3990lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3991
3992# Define system-specific variables.
3993case $host_os in
3994aix*)
3995 symcode='[BCDT]'
3996 ;;
3997cygwin* | mingw* | pw32*)
3998 symcode='[ABCDGISTW]'
3999 ;;
4000hpux*) # Its linker distinguishes data from code symbols
4001 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4002 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'"
4003 ;;
4004irix* | nonstopux*)
4005 symcode='[BCDEGRST]'
4006 ;;
4007osf*)
4008 symcode='[BCDEGQRST]'
4009 ;;
4010solaris* | sysv5*)
4011 symcode='[BDT]'
4012 ;;
4013sysv4)
4014 symcode='[DFNSTU]'
4015 ;;
4016esac
4017
4018# Handle CRLF in mingw tool chain
4019opt_cr=
4020case $host_os in
4021mingw*)
4022 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4023 ;;
4024esac
4025
4026# If we're using GNU nm, then use its standard symbol codes.
4027if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4028 symcode='[ABCDGISTW]'
4029fi
4030
4031# Try without a prefix undercore, then with it.
4032for ac_symprfx in "" "_"; do
4033
4034 # Write the raw and C identifiers.
4035lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4036
4037 # Check to see that the pipe works correctly.
4038 pipe_works=no
4039 rm -f conftest*
4040 cat > conftest.$ac_ext <<EOF
4041#ifdef __cplusplus
4042extern "C" {
4043#endif
4044char nm_test_var;
4045void nm_test_func(){}
4046#ifdef __cplusplus
4047}
4048#endif
4049int main(){nm_test_var='a';nm_test_func();return(0);}
4050EOF
4051
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053 (eval $ac_compile) 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004057 # Now try to grab the symbols.
4058 nlist=conftest.nm
4059 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4060 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } && test -s "$nlist"; then
4064 # Try sorting and uniquifying the output.
4065 if sort "$nlist" | uniq > "$nlist"T; then
4066 mv -f "$nlist"T "$nlist"
4067 else
4068 rm -f "$nlist"T
4069 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004070
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004071 # Make sure that we snagged all the symbols we need.
4072 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4073 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4074 cat <<EOF > conftest.$ac_ext
4075#ifdef __cplusplus
4076extern "C" {
4077#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004078
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004079EOF
4080 # Now generate the symbol file.
4081 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004082
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004083 cat <<EOF >> conftest.$ac_ext
4084#if defined (__STDC__) && __STDC__
4085# define lt_ptr void *
4086#else
4087# define lt_ptr char *
4088# define const
4089#endif
4090
4091/* The mapping between symbol names and symbols. */
4092const struct {
4093 const char *name;
4094 lt_ptr address;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004095}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004096lt_preloaded_symbols[] =
4097{
4098EOF
4099 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4100 cat <<\EOF >> conftest.$ac_ext
4101 {0, (lt_ptr) 0}
4102};
4103
4104#ifdef __cplusplus
4105}
4106#endif
4107EOF
4108 # Now try linking the two files.
4109 mv conftest.$ac_objext conftstm.$ac_objext
4110 save_LIBS="$LIBS"
4111 save_CFLAGS="$CFLAGS"
4112 LIBS="conftstm.$ac_objext"
4113 CFLAGS="$CFLAGS$no_builtin_flag"
4114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004115 (eval $ac_link) 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004118 (exit $ac_status); } && test -s conftest$ac_exeext; then
4119 pipe_works=yes
4120 fi
4121 LIBS="$save_LIBS"
4122 CFLAGS="$save_CFLAGS"
4123 else
4124 echo "cannot find nm_test_func in $nlist" >&5
4125 fi
4126 else
4127 echo "cannot find nm_test_var in $nlist" >&5
4128 fi
4129 else
4130 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4131 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004132 else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004133 echo "$progname: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004135 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004136 rm -f conftest* conftst*
4137
4138 # Do not use the global_symbol_pipe unless it works.
4139 if test "$pipe_works" = yes; then
4140 break
4141 else
4142 lt_cv_sys_global_symbol_pipe=
4143 fi
4144done
4145
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004146fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004147
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004148global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4149if test -z "$lt_cv_sys_global_symbol_pipe"; then
4150 global_symbol_to_cdecl=
4151 global_symbol_to_c_name_address=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004152else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004153 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4154 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004155fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004156if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4157then
4158 echo "$as_me:$LINENO: result: failed" >&5
4159echo "${ECHO_T}failed" >&6
4160else
4161 echo "$as_me:$LINENO: result: ok" >&5
4162echo "${ECHO_T}ok" >&6
4163fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004164
4165ac_ext=c
4166ac_cpp='$CPP $CPPFLAGS'
4167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4171echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4172# On Suns, sometimes $CPP names a directory.
4173if test -n "$CPP" && test -d "$CPP"; then
4174 CPP=
4175fi
4176if test -z "$CPP"; then
4177 if test "${ac_cv_prog_CPP+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179else
4180 # Double quotes because CPP needs to be expanded
4181 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4182 do
4183 ac_preproc_ok=false
4184for ac_c_preproc_warn_flag in '' yes
4185do
4186 # Use a header file that comes with gcc, so configuring glibc
4187 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004190 # On the NeXT, cc -E runs the code through the compiler's parser,
4191 # not just through cpp. "Syntax error" is here to catch this case.
4192 cat >conftest.$ac_ext <<_ACEOF
4193#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004194/* confdefs.h. */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
4198/* end confdefs.h. */
4199#ifdef __STDC__
4200# include <limits.h>
4201#else
4202# include <assert.h>
4203#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004204 Syntax error
4205_ACEOF
4206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4208 ac_status=$?
4209 grep -v '^ *+' conftest.er1 >conftest.err
4210 rm -f conftest.er1
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } >/dev/null; then
4214 if test -s conftest.err; then
4215 ac_cpp_err=$ac_c_preproc_warn_flag
4216 else
4217 ac_cpp_err=
4218 fi
4219else
4220 ac_cpp_err=yes
4221fi
4222if test -z "$ac_cpp_err"; then
4223 :
4224else
4225 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004226sed 's/^/| /' conftest.$ac_ext >&5
4227
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004228 # Broken: fails on valid input.
4229continue
4230fi
4231rm -f conftest.err conftest.$ac_ext
4232
4233 # OK, works on sane cases. Now check whether non-existent headers
4234 # can be detected and how.
4235 cat >conftest.$ac_ext <<_ACEOF
4236#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004237/* confdefs.h. */
4238_ACEOF
4239cat confdefs.h >>conftest.$ac_ext
4240cat >>conftest.$ac_ext <<_ACEOF
4241/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004242#include <ac_nonexistent.h>
4243_ACEOF
4244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } >/dev/null; then
4252 if test -s conftest.err; then
4253 ac_cpp_err=$ac_c_preproc_warn_flag
4254 else
4255 ac_cpp_err=
4256 fi
4257else
4258 ac_cpp_err=yes
4259fi
4260if test -z "$ac_cpp_err"; then
4261 # Broken: success on invalid input.
4262continue
4263else
4264 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004265sed 's/^/| /' conftest.$ac_ext >&5
4266
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004267 # Passes both tests.
4268ac_preproc_ok=:
4269break
4270fi
4271rm -f conftest.err conftest.$ac_ext
4272
4273done
4274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4275rm -f conftest.err conftest.$ac_ext
4276if $ac_preproc_ok; then
4277 break
4278fi
4279
4280 done
4281 ac_cv_prog_CPP=$CPP
4282
4283fi
4284 CPP=$ac_cv_prog_CPP
4285else
4286 ac_cv_prog_CPP=$CPP
4287fi
4288echo "$as_me:$LINENO: result: $CPP" >&5
4289echo "${ECHO_T}$CPP" >&6
4290ac_preproc_ok=false
4291for ac_c_preproc_warn_flag in '' yes
4292do
4293 # Use a header file that comes with gcc, so configuring glibc
4294 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4296 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004297 # On the NeXT, cc -E runs the code through the compiler's parser,
4298 # not just through cpp. "Syntax error" is here to catch this case.
4299 cat >conftest.$ac_ext <<_ACEOF
4300#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004301/* confdefs.h. */
4302_ACEOF
4303cat confdefs.h >>conftest.$ac_ext
4304cat >>conftest.$ac_ext <<_ACEOF
4305/* end confdefs.h. */
4306#ifdef __STDC__
4307# include <limits.h>
4308#else
4309# include <assert.h>
4310#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004311 Syntax error
4312_ACEOF
4313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4315 ac_status=$?
4316 grep -v '^ *+' conftest.er1 >conftest.err
4317 rm -f conftest.er1
4318 cat conftest.err >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } >/dev/null; then
4321 if test -s conftest.err; then
4322 ac_cpp_err=$ac_c_preproc_warn_flag
4323 else
4324 ac_cpp_err=
4325 fi
4326else
4327 ac_cpp_err=yes
4328fi
4329if test -z "$ac_cpp_err"; then
4330 :
4331else
4332 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004333sed 's/^/| /' conftest.$ac_ext >&5
4334
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004335 # Broken: fails on valid input.
4336continue
4337fi
4338rm -f conftest.err conftest.$ac_ext
4339
4340 # OK, works on sane cases. Now check whether non-existent headers
4341 # can be detected and how.
4342 cat >conftest.$ac_ext <<_ACEOF
4343#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004344/* confdefs.h. */
4345_ACEOF
4346cat confdefs.h >>conftest.$ac_ext
4347cat >>conftest.$ac_ext <<_ACEOF
4348/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004349#include <ac_nonexistent.h>
4350_ACEOF
4351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } >/dev/null; then
4359 if test -s conftest.err; then
4360 ac_cpp_err=$ac_c_preproc_warn_flag
4361 else
4362 ac_cpp_err=
4363 fi
4364else
4365 ac_cpp_err=yes
4366fi
4367if test -z "$ac_cpp_err"; then
4368 # Broken: success on invalid input.
4369continue
4370else
4371 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004372sed 's/^/| /' conftest.$ac_ext >&5
4373
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004374 # Passes both tests.
4375ac_preproc_ok=:
4376break
4377fi
4378rm -f conftest.err conftest.$ac_ext
4379
4380done
4381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4382rm -f conftest.err conftest.$ac_ext
4383if $ac_preproc_ok; then
4384 :
4385else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004386 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4387See \`config.log' for more details." >&5
4388echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4389See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004390 { (exit 1); exit 1; }; }
4391fi
4392
4393ac_ext=c
4394ac_cpp='$CPP $CPPFLAGS'
4395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398
4399
4400echo "$as_me:$LINENO: checking for egrep" >&5
4401echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4402if test "${ac_cv_prog_egrep+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404else
4405 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4406 then ac_cv_prog_egrep='grep -E'
4407 else ac_cv_prog_egrep='egrep'
4408 fi
4409fi
4410echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4411echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4412 EGREP=$ac_cv_prog_egrep
4413
4414
4415echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4416echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4417if test "${ac_cv_header_stdc+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419else
4420 cat >conftest.$ac_ext <<_ACEOF
4421#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004422/* confdefs.h. */
4423_ACEOF
4424cat confdefs.h >>conftest.$ac_ext
4425cat >>conftest.$ac_ext <<_ACEOF
4426/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004427#include <stdlib.h>
4428#include <stdarg.h>
4429#include <string.h>
4430#include <float.h>
4431
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004432int
4433main ()
4434{
4435
4436 ;
4437 return 0;
4438}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004439_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004440rm -f conftest.$ac_objext
4441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4442 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004443 ac_status=$?
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004445 (exit $ac_status); } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004452 ac_cv_header_stdc=yes
4453else
4454 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004455sed 's/^/| /' conftest.$ac_ext >&5
4456
4457ac_cv_header_stdc=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004458fi
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004459rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004460
4461if test $ac_cv_header_stdc = yes; then
4462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4463 cat >conftest.$ac_ext <<_ACEOF
4464#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004465/* confdefs.h. */
4466_ACEOF
4467cat confdefs.h >>conftest.$ac_ext
4468cat >>conftest.$ac_ext <<_ACEOF
4469/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004470#include <string.h>
4471
4472_ACEOF
4473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 $EGREP "memchr" >/dev/null 2>&1; then
4475 :
4476else
4477 ac_cv_header_stdc=no
4478fi
4479rm -f conftest*
4480
4481fi
4482
4483if test $ac_cv_header_stdc = yes; then
4484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4485 cat >conftest.$ac_ext <<_ACEOF
4486#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004487/* confdefs.h. */
4488_ACEOF
4489cat confdefs.h >>conftest.$ac_ext
4490cat >>conftest.$ac_ext <<_ACEOF
4491/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004492#include <stdlib.h>
4493
4494_ACEOF
4495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "free" >/dev/null 2>&1; then
4497 :
4498else
4499 ac_cv_header_stdc=no
4500fi
4501rm -f conftest*
4502
4503fi
4504
4505if test $ac_cv_header_stdc = yes; then
4506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4507 if test "$cross_compiling" = yes; then
4508 :
4509else
4510 cat >conftest.$ac_ext <<_ACEOF
4511#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004517#include <ctype.h>
4518#if ((' ' & 0x0FF) == 0x020)
4519# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4520# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4521#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004522# define ISLOWER(c) \
4523 (('a' <= (c) && (c) <= 'i') \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004524 || ('j' <= (c) && (c) <= 'r') \
4525 || ('s' <= (c) && (c) <= 'z'))
4526# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4527#endif
4528
4529#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4530int
4531main ()
4532{
4533 int i;
4534 for (i = 0; i < 256; i++)
4535 if (XOR (islower (i), ISLOWER (i))
4536 || toupper (i) != TOUPPER (i))
4537 exit(2);
4538 exit (0);
4539}
4540_ACEOF
4541rm -f conftest$ac_exeext
4542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4543 (eval $ac_link) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 (eval $ac_try) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 :
4553else
4554 echo "$as_me: program exited with status $ac_status" >&5
4555echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004556sed 's/^/| /' conftest.$ac_ext >&5
4557
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004558( exit $ac_status )
4559ac_cv_header_stdc=no
4560fi
4561rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4562fi
4563fi
4564fi
4565echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4566echo "${ECHO_T}$ac_cv_header_stdc" >&6
4567if test $ac_cv_header_stdc = yes; then
4568
4569cat >>confdefs.h <<\_ACEOF
4570#define STDC_HEADERS 1
4571_ACEOF
4572
4573fi
4574
4575# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4586 inttypes.h stdint.h unistd.h
4587do
4588as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4589echo "$as_me:$LINENO: checking for $ac_header" >&5
4590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4591if eval "test \"\${$as_ac_Header+set}\" = set"; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4593else
4594 cat >conftest.$ac_ext <<_ACEOF
4595#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004596/* confdefs.h. */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004601$ac_includes_default
4602
4603#include <$ac_header>
4604_ACEOF
4605rm -f conftest.$ac_objext
4606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 eval "$as_ac_Header=yes"
4618else
4619 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004620sed 's/^/| /' conftest.$ac_ext >&5
4621
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004622eval "$as_ac_Header=no"
4623fi
4624rm -f conftest.$ac_objext conftest.$ac_ext
4625fi
4626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4628if test `eval echo '${'$as_ac_Header'}'` = yes; then
4629 cat >>confdefs.h <<_ACEOF
4630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4631_ACEOF
4632
4633fi
4634
4635done
4636
4637
4638
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004639for ac_header in dlfcn.h
4640do
4641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4642if eval "test \"\${$as_ac_Header+set}\" = set"; then
4643 echo "$as_me:$LINENO: checking for $ac_header" >&5
4644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4645if eval "test \"\${$as_ac_Header+set}\" = set"; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647fi
4648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4650else
4651 # Is the header compilable?
4652echo "$as_me:$LINENO: checking $ac_header usability" >&5
4653echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4654cat >conftest.$ac_ext <<_ACEOF
4655#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004656/* confdefs.h. */
4657_ACEOF
4658cat confdefs.h >>conftest.$ac_ext
4659cat >>conftest.$ac_ext <<_ACEOF
4660/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004661$ac_includes_default
4662#include <$ac_header>
4663_ACEOF
4664rm -f conftest.$ac_objext
4665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4666 (eval $ac_compile) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -s conftest.$ac_objext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 ac_header_compiler=yes
4677else
4678 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004679sed 's/^/| /' conftest.$ac_ext >&5
4680
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004681ac_header_compiler=no
4682fi
4683rm -f conftest.$ac_objext conftest.$ac_ext
4684echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4685echo "${ECHO_T}$ac_header_compiler" >&6
4686
4687# Is the header present?
4688echo "$as_me:$LINENO: checking $ac_header presence" >&5
4689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4690cat >conftest.$ac_ext <<_ACEOF
4691#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004692/* confdefs.h. */
4693_ACEOF
4694cat confdefs.h >>conftest.$ac_ext
4695cat >>conftest.$ac_ext <<_ACEOF
4696/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004697#include <$ac_header>
4698_ACEOF
4699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } >/dev/null; then
4707 if test -s conftest.err; then
4708 ac_cpp_err=$ac_c_preproc_warn_flag
4709 else
4710 ac_cpp_err=
4711 fi
4712else
4713 ac_cpp_err=yes
4714fi
4715if test -z "$ac_cpp_err"; then
4716 ac_header_preproc=yes
4717else
4718 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004719sed 's/^/| /' conftest.$ac_ext >&5
4720
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004721 ac_header_preproc=no
4722fi
4723rm -f conftest.err conftest.$ac_ext
4724echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4725echo "${ECHO_T}$ac_header_preproc" >&6
4726
4727# So? What about this header?
4728case $ac_header_compiler:$ac_header_preproc in
4729 yes:no )
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4734 (
4735 cat <<\_ASBOX
4736## ------------------------------------ ##
4737## Report this to bug-autoconf@gnu.org. ##
4738## ------------------------------------ ##
4739_ASBOX
4740 ) |
4741 sed "s/^/$as_me: WARNING: /" >&2
4742 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004743 no:yes )
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4750 (
4751 cat <<\_ASBOX
4752## ------------------------------------ ##
4753## Report this to bug-autoconf@gnu.org. ##
4754## ------------------------------------ ##
4755_ASBOX
4756 ) |
4757 sed "s/^/$as_me: WARNING: /" >&2
4758 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004759esac
4760echo "$as_me:$LINENO: checking for $ac_header" >&5
4761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4762if eval "test \"\${$as_ac_Header+set}\" = set"; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764else
4765 eval "$as_ac_Header=$ac_header_preproc"
4766fi
4767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4769
4770fi
4771if test `eval echo '${'$as_ac_Header'}'` = yes; then
4772 cat >>confdefs.h <<_ACEOF
4773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4774_ACEOF
4775
4776fi
4777
4778done
4779
4780
4781
4782
4783
4784
4785# Only perform the check for file, if the check method requires it
4786case $deplibs_check_method in
4787file_magic*)
4788 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4789 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4790echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4791if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793else
4794 case $MAGIC_CMD in
4795 /*)
4796 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4797 ;;
4798 ?:/*)
4799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4800 ;;
4801 *)
4802 ac_save_MAGIC_CMD="$MAGIC_CMD"
4803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4804 ac_dummy="/usr/bin:$PATH"
4805 for ac_dir in $ac_dummy; do
4806 test -z "$ac_dir" && ac_dir=.
4807 if test -f $ac_dir/${ac_tool_prefix}file; then
4808 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4809 if test -n "$file_magic_test_file"; then
4810 case $deplibs_check_method in
4811 "file_magic "*)
4812 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4815 egrep "$file_magic_regex" > /dev/null; then
4816 :
4817 else
4818 cat <<EOF 1>&2
4819
4820*** Warning: the command libtool uses to detect shared libraries,
4821*** $file_magic_cmd, produces output that libtool cannot recognize.
4822*** The result is that libtool may fail to recognize shared libraries
4823*** as such. This will affect the creation of libtool libraries that
4824*** depend on shared libraries, but programs linked with such libtool
4825*** libraries will work regardless of this problem. Nevertheless, you
4826*** may want to report the problem to your system manager and/or to
4827*** bug-libtool@gnu.org
4828
4829EOF
4830 fi ;;
4831 esac
4832 fi
4833 break
4834 fi
4835 done
4836 IFS="$ac_save_ifs"
4837 MAGIC_CMD="$ac_save_MAGIC_CMD"
4838 ;;
4839esac
4840fi
4841
4842MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4843if test -n "$MAGIC_CMD"; then
4844 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4845echo "${ECHO_T}$MAGIC_CMD" >&6
4846else
4847 echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6
4849fi
4850
4851if test -z "$lt_cv_path_MAGIC_CMD"; then
4852 if test -n "$ac_tool_prefix"; then
4853 echo "$as_me:$LINENO: checking for file" >&5
4854echo $ECHO_N "checking for file... $ECHO_C" >&6
4855if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857else
4858 case $MAGIC_CMD in
4859 /*)
4860 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4861 ;;
4862 ?:/*)
4863 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4864 ;;
4865 *)
4866 ac_save_MAGIC_CMD="$MAGIC_CMD"
4867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4868 ac_dummy="/usr/bin:$PATH"
4869 for ac_dir in $ac_dummy; do
4870 test -z "$ac_dir" && ac_dir=.
4871 if test -f $ac_dir/file; then
4872 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4873 if test -n "$file_magic_test_file"; then
4874 case $deplibs_check_method in
4875 "file_magic "*)
4876 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4878 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4879 egrep "$file_magic_regex" > /dev/null; then
4880 :
4881 else
4882 cat <<EOF 1>&2
4883
4884*** Warning: the command libtool uses to detect shared libraries,
4885*** $file_magic_cmd, produces output that libtool cannot recognize.
4886*** The result is that libtool may fail to recognize shared libraries
4887*** as such. This will affect the creation of libtool libraries that
4888*** depend on shared libraries, but programs linked with such libtool
4889*** libraries will work regardless of this problem. Nevertheless, you
4890*** may want to report the problem to your system manager and/or to
4891*** bug-libtool@gnu.org
4892
4893EOF
4894 fi ;;
4895 esac
4896 fi
4897 break
4898 fi
4899 done
4900 IFS="$ac_save_ifs"
4901 MAGIC_CMD="$ac_save_MAGIC_CMD"
4902 ;;
4903esac
4904fi
4905
4906MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4907if test -n "$MAGIC_CMD"; then
4908 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4909echo "${ECHO_T}$MAGIC_CMD" >&6
4910else
4911 echo "$as_me:$LINENO: result: no" >&5
4912echo "${ECHO_T}no" >&6
4913fi
4914
4915 else
4916 MAGIC_CMD=:
4917 fi
4918fi
4919
4920 fi
4921 ;;
4922esac
4923
4924if test -n "$ac_tool_prefix"; then
4925 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4926set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4927echo "$as_me:$LINENO: checking for $ac_word" >&5
4928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4929if test "${ac_cv_prog_RANLIB+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931else
4932 if test -n "$RANLIB"; then
4933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4934else
4935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936for as_dir in $PATH
4937do
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4942 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4945 fi
4946done
4947done
4948
4949fi
4950fi
4951RANLIB=$ac_cv_prog_RANLIB
4952if test -n "$RANLIB"; then
4953 echo "$as_me:$LINENO: result: $RANLIB" >&5
4954echo "${ECHO_T}$RANLIB" >&6
4955else
4956 echo "$as_me:$LINENO: result: no" >&5
4957echo "${ECHO_T}no" >&6
4958fi
4959
4960fi
4961if test -z "$ac_cv_prog_RANLIB"; then
4962 ac_ct_RANLIB=$RANLIB
4963 # Extract the first word of "ranlib", so it can be a program name with args.
4964set dummy ranlib; ac_word=$2
4965echo "$as_me:$LINENO: checking for $ac_word" >&5
4966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4967if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969else
4970 if test -n "$ac_ct_RANLIB"; then
4971 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4972else
4973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974for as_dir in $PATH
4975do
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980 ac_cv_prog_ac_ct_RANLIB="ranlib"
4981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4983 fi
4984done
4985done
4986
4987 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4988fi
4989fi
4990ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4991if test -n "$ac_ct_RANLIB"; then
4992 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4993echo "${ECHO_T}$ac_ct_RANLIB" >&6
4994else
4995 echo "$as_me:$LINENO: result: no" >&5
4996echo "${ECHO_T}no" >&6
4997fi
4998
4999 RANLIB=$ac_ct_RANLIB
5000else
5001 RANLIB="$ac_cv_prog_RANLIB"
5002fi
5003
5004if test -n "$ac_tool_prefix"; then
5005 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5006set dummy ${ac_tool_prefix}strip; ac_word=$2
5007echo "$as_me:$LINENO: checking for $ac_word" >&5
5008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009if test "${ac_cv_prog_STRIP+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012 if test -n "$STRIP"; then
5013 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5014else
5015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016for as_dir in $PATH
5017do
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5025 fi
5026done
5027done
5028
5029fi
5030fi
5031STRIP=$ac_cv_prog_STRIP
5032if test -n "$STRIP"; then
5033 echo "$as_me:$LINENO: result: $STRIP" >&5
5034echo "${ECHO_T}$STRIP" >&6
5035else
5036 echo "$as_me:$LINENO: result: no" >&5
5037echo "${ECHO_T}no" >&6
5038fi
5039
5040fi
5041if test -z "$ac_cv_prog_STRIP"; then
5042 ac_ct_STRIP=$STRIP
5043 # Extract the first word of "strip", so it can be a program name with args.
5044set dummy strip; ac_word=$2
5045echo "$as_me:$LINENO: checking for $ac_word" >&5
5046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5047if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5049else
5050 if test -n "$ac_ct_STRIP"; then
5051 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5052else
5053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054for as_dir in $PATH
5055do
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060 ac_cv_prog_ac_ct_STRIP="strip"
5061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 break 2
5063 fi
5064done
5065done
5066
5067 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5068fi
5069fi
5070ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5071if test -n "$ac_ct_STRIP"; then
5072 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5073echo "${ECHO_T}$ac_ct_STRIP" >&6
5074else
5075 echo "$as_me:$LINENO: result: no" >&5
5076echo "${ECHO_T}no" >&6
5077fi
5078
5079 STRIP=$ac_ct_STRIP
5080else
5081 STRIP="$ac_cv_prog_STRIP"
5082fi
5083
5084
5085enable_dlopen=no
5086enable_win32_dll=no
5087
5088# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5089if test "${enable_libtool_lock+set}" = set; then
5090 enableval="$enable_libtool_lock"
5091
5092fi;
5093test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5094
5095# Some flags need to be propagated to the compiler or linker for good
5096# libtool support.
5097case $host in
5098*-*-irix6*)
5099 # Find out which ABI we are using.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00005100 echo '#line 5100 "configure"' > conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5102 (eval $ac_compile) 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; then
5106 case `/usr/bin/file conftest.$ac_objext` in
5107 *32-bit*)
5108 LD="${LD-ld} -32"
5109 ;;
5110 *N32*)
5111 LD="${LD-ld} -n32"
5112 ;;
5113 *64-bit*)
5114 LD="${LD-ld} -64"
5115 ;;
5116 esac
5117 fi
5118 rm -rf conftest*
5119 ;;
5120
5121*-*-sco3.2v5*)
5122 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5123 SAVE_CFLAGS="$CFLAGS"
5124 CFLAGS="$CFLAGS -belf"
5125 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5126echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5127if test "${lt_cv_cc_needs_belf+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130
5131
5132 ac_ext=c
5133ac_cpp='$CPP $CPPFLAGS'
5134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136ac_compiler_gnu=$ac_cv_c_compiler_gnu
5137
5138 cat >conftest.$ac_ext <<_ACEOF
5139#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00005140/* confdefs.h. */
5141_ACEOF
5142cat confdefs.h >>conftest.$ac_ext
5143cat >>conftest.$ac_ext <<_ACEOF
5144/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005145
5146int
5147main ()
5148{
5149
5150 ;
5151 return 0;
5152}
5153_ACEOF
5154rm -f conftest.$ac_objext conftest$ac_exeext
5155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5156 (eval $ac_link) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
5160 { ac_try='test -s conftest$ac_exeext'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 (eval $ac_try) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; }; then
5166 lt_cv_cc_needs_belf=yes
5167else
5168 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00005169sed 's/^/| /' conftest.$ac_ext >&5
5170
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005171lt_cv_cc_needs_belf=no
5172fi
5173rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5174 ac_ext=c
5175ac_cpp='$CPP $CPPFLAGS'
5176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178ac_compiler_gnu=$ac_cv_c_compiler_gnu
5179
5180fi
5181echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5182echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5183 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5184 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5185 CFLAGS="$SAVE_CFLAGS"
5186 fi
5187 ;;
5188
5189
5190esac
5191
5192# Sed substitution that helps us do robust quoting. It backslashifies
5193# metacharacters that are still active within double-quoted strings.
5194Xsed='sed -e s/^X//'
5195sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5196
5197# Same as above, but do not quote variable references.
5198double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5199
5200# Sed substitution to delay expansion of an escaped shell variable in a
5201# double_quote_subst'ed string.
5202delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5203
5204# Constants:
5205rm="rm -f"
5206
5207# Global variables:
5208default_ofile=libtool
5209can_build_shared=yes
5210
5211# All known linkers require a `.a' archive for static linking (except M$VC,
5212# which needs '.lib').
5213libext=a
5214ltmain="$ac_aux_dir/ltmain.sh"
5215ofile="$default_ofile"
5216with_gnu_ld="$lt_cv_prog_gnu_ld"
5217need_locks="$enable_libtool_lock"
5218
5219old_CC="$CC"
5220old_CFLAGS="$CFLAGS"
5221
5222# Set sane defaults for various variables
5223test -z "$AR" && AR=ar
5224test -z "$AR_FLAGS" && AR_FLAGS=cru
5225test -z "$AS" && AS=as
5226test -z "$CC" && CC=cc
5227test -z "$DLLTOOL" && DLLTOOL=dlltool
5228test -z "$LD" && LD=ld
5229test -z "$LN_S" && LN_S="ln -s"
5230test -z "$MAGIC_CMD" && MAGIC_CMD=file
5231test -z "$NM" && NM=nm
5232test -z "$OBJDUMP" && OBJDUMP=objdump
5233test -z "$RANLIB" && RANLIB=:
5234test -z "$STRIP" && STRIP=:
5235test -z "$ac_objext" && ac_objext=o
5236
5237if test x"$host" != x"$build"; then
5238 ac_tool_prefix=${host_alias}-
5239else
5240 ac_tool_prefix=
5241fi
5242
5243# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5244case $host_os in
5245linux-gnu*) ;;
5246linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5247esac
5248
5249case $host_os in
5250aix3*)
5251 # AIX sometimes has problems with the GCC collect2 program. For some
5252 # reason, if we set the COLLECT_NAMES environment variable, the problems
5253 # vanish in a puff of smoke.
5254 if test "X${COLLECT_NAMES+set}" != Xset; then
5255 COLLECT_NAMES=
5256 export COLLECT_NAMES
5257 fi
5258 ;;
5259esac
5260
5261# Determine commands to create old-style static archives.
5262old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5263old_postinstall_cmds='chmod 644 $oldlib'
5264old_postuninstall_cmds=
5265
5266if test -n "$RANLIB"; then
5267 case $host_os in
5268 openbsd*)
5269 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5270 ;;
5271 *)
5272 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5273 ;;
5274 esac
5275 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5276fi
5277
5278# Allow CC to be a program name with arguments.
5279set dummy $CC
5280compiler="$2"
5281
5282echo "$as_me:$LINENO: checking for objdir" >&5
5283echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5284rm -f .libs 2>/dev/null
5285mkdir .libs 2>/dev/null
5286if test -d .libs; then
5287 objdir=.libs
5288else
5289 # MS-DOS does not allow filenames that begin with a dot.
5290 objdir=_libs
5291fi
5292rmdir .libs 2>/dev/null
5293echo "$as_me:$LINENO: result: $objdir" >&5
5294echo "${ECHO_T}$objdir" >&6
5295
5296
5297
5298# Check whether --with-pic or --without-pic was given.
5299if test "${with_pic+set}" = set; then
5300 withval="$with_pic"
5301 pic_mode="$withval"
5302else
5303 pic_mode=default
5304fi;
5305test -z "$pic_mode" && pic_mode=default
5306
5307# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5308# in isolation, and that seeing it set (from the cache) indicates that
5309# the associated values are set (in the cache) correctly too.
5310echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5311echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5312if test "${lt_cv_prog_cc_pic+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314else
5315 lt_cv_prog_cc_pic=
5316 lt_cv_prog_cc_shlib=
5317 lt_cv_prog_cc_wl=
5318 lt_cv_prog_cc_static=
5319 lt_cv_prog_cc_no_builtin=
5320 lt_cv_prog_cc_can_build_shared=$can_build_shared
5321
5322 if test "$GCC" = yes; then
5323 lt_cv_prog_cc_wl='-Wl,'
5324 lt_cv_prog_cc_static='-static'
5325
5326 case $host_os in
5327 aix*)
5328 # Below there is a dirty hack to force normal static linking with -ldl
5329 # The problem is because libdl dynamically linked with both libc and
5330 # libC (AIX C++ library), which obviously doesn't included in libraries
5331 # list by gcc. This cause undefined symbols with -static flags.
5332 # This hack allows C programs to be linked with "-static -ldl", but
5333 # not sure about C++ programs.
5334 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5335 ;;
5336 amigaos*)
5337 # FIXME: we need at least 68020 code to build shared libraries, but
5338 # adding the `-m68020' flag to GCC prevents building anything better,
5339 # like `-m68040'.
5340 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5341 ;;
5342 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5343 # PIC is the default for these OSes.
5344 ;;
5345 darwin* | rhapsody*)
5346 # PIC is the default on this platform
5347 # Common symbols not allowed in MH_DYLIB files
5348 lt_cv_prog_cc_pic='-fno-common'
5349 ;;
5350 cygwin* | mingw* | pw32* | os2*)
5351 # This hack is so that the source file can tell whether it is being
5352 # built for inclusion in a dll (and should export symbols for example).
5353 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5354 ;;
5355 sysv4*MP*)
5356 if test -d /usr/nec; then
5357 lt_cv_prog_cc_pic=-Kconform_pic
5358 fi
5359 ;;
5360 *)
5361 lt_cv_prog_cc_pic='-fPIC'
5362 ;;
5363 esac
5364 else
5365 # PORTME Check for PIC flags for the system compiler.
5366 case $host_os in
5367 aix3* | aix4* | aix5*)
5368 lt_cv_prog_cc_wl='-Wl,'
5369 # All AIX code is PIC.
5370 if test "$host_cpu" = ia64; then
5371 # AIX 5 now supports IA64 processor
5372 lt_cv_prog_cc_static='-Bstatic'
5373 else
5374 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5375 fi
5376 ;;
5377
5378 hpux9* | hpux10* | hpux11*)
5379 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5380 lt_cv_prog_cc_wl='-Wl,'
5381 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5382 lt_cv_prog_cc_pic='+Z'
5383 ;;
5384
5385 irix5* | irix6* | nonstopux*)
5386 lt_cv_prog_cc_wl='-Wl,'
5387 lt_cv_prog_cc_static='-non_shared'
5388 # PIC (with -KPIC) is the default.
5389 ;;
5390
5391 cygwin* | mingw* | pw32* | os2*)
5392 # This hack is so that the source file can tell whether it is being
5393 # built for inclusion in a dll (and should export symbols for example).
5394 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5395 ;;
5396
5397 newsos6)
5398 lt_cv_prog_cc_pic='-KPIC'
5399 lt_cv_prog_cc_static='-Bstatic'
5400 ;;
5401
5402 osf3* | osf4* | osf5*)
5403 # All OSF/1 code is PIC.
5404 lt_cv_prog_cc_wl='-Wl,'
5405 lt_cv_prog_cc_static='-non_shared'
5406 ;;
5407
5408 sco3.2v5*)
5409 lt_cv_prog_cc_pic='-Kpic'
5410 lt_cv_prog_cc_static='-dn'
5411 lt_cv_prog_cc_shlib='-belf'
5412 ;;
5413
5414 solaris*)
5415 lt_cv_prog_cc_pic='-KPIC'
5416 lt_cv_prog_cc_static='-Bstatic'
5417 lt_cv_prog_cc_wl='-Wl,'
5418 ;;
5419
5420 sunos4*)
5421 lt_cv_prog_cc_pic='-PIC'
5422 lt_cv_prog_cc_static='-Bstatic'
5423 lt_cv_prog_cc_wl='-Qoption ld '
5424 ;;
5425
5426 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5427 lt_cv_prog_cc_pic='-KPIC'
5428 lt_cv_prog_cc_static='-Bstatic'
5429 lt_cv_prog_cc_wl='-Wl,'
5430 ;;
5431
5432 uts4*)
5433 lt_cv_prog_cc_pic='-pic'
5434 lt_cv_prog_cc_static='-Bstatic'
5435 ;;
5436
5437 sysv4*MP*)
5438 if test -d /usr/nec ;then
5439 lt_cv_prog_cc_pic='-Kconform_pic'
5440 lt_cv_prog_cc_static='-Bstatic'
5441 fi
5442 ;;
5443
5444 *)
5445 lt_cv_prog_cc_can_build_shared=no
5446 ;;
5447 esac
5448 fi
5449
5450fi
5451
5452if test -z "$lt_cv_prog_cc_pic"; then
5453 echo "$as_me:$LINENO: result: none" >&5
5454echo "${ECHO_T}none" >&6
5455else
5456 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5457echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5458
5459 # Check to make sure the pic_flag actually works.
5460 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5461echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5462 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465 save_CFLAGS="$CFLAGS"
5466 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5467 cat >conftest.$ac_ext <<_ACEOF
5468#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00005469/* confdefs.h. */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
5473/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005474
5475int
5476main ()
5477{
5478
5479 ;
5480 return 0;
5481}
5482_ACEOF
5483rm -f conftest.$ac_objext
5484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -s conftest.$ac_objext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 case $host_os in
5496 hpux9* | hpux10* | hpux11*)
5497 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5498 # they create non-PIC objects. So, if there were any warnings, we
5499 # assume that PIC is not supported.
5500 if test -s conftest.err; then
5501 lt_cv_prog_cc_pic_works=no
5502 else
5503 lt_cv_prog_cc_pic_works=yes
5504 fi
5505 ;;
5506 *)
5507 lt_cv_prog_cc_pic_works=yes
5508 ;;
5509 esac
5510
5511else
5512 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00005513sed 's/^/| /' conftest.$ac_ext >&5
5514
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005515 lt_cv_prog_cc_pic_works=no
5516
5517fi
5518rm -f conftest.$ac_objext conftest.$ac_ext
5519 CFLAGS="$save_CFLAGS"
5520
5521fi
5522
5523
5524 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5525 lt_cv_prog_cc_pic=
5526 lt_cv_prog_cc_can_build_shared=no
5527 else
5528 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5529 fi
5530
5531 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5532echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5533fi
5534
5535# Check for any special shared library compilation flags.
5536if test -n "$lt_cv_prog_cc_shlib"; then
5537 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5538echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5539 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5540 else
5541 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5542echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5543 lt_cv_prog_cc_can_build_shared=no
5544 fi
5545fi
5546
5547echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5548echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5549if test "${lt_cv_prog_cc_static_works+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
5552 lt_cv_prog_cc_static_works=no
5553 save_LDFLAGS="$LDFLAGS"
5554 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5555 cat >conftest.$ac_ext <<_ACEOF
5556#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00005557/* confdefs.h. */
5558_ACEOF
5559cat confdefs.h >>conftest.$ac_ext
5560cat >>conftest.$ac_ext <<_ACEOF
5561/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005562
5563int
5564main ()
5565{
5566
5567 ;
5568 return 0;
5569}
5570_ACEOF
5571rm -f conftest.$ac_objext conftest$ac_exeext
5572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5573 (eval $ac_link) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } &&
5577 { ac_try='test -s conftest$ac_exeext'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 (eval $ac_try) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; }; then
5583 lt_cv_prog_cc_static_works=yes
5584else
5585 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00005586sed 's/^/| /' conftest.$ac_ext >&5
5587
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005588fi
5589rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5590 LDFLAGS="$save_LDFLAGS"
5591
5592fi
5593
5594
5595# Belt *and* braces to stop my trousers falling down:
5596test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5597echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5598echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5599
5600pic_flag="$lt_cv_prog_cc_pic"
5601special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5602wl="$lt_cv_prog_cc_wl"
5603link_static_flag="$lt_cv_prog_cc_static"
5604no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5605can_build_shared="$lt_cv_prog_cc_can_build_shared"
5606
5607
5608# Check to see if options -o and -c are simultaneously supported by compiler
5609echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5610echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5611if test "${lt_cv_compiler_c_o+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613else
5614
5615$rm -r conftest 2>/dev/null
5616mkdir conftest
5617cd conftest
5618echo "int some_variable = 0;" > conftest.$ac_ext
5619mkdir out
5620# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5621# that will create temporary files in the current directory regardless of
5622# the output directory. Thus, making CWD read-only will cause this test
5623# to fail, enabling locking or at least warning the user not to do parallel
5624# builds.
5625chmod -w .
5626save_CFLAGS="$CFLAGS"
5627CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5628compiler_c_o=no
hp.com!davidm01b02dd2003-09-24 21:51:53 +00005629if { (eval echo configure:5629: \"$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 +00005630 # The compiler can only warn and ignore the option if not recognized
5631 # So say no if there are warnings
5632 if test -s out/conftest.err; then
5633 lt_cv_compiler_c_o=no
5634 else
5635 lt_cv_compiler_c_o=yes
5636 fi
5637else
5638 # Append any errors to the config.log.
5639 cat out/conftest.err 1>&5
5640 lt_cv_compiler_c_o=no
5641fi
5642CFLAGS="$save_CFLAGS"
5643chmod u+w .
5644$rm conftest* out/*
5645rmdir out
5646cd ..
5647rmdir conftest
5648$rm -r conftest 2>/dev/null
5649
5650fi
5651
5652compiler_c_o=$lt_cv_compiler_c_o
5653echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5654echo "${ECHO_T}$compiler_c_o" >&6
5655
5656if test x"$compiler_c_o" = x"yes"; then
5657 # Check to see if we can write to a .lo
5658 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5659echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5660 if test "${lt_cv_compiler_o_lo+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5662else
5663
5664 lt_cv_compiler_o_lo=no
5665 save_CFLAGS="$CFLAGS"
5666 CFLAGS="$CFLAGS -c -o conftest.lo"
5667 save_objext="$ac_objext"
5668 ac_objext=lo
5669 cat >conftest.$ac_ext <<_ACEOF
5670#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00005671/* confdefs.h. */
5672_ACEOF
5673cat confdefs.h >>conftest.$ac_ext
5674cat >>conftest.$ac_ext <<_ACEOF
5675/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005676
5677int
5678main ()
5679{
5680int some_variable = 0;
5681 ;
5682 return 0;
5683}
5684_ACEOF
5685rm -f conftest.$ac_objext
5686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687 (eval $ac_compile) 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } &&
5691 { ac_try='test -s conftest.$ac_objext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 # The compiler can only warn and ignore the option if not recognized
5698 # So say no if there are warnings
5699 if test -s conftest.err; then
5700 lt_cv_compiler_o_lo=no
5701 else
5702 lt_cv_compiler_o_lo=yes
5703 fi
5704
5705else
5706 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00005707sed 's/^/| /' conftest.$ac_ext >&5
5708
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005709fi
5710rm -f conftest.$ac_objext conftest.$ac_ext
5711 ac_objext="$save_objext"
5712 CFLAGS="$save_CFLAGS"
5713
5714fi
5715
5716 compiler_o_lo=$lt_cv_compiler_o_lo
5717 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5718echo "${ECHO_T}$compiler_o_lo" >&6
5719else
5720 compiler_o_lo=no
5721fi
5722
5723# Check to see if we can do hard links to lock some files if needed
5724hard_links="nottested"
5725if test "$compiler_c_o" = no && test "$need_locks" != no; then
5726 # do not overwrite the value of need_locks provided by the user
5727 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5728echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5729 hard_links=yes
5730 $rm conftest*
5731 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5732 touch conftest.a
5733 ln conftest.a conftest.b 2>&5 || hard_links=no
5734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5735 echo "$as_me:$LINENO: result: $hard_links" >&5
5736echo "${ECHO_T}$hard_links" >&6
5737 if test "$hard_links" = no; then
5738 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5739echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5740 need_locks=warn
5741 fi
5742else
5743 need_locks=no
5744fi
5745
5746if test "$GCC" = yes; then
5747 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5748 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5749echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5750 echo "int some_variable = 0;" > conftest.$ac_ext
5751 save_CFLAGS="$CFLAGS"
5752 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5753 compiler_rtti_exceptions=no
5754 cat >conftest.$ac_ext <<_ACEOF
5755#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00005756/* confdefs.h. */
5757_ACEOF
5758cat confdefs.h >>conftest.$ac_ext
5759cat >>conftest.$ac_ext <<_ACEOF
5760/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005761
5762int
5763main ()
5764{
5765int some_variable = 0;
5766 ;
5767 return 0;
5768}
5769_ACEOF
5770rm -f conftest.$ac_objext
5771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772 (eval $ac_compile) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -s conftest.$ac_objext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 # The compiler can only warn and ignore the option if not recognized
5783 # So say no if there are warnings
5784 if test -s conftest.err; then
5785 compiler_rtti_exceptions=no
5786 else
5787 compiler_rtti_exceptions=yes
5788 fi
5789
5790else
5791 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00005792sed 's/^/| /' conftest.$ac_ext >&5
5793
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005794fi
5795rm -f conftest.$ac_objext conftest.$ac_ext
5796 CFLAGS="$save_CFLAGS"
5797 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5798echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5799
5800 if test "$compiler_rtti_exceptions" = "yes"; then
5801 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5802 else
5803 no_builtin_flag=' -fno-builtin'
5804 fi
5805fi
5806
5807# See if the linker supports building shared libraries.
5808echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5809echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5810
5811allow_undefined_flag=
5812no_undefined_flag=
5813need_lib_prefix=unknown
5814need_version=unknown
5815# when you set need_version to no, make sure it does not cause -set_version
5816# flags to be left without arguments
5817archive_cmds=
5818archive_expsym_cmds=
5819old_archive_from_new_cmds=
5820old_archive_from_expsyms_cmds=
5821export_dynamic_flag_spec=
5822whole_archive_flag_spec=
5823thread_safe_flag_spec=
5824hardcode_into_libs=no
5825hardcode_libdir_flag_spec=
5826hardcode_libdir_separator=
5827hardcode_direct=no
5828hardcode_minus_L=no
5829hardcode_shlibpath_var=unsupported
5830runpath_var=
5831link_all_deplibs=unknown
5832always_export_symbols=no
5833export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5834# include_expsyms should be a list of space-separated symbols to be *always*
5835# included in the symbol list
5836include_expsyms=
5837# exclude_expsyms can be an egrep regular expression of symbols to exclude
5838# it will be wrapped by ` (' and `)$', so one must not match beginning or
5839# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5840# as well as any symbol that contains `d'.
5841exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5842# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5843# platforms (ab)use it in PIC code, but their linkers get confused if
5844# the symbol is explicitly referenced. Since portable code cannot
5845# rely on this symbol name, it's probably fine to never include it in
5846# preloaded symbol tables.
5847extract_expsyms_cmds=
5848
5849case $host_os in
5850cygwin* | mingw* | pw32*)
5851 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5852 # When not using gcc, we currently assume that we are using
5853 # Microsoft Visual C++.
5854 if test "$GCC" != yes; then
5855 with_gnu_ld=no
5856 fi
5857 ;;
5858openbsd*)
5859 with_gnu_ld=no
5860 ;;
5861esac
5862
5863ld_shlibs=yes
5864if test "$with_gnu_ld" = yes; then
5865 # If archive_cmds runs LD, not CC, wlarc should be empty
5866 wlarc='${wl}'
5867
5868 # See if GNU ld supports shared libraries.
5869 case $host_os in
5870 aix3* | aix4* | aix5*)
5871 # On AIX, the GNU linker is very broken
5872 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5873 ld_shlibs=no
5874 cat <<EOF 1>&2
5875
5876*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5877*** to be unable to reliably create shared libraries on AIX.
5878*** Therefore, libtool is disabling shared libraries support. If you
5879*** really care for shared libraries, you may want to modify your PATH
5880*** so that a non-GNU linker is found, and then restart.
5881
5882EOF
5883 ;;
5884
5885 amigaos*)
5886 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)'
5887 hardcode_libdir_flag_spec='-L$libdir'
5888 hardcode_minus_L=yes
5889
5890 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5891 # that the semantics of dynamic libraries on AmigaOS, at least up
5892 # to version 4, is to share data among multiple programs linked
5893 # with the same dynamic library. Since this doesn't match the
5894 # behavior of shared libraries on other platforms, we can use
5895 # them.
5896 ld_shlibs=no
5897 ;;
5898
5899 beos*)
5900 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5901 allow_undefined_flag=unsupported
5902 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5903 # support --undefined. This deserves some investigation. FIXME
5904 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5905 else
5906 ld_shlibs=no
5907 fi
5908 ;;
5909
5910 cygwin* | mingw* | pw32*)
5911 # hardcode_libdir_flag_spec is actually meaningless, as there is
5912 # no search path for DLLs.
5913 hardcode_libdir_flag_spec='-L$libdir'
5914 allow_undefined_flag=unsupported
5915 always_export_symbols=yes
5916
5917 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5918 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5919 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5920 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5921 else $CC -o impgen impgen.c ; fi)~
5922 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5923
5924 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5925
5926 # cygwin and mingw dlls have different entry points and sets of symbols
5927 # to exclude.
5928 # FIXME: what about values for MSVC?
5929 dll_entry=__cygwin_dll_entry@12
5930 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5931 case $host_os in
5932 mingw*)
5933 # mingw values
5934 dll_entry=_DllMainCRTStartup@12
5935 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5936 ;;
5937 esac
5938
5939 # mingw and cygwin differ, and it's simplest to just exclude the union
5940 # of the two symbol sets.
5941 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5942
5943 # recent cygwin and mingw systems supply a stub DllMain which the user
5944 # can override, but on older systems we have to supply one (in ltdll.c)
5945 if test "x$lt_cv_need_dllmain" = "xyes"; then
5946 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5947 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~
5948 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5949 else
5950 ltdll_obj=
5951 ltdll_cmds=
5952 fi
5953
5954 # Extract the symbol export list from an `--export-all' def file,
5955 # then regenerate the def file from the symbol export list, so that
5956 # the compiled dll only exports the symbol export list.
5957 # Be careful not to strip the DATA tag left be newer dlltools.
5958 export_symbols_cmds="$ltdll_cmds"'
5959 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5960 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5961
5962 # If the export-symbols file already is a .def file (1st line
5963 # is EXPORTS), use it as is.
5964 # If DATA tags from a recent dlltool are present, honour them!
5965 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5966 cp $export_symbols $output_objdir/$soname-def;
5967 else
5968 echo EXPORTS > $output_objdir/$soname-def;
5969 _lt_hint=1;
5970 cat $export_symbols | while read symbol; do
5971 set dummy \$symbol;
5972 case \$# in
5973 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5974 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5975 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5976 esac;
5977 _lt_hint=`expr 1 + \$_lt_hint`;
5978 done;
5979 fi~
5980 '"$ltdll_cmds"'
5981 $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~
5982 $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~
5983 $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~
5984 $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~
5985 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5986 ;;
5987
5988 netbsd*)
5989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5990 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5991 wlarc=
5992 else
5993 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5994 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5995 fi
5996 ;;
5997
5998 solaris* | sysv5*)
5999 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6000 ld_shlibs=no
6001 cat <<EOF 1>&2
6002
6003*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6004*** create shared libraries on Solaris systems. Therefore, libtool
6005*** is disabling shared libraries support. We urge you to upgrade GNU
6006*** binutils to release 2.9.1 or newer. Another option is to modify
6007*** your PATH or compiler configuration so that the native linker is
6008*** used, and then restart.
6009
6010EOF
6011 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6014 else
6015 ld_shlibs=no
6016 fi
6017 ;;
6018
6019 sunos4*)
6020 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6021 wlarc=
6022 hardcode_direct=yes
6023 hardcode_shlibpath_var=no
6024 ;;
6025
6026 *)
6027 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6030 else
6031 ld_shlibs=no
6032 fi
6033 ;;
6034 esac
6035
6036 if test "$ld_shlibs" = yes; then
6037 runpath_var=LD_RUN_PATH
6038 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6039 export_dynamic_flag_spec='${wl}--export-dynamic'
6040 case $host_os in
6041 cygwin* | mingw* | pw32*)
6042 # dlltool doesn't understand --whole-archive et. al.
6043 whole_archive_flag_spec=
6044 ;;
6045 *)
6046 # ancient GNU ld didn't support --whole-archive et. al.
6047 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6048 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6049 else
6050 whole_archive_flag_spec=
6051 fi
6052 ;;
6053 esac
6054 fi
6055else
6056 # PORTME fill in a description of your system's linker (not GNU ld)
6057 case $host_os in
6058 aix3*)
6059 allow_undefined_flag=unsupported
6060 always_export_symbols=yes
6061 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'
6062 # Note: this linker hardcodes the directories in LIBPATH if there
6063 # are no directories specified by -L.
6064 hardcode_minus_L=yes
6065 if test "$GCC" = yes && test -z "$link_static_flag"; then
6066 # Neither direct hardcoding nor static linking is supported with a
6067 # broken collect2.
6068 hardcode_direct=unsupported
6069 fi
6070 ;;
6071
6072 aix4* | aix5*)
6073 if test "$host_cpu" = ia64; then
6074 # On IA64, the linker does run time linking by default, so we don't
6075 # have to do anything special.
6076 aix_use_runtimelinking=no
6077 exp_sym_flag='-Bexport'
6078 no_entry_flag=""
6079 else
6080 aix_use_runtimelinking=no
6081
6082 # Test if we are trying to use run time linking or normal
6083 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6084 # need to do runtime linking.
6085 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6086 for ld_flag in $LDFLAGS; do
6087 case $ld_flag in
6088 *-brtl*)
6089 aix_use_runtimelinking=yes
6090 break
6091 ;;
6092 esac
6093 done
6094 esac
6095
6096 exp_sym_flag='-bexport'
6097 no_entry_flag='-bnoentry'
6098 fi
6099
6100 # When large executables or shared objects are built, AIX ld can
6101 # have problems creating the table of contents. If linking a library
6102 # or program results in "error TOC overflow" add -mminimal-toc to
6103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6105
6106 hardcode_direct=yes
6107 archive_cmds=''
6108 hardcode_libdir_separator=':'
6109 if test "$GCC" = yes; then
6110 case $host_os in aix4.[012]|aix4.[012].*)
6111 collect2name=`${CC} -print-prog-name=collect2`
6112 if test -f "$collect2name" && \
6113 strings "$collect2name" | grep resolve_lib_name >/dev/null
6114 then
6115 # We have reworked collect2
6116 hardcode_direct=yes
6117 else
6118 # We have old collect2
6119 hardcode_direct=unsupported
6120 # It fails to find uninstalled libraries when the uninstalled
6121 # path is not listed in the libpath. Setting hardcode_minus_L
6122 # to unsupported forces relinking
6123 hardcode_minus_L=yes
6124 hardcode_libdir_flag_spec='-L$libdir'
6125 hardcode_libdir_separator=
6126 fi
6127 esac
6128
6129 shared_flag='-shared'
6130 else
6131 # not using gcc
6132 if test "$host_cpu" = ia64; then
6133 shared_flag='${wl}-G'
6134 else
6135 if test "$aix_use_runtimelinking" = yes; then
6136 shared_flag='${wl}-G'
6137 else
6138 shared_flag='${wl}-bM:SRE'
6139 fi
6140 fi
6141 fi
6142
6143 # It seems that -bexpall can do strange things, so it is better to
6144 # generate a list of symbols to export.
6145 always_export_symbols=yes
6146 if test "$aix_use_runtimelinking" = yes; then
6147 # Warning - without using the other runtime loading flags (-brtl),
6148 # -berok will link without error, but may produce a broken library.
6149 allow_undefined_flag='-berok'
6150 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6151 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"
6152 else
6153 if test "$host_cpu" = ia64; then
6154 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6155 allow_undefined_flag="-z nodefs"
6156 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"
6157 else
6158 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6159 # Warning - without using the other run time loading flags,
6160 # -berok will link without error, but may produce a broken library.
6161 allow_undefined_flag='${wl}-berok'
6162 # This is a bit strange, but is similar to how AIX traditionally builds
6163 # it's shared libraries.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00006164 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 $output_objdir/$libname$release.a $output_objdir/$soname'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006165 fi
6166 fi
6167 ;;
6168
6169 amigaos*)
6170 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)'
6171 hardcode_libdir_flag_spec='-L$libdir'
6172 hardcode_minus_L=yes
6173 # see comment about different semantics on the GNU ld section
6174 ld_shlibs=no
6175 ;;
6176
6177 cygwin* | mingw* | pw32*)
6178 # When not using gcc, we currently assume that we are using
6179 # Microsoft Visual C++.
6180 # hardcode_libdir_flag_spec is actually meaningless, as there is
6181 # no search path for DLLs.
6182 hardcode_libdir_flag_spec=' '
6183 allow_undefined_flag=unsupported
6184 # Tell ltmain to make .lib files, not .a files.
6185 libext=lib
6186 # FIXME: Setting linknames here is a bad hack.
6187 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6188 # The linker will automatically build a .lib file if we build a DLL.
6189 old_archive_from_new_cmds='true'
6190 # FIXME: Should let the user specify the lib program.
6191 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6192 fix_srcfile_path='`cygpath -w "$srcfile"`'
6193 ;;
6194
6195 darwin* | rhapsody*)
6196 case "$host_os" in
6197 rhapsody* | darwin1.[012])
6198 allow_undefined_flag='-undefined suppress'
6199 ;;
6200 *) # Darwin 1.3 on
6201 allow_undefined_flag='-flat_namespace -undefined suppress'
6202 ;;
6203 esac
6204 # FIXME: Relying on posixy $() will cause problems for
6205 # cross-compilation, but unfortunately the echo tests do not
6206 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6207 # `"' quotes if we put them in here... so don't!
6208 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)'
6209 # We need to add '_' to the symbols in $export_symbols first
6210 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6211 hardcode_direct=yes
6212 hardcode_shlibpath_var=no
6213 whole_archive_flag_spec='-all_load $convenience'
6214 ;;
6215
6216 freebsd1*)
6217 ld_shlibs=no
6218 ;;
6219
6220 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6221 # support. Future versions do this automatically, but an explicit c++rt0.o
6222 # does not break anything, and helps significantly (at the cost of a little
6223 # extra space).
6224 freebsd2.2*)
6225 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6226 hardcode_libdir_flag_spec='-R$libdir'
6227 hardcode_direct=yes
6228 hardcode_shlibpath_var=no
6229 ;;
6230
6231 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6232 freebsd2*)
6233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6234 hardcode_direct=yes
6235 hardcode_minus_L=yes
6236 hardcode_shlibpath_var=no
6237 ;;
6238
6239 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6240 freebsd*)
6241 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6242 hardcode_libdir_flag_spec='-R$libdir'
6243 hardcode_direct=yes
6244 hardcode_shlibpath_var=no
6245 ;;
6246
6247 hpux9* | hpux10* | hpux11*)
6248 case $host_os in
6249 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' ;;
6250 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6251 esac
6252 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6253 hardcode_libdir_separator=:
6254 hardcode_direct=yes
6255 hardcode_minus_L=yes # Not in the search PATH, but as the default
6256 # location of the library.
6257 export_dynamic_flag_spec='${wl}-E'
6258 ;;
6259
6260 irix5* | irix6* | nonstopux*)
6261 if test "$GCC" = yes; then
6262 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'
6263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6264 else
6265 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'
6266 hardcode_libdir_flag_spec='-rpath $libdir'
6267 fi
6268 hardcode_libdir_separator=:
6269 link_all_deplibs=yes
6270 ;;
6271
6272 netbsd*)
6273 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6275 else
6276 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6277 fi
6278 hardcode_libdir_flag_spec='-R$libdir'
6279 hardcode_direct=yes
6280 hardcode_shlibpath_var=no
6281 ;;
6282
6283 newsos6)
6284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6285 hardcode_direct=yes
6286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6287 hardcode_libdir_separator=:
6288 hardcode_shlibpath_var=no
6289 ;;
6290
6291 openbsd*)
6292 hardcode_direct=yes
6293 hardcode_shlibpath_var=no
6294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6295 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6296 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6297 export_dynamic_flag_spec='${wl}-E'
6298 else
6299 case "$host_os" in
6300 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6302 hardcode_libdir_flag_spec='-R$libdir'
6303 ;;
6304 *)
6305 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6306 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6307 ;;
6308 esac
6309 fi
6310 ;;
6311
6312 os2*)
6313 hardcode_libdir_flag_spec='-L$libdir'
6314 hardcode_minus_L=yes
6315 allow_undefined_flag=unsupported
6316 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'
6317 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6318 ;;
6319
6320 osf3*)
6321 if test "$GCC" = yes; then
6322 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6323 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'
6324 else
6325 allow_undefined_flag=' -expect_unresolved \*'
6326 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'
6327 fi
6328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6329 hardcode_libdir_separator=:
6330 ;;
6331
6332 osf4* | osf5*) # as osf3* with the addition of -msym flag
6333 if test "$GCC" = yes; then
6334 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6335 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'
6336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6337 else
6338 allow_undefined_flag=' -expect_unresolved \*'
6339 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'
6340 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6341 $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'
6342
6343 #Both c and cxx compiler support -rpath directly
6344 hardcode_libdir_flag_spec='-rpath $libdir'
6345 fi
6346 hardcode_libdir_separator=:
6347 ;;
6348
6349 sco3.2v5*)
6350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6351 hardcode_shlibpath_var=no
6352 runpath_var=LD_RUN_PATH
6353 hardcode_runpath_var=yes
6354 export_dynamic_flag_spec='${wl}-Bexport'
6355 ;;
6356
6357 solaris*)
6358 # gcc --version < 3.0 without binutils cannot create self contained
6359 # shared libraries reliably, requiring libgcc.a to resolve some of
6360 # the object symbols generated in some cases. Libraries that use
6361 # assert need libgcc.a to resolve __eprintf, for example. Linking
6362 # a copy of libgcc.a into every shared library to guarantee resolving
6363 # such symbols causes other problems: According to Tim Van Holder
6364 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6365 # (to the application) exception stack for one thing.
6366 no_undefined_flag=' -z defs'
6367 if test "$GCC" = yes; then
6368 case `$CC --version 2>/dev/null` in
6369 [12].*)
6370 cat <<EOF 1>&2
6371
6372*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6373*** create self contained shared libraries on Solaris systems, without
6374*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6375*** -no-undefined support, which will at least allow you to build shared
6376*** libraries. However, you may find that when you link such libraries
6377*** into an application without using GCC, you have to manually add
6378*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6379*** upgrade to a newer version of GCC. Another option is to rebuild your
6380*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6381
6382EOF
6383 no_undefined_flag=
6384 ;;
6385 esac
6386 fi
6387 # $CC -shared without GNU ld will not create a library from C++
6388 # object files and a static libstdc++, better avoid it by now
6389 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6390 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6391 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6392 hardcode_libdir_flag_spec='-R$libdir'
6393 hardcode_shlibpath_var=no
6394 case $host_os in
6395 solaris2.[0-5] | solaris2.[0-5].*) ;;
6396 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6397 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6398 esac
6399 link_all_deplibs=yes
6400 ;;
6401
6402 sunos4*)
6403 if test "x$host_vendor" = xsequent; then
6404 # Use $CC to link under sequent, because it throws in some extra .o
6405 # files that make .init and .fini sections work.
6406 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6407 else
6408 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6409 fi
6410 hardcode_libdir_flag_spec='-L$libdir'
6411 hardcode_direct=yes
6412 hardcode_minus_L=yes
6413 hardcode_shlibpath_var=no
6414 ;;
6415
6416 sysv4)
6417 case $host_vendor in
6418 sni)
6419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6420 hardcode_direct=yes # is this really true???
6421 ;;
6422 siemens)
6423 ## LD is ld it makes a PLAMLIB
6424 ## CC just makes a GrossModule.
6425 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6426 reload_cmds='$CC -r -o $output$reload_objs'
6427 hardcode_direct=no
6428 ;;
6429 motorola)
6430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6431 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6432 ;;
6433 esac
6434 runpath_var='LD_RUN_PATH'
6435 hardcode_shlibpath_var=no
6436 ;;
6437
6438 sysv4.3*)
6439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6440 hardcode_shlibpath_var=no
6441 export_dynamic_flag_spec='-Bexport'
6442 ;;
6443
6444 sysv5*)
6445 no_undefined_flag=' -z text'
6446 # $CC -shared without GNU ld will not create a library from C++
6447 # object files and a static libstdc++, better avoid it by now
6448 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6449 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6450 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6451 hardcode_libdir_flag_spec=
6452 hardcode_shlibpath_var=no
6453 runpath_var='LD_RUN_PATH'
6454 ;;
6455
6456 uts4*)
6457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6458 hardcode_libdir_flag_spec='-L$libdir'
6459 hardcode_shlibpath_var=no
6460 ;;
6461
6462 dgux*)
6463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6464 hardcode_libdir_flag_spec='-L$libdir'
6465 hardcode_shlibpath_var=no
6466 ;;
6467
6468 sysv4*MP*)
6469 if test -d /usr/nec; then
6470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6471 hardcode_shlibpath_var=no
6472 runpath_var=LD_RUN_PATH
6473 hardcode_runpath_var=yes
6474 ld_shlibs=yes
6475 fi
6476 ;;
6477
6478 sysv4.2uw2*)
6479 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6480 hardcode_direct=yes
6481 hardcode_minus_L=no
6482 hardcode_shlibpath_var=no
6483 hardcode_runpath_var=yes
6484 runpath_var=LD_RUN_PATH
6485 ;;
6486
6487 sysv5uw7* | unixware7*)
6488 no_undefined_flag='${wl}-z ${wl}text'
6489 if test "$GCC" = yes; then
6490 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6491 else
6492 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6493 fi
6494 runpath_var='LD_RUN_PATH'
6495 hardcode_shlibpath_var=no
6496 ;;
6497
6498 *)
6499 ld_shlibs=no
6500 ;;
6501 esac
6502fi
6503echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6504echo "${ECHO_T}$ld_shlibs" >&6
6505test "$ld_shlibs" = no && can_build_shared=no
6506
6507# Check hardcoding attributes.
6508echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6509echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6510hardcode_action=
6511if test -n "$hardcode_libdir_flag_spec" || \
6512 test -n "$runpath_var"; then
6513
6514 # We can hardcode non-existant directories.
6515 if test "$hardcode_direct" != no &&
6516 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6517 # have to relink, otherwise we might link with an installed library
6518 # when we should be linking with a yet-to-be-installed one
6519 ## test "$hardcode_shlibpath_var" != no &&
6520 test "$hardcode_minus_L" != no; then
6521 # Linking always hardcodes the temporary library directory.
6522 hardcode_action=relink
6523 else
6524 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6525 hardcode_action=immediate
6526 fi
6527else
6528 # We cannot hardcode anything, or else we can only hardcode existing
6529 # directories.
6530 hardcode_action=unsupported
6531fi
6532echo "$as_me:$LINENO: result: $hardcode_action" >&5
6533echo "${ECHO_T}$hardcode_action" >&6
6534
6535striplib=
6536old_striplib=
6537echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6538echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6539if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6540 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6541 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6542 echo "$as_me:$LINENO: result: yes" >&5
6543echo "${ECHO_T}yes" >&6
6544else
6545 echo "$as_me:$LINENO: result: no" >&5
6546echo "${ECHO_T}no" >&6
6547fi
6548
6549reload_cmds='$LD$reload_flag -o $output$reload_objs'
6550test -z "$deplibs_check_method" && deplibs_check_method=unknown
6551
6552# PORTME Fill in your ld.so characteristics
6553echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6554echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6555library_names_spec=
6556libname_spec='lib$name'
6557soname_spec=
6558postinstall_cmds=
6559postuninstall_cmds=
6560finish_cmds=
6561finish_eval=
6562shlibpath_var=
6563shlibpath_overrides_runpath=unknown
6564version_type=none
6565dynamic_linker="$host_os ld.so"
6566sys_lib_dlsearch_path_spec="/lib /usr/lib"
6567sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6568
6569case $host_os in
6570aix3*)
6571 version_type=linux
6572 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6573 shlibpath_var=LIBPATH
6574
6575 # AIX has no versioning support, so we append a major version to the name.
6576 soname_spec='${libname}${release}.so$major'
6577 ;;
6578
6579aix4* | aix5*)
6580 version_type=linux
6581 need_lib_prefix=no
6582 need_version=no
6583 hardcode_into_libs=yes
6584 if test "$host_cpu" = ia64; then
6585 # AIX 5 supports IA64
6586 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6587 shlibpath_var=LD_LIBRARY_PATH
6588 else
6589 # With GCC up to 2.95.x, collect2 would create an import file
6590 # for dependence libraries. The import file would start with
6591 # the line `#! .'. This would cause the generated library to
6592 # depend on `.', always an invalid library. This was fixed in
6593 # development snapshots of GCC prior to 3.0.
6594 case $host_os in
6595 aix4 | aix4.[01] | aix4.[01].*)
6596 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6597 echo ' yes '
6598 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6599 :
6600 else
6601 can_build_shared=no
6602 fi
6603 ;;
6604 esac
6605 # AIX (on Power*) has no versioning support, so currently we can
6606 # not hardcode correct soname into executable. Probably we can
6607 # add versioning support to collect2, so additional links can
6608 # be useful in future.
6609 if test "$aix_use_runtimelinking" = yes; then
6610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6611 # instead of lib<name>.a to let people know that these are not
6612 # typical AIX shared libraries.
6613 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6614 else
6615 # We preserve .a as extension for shared libraries through AIX4.2
6616 # and later when we are not doing run time linking.
6617 library_names_spec='${libname}${release}.a $libname.a'
6618 soname_spec='${libname}${release}.so$major'
6619 fi
6620 shlibpath_var=LIBPATH
6621 fi
6622 hardcode_into_libs=yes
6623 ;;
6624
6625amigaos*)
6626 library_names_spec='$libname.ixlibrary $libname.a'
6627 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6628 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'
6629 ;;
6630
6631beos*)
6632 library_names_spec='${libname}.so'
6633 dynamic_linker="$host_os ld.so"
6634 shlibpath_var=LIBRARY_PATH
6635 ;;
6636
6637bsdi4*)
6638 version_type=linux
6639 need_version=no
6640 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6641 soname_spec='${libname}${release}.so$major'
6642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6643 shlibpath_var=LD_LIBRARY_PATH
6644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6646 export_dynamic_flag_spec=-rdynamic
6647 # the default ld.so.conf also contains /usr/contrib/lib and
6648 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6649 # libtool to hard-code these into programs
6650 ;;
6651
6652cygwin* | mingw* | pw32*)
6653 version_type=windows
6654 need_version=no
6655 need_lib_prefix=no
6656 case $GCC,$host_os in
6657 yes,cygwin*)
6658 library_names_spec='$libname.dll.a'
6659 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6660 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6661 dldir=$destdir/`dirname \$dlpath`~
6662 test -d \$dldir || mkdir -p \$dldir~
6663 $install_prog .libs/$dlname \$dldir/$dlname'
6664 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6665 dlpath=$dir/\$dldll~
6666 $rm \$dlpath'
6667 ;;
6668 yes,mingw*)
6669 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6670 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6671 ;;
6672 yes,pw32*)
6673 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6674 ;;
6675 *)
6676 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6677 ;;
6678 esac
6679 dynamic_linker='Win32 ld.exe'
6680 # FIXME: first we should search . and the directory the executable is in
6681 shlibpath_var=PATH
6682 ;;
6683
6684darwin* | rhapsody*)
6685 dynamic_linker="$host_os dyld"
6686 version_type=darwin
6687 need_lib_prefix=no
6688 need_version=no
6689 # FIXME: Relying on posixy $() will cause problems for
6690 # cross-compilation, but unfortunately the echo tests do not
6691 # yet detect zsh echo's removal of \ escapes.
6692 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)'
6693 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6694 shlibpath_overrides_runpath=yes
6695 shlibpath_var=DYLD_LIBRARY_PATH
6696 ;;
6697
6698freebsd1*)
6699 dynamic_linker=no
6700 ;;
6701
6702freebsd*-gnu*)
6703 version_type=linux
6704 need_lib_prefix=no
6705 need_version=no
6706 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6707 soname_spec='${libname}${release}.so$major'
6708 shlibpath_var=LD_LIBRARY_PATH
6709 shlibpath_overrides_runpath=no
6710 hardcode_into_libs=yes
6711 dynamic_linker='GNU/FreeBSD ld.so'
6712 ;;
6713
6714freebsd*)
6715 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6716 version_type=freebsd-$objformat
6717 case $version_type in
6718 freebsd-elf*)
6719 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6720 need_version=no
6721 need_lib_prefix=no
6722 ;;
6723 freebsd-*)
6724 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6725 need_version=yes
6726 ;;
6727 esac
6728 shlibpath_var=LD_LIBRARY_PATH
6729 case $host_os in
6730 freebsd2*)
6731 shlibpath_overrides_runpath=yes
6732 ;;
6733 *)
6734 shlibpath_overrides_runpath=no
6735 hardcode_into_libs=yes
6736 ;;
6737 esac
6738 ;;
6739
6740gnu*)
6741 version_type=linux
6742 need_lib_prefix=no
6743 need_version=no
6744 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6745 soname_spec='${libname}${release}.so$major'
6746 shlibpath_var=LD_LIBRARY_PATH
6747 hardcode_into_libs=yes
6748 ;;
6749
6750hpux9* | hpux10* | hpux11*)
6751 # Give a soname corresponding to the major version so that dld.sl refuses to
6752 # link against other versions.
6753 dynamic_linker="$host_os dld.sl"
6754 version_type=sunos
6755 need_lib_prefix=no
6756 need_version=no
6757 shlibpath_var=SHLIB_PATH
6758 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6759 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6760 soname_spec='${libname}${release}.sl$major'
6761 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6762 postinstall_cmds='chmod 555 $lib'
6763 ;;
6764
6765irix5* | irix6* | nonstopux*)
6766 case $host_os in
6767 nonstopux*) version_type=nonstopux ;;
6768 *) version_type=irix ;;
6769 esac
6770 need_lib_prefix=no
6771 need_version=no
6772 soname_spec='${libname}${release}.so$major'
6773 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6774 case $host_os in
6775 irix5* | nonstopux*)
6776 libsuff= shlibsuff=
6777 ;;
6778 *)
6779 case $LD in # libtool.m4 will add one of these switches to LD
6780 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6781 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6782 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6783 *) libsuff= shlibsuff= libmagic=never-match;;
6784 esac
6785 ;;
6786 esac
6787 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6788 shlibpath_overrides_runpath=no
6789 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6790 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6791 ;;
6792
6793# No shared lib support for Linux oldld, aout, or coff.
6794linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6795 dynamic_linker=no
6796 ;;
6797
6798# This must be Linux ELF.
6799linux-gnu*)
6800 version_type=linux
6801 need_lib_prefix=no
6802 need_version=no
6803 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6804 soname_spec='${libname}${release}.so$major'
6805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6806 shlibpath_var=LD_LIBRARY_PATH
6807 shlibpath_overrides_runpath=no
6808 # This implies no fast_install, which is unacceptable.
6809 # Some rework will be needed to allow for fast_install
6810 # before this can be enabled.
6811 hardcode_into_libs=yes
6812
6813 # We used to test for /lib/ld.so.1 and disable shared libraries on
6814 # powerpc, because MkLinux only supported shared libraries with the
6815 # GNU dynamic linker. Since this was broken with cross compilers,
6816 # most powerpc-linux boxes support dynamic linking these days and
6817 # people can always --disable-shared, the test was removed, and we
6818 # assume the GNU/Linux dynamic linker is in use.
6819 dynamic_linker='GNU/Linux ld.so'
6820 ;;
6821
6822netbsd*)
6823 version_type=sunos
6824 need_lib_prefix=no
6825 need_version=no
6826 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6827 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6829 dynamic_linker='NetBSD (a.out) ld.so'
6830 else
6831 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6832 soname_spec='${libname}${release}.so$major'
6833 dynamic_linker='NetBSD ld.elf_so'
6834 fi
6835 shlibpath_var=LD_LIBRARY_PATH
6836 shlibpath_overrides_runpath=yes
6837 hardcode_into_libs=yes
6838 ;;
6839
6840newsos6)
6841 version_type=linux
6842 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6843 shlibpath_var=LD_LIBRARY_PATH
6844 shlibpath_overrides_runpath=yes
6845 ;;
6846
6847openbsd*)
6848 version_type=sunos
6849 need_lib_prefix=no
6850 need_version=no
6851 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6852 case "$host_os" in
6853 openbsd2.[89] | openbsd2.[89].*)
6854 shlibpath_overrides_runpath=no
6855 ;;
6856 *)
6857 shlibpath_overrides_runpath=yes
6858 ;;
6859 esac
6860 else
6861 shlibpath_overrides_runpath=yes
6862 fi
6863 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6865 shlibpath_var=LD_LIBRARY_PATH
6866 ;;
6867
6868os2*)
6869 libname_spec='$name'
6870 need_lib_prefix=no
6871 library_names_spec='$libname.dll $libname.a'
6872 dynamic_linker='OS/2 ld.exe'
6873 shlibpath_var=LIBPATH
6874 ;;
6875
6876osf3* | osf4* | osf5*)
6877 version_type=osf
6878 need_version=no
6879 need_lib_prefix=no
6880 soname_spec='${libname}${release}.so$major'
6881 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6882 shlibpath_var=LD_LIBRARY_PATH
6883 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6884 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6885 hardcode_into_libs=yes
6886 ;;
6887
6888sco3.2v5*)
6889 version_type=osf
6890 soname_spec='${libname}${release}.so$major'
6891 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6892 shlibpath_var=LD_LIBRARY_PATH
6893 ;;
6894
6895solaris*)
6896 version_type=linux
6897 need_lib_prefix=no
6898 need_version=no
6899 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6900 soname_spec='${libname}${release}.so$major'
6901 shlibpath_var=LD_LIBRARY_PATH
6902 shlibpath_overrides_runpath=yes
6903 hardcode_into_libs=yes
6904 # ldd complains unless libraries are executable
6905 postinstall_cmds='chmod +x $lib'
6906 ;;
6907
6908sunos4*)
6909 version_type=sunos
6910 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6911 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6912 shlibpath_var=LD_LIBRARY_PATH
6913 shlibpath_overrides_runpath=yes
6914 if test "$with_gnu_ld" = yes; then
6915 need_lib_prefix=no
6916 fi
6917 need_version=yes
6918 ;;
6919
6920sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6921 version_type=linux
6922 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6923 soname_spec='${libname}${release}.so$major'
6924 shlibpath_var=LD_LIBRARY_PATH
6925 case $host_vendor in
6926 sni)
6927 shlibpath_overrides_runpath=no
6928 need_lib_prefix=no
6929 export_dynamic_flag_spec='${wl}-Blargedynsym'
6930 runpath_var=LD_RUN_PATH
6931 ;;
6932 siemens)
6933 need_lib_prefix=no
6934 ;;
6935 motorola)
6936 need_lib_prefix=no
6937 need_version=no
6938 shlibpath_overrides_runpath=no
6939 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6940 ;;
6941 esac
6942 ;;
6943
6944uts4*)
6945 version_type=linux
6946 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6947 soname_spec='${libname}${release}.so$major'
6948 shlibpath_var=LD_LIBRARY_PATH
6949 ;;
6950
6951dgux*)
6952 version_type=linux
6953 need_lib_prefix=no
6954 need_version=no
6955 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6956 soname_spec='${libname}${release}.so$major'
6957 shlibpath_var=LD_LIBRARY_PATH
6958 ;;
6959
6960sysv4*MP*)
6961 if test -d /usr/nec ;then
6962 version_type=linux
6963 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6964 soname_spec='$libname.so.$major'
6965 shlibpath_var=LD_LIBRARY_PATH
6966 fi
6967 ;;
6968
6969*)
6970 dynamic_linker=no
6971 ;;
6972esac
6973echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6974echo "${ECHO_T}$dynamic_linker" >&6
6975test "$dynamic_linker" = no && can_build_shared=no
6976
6977# Report the final consequences.
6978echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6979echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6980echo "$as_me:$LINENO: result: $can_build_shared" >&5
6981echo "${ECHO_T}$can_build_shared" >&6
6982
6983echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6984echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6985test "$can_build_shared" = "no" && enable_shared=no
6986
6987# On AIX, shared libraries and static libraries use the same namespace, and
6988# are all built from PIC.
6989case "$host_os" in
6990aix3*)
6991 test "$enable_shared" = yes && enable_static=no
6992 if test -n "$RANLIB"; then
6993 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6994 postinstall_cmds='$RANLIB $lib'
6995 fi
6996 ;;
6997
6998aix4*)
6999 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7000 test "$enable_shared" = yes && enable_static=no
7001 fi
7002 ;;
7003esac
7004echo "$as_me:$LINENO: result: $enable_shared" >&5
7005echo "${ECHO_T}$enable_shared" >&6
7006
7007echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7008echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7009# Make sure either enable_shared or enable_static is yes.
7010test "$enable_shared" = yes || enable_static=yes
7011echo "$as_me:$LINENO: result: $enable_static" >&5
7012echo "${ECHO_T}$enable_static" >&6
7013
7014if test "$hardcode_action" = relink; then
7015 # Fast installation is not supported
7016 enable_fast_install=no
7017elif test "$shlibpath_overrides_runpath" = yes ||
7018 test "$enable_shared" = no; then
7019 # Fast installation is not necessary
7020 enable_fast_install=needless
7021fi
7022
7023variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7024if test "$GCC" = yes; then
7025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7026fi
7027
7028if test "x$enable_dlopen" != xyes; then
7029 enable_dlopen=unknown
7030 enable_dlopen_self=unknown
7031 enable_dlopen_self_static=unknown
7032else
7033 lt_cv_dlopen=no
7034 lt_cv_dlopen_libs=
7035
7036 case $host_os in
7037 beos*)
7038 lt_cv_dlopen="load_add_on"
7039 lt_cv_dlopen_libs=
7040 lt_cv_dlopen_self=yes
7041 ;;
7042
7043 cygwin* | mingw* | pw32*)
7044 lt_cv_dlopen="LoadLibrary"
7045 lt_cv_dlopen_libs=
7046 ;;
7047
7048 *)
7049 echo "$as_me:$LINENO: checking for shl_load" >&5
7050echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7051if test "${ac_cv_func_shl_load+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053else
7054 cat >conftest.$ac_ext <<_ACEOF
7055#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007056/* confdefs.h. */
7057_ACEOF
7058cat confdefs.h >>conftest.$ac_ext
7059cat >>conftest.$ac_ext <<_ACEOF
7060/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007061/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007062 which can conflict with char shl_load (); below.
7063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7064 <limits.h> exists even on freestanding compilers. */
7065#ifdef __STDC__
7066# include <limits.h>
7067#else
7068# include <assert.h>
7069#endif
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007070/* Override any gcc2 internal prototype to avoid an error. */
7071#ifdef __cplusplus
7072extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007073{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007074#endif
7075/* We use char because int might match the return type of a gcc2
7076 builtin and then its argument prototype would still apply. */
7077char shl_load ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007078/* The GNU C library defines this for functions which it implements
7079 to always fail with ENOSYS. Some functions are actually named
7080 something starting with __ and the normal name is an alias. */
7081#if defined (__stub_shl_load) || defined (__stub___shl_load)
7082choke me
7083#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007084char (*f) () = shl_load;
7085#endif
7086#ifdef __cplusplus
7087}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007088#endif
7089
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007090int
7091main ()
7092{
7093return f != shl_load;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007094 ;
7095 return 0;
7096}
7097_ACEOF
7098rm -f conftest.$ac_objext conftest$ac_exeext
7099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7100 (eval $ac_link) 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } &&
7104 { ac_try='test -s conftest$ac_exeext'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 (eval $ac_try) 2>&5
7107 ac_status=$?
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
7110 ac_cv_func_shl_load=yes
7111else
7112 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007113sed 's/^/| /' conftest.$ac_ext >&5
7114
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007115ac_cv_func_shl_load=no
7116fi
7117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7118fi
7119echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7120echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7121if test $ac_cv_func_shl_load = yes; then
7122 lt_cv_dlopen="shl_load"
7123else
7124 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7125echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7126if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128else
7129 ac_check_lib_save_LIBS=$LIBS
7130LIBS="-ldld $LIBS"
7131cat >conftest.$ac_ext <<_ACEOF
7132#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007133/* confdefs.h. */
7134_ACEOF
7135cat confdefs.h >>conftest.$ac_ext
7136cat >>conftest.$ac_ext <<_ACEOF
7137/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007138
7139/* Override any gcc2 internal prototype to avoid an error. */
7140#ifdef __cplusplus
7141extern "C"
7142#endif
7143/* We use char because int might match the return type of a gcc2
7144 builtin and then its argument prototype would still apply. */
7145char shl_load ();
7146int
7147main ()
7148{
7149shl_load ();
7150 ;
7151 return 0;
7152}
7153_ACEOF
7154rm -f conftest.$ac_objext conftest$ac_exeext
7155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7156 (eval $ac_link) 2>&5
7157 ac_status=$?
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -s conftest$ac_exeext'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 (eval $ac_try) 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7166 ac_cv_lib_dld_shl_load=yes
7167else
7168 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007169sed 's/^/| /' conftest.$ac_ext >&5
7170
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007171ac_cv_lib_dld_shl_load=no
7172fi
7173rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7174LIBS=$ac_check_lib_save_LIBS
7175fi
7176echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7177echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7178if test $ac_cv_lib_dld_shl_load = yes; then
7179 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7180else
7181 echo "$as_me:$LINENO: checking for dlopen" >&5
7182echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7183if test "${ac_cv_func_dlopen+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185else
7186 cat >conftest.$ac_ext <<_ACEOF
7187#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007188/* confdefs.h. */
7189_ACEOF
7190cat confdefs.h >>conftest.$ac_ext
7191cat >>conftest.$ac_ext <<_ACEOF
7192/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007193/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007194 which can conflict with char dlopen (); below.
7195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7196 <limits.h> exists even on freestanding compilers. */
7197#ifdef __STDC__
7198# include <limits.h>
7199#else
7200# include <assert.h>
7201#endif
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007202/* Override any gcc2 internal prototype to avoid an error. */
7203#ifdef __cplusplus
7204extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007205{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007206#endif
7207/* We use char because int might match the return type of a gcc2
7208 builtin and then its argument prototype would still apply. */
7209char dlopen ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007210/* The GNU C library defines this for functions which it implements
7211 to always fail with ENOSYS. Some functions are actually named
7212 something starting with __ and the normal name is an alias. */
7213#if defined (__stub_dlopen) || defined (__stub___dlopen)
7214choke me
7215#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007216char (*f) () = dlopen;
7217#endif
7218#ifdef __cplusplus
7219}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007220#endif
7221
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007222int
7223main ()
7224{
7225return f != dlopen;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007226 ;
7227 return 0;
7228}
7229_ACEOF
7230rm -f conftest.$ac_objext conftest$ac_exeext
7231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7232 (eval $ac_link) 2>&5
7233 ac_status=$?
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } &&
7236 { ac_try='test -s conftest$ac_exeext'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 (eval $ac_try) 2>&5
7239 ac_status=$?
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; }; then
7242 ac_cv_func_dlopen=yes
7243else
7244 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007245sed 's/^/| /' conftest.$ac_ext >&5
7246
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007247ac_cv_func_dlopen=no
7248fi
7249rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7250fi
7251echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7252echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7253if test $ac_cv_func_dlopen = yes; then
7254 lt_cv_dlopen="dlopen"
7255else
7256 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7257echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7258if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260else
7261 ac_check_lib_save_LIBS=$LIBS
7262LIBS="-ldl $LIBS"
7263cat >conftest.$ac_ext <<_ACEOF
7264#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007265/* confdefs.h. */
7266_ACEOF
7267cat confdefs.h >>conftest.$ac_ext
7268cat >>conftest.$ac_ext <<_ACEOF
7269/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007270
7271/* Override any gcc2 internal prototype to avoid an error. */
7272#ifdef __cplusplus
7273extern "C"
7274#endif
7275/* We use char because int might match the return type of a gcc2
7276 builtin and then its argument prototype would still apply. */
7277char dlopen ();
7278int
7279main ()
7280{
7281dlopen ();
7282 ;
7283 return 0;
7284}
7285_ACEOF
7286rm -f conftest.$ac_objext conftest$ac_exeext
7287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7288 (eval $ac_link) 2>&5
7289 ac_status=$?
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try='test -s conftest$ac_exeext'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 (eval $ac_try) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7298 ac_cv_lib_dl_dlopen=yes
7299else
7300 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007301sed 's/^/| /' conftest.$ac_ext >&5
7302
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007303ac_cv_lib_dl_dlopen=no
7304fi
7305rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7306LIBS=$ac_check_lib_save_LIBS
7307fi
7308echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7309echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7310if test $ac_cv_lib_dl_dlopen = yes; then
7311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7312else
7313 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7314echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7315if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7317else
7318 ac_check_lib_save_LIBS=$LIBS
7319LIBS="-lsvld $LIBS"
7320cat >conftest.$ac_ext <<_ACEOF
7321#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007322/* confdefs.h. */
7323_ACEOF
7324cat confdefs.h >>conftest.$ac_ext
7325cat >>conftest.$ac_ext <<_ACEOF
7326/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007327
7328/* Override any gcc2 internal prototype to avoid an error. */
7329#ifdef __cplusplus
7330extern "C"
7331#endif
7332/* We use char because int might match the return type of a gcc2
7333 builtin and then its argument prototype would still apply. */
7334char dlopen ();
7335int
7336main ()
7337{
7338dlopen ();
7339 ;
7340 return 0;
7341}
7342_ACEOF
7343rm -f conftest.$ac_objext conftest$ac_exeext
7344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try='test -s conftest$ac_exeext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 ac_cv_lib_svld_dlopen=yes
7356else
7357 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007358sed 's/^/| /' conftest.$ac_ext >&5
7359
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007360ac_cv_lib_svld_dlopen=no
7361fi
7362rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7363LIBS=$ac_check_lib_save_LIBS
7364fi
7365echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7366echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7367if test $ac_cv_lib_svld_dlopen = yes; then
7368 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7369else
7370 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7371echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7372if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374else
7375 ac_check_lib_save_LIBS=$LIBS
7376LIBS="-ldld $LIBS"
7377cat >conftest.$ac_ext <<_ACEOF
7378#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007379/* confdefs.h. */
7380_ACEOF
7381cat confdefs.h >>conftest.$ac_ext
7382cat >>conftest.$ac_ext <<_ACEOF
7383/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007384
7385/* Override any gcc2 internal prototype to avoid an error. */
7386#ifdef __cplusplus
7387extern "C"
7388#endif
7389/* We use char because int might match the return type of a gcc2
7390 builtin and then its argument prototype would still apply. */
7391char dld_link ();
7392int
7393main ()
7394{
7395dld_link ();
7396 ;
7397 return 0;
7398}
7399_ACEOF
7400rm -f conftest.$ac_objext conftest$ac_exeext
7401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7402 (eval $ac_link) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } &&
7406 { ac_try='test -s conftest$ac_exeext'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 (eval $ac_try) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 ac_cv_lib_dld_dld_link=yes
7413else
7414 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007415sed 's/^/| /' conftest.$ac_ext >&5
7416
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007417ac_cv_lib_dld_dld_link=no
7418fi
7419rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7420LIBS=$ac_check_lib_save_LIBS
7421fi
7422echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7423echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7424if test $ac_cv_lib_dld_dld_link = yes; then
7425 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7426fi
7427
7428
7429fi
7430
7431
7432fi
7433
7434
7435fi
7436
7437
7438fi
7439
7440
7441fi
7442
7443 ;;
7444 esac
7445
7446 if test "x$lt_cv_dlopen" != xno; then
7447 enable_dlopen=yes
7448 else
7449 enable_dlopen=no
7450 fi
7451
7452 case $lt_cv_dlopen in
7453 dlopen)
7454 save_CPPFLAGS="$CPPFLAGS"
7455 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7456
7457 save_LDFLAGS="$LDFLAGS"
7458 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7459
7460 save_LIBS="$LIBS"
7461 LIBS="$lt_cv_dlopen_libs $LIBS"
7462
7463 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7464echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7465if test "${lt_cv_dlopen_self+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467else
7468 if test "$cross_compiling" = yes; then :
7469 lt_cv_dlopen_self=cross
7470else
7471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7472 lt_status=$lt_dlunknown
7473 cat > conftest.$ac_ext <<EOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007474#line 7474 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007475#include "confdefs.h"
7476
7477#if HAVE_DLFCN_H
7478#include <dlfcn.h>
7479#endif
7480
7481#include <stdio.h>
7482
7483#ifdef RTLD_GLOBAL
7484# define LT_DLGLOBAL RTLD_GLOBAL
7485#else
7486# ifdef DL_GLOBAL
7487# define LT_DLGLOBAL DL_GLOBAL
7488# else
7489# define LT_DLGLOBAL 0
7490# endif
7491#endif
7492
7493/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7494 find out it does not work in some platform. */
7495#ifndef LT_DLLAZY_OR_NOW
7496# ifdef RTLD_LAZY
7497# define LT_DLLAZY_OR_NOW RTLD_LAZY
7498# else
7499# ifdef DL_LAZY
7500# define LT_DLLAZY_OR_NOW DL_LAZY
7501# else
7502# ifdef RTLD_NOW
7503# define LT_DLLAZY_OR_NOW RTLD_NOW
7504# else
7505# ifdef DL_NOW
7506# define LT_DLLAZY_OR_NOW DL_NOW
7507# else
7508# define LT_DLLAZY_OR_NOW 0
7509# endif
7510# endif
7511# endif
7512# endif
7513#endif
7514
7515#ifdef __cplusplus
7516extern "C" void exit (int);
7517#endif
7518
7519void fnord() { int i=42;}
7520int main ()
7521{
7522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7523 int status = $lt_dlunknown;
7524
7525 if (self)
7526 {
7527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7528 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7529 /* dlclose (self); */
7530 }
7531
7532 exit (status);
7533}
7534EOF
7535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7536 (eval $ac_link) 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7540 (./conftest; exit; ) 2>/dev/null
7541 lt_status=$?
7542 case x$lt_status in
7543 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7544 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7545 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7546 esac
7547 else :
7548 # compilation failed
7549 lt_cv_dlopen_self=no
7550 fi
7551fi
7552rm -fr conftest*
7553
7554
7555fi
7556echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7557echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7558
7559 if test "x$lt_cv_dlopen_self" = xyes; then
7560 LDFLAGS="$LDFLAGS $link_static_flag"
7561 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7562echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7563if test "${lt_cv_dlopen_self_static+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7565else
7566 if test "$cross_compiling" = yes; then :
7567 lt_cv_dlopen_self_static=cross
7568else
7569 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7570 lt_status=$lt_dlunknown
7571 cat > conftest.$ac_ext <<EOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00007572#line 7572 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007573#include "confdefs.h"
7574
7575#if HAVE_DLFCN_H
7576#include <dlfcn.h>
7577#endif
7578
7579#include <stdio.h>
7580
7581#ifdef RTLD_GLOBAL
7582# define LT_DLGLOBAL RTLD_GLOBAL
7583#else
7584# ifdef DL_GLOBAL
7585# define LT_DLGLOBAL DL_GLOBAL
7586# else
7587# define LT_DLGLOBAL 0
7588# endif
7589#endif
7590
7591/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7592 find out it does not work in some platform. */
7593#ifndef LT_DLLAZY_OR_NOW
7594# ifdef RTLD_LAZY
7595# define LT_DLLAZY_OR_NOW RTLD_LAZY
7596# else
7597# ifdef DL_LAZY
7598# define LT_DLLAZY_OR_NOW DL_LAZY
7599# else
7600# ifdef RTLD_NOW
7601# define LT_DLLAZY_OR_NOW RTLD_NOW
7602# else
7603# ifdef DL_NOW
7604# define LT_DLLAZY_OR_NOW DL_NOW
7605# else
7606# define LT_DLLAZY_OR_NOW 0
7607# endif
7608# endif
7609# endif
7610# endif
7611#endif
7612
7613#ifdef __cplusplus
7614extern "C" void exit (int);
7615#endif
7616
7617void fnord() { int i=42;}
7618int main ()
7619{
7620 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7621 int status = $lt_dlunknown;
7622
7623 if (self)
7624 {
7625 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7626 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7627 /* dlclose (self); */
7628 }
7629
7630 exit (status);
7631}
7632EOF
7633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7634 (eval $ac_link) 2>&5
7635 ac_status=$?
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7638 (./conftest; exit; ) 2>/dev/null
7639 lt_status=$?
7640 case x$lt_status in
7641 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7642 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7643 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7644 esac
7645 else :
7646 # compilation failed
7647 lt_cv_dlopen_self_static=no
7648 fi
7649fi
7650rm -fr conftest*
7651
7652
7653fi
7654echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7655echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7656 fi
7657
7658 CPPFLAGS="$save_CPPFLAGS"
7659 LDFLAGS="$save_LDFLAGS"
7660 LIBS="$save_LIBS"
7661 ;;
7662 esac
7663
7664 case $lt_cv_dlopen_self in
7665 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7666 *) enable_dlopen_self=unknown ;;
7667 esac
7668
7669 case $lt_cv_dlopen_self_static in
7670 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7671 *) enable_dlopen_self_static=unknown ;;
7672 esac
7673fi
7674
7675
7676if test "$enable_shared" = yes && test "$GCC" = yes; then
7677 case $archive_cmds in
7678 *'~'*)
7679 # FIXME: we may have to deal with multi-command sequences.
7680 ;;
7681 '$CC '*)
7682 # Test whether the compiler implicitly links with -lc since on some
7683 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7684 # to ld, don't add -lc before -lgcc.
7685 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7686echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7687 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689else
7690 $rm conftest*
7691 echo 'static int dummy;' > conftest.$ac_ext
7692
7693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7694 (eval $ac_compile) 2>&5
7695 ac_status=$?
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; then
7698 soname=conftest
7699 lib=conftest
7700 libobjs=conftest.$ac_objext
7701 deplibs=
7702 wl=$lt_cv_prog_cc_wl
7703 compiler_flags=-v
7704 linker_flags=-v
7705 verstring=
7706 output_objdir=.
7707 libname=conftest
7708 save_allow_undefined_flag=$allow_undefined_flag
7709 allow_undefined_flag=
7710 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7711 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }
7715 then
7716 lt_cv_archive_cmds_need_lc=no
7717 else
7718 lt_cv_archive_cmds_need_lc=yes
7719 fi
7720 allow_undefined_flag=$save_allow_undefined_flag
7721 else
7722 cat conftest.err 1>&5
7723 fi
7724fi
7725
7726 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7727echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7728 ;;
7729 esac
7730fi
7731need_lc=${lt_cv_archive_cmds_need_lc-yes}
7732
7733# The second clause should only fire when bootstrapping the
7734# libtool distribution, otherwise you forgot to ship ltmain.sh
7735# with your package, and you will get complaints that there are
7736# no rules to generate ltmain.sh.
7737if test -f "$ltmain"; then
7738 :
7739else
7740 # If there is no Makefile yet, we rely on a make rule to execute
7741 # `config.status --recheck' to rerun these tests and create the
7742 # libtool script then.
7743 test -f Makefile && make "$ltmain"
7744fi
7745
7746if test -f "$ltmain"; then
7747 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7748 $rm -f "${ofile}T"
7749
7750 echo creating $ofile
7751
7752 # Now quote all the things that may contain metacharacters while being
7753 # careful not to overquote the AC_SUBSTed values. We take copies of the
7754 # variables and quote the copies for generation of the libtool script.
7755 for var in echo old_CC old_CFLAGS SED \
7756 AR AR_FLAGS CC LD LN_S NM SHELL \
7757 reload_flag reload_cmds wl \
7758 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7759 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7760 library_names_spec soname_spec \
7761 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7762 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7763 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7764 old_striplib striplib file_magic_cmd export_symbols_cmds \
7765 deplibs_check_method allow_undefined_flag no_undefined_flag \
7766 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7767 global_symbol_to_c_name_address \
7768 hardcode_libdir_flag_spec hardcode_libdir_separator \
7769 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7770 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7771
7772 case $var in
7773 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7774 old_postinstall_cmds | old_postuninstall_cmds | \
7775 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7776 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7777 postinstall_cmds | postuninstall_cmds | \
7778 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7779 # Double-quote double-evaled strings.
7780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7781 ;;
7782 *)
7783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7784 ;;
7785 esac
7786 done
7787
7788 cat <<__EOF__ > "${ofile}T"
7789#! $SHELL
7790
7791# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7792# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7793# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7794#
7795# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7796# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7797#
7798# This program is free software; you can redistribute it and/or modify
7799# it under the terms of the GNU General Public License as published by
7800# the Free Software Foundation; either version 2 of the License, or
7801# (at your option) any later version.
7802#
7803# This program is distributed in the hope that it will be useful, but
7804# WITHOUT ANY WARRANTY; without even the implied warranty of
7805# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7806# General Public License for more details.
7807#
7808# You should have received a copy of the GNU General Public License
7809# along with this program; if not, write to the Free Software
7810# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7811#
7812# As a special exception to the GNU General Public License, if you
7813# distribute this file as part of a program that contains a
7814# configuration script generated by Autoconf, you may include it under
7815# the same distribution terms that you use for the rest of that program.
7816
7817# A sed that does not truncate output.
7818SED=$lt_SED
7819
7820# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7821Xsed="${SED} -e s/^X//"
7822
7823# The HP-UX ksh and POSIX shell print the target directory to stdout
7824# if CDPATH is set.
7825if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7826
7827# ### BEGIN LIBTOOL CONFIG
7828
7829# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7830
7831# Shell to use when invoking shell scripts.
7832SHELL=$lt_SHELL
7833
7834# Whether or not to build shared libraries.
7835build_libtool_libs=$enable_shared
7836
7837# Whether or not to build static libraries.
7838build_old_libs=$enable_static
7839
7840# Whether or not to add -lc for building shared libraries.
7841build_libtool_need_lc=$need_lc
7842
7843# Whether or not to optimize for fast installation.
7844fast_install=$enable_fast_install
7845
7846# The host system.
7847host_alias=$host_alias
7848host=$host
7849
7850# An echo program that does not interpret backslashes.
7851echo=$lt_echo
7852
7853# The archiver.
7854AR=$lt_AR
7855AR_FLAGS=$lt_AR_FLAGS
7856
7857# The default C compiler.
7858CC=$lt_CC
7859
7860# Is the compiler the GNU C compiler?
7861with_gcc=$GCC
7862
7863# The linker used to build libraries.
7864LD=$lt_LD
7865
7866# Whether we need hard or soft links.
7867LN_S=$lt_LN_S
7868
7869# A BSD-compatible nm program.
7870NM=$lt_NM
7871
7872# A symbol stripping program
7873STRIP=$STRIP
7874
7875# Used to examine libraries when file_magic_cmd begins "file"
7876MAGIC_CMD=$MAGIC_CMD
7877
7878# Used on cygwin: DLL creation program.
7879DLLTOOL="$DLLTOOL"
7880
7881# Used on cygwin: object dumper.
7882OBJDUMP="$OBJDUMP"
7883
7884# Used on cygwin: assembler.
7885AS="$AS"
7886
7887# The name of the directory that contains temporary libtool files.
7888objdir=$objdir
7889
7890# How to create reloadable object files.
7891reload_flag=$lt_reload_flag
7892reload_cmds=$lt_reload_cmds
7893
7894# How to pass a linker flag through the compiler.
7895wl=$lt_wl
7896
7897# Object file suffix (normally "o").
7898objext="$ac_objext"
7899
7900# Old archive suffix (normally "a").
7901libext="$libext"
7902
7903# Executable file suffix (normally "").
7904exeext="$exeext"
7905
7906# Additional compiler flags for building library objects.
7907pic_flag=$lt_pic_flag
7908pic_mode=$pic_mode
7909
7910# Does compiler simultaneously support -c and -o options?
7911compiler_c_o=$lt_compiler_c_o
7912
7913# Can we write directly to a .lo ?
7914compiler_o_lo=$lt_compiler_o_lo
7915
7916# Must we lock files when doing compilation ?
7917need_locks=$lt_need_locks
7918
7919# Do we need the lib prefix for modules?
7920need_lib_prefix=$need_lib_prefix
7921
7922# Do we need a version for libraries?
7923need_version=$need_version
7924
7925# Whether dlopen is supported.
7926dlopen_support=$enable_dlopen
7927
7928# Whether dlopen of programs is supported.
7929dlopen_self=$enable_dlopen_self
7930
7931# Whether dlopen of statically linked programs is supported.
7932dlopen_self_static=$enable_dlopen_self_static
7933
7934# Compiler flag to prevent dynamic linking.
7935link_static_flag=$lt_link_static_flag
7936
7937# Compiler flag to turn off builtin functions.
7938no_builtin_flag=$lt_no_builtin_flag
7939
7940# Compiler flag to allow reflexive dlopens.
7941export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7942
7943# Compiler flag to generate shared objects directly from archives.
7944whole_archive_flag_spec=$lt_whole_archive_flag_spec
7945
7946# Compiler flag to generate thread-safe objects.
7947thread_safe_flag_spec=$lt_thread_safe_flag_spec
7948
7949# Library versioning type.
7950version_type=$version_type
7951
7952# Format of library name prefix.
7953libname_spec=$lt_libname_spec
7954
7955# List of archive names. First name is the real one, the rest are links.
7956# The last name is the one that the linker finds with -lNAME.
7957library_names_spec=$lt_library_names_spec
7958
7959# The coded name of the library, if different from the real name.
7960soname_spec=$lt_soname_spec
7961
7962# Commands used to build and install an old-style archive.
7963RANLIB=$lt_RANLIB
7964old_archive_cmds=$lt_old_archive_cmds
7965old_postinstall_cmds=$lt_old_postinstall_cmds
7966old_postuninstall_cmds=$lt_old_postuninstall_cmds
7967
7968# Create an old-style archive from a shared archive.
7969old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7970
7971# Create a temporary old-style archive to link instead of a shared archive.
7972old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7973
7974# Commands used to build and install a shared archive.
7975archive_cmds=$lt_archive_cmds
7976archive_expsym_cmds=$lt_archive_expsym_cmds
7977postinstall_cmds=$lt_postinstall_cmds
7978postuninstall_cmds=$lt_postuninstall_cmds
7979
7980# Commands to strip libraries.
7981old_striplib=$lt_old_striplib
7982striplib=$lt_striplib
7983
7984# Method to check whether dependent libraries are shared objects.
7985deplibs_check_method=$lt_deplibs_check_method
7986
7987# Command to use when deplibs_check_method == file_magic.
7988file_magic_cmd=$lt_file_magic_cmd
7989
7990# Flag that allows shared libraries with undefined symbols to be built.
7991allow_undefined_flag=$lt_allow_undefined_flag
7992
7993# Flag that forces no undefined symbols.
7994no_undefined_flag=$lt_no_undefined_flag
7995
7996# Commands used to finish a libtool library installation in a directory.
7997finish_cmds=$lt_finish_cmds
7998
7999# Same as above, but a single script fragment to be evaled but not shown.
8000finish_eval=$lt_finish_eval
8001
8002# Take the output of nm and produce a listing of raw symbols and C names.
8003global_symbol_pipe=$lt_global_symbol_pipe
8004
8005# Transform the output of nm in a proper C declaration
8006global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8007
8008# Transform the output of nm in a C name address pair
8009global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8010
8011# This is the shared library runtime path variable.
8012runpath_var=$runpath_var
8013
8014# This is the shared library path variable.
8015shlibpath_var=$shlibpath_var
8016
8017# Is shlibpath searched before the hard-coded library search path?
8018shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8019
8020# How to hardcode a shared library path into an executable.
8021hardcode_action=$hardcode_action
8022
8023# Whether we should hardcode library paths into libraries.
8024hardcode_into_libs=$hardcode_into_libs
8025
8026# Flag to hardcode \$libdir into a binary during linking.
8027# This must work even if \$libdir does not exist.
8028hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8029
8030# Whether we need a single -rpath flag with a separated argument.
8031hardcode_libdir_separator=$lt_hardcode_libdir_separator
8032
8033# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8034# resulting binary.
8035hardcode_direct=$hardcode_direct
8036
8037# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8038# resulting binary.
8039hardcode_minus_L=$hardcode_minus_L
8040
8041# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8042# the resulting binary.
8043hardcode_shlibpath_var=$hardcode_shlibpath_var
8044
8045# Variables whose values should be saved in libtool wrapper scripts and
8046# restored at relink time.
8047variables_saved_for_relink="$variables_saved_for_relink"
8048
8049# Whether libtool must link a program against all its dependency libraries.
8050link_all_deplibs=$link_all_deplibs
8051
8052# Compile-time system search path for libraries
8053sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8054
8055# Run-time system search path for libraries
8056sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8057
8058# Fix the shell variable \$srcfile for the compiler.
8059fix_srcfile_path="$fix_srcfile_path"
8060
8061# Set to yes if exported symbols are required.
8062always_export_symbols=$always_export_symbols
8063
8064# The commands to list exported symbols.
8065export_symbols_cmds=$lt_export_symbols_cmds
8066
8067# The commands to extract the exported symbol list from a shared archive.
8068extract_expsyms_cmds=$lt_extract_expsyms_cmds
8069
8070# Symbols that should not be listed in the preloaded symbols.
8071exclude_expsyms=$lt_exclude_expsyms
8072
8073# Symbols that must always be exported.
8074include_expsyms=$lt_include_expsyms
8075
8076# ### END LIBTOOL CONFIG
8077
8078__EOF__
8079
8080 case $host_os in
8081 aix3*)
8082 cat <<\EOF >> "${ofile}T"
8083
8084# AIX sometimes has problems with the GCC collect2 program. For some
8085# reason, if we set the COLLECT_NAMES environment variable, the problems
8086# vanish in a puff of smoke.
8087if test "X${COLLECT_NAMES+set}" != Xset; then
8088 COLLECT_NAMES=
8089 export COLLECT_NAMES
8090fi
8091EOF
8092 ;;
8093 esac
8094
8095 case $host_os in
8096 cygwin* | mingw* | pw32* | os2*)
8097 cat <<'EOF' >> "${ofile}T"
8098 # This is a source program that is used to create dlls on Windows
8099 # Don't remove nor modify the starting and closing comments
8100# /* ltdll.c starts here */
8101# #define WIN32_LEAN_AND_MEAN
8102# #include <windows.h>
8103# #undef WIN32_LEAN_AND_MEAN
8104# #include <stdio.h>
8105#
8106# #ifndef __CYGWIN__
8107# # ifdef __CYGWIN32__
8108# # define __CYGWIN__ __CYGWIN32__
8109# # endif
8110# #endif
8111#
8112# #ifdef __cplusplus
8113# extern "C" {
8114# #endif
8115# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8116# #ifdef __cplusplus
8117# }
8118# #endif
8119#
8120# #ifdef __CYGWIN__
8121# #include <cygwin/cygwin_dll.h>
8122# DECLARE_CYGWIN_DLL( DllMain );
8123# #endif
8124# HINSTANCE __hDllInstance_base;
8125#
8126# BOOL APIENTRY
8127# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8128# {
8129# __hDllInstance_base = hInst;
8130# return TRUE;
8131# }
8132# /* ltdll.c ends here */
8133 # This is a source program that is used to create import libraries
8134 # on Windows for dlls which lack them. Don't remove nor modify the
8135 # starting and closing comments
8136# /* impgen.c starts here */
8137# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8138#
8139# This file is part of GNU libtool.
8140#
8141# This program is free software; you can redistribute it and/or modify
8142# it under the terms of the GNU General Public License as published by
8143# the Free Software Foundation; either version 2 of the License, or
8144# (at your option) any later version.
8145#
8146# This program is distributed in the hope that it will be useful,
8147# but WITHOUT ANY WARRANTY; without even the implied warranty of
8148# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8149# GNU General Public License for more details.
8150#
8151# You should have received a copy of the GNU General Public License
8152# along with this program; if not, write to the Free Software
8153# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8154# */
8155#
8156# #include <stdio.h> /* for printf() */
8157# #include <unistd.h> /* for open(), lseek(), read() */
8158# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8159# #include <string.h> /* for strdup() */
8160#
8161# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8162# #ifndef O_BINARY
8163# #define O_BINARY 0
8164# #endif
8165#
8166# static unsigned int
8167# pe_get16 (fd, offset)
8168# int fd;
8169# int offset;
8170# {
8171# unsigned char b[2];
8172# lseek (fd, offset, SEEK_SET);
8173# read (fd, b, 2);
8174# return b[0] + (b[1]<<8);
8175# }
8176#
8177# static unsigned int
8178# pe_get32 (fd, offset)
8179# int fd;
8180# int offset;
8181# {
8182# unsigned char b[4];
8183# lseek (fd, offset, SEEK_SET);
8184# read (fd, b, 4);
8185# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8186# }
8187#
8188# static unsigned int
8189# pe_as32 (ptr)
8190# void *ptr;
8191# {
8192# unsigned char *b = ptr;
8193# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8194# }
8195#
8196# int
8197# main (argc, argv)
8198# int argc;
8199# char *argv[];
8200# {
8201# int dll;
8202# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8203# unsigned long export_rva, export_size, nsections, secptr, expptr;
8204# unsigned long name_rvas, nexp;
8205# unsigned char *expdata, *erva;
8206# char *filename, *dll_name;
8207#
8208# filename = argv[1];
8209#
8210# dll = open(filename, O_RDONLY|O_BINARY);
8211# if (dll < 1)
8212# return 1;
8213#
8214# dll_name = filename;
8215#
8216# for (i=0; filename[i]; i++)
8217# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8218# dll_name = filename + i +1;
8219#
8220# pe_header_offset = pe_get32 (dll, 0x3c);
8221# opthdr_ofs = pe_header_offset + 4 + 20;
8222# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8223#
8224# if (num_entries < 1) /* no exports */
8225# return 1;
8226#
8227# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8228# export_size = pe_get32 (dll, opthdr_ofs + 100);
8229# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8230# secptr = (pe_header_offset + 4 + 20 +
8231# pe_get16 (dll, pe_header_offset + 4 + 16));
8232#
8233# expptr = 0;
8234# for (i = 0; i < nsections; i++)
8235# {
8236# char sname[8];
8237# unsigned long secptr1 = secptr + 40 * i;
8238# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8239# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8240# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8241# lseek(dll, secptr1, SEEK_SET);
8242# read(dll, sname, 8);
8243# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8244# {
8245# expptr = fptr + (export_rva - vaddr);
8246# if (export_rva + export_size > vaddr + vsize)
8247# export_size = vsize - (export_rva - vaddr);
8248# break;
8249# }
8250# }
8251#
8252# expdata = (unsigned char*)malloc(export_size);
8253# lseek (dll, expptr, SEEK_SET);
8254# read (dll, expdata, export_size);
8255# erva = expdata - export_rva;
8256#
8257# nexp = pe_as32 (expdata+24);
8258# name_rvas = pe_as32 (expdata+32);
8259#
8260# printf ("EXPORTS\n");
8261# for (i = 0; i<nexp; i++)
8262# {
8263# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8264# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8265# }
8266#
8267# return 0;
8268# }
8269# /* impgen.c ends here */
8270
8271EOF
8272 ;;
8273 esac
8274
8275 # We use sed instead of cat because bash on DJGPP gets confused if
8276 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8277 # text mode, it properly converts lines to CR/LF. This bash problem
8278 # is reportedly fixed, but why not run on old versions too?
8279 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8280
8281 mv -f "${ofile}T" "$ofile" || \
8282 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8283 chmod +x "$ofile"
8284fi
8285
8286
8287
8288
8289
8290# This can be used to rebuild libtool when needed
8291LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8292
8293# Always use our own libtool.
8294LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8295
8296# Prevent multiple expansion
8297
8298
mostang.com!davidm6af90d02003-02-15 08:53:55 +00008299# By default we simply use the C compiler to build assembly code.
8300
8301: ${CCAS='$(CC)'}
8302# Set ASFLAGS if not already set.
8303: ${CCASFLAGS='$(CFLAGS)'}
8304
8305
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008306
8307
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +00008308echo "$as_me:$LINENO: checking for __uc_get_grs in -luca" >&5
8309echo $ECHO_N "checking for __uc_get_grs in -luca... $ECHO_C" >&6
8310if test "${ac_cv_lib_uca___uc_get_grs+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8312else
8313 ac_check_lib_save_LIBS=$LIBS
8314LIBS="-luca $LIBS"
8315cat >conftest.$ac_ext <<_ACEOF
8316#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008317/* confdefs.h. */
8318_ACEOF
8319cat confdefs.h >>conftest.$ac_ext
8320cat >>conftest.$ac_ext <<_ACEOF
8321/* end confdefs.h. */
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +00008322
8323/* Override any gcc2 internal prototype to avoid an error. */
8324#ifdef __cplusplus
8325extern "C"
8326#endif
8327/* We use char because int might match the return type of a gcc2
8328 builtin and then its argument prototype would still apply. */
8329char __uc_get_grs ();
8330int
8331main ()
8332{
8333__uc_get_grs ();
8334 ;
8335 return 0;
8336}
8337_ACEOF
8338rm -f conftest.$ac_objext conftest$ac_exeext
8339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8340 (eval $ac_link) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try='test -s conftest$ac_exeext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 ac_cv_lib_uca___uc_get_grs=yes
8351else
8352 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008353sed 's/^/| /' conftest.$ac_ext >&5
8354
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +00008355ac_cv_lib_uca___uc_get_grs=no
8356fi
8357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8358LIBS=$ac_check_lib_save_LIBS
8359fi
8360echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_grs" >&5
8361echo "${ECHO_T}$ac_cv_lib_uca___uc_get_grs" >&6
8362if test $ac_cv_lib_uca___uc_get_grs = yes; then
8363 cat >>confdefs.h <<_ACEOF
8364#define HAVE_LIBUCA 1
8365_ACEOF
8366
8367 LIBS="-luca $LIBS"
8368
8369fi
8370
8371
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008372echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8373echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8374if test "${ac_cv_header_stdc+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8376else
8377 cat >conftest.$ac_ext <<_ACEOF
8378#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008379/* confdefs.h. */
8380_ACEOF
8381cat confdefs.h >>conftest.$ac_ext
8382cat >>conftest.$ac_ext <<_ACEOF
8383/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008384#include <stdlib.h>
8385#include <stdarg.h>
8386#include <string.h>
8387#include <float.h>
8388
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008389int
8390main ()
8391{
8392
8393 ;
8394 return 0;
8395}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008396_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008397rm -f conftest.$ac_objext
8398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8399 (eval $ac_compile) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008400 ac_status=$?
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008402 (exit $ac_status); } &&
8403 { ac_try='test -s conftest.$ac_objext'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008409 ac_cv_header_stdc=yes
8410else
8411 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008412sed 's/^/| /' conftest.$ac_ext >&5
8413
8414ac_cv_header_stdc=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008415fi
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008416rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008417
8418if test $ac_cv_header_stdc = yes; then
8419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8420 cat >conftest.$ac_ext <<_ACEOF
8421#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008422/* confdefs.h. */
8423_ACEOF
8424cat confdefs.h >>conftest.$ac_ext
8425cat >>conftest.$ac_ext <<_ACEOF
8426/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008427#include <string.h>
8428
8429_ACEOF
8430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8431 $EGREP "memchr" >/dev/null 2>&1; then
8432 :
8433else
8434 ac_cv_header_stdc=no
8435fi
8436rm -f conftest*
8437
8438fi
8439
8440if test $ac_cv_header_stdc = yes; then
8441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8442 cat >conftest.$ac_ext <<_ACEOF
8443#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008444/* confdefs.h. */
8445_ACEOF
8446cat confdefs.h >>conftest.$ac_ext
8447cat >>conftest.$ac_ext <<_ACEOF
8448/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008449#include <stdlib.h>
8450
8451_ACEOF
8452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8453 $EGREP "free" >/dev/null 2>&1; then
8454 :
8455else
8456 ac_cv_header_stdc=no
8457fi
8458rm -f conftest*
8459
8460fi
8461
8462if test $ac_cv_header_stdc = yes; then
8463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8464 if test "$cross_compiling" = yes; then
8465 :
8466else
8467 cat >conftest.$ac_ext <<_ACEOF
8468#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008469/* confdefs.h. */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008474#include <ctype.h>
8475#if ((' ' & 0x0FF) == 0x020)
8476# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8477# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8478#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008479# define ISLOWER(c) \
8480 (('a' <= (c) && (c) <= 'i') \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008481 || ('j' <= (c) && (c) <= 'r') \
8482 || ('s' <= (c) && (c) <= 'z'))
8483# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8484#endif
8485
8486#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8487int
8488main ()
8489{
8490 int i;
8491 for (i = 0; i < 256; i++)
8492 if (XOR (islower (i), ISLOWER (i))
8493 || toupper (i) != TOUPPER (i))
8494 exit(2);
8495 exit (0);
8496}
8497_ACEOF
8498rm -f conftest$ac_exeext
8499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8500 (eval $ac_link) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 :
8510else
8511 echo "$as_me: program exited with status $ac_status" >&5
8512echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008513sed 's/^/| /' conftest.$ac_ext >&5
8514
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008515( exit $ac_status )
8516ac_cv_header_stdc=no
8517fi
8518rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8519fi
8520fi
8521fi
8522echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8523echo "${ECHO_T}$ac_cv_header_stdc" >&6
8524if test $ac_cv_header_stdc = yes; then
8525
8526cat >>confdefs.h <<\_ACEOF
8527#define STDC_HEADERS 1
8528_ACEOF
8529
8530fi
8531
8532
mostang.com!davidm6af90d02003-02-15 08:53:55 +00008533
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008534
8535
8536
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +00008537
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008538for ac_header in asm/ptrace_offsets.h endian.h execinfo.h ia64intrin.h \
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +00008539 sys/uc_access.h unistd.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008540do
8541as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8542if eval "test \"\${$as_ac_Header+set}\" = set"; then
8543 echo "$as_me:$LINENO: checking for $ac_header" >&5
8544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8545if eval "test \"\${$as_ac_Header+set}\" = set"; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547fi
8548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8550else
8551 # Is the header compilable?
8552echo "$as_me:$LINENO: checking $ac_header usability" >&5
8553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8554cat >conftest.$ac_ext <<_ACEOF
8555#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008556/* confdefs.h. */
8557_ACEOF
8558cat confdefs.h >>conftest.$ac_ext
8559cat >>conftest.$ac_ext <<_ACEOF
8560/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008561$ac_includes_default
8562#include <$ac_header>
8563_ACEOF
8564rm -f conftest.$ac_objext
8565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8566 (eval $ac_compile) 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } &&
8570 { ac_try='test -s conftest.$ac_objext'
8571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 (eval $ac_try) 2>&5
8573 ac_status=$?
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; }; then
8576 ac_header_compiler=yes
8577else
8578 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008579sed 's/^/| /' conftest.$ac_ext >&5
8580
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008581ac_header_compiler=no
8582fi
8583rm -f conftest.$ac_objext conftest.$ac_ext
8584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8585echo "${ECHO_T}$ac_header_compiler" >&6
8586
8587# Is the header present?
8588echo "$as_me:$LINENO: checking $ac_header presence" >&5
8589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8590cat >conftest.$ac_ext <<_ACEOF
8591#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008592/* confdefs.h. */
8593_ACEOF
8594cat confdefs.h >>conftest.$ac_ext
8595cat >>conftest.$ac_ext <<_ACEOF
8596/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008597#include <$ac_header>
8598_ACEOF
8599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8601 ac_status=$?
8602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } >/dev/null; then
8607 if test -s conftest.err; then
8608 ac_cpp_err=$ac_c_preproc_warn_flag
8609 else
8610 ac_cpp_err=
8611 fi
8612else
8613 ac_cpp_err=yes
8614fi
8615if test -z "$ac_cpp_err"; then
8616 ac_header_preproc=yes
8617else
8618 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008619sed 's/^/| /' conftest.$ac_ext >&5
8620
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008621 ac_header_preproc=no
8622fi
8623rm -f conftest.err conftest.$ac_ext
8624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8625echo "${ECHO_T}$ac_header_preproc" >&6
8626
8627# So? What about this header?
8628case $ac_header_compiler:$ac_header_preproc in
8629 yes:no )
8630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8634 (
8635 cat <<\_ASBOX
8636## ------------------------------------ ##
8637## Report this to bug-autoconf@gnu.org. ##
8638## ------------------------------------ ##
8639_ASBOX
8640 ) |
8641 sed "s/^/$as_me: WARNING: /" >&2
8642 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008643 no:yes )
8644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8645echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8647echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8650 (
8651 cat <<\_ASBOX
8652## ------------------------------------ ##
8653## Report this to bug-autoconf@gnu.org. ##
8654## ------------------------------------ ##
8655_ASBOX
8656 ) |
8657 sed "s/^/$as_me: WARNING: /" >&2
8658 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008659esac
8660echo "$as_me:$LINENO: checking for $ac_header" >&5
8661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8662if eval "test \"\${$as_ac_Header+set}\" = set"; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664else
8665 eval "$as_ac_Header=$ac_header_preproc"
8666fi
8667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8669
8670fi
8671if test `eval echo '${'$as_ac_Header'}'` = yes; then
8672 cat >>confdefs.h <<_ACEOF
8673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8674_ACEOF
8675
8676fi
8677
8678done
8679
8680
8681echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8682echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8683if test "${ac_cv_c_const+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685else
8686 cat >conftest.$ac_ext <<_ACEOF
8687#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008688/* confdefs.h. */
8689_ACEOF
8690cat confdefs.h >>conftest.$ac_ext
8691cat >>conftest.$ac_ext <<_ACEOF
8692/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008693
8694int
8695main ()
8696{
8697/* FIXME: Include the comments suggested by Paul. */
8698#ifndef __cplusplus
8699 /* Ultrix mips cc rejects this. */
8700 typedef int charset[2];
8701 const charset x;
8702 /* SunOS 4.1.1 cc rejects this. */
8703 char const *const *ccp;
8704 char **p;
8705 /* NEC SVR4.0.2 mips cc rejects this. */
8706 struct point {int x, y;};
8707 static struct point const zero = {0,0};
8708 /* AIX XL C 1.02.0.0 rejects this.
8709 It does not let you subtract one const X* pointer from another in
8710 an arm of an if-expression whose if-part is not a constant
8711 expression */
8712 const char *g = "string";
8713 ccp = &g + (g ? g-g : 0);
8714 /* HPUX 7.0 cc rejects these. */
8715 ++ccp;
8716 p = (char**) ccp;
8717 ccp = (char const *const *) p;
8718 { /* SCO 3.2v4 cc rejects this. */
8719 char *t;
8720 char const *s = 0 ? (char *) 0 : (char const *) 0;
8721
8722 *t++ = 0;
8723 }
8724 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8725 int x[] = {25, 17};
8726 const int *foo = &x[0];
8727 ++foo;
8728 }
8729 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8730 typedef const int *iptr;
8731 iptr p = 0;
8732 ++p;
8733 }
8734 { /* AIX XL C 1.02.0.0 rejects this saying
8735 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8736 struct s { int j; const int *ap[3]; };
8737 struct s *b; b->j = 5;
8738 }
8739 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8740 const int foo = 10;
8741 }
8742#endif
8743
8744 ;
8745 return 0;
8746}
8747_ACEOF
8748rm -f conftest.$ac_objext
8749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8750 (eval $ac_compile) 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try='test -s conftest.$ac_objext'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 (eval $ac_try) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 ac_cv_c_const=yes
8761else
8762 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008763sed 's/^/| /' conftest.$ac_ext >&5
8764
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008765ac_cv_c_const=no
8766fi
8767rm -f conftest.$ac_objext conftest.$ac_ext
8768fi
8769echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8770echo "${ECHO_T}$ac_cv_c_const" >&6
8771if test $ac_cv_c_const = no; then
8772
8773cat >>confdefs.h <<\_ACEOF
8774#define const
8775_ACEOF
8776
8777fi
8778
8779echo "$as_me:$LINENO: checking for inline" >&5
8780echo $ECHO_N "checking for inline... $ECHO_C" >&6
8781if test "${ac_cv_c_inline+set}" = set; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8783else
8784 ac_cv_c_inline=no
8785for ac_kw in inline __inline__ __inline; do
8786 cat >conftest.$ac_ext <<_ACEOF
8787#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008788/* confdefs.h. */
8789_ACEOF
8790cat confdefs.h >>conftest.$ac_ext
8791cat >>conftest.$ac_ext <<_ACEOF
8792/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008793#ifndef __cplusplus
8794typedef int foo_t;
8795static $ac_kw foo_t static_foo () {return 0; }
8796$ac_kw foo_t foo () {return 0; }
8797#endif
8798
8799_ACEOF
8800rm -f conftest.$ac_objext
8801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8802 (eval $ac_compile) 2>&5
8803 ac_status=$?
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try='test -s conftest.$ac_objext'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 (eval $ac_try) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; }; then
8812 ac_cv_c_inline=$ac_kw; break
8813else
8814 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008815sed 's/^/| /' conftest.$ac_ext >&5
8816
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008817fi
8818rm -f conftest.$ac_objext conftest.$ac_ext
8819done
8820
8821fi
8822echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8823echo "${ECHO_T}$ac_cv_c_inline" >&6
8824case $ac_cv_c_inline in
8825 inline | yes) ;;
8826 no)
8827cat >>confdefs.h <<\_ACEOF
8828#define inline
8829_ACEOF
8830 ;;
8831 *) cat >>confdefs.h <<_ACEOF
8832#define inline $ac_cv_c_inline
8833_ACEOF
8834 ;;
8835esac
8836
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008837echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8838echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8839if test "${ac_cv_type_signal+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8841else
8842 cat >conftest.$ac_ext <<_ACEOF
8843#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008844/* confdefs.h. */
8845_ACEOF
8846cat confdefs.h >>conftest.$ac_ext
8847cat >>conftest.$ac_ext <<_ACEOF
8848/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008849#include <sys/types.h>
8850#include <signal.h>
8851#ifdef signal
8852# undef signal
8853#endif
8854#ifdef __cplusplus
8855extern "C" void (*signal (int, void (*)(int)))(int);
8856#else
8857void (*signal ()) ();
8858#endif
8859
8860int
8861main ()
8862{
8863int i;
8864 ;
8865 return 0;
8866}
8867_ACEOF
8868rm -f conftest.$ac_objext
8869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8870 (eval $ac_compile) 2>&5
8871 ac_status=$?
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } &&
8874 { ac_try='test -s conftest.$ac_objext'
8875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 (eval $ac_try) 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8880 ac_cv_type_signal=void
8881else
8882 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008883sed 's/^/| /' conftest.$ac_ext >&5
8884
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008885ac_cv_type_signal=int
8886fi
8887rm -f conftest.$ac_objext conftest.$ac_ext
8888fi
8889echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8890echo "${ECHO_T}$ac_cv_type_signal" >&6
8891
8892cat >>confdefs.h <<_ACEOF
8893#define RETSIGTYPE $ac_cv_type_signal
8894_ACEOF
8895
8896
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008897echo "$as_me:$LINENO: checking for size_t" >&5
8898echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8899if test "${ac_cv_type_size_t+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8901else
8902 cat >conftest.$ac_ext <<_ACEOF
8903#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008904/* confdefs.h. */
8905_ACEOF
8906cat confdefs.h >>conftest.$ac_ext
8907cat >>conftest.$ac_ext <<_ACEOF
8908/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008909$ac_includes_default
8910int
8911main ()
8912{
8913if ((size_t *) 0)
8914 return 0;
8915if (sizeof (size_t))
8916 return 0;
8917 ;
8918 return 0;
8919}
8920_ACEOF
8921rm -f conftest.$ac_objext
8922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8923 (eval $ac_compile) 2>&5
8924 ac_status=$?
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } &&
8927 { ac_try='test -s conftest.$ac_objext'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 (eval $ac_try) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8933 ac_cv_type_size_t=yes
8934else
8935 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008936sed 's/^/| /' conftest.$ac_ext >&5
8937
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008938ac_cv_type_size_t=no
8939fi
8940rm -f conftest.$ac_objext conftest.$ac_ext
8941fi
8942echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8943echo "${ECHO_T}$ac_cv_type_size_t" >&6
8944if test $ac_cv_type_size_t = yes; then
8945 :
8946else
8947
8948cat >>confdefs.h <<_ACEOF
8949#define size_t unsigned
8950_ACEOF
8951
8952fi
8953
8954
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008955echo "$as_me:$LINENO: checking for sighandler_t" >&5
8956echo $ECHO_N "checking for sighandler_t... $ECHO_C" >&6
8957if test "${ac_cv_type_sighandler_t+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959else
8960 cat >conftest.$ac_ext <<_ACEOF
8961#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008962/* confdefs.h. */
8963_ACEOF
8964cat confdefs.h >>conftest.$ac_ext
8965cat >>conftest.$ac_ext <<_ACEOF
8966/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008967$ac_includes_default
8968int
8969main ()
8970{
8971if ((sighandler_t *) 0)
8972 return 0;
8973if (sizeof (sighandler_t))
8974 return 0;
8975 ;
8976 return 0;
8977}
8978_ACEOF
8979rm -f conftest.$ac_objext
8980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8981 (eval $ac_compile) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try='test -s conftest.$ac_objext'
8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 (eval $ac_try) 2>&5
8988 ac_status=$?
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 ac_cv_type_sighandler_t=yes
8992else
8993 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008994sed 's/^/| /' conftest.$ac_ext >&5
8995
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008996ac_cv_type_sighandler_t=no
8997fi
8998rm -f conftest.$ac_objext conftest.$ac_ext
8999fi
9000echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5
9001echo "${ECHO_T}$ac_cv_type_sighandler_t" >&6
mostang.com!davidm46149fd2003-03-31 18:16:54 +00009002if test $ac_cv_type_sighandler_t = yes; then
9003
9004cat >>confdefs.h <<_ACEOF
9005#define HAVE_SIGHANDLER_T 1
9006_ACEOF
9007
9008
9009fi
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00009010
9011
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009012echo "$as_me:$LINENO: checking for working memcmp" >&5
9013echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9014if test "${ac_cv_func_memcmp_working+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9016else
9017 if test "$cross_compiling" = yes; then
9018 ac_cv_func_memcmp_working=no
9019else
9020 cat >conftest.$ac_ext <<_ACEOF
9021#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009022/* confdefs.h. */
9023_ACEOF
9024cat confdefs.h >>conftest.$ac_ext
9025cat >>conftest.$ac_ext <<_ACEOF
9026/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009027
9028int
9029main ()
9030{
9031
9032 /* Some versions of memcmp are not 8-bit clean. */
9033 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9034 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9035 exit (1);
9036
9037 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9038 or more and with at least one buffer not starting on a 4-byte boundary.
9039 William Lewis provided this test program. */
9040 {
9041 char foo[21];
9042 char bar[21];
9043 int i;
9044 for (i = 0; i < 4; i++)
9045 {
9046 char *a = foo + i;
9047 char *b = bar + i;
9048 strcpy (a, "--------01111111");
9049 strcpy (b, "--------10000000");
9050 if (memcmp (a, b, 16) >= 0)
9051 exit (1);
9052 }
9053 exit (0);
9054 }
9055
9056 ;
9057 return 0;
9058}
9059_ACEOF
9060rm -f conftest$ac_exeext
9061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062 (eval $ac_link) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; }; then
9071 ac_cv_func_memcmp_working=yes
9072else
9073 echo "$as_me: program exited with status $ac_status" >&5
9074echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009075sed 's/^/| /' conftest.$ac_ext >&5
9076
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009077( exit $ac_status )
9078ac_cv_func_memcmp_working=no
9079fi
9080rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9081fi
9082fi
9083echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9084echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9085test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9086
9087echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9088echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9089if test "${ac_cv_type_signal+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091else
9092 cat >conftest.$ac_ext <<_ACEOF
9093#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009094/* confdefs.h. */
9095_ACEOF
9096cat confdefs.h >>conftest.$ac_ext
9097cat >>conftest.$ac_ext <<_ACEOF
9098/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009099#include <sys/types.h>
9100#include <signal.h>
9101#ifdef signal
9102# undef signal
9103#endif
9104#ifdef __cplusplus
9105extern "C" void (*signal (int, void (*)(int)))(int);
9106#else
9107void (*signal ()) ();
9108#endif
9109
9110int
9111main ()
9112{
9113int i;
9114 ;
9115 return 0;
9116}
9117_ACEOF
9118rm -f conftest.$ac_objext
9119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9120 (eval $ac_compile) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -s conftest.$ac_objext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_type_signal=void
9131else
9132 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009133sed 's/^/| /' conftest.$ac_ext >&5
9134
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009135ac_cv_type_signal=int
9136fi
9137rm -f conftest.$ac_objext conftest.$ac_ext
9138fi
9139echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9140echo "${ECHO_T}$ac_cv_type_signal" >&6
9141
9142cat >>confdefs.h <<_ACEOF
9143#define RETSIGTYPE $ac_cv_type_signal
9144_ACEOF
9145
9146
9147
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00009148
9149
9150
9151for ac_func in dl_iterate_phdr dlmodinfo getunwind ttrace
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009152do
9153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9154echo "$as_me:$LINENO: checking for $ac_func" >&5
9155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9156if eval "test \"\${$as_ac_var+set}\" = set"; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9158else
9159 cat >conftest.$ac_ext <<_ACEOF
9160#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009161/* confdefs.h. */
9162_ACEOF
9163cat confdefs.h >>conftest.$ac_ext
9164cat >>conftest.$ac_ext <<_ACEOF
9165/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009166/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009167 which can conflict with char $ac_func (); below.
9168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9169 <limits.h> exists even on freestanding compilers. */
9170#ifdef __STDC__
9171# include <limits.h>
9172#else
9173# include <assert.h>
9174#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009175/* Override any gcc2 internal prototype to avoid an error. */
9176#ifdef __cplusplus
9177extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009178{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009179#endif
9180/* We use char because int might match the return type of a gcc2
9181 builtin and then its argument prototype would still apply. */
9182char $ac_func ();
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009183/* The GNU C library defines this for functions which it implements
9184 to always fail with ENOSYS. Some functions are actually named
9185 something starting with __ and the normal name is an alias. */
9186#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9187choke me
9188#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009189char (*f) () = $ac_func;
9190#endif
9191#ifdef __cplusplus
9192}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009193#endif
9194
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009195int
9196main ()
9197{
9198return f != $ac_func;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009199 ;
9200 return 0;
9201}
9202_ACEOF
9203rm -f conftest.$ac_objext conftest$ac_exeext
9204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9205 (eval $ac_link) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } &&
9209 { ac_try='test -s conftest$ac_exeext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 eval "$as_ac_var=yes"
9216else
9217 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009218sed 's/^/| /' conftest.$ac_ext >&5
9219
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009220eval "$as_ac_var=no"
9221fi
9222rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9223fi
9224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9225echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9226if test `eval echo '${'$as_ac_var'}'` = yes; then
9227 cat >>confdefs.h <<_ACEOF
9228#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9229_ACEOF
9230
9231fi
9232done
9233
9234
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009235get_arch() {
9236 case "$1" in
9237 i?86) echo x86;;
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00009238 hppa*) echo hppa;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009239 *) echo $1;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009240 esac
9241}
9242
9243build_arch=`get_arch $build_cpu`
9244target_arch=`get_arch $target_cpu`
9245
9246
9247
9248if test x$target_arch != x$build_arch; then
9249 REMOTE_ONLY_TRUE=
9250 REMOTE_ONLY_FALSE='#'
9251else
9252 REMOTE_ONLY_TRUE='#'
9253 REMOTE_ONLY_FALSE=
9254fi
9255
9256
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009257
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009258if test x$target_arch = xia64; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009259 ARCH_IA64_TRUE=
9260 ARCH_IA64_FALSE='#'
9261else
9262 ARCH_IA64_TRUE='#'
9263 ARCH_IA64_FALSE=
9264fi
9265
9266
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009267
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009268if test x$target_arch = xhppa; then
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00009269 ARCH_HPPA_TRUE=
9270 ARCH_HPPA_FALSE='#'
9271else
9272 ARCH_HPPA_TRUE='#'
9273 ARCH_HPPA_FALSE=
9274fi
9275
9276
9277
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009278if test x$target_arch = xx86; then
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009279 ARCH_X86_TRUE=
9280 ARCH_X86_FALSE='#'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009281else
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009282 ARCH_X86_TRUE='#'
9283 ARCH_X86_FALSE=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009284fi
9285
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009286
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009287
9288if expr x$target_os : xlinux >/dev/null; then
9289 OS_LINUX_TRUE=
9290 OS_LINUX_FALSE='#'
9291else
9292 OS_LINUX_TRUE='#'
9293 OS_LINUX_FALSE=
9294fi
9295
9296
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +00009297
9298if expr x$target_os : xhpux >/dev/null; then
9299 OS_HPUX_TRUE=
9300 OS_HPUX_FALSE='#'
9301else
9302 OS_HPUX_TRUE='#'
9303 OS_HPUX_FALSE=
9304fi
9305
9306
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009307if test x$target_arch != x$build_arch; then
9308 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009309fi
mostang.com!davidm51e4d342002-12-12 09:17:41 +00009310 ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h"
9311
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009312
9313# Check whether --enable-debug or --disable-debug was given.
9314if test "${enable_debug+set}" = set; then
9315 enableval="$enable_debug"
9316 enable_debug=yes
9317fi;
9318
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009319if test "x$enable___thread" != xno; then
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +00009320 echo "$as_me:$LINENO: checking for __thread" >&5
9321echo $ECHO_N "checking for __thread... $ECHO_C" >&6
9322if test "${libc_cv_gcc___thread+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324else
9325 cat > conftest.c <<\EOF
9326 __thread int a = 42;
9327EOF
9328 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 libc_cv_gcc___thread=yes
9335 else
9336 libc_cv_gcc___thread=no
9337 fi
9338 rm -f conftest*
9339fi
9340echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
9341echo "${ECHO_T}$libc_cv_gcc___thread" >&6
9342 if test "$libc_cv_gcc___thread" = yes; then
mostang.com!davidm57f5fae2002-12-03 08:19:58 +00009343
9344cat >>confdefs.h <<\_ACEOF
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +00009345#define HAVE___THREAD 1
9346_ACEOF
9347
9348 fi
9349else
9350 libc_cv_gcc___thread=no
9351fi
9352
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009353CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009354if test x$enable_debug = xyes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009355 CPPFLAGS="${CPPFLAGS} -DDEBUG"
9356else
9357 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
9358fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009359
9360if test x$GCC = xyes; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009361 CFLAGS="${CFLAGS} -Wall -Wsign-compare"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009362fi
9363
mostang.com!davidm6af90d02003-02-15 08:53:55 +00009364CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
9365
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009366arch="$target_arch"
9367ARCH=`echo $target_arch | tr a-z A-Z`
9368
9369
9370
mostang.com!davidmf648f6f2003-01-17 07:48:52 +00009371
9372 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile doc/common.tex"
9373
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009374cat >confcache <<\_ACEOF
9375# This file is a shell script that caches the results of configure
9376# tests run on this system so they can be shared between configure
9377# scripts and configure runs, see configure's option --config-cache.
9378# It is not useful on other systems. If it contains results you don't
9379# want to keep, you may remove or edit it.
9380#
9381# config.status only pays attention to the cache file if you give it
9382# the --recheck option to rerun configure.
9383#
9384# `ac_cv_env_foo' variables (set or unset) will be overridden when
9385# loading this file, other *unset* `ac_cv_foo' will be assigned the
9386# following values.
9387
9388_ACEOF
9389
9390# The following way of writing the cache mishandles newlines in values,
9391# but we know of no workaround that is simple, portable, and efficient.
9392# So, don't put newlines in cache variables' values.
9393# Ultrix sh set writes to stderr and can't be redirected directly,
9394# and sets the high bit in the cache file unless we assign to the vars.
9395{
9396 (set) 2>&1 |
9397 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9398 *ac_space=\ *)
9399 # `set' does not quote correctly, so add quotes (double-quote
9400 # substitution turns \\\\ into \\, and sed turns \\ into \).
9401 sed -n \
9402 "s/'/'\\\\''/g;
9403 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9404 ;;
9405 *)
9406 # `set' quotes correctly as required by POSIX, so do not add quotes.
9407 sed -n \
9408 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9409 ;;
9410 esac;
9411} |
9412 sed '
9413 t clear
9414 : clear
9415 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9416 t end
9417 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9418 : end' >>confcache
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009419if diff $cache_file confcache >/dev/null 2>&1; then :; else
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009420 if test -w $cache_file; then
9421 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9422 cat confcache >$cache_file
9423 else
9424 echo "not updating unwritable cache $cache_file"
9425 fi
9426fi
9427rm -f confcache
9428
9429test "x$prefix" = xNONE && prefix=$ac_default_prefix
9430# Let make expand exec_prefix.
9431test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9432
9433# VPATH may cause trouble with some makes, so we remove $(srcdir),
9434# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9435# trailing colons and then remove the whole line if VPATH becomes empty
9436# (actually we leave an empty line to preserve line numbers).
9437if test "x$srcdir" = x.; then
9438 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9439s/:*\$(srcdir):*/:/;
9440s/:*\${srcdir}:*/:/;
9441s/:*@srcdir@:*/:/;
9442s/^\([^=]*=[ ]*\):*/\1/;
9443s/:*$//;
9444s/^[^=]*=[ ]*$//;
9445}'
9446fi
9447
9448DEFS=-DHAVE_CONFIG_H
9449
9450ac_libobjs=
9451ac_ltlibobjs=
9452for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9453 # 1. Remove the extension, and $U if already installed.
9454 ac_i=`echo "$ac_i" |
9455 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9456 # 2. Add them.
9457 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9458 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9459done
9460LIBOBJS=$ac_libobjs
9461
9462LTLIBOBJS=$ac_ltlibobjs
9463
9464
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009465if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9466 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9467Usually this means the macro was only invoked conditionally." >&5
9468echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9469Usually this means the macro was only invoked conditionally." >&2;}
9470 { (exit 1); exit 1; }; }
9471fi
9472if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9473 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9474Usually this means the macro was only invoked conditionally." >&5
9475echo "$as_me: error: conditional \"AMDEP\" was never defined.
9476Usually this means the macro was only invoked conditionally." >&2;}
9477 { (exit 1); exit 1; }; }
9478fi
9479if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
9480 { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined.
9481Usually this means the macro was only invoked conditionally." >&5
9482echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined.
9483Usually this means the macro was only invoked conditionally." >&2;}
9484 { (exit 1); exit 1; }; }
9485fi
9486if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
9487 { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
9488Usually this means the macro was only invoked conditionally." >&5
9489echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
9490Usually this means the macro was only invoked conditionally." >&2;}
9491 { (exit 1); exit 1; }; }
9492fi
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00009493if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
9494 { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
9495Usually this means the macro was only invoked conditionally." >&5
9496echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
9497Usually this means the macro was only invoked conditionally." >&2;}
9498 { (exit 1); exit 1; }; }
9499fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009500if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
9501 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
9502Usually this means the macro was only invoked conditionally." >&5
9503echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
9504Usually this means the macro was only invoked conditionally." >&2;}
9505 { (exit 1); exit 1; }; }
9506fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009507if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
9508 { { echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined.
9509Usually this means the macro was only invoked conditionally." >&5
9510echo "$as_me: error: conditional \"OS_LINUX\" was never defined.
9511Usually this means the macro was only invoked conditionally." >&2;}
9512 { (exit 1); exit 1; }; }
9513fi
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +00009514if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then
9515 { { echo "$as_me:$LINENO: error: conditional \"OS_HPUX\" was never defined.
9516Usually this means the macro was only invoked conditionally." >&5
9517echo "$as_me: error: conditional \"OS_HPUX\" was never defined.
9518Usually this means the macro was only invoked conditionally." >&2;}
9519 { (exit 1); exit 1; }; }
9520fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009521
9522: ${CONFIG_STATUS=./config.status}
9523ac_clean_files_save=$ac_clean_files
9524ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9525{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9526echo "$as_me: creating $CONFIG_STATUS" >&6;}
9527cat >$CONFIG_STATUS <<_ACEOF
9528#! $SHELL
9529# Generated by $as_me.
9530# Run this file to recreate the current configuration.
9531# Compiler output produced by configure, useful for debugging
9532# configure, is in config.log if it exists.
9533
9534debug=false
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009535ac_cs_recheck=false
9536ac_cs_silent=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009537SHELL=\${CONFIG_SHELL-$SHELL}
9538_ACEOF
9539
9540cat >>$CONFIG_STATUS <<\_ACEOF
9541## --------------------- ##
9542## M4sh Initialization. ##
9543## --------------------- ##
9544
9545# Be Bourne compatible
9546if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9547 emulate sh
9548 NULLCMD=:
9549 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9550 # is contrary to our usage. Disable this feature.
9551 alias -g '${1+"$@"}'='"$@"'
9552elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9553 set -o posix
9554fi
9555
9556# Support unset when possible.
9557if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9558 as_unset=unset
9559else
9560 as_unset=false
9561fi
9562
9563
9564# Work around bugs in pre-3.0 UWIN ksh.
9565$as_unset ENV MAIL MAILPATH
9566PS1='$ '
9567PS2='> '
9568PS4='+ '
9569
9570# NLS nuisances.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009571for as_var in \
9572 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9573 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9574 LC_TELEPHONE LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009575do
9576 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9577 eval $as_var=C; export $as_var
9578 else
9579 $as_unset $as_var
9580 fi
9581done
9582
9583# Required to use basename.
9584if expr a : '\(a\)' >/dev/null 2>&1; then
9585 as_expr=expr
9586else
9587 as_expr=false
9588fi
9589
9590if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9591 as_basename=basename
9592else
9593 as_basename=false
9594fi
9595
9596
9597# Name of the executable.
9598as_me=`$as_basename "$0" ||
9599$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9600 X"$0" : 'X\(//\)$' \| \
9601 X"$0" : 'X\(/\)$' \| \
9602 . : '\(.\)' 2>/dev/null ||
9603echo X/"$0" |
9604 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9605 /^X\/\(\/\/\)$/{ s//\1/; q; }
9606 /^X\/\(\/\).*/{ s//\1/; q; }
9607 s/.*/./; q'`
9608
9609
9610# PATH needs CR, and LINENO needs CR and PATH.
9611# Avoid depending upon Character Ranges.
9612as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9613as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9614as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9615as_cr_digits='0123456789'
9616as_cr_alnum=$as_cr_Letters$as_cr_digits
9617
9618# The user is always right.
9619if test "${PATH_SEPARATOR+set}" != set; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009620 echo "#! /bin/sh" >conf$$.sh
9621 echo "exit 0" >>conf$$.sh
9622 chmod +x conf$$.sh
9623 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009624 PATH_SEPARATOR=';'
9625 else
9626 PATH_SEPARATOR=:
9627 fi
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009628 rm -f conf$$.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009629fi
9630
9631
9632 as_lineno_1=$LINENO
9633 as_lineno_2=$LINENO
9634 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9635 test "x$as_lineno_1" != "x$as_lineno_2" &&
9636 test "x$as_lineno_3" = "x$as_lineno_2" || {
9637 # Find who we are. Look in the path if we contain no path at all
9638 # relative or not.
9639 case $0 in
9640 *[\\/]* ) as_myself=$0 ;;
9641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642for as_dir in $PATH
9643do
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
9646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9647done
9648
9649 ;;
9650 esac
9651 # We did not find ourselves, most probably we were run as `sh COMMAND'
9652 # in which case we are not to be found in the path.
9653 if test "x$as_myself" = x; then
9654 as_myself=$0
9655 fi
9656 if test ! -f "$as_myself"; then
9657 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9658echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9659 { (exit 1); exit 1; }; }
9660 fi
9661 case $CONFIG_SHELL in
9662 '')
9663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9665do
9666 IFS=$as_save_IFS
9667 test -z "$as_dir" && as_dir=.
9668 for as_base in sh bash ksh sh5; do
9669 case $as_dir in
9670 /*)
9671 if ("$as_dir/$as_base" -c '
9672 as_lineno_1=$LINENO
9673 as_lineno_2=$LINENO
9674 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9675 test "x$as_lineno_1" != "x$as_lineno_2" &&
9676 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9677 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9678 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9679 CONFIG_SHELL=$as_dir/$as_base
9680 export CONFIG_SHELL
9681 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9682 fi;;
9683 esac
9684 done
9685done
9686;;
9687 esac
9688
9689 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9690 # uniformly replaced by the line number. The first 'sed' inserts a
9691 # line-number line before each line; the second 'sed' does the real
9692 # work. The second script uses 'N' to pair each line-number line
9693 # with the numbered line, and appends trailing '-' during
9694 # substitution so that $LINENO is not a special case at line end.
9695 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9696 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9697 sed '=' <$as_myself |
9698 sed '
9699 N
9700 s,$,-,
9701 : loop
9702 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9703 t loop
9704 s,-$,,
9705 s,^['$as_cr_digits']*\n,,
9706 ' >$as_me.lineno &&
9707 chmod +x $as_me.lineno ||
9708 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9709echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9710 { (exit 1); exit 1; }; }
9711
9712 # Don't try to exec as it changes $[0], causing all sort of problems
9713 # (the dirname of $[0] is not the place where we might find the
9714 # original and so on. Autoconf is especially sensible to this).
9715 . ./$as_me.lineno
9716 # Exit status is that of the last command.
9717 exit
9718}
9719
9720
9721case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9722 *c*,-n*) ECHO_N= ECHO_C='
9723' ECHO_T=' ' ;;
9724 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9725 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9726esac
9727
9728if expr a : '\(a\)' >/dev/null 2>&1; then
9729 as_expr=expr
9730else
9731 as_expr=false
9732fi
9733
9734rm -f conf$$ conf$$.exe conf$$.file
9735echo >conf$$.file
9736if ln -s conf$$.file conf$$ 2>/dev/null; then
9737 # We could just check for DJGPP; but this test a) works b) is more generic
9738 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9739 if test -f conf$$.exe; then
9740 # Don't use ln at all; we don't have any links
9741 as_ln_s='cp -p'
9742 else
9743 as_ln_s='ln -s'
9744 fi
9745elif ln conf$$.file conf$$ 2>/dev/null; then
9746 as_ln_s=ln
9747else
9748 as_ln_s='cp -p'
9749fi
9750rm -f conf$$ conf$$.exe conf$$.file
9751
9752if mkdir -p . 2>/dev/null; then
9753 as_mkdir_p=:
9754else
9755 as_mkdir_p=false
9756fi
9757
9758as_executable_p="test -f"
9759
9760# Sed expression to map a string onto a valid CPP name.
9761as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9762
9763# Sed expression to map a string onto a valid variable name.
9764as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9765
9766
9767# IFS
9768# We need space, tab and new line, in precisely that order.
9769as_nl='
9770'
9771IFS=" $as_nl"
9772
9773# CDPATH.
9774$as_unset CDPATH
9775
9776exec 6>&1
9777
9778# Open the log real soon, to keep \$[0] and so on meaningful, and to
9779# report actual input values of CONFIG_FILES etc. instead of their
9780# values after options handling. Logging --version etc. is OK.
9781exec 5>>config.log
9782{
9783 echo
9784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9785## Running $as_me. ##
9786_ASBOX
9787} >&5
9788cat >&5 <<_CSEOF
9789
9790This file was extended by $as_me, which was
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009791generated by GNU Autoconf 2.57. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009792
9793 CONFIG_FILES = $CONFIG_FILES
9794 CONFIG_HEADERS = $CONFIG_HEADERS
9795 CONFIG_LINKS = $CONFIG_LINKS
9796 CONFIG_COMMANDS = $CONFIG_COMMANDS
9797 $ $0 $@
9798
9799_CSEOF
9800echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9801echo >&5
9802_ACEOF
9803
9804# Files that config.status was made for.
9805if test -n "$ac_config_files"; then
9806 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9807fi
9808
9809if test -n "$ac_config_headers"; then
9810 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9811fi
9812
9813if test -n "$ac_config_links"; then
9814 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9815fi
9816
9817if test -n "$ac_config_commands"; then
9818 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9819fi
9820
9821cat >>$CONFIG_STATUS <<\_ACEOF
9822
9823ac_cs_usage="\
9824\`$as_me' instantiates files from templates according to the
9825current configuration.
9826
9827Usage: $0 [OPTIONS] [FILE]...
9828
9829 -h, --help print this help, then exit
9830 -V, --version print version number, then exit
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009831 -q, --quiet do not print progress messages
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009832 -d, --debug don't remove temporary files
9833 --recheck update $as_me by reconfiguring in the same conditions
9834 --file=FILE[:TEMPLATE]
9835 instantiate the configuration file FILE
9836 --header=FILE[:TEMPLATE]
9837 instantiate the configuration header FILE
9838
9839Configuration files:
9840$config_files
9841
9842Configuration headers:
9843$config_headers
9844
9845Configuration links:
9846$config_links
9847
9848Configuration commands:
9849$config_commands
9850
9851Report bugs to <bug-autoconf@gnu.org>."
9852_ACEOF
9853
9854cat >>$CONFIG_STATUS <<_ACEOF
9855ac_cs_version="\\
9856config.status
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009857configured by $0, generated by GNU Autoconf 2.57,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009858 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9859
9860Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9861Free Software Foundation, Inc.
9862This config.status script is free software; the Free Software Foundation
9863gives unlimited permission to copy, distribute and modify it."
9864srcdir=$srcdir
9865INSTALL="$INSTALL"
9866_ACEOF
9867
9868cat >>$CONFIG_STATUS <<\_ACEOF
9869# If no file are specified by the user, then we need to provide default
9870# value. By we need to know if files were specified by the user.
9871ac_need_defaults=:
9872while test $# != 0
9873do
9874 case $1 in
9875 --*=*)
9876 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9877 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9878 ac_shift=:
9879 ;;
9880 -*)
9881 ac_option=$1
9882 ac_optarg=$2
9883 ac_shift=shift
9884 ;;
9885 *) # This is not an option, so the user has probably given explicit
9886 # arguments.
9887 ac_option=$1
9888 ac_need_defaults=false;;
9889 esac
9890
9891 case $ac_option in
9892 # Handling of the options.
9893_ACEOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009894cat >>$CONFIG_STATUS <<\_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009895 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9896 ac_cs_recheck=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009897 --version | --vers* | -V )
9898 echo "$ac_cs_version"; exit 0 ;;
9899 --he | --h)
9900 # Conflict between --help and --header
9901 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9902Try \`$0 --help' for more information." >&5
9903echo "$as_me: error: ambiguous option: $1
9904Try \`$0 --help' for more information." >&2;}
9905 { (exit 1); exit 1; }; };;
9906 --help | --hel | -h )
9907 echo "$ac_cs_usage"; exit 0 ;;
9908 --debug | --d* | -d )
9909 debug=: ;;
9910 --file | --fil | --fi | --f )
9911 $ac_shift
9912 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9913 ac_need_defaults=false;;
9914 --header | --heade | --head | --hea )
9915 $ac_shift
9916 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9917 ac_need_defaults=false;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9919 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9920 ac_cs_silent=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009921
9922 # This is an error.
9923 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9924Try \`$0 --help' for more information." >&5
9925echo "$as_me: error: unrecognized option: $1
9926Try \`$0 --help' for more information." >&2;}
9927 { (exit 1); exit 1; }; } ;;
9928
9929 *) ac_config_targets="$ac_config_targets $1" ;;
9930
9931 esac
9932 shift
9933done
9934
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009935ac_configure_extra_args=
9936
9937if $ac_cs_silent; then
9938 exec 6>/dev/null
9939 ac_configure_extra_args="$ac_configure_extra_args --silent"
9940fi
9941
9942_ACEOF
9943cat >>$CONFIG_STATUS <<_ACEOF
9944if \$ac_cs_recheck; then
9945 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9946 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9947fi
9948
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009949_ACEOF
9950
9951cat >>$CONFIG_STATUS <<_ACEOF
9952#
9953# INIT-COMMANDS section.
9954#
9955
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009956AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009957
9958_ACEOF
9959
9960
9961
9962cat >>$CONFIG_STATUS <<\_ACEOF
9963for ac_config_target in $ac_config_targets
9964do
9965 case "$ac_config_target" in
9966 # Handling of arguments.
9967 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9968 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9969 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9970 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
mostang.com!davidmf648f6f2003-01-17 07:48:52 +00009971 "doc/common.tex" ) CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009972 "include/libunwind.h" ) CONFIG_LINKS="$CONFIG_LINKS include/libunwind.h:include/libunwind-$target_arch.h" ;;
mostang.com!davidm51e4d342002-12-12 09:17:41 +00009973 "include/tdep.h" ) CONFIG_LINKS="$CONFIG_LINKS include/tdep.h:include/tdep-$target_arch.h" ;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009974 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009975 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
9976 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9977echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9978 { (exit 1); exit 1; }; };;
9979 esac
9980done
9981
9982# If the user did not use the arguments to specify the items to instantiate,
9983# then the envvar interface is used. Set only those that are not.
9984# We use the long form for the default assignment because of an extremely
9985# bizarre bug on SunOS 4.1.3.
9986if $ac_need_defaults; then
9987 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9988 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9989 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9990 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9991fi
9992
hp.com!davidm01b02dd2003-09-24 21:51:53 +00009993# Have a temporary directory for convenience. Make it in the build tree
9994# simply because there is no reason to put it here, and in addition,
9995# creating and moving files from /tmp can sometimes cause problems.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009996# Create a temporary directory, and hook for its removal unless debugging.
9997$debug ||
9998{
9999 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10000 trap '{ (exit 1); exit 1; }' 1 2 13 15
10001}
10002
10003# Create a (secure) tmp directory for tmp files.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000010004
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010005{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000010006 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010007 test -n "$tmp" && test -d "$tmp"
10008} ||
10009{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000010010 tmp=./confstat$$-$RANDOM
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010011 (umask 077 && mkdir $tmp)
10012} ||
10013{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000010014 echo "$me: cannot create a temporary directory in ." >&2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010015 { (exit 1); exit 1; }
10016}
10017
10018_ACEOF
10019
10020cat >>$CONFIG_STATUS <<_ACEOF
10021
10022#
10023# CONFIG_FILES section.
10024#
10025
10026# No need to generate the scripts if there are no CONFIG_FILES.
10027# This happens for instance when ./config.status config.h
10028if test -n "\$CONFIG_FILES"; then
10029 # Protect against being on the right side of a sed subst in config.status.
10030 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10031 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10032s,@SHELL@,$SHELL,;t t
10033s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10034s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10035s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10036s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10037s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10038s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10039s,@exec_prefix@,$exec_prefix,;t t
10040s,@prefix@,$prefix,;t t
10041s,@program_transform_name@,$program_transform_name,;t t
10042s,@bindir@,$bindir,;t t
10043s,@sbindir@,$sbindir,;t t
10044s,@libexecdir@,$libexecdir,;t t
10045s,@datadir@,$datadir,;t t
10046s,@sysconfdir@,$sysconfdir,;t t
10047s,@sharedstatedir@,$sharedstatedir,;t t
10048s,@localstatedir@,$localstatedir,;t t
10049s,@libdir@,$libdir,;t t
10050s,@includedir@,$includedir,;t t
10051s,@oldincludedir@,$oldincludedir,;t t
10052s,@infodir@,$infodir,;t t
10053s,@mandir@,$mandir,;t t
10054s,@build_alias@,$build_alias,;t t
10055s,@host_alias@,$host_alias,;t t
10056s,@target_alias@,$target_alias,;t t
10057s,@DEFS@,$DEFS,;t t
10058s,@ECHO_C@,$ECHO_C,;t t
10059s,@ECHO_N@,$ECHO_N,;t t
10060s,@ECHO_T@,$ECHO_T,;t t
10061s,@LIBS@,$LIBS,;t t
10062s,@build@,$build,;t t
10063s,@build_cpu@,$build_cpu,;t t
10064s,@build_vendor@,$build_vendor,;t t
10065s,@build_os@,$build_os,;t t
10066s,@host@,$host,;t t
10067s,@host_cpu@,$host_cpu,;t t
10068s,@host_vendor@,$host_vendor,;t t
10069s,@host_os@,$host_os,;t t
10070s,@target@,$target,;t t
10071s,@target_cpu@,$target_cpu,;t t
10072s,@target_vendor@,$target_vendor,;t t
10073s,@target_os@,$target_os,;t t
10074s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10075s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10076s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10077s,@PACKAGE@,$PACKAGE,;t t
10078s,@VERSION@,$VERSION,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010079s,@ACLOCAL@,$ACLOCAL,;t t
10080s,@AUTOCONF@,$AUTOCONF,;t t
10081s,@AUTOMAKE@,$AUTOMAKE,;t t
10082s,@AUTOHEADER@,$AUTOHEADER,;t t
10083s,@MAKEINFO@,$MAKEINFO,;t t
10084s,@AMTAR@,$AMTAR,;t t
10085s,@install_sh@,$install_sh,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000010086s,@STRIP@,$STRIP,;t t
10087s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010088s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10089s,@AWK@,$AWK,;t t
10090s,@SET_MAKE@,$SET_MAKE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010091s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10092s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10093s,@MAINT@,$MAINT,;t t
10094s,@CC@,$CC,;t t
10095s,@CFLAGS@,$CFLAGS,;t t
10096s,@LDFLAGS@,$LDFLAGS,;t t
10097s,@CPPFLAGS@,$CPPFLAGS,;t t
10098s,@ac_ct_CC@,$ac_ct_CC,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000010099s,@EXEEXT@,$EXEEXT,;t t
10100s,@OBJEXT@,$OBJEXT,;t t
10101s,@DEPDIR@,$DEPDIR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010102s,@am__include@,$am__include,;t t
10103s,@am__quote@,$am__quote,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000010104s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10105s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10106s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010107s,@CCDEPMODE@,$CCDEPMODE,;t t
mostang.com!davidm4f17bce2003-03-28 07:43:22 +000010108s,@CXX@,$CXX,;t t
10109s,@CXXFLAGS@,$CXXFLAGS,;t t
10110s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10111s,@CXXDEPMODE@,$CXXDEPMODE,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000010112s,@LN_S@,$LN_S,;t t
10113s,@ECHO@,$ECHO,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010114s,@RANLIB@,$RANLIB,;t t
10115s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010116s,@CPP@,$CPP,;t t
10117s,@EGREP@,$EGREP,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000010118s,@LIBTOOL@,$LIBTOOL,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000010119s,@CCAS@,$CCAS,;t t
10120s,@CCASFLAGS@,$CCASFLAGS,;t t
mostang.com!davidm6af90d02003-02-15 08:53:55 +000010121s,@LIBOBJS@,$LIBOBJS,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010122s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t
10123s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t
10124s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t
10125s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000010126s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t
10127s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000010128s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
10129s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
mostang.com!davidma8db0b32003-02-08 10:10:59 +000010130s,@OS_LINUX_TRUE@,$OS_LINUX_TRUE,;t t
10131s,@OS_LINUX_FALSE@,$OS_LINUX_FALSE,;t t
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000010132s,@OS_HPUX_TRUE@,$OS_HPUX_TRUE,;t t
10133s,@OS_HPUX_FALSE@,$OS_HPUX_FALSE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010134s,@arch@,$arch,;t t
10135s,@ARCH@,$ARCH,;t t
10136s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10137CEOF
10138
10139_ACEOF
10140
10141 cat >>$CONFIG_STATUS <<\_ACEOF
10142 # Split the substitutions into bite-sized pieces for seds with
10143 # small command number limits, like on Digital OSF/1 and HP-UX.
10144 ac_max_sed_lines=48
10145 ac_sed_frag=1 # Number of current file.
10146 ac_beg=1 # First line for current file.
10147 ac_end=$ac_max_sed_lines # Line after last line for current file.
10148 ac_more_lines=:
10149 ac_sed_cmds=
10150 while $ac_more_lines; do
10151 if test $ac_beg -gt 1; then
10152 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10153 else
10154 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10155 fi
10156 if test ! -s $tmp/subs.frag; then
10157 ac_more_lines=false
10158 else
10159 # The purpose of the label and of the branching condition is to
10160 # speed up the sed processing (if there are no `@' at all, there
10161 # is no need to browse any of the substitutions).
10162 # These are the two extra sed commands mentioned above.
10163 (echo ':t
10164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10165 if test -z "$ac_sed_cmds"; then
10166 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10167 else
10168 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10169 fi
10170 ac_sed_frag=`expr $ac_sed_frag + 1`
10171 ac_beg=$ac_end
10172 ac_end=`expr $ac_end + $ac_max_sed_lines`
10173 fi
10174 done
10175 if test -z "$ac_sed_cmds"; then
10176 ac_sed_cmds=cat
10177 fi
10178fi # test -n "$CONFIG_FILES"
10179
10180_ACEOF
10181cat >>$CONFIG_STATUS <<\_ACEOF
10182for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10183 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10184 case $ac_file in
10185 - | *:- | *:-:* ) # input from stdin
10186 cat >$tmp/stdin
10187 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10188 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10189 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10191 * ) ac_file_in=$ac_file.in ;;
10192 esac
10193
10194 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10195 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10196$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10197 X"$ac_file" : 'X\(//\)[^/]' \| \
10198 X"$ac_file" : 'X\(//\)$' \| \
10199 X"$ac_file" : 'X\(/\)' \| \
10200 . : '\(.\)' 2>/dev/null ||
10201echo X"$ac_file" |
10202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10204 /^X\(\/\/\)$/{ s//\1/; q; }
10205 /^X\(\/\).*/{ s//\1/; q; }
10206 s/.*/./; q'`
10207 { if $as_mkdir_p; then
10208 mkdir -p "$ac_dir"
10209 else
10210 as_dir="$ac_dir"
10211 as_dirs=
10212 while test ! -d "$as_dir"; do
10213 as_dirs="$as_dir $as_dirs"
10214 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10215$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10216 X"$as_dir" : 'X\(//\)[^/]' \| \
10217 X"$as_dir" : 'X\(//\)$' \| \
10218 X"$as_dir" : 'X\(/\)' \| \
10219 . : '\(.\)' 2>/dev/null ||
10220echo X"$as_dir" |
10221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10223 /^X\(\/\/\)$/{ s//\1/; q; }
10224 /^X\(\/\).*/{ s//\1/; q; }
10225 s/.*/./; q'`
10226 done
10227 test ! -n "$as_dirs" || mkdir $as_dirs
10228 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10229echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10230 { (exit 1); exit 1; }; }; }
10231
10232 ac_builddir=.
10233
10234if test "$ac_dir" != .; then
10235 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10236 # A "../" for each directory in $ac_dir_suffix.
10237 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10238else
10239 ac_dir_suffix= ac_top_builddir=
10240fi
10241
10242case $srcdir in
10243 .) # No --srcdir option. We are building in place.
10244 ac_srcdir=.
10245 if test -z "$ac_top_builddir"; then
10246 ac_top_srcdir=.
10247 else
10248 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10249 fi ;;
10250 [\\/]* | ?:[\\/]* ) # Absolute path.
10251 ac_srcdir=$srcdir$ac_dir_suffix;
10252 ac_top_srcdir=$srcdir ;;
10253 *) # Relative path.
10254 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10255 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10256esac
10257# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10258# absolute.
10259ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10260ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10261ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10262ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10263
10264
10265 case $INSTALL in
10266 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10267 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10268 esac
10269
10270 if test x"$ac_file" != x-; then
10271 { echo "$as_me:$LINENO: creating $ac_file" >&5
10272echo "$as_me: creating $ac_file" >&6;}
10273 rm -f "$ac_file"
10274 fi
10275 # Let's still pretend it is `configure' which instantiates (i.e., don't
10276 # use $as_me), people would be surprised to read:
10277 # /* config.h. Generated by config.status. */
10278 if test x"$ac_file" = x-; then
10279 configure_input=
10280 else
10281 configure_input="$ac_file. "
10282 fi
10283 configure_input=$configure_input"Generated from `echo $ac_file_in |
10284 sed 's,.*/,,'` by configure."
10285
10286 # First look for the input files in the build tree, otherwise in the
10287 # src tree.
10288 ac_file_inputs=`IFS=:
10289 for f in $ac_file_in; do
10290 case $f in
10291 -) echo $tmp/stdin ;;
10292 [\\/$]*)
10293 # Absolute (can't be DOS-style, as IFS=:)
10294 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10295echo "$as_me: error: cannot find input file: $f" >&2;}
10296 { (exit 1); exit 1; }; }
10297 echo $f;;
10298 *) # Relative
10299 if test -f "$f"; then
10300 # Build tree
10301 echo $f
10302 elif test -f "$srcdir/$f"; then
10303 # Source tree
10304 echo $srcdir/$f
10305 else
10306 # /dev/null tree
10307 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10308echo "$as_me: error: cannot find input file: $f" >&2;}
10309 { (exit 1); exit 1; }; }
10310 fi;;
10311 esac
10312 done` || { (exit 1); exit 1; }
10313_ACEOF
10314cat >>$CONFIG_STATUS <<_ACEOF
10315 sed "$ac_vpsub
10316$extrasub
10317_ACEOF
10318cat >>$CONFIG_STATUS <<\_ACEOF
10319:t
10320/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10321s,@configure_input@,$configure_input,;t t
10322s,@srcdir@,$ac_srcdir,;t t
10323s,@abs_srcdir@,$ac_abs_srcdir,;t t
10324s,@top_srcdir@,$ac_top_srcdir,;t t
10325s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10326s,@builddir@,$ac_builddir,;t t
10327s,@abs_builddir@,$ac_abs_builddir,;t t
10328s,@top_builddir@,$ac_top_builddir,;t t
10329s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10330s,@INSTALL@,$ac_INSTALL,;t t
10331" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10332 rm -f $tmp/stdin
10333 if test x"$ac_file" != x-; then
10334 mv $tmp/out $ac_file
10335 else
10336 cat $tmp/out
10337 rm -f $tmp/out
10338 fi
10339
10340done
10341_ACEOF
10342cat >>$CONFIG_STATUS <<\_ACEOF
10343
10344#
10345# CONFIG_HEADER section.
10346#
10347
10348# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10349# NAME is the cpp macro being defined and VALUE is the value it is being given.
10350#
10351# ac_d sets the value in "#define NAME VALUE" lines.
10352ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10353ac_dB='[ ].*$,\1#\2'
10354ac_dC=' '
10355ac_dD=',;t'
10356# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10357ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10358ac_uB='$,\1#\2define\3'
10359ac_uC=' '
10360ac_uD=',;t'
10361
10362for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10363 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10364 case $ac_file in
10365 - | *:- | *:-:* ) # input from stdin
10366 cat >$tmp/stdin
10367 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10368 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10369 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10370 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10371 * ) ac_file_in=$ac_file.in ;;
10372 esac
10373
10374 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10375echo "$as_me: creating $ac_file" >&6;}
10376
10377 # First look for the input files in the build tree, otherwise in the
10378 # src tree.
10379 ac_file_inputs=`IFS=:
10380 for f in $ac_file_in; do
10381 case $f in
10382 -) echo $tmp/stdin ;;
10383 [\\/$]*)
10384 # Absolute (can't be DOS-style, as IFS=:)
10385 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10386echo "$as_me: error: cannot find input file: $f" >&2;}
10387 { (exit 1); exit 1; }; }
10388 echo $f;;
10389 *) # Relative
10390 if test -f "$f"; then
10391 # Build tree
10392 echo $f
10393 elif test -f "$srcdir/$f"; then
10394 # Source tree
10395 echo $srcdir/$f
10396 else
10397 # /dev/null tree
10398 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10399echo "$as_me: error: cannot find input file: $f" >&2;}
10400 { (exit 1); exit 1; }; }
10401 fi;;
10402 esac
10403 done` || { (exit 1); exit 1; }
10404 # Remove the trailing spaces.
10405 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10406
10407_ACEOF
10408
10409# Transform confdefs.h into two sed scripts, `conftest.defines' and
10410# `conftest.undefs', that substitutes the proper values into
10411# config.h.in to produce config.h. The first handles `#define'
10412# templates, and the second `#undef' templates.
10413# And first: Protect against being on the right side of a sed subst in
10414# config.status. Protect against being in an unquoted here document
10415# in config.status.
10416rm -f conftest.defines conftest.undefs
10417# Using a here document instead of a string reduces the quoting nightmare.
10418# Putting comments in sed scripts is not portable.
10419#
10420# `end' is used to avoid that the second main sed command (meant for
10421# 0-ary CPP macros) applies to n-ary macro definitions.
10422# See the Autoconf documentation for `clear'.
10423cat >confdef2sed.sed <<\_ACEOF
10424s/[\\&,]/\\&/g
10425s,[\\$`],\\&,g
10426t clear
10427: clear
10428s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10429t end
10430s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10431: end
10432_ACEOF
10433# If some macros were called several times there might be several times
10434# the same #defines, which is useless. Nevertheless, we may not want to
10435# sort them, since we want the *last* AC-DEFINE to be honored.
10436uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10437sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10438rm -f confdef2sed.sed
10439
10440# This sed command replaces #undef with comments. This is necessary, for
10441# example, in the case of _POSIX_SOURCE, which is predefined and required
10442# on some systems where configure will not decide to define it.
10443cat >>conftest.undefs <<\_ACEOF
10444s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10445_ACEOF
10446
10447# Break up conftest.defines because some shells have a limit on the size
10448# of here documents, and old seds have small limits too (100 cmds).
10449echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10450echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10451echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10452echo ' :' >>$CONFIG_STATUS
10453rm -f conftest.tail
10454while grep . conftest.defines >/dev/null
10455do
10456 # Write a limited-size here document to $tmp/defines.sed.
10457 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10458 # Speed up: don't consider the non `#define' lines.
10459 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10460 # Work around the forget-to-reset-the-flag bug.
10461 echo 't clr' >>$CONFIG_STATUS
10462 echo ': clr' >>$CONFIG_STATUS
10463 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10464 echo 'CEOF
10465 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10466 rm -f $tmp/in
10467 mv $tmp/out $tmp/in
10468' >>$CONFIG_STATUS
10469 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10470 rm -f conftest.defines
10471 mv conftest.tail conftest.defines
10472done
10473rm -f conftest.defines
10474echo ' fi # grep' >>$CONFIG_STATUS
10475echo >>$CONFIG_STATUS
10476
10477# Break up conftest.undefs because some shells have a limit on the size
10478# of here documents, and old seds have small limits too (100 cmds).
10479echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10480rm -f conftest.tail
10481while grep . conftest.undefs >/dev/null
10482do
10483 # Write a limited-size here document to $tmp/undefs.sed.
10484 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10485 # Speed up: don't consider the non `#undef'
10486 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10487 # Work around the forget-to-reset-the-flag bug.
10488 echo 't clr' >>$CONFIG_STATUS
10489 echo ': clr' >>$CONFIG_STATUS
10490 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10491 echo 'CEOF
10492 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10493 rm -f $tmp/in
10494 mv $tmp/out $tmp/in
10495' >>$CONFIG_STATUS
10496 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10497 rm -f conftest.undefs
10498 mv conftest.tail conftest.undefs
10499done
10500rm -f conftest.undefs
10501
10502cat >>$CONFIG_STATUS <<\_ACEOF
10503 # Let's still pretend it is `configure' which instantiates (i.e., don't
10504 # use $as_me), people would be surprised to read:
10505 # /* config.h. Generated by config.status. */
10506 if test x"$ac_file" = x-; then
10507 echo "/* Generated by configure. */" >$tmp/config.h
10508 else
10509 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10510 fi
10511 cat $tmp/in >>$tmp/config.h
10512 rm -f $tmp/in
10513 if test x"$ac_file" != x-; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000010514 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010515 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10516echo "$as_me: $ac_file is unchanged" >&6;}
10517 else
10518 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10519$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10520 X"$ac_file" : 'X\(//\)[^/]' \| \
10521 X"$ac_file" : 'X\(//\)$' \| \
10522 X"$ac_file" : 'X\(/\)' \| \
10523 . : '\(.\)' 2>/dev/null ||
10524echo X"$ac_file" |
10525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10527 /^X\(\/\/\)$/{ s//\1/; q; }
10528 /^X\(\/\).*/{ s//\1/; q; }
10529 s/.*/./; q'`
10530 { if $as_mkdir_p; then
10531 mkdir -p "$ac_dir"
10532 else
10533 as_dir="$ac_dir"
10534 as_dirs=
10535 while test ! -d "$as_dir"; do
10536 as_dirs="$as_dir $as_dirs"
10537 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10538$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10539 X"$as_dir" : 'X\(//\)[^/]' \| \
10540 X"$as_dir" : 'X\(//\)$' \| \
10541 X"$as_dir" : 'X\(/\)' \| \
10542 . : '\(.\)' 2>/dev/null ||
10543echo X"$as_dir" |
10544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10546 /^X\(\/\/\)$/{ s//\1/; q; }
10547 /^X\(\/\).*/{ s//\1/; q; }
10548 s/.*/./; q'`
10549 done
10550 test ! -n "$as_dirs" || mkdir $as_dirs
10551 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10552echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10553 { (exit 1); exit 1; }; }; }
10554
10555 rm -f $ac_file
10556 mv $tmp/config.h $ac_file
10557 fi
10558 else
10559 cat $tmp/config.h
10560 rm -f $tmp/config.h
10561 fi
10562 # Run the commands associated with the file.
10563 case $ac_file in
10564 include/config.h ) # update the timestamp
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000010565echo 'timestamp for include/config.h' >"include/stamp-h1"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010566 ;;
10567 esac
10568done
10569_ACEOF
10570cat >>$CONFIG_STATUS <<\_ACEOF
10571
10572#
10573# CONFIG_LINKS section.
10574#
10575
10576for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
10577 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10578 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10579
10580 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
10581echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
10582
10583 if test ! -r $srcdir/$ac_source; then
10584 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
10585echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
10586 { (exit 1); exit 1; }; }
10587 fi
10588 rm -f $ac_dest
10589
10590 # Make relative symlinks.
10591 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
10592$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10593 X"$ac_dest" : 'X\(//\)[^/]' \| \
10594 X"$ac_dest" : 'X\(//\)$' \| \
10595 X"$ac_dest" : 'X\(/\)' \| \
10596 . : '\(.\)' 2>/dev/null ||
10597echo X"$ac_dest" |
10598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10599 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10600 /^X\(\/\/\)$/{ s//\1/; q; }
10601 /^X\(\/\).*/{ s//\1/; q; }
10602 s/.*/./; q'`
10603 { if $as_mkdir_p; then
10604 mkdir -p "$ac_dest_dir"
10605 else
10606 as_dir="$ac_dest_dir"
10607 as_dirs=
10608 while test ! -d "$as_dir"; do
10609 as_dirs="$as_dir $as_dirs"
10610 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10611$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10612 X"$as_dir" : 'X\(//\)[^/]' \| \
10613 X"$as_dir" : 'X\(//\)$' \| \
10614 X"$as_dir" : 'X\(/\)' \| \
10615 . : '\(.\)' 2>/dev/null ||
10616echo X"$as_dir" |
10617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10619 /^X\(\/\/\)$/{ s//\1/; q; }
10620 /^X\(\/\).*/{ s//\1/; q; }
10621 s/.*/./; q'`
10622 done
10623 test ! -n "$as_dirs" || mkdir $as_dirs
10624 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
10625echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
10626 { (exit 1); exit 1; }; }; }
10627
10628 ac_builddir=.
10629
10630if test "$ac_dest_dir" != .; then
10631 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
10632 # A "../" for each directory in $ac_dir_suffix.
10633 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10634else
10635 ac_dir_suffix= ac_top_builddir=
10636fi
10637
10638case $srcdir in
10639 .) # No --srcdir option. We are building in place.
10640 ac_srcdir=.
10641 if test -z "$ac_top_builddir"; then
10642 ac_top_srcdir=.
10643 else
10644 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10645 fi ;;
10646 [\\/]* | ?:[\\/]* ) # Absolute path.
10647 ac_srcdir=$srcdir$ac_dir_suffix;
10648 ac_top_srcdir=$srcdir ;;
10649 *) # Relative path.
10650 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10651 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10652esac
10653# Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
10654# absolute.
10655ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
10656ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
10657ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
10658ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
10659
10660
10661 case $srcdir in
10662 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
10663 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
10664 esac
10665
10666 # Try a symlink, then a hard link, then a copy.
10667 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10668 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
10669 cp -p $srcdir/$ac_source $ac_dest ||
10670 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
10671echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
10672 { (exit 1); exit 1; }; }
10673done
10674_ACEOF
10675cat >>$CONFIG_STATUS <<\_ACEOF
10676
10677#
10678# CONFIG_COMMANDS section.
10679#
10680for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10681 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10682 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10683 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10684$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10685 X"$ac_dest" : 'X\(//\)[^/]' \| \
10686 X"$ac_dest" : 'X\(//\)$' \| \
10687 X"$ac_dest" : 'X\(/\)' \| \
10688 . : '\(.\)' 2>/dev/null ||
10689echo X"$ac_dest" |
10690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10691 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10692 /^X\(\/\/\)$/{ s//\1/; q; }
10693 /^X\(\/\).*/{ s//\1/; q; }
10694 s/.*/./; q'`
10695 ac_builddir=.
10696
10697if test "$ac_dir" != .; then
10698 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10699 # A "../" for each directory in $ac_dir_suffix.
10700 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10701else
10702 ac_dir_suffix= ac_top_builddir=
10703fi
10704
10705case $srcdir in
10706 .) # No --srcdir option. We are building in place.
10707 ac_srcdir=.
10708 if test -z "$ac_top_builddir"; then
10709 ac_top_srcdir=.
10710 else
10711 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10712 fi ;;
10713 [\\/]* | ?:[\\/]* ) # Absolute path.
10714 ac_srcdir=$srcdir$ac_dir_suffix;
10715 ac_top_srcdir=$srcdir ;;
10716 *) # Relative path.
10717 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10718 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10719esac
10720# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10721# absolute.
10722ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10723ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10724ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10725ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10726
10727
10728 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10729echo "$as_me: executing $ac_dest commands" >&6;}
10730 case $ac_dest in
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000010731 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10732 # Strip MF so we end up with the name of the file.
10733 mf=`echo "$mf" | sed -e 's/:.*$//'`
10734 # Check whether this is an Automake generated Makefile or not.
10735 # We used to match only the files named `Makefile.in', but
10736 # some people rename them; so instead we look at the file content.
10737 # Grep'ing the first line is not enough: some people post-process
10738 # each Makefile.in and add a new line on top of each file to say so.
10739 # So let's grep whole file.
10740 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10741 dirpart=`(dirname "$mf") 2>/dev/null ||
10742$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10743 X"$mf" : 'X\(//\)[^/]' \| \
10744 X"$mf" : 'X\(//\)$' \| \
10745 X"$mf" : 'X\(/\)' \| \
10746 . : '\(.\)' 2>/dev/null ||
10747echo X"$mf" |
10748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10750 /^X\(\/\/\)$/{ s//\1/; q; }
10751 /^X\(\/\).*/{ s//\1/; q; }
10752 s/.*/./; q'`
10753 else
10754 continue
10755 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010756 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10757 # Extract the definition of DEP_FILES from the Makefile without
10758 # running `make'.
10759 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10760 test -z "$DEPDIR" && continue
10761 # When using ansi2knr, U may be empty or an underscore; expand it
10762 U=`sed -n -e '/^U = / s///p' < "$mf"`
10763 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10764 # We invoke sed twice because it is the simplest approach to
10765 # changing $(DEPDIR) to its actual value in the expansion.
10766 for file in `sed -n -e '
10767 /^DEP_FILES = .*\\\\$/ {
10768 s/^DEP_FILES = //
10769 :loop
10770 s/\\\\$//
10771 p
10772 n
10773 /\\\\$/ b loop
10774 p
10775 }
10776 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10777 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10778 # Make sure the directory exists.
10779 test -f "$dirpart/$file" && continue
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000010780 fdir=`(dirname "$file") 2>/dev/null ||
10781$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10782 X"$file" : 'X\(//\)[^/]' \| \
10783 X"$file" : 'X\(//\)$' \| \
10784 X"$file" : 'X\(/\)' \| \
10785 . : '\(.\)' 2>/dev/null ||
10786echo X"$file" |
10787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10789 /^X\(\/\/\)$/{ s//\1/; q; }
10790 /^X\(\/\).*/{ s//\1/; q; }
10791 s/.*/./; q'`
10792 { if $as_mkdir_p; then
10793 mkdir -p $dirpart/$fdir
10794 else
10795 as_dir=$dirpart/$fdir
10796 as_dirs=
10797 while test ! -d "$as_dir"; do
10798 as_dirs="$as_dir $as_dirs"
10799 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10800$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10801 X"$as_dir" : 'X\(//\)[^/]' \| \
10802 X"$as_dir" : 'X\(//\)$' \| \
10803 X"$as_dir" : 'X\(/\)' \| \
10804 . : '\(.\)' 2>/dev/null ||
10805echo X"$as_dir" |
10806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10808 /^X\(\/\/\)$/{ s//\1/; q; }
10809 /^X\(\/\).*/{ s//\1/; q; }
10810 s/.*/./; q'`
10811 done
10812 test ! -n "$as_dirs" || mkdir $as_dirs
10813 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10814echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10815 { (exit 1); exit 1; }; }; }
10816
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010817 # echo "creating $dirpart/$file"
10818 echo '# dummy' > "$dirpart/$file"
10819 done
10820done
10821 ;;
10822 esac
10823done
10824_ACEOF
10825
10826cat >>$CONFIG_STATUS <<\_ACEOF
10827
10828{ (exit 0); exit 0; }
10829_ACEOF
10830chmod +x $CONFIG_STATUS
10831ac_clean_files=$ac_clean_files_save
10832
10833
10834# configure is writing to config.log, and then calls config.status.
10835# config.status does its own redirection, appending to config.log.
10836# Unfortunately, on DOS this fails, as config.log is still kept open
10837# by configure, so config.status won't be able to write to it; its
10838# output is simply discarded. So we exec the FD to /dev/null,
10839# effectively closing config.log, so it can be properly (re)opened and
10840# appended to by config.status. When coming back to configure, we
10841# need to make the FD available again.
10842if test "$no_create" != yes; then
10843 ac_cs_success=:
hp.com!davidm01b02dd2003-09-24 21:51:53 +000010844 ac_config_status_args=
10845 test "$silent" = yes &&
10846 ac_config_status_args="$ac_config_status_args --quiet"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010847 exec 5>/dev/null
hp.com!davidm01b02dd2003-09-24 21:51:53 +000010848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010849 exec 5>>config.log
10850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10851 # would make configure fail if this is the last instruction.
10852 $ac_cs_success || { (exit 1); exit 1; }
10853fi
10854